sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,8];2 function_name [] add_log_entry;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] process_name;6 identifier [] timeperiod;7 identifier [] msg;8 block [9,18,28];9 expression_statement [10];10 assignment [11,12];11 identifier [] tree;12 call [13,16];13 attribute [14,1... | adds a non-persistent log entry to the tree node |
0 module [1];1 function_definition [2,3,6];2 function_name [] find_node_api_version;3 parameters [4,5];4 identifier [] self;5 identifier [] node_pyxb;6 block [7,11,36];7 expression_statement [8];8 assignment [9,10];9 identifier [] max_major;10 integer [] 0;11 for_statement [12,13,18];12 identifier [] s;13 attribute [14... | Find the highest API major version supported by node. |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove;3 parameters [4,5];4 identifier [] self;5 identifier [] item;6 block [7,9,18,24];7 expression_statement [8];8 string [] Remove first occurence of item. Raise ValueError if not found;9 expression_statement [10];10 assignment [11,12];11 identifier [] i... | Remove first occurence of item. Raise ValueError if not found |
0 module [1];1 function_definition [2,3,9];2 function_name [] _save_image;3 parameters [4,5,6];4 identifier [] image;5 identifier [] filename;6 default_parameter [7,8];7 identifier [] return_img;8 None [];9 block [10,21,81];10 if_statement [11,15];11 not_operator [12];12 attribute [13,14];13 identifier [] image;14 iden... | Internal helper for saving a NumPy image array |
0 module [1];1 function_definition [2,3,12];2 function_name [] assert_is_not;3 parameters [4,5,6,9];4 identifier [] expected;5 identifier [] actual;6 default_parameter [7,8];7 identifier [] message;8 None [];9 default_parameter [10,11];10 identifier [] extra;11 None [];12 block [13];13 assert_statement [14,17];14 compa... | Raises an AssertionError if expected is actual. |
0 module [1];1 function_definition [2,3,4];2 function_name [] _initialize_session;3 parameters [];4 block [5,13];5 expression_statement [6];6 assignment [7,8];7 identifier [] sys_random;8 call [9,12];9 attribute [10,11];10 identifier [] random;11 identifier [] SystemRandom;12 argument_list [];13 expression_statement [1... | Generate a new session key and store it to thread local storage. |
0 module [1];1 function_definition [2,3,5];2 function_name [] white;3 parameters [4];4 identifier [] cls;5 block [6,8,16,23,29];6 expression_statement [7];7 string [] Make the text foreground color white.;8 expression_statement [9];9 assignment [10,11];10 identifier [] wAttributes;11 call [12,15];12 attribute [13,14];1... | Make the text foreground color white. |
0 module [1];1 function_definition [2,3,6];2 function_name [] create_from_dictionary;3 parameters [4,5];4 identifier [] self;5 identifier [] datas;6 block [7,13,29,45,61];7 expression_statement [8];8 assignment [9,10];9 identifier [] configuration;10 call [11,12];11 identifier [] ObjectConfiguration;12 argument_list []... | Return a populated object Configuration from dictionnary datas |
0 module [1];1 function_definition [2,3,6];2 function_name [] _GetArgsDescription;3 parameters [4,5];4 identifier [] self;5 identifier [] args_type;6 block [7,11,66];7 expression_statement [8];8 assignment [9,10];9 identifier [] args;10 dictionary [];11 if_statement [12,13];12 identifier [] args_type;13 block [14];14 f... | Get a simplified description of the args_type for a flow. |
0 module [1];1 function_definition [2,3,5];2 function_name [] genes;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 list_comprehension [8,14];8 call [9,12];9 attribute [10,11];10 identifier [] ExpGene;11 identifier [] from_series;12 argument_list [13];13 identifier [] g;14 for_in_clause [15,1... | Return a list of all genes. |
0 module [1];1 function_definition [2,3,5];2 function_name [] meta_enter_message;3 parameters [4];4 identifier [] python_input;5 block [6,15,52,67];6 function_definition [7,8,9];7 function_name [] get_text_fragments;8 parameters [];9 block [10];10 return_statement [11];11 list [12] [('class:accept-message', ' [Meta+Ent... | Create the `Layout` for the 'Meta+Enter` message. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_tool_dict;3 parameters [4,5];4 identifier [] self;5 identifier [] tool_name;6 block [7,15,26];7 expression_statement [8];8 assignment [9,10];9 identifier [] tool;10 call [11,12];11 identifier [] getattr;12 argument_list [13,14];13 identifier [] self;14 ... | Represents the tool as a dict with extra meta. |
0 module [1];1 function_definition [2,3,6];2 function_name [] db_type;3 parameters [4,5];4 identifier [] cls;5 identifier [] dtype;6 block [7];7 if_statement [8,13,25];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] dtype;12 identifier [] ExtensionDtype;13 block [14];14 return_stateme... | Given a numpy dtype, Returns a generic database type |
0 module [1];1 function_definition [2,3,6];2 function_name [] cycle_windows;3 parameters [4,5];4 identifier [] tree;5 identifier [] direction;6 block [7,34,48,103];7 expression_statement [8];8 assignment [9,10];9 identifier [] wanted;10 dictionary [11,22];11 pair [12,13];12 string [] orientation;13 () [14];14 condition... | Cycle through windows of the current workspace |
0 module [1];1 function_definition [2,3,10];2 function_name [] function;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] fun;6 list_splat_pattern [7];7 identifier [] args;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,21,47];11 expression_statement [12];12 assignment [13,14];13 identifier... | Call a single salt function |
0 module [1];1 function_definition [2,3,6];2 function_name [] draw_widget;3 parameters [4,5];4 identifier [] self;5 identifier [] item;6 block [7];7 if_statement [8,9];8 identifier [] item;9 block [10,19,29,38,48,58,68,80,90];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 ide... | Create a preview of the selected treeview item |
0 module [1];1 function_definition [2,3,6];2 function_name [] deleteMask;3 parameters [4,5];4 identifier [] self;5 identifier [] signature;6 block [7];7 if_statement [8,13,22];8 comparison_operator [9,10] in;9 identifier [] signature;10 attribute [11,12];11 identifier [] self;12 identifier [] masklist;13 block [14];14 ... | Delete just the mask that matches the signature given. |
0 module [1];1 function_definition [2,3,5];2 function_name [] pid;3 parameters [4];4 identifier [] self;5 block [6,15,28];6 expression_statement [7];7 assignment [8,9];8 identifier [] pf;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] path;13 argument_list [14];14 string [] cmd.pid;15 if_stat... | The integer PID of the subprocess or None. |
0 module [1];1 function_definition [2,3,6];2 function_name [] filterGraph;3 parameters [4,5];4 identifier [] graph;5 identifier [] node_fnc;6 block [7,25,29,37,80];7 expression_statement [8];8 assignment [9,10];9 identifier [] nodes;10 call [11,12];11 identifier [] filter;12 argument_list [13,20];13 lambda [14,16];14 l... | Remove all nodes for with node_fnc does not hold |
0 module [1];1 function_definition [2,3,9];2 function_name [] add_filter;3 parameters [4,5,6];4 identifier [] self;5 identifier [] component;6 default_parameter [7,8];7 identifier [] filter_group;8 string [] pyxley-filter;9 block [10,24,39];10 if_statement [11,18];11 comparison_operator [12,17] !=;12 call [13,14];13 id... | Add a filter to the layout. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_training_data;3 parameters [4];4 identifier [] vrn_files;5 block [6,16,63,86];6 expression_statement [7];7 assignment [8,9];8 identifier [] out;9 dictionary [10,13];10 pair [11,12];11 string [] SNP;12 list [] [];13 pair [14,15];14 string [] INDEL;15 lis... | Retrieve training data, returning an empty set of information if not available. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dates;3 parameters [4];4 identifier [] self;5 block [6,10,16,39];6 expression_statement [7];7 assignment [8,9];8 identifier [] dates;9 list [] [];10 expression_statement [11];11 assignment [12,13];12 identifier [] d;13 attribute [14,15];14 identifier [] self... | Returns a list of dates in this date interval. |
0 module [1];1 function_definition [2,3,7];2 function_name [] should_cache;3 parameters [4,5,6];4 identifier [] self;5 identifier [] request;6 identifier [] response;7 block [8,19,34,54,64];8 if_statement [9,16];9 not_operator [10];10 call [11,12];11 identifier [] getattr;12 argument_list [13,14,15];13 identifier [] re... | Given the request and response should it be cached |
0 module [1];1 function_definition [2,3,8];2 function_name [] chunks;3 parameters [4,5];4 identifier [] f;5 default_parameter [6,7];6 identifier [] chunk_size;7 None [];8 block [9,21,35];9 if_statement [10,12];10 not_operator [11];11 identifier [] chunk_size;12 block [13];13 expression_statement [14];14 assignment [15,... | Read the file and yield chucks of ``chunk_size`` bytes. |
0 module [1];1 function_definition [2,3,6];2 function_name [] wrap_inner;3 parameters [4,5];4 identifier [] node;5 identifier [] tag;6 block [7,16,27,38];7 expression_statement [8];8 assignment [9,10];9 identifier [] children;10 call [11,12];11 identifier [] list;12 argument_list [13];13 attribute [14,15];14 identifier... | Wrap the given tag around the contents of a node. |
0 module [1];1 function_definition [2,3,11];2 function_name [] _add_handler;3 parameters [4,5,8];4 identifier [] logger;5 default_parameter [6,7];6 identifier [] handler;7 None [];8 default_parameter [9,10];9 identifier [] loglevel;10 None [];11 block [12,21,62];12 expression_statement [13];13 call [14,17];14 attribute... | Add a handler to an existing logging.Logger object |
0 module [1];1 function_definition [2,3,9];2 function_name [] channel;3 parameters [4,5,6];4 identifier [] layer;5 identifier [] n_channel;6 default_parameter [7,8];7 identifier [] batch;8 None [];9 block [10];10 if_statement [11,14,31];11 comparison_operator [12,13] is;12 identifier [] batch;13 None [];14 block [15];1... | Visualize a single channel |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] authenticate;3 parameters [4];4 identifier [] self;5 type [6];6 identifier [] bool;7 block [8];8 with_statement [9,14];9 with_clause [10];10 with_item [11];11 attribute [12,13];12 identifier [] IHCController;13 identifier [] _mutex;14 block [15,33,53];15 i... | Authenticate and enable the registered notifications |
0 module [1];1 function_definition [2,3,11];2 function_name [] _update_data;3 parameters [4,5,6,7,8,9,10];4 identifier [] self;5 identifier [] name;6 identifier [] value;7 identifier [] timestamp;8 identifier [] interval;9 identifier [] config;10 identifier [] conn;11 block [12,23,46,113,122];12 expression_statement [1... | Support function for insert. Should be called within a transaction |
0 module [1];1 function_definition [2,3,6];2 function_name [] data;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,16,26];7 assert_statement [8];8 comparison_operator [9,13] is;9 call [10,11];10 identifier [] type;11 argument_list [12];12 identifier [] data;13 attribute [14,15];14 identifier [] ... | Given a 2D numpy array, fill colData with it. |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse;3 parameters [4];4 identifier [] data;5 block [6,15,19,101];6 expression_statement [7];7 assignment [8,9];8 identifier [] reader;9 call [10,13];10 attribute [11,12];11 identifier [] io;12 identifier [] BytesIO;13 argument_list [14];14 identifier [] dat... | returns a list of header tags |
0 module [1];1 function_definition [2,3,16];2 function_name [] buy_limit_order;3 parameters [4,5,6,7,10,13];4 identifier [] self;5 identifier [] amount;6 identifier [] price;7 default_parameter [8,9];8 identifier [] base;9 string [] btc;10 default_parameter [11,12];11 identifier [] quote;12 string [] usd;13 default_par... | Order to buy amount of bitcoins for specified price. |
0 module [1];1 function_definition [2,3,8];2 function_name [] install_mediaroom_protocol;3 parameters [4,5];4 identifier [] responses_callback;5 default_parameter [6,7];6 identifier [] box_ip;7 None [];8 block [9,14,21,29,37,43,55];9 import_from_statement [10,12];10 relative_import [11];11 import_prefix [];12 dotted_na... | Install an asyncio protocol to process NOTIFY messages. |
0 module [1];1 function_definition [2,3,6];2 function_name [] send_by_packet;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,11,45];7 expression_statement [8];8 assignment [9,10];9 identifier [] total_sent;10 integer [] 0;11 while_statement [12,15];12 comparison_operator [13,14] <;13 identifier ... | Send data by packet on socket |
0 module [1];1 function_definition [2,3,5];2 function_name [] c_getprocs;3 parameters [4];4 identifier [] self;5 block [6,10,135];6 expression_statement [7];7 assignment [8,9];8 identifier [] getprocs;9 list [] [];10 for_statement [11,14,17];11 pattern_list [12,13];12 identifier [] name;13 identifier [] dummy_args;14 a... | Get the getprocs of the module. |
0 module [1];1 function_definition [2,3,13,19];2 function_name [] indices_to_labels;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] indices;7 type [8];8 generic_type [9,10];9 identifier [] Sequence;10 type_parameter [11];11 type [12];12 identifier [] int;13 type [14];14 generic_type [15,... | Converts a sequence of indices into their corresponding labels. |
0 module [1];1 function_definition [2,3,6];2 function_name [] accepts;3 parameters [4,5];4 identifier [] self;5 identifier [] package;6 block [7];7 return_statement [8];8 () [9];9 boolean_operator [10,28] and;10 boolean_operator [11,18] and;11 comparison_operator [12,15] ==;12 attribute [13,14];13 identifier [] self;14... | Determines if the given package matches this dependency. |
0 module [1];1 function_definition [2,3,4];2 function_name [] main;3 parameters [];4 block [5];5 with_statement [6,16];6 with_clause [7];7 with_item [8];8 as_pattern [9,14];9 call [10,13];10 attribute [11,12];11 identifier [] aiohttp;12 identifier [] ClientSession;13 argument_list [];14 as_pattern_target [15];15 identi... | Sample code to retrieve the data. |
0 module [1];1 function_definition [2,3,5];2 function_name [] capfirst;3 parameters [4];4 identifier [] x;5 block [6,17];6 expression_statement [7];7 assignment [8,9];8 identifier [] x;9 call [10,16];10 attribute [11,15];11 call [12,13];12 identifier [] to_string;13 argument_list [14];14 identifier [] x;15 identifier [... | Capitalise the first letter of ``x``. |
0 module [1];1 function_definition [2,3,6];2 function_name [] from_cli;3 parameters [4,5];4 identifier [] cls;5 identifier [] opt;6 block [7,13,20,26,32,38,44,65];7 expression_statement [8];8 assignment [9,10];9 identifier [] injection_file;10 attribute [11,12];11 identifier [] opt;12 identifier [] injection_file;13 ex... | Create an InjFilterRejector instance from command-line options. |
0 module [1];1 function_definition [2,3,5];2 function_name [] read_registry;3 parameters [4];4 identifier [] self;5 block [6,18,22];6 expression_statement [7];7 assignment [8,9];8 identifier [] lm;9 call [10,13];10 attribute [11,12];11 identifier [] _winreg;12 identifier [] ConnectRegistry;13 argument_list [14,15];14 N... | Extract resolver configuration from the Windows registry. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _inform_watchdog;3 parameters [4];4 identifier [] self;5 block [6];6 with_statement [7,12];7 with_clause [8];8 with_item [9];9 attribute [10,11];10 identifier [] self;11 identifier [] _wd_lock;12 block [13,21,29];13 if_statement [14,19];14 comparison_operato... | Inform the watchdog of activity. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _json_request;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] method;6 identifier [] path;7 identifier [] data;8 block [9,22,27,42];9 expression_statement [10];10 assignment [11,12];11 identifier [] response;12 call [13,16];13 attribute [14,15];1... | Issue request against the crate HTTP API. |
0 module [1];1 function_definition [2,3,6];2 function_name [] Search;3 parameters [4,5];4 identifier [] self;5 identifier [] key;6 block [7,11,73];7 expression_statement [8];8 assignment [9,10];9 identifier [] results;10 list [] [];11 for_statement [12,13,16];12 identifier [] template;13 attribute [14,15];14 identifier... | Search template list by providing partial name, ID, or other key. |
0 module [1];1 function_definition [2,3,19];2 function_name [] create_label;3 parameters [4,5,6,13,16];4 identifier [] self;5 identifier [] name;6 default_parameter [7,8];7 identifier [] justify;8 attribute [9,12];9 attribute [10,11];10 identifier [] Gtk;11 identifier [] Justification;12 identifier [] CENTER;13 default... | The function is used for creating lable with HTML text |
0 module [1];1 function_definition [2,3,6];2 function_name [] files;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,13,21];7 expression_statement [8];8 assignment [9,10];9 identifier [] current_files;10 attribute [11,12];11 identifier [] self;12 identifier [] files;13 if_statement [14,15];14 ide... | Set files from data. |
0 module [1];1 function_definition [2,3,5];2 function_name [] create;3 parameters [4];4 identifier [] cls;5 block [6,23];6 if_statement [7,12];7 comparison_operator [8,9] not in;8 identifier [] cls;9 attribute [10,11];10 identifier [] cls;11 identifier [] _instances;12 block [13];13 expression_statement [14];14 assignm... | Return always the same instance of the backend class |
0 module [1];1 function_definition [2,3,6];2 function_name [] identical;3 parameters [4,5];4 identifier [] self;5 identifier [] other;6 block [7];7 try_statement [8,29];8 block [9];9 return_statement [10];10 () [11];11 boolean_operator [12,23] and;12 call [13,16];13 attribute [14,15];14 identifier [] utils;15 identifie... | Like equals, but also checks attributes. |
0 module [1];1 function_definition [2,3,5];2 function_name [] split32;3 parameters [4];4 identifier [] data;5 block [6,10,40];6 expression_statement [7];7 assignment [8,9];8 identifier [] all_pieces;9 list [] [];10 for_statement [11,12,21];11 identifier [] position;12 call [13,14];13 identifier [] range;14 argument_lis... | Split data into pieces of 32 bytes. |
0 module [1];1 function_definition [2,3,5];2 function_name [] fetch;3 parameters [4];4 identifier [] self;5 block [6,22,38];6 expression_statement [7];7 assignment [8,9];8 identifier [] length;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] np;13 identifier [] random;14 identifier [] randint;1... | Samples up to current difficulty. |
0 module [1];1 function_definition [2,3,5];2 function_name [] content;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,16,25];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] __report_file;13 attribute [14,15];14 identifier []... | Return report content as a string if mode == STRINGIO else an empty string |
0 module [1];1 function_definition [2,3,6];2 function_name [] parseJSON;3 parameters [4,5];4 identifier [] self;5 identifier [] f;6 block [7,47,61,69,79,89,99,109];7 try_statement [8,20];8 block [9];9 expression_statement [10];10 assignment [11,12];11 identifier [] parsed_json;12 call [13,16];13 attribute [14,15];14 id... | Parse the JSON output from DamageProfiler and save the summary statistics |
0 module [1];1 function_definition [2,3,5];2 function_name [] active_pt_window;3 parameters [4];4 identifier [] self;5 block [6,8];6 expression_statement [7];7 string [] The active prompt_toolkit layout Window.;8 if_statement [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] active_tab;12 block [13,21];... | The active prompt_toolkit layout Window. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_translation_for_locale;3 parameters [4,5];4 identifier [] self;5 identifier [] locale;6 block [7,11,87];7 expression_statement [8];8 assignment [9,10];9 identifier [] translations;10 None [];11 for_statement [12,13,16];12 identifier [] dirname;13 attrib... | Get translation for a specific locale. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _RemoveCompletedPathspec;3 parameters [4,5];4 identifier [] self;5 identifier [] index;6 block [7,17,27,37,47,59,71,77];7 expression_statement [8];8 assignment [9,10];9 identifier [] pathspec;10 subscript [11,16];11 attribute [12,15];12 attribute [13,14];13 ... | Removes a pathspec from the list of pathspecs. |
0 module [1];1 function_definition [2,3,4];2 function_name [] remove_all_nexusnve_bindings;3 parameters [];4 block [5,12,20,33];5 expression_statement [6];6 call [7,10];7 attribute [8,9];8 identifier [] LOG;9 identifier [] debug;10 argument_list [11];11 string [] remove_all_nexusport_bindings() called;12 expression_sta... | Removes all nexusnve bindings. |
0 module [1];1 function_definition [2,3,12,18];2 function_name [] compute_merkletree_with;3 parameters [4,8];4 typed_parameter [5,6];5 identifier [] merkletree;6 type [7];7 identifier [] MerkleTreeState;8 typed_parameter [9,10];9 identifier [] lockhash;10 type [11];11 identifier [] LockHash;12 type [13];13 generic_type... | Register the given lockhash with the existing merkle tree. |
0 module [1];1 function_definition [2,3,9];2 function_name [] configure_root;3 parameters [4,5,6];4 identifier [] self;5 identifier [] config;6 default_parameter [7,8];7 identifier [] incremental;8 False [];9 block [10,18];10 expression_statement [11];11 assignment [12,13];12 identifier [] root;13 call [14,17];14 attri... | Configure a root logger from a dictionary. |
0 module [1];1 function_definition [2,3,5];2 function_name [] uncamel;3 parameters [4];4 identifier [] name;5 block [6,17];6 expression_statement [7];7 assignment [8,9];8 identifier [] s1;9 call [10,13];10 attribute [11,12];11 identifier [] re;12 identifier [] sub;13 argument_list [14,15,16];14 string [] (.)([A-Z][a-z]... | Transform CamelCase naming convention into C-ish convention. |
0 module [1];1 function_definition [2,3,10];2 function_name [] _rotate_vector;3 parameters [4,5,6,7,8,9];4 identifier [] x;5 identifier [] y;6 identifier [] x2;7 identifier [] y2;8 identifier [] x1;9 identifier [] y1;10 block [11,23,30,37];11 expression_statement [12];12 assignment [13,14];13 identifier [] angle;14 cal... | rotate x,y vector over x2-x1, y2-y1 angle |
0 module [1];1 function_definition [2,3,5];2 function_name [] _send_request;3 parameters [4];4 identifier [] self;5 block [6,12,20,52,69,80,98];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _generate_hash;11 argument_list [];12 expression_statement [13];13 assignment ... | Make the SOAP request and convert the result to a dictionary. |
0 module [1];1 function_definition [2,3,6];2 function_name [] appendDatastore;3 parameters [4,5];4 identifier [] self;5 identifier [] store;6 block [7,22];7 if_statement [8,14];8 not_operator [9];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] store;13 identifier [] Datastore;14 blo... | Appends datastore `store` to this collection. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _datastore_api;3 parameters [4];4 identifier [] self;5 block [6,38];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _datastore_api_internal;11 None [];12 block [13];13 if_statement [14,17,27];14 ... | Getter for a wrapped API object. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _split_token_to_subtokens;3 parameters [4,5,6];4 identifier [] token;5 identifier [] subtoken_dict;6 identifier [] max_subtoken_length;7 block [8,12,16,23,79];8 expression_statement [9];9 assignment [10,11];10 identifier [] ret;11 list [] [];12 expression_st... | Splits a token into subtokens defined in the subtoken dict. |
0 module [1];1 function_definition [2,3,8];2 function_name [] generate_np;3 parameters [4,5,6];4 identifier [] self;5 identifier [] x_val;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,22,115,123,130,142,151,167];9 expression_statement [10];10 assignment [11,16];11 pattern_list [12,13,14,15];12 identi... | Facilitates testing this attack. |
0 module [1];1 function_definition [2,3,5];2 function_name [] harmonic_mean;3 parameters [4];4 identifier [] data;5 block [6,15,34];6 if_statement [7,9];7 not_operator [8];8 identifier [] data;9 block [10];10 raise_statement [11];11 call [12,13];12 identifier [] StatisticsError;13 argument_list [14];14 string [] harmon... | Return the harmonic mean of data |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_badge;3 parameters [4,5];4 identifier [] self;5 identifier [] kind;6 block [7,16,21,56,65,78,104,110,122,132];7 expression_statement [8];8 assignment [9,10];9 identifier [] badge;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier []... | Perform an atomic prepend for a new badge |
0 module [1];1 function_definition [2,3,5];2 function_name [] checkIsConsistent;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,25];7 boolean_operator [8,14] and;8 call [9,10];9 identifier [] is_an_array;10 argument_list [11];11 attribute [12,13];12 identifier [] self;13 identifier [] mask;14 compar... | Raises a ConsistencyError if the mask has an incorrect shape. |
0 module [1];1 function_definition [2,3,8];2 function_name [] format_installed_dap;3 parameters [4,5];4 identifier [] name;5 default_parameter [6,7];6 identifier [] full;7 False [];8 block [9,20,36,54];9 expression_statement [10];10 assignment [11,12];11 identifier [] dap_data;12 call [13,18];13 attribute [14,17];14 ca... | Formats information about an installed DAP in a human readable form to list of lines |
0 module [1];1 function_definition [2,3,9];2 function_name [] _u_distance_correlation_sqr_naive;3 parameters [4,5,6];4 identifier [] x;5 identifier [] y;6 default_parameter [7,8];7 identifier [] exponent;8 integer [] 1;9 block [10];10 return_statement [11];11 attribute [12,26];12 call [13,14];13 identifier [] _distance... | Bias-corrected distance correlation estimator between two matrices. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getLate;3 parameters [4];4 identifier [] self;5 block [6,40];6 for_statement [7,8,13];7 identifier [] analysis;8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] getAnalyses;12 argument_list [];13 block [14,22,31];14 if_statement [15,20... | Return True if there is at least one late analysis in this Request |
0 module [1];1 function_definition [2,3,5];2 function_name [] shutdown;3 parameters [4];4 identifier [] self;5 block [6,15,19];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] signal_children;11 argument_list [12];12 attribute [13,14];13 identifier [] signal;14 identifie... | Send SIGABRT to child processes to instruct them to stop |
0 module [1];1 function_definition [2,3,6];2 function_name [] clean;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,18,59];7 if_statement [8,11];8 comparison_operator [9,10] is;9 identifier [] value;10 None [];11 block [12];12 expression_statement [13];13 assignment [14,15];14 identifier [] val... | Run validators and return the clean value. |
0 module [1];1 function_definition [2,3,6];2 function_name [] resolve_object_number;3 parameters [4,5];4 identifier [] self;5 identifier [] ref;6 block [7,30,36];7 if_statement [8,14,24];8 not_operator [9];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] ref;13 identifier [] ObjectNu... | Resolve a variety of object numebrs to a dataset number |
0 module [1];1 function_definition [2,3,5];2 function_name [] safestr;3 parameters [4];4 identifier [] value;5 block [6];6 if_statement [7,19,22,37];7 boolean_operator [8,10] or;8 not_operator [9];9 identifier [] value;10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [] value;14 tuple ... | Ensure type to string serialization |
0 module [1];1 function_definition [2,3,6];2 function_name [] exec_cmd;3 parameters [4,5];4 identifier [] self;5 identifier [] cmd;6 block [7,16,25,45,77,86];7 expression_statement [8];8 assignment [9,10];9 identifier [] cmd;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _cmd_str;14 argumen... | Execute a remote command |
0 module [1];1 function_definition [2,3,6];2 function_name [] register;3 parameters [4,5];4 identifier [] cls;5 identifier [] package_type;6 block [7,20];7 if_statement [8,14];8 not_operator [9];9 call [10,11];10 identifier [] issubclass;11 argument_list [12,13];12 identifier [] package_type;13 identifier [] cls;14 blo... | Register a concrete implementation of a Package to be recognized by pex. |
0 module [1];1 function_definition [2,3,8];2 function_name [] described_as;3 parameters [4,5,6];4 identifier [] self;5 identifier [] description;6 list_splat_pattern [7];7 identifier [] args;8 block [9,25,31];9 if_statement [10,14];10 call [11,12];11 identifier [] len;12 argument_list [13];13 identifier [] args;14 bloc... | Specify a custom message for the matcher |
0 module [1];1 function_definition [2,3,5];2 function_name [] list;3 parameters [4];4 identifier [] args;5 block [6,13];6 expression_statement [7];7 assignment [8,9];8 identifier [] jm;9 call [10,11];10 identifier [] setup;11 argument_list [12];12 identifier [] args;13 expression_statement [14];14 call [15,18];15 attri... | Lists the jobs in the given database. |
0 module [1];1 function_definition [2,3,5];2 function_name [] load;3 parameters [4];4 identifier [] self;5 block [6];6 try_statement [7,31];7 block [8];8 with_statement [9,23];9 with_clause [10];10 with_item [11];11 as_pattern [12,21];12 call [13,14];13 identifier [] open;14 argument_list [15,20];15 binary_operator [16... | Load cache from file using pickle. |
0 module [1];1 function_definition [2,3,24];2 function_name [] _exprparser;3 parameters [4,5,6,9,12,15,18,21];4 identifier [] expr;5 identifier [] scope;6 default_parameter [7,8];7 identifier [] lang;8 None [];9 default_parameter [10,11];10 identifier [] conf;11 None [];12 default_parameter [13,14];13 identifier [] con... | In charge of parsing an expression and return a python object. |
0 module [1];1 function_definition [2,3,5];2 function_name [] add_command_arguments;3 parameters [4];4 identifier [] parser;5 block [6,26,48,68,84,101];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] parser;10 identifier [] add_argument;11 argument_list [12,13,14,17,20,23];12 string [] --noi... | Additional command line arguments for the behave management command |
0 module [1];1 function_definition [2,3,6];2 function_name [] _getel;3 parameters [4,5];4 identifier [] key;5 identifier [] value;6 block [7,43];7 if_statement [8,13,22];8 comparison_operator [9,10] in;9 identifier [] key;10 list [11,12] ['HorizontalRule', 'Null'];11 string [] HorizontalRule;12 string [] Null;13 block ... | Returns an element given a key and value. |
0 module [1];1 function_definition [2,3,5];2 function_name [] geoid;3 parameters [4];4 identifier [] self;5 block [6,17];6 if_statement [7,14];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] valuetype_class;12 identifier [] is_geoid;13 argument_list [];14 block [15];15 return... | Return first child of the column, or self that is marked as a geographic identifier |
0 module [1];1 function_definition [2,3,6];2 function_name [] replace;3 parameters [4,5];4 identifier [] self;5 identifier [] html;6 block [7,13,21,25,121];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] html;12 identifier [] html;13 expression_statement [14];14... | Perform replacements on given HTML fragment. |
0 module [1];1 function_definition [2,3,8];2 function_name [] err_exit;3 parameters [4,5];4 identifier [] msg;5 default_parameter [6,7];6 identifier [] rc;7 integer [] 1;8 block [9,19];9 expression_statement [10];10 call [11,12];11 identifier [] print;12 argument_list [13,14];13 identifier [] msg;14 keyword_argument [1... | Print msg to stderr and exit with rc. |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] async_open;3 parameters [4];4 identifier [] self;5 type [6];6 None [];7 block [8];8 expression_statement [9];9 await [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] _loop;15 identifier [] create_connect... | Opens connection to the LifeSOS ethernet interface. |
0 module [1];1 function_definition [2,3,9];2 function_name [] loads;3 parameters [4,5,6];4 identifier [] self;5 identifier [] data;6 default_parameter [7,8];7 identifier [] raw;8 False [];9 block [10,19,32,55];10 expression_statement [11];11 assignment [12,13];12 identifier [] data;13 call [14,17];14 attribute [15,16];... | Decrypt and un-serialize a python object |
0 module [1];1 function_definition [2,3,9];2 function_name [] not_found;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,18];10 expression_statement [11];11 assignment [12,15];12 subscript [13,14];13 identifier [] k... | Defines the handler that should handle not found requests against this API |
0 module [1];1 function_definition [2,3,7];2 function_name [] meaningful_value;3 parameters [4,5,6];4 identifier [] self;5 identifier [] val;6 identifier [] undefined;7 block [8,39];8 if_statement [9,18];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] val;13 attribute [14,17];14 att... | Check if val is considered non-empty. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _normalize_words;3 parameters [4,5];4 identifier [] words;5 identifier [] acronyms;6 block [7,63];7 for_statement [8,11,15];8 pattern_list [9,10];9 identifier [] i;10 identifier [] _;11 call [12,13];12 identifier [] enumerate;13 argument_list [14];14 identif... | Normalize case of each word to PascalCase. |
0 module [1];1 function_definition [2,3,5];2 function_name [] sortmerna_detailed_barplot;3 parameters [4];4 identifier [] self;5 block [6,12,18,53,72,85];6 expression_statement [7];7 assignment [8,9];8 identifier [] keys;9 call [10,11];10 identifier [] OrderedDict;11 argument_list [];12 expression_statement [13];13 ass... | Make the HighCharts HTML to plot the sortmerna rates |
0 module [1];1 function_definition [2,3,5];2 function_name [] handle_units;3 parameters [4];4 identifier [] changeset;5 block [6,14,116];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] units;10 identifier [] records;11 expression_list [12,13];12 dictionary [];13 dictionary [];14 for... | Populate the change set with addUnit changes. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _set_whitespaces_flags;3 parameters [4,5];4 identifier [] self;5 identifier [] show;6 block [7,15,23,63];7 expression_statement [8];8 assignment [9,10];9 identifier [] doc;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] document;1... | Sets show white spaces flag |
0 module [1];1 function_definition [2,3,5];2 function_name [] value;3 parameters [4];4 identifier [] self;5 block [6,22,38,83,94,111];6 expression_statement [7];7 assignment [8,9];8 identifier [] user;9 attribute [10,21];10 call [11,20];11 attribute [12,19];12 attribute [13,18];13 attribute [14,17];14 attribute [15,16]... | Return the value of the redirect response |
0 module [1];1 function_definition [2,3,4];2 function_name [] _ifconfig_getnode;3 parameters [];4 block [5,34,37,50,65,70,84,89];5 for_statement [6,7,11];6 identifier [] args;7 tuple [8,9,10];8 string [];9 string [] -a;10 string [] -av;11 block [12,29];12 expression_statement [13];13 assignment [14,15];14 identifier []... | Get the hardware address on Unix by running ifconfig. |
0 module [1];1 function_definition [2,3,6];2 function_name [] header_check;3 parameters [4,5];4 identifier [] self;5 identifier [] content;6 block [7,11,20,65];7 expression_statement [8];8 assignment [9,10];9 identifier [] encode;10 None [];11 expression_statement [12];12 assignment [13,14];13 identifier [] m;14 call [... | Special HTML encoding check. |
0 module [1];1 function_definition [2,3,5];2 function_name [] all_tags;3 parameters [4];4 identifier [] self;5 block [6,12,25];6 expression_statement [7];7 assignment [8,9];8 identifier [] tags;9 call [10,11];10 identifier [] set;11 argument_list [];12 for_statement [13,14,15];13 identifier [] post;14 identifier [] sel... | Returns a list of all the unique tags, as strings, that posts in the collection have. |
0 module [1];1 function_definition [2,3,5];2 function_name [] xlabel_halo;3 parameters [4];4 identifier [] ax;5 block [6,12];6 import_statement [7];7 aliased_import [8,11];8 dotted_name [9,10];9 identifier [] matplotlib;10 identifier [] patheffects;11 identifier [] effects;12 for_statement [13,14,26];13 identifier [] t... | Add a white "halo" around the xlabels. |
0 module [1];1 function_definition [2,3,5];2 function_name [] make_uninstall;3 parameters [4];4 identifier [] parser;5 block [6,22];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] parser;10 identifier [] add_argument;11 argument_list [12,13,16,19];12 string [] host;13 keyword_argument [14,15... | Remove Ceph packages from remote hosts. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.