sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,9];2 function_name [] _write_cache;3 parameters [4,5,6];4 identifier [] self;5 identifier [] lines;6 default_parameter [7,8];7 identifier [] append;8 False [];9 block [10,17];10 expression_statement [11];11 assignment [12,13];12 identifier [] mode;13 conditional_expression [14,15... | Write virtualenv metadata to cache. |
0 module [1];1 function_definition [2,3,5];2 function_name [] python_type;3 parameters [4];4 identifier [] textx_type_name;5 block [6];6 return_statement [7];7 call [8,35];8 attribute [9,34];9 dictionary [10,13,16,19,22,25,28,31];10 pair [11,12];11 string [] ID;12 identifier [] text;13 pair [14,15];14 string [] BOOL;15... | Return Python type from the name of base textx type. |
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,12,23,34];7 if_statement [8,10];8 not_operator [9];9 identifier [] boto;10 block [11];11 return_statement [];12 expression_statement [13];13 assignment [14,15];14 identifier []... | Process a metric and send it to CloudWatch |
0 module [1];1 function_definition [2,3,5];2 function_name [] generate_docs;3 parameters [4];4 identifier [] app;5 block [6,12,20,34,48,60,65,74,95,105];6 expression_statement [7];7 assignment [8,9];8 identifier [] config;9 attribute [10,11];10 identifier [] app;11 identifier [] config;12 expression_statement [13];13 a... | Run sphinx-apidoc to generate Python API documentation for the project. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _load_outcome_models;3 parameters [4];4 identifier [] self;5 block [6,13,19];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] state_copy_initialized;11 block [12];12 return_statement [];13 expression_statement... | Reloads the outcome models directly from the state |
0 module [1];1 function_definition [2,3,6];2 function_name [] move_committees;3 parameters [4,5];4 identifier [] src;5 identifier [] dest;6 block [7,16,22];7 expression_statement [8];8 assignment [9,12];9 pattern_list [10,11];10 identifier [] comm;11 identifier [] sub_comm;12 call [13,14];13 identifier [] import_commit... | Import stupid yaml files, convert to something useful. |
0 module [1];1 function_definition [2,3,6];2 function_name [] update_looking_for;3 parameters [4,5];4 identifier [] profile_tree;5 identifier [] looking_for;6 block [7,18,35,55,72,89];7 expression_statement [8];8 assignment [9,10];9 identifier [] div;10 subscript [11,17];11 call [12,15];12 attribute [13,14];13 identifi... | Update looking_for attribute of a Profile. |
0 module [1];1 function_definition [2,3,5];2 function_name [] connection;3 parameters [4];4 identifier [] self;5 block [6,14,83];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _condition;12 identifier [] acquire;13 argument_list [];14 try_statement... | get a cached connection from the pool |
0 module [1];1 function_definition [2,3,6];2 function_name [] params;3 parameters [4,5];4 identifier [] self;5 identifier [] dict;6 block [7,16];7 expression_statement [8];8 call [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] _configuration;13 identifier [] update;14 argument_lis... | Set configuration variables for an OnShape part. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _fit_radec;3 parameters [4];4 identifier [] self;5 block [6,18,37,48,69,76,84,92,124,130,139,145];6 expression_statement [7];7 assignment [8,15];8 attribute [9,14];9 attribute [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] orbfit;13 iden... | call fit_radec of BK passing in the observations. |
0 module [1];1 function_definition [2,3,4];2 function_name [] warning_free_pause;3 parameters [];4 block [5,11];5 import_statement [6];6 aliased_import [7,10];7 dotted_name [8,9];8 identifier [] matplotlib;9 identifier [] pyplot;10 identifier [] plt;11 with_statement [12,19];12 with_clause [13];13 with_item [14];14 cal... | Issue a matplotlib pause without the warning. |
0 module [1];1 function_definition [2,3,5];2 function_name [] gevent_stop;3 parameters [4];4 identifier [] self;5 block [6,9,18,24];6 import_statement [7];7 dotted_name [8];8 identifier [] gevent;9 expression_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] gevent;13 identifier [] kill;14 argument_l... | Helper method to stop the node for gevent-based applications. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _morph;3 parameters [4];4 identifier [] self;5 block [6,12,26,40,46,52,58,64];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] scanner_paths;11 dictionary [];12 if_statement [13,19];13 not_operator [14];... | Turn a file system node into a File object. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _find_common_roots;3 parameters [4];4 identifier [] paths;5 block [6,23,27,64,70,110,116];6 expression_statement [7];7 assignment [8,9];8 identifier [] paths;9 list_comprehension [10,20];10 call [11,14];11 attribute [12,13];12 identifier [] x;13 identifier [... | Out of some paths it finds the common roots that need monitoring. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dt64_to_dt;3 parameters [4];4 identifier [] dt64;5 block [6,26];6 expression_statement [7];7 assignment [8,9];8 identifier [] ts;9 binary_operator [10,19] /;10 () [11];11 binary_operator [12,13] -;12 identifier [] dt64;13 call [14,17];14 attribute [15,16];15... | Safely converts NumPy datetime64 to a datetime object. |
0 module [1];1 function_definition [2,3,6];2 function_name [] make_hash;3 parameters [4,5];4 identifier [] s;5 identifier [] n_bytes;6 block [7,31];7 expression_statement [8];8 assignment [9,10];9 identifier [] raw_h;10 call [11,12];11 identifier [] int;12 argument_list [13,30];13 subscript [14,27];14 call [15,26];15 a... | Make the hash from a matches key. |
0 module [1];1 function_definition [2,3,7];2 function_name [] search;3 parameters [4,5,6];4 identifier [] self;5 identifier [] spec;6 identifier [] operator;7 block [8];8 return_statement [9];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] xmlrpc;14 identifier [] search;1... | Query PYPI via XMLRPC interface using search spec |
0 module [1];1 function_definition [2,3,6];2 function_name [] validate_answer;3 parameters [4,5];4 identifier [] self;5 identifier [] value;6 block [7,30,47];7 try_statement [8,18];8 block [9];9 expression_statement [10];10 assignment [11,12];11 identifier [] serialized;12 call [13,16];13 attribute [14,15];14 identifie... | Check that the answer is JSON-serializable and not too long. |
0 module [1];1 function_definition [2,3,8];2 function_name [] create;3 parameters [4,5,6,7];4 identifier [] cls;5 identifier [] name;6 identifier [] email;7 identifier [] cb;8 block [9,19,27,38];9 expression_statement [10];10 assignment [11,12];11 identifier [] it;12 call [13,14];13 identifier [] cls;14 argument_list [... | Create the basic structure of a player |
0 module [1];1 function_definition [2,3,16];2 function_name [] from_similars;3 parameters [4,5,6,14];4 identifier [] cls;5 identifier [] learn;6 typed_default_parameter [7,8,10];7 identifier [] layer_ls;8 type [9];9 identifier [] list;10 list [11,12,13] [0, 7, 2];11 integer [] 0;12 integer [] 7;13 integer [] 2;14 dicti... | Gets the indices for the most similar images. |
0 module [1];1 function_definition [2,3,5];2 function_name [] leaf_asts;3 parameters [4];4 identifier [] self;5 block [6,12,20];6 expression_statement [7];7 assignment [8,9];8 identifier [] seen;9 call [10,11];10 identifier [] set;11 argument_list [];12 expression_statement [13];13 assignment [14,15];14 identifier [] a... | Return an iterator over the leaf ASTs. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _initialize_recursion_depth;3 parameters [4];4 identifier [] self;5 block [6,12,24,34,44,93];6 import_from_statement [7,10];7 dotted_name [8,9];8 identifier [] furious;9 identifier [] context;10 dotted_name [11];11 identifier [] get_current_async;12 expressi... | Ensure recursion info is initialized, if not, initialize it. |
0 module [1];1 function_definition [2,3,6];2 function_name [] make_field_objects;3 parameters [4,5];4 identifier [] field_data;5 identifier [] names;6 block [7,11,15,170];7 expression_statement [8];8 assignment [9,10];9 identifier [] field_objects;10 list [] [];11 expression_statement [12];12 assignment [13,14];13 iden... | We're going to need to make message parameters too. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _remove_deactivated;3 parameters [4];4 identifier [] contexts;5 block [6,23,29,47,51,95];6 expression_statement [7];7 assignment [8,9];8 identifier [] stack_contexts;9 call [10,11];10 identifier [] tuple;11 argument_list [12];12 list_comprehension [13,14,19]... | Remove deactivated handlers from the chain |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] cursor;3 parameters [4];4 identifier [] self;5 type [6];6 identifier [] Cursor;7 block [8];8 return_statement [9];9 call [10,11];10 identifier [] Cursor;11 argument_list [12,13];12 identifier [] self;13 await [14];14 call [15,18];15 attribute [16,17];16 id... | Create an aiosqlite cursor wrapping a sqlite3 cursor object. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _update_alpha;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] event;7 None [];8 block [9,19,29,46,56,66,75];9 expression_statement [10];10 assignment [11,12];11 identifier [] a;12 call [13,18];13 attribute [14,17];14 attribu... | Update display after a change in the alpha spinbox. |
0 module [1];1 function_definition [2,3,9];2 function_name [] setLog;3 parameters [4,5,6];4 identifier [] self;5 identifier [] fileName;6 default_parameter [7,8];7 identifier [] writeName;8 False [];9 block [10,16,22,32];10 expression_statement [11];11 assignment [12,15];12 attribute [13,14];13 identifier [] self;14 id... | Opens a log file with name fileName. |
0 module [1];1 function_definition [2,3,7];2 function_name [] jsonp_wrap;3 parameters [4];4 default_parameter [5,6];5 identifier [] callback_key;6 string [] callback;7 block [8,116];8 function_definition [9,10,12];9 function_name [] decorator_fn;10 parameters [11];11 identifier [] f;12 block [13,114];13 decorated_defin... | Format response to jsonp and add a callback to JSON data - a jsonp request |
0 module [1];1 function_definition [2,3,14];2 function_name [] peak_interval;3 parameters [4,5,6,9,12];4 identifier [] self;5 identifier [] name;6 default_parameter [7,8];7 identifier [] alpha;8 identifier [] _alpha;9 default_parameter [10,11];10 identifier [] npoints;11 identifier [] _npoints;12 dictionary_splat_patte... | Calculate peak interval for parameter. |
0 module [1];1 function_definition [2,3,5];2 function_name [] make_complete;3 parameters [4];4 identifier [] self;5 block [6,27];6 expression_statement [7];7 assignment [8,13];8 subscript [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] array;12 string [] sids;13 call [14,17];14 attribute [15,16];15 id... | Turns the site collection into a complete one, if needed |
0 module [1];1 function_definition [2,3,5];2 function_name [] _wrap_unary_errors;3 parameters [4];4 identifier [] callable_;5 block [6,11,58];6 expression_statement [7];7 call [8,9];8 identifier [] _patch_callable_name;9 argument_list [10];10 identifier [] callable_;11 decorated_definition [12,19];12 decorator [13];13 ... | Map errors for Unary-Unary and Stream-Unary gRPC callables. |
0 module [1];1 function_definition [2,3,12];2 function_name [] wordlist2cognates;3 parameters [4,5,6,9];4 identifier [] wordlist;5 identifier [] source;6 default_parameter [7,8];7 identifier [] expert;8 string [] expert;9 default_parameter [10,11];10 identifier [] ref;11 string [] cogid;12 block [13];13 for_statement [... | Turn a wordlist into a cognate set list, using the cldf parameters. |
0 module [1];1 function_definition [2,3,6];2 function_name [] read_bytes;3 parameters [4,5];4 identifier [] self;5 identifier [] path;6 block [7,16,24,30];7 expression_statement [8];8 assignment [9,10];9 identifier [] file;10 call [11,14];11 attribute [12,13];12 identifier [] staticfiles_storage;13 identifier [] open;1... | Read file content in binary mode |
0 module [1];1 function_definition [2,3,10];2 function_name [] task;3 parameters [4,7];4 default_parameter [5,6];5 identifier [] obj;6 None [];7 default_parameter [8,9];8 identifier [] deps;9 None [];10 block [11,27,46];11 if_statement [12,16];12 call [13,14];13 identifier [] callable;14 argument_list [15];15 identifie... | Decorator for creating a task. |
0 module [1];1 function_definition [2,3,5];2 function_name [] update_footer;3 parameters [4];4 identifier [] self;5 block [6,16,30,41,56,71,85,105,121,133];6 expression_statement [7];7 assignment [8,9];8 identifier [] field_item;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifie... | Update footer when the field list change. |
0 module [1];1 function_definition [2,3,4];2 function_name [] _global_index;3 parameters [];4 block [5,14,26,79,111];5 expression_statement [6];6 assignment [7,8];7 identifier [] var_and_type;8 binary_operator [9,10] +;9 identifier [] var;10 call [11,12];11 identifier [] Optional;12 argument_list [13];13 identifier [] ... | Create grammar for a global index declaration |
0 module [1];1 function_definition [2,3,5];2 function_name [] humanize_date;3 parameters [4];4 identifier [] p_datetime;5 block [6,14,37];6 expression_statement [7];7 assignment [8,9];8 identifier [] now;9 call [10,13];10 attribute [11,12];11 identifier [] arrow;12 identifier [] now;13 argument_list [];14 expression_st... | Returns a relative date string from a datetime object. |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] flow;3 parameters [4];4 identifier [] self;5 type [6];6 identifier [] FlowField;7 block [8,10,28,55];8 expression_statement [9];9 string [] Access the flow-field grid after applying queued affine transforms.;10 if_statement [11,16];11 comparison_operator [... | Access the flow-field grid after applying queued affine transforms. |
0 module [1];1 function_definition [2,3,5];2 function_name [] dump_dict;3 parameters [4];4 identifier [] self;5 block [6,12,20,159];6 expression_statement [7];7 assignment [8,9];8 identifier [] dump_dict;9 call [10,11];10 identifier [] dict;11 argument_list [];12 expression_statement [13];13 assignment [14,17];14 subsc... | Returns a dictionary representation of the structure. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _check_file_corruption;3 parameters [4,5];4 identifier [] self;5 identifier [] header;6 block [7,47];7 if_statement [8,25];8 boolean_operator [9,20] or;9 boolean_operator [10,15] or;10 comparison_operator [11,14] ==;11 attribute [12,13];12 identifier [] head... | check for file corruption based on an unknown message type in the header |
0 module [1];1 function_definition [2,3,5];2 function_name [] extract_number;3 parameters [4];4 identifier [] text;5 block [6,12,18,25,61,73,79,120];6 expression_statement [7];7 assignment [8,9];8 identifier [] result;9 call [10,11];10 identifier [] list;11 argument_list [];12 expression_statement [13];13 assignment [1... | Extract digit character from text. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_yum_config_value;3 parameters [4];4 identifier [] name;5 block [6,12,28];6 expression_statement [7];7 assignment [8,9];8 identifier [] conf;9 call [10,11];10 identifier [] _get_yum_config;11 argument_list [];12 if_statement [13,20];13 comparison_operato... | Look for a specific config variable and return its value |
0 module [1];1 function_definition [2,3,6];2 function_name [] index;3 parameters [4,5];4 identifier [] request;5 identifier [] page;6 block [7,11,17,34,44,105];7 expression_statement [8];8 assignment [9,10];9 identifier [] days;10 list [] [];11 expression_statement [12];12 assignment [13,14];13 identifier [] days_found... | Show the index page or any an offset of it. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _full_to_yearly_ts;3 parameters [4,5,6];4 identifier [] self;5 identifier [] arr;6 identifier [] dt;7 block [8,22,37];8 expression_statement [9];9 assignment [10,11];10 identifier [] time_defined;11 boolean_operator [12,15] and;12 attribute [13,14];13 identi... | Average the full timeseries within each year. |
0 module [1];1 function_definition [2,3,5,7];2 function_name [] expand_all_quays;3 parameters [4];4 identifier [] self;5 type [6];6 None [];7 block [8,15,24,44,72,91,100,106];8 if_statement [9,13];9 not_operator [10];10 attribute [11,12];11 identifier [] self;12 identifier [] stops;13 block [14];14 return_statement [];... | Find all quays from stop places. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _var_bounds;3 parameters [4];4 identifier [] self;5 block [6,13,20,27,62];6 expression_statement [7];7 assignment [8,9];8 identifier [] x0;9 call [10,11];10 identifier [] array;11 argument_list [12];12 list [] [];13 expression_statement [14];14 assignment [1... | Returns bounds on the optimisation variables. |
0 module [1];1 function_definition [2,3,14];2 function_name [] connect;3 parameters [4,5,8,11];4 identifier [] db;5 default_parameter [6,7];6 identifier [] host;7 identifier [] HACR_DATABASE_SERVER;8 default_parameter [9,10];9 identifier [] user;10 identifier [] HACR_DATABASE_USER;11 default_parameter [12,13];12 identi... | Connect to the given SQL database |
0 module [1];1 function_definition [2,3,4];2 function_name [] setup_logging;3 parameters [];4 block [5,25,141];5 expression_statement [6];6 assignment [7,8];7 identifier [] config;8 call [9,12];9 attribute [10,11];10 identifier [] json;11 identifier [] load;12 argument_list [13];13 call [14,15];14 identifier [] open;15... | Utility function to setup the logging systems based on the `logging.json` configuration file |
0 module [1];1 function_definition [2,3,5];2 function_name [] getPythonVarName;3 parameters [4];4 identifier [] name;5 block [6];6 return_statement [7];7 call [8,47];8 attribute [9,46];9 call [10,13];10 attribute [11,12];11 identifier [] SUB_REGEX;12 identifier [] sub;13 argument_list [14,15];14 string [];15 call [16,4... | Get the python variable name |
0 module [1];1 function_definition [2,3,6];2 function_name [] _conv_adr;3 parameters [4,5];4 identifier [] adr;5 identifier [] entry;6 block [7,24,41,58,75,100];7 if_statement [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] adr;11 identifier [] value;12 identifier [] street;13 block [14];14 expression_st... | Converts to Abook address format |
0 module [1];1 function_definition [2,3,5];2 function_name [] update_model_cache;3 parameters [4];4 identifier [] table_name;5 block [6,20];6 expression_statement [7];7 assignment [8,9];8 identifier [] model_cache_info;9 call [10,11];10 identifier [] ModelCacheInfo;11 argument_list [12,13];12 identifier [] table_name;1... | Updates model cache by generating a new key for the model |
0 module [1];1 function_definition [2,3,9];2 function_name [] sourcehook;3 parameters [4,5,6];4 identifier [] self;5 identifier [] newfile;6 default_parameter [7,8];7 identifier [] encoding;8 string [] utf-8;9 block [10,12,17,34,74];10 expression_statement [11];11 string [] Hook called on a filename to be sourced.;12 i... | Hook called on a filename to be sourced. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _set_repo_option;3 parameters [4,5];4 identifier [] repo;5 identifier [] option;6 block [7,12,21,30];7 if_statement [8,10];8 not_operator [9];9 identifier [] option;10 block [11];11 return_statement [];12 expression_statement [13];13 assignment [14,15];14 id... | Set the option to repo |
0 module [1];1 function_definition [2,3,15];2 function_name [] brent_optimise;3 parameters [4,5,6,9,12];4 identifier [] node1;5 identifier [] node2;6 default_parameter [7,8];7 identifier [] min_brlen;8 float [] 0.001;9 default_parameter [10,11];10 identifier [] max_brlen;11 integer [] 10;12 default_parameter [13,14];13... | Optimise ML distance between two partials. min and max set brackets |
0 module [1];1 function_definition [2,3,5];2 function_name [] before_func_accept_retry_state;3 parameters [4];4 identifier [] fn;5 block [6,17,25,57];6 if_statement [7,14];7 not_operator [8];8 call [9,12];9 attribute [10,11];10 identifier [] six;11 identifier [] callable;12 argument_list [13];13 identifier [] fn;14 blo... | Wrap "before" function to accept "retry_state". |
0 module [1];1 function_definition [2,3,5];2 function_name [] GetVmodlType;3 parameters [4];4 identifier [] name;5 block [6,15,24,29,38,50,59,77];6 if_statement [7,12];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] name;11 identifier [] type;12 block [13];13 return_statement [14];14 id... | Get type from vmodl name |
0 module [1];1 function_definition [2,3,5,11];2 function_name [] openTrades;3 parameters [4];4 identifier [] self;5 type [6];6 generic_type [7,8];7 identifier [] List;8 type_parameter [9];9 type [10];10 identifier [] Trade;11 block [12];12 return_statement [13];13 list_comprehension [14,15,26];14 identifier [] v;15 for... | List of all open order trades. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _use_absolute_file_name;3 parameters [4,5];4 identifier [] self;5 identifier [] img;6 block [7,25];7 expression_statement [8];8 assignment [9,12];9 subscript [10,11];10 identifier [] img;11 string [] file_name;12 call [13,18];13 attribute [14,17];14 attribut... | Change relative filename to abosolute file name. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _handle_cancel_notification;3 parameters [4,5];4 identifier [] self;5 identifier [] msg_id;6 block [7,19,32];7 expression_statement [8];8 assignment [9,10];9 identifier [] request_future;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier... | Handle a cancel notification from the client. |
0 module [1];1 function_definition [2,3,7];2 function_name [] _iter_lexerclasses;3 parameters [4];4 default_parameter [5,6];5 identifier [] plugins;6 True [];7 block [8,42];8 for_statement [9,10,14];9 identifier [] key;10 call [11,12];11 identifier [] sorted;12 argument_list [13];13 identifier [] LEXERS;14 block [15,27... | Return an iterator over all lexer classes. |
0 module [1];1 function_definition [2,3,6];2 function_name [] setFormatMetadata;3 parameters [4,5];4 identifier [] self;5 identifier [] format;6 block [7,25,31];7 assert_statement [8];8 () [9];9 boolean_operator [10,19] or;10 () [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifier [] needMetada... | Set format image metadata to what has been reliably identified. |
0 module [1];1 function_definition [2,3,14];2 function_name [] query;3 parameters [4,5,9];4 identifier [] self;5 typed_parameter [6,7];6 identifier [] sql;7 type [8];8 identifier [] str;9 typed_default_parameter [10,11,13];10 identifier [] args;11 type [12];12 identifier [] tuple;13 None [];14 block [15];15 with_statem... | Execute a SQL query with a return value. |
0 module [1];1 function_definition [2,3,8];2 function_name [] publishToMyself;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] roomId;6 identifier [] name;7 identifier [] data;8 block [9];9 expression_statement [10];10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] publishToRoom;14 ... | Publish to only myself |
0 module [1];1 function_definition [2,3,5];2 function_name [] run;3 parameters [4];4 identifier [] self;5 block [6,21,29,37];6 expression_statement [7];7 assignment [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] timer;11 call [12,15];12 attribute [13,14];13 identifier [] t;14 identifier [] Thread;15 ar... | Span a background thread to periodically report queued spans |
0 module [1];1 function_definition [2,3,14];2 function_name [] delaunay3D;3 parameters [4,5,8,11];4 identifier [] dataset;5 default_parameter [6,7];6 identifier [] alpha;7 integer [] 0;8 default_parameter [9,10];9 identifier [] tol;10 None [];11 default_parameter [12,13];12 identifier [] boundary;13 True [];14 block [1... | Create 3D Delaunay triangulation of input points. |
0 module [1];1 function_definition [2,3,9];2 function_name [] execute_command;3 parameters [4,5,7];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] args;7 dictionary_splat_pattern [8];8 identifier [] kwargs;9 block [10];10 try_statement [11,26];11 block [12];12 return_statement [13];13 call [14,21];14 attr... | Execute a command on the connected server. |
0 module [1];1 function_definition [2,3,6];2 function_name [] isDocumentCollection;3 parameters [4,5];4 identifier [] cls;5 identifier [] name;6 block [7];7 try_statement [8,24];8 block [9,18];9 expression_statement [10];10 assignment [11,12];11 identifier [] col;12 call [13,16];13 attribute [14,15];14 identifier [] cl... | return true or false wether 'name' is the name of a document collection. |
0 module [1];1 function_definition [2,3,9];2 function_name [] read_sis_ini;3 parameters [4,5,6,7,8];4 identifier [] fh;5 identifier [] byteorder;6 identifier [] dtype;7 identifier [] count;8 identifier [] offsetsize;9 block [10,19,29];10 expression_statement [11];11 assignment [12,13];12 identifier [] inistr;13 call [1... | Read OlympusSIS INI string and return as dict. |
0 module [1];1 function_definition [2,3,5];2 function_name [] sortframe;3 parameters [4];4 identifier [] frame;5 block [6,12,30,36,42];6 expression_statement [7];7 assignment [8,9];8 identifier [] d;9 subscript [10,11];10 identifier [] frame;11 string [] data;12 expression_statement [13];13 assignment [14,15];14 identi... | sorts particles for a frame |
0 module [1];1 function_definition [2,3,6];2 function_name [] center;3 parameters [4,5];4 identifier [] self;5 identifier [] X;6 block [7,15,24,69,102,110,129];7 expression_statement [8];8 assignment [9,10];9 identifier [] X;10 call [11,14];11 attribute [12,13];12 identifier [] X;13 identifier [] copy;14 argument_list ... | Center `X` in PCA space. |
0 module [1];1 function_definition [2,3,5];2 function_name [] __store_deactivated_components;3 parameters [4];4 identifier [] self;5 block [6,10,51,68];6 expression_statement [7];7 assignment [8,9];8 identifier [] deactivated_components;9 list [] [];10 for_statement [11,12,24];11 identifier [] node;12 call [13,18];13 a... | Stores deactivated Components in settings file. |
0 module [1];1 function_definition [2,3,6];2 function_name [] show;3 parameters [4,5];4 identifier [] self;5 identifier [] baseAppInstance;6 block [7,16];7 expression_statement [8];8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] from_dict_to_fields;12 argument_list [13];13 attribute [14,15];14 ... | Allows to show the widget as root window |
0 module [1];1 function_definition [2,3,13];2 function_name [] _one_iteration;3 parameters [4,5,6,7,8,9,10,11,12];4 identifier [] self;5 identifier [] F;6 identifier [] Ybus;7 identifier [] V;8 identifier [] Vm;9 identifier [] Va;10 identifier [] pv;11 identifier [] pq;12 identifier [] pvpq;13 block [14,27,38,45,52,72,... | Performs one Newton iteration. |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_dict;3 parameters [4];4 identifier [] self;5 block [6,10,29];6 expression_statement [7];7 assignment [8,9];8 identifier [] d;9 dictionary [];10 for_statement [11,14,15];11 pattern_list [12,13];12 identifier [] key;13 identifier [] value;14 identifier [] s... | Return a copy of the comment data in a real dict. |
0 module [1];1 function_definition [2,3,6];2 function_name [] clear_cache;3 parameters [4,5];4 identifier [] m;5 identifier [] files_processed;6 block [7];7 for_statement [8,13,14];8 pattern_list [9,10,11,12];9 identifier [] what;10 identifier [] reason;11 identifier [] url;12 identifier [] path;13 identifier [] files_... | Remove any files we may have uploaded from the cache. |
0 module [1];1 function_definition [2,3,12];2 function_name [] table_formatter;3 parameters [4,5,6,9];4 identifier [] self;5 identifier [] dataframe;6 default_parameter [7,8];7 identifier [] inc_header;8 integer [] 1;9 default_parameter [10,11];10 identifier [] inc_index;11 integer [] 1;12 block [13];13 return_statemen... | Return a table formatter for the dataframe. Saves the user the need to import this class |
0 module [1];1 function_definition [2,3,6];2 function_name [] pxe_netboot;3 parameters [4,5];4 identifier [] self;5 identifier [] filename;6 block [7,46];7 expression_statement [8];8 assignment [9,10];9 identifier [] new_port;10 dictionary [11];11 pair [12,13];12 string [] extra_dhcp_opts;13 list [14,26,36] [\n ... | Specify which file ipxe should load during the netboot. |
0 module [1];1 function_definition [2,3,15];2 function_name [] create_archive;3 parameters [4,5,6,9,12];4 identifier [] archive;5 identifier [] filenames;6 default_parameter [7,8];7 identifier [] verbosity;8 integer [] 0;9 default_parameter [10,11];10 identifier [] program;11 None [];12 default_parameter [13,14];13 ide... | Create given archive with given files. |
0 module [1];1 function_definition [2,3,11];2 function_name [] padded_variance_explained;3 parameters [4,5,6];4 identifier [] predictions;5 identifier [] labels;6 default_parameter [7,8];7 identifier [] weights_fn;8 attribute [9,10];9 identifier [] common_layers;10 identifier [] weights_all;11 block [12,24,28,35,46,65,... | Explained variance, also known as R^2. |
0 module [1];1 function_definition [2,3,5];2 function_name [] create_index;3 parameters [4];4 identifier [] modules;5 block [6];6 for_statement [7,8,13];7 identifier [] key;8 call [9,12];9 attribute [10,11];10 identifier [] modules;11 identifier [] keys;12 argument_list [];13 block [14,24,32,41,54,66,73,80,87];14 expre... | This takes a dict of modules and created the RST index file. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _expand_one_key_dictionary;3 parameters [4];4 identifier [] _dict;5 block [6,18,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] key;9 call [10,11];10 identifier [] next;11 argument_list [12];12 call [13,16];13 attribute [14,15];14 identifie... | Returns the only one key and it's value from a dictionary. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _copy_context_into_mutable;3 parameters [4];4 identifier [] context;5 block [6,27,52];6 function_definition [7,8,10];7 function_name [] make_mutable;8 parameters [9];9 identifier [] val;10 block [11];11 if_statement [12,17,23];12 call [13,14];13 identifier [... | Copy a properly formatted context into a mutable data structure. |
0 module [1];1 function_definition [2,3,53];2 function_name [] login;3 parameters [4,5,8,11,14,17,20,27,30,33,36,39,42,45,48];4 identifier [] self;5 default_parameter [6,7];6 identifier [] command;7 string [] su -;8 default_parameter [9,10];9 identifier [] user;10 None [];11 default_parameter [12,13];12 identifier [] p... | Logs user in on default child. |
0 module [1];1 function_definition [2,3,5];2 function_name [] check_theme;3 parameters [4];4 identifier [] theme;5 block [6,19];6 expression_statement [7];7 assignment [8,9];8 identifier [] terminal_colors;9 conditional_expression [10,13,18] if;10 attribute [11,12];11 identifier [] curses;12 identifier [] COLORS;13 cal... | Check if the given theme is compatible with the terminal |
0 module [1];1 function_definition [2,3,5];2 function_name [] reindex;3 parameters [4];4 identifier [] report;5 block [6,15,24];6 expression_statement [7];7 assignment [8,9];8 identifier [] index;9 call [10,11];10 identifier [] list;11 argument_list [12];12 attribute [13,14];13 identifier [] report;14 identifier [] ind... | Reindex report so that 'TOTAL' is the last row |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_line;3 parameters [4];4 identifier [] string;5 block [6,17];6 expression_statement [7];7 assignment [8,9];8 identifier [] match;9 call [10,15];10 attribute [11,14];11 call [12,13];12 identifier [] line_regexp;13 argument_list [];14 identifier [] match;... | Parse a single string as traceback line |
0 module [1];1 function_definition [2,3,8];2 function_name [] create_notification_rule;3 parameters [4,5,6];4 identifier [] self;5 identifier [] data;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,16,30,48,61];9 expression_statement [10];10 assignment [11,12];11 identifier [] data;12 dictionary [13];1... | Create a notification rule for this user. |
0 module [1];1 function_definition [2,3,8];2 function_name [] requestOpenOrders;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] all_clients;7 False [];8 block [9,20];9 if_statement [10,11];10 identifier [] all_clients;11 block [12];12 expression_statement [13];13 call [14,19];14 attrib... | Request open orders - loads up orders that wasn't created using this session |
0 module [1];1 function_definition [2,3,9];2 function_name [] _process_generic_param;3 parameters [4,5,6];4 identifier [] pval;5 identifier [] def_unit;6 default_parameter [7,8];7 identifier [] equivalencies;8 list [] [];9 block [10,37];10 if_statement [11,18,31];11 call [12,13];12 identifier [] isinstance;13 argument_... | Process generic model parameter. |
0 module [1];1 function_definition [2,3,8];2 function_name [] mapper;3 parameters [4,5];4 identifier [] mapping;5 default_parameter [6,7];6 identifier [] _nt_name;7 string [] NT;8 block [9,68];9 if_statement [10,22,52];10 boolean_operator [11,16] and;11 call [12,13];12 identifier [] isinstance;13 argument_list [14,15];... | Convert mappings to namedtuples recursively. |
0 module [1];1 function_definition [2,3,8];2 function_name [] __getRefererUrl;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] url;7 None [];8 block [9,18,30,54,60,66];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] url;12 None [];13 block [14];14 expression_st... | gets the referer url for the token handler |
0 module [1];1 function_definition [2,3,7];2 function_name [] palettebar;3 parameters [4,5,6];4 identifier [] height;5 identifier [] length;6 identifier [] colormap;7 block [8,32,64];8 expression_statement [9];9 assignment [10,11];10 identifier [] cbar;11 call [12,15];12 attribute [13,14];13 identifier [] np;14 identif... | Return the channels of a palettebar. |
0 module [1];1 function_definition [2,3,5];2 function_name [] after_unassign;3 parameters [4];4 identifier [] reference_analysis;5 block [6,13,19];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] analysis_events;10 identifier [] after_unassign;11 argument_list [12];12 identifier [] reference_... | Removes the reference analysis from the system |
0 module [1];1 function_definition [2,3,5];2 function_name [] preloop;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,11];7 not_operator [8];8 attribute [9,10];9 identifier [] self;10 identifier [] parser;11 block [12,28,37,45];12 expression_statement [13];13 call [14,19];14 attribute [15,18];15 att... | if the parser is not already set, loads the parser. |
0 module [1];1 function_definition [2,3,15,17];2 function_name [] board_fen;3 parameters [4,5,6];4 identifier [] self;5 keyword_separator [];6 typed_default_parameter [7,8,14];7 identifier [] promoted;8 type [9];9 generic_type [10,11];10 identifier [] Optional;11 type_parameter [12];12 type [13];13 identifier [] bool;1... | Gets the board FEN. |
0 module [1];1 function_definition [2,3,8];2 function_name [] headerData;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] section;6 identifier [] orientation;7 identifier [] role;8 block [9,41,56,73,84,129];9 if_statement [10,15];10 comparison_operator [11,12] ==;11 identifier [] role;12 attribute [13,14];13... | Get the information to put in the header. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _file_lines;3 parameters [4,5];4 identifier [] self;5 identifier [] filename;6 block [7];7 try_statement [8,15];8 block [9];9 return_statement [10];10 subscript [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _file_lines_cache;14 identifi... | Get lines for filename, caching opened files. |
0 module [1];1 function_definition [2,3,5];2 function_name [] expand_source_paths;3 parameters [4];4 identifier [] paths;5 block [6];6 for_statement [7,8,9];7 identifier [] src_path;8 identifier [] paths;9 block [10,41];10 if_statement [11,19];11 call [12,15];12 attribute [13,14];13 identifier [] src_path;14 identifier... | Convert pyc files into their source equivalents. |
0 module [1];1 function_definition [2,3,5];2 function_name [] objectprep;3 parameters [4];4 identifier [] self;5 block [6];6 if_statement [7,10,112];7 attribute [8,9];8 identifier [] self;9 identifier [] bcltofastq;10 block [11,36,47,56,64,72,80,88,96,104];11 if_statement [12,15];12 attribute [13,14];13 identifier [] s... | Creates fastq files from an in-progress Illumina MiSeq run or create an object and moves files appropriately |
0 module [1];1 function_definition [2,3,8];2 function_name [] addCmdClass;3 parameters [4,5,6];4 identifier [] self;5 identifier [] ctor;6 dictionary_splat_pattern [7];7 identifier [] opts;8 block [9,18,26];9 expression_statement [10];10 assignment [11,12];11 identifier [] item;12 call [13,14];13 identifier [] ctor;14 ... | Add a Cmd subclass to this cli. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.