sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,13];2 function_name [] cli;3 parameters [4,5,6,7,8,9,10,11,12];4 identifier [] family_file;5 identifier [] family_type;6 identifier [] to_json;7 identifier [] to_madeline;8 identifier [] to_ped;9 identifier [] to_dict;10 identifier [] outfile;11 identifier [] logfile;12 identifie... | Cli for testing the ped parser. |
0 module [1];1 function_definition [2,3,4];2 function_name [] view_admin_log;3 parameters [];4 block [5,11,46];5 expression_statement [6];6 assignment [7,8];7 identifier [] build;8 attribute [9,10];9 identifier [] g;10 identifier [] build;11 expression_statement [12];12 assignment [13,14];13 identifier [] log_list;14 (... | Page for viewing the log of admin activity. |
0 module [1];1 function_definition [2,3,7];2 function_name [] caesar_app;3 parameters [4,5,6];4 identifier [] parser;5 identifier [] cmd;6 identifier [] args;7 block [8,21,34,51,60,74];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] parser;12 identifier [] add_argument;13 argument_list [... | Caesar crypt a value with a key. |
0 module [1];1 function_definition [2,3,5];2 function_name [] close;3 parameters [4];4 identifier [] self;5 block [6,30];6 if_statement [7,16,18];7 boolean_operator [8,11] or;8 attribute [9,10];9 identifier [] self;10 identifier [] _closing;11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [... | Close the transport after all oustanding data has been written. |
0 module [1];1 function_definition [2,3,6];2 function_name [] gas_price_strategy_middleware;3 parameters [4,5];4 identifier [] make_request;5 identifier [] web3;6 block [7,67];7 function_definition [8,9,12];8 function_name [] middleware;9 parameters [10,11];10 identifier [] method;11 identifier [] params;12 block [13,6... | Includes a gas price using the gas price strategy |
0 module [1];1 function_definition [2,3,6];2 function_name [] _validate_and_parse_course_key;3 parameters [4,5];4 identifier [] self;5 identifier [] course_key;6 block [7];7 try_statement [8,16];8 block [9];9 return_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] CourseKey;13 identifier [] from_str... | Returns a validated parsed CourseKey deserialized from the given course_key. |
0 module [1];1 function_definition [2,3,9];2 function_name [] __add_item;3 parameters [4,5,6];4 identifier [] self;5 identifier [] item;6 default_parameter [7,8];7 identifier [] keys;8 None [];9 block [10,37,44];10 if_statement [11,20];11 () [12];12 boolean_operator [13,15] or;13 not_operator [14];14 identifier [] keys... | Internal method to add an item to the multi-key dictionary |
0 module [1];1 function_definition [2,3,5];2 function_name [] clear;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 [] __modified_data__;11 dictionary [];12 expression_statement [13];13 assignment [14,17];14 attrib... | Clears all the data in the object, keeping original data |
0 module [1];1 function_definition [2,3,6];2 function_name [] getDownloader;3 parameters [4,5];4 identifier [] self;5 identifier [] url;6 block [7,19,36,45];7 expression_statement [8];8 assignment [9,10];9 identifier [] filename;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] namer;14 argume... | Get an image downloader. |
0 module [1];1 function_definition [2,3,9];2 function_name [] validate;3 parameters [4,5,6];4 identifier [] self;5 identifier [] password;6 default_parameter [7,8];7 identifier [] user;8 None [];9 block [10,14,43,53];10 expression_statement [11];11 assignment [12,13];12 identifier [] user_inputs;13 list [] [];14 if_sta... | Validate method, run zxcvbn and check score. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getLogger;3 parameters [4];4 identifier [] name;5 block [6,15,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] log;9 call [10,13];10 attribute [11,12];11 identifier [] logging;12 identifier [] getLogger;13 argument_list [14];14 identifier []... | Create and return a logger with the specified name. |
0 module [1];1 function_definition [2,3,7];2 function_name [] find_one;3 parameters [4,5,6];4 identifier [] self;5 identifier [] cls;6 identifier [] id;7 block [8,19];8 expression_statement [9];9 assignment [10,11];10 identifier [] found;11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] find_b... | Find single keyed row - as per the gludb spec. |
0 module [1];1 function_definition [2,3,5];2 function_name [] detect_lang;3 parameters [4];4 identifier [] path;5 block [6,18];6 expression_statement [7];7 assignment [8,9];8 identifier [] blob;9 call [10,11];10 identifier [] FileBlob;11 argument_list [12,13];12 identifier [] path;13 call [14,17];14 attribute [15,16];1... | Detect the language used in the given file. |
0 module [1];1 function_definition [2,3,10];2 function_name [] show_bandwidth_limit_rule;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] rule;6 identifier [] policy;7 default_parameter [8,9];8 identifier [] body;9 None [];10 block [11];11 return_statement [12];12 call [13,16];13 attribute [14,15];14 identif... | Fetches information of a certain bandwidth limit rule. |
0 module [1];1 function_definition [2,3,5];2 function_name [] all_collections;3 parameters [4];4 identifier [] db;5 block [6,10];6 expression_statement [7];7 assignment [8,9];8 identifier [] include_pattern;9 string [] r'(?!system\.)';10 return_statement [11];11 generator_expression [12,15,22];12 subscript [13,14];13 i... | Yield all non-sytem collections in db. |
0 module [1];1 function_definition [2,3,5];2 function_name [] database_current_migration;3 parameters [4];4 identifier [] self;5 block [6,23,32];6 if_statement [7,20];7 not_operator [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] migration_table;13 identifier [] exists;... | Return the current migration in the database. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _check_file_io;3 parameters [4];4 identifier [] self;5 block [6,21,36,56,76,87,102];6 expression_statement [7];7 assignment [8,9];8 identifier [] folder;9 binary_operator [10,20] +;10 binary_operator [11,12] +;11 string [] Model;12 call [13,14];13 identifier... | Create and define logging directory |
0 module [1];1 function_definition [2,3,5];2 function_name [] image;3 parameters [4];4 identifier [] self;5 block [6,22];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _image;11 None [];12 block [13];13 expression_statement [14];14 call [15,18];15 attribut... | Raster bitmap in numpy array. |
0 module [1];1 function_definition [2,3,7];2 function_name [] cli;3 parameters [4,5];4 identifier [] location;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,12,36,83,107];8 expression_statement [9];9 assignment [10,11];10 identifier [] locations;11 list [] [];12 try_statement [13,33];13 block [14];14 ... | Geocode an arbitrary number of strings from Command Line. |
0 module [1];1 function_definition [2,3,9,11];2 function_name [] as_python;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] name;7 type [8];8 identifier [] str;9 type [10];10 identifier [] str;11 block [12];12 if_statement [13,16,24];13 attribute [14,15];14 identifier [] self;15 identifie... | Return the python representation of the class represented by this object |
0 module [1];1 function_definition [2,3,6];2 function_name [] _unpack_lookupswitch;3 parameters [4,5];4 identifier [] bc;5 identifier [] offset;6 block [7,14,24,37,43,68];7 expression_statement [8];8 assignment [9,10];9 identifier [] jump;10 () [11];11 binary_operator [12,13] %;12 identifier [] offset;13 integer [] 4;1... | function for unpacking the lookupswitch op arguments |
0 module [1];1 function_definition [2,3,5];2 function_name [] import_description;3 parameters [4];4 identifier [] text;5 block [6,10,14,96,103];6 expression_statement [7];7 assignment [8,9];8 identifier [] xml;9 string [];10 expression_statement [11];11 assignment [12,13];12 identifier [] is_in_ul;13 False [];14 for_st... | Convert ASCII text to AppStream markup format |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_dict;3 parameters [4];4 identifier [] self;5 block [6,18,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] d;9 call [10,17];10 attribute [11,16];11 call [12,13];12 identifier [] super;13 argument_list [14,15];14 identifier [] TargetExecuti... | Save this target execution context into a dictionary. |
0 module [1];1 function_definition [2,3,8];2 function_name [] delete;3 parameters [4,5];4 identifier [] request;5 default_parameter [6,7];6 identifier [] obj_id;7 None [];8 block [9,24,38,45,58,76,112,118];9 expression_statement [10];10 assignment [11,12];11 identifier [] data;12 boolean_operator [13,16] or;13 attribut... | Removes ImageVideo objects from Gallery |
0 module [1];1 function_definition [2,3,5];2 function_name [] delete_source;3 parameters [4];4 identifier [] ident;5 block [6,13,23,29,38];6 expression_statement [7];7 assignment [8,9];8 identifier [] source;9 call [10,11];10 identifier [] get_source;11 argument_list [12];12 identifier [] ident;13 expression_statement ... | Delete an harvest source |
0 module [1];1 function_definition [2,3,6];2 function_name [] scale;3 parameters [4,5];4 identifier [] self;5 identifier [] scale_xy;6 block [7,9];7 expression_statement [8];8 string [] Returns the pix object rescaled according to the proportions given.;9 with_statement [10,15];10 with_clause [11];11 with_item [12];12 ... | Returns the pix object rescaled according to the proportions given. |
0 module [1];1 function_definition [2,3,6];2 function_name [] first_n_items;3 parameters [4,5];4 identifier [] array;5 identifier [] n_desired;6 block [7,17,26,52];7 if_statement [8,11];8 comparison_operator [9,10] <;9 identifier [] n_desired;10 integer [] 1;11 block [12];12 raise_statement [13];13 call [14,15];14 iden... | Returns the first n_desired items of an array |
0 module [1];1 function_definition [2,3,6];2 function_name [] rowkey;3 parameters [4,5];4 identifier [] self;5 identifier [] row;6 block [7,9];7 expression_statement [8];8 string [] returns a tuple of the key for the given row;9 return_statement [10];10 call [11,12];11 identifier [] tuple;12 generator_expression [13,19... | returns a tuple of the key for the given row |
0 module [1];1 function_definition [2,3,7];2 function_name [] accel_decrease_transparency;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 block [8,21,48];8 expression_statement [9];9 assignment [10,11];10 identifier [] transparency;11 call [12,19];12 attribute [13,18];13 attribut... | Callback to decrease transparency. |
0 module [1];1 function_definition [2,3,9];2 function_name [] handle;3 parameters [4,5,7];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] options;9 block [10];10 for_statement [11,12,17];11 identifier [] plan_data;12 call [13,16];13 attribute [14,15];14 ... | Call sync_from_stripe_data for each plan returned by api_list. |
0 module [1];1 function_definition [2,3,5];2 function_name [] CalcRad;3 parameters [4];4 identifier [] lat;5 block [6,8,12,18,30,39,49,57,63,69];6 expression_statement [7];7 string [] Radius of curvature in meters at specified latitude.;8 expression_statement [9];9 assignment [10,11];10 identifier [] a;11 float [] 6378... | Radius of curvature in meters at specified latitude. |
0 module [1];1 function_definition [2,3,5];2 function_name [] emitCurrentChanged;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,13];7 not_operator [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] signalsBlocked;12 argument_list [];13 block [14,27,40,53];14 expression_sta... | Emits the current index changed signal provided signals are not blocked. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _find_fuzzy_line;3 parameters [4,5,6,7];4 identifier [] py_line_no;5 identifier [] py_by_line_no;6 identifier [] cheetah_by_line_no;7 identifier [] prefer_first;8 block [9,18,29,44,55];9 expression_statement [10];10 assignment [11,12];11 identifier [] stripp... | Attempt to fuzzily find matching lines. |
0 module [1];1 function_definition [2,3,6];2 function_name [] set;3 parameters [4,5];4 identifier [] self;5 identifier [] val;6 block [7,34,40];7 expression_statement [8];8 assignment [9,10];9 identifier [] msg;10 call [11,12];11 identifier [] ExtendedSend;12 argument_list [13,18,21,29];13 keyword_argument [14,15];14 i... | Set the heat set point. |
0 module [1];1 function_definition [2,3,5];2 function_name [] on;3 parameters [4];4 identifier [] self;5 block [6,22,28];6 expression_statement [7];7 assignment [8,9];8 identifier [] on_command;9 call [10,11];10 identifier [] ExtendedSend;11 argument_list [12,15,16,19];12 attribute [13,14];13 identifier [] self;14 iden... | Send an ON message to device group. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_soup;3 parameters [4,5];4 identifier [] response;5 identifier [] soup_config;6 block [7];7 if_statement [8,27,43];8 () [9];9 boolean_operator [10,21] or;10 comparison_operator [11,12] in;11 string [] text/html;12 call [13,18];13 attribute [14,17];14 attr... | Attaches a soup object to a requests response. |
0 module [1];1 function_definition [2,3,5];2 function_name [] help;3 parameters [4];4 identifier [] self;5 block [6,16,34,40,76,113];6 expression_statement [7];7 assignment [8,9];8 identifier [] result;9 list [10,13] [\n '=' * 50,\n self.name\n ];10 binary_operator [11,12] *;11 string [] =;... | Return the help string of the task |
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_cores_and_type;3 parameters [4,5,6];4 identifier [] numcores;5 identifier [] paralleltype;6 identifier [] scheduler;7 block [8,17,26,41];8 if_statement [9,12];9 comparison_operator [10,11] is not;10 identifier [] scheduler;11 None [];12 block [13];13 ex... | Return core and parallelization approach from command line providing sane defaults. |
0 module [1];1 function_definition [2,3,5];2 function_name [] clean;3 parameters [4];4 identifier [] self;5 block [6,43];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] metrics;11 block [12];12 expression_statement [13];13 assignment [14,17];14 attribute [15,16];15 iden... | Fill metrics with defaults on create |
0 module [1];1 function_definition [2,3,17,19];2 function_name [] main;3 parameters [4];4 typed_default_parameter [5,6,16];5 identifier [] argv;6 type [7];7 generic_type [8,9];8 identifier [] Optional;9 type_parameter [10];10 type [11];11 generic_type [12,13];12 identifier [] Sequence;13 type_parameter [14];14 type [15... | Parse arguments and process the exam assignment. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_package;3 parameters [4,5];4 identifier [] self;5 identifier [] package;6 block [7,17,31,44];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _data;13 identifier [] setdefault;14 arg... | Add a package to this project |
0 module [1];1 function_definition [2,3,7];2 function_name [] experimental;3 parameters [4];4 default_parameter [5,6];5 identifier [] name;6 None [];7 block [8,69];8 function_definition [9,10,12];9 function_name [] inner;10 parameters [11];11 identifier [] func;12 block [13,67];13 decorated_definition [14,21];14 decora... | A simple decorator to mark functions and methods as experimental. |
0 module [1];1 function_definition [2,3,6];2 function_name [] read_plain_float;3 parameters [4,5];4 identifier [] file_obj;5 identifier [] count;6 block [7];7 return_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] struct;11 identifier [] unpack;12 argument_list [13,24];13 call [14,22];14 attribute [15,... | Read `count` 32-bit floats using the plain encoding. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _bridge;3 parameters [4,5];4 identifier [] self;5 identifier [] channel;6 block [7,14,21,45];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] channel;11 identifier [] setblocking;12 argument_list [13];13 False [];14 expression_st... | Full-duplex bridge between a websocket and a SSH channel |
0 module [1];1 function_definition [2,3,5];2 function_name [] density;3 parameters [4];4 identifier [] self;5 block [6,14,22];6 expression_statement [7];7 assignment [8,9];8 identifier [] r;9 binary_operator [10,13] *;10 attribute [11,12];11 identifier [] self;12 identifier [] radius;13 identifier [] _Rsun;14 expressio... | Stellar density in CGS units |
0 module [1];1 function_definition [2,3,6];2 function_name [] intersect;3 parameters [4,5];4 identifier [] a;5 identifier [] b;6 block [7,26,45];7 if_statement [8,23];8 boolean_operator [9,16] or;9 comparison_operator [10,13] ==;10 subscript [11,12];11 identifier [] a;12 identifier [] x0;13 subscript [14,15];14 identif... | Check if two rectangles intersect |
0 module [1];1 function_definition [2,3,5];2 function_name [] starmodel_props;3 parameters [4];4 identifier [] self;5 block [6,10,16,22,90,105,120,135];6 expression_statement [7];7 assignment [8,9];8 identifier [] props;9 dictionary [];10 expression_statement [11];11 assignment [12,13];12 identifier [] mags;13 attribut... | Default mag_err is 0.05, arbitrarily |
0 module [1];1 function_definition [2,3,8];2 function_name [] generate_predict_json;3 parameters [4,5,6,7];4 identifier [] position1_result;5 identifier [] position2_result;6 identifier [] ids;7 identifier [] passage_tokens;8 block [9,16,27,31,101,108];9 expression_statement [10];10 assignment [11,12];11 identifier [] ... | Generate json by prediction. |
0 module [1];1 function_definition [2,3,7];2 function_name [] generate;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,11,40,94,126];8 import_statement [9];9 dotted_name [10];10 identifier [] collections;11 expression_statement [12];12 assignment [13,14];13 ident... | run once to create all children containers for each combination of the keywords |
0 module [1];1 function_definition [2,3,5];2 function_name [] getBriefModuleInfoFromFile;3 parameters [4];4 identifier [] fileName;5 block [6,12,20,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] modInfo;9 call [10,11];10 identifier [] BriefModuleInfo;11 argument_list [];12 expression_statement [13];1... | Builds the brief module info from file |
0 module [1];1 function_definition [2,3,7];2 function_name [] notify_listeners;3 parameters [4,5,6];4 identifier [] self;5 identifier [] msg_type;6 identifier [] params;7 block [8];8 for_statement [9,10,13];9 identifier [] c;10 attribute [11,12];11 identifier [] self;12 identifier [] listeners;13 block [14];14 expressi... | Send a message to all the observers. |
0 module [1];1 function_definition [2,3,5];2 function_name [] check_server_running;3 parameters [4];4 identifier [] pid;5 block [6,17];6 if_statement [7,14];7 comparison_operator [8,9] ==;8 identifier [] pid;9 call [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] getpid;13 argument_list [];14 block [15... | Determine if the given process is running |
0 module [1];1 function_definition [2,3,13];2 function_name [] load_empty;3 parameters [4,5,9];4 identifier [] cls;5 typed_parameter [6,7];6 identifier [] path;7 type [8];8 identifier [] PathOrStr;9 typed_parameter [10,11];10 identifier [] fn;11 type [12];12 identifier [] PathOrStr;13 block [14,16];14 expression_statem... | Load the state in `fn` to create an empty `LabelList` for inference. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _prepare_workdir;3 parameters [4];4 identifier [] self;5 block [6,20,25];6 expression_statement [7];7 assignment [8,9];8 identifier [] pants_jar_base_dir;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 id... | Prepare the location in our task workdir to store all the hardlinks to coursier cache dir. |
0 module [1];1 function_definition [2,3,6];2 function_name [] render_te_response;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,28];7 if_statement [8,15];8 boolean_operator [9,12] and;9 comparison_operator [10,11] in;10 string [] submit_label;11 identifier [] data;12 comparison_operator [13,14]... | Render data to JsonResponse |
0 module [1];1 function_definition [2,3,11];2 function_name [] parse_known_args;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] args;7 None [];8 default_parameter [9,10];9 identifier [] namespace;10 None [];11 block [12,18,24,40,46,52,68,98,102,160,178];12 expression_statement [13];1... | Parse args method to handle input-file dependent arguments. |
0 module [1];1 function_definition [2,3,41];2 function_name [] transfer_and_wait;3 parameters [4,5,9,13,17,21,26,31,36];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] registry_address;7 type [8];8 identifier [] PaymentNetworkID;9 typed_parameter [10,11];10 identifier [] token_address;11 type [12];12 ident... | Do a transfer with `target` with the given `amount` of `token_address`. |
0 module [1];1 function_definition [2,3,6];2 function_name [] update;3 parameters [4,5];4 identifier [] self;5 identifier [] obj;6 block [7,16];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _dict;13 identifier [] update;14 argument_list [15];15 ... | Redefine update to trigger logging message |
0 module [1];1 function_definition [2,3,8];2 function_name [] create;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] image;6 identifier [] geometry;7 identifier [] options;8 block [9,20,31,42,52,63,74,85,96,107];9 expression_statement [10];10 assignment [11,12];11 identifier [] image;12 call [13,16];13 attr... | Processing conductor, returns the thumbnail as an image engine instance |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_callback;3 parameters [4,5];4 identifier [] self;5 identifier [] callback;6 block [7];7 if_statement [8,13];8 comparison_operator [9,10] in;9 identifier [] callback;10 attribute [11,12];11 identifier [] self;12 identifier [] _async_callbacks;13 block ... | Remove callback previously registered. |
0 module [1];1 function_definition [2,3,9];2 function_name [] save_feature;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] cat;6 identifier [] img;7 identifier [] feature;8 identifier [] data;9 block [10,21,26];10 expression_statement [11];11 assignment [12,13];12 identifier [] filename;13 call [14,17];14... | Saves a new feature. |
0 module [1];1 function_definition [2,3,6];2 function_name [] user_provenance;3 parameters [4,5];4 identifier [] self;5 identifier [] document;6 block [7,13,21,33,40,47,54,79,117];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] self_check;12 argument_list [];13 expres... | Add the user provenance. |
0 module [1];1 function_definition [2,3,10];2 function_name [] task_wait;3 parameters [4,5,6,7,8,9];4 identifier [] meow;5 identifier [] heartbeat;6 identifier [] polling_interval;7 identifier [] timeout;8 identifier [] task_id;9 identifier [] timeout_exit_code;10 block [11];11 expression_statement [12];12 call [13,14]... | Executor for `globus task wait` |
0 module [1];1 function_definition [2,3,7];2 function_name [] reorient_wf;3 parameters [4];4 default_parameter [5,6];5 identifier [] name;6 string [] ReorientWorkflow;7 block [8,19,39,59,78,100,128];8 expression_statement [9];9 assignment [10,11];10 identifier [] workflow;11 call [12,15];12 attribute [13,14];13 identif... | A workflow to reorient images to 'RPI' orientation |
0 module [1];1 function_definition [2,3,6];2 function_name [] _map_arg_names;3 parameters [4,5];4 identifier [] source;5 identifier [] mapping;6 block [7];7 return_statement [8];8 dictionary_comprehension [9,14,19];9 pair [10,11];10 identifier [] cartopy_name;11 subscript [12,13];12 identifier [] source;13 identifier [... | Map one set of keys to another. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _fetchone;3 parameters [4,5,6];4 identifier [] self;5 identifier [] query;6 identifier [] vars;7 block [8,20,29,37];8 expression_statement [9];9 assignment [10,11];10 identifier [] cursor;11 call [12,19];12 attribute [13,18];13 call [14,17];14 attribute [15,... | Return none or one row. |
0 module [1];1 function_definition [2,3,7];2 function_name [] MessageSizer;3 parameters [4,5,6];4 identifier [] field_number;5 identifier [] is_repeated;6 identifier [] is_packed;7 block [8,15,19,22];8 expression_statement [9];9 assignment [10,11];10 identifier [] tag_size;11 call [12,13];12 identifier [] _TagSize;13 a... | Returns a sizer for a message field. |
0 module [1];1 function_definition [2,3,6];2 function_name [] nvrtcGetPTX;3 parameters [4,5];4 identifier [] self;5 identifier [] prog;6 block [7,13,28,35,44,56,63];7 expression_statement [8];8 assignment [9,10];9 identifier [] size;10 call [11,12];11 identifier [] c_size_t;12 argument_list [];13 expression_statement [... | Returns the compiled PTX for the NVRTC program object. |
0 module [1];1 function_definition [2,3,6];2 function_name [] update_eol;3 parameters [4,5];4 identifier [] self;5 identifier [] os_name;6 block [7,14,30];7 expression_statement [8];8 assignment [9,10];9 identifier [] os_name;10 call [11,12];11 identifier [] to_text_string;12 argument_list [13];13 identifier [] os_name... | Update end of line status. |
0 module [1];1 function_definition [2,3,5];2 function_name [] running;3 parameters [4];4 identifier [] opts;5 block [6,10,24,37,86];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 list [] [];10 expression_statement [11];11 assignment [12,13];12 identifier [] proc_dir;13 call [14,19];14 attribute [15... | Return the running jobs on this minion |
0 module [1];1 function_definition [2,3,6];2 function_name [] _validate_input_column;3 parameters [4,5];4 identifier [] self;5 identifier [] column;6 block [7];7 if_statement [8,23];8 boolean_operator [9,14] and;9 comparison_operator [10,11] !=;10 identifier [] column;11 attribute [12,13];12 identifier [] self;13 ident... | Make sure a passed column is our column. |
0 module [1];1 function_definition [2,3,9];2 function_name [] reconstruct;3 parameters [4,5,6];4 identifier [] self;5 identifier [] b;6 default_parameter [7,8];7 identifier [] X;8 None [];9 block [10,23,40,70,96];10 if_statement [11,14];11 comparison_operator [12,13] is;12 identifier [] X;13 None [];14 block [15];15 ex... | Reconstruct representation of signal b in signal set. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _get_id2gos;3 parameters [4,5,6];4 identifier [] self;5 identifier [] associations;6 dictionary_splat_pattern [7];7 identifier [] kws;8 block [9,20,30];9 expression_statement [10];10 assignment [11,12];11 identifier [] options;12 call [13,14];13 identifier [... | Return given associations in a dict, id2gos |
0 module [1];1 function_definition [2,3,5];2 function_name [] close_async;3 parameters [4];4 identifier [] self;5 block [6,28,45,55];6 if_statement [7,20];7 boolean_operator [8,13] or;8 comparison_operator [9,12] is;9 attribute [10,11];10 identifier [] self;11 identifier [] _stream;12 None [];13 call [14,19];14 attribu... | Send the quit message and close the socket |
0 module [1];1 function_definition [2,3,20];2 function_name [] convert;3 parameters [4,5,8,11,14,17];4 identifier [] self;5 default_parameter [6,7];6 identifier [] json;7 string [];8 default_parameter [9,10];9 identifier [] table_attributes;10 string [] border="1";11 default_parameter [12,13];12 identifier [] clubbing;... | Convert JSON to HTML Table format |
0 module [1];1 function_definition [2,3,5];2 function_name [] _tegra_id;3 parameters [4];4 identifier [] self;5 block [6,16,44];6 expression_statement [7];7 assignment [8,9];8 identifier [] board_value;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] detector;14 identifier... | Try to detect the id of aarch64 board. |
0 module [1];1 function_definition [2,3,6];2 function_name [] from_json;3 parameters [4,5];4 identifier [] cls;5 identifier [] service_dict;6 block [7,15,26,39,48,61,70,77];7 expression_statement [8];8 assignment [9,10];9 identifier [] sd;10 call [11,14];11 attribute [12,13];12 identifier [] service_dict;13 identifier ... | Create a service object from a JSON string. |
0 module [1];1 function_definition [2,3,8,10];2 function_name [] simple_parse_bytes;3 parameters [4];4 typed_parameter [5,6];5 identifier [] data;6 type [7];7 identifier [] bytes;8 type [9];9 identifier [] Feed;10 block [11,30];11 expression_statement [12];12 assignment [13,14];13 identifier [] pairs;14 tuple [15,20,25... | Parse an Atom, RSS or JSON feed from a byte-string containing data. |
0 module [1];1 function_definition [2,3,6];2 function_name [] qteReplayKeysequenceHook;3 parameters [4,5];4 identifier [] self;5 identifier [] msgObj;6 block [7,19,25];7 if_statement [8,17];8 comparison_operator [9,16] ==;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] re... | Replay the macro sequence. |
0 module [1];1 function_definition [2,3,13];2 function_name [] to_url;3 parameters [4,5,8,11];4 identifier [] self;5 default_parameter [6,7];6 identifier [] url;7 None [];8 default_parameter [9,10];9 identifier [] replace;10 False [];11 dictionary_splat_pattern [12];12 identifier [] kwargs;13 block [14,25,38,53,125,136... | Serialize the query into an URL |
0 module [1];1 function_definition [2,3,5];2 function_name [] needs_sync;3 parameters [4];4 identifier [] self;5 block [6,14,32];6 expression_statement [7];7 assignment [8,9];8 identifier [] affected_attributes;9 list [10,11,12,13] [\n 'css_files', 'js_files',\n 'scss_files', 'widgets'];10 string ... | Indicates whater module needs templates, static etc. |
0 module [1];1 function_definition [2,3,5];2 function_name [] load_object_by_name;3 parameters [4];4 identifier [] object_name;5 block [6,18,25];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] mod_name;10 identifier [] attr;11 call [12,15];12 attribute [13,14];13 identifier [] objec... | Load an object from a module by name |
0 module [1];1 function_definition [2,3,5];2 function_name [] _parse_names_dict;3 parameters [4];4 identifier [] feature_names;5 block [6,12,78];6 expression_statement [7];7 assignment [8,9];8 identifier [] feature_collection;9 call [10,11];10 identifier [] OrderedDict;11 argument_list [];12 for_statement [13,16,21];13... | Helping function of `_parse_feature_names` that parses a dictionary of feature names. |
0 module [1];1 function_definition [2,3,10];2 function_name [] in_SCAT_box;3 parameters [4,5,6,7,8,9];4 identifier [] x;5 identifier [] y;6 identifier [] low_bound;7 identifier [] high_bound;8 identifier [] x_max;9 identifier [] y_max;10 block [11,15,22,29,42,55,64,73];11 expression_statement [12];12 assignment [13,14]... | determines if a particular point falls within a box |
0 module [1];1 function_definition [2,3,5];2 function_name [] draw;3 parameters [4];4 identifier [] self;5 block [6,14,22,29];6 import_from_statement [7,10,12];7 dotted_name [8,9];8 identifier [] calysto;9 identifier [] display;10 dotted_name [11];11 identifier [] display;12 dotted_name [13];13 identifier [] clear_outp... | Render and draw the world and robots. |
0 module [1];1 function_definition [2,3,5];2 function_name [] create_code_cell;3 parameters [4];4 identifier [] block;5 block [6,19,25,82];6 expression_statement [7];7 assignment [8,9];8 identifier [] code_cell;9 call [10,13];10 attribute [11,12];11 identifier [] nbbase;12 identifier [] new_code_cell;13 argument_list [... | Create a notebook code cell from a block. |
0 module [1];1 function_definition [2,3,9];2 function_name [] get;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key;6 default_parameter [7,8];7 identifier [] transaction;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... | Retrieves an entity given its key. |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_dict;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 dictionary [8,13,18,27,32];8 pair [9,10];9 string [] definition;10 attribute [11,12];11 identifier [] self;12 identifier [] definition;13 pair [14,15];14 string [] id;15 attri... | Convert Term into raw dictionary data. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_exe;3 parameters [4];4 identifier [] prog;5 block [6,30];6 if_statement [7,10];7 comparison_operator [8,9] in;8 identifier [] prog;9 identifier [] prog_to_env_var;10 block [11,17];11 expression_statement [12];12 assignment [13,14];13 identifier [] env_v... | Given a program name, return what we expect its exectuable to be called |
0 module [1];1 function_definition [2,3,7];2 function_name [] delete;3 parameters [4,5,6];4 identifier [] self;5 identifier [] namespace;6 identifier [] key;7 block [8,36,46,69];8 if_statement [9,19];9 not_operator [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] dbc... | Delete a specific configuration item |
0 module [1];1 function_definition [2,3,5];2 function_name [] mode;3 parameters [4];4 identifier [] self;5 block [6,13,17,26,99];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] is_in_schedule_mode;10 block [11];11 return_statement [12];12 string [] schedule;13 expression_statement [14];14 a... | Return current mode key. |
0 module [1];1 function_definition [2,3,6];2 function_name [] paula_etree_to_string;3 parameters [4,5];4 identifier [] tree;5 identifier [] dtd_filename;6 block [7];7 return_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] etree;11 identifier [] tostring;12 argument_list [13,14,17,20,23,26];13 identifie... | convert a PAULA etree into an XML string. |
0 module [1];1 function_definition [2,3,5];2 function_name [] json_repr;3 parameters [4];4 identifier [] obj;5 block [6,136];6 function_definition [7,8,10];7 function_name [] serialize;8 parameters [9];9 identifier [] obj;10 block [11,18,30,43,82,98,117,131];11 if_statement [12,15];12 comparison_operator [13,14] is;13 ... | Represent instance of a class as JSON. |
0 module [1];1 function_definition [2,3,5];2 function_name [] compute_md5;3 parameters [4];4 identifier [] self;5 block [6,9];6 import_statement [7];7 dotted_name [8];8 identifier [] hashlib;9 with_statement [10,22];10 with_clause [11];11 with_item [12];12 as_pattern [13,20];13 call [14,15];14 identifier [] open;15 arg... | Compute and erturn MD5 hash value. |
0 module [1];1 function_definition [2,3,9];2 function_name [] type;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] name;7 type [8];8 identifier [] str;9 block [10];10 for_statement [11,12,15];11 identifier [] f;12 attribute [13,14];13 identifier [] self;14 identifier [] body;15 block [16... | return the first complete definition of type 'name |
0 module [1];1 function_definition [2,3,7];2 function_name [] change_last_focused_widget;3 parameters [4,5,6];4 identifier [] self;5 identifier [] old;6 identifier [] now;7 block [8,53];8 if_statement [9,21,42];9 () [10];10 boolean_operator [11,14] and;11 comparison_operator [12,13] is;12 identifier [] now;13 None [];1... | To keep track of to the last focused widget |
0 module [1];1 function_definition [2,3,7];2 function_name [] InternalSend;3 parameters [4,5,6];4 identifier [] self;5 identifier [] cmd;6 identifier [] payload;7 block [8,15,23,32,52,59,66,73,77];8 expression_statement [9];9 assignment [10,11];10 identifier [] length_to_send;11 call [12,13];12 identifier [] len;13 arg... | Sends a message to the device, including fragmenting it. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _version_header;3 parameters [4];4 identifier [] self;5 block [6,27];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] _cached_version_header;11 block [12];12 expression_statement [13];13 assignment [14,17];14 ... | Generate the client version header to send on each request. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dprint;3 parameters [4];4 identifier [] s;5 block [6,9,19,25,31,91,95,115,132,139,145];6 import_statement [7];7 dotted_name [8];8 identifier [] inspect;9 expression_statement [10];10 assignment [11,12];11 identifier [] frameinfo;12 subscript [13,18];13 call ... | Prints `s` with additional debugging informations |
0 module [1];1 function_definition [2,3,26];2 function_name [] make_request;3 parameters [4,5,8,11,14,17,20,23];4 identifier [] name;5 default_parameter [6,7];6 identifier [] params;7 None [];8 default_parameter [9,10];9 identifier [] version;10 string [] V001;11 default_parameter [12,13];12 identifier [] key;13 None [... | Make an API request |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.