sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,6];2 function_name [] _settings_from_args;3 parameters [4,5];4 identifier [] self;5 identifier [] args;6 block [7,13,17,31,44,57];7 if_statement [8,10];8 not_operator [9];9 identifier [] args;10 block [11];11 return_statement [12];12 dictionary [];13 expression_statement [14];14 ... | Loads settings from args. |
0 module [1];1 function_definition [2,3,7];2 function_name [] request_set_sensor_inactive;3 parameters [4,5,6];4 identifier [] self;5 identifier [] req;6 identifier [] sensor_name;7 block [8,17,28,39];8 expression_statement [9];9 assignment [10,11];10 identifier [] sensor;11 call [12,15];12 attribute [13,14];13 identif... | Set sensor status to inactive |
0 module [1];1 function_definition [2,3,8];2 function_name [] _connect;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] database;7 None [];8 block [9,48,65,78,107,114];9 expression_statement [10];10 assignment [11,12];11 identifier [] conn_args;12 dictionary [13,20,27,34,41];13 pair [14... | Connect to given database |
0 module [1];1 function_definition [2,3,7];2 function_name [] feature_union;3 parameters [4,5,6];4 identifier [] names;5 identifier [] steps;6 identifier [] weights;7 block [8,22,29,63];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] steps;12 identifier [] times;13 call [14,15];... | Reconstruct a FeatureUnion from names, steps, and weights |
0 module [1];1 function_definition [2,3,4];2 function_name [] reset_config_files;3 parameters [];4 block [5,13];5 expression_statement [6];6 call [7,8];7 identifier [] print;8 argument_list [9,10];9 string [] *** Reset Spyder settings to defaults ***;10 keyword_argument [11,12];11 identifier [] file;12 identifier [] ST... | Remove all config files |
0 module [1];1 function_definition [2,3,14];2 function_name [] add_auth;3 parameters [4,5,8,11];4 identifier [] self;5 default_parameter [6,7];6 identifier [] user;7 None [];8 default_parameter [9,10];9 identifier [] password;10 None [];11 default_parameter [12,13];12 identifier [] pattern;13 None [];14 block [15,34,54... | Add given authentication data. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _change_bios_setting;3 parameters [4,5];4 identifier [] self;5 identifier [] properties;6 block [7,15,27,57,68,82];7 expression_statement [8];8 assignment [9,10];9 identifier [] keys;10 call [11,14];11 attribute [12,13];12 identifier [] properties;13 identif... | Change the bios settings to specified values. |
0 module [1];1 function_definition [2,3,5,15];2 function_name [] rows;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] List;8 type_parameter [9];9 type [10];10 generic_type [11,12];11 identifier [] List;12 type_parameter [13];13 type [14];14 identifier [] str;15 block [16];16 return... | Returns the table rows. |
0 module [1];1 function_definition [2,3,6];2 function_name [] print_virt_table;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,15,26,34,51,69];7 expression_statement [8];8 assignment [9,10];9 identifier [] table;10 call [11,14];11 attribute [12,13];12 identifier [] prettytable;13 identifier [] P... | Print a vertical pretty table from data. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_uri;3 parameters [4];4 identifier [] self;5 block [6,23];6 if_statement [7,15];7 not_operator [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] service;13 identifier [] exists;14 argument_list [];15 block ... | Will return the uri for an existing instance. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_bandfile;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] options;7 block [8,18,46,52];8 expression_statement [9];9 assignment [10,11];10 identifier [] path;11 subscript [12,15];12 attribute [13,14];13 identifier []... | Get the VIIRS rsr filename |
0 module [1];1 function_definition [2,3,6];2 function_name [] _read_atlas_zonefile;3 parameters [4,5];4 identifier [] zonefile_path;5 identifier [] zonefile_hash;6 block [7,27,51];7 with_statement [8,18];8 with_clause [9];9 with_item [10];10 as_pattern [11,16];11 call [12,13];12 identifier [] open;13 argument_list [14,... | Read and verify an atlas zone file |
0 module [1];1 function_definition [2,3,10];2 function_name [] normalize;3 parameters [4,5];4 identifier [] input;5 default_parameter [6,7];6 identifier [] case_mapping;7 attribute [8,9];8 identifier [] protocol;9 identifier [] DEFAULT_CASE_MAPPING;10 block [11,32,40,69,84];11 if_statement [12,17];12 comparison_operato... | Normalize input according to case mapping. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _transform_result;3 parameters [4,5];4 identifier [] self;5 identifier [] result;6 block [7,21];7 if_statement [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _transform_func;11 block [12];12 expression_statement [13];13 assignment [14,15];14... | Calls transform function on result. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _is_playlist_in_config_dir;3 parameters [4];4 identifier [] self;5 block [6,48];6 if_statement [7,19,32];7 comparison_operator [8,16] ==;8 call [9,12];9 attribute [10,11];10 identifier [] path;11 identifier [] dirname;12 argument_list [13];13 attribute [14,1... | Check if a csv file is in the config dir |
0 module [1];1 function_definition [2,3,6];2 function_name [] ip_cmd;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,28,37];7 if_statement [8,17];8 not_operator [9];9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] container_exists;13 argument_list [14];14 keyword_argume... | Print ip of given container |
0 module [1];1 function_definition [2,3,5];2 function_name [] _write_branch_and_tag_to_meta_yaml;3 parameters [4];4 identifier [] self;5 block [6,54];6 with_statement [7,25];7 with_clause [8];8 with_item [9];9 as_pattern [10,23];10 call [11,12];11 identifier [] open;12 argument_list [13,22];13 call [14,19];14 attribute... | Write branch and tag to meta.yaml by editing in place |
0 module [1];1 function_definition [2,3,9];2 function_name [] delete;3 parameters [4,5,6];4 identifier [] self;5 identifier [] item;6 default_parameter [7,8];7 identifier [] dry_run;8 None [];9 block [10];10 return_statement [11];11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] self;15 identif... | Delete an item in backend. |
0 module [1];1 function_definition [2,3,8];2 function_name [] do_move_to;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] element;6 identifier [] decl;7 identifier [] pseudo;8 block [9,22,34,44,50,97,109];9 expression_statement [10];10 assignment [11,12];11 identifier [] target;12 call [13,21];13 attribute [... | Implement move-to declaration. |
0 module [1];1 function_definition [2,3,17];2 function_name [] _update_record;3 parameters [4,5,8,11,14];4 identifier [] self;5 default_parameter [6,7];6 identifier [] identifier;7 None [];8 default_parameter [9,10];9 identifier [] rtype;10 None [];11 default_parameter [12,13];12 identifier [] name;13 None [];14 defaul... | Update a record from the hosted zone. |
0 module [1];1 function_definition [2,3,6];2 function_name [] format;3 parameters [4,5];4 identifier [] self;5 identifier [] record;6 block [7,28,57,81,100];7 for_statement [8,9,12];8 identifier [] key;9 tuple [10,11];10 string [] instance;11 string [] color;12 block [13];13 if_statement [14,19];14 comparison_operator ... | Uses contextstring if request_id is set, otherwise default. |
0 module [1];1 function_definition [2,3,5];2 function_name [] noglobals;3 parameters [4];4 identifier [] fn;5 block [6];6 return_statement [7];7 call [8,12];8 call [9,10];9 identifier [] type;10 argument_list [11];11 identifier [] fn;12 argument_list [13,23,27,37,47];13 call [14,15];14 identifier [] getattr;15 argument... | decorator for functions that dont get access to globals |
0 module [1];1 function_definition [2,3,5];2 function_name [] listen;3 parameters [4];4 identifier [] identifier;5 block [6,12,19,26,36];6 expression_statement [7];7 assignment [8,9];8 identifier [] context;9 call [10,11];10 identifier [] Context;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14... | Launch a listener and return the compactor context. |
0 module [1];1 function_definition [2,3,6];2 function_name [] mods;3 parameters [4,5];4 identifier [] self;5 identifier [] uuid;6 block [7,20];7 expression_statement [8];8 assignment [9,10];9 identifier [] picker;10 lambda [11,13];11 lambda_parameters [12];12 identifier [] x;13 call [14,17];14 attribute [15,16];15 iden... | Return a mods record for a given uuid |
0 module [1];1 function_definition [2,3,7];2 function_name [] asset_path;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] organization;6 identifier [] asset;7 block [8];8 return_statement [9];9 call [10,17];10 attribute [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] google;14 identifier [] a... | Return a fully-qualified asset string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] width_rect_weir;3 parameters [4,5];4 identifier [] FlowRate;5 identifier [] Height;6 block [7,21];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] ut;11 identifier [] check_range;12 argument_list [13,17];13 list [14,15,16] [FlowR... | Return the width of a rectangular weir. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _initialize_counters;3 parameters [4,5,6,7];4 identifier [] model_class;5 identifier [] name;6 identifier [] bases;7 identifier [] attrs;8 block [9,15];9 expression_statement [10];10 assignment [11,14];11 attribute [12,13];12 identifier [] model_class;13 ide... | Stores the list of counter fields. |
0 module [1];1 function_definition [2,3,5];2 function_name [] mkdir_recursive;3 parameters [4];4 identifier [] dirname;5 block [6,17];6 expression_statement [7];7 assignment [8,9];8 identifier [] parent;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier [] d... | makes all the directories along a given path, if they do not exist |
0 module [1];1 function_definition [2,3,5];2 function_name [] strip_magics;3 parameters [4];4 identifier [] source;5 block [6,10,41];6 expression_statement [7];7 assignment [8,9];8 identifier [] filtered;9 list [] [];10 for_statement [11,12,17];11 identifier [] line;12 call [13,16];13 attribute [14,15];14 identifier []... | Given the source of a cell, filter out all cell and line magics. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _clean_alignment;3 parameters [4];4 identifier [] args;5 block [6,13,27,36,47];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] logger;10 identifier [] info;11 argument_list [12];12 string [] Clean bam file with highly repetitive r... | Prepare alignment for cluster detection. |
0 module [1];1 function_definition [2,3,9];2 function_name [] lock;3 parameters [4,5,7];4 identifier [] resources;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10,34,39,47,78,84];10 if_statement [11,13];11 not_operator [12];12 identifier [] resources;13 blo... | Lock resources from the command line, for example for maintenance. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _prepend_name;3 parameters [4,5,6];4 identifier [] self;5 identifier [] prefix;6 identifier [] dict_;7 block [8];8 return_statement [9];9 call [10,11];10 identifier [] dict;11 generator_expression [12,22];12 list [13,21] ['.'.join([prefix, name]), msg];13 ca... | changes the keys of the dictionary prepending them with "name." |
0 module [1];1 function_definition [2,3,6];2 function_name [] read_files;3 parameters [4];4 list_splat_pattern [5];5 identifier [] filenames;6 block [7,11,48];7 expression_statement [8];8 assignment [9,10];9 identifier [] output;10 list [] [];11 for_statement [12,13,14];12 identifier [] filename;13 identifier [] filena... | Output the contents of one or more files to a single concatenated string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] endElement;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,44,58];7 if_statement [8,11,18];8 attribute [9,10];9 identifier [] self;10 identifier [] current;11 block [12];12 expression_statement [13];13 assignment [14,15];14 identifier... | End current xml element, parse and add to to parent node. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _populate_common_request;3 parameters [4,5];4 identifier [] self;5 identifier [] request;6 block [7,15,38];7 expression_statement [8];8 assignment [9,10];9 identifier [] url_record;10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier... | Populate the Request with common fields. |
0 module [1];1 function_definition [2,3,5];2 function_name [] variant;3 parameters [4];4 identifier [] self;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] variant;9 subscript [10,13];10 attribute [11,12];11 identifier [] current_app;12 identifier [] config;13 string [] THEME_VARIANT;14 if_... | Get the current theme variant |
0 module [1];1 function_definition [2,3,6];2 function_name [] merge_contextual;3 parameters [4,5];4 identifier [] self;5 identifier [] other;6 block [7,127,140];7 for_statement [8,9,14];8 identifier [] k;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] keys;13 argument_list [];14 block [15];15... | Merge in contextual info from a template Compound. |
0 module [1];1 function_definition [2,3,8];2 function_name [] out;3 parameters [4,5];4 identifier [] msg;5 default_parameter [6,7];6 identifier [] error;7 False [];8 block [9,11,15,30];9 expression_statement [10];10 string [] Send message to shell;11 expression_statement [12];12 assignment [13,14];13 identifier [] pipe... | Send message to shell |
0 module [1];1 function_definition [2,3,8];2 function_name [] getfunc;3 parameters [4,5];4 identifier [] obj;5 default_parameter [6,7];6 identifier [] name;7 string [];8 block [9,20];9 if_statement [10,11];10 identifier [] name;11 block [12];12 expression_statement [13];13 assignment [14,15];14 identifier [] obj;15 cal... | Get the function corresponding to name from obj, not the method. |
0 module [1];1 function_definition [2,3,8];2 function_name [] BackwardsReader;3 parameters [4,5];4 identifier [] file;5 default_parameter [6,7];6 identifier [] BLKSIZE;7 integer [] 4096;8 block [9,13,21,30,37];9 expression_statement [10];10 assignment [11,12];11 identifier [] buf;12 string [];13 expression_statement [1... | Read a file line by line, backwards |
0 module [1];1 function_definition [2,3,5];2 function_name [] __check_logging_rules;3 parameters [4];4 identifier [] configuration;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] valid_log_levels;9 list [10,11,12,13] [\n 'debug',\n 'info',\n 'warning',\n 'error'\... | Check that the logging values are proper |
0 module [1];1 function_definition [2,3,9];2 function_name [] commit_pushdb;3 parameters [4,5,6];4 identifier [] self;5 identifier [] coordinates;6 default_parameter [7,8];7 identifier [] postscript;8 None [];9 block [10];10 expression_statement [11];11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifi... | Commit changes to the pushdb with a message containing the provided coordinates. |
0 module [1];1 function_definition [2,3,5];2 function_name [] todict;3 parameters [4];4 identifier [] self;5 block [6,10,51];6 expression_statement [7];7 assignment [8,9];8 identifier [] dict_entry;9 list [] [];10 for_statement [11,14,19];11 pattern_list [12,13];12 identifier [] k;13 identifier [] v;14 call [15,18];15 ... | Convert this node to a dictionary tree. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getConfiguration;3 parameters [4];4 identifier [] self;5 block [6,12,28];6 expression_statement [7];7 assignment [8,9];8 identifier [] configuration;9 call [10,11];10 identifier [] c_int;11 argument_list [];12 expression_statement [13];13 call [14,15];14 ide... | Get the current configuration number for this device. |
0 module [1];1 function_definition [2,3,5];2 function_name [] q_limited;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,24,27];7 boolean_operator [8,16] or;8 () [9];9 comparison_operator [10,13] >=;10 attribute [11,12];11 identifier [] self;12 identifier [] q;13 attribute [14,15];14 identifier [] se... | Is the machine at it's limit of reactive power? |
0 module [1];1 function_definition [2,3,6];2 function_name [] collapse;3 parameters [4,5];4 identifier [] self;5 identifier [] id_user;6 block [7,26,35];7 expression_statement [8];8 assignment [9,10];9 identifier [] c;10 call [11,12];11 identifier [] CmtCOLLAPSED;12 argument_list [13,18,23];13 keyword_argument [14,15];... | Collapse comment beloging to user. |
0 module [1];1 function_definition [2,3,6];2 function_name [] relabel;3 parameters [4,5];4 identifier [] self;5 identifier [] change;6 block [7,9,27,34,42];7 expression_statement [8];8 string [] Relabel images by moving from parent dir with old label `class_old` to parent dir with new label `class_new`.;9 expression_st... | Relabel images by moving from parent dir with old label `class_old` to parent dir with new label `class_new`. |
0 module [1];1 function_definition [2,3,6];2 function_name [] build_intent;3 parameters [4,5];4 identifier [] self;5 identifier [] intent_name;6 block [7,17,27,37,53,60,67];7 expression_statement [8];8 assignment [9,10];9 identifier [] is_fallback;10 subscript [11,16];11 attribute [12,15];12 attribute [13,14];13 identi... | Builds an Intent object of the given name |
0 module [1];1 function_definition [2,3,6];2 function_name [] _looks_like_functools_member;3 parameters [4,5];4 identifier [] node;5 identifier [] member;6 block [7];7 if_statement [8,17,26];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,14];11 attribute [12,13];12 identifier [] node;13 identifier [] fun... | Check if the given Call node is a functools.partial call |
0 module [1];1 function_definition [2,3,5];2 function_name [] finalize;3 parameters [4];4 identifier [] self;5 block [6,25,34,43];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] set_title;11 argument_list [12];12 call [13,16];13 attribute [14,15];14 string [] {} Manifol... | Add title and modify axes to make the image ready for display. |
0 module [1];1 function_definition [2,3,15];2 function_name [] as_string;3 parameters [4,5,6,9,12];4 identifier [] self;5 identifier [] chars;6 default_parameter [7,8];7 identifier [] show_leaf;8 True [];9 default_parameter [10,11];10 identifier [] current_linkable;11 False [];12 default_parameter [13,14];13 identifier... | It returns breadcrumb as string |
0 module [1];1 function_definition [2,3,19];2 function_name [] InterpolateValue;3 parameters [4,5,6,13,16];4 identifier [] self;5 identifier [] value;6 default_parameter [7,8];7 identifier [] type_info_obj;8 call [9,12];9 attribute [10,11];10 identifier [] type_info;11 identifier [] String;12 argument_list [];13 defaul... | Interpolate the value and parse it with the appropriate type. |
0 module [1];1 function_definition [2,3,9];2 function_name [] node2bracket;3 parameters [4,5,6];4 identifier [] docgraph;5 identifier [] node_id;6 default_parameter [7,8];7 identifier [] child_str;8 string [];9 block [10,18,80,90];10 expression_statement [11];11 assignment [12,13];12 identifier [] node_attrs;13 subscri... | convert a docgraph node into a PTB-style string. |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_s2bs;3 parameters [4];4 identifier [] s2bs;5 block [6,10,52];6 expression_statement [7];7 assignment [8,9];8 identifier [] s2b;9 dictionary [];10 for_statement [11,12,13];11 identifier [] s;12 identifier [] s2bs;13 block [14];14 for_statement [15,16,20... | convert s2b files to dictionary |
0 module [1];1 function_definition [2,3,5];2 function_name [] main;3 parameters [4];4 identifier [] folder;5 block [6,16,23];6 expression_statement [7];7 assignment [8,12];8 pattern_list [9,10,11];9 identifier [] raw_datapath;10 identifier [] outputpath;11 identifier [] p_queue;12 call [13,14];13 identifier [] get_para... | Main part of preprocess_dataset that glues things togeter. |
0 module [1];1 function_definition [2,3,5];2 function_name [] clear;3 parameters [4];4 identifier [] self;5 block [6,12,41];6 expression_statement [7];7 assignment [8,9];8 identifier [] node;9 attribute [10,11];10 identifier [] self;11 identifier [] _first;12 while_statement [13,16];13 comparison_operator [14,15] is no... | Remove all nodes from the list. |
0 module [1];1 function_definition [2,3,5];2 function_name [] apply;3 parameters [4];4 identifier [] self;5 block [6,24];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _old_config;11 dictionary_comprehension [12,15];12 pair [13,14];13 identifier [] k;14 identifie... | Apply the current action to the current runtime configuration. |
0 module [1];1 function_definition [2,3,5];2 function_name [] messageToFile;3 parameters [4];4 identifier [] message;5 block [6,12,22,29,37];6 expression_statement [7];7 assignment [8,9];8 identifier [] outFile;9 call [10,11];10 identifier [] StringIO;11 argument_list [];12 expression_statement [13];13 assignment [14,1... | Flattens a message into a file-like object. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dump_database;3 parameters [4];4 identifier [] id;5 block [6,14,22,29,39,51,57,63,88,95];6 expression_statement [7];7 assignment [8,9];8 identifier [] tmp_dir;9 call [10,13];10 attribute [11,12];11 identifier [] tempfile;12 identifier [] mkdtemp;13 argument_... | Dump the database to a temporary directory. |
0 module [1];1 function_definition [2,3,7];2 function_name [] process_row;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] data;6 identifier [] column_map;7 block [8,12,101];8 expression_statement [9];9 assignment [10,11];10 identifier [] row;11 dictionary [];12 for_statement [13,16,21];13 pattern_list [14,15];... | Process the row data from Rekall |
0 module [1];1 function_definition [2,3,6];2 function_name [] _add_hookimpl;3 parameters [4,5];4 identifier [] self;5 identifier [] hookimpl;6 block [7,26,87];7 if_statement [8,11,18];8 attribute [9,10];9 identifier [] hookimpl;10 identifier [] hookwrapper;11 block [12];12 expression_statement [13];13 assignment [14,15... | Add an implementation to the callback chain. |
0 module [1];1 function_definition [2,3,6];2 function_name [] runner;3 parameters [4,5];4 identifier [] queue;5 identifier [] parallel;6 block [7,114];7 function_definition [8,9,12];8 function_name [] run;9 parameters [10,11];10 identifier [] fn_name;11 identifier [] items;12 block [13,22,27,53,78,82,112];13 expression... | Run individual jobs on an existing queue. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _ClientPathToString;3 parameters [4,5];4 identifier [] client_path;5 default_parameter [6,7];6 identifier [] prefix;7 string [];8 block [9];9 return_statement [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 identifier []... | Returns a path-like String of client_path with optional prefix. |
0 module [1];1 function_definition [2,3,6];2 function_name [] unique_slug_required;3 parameters [4,5];4 identifier [] form;5 identifier [] slug;6 block [7,85];7 if_statement [8,19,57];8 boolean_operator [9,14] and;9 call [10,11];10 identifier [] hasattr;11 argument_list [12,13];12 identifier [] form;13 string [] instan... | Enforce a unique slug accross all pages and websistes. |
0 module [1];1 function_definition [2,3,5];2 function_name [] delete;3 parameters [4];4 identifier [] bad_entry;5 block [6,12,28];6 expression_statement [7];7 assignment [8,9];8 identifier [] entries;9 call [10,11];10 identifier [] read;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14 identifie... | Removes an entry from rc file. |
0 module [1];1 function_definition [2,3,9];2 function_name [] preprocessor;3 parameters [4,5,6];4 identifier [] accepts;5 identifier [] exports;6 default_parameter [7,8];7 identifier [] flag;8 None [];9 block [10,28];10 function_definition [11,12,14];11 function_name [] decorator;12 parameters [13];13 identifier [] f;1... | Decorator to add a new preprocessor |
0 module [1];1 function_definition [2,3,7];2 function_name [] _onMethodTimeout;3 parameters [4,5,6];4 identifier [] self;5 identifier [] serial;6 identifier [] d;7 block [8,14];8 delete_statement [9];9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _pendingCalls;13 identifier [] serial;14... | Called when a remote method invocation timeout occurs |
0 module [1];1 function_definition [2,3,4];2 function_name [] _site_users;3 parameters [];4 block [5,17,36];5 expression_statement [6];6 assignment [7,8];7 identifier [] userlist;8 call [9,15];9 attribute [10,14];10 call [11,12];11 identifier [] sudo;12 argument_list [13];13 string [] cat /etc/passwd | awk '/site/';14 ... | Get a list of site_n users |
0 module [1];1 function_definition [2,3,5];2 function_name [] reward;3 parameters [4];4 identifier [] self;5 block [6,14,46];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] raw_rewards;10 identifier [] processed_rewards;11 expression_list [12,13];12 integer [] 0;13 integer [] 0;14 f... | Returns a tuple of sum of raw and processed rewards. |
0 module [1];1 function_definition [2,3,6];2 function_name [] find_parameter;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,16,27];7 expression_statement [8];8 assignment [9,10];9 identifier [] name;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] normalize_name;14 ar... | Find parameter by name or normalized arg name. |
0 module [1];1 function_definition [2,3,6];2 function_name [] get;3 parameters [4,5];4 identifier [] self;5 identifier [] roleId;6 block [7,22,36];7 expression_statement [8];8 assignment [9,10];9 identifier [] role;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] db;14 identifier [] Role;15 id... | Get a specific role information |
0 module [1];1 function_definition [2,3,8];2 function_name [] platform_versions;3 parameters [4,5,6];4 identifier [] klass;5 identifier [] account;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,17,31];9 expression_statement [10];10 assignment [11,12];11 identifier [] resource;12 binary_operator [13,16... | Returns a list of supported platform versions |
0 module [1];1 function_definition [2,3,6];2 function_name [] dst;3 parameters [4,5];4 identifier [] self;5 identifier [] dt;6 block [7,34,53];7 expression_statement [8];8 assignment [9,10];9 identifier [] dst_start_date;10 binary_operator [11,27,28] +;11 binary_operator [12,21] +;12 call [13,16];13 attribute [14,15];1... | Calculate delta for daylight saving. |
0 module [1];1 function_definition [2,3,6];2 function_name [] delMatch;3 parameters [4,5];4 identifier [] self;5 identifier [] rule_id;6 block [7,15,38,58,65];7 expression_statement [8];8 assignment [9,10];9 identifier [] rule;10 subscript [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] match_rules;... | Removes a message matching rule previously registered with addMatch |
0 module [1];1 function_definition [2,3,8,10];2 function_name [] convert_camel_case_string;3 parameters [4];4 typed_parameter [5,6];5 identifier [] name;6 type [7];7 identifier [] str;8 type [9];9 identifier [] str;10 block [11,22];11 expression_statement [12];12 assignment [13,14];13 identifier [] string;14 call [15,1... | Convert camel case string to snake case |
0 module [1];1 function_definition [2,3,6];2 function_name [] namePush;3 parameters [4,5];4 identifier [] ctxt;5 identifier [] value;6 block [7,24,34];7 if_statement [8,11,16];8 comparison_operator [9,10] is;9 identifier [] ctxt;10 None [];11 block [12];12 expression_statement [13];13 assignment [14,15];14 identifier [... | Pushes a new element name on top of the name stack |
0 module [1];1 function_definition [2,3,8];2 function_name [] _format_tag_query;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] sampler;6 identifier [] wmi_obj;7 identifier [] tag_query;8 block [9,84];9 try_statement [10,40,55];10 block [11,22,28,34];11 expression_statement [12];12 assignment [13,14];13 ide... | Format `tag_query` or raise on incorrect parameters. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_values;3 parameters [4];4 default_parameter [5,6];5 identifier [] profile;6 None [];7 block [8,14,25,29,117];8 expression_statement [9];9 assignment [10,11];10 identifier [] profile;11 boolean_operator [12,13] or;12 identifier [] profile;13 dictionary [... | Retrieve all the referenced files, deserialize, then merge them together |
0 module [1];1 function_definition [2,3,10];2 function_name [] _generate_read_callable;3 parameters [4,5,6,7,8,9];4 identifier [] name;5 identifier [] display_name;6 identifier [] arguments;7 identifier [] regex;8 identifier [] doc;9 identifier [] supported;10 block [11,64,75,81,87,93,99,105,111,117];11 function_defini... | Returns a callable which conjures the URL for the resource and GETs a response |
0 module [1];1 function_definition [2,3,5];2 function_name [] reset;3 parameters [4];4 identifier [] self;5 block [6,13,25];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] chain_id;11 block [12];12 return_statement [];13 expression_statement [14];14 assignment [15,20];1... | Instruct the target to forget any related exception. |
0 module [1];1 function_definition [2,3,4];2 function_name [] make_auth_headers;3 parameters [];4 block [5,23,46,58];5 if_statement [6,15];6 not_operator [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] os;11 identifier [] path;12 identifier [] exists;13 argument_list [14];14 string [] .appveyo... | Make the authentication headers needed to use the Appveyor API. |
0 module [1];1 function_definition [2,3,9];2 function_name [] reset;3 parameters [4,5,6];4 identifier [] self;5 identifier [] name;6 default_parameter [7,8];7 identifier [] suppress_logging;8 False [];9 block [10,18,25];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifie... | resets established connection by disconnecting and reconnecting |
0 module [1];1 function_definition [2,3,5];2 function_name [] _add_ssl_info;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12,72];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] scheme;11 string [] u'https';12 block [13,21,61];13 expression_statement [14];14... | Add SSL cipher info. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _start;3 parameters [4];4 identifier [] self;5 block [6,12,20,56,70,90,102,108];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _enable_logpersist;11 argument_list [];12 expression_statement [13];13 assignmen... | The actual logic of starting logcat. |
0 module [1];1 function_definition [2,3,5];2 function_name [] validate_query_params;3 parameters [4];4 identifier [] self;5 block [6,21,32,49];6 expression_statement [7];7 assignment [8,9];8 identifier [] allowed_params;9 call [10,11];10 identifier [] set;11 argument_list [12];12 call [13,20];13 attribute [14,19];14 ca... | Ensure no unsupported query params were used. |
0 module [1];1 function_definition [2,3,5];2 function_name [] new_connection;3 parameters [4];4 identifier [] self;5 block [6,18,34,42,55];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] prepared;11 block [12];12 expression_statement [13];13 call [14,17];14 attribute [1... | Make a new connection. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _validate;3 parameters [4];4 identifier [] self;5 block [6,35];6 if_statement [7,17];7 not_operator [8];8 comparison_operator [9,10,13,16] <=;9 float [] 0.0;10 attribute [11,12];11 identifier [] self;12 identifier [] _min_percentile;13 attribute [14,15];14 i... | Ensure that our percentile bounds are well-formed. |
0 module [1];1 function_definition [2,3,8];2 function_name [] show_address_scope;3 parameters [4,5,6];4 identifier [] self;5 identifier [] address_scope;6 dictionary_splat_pattern [7];7 identifier [] _params;8 block [9];9 return_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] ... | Fetches information of a certain address scope. |
0 module [1];1 function_definition [2,3,8];2 function_name [] spawn_process;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] process;7 None [];8 block [9,16,22,51,59,65,71,77];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] process;12 None [];13 block [14];14 r... | spawn a new process |
0 module [1];1 function_definition [2,3,5];2 function_name [] update_if_client;3 parameters [4];4 identifier [] fctn;5 block [6,93];6 decorated_definition [7,14];7 decorator [8];8 call [9,12];9 attribute [10,11];10 identifier [] functools;11 identifier [] wraps;12 argument_list [13];13 identifier [] fctn;14 function_de... | Intercept and check updates from server if bundle is in client mode. |
0 module [1];1 function_definition [2,3,6];2 function_name [] visit_Module;3 parameters [4,5];4 identifier [] self;5 identifier [] node;6 block [7,14,31,58];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] generic_visit;12 argument_list [13];13 identifier [] node;14 ex... | Add itertools import for imap, izip or ifilter iterator. |
0 module [1];1 function_definition [2,3,5];2 function_name [] get;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 assignment [8,9];8 identifier [] output;9 call [10,11];10 identifier [] helm;11 argument_list [12,13];12 string [] get;13 attribute [14,15];14 identifier [] self;15 identif... | Get specific information about this hub. |
0 module [1];1 function_definition [2,3,4];2 function_name [] main;3 parameters [];4 block [5,11,21];5 expression_statement [6];6 assignment [7,8];7 identifier [] version;8 binary_operator [9,10] %;9 string [] Python Exist %s;10 identifier [] __version__;11 expression_statement [12];12 assignment [13,14];13 identifier ... | Parse the arguments and use them to create a ExistCli object |
0 module [1];1 function_definition [2,3,5];2 function_name [] info_shell_scope;3 parameters [4];4 identifier [] self;5 block [6,21,36,51,66,81,96,111,126];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] Console;10 identifier [] ok;11 argument_list [12];12 call [13,16];13 attribute [14,15];14... | prints some information about the shell scope |
0 module [1];1 function_definition [2,3,6];2 function_name [] _inject_selenium;3 parameters [4,5];4 identifier [] self;5 identifier [] test;6 block [7,13,20,26,59];7 import_from_statement [8,11];8 dotted_name [9,10];9 identifier [] django;10 identifier [] conf;11 dotted_name [12];12 identifier [] settings;13 expression... | Injects a selenium instance into the method. |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_rdmol;3 parameters [4];4 identifier [] mol;5 block [6,20,24,49,62,107,114,150,157,166];6 expression_statement [7];7 assignment [8,9];8 identifier [] rwmol;9 call [10,13];10 attribute [11,12];11 identifier [] Chem;12 identifier [] RWMol;13 argument_list [1... | Convert molecule to RDMol |
0 module [1];1 function_definition [2,3,8];2 function_name [] read;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] encoding;7 None [];8 block [9,15];9 expression_statement [10];10 assignment [11,12];11 identifier [] encoding;12 boolean_operator [13,14] or;13 identifier [] encoding;14 i... | Reads from the file and returns result as a string. |
0 module [1];1 function_definition [2,3,5];2 function_name [] deep_force_unicode;3 parameters [4];4 identifier [] value;5 block [6,69];6 if_statement [7,15,30,55];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] value;11 tuple [12,13,14];12 identifier [] list;13 identifier [] tuple;14 id... | Recursively call force_text on value. |
0 module [1];1 function_definition [2,3,5];2 function_name [] use_isolated_bank_view;3 parameters [4];4 identifier [] self;5 block [6,12];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _bank_view;11 identifier [] ISOLATED;12 for_statement [13,14,19];13 identifier... | Pass through to provider ItemLookupSession.use_isolated_bank_view |
0 module [1];1 function_definition [2,3,8];2 function_name [] generate_requirements_files;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] base_dir;7 string [] .;8 block [9,14,22,31];9 expression_statement [10];10 call [11,12];11 identifier [] print;12 argument_list [13];13 string [] Cr... | Generate set of requirements files for config |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.