sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,9];2 function_name [] send;3 parameters [4,5,7];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10,21];10 if_statement [11,15];11 not_operator [12];12 attribute [13,14];13 identifier [] self;14 iden... | Sends data to all registered receivers. |
0 module [1];1 function_definition [2,3,5];2 function_name [] main;3 parameters [4];4 identifier [] directories;5 block [6,10,16,22,26,30,87,131,184];6 expression_statement [7];7 assignment [8,9];8 identifier [] msg;9 string [] Checking module "{}" from directory "{}" for coding errors.;10 expression_statement [11];11 ... | Perform all checks on the API's contained in `directory`. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _from_string;3 parameters [4,5];4 identifier [] cls;5 identifier [] serialized;6 block [7,16,25,35,46];7 expression_statement [8];8 assignment [9,10];9 identifier [] course_key;10 call [11,14];11 attribute [12,13];12 identifier [] CourseLocator;13 identifier... | Requests CourseLocator to deserialize its part and then adds the local deserialization of block |
0 module [1];1 function_definition [2,3,6];2 function_name [] load_data_to_net;3 parameters [4,5];4 identifier [] net;5 identifier [] inst_net;6 block [7,17,27];7 expression_statement [8];8 assignment [9,14];9 subscript [10,13];10 attribute [11,12];11 identifier [] net;12 identifier [] dat;13 string [] nodes;14 subscri... | load data into nodes and mat, also convert mat to numpy array |
0 module [1];1 function_definition [2,3,15,17];2 function_name [] close;3 parameters [4,5,10];4 identifier [] self;5 typed_default_parameter [6,7,9];6 identifier [] code;7 type [8];8 identifier [] int;9 None [];10 typed_default_parameter [11,12,14];11 identifier [] reason;12 type [13];13 identifier [] str;14 None [];15... | Closes the WebSocket connection. |
0 module [1];1 function_definition [2,3,5];2 function_name [] remove_checksum;3 parameters [4];4 identifier [] path;5 block [6,15];6 expression_statement [7];7 assignment [8,9];8 identifier [] path;9 call [10,13];10 attribute [11,12];11 string [] {}.md5sum;12 identifier [] format;13 argument_list [14];14 identifier [] ... | Remove the checksum of an image from cache if exists |
0 module [1];1 function_definition [2,3,5];2 function_name [] grow;3 parameters [4];4 identifier [] self;5 block [6,8,17,23];6 expression_statement [7];7 string [] Add another worker to the pool.;8 expression_statement [9];9 assignment [10,11];10 identifier [] t;11 call [12,15];12 attribute [13,14];13 identifier [] sel... | Add another worker to the pool. |
0 module [1];1 function_definition [2,3,20];2 function_name [] set_config;3 parameters [4,5,8,11,14,17];4 identifier [] self;5 default_parameter [6,7];6 identifier [] on;7 None [];8 default_parameter [9,10];9 identifier [] long;10 None [];11 default_parameter [12,13];12 identifier [] lat;13 None [];14 default_parameter... | Change config of a Daylight sensor. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _earth_orientation;3 parameters [4];4 identifier [] date;5 block [6,17,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] ttt;9 attribute [10,16];10 call [11,14];11 attribute [12,13];12 identifier [] date;13 identifier [] change_scale;14 argum... | Earth orientation parameters in degrees |
0 module [1];1 function_definition [2,3,5];2 function_name [] expanded_transform;3 parameters [4];4 identifier [] self;5 block [6,17,59];6 expression_statement [7];7 assignment [8,9];8 identifier [] segments;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _expand_transform;13 argument_list [1... | Expands the transform string into segments |
0 module [1];1 function_definition [2,3,6];2 function_name [] callback;3 parameters [4,5];4 identifier [] self;5 identifier [] provider;6 block [7,16];7 expression_statement [8];8 assignment [9,10];9 identifier [] provider;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] get_provider;14 argum... | Handles 3rd party callback and processes it's data |
0 module [1];1 function_definition [2,3,12];2 function_name [] home_z;3 parameters [4,5];4 identifier [] self;5 typed_default_parameter [6,7,11];6 identifier [] mount;7 type [8];8 attribute [9,10];9 identifier [] top_types;10 identifier [] Mount;11 None [];12 block [13,39];13 if_statement [14,16,27];14 not_operator [15... | Home the two z-axes |
0 module [1];1 function_definition [2,3,7];2 function_name [] open;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8];8 if_statement [9,28,41];9 boolean_operator [10,19] or;10 comparison_operator [11,14] in;11 attribute [12,13];12 identifier [] self;13 identifier [... | Append an opening tag. |
0 module [1];1 function_definition [2,3,14];2 function_name [] render_label;3 parameters [4,5,8,11];4 identifier [] content;5 default_parameter [6,7];6 identifier [] label_for;7 None [];8 default_parameter [9,10];9 identifier [] label_class;10 None [];11 default_parameter [12,13];12 identifier [] label_title;13 string ... | Render a label with content |
0 module [1];1 function_definition [2,3,6];2 function_name [] draw_commands;3 parameters [4,5];4 identifier [] self;5 identifier [] surf;6 block [7,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] past_abilities;10 set_comprehension [11,14,19];11 attribute [12,13];12 identifier [] act;13 identifier []... | Draw the list of available commands. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _update_clipper;3 parameters [4];4 identifier [] self;5 block [6,37,45,55];6 if_statement [7,16,25];7 boolean_operator [8,11] and;8 attribute [9,10];9 identifier [] self;10 identifier [] clip_children;11 comparison_operator [12,15] is;12 attribute [13,14];13... | Called whenever the clipper for this widget may need to be updated. |
0 module [1];1 function_definition [2,3,5];2 function_name [] render_url;3 parameters [4];4 identifier [] self;5 block [6,20,36];6 expression_statement [7];7 assignment [8,9];8 identifier [] url;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] url;14 identifier [] format;1... | Render the final URL based on available variables |
0 module [1];1 function_definition [2,3,9];2 function_name [] add_bgp_error_metadata;3 parameters [4,5,6];4 identifier [] code;5 identifier [] sub_code;6 default_parameter [7,8];7 identifier [] def_desc;8 string [] unknown;9 block [10,33,73];10 if_statement [11,21];11 comparison_operator [12,20] is not;12 call [13,16];... | Decorator for all exceptions that want to set exception class meta-data. |
0 module [1];1 function_definition [2,3,12,18];2 function_name [] _combined_wildcards_iter;3 parameters [4];4 typed_parameter [5,6];5 identifier [] flatterm;6 type [7];7 generic_type [8,9];8 identifier [] Iterator;9 type_parameter [10];10 type [11];11 identifier [] TermAtom;12 type [13];13 generic_type [14,15];14 ident... | Combine consecutive wildcards in a flatterm into a single one. |
0 module [1];1 function_definition [2,3,8];2 function_name [] ConsultarTipoRetencion;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] sep;7 string [] ||;8 block [9,11,41,48,58];9 expression_statement [10];10 string [] Consulta de tipos de Retenciones.;11 expression_statement [12];12 ass... | Consulta de tipos de Retenciones. |
0 module [1];1 function_definition [2,3,7];2 function_name [] add_package;3 parameters [4,5,6];4 identifier [] self;5 identifier [] check_name;6 identifier [] package;7 block [8,17,27,38,60];8 expression_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _packa... | Add a Package to the catalog for the given check |
0 module [1];1 function_definition [2,3,8];2 function_name [] _increment;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] n;7 integer [] 1;8 block [9];9 if_statement [10,19,36];10 comparison_operator [11,14] >=;11 attribute [12,13];12 identifier [] self;13 identifier [] _cur_position;14... | Move forward n tokens in the stream. |
0 module [1];1 function_definition [2,3,6];2 function_name [] search_browser;3 parameters [4,5];4 identifier [] self;5 identifier [] text;6 block [7,18,29,38,45,56,67];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] impl;13 identifier [] get;14 ar... | do a slow search via the website and return the first match |
0 module [1];1 function_definition [2,3,6];2 function_name [] pcap_name;3 parameters [4,5];4 identifier [] self;5 identifier [] devname;6 block [7];7 try_statement [8,19,29];8 block [9];9 expression_statement [10];10 assignment [11,12];11 identifier [] pcap_name;12 attribute [13,18];13 subscript [14,17];14 attribute [1... | Return pcap device name for given Windows device name. |
0 module [1];1 function_definition [2,3,5];2 function_name [] op_symbol;3 parameters [4];4 identifier [] op_node;5 block [6,75,90];6 expression_statement [7];7 assignment [8,9];8 identifier [] ops;9 dictionary [10,15,20,25,30,35,40,45,50,55,60,65,70];10 pair [11,14];11 attribute [12,13];12 identifier [] ast;13 identifi... | Get the GLSL symbol for a Python operator. |
0 module [1];1 function_definition [2,3,5];2 function_name [] clear_caches;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,14];7 identifier [] element_name;8 call [9,10];9 identifier [] dir;10 argument_list [11];11 attribute [12,13];12 identifier [] self;13 identifier [] components;14 block [15,2... | Clears the Caches for all model elements |
0 module [1];1 function_definition [2,3,4];2 function_name [] revnet_base;3 parameters [];4 block [5,13,25,37,45,57,65,73,81,93,101,109,115,121,127,133,139,145,151,157,163,169,175];5 expression_statement [6];6 assignment [7,8];7 identifier [] hparams;8 call [9,12];9 attribute [10,11];10 identifier [] common_hparams;11 ... | Default hparams for Revnet. |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_unix_ts;3 parameters [4];4 identifier [] start_time;5 block [6,60];6 if_statement [7,12,54];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] start_time;11 identifier [] datetime;12 block [13,41];13 if_statement [14,18,30];1... | Given a datetime object, returns its value as a unix timestamp |
0 module [1];1 function_definition [2,3,14];2 function_name [] setOutputObject;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] newOutput;7 call [8,11];8 attribute [9,10];9 identifier [] output;10 identifier [] CalcpkgOutput;11 argument_list [12,13];12 True [];13 True [];14 block [15];1... | Set an object where all output from calcpkg will be redirected to for this repository |
0 module [1];1 function_definition [2,3,7];2 function_name [] print_region_quota;3 parameters [4,5,6];4 identifier [] access_token;5 identifier [] sub_id;6 identifier [] region;7 block [8,15,26,52];8 expression_statement [9];9 call [10,11];10 identifier [] print;11 argument_list [12];12 binary_operator [13,14] +;13 ide... | Print the Compute usage quota for a specific region |
0 module [1];1 function_definition [2,3,7];2 function_name [] get;3 parameters [4,5,6];4 identifier [] self;5 identifier [] namespace;6 identifier [] key;7 block [8,23];8 expression_statement [9];9 assignment [10,11];10 identifier [] cfg;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] self;15... | Get a specific configuration item |
0 module [1];1 function_definition [2,3,11];2 function_name [] onchain_exchange;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] withdraw_crypto;6 identifier [] withdraw_address;7 identifier [] value;8 default_parameter [9,10];9 identifier [] unit;10 string [] satoshi;11 block [12,32,43,60,66,76,103];12 ex... | This method is like `add_output` but it sends to another |
0 module [1];1 function_definition [2,3,5];2 function_name [] spec;3 parameters [4];4 identifier [] self;5 block [6,12,18,26];6 import_from_statement [7,10];7 dotted_name [8,9];8 identifier [] ambry_sources;9 identifier [] sources;10 dotted_name [11];11 identifier [] SourceSpec;12 expression_statement [13];13 assignmen... | Return a SourceSpec to describe this source |
0 module [1];1 function_definition [2,3,9];2 function_name [] bethe_fermi;3 parameters [4,5,6,7,8];4 identifier [] energy;5 identifier [] quasipart;6 identifier [] shift;7 identifier [] hopping;8 identifier [] beta;9 block [10];10 return_statement [11];11 binary_operator [12,21,22] *;12 call [13,14];13 identifier [] fe... | product of the bethe lattice dos, fermi distribution |
0 module [1];1 function_definition [2,3,4];2 function_name [] _get_gcloud_sdk_credentials;3 parameters [];4 block [5,11,20,35,44,56];5 import_from_statement [6,9];6 dotted_name [7,8];7 identifier [] google;8 identifier [] auth;9 dotted_name [10];10 identifier [] _cloud_sdk;11 expression_statement [12];12 assignment [13... | Gets the credentials and project ID from the Cloud SDK. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _postprocess;3 parameters [4];4 identifier [] valuestr;5 block [6,15,24,28,32,36,45,96,116,132,142,174,185];6 expression_statement [7];7 assignment [8,9];8 identifier [] intpattern;9 call [10,13];10 attribute [11,12];11 identifier [] re;12 identifier [] comp... | Takes value as str, returns str, int, float, date, datetime, or time |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_metadata;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 [] metadata;11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] fe... | Get header information and store as metadata for the endpoint. |
0 module [1];1 function_definition [2,3,6];2 function_name [] read;3 parameters [4,5];4 identifier [] self;5 identifier [] _file;6 block [7,48];7 with_statement [8,17];8 with_clause [9];9 with_item [10];10 as_pattern [11,15];11 call [12,13];12 identifier [] open;13 argument_list [14];14 identifier [] _file;15 as_patter... | return local file contents as endpoint. |
0 module [1];1 function_definition [2,3,5];2 function_name [] start_logger;3 parameters [4];4 identifier [] self;5 block [6,17,26,38,47];6 expression_statement [7];7 assignment [8,9];8 identifier [] level;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] real_level;13 argument_list [14];14 attr... | Enables the root logger and configures extra loggers. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _approximate_unkown_bond_lengths;3 parameters [4];4 identifier [] self;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] dataset;9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] lengths;13 identifier ... | Completes the bond length database with approximations based on VDW radii |
0 module [1];1 function_definition [2,3,5];2 function_name [] status;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,15];8 attribute [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] repository;13 identifier [] _repo;14 identifier [] status;15 argu... | Returns modified, added, removed, deleted files for current changeset |
0 module [1];1 function_definition [2,3,5];2 function_name [] escape;3 parameters [4];4 identifier [] self;5 block [6,24,62];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] obj;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] self;15 iden... | Escape a string for HTML interpolation. |
0 module [1];1 function_definition [2,3,14];2 function_name [] write_long;3 parameters [4,5,6];4 identifier [] self;5 identifier [] n;6 default_parameter [7,8];7 identifier [] pack;8 attribute [9,13];9 call [10,11];10 identifier [] Struct;11 argument_list [12];12 string [] >I;13 identifier [] pack;14 block [15,41];15 i... | Write an integer as an unsigned 32-bit value. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_default_annual_spacing;3 parameters [4];4 identifier [] nyears;5 block [6,106];6 if_statement [7,10,19,32,45,58,71,84];7 comparison_operator [8,9] <;8 identifier [] nyears;9 integer [] 11;10 block [11];11 expression_statement [12];12 assignment [13,16];... | Returns a default spacing between consecutive ticks for annual data. |
0 module [1];1 function_definition [2,3,13,15];2 function_name [] split_by_idx;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] valid_idx;7 type [8];8 generic_type [9,10];9 identifier [] Collection;10 type_parameter [11];11 type [12];12 identifier [] int;13 type [14];14 string [] ItemList... | Split the data according to the indexes in `valid_idx`. |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_dict;3 parameters [4];4 identifier [] self;5 block [6,13];6 expression_statement [7];7 assignment [8,9];8 identifier [] attrs;9 call [10,11];10 identifier [] vars;11 argument_list [12];12 identifier [] self;13 return_statement [14];14 dictionary_comprehen... | Package up the public attributes as a dict. |
0 module [1];1 function_definition [2,3,11];2 function_name [] on_unicode_checkbox;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] w;7 None [];8 default_parameter [9,10];9 identifier [] state;10 False [];11 block [12,20,28,67,84];12 expression_statement [13];13 call [14,17];14 attrib... | Enable smooth edges if utf-8 is supported |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_num_interval;3 parameters [4,5,6];4 identifier [] config;5 identifier [] num_pre;6 identifier [] num_post;7 block [8,18,35];8 expression_statement [9];9 assignment [10,11];10 identifier [] post;11 conditional_expression [12,16,17] if;12 call [13,14];13 ... | Returns numerical interval based on optionals num_pre, num_post values |
0 module [1];1 function_definition [2,3,12];2 function_name [] create;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] request;6 default_parameter [7,8];7 identifier [] parent_lookup_seedteam;8 None [];9 default_parameter [10,11];10 identifier [] parent_lookup_seedteam__organization;11 None [];12 block [13,2... | Add a permission to a team. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _poll_trigger;3 parameters [4];4 identifier [] self;5 block [6];6 try_statement [7,23];7 block [8];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] write;13 argument_list [14,17];14 attribute [15,16];15 iden... | Trigger activity for the caller by writting a NUL to the self-pipe. |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_dict;3 parameters [4];4 identifier [] self;5 block [6,18];6 expression_statement [7];7 assignment [8,9];8 identifier [] dicts;9 list_comprehension [10,13];10 attribute [11,12];11 identifier [] x;12 identifier [] as_dict;13 for_in_clause [14,15];14 identif... | Return all child objects in nested dict. |
0 module [1];1 function_definition [2,3,6];2 function_name [] from_name;3 parameters [4,5];4 identifier [] cls;5 identifier [] name;6 block [7,15,19,33];7 expression_statement [8];8 assignment [9,10];9 identifier [] result;10 call [11,14];11 attribute [12,13];12 identifier [] cls;13 identifier [] list;14 argument_list ... | Retrieve vlan id associated to a name. |
0 module [1];1 function_definition [2,3,20,22];2 function_name [] change_column_length;3 parameters [4,8,12,16];4 typed_parameter [5,6];5 identifier [] table;6 type [7];7 identifier [] Table;8 typed_parameter [9,10];9 identifier [] column;10 type [11];11 identifier [] Column;12 typed_parameter [13,14];13 identifier [] ... | Change the column length in the supplied table |
0 module [1];1 function_definition [2,3,7];2 function_name [] read_event;3 parameters [4];4 default_parameter [5,6];5 identifier [] suppress;6 False [];7 block [8,19,31];8 expression_statement [9];9 assignment [10,11];10 identifier [] queue;11 call [12,15];12 attribute [13,14];13 identifier [] _queue;14 identifier [] Q... | Blocks until a keyboard event happens, then returns that event. |
0 module [1];1 function_definition [2,3,9,15];2 function_name [] fetch_deposits;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] limit;7 type [8];8 identifier [] int;9 type [10];10 generic_type [11,12];11 identifier [] List;12 type_parameter [13];13 type [14];14 identifier [] Deposit;15 b... | Fetch latest deposits, must provide a limit. |
0 module [1];1 function_definition [2,3,7];2 function_name [] createNew;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] store;6 identifier [] pathSegments;7 block [8,23,66,72,78];8 if_statement [9,14];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] pathSegments;13 identifie... | Create a new SubStore, allocating a new file space for it. |
0 module [1];1 function_definition [2,3,8];2 function_name [] rdf_source;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] aformat;7 string [] turtle;8 block [9,27];9 if_statement [10,17];10 boolean_operator [11,12] and;11 identifier [] aformat;12 comparison_operator [13,14] not in;13 id... | Serialize graph using the format required |
0 module [1];1 function_definition [2,3,7];2 function_name [] from_description;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] description;6 identifier [] attrs;7 block [8,12,16,24,35,95,101];8 expression_statement [9];9 assignment [10,11];10 identifier [] hash_key;11 None [];12 expression_statement [13];13 as... | Create an object from a dynamo3 response |
0 module [1];1 function_definition [2,3,5];2 function_name [] format_hsl;3 parameters [4];4 identifier [] hsl_color;5 block [6,13];6 expression_statement [7];7 assignment [8,12];8 pattern_list [9,10,11];9 identifier [] hue;10 identifier [] saturation;11 identifier [] lightness;12 identifier [] hsl_color;13 return_state... | Format hsl color as css color string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] toggle_value;3 parameters [4,5];4 identifier [] request;5 identifier [] name;6 block [7,21,31,42];7 expression_statement [8];8 assignment [9,10];9 identifier [] obj;10 call [11,18];11 attribute [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier ... | For manual shortcut links to perform toggle actions |
0 module [1];1 function_definition [2,3,5];2 function_name [] by_current_session;3 parameters [4];4 identifier [] cls;5 block [6,14,21];6 expression_statement [7];7 assignment [8,9];8 identifier [] session;9 call [10,13];10 attribute [11,12];11 identifier [] Session;12 identifier [] current_session;13 argument_list [];... | Returns current user session |
0 module [1];1 function_definition [2,3,5];2 function_name [] disconnect;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,10,15];7 pattern_list [8,9];8 identifier [] name;9 identifier [] wire;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] wires;14 argument_list [];15 blo... | Cut all wires and disconnect all connections established on this link |
0 module [1];1 function_definition [2,3,11];2 function_name [] _walk;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] root_path;7 string [];8 default_parameter [9,10];9 identifier [] root_id;10 string [];11 block [12,22,40];12 expression_statement [13];13 assignment [14,15];14 identif... | a generator method which walks the file structure of the dropbox collection |
0 module [1];1 function_definition [2,3,8];2 function_name [] _complete_exit;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] cmd;6 identifier [] args;7 identifier [] text;8 block [9,13];9 if_statement [10,11];10 identifier [] args;11 block [12];12 return_statement [];13 return_statement [14];14 list_compreh... | Find candidates for the 'exit' command. |
0 module [1];1 function_definition [2,3,10];2 function_name [] numpyview;3 parameters [4,5,6,7];4 identifier [] arr;5 identifier [] datatype;6 identifier [] shape;7 default_parameter [8,9];8 identifier [] raw;9 False [];10 block [11];11 if_statement [12,13,44];12 identifier [] raw;13 block [14];14 return_statement [15]... | Takes mp shared array and returns numpy array with given shape. |
0 module [1];1 function_definition [2,3,7];2 function_name [] main;3 parameters [4,5,6];4 identifier [] ctx;5 identifier [] opts;6 identifier [] version;7 block [8];8 if_statement [9,10,15];9 identifier [] version;10 block [11];11 expression_statement [12];12 call [13,14];13 identifier [] print_version;14 argument_list... | Handle entrypoint to CLI. |
0 module [1];1 function_definition [2,3,5];2 function_name [] __create_output_dir;3 parameters [4];4 identifier [] base_dir;5 block [6,19,23,58];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] root;10 identifier [] tail;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 id... | Ensure that the output directory base_dir exists. |
0 module [1];1 function_definition [2,3,5];2 function_name [] check_spinning_children;3 parameters [4];4 identifier [] self;5 block [6,19,31];6 expression_statement [7];7 assignment [8,9];8 identifier [] child_jobs;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] task_mast... | Stop children that are working on overdue jobs. |
0 module [1];1 function_definition [2,3,9];2 function_name [] vdp_vlan_change_cb;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] port_uuid;6 identifier [] lvid;7 identifier [] vdp_vlan;8 identifier [] fail_reason;9 block [10,24];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifi... | Callback function for updating the VDP VLAN in DB. |
0 module [1];1 function_definition [2,3,6];2 function_name [] write_batch_json;3 parameters [4,5];4 identifier [] self;5 identifier [] content;6 block [7,24,47];7 expression_statement [8];8 assignment [9,10];9 identifier [] timestamp;10 call [11,21];11 attribute [12,20];12 call [13,14];13 identifier [] str;14 argument_... | Write batch json data to a file. |
0 module [1];1 function_definition [2,3,7];2 function_name [] rd_files;3 parameters [4,5,6];4 identifier [] self;5 identifier [] study_fn;6 identifier [] pop_fn;7 block [8,20,37];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] study;12 identifier [] pop;13 call [14,17];14 attrib... | Read files and return study and population. |
0 module [1];1 function_definition [2,3,5];2 function_name [] journals;3 parameters [4];4 identifier [] self;5 block [6];6 try_statement [7,77];7 block [8,14,38,50,75];8 expression_statement [9];9 assignment [10,11];10 identifier [] target;11 attribute [12,13];12 identifier [] self;13 identifier [] _item_path;14 expres... | Retrieve journals attribute for this very Issue |
0 module [1];1 function_definition [2,3,9];2 function_name [] _split_tidy;3 parameters [4,5,6];4 identifier [] self;5 identifier [] string;6 default_parameter [7,8];7 identifier [] maxsplit;8 None [];9 block [10];10 if_statement [11,14,27];11 comparison_operator [12,13] is;12 identifier [] maxsplit;13 None [];14 block ... | Rstrips string for \n and splits string for \t |
0 module [1];1 function_definition [2,3,5];2 function_name [] allReadGroups;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,13];7 identifier [] dataset;8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] getDatasets;12 argument_list [];13 block [14];14 for_statement [15,16,21... | Return an iterator over all read groups in the data repo |
0 module [1];1 function_definition [2,3,6];2 function_name [] load;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7];7 if_statement [8,13,16,31];8 comparison_operator [9,12] is;9 attribute [10,11];10 identifier [] self;11 identifier [] property_type;12 None [];13 block [14];14 return_statement [... | Load a value, converting it to the proper type if validation_type exists. |
0 module [1];1 function_definition [2,3,5];2 function_name [] current_index;3 parameters [4];4 identifier [] self;5 block [6,25];6 expression_statement [7];7 assignment [8,9];8 identifier [] i;9 call [10,17];10 attribute [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] _parent;15... | Get the currently selected index in the parent table view. |
0 module [1];1 function_definition [2,3,6];2 function_name [] console;3 parameters [4,5];4 identifier [] cls;5 identifier [] id;6 block [7,26,33,40,56,62];7 expression_statement [8];8 assignment [9,10];9 identifier [] oper;10 call [11,14];11 attribute [12,13];12 identifier [] cls;13 identifier [] call;14 argument_list ... | Open a console to a PaaS instance. |
0 module [1];1 function_definition [2,3,6];2 function_name [] union;3 parameters [4];4 list_splat_pattern [5];5 identifier [] args;6 block [7,13,19,34];7 if_statement [8,10];8 not_operator [9];9 identifier [] args;10 block [11];11 return_statement [12];12 list [] [];13 expression_statement [14];14 assignment [15,16];15... | Return the union of lists, ordering by first seen in any list |
0 module [1];1 function_definition [2,3,22];2 function_name [] main;3 parameters [4,5,6,7,8,9,10,11,12,13,16,19];4 identifier [] host;5 identifier [] port;6 identifier [] timeout;7 identifier [] itimeout;8 identifier [] qsize;9 identifier [] backlog;10 identifier [] maxtry;11 identifier [] bsize;12 identifier [] verbos... | Simple python implementation of a socks5 proxy server. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_magnitude_term;3 parameters [4,5,6];4 identifier [] self;5 identifier [] C;6 identifier [] mag;7 block [8];8 if_statement [9,16,34];9 comparison_operator [10,11] >=;10 identifier [] mag;11 subscript [12,15];12 attribute [13,14];13 identifier [] self;14 ... | Returns the magnitude scaling term - equation 3 |
0 module [1];1 function_definition [2,3,5];2 function_name [] freeze_js;3 parameters [4];4 identifier [] html;5 block [6,15,21,112];6 expression_statement [7];7 assignment [8,9];8 identifier [] matches;9 call [10,13];10 attribute [11,12];11 identifier [] js_src_pattern;12 identifier [] finditer;13 argument_list [14];14... | Freeze all JS assets to the rendered html itself. |
0 module [1];1 function_definition [2,3,6];2 function_name [] send;3 parameters [4,5];4 identifier [] term;5 identifier [] stream;6 block [7,16,29,36,43];7 expression_statement [8];8 assignment [9,10];9 identifier [] payload;10 call [11,14];11 attribute [12,13];12 identifier [] erlang;13 identifier [] term_to_binary;14... | Write an Erlang term to an output stream. |
0 module [1];1 function_definition [2,3,5];2 function_name [] extract_full_summary_from_signature;3 parameters [4];4 identifier [] operation;5 block [6,15,19,23,53,69];6 expression_statement [7];7 assignment [8,9];8 identifier [] lines;9 call [10,13];10 attribute [11,12];11 identifier [] inspect;12 identifier [] getdoc... | Extract the summary from the docstring of the command. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getParameters;3 parameters [4];4 identifier [] self;5 block [6,23];6 expression_statement [7];7 assignment [8,9];8 identifier [] parameters;9 call [10,11];10 identifier [] lock_and_call;11 argument_list [12,20];12 lambda [13];13 call [14,19];14 attribute [15... | Get all the parameters declared. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _color_attr;3 parameters [4,5,6];4 identifier [] self;5 identifier [] ground;6 identifier [] attr;7 block [8,16,22];8 expression_statement [9];9 assignment [10,11];10 identifier [] attr;11 subscript [12,15];12 subscript [13,14];13 identifier [] colors;14 ide... | Given a color attribute, set the current cursor appropriately. |
0 module [1];1 function_definition [2,3,5];2 function_name [] window_specialization;3 parameters [4];4 identifier [] typename;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] Extension;9 argument_list [10,18,27];10 call [11,14];11 attribute [12,13];12 string [] zipline.lib._{name}window;13 identifier [] ... | Make an extension for an AdjustedArrayWindow specialization. |
0 module [1];1 function_definition [2,3,7];2 function_name [] send_mfg_inspector_data;3 parameters [4,5,6];4 identifier [] inspector_proto;5 identifier [] credentials;6 identifier [] destination_url;7 block [8,16,31,39,47,77,84];8 expression_statement [9];9 assignment [10,11];10 identifier [] envelope;11 call [12,15];1... | Upload MfgEvent to steam_engine. |
0 module [1];1 function_definition [2,3,6];2 function_name [] fetch_status;3 parameters [4,5];4 identifier [] self;5 identifier [] request;6 block [7,27];7 expression_statement [8];8 assignment [9,10];9 identifier [] response;10 await [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] _que... | Fetches information pertaining to the valiator's status. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _build_models_query;3 parameters [4,5];4 identifier [] self;5 identifier [] query;6 block [7,15,66];7 expression_statement [8];8 assignment [9,10];9 identifier [] registered_models_ct;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [... | Builds a query from `query` that filters to documents only from registered models. |
0 module [1];1 function_definition [2,3,7];2 function_name [] calculate_response;3 parameters [4,5,6];4 identifier [] self;5 identifier [] challenge;6 identifier [] password;7 block [8,22,35];8 expression_statement [9];9 assignment [10,11];10 identifier [] to_hash;11 call [12,20];12 attribute [13,19];13 () [14];14 bina... | Calculate response for the challenge-response authentication |
0 module [1];1 function_definition [2,3,6];2 function_name [] offset;3 parameters [4,5];4 identifier [] self;5 identifier [] offset;6 block [7,15,28];7 expression_statement [8];8 assignment [9,10];9 identifier [] clone;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _clone;14 argument_list [... | Fetch results after `offset` value |
0 module [1];1 function_definition [2,3,7];2 function_name [] on_backward_end;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,10];8 expression_statement [9];9 string [] Clip the gradient before the optimizer step.;10 if_statement [11,14];11 attribute [12,13];12 i... | Clip the gradient before the optimizer step. |
0 module [1];1 function_definition [2,3,12];2 function_name [] evalsha;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] digest;6 default_parameter [7,8];7 identifier [] keys;8 list [] [];9 default_parameter [10,11];10 identifier [] args;11 list [] [];12 block [13];13 return_statement [14];14 call [15,18];15 ... | Execute a Lua script server side by its SHA1 digest. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _put_bucket_policy;3 parameters [4];4 identifier [] self;5 block [6,61,69];6 if_statement [7,12,44];7 subscript [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] s3props;11 string [] bucket_policy;12 block [13,26];13 expression_statement [14];1... | Attach a bucket policy to app bucket. |
0 module [1];1 function_definition [2,3,14];2 function_name [] _raise_error_if_column_exists;3 parameters [4,5,8,11];4 identifier [] dataset;5 default_parameter [6,7];6 identifier [] column_name;7 string [] dataset;8 default_parameter [9,10];9 identifier [] dataset_variable_name;10 string [] dataset;11 default_paramete... | Check if a column exists in an SFrame with error message. |
0 module [1];1 function_definition [2,3,7];2 function_name [] run;3 parameters [4,5];4 identifier [] command;5 dictionary_splat_pattern [6];6 identifier [] kw;7 block [8,40];8 if_statement [9,14];9 comparison_operator [10,13] ==;10 attribute [11,12];11 identifier [] sys;12 identifier [] platform;13 string [] win32;14 b... | Run `command`, catch any exception, and return lines of output. |
0 module [1];1 function_definition [2,3,4];2 function_name [] clear_db;3 parameters [];4 block [5,9];5 expression_statement [6];6 assignment [7,8];7 identifier [] cursor;8 string [] 0;9 while_statement [10,13];10 comparison_operator [11,12] !=;11 identifier [] cursor;12 integer [] 0;13 block [14,31];14 expression_state... | Clear the entire db. |
0 module [1];1 function_definition [2,3,17];2 function_name [] update;3 parameters [4,5,8,11,14];4 identifier [] self;5 default_parameter [6,7];6 identifier [] device_json;7 None [];8 default_parameter [9,10];9 identifier [] info_json;10 None [];11 default_parameter [12,13];12 identifier [] settings_json;13 None [];14 ... | Update the internal device json data. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,24];7 expression_statement [8];8 assignment [9,10];9 identifier [] path;10 conditional_expression [11,12,17] if;11 identifier [] value;12 call [13,14];13 identifier [] isinstance;14... | Create a safe directory from a value. |
0 module [1];1 function_definition [2,3,6];2 function_name [] report;3 parameters [4,5];4 identifier [] self;5 identifier [] req_handler;6 block [7,9,30,49];7 expression_statement [8];8 string [] Send a response corresponding to this error to the client;9 if_statement [10,13];10 attribute [11,12];11 identifier [] self;... | Send a response corresponding to this error to the client |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.