sequence stringlengths 388 5.57k | docstring stringlengths 11 171 |
|---|---|
0 module [1];1 function_definition [2,3,5];2 function_name [] spin_sz;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] conversions;10 identifier [] secondary_spin;11 argument_list [12,15,18,21];12 attribute [13,14];13 identifier [] self;14 identif... | Returns the z-component of the spin of the secondary mass. |
0 module [1];1 function_definition [2,3,6];2 function_name [] find_model;3 parameters [4,5];4 identifier [] sender;5 identifier [] model_name;6 block [7,13,38];7 expression_statement [8];8 assignment [9,10];9 identifier [] MC;10 call [11,12];11 identifier [] get_mc;12 argument_list [];13 expression_statement [14];14 as... | Register new model to ORM |
0 module [1];1 function_definition [2,3,6];2 function_name [] phi_from_spinx_spiny;3 parameters [4,5];4 identifier [] spinx;5 identifier [] spiny;6 block [7,17];7 expression_statement [8];8 assignment [9,10];9 identifier [] phi;10 call [11,14];11 attribute [12,13];12 identifier [] numpy;13 identifier [] arctan2;14 argu... | Returns the angle between the x-component axis and the in-plane spin. |
0 module [1];1 function_definition [2,3,4];2 function_name [] available;3 parameters [];4 block [5,27,33];5 expression_statement [6];6 assignment [7,8];7 identifier [] proc;8 call [9,10];9 identifier [] popen_multiple;10 argument_list [11,12,14,19,24];11 identifier [] COMMANDS;12 list [13] ['-version'];13 string [] -ve... | Detect if the FFmpeg backend can be used on this system. |
0 module [1];1 function_definition [2,3,7];2 function_name [] makeMany2ManyRelatedManager;3 parameters [4,5,6];4 identifier [] formodel;5 identifier [] name_relmodel;6 identifier [] name_formodel;7 block [8,14,20,26,32];8 class_definition [9,10,12];9 identifier [] _Many2ManyRelatedManager;10 argument_list [11];11 ident... | formodel is the model which the manager . |
0 module [1];1 function_definition [2,3,4];2 function_name [] serial_number;3 parameters [];4 block [5,9,59];5 expression_statement [6];6 assignment [7,8];7 identifier [] sdata;8 dictionary [];9 if_statement [10,17];10 comparison_operator [11,16] ==;11 call [12,15];12 attribute [13,14];13 identifier [] os;14 identifier... | Get the serial number. Requires root access |
0 module [1];1 function_definition [2,3,4];2 function_name [] biopax_process_pc_pathsbetween;3 parameters [];4 block [5,14,29,38,47,56];5 if_statement [6,11];6 comparison_operator [7,10] ==;7 attribute [8,9];8 identifier [] request;9 identifier [] method;10 string [] OPTIONS;11 block [12];12 return_statement [13];13 di... | Process PathwayCommons paths between genes, return INDRA Statements. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _update_nonce_explicit;3 parameters [4];4 identifier [] self;5 block [6,14];6 expression_statement [7];7 assignment [8,9];8 identifier [] ne;9 binary_operator [10,13] +;10 attribute [11,12];11 identifier [] self;12 identifier [] nonce_explicit;13 integer [] ... | Increment the explicit nonce while avoiding any overflow. |
0 module [1];1 function_definition [2,3,5];2 function_name [] armed;3 parameters [4];4 identifier [] HEARTBEAT;5 block [6,11,39,52];6 import_from_statement [7,9];7 relative_import [8];8 import_prefix [];9 dotted_name [10];10 identifier [] mavutil;11 if_statement [12,21];12 comparison_operator [13,16] ==;13 attribute [1... | return 1 if armed, 0 if not |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove_property;3 parameters [4,5];4 identifier [] xml_root;5 identifier [] partial_name;6 block [7];7 if_statement [8,16,67];8 comparison_operator [9,12] in;9 attribute [10,11];10 identifier [] xml_root;11 identifier [] tag;12 tuple [13,14,15];13 string [] ... | Removes properties if exist. |
0 module [1];1 function_definition [2,3,5];2 function_name [] trigger;3 parameters [4];4 identifier [] self;5 block [6,20];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] call_back;11 argument_list [12,16];12 list_splat [13];13 attribute [14,15];14 identifier [] self;15... | calls the call_back function. interrupts the timer to start a new countdown |
0 module [1];1 function_definition [2,3,9];2 function_name [] find;3 parameters [4,5,6,7,8];4 identifier [] self;5 identifier [] node;6 identifier [] interval;7 identifier [] start;8 identifier [] end;9 block [10,14,32,40,48,96,144];10 expression_statement [11];11 assignment [12,13];12 identifier [] data;13 list [] [];... | recursively finds ids within a range |
0 module [1];1 function_definition [2,3,5];2 function_name [] flatten_all_but_last;3 parameters [4];4 identifier [] a;5 block [6,27,58];6 expression_statement [7];7 assignment [8,9];8 identifier [] ret;9 call [10,13];10 attribute [11,12];11 identifier [] tf;12 identifier [] reshape;13 argument_list [14,15];14 identifie... | Flatten all dimensions of a except the last. |
0 module [1];1 function_definition [2,3,6];2 function_name [] calculate_descriptors;3 parameters [4,5];4 identifier [] self;5 identifier [] mol;6 block [7,37,46,53,62,132];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] ligand_atoms;12 dictionary_comprehension [... | Calculates descriptors such as logP, charges and MR and saves that in a dictionary. |
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 () [9];9 boolean_operator [10,33] and;10 boolean_operator [11,26] and;11 boolean_operator [12,19] and;12 comparison_operator [13,16] <=;13 attribute [... | Return true if the given shape is inside this rectangle. |
0 module [1];1 function_definition [2,3,20];2 function_name [] updateNetwork;3 parameters [4,5,8,11,14,17];4 identifier [] self;5 default_parameter [6,7];6 identifier [] dhcp;7 string [] dhcp;8 default_parameter [9,10];9 identifier [] ipaddress;10 None [];11 default_parameter [12,13];12 identifier [] netmask;13 None []... | Change the current network settings. |
0 module [1];1 function_definition [2,3,7];2 function_name [] apply_defaults;3 parameters [4,5,6];4 identifier [] self;5 identifier [] row;6 identifier [] tables_dict;7 block [8,10];8 expression_statement [9];9 string [] apply defaults to missing cols for a row that's being inserted;10 return_statement [11];11 list_com... | apply defaults to missing cols for a row that's being inserted |
0 module [1];1 function_definition [2,3,9];2 function_name [] getProperty;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key;6 default_parameter [7,8];7 identifier [] strip;8 True [];9 block [10,16,19,78,106];10 expression_statement [11];11 call [12,15];12 attribute [13,14];13 identifier [] self;14 identifie... | Gets the property value for key |
0 module [1];1 function_definition [2,3,15];2 function_name [] update_group_memory;3 parameters [4,5,6,7,8,9,12];4 identifier [] self;5 identifier [] memory_id;6 identifier [] mode;7 identifier [] name;8 identifier [] slaves;9 default_parameter [10,11];10 identifier [] codectype;11 integer [] 0x0040;12 default_paramete... | Update existing memory? Can be used to create new ones, too? |
0 module [1];1 function_definition [2,3,6];2 function_name [] remove;3 parameters [4,5];4 identifier [] self;5 identifier [] resource;6 block [7];7 if_statement [8,13];8 call [9,10];9 identifier [] isinstance;10 argument_list [11,12];11 identifier [] resource;12 identifier [] Resource;13 block [14];14 expression_statem... | Removes a resource from the context |
0 module [1];1 function_definition [2,3,6];2 function_name [] next_address_avoid_collision;3 parameters [4,5];4 identifier [] self;5 identifier [] start_addr;6 block [7,11,27];7 expression_statement [8];8 assignment [9,10];9 identifier [] i;10 integer [] 1;11 while_statement [12,22];12 call [13,16];13 attribute [14,15]... | Finds the next address recursively which does not collide with any other address |
0 module [1];1 function_definition [2,3,5];2 function_name [] finish;3 parameters [4];4 identifier [] self;5 block [6,13,26];6 expression_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] log;10 identifier [] debug;11 argument_list [12];12 string [] Disconnecting from JLigier.;13 expression_statement [14];... | Clean up the JLigier controlhost connection |
0 module [1];1 function_definition [2,3,6];2 function_name [] add_graph;3 parameters [4,5];4 identifier [] patterns;5 identifier [] G;6 block [7,20,56];7 if_statement [8,10];8 not_operator [9];9 identifier [] patterns;10 block [11,19];11 expression_statement [12];12 call [13,16];13 attribute [14,15];14 identifier [] pa... | Add a graph to a set of unique patterns. |
0 module [1];1 function_definition [2,3,7];2 function_name [] bincount;3 parameters [4,5,6];4 identifier [] dig;5 identifier [] weight;6 identifier [] minlength;7 block [8];8 if_statement [9,15,28];9 call [10,13];10 attribute [11,12];11 identifier [] numpy;12 identifier [] isscalar;13 argument_list [14];14 identifier [... | bincount supporting scalar and vector weight |
0 module [1];1 function_definition [2,3,5];2 function_name [] should_checkpoint;3 parameters [4];4 identifier [] self;5 block [6,14,28];6 expression_statement [7];7 assignment [8,9];8 identifier [] result;9 boolean_operator [10,13] or;10 attribute [11,12];11 identifier [] self;12 identifier [] last_result;13 dictionary... | Whether this trial is due for checkpointing. |
0 module [1];1 function_definition [2,3,10];2 function_name [] json_dump_hook;3 parameters [4,5];4 identifier [] cfg;5 typed_default_parameter [6,7,9];6 identifier [] text;7 type [8];8 identifier [] bool;9 False [];10 block [11,21];11 expression_statement [12];12 assignment [13,14];13 identifier [] data;14 call [15,20]... | Dumps all the data into a JSON file. |
0 module [1];1 function_definition [2,3,8];2 function_name [] _index_item;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] uri;6 identifier [] num;7 identifier [] batch_num;8 block [9,29,40];9 expression_statement [10];10 assignment [11,12];11 identifier [] data;12 call [13,28];13 attribute [14,27];14 attrib... | queries the triplestore for an item sends it to elasticsearch |
0 module [1];1 function_definition [2,3,45];2 function_name [] show;3 parameters [4,5,12,19,28,33,38,43];4 identifier [] self;5 typed_default_parameter [6,7,11];6 identifier [] ax;7 type [8];8 attribute [9,10];9 identifier [] plt;10 identifier [] Axes;11 None [];12 typed_default_parameter [13,14,16];13 identifier [] fi... | Show image on `ax` with `title`, using `cmap` if single-channel, overlaid with optional `y` |
0 module [1];1 function_definition [2,3,7];2 function_name [] document_root_path;3 parameters [4,5,6];4 identifier [] cls;5 identifier [] project;6 identifier [] database;7 block [8];8 return_statement [9];9 call [10,17];10 attribute [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] google;14 identifie... | Return a fully-qualified document_root string. |
0 module [1];1 function_definition [2,3,5];2 function_name [] _get_id2gos;3 parameters [4];4 identifier [] self;5 block [6,10,37,64];6 expression_statement [7];7 assignment [8,9];8 identifier [] kws;9 dictionary [];10 if_statement [11,18];11 comparison_operator [12,17] is not;12 attribute [13,16];13 attribute [14,15];1... | Return annotations as id2gos |
0 module [1];1 function_definition [2,3,8];2 function_name [] hicexplorer_create_plot;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] pKeyList;6 identifier [] pTitle;7 identifier [] pId;8 block [9,15,37,41,99,119];9 expression_statement [10];10 assignment [11,12];11 identifier [] keys;12 call [13,14];13 ide... | Create the graphics containing information about the read quality. |
0 module [1];1 function_definition [2,3,5];2 function_name [] wifi_status;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,21];8 attribute [9,20];9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] _info_json;14 identifier [] get;15 argument_... | Get the wifi status. |
0 module [1];1 function_definition [2,3,10];2 function_name [] addDocEntity;3 parameters [4,5,6,7,8,9];4 identifier [] self;5 identifier [] name;6 identifier [] type;7 identifier [] ExternalID;8 identifier [] SystemID;9 identifier [] content;10 block [11,27,37,46];11 expression_statement [12];12 assignment [13,14];13 i... | Register a new entity for this document. |
0 module [1];1 function_definition [2,3,5];2 function_name [] prompt;3 parameters [4];4 identifier [] self;5 block [6,17];6 expression_statement [7];7 assignment [8,9];8 identifier [] name;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] self;13 identifier [] term;14 identifier [] prompt_input;... | Open a prompt to navigate to a different subreddit or comment" |
0 module [1];1 function_definition [2,3,8];2 function_name [] _call_brew;3 parameters [4,5];4 identifier [] cmd;5 default_parameter [6,7];6 identifier [] failhard;7 True [];8 block [9,20,31,50,68,88];9 expression_statement [10];10 assignment [11,12];11 identifier [] user;12 call [13,16];13 subscript [14,15];14 identifi... | Calls the brew command with the user account of brew |
0 module [1];1 function_definition [2,3,6];2 function_name [] synchronous;3 parameters [4,5];4 identifier [] function;5 identifier [] event;6 block [7];7 try_statement [8,14];8 block [9];9 expression_statement [10];10 call [11,12];11 identifier [] function;12 argument_list [13];13 identifier [] event;14 except_clause [... | Runs the function synchronously taking care of exceptions. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _validate_user;3 parameters [4,5];4 identifier [] self;5 identifier [] user;6 block [7,13,23,40,48];7 if_statement [8,11];8 attribute [9,10];9 identifier [] self;10 identifier [] _show_all_users;11 block [12];12 return_statement [];13 if_statement [14,21];14... | Validate a User instance against allowed user IDs or membership in a group |
0 module [1];1 function_definition [2,3,7];2 function_name [] _clearQuantity;3 parameters [4,5,6];4 identifier [] self;5 identifier [] offbids;6 identifier [] gen;7 block [8,22,35,58,62];8 expression_statement [9];9 assignment [10,11];10 identifier [] gOffbids;11 list_comprehension [12,13,16];12 identifier [] offer;13 ... | Computes the cleared bid quantity from total dispatched quantity. |
0 module [1];1 function_definition [2,3,6];2 function_name [] verts_in_common;3 parameters [4,5];4 identifier [] self;5 identifier [] segments;6 block [7,13];7 expression_statement [8];8 assignment [9,10];9 identifier [] verts_by_segm;10 attribute [11,12];11 identifier [] self;12 identifier [] verts_by_segm;13 return_s... | returns array of all vertex indices common to each segment in segments |
0 module [1];1 function_definition [2,3,6];2 function_name [] getJobIDsForResultsFile;3 parameters [4,5];4 identifier [] self;5 identifier [] resultsFile;6 block [7,11,69];7 expression_statement [8];8 assignment [9,10];9 identifier [] jobIDs;10 list [] [];11 for_statement [12,13,24];12 identifier [] line;13 subscript [... | Get all queued and running jobs for a results file. |
0 module [1];1 function_definition [2,3,8];2 function_name [] centroid;3 parameters [4,5];4 identifier [] data;5 default_parameter [6,7];6 identifier [] method;7 identifier [] median;8 block [9,11,15,43];9 expression_statement [10];10 string [] returns the central vector of a list of vectors;11 expression_statement [12... | returns the central vector of a list of vectors |
0 module [1];1 function_definition [2,3,7];2 function_name [] funding_info;3 parameters [4,5,6];4 identifier [] self;5 identifier [] key;6 identifier [] value;7 block [8];8 return_statement [9];9 dictionary [10,18,26];10 pair [11,12];11 string [] agency;12 call [13,16];13 attribute [14,15];14 identifier [] value;15 ide... | Populate the ``funding_info`` key. |
0 module [1];1 function_definition [2,3,4];2 function_name [] setFigForm;3 parameters [];4 block [5,11,17,31,37,43,51,97];5 expression_statement [6];6 assignment [7,8];7 identifier [] fig_width_pt;8 binary_operator [9,10] *;9 float [] 245.26;10 integer [] 2;11 expression_statement [12];12 assignment [13,14];13 identifi... | set the rcparams to EmulateApJ columnwidth=245.26 pts |
0 module [1];1 function_definition [2,3,5];2 function_name [] default_config_file;3 parameters [4];4 identifier [] self;5 block [6,12,15];6 import_statement [7];7 aliased_import [8,11];8 dotted_name [9,10];9 identifier [] os;10 identifier [] path;11 identifier [] p;12 import_statement [13];13 dotted_name [14];14 identi... | default config file living in PyEMMA package |
0 module [1];1 function_definition [2,3,8];2 function_name [] _cnn_tranch_filtering;3 parameters [4,5,6,7];4 identifier [] in_file;5 identifier [] vrn_files;6 identifier [] tensor_type;7 identifier [] data;8 block [9,22,132];9 expression_statement [10];10 assignment [11,12];11 identifier [] out_file;12 binary_operator ... | Filter CNN scored VCFs in tranches using standard SNP and Indel truth sets. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _wrap_universe;3 parameters [4,5];4 identifier [] self;5 identifier [] func;6 block [7,53];7 decorated_definition [8,13];8 decorator [9];9 call [10,11];10 identifier [] wraps;11 argument_list [12];12 identifier [] func;13 function_definition [14,15,21];14 fu... | Take a function that needs a universe graph as the first argument and returns a wrapped one. |
0 module [1];1 function_definition [2,3,7];2 function_name [] optional_else;3 parameters [4,5,6];4 identifier [] self;5 identifier [] node;6 identifier [] last;7 block [8];8 if_statement [9,12];9 attribute [10,11];10 identifier [] node;11 identifier [] orelse;12 block [13,24];13 expression_statement [14];14 call [15,16... | Create op_pos for optional else |
0 module [1];1 function_definition [2,3,7];2 function_name [] put_file;3 parameters [4,5,6];4 identifier [] self;5 identifier [] in_path;6 identifier [] out_path;7 block [8,22,42];8 expression_statement [9];9 call [10,11];10 identifier [] vvv;11 argument_list [12,17];12 binary_operator [13,14] %;13 string [] PUT %s TO ... | transfer a file from local to local |
0 module [1];1 function_definition [2,3,9];2 function_name [] create_attributes;3 parameters [4,5,6];4 identifier [] klass;5 identifier [] attributes;6 default_parameter [7,8];7 identifier [] previous_object;8 None [];9 block [10,28];10 if_statement [11,14];11 comparison_operator [12,13] is not;12 identifier [] previou... | Attributes for space creation. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _get_xml;3 parameters [4,5];4 identifier [] self;5 identifier [] metric;6 block [7,17,30,65];7 expression_statement [8];8 assignment [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] _opener;12 call [13,16];13 attribute [14,15];14 identifier ... | Returns the channel element of the RSS feed |
0 module [1];1 function_definition [2,3,5];2 function_name [] run;3 parameters [4];4 identifier [] self;5 block [6,28,37,43,51];6 expression_statement [7];7 assignment [8,9];8 identifier [] new_mins;9 call [10,11];10 identifier [] list;11 argument_list [12];12 call [13,27];13 attribute [14,26];14 call [15,22];15 attrib... | Gather currently connected minions and update the cache |
0 module [1];1 function_definition [2,3,5];2 function_name [] validate_pai_trial_conifg;3 parameters [4];4 identifier [] experiment_config;5 block [6];6 if_statement [7,15];7 comparison_operator [8,14] ==;8 call [9,12];9 attribute [10,11];10 identifier [] experiment_config;11 identifier [] get;12 argument_list [13];13 ... | validate the trial config in pai platform |
0 module [1];1 function_definition [2,3,5];2 function_name [] list_accounts;3 parameters [4];4 identifier [] self;5 block [6,14,31];6 expression_statement [7];7 assignment [8,9];8 identifier [] account;9 subscript [10,13];10 attribute [11,12];11 identifier [] self;12 identifier [] client;13 string [] Account;14 express... | Lists CDN accounts for the active user. |
0 module [1];1 function_definition [2,3,5];2 function_name [] parse_sitelist;3 parameters [4];4 identifier [] sitelist;5 block [6,10,95];6 expression_statement [7];7 assignment [8,9];8 identifier [] sites;9 list [] [];10 for_statement [11,12,17];11 identifier [] site;12 subscript [13,16];13 subscript [14,15];14 identif... | Return list of Site instances from retrieved sitelist data |
0 module [1];1 function_definition [2,3,10];2 function_name [] copy_to;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] dest;6 identifier [] container;7 default_parameter [8,9];8 identifier [] buffering;9 True [];10 block [11];11 if_statement [12,15,30,43];12 attribute [13,14];13 identifier [] self;14 identi... | Coroutine method to copy content from this stream to another stream. |
0 module [1];1 function_definition [2,3,5];2 function_name [] upload_large_items;3 parameters [4];4 identifier [] self;5 block [6];6 for_statement [7,10,13];7 pattern_list [8,9];8 identifier [] local_file;9 identifier [] parent;10 attribute [11,12];11 identifier [] self;12 identifier [] large_items;13 block [14];14 if_... | Upload files that were too large. |
0 module [1];1 function_definition [2,3,5];2 function_name [] make_input_fn_from_generator;3 parameters [4];4 identifier [] gen;5 block [6,15,30,40,56,61,100,152];6 expression_statement [7];7 assignment [8,9];8 identifier [] first_ex;9 call [10,13];10 attribute [11,12];11 identifier [] six;12 identifier [] next;13 argu... | Use py_func to yield elements from the given generator. |
0 module [1];1 function_definition [2,3,6];2 function_name [] restore_descriptor;3 parameters [4,5];4 identifier [] self;5 identifier [] dataframe;6 block [7,11,15,70,127,131,137,146];7 expression_statement [8];8 assignment [9,10];9 identifier [] fields;10 list [] [];11 expression_statement [12];12 assignment [13,14];1... | Restore descriptor from Pandas |
0 module [1];1 function_definition [2,3,5];2 function_name [] as_urlpatterns;3 parameters [4];4 identifier [] self;5 block [6,10,62];6 expression_statement [7];7 assignment [8,9];8 identifier [] urls;9 list [] [];10 for_statement [11,12,15];11 identifier [] action;12 attribute [13,14];13 identifier [] self;14 identifie... | Creates the appropriate URLs for this object. |
0 module [1];1 function_definition [2,3,6];2 function_name [] entropy_difference;3 parameters [4,5];4 identifier [] d1;5 identifier [] d2;6 block [7,21];7 expression_statement [8];8 assignment [9,12];9 pattern_list [10,11];10 identifier [] d1;11 identifier [] d2;12 expression_list [13,17];13 call [14,15];14 identifier ... | Return the difference in entropy between two distributions. |
0 module [1];1 function_definition [2,3,5];2 function_name [] ensure_dir_exists;3 parameters [4];4 identifier [] path;5 block [6,9,20,38];6 import_statement [7];7 dotted_name [8];8 identifier [] os;9 expression_statement [10];10 assignment [11,12];11 identifier [] f_dir;12 call [13,18];13 attribute [14,17];14 attribute... | Given a file, ensure that the path to the file exists |
0 module [1];1 function_definition [2,3,5];2 function_name [] cut_blockquote;3 parameters [4];4 identifier [] html_message;5 block [6,18];6 expression_statement [7];7 assignment [8,9];8 identifier [] quote;9 call [10,13];10 attribute [11,12];11 identifier [] html_message;12 identifier [] xpath;13 argument_list [14];14 ... | Cuts the last non-nested blockquote with wrapping elements. |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_array;3 parameters [4];4 identifier [] self;5 block [6,32,46,60];6 expression_statement [7];7 assignment [8,9];8 identifier [] dt;9 call [10,13];10 attribute [11,12];11 identifier [] np;12 identifier [] dtype;13 argument_list [14];14 call [15,16];15 ident... | Convert the table to a structured NumPy array. |
0 module [1];1 function_definition [2,3,7];2 function_name [] add_extras;3 parameters [4,5,6];4 identifier [] self;5 identifier [] dict;6 identifier [] level;7 block [8,17,28,43,56];8 expression_statement [9];9 assignment [10,11];10 identifier [] my_copy;11 call [12,15];12 attribute [13,14];13 identifier [] copy;14 ide... | Adds the log level to the dict object |
0 module [1];1 function_definition [2,3,6];2 function_name [] extract_descriptor;3 parameters [4,5];4 identifier [] self;5 identifier [] obj;6 block [7,11,71,78];7 expression_statement [8];8 assignment [9,10];9 identifier [] descriptor;10 list [] [];11 function_definition [12,13,15];12 function_name [] flatten;13 param... | Extract data from the descriptor. |
0 module [1];1 function_definition [2,3,6];2 function_name [] __skullbomb_radius;3 parameters [4,5];4 identifier [] self;5 identifier [] position;6 block [7,13,23,33,43,53];7 expression_statement [8];8 assignment [9,12];9 pattern_list [10,11];10 identifier [] sb_row;11 identifier [] sb_col;12 identifier [] position;13 ... | Generate all valid positions in the square around position. |
0 module [1];1 function_definition [2,3,13];2 function_name [] record_schemas;3 parameters [4,5,6,7,10];4 identifier [] fn;5 identifier [] wrapper;6 identifier [] location;7 default_parameter [8,9];8 identifier [] request_schema;9 None [];10 default_parameter [11,12];11 identifier [] response_schema;12 None [];13 block... | Support extracting the schema from the decorated function. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _validate_angles;3 parameters [4,5];4 identifier [] self;5 identifier [] angles;6 block [7,13,25,35,182];7 expression_statement [8];8 assignment [9,10];9 identifier [] dataType;10 attribute [11,12];11 identifier [] np;12 identifier [] float64;13 expression_s... | Ensure that the angles between the lattice_vectors are correct |
0 module [1];1 function_definition [2,3,5];2 function_name [] strip_doc_string;3 parameters [4];4 identifier [] proto;5 block [6,18];6 assert_statement [7];7 call [8,9];8 identifier [] isinstance;9 argument_list [10,11];10 identifier [] proto;11 attribute [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier ... | Empties `doc_string` field on any nested protobuf messages |
0 module [1];1 function_definition [2,3,5];2 function_name [] to_df;3 parameters [4];4 identifier [] self;5 block [6];6 return_statement [7];7 call [8,11];8 attribute [9,10];9 identifier [] pd;10 identifier [] DataFrame;11 argument_list [12,29];12 dictionary_comprehension [13,16,25];13 pair [14,15];14 identifier [] k;1... | Convert dict structure into Pandas DataFrame. |
0 module [1];1 function_definition [2,3,7];2 function_name [] constant_outfile_iterator;3 parameters [4,5,6];4 identifier [] outfiles;5 identifier [] infiles;6 identifier [] arggroups;7 block [8,15,22];8 assert_statement [9];9 comparison_operator [10,14] ==;10 call [11,12];11 identifier [] len;12 argument_list [13];13 ... | Iterate over all output files. |
0 module [1];1 function_definition [2,3,8];2 function_name [] user;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] username;7 None [];8 block [9,22,31,41];9 if_statement [10,13];10 comparison_operator [11,12] is;11 identifier [] username;12 None [];13 block [14];14 expression_statement... | A user resource that represents a registered user in the portal. |
0 module [1];1 function_definition [2,3,20];2 function_name [] available_backends;3 parameters [4,5,8,11,14,17];4 identifier [] self;5 default_parameter [6,7];6 identifier [] hub;7 None [];8 default_parameter [9,10];9 identifier [] group;10 None [];11 default_parameter [12,13];12 identifier [] project;13 None [];14 def... | Get the backends available to use in the QX Platform |
0 module [1];1 function_definition [2,3,11];2 function_name [] _prod;3 parameters [4,5,6,7,8];4 identifier [] group_idx;5 identifier [] a;6 identifier [] size;7 identifier [] fill_value;8 default_parameter [9,10];9 identifier [] dtype;10 None [];11 block [12,21,34,45,56];12 expression_statement [13];13 assignment [14,1... | Same as aggregate_numpy.py |
0 module [1];1 function_definition [2,3,8];2 function_name [] serve_forever;3 parameters [4,5];4 identifier [] self;5 default_parameter [6,7];6 identifier [] poll_interval;7 float [] 0.5;8 block [9,17];9 expression_statement [10];10 assignment [11,16];11 attribute [12,15];12 attribute [13,14];13 identifier [] self;14 i... | Wait for incomming requests. |
0 module [1];1 function_definition [2,3,7];2 function_name [] statsd_metric;3 parameters [4,5,6];4 identifier [] name;5 identifier [] count;6 identifier [] elapsed;7 block [8];8 with_statement [9,19];9 with_clause [10];10 with_item [11];11 as_pattern [12,17];12 call [13,16];13 attribute [14,15];14 identifier [] statsd;... | Metric that records to statsd & graphite |
0 module [1];1 function_definition [2,3,8];2 function_name [] draw;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] img;6 identifier [] pixmapper;7 identifier [] bounds;8 block [9,26,36,46,50,54];9 if_statement [10,15];10 comparison_operator [11,14] is;11 attribute [12,13];12 identifier [] self;13 identifier... | draw legend on the image |
0 module [1];1 function_definition [2,3,15];2 function_name [] any_auth;3 parameters [4,5,6,7,8,9,12];4 identifier [] self;5 identifier [] form;6 identifier [] auth_list;7 identifier [] fun;8 identifier [] arg;9 default_parameter [10,11];10 identifier [] tgt;11 None [];12 default_parameter [13,14];13 identifier [] tgt_... | Read in the form and determine which auth check routine to execute |
0 module [1];1 function_definition [2,3,5];2 function_name [] add_stats_table;3 parameters [4];4 identifier [] self;5 block [6,31,68,93];6 expression_statement [7];7 assignment [8,9];8 identifier [] totals;9 dictionary_comprehension [10,20];10 pair [11,12];11 identifier [] sample;12 call [13,14];13 identifier [] sum;14... | Adds stats to general table. |
0 module [1];1 function_definition [2,3,5];2 function_name [] getKeySequenceCounter;3 parameters [4];4 identifier [] self;5 block [6,12,16,29];6 print_statement [7];7 binary_operator [8,9] %;8 string [] %s call getKeySequenceCounter;9 attribute [10,11];10 identifier [] self;11 identifier [] port;12 expression_statement... | get current Thread Network key sequence |
0 module [1];1 function_definition [2,3,10];2 function_name [] sc_pan;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] viewer;6 identifier [] event;7 default_parameter [8,9];8 identifier [] msg;9 True [];10 block [11,19,31,37,52,64,68,81,90];11 if_statement [12,16];12 not_operator [13];13 attribute [14,15];1... | Interactively pan the image by scrolling motion. |
0 module [1];1 function_definition [2,3,5];2 function_name [] harvest;3 parameters [4];4 identifier [] self;5 block [6,27];6 if_statement [7,14];7 comparison_operator [8,13] is not;8 call [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] perform_initialization;12 argument_list [];13 None [];14 block [15... | Start the harvesting process |
0 module [1];1 function_definition [2,3,4];2 function_name [] legal_node_coords;3 parameters [];4 block [5,11,31,47];5 expression_statement [6];6 assignment [7,8];7 identifier [] nodes;8 call [9,10];9 identifier [] set;10 argument_list [];11 for_statement [12,13,16];12 identifier [] tile_id;13 call [14,15];14 identifie... | Return all legal node coordinates on the grid |
0 module [1];1 function_definition [2,3,24,28];2 function_name [] matrix_from_basis_coefficients;3 parameters [4,12];4 typed_parameter [5,6];5 identifier [] expansion;6 type [7];7 subscript [8,11];8 attribute [9,10];9 identifier [] value;10 identifier [] LinearDict;11 identifier [] str;12 typed_parameter [13,14];13 ide... | Computes linear combination of basis vectors with given coefficients. |
0 module [1];1 function_definition [2,3,36];2 function_name [] plot_multi;3 parameters [4,19,24,29];4 typed_parameter [5,6];5 identifier [] func;6 type [7];7 generic_type [8,9];8 identifier [] Callable;9 type_parameter [10,17];10 type [11];11 list [12,13,14] [int,int,plt.Axes];12 identifier [] int;13 identifier [] int;... | Call `func` for every combination of `r,c` on a subplot |
0 module [1];1 function_definition [2,3,8];2 function_name [] model_actions;3 parameters [4,5,6];4 identifier [] self;5 identifier [] model;6 dictionary_splat_pattern [7];7 identifier [] kwargs;8 block [9,14,25];9 expression_statement [10];10 call [11,12];11 identifier [] check;12 argument_list [13];13 identifier [] mo... | Stream of most recent actions by any particular model |
0 module [1];1 function_definition [2,3,5];2 function_name [] DFReader_is_text_log;3 parameters [4];4 identifier [] filename;5 block [6,13,31,37];6 expression_statement [7];7 assignment [8,9];8 identifier [] f;9 call [10,11];10 identifier [] open;11 argument_list [12];12 identifier [] filename;13 expression_statement [... | return True if a file appears to be a valid text log |
0 module [1];1 function_definition [2,3,5];2 function_name [] load_module;3 parameters [4];4 identifier [] filename;5 block [6,17,28,37];6 expression_statement [7];7 assignment [8,9];8 identifier [] basename;9 call [10,15];10 attribute [11,14];11 attribute [12,13];12 identifier [] os;13 identifier [] path;14 identifier... | Loads a module by filename |
0 module [1];1 function_definition [2,3,8,14];2 function_name [] find_by_user;3 parameters [4];4 typed_parameter [5,6];5 identifier [] user;6 type [7];7 identifier [] str;8 type [9];9 generic_type [10,11];10 identifier [] List;11 type_parameter [12];12 type [13];13 string [] ApiKey;14 block [15];15 return_statement [16... | List API keys for a user. |
0 module [1];1 function_definition [2,3,8];2 function_name [] fullConn;3 parameters [4,5,6,7];4 identifier [] self;5 identifier [] preCellsTags;6 identifier [] postCellsTags;7 identifier [] connParam;8 block [9,14,31,51,124];9 import_from_statement [10,12];10 relative_import [11];11 import_prefix [];12 dotted_name [13]... | Generates connections between all pre and post-syn cells |
0 module [1];1 function_definition [2,3,15,17];2 function_name [] values;3 parameters [4,5,10];4 identifier [] self;5 typed_parameter [6,8];6 list_splat_pattern [7];7 identifier [] args;8 type [9];9 identifier [] str;10 typed_parameter [11,13];11 dictionary_splat_pattern [12];12 identifier [] kwargs;13 type [14];14 ide... | Make QuerySet return dicts instead of objects. |
0 module [1];1 function_definition [2,3,6];2 function_name [] seek;3 parameters [4,5];4 identifier [] self;5 identifier [] rev;6 block [7,12,25,31,37,88];7 if_statement [8,10];8 not_operator [9];9 identifier [] self;10 block [11];11 return_statement [];12 if_statement [13,19];13 comparison_operator [14,18] is not;14 ca... | Arrange the caches to help look up the given revision. |
0 module [1];1 function_definition [2,3,7];2 function_name [] delete;3 parameters [4,5];4 identifier [] self;5 dictionary_splat_pattern [6];6 identifier [] kwargs;7 block [8,20,31];8 expression_statement [9];9 assignment [10,11];10 identifier [] url_str;11 binary_operator [12,15] +;12 attribute [13,14];13 identifier []... | Delete a specific alarm. |
0 module [1];1 function_definition [2,3,10,12];2 function_name [] remove;3 parameters [4,5,7];4 identifier [] self;5 list_splat_pattern [6];6 identifier [] instances;7 default_parameter [8,9];8 identifier [] using_db;9 None [];10 type [11];11 None [];12 block [13,26,35,46,133,153];13 expression_statement [14];14 assign... | Removes one or more of ``instances`` from the relation. |
0 module [1];1 function_definition [2,3,6];2 function_name [] _move_data_entries;3 parameters [4,5];4 identifier [] destination_eggdir;5 identifier [] dist_data;6 block [7,19,31,126,160];7 expression_statement [8];8 assignment [9,10];9 identifier [] dist_data;10 call [11,16];11 attribute [12,15];12 attribute [13,14];13... | Move data entries to their correct location. |
0 module [1];1 function_definition [2,3,6];2 function_name [] url_for_token;3 parameters [4,5];4 identifier [] self;5 identifier [] token;6 block [7,17,29,37,41,50,71,80,91,97];7 expression_statement [8];8 assignment [9,10];9 identifier [] book_url;10 call [11,14];11 attribute [12,13];12 identifier [] self;13 identifie... | Find the full URL for a help token. |
0 module [1];1 function_definition [2,3,6];2 function_name [] __getFilenameSuffix;3 parameters [4,5];4 identifier [] self;5 identifier [] filename;6 block [7];7 if_statement [8,15];8 boolean_operator [9,10] and;9 identifier [] filename;10 call [11,12];11 identifier [] isinstance;12 argument_list [13,14];13 identifier [... | Gets the filename suffix |
0 module [1];1 function_definition [2,3,6];2 function_name [] hash_to_exponent;3 parameters [4,5];4 identifier [] self;5 identifier [] h;6 block [7,23,46,59];7 expression_statement [8];8 assignment [9,10];9 identifier [] ctr;10 call [11,18];11 attribute [12,17];12 attribute [13,16];13 attribute [14,15];14 identifier []... | Converts a 32 byte hash to an exponent |
0 module [1];1 function_definition [2,3,9];2 function_name [] ast_from_class;3 parameters [4,5,6];4 identifier [] self;5 identifier [] klass;6 default_parameter [7,8];7 identifier [] modname;8 None [];9 block [10,49,58];10 if_statement [11,14];11 comparison_operator [12,13] is;12 identifier [] modname;13 None [];14 blo... | get astroid for the given class |
0 module [1];1 function_definition [2,3,5];2 function_name [] alphabetize_attributes;3 parameters [4];4 identifier [] self;5 block [6];6 expression_statement [7];7 call [8,13];8 attribute [9,12];9 attribute [10,11];10 identifier [] self;11 identifier [] attributes;12 identifier [] sort;13 argument_list [14];14 keyword_... | Orders attributes names alphabetically, except for the class attribute, which is kept last. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.