sequence
stringlengths
388
5.57k
docstring
stringlengths
11
171
0 module [1];1 function_definition [2,3,4];2 function_name [] generate_rsa_key_pair;3 parameters [];4 block [5,24,51,85];5 expression_statement [6];6 assignment [7,8];7 identifier [] key;8 call [9,12];9 attribute [10,11];10 identifier [] rsa;11 identifier [] generate_private_key;12 argument_list [13,18,21];13 keyword_a...
Create public and private ssh-keys.
0 module [1];1 function_definition [2,3,5];2 function_name [] generate_events_list;3 parameters [4];4 identifier [] generator;5 block [6];6 if_statement [7,9,36];7 not_operator [8];8 identifier [] localized_events;9 block [10];10 expression_statement [11];11 assignment [12,17];12 subscript [13,16];13 attribute [14,15];...
Populate the event_list variable to be used in jinja templates
0 module [1];1 function_definition [2,3,6];2 function_name [] mavlink_packet;3 parameters [4,5];4 identifier [] self;5 identifier [] m;6 block [7];7 if_statement [8,15];8 comparison_operator [9,14] ==;9 call [10,13];10 attribute [11,12];11 identifier [] m;12 identifier [] get_type;13 argument_list [];14 string [] GLOBA...
get time from mavlink ATTITUDE
0 module [1];1 function_definition [2,3,5];2 function_name [] read_dataset_metadata;3 parameters [4];4 identifier [] self;5 block [6,12,37];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] dataset_meta;10 block [11];11 return_statement [];12 expression_statement [13];13 call [14,15];14 ident...
Read `dataset_meta` field from bucket
0 module [1];1 function_definition [2,3,7,9];2 function_name [] dumps;3 parameters [4,5];4 identifier [] obj;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 type [8];8 identifier [] str;9 block [10];10 return_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] json;14 identifier [] dumps;15 arg...
Serialize a BioC ``obj`` to a JSON formatted ``str``.
0 module [1];1 function_definition [2,3,6];2 function_name [] findRoleID;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,32];7 for_statement [8,9,10];8 identifier [] r;9 identifier [] self;10 block [11,30];11 if_statement [12,25];12 comparison_operator [13,20] ==;13 call [14,19];14 attribute [15...
searches the roles by name and returns the role's ID
0 module [1];1 function_definition [2,3,6];2 function_name [] _setStyle;3 parameters [4,5];4 identifier [] node;5 identifier [] styleMap;6 block [7,9,28,56];7 expression_statement [8];8 identifier [] u;9 expression_statement [10];10 assignment [11,12];11 identifier [] fixedStyle;12 call [13,16];13 attribute [14,15];14 ...
u"""Sets the style attribute of a node to the dictionary ``styleMap``.
0 module [1];1 function_definition [2,3,5];2 function_name [] domain;3 parameters [4];4 identifier [] self;5 block [6,30];6 expression_statement [7];7 assignment [8,9];8 identifier [] remove_pac;9 call [10,27];10 attribute [11,26];11 call [12,23];12 attribute [13,22];13 call [14,19];14 attribute [15,18];15 attribute [1...
Return domain from the url
0 module [1];1 function_definition [2,3,6];2 function_name [] addNode;3 parameters [4,5];4 identifier [] self;5 identifier [] node;6 block [7,17];7 expression_statement [8];8 assignment [9,16];9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] mybldgbuids;13 attribute [14,15];14 identifier ...
Update the shared map with my in-construction node
0 module [1];1 function_definition [2,3,9];2 function_name [] _construct_timeseries;3 parameters [4,5,6];4 identifier [] self;5 identifier [] timeseries;6 default_parameter [7,8];7 identifier [] constraints;8 dictionary [];9 block [10,18,27];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifie...
wraps response_from for timeseries calls, returns the resulting dict
0 module [1];1 function_definition [2,3,6];2 function_name [] between;3 parameters [4,5];4 identifier [] y;5 identifier [] z;6 block [7];7 return_statement [8];8 call [9,10];9 identifier [] _combinable;10 argument_list [11];11 lambda [12,14];12 lambda_parameters [13];13 identifier [] x;14 boolean_operator [15,20] or;15...
Greater than or equal to y and less than z.
0 module [1];1 function_definition [2,3,6];2 function_name [] _zeep_to_dict;3 parameters [4,5];4 identifier [] cls;5 identifier [] obj;6 block [7,14,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] res;10 call [11,12];11 identifier [] serialize_object;12 argument_list [13];13 identifier [] obj;14 expr...
Convert a zeep object to a dictionary.
0 module [1];1 function_definition [2,3,4];2 function_name [] _check_apt_get;3 parameters [];4 block [5,9,76];5 expression_statement [6];6 assignment [7,8];7 identifier [] check;8 False [];9 if_statement [10,15];10 comparison_operator [11,12] not in;11 string [] TESTING;12 attribute [13,14];13 identifier [] os;14 ident...
Check if apio can be installed through apt-get
0 module [1];1 function_definition [2,3,6];2 function_name [] run_ajax_spider;3 parameters [4,5];4 identifier [] self;5 identifier [] target_url;6 block [7,21,32,72];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] logger;13 identifier [] debug;14 ...
Run AJAX Spider against a URL.
0 module [1];1 function_definition [2,3,6];2 function_name [] migrate;3 parameters [4,5];4 identifier [] dest_datastore;5 identifier [] source_datastore;6 block [7];7 for_statement [8,9,14];8 identifier [] uid;9 call [10,13];10 attribute [11,12];11 identifier [] source_datastore;12 identifier [] list;13 argument_list [...
Copy all records from source_datastore to dest_datastore
0 module [1];1 function_definition [2,3,8];2 function_name [] show_port;3 parameters [4,5,6];4 identifier [] self;5 identifier [] port;6 dictionary_splat_pattern [7];7 identifier [] _params;8 block [9];9 return_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] get;14 argument_li...
Fetches information of a certain port.
0 module [1];1 function_definition [2,3,6];2 function_name [] query;3 parameters [4,5];4 identifier [] transport;5 identifier [] query;6 block [7];7 with_statement [8,17];8 with_clause [9];9 with_item [10];10 as_pattern [11,15];11 call [12,13];12 identifier [] CommandLineClient;13 argument_list [14];14 identifier [] tr...
Query the Riemann server
0 module [1];1 function_definition [2,3,6];2 function_name [] add;3 parameters [4,5];4 identifier [] self;5 identifier [] dist;6 block [7,37,57];7 expression_statement [8];8 assignment [9,10];9 identifier [] new_path;10 () [11];11 boolean_operator [12,19] and;12 comparison_operator [13,16] not in;13 attribute [14,15];1...
Add `dist` to the distribution map
0 module [1];1 function_definition [2,3,6];2 function_name [] height_water_critical;3 parameters [4,5];4 identifier [] FlowRate;5 identifier [] Width;6 block [7,21];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] ut;11 identifier [] check_range;12 argument_list [13,17];13 list [14,15,16] [...
Return the critical local water depth.
0 module [1];1 function_definition [2,3,6];2 function_name [] getVolInfo;3 parameters [4];4 list_splat_pattern [5];5 identifier [] paths;6 block [7,19,30,39,49,59];7 expression_statement [8];8 assignment [9,10];9 identifier [] path;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 identif...
Retrieve volume usage info for the given path.
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_users;3 parameters [4,5];4 identifier [] self;5 identifier [] user_base;6 block [7,30,69];7 expression_statement [8];8 assignment [9,10];9 identifier [] results;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _search;14 argum...
Get users from LDAP
0 module [1];1 function_definition [2,3,5];2 function_name [] map_helper;3 parameters [4];4 identifier [] data;5 block [6,10,14,61];6 expression_statement [7];7 assignment [8,9];8 identifier [] as_list;9 list [] [];10 expression_statement [11];11 assignment [12,13];12 identifier [] length;13 integer [] 2;14 for_stateme...
Build a map message.
0 module [1];1 function_definition [2,3,5];2 function_name [] flush;3 parameters [4];4 identifier [] self;5 block [6,20,28,55];6 if_statement [7,18];7 boolean_operator [8,13] or;8 comparison_operator [9,12] ==;9 attribute [10,11];10 identifier [] self;11 identifier [] _num_outstanding_events;12 integer [] 0;13 comparis...
Flushes the event file to disk.
0 module [1];1 function_definition [2,3,5];2 function_name [] _byte_buffer_md5;3 parameters [4];4 identifier [] buffer_;5 block [6,15,23];6 expression_statement [7];7 assignment [8,9];8 identifier [] md5;9 call [10,13];10 attribute [11,12];11 identifier [] hashlib;12 identifier [] md5;13 argument_list [14];14 identifie...
Computes the md5 digest of a byte buffer in base64 encoding.
0 module [1];1 function_definition [2,3,11];2 function_name [] load;3 parameters [4,5,8];4 identifier [] fp;5 default_parameter [6,7];6 identifier [] cls;7 identifier [] BinaryQuadraticModel;8 default_parameter [9,10];9 identifier [] vartype;10 None [];11 block [12,21,30,34,111,121,130,176];12 expression_statement [13]...
Load a COOrdinate formatted binary quadratic model from a file.
0 module [1];1 function_definition [2,3,5];2 function_name [] close;3 parameters [4];4 identifier [] self;5 block [6,22,55];6 if_statement [7,13];7 () [8];8 comparison_operator [9,12] is not;9 attribute [10,11];10 identifier [] self;11 identifier [] __ser;12 None [];13 block [14];14 expression_statement [15];15 call [1...
Closes Serial port, or TCP-Socket connection
0 module [1];1 function_definition [2,3,5];2 function_name [] _to_query_json;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 dictionary [8,13,18,27,32,37];8 pair [9,10];9 string [] quote;10 attribute [11,12];11 identifier [] self;12 identifier [] _quote;13 pair [14,15];14 string [] fieldDelim...
Return the options as a dictionary to be used as JSON in a query job.
0 module [1];1 function_definition [2,3,5];2 function_name [] execPath;3 parameters [4];4 identifier [] self;5 block [6,19];6 expression_statement [7];7 assignment [8,9];8 identifier [] vers;9 conditional_expression [10,15,18] if;10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] version;1...
the executable application's path
0 module [1];1 function_definition [2,3,7];2 function_name [] resize;3 parameters [4,5,6];4 identifier [] self;5 identifier [] width;6 identifier [] height;7 block [8,10,25];8 expression_statement [9];9 string [] Set the canvas size in pixels;10 expression_statement [11];11 call [12,17];12 attribute [13,16];13 attribut...
Set the canvas size in pixels
0 module [1];1 function_definition [2,3,5];2 function_name [] data_to_sys_base;3 parameters [4];4 identifier [] self;5 block [6,21,41,51,61];6 if_statement [7,19];7 boolean_operator [8,12] or;8 not_operator [9];9 attribute [10,11];10 identifier [] self;11 identifier [] n;12 comparison_operator [13,18] is;13 subscript [...
Custom system base conversion function
0 module [1];1 function_definition [2,3,5];2 function_name [] tutor_courses;3 parameters [4];4 identifier [] self;5 block [6,25,44,55];6 expression_statement [7];7 assignment [8,9];8 identifier [] tutoring;9 call [10,21];10 attribute [11,20];11 call [12,19];12 attribute [13,18];13 attribute [14,17];14 attribute [15,16]...
Returns the list of courses this user is tutor or owner for.
0 module [1];1 function_definition [2,3,6];2 function_name [] _IsUnparsedFlagAccessAllowed;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,102];7 if_statement [8,13,26,37,96];8 comparison_operator [9,10] in;9 identifier [] _UNPARSED_FLAG_ACCESS_ENV_NAME;10 attribute [11,12];11 identifier [] os;1...
Determine whether to allow unparsed flag access or not.
0 module [1];1 function_definition [2,3,6];2 function_name [] all;3 parameters [4];4 list_splat_pattern [5];5 identifier [] validators;6 block [7,28,44];7 function_definition [8,9,11];8 function_name [] validate_all;9 parameters [10];10 identifier [] fields;11 block [12];12 for_statement [13,14,15];13 identifier [] val...
Validation only succeeds if all passed in validators return no errors
0 module [1];1 function_definition [2,3,7];2 function_name [] _submit;3 parameters [4,5,6];4 identifier [] primitive;5 identifier [] port_index;6 identifier [] tuple_;7 block [8,18];8 expression_statement [9];9 assignment [10,11];10 identifier [] args;11 tuple [12,16,17];12 call [13,14];13 identifier [] _get_opc;14 arg...
Internal method to submit a tuple
0 module [1];1 function_definition [2,3,5];2 function_name [] show_attrs;3 parameters [4];4 identifier [] directory;5 block [6,8];6 expression_statement [7];7 string [] print out the tempo for each audio file in the given directory;8 for_statement [9,10,16];9 identifier [] f;10 call [11,14];11 attribute [12,13];12 iden...
print out the tempo for each audio file in the given directory
0 module [1];1 function_definition [2,3,5];2 function_name [] author_line;3 parameters [4];4 identifier [] soup;5 block [6,10,17,24,39];6 expression_statement [7];7 assignment [8,9];8 identifier [] author_line;9 None [];10 expression_statement [11];11 assignment [12,13];12 identifier [] authors_json_data;13 call [14,15...
take preferred names from authors json and format them into an author line
0 module [1];1 function_definition [2,3,6];2 function_name [] send;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,13,28];7 assert_statement [8];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] data;12 identifier [] text_type;13 expression_statement [14];14 call...
Send text to the client.
0 module [1];1 function_definition [2,3,6];2 function_name [] foreignkey;3 parameters [4,5];4 identifier [] element;5 identifier [] exceptions;6 block [7,17,30];7 expression_statement [8];8 assignment [9,10];9 identifier [] label;10 subscript [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] element;14...
function to determine if each select field needs a create button or not
0 module [1];1 function_definition [2,3,8];2 function_name [] getEditorBinary;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] cmdVersion;7 False [];8 block [9];9 return_statement [10];10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 identifier [] path;15...
Determines the location of the UE4Editor binary
0 module [1];1 function_definition [2,3,6];2 function_name [] encode_basic_auth;3 parameters [4,5];4 identifier [] username;5 identifier [] password;6 block [7];7 return_statement [8];8 call [9,12];9 attribute [10,11];10 string [] Basic {};11 identifier [] format;12 argument_list [13];13 call [14,31];14 attribute [15,3...
Encode basic auth credentials.
0 module [1];1 function_definition [2,3,7];2 function_name [] SaveResourceUsage;3 parameters [4,5,6];4 identifier [] self;5 identifier [] client_id;6 identifier [] status;7 block [8,18];8 expression_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] hunt_obj;14...
Update the resource usage of the hunt.
0 module [1];1 function_definition [2,3,5];2 function_name [] _persist_result;3 parameters [4];4 identifier [] self;5 block [6,12];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _prepare_persistence_engine;11 argument_list [];12 return_statement [13];13 call [14,19];14...
Store this Async's result in persistent storage.
0 module [1];1 function_definition [2,3,7];2 function_name [] _remove_observation_from_means;3 parameters [4,5,6];4 identifier [] self;5 identifier [] xj;6 identifier [] yj;7 block [8,31];8 expression_statement [9];9 assignment [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _mean_x_in_window;13 () ...
Update the means without recalculating for the deletion of one observation.
0 module [1];1 function_definition [2,3,6];2 function_name [] create_dir_unless_exists;3 parameters [4];4 list_splat_pattern [5];5 identifier [] args;6 block [7,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] path;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] os;14 identi...
Creates a directory unless it exists already.
0 module [1];1 function_definition [2,3,5];2 function_name [] flo;3 parameters [4];4 identifier [] string;5 block [6,10,18,36];6 expression_statement [7];7 assignment [8,9];8 identifier [] callers_locals;9 dictionary [];10 expression_statement [11];11 assignment [12,13];12 identifier [] frame;13 call [14,17];14 attribu...
Return the string given by param formatted with the callers locals.
0 module [1];1 function_definition [2,3,5];2 function_name [] load_replacement_patterns;3 parameters [4];4 identifier [] self;5 block [6,14,22,40,51,58,70,81,88];6 expression_statement [7];7 assignment [8,9];8 identifier [] filename;9 binary_operator [10,13] +;10 attribute [11,12];11 identifier [] self;12 identifier []...
Check for availability of the specified dictionary.
0 module [1];1 function_definition [2,3,6];2 function_name [] _create_child;3 parameters [4,5];4 identifier [] self;5 identifier [] tag;6 block [7];7 return_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] etree;11 identifier [] SubElement;12 argument_list [13,16];13 attribute [14,15];14 identifier [] s...
Create a new child element with the given tag.
0 module [1];1 function_definition [2,3,6];2 function_name [] build_rpm;3 parameters [4,5];4 identifier [] ctx;5 identifier [] target;6 block [7,36,43,55,88,104,133,164];7 if_statement [8,13];8 comparison_operator [9,10] not in;9 identifier [] target;10 tuple [11,12];11 string [] centos6;12 string [] centos7;13 block [...
build an RPM package
0 module [1];1 function_definition [2,3,6];2 function_name [] _neighbour_pixels;3 parameters [4,5];4 identifier [] hp;5 identifier [] ipix;6 block [7,25];7 expression_statement [8];8 assignment [9,10];9 identifier [] neigh_ipix;10 call [11,14];11 attribute [12,13];12 identifier [] np;13 identifier [] unique;14 argument...
Returns all the pixels neighbours of ``ipix``
0 module [1];1 function_definition [2,3,6];2 function_name [] unset_env;3 parameters [4,5];4 identifier [] self;5 identifier [] key;6 block [7,23,32];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] environ;13 identifier [] pop;14 argument_list [15,2...
Removes an environment variable using the prepended app_name convention with `key`.
0 module [1];1 function_definition [2,3,6];2 function_name [] nextStation;3 parameters [4,5];4 identifier [] ID;5 identifier [] date;6 block [7,19];7 expression_statement [8];8 assignment [9,10];9 identifier [] jd;10 call [11,14];11 attribute [12,13];12 identifier [] eph;13 identifier [] nextStation;14 argument_list [1...
Returns the aproximate date of the next station.
0 module [1];1 function_definition [2,3,8];2 function_name [] extern_eval;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] context_handle;6 identifier [] python_code_str_ptr;7 identifier [] python_code_str_len;8 block [9,20];9 expression_statement [10];10 assignment [11,12];11 identifier [] c;12 call [13,18]...
Given an evalable string, eval it and return a Handle for its result.
0 module [1];1 function_definition [2,3,7];2 function_name [] add_dependency;3 parameters [4,5,6];4 identifier [] self;5 identifier [] name;6 identifier [] obj;7 block [8,32];8 if_statement [9,14];9 comparison_operator [10,11] in;10 identifier [] name;11 attribute [12,13];12 identifier [] self;13 identifier [] _deps;14...
Add a code dependency so it gets inserted into globals
0 module [1];1 function_definition [2,3,6];2 function_name [] _map_player_request_to_func;3 parameters [4,5];4 identifier [] self;5 identifier [] player_request_type;6 block [7,20,29,35,45];7 expression_statement [8];8 assignment [9,10];9 identifier [] view_func;10 call [11,16];11 attribute [12,15];12 attribute [13,14]...
Provides appropriate parameters to the on_playback functions.
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_json;3 parameters [4,5];4 identifier [] self;5 identifier [] url;6 block [7,9,20,47,61,73];7 expression_statement [8];8 string [] Get JSON-type content;9 expression_statement [10];10 assignment [11,12];11 identifier [] content;12 call [13,16];13 attribu...
Get JSON-type content
0 module [1];1 function_definition [2,3,7];2 function_name [] clear_sessions;3 parameters [4];4 default_parameter [5,6];5 identifier [] venv;6 None [];7 block [8,36,60,64,74,84,104,116,125,148];8 if_statement [9,14,30];9 comparison_operator [10,11] in;10 string [] VIRTUAL_ENV;11 attribute [12,13];12 identifier [] os;13...
Clear all sessions for all sandboxes or for production.
0 module [1];1 function_definition [2,3,7];2 function_name [] unit_type;3 parameters [4];4 default_parameter [5,6];5 identifier [] scale;6 None [];7 block [8,21,28,40,59];8 expression_statement [9];9 assignment [10,11];10 identifier [] palette_size;11 boolean_operator [12,13] or;12 identifier [] scale;13 binary_operato...
Returns a palette that maps unit types to rgb colors.
0 module [1];1 function_definition [2,3,9];2 function_name [] dispatch;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] category;6 identifier [] func;7 list_splat_pattern [8];8 identifier [] args;9 block [10];10 expression_statement [11];11 call [12,19];12 attribute [13,18];13 attribute [14,17];14 attribute ...
Dispatch an event to all listening plugins.
0 module [1];1 function_definition [2,3,5];2 function_name [] on;3 parameters [4];4 identifier [] self;5 block [6,24,31,45,53];6 expression_statement [7];7 assignment [8,9];8 identifier [] msg;9 call [10,13];10 attribute [11,12];11 identifier [] X10Send;12 identifier [] unit_code_msg;13 argument_list [14,19];14 attribu...
Send the On command to an X10 device.
0 module [1];1 function_definition [2,3,6];2 function_name [] _track_from_response;3 parameters [4,5];4 identifier [] result;5 identifier [] timeout;6 block [7,13,25,60];7 expression_statement [8];8 assignment [9,10];9 identifier [] response;10 subscript [11,12];11 identifier [] result;12 string [] response;13 expressi...
This is the function that actually creates the track object
0 module [1];1 function_definition [2,3,8];2 function_name [] _print_breakdown;3 parameters [4,5,6,7];4 identifier [] cls;5 identifier [] savedir;6 identifier [] fname;7 identifier [] data;8 block [9,27];9 if_statement [10,19];10 not_operator [11];11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier ...
Function to print model fixtures into generated file
0 module [1];1 function_definition [2,3,15];2 function_name [] from_python_file;3 parameters [4,5,6,7,11];4 identifier [] cls;5 identifier [] python_file;6 identifier [] lambdas_path;7 typed_parameter [8,9];8 identifier [] json_filename;9 type [10];10 identifier [] str;11 typed_parameter [12,13];12 identifier [] stem;1...
Builds GrFN object from Python file.
0 module [1];1 function_definition [2,3,5];2 function_name [] new_nodes_allowed_for_layer;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,22];7 boolean_operator [8,16] and;8 boolean_operator [9,13] and;9 not_operator [10];10 attribute [11,12];11 identifier [] self;12 identifier [] pk;13 attribute [1...
ensure new nodes are allowed for this layer
0 module [1];1 function_definition [2,3,7];2 function_name [] _get_os_price_id;3 parameters [4,5,6];4 identifier [] items;5 identifier [] os;6 identifier [] location;7 block [8,58];8 for_statement [9,10,11];9 identifier [] item;10 identifier [] items;11 block [12,39];12 if_statement [13,37];13 call [14,15];14 identifie...
Returns the price id matching.
0 module [1];1 function_definition [2,3,5];2 function_name [] chao_shen;3 parameters [4];4 identifier [] q;5 block [6,14,23,34,45,54,63,69,81,101];6 expression_statement [7];7 assignment [8,9];8 identifier [] yx;9 subscript [10,11];10 identifier [] q;11 comparison_operator [12,13] >;12 identifier [] q;13 integer [] 0;1...
Computes some terms needed for the Chao-Shen KL correction.
0 module [1];1 function_definition [2,3,6];2 function_name [] interrupt;3 parameters [4,5];4 identifier [] self;5 identifier [] interrupt;6 block [7,13,19];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _interrupt;12 True [];13 expression_statement [14];14 call...
Perform the shutdown of this server and save the exception.
0 module [1];1 function_definition [2,3,6];2 function_name [] flatten_dict;3 parameters [4,5];4 identifier [] self;5 identifier [] obj;6 block [7];7 return_statement [8];8 call [9,10];9 identifier [] OrderedDict;10 argument_list [11];11 call [12,13];12 identifier [] zip;13 argument_list [14,17];14 attribute [15,16];15 ...
Return an OrderedDict dict preserving order of keys in fieldnames
0 module [1];1 function_definition [2,3,6];2 function_name [] overlap;3 parameters [4,5];4 identifier [] self;5 identifier [] other;6 block [7,26];7 if_statement [8,23];8 boolean_operator [9,16] and;9 comparison_operator [10,13] <;10 attribute [11,12];11 identifier [] self;12 identifier [] _start;13 attribute [14,15];1...
Determine whether this range overlaps with another.
0 module [1];1 function_definition [2,3,6];2 function_name [] list;3 parameters [4,5];4 identifier [] self;5 identifier [] where;6 block [7,49,70];7 if_statement [8,11,23,39];8 comparison_operator [9,10] ==;9 identifier [] where;10 string [] pillar;11 block [12];12 expression_statement [13];13 assignment [14,15];14 ide...
List the current schedule items
0 module [1];1 function_definition [2,3,6];2 function_name [] count;3 parameters [4,5];4 identifier [] cls;5 identifier [] user_id;6 block [7];7 return_statement [8];8 call [9,28];9 attribute [10,27];10 call [11,23];11 attribute [12,22];12 call [13,18];13 attribute [14,17];14 attribute [15,16];15 identifier [] cls;16 i...
Count sessions with user_id
0 module [1];1 function_definition [2,3,5];2 function_name [] _bottom;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 assignment [8,13];8 pattern_list [9,10,11,12];9 identifier [] _;10 identifier [] top;11 identifier [] _;12 identifier [] height;13 attribute [14,15];14 identifier [] se...
Index of row following last row of range
0 module [1];1 function_definition [2,3,7];2 function_name [] sqrt;3 parameters [4,5,6];4 identifier [] self;5 identifier [] val;6 identifier [] flag;7 block [8,17,25,116];8 if_statement [9,14];9 call [10,13];10 attribute [11,12];11 identifier [] val;12 identifier [] iszero;13 argument_list [];14 block [15];15 return_s...
calculate the square root modulus p
0 module [1];1 function_definition [2,3,6];2 function_name [] addRectAnnot;3 parameters [4,5];4 identifier [] self;5 identifier [] rect;6 block [7,12,22,27,33,44,55];7 expression_statement [8];8 call [9,10];9 identifier [] CheckParent;10 argument_list [11];11 identifier [] self;12 expression_statement [13];13 assignmen...
Add a 'Rectangle' annotation.
0 module [1];1 function_definition [2,3,8];2 function_name [] deserialize_instance;3 parameters [4,5];4 identifier [] model;5 default_parameter [6,7];6 identifier [] data;7 dictionary [];8 block [9,11,17,104];9 expression_statement [10];10 string [] Translate raw data into a model instance.;11 expression_statement [12]...
Translate raw data into a model instance.
0 module [1];1 function_definition [2,3,8];2 function_name [] run_cell_magic;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] magic_name;6 identifier [] line;7 identifier [] cell;8 block [9];9 if_statement [10,13,22];10 comparison_operator [11,12] ==;11 identifier [] magic_name;12 string [] bash;13 block [14...
Run a limited number of magics from scripts, without IPython
0 module [1];1 function_definition [2,3,7];2 function_name [] provider_factory;3 parameters [4,5];4 identifier [] provider;5 dictionary_splat_pattern [6];6 identifier [] options;7 block [8];8 try_statement [9,28];9 block [10];10 return_statement [11];11 call [12,25];12 subscript [13,20];13 dictionary [14,17];14 pair [1...
Factory function for DB Provider Concrete Classes
0 module [1];1 function_definition [2,3,10];2 function_name [] update_type;3 parameters [4,5,6,8];4 identifier [] self;5 identifier [] request;6 list_splat_pattern [7];7 identifier [] args;8 dictionary_splat_pattern [9];9 identifier [] kwargs;10 block [11,21,29,39,47,59];11 expression_statement [12];12 assignment [13,1...
Updates the type of the considered topic and retirects the user to the success URL.
0 module [1];1 function_definition [2,3,8];2 function_name [] GetMostRecentClient;3 parameters [4,5];4 identifier [] client_list;5 default_parameter [6,7];6 identifier [] token;7 None [];8 block [9,18,22,64];9 expression_statement [10];10 assignment [11,12];11 identifier [] last;12 call [13,16];13 attribute [14,15];14 ...
Return most recent client from list of clients.
0 module [1];1 function_definition [2,3,8];2 function_name [] compare;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] path;6 identifier [] prefixed_path;7 identifier [] source_storage;8 block [9,22,37];9 expression_statement [10];10 assignment [11,12];11 identifier [] comparitor;12 call [13,14];13 identifie...
Returns True if the file should be copied.
0 module [1];1 function_definition [2,3,7];2 function_name [] _Reg2Py;3 parameters [4,5,6];4 identifier [] data;5 identifier [] size;6 identifier [] data_type;7 block [8];8 if_statement [9,14,41,69,96];9 comparison_operator [10,11] ==;10 identifier [] data_type;11 attribute [12,13];12 identifier [] winreg;13 identifier...
Converts a Windows Registry value to the corresponding Python data type.
0 module [1];1 function_definition [2,3,7];2 function_name [] disconnect;3 parameters [4,5,6];4 identifier [] self;5 identifier [] sid;6 identifier [] namespace;7 block [8,16,20,51,64,105];8 if_statement [9,14];9 comparison_operator [10,11] not in;10 identifier [] namespace;11 attribute [12,13];12 identifier [] self;13...
Register a client disconnect from a namespace.
0 module [1];1 function_definition [2,3,6];2 function_name [] from_file;3 parameters [4,5];4 identifier [] cls;5 identifier [] filepath;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 [] filepath;15...
Read the configuration parameters from a Yaml file.
0 module [1];1 function_definition [2,3,8];2 function_name [] managepy;3 parameters [4,5];4 identifier [] cmd;5 default_parameter [6,7];6 identifier [] extra;7 None [];8 block [9,20];9 expression_statement [10];10 assignment [11,12];11 identifier [] extra;12 conditional_expression [13,18,19] if;13 call [14,17];14 attri...
Run manage.py using this component's specific Django settings
0 module [1];1 function_definition [2,3,5];2 function_name [] _bucket_exists;3 parameters [4];4 identifier [] self;5 block [6];6 try_statement [7,23];7 block [8,21];8 expression_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] s3client;14 identifier [] get_bu...
Check if the bucket exists.
0 module [1];1 function_definition [2,3,5];2 function_name [] mda_count;3 parameters [4];4 identifier [] self;5 block [6,12,21,27];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] open;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14 identifier [...
Returns the physical volume mda count.
0 module [1];1 function_definition [2,3,5];2 function_name [] _open_connection;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,12,41,82,108];7 comparison_operator [8,11] ==;8 attribute [9,10];9 identifier [] self;10 identifier [] _scheme;11 string [] unix;12 block [13,30];13 expression_statement [14...
Open a new connection socket to the CPS.
0 module [1];1 function_definition [2,3,6];2 function_name [] pages_admin_menu;3 parameters [4,5];4 identifier [] context;5 identifier [] page;6 block [7,17,21,82,95];7 expression_statement [8];8 assignment [9,10];9 identifier [] request;10 call [11,14];11 attribute [12,13];12 identifier [] context;13 identifier [] get...
Render the admin table of pages.
0 module [1];1 function_definition [2,3,5];2 function_name [] _finalize;3 parameters [4];4 identifier [] self;5 block [6,33,39];6 if_statement [7,14];7 comparison_operator [8,11] in;8 attribute [9,10];9 identifier [] self;10 identifier [] status;11 list [12,13] ['running', 'halt'];12 string [] running;13 string [] halt...
Reset the status and tell the database to finalize the traces.
0 module [1];1 function_definition [2,3,6];2 function_name [] print_square;3 parameters [4,5];4 identifier [] row_queue;5 identifier [] t;6 block [7,20,35];7 expression_statement [8];8 assignment [9,10];9 identifier [] occupied_rows;10 dictionary_comprehension [11,14];11 pair [12,13];12 identifier [] y;13 identifier []...
Prints a row queue as its conceptual square array.
0 module [1];1 function_definition [2,3,6];2 function_name [] move_to;3 parameters [4,5];4 identifier [] x;5 identifier [] y;6 block [7,59];7 for_statement [8,9,10,39];8 identifier [] b;9 identifier [] _button_state;10 block [11];11 if_statement [12,15];12 subscript [13,14];13 identifier [] _button_state;14 identifier ...
Sets the mouse's location to the specified coordinates.
0 module [1];1 function_definition [2,3,6];2 function_name [] check_presence_download;3 parameters [4,5];4 identifier [] filename;5 identifier [] backup_url;6 block [7,10,17];7 import_statement [8];8 dotted_name [9];9 identifier [] os;10 expression_statement [11];11 assignment [12,13];12 identifier [] filename;13 call ...
Check if file is present otherwise download.
0 module [1];1 function_definition [2,3,6];2 function_name [] build_FAILED;3 parameters [4,5];4 identifier [] self;5 identifier [] prgnam;6 block [7,14,38,45,70,77];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] template;12 argument_list [13];13 integer [] 78;14 expr...
Print error message if build failed
0 module [1];1 function_definition [2,3,9];2 function_name [] filter_data;3 parameters [4,5,6];4 identifier [] df;5 identifier [] filter_name;6 default_parameter [7,8];7 identifier [] verbose;8 False [];9 block [10,12,35,54];10 expression_statement [11];11 string [] Filter certain entries with given name.;12 expression...
Filter certain entries with given name.
0 module [1];1 function_definition [2,3,11,15];2 function_name [] predict;3 parameters [4,5];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] inputs;7 type [8];8 attribute [9,10];9 identifier [] np;10 identifier [] ndarray;11 type [12];12 attribute [13,14];13 identifier [] np;14 identifier [] ndarray;15 blo...
Run on multiple inputs
0 module [1];1 function_definition [2,3,5];2 function_name [] delLadder;3 parameters [4];4 identifier [] name;5 block [6,12];6 expression_statement [7];7 assignment [8,9];8 identifier [] ladders;9 call [10,11];10 identifier [] getKnownLadders;11 argument_list [];12 try_statement [13,35];13 block [14,20,29,33];14 expres...
forget about a previously defined Ladder setting by deleting its disk file
0 module [1];1 function_definition [2,3,5];2 function_name [] from_data;3 parameters [4];4 identifier [] data;5 block [6,22,30];6 expression_statement [7];7 assignment [8,11];8 pattern_list [9,10];9 identifier [] header;10 identifier [] length;11 call [12,15];12 attribute [13,14];13 identifier [] struct;14 identifier [...
Create a chunk from data including header and length bytes.
0 module [1];1 function_definition [2,3,5];2 function_name [] worker;3 parameters [4];4 identifier [] data;5 block [6,15,88,92,122];6 expression_statement [7];7 assignment [8,9];8 identifier [] creator;9 call [10,11];10 identifier [] get_creator_by_name;11 argument_list [12];12 subscript [13,14];13 identifier [] data;1...
Running on shell via multiprocessing.
0 module [1];1 function_definition [2,3,6];2 function_name [] tmpfile;3 parameters [4,5];4 identifier [] prefix;5 identifier [] direc;6 block [7];7 return_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] tempfile;11 identifier [] mktemp;12 argument_list [13,16,19];13 keyword_argument [14,15];14 identifi...
Returns the path to a newly created temporary file.
0 module [1];1 function_definition [2,3,6];2 function_name [] decrease_weight;3 parameters [4,5];4 identifier [] self;5 identifier [] proxy;6 block [7,17];7 expression_statement [8];8 assignment [9,10];9 identifier [] new_weight;10 binary_operator [11,14] *;11 attribute [12,13];12 identifier [] proxy;13 identifier [] w...
Decreasing the weight of a proxy by multiplying dec_ratio
0 module [1];1 function_definition [2,3,6];2 function_name [] randomArray;3 parameters [4,5];4 identifier [] size;5 identifier [] bound;6 block [7,23,41];7 if_statement [8,17];8 comparison_operator [9,13] ==;9 call [10,11];10 identifier [] type;11 argument_list [12];12 identifier [] size;13 call [14,15];14 identifier [...
Returns an array initialized to random values between -max and max.