sequence
stringlengths
388
5.57k
docstring
stringlengths
11
171
0 module [1];1 function_definition [2,3,7];2 function_name [] _parse_data;3 parameters [4,5,6];4 identifier [] self;5 identifier [] data;6 identifier [] charset;7 block [8,19,48];8 expression_statement [9];9 assignment [10,11];10 identifier [] builder;11 call [12,13];12 identifier [] TreeBuilder;13 argument_list [14];1...
Parse the xml data into dictionary.
0 module [1];1 function_definition [2,3,5];2 function_name [] showPopup;3 parameters [4];4 identifier [] self;5 block [6,14,34,42];6 expression_statement [7];7 assignment [8,9];8 identifier [] nav;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] navigator;13 argument_list [];14 expression_stat...
Displays the popup associated with this navigator.
0 module [1];1 function_definition [2,3,4];2 function_name [] detect_hooks;3 parameters [];4 block [5,12,29,48];5 expression_statement [6];6 call [7,10];7 attribute [8,9];8 identifier [] flog;9 identifier [] debug;10 argument_list [11];11 string [] Detecting hooks ...;12 expression_statement [13];13 assignment [14,15];...
Returns True if the import hooks are installed, False if not.
0 module [1];1 function_definition [2,3,6];2 function_name [] insertAnnouncement;3 parameters [4,5];4 identifier [] self;5 identifier [] announcement;6 block [7,17,35];7 expression_statement [8];8 assignment [9,10];9 identifier [] url;10 call [11,14];11 attribute [12,13];12 identifier [] announcement;13 identifier [] g...
Adds an announcement to the registry for later analysis.
0 module [1];1 function_definition [2,3,6];2 function_name [] add;3 parameters [4,5];4 identifier [] self;5 identifier [] defn;6 block [7];7 if_statement [8,13,22];8 comparison_operator [9,12] not in;9 attribute [10,11];10 identifier [] defn;11 identifier [] name;12 identifier [] self;13 block [14];14 expression_statem...
Adds the given Packet Definition to this Telemetry Dictionary.
0 module [1];1 function_definition [2,3,6];2 function_name [] ExpireObject;3 parameters [4,5];4 identifier [] self;5 identifier [] key;6 block [7,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] node;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] _hash...
Expire a specific object from cache.
0 module [1];1 function_definition [2,3,8];2 function_name [] _validate;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] writing;7 False [];8 block [9,21];9 expression_statement [10];10 assignment [11,12];11 identifier [] box_ids;12 list_comprehension [13,16];13 attribute [14,15];14 ide...
Self-validate the box before writing.
0 module [1];1 function_definition [2,3,18];2 function_name [] binary_op;3 parameters [4,5,6,7,10,13,16];4 identifier [] data;5 identifier [] op;6 identifier [] other;7 default_parameter [8,9];8 identifier [] blen;9 None [];10 default_parameter [11,12];11 identifier [] storage;12 None [];13 default_parameter [14,15];14...
Compute a binary operation block-wise over `data`.
0 module [1];1 function_definition [2,3,5];2 function_name [] load;3 parameters [4];4 identifier [] data_path;5 block [6,26,32];6 with_statement [7,17];7 with_clause [8];8 with_item [9];9 as_pattern [10,15];10 call [11,12];11 identifier [] open;12 argument_list [13,14];13 identifier [] data_path;14 string [] r;15 as_pa...
Extract data from provided file and return it as a string.
0 module [1];1 function_definition [2,3,7];2 function_name [] _read_config;3 parameters [4];4 default_parameter [5,6];5 identifier [] conf_file;6 None [];7 block [8,38,48,56,84];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] conf_file;11 None [];12 block [13,19];13 expression_statement [14];14 ...
Reads the config file using configparser
0 module [1];1 function_definition [2,3,7];2 function_name [] wherenotin;3 parameters [4,5,6];4 identifier [] self;5 identifier [] fieldname;6 identifier [] value;7 block [8];8 return_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] wherein;13 argument_list [14,15,16];14 identifi...
Logical opposite of `wherein`.
0 module [1];1 function_definition [2,3,5];2 function_name [] storage;3 parameters [4];4 identifier [] self;5 block [6,12,30];6 expression_statement [7];7 assignment [8,9];8 identifier [] annotation;9 call [10,11];10 identifier [] get_portal_annotation;11 argument_list [];12 if_statement [13,21];13 comparison_operator ...
get the counter storage
0 module [1];1 function_definition [2,3,7];2 function_name [] inMicrolensRegion_main;3 parameters [4];4 default_parameter [5,6];5 identifier [] args;6 None [];7 block [8,11,24,40,56,65];8 import_statement [9];9 dotted_name [10];10 identifier [] argparse;11 expression_statement [12];12 assignment [13,14];13 identifier [...
Exposes K2visible to the command line.
0 module [1];1 function_definition [2,3,8];2 function_name [] add_matplotlib_cmap;3 parameters [4,5];4 identifier [] cm;5 default_parameter [6,7];6 identifier [] name;7 None [];8 block [9,11,21];9 global_statement [10];10 identifier [] cmaps;11 expression_statement [12];12 assignment [13,14];13 identifier [] cmap;14 ca...
Add a matplotlib colormap.
0 module [1];1 function_definition [2,3,6];2 function_name [] _tuple_requested;3 parameters [4,5];4 identifier [] self;5 identifier [] namespace_tuple;6 block [7,34,61,80,122];7 if_statement [8,16,26];8 not_operator [9];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,15];12 subscript [13,14];13 identifi...
Helper for _namespace_requested. Supports limited wildcards
0 module [1];1 function_definition [2,3,9];2 function_name [] reset_term_stats;3 parameters [4,5,6,7,8];4 identifier [] set_id;5 identifier [] term_id;6 identifier [] client_id;7 identifier [] user_id;8 identifier [] access_token;9 block [10,28,50,68,90,96,113,123,130,140,147];10 expression_statement [11];11 assignment...
Reset the stats of a term by deleting and re-creating it.
0 module [1];1 function_definition [2,3,5];2 function_name [] addPeer;3 parameters [4];4 identifier [] self;5 block [6,12,71];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _openRepo;11 argument_list [];12 try_statement [13,37,51];13 block [14];14 expression_statement ...
Adds a new peer into this repo
0 module [1];1 function_definition [2,3,5];2 function_name [] _initGP;3 parameters [4];4 identifier [] self;5 block [6,172];6 if_statement [7,12,81];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] _inference;11 string [] GP2KronSum;12 block [13,37];13 expression_statement [14];1...
Internal method for initialization of the GP inference objetct
0 module [1];1 function_definition [2,3,5];2 function_name [] trunc;3 parameters [4];4 identifier [] x;5 block [6];6 if_statement [7,12,29];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] x;11 identifier [] UncertainFunction;12 block [13,24];13 expression_statement [14];14 assignment [1...
Truncate the values to the integer value without rounding
0 module [1];1 function_definition [2,3,6];2 function_name [] h5features_convert;3 parameters [4,5];4 identifier [] self;5 identifier [] infile;6 block [7,32];7 with_statement [8,20];8 with_clause [9];9 with_item [10];10 as_pattern [11,18];11 call [12,15];12 attribute [13,14];13 identifier [] h5py;14 identifier [] File...
Convert a h5features file to the latest h5features version.
0 module [1];1 function_definition [2,3,5];2 function_name [] _propagate_packages;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,11];7 identifier [] item;8 attribute [9,10];9 identifier [] self;10 identifier [] data;11 block [12];12 if_statement [13,18];13 call [14,15];14 identifier [] isinstanc...
Make sure packages get propagated.
0 module [1];1 function_definition [2,3,5];2 function_name [] __get_doc_block_lines;3 parameters [4];4 identifier [] self;5 block [6,10,14,18,63];6 expression_statement [7];7 assignment [8,9];8 identifier [] line1;9 None [];10 expression_statement [11];11 assignment [12,13];12 identifier [] line2;13 None [];14 expressi...
Returns the start and end line of the DOcBlock of the stored routine code.
0 module [1];1 function_definition [2,3,5];2 function_name [] render_payment_form;3 parameters [4];4 identifier [] self;5 block [6,20];6 expression_statement [7];7 assignment [8,15];8 subscript [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] context;12 attribute [13,14];13 identifier [] self;14 identi...
Display the DirectPayment for entering payment information.
0 module [1];1 function_definition [2,3,14];2 function_name [] scale_values;3 parameters [4,5,8,11];4 identifier [] numbers;5 default_parameter [6,7];6 identifier [] num_lines;7 integer [] 1;8 default_parameter [9,10];9 identifier [] minimum;10 None [];11 default_parameter [12,13];12 identifier [] maximum;13 None [];14...
Scale input numbers to appropriate range.
0 module [1];1 function_definition [2,3,5];2 function_name [] value_text;3 parameters [4];4 identifier [] self;5 block [6,16,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] search;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _selected;14 identifier []...
Sets or returns the option selected in a ButtonGroup by its text value.
0 module [1];1 function_definition [2,3,8];2 function_name [] init_index;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] app;7 None [];8 block [9,17,119];9 expression_statement [10];10 assignment [11,12];11 identifier [] elasticindexes;12 call [13,16];13 attribute [14,15];14 identifier...
Create indexes and put mapping.
0 module [1];1 function_definition [2,3,5];2 function_name [] wait_and_quit;3 parameters [4];4 identifier [] loop;5 block [6,13];6 import_from_statement [7,11];7 dotted_name [8,9,10];8 identifier [] pylp;9 identifier [] lib;10 identifier [] tasks;11 dotted_name [12];12 identifier [] running;13 if_statement [14,15];14 i...
Wait until all task are executed.
0 module [1];1 function_definition [2,3,5];2 function_name [] _execute;3 parameters [4];4 identifier [] self;5 block [6,14,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] seed_fn;13 argument_list [];14 for_statement [15,16...
Run the query, generating data from the `seed_fn` and performing transforms on the results.
0 module [1];1 function_definition [2,3,5];2 function_name [] _validate_all_tags_are_used;3 parameters [4];4 identifier [] metadata;5 block [6,21,27,66,72];6 expression_statement [7];7 assignment [8,9];8 identifier [] tag_names;9 call [10,11];10 identifier [] set;11 argument_list [12];12 list_comprehension [13,14];13 i...
Ensure all tags are used in some filter.
0 module [1];1 function_definition [2,3,5];2 function_name [] read_remote_origin;3 parameters [4];4 identifier [] repo_dir;5 block [6,12,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] conf;9 call [10,11];10 identifier [] ConfigParser;11 argument_list [];12 expression_statement [13];13 call [14,17];14...
Read the remote origin URL from the given git repo, or None if unset.
0 module [1];1 function_definition [2,3,7];2 function_name [] disable_requiretty_on_sudoers;3 parameters [4];4 default_parameter [5,6];5 identifier [] log;6 False [];7 block [8,20,29];8 if_statement [9,10];9 identifier [] log;10 block [11];11 expression_statement [12];12 call [13,18];13 attribute [14,17];14 attribute [...
allow sudo calls through ssh without a tty
0 module [1];1 function_definition [2,3,12];2 function_name [] getThirdpartyLibs;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] libs;6 default_parameter [7,8];7 identifier [] configuration;8 string [] Development;9 default_parameter [10,11];10 identifier [] includePlatformDefaults;11 True [];12 block [13,2...
Retrieves the ThirdPartyLibraryDetails instance for Unreal-bundled versions of the specified third-party libraries
0 module [1];1 function_definition [2,3,8];2 function_name [] _deserialize;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] value;6 identifier [] attr;7 identifier [] data;8 block [9];9 return_statement [10];10 call [11,25];11 attribute [12,24];12 call [13,20];13 attribute [14,19];14 call [15,16];15 identifi...
Deserialize an ISO8601-formatted date.
0 module [1];1 function_definition [2,3,5];2 function_name [] build_and_install_wheel;3 parameters [4];4 identifier [] python;5 block [6,14,27,42,46,51,75,87,93,106,121];6 expression_statement [7];7 assignment [8,9];8 identifier [] dist_type;9 conditional_expression [10,11,13] if;10 string [] bdist_wheel;11 not_operato...
Build a binary distribution wheel and install it
0 module [1];1 function_definition [2,3,6];2 function_name [] unordered;3 parameters [4,5];4 identifier [] x;5 identifier [] y;6 block [7,16,25];7 expression_statement [8];8 assignment [9,10];9 identifier [] x;10 call [11,14];11 attribute [12,13];12 identifier [] BigFloat;13 identifier [] _implicit_convert;14 argument_...
Return True if x or y is a NaN and False otherwise.
0 module [1];1 function_definition [2,3,5];2 function_name [] RV_1;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 binary_operator [8,13] *;8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] orbpop_long;12 identifier [] RV;13 () [14];14 binary_operator [15,20] /;15 ...
Instantaneous RV of star 1 with respect to system center-of-mass
0 module [1];1 function_definition [2,3,13];2 function_name [] _send_generic_template;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] request;7 type [8];8 identifier [] Request;9 typed_parameter [10,11];10 identifier [] stack;11 type [12];12 identifier [] Stack;13 block [14,23,33,46,56...
Generates and send a generic template.
0 module [1];1 function_definition [2,3,5,7];2 function_name [] qual_name;3 parameters [4];4 identifier [] self;5 type [6];6 identifier [] QualName;7 block [8,22];8 expression_statement [9];9 assignment [10,14];10 pattern_list [11,12,13];11 identifier [] p;12 identifier [] s;13 identifier [] loc;14 call [15,20];15 attr...
Return the receiver's qualified name.
0 module [1];1 function_definition [2,3,11];2 function_name [] get;3 parameters [4,5,8];4 identifier [] geo_coord;5 default_parameter [6,7];6 identifier [] mode;7 integer [] 2;8 default_parameter [9,10];9 identifier [] verbose;10 True [];11 block [12,34,46];12 if_statement [13,28];13 boolean_operator [14,20] or;14 not_...
Function to query for a single coordinate
0 module [1];1 function_definition [2,3,6];2 function_name [] on_message;3 parameters [4,5];4 identifier [] msg;5 identifier [] server;6 block [7,17,27,32,41,46,66];7 expression_statement [8];8 assignment [9,10];9 identifier [] text;10 call [11,14];11 attribute [12,13];12 identifier [] msg;13 identifier [] get;14 argum...
handle a message and return an gif
0 module [1];1 function_definition [2,3,5];2 function_name [] get;3 parameters [4];4 identifier [] self;5 block [6,14,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] key;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] get_key_from_request;13 argument_list [];14 expression_st...
Get the item from redis.
0 module [1];1 function_definition [2,3,5];2 function_name [] infer_compression;3 parameters [4];4 identifier [] url;5 block [6,15,30];6 expression_statement [7];7 assignment [8,9];8 identifier [] compression_indicator;9 subscript [10,11];10 identifier [] url;11 slice [12,14];12 unary_operator [13] -;13 integer [] 2;14...
Given a URL or filename, infer the compression code for tar.
0 module [1];1 function_definition [2,3,5];2 function_name [] _tofloat;3 parameters [4];4 identifier [] obj;5 block [6,21];6 if_statement [7,18];7 comparison_operator [8,9] in;8 string [] inf;9 call [10,17];10 attribute [11,16];11 call [12,15];12 attribute [13,14];13 identifier [] obj;14 identifier [] lower;15 argument...
Convert to float if object is a float string.
0 module [1];1 function_definition [2,3,5];2 function_name [] status;3 parameters [4];4 identifier [] self;5 block [6,14,23];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _read;13 argument_list [];14 expression_statement [15...
Poll YubiKey for status.
0 module [1];1 function_definition [2,3,5];2 function_name [] file_id;3 parameters [4];4 identifier [] self;5 block [6,19,37,62];6 if_statement [7,16];7 comparison_operator [8,15] ==;8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] type;13 identifier [] lower;14 argument_lis...
Returns the fptr @FILEID if this is not a Directory.
0 module [1];1 function_definition [2,3,16];2 function_name [] from_learner;3 parameters [4,5,9];4 identifier [] cls;5 typed_parameter [6,7];6 identifier [] learn;7 type [8];8 identifier [] Learner;9 typed_default_parameter [10,11,13];10 identifier [] ds_type;11 type [12];12 identifier [] DatasetType;13 attribute [14,1...
Create an instance of `ClassificationInterpretation`
0 module [1];1 function_definition [2,3,13];2 function_name [] cnvkit_background;3 parameters [4,5,6,7,10];4 identifier [] background_cnns;5 identifier [] out_file;6 identifier [] items;7 default_parameter [8,9];8 identifier [] target_bed;9 None [];10 default_parameter [11,12];11 identifier [] antitarget_bed;12 None []...
Calculate background reference, handling flat case with no normal sample.
0 module [1];1 function_definition [2,3,23,27];2 function_name [] _wrap_extraction;3 parameters [4,5,11,15,19];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] date_object;7 type [8];8 attribute [9,10];9 identifier [] datetime;10 identifier [] datetime;11 typed_parameter [12,13];12 identifier [] original_te...
wrap the final result as an Extraction and return
0 module [1];1 function_definition [2,3,5];2 function_name [] raster_field;3 parameters [4];4 identifier [] self;5 block [6,27];6 for_statement [7,8,15];7 identifier [] field;8 attribute [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] model;13 identifier [] _meta;14 identifier [] ...
Returns the raster FileField instance on the model.
0 module [1];1 function_definition [2,3,5];2 function_name [] load_object;3 parameters [4];4 identifier [] s;5 block [6,33,40];6 try_statement [7,20];7 block [8];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] m_path;12 identifier [] o_name;13 call [14,17];14 attribute [15,16];1...
Load backend by dotted path.
0 module [1];1 function_definition [2,3,10];2 function_name [] stripext;3 parameters [4,5,6,7];4 identifier [] cmd;5 identifier [] archive;6 identifier [] verbosity;7 default_parameter [8,9];8 identifier [] extension;9 string [];10 block [11,28];11 if_statement [12,15];12 comparison_operator [13,14] >=;13 identifier []...
Print the name without suffix.
0 module [1];1 function_definition [2,3,7];2 function_name [] create_node;3 parameters [4,5,6];4 identifier [] self;5 identifier [] network;6 identifier [] participant;7 block [8];8 return_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] models;14 identifier ...
Create a node for a participant.
0 module [1];1 function_definition [2,3,8];2 function_name [] log;3 parameters [4,5,6];4 identifier [] self;5 identifier [] level;6 list_splat_pattern [7];7 identifier [] msg_elements;8 block [9];9 expression_statement [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier []...
Log a message against the current workunit.
0 module [1];1 function_definition [2,3,7];2 function_name [] file_renamed;3 parameters [4,5,6];4 identifier [] self;5 identifier [] editor;6 identifier [] new_filename;7 block [8,14,22];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] editor;11 None [];12 block [13];13 return_statement [];14 exp...
File was renamed, updating outline explorer tree
0 module [1];1 function_definition [2,3,5];2 function_name [] _connect_su;3 parameters [4];4 identifier [] spec;5 block [6];6 return_statement [7];7 dictionary [8,11,14];8 pair [9,10];9 string [] method;10 string [] su;11 pair [12,13];12 string [] enable_lru;13 True [];14 pair [15,16];15 string [] kwargs;16 dictionary ...
Return ContextService arguments for su as a become method.
0 module [1];1 function_definition [2,3,7];2 function_name [] from_api_response;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] reddit_session;6 identifier [] json_dict;7 block [8,26];8 expression_statement [9];9 assignment [10,13];10 subscript [11,12];11 identifier [] json_dict;12 string [] subreddits;13 list...
Return an instance of the appropriate class from the json dict.
0 module [1];1 function_definition [2,3,5];2 function_name [] _add_pos1;3 parameters [4];4 identifier [] token;5 block [6,14,31];6 expression_statement [7];7 assignment [8,9];8 identifier [] result;9 call [10,13];10 attribute [11,12];11 identifier [] token;12 identifier [] copy;13 argument_list [];14 expression_stateme...
Adds a 'pos1' element to a frog token.
0 module [1];1 function_definition [2,3,9];2 function_name [] create_firewall_rule;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] protocol;6 identifier [] action;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10,20,33,46,59,72,85,98,111,124];10 expression_statement [11];11 assignment [12,13...
Create a new firlwall rule
0 module [1];1 function_definition [2,3,5];2 function_name [] hr_avg;3 parameters [4];4 identifier [] self;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] hr_data;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] hr_values;13 argument_list [];14 return_statement [15...
Average heart rate of the workout
0 module [1];1 function_definition [2,3,5,7];2 function_name [] to_xarray;3 parameters [4];4 identifier [] self;5 type [6];6 string [] xarray.Dataset;7 block [8,13,58,62,86,95];8 import_statement [9];9 aliased_import [10,12];10 dotted_name [11];11 identifier [] xarray;12 identifier [] xr;13 expression_statement [14];14...
Convert to xarray.Dataset
0 module [1];1 function_definition [2,3,5];2 function_name [] start;3 parameters [4];4 identifier [] self;5 block [6,19,33,98];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] log;12 identifier [] info;13 argument_list [14];14 binary_operator [15,16]...
Creates a TCP connection to Device Cloud and sends a ConnectionRequest message
0 module [1];1 function_definition [2,3,5];2 function_name [] open;3 parameters [4];4 identifier [] self;5 block [6,15];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] store;12 identifier [] register;13 argument_list [14];14 identifier [] self;15 wh...
Register with the publisher.
0 module [1];1 function_definition [2,3,10];2 function_name [] http_methods;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] urls;7 None [];8 dictionary_splat_pattern [9];9 identifier [] route_data;10 block [11,171];11 function_definition [12,13,15];12 function_name [] decorator;13 pa...
Creates routes from a class, where the class method names should line up to HTTP METHOD types
0 module [1];1 function_definition [2,3,5];2 function_name [] _is_custom_manager_attribute;3 parameters [4];4 identifier [] node;5 block [6,12,21,53];6 expression_statement [7];7 assignment [8,9];8 identifier [] attrname;9 attribute [10,11];10 identifier [] node;11 identifier [] attrname;12 if_statement [13,18];13 not_...
Checks if the attribute is a valid attribute for a queryset manager.
0 module [1];1 function_definition [2,3,5];2 function_name [] validate_json;3 parameters [4];4 identifier [] f;5 block [6,125];6 decorated_definition [7,12];7 decorator [8];8 call [9,10];9 identifier [] wraps;10 argument_list [11];11 identifier [] f;12 function_definition [13,14,19];13 function_name [] wrapper;14 param...
Validate that the call is JSON.
0 module [1];1 function_definition [2,3,7];2 function_name [] print_row_perc_table;3 parameters [4,5,6];4 identifier [] table;5 identifier [] row_labels;6 identifier [] col_labels;7 block [8,20,26,32,48,52,80,92,101,105];8 expression_statement [9];9 assignment [10,15];10 pattern_list [11,12,13,14];11 identifier [] r1c1...
given a table, print the percentages rather than the totals
0 module [1];1 function_definition [2,3,7];2 function_name [] hosting_devices_removed;3 parameters [4,5,6];4 identifier [] self;5 identifier [] context;6 identifier [] payload;7 block [8];8 try_statement [9,33];9 block [10];10 if_statement [11,14];11 subscript [12,13];12 identifier [] payload;13 string [] hosting_data;...
Deal with hosting device removed RPC message.
0 module [1];1 function_definition [2,3,7];2 function_name [] flavor_extra_delete;3 parameters [4,5,6];4 identifier [] request;5 identifier [] flavor_id;6 identifier [] keys;7 block [8,24];8 expression_statement [9];9 assignment [10,11];10 identifier [] flavor;11 call [12,22];12 attribute [13,21];13 attribute [14,20];1...
Unset the flavor extra spec keys.
0 module [1];1 function_definition [2,3,10];2 function_name [] query;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] query;6 list_splat_pattern [7];7 identifier [] parameters;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,19];11 expression_statement [12];12 assignment [13,14];13 identifi...
Returns a row list for the given query and parameters.
0 module [1];1 function_definition [2,3,8];2 function_name [] update;3 parameters [4,5,6];4 identifier [] self;5 identifier [] user;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,16,46];9 expression_statement [10];10 yield [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [...
If parent resource is not an editable state, should not be able to update
0 module [1];1 function_definition [2,3,5];2 function_name [] _print_header;3 parameters [4];4 identifier [] self;5 block [6,10,21,25,42,46,62,72];6 expression_statement [7];7 assignment [8,9];8 identifier [] header;9 string [] Iter Dir;10 if_statement [11,16];11 comparison_operator [12,15] is not;12 attribute [13,14]...
Print the header for screen logging
0 module [1];1 function_definition [2,3,7];2 function_name [] wrap;3 parameters [4,5,6];4 identifier [] string;5 identifier [] length;6 identifier [] indent;7 block [8,16];8 expression_statement [9];9 assignment [10,11];10 identifier [] newline;11 binary_operator [12,13] +;12 string [] \n;13 binary_operator [14,15] *;1...
Wrap a string at a line length
0 module [1];1 function_definition [2,3,5];2 function_name [] unpack_variable;3 parameters [4];4 identifier [] var;5 block [6,39,51,85,143];6 if_statement [7,14,23];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] var;10 identifier [] dataType;11 attribute [12,13];12 identifier [] stream;13 identifier...
Unpack an NCStream Variable into information we can use.
0 module [1];1 function_definition [2,3,6];2 function_name [] write_bit;3 parameters [4,5];4 identifier [] self;5 identifier [] b;6 block [7,20,28,42,54];7 if_statement [8,9,14];8 identifier [] b;9 block [10];10 expression_statement [11];11 assignment [12,13];12 identifier [] b;13 integer [] 1;14 else_clause [15];15 bl...
Write a boolean value.
0 module [1];1 function_definition [2,3,11];2 function_name [] _handle_response;3 parameters [4,5,6,9];4 identifier [] response;5 identifier [] command;6 default_parameter [7,8];7 identifier [] id_xpath;8 string [] ./id;9 dictionary_splat_pattern [10];10 identifier [] kwargs;11 block [12,88,103];12 expression_statement...
Initialize the corect Response object from the response string based on the API command type.
0 module [1];1 function_definition [2,3,18];2 function_name [] scatter_group;3 parameters [4,5,6,7,8,9,12,15];4 identifier [] ax;5 identifier [] key;6 identifier [] imask;7 identifier [] adata;8 identifier [] Y;9 default_parameter [10,11];10 identifier [] projection;11 string [] 2d;12 default_parameter [13,14];13 ident...
Scatter of group using representation of data Y.
0 module [1];1 function_definition [2,3,5];2 function_name [] precondition;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 boolean_operator [8,19,20] and;8 comparison_operator [9,14] ==;9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] tlang;13 identifier [] nplu...
Check if the number of plurals in the two languages is the same.
0 module [1];1 function_definition [2,3,10];2 function_name [] disable_vlan_on_trunk_int;3 parameters [4,5,6,7,8,9];4 identifier [] self;5 identifier [] nexus_host;6 identifier [] vlanid;7 identifier [] intf_type;8 identifier [] interface;9 identifier [] is_native;10 block [11,19,36,45];11 expression_statement [12];12 ...
Disable a VLAN on a trunk interface.
0 module [1];1 function_definition [2,3,8];2 function_name [] find_state_op_colocation_error;3 parameters [4,5];4 identifier [] graph;5 default_parameter [6,7];6 identifier [] reported_tags;7 None [];8 block [9,15,37,119];9 expression_statement [10];10 assignment [11,12];11 identifier [] state_op_types;12 call [13,14];...
Returns error message for colocation of state ops, or None if ok.
0 module [1];1 function_definition [2,3,10];2 function_name [] broadcast;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] command;6 list_splat_pattern [7];7 identifier [] args;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,23];11 expression_statement [12];12 assignment [13,14];13 identifi...
Notifies each user with a specified command.
0 module [1];1 function_definition [2,3,15];2 function_name [] _get_resources;3 parameters [4,5,6,7,10,13];4 identifier [] self;5 identifier [] resource;6 identifier [] obj;7 default_parameter [8,9];8 identifier [] params;9 None [];10 default_parameter [11,12];11 identifier [] map;12 None [];13 dictionary_splat_pattern...
Returns a list of mapped objects from an HTTP resource.
0 module [1];1 function_definition [2,3,6];2 function_name [] _changeMs;3 parameters [4,5];4 identifier [] self;5 identifier [] line;6 block [7];7 try_statement [8,18,23];8 block [9];9 expression_statement [10];10 assignment [11,12];11 identifier [] last_space_pos;12 call [13,16];13 attribute [14,15];14 identifier [] l...
Change the ms part in the string if needed.
0 module [1];1 function_definition [2,3,8];2 function_name [] to_function;3 parameters [4,5];4 identifier [] var_instance;5 default_parameter [6,7];6 identifier [] lineno;7 None [];8 block [9,15,20,26,34,43];9 assert_statement [10];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [] va...
Converts a var_instance to a function one
0 module [1];1 function_definition [2,3,5];2 function_name [] det_n;3 parameters [4];4 identifier [] x;5 block [6,12,24,40,53,111];6 assert_statement [7];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] x;10 identifier [] ndim;11 integer [] 3;12 assert_statement [13];13 comparison_operator [14,19] ==;...
given N matrices, return N determinants
0 module [1];1 function_definition [2,3,5];2 function_name [] connect;3 parameters [4];4 identifier [] self;5 block [6,22,28,34,64,72,92,122,151,165];6 expression_statement [7];7 call [8,9];8 identifier [] vvv;9 argument_list [10,17];10 binary_operator [11,12] %;11 string [] ESTABLISH CONNECTION FOR USER: %s;12 attribu...
connect to the remote host
0 module [1];1 function_definition [2,3,4];2 function_name [] requirements;3 parameters [];4 block [5,9,35];5 expression_statement [6];6 assignment [7,8];7 identifier [] requirements_list;8 list [] [];9 with_statement [10,19];10 with_clause [11];11 with_item [12];12 as_pattern [13,17];13 call [14,15];14 identifier [] o...
Build the requirements list for this project
0 module [1];1 function_definition [2,3,6];2 function_name [] create_dataset_file;3 parameters [4,5];4 identifier [] root_dir;5 identifier [] data;6 block [7,20,33];7 expression_statement [8];8 assignment [9,10];9 identifier [] file_path;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 i...
Create a new dataset from a template.
0 module [1];1 function_definition [2,3,6];2 function_name [] _return_samples;3 parameters [4,5];4 identifier [] return_type;5 identifier [] samples;6 block [7];7 if_statement [8,15,37];8 comparison_operator [9,14] ==;9 call [10,13];10 attribute [11,12];11 identifier [] return_type;12 identifier [] lower;13 argument_li...
A utility function to return samples according to type
0 module [1];1 function_definition [2,3,7];2 function_name [] mset_list;3 parameters [4,5,6];4 identifier [] item;5 identifier [] index;6 identifier [] value;7 block [8,10];8 expression_statement [9];9 string [] set mulitple items via index of int, slice or list;10 if_statement [11,18,25];11 call [12,13];12 identifier ...
set mulitple items via index of int, slice or list
0 module [1];1 function_definition [2,3,16];2 function_name [] coinbase_tx;3 parameters [4,5,6,7,10,13];4 identifier [] cls;5 identifier [] public_key_sec;6 identifier [] coin_value;7 default_parameter [8,9];8 identifier [] coinbase_bytes;9 string [] b'';10 default_parameter [11,12];11 identifier [] version;12 integer ...
Create the special "first in block" transaction that includes the mining fees.
0 module [1];1 function_definition [2,3,6];2 function_name [] loads;3 parameters [4,5];4 identifier [] self;5 identifier [] string;6 block [7,9,17,35];7 expression_statement [8];8 string [] Decompress the passed-in compact script and return the result.;9 expression_statement [10];10 assignment [11,12];11 identifier [] ...
Decompress the passed-in compact script and return the result.
0 module [1];1 function_definition [2,3,6];2 function_name [] __update_keyboard;3 parameters [4,5];4 identifier [] self;5 identifier [] milliseconds;6 block [7,79];7 if_statement [8,22,29,51];8 call [9,18];9 attribute [10,17];10 attribute [11,16];11 call [12,15];12 attribute [13,14];13 identifier [] Ragnarok;14 identif...
Use the keyboard to control selection of the buttons.
0 module [1];1 function_definition [2,3,9,13];2 function_name [] timesteps;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] horizon;7 type [8];8 identifier [] int;9 type [10];10 attribute [11,12];11 identifier [] tf;12 identifier [] Tensor;13 block [14,28,44,55,69];14 expression_statement...
Returns the input tensor for the given `horizon`.
0 module [1];1 function_definition [2,3,6];2 function_name [] RetrieveIP4Info;3 parameters [4,5];4 identifier [] self;5 identifier [] ip;6 block [7,18];7 if_statement [8,11];8 attribute [9,10];9 identifier [] ip;10 identifier [] is_private;11 block [12];12 return_statement [13];13 tuple [14,17];14 attribute [15,16];15 ...
Retrieves information for an IP4 address.
0 module [1];1 function_definition [2,3,9];2 function_name [] remove_phenotype;3 parameters [4,5,6];4 identifier [] self;5 identifier [] ind_obj;6 default_parameter [7,8];7 identifier [] phenotypes;8 None [];9 block [10,82,89,95];10 if_statement [11,14,45];11 comparison_operator [12,13] is;12 identifier [] phenotypes;1...
Remove multiple phenotypes from an individual.
0 module [1];1 function_definition [2,3,5];2 function_name [] wp_loop;3 parameters [4];4 identifier [] self;5 block [6,12,33,48,65,94,101,107,117,132];6 expression_statement [7];7 assignment [8,9];8 identifier [] loader;9 attribute [10,11];10 identifier [] self;11 identifier [] wploader;12 if_statement [13,20];13 compa...
close the loop on a mission
0 module [1];1 function_definition [2,3,6];2 function_name [] stream;3 parameters [4,5];4 identifier [] self;5 identifier [] sha;6 block [7,25];7 expression_statement [8];8 assignment [9,14];9 pattern_list [10,11,12,13];10 identifier [] hexsha;11 identifier [] typename;12 identifier [] size;13 identifier [] stream;14 c...
For now, all lookup is done by git itself
0 module [1];1 function_definition [2,3,7];2 function_name [] _cm_handle_canonical_id;3 parameters [4,5,6];4 identifier [] canonical_id;5 identifier [] current_id;6 identifier [] cloud_type;7 block [8,21];8 expression_statement [9];9 assignment [10,11];10 identifier [] devices;11 call [12,17];12 attribute [13,16];13 at...
Handle situation when FCM server response contains canonical ID
0 module [1];1 function_definition [2,3,13];2 function_name [] authenticate;3 parameters [4,5,8,11];4 identifier [] self;5 default_parameter [6,7];6 identifier [] username;7 None [];8 default_parameter [9,10];9 identifier [] password;10 None [];11 dictionary_splat_pattern [12];12 identifier [] kwargs;13 block [14];14 t...
Allow users to log in with their email address or username.
0 module [1];1 function_definition [2,3,5];2 function_name [] read;3 parameters [4];4 identifier [] self;5 block [6,25,55];6 assert_statement [7,17];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] os;11 identifier [] path;12 identifier [] isfile;13 argument_list [14];14 attribute [15,16];15 identi...
Reads CSV file and returns list of contents