sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_signature;3 parameters [4,5];4 identifier [] self;5 identifier [] entry;6 block [7];7 if_statement [8,11,81];8 attribute [9,10];9 identifier [] self;10 identifier [] _sha1_sigs;11 block [12,27];12 if_statement [13,24];13 not_operator [14];14 call [15,20... | Return the signature of the file stored in entry. |
0 module [1];1 function_definition [2,3,5];2 function_name [] length;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] sum;9 argument_list [10];10 list_comprehension [11,14,19];11 attribute [12,13];12 identifier [] shot;13 identifier [] length;14 for_in_clause [15,16]... | Total surveyed cave length, not including splays. |
0 module [1];1 function_definition [2,3,5];2 function_name [] close_connection;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12];7 comparison_operator [8,11] is not;8 attribute [9,10];9 identifier [] self;10 identifier [] url_connection;11 None [];12 block [13,27];13 try_statement [14,23];14 block... | Release the open connection from the connection pool. |
0 module [1];1 function_definition [2,3,6];2 function_name [] run_actor;3 parameters [4,5];4 identifier [] self;5 identifier [] actor;6 block [7,12,44];7 expression_statement [8];8 call [9,10];9 identifier [] set_actor;10 argument_list [11];11 identifier [] actor;12 if_statement [13,19];13 not_operator [14];14 attribut... | Start running the ``actor``. |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_dict;3 parameters [4];4 identifier [] self;5 block [6,8];6 expression_statement [7];7 string [] Get the WorkResult as a dict.;8 return_statement [9];9 dictionary [10,15,20,25];10 pair [11,12];11 string [] output;12 attribute [13,14];13 identifier [] self;... | Get the WorkResult as a dict. |
0 module [1];1 function_definition [2,3,11];2 function_name [] encode;3 parameters [4,5,8];4 identifier [] value;5 default_parameter [6,7];6 identifier [] encoding;7 string [] utf-8;8 default_parameter [9,10];9 identifier [] encoding_errors;10 string [] strict;11 block [12,21,36,53];12 if_statement [13,18];13 call [14,... | Return a bytestring representation of the value. |
0 module [1];1 function_definition [2,3,5];2 function_name [] function_end;3 parameters [4];4 identifier [] self;5 block [6,21,29,36];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] newline_label;11 argument_list [12,19,20];12 binary_operator [13,18] +;13 attribute [14,... | Inserts an exit label and function return instructions |
0 module [1];1 function_definition [2,3,8];2 function_name [] param_dict_to_list;3 parameters [4,5];4 identifier [] dict;5 default_parameter [6,7];6 identifier [] skeys;7 None [];8 block [9,28,30];9 expression_statement [10];10 assignment [11,12];11 identifier [] RV;12 call [13,16];13 attribute [14,15];14 identifier []... | convert from param dictionary to list |
0 module [1];1 function_definition [2,3,5];2 function_name [] render_registration;3 parameters [4];4 identifier [] self;5 block [6,14,33,43,49,57,74,80,86,95,107,133,145,154,160];6 expression_statement [7];7 assignment [8,9];8 identifier [] surface;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier... | Render pinned points on video frame as red rectangle. |
0 module [1];1 function_definition [2,3,6];2 function_name [] fileserver;3 parameters [4,5];4 identifier [] opts;5 identifier [] backends;6 block [7];7 return_statement [8];8 call [9,10];9 identifier [] LazyLoader;10 argument_list [11,16,17,20,23];11 call [12,13];12 identifier [] _module_dirs;13 argument_list [14,15];1... | Returns the file server modules |
0 module [1];1 function_definition [2,3,11,13];2 function_name [] on_batch_begin;3 parameters [4,5,6];4 identifier [] self;5 identifier [] train;6 typed_parameter [7,9];7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 type [10];10 identifier [] Any;11 type [12];12 None [];13 block [14,16];14 expression_statement... | Record learning rate and momentum at beginning of batch. |
0 module [1];1 function_definition [2,3,4];2 function_name [] precheck;3 parameters [];4 block [5,13,20,105,129];5 expression_statement [6];6 assignment [7,8];7 identifier [] cfg_path;8 subscript [9,12];9 subscript [10,11];10 identifier [] local_config;11 string [] PROJECT;12 string [] CONFIG_PATH;13 expression_stateme... | Verify project runtime dependencies |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_dependency;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7];7 if_statement [8,15,33];8 comparison_operator [9,12] in;9 attribute [10,11];10 identifier [] value;11 identifier [] name;12 attribute [13,14];13 identifier [] self;14 i... | Adds the specified executable dependency to the list for this executable. |
0 module [1];1 function_definition [2,3,7];2 function_name [] NoCache;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] targets;7 block [8,12,33,43];8 expression_statement [9];9 assignment [10,11];10 identifier [] tlist;11 list [] [];12 for_statement [13,14,15];13 identifier [] t;14 ident... | Tags a target so that it will not be cached |
0 module [1];1 function_definition [2,3,7];2 function_name [] parse_field;3 parameters [4,5,6];4 identifier [] source;5 identifier [] loc;6 identifier [] tokens;7 block [8,18,27,53];8 expression_statement [9];9 assignment [10,11];10 identifier [] name;11 call [12,17];12 attribute [13,16];13 subscript [14,15];14 identif... | Returns the tokens of a field as key-value pair. |
0 module [1];1 function_definition [2,3,12];2 function_name [] writeln;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] text;6 default_parameter [7,8];7 identifier [] fg;8 string [] black;9 default_parameter [10,11];10 identifier [] bg;11 string [] white;12 block [13,28];13 if_statement [14,20];14 not_operat... | write to the console with linefeed |
0 module [1];1 function_definition [2,3,8];2 function_name [] send_keys;3 parameters [4,5,6];4 identifier [] self;5 identifier [] keyserver;6 list_splat_pattern [7];7 identifier [] keyids;8 block [9,20,28,40,47,54,66,76,82];9 expression_statement [10];10 assignment [11,12];11 identifier [] result;12 call [13,18];13 sub... | Send keys to a keyserver. |
0 module [1];1 function_definition [2,3,6];2 function_name [] to_det_id;3 parameters [4,5];4 identifier [] self;5 identifier [] det_id_or_det_oid;6 block [7];7 try_statement [8,14,24];8 block [9];9 expression_statement [10];10 call [11,12];11 identifier [] int;12 argument_list [13];13 identifier [] det_id_or_det_oid;14... | Convert det ID or OID to det ID |
0 module [1];1 function_definition [2,3,6];2 function_name [] pack_value;3 parameters [4,5];4 identifier [] self;5 identifier [] val;6 block [7,24,31,51];7 if_statement [8,13];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] val;12 identifier [] bytes;13 block [14];14 expression_statem... | Convert 8-byte string into 16-byte list |
0 module [1];1 function_definition [2,3,6];2 function_name [] builds;3 parameters [4,5];4 identifier [] self;5 identifier [] confs;6 block [7,13,19];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _named_builds;12 dictionary [];13 expression_statement [14];14 as... | For retro compatibility directly assigning builds |
0 module [1];1 function_definition [2,3,7];2 function_name [] _svg_path;3 parameters [4,5,6];4 identifier [] self;5 identifier [] pathcodes;6 identifier [] data;7 block [8,76];8 function_definition [9,10,13];9 function_name [] gen_path_elements;10 parameters [11,12];11 identifier [] pathcodes;12 identifier [] data;13 b... | Return the SVG path's 'd' element. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getStats;3 parameters [4];4 identifier [] jobStore;5 block [6,77,83,93,103];6 function_definition [7,8,11];7 function_name [] aggregateStats;8 parameters [9,10];9 identifier [] fileHandle;10 identifier [] aggregateObject;11 block [12];12 try_statement [13,64... | Collect and return the stats and config data. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _register_data_plane_account_arguments;3 parameters [4,5];4 identifier [] self;5 identifier [] command_name;6 block [7,16,23,37,42,46,77,99,124];7 import_from_statement [8,14];8 dotted_name [9,10,11,12,13];9 identifier [] azure;10 identifier [] cli;11 identi... | Add parameters required to create a storage client |
0 module [1];1 function_definition [2,3,6];2 function_name [] _new_sample;3 parameters [4,5];4 identifier [] self;5 identifier [] sink;6 block [7,80];7 if_statement [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] running;11 block [12,25,33,48];12 expression_statement [13];13 assignment [14,15];14 identi... | The callback for appsink's "new-sample" signal. |
0 module [1];1 function_definition [2,3,6];2 function_name [] pid_from_context;3 parameters [4,5];4 identifier [] _;5 identifier [] context;6 block [7,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] pid;10 call [11,17];11 attribute [12,16];12 () [13];13 boolean_operator [14,15] or;14 identifier [] co... | Get PID from marshmallow context. |
0 module [1];1 function_definition [2,3,5];2 function_name [] path;3 parameters [4];4 identifier [] self;5 block [6,98];6 if_statement [7,25,36,63,90];7 () [8];8 boolean_operator [9,17] and;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] source_file;14 identifier [] start... | Return the file path abstracted from VCS. |
0 module [1];1 function_definition [2,3,5];2 function_name [] DualDBFlow;3 parameters [4];4 identifier [] cls;5 block [6,20,37,48,61,69,76,87,95,108];6 if_statement [7,14];7 call [8,9];8 identifier [] issubclass;9 argument_list [10,11];10 identifier [] cls;11 attribute [12,13];12 identifier [] flow;13 identifier [] GRR... | Decorator that creates AFF4 and RELDB flows from a given mixin. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_ratings_page;3 parameters [4];4 identifier [] self;5 block [6,12,21,26,35,44,49];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _build_url;11 argument_list [];12 expression_statement [13];13 assignment ... | Do a limited search for the correct url. |
0 module [1];1 function_definition [2,3,7];2 function_name [] save;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] filename;6 identifier [] config;7 block [8,22];8 expression_statement [9];9 assignment [10,11];10 identifier [] mode;11 binary_operator [12,19] |;12 binary_operator [13,16] |;13 attribute [14,15];... | Save configuration to yaml file. |
0 module [1];1 function_definition [2,3,16];2 function_name [] read_calibration;3 parameters [4,7,10,13];4 default_parameter [5,6];5 identifier [] detx;6 None [];7 default_parameter [8,9];8 identifier [] det_id;9 None [];10 default_parameter [11,12];11 identifier [] from_file;12 False [];13 default_parameter [14,15];14... | Retrive calibration from file, the DB. |
0 module [1];1 function_definition [2,3,7];2 function_name [] resolve;3 parameters [4,5,6];4 identifier [] self;5 identifier [] size;6 identifier [] distribution;7 block [8,21,25,40,48,52,56,89,108];8 if_statement [9,15];9 not_operator [10];10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] var... | Resolve a variable sized pattern to all patterns of a certain fixed size |
0 module [1];1 function_definition [2,3,9];2 function_name [] calculate_quality_metrics;3 parameters [4,5,6];4 identifier [] metrics;5 identifier [] designs;6 default_parameter [7,8];7 identifier [] verbose;8 False [];9 block [10];10 for_statement [11,12,13];11 identifier [] metric;12 identifier [] metrics;13 block [14... | Have each metric calculate all the information it needs. |
0 module [1];1 function_definition [2,3,6];2 function_name [] make_compound_ctype;3 parameters [4,5];4 identifier [] self;5 identifier [] varname;6 block [7,16,25,29,82,91,100,105,141];7 expression_statement [8];8 assignment [9,10];9 identifier [] compoundname;10 call [11,14];11 attribute [12,13];12 identifier [] self;... | Create a ctypes type that corresponds to a compound type in memory. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _fetch_metric;3 parameters [4,5];4 identifier [] self;5 identifier [] metric_name;6 block [7,54,68,86,103,107,139,154];7 expression_statement [8];8 assignment [9,10];9 identifier [] request;10 dictionary [11,16,19,31,38,45,50];11 pair [12,13];12 string [] Na... | Fetch all the values of a named metric, and add them to _data |
0 module [1];1 function_definition [2,3,5];2 function_name [] token;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,14,23];7 comparison_operator [8,9] in;8 identifier [] AUTH_TOKEN_HEADER;9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] request;13 identifier [] headers... | The token used for the request |
0 module [1];1 function_definition [2,3,5];2 function_name [] simplify_recursive;3 parameters [4];4 identifier [] typ;5 block [6,136];6 if_statement [7,12,20,115];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] typ;11 identifier [] UnionType;12 block [13];13 return_statement [14];14 cal... | Simplify all components of a type. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _remove_deprecated_options;3 parameters [4,5];4 identifier [] self;5 identifier [] old_version;6 block [7,16];7 expression_statement [8];8 assignment [9,10];9 identifier [] old_defaults;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier... | Remove options which are present in the .ini file but not in defaults |
0 module [1];1 function_definition [2,3,5];2 function_name [] _lab_to_rgb;3 parameters [4];4 identifier [] labs;5 block [6,15,28,41,54,69,75,85,100,112,118,136,143,166,177];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] labs;10 identifier [] n_dim;11 call [12,13];12 identifier [] _... | Convert Nx3 or Nx4 lab to rgb |
0 module [1];1 function_definition [2,3,4];2 function_name [] __init_yaml;3 parameters [];4 block [5,7];5 global_statement [6];6 identifier [] _yaml_initialized;7 if_statement [8,10];8 not_operator [9];9 identifier [] _yaml_initialized;10 block [11,15,23,31];11 expression_statement [12];12 assignment [13,14];13 identif... | Lazy init yaml because canmatrix might not be fully loaded when loading this format. |
0 module [1];1 function_definition [2,3,6];2 function_name [] copy_from;3 parameters [4,5];4 identifier [] self;5 identifier [] other_state;6 block [7];7 for_statement [8,9,18];8 identifier [] prop;9 call [10,17];10 attribute [11,16];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] properties... | Copy data from another shard state entity to self. |
0 module [1];1 function_definition [2,3,10];2 function_name [] _get_config;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] rel_path;6 identifier [] view;7 default_parameter [8,9];8 identifier [] api_version;9 integer [] 1;10 block [11,18,31,55];11 expression_statement [12];12 call [13,16];13 attribute [14,1... | Retrieves an ApiConfig list from the given relative path. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _convert_value;3 parameters [4];4 identifier [] value;5 block [6];6 try_statement [7,18];7 block [8];8 return_statement [9];9 call [10,11];10 identifier [] restore;11 argument_list [12];12 call [13,16];13 attribute [14,15];14 identifier [] ast;15 identifier ... | Parse string as python literal if possible and fallback to string. |
0 module [1];1 function_definition [2,3,8];2 function_name [] isRealmUser;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] realmname;6 identifier [] username;7 identifier [] environ;8 block [9];9 try_statement [10,38];10 block [11,22,36];11 expression_statement [12];12 assignment [13,14];13 identifier [] cou... | Returns True if this username is valid for the realm, False otherwise. |
0 module [1];1 function_definition [2,3,7];2 function_name [] gen_procfile;3 parameters [4,5,6];4 identifier [] ctx;5 identifier [] wsgi;6 identifier [] dev;7 block [8,54,123,134];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] wsgi;11 None [];12 block [13];13 if_statement [14,22,27,41];14 call ... | Generates Procfiles which can be used with honcho or foreman. |
0 module [1];1 function_definition [2,3,5];2 function_name [] indexables;3 parameters [4];4 identifier [] self;5 block [6,75];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _indexables;11 None [];12 block [13,19,34];13 expression_statement [14];14 assignme... | create the indexables from the table description |
0 module [1];1 function_definition [2,3,14];2 function_name [] textbetween;3 parameters [4,5,8,11];4 identifier [] variable;5 default_parameter [6,7];6 identifier [] firstnum;7 None [];8 default_parameter [9,10];9 identifier [] secondnum;10 None [];11 default_parameter [12,13];12 identifier [] locationoftext;13 string ... | Get The Text Between Two Parts |
0 module [1];1 function_definition [2,3,5];2 function_name [] complex_out_dtype;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12,30];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] __complex_out_dtype;11 None [];12 block [13];13 raise_statement [14];14 call... | The complex dtype corresponding to this space's `out_dtype`. |
0 module [1];1 function_definition [2,3,8];2 function_name [] date;3 parameters [4,5,6,7];4 identifier [] ctx;5 identifier [] year;6 identifier [] month;7 identifier [] day;8 block [9];9 return_statement [10];10 call [11,12];11 identifier [] _date;12 argument_list [13,20,27];13 call [14,17];14 attribute [15,16];15 iden... | Defines a date value |
0 module [1];1 function_definition [2,3,8];2 function_name [] npd_to_pmf;3 parameters [4,5];4 identifier [] nodal_plane_dist;5 default_parameter [6,7];6 identifier [] use_default;7 False [];8 block [9];9 if_statement [10,15,18];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [] nodal_... | Returns the nodal plane distribution as an instance of the PMF class |
0 module [1];1 function_definition [2,3,6];2 function_name [] _from_dict;3 parameters [4,5];4 identifier [] cls;5 identifier [] _dict;6 block [7,11,44];7 expression_statement [8];8 assignment [9,10];9 identifier [] args;10 dictionary [];11 if_statement [12,15,37];12 comparison_operator [13,14] in;13 string [] grammars;... | Initialize a Grammars object from a json dictionary. |
0 module [1];1 function_definition [2,3,5];2 function_name [] run;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,11];7 identifier [] msg;8 attribute [9,10];9 identifier [] self;10 identifier [] messages;11 block [12,21];12 expression_statement [13];13 assignment [14,15];14 identifier [] col;15 c... | Yield the error messages. |
0 module [1];1 function_definition [2,3,11];2 function_name [] kdists;3 parameters [4,5,8];4 identifier [] matrix;5 default_parameter [6,7];6 identifier [] k;7 integer [] 7;8 default_parameter [9,10];9 identifier [] ix;10 None [];11 block [12,22];12 expression_statement [13];13 assignment [14,15];14 identifier [] ix;15... | Returns the k-th nearest distances, row-wise, as a column vector |
0 module [1];1 function_definition [2,3,5];2 function_name [] use_plenary_composition_view;3 parameters [4];4 identifier [] self;5 block [6,14];6 expression_statement [7];7 assignment [8,13];8 subscript [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _object_views;12 string [] composition;13 identifie... | Pass through to provider CompositionLookupSession.use_plenary_composition_view |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_opts_seaborn;3 parameters [4,5,6];4 identifier [] self;5 identifier [] opts;6 identifier [] style;7 block [8,32,56];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] opts;11 None [];12 block [13];13 if_statement [14,19,24];14 compa... | Initialialize for chart rendering |
0 module [1];1 function_definition [2,3,4];2 function_name [] main;3 parameters [];4 block [5,9,127];5 expression_statement [6];6 assignment [7,8];7 identifier [] actions;8 list [] [];9 try_statement [10,108];10 block [11,34,98];11 expression_statement [12];12 assignment [13,16];13 pattern_list [14,15];14 identifier []... | Command line interface for the ``coloredlogs`` program. |
0 module [1];1 function_definition [2,3,5];2 function_name [] page_prev;3 parameters [4];4 identifier [] self;5 block [6,27,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] window_start;9 () [10];10 binary_operator [11,19] -;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] sel... | Go to the previous page. |
0 module [1];1 function_definition [2,3,5];2 function_name [] close;3 parameters [4];4 identifier [] self;5 block [6,21];6 for_statement [7,8,11];7 identifier [] channel;8 attribute [9,10];9 identifier [] self;10 identifier [] _listening_to;11 block [12];12 expression_statement [13];13 call [14,19];14 attribute [15,18]... | Unsubscribe the group and all jobs being listened too |
0 module [1];1 function_definition [2,3,5];2 function_name [] stop;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,20];7 boolean_operator [8,13] and;8 comparison_operator [9,12] is not;9 attribute [10,11];10 identifier [] self;11 identifier [] _thread;12 None [];13 call [14,19];14 attribute [15,18];... | Stop the running task |
0 module [1];1 function_definition [2,3,5];2 function_name [] _setup_http_session;3 parameters [4];4 identifier [] self;5 block [6,13,36,47];6 expression_statement [7];7 assignment [8,9];8 identifier [] headers;9 dictionary [10];10 pair [11,12];11 string [] Content-type;12 string [] application/json;13 if_statement [14... | Sets up the common HTTP session parameters used by requests. |
0 module [1];1 function_definition [2,3,7];2 function_name [] field_from_json;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key_and_type;6 identifier [] json_value;7 block [8,12,24,34,41];8 assert_statement [9];9 comparison_operator [10,11] in;10 string [] :;11 identifier [] key_and_type;12 expression_state... | Convert a JSON-serializable representation back to a field. |
0 module [1];1 function_definition [2,3,7];2 function_name [] convert_table;3 parameters [4,5,6];4 identifier [] app;5 identifier [] docname;6 identifier [] source;7 block [8,12,128];8 expression_statement [9];9 assignment [10,11];10 identifier [] num_tables;11 integer [] 0;12 for_statement [13,16,20];13 pattern_list [... | Find tables in a markdown and then convert them into the rst format |
0 module [1];1 function_definition [2,3,6];2 function_name [] distance;3 parameters [4,5];4 identifier [] a;5 identifier [] b;6 block [7,11,33,55];7 expression_statement [8];8 assignment [9,10];9 identifier [] R;10 integer [] 3963;11 expression_statement [12];12 assignment [13,16];13 pattern_list [14,15];14 identifier ... | Calculates distance between two latitude-longitude coordinates. |
0 module [1];1 function_definition [2,3,12];2 function_name [] create_cookie;3 parameters [4,5,6,7,10];4 identifier [] name;5 identifier [] value;6 identifier [] domain;7 default_parameter [8,9];8 identifier [] httponly;9 None [];10 dictionary_splat_pattern [11];11 identifier [] kwargs;12 block [13,22,70,88,96,104,115,... | Creates `cookielib.Cookie` instance |
0 module [1];1 function_definition [2,3,10];2 function_name [] must_contain;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] value;6 identifier [] q;7 default_parameter [8,9];8 identifier [] strict;9 False [];10 block [11,28];11 if_statement [12,15];12 comparison_operator [13,14] is not;13 identifier [] valu... | if value must contain q |
0 module [1];1 function_definition [2,3,14,16];2 function_name [] _raise_on_error;3 parameters [4];4 typed_parameter [5,6];5 identifier [] data;6 type [7];7 generic_type [8,9];8 identifier [] Union;9 type_parameter [10,12];10 type [11];11 identifier [] str;12 type [13];13 identifier [] dict;14 type [15];15 None [];16 b... | Raise the appropriate exception on error. |
0 module [1];1 function_definition [2,3,9];2 function_name [] d;3 parameters [4,5,7];4 identifier [] msg;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10];10 return_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] logging;14 identifier [... | log a message at debug level; |
0 module [1];1 function_definition [2,3,11];2 function_name [] _serialize;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] include_run_logs;7 False [];8 default_parameter [9,10];9 identifier [] strict_json;10 False [];11 block [12,56,107,127];12 expression_statement [13];13 assignment... | Serialize a representation of this Task to a Python dict. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _build_graph;3 parameters [4];4 identifier [] self;5 block [6,59,63,115,142,158,169];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] colors;11 block [12,25,43];12 expression_statement [13];13 assignment [14,1... | Build Rickshaw graph syntax with all data |
0 module [1];1 function_definition [2,3,7];2 function_name [] exclude;3 parameters [4,5,6];4 identifier [] self;5 identifier [] d;6 identifier [] item;7 block [8,51];8 try_statement [9,48];9 block [10,16,25,32,41];10 expression_statement [11];11 assignment [12,13];12 identifier [] md;13 attribute [14,15];14 identifier ... | check metadata for excluded items |
0 module [1];1 function_definition [2,3,5];2 function_name [] munge_source;3 parameters [4];4 identifier [] v;5 block [6,15,25,35,60,70,101,105,113,132];6 expression_statement [7];7 assignment [8,9];8 identifier [] lines;9 call [10,13];10 attribute [11,12];11 identifier [] v;12 identifier [] split;13 argument_list [14]... | Take Python source code, return a pair of its parameters and the rest of it dedented |
0 module [1];1 function_definition [2,3,5];2 function_name [] rm;3 parameters [4];4 identifier [] venv_name;5 block [6,12,21,35];6 expression_statement [7];7 assignment [8,9];8 identifier [] inenv;9 call [10,11];10 identifier [] InenvManager;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14 iden... | Removes the venv by name |
0 module [1];1 function_definition [2,3,5];2 function_name [] bool_str;3 parameters [4];4 identifier [] string;5 block [6,21];6 if_statement [7,10];7 comparison_operator [8,9] not in;8 identifier [] string;9 identifier [] BOOL_STRS;10 block [11];11 raise_statement [12];12 call [13,14];13 identifier [] ValueError;14 arg... | Returns a boolean from a string imput of 'true' or 'false |
0 module [1];1 function_definition [2,3,5];2 function_name [] describe;3 parameters [4];4 identifier [] self;5 block [6,20,29];6 expression_statement [7];7 assignment [8,9];8 identifier [] description;9 dictionary [10,15];10 pair [11,12];11 string [] description;12 attribute [13,14];13 identifier [] self;14 identifier ... | Provide a dictionary with information describing itself. |
0 module [1];1 function_definition [2,3,5];2 function_name [] initialize;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _pooler;11 None [];12 block [13,132];13 expression_statement [14];14 assignment [15,16... | Initialize the internal objects. |
0 module [1];1 function_definition [2,3,5];2 function_name [] read_ncstream_err;3 parameters [4];4 identifier [] fobj;5 block [6,16];6 expression_statement [7];7 assignment [8,9];8 identifier [] err;9 call [10,11];10 identifier [] read_proto_object;11 argument_list [12,13];12 identifier [] fobj;13 attribute [14,15];14 ... | Handle reading an NcStream error from a file-like object and raise as error. |
0 module [1];1 function_definition [2,3,5];2 function_name [] makeref2namesdct;3 parameters [4];4 identifier [] name2refdct;5 block [6,10,39];6 expression_statement [7];7 assignment [8,9];8 identifier [] ref2namesdct;9 dictionary [];10 for_statement [11,14,19];11 pattern_list [12,13];12 identifier [] key;13 identifier ... | make the ref2namesdct in the idd_index |
0 module [1];1 function_definition [2,3,6];2 function_name [] _rank_qr;3 parameters [4,5];4 identifier [] self;5 identifier [] choices;6 block [7,16];7 import_from_statement [8,12];8 dotted_name [9,10,11];9 identifier [] bernard;10 identifier [] platforms;11 identifier [] facebook;12 aliased_import [13,15];13 dotted_na... | Look for the QuickReply layer's slug into available choices. |
0 module [1];1 function_definition [2,3,5];2 function_name [] sortable_title;3 parameters [4];4 identifier [] instance;5 block [6,13,25];6 expression_statement [7];7 assignment [8,9];8 identifier [] title;9 call [10,11];10 identifier [] plone_sortable_title;11 argument_list [12];12 identifier [] instance;13 if_statemen... | Uses the default Plone sortable_text index lower-case |
0 module [1];1 function_definition [2,3,7,9];2 function_name [] dnd_endSnooze;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 type [8];8 identifier [] SlackResponse;9 block [10,16];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 ... | Ends the current user's snooze mode immediately. |
0 module [1];1 function_definition [2,3,7];2 function_name [] data_filler_customer;3 parameters [4,5,6];4 identifier [] self;5 identifier [] number_of_rows;6 identifier [] pipe;7 block [8];8 try_statement [9,145];9 block [10,129,135];10 for_statement [11,12,16];11 identifier [] i;12 call [13,14];13 identifier [] range;... | creates keys with customer data |
0 module [1];1 function_definition [2,3,6];2 function_name [] _split_str;3 parameters [4,5];4 identifier [] s;5 identifier [] n;6 block [7,14];7 expression_statement [8];8 assignment [9,10];9 identifier [] length;10 call [11,12];11 identifier [] len;12 argument_list [13];13 identifier [] s;14 return_statement [15];15 l... | split string into list of strings by specified number. |
0 module [1];1 function_definition [2,3,5];2 function_name [] refresh_all_state_machines;3 parameters [4];4 identifier [] self;5 block [6];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] refresh_state_machines;11 argument_list [12];12 call [13,14];13 identifier [] list;... | Refreshes all state machine tabs |
0 module [1];1 function_definition [2,3,7];2 function_name [] _update_staticmethod;3 parameters [4,5,6];4 identifier [] self;5 identifier [] oldsm;6 identifier [] newsm;7 block [8];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _update;13 argument_list [14,15,16,22... | Update a staticmethod update. |
0 module [1];1 function_definition [2,3,5];2 function_name [] remove;3 parameters [4];4 identifier [] self;5 block [6,17,27];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _multivol;12 identifier [] deallocate;13 argument_list [14];14 attribute [15... | Remove the layer artist for good |
0 module [1];1 function_definition [2,3,7];2 function_name [] pick_summary_data;3 parameters [4,5,6];4 identifier [] key;5 identifier [] summary_df;6 identifier [] selected_summaries;7 block [8,15,21];8 expression_statement [9];9 assignment [10,11];10 identifier [] selected_summaries_dict;11 call [12,13];12 identifier ... | picks the selected pandas.DataFrame |
0 module [1];1 function_definition [2,3,7];2 function_name [] wandb_pty;3 parameters [4];4 default_parameter [5,6];5 identifier [] resize;6 True [];7 block [8,18,33,48];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] master_fd;12 identifier [] slave_fd;13 call [14,17];14 attribu... | Get a PTY set to raw mode and registered to hear about window size changes. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _sign;3 parameters [4,5];4 identifier [] self;5 identifier [] params;6 block [7,133,163];7 for_statement [8,11,16];8 pattern_list [9,10];9 identifier [] k;10 identifier [] v;11 call [12,15];12 attribute [13,14];13 identifier [] params;14 identifier [] iterit... | Generate API sign code |
0 module [1];1 function_definition [2,3,10];2 function_name [] _save_to;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] im;6 identifier [] path;7 default_parameter [8,9];8 identifier [] format;9 None [];10 block [11,19,40,50];11 expression_statement [12];12 assignment [13,14];13 identifier [] format;14 bool... | Save the image for testing. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _wf_to_dict;3 parameters [4];4 identifier [] wf;5 block [6,15,50,160];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] inputs;10 identifier [] outputs;11 call [12,13];12 identifier [] _get_wf_inout;13 argument_list [14];14... | Parse a workflow into cwl2wdl style dictionary. |
0 module [1];1 function_definition [2,3,6];2 function_name [] send_root_file;3 parameters [4,5];4 identifier [] self;5 identifier [] filename;6 block [7,16];7 expression_statement [8];8 assignment [9,10];9 identifier [] cache_timeout;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] get_send_f... | Function used to send static files from the root of the domain. |
0 module [1];1 function_definition [2,3,9];2 function_name [] quantile;3 parameters [4,5,6];4 identifier [] image;5 identifier [] q;6 default_parameter [7,8];7 identifier [] nonzero;8 True [];9 block [10,18];10 expression_statement [11];11 assignment [12,13];12 identifier [] img_arr;13 call [14,17];14 attribute [15,16]... | Get the quantile values from an ANTsImage |
0 module [1];1 function_definition [2,3,6];2 function_name [] _affine_inv_mult;3 parameters [4,5];4 identifier [] c;5 identifier [] m;6 block [7,9,19,27,36,45,60,80,106];7 expression_statement [8];8 string [] Applies the inverse affine transform described in `m` to `c`.;9 expression_statement [10];10 assignment [11,12]... | Applies the inverse affine transform described in `m` to `c`. |
0 module [1];1 function_definition [2,3,7];2 function_name [] extern_store_f64;3 parameters [4,5,6];4 identifier [] self;5 identifier [] context_handle;6 identifier [] f64;7 block [8,19];8 expression_statement [9];9 assignment [10,11];10 identifier [] c;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 ident... | Given a context and double, return a new Handle to represent the double. |
0 module [1];1 function_definition [2,3,5];2 function_name [] lastChild;3 parameters [4];4 identifier [] self;5 block [6,17,27,36];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 call [10,13];10 attribute [11,12];11 identifier [] libxml2mod;12 identifier [] xmlGetLastChild;13 argument_list [14];14 a... | Search the last child of a node. |
0 module [1];1 function_definition [2,3,5];2 function_name [] duration;3 parameters [4];4 identifier [] self;5 block [6,21];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _duration;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] self;15... | The test duration in seconds. |
0 module [1];1 function_definition [2,3,6];2 function_name [] generate_url;3 parameters [4,5];4 identifier [] self;5 identifier [] suffix;6 block [7,20,34];7 expression_statement [8];8 assignment [9,10];9 identifier [] url_base_path;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 identi... | Return URL by combining server details with a path suffix. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _solve;3 parameters [4];4 identifier [] self;5 block [6,28];6 while_statement [7,15];7 comparison_operator [8,14] >;8 call [9,10];9 identifier [] len;10 argument_list [11];11 attribute [12,13];12 identifier [] self;13 identifier [] _remove_constr;14 integer ... | Solve the problem with the current objective. |
0 module [1];1 function_definition [2,3,4];2 function_name [] delete_token;3 parameters [];4 block [5,13,19,36];5 expression_statement [6];6 assignment [7,8];7 identifier [] username;8 subscript [9,12];9 call [10,11];10 identifier [] get_admin;11 argument_list [];12 integer [] 0;13 expression_statement [14];14 assignme... | Delete current token, file & CouchDB admin user |
0 module [1];1 function_definition [2,3,12];2 function_name [] plotnoise;3 parameters [4,5,6,9];4 identifier [] noisepkl;5 identifier [] mergepkl;6 default_parameter [7,8];7 identifier [] plot_width;8 integer [] 950;9 default_parameter [10,11];10 identifier [] plot_height;11 integer [] 400;12 block [13,25,43,52,66,86,1... | Make two panel plot to summary noise analysis with estimated flux scale |
0 module [1];1 function_definition [2,3,6];2 function_name [] _Members;3 parameters [4,5];4 identifier [] self;5 identifier [] group;6 block [7,33];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] group;11 identifier [] members;12 call [13,21];13 attribute [14,20];14 call [15,16];15 i... | Unify members of a group and accounts with the group as primary gid. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.