sequence
stringlengths
388
5.57k
docstring
stringlengths
11
171
0 module [1];1 function_definition [2,3,5];2 function_name [] detach_session;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12];7 comparison_operator [8,11] is not;8 attribute [9,10];9 identifier [] self;10 identifier [] _session;11 None [];12 block [13,22];13 expression_statement [14];14 call [15,...
Allow the session to be discarded and don't get change notifications from it anymore
0 module [1];1 function_definition [2,3,6];2 function_name [] _marshal;3 parameters [4,5];4 identifier [] self;5 identifier [] obj;6 block [7,15,33,69,91,125,132];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] logger;11 identifier [] debug;12 argument_list [13,14];13 string [] Checking if...
Walks an object and marshals any psphere object into MORs.
0 module [1];1 function_definition [2,3,6];2 function_name [] _ensure_field;3 parameters [4,5];4 identifier [] self;5 identifier [] key;6 block [7,18,24];7 if_statement [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _has_field;11 block [12];12 expression_statement [13];13 augmented_assignment [14,17] +...
Ensure a non-array field
0 module [1];1 function_definition [2,3,21,23];2 function_name [] read_comment;3 parameters [4,5,9,13,17];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] start;7 type [8];8 identifier [] int;9 typed_parameter [10,11];10 identifier [] line;11 type [12];12 identifier [] int;13 typed_parameter [14,15];14 iden...
Read a comment token from the source file.
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_areas;3 parameters [4];4 identifier [] self;5 block [6,51];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] areas;11 None [];12 block [13,19,38];13 expression_statement [14];14 assignment [15...
Return surface elements area values in a numpy array.
0 module [1];1 function_definition [2,3,6];2 function_name [] on_select_task;3 parameters [4,5];4 identifier [] self;5 identifier [] task;6 block [7,15,28,31,39,47,55,63,83,98,105];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] logger;11 identifier [] info;12 argument_list [13,14];13 stri...
Called when a task is selected to fetch & process
0 module [1];1 function_definition [2,3,7];2 function_name [] _set_windows;3 parameters [4,5,6];4 identifier [] self;5 identifier [] ticks;6 identifier [] bars;7 block [8,14];8 expression_statement [9];9 assignment [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] tick_window;13 identifier [] ticks;14...
be aware of default windows
0 module [1];1 function_definition [2,3,5];2 function_name [] remove_blank_dirs;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12,35];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] is_blank;11 argument_list [];12 block [13];13 try_statement [14,24];14 block [15];15 expressio...
Remove blank dir and all blank subdirectories
0 module [1];1 function_definition [2,3,6];2 function_name [] _remove_from_index;3 parameters [4,5];4 identifier [] index;5 identifier [] obj;6 block [7];7 try_statement [8,26];8 block [9];9 expression_statement [10];10 call [11,22];11 attribute [12,21];12 subscript [13,16];13 attribute [14,15];14 identifier [] index;1...
Removes object ``obj`` from the ``index``.
0 module [1];1 function_definition [2,3,5];2 function_name [] timex_starts;3 parameters [4];4 identifier [] self;5 block [6,21];6 if_statement [7,14];7 not_operator [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] is_tagged;12 argument_list [13];13 identifier [] TIMEXES;14 block [15];15 expr...
The list of start positions of ``timexes`` layer elements.
0 module [1];1 function_definition [2,3,4];2 function_name [] ServerLoggingStartupInit;3 parameters [];4 block [5,7];5 global_statement [6];6 identifier [] LOGGER;7 if_statement [8,9,40];8 identifier [] local_log;9 block [10,18,24,32];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] lo...
Initialize the server logging configuration.
0 module [1];1 function_definition [2,3,5];2 function_name [] find_if_x_retbool_else_retbool;3 parameters [4];4 identifier [] node;5 block [6];6 return_statement [7];7 () [8];8 boolean_operator [9,60] and;9 boolean_operator [10,49] and;10 boolean_operator [11,43] and;11 boolean_operator [12,31] and;12 boolean_operator ...
Finds simplifiable if condition
0 module [1];1 function_definition [2,3,5];2 function_name [] _collect_gpu_info;3 parameters [4];4 identifier [] run_info;5 block [6,10,18,37,60];6 expression_statement [7];7 assignment [8,9];8 identifier [] gpu_info;9 dictionary [];10 expression_statement [11];11 assignment [12,13];12 identifier [] local_device_protos...
Collect local GPU information by TF device library.
0 module [1];1 function_definition [2,3,6];2 function_name [] cwd;3 parameters [4,5];4 identifier [] self;5 identifier [] new_path;6 block [7,13,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] old_cwd;10 attribute [11,12];11 identifier [] self;12 identifier [] _cwd;13 expression_statement [14];14 ass...
Sets the cwd during reads and writes
0 module [1];1 function_definition [2,3,6];2 function_name [] apply;3 parameters [4,5];4 identifier [] self;5 identifier [] snapshot;6 block [7];7 for_statement [8,9,10];8 identifier [] name;9 identifier [] snapshot;10 block [11];11 expression_statement [12];12 call [13,14];13 identifier [] setattr;14 argument_list [15...
Set the current context from a given snapshot dictionary
0 module [1];1 function_definition [2,3,5];2 function_name [] gausspars;3 parameters [4];4 identifier [] data;5 block [6,19,28,39,59,77,97];6 expression_statement [7];7 assignment [8,12];8 pattern_list [9,10,11];9 identifier [] N;10 identifier [] mean;11 identifier [] d;12 expression_list [13,17,18];13 call [14,15];14 ...
calculates gaussian statistics for data
0 module [1];1 function_definition [2,3,5];2 function_name [] reset;3 parameters [4];4 identifier [] self;5 block [6,12,18,24,33,42,51,60,69,78,84,93,102,111,120,129];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _count;11 integer [] 0;12 expression_statement [1...
Reset the statistics data for this object.
0 module [1];1 function_definition [2,3,5];2 function_name [] _meta_get_resource_sync;3 parameters [4];4 identifier [] md_uuid;5 block [6,15,23,32,43];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] isogeo;10 identifier [] resource;11 argument_list [12];12 keyword_argument [13,14];13 identif...
Just a meta func to get execution time
0 module [1];1 function_definition [2,3,8];2 function_name [] generic_insert_with_folder;3 parameters [4,5,6,7];4 identifier [] folder_name;5 identifier [] file_name;6 identifier [] template_name;7 identifier [] args;8 block [9,66,88,134];9 if_statement [10,29];10 not_operator [11];11 call [12,17];12 attribute [13,16];...
In general if we need to put a file on a folder, we use this method
0 module [1];1 function_definition [2,3,12];2 function_name [] run_until;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] endtime;6 default_parameter [7,8];7 identifier [] timeunit;8 string [] minutes;9 default_parameter [10,11];10 identifier [] save;11 True [];12 block [13,23,31];13 expression_statement [14...
Run a case untile the specifiend endtime
0 module [1];1 function_definition [2,3,6];2 function_name [] to_file;3 parameters [4,5];4 identifier [] file;5 identifier [] array;6 block [7];7 try_statement [8,16];8 block [9];9 expression_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] array;13 identifier [] tofile;14 argument_list [15];15 iden...
Wrapper around ndarray.tofile to support any file-like object
0 module [1];1 function_definition [2,3,5];2 function_name [] default;3 parameters [4];4 identifier [] self;5 block [6,25,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] output;9 call [10,11];10 identifier [] ensure_unicode;11 argument_list [12];12 attribute [13,24];13 call [14,19];14 attribute [15,18...
Return last changes in truncated unified diff format
0 module [1];1 function_definition [2,3,4];2 function_name [] clean;3 parameters [];4 block [5,10,15,20,25,30,35,40];5 expression_statement [6];6 call [7,8];7 identifier [] run;8 argument_list [9];9 string [] rm -rf build/;10 expression_statement [11];11 call [12,13];12 identifier [] run;13 argument_list [14];14 string...
clean - remove build artifacts.
0 module [1];1 function_definition [2,3,5];2 function_name [] to_binary_string;3 parameters [4];4 identifier [] self;5 block [6,19,43,63,79,98,120,168];6 if_statement [7,14];7 comparison_operator [8,11] not in;8 attribute [9,10];9 identifier [] self;10 identifier [] priority;11 attribute [12,13];12 identifier [] self;1...
Pack the notification to binary form and return it as string.
0 module [1];1 function_definition [2,3,6];2 function_name [] _parse_attributes;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,15,19,41,45,82,115,136];7 import_from_statement [8,11];8 dotted_name [9,10];9 identifier [] zigpy;10 identifier [] zcl;11 aliased_import [12,14];12 dotted_name [13];13...
Parse non standard atrributes.
0 module [1];1 function_definition [2,3,8];2 function_name [] serialize_on_parent;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] parent;6 identifier [] value;7 identifier [] state;8 block [9,32,41,64];9 if_statement [10,16];10 boolean_operator [11,13] and;11 not_operator [12];12 identifier [] value;13 attr...
Serialize the value and append it to the parent element.
0 module [1];1 function_definition [2,3,7];2 function_name [] validate_data_files;3 parameters [4,5,6];4 identifier [] problem;5 identifier [] data_files;6 identifier [] min_size;7 block [8,23,32,44,60,64,87,103,112];8 expression_statement [9];9 assignment [10,11];10 identifier [] data_dir;11 subscript [12,22];12 call ...
Validate presence and minimum size of files.
0 module [1];1 function_definition [2,3,6];2 function_name [] self_signed;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,16];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _self_signed;12 call [13,14];13 identifier [] bool;14 argument_...
A bool - if the certificate should be self-signed.
0 module [1];1 function_definition [2,3,5];2 function_name [] _create_netmap_config;3 parameters [4];4 identifier [] self;5 block [6,20];6 expression_statement [7];7 assignment [8,9];8 identifier [] netmap_path;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identif...
Creates the NETMAP file.
0 module [1];1 function_definition [2,3,6];2 function_name [] make_summary_funcs;3 parameters [4,5];4 identifier [] rows;5 identifier [] ids;6 block [7];7 return_statement [8];8 dictionary [9,12,26,29,32,40,43];9 pair [10,11];10 string [] len;11 identifier [] len;12 pair [13,14];13 string [] list;14 lambda [15,18];15 l...
Functions available for listing summary fields.
0 module [1];1 function_definition [2,3,6];2 function_name [] add_subsegment;3 parameters [4,5];4 identifier [] self;5 identifier [] subsegment;6 block [7,13,21];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _check_ended;12 argument_list [];13 expression_statement [...
Add input subsegment as a child subsegment.
0 module [1];1 function_definition [2,3,5];2 function_name [] __init;3 parameters [4];4 identifier [] self;5 block [6,13,44,55,61,89];6 expression_statement [7];7 assignment [8,9];8 identifier [] params;9 dictionary [10];10 pair [11,12];11 string [] f;12 string [] json;13 expression_statement [14];14 assignment [15,16]...
populates server admin information
0 module [1];1 function_definition [2,3,4];2 function_name [] main;3 parameters [];4 block [5,15,25,35,45,55,60,70,84,93,102,112];5 expression_statement [6];6 assignment [7,12];7 pattern_list [8,9,10,11];8 identifier [] trig;9 identifier [] echo;10 identifier [] speed;11 identifier [] samples;12 call [13,14];13 identif...
Main function to run the sensor with passed arguments
0 module [1];1 function_definition [2,3,5];2 function_name [] out_shape_from_meshgrid;3 parameters [4];4 identifier [] mesh;5 block [6];6 if_statement [7,13,22];7 comparison_operator [8,12] ==;8 call [9,10];9 identifier [] len;10 argument_list [11];11 identifier [] mesh;12 integer [] 1;13 block [14];14 return_statement...
Get the broadcast output shape from a `meshgrid`.
0 module [1];1 function_definition [2,3,6];2 function_name [] _delete_percolator;3 parameters [4,5];4 identifier [] spec;5 identifier [] search_pattern;6 block [7];7 if_statement [8,9];8 identifier [] spec;9 block [10];10 for_statement [11,12,19];11 identifier [] index;12 call [13,18];13 attribute [14,17];14 attribute ...
Delete percolator associated with the new oaiset.
0 module [1];1 function_definition [2,3,7];2 function_name [] copy;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] replacements;7 block [8,15,23,53,62,71];8 expression_statement [9];9 assignment [10,11];10 identifier [] cls;11 call [12,13];12 identifier [] type;13 argument_list [1...
Returns a clone of this JarDependency with the given replacements kwargs overlaid.
0 module [1];1 function_definition [2,3,7];2 function_name [] _client;3 parameters [4,5,6];4 identifier [] self;5 identifier [] id;6 identifier [] secret;7 block [8,18,26,43,55,65];8 expression_statement [9];9 assignment [10,11];10 identifier [] url;11 binary_operator [12,15] +;12 attribute [13,14];13 identifier [] sel...
Performs client login with the provided credentials
0 module [1];1 function_definition [2,3,6];2 function_name [] center_important_part;3 parameters [4,5];4 identifier [] self;5 identifier [] crop_box;6 block [7,15,21,29,39,59,79,105,131];7 if_statement [8,12];8 not_operator [9];9 attribute [10,11];10 identifier [] self;11 identifier [] important_box;12 block [13];13 re...
If important_box was specified, make sure it lies inside the crop box.
0 module [1];1 function_definition [2,3,5];2 function_name [] count_changes;3 parameters [4];4 identifier [] change;5 block [6,32];6 if_statement [7,12];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] change;11 identifier [] ChangeSet;12 block [13,17,30];13 expression_statement [14];14 ...
Counts the number of basic changes a `Change` will make
0 module [1];1 function_definition [2,3,20];2 function_name [] create;3 parameters [4,5,6,7,8,11,14,17];4 identifier [] cls;5 identifier [] ip_version;6 identifier [] datacenter;7 identifier [] bandwidth;8 default_parameter [9,10];9 identifier [] vm;10 None [];11 default_parameter [12,13];12 identifier [] vlan;13 None ...
Create a public ip and attach it if vm is given.
0 module [1];1 function_definition [2,3,7];2 function_name [] _deshuffle_field;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 block [8,14,18,31];8 expression_statement [9];9 assignment [10,11];10 identifier [] ip;11 attribute [12,13];12 identifier [] self;13 identifier [] _invpe...
Return to original ordering
0 module [1];1 function_definition [2,3,11];2 function_name [] max_spline_jumps;3 parameters [4,5,8];4 identifier [] self;5 default_parameter [6,7];6 identifier [] convert_to_muC_per_cm2;7 True [];8 default_parameter [9,10];9 identifier [] all_in_polar;10 True [];11 block [12,26,40,47,97];12 expression_statement [13];1...
Get maximum difference between spline and same branch polarization data.
0 module [1];1 function_definition [2,3,5];2 function_name [] max_knob_end_distance;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,9];8 identifier [] max;9 argument_list [10];10 list_comprehension [11,18];11 call [12,13];12 identifier [] distance;13 argument_list [14,17];14 attribute...
Maximum distance between knob_end and each of the hole side-chain centres.
0 module [1];1 function_definition [2,3,7];2 function_name [] renamed_tree;3 parameters [4,5,6];4 identifier [] self;5 identifier [] source;6 identifier [] dest;7 block [8,20,27];8 expression_statement [9];9 assignment [10,11];10 identifier [] dirname;11 call [12,15];12 attribute [13,14];13 identifier [] osp;14 identif...
Directory was renamed in file explorer or in project explorer.
0 module [1];1 function_definition [2,3,9];2 function_name [] notify_update;3 parameters [4,5,6];4 identifier [] self;5 identifier [] update;6 default_parameter [7,8];7 identifier [] urgent;8 False [];9 block [10,23,32,42,48,69,142];10 if_statement [11,17];11 not_operator [12];12 call [13,14];13 identifier [] isinstanc...
Name or list of names of modules that have updated.
0 module [1];1 function_definition [2,3,8];2 function_name [] need_to_create_symlink;3 parameters [4,5,6,7];4 identifier [] directory;5 identifier [] checksums;6 identifier [] filetype;7 identifier [] symlink_path;8 block [9,16,25,35,47,59,85];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] sy...
Check if we need to create a symlink for an existing file.
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_policy_set;3 parameters [4,5];4 identifier [] self;5 identifier [] policy_set_id;6 block [7,18];7 expression_statement [8];8 assignment [9,10];9 identifier [] uri;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _get_policy_se...
Get a specific policy set by id.
0 module [1];1 function_definition [2,3,8];2 function_name [] _ctl_cmd;3 parameters [4,5,6,7];4 identifier [] cmd;5 identifier [] name;6 identifier [] conf_file;7 identifier [] bin_env;8 block [9,17,28,35,45];9 expression_statement [10];10 assignment [11,12];11 identifier [] ret;12 list [13] [_get_supervisorctl_bin(bin...
Return the command list to use
0 module [1];1 function_definition [2,3,11];2 function_name [] shell;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] command;6 list_splat_pattern [7];7 identifier [] args;8 default_parameter [9,10];9 identifier [] environment;10 None [];11 block [12,23,31,45,55,64];12 expression_statement [13];13 augmented_...
Runs a shell command
0 module [1];1 function_definition [2,3,4];2 function_name [] load_installed_plugins;3 parameters [];4 block [5,9,13,62];5 expression_statement [6];6 assignment [7,8];7 identifier [] providers;8 dictionary [];9 expression_statement [10];10 assignment [11,12];11 identifier [] checkers;12 dictionary [];13 for_statement [...
Search and load every installed plugin through entry points.
0 module [1];1 function_definition [2,3,9,11];2 function_name [] _iname2qname;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] iname;7 type [8];8 identifier [] InstanceName;9 type [10];10 identifier [] QualName;11 block [12,24];12 expression_statement [13];13 assignment [14,18];14 pattern...
Translate instance name to qualified name in the receiver's context.
0 module [1];1 function_definition [2,3,5];2 function_name [] read_template_source;3 parameters [4];4 identifier [] filename;5 block [6,12,24,51];6 import_from_statement [7,10];7 dotted_name [8,9];8 identifier [] django;9 identifier [] conf;10 dotted_name [11];11 identifier [] settings;12 if_statement [13,17];13 not_op...
Read the source of a Django template, returning the Unicode text.
0 module [1];1 function_definition [2,3,13];2 function_name [] sleep_if_necessary;3 parameters [4,5,6,7,10];4 identifier [] cls;5 identifier [] user;6 identifier [] token;7 default_parameter [8,9];8 identifier [] endpoint;9 string [] search;10 default_parameter [11,12];11 identifier [] msg;12 string [];13 block [14,26,...
Sleep a little if hit github recently to honor rate limit.
0 module [1];1 function_definition [2,3,7];2 function_name [] printrdf;3 parameters [4,5,6];4 identifier [] wflow;5 identifier [] ctx;6 identifier [] style;7 block [8,26,32];8 expression_statement [9];9 assignment [10,11];10 identifier [] rdf;11 call [12,19];12 attribute [13,18];13 call [14,15];14 identifier [] gather;...
Serialize the CWL document into a string, ready for printing.
0 module [1];1 function_definition [2,3,6];2 function_name [] _create_event;3 parameters [4,5];4 identifier [] instance;5 identifier [] action;6 block [7,11,18,49];7 expression_statement [8];8 assignment [9,10];9 identifier [] user;10 None [];11 expression_statement [12];12 assignment [13,14];13 identifier [] user_repr...
Create a new event, getting the use if django-cuser is available.
0 module [1];1 function_definition [2,3,8];2 function_name [] filterVerticalLines;3 parameters [4,5];4 identifier [] arr;5 default_parameter [6,7];6 identifier [] min_line_length;7 integer [] 4;8 block [9,17,25,31];9 expression_statement [10];10 assignment [11,12];11 identifier [] gy;12 subscript [13,16];13 attribute [...
Remove vertical lines in boolean array if linelength >=min_line_length
0 module [1];1 function_definition [2,3,6];2 function_name [] addAnalyses;3 parameters [4,5];4 identifier [] self;5 identifier [] analyses;6 block [7,15,21,37];7 expression_statement [8];8 assignment [9,10];9 identifier [] actions_pool;10 call [11,14];11 attribute [12,13];12 identifier [] ActionHandlerPool;13 identifie...
Adds a collection of analyses to the Worksheet at once
0 module [1];1 function_definition [2,3,9];2 function_name [] finish;3 parameters [4,5,6];4 identifier [] self;5 identifier [] result;6 default_parameter [7,8];7 identifier [] array_id;8 None [];9 block [10,19,23,27,91];10 expression_statement [11];11 assignment [12,13];12 identifier [] new_status;13 conditional_expres...
Sets the status of this job to 'success' or 'failure'.
0 module [1];1 function_definition [2,3,7];2 function_name [] end_output;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,21,34,48,70];8 expression_statement [9];9 assignment [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] ...
Write end of output info, and flush all output buffers.
0 module [1];1 function_definition [2,3,11];2 function_name [] plot_iv_curve;3 parameters [4,5,6,7,9];4 identifier [] a;5 identifier [] hold_v;6 identifier [] i;7 list_splat_pattern [8];8 identifier [] plt_args;9 dictionary_splat_pattern [10];10 identifier [] plt_kwargs;11 block [12,22,32,44,55,67,85,109];12 expression...
A single IV curve
0 module [1];1 function_definition [2,3,5];2 function_name [] asDict;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 dictionary [8,13,18,23];8 pair [9,10];9 string [] isError;10 attribute [11,12];11 identifier [] self;12 identifier [] isError;13 pair [14,15];14 string [] message;15 attribute ...
Returns a serializable object
0 module [1];1 function_definition [2,3,5];2 function_name [] fileids;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 list_comprehension [8,19];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] path;13 identifier [] join;14 argument_list [15,18];15 at...
Returns files from SemEval2007 Coarse-grain All-words WSD task.
0 module [1];1 function_definition [2,3,6];2 function_name [] parse_consumer_offsets;3 parameters [4,5];4 identifier [] cls;5 identifier [] json_file;6 block [7];7 with_statement [8,18];8 with_clause [9];9 with_item [10];10 as_pattern [11,16];11 call [12,13];12 identifier [] open;13 argument_list [14,15];14 identifier ...
Parse current offsets from json-file.
0 module [1];1 function_definition [2,3,33];2 function_name [] build;3 parameters [4,7,10,13,16,19,22,25,28];4 default_parameter [5,6];5 identifier [] id;6 None [];7 default_parameter [8,9];8 identifier [] name;9 None [];10 default_parameter [11,12];11 identifier [] revision;12 None [];13 default_parameter [14,15];14 i...
Trigger a BuildConfiguration by name or ID
0 module [1];1 function_definition [2,3,5];2 function_name [] _stringify_val;3 parameters [4];4 identifier [] val;5 block [6];6 if_statement [7,12,27];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] val;11 identifier [] list;12 block [13];13 return_statement [14];14 call [15,18];15 attr...
Convert the given value to string.
0 module [1];1 function_definition [2,3,6];2 function_name [] setblocking;3 parameters [4,5];4 identifier [] self;5 identifier [] blocking;6 block [7];7 for_statement [8,9,14];8 identifier [] sock;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] socket;13 argument_list [];14 block [15,22];15 e...
Set whether or not this message is blocking
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_current_label;3 parameters [4];4 identifier [] self;5 block [6,18];6 if_statement [7,15];7 comparison_operator [8,14] ==;8 call [9,10];9 identifier [] len;10 argument_list [11];11 attribute [12,13];12 identifier [] self;13 identifier [] _last;14 integer...
Get the label from the last line read
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_rule;3 parameters [4,5];4 identifier [] self;5 identifier [] tag;6 block [7,34];7 expression_statement [8];8 assignment [9,10];9 identifier [] resp;10 call [11,14];11 attribute [12,13];12 identifier [] requests;13 identifier [] delete;14 argument_list...
Remove a rule by tag
0 module [1];1 function_definition [2,3,7];2 function_name [] print_file_details_as_csv;3 parameters [4,5,6];4 identifier [] self;5 identifier [] fname;6 identifier [] col_headers;7 block [8,12,16,20,150];8 expression_statement [9];9 assignment [10,11];10 identifier [] line;11 string [];12 expression_statement [13];13 ...
saves as csv format
0 module [1];1 function_definition [2,3,6];2 function_name [] insert;3 parameters [4,5];4 identifier [] self;5 identifier [] events;6 block [7,15,28,41,56,60,80,91,100,108,116,124];7 if_statement [8,13];8 not_operator [9];9 call [10,11];10 identifier [] len;11 argument_list [12];12 identifier [] events;13 block [14];14...
Constructs and executes a MySQL insert for the given events.
0 module [1];1 function_definition [2,3,5];2 function_name [] target_to_ipv6_cidr;3 parameters [4];4 identifier [] target;5 block [6,15,25,57,68,86,98,116,122,134,145,151,163,174];6 expression_statement [7];7 assignment [8,9];8 identifier [] splitted;9 call [10,13];10 attribute [11,12];11 identifier [] target;12 identi...
Attempt to return a IPv6 CIDR list from a target string.
0 module [1];1 function_definition [2,3,11];2 function_name [] engines;3 parameters [4,5,6,7,8];4 identifier [] opts;5 identifier [] functions;6 identifier [] runners;7 identifier [] utils;8 default_parameter [9,10];9 identifier [] proxy;10 None [];11 block [12,28];12 expression_statement [13];13 assignment [14,15];14 ...
Return the master services plugins
0 module [1];1 function_definition [2,3,5];2 function_name [] close;3 parameters [4];4 identifier [] self;5 block [6,25];6 for_statement [7,8,11];7 identifier [] plugin;8 attribute [9,10];9 identifier [] self;10 identifier [] plugins;11 block [12];12 if_statement [13,18];13 call [14,15];14 identifier [] hasattr;15 argu...
Close the application and all installed plugins.
0 module [1];1 function_definition [2,3,5];2 function_name [] run;3 parameters [4];4 identifier [] self;5 block [6,13];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] _LOGGER;10 identifier [] info;11 argument_list [12];12 string [] Started;13 while_statement [14,15];14 True [];15 block [16,2...
Main thread function to maintain connection and receive remote status.
0 module [1];1 function_definition [2,3,6];2 function_name [] ref_file_from_bam;3 parameters [4,5];4 identifier [] bam_file;5 identifier [] data;6 block [7,45,149,159,171,179];7 expression_statement [8];8 assignment [9,10];9 identifier [] new_ref;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [...
Subset a fasta input file to only a fraction of input contigs.
0 module [1];1 function_definition [2,3,6];2 function_name [] unserialize;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,24,53,70,77];7 if_statement [8,13];8 comparison_operator [9,10] not in;9 string [] author;10 subscript [11,12];11 identifier [] data;12 string [] object;13 block [14];14 expr...
From JSON -> Activity object
0 module [1];1 function_definition [2,3,6];2 function_name [] _handle_wikilink;3 parameters [4,5];4 identifier [] self;5 identifier [] token;6 block [7,11,17,102];7 expression_statement [8];8 assignment [9,10];9 identifier [] title;10 None [];11 expression_statement [12];12 call [13,16];13 attribute [14,15];14 identifi...
Handle a case where a wikilink is at the head of the tokens.
0 module [1];1 function_definition [2,3,9];2 function_name [] findExtname;3 parameters [4,5,6];4 identifier [] fimg;5 identifier [] extname;6 default_parameter [7,8];7 identifier [] extver;8 None [];9 block [10,14,18,68];10 expression_statement [11];11 assignment [12,13];12 identifier [] i;13 integer [] 0;14 expression...
Returns the list number of the extension corresponding to EXTNAME given.
0 module [1];1 function_definition [2,3,6];2 function_name [] do_hotswap;3 parameters [4,5];4 identifier [] self;5 identifier [] msg;6 block [7,26,33,39,45];7 try_statement [8,23];8 block [9];9 expression_statement [10];10 call [11,18];11 attribute [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] self...
Attempt to hotswap the code
0 module [1];1 function_definition [2,3,5];2 function_name [] is_bot;3 parameters [4];4 identifier [] self;5 block [6,27];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _bot;11 None [];12 block [13];13 expression_statement [14];14 assignment [15,18];15 att...
Return ``True`` if the signed-in user is a bot, ``False`` otherwise.
0 module [1];1 function_definition [2,3,9];2 function_name [] unpack_bytes;3 parameters [4,5,6];4 identifier [] self;5 identifier [] obj_bytes;6 default_parameter [7,8];7 identifier [] encoding;8 None [];9 block [10,18,26,39,56];10 assert_statement [11];11 boolean_operator [12,15] or;12 attribute [13,14];13 identifier ...
Unpack a byte stream into a dictionary.
0 module [1];1 function_definition [2,3,6];2 function_name [] get;3 parameters [4,5];4 identifier [] cls;5 identifier [] uni_char;6 block [7,14,21,43,55];7 expression_statement [8];8 assignment [9,10];9 identifier [] uni_char;10 call [11,12];11 identifier [] unicod;12 argument_list [13];13 identifier [] uni_char;14 exp...
Return the Unicode block of the given Unicode character
0 module [1];1 function_definition [2,3,5];2 function_name [] _write_history;3 parameters [4];4 identifier [] self;5 block [6,16,29,37,48];6 if_statement [7,14];7 comparison_operator [8,13] is;8 subscript [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] data;12 string [] history_file;13 None [];14 bloc...
Write previously-calculated history lines back to the file
0 module [1];1 function_definition [2,3,15];2 function_name [] _certificate_required;3 parameters [4,5,6,9,12];4 identifier [] cls;5 identifier [] hostname;6 default_parameter [7,8];7 identifier [] port;8 identifier [] XCLI_DEFAULT_PORT;9 default_parameter [10,11];10 identifier [] ca_certs;11 None [];12 default_paramet...
returns true if connection should verify certificate
0 module [1];1 function_definition [2,3,7];2 function_name [] clear;3 parameters [4,5,6];4 identifier [] board;5 identifier [] term;6 identifier [] height;7 block [8];8 for_statement [9,10,14];9 identifier [] y;10 call [11,12];11 identifier [] xrange;12 argument_list [13];13 identifier [] height;14 block [15];15 print_...
Clear the droppings of the given board.
0 module [1];1 function_definition [2,3,8];2 function_name [] Indentation;3 parameters [4,5,6,7];4 identifier [] logical_line;5 identifier [] previous_logical;6 identifier [] indent_level;7 identifier [] previous_indent_level;8 block [9,16,41];9 expression_statement [10];10 assignment [11,12];11 identifier [] comment;1...
Use two spaces per indentation level.
0 module [1];1 function_definition [2,3,10];2 function_name [] _reduce_input;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] inputs;6 identifier [] reducer;7 default_parameter [8,9];8 identifier [] final;9 identifier [] NotImplemented;10 block [11,55,69];11 for_statement [12,15,32];12 pattern_list [13,14];1...
Iterate over input, collect values with the same key, and call the reducer for each unique key.
0 module [1];1 function_definition [2,3,6];2 function_name [] ProcessFlow;3 parameters [4,5];4 identifier [] self;5 identifier [] flow_processing_request;6 block [7,13,19,29,66,78,91,98,117,125,139];7 expression_statement [8];8 assignment [9,10];9 identifier [] client_id;10 attribute [11,12];11 identifier [] flow_proce...
The callback for the flow processing queue.
0 module [1];1 function_definition [2,3,10];2 function_name [] process_relation_class;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] relation_class;6 identifier [] context;7 default_parameter [8,9];8 identifier [] assert_declared;9 False [];10 block [11,19,27,35,41,47,77,85];11 expression_statement [12];12...
assign schema properties to the relation class and declare the table
0 module [1];1 function_definition [2,3,5];2 function_name [] download_files;3 parameters [4];4 identifier [] files;5 block [6];6 for_statement [7,10,11];7 tuple_pattern [8,9];8 identifier [] url;9 identifier [] file;10 identifier [] files;11 block [12,21,28,34];12 expression_statement [13];13 call [14,15];14 identifie...
download an array of files
0 module [1];1 function_definition [2,3,4];2 function_name [] __registerSeqStr;3 parameters [];4 block [5,29,53,72];5 expression_statement [6];6 assignment [7,8];7 identifier [] _SeqStr;8 lambda [9,11];9 lambda_parameters [10];10 identifier [] self;11 boolean_operator [12,28] or;12 () [13];13 boolean_operator [14,15] a...
helper function to make internal sequences printable
0 module [1];1 function_definition [2,3,6];2 function_name [] removefromreadergroup;3 parameters [4,5];4 identifier [] self;5 identifier [] groupname;6 block [7,16,26];7 expression_statement [8];8 assignment [9,12];9 pattern_list [10,11];10 identifier [] hresult;11 identifier [] hcontext;12 call [13,14];13 identifier [...
Remove a reader from a reader group
0 module [1];1 function_definition [2,3,8];2 function_name [] install_API_key;3 parameters [4,5];4 identifier [] api_key;5 default_parameter [6,7];6 identifier [] profile_name;7 string [] default;8 block [9,16,48];9 expression_statement [10];10 assignment [11,12];11 identifier [] fname;12 call [13,14];13 identifier [] ...
Put the given API key into the given profile name.
0 module [1];1 function_definition [2,3,7];2 function_name [] read;3 parameters [4,5,6];4 identifier [] self;5 identifier [] path;6 identifier [] environ;7 block [8,34,42,87];8 try_statement [9,18];9 block [10];10 expression_statement [11];11 assignment [12,13];12 identifier [] inp;13 call [14,15];14 identifier [] open...
Read data from file into this vexrc instance.
0 module [1];1 function_definition [2,3,5];2 function_name [] min_abs;3 parameters [4];4 identifier [] self;5 block [6,20,30];6 if_statement [7,14];7 comparison_operator [8,13] ==;8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] __len__;12 argument_list [];13 integer [] 0;14 block [15];15 return...
Returns minimum absolute value.
0 module [1];1 function_definition [2,3,9];2 function_name [] _get_tree_paths;3 parameters [4,5,6];4 identifier [] tree;5 identifier [] node_id;6 default_parameter [7,8];7 identifier [] depth;8 integer [] 0;9 block [10,26,34,42,111];10 if_statement [11,16];11 comparison_operator [12,13] ==;12 identifier [] node_id;13 a...
Returns all paths through the tree as list of node_ids
0 module [1];1 function_definition [2,3,5];2 function_name [] variables;3 parameters [4];4 identifier [] self;5 block [6,14,30,42,56];6 expression_statement [7];7 assignment [8,9];8 identifier [] url;9 binary_operator [10,13] +;10 attribute [11,12];11 identifier [] self;12 identifier [] base_url;13 string [] ts;14 expr...
All variables in the connected data source
0 module [1];1 function_definition [2,3,6];2 function_name [] add_node;3 parameters [4,5];4 identifier [] self;5 identifier [] node;6 block [7,18,27,33];7 if_statement [8,9];8 identifier [] _debug;9 block [10];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] Network;14 identifier [] _d...
Add a node to this network, let the node know which network it's on.
0 module [1];1 function_definition [2,3,8];2 function_name [] _load_options;3 parameters [4,5,6];4 identifier [] self;5 identifier [] container;6 dictionary_splat_pattern [7];7 identifier [] options;8 block [9,25];9 for_statement [10,11,16];10 identifier [] opt;11 call [12,15];12 attribute [13,14];13 identifier [] self...
Select backend specific loading options.
0 module [1];1 function_definition [2,3,6];2 function_name [] sponsor_tagged_image;3 parameters [4,5];4 identifier [] sponsor;5 identifier [] tag;6 block [7,44];7 if_statement [8,22];8 call [9,21];9 attribute [10,20];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] sponsor;14 identifier [] fil...
returns the corresponding url from the tagged image list.