sequence
stringlengths
388
5.57k
docstring
stringlengths
11
171
0 module [1];1 function_definition [2,3,20,22];2 function_name [] format_docstring;3 parameters [4,5,10,15];4 identifier [] elt;5 typed_default_parameter [6,7,9];6 identifier [] arg_comments;7 type [8];8 identifier [] dict;9 dictionary [];10 typed_default_parameter [11,12,14];11 identifier [] alt_doc_string;12 type [13...
Merge and format the docstring definition with `arg_comments` and `alt_doc_string`.
0 module [1];1 function_definition [2,3,5];2 function_name [] _image_loop;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,20,42];7 boolean_operator [8,11] and;8 attribute [9,10];9 identifier [] self;10 identifier [] progress_bar;11 comparison_operator [12,13] in;12 string [] tqdm;13 call [14,19];14 ...
Retrieve an iterable of images either with, or without a progress bar.
0 module [1];1 function_definition [2,3,8];2 function_name [] remaining_bytes;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] meta;7 True [];8 block [9,26];9 expression_statement [10];10 assignment [11,16];11 pattern_list [12,13];12 identifier [] pos;13 attribute [14,15];14 identifier ...
Returns the remaining, unread bytes from the buffer.
0 module [1];1 function_definition [2,3,8];2 function_name [] authenticate;3 parameters [4,5,6];4 identifier [] self;5 identifier [] request;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,15,23,36,49,59,68,78,110,119,128,137,149,187];9 expression_statement [10];10 assignment [11,14];11 attribute [12,1...
Authenticates a user based on the OIDC code flow.
0 module [1];1 function_definition [2,3,4];2 function_name [] _get_shells;3 parameters [];4 block [5,13,63];5 expression_statement [6];6 assignment [7,8];7 identifier [] start;8 call [9,12];9 attribute [10,11];10 identifier [] time;11 identifier [] time;12 argument_list [];13 if_statement [14,17,45];14 comparison_opera...
Return the valid shells on this system
0 module [1];1 function_definition [2,3,5];2 function_name [] _checksum;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,15];7 identifier [] line;8 list [9,12] [self._line1, self._line2];9 attribute [10,11];10 identifier [] self;11 identifier [] _line1;12 attribute [13,14];13 identifier [] self;14...
Performs the checksum for the current TLE.
0 module [1];1 function_definition [2,3,7];2 function_name [] _forward_mode;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 block [8,15,22,34,51,71];8 expression_statement [9];9 assignment [10,11];10 identifier [] X;11 type [12];12 attribute [13,14];13 identifier [] np;14 identif...
Forward mode differentiation for variables
0 module [1];1 function_definition [2,3,6];2 function_name [] from_apps;3 parameters [4,5];4 identifier [] cls;5 identifier [] apps;6 block [7,9,13,49];7 expression_statement [8];8 string [] Takes in an Apps and returns a VersionedProjectState matching it;9 expression_statement [10];10 assignment [11,12];11 identifier ...
Takes in an Apps and returns a VersionedProjectState matching it
0 module [1];1 function_definition [2,3,7];2 function_name [] backend_add;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] name;6 identifier [] backend;7 block [8,24,39,46,53];8 expression_statement [9];9 assignment [10,11];10 identifier [] oper;11 call [12,15];12 attribute [13,14];13 identifier [] cls;14 ident...
Add a backend into a webaccelerator
0 module [1];1 function_definition [2,3,5];2 function_name [] clear;3 parameters [4];4 identifier [] self;5 block [6,24,64];6 expression_statement [7];7 assignment [8,9];8 identifier [] value;9 binary_operator [10,13] /;10 attribute [11,12];11 identifier [] self;12 identifier [] _sum;13 call [14,17];14 attribute [15,16...
Return the mean estimate and reset the streaming statistics.
0 module [1];1 function_definition [2,3,9];2 function_name [] _load_lines;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] filename;6 identifier [] line_generator;7 identifier [] suite;8 identifier [] rules;9 block [10,14,115,122];10 expression_statement [11];11 assignment [12,13];12 identifier [] line_cou...
Load a suite with lines produced by the line generator.
0 module [1];1 function_definition [2,3,5];2 function_name [] unpack;3 parameters [4];4 identifier [] data;5 block [6,18,26,40];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] size;10 identifier [] position;11 call [12,15];12 attribute [13,14];13 identifier [] decoder;14 identifier ...
unpack from delimited data
0 module [1];1 function_definition [2,3,7];2 function_name [] getDefaultTMParams;3 parameters [4,5,6];4 identifier [] self;5 identifier [] inputSize;6 identifier [] numInputBits;7 block [8,17,58];8 expression_statement [9];9 assignment [10,11];10 identifier [] sampleSize;11 call [12,13];12 identifier [] int;13 argument...
Returns a good default set of parameters to use in the TM region.
0 module [1];1 function_definition [2,3,5];2 function_name [] _create_rubber_bands_action;3 parameters [4];4 identifier [] self;5 block [6,15,40,49,58,67,76,87,96,111];6 expression_statement [7];7 assignment [8,9];8 identifier [] icon;9 call [10,11];10 identifier [] resources_path;11 argument_list [12,13,14];12 string ...
Create action for toggling rubber bands.
0 module [1];1 function_definition [2,3,17,25];2 function_name [] shapeExprFor;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] id_;7 type [8];8 generic_type [9,10];9 identifier [] Union;10 type_parameter [11,15];11 type [12];12 attribute [13,14];13 identifier [] ShExJ;14 identifier [] sh...
Return the shape expression that corresponds to id
0 module [1];1 function_definition [2,3,5];2 function_name [] maybe_resume_consumer;3 parameters [4];4 identifier [] self;5 block [6,21];6 if_statement [7,19];7 boolean_operator [8,13] or;8 comparison_operator [9,12] is;9 attribute [10,11];10 identifier [] self;11 identifier [] _consumer;12 None [];13 not_operator [14]...
Check the current load and resume the consumer if needed.
0 module [1];1 function_definition [2,3,12];2 function_name [] _fromdata;3 parameters [4,5,6,7,8,9];4 identifier [] self;5 identifier [] code;6 identifier [] dtype;7 identifier [] count;8 identifier [] value;9 default_parameter [10,11];10 identifier [] name;11 None [];12 block [13,22,34,42,51];13 expression_statement [...
Initialize instance from arguments.
0 module [1];1 function_definition [2,3,5];2 function_name [] _read_message;3 parameters [4];4 identifier [] self;5 block [6,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] size;9 call [10,11];10 identifier [] int;11 argument_list [12];12 call [13,22];13 attribute [14,21];14 call [15,20];15 attribute ...
Reads a single size-annotated message from the server
0 module [1];1 function_definition [2,3,6];2 function_name [] _chunk_filter;3 parameters [4,5];4 identifier [] self;5 identifier [] extensions;6 block [7,24,96];7 if_statement [8,15];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] extensions;12 attribute [13,14];13 identifier [] six;1...
Create a filter from the extensions and ignore files
0 module [1];1 function_definition [2,3,9];2 function_name [] getextensibleindex;3 parameters [4,5,6,7,8];4 identifier [] bunchdt;5 identifier [] data;6 identifier [] commdct;7 identifier [] key;8 identifier [] objname;9 block [10,19,26,35,55];10 expression_statement [11];11 assignment [12,13];12 identifier [] theobjec...
get the index of the first extensible item
0 module [1];1 function_definition [2,3,5];2 function_name [] multi_session;3 parameters [4];4 identifier [] self;5 block [6,10,42];6 expression_statement [7];7 assignment [8,9];8 identifier [] _val;9 integer [] 0;10 if_statement [11,16];11 comparison_operator [12,13] in;12 string [] multi_session;13 attribute [14,15];...
convert the multi_session param a number
0 module [1];1 function_definition [2,3,11];2 function_name [] random_draft;3 parameters [4,8];4 typed_parameter [5,6];5 identifier [] card_class;6 type [7];7 identifier [] CardClass;8 default_parameter [9,10];9 identifier [] exclude;10 list [] [];11 block [12,17,24,28,32,96,138];12 import_from_statement [13,15];13 rel...
Return a deck of 30 random cards for the \a card_class
0 module [1];1 function_definition [2,3,11];2 function_name [] peak_interval;3 parameters [4,5,8];4 identifier [] data;5 default_parameter [6,7];6 identifier [] alpha;7 identifier [] _alpha;8 default_parameter [9,10];9 identifier [] npoints;10 identifier [] _npoints;11 block [12,20,31,38,55,65,73,79,91,97,110,119,125,1...
Identify interval using Gaussian kernel density estimator.
0 module [1];1 function_definition [2,3,5];2 function_name [] _normalize;3 parameters [4];4 identifier [] image;5 block [6,21,25,40,44];6 expression_statement [7];7 assignment [8,9];8 identifier [] offset;9 call [10,13];10 attribute [11,12];11 identifier [] tf;12 identifier [] constant;13 argument_list [14,15];14 ident...
Normalize the image to zero mean and unit variance.
0 module [1];1 function_definition [2,3,5];2 function_name [] remove_stale_sockets;3 parameters [4];4 identifier [] self;5 block [6,61];6 if_statement [7,14];7 comparison_operator [8,13] is not;8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] opts;12 identifier [] max_idle_time_seconds;13 N...
Removes stale sockets then adds new ones if pool is too small.
0 module [1];1 function_definition [2,3,5];2 function_name [] dynamic_import;3 parameters [4];4 identifier [] import_string;5 block [6,15,29,47,58];6 expression_statement [7];7 assignment [8,9];8 identifier [] lastdot;9 call [10,13];10 attribute [11,12];11 identifier [] import_string;12 identifier [] rfind;13 argument_...
Dynamically import a module or object.
0 module [1];1 function_definition [2,3,8];2 function_name [] file_envs;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] load;7 None [];8 block [9,18,26];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] load;12 None [];13 block [14];14 expression_statement [15];...
Return environments for all backends for requests from fileclient
0 module [1];1 function_definition [2,3,5];2 function_name [] dump;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,8,14];7 identifier [] modpath;8 call [9,10];9 identifier [] sorted;10 argument_list [11];11 attribute [12,13];12 identifier [] self;13 identifier [] map;14 block [15,21,37];15 expressi...
Prints out the contents of the import map.
0 module [1];1 function_definition [2,3,15];2 function_name [] plot_prep_methods;3 parameters [4,5,6,7,8,9,12];4 identifier [] df;5 identifier [] prep;6 identifier [] prepi;7 identifier [] out_file_base;8 identifier [] outtype;9 default_parameter [10,11];10 identifier [] title;11 None [];12 default_parameter [13,14];13...
Plot comparison between BAM preparation methods.
0 module [1];1 function_definition [2,3,8];2 function_name [] roots;3 parameters [4,5,6,7];4 identifier [] cls;5 identifier [] degree;6 identifier [] domain;7 identifier [] kind;8 block [9,18,29];9 expression_statement [10];10 assignment [11,12];11 identifier [] basis_coefs;12 call [13,16];13 attribute [14,15];14 ident...
Return optimal collocation nodes for some orthogonal polynomial.
0 module [1];1 function_definition [2,3,4];2 function_name [] current_version;3 parameters [];4 block [5,8,13,27,33,39,42,47,53];5 import_statement [6];6 dotted_name [7];7 identifier [] setuptools;8 expression_statement [9];9 assignment [10,11];10 identifier [] version;11 list [12] [None];12 None [];13 function_definit...
Get the current version number from setup.py
0 module [1];1 function_definition [2,3,5];2 function_name [] renew_session;3 parameters [4];4 identifier [] self;5 block [6,42,62,80,93,109,115];6 if_statement [7,35];7 boolean_operator [8,30] and;8 () [9];9 boolean_operator [10,19] or;10 () [11];11 not_operator [12];12 comparison_operator [13,14] in;13 string [] user...
Have to be called on user actions to check and renew session
0 module [1];1 function_definition [2,3,7];2 function_name [] branchlist2branches;3 parameters [4,5,6];4 identifier [] data;5 identifier [] commdct;6 identifier [] branchlist;7 block [8,16,24,28,38,59,69,87];8 expression_statement [9];9 assignment [10,11];10 identifier [] objkey;11 call [12,15];12 attribute [13,14];13 ...
get branches from the branchlist
0 module [1];1 function_definition [2,3,4];2 function_name [] image_undo;3 parameters [];4 block [5,19,31,38];5 if_statement [6,12];6 comparison_operator [7,11] <=;7 call [8,9];8 identifier [] len;9 argument_list [10];10 identifier [] image_undo_list;11 integer [] 0;12 block [13,18];13 expression_statement [14];14 call...
Undoes the last coarsen or smooth command.
0 module [1];1 function_definition [2,3,5];2 function_name [] _read_cache_from_file;3 parameters [4];4 identifier [] self;5 block [6,10,50];6 expression_statement [7];7 assignment [8,9];8 identifier [] cache;9 dictionary [];10 try_statement [11,44];11 block [12];12 with_statement [13,26];13 with_clause [14];14 with_ite...
Read the contents of the cache from a file on disk.
0 module [1];1 function_definition [2,3,5];2 function_name [] _setToDefaults;3 parameters [4];4 identifier [] self;5 block [6,66,78,86];6 try_statement [7,39];7 block [8];8 expression_statement [9];9 assignment [10,11];10 identifier [] tmpObj;11 call [12,15];12 attribute [13,14];13 identifier [] cfgpars;14 identifier [...
Load the default parameter settings into the GUI.
0 module [1];1 function_definition [2,3,6];2 function_name [] lookup;3 parameters [4,5];4 identifier [] self;5 identifier [] topic;6 block [7,14];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] nsq;11 identifier [] assert_valid_topic_name;12 argument_list [13];13 identifier [] topic;14 ret...
Returns producers for a topic.
0 module [1];1 function_definition [2,3,6];2 function_name [] _ExecuteTransaction;3 parameters [4,5];4 identifier [] self;5 identifier [] transaction;6 block [7,56];7 function_definition [8,9,11];8 function_name [] Action;9 parameters [10];10 identifier [] connection;11 block [12,21,39,48];12 expression_statement [13];...
Get connection from pool and execute transaction.
0 module [1];1 function_definition [2,3,7];2 function_name [] linkorcopy;3 parameters [4,5,6];4 identifier [] self;5 identifier [] src;6 identifier [] dst;7 block [8,85];8 if_statement [9,17,36,53];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier [] isdir;...
hardlink src file to dst if possible, otherwise copy.
0 module [1];1 function_definition [2,3,6];2 function_name [] load;3 parameters [4,5];4 identifier [] self;5 identifier [] model;6 block [7,19];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _dawg;13 identifier [] load;14 argument_list [15];15 ca...
Load pickled DAWG from disk.
0 module [1];1 function_definition [2,3,7];2 function_name [] accel_toggle_transparency;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 block [8,17,33];8 expression_statement [9];9 assignment [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] transparency_toggled...
Callback to toggle transparency.
0 module [1];1 function_definition [2,3,5];2 function_name [] shutdown_connections;3 parameters [4];4 identifier [] self;5 block [6,21];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] is_shutting_down;11 block [12];12 expression_statement [13];13 call [14,17];14 attribu...
This method closes the connections to RabbitMQ.
0 module [1];1 function_definition [2,3,9];2 function_name [] create_command;3 parameters [4,5,6,7,8];4 identifier [] principal;5 identifier [] permissions;6 identifier [] endpoint_plus_path;7 identifier [] notify_email;8 identifier [] notify_message;9 block [10,21,27,33,39,83,91,116,126];10 if_statement [11,13];11 not...
Executor for `globus endpoint permission create`
0 module [1];1 function_definition [2,3,5];2 function_name [] without_extra_phrases;3 parameters [4];4 identifier [] self;5 block [6,19,30,41,52,113];6 expression_statement [7];7 assignment [8,9];8 identifier [] name;9 call [10,13];10 attribute [11,12];11 identifier [] re;12 identifier [] sub;13 argument_list [14,15,16...
Removes parenthethical and dashed phrases
0 module [1];1 function_definition [2,3,14];2 function_name [] from_cli_multi_ifos;3 parameters [4,5,6,7,8,9,12];4 identifier [] opt;5 identifier [] length_dict;6 identifier [] delta_f_dict;7 identifier [] low_frequency_cutoff_dict;8 identifier [] ifos;9 default_parameter [10,11];10 identifier [] strain_dict;11 None []...
Get the PSD for all ifos when using the multi-detector CLI
0 module [1];1 function_definition [2,3,8,10];2 function_name [] trunc_str;3 parameters [4];4 typed_parameter [5,6];5 identifier [] s;6 type [7];7 identifier [] str;8 type [9];9 identifier [] str;10 block [11,61];11 if_statement [12,18];12 comparison_operator [13,17] >;13 call [14,15];14 identifier [] len;15 argument_l...
Truncate strings to maximum length.
0 module [1];1 function_definition [2,3,5];2 function_name [] register_plugin_dir;3 parameters [4];4 identifier [] path;5 block [6,9];6 import_statement [7];7 dotted_name [8];8 identifier [] glob;9 for_statement [10,11,19];10 identifier [] f;11 call [12,15];12 attribute [13,14];13 identifier [] glob;14 identifier [] gl...
Find plugins in given directory
0 module [1];1 function_definition [2,3,8];2 function_name [] removeFileSafely;3 parameters [4,5];4 identifier [] filename;5 default_parameter [6,7];6 identifier [] clobber;7 True [];8 block [9];9 if_statement [10,21];10 boolean_operator [11,14] and;11 comparison_operator [12,13] is not;12 identifier [] filename;13 Non...
Delete the file specified, but only if it exists and clobber is True.
0 module [1];1 function_definition [2,3,6];2 function_name [] xor;3 parameters [4,5];4 identifier [] a;5 identifier [] b;6 block [7];7 return_statement [8];8 call [9,10];9 identifier [] bytearray;10 generator_expression [11,14];11 binary_operator [12,13] ^;12 identifier [] i;13 identifier [] j;14 for_in_clause [15,18];...
Bitwise xor on equal length bytearrays.
0 module [1];1 function_definition [2,3,6];2 function_name [] command;3 parameters [4,5];4 identifier [] state;5 identifier [] args;6 block [7,21,27,32];7 if_statement [8,14];8 comparison_operator [9,13] >;9 call [10,11];10 identifier [] len;11 argument_list [12];12 identifier [] args;13 integer [] 1;14 block [15,20];1...
Fix cache issues caused by schema pre-v4.
0 module [1];1 function_definition [2,3,5];2 function_name [] data_layout;3 parameters [4];4 identifier [] self;5 block [6];6 with_statement [7,20];7 with_clause [8];8 with_item [9];9 as_pattern [10,18];10 call [11,14];11 attribute [12,13];12 identifier [] ffi;13 identifier [] OutputString;14 argument_list [15];15 keyw...
This module's data layout specification, as a string.
0 module [1];1 function_definition [2,3,6];2 function_name [] on_isupport_invex;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,15,24];7 if_statement [8,10];8 not_operator [9];9 identifier [] value;10 block [11];11 expression_statement [12];12 assignment [13,14];13 identifier [] value;14 identi...
Server allows invite exceptions.
0 module [1];1 function_definition [2,3,6];2 function_name [] put_coord_inside;3 parameters [4,5];4 identifier [] lattice;5 identifier [] cart_coordinate;6 block [7,16];7 expression_statement [8];8 assignment [9,10];9 identifier [] fc;10 call [11,14];11 attribute [12,13];12 identifier [] lattice;13 identifier [] get_fr...
converts a cartesian coordinate such that it is inside the unit cell.
0 module [1];1 function_definition [2,3,4];2 function_name [] pattern_logic_srt;3 parameters [];4 block [5];5 if_statement [6,17,30,46,60];6 boolean_operator [7,12] and;7 attribute [8,11];8 attribute [9,10];9 identifier [] Config;10 identifier [] options;11 identifier [] pattern_files;12 attribute [13,16];13 attribute ...
Return patterns to be used for searching srt subtitles.
0 module [1];1 function_definition [2,3,5,13];2 function_name [] non_fluents;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] Dict;8 type_parameter [9,11];9 type [10];10 identifier [] str;11 type [12];12 identifier [] PVariable;13 block [14];14 return_statement [15];15 dictionary_co...
Returns non-fluent pvariables.
0 module [1];1 function_definition [2,3,8];2 function_name [] generate_filename;3 parameters [4,5,6];4 identifier [] self;5 identifier [] mark;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,17,30,40,50,63,73,107,123,138];9 expression_statement [10];10 assignment [11,12];11 identifier [] kwargs;12 call...
Comes up with a good filename for the watermarked image
0 module [1];1 function_definition [2,3,8];2 function_name [] repeat;3 parameters [4,5];4 identifier [] obj;5 default_parameter [6,7];6 identifier [] times;7 None [];8 block [9,24];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] times;12 None [];13 block [14];14 return_statement [15];15 call [...
Make an iterator that returns object over and over again.
0 module [1];1 function_definition [2,3,8];2 function_name [] __pull_image_info;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] title;6 identifier [] imageinfo;7 identifier [] normalized;8 block [9];9 for_statement [10,11,12];10 identifier [] info;11 identifier [] imageinfo;12 block [13,23,27,44,50,59,75];1...
Pull image INFO from API response and insert
0 module [1];1 function_definition [2,3,13];2 function_name [] srandmember;3 parameters [4,5,6,9,10];4 identifier [] self;5 identifier [] key;6 default_parameter [7,8];7 identifier [] count;8 None [];9 keyword_separator [];10 default_parameter [11,12];11 identifier [] encoding;12 identifier [] _NOTSET;13 block [14,19,3...
Get one or multiple random members from a set.
0 module [1];1 function_definition [2,3,7];2 function_name [] add;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] name;6 identifier [] value;7 block [8,15,21];8 expression_statement [9];9 assignment [10,11];10 identifier [] attr;11 call [12,13];12 identifier [] cls;13 argument_list [14];14 identifier [] value;...
Add a name-value pair to the enumeration.
0 module [1];1 function_definition [2,3,5];2 function_name [] raw;3 parameters [4];4 identifier [] config;5 block [6,12,18,25];6 expression_statement [7];7 assignment [8,9];8 identifier [] client;9 call [10,11];10 identifier [] Client;11 argument_list [];12 expression_statement [13];13 call [14,17];14 attribute [15,16]...
Dump the contents of LDAP to console in raw format.
0 module [1];1 function_definition [2,3,5];2 function_name [] blockshapes;3 parameters [4];4 identifier [] self;5 block [6,50];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _blockshapes;11 None [];12 block [13];13 if_statement [14,17,27];14 attribute [15,...
Raster all bands block shape.
0 module [1];1 function_definition [2,3,10];2 function_name [] relation_for_unit;3 parameters [4,7];4 default_parameter [5,6];5 identifier [] unit;6 None [];7 default_parameter [8,9];8 identifier [] rid;9 None [];10 block [11,19,31,55,61];11 expression_statement [12];12 assignment [13,14];13 identifier [] unit;14 boole...
Get the json represenation of a unit's relation
0 module [1];1 function_definition [2,3,6];2 function_name [] copy_with_new_str;3 parameters [4,5];4 identifier [] self;5 identifier [] new_str;6 block [7,32];7 expression_statement [8];8 assignment [9,10];9 identifier [] old_atts;10 call [11,12];11 identifier [] dict;12 generator_expression [13,16,21];13 tuple [14,15]...
Copies the current FmtStr's attributes while changing its string.
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_build_env;3 parameters [4];4 identifier [] env;5 block [6,10,17,30,59];6 expression_statement [7];7 assignment [8,9];8 identifier [] env_override;9 string [];10 if_statement [11,14];11 comparison_operator [12,13] is;12 identifier [] env;13 None [];14 bl...
Get build environment overrides dictionary to use in build process
0 module [1];1 function_definition [2,3,5];2 function_name [] check_images;3 parameters [4];4 identifier [] data;5 block [6,20,38,66];6 if_statement [7,12];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] data;11 identifier [] ndarray;12 block [13];13 expression_statement [14];14 assignm...
Check and reformat input images if needed
0 module [1];1 function_definition [2,3,5];2 function_name [] from_jd;3 parameters [4];4 identifier [] jd;5 block [6,12,21,28,37,44,53,60,69,79];6 expression_statement [7];7 assignment [8,9];8 identifier [] d;9 binary_operator [10,11] -;10 identifier [] jd;11 identifier [] EPOCH;12 expression_statement [13];13 assignme...
Calculate Mayan long count from Julian day
0 module [1];1 function_definition [2,3,6];2 function_name [] readinto;3 parameters [4,5];4 identifier [] self;5 identifier [] buf;6 block [7,11,18,119];7 expression_statement [8];8 assignment [9,10];9 identifier [] got;10 integer [] 0;11 expression_statement [12];12 assignment [13,14];13 identifier [] vbuf;14 call [15...
Zero-copy read directly into buffer.
0 module [1];1 function_definition [2,3,5];2 function_name [] PrintAllTables;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] goodlogging;11 identifier [] Log;12 identifier [] Info;13 argument_list [14,15];14 string [] ...
Prints contents of every table.
0 module [1];1 function_definition [2,3,6];2 function_name [] delete_role;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,16,29,41];7 expression_statement [8];8 assignment [9,10];9 identifier [] client;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _client;14 argumen...
Delete a role by first deleting all inline policies.
0 module [1];1 function_definition [2,3,15];2 function_name [] mail_admins;3 parameters [4,5,6,9,12];4 identifier [] subject;5 identifier [] message;6 default_parameter [7,8];7 identifier [] fail_silently;8 False [];9 default_parameter [10,11];10 identifier [] connection;11 None [];12 default_parameter [13,14];13 ident...
Sends a message to the admins, as defined by the DBBACKUP_ADMINS setting.
0 module [1];1 function_definition [2,3,6];2 function_name [] on_raw_375;3 parameters [4,5];4 identifier [] self;5 identifier [] message;6 block [7,15];7 expression_statement [8];8 await [9];9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _registration_completed;13 argument_list [14];14 ident...
Start message of the day.
0 module [1];1 function_definition [2,3,6];2 function_name [] redirect_uris;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,25,37,46];7 if_statement [8,15];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] value;12 attribute [13,14];13 identifier [] six;14 ident...
Validate and store redirect URIs for client.
0 module [1];1 function_definition [2,3,5];2 function_name [] runstring;3 parameters [4];4 identifier [] self;5 block [6,16,22];6 expression_statement [7];7 assignment [8,9];8 identifier [] cfile;9 binary_operator [10,13] %;10 attribute [11,12];11 identifier [] self;12 identifier [] template;13 attribute [14,15];14 ide...
Return the run number and the file name.
0 module [1];1 function_definition [2,3,8];2 function_name [] ship_move;3 parameters [4,5,6,7];4 identifier [] ship;5 identifier [] x;6 identifier [] y;7 identifier [] speed;8 block [9];9 expression_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] click;13 identifier [] echo;14 argument_list [15];15...
Moves SHIP to the new location X,Y.
0 module [1];1 function_definition [2,3,5];2 function_name [] GetDictToFormat;3 parameters [4];4 identifier [] self;5 block [6,10,33];6 expression_statement [7];7 assignment [8,9];8 identifier [] d;9 dictionary [];10 for_statement [11,14,21];11 pattern_list [12,13];12 identifier [] k;13 identifier [] v;14 call [15,20];...
Return a copy of self as a dict, suitable for passing to FormatProblem
0 module [1];1 function_definition [2,3,8];2 function_name [] id_to_did;3 parameters [4,5];4 identifier [] did_id;5 default_parameter [6,7];6 identifier [] method;7 string [] op;8 block [9,25,46,62];9 if_statement [10,15];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [] did_id;14 id...
Return an Ocean DID from given a hex id.
0 module [1];1 function_definition [2,3,5];2 function_name [] _flush;3 parameters [4];4 identifier [] self;5 block [6,13];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] enabled;11 block [12];12 return_statement [];13 try_statement [14,47];14 block [15];15 try_statement...
Decorator for flushing handlers with an lock, catching exceptions
0 module [1];1 function_definition [2,3,7];2 function_name [] find_shape;3 parameters [4,5,6];4 identifier [] self;5 identifier [] canvas_x;6 identifier [] canvas_y;7 block [8,25,78,89];8 expression_statement [9];9 assignment [10,14];10 pattern_list [11,12,13];11 identifier [] shape_x;12 identifier [] shape_y;13 identi...
Look up shape based on canvas coordinates.
0 module [1];1 function_definition [2,3,8];2 function_name [] on_message;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] message_id_service;6 identifier [] contact_id_service;7 identifier [] content;8 block [9];9 try_statement [10,34,46];10 block [11];11 expression_statement [12];12 assignment [13,14];13 id...
To use as callback in message service backend
0 module [1];1 function_definition [2,3,8];2 function_name [] no_duplicates_sections2d;3 parameters [4,5];4 identifier [] sections2d;5 default_parameter [6,7];6 identifier [] prt;7 None [];8 block [9,13,21,37,79];9 expression_statement [10];10 assignment [11,12];11 identifier [] no_dups;12 True [];13 expression_stateme...
Check for duplicate header GO IDs in the 2-D sections variable.
0 module [1];1 function_definition [2,3,5];2 function_name [] profile_delete;3 parameters [4];4 identifier [] self;5 block [6,12,27,36,113];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] validate_profile_exists;11 argument_list [];12 expression_statement [13];13 assign...
Delete an existing profile.
0 module [1];1 function_definition [2,3,11];2 function_name [] update_forum_redirects_counter;3 parameters [4,5,6,7,8,9];4 identifier [] sender;5 identifier [] forum;6 identifier [] user;7 identifier [] request;8 identifier [] response;9 dictionary_splat_pattern [10];10 identifier [] kwargs;11 block [12];12 if_statemen...
Handles the update of the link redirects counter associated with link forums.
0 module [1];1 function_definition [2,3,9];2 function_name [] change_view;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] request;6 identifier [] object_id;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10,20,28,36,61];10 expression_statement [11];11 assignment [12,13];12 identifier [] page;...
Enforce custom permissions for the page instance.
0 module [1];1 function_definition [2,3,12];2 function_name [] show_rich_text;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] text;6 default_parameter [7,8];7 identifier [] collapse;8 False [];9 default_parameter [10,11];10 identifier [] img_path;11 string [];12 block [13,19,25,42];13 expression_statement [...
Show text in rich mode
0 module [1];1 function_definition [2,3,5];2 function_name [] binary_size;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 () [8];8 binary_operator [9,40] +;9 binary_operator [10,29] +;10 binary_operator [11,28] +;11 binary_operator [12,27] +;12 binary_operator [13,16] +;13 binary_operator [14...
Return the number of bytes to store this group and its parameters.
0 module [1];1 function_definition [2,3,5];2 function_name [] log_pin_request;3 parameters [4];4 identifier [] self;5 block [6,33];6 if_statement [7,16];7 boolean_operator [8,11] and;8 attribute [9,10];9 identifier [] self;10 identifier [] pin_logging;11 comparison_operator [12,15] is not;12 attribute [13,14];13 identi...
Log the pin if needed.
0 module [1];1 function_definition [2,3,6];2 function_name [] to_native_units;3 parameters [4,5];4 identifier [] self;5 identifier [] motor;6 block [7,30];7 assert_statement [8,18];8 comparison_operator [9,15] <=;9 call [10,11];10 identifier [] abs;11 argument_list [12];12 attribute [13,14];13 identifier [] self;14 ide...
Return the native speed measurement required to achieve desired rotations-per-minute
0 module [1];1 function_definition [2,3,8];2 function_name [] check_dissociated;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] cutoff;7 float [] 1.2;8 block [9,13,30,46,60,71,95,102];9 expression_statement [10];10 assignment [11,12];11 identifier [] dissociated;12 False [];13 if_state...
Check if adsorbate dissociates
0 module [1];1 function_definition [2,3,7];2 function_name [] _reduction_output_shape;3 parameters [4,5,6];4 identifier [] x;5 identifier [] output_shape;6 identifier [] reduced_dim;7 block [8,51,88];8 if_statement [9,12];9 comparison_operator [10,11] is;10 identifier [] output_shape;11 None [];12 block [13];13 if_stat...
Helper function to reduce_sum, etc.
0 module [1];1 function_definition [2,3,5];2 function_name [] will_tag;3 parameters [4];4 identifier [] self;5 block [6,16,65];6 expression_statement [7];7 assignment [8,9];8 identifier [] wanttags;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] retrieve_config;13 argument_list [14,15];14 str...
Check whether the feed should be tagged
0 module [1];1 function_definition [2,3,7];2 function_name [] side_task;3 parameters [4,5];4 identifier [] pipe;5 list_splat_pattern [6];6 identifier [] side_jobs;7 block [8,14,29,39];8 assert_statement [9,13];9 call [10,11];10 identifier [] iterable;11 argument_list [12];12 identifier [] pipe;13 string [] side_task ne...
allows you to run a function in a pipeline without affecting the data
0 module [1];1 function_definition [2,3,7];2 function_name [] _calculate_session_expiry;3 parameters [4,5,6];4 identifier [] self;5 identifier [] request;6 identifier [] user_info;7 block [8,17,26,37,45,51,61];8 expression_statement [9];9 assignment [10,11];10 identifier [] access_token_expiry_timestamp;11 call [12,15]...
Returns the number of seconds after which the Django session should expire.
0 module [1];1 function_definition [2,3,14];2 function_name [] _extract_mask_distance;3 parameters [4,5,11];4 identifier [] image;5 default_parameter [6,7];6 identifier [] mask;7 call [8,9];8 identifier [] slice;9 argument_list [10];10 None [];11 default_parameter [12,13];12 identifier [] voxelspacing;13 None [];14 blo...
Internal, single-image version of `mask_distance`.
0 module [1];1 function_definition [2,3,7];2 function_name [] check_vip_ip;3 parameters [4,5,6];4 identifier [] self;5 identifier [] ip;6 identifier [] environment_vip;7 block [8,16];8 expression_statement [9];9 assignment [10,11];10 identifier [] uri;11 binary_operator [12,13] %;12 string [] api/ipv4/ip/%s/environment...
Check available ip in environment vip
0 module [1];1 function_definition [2,3,5];2 function_name [] refresh;3 parameters [4];4 identifier [] self;5 block [6,14,23];6 expression_statement [7];7 assignment [8,9];8 identifier [] table;9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] tableType;13 argument_list [];14 if_statement [15,1...
Commits changes stored in the interface to the database.
0 module [1];1 function_definition [2,3,8];2 function_name [] tags;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] extra_params;7 None [];8 block [9];9 return_statement [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] api;15 identifi...
All Tags in this Space
0 module [1];1 function_definition [2,3,5];2 function_name [] log_output;3 parameters [4];4 identifier [] f;5 block [6,40];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_fn;14 parame...
Logs the output value.
0 module [1];1 function_definition [2,3,6];2 function_name [] _notify_single_item;3 parameters [4,5];4 identifier [] self;5 identifier [] item;6 block [7,13,134];7 expression_statement [8];8 assignment [9,10];9 identifier [] triggered_channels;10 call [11,12];11 identifier [] set;12 argument_list [];13 for_statement [1...
Route inbound items to individual channels
0 module [1];1 function_definition [2,3,6];2 function_name [] _handle_files;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,17,23,132];7 expression_statement [8];8 assignment [9,10];9 identifier [] initial;10 call [11,14];11 attribute [12,13];12 identifier [] data;13 identifier [] get;14 argumen...
Handle new files being uploaded