sequence
stringlengths
388
5.57k
docstring
stringlengths
11
171
0 module [1];1 function_definition [2,3,5];2 function_name [] cancel_remaining;3 parameters [4];4 identifier [] self;5 block [6,12,21,31];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _closed;11 True [];12 expression_statement [13];13 assignment [14,15];14 ident...
Cancel all remaining tasks.
0 module [1];1 function_definition [2,3,10];2 function_name [] add_tag;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] resource_type;6 identifier [] resource_id;7 identifier [] tag;8 dictionary_splat_pattern [9];9 identifier [] _params;10 block [11];11 return_statement [12];12 call [13,16];13 attribute [1...
Add a tag on the resource.
0 module [1];1 function_definition [2,3,6];2 function_name [] scaledBy;3 parameters [4,5];4 identifier [] self;5 identifier [] scale;6 block [7,14,70];7 expression_statement [8];8 assignment [9,10];9 identifier [] scaled;10 call [11,12];11 identifier [] deepcopy;12 argument_list [13];13 identifier [] self;14 for_statem...
Return a new Selector with scale denominators scaled by a number.
0 module [1];1 function_definition [2,3,5];2 function_name [] allocate_buffers;3 parameters [4];4 identifier [] self;5 block [6,8,20,44,68,104,122];6 expression_statement [7];7 string [] Create the ragged array that will be filled when we ask for items.;8 if_statement [9,14];9 comparison_operator [10,13] is;10 attribut...
Create the ragged array that will be filled when we ask for items.
0 module [1];1 function_definition [2,3,5];2 function_name [] list_users;3 parameters [4];4 identifier [] self;5 block [6,18,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] folders;9 call [10,11];10 identifier [] glob;11 argument_list [12];12 binary_operator [13,14] %;13 string [] %s/*;14 () [15];15 a...
list users, each associated with a filesystem folder
0 module [1];1 function_definition [2,3,6];2 function_name [] genome_coverage;3 parameters [4,5];4 identifier [] covs;5 identifier [] s2b;6 block [7,11,26];7 expression_statement [8];8 assignment [9,10];9 identifier [] COV;10 list [] [];11 for_statement [12,13,14];12 identifier [] cov;13 identifier [] covs;14 block [15...
calculate genome coverage from scaffold coverage
0 module [1];1 function_definition [2,3,6];2 function_name [] close_spider;3 parameters [4,5];4 identifier [] self;5 identifier [] _spider;6 block [7,30,53,76,87];7 expression_statement [8];8 assignment [9,14];9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] df;13 string [] date_download;...
Write out to file
0 module [1];1 function_definition [2,3,6];2 function_name [] open_subreddit_page;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,14,45];7 import_from_statement [8,12];8 relative_import [9,10];9 import_prefix [];10 dotted_name [11];11 identifier [] subreddit_page;12 dotted_name [13];13 identifie...
Open an instance of the subreddit page for the given subreddit name.
0 module [1];1 function_definition [2,3,6];2 function_name [] wafer_sso_url;3 parameters [4,5];4 identifier [] context;5 identifier [] sso_method;6 block [7,13,26,49];7 expression_statement [8];8 assignment [9,10];9 identifier [] request;10 attribute [11,12];11 identifier [] context;12 identifier [] request;13 expressi...
Return the correct URL to SSO with the given method.
0 module [1];1 function_definition [2,3,8];2 function_name [] symmetric_elliot_function;3 parameters [4,5];4 identifier [] signal;5 default_parameter [6,7];6 identifier [] derivative;7 False [];8 block [9,13,27];9 expression_statement [10];10 assignment [11,12];11 identifier [] s;12 float [] 1.0;13 expression_statement...
A fast approximation of tanh
0 module [1];1 function_definition [2,3,4];2 function_name [] _get_client;3 parameters [];4 block [5,47];5 expression_statement [6];6 assignment [7,8];7 identifier [] client;8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] salt;12 identifier [] cloud;13 identifier [] CloudClient;14 argument_list ...
Return a cloud client
0 module [1];1 function_definition [2,3,9];2 function_name [] update_context;3 parameters [4,5,6,7,8];4 identifier [] app;5 identifier [] pagename;6 identifier [] templatename;7 identifier [] context;8 identifier [] doctree;9 block [10];10 expression_statement [11];11 assignment [12,15];12 subscript [13,14];13 identifi...
Update the page rendering context to include ``feedback_form_url``.
0 module [1];1 function_definition [2,3,5];2 function_name [] chr_rom;3 parameters [4];4 identifier [] self;5 block [6];6 try_statement [7,21];7 block [8];8 return_statement [9];9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] raw_data;13 slice [14,17,18];14 attribute [15,16];15 identifie...
Return the CHR ROM of the ROM file.
0 module [1];1 function_definition [2,3,5];2 function_name [] str2bytes;3 parameters [4];4 identifier [] x;5 block [6];6 if_statement [7,13,16,36];7 comparison_operator [8,12] is;8 call [9,10];9 identifier [] type;10 argument_list [11];11 identifier [] x;12 identifier [] bytes;13 block [14];14 return_statement [15];15 ...
Convert input argument to bytes
0 module [1];1 function_definition [2,3,6];2 function_name [] __analizar_evento;3 parameters [4,5];4 identifier [] self;5 identifier [] ret;6 block [7,9,18];7 expression_statement [8];8 string [] Comprueba y extrae el wvento informativo si existen en la respuesta XML;9 expression_statement [10];10 assignment [11,12];11...
Comprueba y extrae el wvento informativo si existen en la respuesta XML
0 module [1];1 function_definition [2,3,5];2 function_name [] subtract_imagenet_mean_preprocess_batch;3 parameters [4];4 identifier [] batch;5 block [6,17,35,41,47,53,67,78];6 expression_statement [7];7 assignment [8,9];8 identifier [] batch;9 call [10,13];10 attribute [11,12];11 identifier [] F;12 identifier [] swapax...
Subtract ImageNet mean pixel-wise from a BGR image.
0 module [1];1 function_definition [2,3,7];2 function_name [] rerun;3 parameters [4,5,6];4 identifier [] client;5 identifier [] run;6 identifier [] job;7 block [8,15,23,47];8 import_from_statement [9,13];9 dotted_name [10,11,12];10 identifier [] renku;11 identifier [] models;12 identifier [] provenance;13 dotted_name [...
Re-run existing workflow or tool using CWL runner.
0 module [1];1 function_definition [2,3,5];2 function_name [] outstanding;3 parameters [4];4 identifier [] self;5 block [6,10,37,48,58];6 expression_statement [7];7 assignment [8,9];8 identifier [] done_count;9 integer [] 0;10 for_statement [11,12,13];11 identifier [] item;12 identifier [] self;13 block [14];14 if_stat...
Returns whether or not this barrier has pending work.
0 module [1];1 function_definition [2,3,6];2 function_name [] _hline_bokeh_;3 parameters [4,5];4 identifier [] self;5 identifier [] col;6 block [7,24];7 expression_statement [8];8 assignment [9,10];9 identifier [] c;10 call [11,14];11 attribute [12,13];12 identifier [] hv;13 identifier [] HLine;14 argument_list [15];15...
Returns an horizontal line from a column mean value
0 module [1];1 function_definition [2,3,5];2 function_name [] mail_partial_json;3 parameters [4];4 identifier [] self;5 block [6,30];6 if_statement [7,15];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] mail_partial;12 identifier [] get;13 argument_list [14];14 string [] date...
Return the JSON of mail parsed partial
0 module [1];1 function_definition [2,3,14];2 function_name [] color_stream_st;3 parameters [4,9,12];4 default_parameter [5,6];5 identifier [] istream;6 attribute [7,8];7 identifier [] sys;8 identifier [] stdin;9 default_parameter [10,11];10 identifier [] save_palette;11 False [];12 dictionary_splat_pattern [13];13 ide...
Read filenames from the input stream and detect their palette.
0 module [1];1 function_definition [2,3,8];2 function_name [] command_list;3 parameters [4,5,6,7];4 identifier [] prog_name;5 identifier [] prof_mgr;6 identifier [] prof_name;7 identifier [] prog_args;8 block [9,20,29,38,46,81,88];9 expression_statement [10];10 assignment [11,12];11 identifier [] parser;12 call [13,16]...
Print the list of components.
0 module [1];1 function_definition [2,3,6];2 function_name [] neutralize_variables;3 parameters [4,5];4 identifier [] self;5 identifier [] tax_benefit_system;6 block [7];7 for_statement [8,11,18];8 pattern_list [9,10];9 identifier [] variable_name;10 identifier [] variable;11 call [12,17];12 attribute [13,16];13 attrib...
Neutralizing input variables not in input dataframe and keep some crucial variables
0 module [1];1 function_definition [2,3,5];2 function_name [] save;3 parameters [4];4 identifier [] self;5 block [6,17];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] write;11 argument_list [12];12 attribute [13,16];13 attribute [14,15];14 identifier [] self;15 identif...
Saves current cursor position, so that it can be restored later
0 module [1];1 function_definition [2,3,7];2 function_name [] close_comments;3 parameters [4,5,6];4 identifier [] self;5 identifier [] request;6 identifier [] queryset;7 block [8,17];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] queryset;12 identifier [] update;13 argument_list [14];14...
Close the comments for selected entries.
0 module [1];1 function_definition [2,3,5];2 function_name [] requote_uri;3 parameters [4];4 identifier [] uri;5 block [6,10,95];6 import_statement [7];7 dotted_name [8,9];8 identifier [] requests;9 identifier [] utils;10 if_statement [11,14];11 attribute [12,13];12 identifier [] six;13 identifier [] PY2;14 block [15,5...
Requote uri if it contains non-ascii chars, spaces etc.
0 module [1];1 function_definition [2,3,5];2 function_name [] get;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,10,21];7 attribute [8,9];8 identifier [] self;9 identifier [] _current;10 block [11];11 return_statement [12];12 call [13,16];13 attribute [14,15];14 identifier [] self;15 identifier [] ...
Called by the protocol consumer
0 module [1];1 function_definition [2,3,6];2 function_name [] _startRecording;3 parameters [4,5];4 identifier [] self;5 identifier [] filename;6 block [7,15,23];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] setOption;12 argument_list [13,14];13 string [] _log_file_n...
Start recording the session to a file for debug purposes.
0 module [1];1 function_definition [2,3,5];2 function_name [] check_colormap;3 parameters [4];4 identifier [] cmap;5 block [6,49];6 expression_statement [7];7 assignment [8,9];8 identifier [] names;9 call [10,11];10 identifier [] set;11 argument_list [12];12 list [13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,3...
Check if cmap is one of the colorbrewer maps
0 module [1];1 function_definition [2,3,6];2 function_name [] update;3 parameters [4,5];4 identifier [] self;5 identifier [] other;6 block [7,28,52];7 if_statement [8,15];8 comparison_operator [9,12] !=;9 attribute [10,11];10 identifier [] self;11 identifier [] _pants_workdir;12 attribute [13,14];13 identifier [] other...
Adds the contents of other to this ClasspathProducts.
0 module [1];1 function_definition [2,3,8];2 function_name [] _construct_derivatives;3 parameters [4,5,6];4 identifier [] self;5 identifier [] coefs;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9];9 return_statement [10];10 list_comprehension [11,21];11 call [12,17];12 attribute [13,16];13 attribute [...
Return a list of derivatives given a list of coefficients.
0 module [1];1 function_definition [2,3,8];2 function_name [] train;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] net_sizes;6 identifier [] epochs;7 identifier [] batchsize;8 block [9,24,34];9 expression_statement [10];10 assignment [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] train...
Initialize the base trainer
0 module [1];1 function_definition [2,3,6];2 function_name [] bbox_vert_aligned_right;3 parameters [4,5];4 identifier [] box1;5 identifier [] box2;6 block [7,16];7 if_statement [8,13];8 not_operator [9];9 () [10];10 boolean_operator [11,12] and;11 identifier [] box1;12 identifier [] box2;13 block [14];14 return_stateme...
Returns true if the right boundary of both boxes is within 2 pts
0 module [1];1 function_definition [2,3,5];2 function_name [] compute_treshold_interval;3 parameters [4];4 identifier [] self;5 block [6,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] intervals;9 list_comprehension [10,13,18];10 attribute [11,12];11 identifier [] m;12 identifier [] interval;13 for_in...
Current method is to compute average from all intervals.
0 module [1];1 function_definition [2,3,6];2 function_name [] SetCredentials;3 parameters [4,5];4 identifier [] api_key;5 identifier [] api_passwd;6 block [7,9,11,13,17,21];7 global_statement [8];8 identifier [] V1_API_KEY;9 global_statement [10];10 identifier [] V1_API_PASSWD;11 global_statement [12];12 identifier [] ...
Establish API key and password associated with APIv1 commands.
0 module [1];1 function_definition [2,3,5];2 function_name [] generate_config;3 parameters [4];4 identifier [] ctx;5 block [6,18,29,40,105,112,124];6 expression_statement [7];7 assignment [8,9];8 identifier [] path;9 call [10,13];10 attribute [11,12];11 identifier [] click;12 identifier [] prompt;13 argument_list [14,1...
Generates a sample gitlint config file.
0 module [1];1 function_definition [2,3,5];2 function_name [] fullqualname_py3;3 parameters [4];4 identifier [] obj;5 block [6,155];6 if_statement [7,15,21,36,61,76,99,113,137];7 comparison_operator [8,14] ==;8 attribute [9,13];9 call [10,11];10 identifier [] type;11 argument_list [12];12 identifier [] obj;13 identifie...
Fully qualified name for objects in Python 3.
0 module [1];1 function_definition [2,3,5];2 function_name [] etag;3 parameters [4];4 identifier [] self;5 block [6,12,17,23,63];6 expression_statement [7];7 assignment [8,9];8 identifier [] CHUNKSIZE;9 binary_operator [10,11] *;10 integer [] 1024;11 integer [] 64;12 import_from_statement [13,15];13 dotted_name [14];14...
Generates etag from file contents.
0 module [1];1 function_definition [2,3,9];2 function_name [] _get_vqa_v2_image_feature_dataset;3 parameters [4,5,6];4 identifier [] directory;5 identifier [] feature_url;6 default_parameter [7,8];7 identifier [] feature_filename;8 string [] mscoco_feat.tar.gz;9 block [10,21];10 expression_statement [11];11 assignment ...
Extract the VQA V2 feature data set to directory unless it's there.
0 module [1];1 function_definition [2,3,5];2 function_name [] _load_all;3 parameters [4];4 identifier [] self;5 block [6,10,108,122];6 expression_statement [7];7 assignment [8,9];8 identifier [] to_delete;9 list [] [];10 for_statement [11,14,21];11 pattern_list [12,13];12 identifier [] iden;13 identifier [] val;14 call...
Load all the appointments from persistent storage
0 module [1];1 function_definition [2,3,5];2 function_name [] on_same_strand;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 comparison_operator [8,16] ==;8 () [9];9 comparison_operator [10,13] <;10 attribute [11,12];11 identifier [] self;12 identifier [] ref_start;13 attribute [14,15];14 ide...
Returns true iff the direction of the alignment is the same in the reference and the query
0 module [1];1 function_definition [2,3,7];2 function_name [] fix_paths;3 parameters [4,5,6];4 identifier [] project_data;5 identifier [] rel_path;6 identifier [] extensions;7 block [8,30];8 expression_statement [9];9 assignment [10,11];10 identifier [] norm_func;11 lambda [12,14];12 lambda_parameters [13];13 identifie...
Fix paths for extension list
0 module [1];1 function_definition [2,3,6];2 function_name [] cap;3 parameters [4,5];4 identifier [] v;5 identifier [] l;6 block [7,14];7 expression_statement [8];8 assignment [9,10];9 identifier [] s;10 call [11,12];11 identifier [] str;12 argument_list [13];13 identifier [] v;14 return_statement [15];15 conditional_e...
Shortens string is above certain length.
0 module [1];1 function_definition [2,3,6];2 function_name [] _api_type;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7];7 if_statement [8,15,18,29];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] value;12 attribute [13,14];13 identifier [] six;14 identifier [...
Returns the API type of the given value based on its python type.
0 module [1];1 function_definition [2,3,5];2 function_name [] _is_in_comment_type;3 parameters [4];4 identifier [] token_type;5 block [6];6 return_statement [7];7 comparison_operator [8,9] in;8 identifier [] token_type;9 list [10,13,16,19,22,25,28] [TokenType.Comment,\n TokenType.Newline,\n ...
Return true if this kind of token can be inside a comment.
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_rules;3 parameters [4];4 identifier [] self;5 block [6,33,37,171];6 try_statement [7,19];7 block [8];8 expression_statement [9];9 assignment [10,11];10 identifier [] rule_options;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [...
Add a set of rules to the app, dividing between filter and other rule set
0 module [1];1 function_definition [2,3,8,10];2 function_name [] bs;3 parameters [4];4 typed_parameter [5,6];5 identifier [] s;6 type [7];7 identifier [] int;8 type [9];9 identifier [] str;10 block [11];11 return_statement [12];12 conditional_expression [13,17,20] if;13 call [14,15];14 identifier [] str;15 argument_lis...
Converts an int to its bits representation as a string of 0's and 1's.
0 module [1];1 function_definition [2,3,5];2 function_name [] make_hasher;3 parameters [4];4 identifier [] algorithm_id;5 block [6];6 if_statement [7,10,25,44];7 comparison_operator [8,9] ==;8 identifier [] algorithm_id;9 integer [] 1;10 block [11];11 return_statement [12];12 call [13,16];13 attribute [14,15];14 identi...
Create a hashing object for the given signing algorithm.
0 module [1];1 function_definition [2,3,10];2 function_name [] extract_rpm;3 parameters [4,5,6,7,8,9];4 identifier [] archive;5 identifier [] compression;6 identifier [] cmd;7 identifier [] verbosity;8 identifier [] interactive;9 identifier [] outdir;10 block [11,20,31,47,72,84];11 expression_statement [12];12 assignme...
Extract a RPM archive.
0 module [1];1 function_definition [2,3,5];2 function_name [] show_event_analysis_dialog;3 parameters [4];4 identifier [] self;5 block [6,14,22,30];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] event_analysis_dialog;12 identifier [] update_types;1...
Create the event analysis dialog.
0 module [1];1 function_definition [2,3,6];2 function_name [] apply_boundary_conditions_to_cm;3 parameters [4,5];4 identifier [] external_indices;5 identifier [] cm;6 block [7,15,23,31];7 expression_statement [8];8 assignment [9,10];9 identifier [] cm;10 call [11,14];11 attribute [12,13];12 identifier [] cm;13 identifi...
Remove connections to or from external nodes.
0 module [1];1 function_definition [2,3,11];2 function_name [] create_domain;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] service_id;6 identifier [] version_number;7 identifier [] name;8 default_parameter [9,10];9 identifier [] comment;10 None [];11 block [12,30,49];12 expression_statement [13];13 assi...
Create a domain for a particular service and version.
0 module [1];1 function_definition [2,3,5];2 function_name [] validate;3 parameters [4];4 identifier [] self;5 block [6,14,23];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 call [10,11];10 identifier [] super;11 argument_list [];12 identifier [] validate;13 argument_list [];14 expression_statement [15];...
Base validation + entities = rows.
0 module [1];1 function_definition [2,3,8];2 function_name [] _numeric_param_check_range;3 parameters [4,5,6,7];4 identifier [] variable_name;5 identifier [] variable_value;6 identifier [] range_bottom;7 identifier [] range_top;8 block [9,13];9 expression_statement [10];10 assignment [11,12];11 identifier [] err_msg;12...
Checks if numeric parameter is within given range
0 module [1];1 function_definition [2,3,6];2 function_name [] _setup_decompressor;3 parameters [4,5];4 identifier [] self;5 identifier [] response;6 block [7,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] encoding;10 call [11,22];11 attribute [12,21];12 call [13,18];13 attribute [14,17];14 attribute...
Set up the content encoding decompressor.
0 module [1];1 function_definition [2,3,9];2 function_name [] _simple_acronym_detection;3 parameters [4,5,6,7];4 identifier [] s;5 identifier [] i;6 identifier [] words;7 list_splat_pattern [8];8 identifier [] args;9 block [10,24,36,49];10 expression_statement [11];11 assignment [12,13];12 identifier [] acronym;13 call...
Detect acronyms based on runs of upper-case letters.
0 module [1];1 function_definition [2,3,6];2 function_name [] change_parameters;3 parameters [4,5];4 identifier [] self;5 identifier [] params;6 block [7,11];7 expression_statement [8];8 assignment [9,10];9 identifier [] no_of_params;10 integer [] 0;11 for_statement [12,13,22];12 identifier [] core_param;13 call [14,15...
Utility function for changing the approximate distribution parameters
0 module [1];1 function_definition [2,3,5];2 function_name [] data_to_elem_base;3 parameters [4];4 identifier [] self;5 block [6,21,41];6 if_statement [7,19];7 boolean_operator [8,12] or;8 not_operator [9];9 attribute [10,11];10 identifier [] self;11 identifier [] n;12 comparison_operator [13,18] is;13 subscript [14,17...
Custom system base unconversion function
0 module [1];1 function_definition [2,3,5];2 function_name [] a_urls;3 parameters [4];4 identifier [] html;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] soup;9 call [10,11];10 identifier [] BeautifulSoup;11 argument_list [12,13];12 identifier [] html;13 string [] lxml;14 for_statement [15...
return normalized urls found in the 'a' tag
0 module [1];1 function_definition [2,3,7];2 function_name [] add_entry;3 parameters [4,5,6];4 identifier [] self;5 identifier [] date;6 identifier [] entry;7 block [8,12,16,71,83];8 expression_statement [9];9 assignment [10,11];10 identifier [] in_date;11 False [];12 expression_statement [13];13 assignment [14,15];14 ...
Add the given entry to the textual representation.
0 module [1];1 function_definition [2,3,7];2 function_name [] _patch_hover;3 parameters [4,5,6];4 identifier [] self;5 identifier [] element;6 identifier [] data;7 block [8,24,37,58,67,76,100,108,116,134];8 if_statement [9,22];9 not_operator [10];10 () [11];11 boolean_operator [12,17] and;12 comparison_operator [13,16]...
Replace edge start and end hover data with label_index data.
0 module [1];1 function_definition [2,3,7];2 function_name [] switch;3 parameters [4,5,6];4 identifier [] self;5 identifier [] device_id;6 identifier [] obj_slot_id;7 block [8,21];8 expression_statement [9];9 assignment [10,11];10 identifier [] payload;11 dictionary [12];12 pair [13,14];13 string [] device-context;14 c...
Switching of device-context
0 module [1];1 function_definition [2,3,7];2 function_name [] edit_file;3 parameters [4,5,6];4 identifier [] self;5 identifier [] filename;6 identifier [] line;7 block [8];8 if_statement [9,15];9 call [10,13];10 attribute [11,12];11 identifier [] encoding;12 identifier [] is_text_file;13 argument_list [14];14 identifie...
Handle %edit magic petitions.
0 module [1];1 function_definition [2,3,5];2 function_name [] update;3 parameters [4];4 identifier [] self;5 block [6,18];6 for_statement [7,8,11];7 identifier [] channel;8 attribute [9,10];9 identifier [] self;10 identifier [] channels;11 block [12];12 expression_statement [13];13 call [14,17];14 attribute [15,16];15 ...
Updates the dictionary of the project
0 module [1];1 function_definition [2,3,6];2 function_name [] load;3 parameters [4,5];4 identifier [] self;5 identifier [] arguments;6 block [7,9,19];7 expression_statement [8];8 string [] Load the values from the a ServerConnection arguments;9 expression_statement [10];10 assignment [11,12];11 identifier [] features;1...
Load the values from the a ServerConnection arguments
0 module [1];1 function_definition [2,3,5];2 function_name [] close;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] __closed;11 block [12,18,29];12 expression_statement [13];13 assignment [14,17];14 attribute [15,16];15 ...
Return this instance's socket to the connection pool.
0 module [1];1 function_definition [2,3,5];2 function_name [] tiff_header;3 parameters [4];4 identifier [] read_buffer;5 block [6,21,102,121,130];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,13];10 attribute [11,12];11 identifier [] struct;12 identifier [] unpack;13 argument_list [14,15...
Interpret the uuid raw data as a tiff header.
0 module [1];1 function_definition [2,3,5];2 function_name [] _modname;3 parameters [4];4 identifier [] path;5 block [6,17,30];6 expression_statement [7];7 assignment [8,9];8 identifier [] base;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier [] basename;1...
Return a plausible module name for the path
0 module [1];1 function_definition [2,3,6];2 function_name [] await_connection;3 parameters [4,5];4 identifier [] host;5 identifier [] port;6 block [7,50];7 for_statement [8,9,13];8 identifier [] i;9 call [10,11];10 identifier [] range;11 argument_list [12];12 identifier [] CONNECT_ATTEMPTS;13 block [14];14 try_stateme...
Wait for the mongo-orchestration server to accept connections.
0 module [1];1 function_definition [2,3,5];2 function_name [] reset;3 parameters [4];4 identifier [] self;5 block [6,23,29,45,61,77,93];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _poolingActivation;11 call [12,15];12 attribute [13,14];13 identifier [] numpy;1...
Reset the state of the temporal pooler
0 module [1];1 function_definition [2,3,5];2 function_name [] calculate_current_allocation;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,11];7 identifier [] ac;8 attribute [9,10];9 identifier [] self;10 identifier [] asset_classes;11 block [12];12 expression_statement [13];13 assignment [14,17]...
Calculates the current allocation % based on the value
0 module [1];1 function_definition [2,3,7];2 function_name [] draw;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,14,32,41,77,111];8 expression_statement [9];9 assignment [10,11];10 identifier [] labels;11 tuple [12,13];12 string [] Training Score;13 string [] C...
Renders the training and test learning curves.
0 module [1];1 function_definition [2,3,23];2 function_name [] _typedef_both;3 parameters [4,5,8,11,14,17,20];4 identifier [] t;5 default_parameter [6,7];6 identifier [] base;7 integer [] 0;8 default_parameter [9,10];9 identifier [] item;10 integer [] 0;11 default_parameter [12,13];12 identifier [] leng;13 None [];14 d...
Add new typedef for both data and code.
0 module [1];1 function_definition [2,3,8];2 function_name [] claim;3 parameters [4,5,6,7];4 identifier [] ctx;5 identifier [] vestingid;6 identifier [] account;7 identifier [] amount;8 block [9,16,38];9 expression_statement [10];10 assignment [11,12];11 identifier [] vesting;12 call [13,14];13 identifier [] Vesting;14...
Claim funds from the vesting balance
0 module [1];1 function_definition [2,3,5];2 function_name [] _make_paging_message;3 parameters [4];4 identifier [] controls;5 block [6];6 return_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] client_list_control_pb2;10 identifier [] ClientPagingControls;11 argument_list [12,21];12 keyword_argument [13,...
Turns a raw paging controls dict into Protobuf ClientPagingControls.
0 module [1];1 function_definition [2,3,8];2 function_name [] average_price;3 parameters [4,5,6,7];4 identifier [] quantity_1;5 identifier [] price_1;6 identifier [] quantity_2;7 identifier [] price_2;8 block [9];9 return_statement [10];10 binary_operator [11,19,20] /;11 () [12];12 binary_operator [13,16] +;13 binary_o...
Calculates the average price between two asset states.
0 module [1];1 function_definition [2,3,6];2 function_name [] run_from_argv;3 parameters [4,5];4 identifier [] self;5 identifier [] argv;6 block [7,18];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] argv_string;12 call [13,16];13 attribute [14,15];14 string [];...
Overriden in order to access the command line arguments.
0 module [1];1 function_definition [2,3,13,15];2 function_name [] _handle_substatements;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] stmt;7 type [8];8 identifier [] Statement;9 typed_parameter [10,11];10 identifier [] sctx;11 type [12];12 identifier [] SchemaContext;13 type [14];14 ...
Dispatch actions for substatements of `stmt`.
0 module [1];1 function_definition [2,3,7];2 function_name [] load_data;3 parameters [4,5];4 identifier [] fpath;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,17];8 expression_statement [9];9 assignment [10,11];10 identifier [] ext;11 subscript [12,16];12 call [13,14];13 identifier [] splitext;14 arg...
More generic interface to load data
0 module [1];1 function_definition [2,3,5];2 function_name [] urlparse;3 parameters [4];4 identifier [] uri;5 block [6,21];6 expression_statement [7];7 assignment [8,15];8 pattern_list [9,10,11,12,13,14];9 identifier [] scheme;10 identifier [] netloc;11 identifier [] path;12 identifier [] params;13 identifier [] query;...
Parse and decode the parts of a URI.
0 module [1];1 function_definition [2,3,10];2 function_name [] comicDownloaded;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] comic;6 identifier [] filename;7 default_parameter [8,9];8 identifier [] text;9 None [];10 block [11,20,24,37,54,60,66,75,79,88,94,111];11 expression_statement [12];12 assignment [1...
Write RSS entry for downloaded comic.
0 module [1];1 function_definition [2,3,7];2 function_name [] screenshot_themes;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 block [8,13];8 import_from_statement [9,11];9 dotted_name [10];10 identifier [] time;11 dotted_name [12];12 identifier [] sleep;13 for_statement [14,15,...
Take a screenshot for all themes available
0 module [1];1 function_definition [2,3,5];2 function_name [] addLocalCacheService;3 parameters [4];4 identifier [] self;5 block [6,8,16,23];6 expression_statement [7];7 string [] adds a CacheService to the instatiated HendrixService;8 expression_statement [9];9 assignment [10,11];10 identifier [] _cache;11 call [12,15...
adds a CacheService to the instatiated HendrixService
0 module [1];1 function_definition [2,3,5];2 function_name [] enable_asynchronous;3 parameters [4];4 identifier [] self;5 block [6,47,60];6 function_definition [7,8,9];7 function_name [] is_monkey_patched;8 parameters [];9 block [10,24,37];10 try_statement [11,19];11 block [12];12 import_from_statement [13,15,17];13 do...
Check if socket have been monkey patched by gevent
0 module [1];1 function_definition [2,3,5];2 function_name [] separator;3 parameters [4];4 identifier [] self;5 block [6,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] cells;9 call [10,11];10 identifier [] dict;11 argument_list [12];12 list_comprehension [13,22];13 tuple [14,15];14 identifier [] colu...
Generate a separator row using current column widths.
0 module [1];1 function_definition [2,3,8];2 function_name [] add_tokens_for_single;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] ignore;7 False [];8 block [9,17,25,40,57,81];9 expression_statement [10];10 assignment [11,12];11 identifier [] args;12 attribute [13,16];13 attribute [14...
Add the tokens for the single signature
0 module [1];1 function_definition [2,3,8];2 function_name [] _add_manifest_files;3 parameters [4,5,6,7];4 identifier [] zip_file;5 identifier [] dir_name;6 identifier [] payload_info_list;7 identifier [] tag_info_list;8 block [9];9 for_statement [10,11,15];10 identifier [] checksum_algorithm;11 call [12,13];12 identif...
Generate the manifest files and add them to the zip.
0 module [1];1 function_definition [2,3,5];2 function_name [] _sanity_check_construct_result_block;3 parameters [4];4 identifier [] ir_blocks;5 block [6,27];6 if_statement [7,16];7 not_operator [8];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,15];11 subscript [12,13];12 identifier [] ir_blocks;13 unary...
Assert that ConstructResult is always the last block, and only the last block.
0 module [1];1 function_definition [2,3,8];2 function_name [] n_first_author_papers;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] refresh;7 True [];8 block [9,36];9 expression_statement [10];10 assignment [11,12];11 identifier [] first_authors;12 list_comprehension [13,14,24];13 inte...
Return number of papers with author as the first author.
0 module [1];1 function_definition [2,3,5,11];2 function_name [] classes;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] Iterator;8 type_parameter [9];9 type [10];10 identifier [] str;11 block [12];12 expression_statement [13];13 yield [14];14 generator_expression [15,21,30];15 sub...
Yield the name of all classes discovered in the path map.
0 module [1];1 function_definition [2,3,5];2 function_name [] read;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12,19,32];7 comparison_operator [8,9] ==;8 string [] r;9 attribute [10,11];10 identifier [] self;11 identifier [] _mode;12 block [13];13 return_statement [14];14 attribute [15,18];15 at...
read the contents of the file that's been opened in read mode
0 module [1];1 function_definition [2,3,4];2 function_name [] rate;3 parameters [];4 block [5,11];5 expression_statement [6];6 assignment [7,8];7 identifier [] auth;8 attribute [9,10];9 identifier [] request;10 identifier [] authorization;11 if_statement [12,25,28];12 boolean_operator [13,15] or;13 not_operator [14];14...
Set rate limits for authenticated and nonauthenticated users.
0 module [1];1 function_definition [2,3,6];2 function_name [] add_alignment;3 parameters [4,5];4 identifier [] self;5 identifier [] align;6 block [7,13,19,26,35];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _target_context_errors;12 None [];13 expression_stat...
Calculate alignment errors from the alignment and add it to the profile.
0 module [1];1 function_definition [2,3,9];2 function_name [] log;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 if_statement [11,24,30];11 boolean_operator [12,18] and;12 comparison_operator [13,17] ==;13 call...
Print out a log message.
0 module [1];1 function_definition [2,3,5];2 function_name [] configure_tty;3 parameters [4];4 identifier [] self;5 block [6,17,26,35,48];6 expression_statement [7];7 assignment [8,9];8 identifier [] attr;9 call [10,13];10 attribute [11,12];11 identifier [] termios;12 identifier [] tcgetattr;13 argument_list [14];14 at...
We don't want \n to be replaced with \r\n, and we disable the echo
0 module [1];1 function_definition [2,3,11];2 function_name [] build_class;3 parameters [4,5,8];4 identifier [] name;5 default_parameter [6,7];6 identifier [] basenames;7 tuple [];8 default_parameter [9,10];9 identifier [] doc;10 None [];11 block [12,22,55];12 expression_statement [13];13 assignment [14,15];14 identifi...
create and initialize an astroid ClassDef node
0 module [1];1 function_definition [2,3,6];2 function_name [] OnGridEditorClosed;3 parameters [4,5];4 identifier [] self;5 identifier [] event;6 block [7,37];7 try_statement [8,26];8 block [9];9 expression_statement [10];10 assignment [11,16,17];11 pattern_list [12,13];12 identifier [] dialect;13 attribute [14,15];14 i...
Event handler for end of output type choice
0 module [1];1 function_definition [2,3,16];2 function_name [] stamp_title;3 parameters [4,8,12];4 typed_parameter [5,6];5 identifier [] kb_app;6 type [7];7 identifier [] kb;8 typed_parameter [9,10];9 identifier [] sphinx_app;10 type [11];11 identifier [] Sphinx;12 typed_parameter [13,14];13 identifier [] doctree;14 ty...
Walk the tree and extra RST title into resource.title
0 module [1];1 function_definition [2,3,6];2 function_name [] cluster_set_config_epoch;3 parameters [4,5];4 identifier [] self;5 identifier [] config_epoch;6 block [7,18];7 expression_statement [8];8 assignment [9,10];9 identifier [] fut;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] execut...
Set the configuration epoch in a new node.
0 module [1];1 function_definition [2,3,7];2 function_name [] apply;3 parameters [4,5,6];4 identifier [] self;5 identifier [] callback;6 identifier [] context;7 block [8,52];8 function_definition [9,10,15];9 function_name [] wrapper;10 parameters [11,13];11 list_splat_pattern [12];12 identifier [] args;13 dictionary_sp...
Apply the HTTPError wrapper to the callback.