sequence
stringlengths
388
5.57k
docstring
stringlengths
11
171
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_object_as_soft;3 parameters [4];4 identifier [] self;5 block [6,34];6 expression_statement [7];7 assignment [8,9];8 identifier [] soft;9 list [10,19,24,29] ["^%s = %s" % (self.geotype, self.name),\n self._get_metadata_as_string(),\n ...
Get the object as SOFT formated string.
0 module [1];1 function_definition [2,3,7];2 function_name [] _sort_column;3 parameters [4,5,6];4 identifier [] self;5 identifier [] column;6 identifier [] reverse;7 block [8,20,41,65,85];8 if_statement [9,18];9 comparison_operator [10,13] in;10 attribute [11,12];11 identifier [] tk;12 identifier [] DISABLED;13 call [1...
Sort a column by its values
0 module [1];1 function_definition [2,3,16];2 function_name [] read_hdf5_timeseries;3 parameters [4,5,8,11,14];4 identifier [] h5f;5 default_parameter [6,7];6 identifier [] path;7 None [];8 default_parameter [9,10];9 identifier [] start;10 None [];11 default_parameter [12,13];12 identifier [] end;13 None [];14 dictiona...
Read a `TimeSeries` from HDF5
0 module [1];1 function_definition [2,3,5];2 function_name [] _fetchAllChildren;3 parameters [4];4 identifier [] self;5 block [6,12,52,56,102];6 expression_statement [7];7 assignment [8,9];8 identifier [] bands;9 attribute [10,11];10 identifier [] self;11 identifier [] _bands;12 if_statement [13,26];13 comparison_opera...
Adds the bands as separate fields so they can be inspected easily.
0 module [1];1 function_definition [2,3,8];2 function_name [] check_git_unchanged;3 parameters [4,5];4 identifier [] filename;5 default_parameter [6,7];6 identifier [] yes;7 False [];8 block [9,51];9 if_statement [10,14];10 call [11,12];11 identifier [] check_staged;12 argument_list [13];13 identifier [] filename;14 bl...
Check git to avoid overwriting user changes.
0 module [1];1 function_definition [2,3,7];2 function_name [] to_string;3 parameters [4,5,6];4 identifier [] self;5 identifier [] hdr;6 identifier [] other;7 block [8,31,46,52,70];8 expression_statement [9];9 assignment [10,11];10 identifier [] result;11 binary_operator [12,13] %;12 string [] %s[%s,%s;13 tuple [14,15,2...
String representation with additional information
0 module [1];1 function_definition [2,3,5];2 function_name [] scroll_down;3 parameters [4];4 identifier [] self;5 block [6,14,22];6 expression_statement [7];7 assignment [8,9];8 identifier [] s;9 binary_operator [10,13] -;10 attribute [11,12];11 identifier [] self;12 identifier [] scroll_row_start;13 integer [] 1;14 ex...
Scroll display down one line.
0 module [1];1 function_definition [2,3,6];2 function_name [] _assert_keys_match;3 parameters [4,5];4 identifier [] keys1;5 identifier [] keys2;6 block [7];7 if_statement [8,17];8 comparison_operator [9,13] !=;9 call [10,11];10 identifier [] set;11 argument_list [12];12 identifier [] keys1;13 call [14,15];14 identifier...
Ensure the two list of keys matches.
0 module [1];1 function_definition [2,3,8];2 function_name [] new;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] filename;7 None [];8 block [9,16,57,66];9 expression_statement [10];10 assignment [11,12];11 identifier [] path;12 tuple [13];13 attribute [14,15];14 identifier [] self;15 ...
start a session an independent process
0 module [1];1 function_definition [2,3,7];2 function_name [] _add_properties;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8];8 for_statement [9,12,17];9 pattern_list [10,11];10 identifier [] k;11 identifier [] v;12 call [13,16];13 attribute [14,15];14 identifie...
Adds non-photometry properties to ObservationTree
0 module [1];1 function_definition [2,3,8];2 function_name [] add_target_and_index;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] name;6 identifier [] sig;7 identifier [] signode;8 block [9,19,139,148];9 expression_statement [10];10 assignment [11,12];11 identifier [] targetname;12 binary_operator [13,14] ...
Add a target and index for this thing.
0 module [1];1 function_definition [2,3,5];2 function_name [] validate_vars;3 parameters [4];4 identifier [] env;5 block [6];6 if_statement [7,14];7 boolean_operator [8,11] and;8 comparison_operator [9,10] in;9 string [] PCH;10 identifier [] env;11 subscript [12,13];12 identifier [] env;13 string [] PCH;14 block [15,29...
Validate the PCH and PCHSTOP construction variables.
0 module [1];1 function_definition [2,3,8];2 function_name [] _make_qheader;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] job_name;6 identifier [] qout_path;7 identifier [] qerr_path;8 block [9,17,29,35,41,50,59,63,84];9 expression_statement [10];10 assignment [11,12];11 identifier [] subs_dict;12 call [1...
Return a string with the options that are passed to the resource manager.
0 module [1];1 function_definition [2,3,5];2 function_name [] power_up;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,11];7 identifier [] m;8 attribute [9,10];9 identifier [] self;10 identifier [] motors;11 block [12,18,24];12 expression_statement [13];13 assignment [14,17];14 attribute [15,16];...
Changes all settings to guarantee the motors will be used at their maximum power.
0 module [1];1 function_definition [2,3,9];2 function_name [] _uint2objs;3 parameters [4,5,6];4 identifier [] ftype;5 identifier [] num;6 default_parameter [7,8];7 identifier [] length;8 None [];9 block [10,60,112];10 if_statement [11,14,25];11 comparison_operator [12,13] ==;12 identifier [] num;13 integer [] 0;14 bloc...
Convert an unsigned integer to a list of constant expressions.
0 module [1];1 function_definition [2,3,7];2 function_name [] _client_connection;3 parameters [4,5,6];4 identifier [] self;5 identifier [] conn;6 identifier [] addr;7 block [8,21,30];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] log;12 identifier [] debug;13 argument_list [14,15,18];14...
Handle the connecition with one client.
0 module [1];1 function_definition [2,3,7];2 function_name [] format_coord;3 parameters [4,5,6];4 identifier [] self;5 identifier [] x;6 identifier [] y;7 block [8,20,32,46,60];8 expression_statement [9];9 assignment [10,13];10 pattern_list [11,12];11 identifier [] p;12 identifier [] b;13 call [14,17];14 attribute [15,...
Format displayed coordinates during mouseover of axes.
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_bus_array_construct;3 parameters [4];4 identifier [] self;5 block [6,15,24,36,48,60,72,89,98,124,133];6 expression_statement [7];7 assignment [8,9];8 identifier [] bus_no;9 call [10,13];10 attribute [11,12];11 identifier [] integer;12 identifier [] setR...
Returns a construct for an array of bus data.
0 module [1];1 function_definition [2,3,5];2 function_name [] _connect_lxd;3 parameters [4];4 identifier [] spec;5 block [6];6 return_statement [7];7 dictionary [8,11];8 pair [9,10];9 string [] method;10 string [] lxd;11 pair [12,13];12 string [] kwargs;13 dictionary [14,21,28,35,48];14 pair [15,16];15 string [] contai...
Return ContextService arguments for an LXD container connection.
0 module [1];1 function_definition [2,3,7];2 function_name [] send_webmention;3 parameters [4,5,6];4 identifier [] self;5 identifier [] entry;6 identifier [] url;7 block [8,30,43,51,62,70];8 if_statement [9,18];9 comparison_operator [10,15] in;10 tuple [11,14];11 attribute [12,13];12 identifier [] entry;13 identifier [...
send a webmention from an entry to a URL
0 module [1];1 function_definition [2,3,8];2 function_name [] parse_option;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] option;6 identifier [] block_name;7 identifier [] message;8 block [9,20,32];9 if_statement [10,13];10 comparison_operator [11,12] ==;11 identifier [] option;12 string [] show;13 block [...
Parse show, end_show, and timer_show options.
0 module [1];1 function_definition [2,3,5];2 function_name [] run_work;3 parameters [4];4 identifier [] self;5 block [6,21,27];6 if_statement [7,15];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] os;11 identifier [] path;12 identifier [] exists;13 argument_list [14];14 identifier [] LOCAL_EVAL_RO...
Run attacks and defenses
0 module [1];1 function_definition [2,3,5];2 function_name [] unindent;3 parameters [4];4 identifier [] self;5 block [6,15,25,39];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 call [10,11];10 identifier [] _logger;11 argument_list [];12 identifier [] debug;13 argument_list [14];14 string [] unindent;15 ...
Un-indents text at cursor position.
0 module [1];1 function_definition [2,3,7];2 function_name [] _should_defer;3 parameters [4,5,6];4 identifier [] input_layer;5 identifier [] args;6 identifier [] kwargs;7 block [8,84];8 for_statement [9,10,24];9 identifier [] arg;10 call [11,14];11 attribute [12,13];12 identifier [] itertools;13 identifier [] chain;14 ...
Checks to see if any of the args are templates.
0 module [1];1 function_definition [2,3,5];2 function_name [] _handle_tag_enabledebugger2;3 parameters [4];4 identifier [] self;5 block [6,13,24,34];6 expression_statement [7];7 assignment [8,9];8 identifier [] obj;9 call [10,11];10 identifier [] _make_object;11 argument_list [12];12 string [] EnableDebugger2;13 expres...
Handle the EnableDebugger2 tag.
0 module [1];1 function_definition [2,3,5];2 function_name [] audio_load_time;3 parameters [4];4 identifier [] self;5 block [6,15];6 expression_statement [7];7 assignment [8,9];8 identifier [] load_times;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] get_load_times;13 argument_list [14];14 s...
Returns aggregate audio load time for all pages.
0 module [1];1 function_definition [2,3,5];2 function_name [] create_modelo;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] Modelo;9 argument_list [10,13,16,19];10 attribute [11,12];11 identifier [] self;12 identifier [] networkapi_url;13 attribute [14,15];14 identi...
Get an instance of modelo services facade.
0 module [1];1 function_definition [2,3,6];2 function_name [] _fill_out_err;3 parameters [4,5];4 identifier [] result;5 identifier [] testcase;6 block [7,38];7 if_statement [8,14];8 call [9,12];9 attribute [10,11];10 identifier [] result;11 identifier [] get;12 argument_list [13];13 string [] stdout;14 block [15,25];15...
Adds stdout and stderr if present.
0 module [1];1 function_definition [2,3,29];2 function_name [] packstr;3 parameters [4,5,8,11,14,17,20,23,26];4 identifier [] instr;5 default_parameter [6,7];6 identifier [] textwidth;7 integer [] 160;8 default_parameter [9,10];9 identifier [] breakchars;10 string [];11 default_parameter [12,13];12 identifier [] break_...
alias for pack_into. has more up to date kwargs
0 module [1];1 function_definition [2,3,5];2 function_name [] validate;3 parameters [4];4 identifier [] self;5 block [6,16,47];6 expression_statement [7];7 call [8,9];8 identifier [] _validate_operator_name;9 argument_list [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] operator;13 attribute [14,15]...
Validate that the BinaryComposition is correctly representable.
0 module [1];1 function_definition [2,3,6];2 function_name [] mute_parse_args;3 parameters [4,5];4 identifier [] self;5 identifier [] text;6 block [7,13,19,25,31,57,63,69];7 expression_statement [8];8 assignment [9,10];9 identifier [] error;10 attribute [11,12];11 identifier [] AzCliCommandParser;12 identifier [] error...
mutes the parser error when parsing, then puts it back
0 module [1];1 function_definition [2,3,5];2 function_name [] all_floating_ips;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12,26];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] api_version;11 integer [] 2;12 block [13,22];13 expression_statement [14];14 ...
Lists all of the Floating IPs available on the account.
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_argument_list_from_toolkit_function_name;3 parameters [4];4 identifier [] fn;5 block [6,12,21,27];6 expression_statement [7];7 assignment [8,9];8 identifier [] unity;9 call [10,11];10 identifier [] _get_unity;11 argument_list [];12 expression_statement ...
Given a toolkit function name, return the argument list
0 module [1];1 function_definition [2,3,4];2 function_name [] android_example;3 parameters [];4 block [5,14,25];5 expression_statement [6];6 assignment [7,8];7 identifier [] env;8 call [9,12];9 attribute [10,11];10 identifier [] holodeck;11 identifier [] make;12 argument_list [13];13 string [] AndroidPlayground;14 expr...
A basic example of how to use the android agent.
0 module [1];1 function_definition [2,3,6];2 function_name [] _build_body_schema;3 parameters [4,5];4 identifier [] serializer;5 identifier [] body_parameters;6 block [7,11,141];7 expression_statement [8];8 assignment [9,10];9 identifier [] description;10 string [];11 if_statement [12,17,41];12 call [13,14];13 identifi...
body is built differently, since it's a single argument no matter what.
0 module [1];1 function_definition [2,3,8];2 function_name [] tileXYZToQuadKey;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] x;6 identifier [] y;7 identifier [] z;8 block [9,13,67];9 expression_statement [10];10 assignment [11,12];11 identifier [] quadKey;12 string [];13 for_statement [14,15,22];14 identi...
Computes quadKey value based on tile x, y and z values.
0 module [1];1 function_definition [2,3,6];2 function_name [] parse_url;3 parameters [4,5];4 identifier [] request;5 identifier [] url;6 block [7,81];7 try_statement [8,20];8 block [9,15];9 expression_statement [10];10 assignment [11,12];11 identifier [] validate;12 call [13,14];13 identifier [] URLValidator;14 argumen...
Parse url URL parameter.
0 module [1];1 function_definition [2,3,9];2 function_name [] scores_to_probs;3 parameters [4,5,6];4 identifier [] scores;5 identifier [] proba;6 default_parameter [7,8];7 identifier [] eps;8 float [] 0.01;9 block [10];10 if_statement [11,18,124];11 call [12,15];12 attribute [13,14];13 identifier [] np;14 identifier []...
Transforms scores to probabilities by applying the logistic function
0 module [1];1 function_definition [2,3,6];2 function_name [] _on_client_latency_changed;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7];7 expression_statement [8];8 call [9,24];9 attribute [10,23];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] ...
Handle client latency changed.
0 module [1];1 function_definition [2,3,5];2 function_name [] GetSOAPPart;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] head;10 identifier [] part;11 subscript [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] ...
Get the SOAP body part.
0 module [1];1 function_definition [2,3,5];2 function_name [] load_user_envs;3 parameters [4];4 identifier [] self;5 block [6,14,30,38,54,68,125,136];6 expression_statement [7];7 assignment [8,9];8 identifier [] installed_packages;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _list_packages...
Loads downloaded user envs from filesystem cache on `import gym`
0 module [1];1 function_definition [2,3,5];2 function_name [] optimize_no;3 parameters [4];4 identifier [] self;5 block [6,12,18,24,30,36];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] optimization;11 integer [] 0;12 expression_statement [13];13 assignment [14,1...
all options set to default
0 module [1];1 function_definition [2,3,22];2 function_name [] apool;3 parameters [4,5,6,7,10,13,16,19];4 identifier [] self;5 identifier [] k_height;6 identifier [] k_width;7 default_parameter [8,9];8 identifier [] d_height;9 integer [] 2;10 default_parameter [11,12];11 identifier [] d_width;12 integer [] 2;13 default...
Construct an average pooling layer.
0 module [1];1 function_definition [2,3,5];2 function_name [] Y_tighter;3 parameters [4];4 identifier [] self;5 block [6,25];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] parent;12 identifier [] value;13 argument_list [14,15];14 string [] y_distan...
Decrease the distance of the lines.
0 module [1];1 function_definition [2,3,7];2 function_name [] clear_cache_delete_selected;3 parameters [4,5,6];4 identifier [] modeladmin;5 identifier [] request;6 identifier [] queryset;7 block [8,17,36];8 expression_statement [9];9 assignment [10,11];10 identifier [] result;11 call [12,13];12 identifier [] delete_sel...
A delete action that will invalidate cache after being called.
0 module [1];1 function_definition [2,3,10];2 function_name [] config_scale;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] cnf;7 dictionary [];8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,22,44];11 expression_statement [12];12 call [13,18];13 attribute [14,17];...
Configure resources of the Scale widget.
0 module [1];1 function_definition [2,3,7];2 function_name [] __addNode;3 parameters [4,5,6];4 identifier [] self;5 identifier [] name;6 identifier [] cls;7 block [8,25,34,46,60];8 if_statement [9,14];9 comparison_operator [10,11] in;10 identifier [] name;11 attribute [12,13];12 identifier [] self;13 identifier [] node...
Add a node to the topology
0 module [1];1 function_definition [2,3,9];2 function_name [] dispatch;3 parameters [4,5,7];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10];10 return_statement [11];11 call [12,19];12 attribute [13,18];13 call [14,15];14 identifier []...
Decorate the view dispatcher with permission_required.
0 module [1];1 function_definition [2,3,8];2 function_name [] properties_changed;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] properties;6 identifier [] changed_properties;7 identifier [] invalidated_properties;8 block [9,18];9 expression_statement [10];10 assignment [11,12];11 identifier [] value;12 cal...
Called when a Characteristic property has changed.
0 module [1];1 function_definition [2,3,6];2 function_name [] process_build_metrics;3 parameters [4,5];4 identifier [] context;5 identifier [] build_processors;6 block [7,13,23,36];7 expression_statement [8];8 assignment [9,10];9 identifier [] build_metrics;10 call [11,12];11 identifier [] OrderedDict;12 argument_list ...
use processors to collect build metrics.
0 module [1];1 function_definition [2,3,9];2 function_name [] response;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] msgtype;6 identifier [] msgid;7 identifier [] error;8 identifier [] result;9 block [10];10 expression_statement [11];11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifie...
Handle an incoming response.
0 module [1];1 function_definition [2,3,4];2 function_name [] index;3 parameters [];4 block [5,11,21,31];5 expression_statement [6];6 assignment [7,8];7 identifier [] kwdb;8 attribute [9,10];9 identifier [] current_app;10 identifier [] kwdb;11 expression_statement [12];12 assignment [13,14];13 identifier [] libraries;1...
Show a list of available libraries, and resource files
0 module [1];1 function_definition [2,3,5];2 function_name [] write_summary_cnts_all;3 parameters [4];4 identifier [] self;5 block [6,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] cnts;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] get_cnts_levels_depths_recs;13 argument_...
Write summary of level and depth counts for all active GO Terms.
0 module [1];1 function_definition [2,3,6];2 function_name [] _convert_to_identifier_json;3 parameters [4,5];4 identifier [] self;5 identifier [] address_data;6 block [7,19,76,131,138];7 if_statement [8,13];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] address_data;12 identifier [] ...
Convert input address data into json format
0 module [1];1 function_definition [2,3,11];2 function_name [] check_enum;3 parameters [4,5,8];4 identifier [] enum;5 default_parameter [6,7];6 identifier [] name;7 None [];8 default_parameter [9,10];9 identifier [] valid;10 None [];11 block [12,18,22,74,105];12 expression_statement [13];13 assignment [14,15];14 identi...
Get lowercase string representation of enum.
0 module [1];1 function_definition [2,3,5];2 function_name [] callback_result;3 parameters [4];4 identifier [] self;5 block [6,24,45];6 if_statement [7,14];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] _state;11 attribute [12,13];12 identifier [] self;13 identifier [] _PENDING...
Blocking until the task finish and return the callback_result.until
0 module [1];1 function_definition [2,3,5];2 function_name [] execute;3 parameters [4];4 identifier [] self;5 block [6,12,16,74,81];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _collect_garbage;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14...
Deploys and executes the physical dataflow.
0 module [1];1 function_definition [2,3,6];2 function_name [] template_to_base_path;3 parameters [4,5];4 identifier [] template;5 identifier [] google_songs;6 block [7,71];7 if_statement [8,19,28];8 boolean_operator [9,16] or;9 comparison_operator [10,11] ==;10 identifier [] template;11 call [12,15];12 attribute [13,14...
Get base output path for a list of songs for download.
0 module [1];1 function_definition [2,3,5];2 function_name [] fingerprint_from_var;3 parameters [4];4 identifier [] var;5 block [6,12,25,45,61,77,109];6 expression_statement [7];7 assignment [8,9];8 identifier [] vsn;9 call [10,11];10 identifier [] gpg_version;11 argument_list [];12 expression_statement [13];13 assignm...
Extract a fingerprint from a GPG public key
0 module [1];1 function_definition [2,3,11];2 function_name [] humanize_hours;3 parameters [4,5,8];4 identifier [] total_hours;5 default_parameter [6,7];6 identifier [] frmt;7 string [] {hours:02d}:{minutes:02d}:{seconds:02d};8 default_parameter [9,10];9 identifier [] negative_frmt;10 None [];11 block [12,24];12 expres...
Given time in hours, return a string representing the time.
0 module [1];1 function_definition [2,3,25];2 function_name [] _update_axes;3 parameters [4,5,6,7,10,13,16,19,22];4 identifier [] ax;5 identifier [] xincrease;6 identifier [] yincrease;7 default_parameter [8,9];8 identifier [] xscale;9 None [];10 default_parameter [11,12];11 identifier [] yscale;12 None [];13 default_p...
Update axes with provided parameters
0 module [1];1 function_definition [2,3,7];2 function_name [] editor_js_initialization;3 parameters [4,5];4 identifier [] selector;5 dictionary_splat_pattern [6];6 identifier [] extra_settings;7 block [8,19,35,42,59];8 expression_statement [9];9 assignment [10,11];10 identifier [] init_template;11 call [12,15];12 attri...
Return script tag with initialization code.
0 module [1];1 function_definition [2,3,5];2 function_name [] serialize_checks;3 parameters [4];4 identifier [] check_set;5 block [6,10,51];6 expression_statement [7];7 assignment [8,9];8 identifier [] check_set_list;9 list [] [];10 for_statement [11,12,21];11 identifier [] check;12 subscript [13,18];13 call [14,17];14...
Serialize a check_set for raphael
0 module [1];1 function_definition [2,3,5];2 function_name [] list;3 parameters [4];4 identifier [] self;5 block [6,12,20,24,44];6 expression_statement [7];7 assignment [8,9];8 identifier [] service;9 attribute [10,11];10 identifier [] self;11 identifier [] _service;12 expression_statement [13];13 assignment [14,15];14...
Get's all of the LXC's and creates objects for them
0 module [1];1 function_definition [2,3,5];2 function_name [] monitor;3 parameters [4];4 identifier [] self;5 block [6];6 while_statement [7,14];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] monitor_running;12 identifier [] is_set;13 argument_list [];14 block [15,53];15 if_...
Flushes the queue periodically.
0 module [1];1 function_definition [2,3,5];2 function_name [] close;3 parameters [4];4 identifier [] self;5 block [6,14,25,31];6 if_statement [7,8];7 identifier [] VERBOSE;8 block [9];9 expression_statement [10];10 call [11,12];11 identifier [] _print_out;12 argument_list [13];13 string [] \nDummy_serial: Closing port\...
Close a port on dummy_serial.
0 module [1];1 function_definition [2,3,7];2 function_name [] _post_build;3 parameters [4,5,6];4 identifier [] self;5 identifier [] module;6 identifier [] encoding;7 block [8,14,23,60,73,89];8 expression_statement [9];9 assignment [10,13];10 attribute [11,12];11 identifier [] module;12 identifier [] file_encoding;13 id...
Handles encoding and delayed nodes after a module has been built
0 module [1];1 function_definition [2,3,18];2 function_name [] _get_data_from_list_of_lists;3 parameters [4,5,8,11,15];4 identifier [] source;5 default_parameter [6,7];6 identifier [] fields;7 string [] *;8 default_parameter [9,10];9 identifier [] first_row;10 integer [] 0;11 default_parameter [12,13];12 identifier [] ...
Helper function for _get_data that handles lists of lists.
0 module [1];1 function_definition [2,3,6];2 function_name [] _match_magic;3 parameters [4,5];4 identifier [] self;5 identifier [] full_path;6 block [7];7 for_statement [8,9,12];8 identifier [] magic;9 attribute [10,11];10 identifier [] self;11 identifier [] magics;12 block [13];13 if_statement [14,20];14 call [15,18];...
Return the first magic that matches this path or None.
0 module [1];1 function_definition [2,3,14];2 function_name [] import_graph;3 parameters [4,5,8,11];4 identifier [] self;5 default_parameter [6,7];6 identifier [] t_input;7 None [];8 default_parameter [9,10];9 identifier [] scope;10 string [] import;11 default_parameter [12,13];12 identifier [] forget_xy_shape;13 True ...
Import model GraphDef into the current graph.
0 module [1];1 function_definition [2,3,5];2 function_name [] _is_reference;3 parameters [4];4 identifier [] arg;5 block [6];6 return_statement [7];7 boolean_operator [8,20] and;8 boolean_operator [9,14] and;9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] arg;13 identifier [] dict;1...
Return True, if arg is a reference to a previously defined statement.
0 module [1];1 function_definition [2,3,5];2 function_name [] action;3 parameters [4];4 identifier [] arguments;5 block [6,22,38];6 expression_statement [7];7 assignment [8,9];8 identifier [] source_format;9 () [10];10 boolean_operator [11,14] or;11 attribute [12,13];12 identifier [] arguments;13 identifier [] source_f...
Trim the alignment as specified
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_buffer_to_jpeg;3 parameters [4];4 identifier [] data;5 block [6];6 return_statement [7];7 list_comprehension [8,19];8 call [9,12];9 attribute [10,11];10 identifier [] Image;11 identifier [] open;12 argument_list [13];13 call [14,15];14 identifier [] By...
Parse JPEG file bytes to Pillow Image
0 module [1];1 function_definition [2,3,6];2 function_name [] load_vstr;3 parameters [4,5];4 identifier [] buf;5 identifier [] pos;6 block [7,17];7 expression_statement [8];8 assignment [9,12];9 pattern_list [10,11];10 identifier [] slen;11 identifier [] pos;12 call [13,14];13 identifier [] load_vint;14 argument_list [...
Load bytes prefixed by vint length
0 module [1];1 function_definition [2,3,5];2 function_name [] check_config;3 parameters [4];4 identifier [] config;5 block [6,16,44,54,80,104];6 expression_statement [7];7 assignment [8,9];8 identifier [] url;9 call [10,13];10 attribute [11,12];11 identifier [] config;12 identifier [] get;13 argument_list [14,15];14 st...
Check the executor config file for consistency.
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_droppable;3 parameters [4,5];4 identifier [] self;5 identifier [] droppable_id;6 block [7,11,35];7 expression_statement [8];8 assignment [9,10];9 identifier [] updated_droppables;10 list [] [];11 for_statement [12,13,20];12 identifier [] droppable;13 ...
remove a droppable, given the id
0 module [1];1 function_definition [2,3,6];2 function_name [] cmd_devid;3 parameters [4,5];4 identifier [] self;5 identifier [] args;6 block [7];7 for_statement [8,9,16];8 identifier [] p;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] mav_param;14 identifier [] keys;15 a...
decode device IDs from parameters
0 module [1];1 function_definition [2,3,5];2 function_name [] webob_to_django_response;3 parameters [4];4 identifier [] webob_response;5 block [6,12,31,45];6 import_from_statement [7,10];7 dotted_name [8,9];8 identifier [] django;9 identifier [] http;10 dotted_name [11];11 identifier [] HttpResponse;12 expression_state...
Returns a django response to the `webob_response`
0 module [1];1 function_definition [2,3,12];2 function_name [] correct;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] image;6 default_parameter [7,8];7 identifier [] keepSize;8 False [];9 default_parameter [10,11];10 identifier [] borderValue;11 integer [] 0;12 block [13,20,32,44,68,103];13 expression_stat...
remove lens distortion from given image
0 module [1];1 function_definition [2,3,5];2 function_name [] update;3 parameters [4];4 identifier [] self;5 block [6,106];6 if_statement [7,12,103];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] input_method;11 string [] local;12 block [13,36];13 if_statement [14,19,24];14 com...
Update the ports list.
0 module [1];1 function_definition [2,3,5];2 function_name [] create_variable;3 parameters [4];4 identifier [] descriptor;5 block [6];6 if_statement [7,12,30,54,78,102];7 comparison_operator [8,11] ==;8 subscript [9,10];9 identifier [] descriptor;10 string [] type;11 string [] continuous;12 block [13];13 return_stateme...
Creates a variable from a dictionary descriptor
0 module [1];1 function_definition [2,3,5];2 function_name [] strip_uri;3 parameters [4];4 identifier [] repo;5 block [6,14,56];6 expression_statement [7];7 assignment [8,9];8 identifier [] splits;9 call [10,13];10 attribute [11,12];11 identifier [] repo;12 identifier [] split;13 argument_list [];14 for_statement [15,1...
Remove the trailing slash from the URI in a repo definition
0 module [1];1 function_definition [2,3,5];2 function_name [] build_ebound_table;3 parameters [4];4 identifier [] self;5 block [6,129,138];6 expression_statement [7];7 assignment [8,9];8 identifier [] cols;9 list [10,27,44,61,78,95,112] [\n Column(name="E_MIN", dtype=float, data=self._emin, unit='MeV'),\n ...
Build and return an EBOUNDS table with the encapsulated data.
0 module [1];1 function_definition [2,3,5];2 function_name [] connections;3 parameters [4];4 identifier [] self;5 block [6,22];6 expression_statement [7];7 assignment [8,9];8 identifier [] conn;9 lambda [10,12];10 lambda_parameters [11];11 identifier [] x;12 call [13,19];13 attribute [14,18];14 call [15,16];15 identifi...
Returns all of the loaded connections names as a list
0 module [1];1 function_definition [2,3,7];2 function_name [] _CreateSingleValueCondition;3 parameters [4,5,6];4 identifier [] self;5 identifier [] value;6 identifier [] operator;7 block [8,27];8 if_statement [9,20];9 boolean_operator [10,15] or;10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 id...
Creates a single-value condition with the provided value and operator.
0 module [1];1 function_definition [2,3,6];2 function_name [] column;3 parameters [4,5];4 identifier [] m;5 identifier [] linkpart;6 block [7,15,21];7 assert_statement [8];8 comparison_operator [9,10] in;9 identifier [] linkpart;10 tuple [11,12,13,14];11 integer [] 0;12 integer [] 1;13 integer [] 2;14 integer [] 3;15 e...
Generate all parts of links according to the parameter
0 module [1];1 function_definition [2,3,8];2 function_name [] _query;3 parameters [4,5,6];4 identifier [] self;5 identifier [] cmd;6 list_splat_pattern [7];7 identifier [] datas;8 block [9,18];9 expression_statement [10];10 assignment [11,12];11 identifier [] cmd;12 call [13,14];13 identifier [] Command;14 argument_lis...
Helper function to allow method queries.
0 module [1];1 function_definition [2,3,6];2 function_name [] clean_aliases;3 parameters [4,5];4 identifier [] ctx;5 identifier [] force_yes;6 block [7,11,96,112,129];7 expression_statement [8];8 assignment [9,10];9 identifier [] inactive_aliases;10 list [] [];11 for_statement [12,15,21];12 tuple_pattern [13,14];13 ide...
Removes aliases from your config file that point to inactive projects.
0 module [1];1 function_definition [2,3,8];2 function_name [] show;3 parameters [4,5];4 identifier [] cls;5 default_parameter [6,7];6 identifier [] msg;7 None [];8 block [9,19,27,46,56];9 if_statement [10,11];10 identifier [] msg;11 block [12];12 expression_statement [13];13 call [14,17];14 attribute [15,16];15 identif...
Show the log interface on the page.
0 module [1];1 function_definition [2,3,24];2 function_name [] from_name_re;3 parameters [4,5,9,13,17,22];4 identifier [] cls;5 typed_parameter [6,7];6 identifier [] path;7 type [8];8 identifier [] PathOrStr;9 typed_parameter [10,11];10 identifier [] fnames;11 type [12];12 identifier [] FilePathList;13 typed_parameter ...
Create from list of `fnames` in `path` with re expression `pat`.
0 module [1];1 function_definition [2,3,5];2 function_name [] audit_ghosts;3 parameters [4];4 identifier [] self;5 block [6,10];6 expression_statement [7];7 assignment [8,9];8 identifier [] print_header;9 True [];10 for_statement [11,12,17];11 identifier [] app_name;12 call [13,16];13 attribute [14,15];14 identifier []...
compare the list of configured jobs with the jobs in the state
0 module [1];1 function_definition [2,3,5];2 function_name [] which;3 parameters [4];4 identifier [] fname;5 block [6,36,96,120,130];6 if_statement [7,19,26];7 boolean_operator [8,13] or;8 comparison_operator [9,10] not in;9 string [] PATH;10 attribute [11,12];11 identifier [] os;12 identifier [] environ;13 not_operato...
Find location of executable.
0 module [1];1 function_definition [2,3,13];2 function_name [] _get;3 parameters [4,8,11];4 typed_parameter [5,6];5 identifier [] operation;6 type [7];7 identifier [] Operation;8 default_parameter [9,10];9 identifier [] url;10 identifier [] URL;11 dictionary_splat_pattern [12];12 identifier [] params;13 block [14,26];1...
HTTP GET of the FlashAir command.cgi entrypoint
0 module [1];1 function_definition [2,3,5];2 function_name [] _estimate_strains;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,11];7 identifier [] l;8 attribute [9,10];9 identifier [] self;10 identifier [] _profile;11 block [12,18];12 expression_statement [13];13 call [14,17];14 attribute [15,16...
Compute an estimate of the strains.
0 module [1];1 function_definition [2,3,11];2 function_name [] from_analysis_period;3 parameters [4,5,6,7,8];4 identifier [] cls;5 identifier [] analysis_period;6 identifier [] tau_b;7 identifier [] tau_d;8 default_parameter [9,10];9 identifier [] daylight_savings_indicator;10 string [] No;11 block [12,17];12 expressio...
Initialize a RevisedClearSkyCondition from an analysis_period
0 module [1];1 function_definition [2,3,5];2 function_name [] export_data;3 parameters [4];4 identifier [] self;5 block [6,31,46,53];6 expression_statement [7];7 assignment [8,9];8 identifier [] data_tuples;9 generator_expression [10,19];10 tuple [11,12];11 identifier [] key;12 call [13,16];13 attribute [14,15];14 iden...
Exports current data contained in the Task as JSON
0 module [1];1 function_definition [2,3,5];2 function_name [] next;3 parameters [4];4 identifier [] self;5 block [6,15];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] _stopped_iteration;10 block [11];11 raise_statement [12];12 call [13,14];13 identifier [] StopIteration;14 argument_list []...
allow us to iterate over the output of our command
0 module [1];1 function_definition [2,3,6];2 function_name [] _if;3 parameters [4,5];4 identifier [] cls;5 identifier [] verb;6 block [7,13,19,29,92];7 expression_statement [8];8 assignment [9,10];9 identifier [] pred;10 attribute [11,12];11 identifier [] verb;12 identifier [] predicate;13 expression_statement [14];14 ...
A verb with a predicate function
0 module [1];1 function_definition [2,3,5];2 function_name [] create_dialog;3 parameters [4];4 identifier [] self;5 block [6,17,32,45,51,58,67,73,82,91,98,105];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] bbox;11 call [12,13];12 identifier [] QDialogButtonBox;1...
Create the basic dialog.
0 module [1];1 function_definition [2,3,8];2 function_name [] freeze;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] number;7 None [];8 block [9,20];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] number;12 None [];13 block [14];14 expression_statement [15];15...
Freeze given number of layers in the model