sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,5];2 function_name [] _param32;3 parameters [4];4 identifier [] ins;5 block [6,17,24,31];6 expression_statement [7];7 assignment [8,9];8 identifier [] output;9 call [10,11];10 identifier [] _32bit_oper;11 argument_list [12];12 subscript [13,16];13 attribute [14,15];14 identifier ... | Pushes 32bit param into the stack |
0 module [1];1 function_definition [2,3,7];2 function_name [] lang_match_json;3 parameters [4,5,6];4 identifier [] row;5 identifier [] hdr;6 identifier [] accepted_languages;7 block [8,14,44];8 if_statement [9,11];9 not_operator [10];10 identifier [] accepted_languages;11 block [12];12 return_statement [13];13 True [];... | Find if the JSON row contains acceptable language data |
0 module [1];1 function_definition [2,3,5];2 function_name [] removeContinuousSet;3 parameters [4];4 identifier [] self;5 block [6,12,27,40,56];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _openRepo;11 argument_list [];12 expression_statement [13];13 assignment [14,1... | Removes a continuous set from this repo |
0 module [1];1 function_definition [2,3,7];2 function_name [] sort_top_targets;3 parameters [4,5,6];4 identifier [] self;5 identifier [] top;6 identifier [] orders;7 block [8,17,59];8 expression_statement [9];9 assignment [10,11];10 identifier [] sorted_top;11 call [12,15];12 attribute [13,14];13 identifier [] collecti... | Returns the sorted high data from the merged top files |
0 module [1];1 function_definition [2,3,5];2 function_name [] parseIBDatetime;3 parameters [4];4 identifier [] s;5 block [6,101];6 if_statement [7,13,61,87];7 comparison_operator [8,12] ==;8 call [9,10];9 identifier [] len;10 argument_list [11];11 identifier [] s;12 integer [] 8;13 block [14,26,38,50];14 expression_sta... | Parse string in IB date or datetime format to datetime. |
0 module [1];1 function_definition [2,3,20,22];2 function_name [] add_errors;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,8];6 list_splat_pattern [7];7 identifier [] errors;8 type [9];9 generic_type [10,11];10 identifier [] Union;11 type_parameter [12,14];12 type [13];13 identifier [] BaseSchemaError;14... | Adds errors to the error repository in schema loader |
0 module [1];1 function_definition [2,3,5];2 function_name [] data_storage_dir;3 parameters [4];4 identifier [] self;5 block [6,43];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _data_storage_dir;11 None [];12 block [13,26];13 expression_statement [14];14... | Temporary folder used to store intermediate calculation data in case the memory is saturated |
0 module [1];1 function_definition [2,3,7];2 function_name [] _init_datastore_v3_stub;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] stub_kwargs;7 block [8,19,26];8 expression_statement [9];9 assignment [10,11];10 identifier [] task_args;11 call [12,13];12 identifier [] dict;13 a... | Initializes the datastore stub using nosegae config magic |
0 module [1];1 function_definition [2,3,5];2 function_name [] filter_python_files;3 parameters [4];4 identifier [] files;5 block [6,8,12,93];6 expression_statement [7];7 string [] Get all python files from the list of files.;8 expression_statement [9];9 assignment [10,11];10 identifier [] py_files;11 list [] [];12 for_... | Get all python files from the list of files. |
0 module [1];1 function_definition [2,3,9];2 function_name [] contains;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] url;7 type [8];8 identifier [] str;9 block [10];10 try_statement [11,19,24];11 block [12];12 expression_statement [13];13 call [14,17];14 attribute [15,16];15 identifier... | Return whether the URL is in the table. |
0 module [1];1 function_definition [2,3,12];2 function_name [] generate_corpus;3 parameters [4,5,6,7,8,9];4 identifier [] n_issuers;5 identifier [] n_tracks_per_issuer;6 identifier [] n_utts_per_track;7 identifier [] n_ll_per_utt;8 identifier [] n_label_per_ll;9 default_parameter [10,11];10 identifier [] rand;11 None [... | Generate a corpus with mock data. |
0 module [1];1 function_definition [2,3,4];2 function_name [] example_lab_to_ipt;3 parameters [];4 block [5,10,22,27,35,40];5 expression_statement [6];6 call [7,8];7 identifier [] print;8 argument_list [9];9 string [] === Simple Example: XYZ->IPT ===;10 expression_statement [11];11 assignment [12,13];12 identifier [] x... | This function shows a simple conversion of an XYZ color to an IPT color. |
0 module [1];1 function_definition [2,3,5];2 function_name [] verify_token_type;3 parameters [4];4 identifier [] self;5 block [6,29];6 try_statement [7,18];7 block [8];8 expression_statement [9];9 assignment [10,11];10 identifier [] token_type;11 subscript [12,15];12 attribute [13,14];13 identifier [] self;14 identifie... | Ensures that the token type claim is present and has the correct value. |
0 module [1];1 function_definition [2,3,8];2 function_name [] idat;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] lenient;7 False [];8 block [9];9 while_statement [10,11];10 True [];11 block [12,49,55,61,78];12 try_statement [13,27];13 block [14];14 expression_statement [15];15 assign... | Iterator that yields all the ``IDAT`` chunks as strings. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _do_layout;3 parameters [4];4 identifier [] self;5 block [6,18,28,38,42,46,89,96,103];6 expression_statement [7];7 assignment [8,9];8 identifier [] sizer_csvoptions;9 call [10,13];10 attribute [11,12];11 identifier [] wx;12 identifier [] FlexGridSizer;13 arg... | Sizer hell, returns a sizer that contains all widgets |
0 module [1];1 function_definition [2,3,13];2 function_name [] _process_rule;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] rule;7 type [8];8 identifier [] dict;9 typed_parameter [10,11];10 identifier [] context;11 type [12];12 identifier [] dict;13 block [14,27,36,51,63,75,104];14 if... | process a single rule |
0 module [1];1 function_definition [2,3,17];2 function_name [] create_multi;3 parameters [4,5,6,7,8,11,14];4 identifier [] cls;5 identifier [] jid;6 identifier [] password;7 identifier [] msg;8 default_parameter [9,10];9 identifier [] recipients;10 None [];11 default_parameter [12,13];12 identifier [] rooms;13 None [];... | Alternate constructor that accept multiple recipients and rooms |
0 module [1];1 function_definition [2,3,5];2 function_name [] username;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,21,52];7 comparison_operator [8,20] ==;8 call [9,10];9 identifier [] len;10 argument_list [11];11 call [12,19];12 attribute [13,18];13 attribute [14,17];14 attribute [15,16];15 iden... | Loking for username in user's input and config file |
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,25,29,37];10 expression_statement [11];11 assignment [12,13];12 identifier [] qs;13 call [14,21]... | Call sync_subscriber on Subscribers without customers associated to them. |
0 module [1];1 function_definition [2,3,9];2 function_name [] add_row;3 parameters [4,5,6];4 identifier [] self;5 identifier [] row_data;6 default_parameter [7,8];7 identifier [] resize_x;8 True [];9 block [10,21,41];10 if_statement [11,13];11 not_operator [12];12 identifier [] resize_x;13 block [14];14 expression_stat... | Adds a row at the end of the table |
0 module [1];1 function_definition [2,3,5];2 function_name [] combine_tax_scales;3 parameters [4];4 identifier [] node;5 block [6,10,71];6 expression_statement [7];7 assignment [8,9];8 identifier [] combined_tax_scales;9 None [];10 for_statement [11,12,13];11 identifier [] child_name;12 identifier [] node;13 block [14,... | Combine all the MarginalRateTaxScales in the node into a single MarginalRateTaxScale. |
0 module [1];1 function_definition [2,3,5];2 function_name [] gevent_start;3 parameters [4];4 identifier [] self;5 block [6,9,13,26,36,42];6 import_statement [7];7 dotted_name [8];8 identifier [] gevent;9 import_statement [10];10 dotted_name [11,12];11 identifier [] gevent;12 identifier [] select;13 expression_statemen... | Helper method to start the node for gevent-based applications. |
0 module [1];1 function_definition [2,3,7];2 function_name [] by_id;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] _id;6 identifier [] engine_or_session;7 block [8,17,31,40];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] ses;12 identifier [] auto_close;13 call [14,15]... | Get one object by primary_key value. |
0 module [1];1 function_definition [2,3,6];2 function_name [] prepare_conn;3 parameters [4,5];4 identifier [] self;5 identifier [] conn;6 block [7,18,30,40,49,65];7 expression_statement [8];8 assignment [9,10];9 identifier [] client_id;10 call [11,12];11 identifier [] str;12 argument_list [13];13 call [14,17];14 attrib... | Setup a new connection from a client. |
0 module [1];1 function_definition [2,3,6];2 function_name [] filter;3 parameters [4,5];4 identifier [] self;5 identifier [] f;6 block [7,18];7 function_definition [8,9,11];8 function_name [] func;9 parameters [10];10 identifier [] iterator;11 block [12];12 return_statement [13];13 call [14,15];14 identifier [] filter;... | Return a new DStream containing only the elements that satisfy predicate. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dom_table;3 parameters [4];4 identifier [] self;5 block [6,118];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _dom_table;11 None [];12 block [13,20,103];13 expression_statement [14];14 assignme... | A `Table` containing DOM attributes |
0 module [1];1 function_definition [2,3,6];2 function_name [] parse_options;3 parameters [4,5];4 identifier [] cls;5 identifier [] options;6 block [7,15,23];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] cls;11 identifier [] ignore_decorators;12 attribute [13,14];13 identifier [] op... | Pass options through to this plugin. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_addresses;3 parameters [4,5];4 identifier [] self;5 identifier [] text;6 block [7,11,32,53];7 expression_statement [8];8 assignment [9,10];9 identifier [] addresses;10 list [] [];11 expression_statement [12];12 assignment [13,14];13 identifier [] matche... | Returns a list of addresses found in text |
0 module [1];1 function_definition [2,3,5];2 function_name [] regex;3 parameters [4];4 identifier [] r;5 block [6,28,39,118];6 if_statement [7,12,22];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] r;11 identifier [] stringtypes;12 block [13];13 expression_statement [14];14 assignment [... | Create a PEG function to match a regular expression. |
0 module [1];1 function_definition [2,3,7];2 function_name [] deactivate_version;3 parameters [4,5,6];4 identifier [] self;5 identifier [] service_id;6 identifier [] version_number;7 block [8,24];8 expression_statement [9];9 assignment [10,11];10 identifier [] content;11 call [12,15];12 attribute [13,14];13 identifier ... | Deactivate the current version. |
0 module [1];1 function_definition [2,3,10];2 function_name [] output;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] msg;6 identifier [] indent;7 default_parameter [8,9];8 identifier [] status;9 None [];10 block [11,15,27];11 expression_statement [12];12 assignment [13,14];13 identifier [] color;14 None []... | Alias for print_indent_msg with color determined by status. |
0 module [1];1 function_definition [2,3,6];2 function_name [] repackage_hidden;3 parameters [4,5];4 identifier [] self;5 identifier [] h;6 block [7];7 if_statement [8,13,28];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] h;12 identifier [] Variable;13 block [14];14 return_statement [... | Wraps hidden states in new Variables, to detach them from their history. |
0 module [1];1 function_definition [2,3,12];2 function_name [] walletpassphrase;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] passphrase;6 default_parameter [7,8];7 identifier [] timeout;8 integer [] 99999999;9 default_parameter [10,11];10 identifier [] mint_only;11 True [];12 block [13];13 return_stateme... | used to unlock wallet for minting |
0 module [1];1 function_definition [2,3,4];2 function_name [] revoke_api_key;3 parameters [];4 block [5,11,19,123];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 [] form;14 c... | Form submission handler for revoking API keys. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _updateNamespace;3 parameters [4,5];4 identifier [] item;5 identifier [] new_namespace;6 block [7,11,22,47,59,130];7 expression_statement [8];8 assignment [9,10];9 identifier [] temp_item;10 string [];11 expression_statement [12];12 assignment [13,14];13 ide... | helper function to recursively update the namespaces of an item |
0 module [1];1 function_definition [2,3,7];2 function_name [] create_image;3 parameters [4,5,6];4 identifier [] self;5 identifier [] image_file;6 identifier [] caption;7 block [8,12,97,101];8 expression_statement [9];9 assignment [10,11];10 identifier [] suffix;11 string [] png;12 if_statement [13,14,72];13 identifier ... | Create an image with a caption |
0 module [1];1 function_definition [2,3,5];2 function_name [] _skip_frame;3 parameters [4];4 identifier [] self;5 block [6,18];6 for_statement [7,8,11];7 identifier [] line;8 attribute [9,10];9 identifier [] self;10 identifier [] _f;11 block [12];12 if_statement [13,16];13 comparison_operator [14,15] ==;14 identifier [... | Skip the next time frame |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_nibabel;3 parameters [4];4 identifier [] image;5 block [6,18,23,31,66,86,97,107];6 if_statement [7,12];7 comparison_operator [8,11] !=;8 attribute [9,10];9 identifier [] image;10 identifier [] dimension;11 integer [] 3;12 block [13];13 raise_statement [14... | Convert an ANTsImage to a Nibabel image |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_xml;3 parameters [4];4 identifier [] self;5 block [6,10,29,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 string [] <exif>;10 for_statement [11,12,15];11 identifier [] k;12 attribute [13,14];13 identifier [] self;14 identifier [] ... | Serialize all properties as XML |
0 module [1];1 function_definition [2,3,6];2 function_name [] handle_dump;3 parameters [4,5];4 identifier [] self;5 identifier [] params;6 block [7,17,53,63];7 expression_statement [8];8 call [9,10];9 identifier [] print;10 argument_list [11,12];11 string [] Clients:;12 attribute [13,16];13 attribute [14,15];14 identif... | Dump internal server information for debugging purposes. |
0 module [1];1 function_definition [2,3,5];2 function_name [] add_size_info;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,22,45];7 boolean_operator [8,17] and;8 boolean_operator [9,12] and;9 attribute [10,11];10 identifier [] self;11 identifier [] headers;12 comparison_operator [13,14] in;13 strin... | Get size of URL content from HTTP header. |
0 module [1];1 function_definition [2,3,5];2 function_name [] evict;3 parameters [4];4 identifier [] self;5 block [6,16,23];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] logging;10 identifier [] debug;11 argument_list [12,13];12 string [] Evicting cache for %r;13 attribute [14,15];14 ident... | Evict all caches related to these operations. |
0 module [1];1 function_definition [2,3,6];2 function_name [] removeNotification;3 parameters [4,5];4 identifier [] self;5 identifier [] notificationId;6 block [7,15,22];7 expression_statement [8];8 assignment [9,10];9 identifier [] fn;10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] fun... | Destroy a notification, hiding it first if it currently shown to the user. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _exists;3 parameters [4,5];4 identifier [] self;5 identifier [] path;6 block [7,17];7 if_statement [8,14];8 call [9,12];9 attribute [10,11];10 identifier [] path;11 identifier [] endswith;12 argument_list [13];13 string [] /;14 block [15];15 return_statement... | S3 directory is not S3Ojbect. |
0 module [1];1 function_definition [2,3,6];2 function_name [] include_theme_files;3 parameters [4,5];4 identifier [] self;5 identifier [] fragment;6 block [7,15,24,44,51];7 expression_statement [8];8 assignment [9,10];9 identifier [] theme;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] get_... | Gets theme configuration and renders theme css into fragment |
0 module [1];1 function_definition [2,3,5];2 function_name [] fetch_device_list;3 parameters [4];4 identifier [] self;5 block [6,15,25];6 expression_statement [7];7 assignment [8,9];8 identifier [] url;9 call [10,13];10 attribute [11,12];11 string [] {}/users/me;12 identifier [] format;13 argument_list [14];14 identifi... | Fetch list of devices. |
0 module [1];1 function_definition [2,3,5];2 function_name [] verify_integrity;3 parameters [4];4 identifier [] self;5 block [6,134];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] __integrity_check;11 block [12,23,40,44,65,86,107,128];12 if_statement [13,17];13 not_ope... | Verifies that all required functions been injected. |
0 module [1];1 function_definition [2,3,12];2 function_name [] add_child;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] child;6 default_parameter [7,8];7 identifier [] name;8 None [];9 default_parameter [10,11];10 identifier [] index;11 None [];12 block [13,24,40];13 expression_statement [14];14 call [15,2... | Add object `child` to the first map and store it for the second. |
0 module [1];1 function_definition [2,3,9];2 function_name [] add_adjust;3 parameters [4,5,6];4 identifier [] self;5 identifier [] data;6 default_parameter [7,8];7 identifier [] prehashed;8 False [];9 block [10,18,28,37,111];10 expression_statement [11];11 assignment [12,13];12 identifier [] subtrees;13 call [14,17];14... | Add a new leaf, and adjust the tree, without rebuilding the whole thing. |
0 module [1];1 function_definition [2,3,6];2 function_name [] append;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7];7 for_statement [8,9,16];8 identifier [] k;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _entries;14 identifier [] keys;15 argum... | Append a Data instance to self |
0 module [1];1 function_definition [2,3,5];2 function_name [] extract_status_code;3 parameters [4];4 identifier [] error;5 block [6];6 try_statement [7,15];7 block [8];8 return_statement [9];9 call [10,11];10 identifier [] int;11 argument_list [12];12 attribute [13,14];13 identifier [] error;14 identifier [] code;15 ex... | Extract an error code from a message. |
0 module [1];1 function_definition [2,3,5];2 function_name [] init_nvidia;3 parameters [4];4 identifier [] self;5 block [6,15,53];6 if_statement [7,8];7 identifier [] import_error_tag;8 block [9];9 expression_statement [10];10 assignment [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] nvml_ready;14 ... | Init the NVIDIA API. |
0 module [1];1 function_definition [2,3,6];2 function_name [] action_spatial;3 parameters [4,5];4 identifier [] self;5 identifier [] action;6 block [7];7 if_statement [8,17,22,37];8 binary_operator [9,14] &;9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] surf;13 identifier [] surf_type;1... | Given an Action, return the right spatial action. |
0 module [1];1 function_definition [2,3,6];2 function_name [] transpose;3 parameters [4,5];4 identifier [] self;5 identifier [] rows;6 block [7,13,54];7 expression_statement [8];8 assignment [9,10];9 identifier [] res;10 call [11,12];11 identifier [] OrderedDict;12 argument_list [];13 for_statement [14,17,22];14 patter... | Transposes the grid to allow for cols |
0 module [1];1 function_definition [2,3,8];2 function_name [] _postprocess_variants;3 parameters [4,5,6,7];4 identifier [] record_file;5 identifier [] data;6 identifier [] ref_file;7 identifier [] out_file;8 block [9,57];9 if_statement [10,18];10 not_operator [11];11 call [12,15];12 attribute [13,14];13 identifier [] u... | Post-process variants, converting into standard VCF file. |
0 module [1];1 function_definition [2,3,7];2 function_name [] track_list;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 block [8,17];8 expression_statement [9];9 assignment [10,11];10 identifier [] noargs;11 comparison_operator [12,16] ==;12 call [13,14];13 identifier [] len;14 ... | return the list of tracks contained if the dataset |
0 module [1];1 function_definition [2,3,5];2 function_name [] signed_cell_areas;3 parameters [4];4 identifier [] self;5 block [6,18,104];6 assert_statement [7,17];7 () [8];8 comparison_operator [9,16] ==;9 subscript [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] node_coords;14 ... | Signed area of a triangle in 2D. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _apply_mask;3 parameters [4,5];4 identifier [] self;5 identifier [] roi_mask;6 block [7,13];7 expression_statement [8];8 assignment [9,10];9 identifier [] rows_to_delete;10 call [11,12];11 identifier [] list;12 argument_list [];13 if_statement [14,21,65];14 ... | Removes voxels outside the given mask or ROI set. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _next_job;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] __job_queue;10 block [11,21];11 expression_statement [12];12 assignment [13,14];13 identifier [] job;14 call [15,20];15 a... | execute the next job from the top of the queue |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_xdr_object;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] Xdr;11 identifier [] types;12 identifier [] Memo;13 argument_list [14,21];14 keyword_argument [15,16]... | Creates an XDR Memo object for a transaction with MEMO_ID. |
0 module [1];1 function_definition [2,3,5];2 function_name [] calculate_dimensions;3 parameters [4];4 identifier [] self;5 block [6,23,42,61,71];6 expression_statement [7];7 assignment [8,9];8 identifier [] x_coordinates;9 call [10,13];10 attribute [11,12];11 identifier [] np;12 identifier [] sort;13 argument_list [14]... | For a regular grid, calculate the element and node dimensions |
0 module [1];1 function_definition [2,3,6];2 function_name [] datapoint_indices_for_tensor;3 parameters [4,5];4 identifier [] self;5 identifier [] tensor_index;6 block [7,25];7 if_statement [8,13];8 comparison_operator [9,10] >=;9 identifier [] tensor_index;10 attribute [11,12];11 identifier [] self;12 identifier [] _n... | Returns the indices for all datapoints in the given tensor. |
0 module [1];1 function_definition [2,3,9,11];2 function_name [] type_last;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] obj;7 type [8];8 identifier [] JsonObj;9 type [10];10 identifier [] JsonObj;11 block [12,54,60,116,133];12 function_definition [13,14,19,21];13 function_name [] _tl_... | Move the type identifiers to the end of the object for print purposes |
0 module [1];1 function_definition [2,3,5];2 function_name [] write_training_metrics;3 parameters [4];4 identifier [] self;5 block [6];6 with_statement [7,19];7 with_clause [8];8 with_item [9];9 as_pattern [10,17];10 call [11,12];11 identifier [] open;12 argument_list [13,16];13 attribute [14,15];14 identifier [] self;... | Write Training Metrics to CSV |
0 module [1];1 function_definition [2,3,11];2 function_name [] chown;3 parameters [4,5,8];4 identifier [] dirs;5 default_parameter [6,7];6 identifier [] user;7 None [];8 default_parameter [9,10];9 identifier [] group;10 None [];11 block [12,24,33];12 if_statement [13,18];13 call [14,15];14 identifier [] isinstance;15 a... | User sudo to set user and group ownership |
0 module [1];1 function_definition [2,3,7];2 function_name [] window_open;3 parameters [4,5,6];4 identifier [] dev;5 identifier [] temp;6 identifier [] duration;7 block [8,19];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] click;12 identifier [] echo;13 argument_list [14];14 binary_oper... | Gets and sets the window open settings. |
0 module [1];1 function_definition [2,3,5];2 function_name [] reset_status;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,18];7 identifier [] row;8 call [9,10];9 identifier [] range;10 argument_list [11];11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] self;15 identifie... | Set all scenarios' status to empty in the table. |
0 module [1];1 function_definition [2,3,5];2 function_name [] parsemsg;3 parameters [4];4 identifier [] s;5 block [6,10,14,23,46,94,103];6 expression_statement [7];7 assignment [8,9];8 identifier [] prefix;9 string [];10 expression_statement [11];11 assignment [12,13];12 identifier [] trailing;13 list [] [];14 if_state... | Breaks a message from an IRC server into its prefix, command, and arguments. |
0 module [1];1 function_definition [2,3,4];2 function_name [] reach_process_json;3 parameters [];4 block [5,14,29,38,47,56];5 if_statement [6,11];6 comparison_operator [7,10] ==;7 attribute [8,9];8 identifier [] request;9 identifier [] method;10 string [] OPTIONS;11 block [12];12 return_statement [13];13 dictionary [];... | Process REACH json and return INDRA Statements. |
0 module [1];1 function_definition [2,3,6];2 function_name [] resolved_task;3 parameters [4,5];4 identifier [] cls;5 identifier [] task;6 block [7];7 for_statement [8,9,12];8 identifier [] t;9 attribute [10,11];10 identifier [] cls;11 identifier [] tasks;12 block [13];13 if_statement [14,23];14 boolean_operator [15,18]... | Task instance representing 'task', if any |
0 module [1];1 function_definition [2,3,7];2 function_name [] compute_agreement_score;3 parameters [4,5,6];4 identifier [] num_matches;5 identifier [] num1;6 identifier [] num2;7 block [8,16,23];8 expression_statement [9];9 assignment [10,11];10 identifier [] denom;11 binary_operator [12,15] -;12 binary_operator [13,14... | Agreement score is used as a criteria to match unit1 and unit2. |
0 module [1];1 function_definition [2,3,9];2 function_name [] generate;3 parameters [4,5,6,7];4 identifier [] engine;5 identifier [] database;6 identifier [] models;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10,17,26];10 expression_statement [11];11 call [12,13];12 identifier [] validate_args;13 arg... | Generate the migrations by introspecting the db |
0 module [1];1 function_definition [2,3,6];2 function_name [] mode;3 parameters [4,5];4 identifier [] dev;5 identifier [] target;6 block [7,18];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] click;11 identifier [] echo;12 argument_list [13];13 binary_operator [14,15] %;14 string [] Curren... | Gets or sets the active mode. |
0 module [1];1 function_definition [2,3,17];2 function_name [] rebuild_app;3 parameters [4,5,8,11,14];4 identifier [] app_name;5 default_parameter [6,7];6 identifier [] quiet;7 False [];8 default_parameter [9,10];9 identifier [] force;10 True [];11 default_parameter [12,13];12 identifier [] without_exec;13 False [];14 ... | Rebuild cozy apps with deletion of npm directory & new npm build |
0 module [1];1 function_definition [2,3,5];2 function_name [] make_statistics_information;3 parameters [4];4 identifier [] info;5 block [6,16,27,54,63,84];6 if_statement [7,13];7 not_operator [8];8 attribute [9,12];9 attribute [10,11];10 identifier [] info;11 identifier [] splits;12 identifier [] total_num_examples;13 ... | Make statistics information table. |
0 module [1];1 function_definition [2,3,6];2 function_name [] run_fba_minimized;3 parameters [4,5];4 identifier [] self;5 identifier [] reaction;6 block [7,15,23,35,43,67,86,95,111,117,135,139,177];7 expression_statement [8];8 assignment [9,10];9 identifier [] epsilon;10 attribute [11,14];11 attribute [12,13];12 identi... | Run normal FBA and flux minimization on model. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _connect;3 parameters [4];4 identifier [] cls;5 block [6];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] post_save;10 identifier [] connect;11 argument_list [12,13,16];12 identifier [] notify_items;13 keyword_argument [14,15];14 ... | Connect signal to current model |
0 module [1];1 function_definition [2,3,11];2 function_name [] runRmFile;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] path;6 default_parameter [7,8];7 identifier [] timeout;8 None [];9 dictionary_splat_pattern [10];10 identifier [] kwargs;11 block [12,24,33,65];12 expression_statement [13];13 assignment ... | remove a file from the worker |
0 module [1];1 function_definition [2,3,5];2 function_name [] sort;3 parameters [4];4 identifier [] line;5 block [6,14,18,51,60];6 expression_statement [7];7 assignment [8,13];8 pattern_list [9,10,11,12];9 identifier [] x0;10 identifier [] y0;11 identifier [] x1;12 identifier [] y1;13 identifier [] line;14 expression_s... | change point position if x1,y0 < x0,y0 |
0 module [1];1 function_definition [2,3,5];2 function_name [] load_config;3 parameters [4];4 identifier [] options;5 block [6,9,13,19,25,68];6 global_statement [7,8];7 identifier [] opts;8 identifier [] pform;9 expression_statement [10];10 assignment [11,12];11 identifier [] opts;12 identifier [] options;13 expression_... | Load options, platform, colors, and icons. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _download_py2;3 parameters [4,5,6];4 identifier [] link;5 identifier [] path;6 identifier [] __hdr__;7 block [8,47,70];8 try_statement [9,31];9 block [10,22];10 expression_statement [11];11 assignment [12,13];12 identifier [] req;13 call [14,17];14 attribute... | Download a file from a link in Python 2. |
0 module [1];1 function_definition [2,3,5];2 function_name [] process_objects;3 parameters [4];4 identifier [] kls;5 block [6,25,42,61];6 if_statement [7,12];7 comparison_operator [8,9] not in;8 string [] Meta;9 attribute [10,11];10 identifier [] kls;11 identifier [] __dict__;12 block [13];13 expression_statement [14];... | Applies default Meta properties. |
0 module [1];1 function_definition [2,3,5];2 function_name [] add_automation_link;3 parameters [4];4 identifier [] testcase;5 block [6,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] automation_link;9 () [10];10 conditional_expression [11,19,25] if;11 call [12,15];12 attribute [13,14];13 string [] <a ... | Appends link to automation script to the test description. |
0 module [1];1 function_definition [2,3,5];2 function_name [] prettyprint;3 parameters [4];4 identifier [] datastr;5 block [6,12,18,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] maxwidth;9 attribute [10,11];10 identifier [] WPToolsQuery;11 identifier [] MAXWIDTH;12 expression_statement [13];13 assig... | Print page data strings to stderr |
0 module [1];1 function_definition [2,3,7];2 function_name [] bulk_add_units;3 parameters [4,5];4 identifier [] unit_list;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,12,28];8 expression_statement [9];9 assignment [10,11];10 identifier [] added_units;11 list [] [];12 for_statement [13,14,15];13 iden... | Save all the units contained in the passed list, with the name of their dimension. |
0 module [1];1 function_definition [2,3,10];2 function_name [] daterange_;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] datecol;6 identifier [] date_start;7 identifier [] op;8 dictionary_splat_pattern [9];9 identifier [] args;10 block [11,24,36];11 expression_statement [12];12 assignment [13,14];13 iden... | Returns a DataSwim instance with rows in a date range |
0 module [1];1 function_definition [2,3,12];2 function_name [] up;3 parameters [4,7,10];4 default_parameter [5,6];5 identifier [] force;6 True [];7 default_parameter [8,9];8 identifier [] env;9 None [];10 dictionary_splat_pattern [11];11 identifier [] kwargs;12 block [13,15,31,40,47,57,63,69];13 expression_statement [1... | Starts a new experiment |
0 module [1];1 function_definition [2,3,6];2 function_name [] broadcast_status;3 parameters [4,5];4 identifier [] self;5 identifier [] status;6 block [7];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _broadcast;12 argument_list [13,14,20];13 string [] transient.stat... | Broadcast transient status information to all listeners |
0 module [1];1 function_definition [2,3,6];2 function_name [] convert_to_unit;3 parameters [4,5];4 identifier [] self;5 identifier [] unit;6 block [7,30];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _values;12 call [13,20];13 attribute [14,19];14 attribute [1... | Convert the Data Collection to the input unit. |
0 module [1];1 function_definition [2,3,5];2 function_name [] hash;3 parameters [4];4 identifier [] value;5 block [6,51];6 if_statement [7,9,11,23,35,47];7 not_operator [8];8 identifier [] value;9 block [10];10 return_statement [];11 elif_clause [12,18];12 comparison_operator [13,17] ==;13 call [14,15];14 identifier []... | Detect an hash type |
0 module [1];1 function_definition [2,3,5];2 function_name [] items;3 parameters [4];4 identifier [] self;5 block [6,14,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] query;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] get_queryset;13 argument_list [];14 expression_statem... | Get all list items |
0 module [1];1 function_definition [2,3,14,16];2 function_name [] visit_Num;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] node;7 type [8];8 identifier [] AST;9 typed_default_parameter [10,11,13];10 identifier [] dfltChaining;11 type [12];12 identifier [] bool;13 True [];14 type [15];... | Return `node`s number as string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] Operate;3 parameters [4,5];4 identifier [] self;5 identifier [] values;6 block [7,32];7 for_statement [8,9,10];8 identifier [] val;9 identifier [] values;10 block [11];11 try_statement [12,26];12 block [13];13 if_statement [14,23];14 call [15,18];15 attribut... | Takes a list of values and if at least one matches, returns True. |
0 module [1];1 function_definition [2,3,9];2 function_name [] import_from_dict;3 parameters [4,5,6];4 identifier [] session;5 identifier [] data;6 default_parameter [7,8];7 identifier [] sync;8 list [] [];9 block [10];10 if_statement [11,16,101];11 call [12,13];12 identifier [] isinstance;13 argument_list [14,15];14 id... | Imports databases and druid clusters from dictionary |
0 module [1];1 function_definition [2,3,5];2 function_name [] object_version_choices;3 parameters [4];4 identifier [] obj;5 block [6,17,69];6 expression_statement [7];7 assignment [8,9];8 identifier [] choices;9 binary_operator [10,11] +;10 identifier [] BLANK_CHOICE_DASH;11 list [12] [(PublishAction.UNPUBLISH_CHOICE, ... | Return a list of form choices for versions of this object which can be published. |
0 module [1];1 function_definition [2,3,6];2 function_name [] analysis_title_header_element;3 parameters [4,5];4 identifier [] feature;5 identifier [] parent;6 block [7,13,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] _;10 expression_list [11,12];11 identifier [] feature;12 identifier [] parent;13 ... | Retrieve analysis title header string from definitions. |
0 module [1];1 function_definition [2,3,10];2 function_name [] save;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] commit;7 True [];8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,28,63,72];11 expression_statement [12];12 assignment [13,14];13 identifier [] org;14... | Register the current user as admin on creation |
0 module [1];1 function_definition [2,3,10];2 function_name [] fastaWrite;3 parameters [4,5,6,7];4 identifier [] fileHandleOrFile;5 identifier [] name;6 identifier [] seq;7 default_parameter [8,9];8 identifier [] mode;9 string [] w;10 block [11,19,31,56,93,102,106,134];11 expression_statement [12];12 assignment [13,14]... | Writes out fasta file |
0 module [1];1 function_definition [2,3,5];2 function_name [] requeue;3 parameters [4];4 identifier [] self;5 block [6,21];6 expression_statement [7];7 assignment [8,9];8 identifier [] job_requeue_interval;9 call [10,11];10 identifier [] float;11 argument_list [12];12 call [13,18];13 attribute [14,17];14 attribute [15,... | Loop endlessly and requeue expired jobs. |
0 module [1];1 function_definition [2,3,5];2 function_name [] render;3 parameters [4];4 identifier [] file;5 block [6];6 with_statement [7,17];7 with_clause [8];8 with_item [9];9 as_pattern [10,15];10 call [11,14];11 attribute [12,13];12 identifier [] file;13 identifier [] open;14 argument_list [];15 as_pattern_target ... | Pretty print the JSON file for rendering. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.