Search is not available for this dataset
identifier
stringlengths
1
155
parameters
stringlengths
2
6.09k
docstring
stringlengths
11
63.4k
docstring_summary
stringlengths
0
63.4k
function
stringlengths
29
99.8k
function_tokens
list
start_point
list
end_point
list
language
stringclasses
1 value
docstring_language
stringlengths
2
7
docstring_language_predictions
stringlengths
18
23
is_langid_reliable
stringclasses
2 values
member_calldef_t.has_static
(self)
describes, whether "callable" has static modifier or not
describes, whether "callable" has static modifier or not
def has_static(self): """describes, whether "callable" has static modifier or not""" return self._has_static
[ "def", "has_static", "(", "self", ")", ":", "return", "self", ".", "_has_static" ]
[ 96, 4 ]
[ 98, 31 ]
python
en
['en', 'gl', 'en']
True
member_calldef_t.function_type
(self)
returns function type. See :class:`type_t` hierarchy
returns function type. See :class:`type_t` hierarchy
def function_type(self): """returns function type. See :class:`type_t` hierarchy""" if self.has_static: return cpptypes.free_function_type_t( return_type=self.return_type, arguments_types=[arg.decl_type for arg in self.arguments]) else: ret...
[ "def", "function_type", "(", "self", ")", ":", "if", "self", ".", "has_static", ":", "return", "cpptypes", ".", "free_function_type_t", "(", "return_type", "=", "self", ".", "return_type", ",", "arguments_types", "=", "[", "arg", ".", "decl_type", "for", "ar...
[ 104, 4 ]
[ 115, 41 ]
python
en
['en', 'en', 'en']
True
operator_t.symbol
(self)
operator's symbol. For example: operator+, symbol is equal to '+
operator's symbol. For example: operator+, symbol is equal to '+
def symbol(self): """operator's symbol. For example: operator+, symbol is equal to '+'""" return self.name[operator_t.OPERATOR_WORD_LEN:].strip()
[ "def", "symbol", "(", "self", ")", ":", "return", "self", ".", "name", "[", "operator_t", ".", "OPERATOR_WORD_LEN", ":", "]", ".", "strip", "(", ")" ]
[ 147, 4 ]
[ 149, 63 ]
python
en
['en', 'en', 'en']
True
constructor_t.explicit
(self)
True, if constructor has "explicit" keyword, False otherwise @type: bool
True, if constructor has "explicit" keyword, False otherwise
def explicit(self): """True, if constructor has "explicit" keyword, False otherwise @type: bool""" return self._explicit
[ "def", "explicit", "(", "self", ")", ":", "return", "self", ".", "_explicit" ]
[ 170, 4 ]
[ 173, 29 ]
python
en
['en', 'en', 'en']
True
FilterSelect._filter_F_one_feature
(data, treatment_indicator, feature_name, y_name)
Conduct F-test of the interaction between treatment and one feature. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the column name for binary indicator of treatment (value 1) or control (val...
Conduct F-test of the interaction between treatment and one feature.
def _filter_F_one_feature(data, treatment_indicator, feature_name, y_name): """ Conduct F-test of the interaction between treatment and one feature. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicato...
[ "def", "_filter_F_one_feature", "(", "data", ",", "treatment_indicator", ",", "feature_name", ",", "y_name", ")", ":", "Y", "=", "data", "[", "y_name", "]", "X", "=", "data", "[", "[", "treatment_indicator", ",", "feature_name", "]", "]", "X", "=", "sm", ...
[ 20, 4 ]
[ 52, 28 ]
python
en
['en', 'error', 'th']
False
FilterSelect.filter_F
(self, data, treatment_indicator, features, y_name)
Rank features based on the F-statistics of the interaction. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the column name for binary indicator of treatment (value 1) or control (value 0) ...
Rank features based on the F-statistics of the interaction.
def filter_F(self, data, treatment_indicator, features, y_name): """ Rank features based on the F-statistics of the interaction. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the colu...
[ "def", "filter_F", "(", "self", ",", "data", ",", "treatment_indicator", ",", "features", ",", "y_name", ")", ":", "all_result", "=", "pd", ".", "DataFrame", "(", ")", "for", "x_name_i", "in", "features", ":", "one_result", "=", "self", ".", "_filter_F_one...
[ 55, 4 ]
[ 80, 25 ]
python
en
['en', 'error', 'th']
False
FilterSelect._filter_LR_one_feature
(data, treatment_indicator, feature_name, y_name, disp=True)
Conduct LR (Likelihood Ratio) test of the interaction between treatment and one feature. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the column name for binary indicator of treatment (valu...
Conduct LR (Likelihood Ratio) test of the interaction between treatment and one feature.
def _filter_LR_one_feature(data, treatment_indicator, feature_name, y_name, disp=True): """ Conduct LR (Likelihood Ratio) test of the interaction between treatment and one feature. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experimen...
[ "def", "_filter_LR_one_feature", "(", "data", ",", "treatment_indicator", ",", "feature_name", ",", "y_name", ",", "disp", "=", "True", ")", ":", "Y", "=", "data", "[", "y_name", "]", "# Restricted model", "X_r", "=", "data", "[", "[", "treatment_indicator", ...
[ 84, 4 ]
[ 125, 29 ]
python
en
['en', 'error', 'th']
False
FilterSelect.filter_LR
(self, data, treatment_indicator, features, y_name, disp=True)
Rank features based on the LRT-statistics of the interaction. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the column name for binary indicator of treatment (value 1) or control (value 0) ...
Rank features based on the LRT-statistics of the interaction.
def filter_LR(self, data, treatment_indicator, features, y_name, disp=True): """ Rank features based on the LRT-statistics of the interaction. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (str...
[ "def", "filter_LR", "(", "self", ",", "data", ",", "treatment_indicator", ",", "features", ",", "y_name", ",", "disp", "=", "True", ")", ":", "all_result", "=", "pd", ".", "DataFrame", "(", ")", "for", "x_name_i", "in", "features", ":", "one_result", "="...
[ 128, 4 ]
[ 153, 25 ]
python
en
['en', 'error', 'th']
False
FilterSelect._GetNodeSummary
(data, experiment_group_column='treatment_group_key', y_name='conversion', smooth=True)
To count the conversions and get the probabilities by treatment groups. This function comes from the uplift tree algorithm, that is used for tree node split evaluation. Parameters ---------- data : DataFrame The DataFrame that contains all the data (in the current "node"). ...
To count the conversions and get the probabilities by treatment groups. This function comes from the uplift tree algorithm, that is used for tree node split evaluation.
def _GetNodeSummary(data, experiment_group_column='treatment_group_key', y_name='conversion', smooth=True): """ To count the conversions and get the probabilities by treatment groups. This function comes from the uplift tree algorithm, that is used for tr...
[ "def", "_GetNodeSummary", "(", "data", ",", "experiment_group_column", "=", "'treatment_group_key'", ",", "y_name", "=", "'conversion'", ",", "smooth", "=", "True", ")", ":", "# Note: results and nodeSummary are both dict with treatment_group_key", "# as the key. So we can com...
[ 158, 4 ]
[ 217, 35 ]
python
en
['en', 'error', 'th']
False
FilterSelect._kl_divergence
(pk, qk)
Calculate KL Divergence for binary classification. Parameters ---------- pk (float): Probability of class 1 in treatment group qk (float): Probability of class 1 in control group
Calculate KL Divergence for binary classification.
def _kl_divergence(pk, qk): """ Calculate KL Divergence for binary classification. Parameters ---------- pk (float): Probability of class 1 in treatment group qk (float): Probability of class 1 in control group """ if qk < 0.1**6: qk = 0.1**6 ...
[ "def", "_kl_divergence", "(", "pk", ",", "qk", ")", ":", "if", "qk", "<", "0.1", "**", "6", ":", "qk", "=", "0.1", "**", "6", "elif", "qk", ">", "1", "-", "0.1", "**", "6", ":", "qk", "=", "1", "-", "0.1", "**", "6", "S", "=", "pk", "*", ...
[ 221, 4 ]
[ 235, 16 ]
python
en
['en', 'error', 'th']
False
FilterSelect._evaluate_KL
(self, nodeSummary, control_group='control')
Calculate the multi-treatment unconditional D (one node) with KL Divergence as split Evaluation function. Parameters ---------- nodeSummary (dict): a dictionary containing the statistics for a tree node sample control_group (string, optional, default='control'): the nam...
Calculate the multi-treatment unconditional D (one node) with KL Divergence as split Evaluation function.
def _evaluate_KL(self, nodeSummary, control_group='control'): """ Calculate the multi-treatment unconditional D (one node) with KL Divergence as split Evaluation function. Parameters ---------- nodeSummary (dict): a dictionary containing the statistics for a tree node sa...
[ "def", "_evaluate_KL", "(", "self", ",", "nodeSummary", ",", "control_group", "=", "'control'", ")", ":", "if", "control_group", "not", "in", "nodeSummary", ":", "return", "0", "pc", "=", "nodeSummary", "[", "control_group", "]", "[", "0", "]", "d_res", "=...
[ 237, 4 ]
[ 258, 20 ]
python
en
['en', 'error', 'th']
False
FilterSelect._evaluate_ED
(nodeSummary, control_group='control')
Calculate the multi-treatment unconditional D (one node) with Euclidean Distance as split Evaluation function. Parameters ---------- nodeSummary (dict): a dictionary containing the statistics for a tree node sample control_group (string, optional, default='control'): th...
Calculate the multi-treatment unconditional D (one node) with Euclidean Distance as split Evaluation function.
def _evaluate_ED(nodeSummary, control_group='control'): """ Calculate the multi-treatment unconditional D (one node) with Euclidean Distance as split Evaluation function. Parameters ---------- nodeSummary (dict): a dictionary containing the statistics for a tree node sam...
[ "def", "_evaluate_ED", "(", "nodeSummary", ",", "control_group", "=", "'control'", ")", ":", "if", "control_group", "not", "in", "nodeSummary", ":", "return", "0", "pc", "=", "nodeSummary", "[", "control_group", "]", "[", "0", "]", "d_res", "=", "0", "for"...
[ 261, 4 ]
[ 278, 20 ]
python
en
['en', 'error', 'th']
False
FilterSelect._evaluate_Chi
(nodeSummary, control_group='control')
Calculate the multi-treatment unconditional D (one node) with Chi-Square as split Evaluation function. Parameters ---------- nodeSummary (dict): a dictionary containing the statistics for a tree node sample control_group (string, optional, default='control'): the name f...
Calculate the multi-treatment unconditional D (one node) with Chi-Square as split Evaluation function.
def _evaluate_Chi(nodeSummary, control_group='control'): """ Calculate the multi-treatment unconditional D (one node) with Chi-Square as split Evaluation function. Parameters ---------- nodeSummary (dict): a dictionary containing the statistics for a tree node sample ...
[ "def", "_evaluate_Chi", "(", "nodeSummary", ",", "control_group", "=", "'control'", ")", ":", "if", "control_group", "not", "in", "nodeSummary", ":", "return", "0", "pc", "=", "nodeSummary", "[", "control_group", "]", "[", "0", "]", "d_res", "=", "0", "for...
[ 281, 4 ]
[ 302, 20 ]
python
en
['en', 'error', 'th']
False
FilterSelect._filter_D_one_feature
(self, data, feature_name, y_name, n_bins=10, method='KL', control_group='control', experiment_group_column='treatment_group_key', null_impute=None)
Calculate the chosen divergence measure for one feature. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the column name for binary indicator of treatment (value 1) or control (value 0) ...
Calculate the chosen divergence measure for one feature.
def _filter_D_one_feature(self, data, feature_name, y_name, n_bins=10, method='KL', control_group='control', experiment_group_column='treatment_group_key', null_impute=None): """ Calculate the chosen divergence me...
[ "def", "_filter_D_one_feature", "(", "self", ",", "data", ",", "feature_name", ",", "y_name", ",", "n_bins", "=", "10", ",", "method", "=", "'KL'", ",", "control_group", "=", "'control'", ",", "experiment_group_column", "=", "'treatment_group_key'", ",", "null_i...
[ 305, 4 ]
[ 380, 24 ]
python
en
['en', 'error', 'th']
False
FilterSelect.filter_D
(self, data, features, y_name, n_bins=10, method='KL', control_group='control', experiment_group_column='treatment_group_key', null_impute=None)
Rank features based on the chosen divergence measure. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group treatment_indicator (string): the column name for binary indicator of treatment (value 1) or control (value 0) ...
Rank features based on the chosen divergence measure.
def filter_D(self, data, features, y_name, n_bins=10, method='KL', control_group='control', experiment_group_column='treatment_group_key', null_impute=None): """ Rank features based on the chosen divergence measure. Parameters --------...
[ "def", "filter_D", "(", "self", ",", "data", ",", "features", ",", "y_name", ",", "n_bins", "=", "10", ",", "method", "=", "'KL'", ",", "control_group", "=", "'control'", ",", "experiment_group_column", "=", "'treatment_group_key'", ",", "null_impute", "=", ...
[ 382, 4 ]
[ 424, 25 ]
python
en
['en', 'error', 'th']
False
FilterSelect.get_importance
(self, data, features, y_name, method, experiment_group_column='treatment_group_key', control_group = 'control', treatment_group = 'treatment', n_bins=5, null_impute=None )
Rank features based on the chosen statistic of the interaction. Parameters ---------- data (pd.Dataframe): DataFrame containing outcome, features, and experiment group features (list of string): list of feature names, that are columns in the data DataFrame y...
Rank features based on the chosen statistic of the interaction.
def get_importance(self, data, features, y_name, method, experiment_group_column='treatment_group_key', control_group = 'control', treatment_group = 'treatment', n_bins=5, null_impute=None ...
[ "def", "get_importance", "(", "self", ",", "data", ",", "features", ",", "y_name", ",", "method", ",", "experiment_group_column", "=", "'treatment_group_key'", ",", "control_group", "=", "'control'", ",", "treatment_group", "=", "'treatment'", ",", "n_bins", "=", ...
[ 426, 4 ]
[ 480, 84 ]
python
en
['en', 'error', 'th']
False
calibrate
(ps, treatment)
Calibrate propensity scores with logistic GAM. Ref: https://pygam.readthedocs.io/en/latest/api/logisticgam.html Args: ps (numpy.array): a propensity score vector treatment (numpy.array): a binary treatment vector (0: control, 1: treated) Returns: (numpy.array): a calibrated propen...
Calibrate propensity scores with logistic GAM.
def calibrate(ps, treatment): """Calibrate propensity scores with logistic GAM. Ref: https://pygam.readthedocs.io/en/latest/api/logisticgam.html Args: ps (numpy.array): a propensity score vector treatment (numpy.array): a binary treatment vector (0: control, 1: treated) Returns: ...
[ "def", "calibrate", "(", "ps", ",", "treatment", ")", ":", "gam", "=", "LogisticGAM", "(", "s", "(", "0", ")", ")", ".", "fit", "(", "ps", ",", "treatment", ")", "return", "gam", ".", "predict_proba", "(", "ps", ")" ]
[ 181, 0 ]
[ 196, 32 ]
python
en
['en', 'en', 'en']
True
compute_propensity_score
(X, treatment, p_model=None, X_pred=None, treatment_pred=None, calibrate_p=True)
Generate propensity score if user didn't provide Args: X (np.matrix): features for training treatment (np.array or pd.Series): a treatment vector for training p_model (propensity model object, optional): ElasticNetPropensityModel (default) / GradientBoostedPropensityModel ...
Generate propensity score if user didn't provide
def compute_propensity_score(X, treatment, p_model=None, X_pred=None, treatment_pred=None, calibrate_p=True): """Generate propensity score if user didn't provide Args: X (np.matrix): features for training treatment (np.array or pd.Series): a treatment vector for training p_model (propen...
[ "def", "compute_propensity_score", "(", "X", ",", "treatment", ",", "p_model", "=", "None", ",", "X_pred", "=", "None", ",", "treatment_pred", "=", "None", ",", "calibrate_p", "=", "True", ")", ":", "if", "treatment_pred", "is", "None", ":", "treatment_pred"...
[ 199, 0 ]
[ 237, 21 ]
python
en
['en', 'en', 'en']
True
PropensityModel.__init__
(self, clip_bounds=(1e-3, 1 - 1e-3), **model_kwargs)
Args: clip_bounds (tuple): lower and upper bounds for clipping propensity scores. Bounds should be implemented such that: 0 < lower < upper < 1, to avoid division by zero in BaseRLearner.fit_predict() step. model_kwargs: Keyword arguments to be passed to the underlyi...
Args: clip_bounds (tuple): lower and upper bounds for clipping propensity scores. Bounds should be implemented such that: 0 < lower < upper < 1, to avoid division by zero in BaseRLearner.fit_predict() step. model_kwargs: Keyword arguments to be passed to the underlyi...
def __init__(self, clip_bounds=(1e-3, 1 - 1e-3), **model_kwargs): """ Args: clip_bounds (tuple): lower and upper bounds for clipping propensity scores. Bounds should be implemented such that: 0 < lower < upper < 1, to avoid division by zero in BaseRLearner.fit_predict() s...
[ "def", "__init__", "(", "self", ",", "clip_bounds", "=", "(", "1e-3", ",", "1", "-", "1e-3", ")", ",", "*", "*", "model_kwargs", ")", ":", "self", ".", "clip_bounds", "=", "clip_bounds", "self", ".", "model_kwargs", "=", "model_kwargs", "self", ".", "m...
[ 14, 4 ]
[ 23, 32 ]
python
en
['en', 'error', 'th']
False
PropensityModel.fit
(self, X, y)
Fit a propensity model. Args: X (numpy.ndarray): a feature matrix y (numpy.ndarray): a binary target vector
Fit a propensity model.
def fit(self, X, y): """ Fit a propensity model. Args: X (numpy.ndarray): a feature matrix y (numpy.ndarray): a binary target vector """ self.model.fit(X, y)
[ "def", "fit", "(", "self", ",", "X", ",", "y", ")", ":", "self", ".", "model", ".", "fit", "(", "X", ",", "y", ")" ]
[ 33, 4 ]
[ 41, 28 ]
python
en
['en', 'error', 'th']
False
PropensityModel.predict
(self, X)
Predict propensity scores. Args: X (numpy.ndarray): a feature matrix Returns: (numpy.ndarray): Propensity scores between 0 and 1.
Predict propensity scores.
def predict(self, X): """ Predict propensity scores. Args: X (numpy.ndarray): a feature matrix Returns: (numpy.ndarray): Propensity scores between 0 and 1. """ return np.clip( self.model.predict_proba(X)[:, 1], *self.clip_bounds ...
[ "def", "predict", "(", "self", ",", "X", ")", ":", "return", "np", ".", "clip", "(", "self", ".", "model", ".", "predict_proba", "(", "X", ")", "[", ":", ",", "1", "]", ",", "*", "self", ".", "clip_bounds", ")" ]
[ 43, 4 ]
[ 55, 9 ]
python
en
['en', 'error', 'th']
False
PropensityModel.fit_predict
(self, X, y)
Fit a propensity model and predict propensity scores. Args: X (numpy.ndarray): a feature matrix y (numpy.ndarray): a binary target vector Returns: (numpy.ndarray): Propensity scores between 0 and 1.
Fit a propensity model and predict propensity scores.
def fit_predict(self, X, y): """ Fit a propensity model and predict propensity scores. Args: X (numpy.ndarray): a feature matrix y (numpy.ndarray): a binary target vector Returns: (numpy.ndarray): Propensity scores between 0 and 1. """ ...
[ "def", "fit_predict", "(", "self", ",", "X", ",", "y", ")", ":", "self", ".", "fit", "(", "X", ",", "y", ")", "propensity_scores", "=", "self", ".", "predict", "(", "X", ")", "logger", ".", "info", "(", "'AUC score: {:.6f}'", ".", "format", "(", "a...
[ 57, 4 ]
[ 71, 32 ]
python
en
['en', 'error', 'th']
False
GradientBoostedPropensityModel.fit
(self, X, y, early_stopping_rounds=10, stop_val_size=0.2)
Fit a propensity model. Args: X (numpy.ndarray): a feature matrix y (numpy.ndarray): a binary target vector
Fit a propensity model.
def fit(self, X, y, early_stopping_rounds=10, stop_val_size=0.2): """ Fit a propensity model. Args: X (numpy.ndarray): a feature matrix y (numpy.ndarray): a binary target vector """ if self.early_stop: X_train, X_val, y_train, y_val = train_t...
[ "def", "fit", "(", "self", ",", "X", ",", "y", ",", "early_stopping_rounds", "=", "10", ",", "stop_val_size", "=", "0.2", ")", ":", "if", "self", ".", "early_stop", ":", "X_train", ",", "X_val", ",", "y_train", ",", "y_val", "=", "train_test_split", "(...
[ 136, 4 ]
[ 157, 65 ]
python
en
['en', 'error', 'th']
False
GradientBoostedPropensityModel.predict
(self, X)
Predict propensity scores. Args: X (numpy.ndarray): a feature matrix Returns: (numpy.ndarray): Propensity scores between 0 and 1.
Predict propensity scores.
def predict(self, X): """ Predict propensity scores. Args: X (numpy.ndarray): a feature matrix Returns: (numpy.ndarray): Propensity scores between 0 and 1. """ if self.early_stop: return np.clip( self.model.predict_pro...
[ "def", "predict", "(", "self", ",", "X", ")", ":", "if", "self", ".", "early_stop", ":", "return", "np", ".", "clip", "(", "self", ".", "model", ".", "predict_proba", "(", "X", ",", "ntree_limit", "=", "self", ".", "model", ".", "best_ntree_limit", "...
[ 159, 4 ]
[ 178, 73 ]
python
en
['en', 'error', 'th']
False
get_root
()
Get the project root directory. We require that all commands are run from the project root, i.e. the directory that contains setup.py, setup.cfg, and versioneer.py .
Get the project root directory.
def get_root(): """Get the project root directory. We require that all commands are run from the project root, i.e. the directory that contains setup.py, setup.cfg, and versioneer.py . """ root = os.path.realpath(os.path.abspath(os.getcwd())) setup_py = os.path.join(root, "setup.py") versio...
[ "def", "get_root", "(", ")", ":", "root", "=", "os", ".", "path", ".", "realpath", "(", "os", ".", "path", ".", "abspath", "(", "os", ".", "getcwd", "(", ")", ")", ")", "setup_py", "=", "os", ".", "path", ".", "join", "(", "root", ",", "\"setup...
[ 293, 0 ]
[ 333, 15 ]
python
en
['en', 'en', 'en']
True
get_config_from_root
(root)
Read the project setup.cfg file to determine Versioneer config.
Read the project setup.cfg file to determine Versioneer config.
def get_config_from_root(root): """Read the project setup.cfg file to determine Versioneer config.""" # This might raise EnvironmentError (if setup.cfg is missing), or # configparser.NoSectionError (if it lacks a [versioneer] section), or # configparser.NoOptionError (if it lacks "VCS="). See the docstr...
[ "def", "get_config_from_root", "(", "root", ")", ":", "# This might raise EnvironmentError (if setup.cfg is missing), or", "# configparser.NoSectionError (if it lacks a [versioneer] section), or", "# configparser.NoOptionError (if it lacks \"VCS=\"). See the docstring at", "# the top of versioneer...
[ 336, 0 ]
[ 363, 14 ]
python
en
['en', 'en', 'en']
True
register_vcs_handler
(vcs, method)
Decorator to mark a method as the handler for a particular VCS.
Decorator to mark a method as the handler for a particular VCS.
def register_vcs_handler(vcs, method): # decorator """Decorator to mark a method as the handler for a particular VCS.""" def decorate(f): """Store f in HANDLERS[vcs][method].""" if vcs not in HANDLERS: HANDLERS[vcs] = {} HANDLERS[vcs][method] = f return f retur...
[ "def", "register_vcs_handler", "(", "vcs", ",", "method", ")", ":", "# decorator", "def", "decorate", "(", "f", ")", ":", "\"\"\"Store f in HANDLERS[vcs][method].\"\"\"", "if", "vcs", "not", "in", "HANDLERS", ":", "HANDLERS", "[", "vcs", "]", "=", "{", "}", ...
[ 375, 0 ]
[ 385, 19 ]
python
en
['en', 'en', 'en']
True
run_command
(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None)
Call the given command(s).
Call the given command(s).
def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None): """Call the given command(s).""" assert isinstance(commands, list) p = None for c in commands: try: dispcmd = str([c] + args) # remember shell=False, so use git.cmd on windows, not just...
[ "def", "run_command", "(", "commands", ",", "args", ",", "cwd", "=", "None", ",", "verbose", "=", "False", ",", "hide_stderr", "=", "False", ",", "env", "=", "None", ")", ":", "assert", "isinstance", "(", "commands", ",", "list", ")", "p", "=", "None...
[ 388, 0 ]
[ 424, 31 ]
python
en
['en', 'en', 'en']
True
git_get_keywords
(versionfile_abs)
Extract version information from the given file.
Extract version information from the given file.
def git_get_keywords(versionfile_abs): """Extract version information from the given file.""" # the code embedded in _version.py can just fetch the value of these # keywords. When used from setup.py, we don't want to import _version.py, # so we do it with a regexp instead. This function is not used from...
[ "def", "git_get_keywords", "(", "versionfile_abs", ")", ":", "# the code embedded in _version.py can just fetch the value of these", "# keywords. When used from setup.py, we don't want to import _version.py,", "# so we do it with a regexp instead. This function is not used from", "# _version.py.",...
[ 953, 0 ]
[ 978, 19 ]
python
en
['en', 'en', 'en']
True
git_versions_from_keywords
(keywords, tag_prefix, verbose)
Get version information from git keywords.
Get version information from git keywords.
def git_versions_from_keywords(keywords, tag_prefix, verbose): """Get version information from git keywords.""" if not keywords: raise NotThisMethod("no keywords at all, weird") date = keywords.get("date") if date is not None: # git-2.2.0 added "%cI", which expands to an ISO-8601 -compli...
[ "def", "git_versions_from_keywords", "(", "keywords", ",", "tag_prefix", ",", "verbose", ")", ":", "if", "not", "keywords", ":", "raise", "NotThisMethod", "(", "\"no keywords at all, weird\"", ")", "date", "=", "keywords", ".", "get", "(", "\"date\"", ")", "if",...
[ 982, 0 ]
[ 1040, 5 ]
python
en
['en', 'da', 'en']
True
git_pieces_from_vcs
(tag_prefix, root, verbose, run_command=run_command)
Get version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded, and _version.py hasn't already been rewritten with a short version string, meaning we're inside a checked out source tree.
Get version from 'git describe' in the root of the source tree.
def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): """Get version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded, and _version.py hasn't already been rewritten with a short version string, meani...
[ "def", "git_pieces_from_vcs", "(", "tag_prefix", ",", "root", ",", "verbose", ",", "run_command", "=", "run_command", ")", ":", "GITS", "=", "[", "\"git\"", "]", "if", "sys", ".", "platform", "==", "\"win32\"", ":", "GITS", "=", "[", "\"git.cmd\"", ",", ...
[ 1044, 0 ]
[ 1141, 17 ]
python
en
['en', 'en', 'en']
True
do_vcs_install
(manifest_in, versionfile_source, ipy)
Git-specific installation logic for Versioneer. For Git, this means creating/changing .gitattributes to mark _version.py for export-subst keyword substitution.
Git-specific installation logic for Versioneer.
def do_vcs_install(manifest_in, versionfile_source, ipy): """Git-specific installation logic for Versioneer. For Git, this means creating/changing .gitattributes to mark _version.py for export-subst keyword substitution. """ GITS = ["git"] if sys.platform == "win32": GITS = ["git.cmd", ...
[ "def", "do_vcs_install", "(", "manifest_in", ",", "versionfile_source", ",", "ipy", ")", ":", "GITS", "=", "[", "\"git\"", "]", "if", "sys", ".", "platform", "==", "\"win32\"", ":", "GITS", "=", "[", "\"git.cmd\"", ",", "\"git.exe\"", "]", "files", "=", ...
[ 1144, 0 ]
[ 1179, 44 ]
python
en
['en', 'en', 'en']
True
versions_from_parentdir
(parentdir_prefix, root, verbose)
Try to determine the version from the parent directory name. Source tarballs conventionally unpack into a directory that includes both the project name and a version string. We will also support searching up two directory levels for an appropriately named parent directory
Try to determine the version from the parent directory name.
def versions_from_parentdir(parentdir_prefix, root, verbose): """Try to determine the version from the parent directory name. Source tarballs conventionally unpack into a directory that includes both the project name and a version string. We will also support searching up two directory levels for an ap...
[ "def", "versions_from_parentdir", "(", "parentdir_prefix", ",", "root", ",", "verbose", ")", ":", "rootdirs", "=", "[", "]", "for", "i", "in", "range", "(", "3", ")", ":", "dirname", "=", "os", ".", "path", ".", "basename", "(", "root", ")", "if", "d...
[ 1182, 0 ]
[ 1210, 70 ]
python
en
['en', 'en', 'en']
True
versions_from_file
(filename)
Try to determine the version from _version.py if present.
Try to determine the version from _version.py if present.
def versions_from_file(filename): """Try to determine the version from _version.py if present.""" try: with open(filename) as f: contents = f.read() except OSError: raise NotThisMethod("unable to read _version.py") mo = re.search( r"version_json = '''\n(.*)''' # END ...
[ "def", "versions_from_file", "(", "filename", ")", ":", "try", ":", "with", "open", "(", "filename", ")", "as", "f", ":", "contents", "=", "f", ".", "read", "(", ")", "except", "OSError", ":", "raise", "NotThisMethod", "(", "\"unable to read _version.py\"", ...
[ 1231, 0 ]
[ 1247, 34 ]
python
en
['en', 'en', 'en']
True
write_to_version_file
(filename, versions)
Write the given version number to the given _version.py file.
Write the given version number to the given _version.py file.
def write_to_version_file(filename, versions): """Write the given version number to the given _version.py file.""" os.unlink(filename) contents = json.dumps(versions, sort_keys=True, indent=1, separators=(",", ": ")) with open(filename, "w") as f: f.write(SHORT_VERSION_PY % contents) print(...
[ "def", "write_to_version_file", "(", "filename", ",", "versions", ")", ":", "os", ".", "unlink", "(", "filename", ")", "contents", "=", "json", ".", "dumps", "(", "versions", ",", "sort_keys", "=", "True", ",", "indent", "=", "1", ",", "separators", "=",...
[ 1250, 0 ]
[ 1257, 65 ]
python
en
['en', 'en', 'en']
True
plus_or_dot
(pieces)
Return a + if we don't already have one, else return a .
Return a + if we don't already have one, else return a .
def plus_or_dot(pieces): """Return a + if we don't already have one, else return a .""" if "+" in pieces.get("closest-tag", ""): return "." return "+"
[ "def", "plus_or_dot", "(", "pieces", ")", ":", "if", "\"+\"", "in", "pieces", ".", "get", "(", "\"closest-tag\"", ",", "\"\"", ")", ":", "return", "\".\"", "return", "\"+\"" ]
[ 1260, 0 ]
[ 1264, 14 ]
python
en
['en', 'en', 'en']
True
render_pep440
(pieces)
Build up version string, with post-release "local version identifier". Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty Exceptions: 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty]
Build up version string, with post-release "local version identifier".
def render_pep440(pieces): """Build up version string, with post-release "local version identifier". Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty Exceptions: 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHE...
[ "def", "render_pep440", "(", "pieces", ")", ":", "if", "pieces", "[", "\"closest-tag\"", "]", ":", "rendered", "=", "pieces", "[", "\"closest-tag\"", "]", "if", "pieces", "[", "\"distance\"", "]", "or", "pieces", "[", "\"dirty\"", "]", ":", "rendered", "+=...
[ 1267, 0 ]
[ 1288, 19 ]
python
en
['en', 'en', 'en']
True
render_pep440_pre
(pieces)
TAG[.post.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post.devDISTANCE
TAG[.post.devDISTANCE] -- No -dirty.
def render_pep440_pre(pieces): """TAG[.post.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post.devDISTANCE """ if pieces["closest-tag"]: rendered = pieces["closest-tag"] if pieces["distance"]: rendered += ".post.dev%d" % pieces["distance"] else: # exce...
[ "def", "render_pep440_pre", "(", "pieces", ")", ":", "if", "pieces", "[", "\"closest-tag\"", "]", ":", "rendered", "=", "pieces", "[", "\"closest-tag\"", "]", "if", "pieces", "[", "\"distance\"", "]", ":", "rendered", "+=", "\".post.dev%d\"", "%", "pieces", ...
[ 1291, 0 ]
[ 1304, 19 ]
python
en
['en', 'en', 'pt']
True
render_pep440_post
(pieces)
TAG[.postDISTANCE[.dev0]+gHEX] . The ".dev0" means dirty. Note that .dev0 sorts backwards (a dirty tree will appear "older" than the corresponding clean one), but you shouldn't be releasing software with -dirty anyways. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
TAG[.postDISTANCE[.dev0]+gHEX] .
def render_pep440_post(pieces): """TAG[.postDISTANCE[.dev0]+gHEX] . The ".dev0" means dirty. Note that .dev0 sorts backwards (a dirty tree will appear "older" than the corresponding clean one), but you shouldn't be releasing software with -dirty anyways. Exceptions: 1: no tags. 0.postDISTANCE[...
[ "def", "render_pep440_post", "(", "pieces", ")", ":", "if", "pieces", "[", "\"closest-tag\"", "]", ":", "rendered", "=", "pieces", "[", "\"closest-tag\"", "]", "if", "pieces", "[", "\"distance\"", "]", "or", "pieces", "[", "\"dirty\"", "]", ":", "rendered", ...
[ 1307, 0 ]
[ 1331, 19 ]
python
cy
['en', 'cy', 'hi']
False
render_pep440_old
(pieces)
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Eexceptions: 1: no tags. 0.postDISTANCE[.dev0]
TAG[.postDISTANCE[.dev0]] .
def render_pep440_old(pieces): """TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Eexceptions: 1: no tags. 0.postDISTANCE[.dev0] """ if pieces["closest-tag"]: rendered = pieces["closest-tag"] if pieces["distance"] or pieces["dirty"]: rendered += ".post%d" % pie...
[ "def", "render_pep440_old", "(", "pieces", ")", ":", "if", "pieces", "[", "\"closest-tag\"", "]", ":", "rendered", "=", "pieces", "[", "\"closest-tag\"", "]", "if", "pieces", "[", "\"distance\"", "]", "or", "pieces", "[", "\"dirty\"", "]", ":", "rendered", ...
[ 1334, 0 ]
[ 1353, 19 ]
python
en
['en', 'mt', 'hi']
False
render_git_describe
(pieces)
TAG[-DISTANCE-gHEX][-dirty]. Like 'git describe --tags --dirty --always'. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix)
TAG[-DISTANCE-gHEX][-dirty].
def render_git_describe(pieces): """TAG[-DISTANCE-gHEX][-dirty]. Like 'git describe --tags --dirty --always'. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix) """ if pieces["closest-tag"]: rendered = pieces["closest-tag"] if pieces["distance"]: rendered +=...
[ "def", "render_git_describe", "(", "pieces", ")", ":", "if", "pieces", "[", "\"closest-tag\"", "]", ":", "rendered", "=", "pieces", "[", "\"closest-tag\"", "]", "if", "pieces", "[", "\"distance\"", "]", ":", "rendered", "+=", "\"-%d-g%s\"", "%", "(", "pieces...
[ 1356, 0 ]
[ 1373, 19 ]
python
en
['en', 'en', 'en']
False
render_git_describe_long
(pieces)
TAG-DISTANCE-gHEX[-dirty]. Like 'git describe --tags --dirty --always -long'. The distance/hash is unconditional. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix)
TAG-DISTANCE-gHEX[-dirty].
def render_git_describe_long(pieces): """TAG-DISTANCE-gHEX[-dirty]. Like 'git describe --tags --dirty --always -long'. The distance/hash is unconditional. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix) """ if pieces["closest-tag"]: rendered = pieces["closest-tag"] ...
[ "def", "render_git_describe_long", "(", "pieces", ")", ":", "if", "pieces", "[", "\"closest-tag\"", "]", ":", "rendered", "=", "pieces", "[", "\"closest-tag\"", "]", "rendered", "+=", "\"-%d-g%s\"", "%", "(", "pieces", "[", "\"distance\"", "]", ",", "pieces", ...
[ 1376, 0 ]
[ 1393, 19 ]
python
en
['en', 'en', 'pt']
False
render
(pieces, style)
Render the given version pieces into the requested style.
Render the given version pieces into the requested style.
def render(pieces, style): """Render the given version pieces into the requested style.""" if pieces["error"]: return { "version": "unknown", "full-revisionid": pieces.get("long"), "dirty": None, "error": pieces["error"], "date": None, ...
[ "def", "render", "(", "pieces", ",", "style", ")", ":", "if", "pieces", "[", "\"error\"", "]", ":", "return", "{", "\"version\"", ":", "\"unknown\"", ",", "\"full-revisionid\"", ":", "pieces", ".", "get", "(", "\"long\"", ")", ",", "\"dirty\"", ":", "Non...
[ 1396, 0 ]
[ 1431, 5 ]
python
en
['en', 'en', 'en']
True
get_versions
(verbose=False)
Get the project version from whatever source is available. Returns dict with two keys: 'version' and 'full'.
Get the project version from whatever source is available.
def get_versions(verbose=False): """Get the project version from whatever source is available. Returns dict with two keys: 'version' and 'full'. """ if "versioneer" in sys.modules: # see the discussion in cmdclass.py:get_cmdclass() del sys.modules["versioneer"] root = get_root() ...
[ "def", "get_versions", "(", "verbose", "=", "False", ")", ":", "if", "\"versioneer\"", "in", "sys", ".", "modules", ":", "# see the discussion in cmdclass.py:get_cmdclass()", "del", "sys", ".", "modules", "[", "\"versioneer\"", "]", "root", "=", "get_root", "(", ...
[ 1438, 0 ]
[ 1516, 5 ]
python
en
['en', 'en', 'en']
True
get_version
()
Get the short version string for this project.
Get the short version string for this project.
def get_version(): """Get the short version string for this project.""" return get_versions()["version"]
[ "def", "get_version", "(", ")", ":", "return", "get_versions", "(", ")", "[", "\"version\"", "]" ]
[ 1519, 0 ]
[ 1521, 36 ]
python
en
['en', 'en', 'en']
True
get_cmdclass
()
Get the custom setuptools/distutils subclasses used by Versioneer.
Get the custom setuptools/distutils subclasses used by Versioneer.
def get_cmdclass(): """Get the custom setuptools/distutils subclasses used by Versioneer.""" if "versioneer" in sys.modules: del sys.modules["versioneer"] # this fixes the "python setup.py develop" case (also 'install' and # 'easy_install .'), in which subdependencies of the main project...
[ "def", "get_cmdclass", "(", ")", ":", "if", "\"versioneer\"", "in", "sys", ".", "modules", ":", "del", "sys", ".", "modules", "[", "\"versioneer\"", "]", "# this fixes the \"python setup.py develop\" case (also 'install' and", "# 'easy_install .'), in which subdependencies of...
[ 1524, 0 ]
[ 1700, 15 ]
python
en
['en', 'et', 'en']
True
do_setup
()
Main VCS-independent setup function for installing Versioneer.
Main VCS-independent setup function for installing Versioneer.
def do_setup(): """Main VCS-independent setup function for installing Versioneer.""" root = get_root() try: cfg = get_config_from_root(root) except (OSError, configparser.NoSectionError, configparser.NoOptionError) as e: if isinstance(e, (EnvironmentError, configparser.NoSectionError)): ...
[ "def", "do_setup", "(", ")", ":", "root", "=", "get_root", "(", ")", "try", ":", "cfg", "=", "get_config_from_root", "(", "root", ")", "except", "(", "OSError", ",", "configparser", ".", "NoSectionError", ",", "configparser", ".", "NoOptionError", ")", "as...
[ 1747, 0 ]
[ 1829, 12 ]
python
en
['en', 'en', 'en']
True
scan_setup_py
()
Validate the contents of setup.py against Versioneer's expectations.
Validate the contents of setup.py against Versioneer's expectations.
def scan_setup_py(): """Validate the contents of setup.py against Versioneer's expectations.""" found = set() setters = False errors = 0 with open("setup.py") as f: for line in f.readlines(): if "import versioneer" in line: found.add("import") if "vers...
[ "def", "scan_setup_py", "(", ")", ":", "found", "=", "set", "(", ")", "setters", "=", "False", "errors", "=", "0", "with", "open", "(", "\"setup.py\"", ")", "as", "f", ":", "for", "line", "in", "f", ".", "readlines", "(", ")", ":", "if", "\"import ...
[ 1832, 0 ]
[ 1866, 17 ]
python
en
['en', 'en', 'en']
True
make_flatten
(decl_or_decls)
Converts tree representation of declarations to flatten one. :param decl_or_decls: reference to list of declaration's or single declaration :type decl_or_decls: :class:`declaration_t` or [ :class:`declaration_t` ] :rtype: [ all internal declarations ]
Converts tree representation of declarations to flatten one.
def make_flatten(decl_or_decls): """ Converts tree representation of declarations to flatten one. :param decl_or_decls: reference to list of declaration's or single declaration :type decl_or_decls: :class:`declaration_t` or [ :class:`declaration_t` ] :rtype: [ all internal declarations ] ...
[ "def", "make_flatten", "(", "decl_or_decls", ")", ":", "def", "proceed_single", "(", "decl", ")", ":", "answer", "=", "[", "decl", "]", "if", "not", "isinstance", "(", "decl", ",", "scopedef_t", ")", ":", "return", "answer", "for", "elem", "in", "decl", ...
[ 1221, 0 ]
[ 1251, 17 ]
python
en
['en', 'error', 'th']
False
find_all_declarations
( declarations, decl_type=None, name=None, parent=None, recursive=True, fullname=None)
Returns a list of all declarations that match criteria, defined by developer. For more information about arguments see :class:`match_declaration_t` class. :rtype: [ matched declarations ]
Returns a list of all declarations that match criteria, defined by developer.
def find_all_declarations( declarations, decl_type=None, name=None, parent=None, recursive=True, fullname=None): """ Returns a list of all declarations that match criteria, defined by developer. For more information about arguments see :class:`match_decla...
[ "def", "find_all_declarations", "(", "declarations", ",", "decl_type", "=", "None", ",", "name", "=", "None", ",", "parent", "=", "None", ",", "recursive", "=", "True", ",", "fullname", "=", "None", ")", ":", "if", "recursive", ":", "decls", "=", "make_f...
[ 1254, 0 ]
[ 1284, 19 ]
python
en
['en', 'error', 'th']
False
find_declaration
( declarations, decl_type=None, name=None, parent=None, recursive=True, fullname=None)
Returns single declaration that match criteria, defined by developer. If more the one declaration was found None will be returned. For more information about arguments see :class:`match_declaration_t` class. :rtype: matched declaration :class:`declaration_t` or None
Returns single declaration that match criteria, defined by developer. If more the one declaration was found None will be returned.
def find_declaration( declarations, decl_type=None, name=None, parent=None, recursive=True, fullname=None): """ Returns single declaration that match criteria, defined by developer. If more the one declaration was found None will be returned. For more inf...
[ "def", "find_declaration", "(", "declarations", ",", "decl_type", "=", "None", ",", "name", "=", "None", ",", "parent", "=", "None", ",", "recursive", "=", "True", ",", "fullname", "=", "None", ")", ":", "decl", "=", "find_all_declarations", "(", "declarat...
[ 1287, 0 ]
[ 1313, 22 ]
python
en
['en', 'error', 'th']
False
find_first_declaration
( declarations, decl_type=None, name=None, parent=None, recursive=True, fullname=None)
Returns first declaration that match criteria, defined by developer. For more information about arguments see :class:`match_declaration_t` class. :rtype: matched declaration :class:`declaration_t` or None
Returns first declaration that match criteria, defined by developer.
def find_first_declaration( declarations, decl_type=None, name=None, parent=None, recursive=True, fullname=None): """ Returns first declaration that match criteria, defined by developer. For more information about arguments see :class:`match_declaration_t` ...
[ "def", "find_first_declaration", "(", "declarations", ",", "decl_type", "=", "None", ",", "name", "=", "None", ",", "parent", "=", "None", ",", "recursive", "=", "True", ",", "fullname", "=", "None", ")", ":", "decl_matcher", "=", "algorithm", ".", "match_...
[ 1316, 0 ]
[ 1345, 15 ]
python
en
['en', 'error', 'th']
False
declaration_files
(decl_or_decls)
Returns set of files Every declaration is declared in some file. This function returns set, that contains all file names of declarations. :param decl_or_decls: reference to list of declaration's or single declaration :type decl_or_decls: :class:`declaration_t` or [:class:`declaration_t`] ...
Returns set of files
def declaration_files(decl_or_decls): """ Returns set of files Every declaration is declared in some file. This function returns set, that contains all file names of declarations. :param decl_or_decls: reference to list of declaration's or single declaration :type decl_or_decls: :class...
[ "def", "declaration_files", "(", "decl_or_decls", ")", ":", "files", "=", "set", "(", ")", "decls", "=", "make_flatten", "(", "decl_or_decls", ")", "for", "decl", "in", "decls", ":", "if", "decl", ".", "location", ":", "files", ".", "add", "(", "decl", ...
[ 1348, 0 ]
[ 1367, 16 ]
python
en
['en', 'error', 'th']
False
matcher.find
(decl_matcher, decls, recursive=True)
Returns a list of declarations that match `decl_matcher` defined criteria or None :param decl_matcher: Python callable object, that takes one argument - reference to a declaration :param decls: the search scope, :class:declaration_t object or :class:declaration_...
Returns a list of declarations that match `decl_matcher` defined criteria or None
def find(decl_matcher, decls, recursive=True): """ Returns a list of declarations that match `decl_matcher` defined criteria or None :param decl_matcher: Python callable object, that takes one argument - reference to a declaration :param decls: the search scope, :cla...
[ "def", "find", "(", "decl_matcher", ",", "decls", ",", "recursive", "=", "True", ")", ":", "where", "=", "[", "]", "if", "isinstance", "(", "decls", ",", "list", ")", ":", "where", ".", "extend", "(", "decls", ")", "else", ":", "where", ".", "appen...
[ 25, 4 ]
[ 45, 48 ]
python
en
['en', 'error', 'th']
False
matcher.find_single
(decl_matcher, decls, recursive=True)
Returns a reference to the declaration, that match `decl_matcher` defined criteria. if a unique declaration could not be found the method will return None. :param decl_matcher: Python callable object, that takes one argument - reference to a declaration :param decl...
Returns a reference to the declaration, that match `decl_matcher` defined criteria.
def find_single(decl_matcher, decls, recursive=True): """ Returns a reference to the declaration, that match `decl_matcher` defined criteria. if a unique declaration could not be found the method will return None. :param decl_matcher: Python callable object, that takes one argu...
[ "def", "find_single", "(", "decl_matcher", ",", "decls", ",", "recursive", "=", "True", ")", ":", "answer", "=", "matcher", ".", "find", "(", "decl_matcher", ",", "decls", ",", "recursive", ")", "if", "len", "(", "answer", ")", "==", "1", ":", "return"...
[ 48, 4 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
matcher.get_single
(decl_matcher, decls, recursive=True)
Returns a reference to declaration, that match `decl_matcher` defined criteria. If a unique declaration could not be found, an appropriate exception will be raised. :param decl_matcher: Python callable object, that takes one argument - reference to a declaration ...
Returns a reference to declaration, that match `decl_matcher` defined criteria.
def get_single(decl_matcher, decls, recursive=True): """ Returns a reference to declaration, that match `decl_matcher` defined criteria. If a unique declaration could not be found, an appropriate exception will be raised. :param decl_matcher: Python callable object, tha...
[ "def", "get_single", "(", "decl_matcher", ",", "decls", ",", "recursive", "=", "True", ")", ":", "answer", "=", "matcher", ".", "find", "(", "decl_matcher", ",", "decls", ",", "recursive", ")", "if", "len", "(", "answer", ")", "==", "1", ":", "return",...
[ 67, 4 ]
[ 88, 76 ]
python
en
['en', 'error', 'th']
False
scopedef_t._logger
(self)
reference to :attr:`pygccxml.utils.loggers.queries_engine` logger
reference to :attr:`pygccxml.utils.loggers.queries_engine` logger
def _logger(self): """reference to :attr:`pygccxml.utils.loggers.queries_engine` logger""" return utils.loggers.queries_engine
[ "def", "_logger", "(", "self", ")", ":", "return", "utils", ".", "loggers", ".", "queries_engine" ]
[ 183, 4 ]
[ 185, 43 ]
python
en
['en', 'en', 'en']
True
scopedef_t._get__cmp__scope_items
(self)
implementation details
implementation details
def _get__cmp__scope_items(self): """implementation details""" raise NotImplementedError()
[ "def", "_get__cmp__scope_items", "(", "self", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 187, 4 ]
[ 189, 35 ]
python
da
['eo', 'da', 'en']
False
scopedef_t._get__cmp__items
(self)
implementation details
implementation details
def _get__cmp__items(self): """implementation details""" items = [] if self._optimized: # in this case we don't need to build class internal declarations # list items.append(self._all_decls_not_recursive.sort()) else: items.append(self.decl...
[ "def", "_get__cmp__items", "(", "self", ")", ":", "items", "=", "[", "]", "if", "self", ".", "_optimized", ":", "# in this case we don't need to build class internal declarations", "# list", "items", ".", "append", "(", "self", ".", "_all_decls_not_recursive", ".", ...
[ 191, 4 ]
[ 201, 20 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.declarations
(self)
List of children declarations. Returns: List[declarations.declaration_t]
List of children declarations.
def declarations(self): """ List of children declarations. Returns: List[declarations.declaration_t] """ if self._optimized: return self._all_decls_not_recursive else: return self._get_declarations_impl()
[ "def", "declarations", "(", "self", ")", ":", "if", "self", ".", "_optimized", ":", "return", "self", ".", "_all_decls_not_recursive", "else", ":", "return", "self", ".", "_get_declarations_impl", "(", ")" ]
[ 215, 4 ]
[ 225, 48 ]
python
en
['en', 'error', 'th']
False
scopedef_t.declarations
(self, declarations)
Set list of all declarations defined in the namespace. Args: List[declarations.declaration_t]: list of declarations Not implemented.
Set list of all declarations defined in the namespace.
def declarations(self, declarations): """ Set list of all declarations defined in the namespace. Args: List[declarations.declaration_t]: list of declarations Not implemented. """ raise NotImplementedError()
[ "def", "declarations", "(", "self", ",", "declarations", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 228, 4 ]
[ 238, 35 ]
python
en
['en', 'error', 'th']
False
scopedef_t.__decl_types
(decl)
implementation details
implementation details
def __decl_types(decl): """implementation details""" types = [] bases = list(decl.__class__.__bases__) if 'pygccxml' in decl.__class__.__module__: types.append(decl.__class__) while bases: base = bases.pop() if base is declaration.declaration_t...
[ "def", "__decl_types", "(", "decl", ")", ":", "types", "=", "[", "]", "bases", "=", "list", "(", "decl", ".", "__class__", ".", "__bases__", ")", "if", "'pygccxml'", "in", "decl", ".", "__class__", ".", "__module__", ":", "types", ".", "append", "(", ...
[ 244, 4 ]
[ 262, 20 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.clear_optimizer
(self)
Cleans query optimizer state
Cleans query optimizer state
def clear_optimizer(self): """Cleans query optimizer state""" self._optimized = False self._type2decls = {} self._type2name2decls = {} self._type2decls_nr = {} self._type2name2decls_nr = {} self._all_decls = None self._all_decls_not_recursive = None ...
[ "def", "clear_optimizer", "(", "self", ")", ":", "self", ".", "_optimized", "=", "False", "self", ".", "_type2decls", "=", "{", "}", "self", ".", "_type2name2decls", "=", "{", "}", "self", ".", "_type2decls_nr", "=", "{", "}", "self", ".", "_type2name2de...
[ 264, 4 ]
[ 276, 38 ]
python
en
['fr', 'en', 'en']
True
scopedef_t.init_optimizer
(self)
Initializes query optimizer state. There are 4 internals hash tables: 1. from type to declarations 2. from type to declarations for non-recursive queries 3. from type to name to declarations 4. from type to name to declarations for non-recursive queries ...
Initializes query optimizer state.
def init_optimizer(self): """ Initializes query optimizer state. There are 4 internals hash tables: 1. from type to declarations 2. from type to declarations for non-recursive queries 3. from type to name to declarations 4. from type to name to de...
[ "def", "init_optimizer", "(", "self", ")", ":", "if", "self", ".", "name", "==", "'::'", ":", "self", ".", "_logger", ".", "debug", "(", "\"preparing data structures for query optimizer - started\"", ")", "start_time", "=", "time", ".", "clock", "(", ")", "sel...
[ 278, 4 ]
[ 330, 30 ]
python
en
['en', 'error', 'th']
False
scopedef_t._build_operator_name
(name, function, symbol)
implementation details
implementation details
def _build_operator_name(name, function, symbol): """implementation details""" def add_operator(sym): if 'new' in sym or 'delete' in sym: return 'operator ' + sym else: return 'operator' + sym if isinstance(name, collections.Callable) and N...
[ "def", "_build_operator_name", "(", "name", ",", "function", ",", "symbol", ")", ":", "def", "add_operator", "(", "sym", ")", ":", "if", "'new'", "in", "sym", "or", "'delete'", "in", "sym", ":", "return", "'operator '", "+", "sym", "else", ":", "return",...
[ 340, 4 ]
[ 355, 19 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.__normalize_args
(**keywds)
implementation details
implementation details
def __normalize_args(**keywds): """implementation details""" if isinstance(keywds['name'], collections.Callable) and \ None is keywds['function']: keywds['function'] = keywds['name'] keywds['name'] = None return keywds
[ "def", "__normalize_args", "(", "*", "*", "keywds", ")", ":", "if", "isinstance", "(", "keywds", "[", "'name'", "]", ",", "collections", ".", "Callable", ")", "and", "None", "is", "keywds", "[", "'function'", "]", ":", "keywds", "[", "'function'", "]", ...
[ 368, 4 ]
[ 374, 21 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.__findout_recursive
(self, **keywds)
implementation details
implementation details
def __findout_recursive(self, **keywds): """implementation details""" if None is keywds['recursive']: return self.RECURSIVE_DEFAULT else: return keywds['recursive']
[ "def", "__findout_recursive", "(", "self", ",", "*", "*", "keywds", ")", ":", "if", "None", "is", "keywds", "[", "'recursive'", "]", ":", "return", "self", ".", "RECURSIVE_DEFAULT", "else", ":", "return", "keywds", "[", "'recursive'", "]" ]
[ 376, 4 ]
[ 381, 38 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.__findout_allow_empty
(self, **keywds)
implementation details
implementation details
def __findout_allow_empty(self, **keywds): """implementation details""" if None is keywds['allow_empty']: return self.ALLOW_EMPTY_MDECL_WRAPPER else: return keywds['allow_empty']
[ "def", "__findout_allow_empty", "(", "self", ",", "*", "*", "keywds", ")", ":", "if", "None", "is", "keywds", "[", "'allow_empty'", "]", ":", "return", "self", ".", "ALLOW_EMPTY_MDECL_WRAPPER", "else", ":", "return", "keywds", "[", "'allow_empty'", "]" ]
[ 383, 4 ]
[ 388, 40 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.__findout_decl_type
(match_class, **keywds)
implementation details
implementation details
def __findout_decl_type(match_class, **keywds): """implementation details""" if 'decl_type' in keywds: return keywds['decl_type'] matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] if 'allow_empty' in matcher_args: ...
[ "def", "__findout_decl_type", "(", "match_class", ",", "*", "*", "keywds", ")", ":", "if", "'decl_type'", "in", "keywds", ":", "return", "keywds", "[", "'decl_type'", "]", "matcher_args", "=", "keywds", ".", "copy", "(", ")", "del", "matcher_args", "[", "'...
[ 391, 4 ]
[ 405, 19 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.__create_matcher
(self, match_class, **keywds)
implementation details
implementation details
def __create_matcher(self, match_class, **keywds): """implementation details""" matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] if 'allow_empty' in matcher_args: del matcher_args['allow_empty'] decl_matcher = decl_match...
[ "def", "__create_matcher", "(", "self", ",", "match_class", ",", "*", "*", "keywds", ")", ":", "matcher_args", "=", "keywds", ".", "copy", "(", ")", "del", "matcher_args", "[", "'function'", "]", "del", "matcher_args", "[", "'recursive'", "]", "if", "'allo...
[ 407, 4 ]
[ 423, 31 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.__findout_range
(self, name, decl_type, recursive)
implementation details
implementation details
def __findout_range(self, name, decl_type, recursive): """implementation details""" if not self._optimized: self._logger.debug( 'running non optimized query - optimization has not been done') decls = self.declarations if recursive: decl...
[ "def", "__findout_range", "(", "self", ",", "name", ",", "decl_type", ",", "recursive", ")", ":", "if", "not", "self", ".", "_optimized", ":", "self", ".", "_logger", ".", "debug", "(", "'running non optimized query - optimization has not been done'", ")", "decls"...
[ 425, 4 ]
[ 472, 52 ]
python
da
['eo', 'da', 'en']
False
scopedef_t._find_single
(self, match_class, **keywds)
implementation details
implementation details
def _find_single(self, match_class, **keywds): """implementation details""" self._logger.debug('find single query execution - started') start_time = time.clock() norm_keywds = self.__normalize_args(**keywds) decl_matcher = self.__create_matcher(match_class, **norm_keywds) ...
[ "def", "_find_single", "(", "self", ",", "match_class", ",", "*", "*", "keywds", ")", ":", "self", ".", "_logger", ".", "debug", "(", "'find single query execution - started'", ")", "start_time", "=", "time", ".", "clock", "(", ")", "norm_keywds", "=", "self...
[ 474, 4 ]
[ 487, 20 ]
python
da
['eo', 'da', 'en']
False
scopedef_t._find_multiple
(self, match_class, **keywds)
implementation details
implementation details
def _find_multiple(self, match_class, **keywds): """implementation details""" self._logger.debug('find all query execution - started') start_time = time.clock() norm_keywds = self.__normalize_args(**keywds) decl_matcher = self.__create_matcher(match_class, **norm_keywds) ...
[ "def", "_find_multiple", "(", "self", ",", "match_class", ",", "*", "*", "keywds", ")", ":", "self", ".", "_logger", ".", "debug", "(", "'find all query execution - started'", ")", "start_time", "=", "time", ".", "clock", "(", ")", "norm_keywds", "=", "self"...
[ 489, 4 ]
[ 508, 21 ]
python
da
['eo', 'da', 'en']
False
scopedef_t.decl
( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None)
returns reference to declaration, that is matched defined criteria
returns reference to declaration, that is matched defined criteria
def decl( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None): """returns reference to declaration, that is matched defined criteria""" return ( self._fi...
[ "def", "decl", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "decl_type", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ":", "return", "(", "self", ".", ...
[ 510, 4 ]
[ 530, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.decls
( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of declarations, that are matched defined criteria
returns a set of declarations, that are matched defined criteria
def decls( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of declarations, that are matched defined criteria""" return (...
[ "def", "decls", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "decl_type", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",", "allow_empty", "=", "None", ")", ...
[ 532, 4 ]
[ 553, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.class_
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None)
returns reference to class declaration, that is matched defined criteria
returns reference to class declaration, that is matched defined criteria
def class_( self, name=None, function=None, header_dir=None, header_file=None, recursive=None): """returns reference to class declaration, that is matched defined criteria""" return ( self._find_single( ...
[ "def", "class_", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ":", "return", "(", "self", ".", "_find_single", "(", "self", "...
[ 555, 4 ]
[ 574, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.classes
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of class declarations, that are matched defined criteria
returns a set of class declarations, that are matched defined criteria
def classes( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of class declarations, that are matched defined criteria""" return ( ...
[ "def", "classes", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",", "allow_empty", "=", "None", ")", ":", "return", "(", "self", "...
[ 576, 4 ]
[ 597, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.variable
( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None)
returns reference to variable declaration, that is matched defined criteria
returns reference to variable declaration, that is matched defined criteria
def variable( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None): """returns reference to variable declaration, that is matched defined criteria""" return ( ...
[ "def", "variable", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "decl_type", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ":", "return", "(", "self", "....
[ 599, 4 ]
[ 620, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.variables
( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of variable declarations, that are matched defined criteria
returns a set of variable declarations, that are matched defined criteria
def variables( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of variable declarations, that are matched defined criter...
[ "def", "variables", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "decl_type", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",", "allow_empty", "=", "None", ")"...
[ 622, 4 ]
[ 645, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.calldef
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
returns reference to "calldef" declaration, that is matched defined criteria
returns reference to "calldef" declaration, that is matched defined criteria
def calldef( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """returns reference to "calldef" declaration, that is matched defined criter...
[ "def", "calldef", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ...
[ 647, 4 ]
[ 670, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.calldefs
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of :class:`calldef_t` declarations, that are matched defined criteria
returns a set of :class:`calldef_t` declarations, that are matched defined criteria
def calldefs( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of :class:`calldef_t` declarations, t...
[ "def", "calldefs", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",",...
[ 672, 4 ]
[ 697, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.operator
( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
returns reference to operator declaration, that is matched defined criteria
returns reference to operator declaration, that is matched defined criteria
def operator( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """returns reference to operator declaration, that is match...
[ "def", "operator", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "symbol", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", ...
[ 699, 4 ]
[ 726, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.operators
( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of operator declarations, that are matched defined criteria
returns a set of operator declarations, that are matched defined criteria
def operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of operator...
[ "def", "operators", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "symbol", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", ...
[ 728, 4 ]
[ 757, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.member_function
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
returns reference to member declaration, that is matched defined criteria
returns reference to member declaration, that is matched defined criteria
def member_function( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """returns reference to member declaration, that is matched defined c...
[ "def", "member_function", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None",...
[ 759, 4 ]
[ 782, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.mem_fun
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
Deprecated method. Use the member_function() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0
Deprecated method. Use the member_function() method instead.
def mem_fun( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """ Deprecated method. Use the member_function() method instead. Dep...
[ "def", "mem_fun", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ...
[ 784, 4 ]
[ 807, 22 ]
python
en
['en', 'error', 'th']
False
scopedef_t.member_functions
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of member function declarations, that are matched defined criteria
returns a set of member function declarations, that are matched defined criteria
def member_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of member function declaratio...
[ "def", "member_functions", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None"...
[ 809, 4 ]
[ 834, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.mem_funs
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
Deprecated method. Use the member_functions() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0
Deprecated method. Use the member_functions() method instead.
def mem_funs( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """ Deprecated method. Use the member_function...
[ "def", "mem_funs", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",",...
[ 836, 4 ]
[ 860, 35 ]
python
en
['en', 'error', 'th']
False
scopedef_t.constructor
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
returns reference to constructor declaration, that is matched defined criteria
returns reference to constructor declaration, that is matched defined criteria
def constructor( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """returns reference to constructor declaration, that is matched defined ...
[ "def", "constructor", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", "...
[ 862, 4 ]
[ 885, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.constructors
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of constructor declarations, that are matched defined criteria
returns a set of constructor declarations, that are matched defined criteria
def constructors( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of constructor declarations, that...
[ "def", "constructors", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ...
[ 887, 4 ]
[ 912, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.member_operator
( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
returns reference to member operator declaration, that is matched defined criteria
returns reference to member operator declaration, that is matched defined criteria
def member_operator( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """returns reference to member operator declaration,...
[ "def", "member_operator", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "symbol", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ...
[ 914, 4 ]
[ 941, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.mem_oper
( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
Deprecated method. Use the member_operator() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0
Deprecated method. Use the member_operator() method instead.
def mem_oper( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """ Deprecated method. Use the member_operator() me...
[ "def", "mem_oper", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "symbol", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", ...
[ 943, 4 ]
[ 967, 35 ]
python
en
['en', 'error', 'th']
False
scopedef_t.member_operators
( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of member operator declarations, that are matched defined criteria
returns a set of member operator declarations, that are matched defined criteria
def member_operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of m...
[ "def", "member_operators", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "symbol", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ...
[ 969, 4 ]
[ 998, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.mem_opers
( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
Deprecated method. Use the member_operators() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0
Deprecated method. Use the member_operators() method instead.
def mem_opers( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """ Deprecated metho...
[ "def", "mem_opers", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "symbol", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", ...
[ 1000, 4 ]
[ 1026, 24 ]
python
en
['en', 'error', 'th']
False
scopedef_t.casting_operator
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None)
returns reference to casting operator declaration, that is matched defined criteria
returns reference to casting operator declaration, that is matched defined criteria
def casting_operator( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None): """returns reference to casting operator declaration, that is matched ...
[ "def", "casting_operator", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None"...
[ 1028, 4 ]
[ 1051, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.casting_operators
( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of casting operator declarations, that are matched defined criteria
returns a set of casting operator declarations, that are matched defined criteria
def casting_operators( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of casting operator declarat...
[ "def", "casting_operators", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "return_type", "=", "None", ",", "arg_types", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None...
[ 1053, 4 ]
[ 1078, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.enumeration
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None)
returns reference to enumeration declaration, that is matched defined criteria
returns reference to enumeration declaration, that is matched defined criteria
def enumeration( self, name=None, function=None, header_dir=None, header_file=None, recursive=None): """returns reference to enumeration declaration, that is matched defined criteria""" return ( self._find_single...
[ "def", "enumeration", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ":", "return", "(", "self", ".", "_find_single", "(", "self"...
[ 1080, 4 ]
[ 1099, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.enum
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None)
Deprecated method. Use the enumeration() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0
Deprecated method. Use the enumeration() method instead.
def enum( self, name=None, function=None, header_dir=None, header_file=None, recursive=None): """ Deprecated method. Use the enumeration() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0 """ ...
[ "def", "enum", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ":", "warnings", ".", "warn", "(", "\"The enum() method is deprecated. ...
[ 1101, 4 ]
[ 1119, 63 ]
python
en
['en', 'error', 'th']
False
scopedef_t.enumerations
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
returns a set of enumeration declarations, that are matched defined criteria
returns a set of enumeration declarations, that are matched defined criteria
def enumerations( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """returns a set of enumeration declarations, that are matched defined criteria""" return ( ...
[ "def", "enumerations", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",", "allow_empty", "=", "None", ")", ":", "return", "(", "self"...
[ 1121, 4 ]
[ 1142, 9 ]
python
en
['en', 'en', 'en']
True
scopedef_t.enums
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None)
Deprecated method. Use the enumerations() method instead. Deprecated since v1.9.0. Will be removed in v2.0.0
Deprecated method. Use the enumerations() method instead.
def enums( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None): """ Deprecated method. Use the enumerations() method instead. Deprecated since v1.9.0. Will be rem...
[ "def", "enums", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ",", "allow_empty", "=", "None", ")", ":", "warnings", ".", "warn", "...
[ 1144, 4 ]
[ 1163, 76 ]
python
en
['en', 'error', 'th']
False
scopedef_t.typedef
( self, name=None, function=None, header_dir=None, header_file=None, recursive=None)
returns reference to typedef declaration, that is matched defined criteria
returns reference to typedef declaration, that is matched defined criteria
def typedef( self, name=None, function=None, header_dir=None, header_file=None, recursive=None): """returns reference to typedef declaration, that is matched defined criteria""" return ( self._find_single( ...
[ "def", "typedef", "(", "self", ",", "name", "=", "None", ",", "function", "=", "None", ",", "header_dir", "=", "None", ",", "header_file", "=", "None", ",", "recursive", "=", "None", ")", ":", "return", "(", "self", ".", "_find_single", "(", "self", ...
[ 1165, 4 ]
[ 1184, 9 ]
python
en
['en', 'en', 'en']
True