sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,15];2 function_name [] on_backward_begin;3 parameters [4,5,9,13];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] last_loss;7 type [8];8 identifier [] Rank0Tensor;9 typed_parameter [10,11];10 identifier [] last_input;11 type [12];12 identifier [] Tensor;13 dictionary_... | Apply AR and TAR to `last_loss`. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _lockstep_fcn;3 parameters [4];4 identifier [] values;5 block [6,13,24];6 expression_statement [7];7 assignment [8,12];8 pattern_list [9,10,11];9 identifier [] numrequired;10 identifier [] fcn;11 identifier [] args;12 identifier [] values;13 with_statement [... | Wrapper to ensure that all processes execute together |
0 module [1];1 function_definition [2,3,6];2 function_name [] _unwatch;3 parameters [4,5];4 identifier [] self;5 identifier [] conn;6 block [7,9,17,26];7 expression_statement [8];8 string [] Unwatches all previously specified keys;9 expression_statement [10];10 await [11];11 call [12,15];12 attribute [13,14];13 identif... | Unwatches all previously specified keys |
0 module [1];1 function_definition [2,3,6];2 function_name [] fits;3 parameters [4,5];4 identifier [] self;5 identifier [] jobShape;6 block [7];7 return_statement [8];8 boolean_operator [9,40,41] and;9 boolean_operator [10,30,31] and;10 boolean_operator [11,20,21] and;11 comparison_operator [12,15] <=;12 attribute [13,... | Check if a job shape's resource requirements will fit within this allocation. |
0 module [1];1 function_definition [2,3,7];2 function_name [] random;3 parameters [4];4 default_parameter [5,6];5 identifier [] magnitude;6 integer [] 1;7 block [8,22];8 expression_statement [9];9 assignment [10,11];10 identifier [] theta;11 call [12,15];12 attribute [13,14];13 identifier [] random;14 identifier [] uni... | Create a unit vector pointing in a random direction. |
0 module [1];1 function_definition [2,3,6];2 function_name [] lookup_full_hashes;3 parameters [4,5];4 identifier [] self;5 identifier [] hash_values;6 block [7,13,96];7 expression_statement [8];8 assignment [9,10];9 identifier [] q;10 assignment [11,12];11 identifier [] output;12 list [] [];13 with_statement [14,24];14... | Query DB to see if hash is blacklisted |
0 module [1];1 function_definition [2,3,8,12];2 function_name [] state_to_wavefunction;3 parameters [4];4 typed_parameter [5,6];5 identifier [] state;6 type [7];7 identifier [] State;8 type [9];9 attribute [10,11];10 identifier [] pyquil;11 identifier [] Wavefunction;12 block [13,23,31,43];13 expression_statement [14];... | Convert a QuantumFlow state to a pyQuil Wavefunction |
0 module [1];1 function_definition [2,3,6];2 function_name [] copy_uri_options;3 parameters [4,5];4 identifier [] hosts;5 identifier [] mongodb_uri;6 block [7,30,36,45];7 if_statement [8,11,24];8 comparison_operator [9,10] in;9 string [] ?;10 identifier [] mongodb_uri;11 block [12];12 expression_statement [13];13 assig... | Returns a MongoDB URI to hosts with the options from mongodb_uri. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _random_cycle;3 parameters [4,5];4 identifier [] adj;5 identifier [] random_state;6 block [7,19,34,38,43,50];7 expression_statement [8];8 assignment [9,10];9 identifier [] n;10 call [11,14];11 attribute [12,13];12 identifier [] random_state;13 identifier [] ... | Find a cycle using a random graph walk. |
0 module [1];1 function_definition [2,3,6];2 function_name [] init_celery;3 parameters [4,5];4 identifier [] self;5 identifier [] celery;6 block [7,16,74,83,92,104,117,123,132,148,154,175];7 expression_statement [8];8 assignment [9,10];9 identifier [] count;10 call [11,12];11 identifier [] next;12 argument_list [13];13... | Registers the celery tasks on the hub object. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _list_element_starts_with;3 parameters [4,5];4 identifier [] items;5 identifier [] needle;6 block [7,21];7 for_statement [8,9,10];8 identifier [] item;9 identifier [] items;10 block [11];11 if_statement [12,18];12 call [13,16];13 attribute [14,15];14 identif... | True of any of the list elements starts with needle |
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,19,56,83,113,133,163,170];7 expression_statement [8];8 assignment [9,10];9 identifier [] args;10 dictionary [];11 expression_statement [12];12 assignment [13,14];13 identif... | Initialize a OutputData object from a json dictionary. |
0 module [1];1 function_definition [2,3,10];2 function_name [] post;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] url;6 identifier [] data;7 default_parameter [8,9];8 identifier [] params;9 None [];10 block [11,28];11 expression_statement [12];12 assignment [13,14];13 identifier [] r;14 call [15,20];15 at... | Initiate a POST request |
0 module [1];1 function_definition [2,3,12];2 function_name [] register_annotype_converter;3 parameters [4,5,6,9];4 identifier [] cls;5 identifier [] types;6 default_parameter [7,8];7 identifier [] is_array;8 False [];9 default_parameter [10,11];10 identifier [] is_mapping;11 False [];12 block [13,26,48];13 if_statemen... | Register this class as a converter for Anno instances |
0 module [1];1 function_definition [2,3,5];2 function_name [] administration;3 parameters [4];4 identifier [] self;5 block [6,12,24,28,38,48,57,84];6 expression_statement [7];7 assignment [8,9];8 identifier [] url;9 attribute [10,11];10 identifier [] self;11 identifier [] _url;12 expression_statement [13];13 assignment... | returns the hostservice object to manage the back-end functions |
0 module [1];1 function_definition [2,3,5];2 function_name [] fixPath;3 parameters [4];4 identifier [] path;5 block [6,24,36];6 expression_statement [7];7 assignment [8,9];8 identifier [] path;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier [] abspath;15 ... | Ensures paths are correct for linux and windows |
0 module [1];1 function_definition [2,3,6];2 function_name [] trace;3 parameters [4,5];4 identifier [] self;5 identifier [] n;6 block [7,9,13,21,32,38];7 expression_statement [8];8 string [] Restore the position in the history of individual v's nodes;9 expression_statement [10];10 assignment [11,12];11 identifier [] tr... | Restore the position in the history of individual v's nodes |
0 module [1];1 function_definition [2,3,5];2 function_name [] add_link;3 parameters [4];4 identifier [] self;5 block [6,8,19,29];6 expression_statement [7];7 string [] Create a new internal link;8 expression_statement [9];9 assignment [10,11];10 identifier [] n;11 binary_operator [12,18] +;12 call [13,14];13 identifier... | Create a new internal link |
0 module [1];1 function_definition [2,3,7];2 function_name [] spawn_batch_jobs;3 parameters [4,5,6];4 identifier [] job;5 identifier [] shared_ids;6 identifier [] input_args;7 block [8,12,18,70];8 expression_statement [9];9 assignment [10,11];10 identifier [] samples;11 list [] [];12 expression_statement [13];13 assign... | Spawns an alignment job for every sample in the input configuration file |
0 module [1];1 function_definition [2,3,5];2 function_name [] _list_items;3 parameters [4];4 identifier [] queue;5 block [6,13,58];6 expression_statement [7];7 assignment [8,9];8 identifier [] con;9 call [10,11];10 identifier [] _conn;11 argument_list [12];12 identifier [] queue;13 with_statement [14,17];14 with_clause... | Private function to list contents of a queue |
0 module [1];1 function_definition [2,3,9];2 function_name [] dhcp_request;3 parameters [4,7];4 default_parameter [5,6];5 identifier [] iface;6 None [];7 dictionary_splat_pattern [8];8 identifier [] kargs;9 block [10,22,33,42];10 if_statement [11,16];11 comparison_operator [12,15] !=;12 attribute [13,14];13 identifier ... | Send a DHCP discover request and return the answer |
0 module [1];1 function_definition [2,3,5];2 function_name [] disablingBuidCache;3 parameters [4];4 identifier [] self;5 block [6,17,19];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] buidcache;11 call [12,15];12 attribute [13,14];13 identifier [] s_cache;14 iden... | Disable and invalidate the layer buid cache for migration |
0 module [1];1 function_definition [2,3,5];2 function_name [] view_count;3 parameters [4];4 identifier [] self;5 block [6,14,22,34];6 expression_statement [7];7 assignment [8,9];8 identifier [] views;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] list_views;13 argument_list [];14 expression_... | Return the number of opened views. |
0 module [1];1 function_definition [2,3,5];2 function_name [] map_services;3 parameters [4];4 identifier [] self;5 block [6,12,31,35,44,64];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] get_simple_devices_info;11 argument_list [];12 expression_statement [13];13 assign... | Get full Vera device service info. |
0 module [1];1 function_definition [2,3,6];2 function_name [] to_integer;3 parameters [4,5];4 identifier [] value;5 identifier [] ctx;6 block [7,80];7 if_statement [8,13,19,28,62];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] value;12 identifier [] bool;13 block [14];14 return_state... | Tries conversion of any value to an integer |
0 module [1];1 function_definition [2,3,11];2 function_name [] loads;3 parameters [4,5,8];4 identifier [] s;5 default_parameter [6,7];6 identifier [] cls;7 identifier [] BinaryQuadraticModel;8 default_parameter [9,10];9 identifier [] vartype;10 None [];11 block [12];12 return_statement [13];13 call [14,15];14 identifie... | Load a COOrdinate formatted binary quadratic model from a string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] layer_to_solr;3 parameters [4,5];4 identifier [] self;5 identifier [] layer;6 block [7,11,19,28,155,174];7 expression_statement [8];8 assignment [9,10];9 identifier [] success;10 True [];11 expression_statement [12];12 assignment [13,14];13 identifier [] mes... | Sync a layer in Solr. |
0 module [1];1 function_definition [2,3,4];2 function_name [] main;3 parameters [];4 block [5,16,33,47,61,69,79,98];5 expression_statement [6];6 assignment [7,8];7 identifier [] parser;8 call [9,12];9 attribute [10,11];10 identifier [] argparse;11 identifier [] ArgumentParser;12 argument_list [13];13 keyword_argument [... | Set up the server. |
0 module [1];1 function_definition [2,3,9];2 function_name [] update_cursor;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] dc;6 identifier [] grid;7 identifier [] row;8 identifier [] col;9 block [10,18,27,53];10 expression_statement [11];11 assignment [12,15];12 pattern_list [13,14];13 identifier [] old_... | Whites out the old cursor and draws the new one |
0 module [1];1 function_definition [2,3,12];2 function_name [] line;3 parameters [4,5,6,7,10];4 identifier [] self;5 identifier [] node;6 identifier [] coords;7 default_parameter [8,9];8 identifier [] close;9 False [];10 dictionary_splat_pattern [11];11 identifier [] kwargs;12 block [13,20,39,46,50,65,71,104,113,139];1... | Draw a svg line |
0 module [1];1 function_definition [2,3,5];2 function_name [] load_lsa_information;3 parameters [4];4 identifier [] self;5 block [6,26,34];6 if_statement [7,18];7 not_operator [8];8 () [9];9 comparison_operator [10,11,17] <;10 integer [] 49;11 call [12,13];12 identifier [] int;13 argument_list [14];14 attribute [15,16]... | Loads a dictionary from disk that maps permissible words to their LSA term vectors. |
0 module [1];1 function_definition [2,3,6];2 function_name [] actually_mount;3 parameters [4,5];4 identifier [] self;5 identifier [] client;6 block [7,17,26];7 expression_statement [8];8 assignment [9,10];9 identifier [] a_obj;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier... | Actually mount something in Vault |
0 module [1];1 function_definition [2,3,9];2 function_name [] project_name_changed;3 parameters [4,5,6];4 identifier [] self;5 identifier [] widget;6 default_parameter [7,8];7 identifier [] data;8 None [];9 block [10,39];10 if_statement [11,18,28];11 comparison_operator [12,17] !=;12 call [13,16];13 attribute [14,15];1... | Function controls whether run button is enabled |
0 module [1];1 function_definition [2,3,7];2 function_name [] disk_check_size;3 parameters [4,5,6];4 identifier [] ctx;5 identifier [] param;6 identifier [] value;7 block [8,42];8 if_statement [9,10];9 identifier [] value;10 block [11,30];11 if_statement [12,17,24];12 call [13,14];13 identifier [] isinstance;14 argumen... | Validation callback for disk size parameter. |
0 module [1];1 function_definition [2,3,5];2 function_name [] irreducible_causes;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] tuple;9 generator_expression [10,11,14];10 identifier [] link;11 for_in_clause [12,13];12 identifier [] link;13 identifier [] self;14 if_... | The set of irreducible causes in this |Account|. |
0 module [1];1 function_definition [2,3,6];2 function_name [] isHandlerPresent;3 parameters [4,5];4 identifier [] self;5 identifier [] event_name;6 block [7,24];7 if_statement [8,13];8 comparison_operator [9,10] not in;9 identifier [] event_name;10 attribute [11,12];11 identifier [] self;12 identifier [] handlers;13 bl... | Check if an event has an handler. |
0 module [1];1 function_definition [2,3,4];2 function_name [] main;3 parameters [];4 block [5,13,20,25];5 expression_statement [6];6 assignment [7,8];7 identifier [] alarm;8 call [9,10];9 identifier [] XBeeAlarm;10 argument_list [11,12];11 string [] /dev/ttyUSB0;12 string [] \x56\x78;13 expression_statement [14];14 ass... | Run through simple demonstration of alarm concept |
0 module [1];1 function_definition [2,3,8];2 function_name [] _get_filtered_study_ids;3 parameters [4,5];4 identifier [] shard;5 default_parameter [6,7];6 identifier [] include_aliases;7 False [];8 block [9,16,24];9 import_from_statement [10,14];10 dotted_name [11,12,13];11 identifier [] peyotl;12 identifier [] phylesy... | Optionally filters out aliases from standard doc-id list |
0 module [1];1 function_definition [2,3,5];2 function_name [] split_pdf;3 parameters [4];4 identifier [] pdf_path;5 block [6,13,17,87];6 expression_statement [7];7 assignment [8,9];8 identifier [] pdf;9 call [10,11];10 identifier [] PdfFileReader;11 argument_list [12];12 identifier [] pdf_path;13 expression_statement [... | Splits a multi-page pdf into a list of single page pdfs |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_id;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,11];8 attribute [9,10];9 string [];10 identifier [] join;11 argument_list [12];12 call [13,14];13 identifier [] map;14 argument_list [15,16];15 identifier [] str;16 ca... | Construct and return the identifier |
0 module [1];1 function_definition [2,3,6];2 function_name [] __try_parse_number;3 parameters [4,5];4 identifier [] self;5 identifier [] string;6 block [7];7 try_statement [8,14];8 block [9];9 return_statement [10];10 call [11,12];11 identifier [] int;12 argument_list [13];13 identifier [] string;14 except_clause [15,1... | Try to parse a string to a number, else return False. |
0 module [1];1 function_definition [2,3,6];2 function_name [] __add;3 parameters [4,5];4 identifier [] self;5 identifier [] token;6 block [7,16,22];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] __symbols;13 identifier [] append;14 argument_list ... | Unconditionally adds a token to the table. |
0 module [1];1 function_definition [2,3,9];2 function_name [] getProvStack;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] iden;7 type [8];8 identifier [] bytes;9 block [10,26,33];10 expression_statement [11];11 assignment [12,13];12 identifier [] retn;13 call [14,19];14 attribute [15,18... | Returns the provenance stack given the iden to it |
0 module [1];1 function_definition [2,3,4];2 function_name [] bootstrap_app;3 parameters [];4 block [5,12,16,35];5 import_from_statement [6,10];6 dotted_name [7,8,9];7 identifier [] salt;8 identifier [] netapi;9 identifier [] rest_cherrypy;10 dotted_name [11];11 identifier [] app;12 import_statement [13];13 dotted_name... | Grab the opts dict of the master config by trying to import Salt |
0 module [1];1 function_definition [2,3,8];2 function_name [] load;3 parameters [4,5];4 identifier [] provider;5 default_parameter [6,7];6 identifier [] config_location;7 identifier [] DEFAULT_CONFIG_DIR;8 block [9,13,17,112];9 expression_statement [10];10 assignment [11,12];11 identifier [] auth;12 None [];13 expressi... | Load provider specific auth info from file |
0 module [1];1 function_definition [2,3,5];2 function_name [] validate;3 parameters [4];4 identifier [] self;5 block [6,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] valids;9 list_comprehension [10,15,26];10 call [11,12];11 identifier [] getattr;12 argument_list [13,14];13 identifier [] self;14 iden... | Apply the `is_valid` methods to self and possibly raise a ValueError. |
0 module [1];1 function_definition [2,3,8];2 function_name [] next_batch;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] n;7 integer [] 1;8 block [9,21,39,52];9 if_statement [10,18];10 comparison_operator [11,17] ==;11 call [12,13];12 identifier [] len;13 argument_list [14];14 attribut... | Return the next requests that should be dispatched. |
0 module [1];1 function_definition [2,3,6];2 function_name [] form_valid;3 parameters [4,5];4 identifier [] self;5 identifier [] form;6 block [7,20,35];7 expression_statement [8];8 assignment [9,10];9 identifier [] response;10 call [11,18];11 attribute [12,17];12 call [13,14];13 identifier [] super;14 argument_list [15... | If form valid return response with action |
0 module [1];1 function_definition [2,3,6];2 function_name [] assume_role_credentials;3 parameters [4,5];4 identifier [] self;5 identifier [] arn;6 block [7,15,43,56,83];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] log;11 identifier [] info;12 argument_list [13,14];13 string [] Assuming... | Return the environment variables for an assumed role |
0 module [1];1 function_definition [2,3,14,16];2 function_name [] visit_UnaryOp;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 representation of `node`s operator and operand. |
0 module [1];1 function_definition [2,3,5];2 function_name [] iter_callback_properties;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,12];7 identifier [] name;8 call [9,10];9 identifier [] dir;10 argument_list [11];11 identifier [] self;12 block [13];13 if_statement [14,20];14 call [15,18];15 at... | Iterator to loop over all callback properties. |
0 module [1];1 function_definition [2,3,6];2 function_name [] input_file;3 parameters [4,5];4 identifier [] self;5 identifier [] _container;6 block [7,16,24,38,46];7 expression_statement [8];8 assignment [9,10];9 identifier [] p;10 call [11,14];11 attribute [12,13];12 identifier [] local;13 identifier [] path;14 argume... | Find the input path of a uchroot container. |
0 module [1];1 function_definition [2,3,7];2 function_name [] extract_secs;3 parameters [4,5,6];4 identifier [] self;5 identifier [] tx;6 identifier [] tx_in_idx;7 block [8,17,26,30];8 expression_statement [9];9 assignment [10,11];10 identifier [] sc;11 call [12,15];12 attribute [13,14];13 identifier [] tx;14 identifie... | For a given script solution, iterate yield its sec blobs |
0 module [1];1 function_definition [2,3,9];2 function_name [] modifie_many;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] dic;7 type [8];8 identifier [] dict;9 block [10];10 for_statement [11,14,19];11 pattern_list [12,13];12 identifier [] i;13 identifier [] v;14 call [15,18];15 attribu... | Convenience function which calls modifie on each element of dic |
0 module [1];1 function_definition [2,3,5];2 function_name [] _parse_datetime_value;3 parameters [4];4 identifier [] value;5 block [6,25];6 if_statement [7,13];7 call [8,11];8 attribute [9,10];9 identifier [] value;10 identifier [] endswith;11 argument_list [12];12 string [] Z;13 block [14];14 expression_statement [15]... | Deserialize a DateTime object from its proper ISO-8601 representation. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_ignore;3 parameters [4,5];4 identifier [] self;5 identifier [] depend;6 block [7];7 try_statement [8,22];8 block [9];9 expression_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _add_child;14 argument_list [15,1... | Adds dependencies to ignore. |
0 module [1];1 function_definition [2,3,6];2 function_name [] call_name_is;3 parameters [4,5];4 identifier [] siter;5 identifier [] name;6 block [7];7 return_statement [8];8 () [9];9 boolean_operator [10,25] and;10 boolean_operator [11,18] and;11 call [12,13];12 identifier [] isinstance;13 argument_list [14,15];14 iden... | Checks the function call name |
0 module [1];1 function_definition [2,3,4];2 function_name [] query_all;3 parameters [];4 block [5,37];5 expression_statement [6];6 assignment [7,8];7 identifier [] recs;8 call [9,25];9 attribute [10,24];10 call [11,14];11 attribute [12,13];12 identifier [] TabPost2Tag;13 identifier [] select;14 argument_list [15,16];1... | Query all the records from TabPost2Tag. |
0 module [1];1 function_definition [2,3,6];2 function_name [] relative_path;3 parameters [4,5];4 identifier [] self;5 identifier [] key;6 block [7,14,24,32,46];7 expression_statement [8];8 assignment [9,10];9 identifier [] key;10 call [11,12];11 identifier [] str;12 argument_list [13];13 identifier [] key;14 expression... | Returns the relative path for given `key` |
0 module [1];1 function_definition [2,3,12];2 function_name [] get;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] uri;6 default_parameter [7,8];7 identifier [] disable_proxy;8 False [];9 default_parameter [10,11];10 identifier [] stream;11 False [];12 block [13,45];13 expression_statement [14];14 assignmen... | Return Requests response to GET request. |
0 module [1];1 function_definition [2,3,5];2 function_name [] promote_s3app;3 parameters [4];4 identifier [] self;5 block [6,13,23,64];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] utils;10 identifier [] banner;11 argument_list [12];12 string [] Promoting S3 App;13 expression_statement [14... | promotes S3 deployment to LATEST |
0 module [1];1 function_definition [2,3,6];2 function_name [] insert_after;3 parameters [4,5];4 identifier [] self;5 identifier [] target;6 block [7,14];7 if_statement [8,12];8 not_operator [9];9 attribute [10,11];10 identifier [] target;11 identifier [] parent;12 block [13];13 return_statement [];14 expression_stateme... | insert this widget into the targets parent container after the target |
0 module [1];1 function_definition [2,3,6];2 function_name [] flatten_container;3 parameters [4,5];4 identifier [] self;5 identifier [] container;6 block [7,125];7 for_statement [8,9,14];8 identifier [] names;9 call [10,13];10 attribute [11,12];11 identifier [] ARG_MAP;12 identifier [] values;13 argument_list [];14 blo... | Accepts a chronos container and pulls out the nested values into the top level |
0 module [1];1 function_definition [2,3,5];2 function_name [] _check_gle_response;3 parameters [4];4 identifier [] result;5 block [6,11,43,53,60,74,78,104,113,130];6 expression_statement [7];7 call [8,9];8 identifier [] _check_command_response;9 argument_list [10];10 identifier [] result;11 if_statement [12,19];12 call... | Return getlasterror response as a dict, or raise OperationFailure. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _bg_combine;3 parameters [4,5];4 identifier [] self;5 identifier [] bgs;6 block [7,25,36];7 expression_statement [8];8 assignment [9,10];9 identifier [] out;10 call [11,14];11 attribute [12,13];12 identifier [] np;13 identifier [] ones;14 argument_list [15,2... | Combine several background amplitude images |
0 module [1];1 function_definition [2,3,5];2 function_name [] delete;3 parameters [4];4 identifier [] self;5 block [6,15,23,27];6 if_statement [7,12];7 attribute [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _sheet;11 identifier [] readonly;12 block [13];13 raise_statement [14];14 identifier [] ReadOn... | Delete the row from the spreadsheet |
0 module [1];1 function_definition [2,3,6];2 function_name [] setAttributesJson;3 parameters [4,5];4 identifier [] self;5 identifier [] attributesJson;6 block [7,29];7 try_statement [8,20];8 block [9];9 expression_statement [10];10 assignment [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _attribut... | Sets the attributes dictionary from a JSON string. |
0 module [1];1 function_definition [2,3,5];2 function_name [] __wrap_docker_exec;3 parameters [4];4 identifier [] func;5 block [6,45];6 function_definition [7,8,13];7 function_name [] call;8 parameters [9,11];9 list_splat_pattern [10];10 identifier [] args;11 dictionary_splat_pattern [12];12 identifier [] kwargs;13 blo... | Wrap a function to raise DockerExecuteError on ENOENT |
0 module [1];1 function_definition [2,3,5];2 function_name [] copy_resources;3 parameters [4];4 identifier [] self;5 block [6,24,41,45,89];6 if_statement [7,16];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 [15... | Copies the relevant resources to a resources subdirectory |
0 module [1];1 function_definition [2,3,17,19];2 function_name [] add_url;3 parameters [4,5,9,13];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] name;7 type [8];8 identifier [] str;9 typed_parameter [10,11];10 identifier [] pattern;11 type [12];12 identifier [] str;13 typed_parameter [14,15];14 identifier... | add url pattern dispatching to application |
0 module [1];1 function_definition [2,3,6];2 function_name [] summary_plotting_engine;3 parameters [4];4 dictionary_splat_pattern [5];5 identifier [] kwargs;6 block [7,14,20,26,30,37,49];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] logging;11 identifier [] debug;12 argument_list [13];13... | creates plots of summary data. |
0 module [1];1 function_definition [2,3,6];2 function_name [] dragend;3 parameters [4,5];4 identifier [] self;5 identifier [] event;6 block [7,27,47,92,167,173];7 expression_statement [8];8 assignment [9,10];9 identifier [] x_range;10 list [11,20] [self.begin_drag.x//self.col_width, event.x//self.col_width];11 binary_o... | Handles the end of a drag action. |
0 module [1];1 function_definition [2,3,16];2 function_name [] create_geotiff;3 parameters [4,5,6,7,8,9,10,11,12,13];4 identifier [] name;5 identifier [] Array;6 identifier [] driver;7 identifier [] ndv;8 identifier [] xsize;9 identifier [] ysize;10 identifier [] geot;11 identifier [] projection;12 identifier [] dataty... | Creates new geotiff from array |
0 module [1];1 function_definition [2,3,7];2 function_name [] subcommand;3 parameters [4,5,6];4 identifier [] self;5 identifier [] name;6 identifier [] help;7 block [8,28];8 if_statement [9,14];9 comparison_operator [10,13] is;10 attribute [11,12];11 identifier [] self;12 identifier [] _subcommands;13 None [];14 block ... | Creates a parser for a sub-command. |
0 module [1];1 function_definition [2,3,7];2 function_name [] handle_token;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] parser;6 identifier [] token;7 block [8,14,22,31,60,96,116];8 expression_statement [9];9 assignment [10,11];10 identifier [] tag_error;11 concatenated_string [12,13];12 string [] Accepted ... | Class method to parse and return a Node. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _create_default_config_file;3 parameters [4];4 identifier [] self;5 block [6,13,22,31,40,49,60,71,89,107,120,128,150];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] logger;10 identifier [] info;11 argument_list [12];12 string [] ... | If config file does not exists create and set default values. |
0 module [1];1 function_definition [2,3,5,13];2 function_name [] all_states;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] Tuple;8 type_parameter [9,11];9 type [10];10 identifier [] State;11 type [12];12 ellipsis [] ...;13 block [14];14 return_statement [15];15 call [16,17];16 ide... | Return all the possible states of this influence graph. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _average_called_depth;3 parameters [4];4 identifier [] in_file;5 block [6,9,13,51];6 import_statement [7];7 dotted_name [8];8 identifier [] cyvcf2;9 expression_statement [10];10 assignment [11,12];11 identifier [] depths;12 list [] [];13 for_statement [14,15... | Retrieve the average depth of called reads in the provided VCF. |
0 module [1];1 function_definition [2,3,5];2 function_name [] start_subscribe;3 parameters [4];4 identifier [] self;5 block [6,28];6 if_statement [7,11,17];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] conn;11 block [12];12 raise_statement [13];13 call [14,15];14 identifier [] ValueError;1... | Create a new Subscription context manager. |
0 module [1];1 function_definition [2,3,5];2 function_name [] check_dependencies;3 parameters [4];4 identifier [] self;5 block [6,10,45];6 expression_statement [7];7 assignment [8,9];8 identifier [] deadlocks;9 list [] [];10 for_statement [11,12,17];11 identifier [] task;12 call [13,16];13 attribute [14,15];14 identifi... | Test the dependencies of the nodes for possible deadlocks. |
0 module [1];1 function_definition [2,3,14];2 function_name [] qstd;3 parameters [4,5,8,11];4 identifier [] x;5 default_parameter [6,7];6 identifier [] quant;7 float [] 0.05;8 default_parameter [9,10];9 identifier [] top;10 False [];11 default_parameter [12,13];12 identifier [] bottom;13 False [];14 block [15,24,33,44,... | returns std, ignoring outer 'quant' pctiles |
0 module [1];1 function_definition [2,3,5];2 function_name [] bound_symbols;3 parameters [4];4 identifier [] self;5 block [6,67];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _bound_symbols;11 None [];12 block [13,40,61];13 expression_statement [14];14 as... | Set of bound SymPy symbols in the expression |
0 module [1];1 function_definition [2,3,6];2 function_name [] _decoder;3 parameters [4,5];4 identifier [] self;5 identifier [] obj;6 block [7,85];7 if_statement [8,11];8 comparison_operator [9,10] in;9 string [] __class__;10 identifier [] obj;11 block [12,23,31,42,53,64,75,83];12 expression_statement [13];13 assignment... | Decode a toc element leaf-node |
0 module [1];1 function_definition [2,3,6];2 function_name [] load;3 parameters [4,5];4 identifier [] self;5 identifier [] callback;6 block [7,21,50,59];7 if_statement [8,11];8 comparison_operator [9,10] is;9 identifier [] callback;10 None [];11 block [12,17];12 function_definition [13,14,15];13 function_name [] callb;... | Retrieve names of channels |
0 module [1];1 function_definition [2,3,6];2 function_name [] cleanPolyline;3 parameters [4,5];4 identifier [] elem;5 identifier [] options;6 block [7,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] pts;10 call [11,12];11 identifier [] parseListOfPoints;12 argument_list [13];13 call [14,17];14 attrib... | Scour the polyline points attribute |
0 module [1];1 function_definition [2,3,5];2 function_name [] send_ack;3 parameters [4];4 identifier [] self;5 block [6,18,30,40];6 if_statement [7,16];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] last_ack;11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 ide... | Send an ack message |
0 module [1];1 function_definition [2,3,5];2 function_name [] pack;3 parameters [4];4 identifier [] content;5 block [6,24];6 if_statement [7,14];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] content;11 attribute [12,13];12 identifier [] six;13 identifier [] text_type;14 block [15];15 ... | content should be str |
0 module [1];1 function_definition [2,3,9];2 function_name [] redirect;3 parameters [4,5,6];4 identifier [] self;5 identifier [] url;6 default_parameter [7,8];7 identifier [] status;8 None [];9 block [10,21,33,39];10 expression_statement [11];11 assignment [12,15];12 attribute [13,14];13 identifier [] self;14 identifie... | Redirect to the specified url, optional status code defaults to 302. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _start_thread;3 parameters [4];4 identifier [] self;5 block [6,14,33];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _stopping_event;11 call [12,13];12 identifier [] Event;13 argument_list [];14 expres... | Start an enqueueing thread. |
0 module [1];1 function_definition [2,3,9];2 function_name [] cprint;3 parameters [4,5,7];4 identifier [] msg;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kw;9 block [10,33];10 if_statement [11,20];11 boolean_operator [12,16] or;12 call [13,14];13 identifier [] len;14 arg... | Print colored message to stdout. |
0 module [1];1 function_definition [2,3,5];2 function_name [] existing;3 parameters [4];4 identifier [] self;5 block [6,17,21,40,68];6 expression_statement [7];7 assignment [8,9];8 identifier [] catalog;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] api;13 identifier [] portal;14 identifier [... | find existing content assigned to this layout |
0 module [1];1 function_definition [2,3,20,26];2 function_name [] union;3 parameters [4,12];4 typed_parameter [5,6];5 identifier [] a;6 type [7];7 generic_type [8,9];8 identifier [] Iterable;9 type_parameter [10];10 type [11];11 identifier [] Any;12 typed_parameter [13,14];13 identifier [] b;14 type [15];15 generic_typ... | Return a list of items that are in `a` or `b` |
0 module [1];1 function_definition [2,3,6];2 function_name [] setup;3 parameters [4,5];4 identifier [] self;5 identifier [] environ;6 block [7,21,36,46];7 expression_statement [8];8 assignment [9,10];9 identifier [] json_handler;10 call [11,16];11 attribute [12,15];12 call [13,14];13 identifier [] Root;14 argument_list... | Called once to setup the list of wsgi middleware. |
0 module [1];1 function_definition [2,3,6];2 function_name [] init;3 parameters [4,5];4 identifier [] lang;5 identifier [] domain;6 block [7,13,20,32];7 expression_statement [8];8 assignment [9,10];9 identifier [] translations_dir;10 call [11,12];11 identifier [] _get_translations_dir;12 argument_list [];13 expression_... | Initialize translations for a language code. |
0 module [1];1 function_definition [2,3,22,37];2 function_name [] partition_version_classifiers;3 parameters [4,12,17];4 typed_parameter [5,6];5 identifier [] classifiers;6 type [7];7 subscript [8,11];8 attribute [9,10];9 identifier [] t;10 identifier [] Sequence;11 identifier [] str;12 typed_default_parameter [13,14,1... | Find version number classifiers in given list and partition them into 2 groups. |
0 module [1];1 function_definition [2,3,5];2 function_name [] main;3 parameters [4];4 identifier [] args;5 block [6,12,20,28,62,68,76];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] random;10 identifier [] seed;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14 identi... | Validate all submissions and copy them into place |
0 module [1];1 function_definition [2,3,5];2 function_name [] sentence_texts;3 parameters [4];4 identifier [] self;5 block [6,21];6 if_statement [7,14];7 not_operator [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] is_tagged;12 argument_list [13];13 identifier [] SENTENCES;14 block [15];15 ... | The list of texts representing ``sentences`` layer elements. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _wipe_www_page;3 parameters [4,5];4 identifier [] self;5 identifier [] slug;6 block [7,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] wd;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 identifier [] path;1... | Remove all data in www about the page identified by slug. |
0 module [1];1 function_definition [2,3,11];2 function_name [] stylize;3 parameters [4,5,8];4 identifier [] txt;5 default_parameter [6,7];6 identifier [] bold;7 False [];8 default_parameter [9,10];9 identifier [] underline;10 False [];11 block [12,16,25,34];12 expression_statement [13];13 assignment [14,15];14 identifi... | Changes style of the text. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _calculate;3 parameters [4,5];4 identifier [] self;5 identifier [] field;6 block [7,11,26,34,47];7 expression_statement [8];8 assignment [9,10];9 identifier [] base_offset;10 integer [] 0;11 if_statement [12,17];12 comparison_operator [13,16] is not;13 attri... | If the offset is unknown, return 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.