sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,7];2 function_name [] _update_spec_config;3 parameters [4,5,6];4 identifier [] self;5 identifier [] document_name;6 identifier [] spec;7 block [8];8 expression_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _spec_tabl... | Dynamo implementation of project specific metadata spec |
0 module [1];1 function_definition [2,3,8];2 function_name [] interpolate_sysenv;3 parameters [4,5];4 identifier [] line;5 default_parameter [6,7];6 identifier [] defaults;7 dictionary [];8 block [9,19];9 expression_statement [10];10 assignment [11,12];11 identifier [] map;12 call [13,14];13 identifier [] ChainMap;14 a... | Format line system environment variables + defaults |
0 module [1];1 function_definition [2,3,6];2 function_name [] deserialize;3 parameters [4,5];4 identifier [] self;5 identifier [] obj;6 block [7];7 if_statement [8,11,16];8 subscript [9,10];9 identifier [] obj;10 string [] immutable;11 block [12];12 return_statement [13];13 subscript [14,15];14 identifier [] obj;15 str... | Deserialize an object from the front-end. |
0 module [1];1 function_definition [2,3,5];2 function_name [] load_patt;3 parameters [4];4 identifier [] filename;5 block [6,129];6 with_statement [7,16];7 with_clause [8];8 with_item [9];9 as_pattern [10,14];10 call [11,12];11 identifier [] open;12 argument_list [13];13 identifier [] filename;14 as_pattern_target [15]... | Loads a file that was saved with the save_patt routine. |
0 module [1];1 function_definition [2,3,5];2 function_name [] setup_sensors;3 parameters [4];4 identifier [] self;5 block [6,23,35,48,60,73,85,101,113,122,131,140];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _add_result;11 call [12,15];12 attribute [13,14];13 ... | Setup some server sensors. |
0 module [1];1 function_definition [2,3,5];2 function_name [] key_field_name;3 parameters [4];4 identifier [] self;5 block [6,10,35];6 expression_statement [7];7 assignment [8,9];8 identifier [] name;9 string [] resource_id;10 if_statement [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] resource;14 ... | Field identified as the key. |
0 module [1];1 function_definition [2,3,14];2 function_name [] pinyin;3 parameters [4,5,8,11];4 identifier [] char;5 default_parameter [6,7];6 identifier [] variant;7 string [] mandarin;8 default_parameter [9,10];9 identifier [] sep;10 string [];11 default_parameter [12,13];12 identifier [] out;13 string [] tones;14 bl... | Retrieve Pinyin of a character. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _load_rules;3 parameters [4];4 identifier [] self;5 block [6,127,147];6 for_statement [7,8,11];7 identifier [] ruleset;8 attribute [9,10];9 identifier [] self;10 identifier [] active_rulesets;11 block [12,22,53];12 expression_statement [13];13 assignment [14... | Load rule definitions from config. |
0 module [1];1 function_definition [2,3,12];2 function_name [] create;3 parameters [4,5,6,9];4 identifier [] gandi;5 identifier [] name;6 default_parameter [7,8];7 identifier [] value;8 None [];9 default_parameter [10,11];10 identifier [] filename;11 None [];12 block [13,25,35,46,58,65];13 if_statement [14,19];14 boole... | Create a new SSH key. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _prepare;3 parameters [4,5];4 identifier [] self;5 identifier [] serialized_obj;6 block [7,24,36,47];7 expression_statement [8];8 assignment [9,10];9 identifier [] nonce;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] nacl;14 ident... | Prepare the object to be sent over the untrusted channel. |
0 module [1];1 function_definition [2,3,6];2 function_name [] teardown_conn;3 parameters [4,5];4 identifier [] self;5 identifier [] context;6 block [7,13,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] client_id;10 attribute [11,12];11 identifier [] context;12 identifier [] user_data;13 expression_st... | Teardown a connection from a client. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _terminate_process_iou;3 parameters [4];4 identifier [] self;5 block [6,44,50];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] _iou_process;10 block [11,30];11 expression_statement [12];12 call [13,16];13 attribute [14,15];14 ide... | Terminate the IOU process if running |
0 module [1];1 function_definition [2,3,5];2 function_name [] run;3 parameters [4];4 identifier [] self;5 block [6,18,28,36,46,137,164];6 expression_statement [7];7 assignment [8,9];8 identifier [] connection;9 call [10,17];10 attribute [11,16];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier []... | Kill any open Redshift sessions for the given database. |
0 module [1];1 function_definition [2,3,6];2 function_name [] small_phi_ces_distance;3 parameters [4,5];4 identifier [] C1;5 identifier [] C2;6 block [7];7 return_statement [8];8 binary_operator [9,18] -;9 call [10,11];10 identifier [] sum;11 generator_expression [12,15];12 attribute [13,14];13 identifier [] c;14 ident... | Return the difference in |small_phi| between |CauseEffectStructure|. |
0 module [1];1 function_definition [2,3,6];2 function_name [] same_pyname;3 parameters [4,5];4 identifier [] expected;5 identifier [] pyname;6 block [7,18,25,56];7 if_statement [8,15];8 boolean_operator [9,12] or;9 comparison_operator [10,11] is;10 identifier [] expected;11 None [];12 comparison_operator [13,14] is;13 ... | Check whether `expected` and `pyname` are the same |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] close;3 parameters [4];4 identifier [] self;5 type [6];6 None [];7 block [8,14,21,34];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] cancel_pending_tasks;13 argument_list [];14 expression_statement [15... | Closes connection to the LifeSOS ethernet interface. |
0 module [1];1 function_definition [2,3,5];2 function_name [] list;3 parameters [4];4 identifier [] self;5 block [6,18,26,42,54,64];6 expression_statement [7];7 assignment [8,9];8 identifier [] response;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _client;14 identifier... | List available block devices |
0 module [1];1 function_definition [2,3,9];2 function_name [] declare_local_operator;3 parameters [4,5,6];4 identifier [] self;5 identifier [] type;6 default_parameter [7,8];7 identifier [] raw_model;8 None [];9 block [10,22,37,45];10 expression_statement [11];11 assignment [12,13];12 identifier [] onnx_name;13 call [1... | This function is used to declare new local operator. |
0 module [1];1 function_definition [2,3,4];2 function_name [] modify_path;3 parameters [];4 block [5,13,24,30];5 if_statement [6,11];6 comparison_operator [7,10] !=;7 attribute [8,9];8 identifier [] os;9 identifier [] name;10 string [] nt;11 block [12];12 return_statement [];13 expression_statement [14];14 assignment [... | Modify the module search path. |
0 module [1];1 function_definition [2,3,8];2 function_name [] RestoreTaskStoreFactory;3 parameters [4,5,6,7];4 identifier [] store_class;5 identifier [] chunk_size;6 identifier [] restore_file;7 identifier [] save_file;8 block [9,18,28,47,64,77,86,102];9 expression_statement [10];10 assignment [11,12];11 identifier [] ... | Restores a task store from file. |
0 module [1];1 function_definition [2,3,4];2 function_name [] local_run;3 parameters [];4 block [5,16,23,30,42];5 expression_statement [6];6 assignment [7,8];7 identifier [] server_software;8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] environ;13 identifier [] get;14 argume... | Whether we should hit GCS dev appserver stub. |
0 module [1];1 function_definition [2,3,5];2 function_name [] deps_tree;3 parameters [4];4 identifier [] self;5 block [6,17];6 expression_statement [7];7 assignment [8,9];8 identifier [] dependencies;9 binary_operator [10,13] +;10 attribute [11,12];11 identifier [] self;12 identifier [] dependencies;13 list [14] [self.... | Package dependencies image map file |
0 module [1];1 function_definition [2,3,9];2 function_name [] redef;3 parameters [4,5,6,7];4 identifier [] obj;5 identifier [] key;6 identifier [] value;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10];10 return_statement [11];11 call [12,13];12 identifier [] Redef;13 argument_list [14,15,16,19];14 id... | A static constructor helper function |
0 module [1];1 function_definition [2,3,6];2 function_name [] push_supply;3 parameters [4,5];4 identifier [] self;5 identifier [] tokens;6 block [7,16,30,51,126,132];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] logger;11 identifier [] debug;12 argument_list [13];13 binary_operator [14,1... | Adds OPF and CPF data to a Generator. |
0 module [1];1 function_definition [2,3,5];2 function_name [] mol;3 parameters [4];4 identifier [] self;5 block [6,51];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _mol;11 None [];12 block [13,23,30,39];13 expression_statement [14];14 assignment [15,16];... | Return record in MOL format |
0 module [1];1 function_definition [2,3,4];2 function_name [] tempnam;3 parameters [];4 block [5,11];5 expression_statement [6];6 assignment [7,8];7 identifier [] stderr;8 attribute [9,10];9 identifier [] sys;10 identifier [] stderr;11 try_statement [12,31];12 block [13,23];13 expression_statement [14];14 assignment [1... | returns a temporary file-name |
0 module [1];1 function_definition [2,3,6];2 function_name [] _construct_location_stack_entry;3 parameters [4,5];4 identifier [] location;5 identifier [] num_traverses;6 block [7,31,51];7 if_statement [8,18];8 boolean_operator [9,15] or;9 not_operator [10];10 call [11,12];11 identifier [] isinstance;12 argument_list [1... | Return a LocationStackEntry namedtuple with the specified parameters. |
0 module [1];1 function_definition [2,3,11];2 function_name [] _draw_lines;3 parameters [4,5,6,7,8,9,10];4 identifier [] self;5 identifier [] bg;6 identifier [] colour;7 identifier [] extent;8 identifier [] line;9 identifier [] xo;10 identifier [] yo;11 block [12,31];12 expression_statement [13];13 assignment [14,15];1... | Draw a set of lines from a vector tile. |
0 module [1];1 function_definition [2,3,5];2 function_name [] close_application;3 parameters [4];4 identifier [] self;5 block [6,21];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _debug;11 argument_list [12];12 binary_operator [13,14] %;13 string [] Closing applicatio... | Closes the current application and also close webdriver session. |
0 module [1];1 function_definition [2,3,5];2 function_name [] FaultFromFaultMessage;3 parameters [4];4 identifier [] ps;5 block [6,17,38];6 expression_statement [7];7 assignment [8,9];8 identifier [] pyobj;9 call [10,13];10 attribute [11,12];11 identifier [] ps;12 identifier [] Parse;13 argument_list [14];14 attribute ... | Parse the message as a fault. |
0 module [1];1 function_definition [2,3,6];2 function_name [] __print;3 parameters [4,5];4 identifier [] self;5 identifier [] msg;6 block [7];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] announce;12 argument_list [13,14];13 identifier [] msg;14 keyword_argument [15... | Shortcut for printing with the distutils logger. |
0 module [1];1 function_definition [2,3,9];2 function_name [] toggle_view;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,20,28,116,122];10 expression_statement [11];11 assignment [12,13];12 identifier [] group_to_... | Toggles the view between different groups |
0 module [1];1 function_definition [2,3,13];2 function_name [] fastStreamedQuery;3 parameters [4,5,6,7,10];4 identifier [] self;5 identifier [] url;6 keyword_separator [];7 default_parameter [8,9];8 identifier [] headers;9 None [];10 default_parameter [11,12];11 identifier [] verify;12 True [];13 block [14,40,46];14 ex... | Send a GET request with short timeout, do not retry, and return streamed response. |
0 module [1];1 function_definition [2,3,8];2 function_name [] setdefault;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key;6 list_splat_pattern [7];7 identifier [] args;8 block [9,15];9 assert_statement [10];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [] key;14 identif... | Set lowercase key value and return. |
0 module [1];1 function_definition [2,3,6];2 function_name [] match_patterns;3 parameters [4,5];4 identifier [] pathname;5 identifier [] patterns;6 block [7,20];7 for_statement [8,9,10];8 identifier [] pattern;9 identifier [] patterns;10 block [11];11 if_statement [12,17];12 call [13,14];13 identifier [] fnmatch;14 arg... | Returns ``True`` if the pathname matches any of the given patterns. |
0 module [1];1 function_definition [2,3,11];2 function_name [] convert_trig_to_hdf;3 parameters [4,5,6,7,8];4 identifier [] workflow;5 identifier [] hdfbank;6 identifier [] xml_trigger_files;7 identifier [] out_dir;8 default_parameter [9,10];9 identifier [] tags;10 None [];11 block [12,21,28,33,39,113];12 if_statement ... | Return the list of hdf5 trigger files outputs |
0 module [1];1 function_definition [2,3,7];2 function_name [] transform_outgoing;3 parameters [4,5,6];4 identifier [] self;5 identifier [] son;6 identifier [] collection;7 block [8];8 if_statement [9,14,102,121];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] son;13 identifier [] di... | Recursively restore all transformed keys. |
0 module [1];1 function_definition [2,3,20,22];2 function_name [] in_attack_range_of;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] unit;7 type [8];8 identifier [] Unit;9 typed_default_parameter [10,11,19];10 identifier [] bonus_distance;11 type [12];12 generic_type [13,14];13 identif... | Filters units that are in attack range of the unit in parameter |
0 module [1];1 function_definition [2,3,10];2 function_name [] rgb_reduce;3 parameters [4,5,6,7];4 identifier [] r;5 identifier [] g;6 identifier [] b;7 default_parameter [8,9];8 identifier [] mode;9 integer [] 8;10 block [11,19,45,51];11 expression_statement [12];12 assignment [13,14];13 identifier [] colours;14 subsc... | Convert an RGB colour to 8 or 16 colour ANSI graphics. |
0 module [1];1 function_definition [2,3,6];2 function_name [] to_python;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,9,15];7 expression_statement [8];8 string [] Normalize data to a list of strings.;9 if_statement [10,12];10 not_operator [11];11 identifier [] value;12 block [13];13 return_st... | Normalize data to a list of strings. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_all_children;3 parameters [4];4 identifier [] self;5 block [6,10,60];6 expression_statement [7];7 assignment [8,9];8 identifier [] res;9 string [];10 if_statement [11,14,54];11 attribute [12,13];12 identifier [] self;13 identifier [] child_nodes;14 bloc... | return the list of children of a node |
0 module [1];1 function_definition [2,3,5];2 function_name [] queryables;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] dict;9 argument_list [10];10 binary_operator [11,40] +;11 binary_operator [12,23] +;12 list_comprehension [13,18];13 tuple [14,17];14 attribute [... | return a dict of the kinds allowable columns for this object |
0 module [1];1 function_definition [2,3,5];2 function_name [] find_interconnect_ports;3 parameters [4];4 identifier [] self;5 block [6,16,26,66];6 expression_statement [7];7 assignment [8,9];8 identifier [] phy_port_list;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] ext... | Find the internal veth or patch ports. |
0 module [1];1 function_definition [2,3,17];2 function_name [] delete_thumbnails;3 parameters [4,5,8,11,14];4 identifier [] relative_source_path;5 default_parameter [6,7];6 identifier [] root;7 None [];8 default_parameter [9,10];9 identifier [] basedir;10 None [];11 default_parameter [12,13];12 identifier [] subdir;13 ... | Delete all thumbnails for a source image. |
0 module [1];1 function_definition [2,3,7];2 function_name [] message;3 parameters [4,5,6];4 identifier [] self;5 identifier [] bot;6 identifier [] comm;7 block [8,20];8 expression_statement [9];9 call [10,17];10 attribute [11,16];11 call [12,13];12 identifier [] super;13 argument_list [14,15];14 identifier [] KarmaAdv... | Check for strings ending with 2 or more '-' or '+' |
0 module [1];1 function_definition [2,3,6];2 function_name [] skip_connection_distance;3 parameters [4,5];4 identifier [] a;5 identifier [] b;6 block [7,18,31,44];7 if_statement [8,15];8 comparison_operator [9,12] !=;9 subscript [10,11];10 identifier [] a;11 integer [] 2;12 subscript [13,14];13 identifier [] b;14 integ... | The distance between two skip-connections. |
0 module [1];1 function_definition [2,3,5];2 function_name [] can_convert;3 parameters [4];4 identifier [] x;5 block [6,27,33,41,49,53,71,78];6 if_statement [7,24];7 boolean_operator [8,16] or;8 comparison_operator [9,15] <;9 call [10,11];10 identifier [] len;11 argument_list [12];12 attribute [13,14];13 identifier [] ... | Returns True if x can be converted to an image, False otherwise. |
0 module [1];1 function_definition [2,3,6];2 function_name [] round_corner;3 parameters [4,5];4 identifier [] radius;5 identifier [] fill;6 block [7,20,29,49];7 expression_statement [8];8 assignment [9,10];9 identifier [] corner;10 call [11,14];11 attribute [12,13];12 identifier [] Image;13 identifier [] new;14 argumen... | Draw a round corner |
0 module [1];1 function_definition [2,3,6];2 function_name [] object_path;3 parameters [4,5];4 identifier [] self;5 identifier [] objhash;6 block [7];7 return_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] path;13 identifier [] join;14 argument_list [15,18,21];... | Returns the path to an object file based on its hash. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _prepare_target;3 parameters [4,5,6];4 identifier [] ts;5 identifier [] tables;6 identifier [] buffer_size;7 block [8];8 for_statement [9,10,11];9 identifier [] tablename;10 identifier [] tables;11 block [12,18,25];12 expression_statement [13];13 assignment ... | Clear tables affected by the processing. |
0 module [1];1 function_definition [2,3,6];2 function_name [] request;3 parameters [4,5];4 identifier [] self;5 identifier [] action;6 block [7,15,19,49,56];7 expression_statement [8];8 assignment [9,10];9 identifier [] ev;10 call [11,14];11 attribute [12,13];12 identifier [] threading;13 identifier [] Event;14 argumen... | Request an action to be performed, in case one. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _save_file_and_pos;3 parameters [4];4 identifier [] self;5 block [6,13];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] _pos_changed;11 block [12];12 return_statement [];13 with_statement [14,26];14 with_clau... | Save current position into file |
0 module [1];1 function_definition [2,3,5];2 function_name [] periodicity;3 parameters [4];4 identifier [] freq_or_frame;5 block [6];6 if_statement [7,12,63,96,178];7 call [8,9];8 identifier [] hasattr;9 argument_list [10,11];10 identifier [] freq_or_frame;11 string [] rule_code;12 block [13,19,30,40];13 expression_sta... | resolve the number of periods per year |
0 module [1];1 function_definition [2,3,9];2 function_name [] stat;3 parameters [4,5,6];4 identifier [] self;5 identifier [] filename;6 default_parameter [7,8];7 identifier [] timeout;8 None [];9 block [10,19,28,37,44];10 expression_statement [11];11 assignment [12,13];12 identifier [] transport;13 call [14,15];14 iden... | Return device file stat. |
0 module [1];1 function_definition [2,3,5];2 function_name [] device_connect;3 parameters [4];4 identifier [] device_id;5 block [6,10,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] success;9 False [];10 if_statement [11,14];11 comparison_operator [12,13] in;12 identifier [] device_id;13 identifier []... | Force a connection attempt via HTTP GET. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_schema;3 parameters [4];4 identifier [] name;5 block [6,19,30,43,68];6 expression_statement [7];7 assignment [8,9];8 identifier [] item;9 call [10,17];10 attribute [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] datalab;14 identifier ... | Given a variable or table name, get the Schema if it exists. |
0 module [1];1 function_definition [2,3,5];2 function_name [] handle_code;3 parameters [4];4 identifier [] code;5 block [6,8,12,186];6 expression_statement [7];7 string [] Handle a key or sequence of keys in braces;8 expression_statement [9];9 assignment [10,11];10 identifier [] code_keys;11 list [] [];12 if_statement ... | Handle a key or sequence of keys in braces |
0 module [1];1 function_definition [2,3,6];2 function_name [] _filterDictToStr;3 parameters [4,5];4 identifier [] self;5 identifier [] filterDict;6 block [7,11,50];7 expression_statement [8];8 assignment [9,10];9 identifier [] values;10 list [] [];11 for_statement [12,15,20];12 pattern_list [13,14];13 identifier [] key... | Converts friend filters to a string representation for transport. |
0 module [1];1 function_definition [2,3,5];2 function_name [] callback;3 parameters [4];4 identifier [] newstate;5 block [6,12,95];6 expression_statement [7];7 call [8,9];8 identifier [] print;9 argument_list [10,11];10 string [] callback:;11 identifier [] newstate;12 if_statement [13,18,51,83];13 comparison_operator [... | Callback from modem, process based on new state |
0 module [1];1 function_definition [2,3,7];2 function_name [] _parse_button;3 parameters [4,5,6];4 identifier [] self;5 identifier [] keypad;6 identifier [] component_xml;7 block [8,17,26,35,44,55,63,93];8 expression_statement [9];9 assignment [10,11];10 identifier [] button_xml;11 call [12,15];12 attribute [13,14];13 ... | Parses a button device that part of a keypad. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _handler_http;3 parameters [4,5];4 identifier [] self;5 identifier [] result;6 block [7,13,26,34,80,91];7 expression_statement [8];8 assignment [9,10];9 identifier [] monitor;10 subscript [11,12];11 identifier [] result;12 string [] monitor;13 expression_sta... | Handle the result of an http monitor |
0 module [1];1 function_definition [2,3,5];2 function_name [] __json;3 parameters [4];4 identifier [] self;5 block [6,19,23,105,114];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] exclude_list;11 None [];12 block [13];13 expression_statement [14];14 assign... | Using the exclude lists, convert fields to a string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_counts;3 parameters [4,5];4 identifier [] self;5 identifier [] f;6 block [7,13,19,50];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _consolidate_inplace;12 argument_list [];13 expression_statement [1... | return a dict of the counts of the function in BlockManager |
0 module [1];1 function_definition [2,3,5];2 function_name [] _fill;3 parameters [4];4 identifier [] self;5 block [6,14,22,28,48];6 expression_statement [7];7 assignment [8,9];8 identifier [] right_now;9 call [10,13];10 attribute [11,12];11 identifier [] time;12 identifier [] time;13 argument_list [];14 expression_stat... | Fills bucket with accrued tokens since last fill. |
0 module [1];1 function_definition [2,3,10];2 function_name [] save_proficiency;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] proficiency_form;6 list_splat_pattern [7];7 identifier [] args;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11];11 if_statement [12,17,29];12 call [13,16];13 att... | Pass through to provider ProficiencyAdminSession.update_proficiency |
0 module [1];1 function_definition [2,3,6];2 function_name [] parse;3 parameters [4,5];4 identifier [] data;5 identifier [] datafile;6 block [7,16,104,108,112,136,170];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] data;11 identifier [] _last_travel;12 list [13,14] [0, [0]];13 integ... | Read the Adventure data file and return a ``Data`` object. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _tag_ec2;3 parameters [4,5,6];4 identifier [] self;5 identifier [] conn;6 identifier [] role;7 block [8,15];8 expression_statement [9];9 assignment [10,11];10 identifier [] tags;11 dictionary [12];12 pair [13,14];13 string [] Role;14 identifier [] role;15 ex... | tag the current EC2 instance with a cluster role |
0 module [1];1 function_definition [2,3,6];2 function_name [] _player_step_tuple;3 parameters [4,5];4 identifier [] self;5 identifier [] envs_step_tuples;6 block [7,17,30];7 expression_statement [8];8 assignment [9,14];9 pattern_list [10,11,12,13];10 identifier [] ob;11 identifier [] reward;12 identifier [] done;13 ide... | Augment observation, return usual step tuple. |
0 module [1];1 function_definition [2,3,6];2 function_name [] main;3 parameters [4,5];4 identifier [] dimension;5 identifier [] iterations;6 block [7,16,23,71];7 expression_statement [8];8 assignment [9,10];9 identifier [] objective_function;10 call [11,12];11 identifier [] minimize;12 argument_list [13];13 attribute [... | Main function to execute gbest GC PSO algorithm. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _dict_to_obj;3 parameters [4,5];4 identifier [] self;5 identifier [] d;6 block [7,16,27];7 if_statement [8,13];8 comparison_operator [9,12] not in;9 attribute [10,11];10 identifier [] JsonEncoder;11 identifier [] TYPE_ID;12 identifier [] d;13 block [14];14 r... | Converts a dictionary of json object to a Python object. |
0 module [1];1 function_definition [2,3,8];2 function_name [] attrfindrows;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] groupname;6 identifier [] attrname;7 identifier [] value;8 block [9,19];9 expression_statement [10];10 assignment [11,12];11 identifier [] values;12 call [13,16];13 attribute [14,15];14... | Get the row numbers of all rows where the attribute matches the given value. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _mogrify;3 parameters [4,5,6];4 identifier [] conn;5 identifier [] query;6 identifier [] args;7 block [8,18,22,82,84,106,130];8 expression_statement [9];9 assignment [10,11];10 identifier [] ps;11 await [12];12 call [13,16];13 attribute [14,15];14 identifier... | Safely inline arguments to query text. |
0 module [1];1 function_definition [2,3,6];2 function_name [] list_dynamodb;3 parameters [4,5];4 identifier [] region;5 identifier [] filter_by_kwargs;6 block [7,18,26];7 expression_statement [8];8 assignment [9,10];9 identifier [] conn;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] boto;14 ... | List all DynamoDB tables. |
0 module [1];1 function_definition [2,3,5];2 function_name [] md5;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,36];8 attribute [9,35];9 call [10,13];10 attribute [11,12];11 identifier [] hashlib;12 identifier [] md5;13 argument_list [14];14 call [15,18];15 attribute [16,17];16 stri... | Return a md5 key string based on position, ref and alt |
0 module [1];1 function_definition [2,3,5];2 function_name [] deep_run;3 parameters [4];4 identifier [] self;5 block [6,24,37,46,52,60,74,91];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] get_period_LS;11 argument_list [12,15,18,21];12 attribute [13,14];13 identifier ... | Derive period-based features. |
0 module [1];1 function_definition [2,3,7];2 function_name [] group_remove;3 parameters [4,5];4 identifier [] name;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,16];8 expression_statement [9];9 assignment [10,11];10 identifier [] ctx;11 call [12,13];12 identifier [] Context;13 argument_list [14];14 d... | Remove routing group from the storage. |
0 module [1];1 function_definition [2,3,6];2 function_name [] send_point_data;3 parameters [4,5];4 identifier [] events;5 identifier [] additional;6 block [7,11,74];7 expression_statement [8];8 assignment [9,10];9 identifier [] bodies;10 dictionary [];11 for_statement [12,17,22];12 pattern_list [13,16];13 tuple_pattern... | creates data point payloads and sends them to influxdb |
0 module [1];1 function_definition [2,3,6];2 function_name [] _wraps;3 parameters [4,5];4 identifier [] self;5 identifier [] tokens;6 block [7,54,115,124];7 function_definition [8,9,11];8 function_name [] _differ;9 parameters [10];10 identifier [] tokens;11 block [12,18,34,50];12 expression_statement [13];13 assignment... | determine if a token is wrapped by another token |
0 module [1];1 function_definition [2,3,5];2 function_name [] read_records;3 parameters [4];4 identifier [] file;5 block [6,10,37];6 expression_statement [7];7 assignment [8,9];8 identifier [] records;9 list [] [];10 for_statement [11,12,16];11 identifier [] record_data;12 call [13,14];13 identifier [] read_recordio;14... | Eagerly read a collection of amazon Record protobuf objects from file. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _num_vowel_to_acc;3 parameters [4,5];4 identifier [] vowel;5 identifier [] tone;6 block [7];7 try_statement [8,18];8 block [9];9 return_statement [10];10 subscript [11,12];11 identifier [] VOWEL_MAP;12 binary_operator [13,14] +;13 identifier [] vowel;14 call... | Convert a numbered vowel to an accented vowel. |
0 module [1];1 function_definition [2,3,12,14];2 function_name [] getElementsByClassName;3 parameters [4,8];4 typed_parameter [5,6];5 identifier [] start_node;6 type [7];7 identifier [] ParentNode;8 typed_parameter [9,10];9 identifier [] class_name;10 type [11];11 identifier [] str;12 type [13];13 identifier [] NodeLis... | Get child nodes which has ``class_name`` class attribute. |
0 module [1];1 function_definition [2,3,7];2 function_name [] read_pos_neg_data;3 parameters [4,5,6];4 identifier [] path;5 identifier [] folder;6 identifier [] limit;7 block [8,21,34,41,48,75,103];8 expression_statement [9];9 assignment [10,11];10 identifier [] training_pos_path;11 call [12,17];12 attribute [13,16];13... | returns array with positive and negative examples |
0 module [1];1 function_definition [2,3,10];2 function_name [] save_hierarchy;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] hierarchy_form;6 list_splat_pattern [7];7 identifier [] args;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11];11 if_statement [12,17,29];12 call [13,16];13 attribu... | Pass through to provider HierarchyAdminSession.update_hierarchy |
0 module [1];1 function_definition [2,3,6];2 function_name [] _doc_rev;3 parameters [4,5];4 identifier [] self;5 identifier [] res;6 block [7,15,24];7 expression_statement [8];8 assignment [9,10];9 identifier [] jstr;10 subscript [11,14];11 attribute [12,13];12 identifier [] res;13 identifier [] headers;14 string [] X-... | Returns the rev id from the header |
0 module [1];1 function_definition [2,3,5];2 function_name [] omnihash;3 parameters [4];4 identifier [] obj;5 block [6];6 if_statement [7,12,27,50,79];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] obj;11 identifier [] set;12 block [13];13 return_statement [14];14 call [15,16];15 ident... | recursively hash unhashable objects |
0 module [1];1 function_definition [2,3,9];2 function_name [] scoreatpercentile;3 parameters [4,5,6];4 identifier [] data;5 identifier [] per;6 default_parameter [7,8];7 identifier [] axis;8 integer [] 0;9 block [10,12,24,39];10 expression_statement [11];11 string [] like the function in scipy.stats but with an axis ar... | like the function in scipy.stats but with an axis argument and works on arrays |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_counter_reference;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,43,52];7 () [8];8 boolean_operator [9,30] and;9 boolean_operator [10,21] and;10 boolean_operator [11,16] and;11 comparison_operator [12,15] is not;12 attribute [13,14]... | Identify which factory should be used for a shared counter. |
0 module [1];1 function_definition [2,3,6];2 function_name [] list_action;3 parameters [4];4 dictionary_splat_pattern [5];5 identifier [] kwargs;6 block [7,32];7 function_definition [8,9,11];8 function_name [] decorator;9 parameters [10];10 identifier [] func;11 block [12,18,24,30];12 expression_statement [13];13 assig... | Used to mark a method on a ResourceBinding that should be routed for list actions. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _match_data_to_parameter;3 parameters [4,5];4 identifier [] cls;5 identifier [] data;6 block [7,13,31];7 expression_statement [8];8 assignment [9,10];9 identifier [] in_value;10 subscript [11,12];11 identifier [] data;12 string [] in;13 for_statement [14,15,... | find the appropriate parameter for a parameter field |
0 module [1];1 function_definition [2,3,5];2 function_name [] query;3 parameters [4];4 identifier [] self;5 block [6,14,23];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] b64_query;11 block [12];12 return_statement [13];13 None [];14 expression_statement [15];15 assign... | De-serialize, decode and return an ORM query stored in b64_query. |
0 module [1];1 function_definition [2,3,5];2 function_name [] normalize_value;3 parameters [4];4 identifier [] value;5 block [6,13,21,32,43,54,65,76,87,98,109];6 expression_statement [7];7 assignment [8,9];8 identifier [] value;9 call [10,11];10 identifier [] str;11 argument_list [12];12 identifier [] value;13 expressi... | Normalize metadata value to improve match accuracy. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _segment_normalized_cnvkit;3 parameters [4,5,6];4 identifier [] cnr_file;5 identifier [] work_dir;6 identifier [] paired;7 block [8,40,68,86,99];8 expression_statement [9];9 assignment [10,11];10 identifier [] cnvkit_base;11 call [12,17];12 attribute [13,16]... | Segmentation of normalized inputs using CNVkit. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _before_insert;3 parameters [4,5,6];4 identifier [] mapper;5 identifier [] connection;6 identifier [] target;7 block [8];8 if_statement [9,14];9 comparison_operator [10,13] is;10 attribute [11,12];11 identifier [] target;12 identifier [] position;13 None [];... | Set item to last position if position not defined. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _generic_signal_handler;3 parameters [4,5];4 identifier [] self;5 identifier [] signal_type;6 block [7,12,20,27,40];7 expression_statement [8];8 call [9,10];9 identifier [] print;10 argument_list [11];11 string [] </pre>;12 expression_statement [13];13 assig... | Function for handling both SIGTERM and SIGINT |
0 module [1];1 function_definition [2,3,5];2 function_name [] find_column;3 parameters [4];4 identifier [] t;5 block [6,14,22,33,43,49];6 expression_statement [7];7 assignment [8,9];8 identifier [] pos;9 attribute [10,13];10 attribute [11,12];11 identifier [] t;12 identifier [] lexer;13 identifier [] lexpos;14 expressi... | Get cursor position, based on previous newline |
0 module [1];1 function_definition [2,3,5];2 function_name [] trim_trailing_silence;3 parameters [4];4 identifier [] self;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] length;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] get_active_length;13 argument_list [];1... | Trim the trailing silence of the pianoroll. |
0 module [1];1 function_definition [2,3,6];2 function_name [] in_tree;3 parameters [4,5];4 identifier [] self;5 identifier [] cmd_args;6 block [7,13,17,37];7 if_statement [8,10];8 not_operator [9];9 identifier [] cmd_args;10 block [11];11 return_statement [12];12 True [];13 expression_statement [14];14 assignment [15,1... | if a command is in the tree |
0 module [1];1 function_definition [2,3,7];2 function_name [] feed;3 parameters [4,5,6];4 identifier [] self;5 identifier [] cube;6 identifier [] pair;7 block [8,14,42];8 expression_statement [9];9 assignment [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] cube;13 identifier [] cube;14 if_statement ... | Feed Cube to the solver. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _at;3 parameters [4,5];4 identifier [] self;5 identifier [] t;6 block [7,19,30];7 expression_statement [8];8 assignment [9,13];9 pattern_list [10,11,12];10 identifier [] rITRF;11 identifier [] vITRF;12 identifier [] error;13 call [14,17];14 attribute [15,16]... | Compute this satellite's GCRS position and velocity at time `t`. |
0 module [1];1 function_definition [2,3,10];2 function_name [] _configure_logging;3 parameters [4,7];4 default_parameter [5,6];5 identifier [] verbose;6 False [];7 default_parameter [8,9];8 identifier [] debug;9 False [];10 block [11,22,43,45,54];11 expression_statement [12];12 assignment [13,14];13 identifier [] overa... | Configure the log global, message format, and verbosity settings. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.