sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_all;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 list_comprehension [8,14];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _to_dict;12 argument_list [13];13 identifier [] row;14 for_in_clause [15,16... | Get all users from db and turn into list of dicts |
0 module [1];1 function_definition [2,3,8];2 function_name [] construct;3 parameters [4,5];4 identifier [] path;5 default_parameter [6,7];6 identifier [] name;7 None [];8 block [9,11,25,38,48,59];9 expression_statement [10];10 string [] Selects an appropriate CGroup subclass for the given CGroup path.;11 expression_sta... | Selects an appropriate CGroup subclass for the given CGroup path. |
0 module [1];1 function_definition [2,3,5];2 function_name [] decode_to_unicode;3 parameters [4];4 identifier [] content;5 block [6,30];6 if_statement [7,15];7 boolean_operator [8,9] and;8 identifier [] content;9 not_operator [10];10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [] con... | decode ISO-8859-1 to unicode, when using sf api |
0 module [1];1 function_definition [2,3,7];2 function_name [] create_api_key;3 parameters [4,5,6];4 identifier [] self;5 identifier [] api_id;6 identifier [] stage_name;7 block [8,58];8 expression_statement [9];9 assignment [10,11];10 identifier [] response;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 i... | Create new API key and link it with an api_id and a stage_name |
0 module [1];1 function_definition [2,3,8];2 function_name [] print_table;3 parameters [4,5];4 identifier [] lines;5 default_parameter [6,7];6 identifier [] separate_head;7 True [];8 block [9,13,61,65,92,102,111];9 expression_statement [10];10 assignment [11,12];11 identifier [] widths;12 list [] [];13 for_statement [1... | Prints a formatted table given a 2 dimensional array |
0 module [1];1 function_definition [2,3,15];2 function_name [] encrypt;3 parameters [4,5,6,9,12];4 identifier [] s;5 identifier [] pk;6 default_parameter [7,8];7 identifier [] pk_format;8 identifier [] SER_COMPACT;9 default_parameter [10,11];10 identifier [] mac_bytes;11 integer [] 10;12 default_parameter [13,14];13 id... | Encrypts `s' for public key `pk' |
0 module [1];1 function_definition [2,3,8];2 function_name [] send_email;3 parameters [4,5,6,7];4 identifier [] fromaddr;5 identifier [] toaddr;6 identifier [] subject;7 identifier [] message;8 block [9,14,21,25,32,38,44,55,62,75];9 import_from_statement [10,12];10 dotted_name [11];11 identifier [] smtplib;12 dotted_na... | Send an email message |
0 module [1];1 function_definition [2,3,7];2 function_name [] index;3 parameters [4];4 default_parameter [5,6];5 identifier [] path;6 None [];7 block [8,24];8 expression_statement [9];9 assignment [10,11];10 identifier [] payload;11 dictionary [12,15,18];12 pair [13,14];13 string [] username;14 string [] soandso;15 pai... | On all other routes, just return an example `curl` command. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _mkAddBtnVisible;3 parameters [4];4 identifier [] self;5 block [6,24];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] _btn_add_height;11 block [12];12 expression_statement [13];13 assignment [14,17];14 attrib... | Ensure that the Add button is visible also when there are no tabs |
0 module [1];1 function_definition [2,3,5];2 function_name [] _socket_close;3 parameters [4];4 identifier [] self;5 block [6,12,18];6 expression_statement [7];7 assignment [8,9];8 identifier [] callback;9 attribute [10,11];10 identifier [] self;11 identifier [] __callback;12 expression_statement [13];13 assignment [14,... | cleanup after the socket is closed by the other end |
0 module [1];1 function_definition [2,3,6];2 function_name [] _write;3 parameters [4,5];4 identifier [] self;5 identifier [] data;6 block [7,11,18];7 expression_statement [8];8 assignment [9,10];9 identifier [] total_sent;10 integer [] 0;11 expression_statement [12];12 assignment [13,14];13 identifier [] length;14 call... | Writes string data out to Scratch |
0 module [1];1 function_definition [2,3,13];2 function_name [] fromURL;3 parameters [4,5,6,7,10];4 identifier [] cls;5 identifier [] url;6 keyword_separator [];7 default_parameter [8,9];8 identifier [] credentials;9 None [];10 default_parameter [11,12];11 identifier [] insecure;12 False [];13 block [14,32];14 expressio... | Return an `Origin` for a given MAAS instance. |
0 module [1];1 function_definition [2,3,21,23];2 function_name [] login;3 parameters [4,8,12,16];4 typed_parameter [5,6];5 identifier [] username;6 type [7];7 identifier [] str;8 typed_parameter [9,10];9 identifier [] password;10 type [11];11 identifier [] str;12 typed_parameter [13,14];13 identifier [] brand;14 type [... | Log in to the API. |
0 module [1];1 function_definition [2,3,7];2 function_name [] invoke;3 parameters [4,5,6];4 identifier [] config;5 identifier [] name;6 identifier [] input;7 block [8,16,25,35];8 expression_statement [9];9 assignment [10,11];10 identifier [] myname;11 boolean_operator [12,13] or;12 identifier [] name;13 attribute [14,1... | Invoke function in AWS |
0 module [1];1 function_definition [2,3,4];2 function_name [] atlas_peer_table_unlock;3 parameters [];4 block [5,9,74,78,82,88];5 global_statement [6,7,8];6 identifier [] PEER_TABLE_LOCK;7 identifier [] PEER_TABLE_LOCK_HOLDER;8 identifier [] PEER_TABLE_LOCK_TRACEBACK;9 try_statement [10,19];10 block [11];11 assert_stat... | Unlock the global health info table. |
0 module [1];1 function_definition [2,3,5];2 function_name [] user_agent;3 parameters [4];4 identifier [] self;5 block [6,10,28,59];6 expression_statement [7];7 assignment [8,9];8 identifier [] version;9 string [];10 expression_statement [11];11 assignment [12,13];12 identifier [] project_root;13 call [14,19];14 attrib... | its a user agent string! |
0 module [1];1 function_definition [2,3,5];2 function_name [] render;3 parameters [4];4 identifier [] self;5 block [6,14,25,39,64,89,125,133];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] screen;12 identifier [] reset;13 argument_list [];14 expres... | Send the current screen content to Mate Light. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _map_call;3 parameters [4,5];4 identifier [] self;5 identifier [] cmd;6 block [7,41,53,90];7 if_statement [8,23];8 boolean_operator [9,12] and;9 attribute [10,11];10 identifier [] config;11 identifier [] debug;12 comparison_operator [13,14] !=;13 identifier ... | Map old to new command names. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _get_stats_files;3 parameters [4,5];4 identifier [] data;5 default_parameter [6,7];6 identifier [] out_dir;7 None [];8 block [9,42,55,68,91,114];9 if_statement [10,12];10 not_operator [11];11 identifier [] out_dir;12 block [13];13 expression_statement [14];1... | Retrieve stats files from pre-existing dictionary or filesystem. |
0 module [1];1 function_definition [2,3,5];2 function_name [] bqsr_table;3 parameters [4];4 identifier [] data;5 block [6,15,28,124];6 expression_statement [7];7 assignment [8,9];8 identifier [] in_file;9 call [10,13];10 attribute [11,12];11 identifier [] dd;12 identifier [] get_align_bam;13 argument_list [14];14 ident... | Generate recalibration tables as inputs to BQSR. |
0 module [1];1 function_definition [2,3,16];2 function_name [] create;3 parameters [4,5,6,7,10,13];4 identifier [] cls;5 identifier [] name;6 identifier [] datacenter;7 default_parameter [8,9];8 identifier [] subnet;9 None [];10 default_parameter [11,12];11 identifier [] gateway;12 None [];13 default_parameter [14,15];... | Create a new vlan. |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_to_environment;3 parameters [4,5];4 identifier [] self;5 identifier [] environment;6 block [7,15,26,40];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _env;12 attribute [13,14];13 identifier [] e... | Add the router to the given environment. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _define_absl_flags;3 parameters [4,5];4 identifier [] self;5 identifier [] absl_flags;6 block [7,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] key_flags;10 call [11,12];11 identifier [] set;12 argument_list [13];13 call [14,17];14 attrib... | Defines flags from absl_flags. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _has_virtual_io_attrs;3 parameters [4,5];4 identifier [] file;5 identifier [] mode_int;6 block [7,15,23];7 expression_statement [8];8 assignment [9,10];9 identifier [] readonly;10 comparison_operator [11,12] ==;11 identifier [] mode_int;12 attribute [13,14];... | Check if file has all the necessary attributes for virtual IO. |
0 module [1];1 function_definition [2,3,6];2 function_name [] process_npdu;3 parameters [4,5];4 identifier [] self;5 identifier [] npdu;6 block [7,18,24,31,42,72,82];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 [] ProxyServiceNe... | encode NPDUs from the network service access point and send them to the proxy. |
0 module [1];1 function_definition [2,3,5];2 function_name [] logger;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,10,15];7 attribute [8,9];8 identifier [] self;9 identifier [] _logger;10 block [11];11 return_statement [12];12 attribute [13,14];13 identifier [] self;14 identifier [] _logger;15 els... | uses "global logger" for logging |
0 module [1];1 function_definition [2,3,7];2 function_name [] get;3 parameters [4,5,6];4 identifier [] self;5 identifier [] telescope;6 identifier [] band;7 block [8,19,30,36,42,48,54];8 expression_statement [9];9 assignment [10,11];10 identifier [] klass;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 ide... | Get a Bandpass object for a known telescope and filter. |
0 module [1];1 function_definition [2,3,6];2 function_name [] create;3 parameters [4,5];4 identifier [] controller_id;5 identifier [] name;6 block [7,93];7 function_definition [8,9,11];8 function_name [] _decorator;9 parameters [10];10 identifier [] cls;11 block [12,91];12 class_definition [13,14,17];13 identifier [] _... | Turn class into a kervi controller |
0 module [1];1 function_definition [2,3,6];2 function_name [] error_rate;3 parameters [4,5];4 identifier [] predictions;5 identifier [] labels;6 block [7];7 return_statement [8];8 binary_operator [9,10] -;9 float [] 100.0;10 () [11];11 binary_operator [12,34] /;12 binary_operator [13,14] *;13 float [] 100.0;14 call [15... | Return the error rate based on dense predictions and 1-hot labels. |
0 module [1];1 function_definition [2,3,5];2 function_name [] gather;3 parameters [4];4 identifier [] input;5 block [6,20,24,28,140];6 try_statement [7,16];7 block [8];8 expression_statement [9];9 assignment [10,11];10 identifier [] line;11 call [12,15];12 attribute [13,14];13 identifier [] input;14 identifier [] next;... | Collect contiguous lines of text, preserving line numbers. |
0 module [1];1 function_definition [2,3,5];2 function_name [] write_tlv;3 parameters [4];4 identifier [] data;5 block [6,10,89];6 expression_statement [7];7 assignment [8,9];8 identifier [] tlv;9 string [] b'';10 for_statement [11,14,19];11 pattern_list [12,13];12 identifier [] key;13 identifier [] value;14 call [15,18... | Convert a dict to TLV8 bytes. |
0 module [1];1 function_definition [2,3,13];2 function_name [] evaluate;3 parameters [4,5,6,7,8,9,10,11,12];4 identifier [] x;5 identifier [] y;6 identifier [] constant;7 identifier [] amplitude;8 identifier [] x_mean;9 identifier [] y_mean;10 identifier [] x_stddev;11 identifier [] y_stddev;12 identifier [] theta;13 b... | Two dimensional Gaussian plus constant function. |
0 module [1];1 function_definition [2,3,5];2 function_name [] job_to_dict;3 parameters [4];4 identifier [] job;5 block [6,12,20,28,36,44,52,64,101];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,11];10 identifier [] OrderedDict;11 argument_list [];12 expression_statement [13];13 assignmen... | Converts a job to an OrderedDict. |
0 module [1];1 function_definition [2,3,5];2 function_name [] type_suffix;3 parameters [4];4 identifier [] self;5 block [6,24];6 if_statement [7,21];7 boolean_operator [8,12] or;8 not_operator [9];9 attribute [10,11];10 identifier [] self;11 identifier [] type;12 comparison_operator [13,20] ==;13 call [14,19];14 attrib... | This is used in compose ID. |
0 module [1];1 function_definition [2,3,5];2 function_name [] fetchone;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 assignment [8,9];8 identifier [] row;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _session;14 identifier [] fetchone... | Fetches next row, or ``None`` if there are no more rows |
0 module [1];1 function_definition [2,3,11];2 function_name [] native_string_to_bytes;3 parameters [4,5,8];4 identifier [] s;5 default_parameter [6,7];6 identifier [] encoding;7 string [] ascii;8 default_parameter [9,10];9 identifier [] errors;10 string [] strict;11 block [12,34];12 if_statement [13,19];13 not_operator... | Ensure that the native string ``s`` is converted to ``bytes``. |
0 module [1];1 function_definition [2,3,5];2 function_name [] makeSubDir;3 parameters [4];4 identifier [] dirName;5 block [6,32];6 if_statement [7,16];7 not_operator [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] os;12 identifier [] path;13 identifier [] exists;14 argument_list [15];15 iden... | Makes a given subdirectory if it doesn't already exist, making sure it us public. |
0 module [1];1 function_definition [2,3,6];2 function_name [] suffix;3 parameters [4,5];4 identifier [] tokens;5 identifier [] operator_table;6 block [7,20];7 expression_statement [8];8 assignment [9,12];9 pattern_list [10,11];10 identifier [] operator;11 identifier [] matched_tokens;12 call [13,18];13 attribute [14,17... | Match a suffix of an operator. |
0 module [1];1 function_definition [2,3,8,10];2 function_name [] unlink_parent_dir;3 parameters [4];4 typed_parameter [5,6];5 identifier [] path;6 type [7];7 identifier [] Path;8 type [9];9 None [];10 block [11,18,24,30];11 expression_statement [12];12 call [13,16];13 attribute [14,15];14 identifier [] logger;15 identi... | Remove a file and if the dir is empty remove it |
0 module [1];1 function_definition [2,3,5];2 function_name [] build_result;3 parameters [4];4 identifier [] data;5 block [6,10,60];6 expression_statement [7];7 assignment [8,9];8 identifier [] more;9 dictionary [];10 for_statement [11,14,19];11 pattern_list [12,13];12 identifier [] key;13 identifier [] value;14 call [1... | Create a dictionary with the contents of result.json |
0 module [1];1 function_definition [2,3,4];2 function_name [] import_log_funcs;3 parameters [];4 block [5,7,15];5 global_statement [6];6 identifier [] g_logger;7 expression_statement [8];8 assignment [9,10];9 identifier [] curr_mod;10 subscript [11,14];11 attribute [12,13];12 identifier [] sys;13 identifier [] modules;... | Import the common log functions from the global logger to the module. |
0 module [1];1 function_definition [2,3,5];2 function_name [] read;3 parameters [4];4 identifier [] self;5 block [6,12,56];6 expression_statement [7];7 assignment [8,9];8 identifier [] data;9 call [10,11];10 identifier [] bytearray;11 argument_list [];12 while_statement [13,14];13 True [];14 block [15,25];15 expression... | Read data from serial port and returns a ``bytearray``. |
0 module [1];1 function_definition [2,3,7];2 function_name [] serialize;3 parameters [4,5];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] fields;7 block [8,60];8 if_statement [9,10];9 identifier [] fields;10 block [11,45];11 if_statement [12,24];12 not_operator [13];13 call [14,20];14 attribute [15,19];1... | Serialize Nodes and attributes |
0 module [1];1 function_definition [2,3,5];2 function_name [] generate_password;3 parameters [4];4 identifier [] self;5 block [6,21,33,47,81,87,102,117];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] password_failed;10 block [11,20];11 expression_statement [12];12 call [13,18];13 attribute... | Generates an org password with the sfdx utility. |
0 module [1];1 function_definition [2,3,7];2 function_name [] convert;3 parameters [4,5,6];4 identifier [] self;5 identifier [] value;6 identifier [] view;7 block [8];8 if_statement [9,14,17];9 call [10,11];10 identifier [] isinstance;11 argument_list [12,13];12 identifier [] value;13 identifier [] NUMERIC_TYPES;14 blo... | Check that the value is an int or a float. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dashboard;3 parameters [4];4 identifier [] request;5 block [6,8,14,25,35,48,71,105,112,124,136,157,179];6 expression_statement [7];7 string [] Counts, aggregations and more!;8 expression_statement [9];9 assignment [10,11];10 identifier [] end_time;11 call [1... | Counts, aggregations and more! |
0 module [1];1 function_definition [2,3,6];2 function_name [] contains;3 parameters [4,5];4 identifier [] self;5 identifier [] other;6 block [7];7 return_statement [8];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 contains another. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _write_pidfile;3 parameters [4];4 identifier [] self;5 block [6,16];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] LOGGER;10 identifier [] debug;11 argument_list [12,13];12 string [] Writing pidfile: %s;13 attribute [14,15];14 id... | Write the pid file out with the process number in the pid file |
0 module [1];1 function_definition [2,3,6];2 function_name [] prep_folder;3 parameters [4,5];4 identifier [] self;5 identifier [] seq;6 block [7,21,37,46,64];7 expression_statement [8];8 assignment [9,10];9 identifier [] itasser_dir;10 call [11,14];11 attribute [12,13];12 identifier [] op;13 identifier [] join;14 argum... | Take in a sequence string and prepares the folder for the I-TASSER run. |
0 module [1];1 function_definition [2,3,5];2 function_name [] storage_method;3 parameters [4];4 identifier [] func;5 block [6,26];6 function_definition [7,8,14];7 function_name [] wrap;8 parameters [9,10,12];9 identifier [] self;10 list_splat_pattern [11];11 identifier [] args;12 dictionary_splat_pattern [13];13 identi... | Calls decorated method with VersionedStorage as self |
0 module [1];1 function_definition [2,3,5,11];2 function_name [] content_location;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] Optional;8 type_parameter [9];9 type [10];10 identifier [] UnstructuredHeader;11 block [12];12 try_statement [13,24];13 block [14];14 return_statement [... | The ``Content-Location`` header. |
0 module [1];1 function_definition [2,3,5];2 function_name [] Flush;3 parameters [4];4 identifier [] self;5 block [6,18,49,84,104,120,126,132,138];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] DB;10 identifier [] DeleteSubjects;11 argument_list [12,15];12 attribute [13,14];13 identifier []... | Flushing actually applies all the operations in the pool. |
0 module [1];1 function_definition [2,3,4];2 function_name [] _generate;3 parameters [];4 block [5,24];5 expression_statement [6];6 assignment [7,8];7 identifier [] privateKey;8 call [9,12];9 attribute [10,11];10 identifier [] rsa;11 identifier [] generate_private_key;12 argument_list [13,16,19];13 keyword_argument [14... | Generate a new SSH key pair. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _deriv_hypot;3 parameters [4,5];4 identifier [] x;5 identifier [] y;6 block [7,17,23,29];7 expression_statement [8];8 assignment [9,10];9 identifier [] r;10 call [11,14];11 attribute [12,13];12 identifier [] np;13 identifier [] hypot;14 argument_list [15,16]... | Derivative of numpy hypot function |
0 module [1];1 function_definition [2,3,6];2 function_name [] create_subcommand_synopsis;3 parameters [4,5];4 identifier [] self;5 identifier [] parser;6 block [7,25,43];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] add_usage;12 argument_list [13,16,21,22];13 attrib... | show usage with description for commands |
0 module [1];1 function_definition [2,3,5];2 function_name [] getVersion;3 parameters [4];4 identifier [] self;5 block [6,21,115,151];6 if_statement [7,16];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] version;13 attribute [14,15];14 identifi... | the executable application's version |
0 module [1];1 function_definition [2,3,10];2 function_name [] _needle;3 parameters [4,5,6,7,8,9];4 identifier [] fa;5 identifier [] fb;6 identifier [] needlefile;7 identifier [] a;8 identifier [] b;9 identifier [] results;10 block [11,18,39,47,54,65,83];11 import_from_statement [12,16];12 dotted_name [13,14,15];13 ide... | Run single needle job |
0 module [1];1 function_definition [2,3,6];2 function_name [] before_scenario;3 parameters [4,5];4 identifier [] context;5 identifier [] scenario;6 block [7,20,30,40];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] context;11 identifier [] directory;12 call [13,16];13 attribute [14,1... | Prepare a fresh environment for each scenario. |
0 module [1];1 function_definition [2,3,12];2 function_name [] remove;3 parameters [4,5,6,9];4 identifier [] text;5 identifier [] what;6 default_parameter [7,8];7 identifier [] count;8 None [];9 default_parameter [10,11];10 identifier [] strip;11 False [];12 block [13];13 return_statement [14];14 call [15,16];15 identi... | Like ``replace``, where ``new`` replacement is an empty string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_from_parent_sequence_map;3 parameters [4,5];4 identifier [] assessment_part_admin_session;5 identifier [] assessment_part_id;6 block [7,23,29,35,44];7 expression_statement [8];8 assignment [9,10];9 identifier [] apls;10 call [11,12];11 identifier [] g... | Updates the child map of a simple sequence assessment assessment part to remove child part |
0 module [1];1 function_definition [2,3,6];2 function_name [] create_network_postcommit;3 parameters [4,5];4 identifier [] self;5 identifier [] context;6 block [7,13,19,25,31,38,45];7 expression_statement [8];8 assignment [9,10];9 identifier [] network;10 attribute [11,12];11 identifier [] context;12 identifier [] curr... | Provision the network on CVX |
0 module [1];1 function_definition [2,3,6];2 function_name [] save;3 parameters [4,5];4 identifier [] self;5 identifier [] path;6 block [7,11,72];7 expression_statement [8];8 assignment [9,10];9 identifier [] to_save;10 dictionary [];11 for_statement [12,13,16];12 identifier [] x;13 attribute [14,15];14 identifier [] s... | Save a SOM to a JSON file. |
0 module [1];1 function_definition [2,3,5];2 function_name [] need_geocoding;3 parameters [4];4 identifier [] self;5 block [6,10,35];6 expression_statement [7];7 assignment [8,9];8 identifier [] need_geocoding;9 False [];10 for_statement [11,14,21];11 pattern_list [12,13];12 identifier [] attribute;13 identifier [] com... | Returns True if any of the required address components is missing |
0 module [1];1 function_definition [2,3,8];2 function_name [] resample;3 parameters [4,5,6];4 identifier [] self;5 identifier [] N;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,33,57,68,89,110,119,127,135];9 expression_statement [10];10 assignment [11,12];11 identifier [] lovals;12 binary_operator [1... | Random resampling of the doublegauss distribution |
0 module [1];1 function_definition [2,3,6];2 function_name [] neighbors;3 parameters [4,5];4 identifier [] self;5 identifier [] key;6 block [7];7 return_statement [8];8 dictionary_comprehension [9,14];9 pair [10,11];10 identifier [] n;11 subscript [12,13];12 identifier [] attr;13 string [] bond;14 for_in_clause [15,18]... | Return dict of neighbor atom index and connecting bond. |
0 module [1];1 function_definition [2,3,4];2 function_name [] queries;3 parameters [];4 block [5,13,24,34];5 expression_statement [6];6 assignment [7,8];7 identifier [] query;8 subscript [9,12];9 attribute [10,11];10 identifier [] request;11 identifier [] form;12 string [] query;13 expression_statement [14];14 assignme... | Store a new GEMINI query. |
0 module [1];1 function_definition [2,3,6];2 function_name [] bool;3 parameters [4,5];4 identifier [] self;5 identifier [] name;6 block [7,14,22,35,41,51];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _assert_is_string;12 argument_list [13];13 identifier [] name;14 ... | parse a boolean frame |
0 module [1];1 function_definition [2,3,7];2 function_name [] to_glyphs_blue_values;3 parameters [4,5,6];4 identifier [] self;5 identifier [] ufo;6 identifier [] master;7 block [8,12,23,34,81,112];8 expression_statement [9];9 assignment [10,11];10 identifier [] zones;11 list [] [];12 expression_statement [13];13 assign... | Sets the GSFontMaster alignmentZones from the postscript blue values. |
0 module [1];1 function_definition [2,3,7];2 function_name [] recover;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key;6 identifier [] value;7 block [8,21,39];8 if_statement [9,14];9 comparison_operator [10,11] not in;10 identifier [] key;11 attribute [12,13];12 identifier [] self;13 identifier [] _dtypes;... | Get the deserialized value for a given key, and the serialized version. |
0 module [1];1 function_definition [2,3,6];2 function_name [] start2;3 parameters [4,5];4 identifier [] self;5 identifier [] yes;6 block [7,33,51,73,84,90,99,110];7 if_statement [8,9];8 identifier [] yes;9 block [10,17,27];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identi... | Display instructions if the user wants them. |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] to_yaml;3 parameters [4];4 identifier [] value;5 type [6];6 identifier [] str;7 block [8,18,33,37,78];8 expression_statement [9];9 assignment [10,11];10 identifier [] stream;11 call [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier [] yaml;15... | Convert a given value to a YAML string. |
0 module [1];1 function_definition [2,3,8];2 function_name [] child_get;3 parameters [4,5,6];4 identifier [] self;5 identifier [] child;6 list_splat_pattern [7];7 identifier [] prop_names;8 block [9];9 return_statement [10];10 list_comprehension [11,18];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 iden... | Returns a list of child property values for the given names. |
0 module [1];1 function_definition [2,3,12];2 function_name [] color;3 parameters [4,5,6,9];4 identifier [] string;5 identifier [] name;6 default_parameter [7,8];7 identifier [] style;8 string [] normal;9 default_parameter [10,11];10 identifier [] when;11 string [] auto;12 block [13,51,89,101,113,121];13 if_statement [... | Change the color of the given string. |
0 module [1];1 function_definition [2,3,6];2 function_name [] on_release;3 parameters [4,5];4 identifier [] self;5 identifier [] event;6 block [7,9,17,26,44,52,64,70];7 expression_statement [8];8 string [] on release we reset the press data;9 if_statement [10,15];10 comparison_operator [11,14] is;11 attribute [12,13];1... | on release we reset the press data |
0 module [1];1 function_definition [2,3,4];2 function_name [] available_gpus;3 parameters [];4 block [5,13];5 expression_statement [6];6 assignment [7,8];7 identifier [] local_device_protos;8 call [9,12];9 attribute [10,11];10 identifier [] device_lib;11 identifier [] list_local_devices;12 argument_list [];13 return_st... | List of GPU device names detected by TensorFlow. |
0 module [1];1 function_definition [2,3,5];2 function_name [] restart;3 parameters [4];4 identifier [] self;5 block [6,31,39,48,64,73,79];6 expression_statement [7];7 call [8,22];8 attribute [9,21];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] BackgroundProcess;13 identifier [] objects;14 id... | restart all child processes |
0 module [1];1 function_definition [2,3,18];2 function_name [] _set_relationship_type;3 parameters [4,5,6,9,12,15];4 identifier [] self;5 identifier [] type_identifier;6 default_parameter [7,8];7 identifier [] display_name;8 None [];9 default_parameter [10,11];10 identifier [] display_label;11 None [];12 default_parame... | Sets the relationship type |
0 module [1];1 function_definition [2,3,7];2 function_name [] create;3 parameters [4,5];4 identifier [] appname;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8];8 if_statement [9,14,27];9 comparison_operator [10,11] in;10 identifier [] appname;11 attribute [12,13];12 identifier [] LinkFactory;13 identi... | Create a `Link` of a particular class, using the kwargs as options |
0 module [1];1 function_definition [2,3,6];2 function_name [] write_data;3 parameters [4,5];4 identifier [] path;5 identifier [] obj;6 block [7,28];7 with_statement [8,17];8 with_clause [9];9 with_item [10];10 as_pattern [11,15];11 call [12,13];12 identifier [] open_file_for_writing;13 argument_list [14];14 identifier ... | Writes to a file and returns the updated file content. |
0 module [1];1 function_definition [2,3,5];2 function_name [] shutdown_server;3 parameters [4];4 identifier [] self;5 block [6,15];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] log;12 identifier [] debug;13 argument_list [14];14 string [] shutdown... | Shut down server if it is alive. |
0 module [1];1 function_definition [2,3,6];2 function_name [] update_from;3 parameters [4,5];4 identifier [] self;5 identifier [] mapping;6 block [7];7 for_statement [8,11,16];8 pattern_list [9,10];9 identifier [] key;10 identifier [] value;11 call [12,15];12 attribute [13,14];13 identifier [] mapping;14 identifier [] ... | Updates the set of parameters from a mapping for keys that already exist |
0 module [1];1 function_definition [2,3,6];2 function_name [] _insert;3 parameters [4,5];4 identifier [] self;5 identifier [] trigram;6 block [7,20,39,45,55];7 expression_statement [8];8 assignment [9,10];9 identifier [] words;10 call [11,12];11 identifier [] list;12 argument_list [13];13 call [14,15];14 identifier [] ... | Insert a trigram in the DB |
0 module [1];1 function_definition [2,3,6];2 function_name [] process;3 parameters [4,5];4 identifier [] self;5 identifier [] metric;6 block [7,16];7 expression_statement [8];8 assignment [9,10];9 identifier [] event;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _metric_to_riemann_event;14... | Send a metric to Riemann. |
0 module [1];1 function_definition [2,3,5];2 function_name [] finddirs;3 parameters [4];4 identifier [] root;5 block [6,10,41];6 expression_statement [7];7 assignment [8,9];8 identifier [] retval;9 list [] [];10 for_statement [11,15,21];11 pattern_list [12,13,14];12 identifier [] root;13 identifier [] dirs;14 identifie... | Return a list of all the directories under `root` |
0 module [1];1 function_definition [2,3,8];2 function_name [] getNode;3 parameters [4,5,6];4 identifier [] self;5 identifier [] name;6 dictionary_splat_pattern [7];7 identifier [] context;8 block [9];9 if_statement [10,15,18];10 comparison_operator [11,12] ==;11 identifier [] name;12 attribute [13,14];13 identifier [] ... | Return tree node found by name |
0 module [1];1 function_definition [2,3,6];2 function_name [] _process_slice;3 parameters [4,5];4 identifier [] self;5 identifier [] arg;6 block [7,13,19,25,33,42,51,60,81,94,103,112];7 expression_statement [8];8 assignment [9,10];9 identifier [] start;10 attribute [11,12];11 identifier [] arg;12 identifier [] start;13... | process the input slice for use calling the C code |
0 module [1];1 function_definition [2,3,8];2 function_name [] existingInStore;3 parameters [4,5,6,7];4 identifier [] cls;5 identifier [] store;6 identifier [] storeID;7 identifier [] attrs;8 block [9,18,24,39,47,58,78,84];9 expression_statement [10];10 assignment [11,12];11 identifier [] self;12 call [13,16];13 attribu... | Create and return a new instance from a row from the store. |
0 module [1];1 function_definition [2,3,6];2 function_name [] diff_safe;3 parameters [4,5];4 identifier [] cls;5 identifier [] value;6 block [7,47];7 if_statement [8,13,27];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] value;12 identifier [] Frame;13 block [14];14 return_statement [... | Return a value that can be safely stored as a diff |
0 module [1];1 function_definition [2,3,5];2 function_name [] root_sections;3 parameters [4];4 identifier [] h;5 block [6,10,45];6 expression_statement [7];7 assignment [8,9];8 identifier [] roots;9 list [] [];10 for_statement [11,12,17];11 identifier [] section;12 call [13,16];13 attribute [14,15];14 identifier [] h;1... | Returns a list of all sections that have no parent. |
0 module [1];1 function_definition [2,3,6];2 function_name [] calc_K_xx_wo_variance;3 parameters [4,5];4 identifier [] self;5 identifier [] X;6 block [7,26,89];7 expression_statement [8];8 assignment [9,10];9 identifier [] K_xx;10 call [11,14];11 attribute [12,13];12 identifier [] np;13 identifier [] ones;14 argument_l... | Calculates K_xx without the variance term |
0 module [1];1 function_definition [2,3,5];2 function_name [] tasks;3 parameters [4];4 identifier [] self;5 block [6,46,63];6 if_statement [7,12];7 comparison_operator [8,11] is;8 attribute [9,10];9 identifier [] self;10 identifier [] _tasks;11 None [];12 block [13];13 expression_statement [14];14 assignment [15,18];15... | All completed tasks within specified time range |
0 module [1];1 function_definition [2,3,11];2 function_name [] load_json;3 parameters [4,5,8];4 identifier [] file;5 default_parameter [6,7];6 identifier [] new_root_dir;7 None [];8 default_parameter [9,10];9 identifier [] decompression;10 False [];11 block [12,61,70];12 if_statement [13,14,37];13 identifier [] decompr... | Load a JSON file using json_tricks |
0 module [1];1 function_definition [2,3,8];2 function_name [] adjust_from_utc_fields;3 parameters [4,6];4 list_splat_pattern [5];5 identifier [] args;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,19,27,40,46,55];9 expression_statement [10];10 assignment [11,12];11 identifier [] raw_ts;12 call [13,14]... | Constructs a timestamp from UTC fields adjusted to the local offset if given. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _consolidate;3 parameters [4];4 identifier [] blocks;5 block [6,15,31,35,67];6 expression_statement [7];7 assignment [8,9];8 identifier [] gkey;9 lambda [10,12];10 lambda_parameters [11];11 identifier [] x;12 attribute [13,14];13 identifier [] x;14 identifie... | Merge blocks having same dtype, exclude non-consolidating blocks |
0 module [1];1 function_definition [2,3,15,17];2 function_name [] write;3 parameters [4,5,11];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] stream;7 type [8];8 attribute [9,10];9 identifier [] typing;10 identifier [] BinaryIO;11 typed_parameter [12,13];12 identifier [] be;13 type [14];14 identifier [] bo... | Write the RSTB to the specified stream. |
0 module [1];1 function_definition [2,3,8];2 function_name [] popup;3 parameters [4,5];4 identifier [] text;5 default_parameter [6,7];6 identifier [] title;7 string [] Lackey Info;8 block [9,17,23];9 expression_statement [10];10 assignment [11,12];11 identifier [] root;12 call [13,16];13 attribute [14,15];14 identifier... | Creates an info dialog with the specified text. |
0 module [1];1 function_definition [2,3,6];2 function_name [] spotlight_search_route;3 parameters [4,5];4 identifier [] context;5 identifier [] request;6 block [7,16,20,36,44];7 expression_statement [8];8 assignment [9,10];9 identifier [] catalogs;10 list [11,12,13,14,15] [\n CATALOG_ANALYSIS_REQUEST_LISTING,\n ... | The spotlight search route |
0 module [1];1 function_definition [2,3,5];2 function_name [] run;3 parameters [4];4 identifier [] self;5 block [6,18,26];6 if_statement [7,10];7 attribute [8,9];8 identifier [] self;9 identifier [] init_sec;10 block [11];11 expression_statement [12];12 call [13,14];13 identifier [] sleep;14 argument_list [15];15 attri... | Start the recurring task. |
0 module [1];1 function_definition [2,3,7];2 function_name [] process_response;3 parameters [4,5,6];4 identifier [] self;5 identifier [] request;6 identifier [] response;7 block [8,15,22,29,36];8 expression_statement [9];9 call [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _set_request_auth_type_m... | Add metrics for various details of the request. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _whole_basis_types;3 parameters [4];4 identifier [] basis;5 block [6,12,62];6 expression_statement [7];7 assignment [8,9];8 identifier [] all_types;9 call [10,11];10 identifier [] set;11 argument_list [];12 for_statement [13,14,21];13 identifier [] v;14 call... | Get a list of all the types of features in this basis set. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.