partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
parse_comment_node
Resign Threshold: -0.88 -0.0662 D4 (100) ==> D16 (14) ==> Q16 (3) ==> Q4 (1) ==> Q: -0.07149 move: action Q U P P-Dir N soft-N p-delta p-rel D4 : -0.028, -0.048, 0.020, 0.048, 0.064, 100 0.1096 0.06127 1.27 D16 : -0.024, -0.043, 0.019, 0.044, 0.059, 96 0.1053 0.06135 1.40
reinforcement/tensorflow/minigo/oneoffs/prepare_bigquery.py
def parse_comment_node(comment): # Example of a comment node. The resign threshold line appears only # for the first move in the game; it gets preprocessed by extract_game_data """ Resign Threshold: -0.88 -0.0662 D4 (100) ==> D16 (14) ==> Q16 (3) ==> Q4 (1) ==> Q: -0.07149 move: action Q U P...
def parse_comment_node(comment): # Example of a comment node. The resign threshold line appears only # for the first move in the game; it gets preprocessed by extract_game_data """ Resign Threshold: -0.88 -0.0662 D4 (100) ==> D16 (14) ==> Q16 (3) ==> Q4 (1) ==> Q: -0.07149 move: action Q U P...
[ "Resign", "Threshold", ":", "-", "0", ".", "88", "-", "0", ".", "0662", "D4", "(", "100", ")", "==", ">", "D16", "(", "14", ")", "==", ">", "Q16", "(", "3", ")", "==", ">", "Q4", "(", "1", ")", "==", ">", "Q", ":", "-", "0", ".", "07149...
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/reinforcement/tensorflow/minigo/oneoffs/prepare_bigquery.py#L192-L221
[ "def", "parse_comment_node", "(", "comment", ")", ":", "# Example of a comment node. The resign threshold line appears only", "# for the first move in the game; it gets preprocessed by extract_game_data", "lines", "=", "comment", ".", "split", "(", "'\\n'", ")", "if", "lines", "[...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
FastRCNNLossComputation.subsample
This method performs the positive/negative sampling, and return the sampled proposals. Note: this function keeps a state. Arguments: proposals (list[BoxList]) targets (list[BoxList])
object_detection/pytorch/maskrcnn_benchmark/modeling/roi_heads/box_head/loss.py
def subsample(self, proposals, targets): """ This method performs the positive/negative sampling, and return the sampled proposals. Note: this function keeps a state. Arguments: proposals (list[BoxList]) targets (list[BoxList]) """ labels...
def subsample(self, proposals, targets): """ This method performs the positive/negative sampling, and return the sampled proposals. Note: this function keeps a state. Arguments: proposals (list[BoxList]) targets (list[BoxList]) """ labels...
[ "This", "method", "performs", "the", "positive", "/", "negative", "sampling", "and", "return", "the", "sampled", "proposals", ".", "Note", ":", "this", "function", "keeps", "a", "state", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/object_detection/pytorch/maskrcnn_benchmark/modeling/roi_heads/box_head/loss.py#L82-L116
[ "def", "subsample", "(", "self", ",", "proposals", ",", "targets", ")", ":", "labels", ",", "regression_targets", "=", "self", ".", "prepare_targets", "(", "proposals", ",", "targets", ")", "sampled_pos_inds", ",", "sampled_neg_inds", "=", "self", ".", "fg_bg_...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
ResidualRecurrentEncoder.forward
Execute the encoder. :param inputs: tensor with indices from the vocabulary :param lengths: vector with sequence lengths (excluding padding) returns: tensor with encoded sequences
rnn_translator/pytorch/seq2seq/models/encoder.py
def forward(self, inputs, lengths): """ Execute the encoder. :param inputs: tensor with indices from the vocabulary :param lengths: vector with sequence lengths (excluding padding) returns: tensor with encoded sequences """ x = self.embedder(inputs) # b...
def forward(self, inputs, lengths): """ Execute the encoder. :param inputs: tensor with indices from the vocabulary :param lengths: vector with sequence lengths (excluding padding) returns: tensor with encoded sequences """ x = self.embedder(inputs) # b...
[ "Execute", "the", "encoder", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/rnn_translator/pytorch/seq2seq/models/encoder.py#L65-L95
[ "def", "forward", "(", "self", ",", "inputs", ",", "lengths", ")", ":", "x", "=", "self", ".", "embedder", "(", "inputs", ")", "# bidirectional layer", "x", "=", "self", ".", "dropout", "(", "x", ")", "x", "=", "pack_padded_sequence", "(", "x", ",", ...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
checked_run
Run the given subprocess command in a coroutine. Args: *cmd: the command to run and its arguments. Returns: The output that the command wrote to stdout. Raises: RuntimeError: if the command returns a non-zero result.
reinforcement/tensorflow/minigo/ml_perf/utils.py
async def checked_run(*cmd): """Run the given subprocess command in a coroutine. Args: *cmd: the command to run and its arguments. Returns: The output that the command wrote to stdout. Raises: RuntimeError: if the command returns a non-zero result. """ # Start the subprocess. logging.info(...
async def checked_run(*cmd): """Run the given subprocess command in a coroutine. Args: *cmd: the command to run and its arguments. Returns: The output that the command wrote to stdout. Raises: RuntimeError: if the command returns a non-zero result. """ # Start the subprocess. logging.info(...
[ "Run", "the", "given", "subprocess", "command", "in", "a", "coroutine", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/reinforcement/tensorflow/minigo/ml_perf/utils.py#L40-L74
[ "async", "def", "checked_run", "(", "*", "cmd", ")", ":", "# Start the subprocess.", "logging", ".", "info", "(", "'Running: %s'", ",", "expand_cmd_str", "(", "cmd", ")", ")", "with", "logged_timer", "(", "'{} finished'", ".", "format", "(", "get_cmd_name", "(...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
wait
Waits for all of the awaitable objects (e.g. coroutines) in aws to finish. All the awaitable objects are waited for, even if one of them raises an exception. When one or more awaitable raises an exception, the exception from the awaitable with the lowest index in the aws list will be reraised. Args: aws: ...
reinforcement/tensorflow/minigo/ml_perf/utils.py
def wait(aws): """Waits for all of the awaitable objects (e.g. coroutines) in aws to finish. All the awaitable objects are waited for, even if one of them raises an exception. When one or more awaitable raises an exception, the exception from the awaitable with the lowest index in the aws list will be reraised...
def wait(aws): """Waits for all of the awaitable objects (e.g. coroutines) in aws to finish. All the awaitable objects are waited for, even if one of them raises an exception. When one or more awaitable raises an exception, the exception from the awaitable with the lowest index in the aws list will be reraised...
[ "Waits", "for", "all", "of", "the", "awaitable", "objects", "(", "e", ".", "g", ".", "coroutines", ")", "in", "aws", "to", "finish", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/reinforcement/tensorflow/minigo/ml_perf/utils.py#L77-L103
[ "def", "wait", "(", "aws", ")", ":", "aws_list", "=", "aws", "if", "isinstance", "(", "aws", ",", "list", ")", "else", "[", "aws", "]", "results", "=", "asyncio", ".", "get_event_loop", "(", ")", ".", "run_until_complete", "(", "asyncio", ".", "gather"...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
get_subdirs
Return a list of (name, path) tuples of direct subdirectories of parent_path, where each tuple corresponds to one subdirectory. Files in the parent_path are excluded from the output.
compliance/verify_submission/mlperf_submission_helper/utils.py
def get_subdirs(parent_path): """Return a list of (name, path) tuples of direct subdirectories of parent_path, where each tuple corresponds to one subdirectory. Files in the parent_path are excluded from the output. """ entries = os.listdir(parent_path) subdirs = [(entry, os.path.join(parent_path, en...
def get_subdirs(parent_path): """Return a list of (name, path) tuples of direct subdirectories of parent_path, where each tuple corresponds to one subdirectory. Files in the parent_path are excluded from the output. """ entries = os.listdir(parent_path) subdirs = [(entry, os.path.join(parent_path, en...
[ "Return", "a", "list", "of", "(", "name", "path", ")", "tuples", "of", "direct", "subdirectories", "of" ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/compliance/verify_submission/mlperf_submission_helper/utils.py#L4-L14
[ "def", "get_subdirs", "(", "parent_path", ")", ":", "entries", "=", "os", ".", "listdir", "(", "parent_path", ")", "subdirs", "=", "[", "(", "entry", ",", "os", ".", "path", ".", "join", "(", "parent_path", ",", "entry", ")", ")", "for", "entry", "in...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
Pooler.forward
Arguments: x (list[Tensor]): feature maps for each level boxes (list[BoxList]): boxes to be used to perform the pooling operation. Returns: result (Tensor)
object_detection/pytorch/maskrcnn_benchmark/modeling/poolers.py
def forward(self, x, boxes): """ Arguments: x (list[Tensor]): feature maps for each level boxes (list[BoxList]): boxes to be used to perform the pooling operation. Returns: result (Tensor) """ num_levels = len(self.poolers) rois = self....
def forward(self, x, boxes): """ Arguments: x (list[Tensor]): feature maps for each level boxes (list[BoxList]): boxes to be used to perform the pooling operation. Returns: result (Tensor) """ num_levels = len(self.poolers) rois = self....
[ "Arguments", ":", "x", "(", "list", "[", "Tensor", "]", ")", ":", "feature", "maps", "for", "each", "level", "boxes", "(", "list", "[", "BoxList", "]", ")", ":", "boxes", "to", "be", "used", "to", "perform", "the", "pooling", "operation", ".", "Retur...
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/object_detection/pytorch/maskrcnn_benchmark/modeling/poolers.py#L91-L121
[ "def", "forward", "(", "self", ",", "x", ",", "boxes", ")", ":", "num_levels", "=", "len", "(", "self", ".", "poolers", ")", "rois", "=", "self", ".", "convert_to_roi_format", "(", "boxes", ")", "if", "num_levels", "==", "1", ":", "return", "self", "...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
augment_audio_with_sox
Changes tempo and gain of the recording with sox and loads it.
speech_recognition/data/data_loader.py
def augment_audio_with_sox(path, sample_rate, tempo, gain): """ Changes tempo and gain of the recording with sox and loads it. """ with NamedTemporaryFile(suffix=".wav") as augmented_file: augmented_filename = augmented_file.name sox_augment_params = ["tempo", "{:.3f}".format(tempo), "ga...
def augment_audio_with_sox(path, sample_rate, tempo, gain): """ Changes tempo and gain of the recording with sox and loads it. """ with NamedTemporaryFile(suffix=".wav") as augmented_file: augmented_filename = augmented_file.name sox_augment_params = ["tempo", "{:.3f}".format(tempo), "ga...
[ "Changes", "tempo", "and", "gain", "of", "the", "recording", "with", "sox", "and", "loads", "it", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/speech_recognition/data/data_loader.py#L307-L319
[ "def", "augment_audio_with_sox", "(", "path", ",", "sample_rate", ",", "tempo", ",", "gain", ")", ":", "with", "NamedTemporaryFile", "(", "suffix", "=", "\".wav\"", ")", "as", "augmented_file", ":", "augmented_filename", "=", "augmented_file", ".", "name", "sox_...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
load_randomly_augmented_audio
Picks tempo and gain uniformly, applies it to the utterance by using sox utility. Returns the augmented utterance.
speech_recognition/data/data_loader.py
def load_randomly_augmented_audio(path, sample_rate=16000, tempo_range=(0.85, 1.15), gain_range=(-6, 8)): """ Picks tempo and gain uniformly, applies it to the utterance by using sox utility. Returns the augmented utterance. """ low_tempo, high_tempo = tempo_range ...
def load_randomly_augmented_audio(path, sample_rate=16000, tempo_range=(0.85, 1.15), gain_range=(-6, 8)): """ Picks tempo and gain uniformly, applies it to the utterance by using sox utility. Returns the augmented utterance. """ low_tempo, high_tempo = tempo_range ...
[ "Picks", "tempo", "and", "gain", "uniformly", "applies", "it", "to", "the", "utterance", "by", "using", "sox", "utility", ".", "Returns", "the", "augmented", "utterance", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/speech_recognition/data/data_loader.py#L322-L334
[ "def", "load_randomly_augmented_audio", "(", "path", ",", "sample_rate", "=", "16000", ",", "tempo_range", "=", "(", "0.85", ",", "1.15", ")", ",", "gain_range", "=", "(", "-", "6", ",", "8", ")", ")", ":", "low_tempo", ",", "high_tempo", "=", "tempo_ran...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
model_fn
Defines how to train, evaluate and predict from the transformer model.
translation/tensorflow/transformer/transformer_main.py
def model_fn(features, labels, mode, params): """Defines how to train, evaluate and predict from the transformer model.""" with tf.variable_scope("model"): inputs, targets = features, labels # Create model and get output logits. model = transformer.Transformer(params, mode == tf.estimator.ModeKeys.TRAI...
def model_fn(features, labels, mode, params): """Defines how to train, evaluate and predict from the transformer model.""" with tf.variable_scope("model"): inputs, targets = features, labels # Create model and get output logits. model = transformer.Transformer(params, mode == tf.estimator.ModeKeys.TRAI...
[ "Defines", "how", "to", "train", "evaluate", "and", "predict", "from", "the", "transformer", "model", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/translation/tensorflow/transformer/transformer_main.py#L49-L79
[ "def", "model_fn", "(", "features", ",", "labels", ",", "mode", ",", "params", ")", ":", "with", "tf", ".", "variable_scope", "(", "\"model\"", ")", ":", "inputs", ",", "targets", "=", "features", ",", "labels", "# Create model and get output logits.", "model"...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
get_learning_rate
Calculate learning rate with linear warmup and rsqrt decay.
translation/tensorflow/transformer/transformer_main.py
def get_learning_rate(learning_rate, hidden_size, learning_rate_warmup_steps): """Calculate learning rate with linear warmup and rsqrt decay.""" with tf.name_scope("learning_rate"): warmup_steps = tf.to_float(learning_rate_warmup_steps) step = tf.to_float(tf.train.get_or_create_global_step()) learning_...
def get_learning_rate(learning_rate, hidden_size, learning_rate_warmup_steps): """Calculate learning rate with linear warmup and rsqrt decay.""" with tf.name_scope("learning_rate"): warmup_steps = tf.to_float(learning_rate_warmup_steps) step = tf.to_float(tf.train.get_or_create_global_step()) learning_...
[ "Calculate", "learning", "rate", "with", "linear", "warmup", "and", "rsqrt", "decay", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/translation/tensorflow/transformer/transformer_main.py#L82-L97
[ "def", "get_learning_rate", "(", "learning_rate", ",", "hidden_size", ",", "learning_rate_warmup_steps", ")", ":", "with", "tf", ".", "name_scope", "(", "\"learning_rate\"", ")", ":", "warmup_steps", "=", "tf", ".", "to_float", "(", "learning_rate_warmup_steps", ")"...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
get_train_op
Generate training operation that updates variables based on loss.
translation/tensorflow/transformer/transformer_main.py
def get_train_op(loss, params): """Generate training operation that updates variables based on loss.""" with tf.variable_scope("get_train_op"): mlperf_log.transformer_print( key=mlperf_log.OPT_LR_WARMUP_STEPS, value=params.learning_rate_warmup_steps) learning_rate = get_learning_rate( ...
def get_train_op(loss, params): """Generate training operation that updates variables based on loss.""" with tf.variable_scope("get_train_op"): mlperf_log.transformer_print( key=mlperf_log.OPT_LR_WARMUP_STEPS, value=params.learning_rate_warmup_steps) learning_rate = get_learning_rate( ...
[ "Generate", "training", "operation", "that", "updates", "variables", "based", "on", "loss", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/translation/tensorflow/transformer/transformer_main.py#L100-L141
[ "def", "get_train_op", "(", "loss", ",", "params", ")", ":", "with", "tf", ".", "variable_scope", "(", "\"get_train_op\"", ")", ":", "mlperf_log", ".", "transformer_print", "(", "key", "=", "mlperf_log", ".", "OPT_LR_WARMUP_STEPS", ",", "value", "=", "params",...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
translate_and_compute_bleu
Translate file and report the cased and uncased bleu scores.
translation/tensorflow/transformer/transformer_main.py
def translate_and_compute_bleu(estimator, subtokenizer, bleu_source, bleu_ref): """Translate file and report the cased and uncased bleu scores.""" # Create temporary file to store translation. tmp = tempfile.NamedTemporaryFile(delete=False) tmp_filename = tmp.name translate.translate_file( estimator, s...
def translate_and_compute_bleu(estimator, subtokenizer, bleu_source, bleu_ref): """Translate file and report the cased and uncased bleu scores.""" # Create temporary file to store translation. tmp = tempfile.NamedTemporaryFile(delete=False) tmp_filename = tmp.name translate.translate_file( estimator, s...
[ "Translate", "file", "and", "report", "the", "cased", "and", "uncased", "bleu", "scores", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/translation/tensorflow/transformer/transformer_main.py#L144-L158
[ "def", "translate_and_compute_bleu", "(", "estimator", ",", "subtokenizer", ",", "bleu_source", ",", "bleu_ref", ")", ":", "# Create temporary file to store translation.", "tmp", "=", "tempfile", ".", "NamedTemporaryFile", "(", "delete", "=", "False", ")", "tmp_filename...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
evaluate_and_log_bleu
Calculate and record the BLEU score.
translation/tensorflow/transformer/transformer_main.py
def evaluate_and_log_bleu(estimator, bleu_writer, bleu_source, bleu_ref): """Calculate and record the BLEU score.""" subtokenizer = tokenizer.Subtokenizer( os.path.join(FLAGS.data_dir, FLAGS.vocab_file)) uncased_score, cased_score = translate_and_compute_bleu( estimator, subtokenizer, bleu_source, bl...
def evaluate_and_log_bleu(estimator, bleu_writer, bleu_source, bleu_ref): """Calculate and record the BLEU score.""" subtokenizer = tokenizer.Subtokenizer( os.path.join(FLAGS.data_dir, FLAGS.vocab_file)) uncased_score, cased_score = translate_and_compute_bleu( estimator, subtokenizer, bleu_source, bl...
[ "Calculate", "and", "record", "the", "BLEU", "score", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/translation/tensorflow/transformer/transformer_main.py#L166-L184
[ "def", "evaluate_and_log_bleu", "(", "estimator", ",", "bleu_writer", ",", "bleu_source", ",", "bleu_ref", ")", ":", "subtokenizer", "=", "tokenizer", ".", "Subtokenizer", "(", "os", ".", "path", ".", "join", "(", "FLAGS", ".", "data_dir", ",", "FLAGS", ".",...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
train_schedule
Train and evaluate model, and optionally compute model's BLEU score. **Step vs. Epoch vs. Iteration** Steps and epochs are canonical terms used in TensorFlow and general machine learning. They are used to describe running a single process (train/eval): - Step refers to running the process through a single o...
translation/tensorflow/transformer/transformer_main.py
def train_schedule( estimator, train_eval_iterations, single_iteration_train_steps=None, single_iteration_train_epochs=None, bleu_source=None, bleu_ref=None, bleu_threshold=None): """Train and evaluate model, and optionally compute model's BLEU score. **Step vs. Epoch vs. Iteration** Steps and epoch...
def train_schedule( estimator, train_eval_iterations, single_iteration_train_steps=None, single_iteration_train_epochs=None, bleu_source=None, bleu_ref=None, bleu_threshold=None): """Train and evaluate model, and optionally compute model's BLEU score. **Step vs. Epoch vs. Iteration** Steps and epoch...
[ "Train", "and", "evaluate", "model", "and", "optionally", "compute", "model", "s", "BLEU", "score", "." ]
mlperf/training
python
https://github.com/mlperf/training/blob/1c6ae725a81d15437a2b2df05cac0673fde5c3a4/translation/tensorflow/transformer/transformer_main.py#L187-L289
[ "def", "train_schedule", "(", "estimator", ",", "train_eval_iterations", ",", "single_iteration_train_steps", "=", "None", ",", "single_iteration_train_epochs", "=", "None", ",", "bleu_source", "=", "None", ",", "bleu_ref", "=", "None", ",", "bleu_threshold", "=", "...
1c6ae725a81d15437a2b2df05cac0673fde5c3a4
train
Team.add_membership
:calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_ :param member: :class:`github.Nameduser.NamedUser` :param role: string :rtype: None
github/Team.py
def add_membership(self, member, role=github.GithubObject.NotSet): """ :calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_ :param member: :class:`github.Nameduser.NamedUser` :param role: string :rtype: None """ assert isinstance...
def add_membership(self, member, role=github.GithubObject.NotSet): """ :calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_ :param member: :class:`github.Nameduser.NamedUser` :param role: string :rtype: None """ assert isinstance...
[ ":", "calls", ":", "PUT", "/", "teams", "/", ":", "id", "/", "memberships", "/", ":", "user", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "member", ":", ":", "class", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L171-L194
[ "def", "add_membership", "(", "self", ",", "member", ",", "role", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "(", "member", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", ",", "member", "assert", "role", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.add_to_repos
:calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :rtype: None
github/Team.py
def add_to_repos(self, repo): """ :calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :rtype: None """ assert isinstance(repo, github.Repository.Repository), repo headers, data =...
def add_to_repos(self, repo): """ :calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :rtype: None """ assert isinstance(repo, github.Repository.Repository), repo headers, data =...
[ ":", "calls", ":", "PUT", "/", "teams", "/", ":", "id", "/", "repos", "/", ":", "org", "/", ":", "repo", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "repo", ":", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L196-L206
[ "def", "add_to_repos", "(", "self", ",", "repo", ")", ":", "assert", "isinstance", "(", "repo", ",", "github", ".", "Repository", ".", "Repository", ")", ",", "repo", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.set_repo_permission
:calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :param permission: string :rtype: None
github/Team.py
def set_repo_permission(self, repo, permission): """ :calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :param permission: string :rtype: None """ assert isinstance(repo, github...
def set_repo_permission(self, repo, permission): """ :calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :param permission: string :rtype: None """ assert isinstance(repo, github...
[ ":", "calls", ":", "PUT", "/", "teams", "/", ":", "id", "/", "repos", "/", ":", "org", "/", ":", "repo", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "repo", ":", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L208-L223
[ "def", "set_repo_permission", "(", "self", ",", "repo", ",", "permission", ")", ":", "assert", "isinstance", "(", "repo", ",", "github", ".", "Repository", ".", "Repository", ")", ",", "repo", "put_parameters", "=", "{", "\"permission\"", ":", "permission", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.edit
:calls: `PATCH /teams/:id <http://developer.github.com/v3/orgs/teams>`_ :param name: string :param description: string :param permission: string :param privacy: string :rtype: None
github/Team.py
def edit(self, name, description=github.GithubObject.NotSet, permission=github.GithubObject.NotSet, privacy=github.GithubObject.NotSet): """ :calls: `PATCH /teams/:id <http://developer.github.com/v3/orgs/teams>`_ :param name: string :param description: string :param permission: s...
def edit(self, name, description=github.GithubObject.NotSet, permission=github.GithubObject.NotSet, privacy=github.GithubObject.NotSet): """ :calls: `PATCH /teams/:id <http://developer.github.com/v3/orgs/teams>`_ :param name: string :param description: string :param permission: s...
[ ":", "calls", ":", "PATCH", "/", "teams", "/", ":", "id", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "name", ":", "string", ":", "param", "description", ":", "string", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L235-L262
[ "def", "edit", "(", "self", ",", "name", ",", "description", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "permission", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "privacy", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.get_members
:calls: `GET /teams/:id/members <https://developer.github.com/v3/teams/members/#list-team-members>`_ :param role: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
github/Team.py
def get_members(self, role=github.GithubObject.NotSet): """ :calls: `GET /teams/:id/members <https://developer.github.com/v3/teams/members/#list-team-members>`_ :param role: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ ...
def get_members(self, role=github.GithubObject.NotSet): """ :calls: `GET /teams/:id/members <https://developer.github.com/v3/teams/members/#list-team-members>`_ :param role: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ ...
[ ":", "calls", ":", "GET", "/", "teams", "/", ":", "id", "/", "members", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "teams", "/", "members", "/", "#list", "-", "team", "-", "members", ">", "_", ":", "param", "role...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L264-L280
[ "def", "get_members", "(", "self", ",", "role", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "role", "is", "github", ".", "GithubObject", ".", "NotSet", "or", "isinstance", "(", "role", ",", "(", "str", ",", "unicode", ")", ")...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.get_repos
:calls: `GET /teams/:id/repos <http://developer.github.com/v3/orgs/teams>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
github/Team.py
def get_repos(self): """ :calls: `GET /teams/:id/repos <http://developer.github.com/v3/orgs/teams>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository` """ return github.PaginatedList.PaginatedList( github.Repository.Repositor...
def get_repos(self): """ :calls: `GET /teams/:id/repos <http://developer.github.com/v3/orgs/teams>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository` """ return github.PaginatedList.PaginatedList( github.Repository.Repositor...
[ ":", "calls", ":", "GET", "/", "teams", "/", ":", "id", "/", "repos", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "rtype", ":", ":", "class", ":", "github", ".", "PaginatedList"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L282-L292
[ "def", "get_repos", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Repository", ".", "Repository", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/repos\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.has_in_members
:calls: `GET /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_ :param member: :class:`github.NamedUser.NamedUser` :rtype: bool
github/Team.py
def has_in_members(self, member): """ :calls: `GET /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_ :param member: :class:`github.NamedUser.NamedUser` :rtype: bool """ assert isinstance(member, github.NamedUser.NamedUser), member status, head...
def has_in_members(self, member): """ :calls: `GET /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_ :param member: :class:`github.NamedUser.NamedUser` :rtype: bool """ assert isinstance(member, github.NamedUser.NamedUser), member status, head...
[ ":", "calls", ":", "GET", "/", "teams", "/", ":", "id", "/", "members", "/", ":", "user", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "member", ":", ":", "class", ":"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L294-L305
[ "def", "has_in_members", "(", "self", ",", "member", ")", ":", "assert", "isinstance", "(", "member", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", ",", "member", "status", ",", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Team.has_in_repos
:calls: `GET /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :rtype: bool
github/Team.py
def has_in_repos(self, repo): """ :calls: `GET /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :rtype: bool """ assert isinstance(repo, github.Repository.Repository), repo status, heade...
def has_in_repos(self, repo): """ :calls: `GET /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_ :param repo: :class:`github.Repository.Repository` :rtype: bool """ assert isinstance(repo, github.Repository.Repository), repo status, heade...
[ ":", "calls", ":", "GET", "/", "teams", "/", ":", "id", "/", "repos", "/", ":", "owner", "/", ":", "repo", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "repo", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Team.py#L307-L318
[ "def", "has_in_repos", "(", "self", ",", "repo", ")", ":", "assert", "isinstance", "(", "repo", ",", "github", ".", "Repository", ".", "Repository", ")", ",", "repo", "status", ",", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJso...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Requester.NEW_DEBUG_FRAME
Initialize a debug frame with requestHeader Frame count is updated and will be attached to respond header The structure of a frame: [requestHeader, statusCode, responseHeader, raw_data] Some of them may be None
github/Requester.py
def NEW_DEBUG_FRAME(self, requestHeader): """ Initialize a debug frame with requestHeader Frame count is updated and will be attached to respond header The structure of a frame: [requestHeader, statusCode, responseHeader, raw_data] Some of them may be None """ if ...
def NEW_DEBUG_FRAME(self, requestHeader): """ Initialize a debug frame with requestHeader Frame count is updated and will be attached to respond header The structure of a frame: [requestHeader, statusCode, responseHeader, raw_data] Some of them may be None """ if ...
[ "Initialize", "a", "debug", "frame", "with", "requestHeader", "Frame", "count", "is", "updated", "and", "will", "be", "attached", "to", "respond", "header", "The", "structure", "of", "a", "frame", ":", "[", "requestHeader", "statusCode", "responseHeader", "raw_d...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Requester.py#L188-L202
[ "def", "NEW_DEBUG_FRAME", "(", "self", ",", "requestHeader", ")", ":", "if", "self", ".", "DEBUG_FLAG", ":", "# pragma no branch (Flag always set in tests)", "new_frame", "=", "[", "requestHeader", ",", "None", ",", "None", ",", "None", "]", "if", "self", ".", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Requester.DEBUG_ON_RESPONSE
Update current frame with response Current frame index will be attached to responseHeader
github/Requester.py
def DEBUG_ON_RESPONSE(self, statusCode, responseHeader, data): ''' Update current frame with response Current frame index will be attached to responseHeader ''' if self.DEBUG_FLAG: # pragma no branch (Flag always set in tests) self._frameBuffer[self._frameCount][1:4]...
def DEBUG_ON_RESPONSE(self, statusCode, responseHeader, data): ''' Update current frame with response Current frame index will be attached to responseHeader ''' if self.DEBUG_FLAG: # pragma no branch (Flag always set in tests) self._frameBuffer[self._frameCount][1:4]...
[ "Update", "current", "frame", "with", "response", "Current", "frame", "index", "will", "be", "attached", "to", "responseHeader" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Requester.py#L204-L211
[ "def", "DEBUG_ON_RESPONSE", "(", "self", ",", "statusCode", ",", "responseHeader", ",", "data", ")", ":", "if", "self", ".", "DEBUG_FLAG", ":", "# pragma no branch (Flag always set in tests)", "self", ".", "_frameBuffer", "[", "self", ".", "_frameCount", "]", "[",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.as_issue
:calls: `GET /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_ :rtype: :class:`github.Issue.Issue`
github/PullRequest.py
def as_issue(self): """ :calls: `GET /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_ :rtype: :class:`github.Issue.Issue` """ headers, data = self._requester.requestJsonAndCheck( "GET", self.issue_url ) return gi...
def as_issue(self): """ :calls: `GET /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_ :rtype: :class:`github.Issue.Issue` """ headers, data = self._requester.requestJsonAndCheck( "GET", self.issue_url ) return gi...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", ">", "_", ":", "rtype", ":", ":", "class", ":"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L356-L365
[ "def", "as_issue", "(", "self", ")", ":", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",", "self", ".", "issue_url", ")", "return", "github", ".", "Issue", ".", "Issue", "(", "self", ".", "_requeste...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.create_comment
:calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param body: string :param commit_id: :class:`github.Commit.Commit` :param path: string :param position: integer :rtype: :class:`github.PullRequestComment.PullRequestComment...
github/PullRequest.py
def create_comment(self, body, commit_id, path, position): """ :calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param body: string :param commit_id: :class:`github.Commit.Commit` :param path: string :param positio...
def create_comment(self, body, commit_id, path, position): """ :calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param body: string :param commit_id: :class:`github.Commit.Commit` :param path: string :param positio...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "comments", ">", "_", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L367-L376
[ "def", "create_comment", "(", "self", ",", "body", ",", "commit_id", ",", "path", ",", "position", ")", ":", "return", "self", ".", "create_review_comment", "(", "body", ",", "commit_id", ",", "path", ",", "position", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.create_review_comment
:calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param body: string :param commit_id: :class:`github.Commit.Commit` :param path: string :param position: integer :rtype: :class:`github.PullRequestComment.PullRequestComment...
github/PullRequest.py
def create_review_comment(self, body, commit_id, path, position): """ :calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param body: string :param commit_id: :class:`github.Commit.Commit` :param path: string :param ...
def create_review_comment(self, body, commit_id, path, position): """ :calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param body: string :param commit_id: :class:`github.Commit.Commit` :param path: string :param ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "comments", ">", "_", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L378-L402
[ "def", "create_review_comment", "(", "self", ",", "body", ",", "commit_id", ",", "path", ",", "position", ")", ":", "assert", "isinstance", "(", "body", ",", "(", "str", ",", "unicode", ")", ")", ",", "body", "assert", "isinstance", "(", "commit_id", ","...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.create_issue_comment
:calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param body: string :rtype: :class:`github.IssueComment.IssueComment`
github/PullRequest.py
def create_issue_comment(self, body): """ :calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param body: string :rtype: :class:`github.IssueComment.IssueComment` """ assert isinstance(body, (str, unicode)), body ...
def create_issue_comment(self, body): """ :calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param body: string :rtype: :class:`github.IssueComment.IssueComment` """ assert isinstance(body, (str, unicode)), body ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "comments", ">", "_", ":"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L404-L419
[ "def", "create_issue_comment", "(", "self", ",", "body", ")", ":", "assert", "isinstance", "(", "body", ",", "(", "str", ",", "unicode", ")", ")", ",", "body", "post_parameters", "=", "{", "\"body\"", ":", "body", ",", "}", "headers", ",", "data", "=",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.create_review
:calls: `POST /repos/:owner/:repo/pulls/:number/reviews <https://developer.github.com/v3/pulls/reviews/>`_ :param commit: github.Commit.Commit :param body: string :param event: string :param comments: list :rtype: :class:`github.PullRequestReview.PullRequestReview`
github/PullRequest.py
def create_review(self, commit=github.GithubObject.NotSet, body=None, event=github.GithubObject.NotSet, comments=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/pulls/:number/reviews <https://developer.github.com/v3/pulls/reviews/>`_ :param commit: github.Commit.Commit ...
def create_review(self, commit=github.GithubObject.NotSet, body=None, event=github.GithubObject.NotSet, comments=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/pulls/:number/reviews <https://developer.github.com/v3/pulls/reviews/>`_ :param commit: github.Commit.Commit ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "reviews", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "reviews", "/", ">", "_", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L421-L449
[ "def", "create_review", "(", "self", ",", "commit", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "body", "=", "None", ",", "event", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "comments", "=", "github", ".", "GithubObject", ".", "N...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.delete_review_request
:calls: `DELETE /repos/:owner/:repo/pulls/:number/requested_reviewers <https://developer.github.com/v3/pulls/review_requests/>`_ :param reviewers: list of strings :param team_reviewers: list of strings :rtype: None
github/PullRequest.py
def delete_review_request(self, reviewers=github.GithubObject.NotSet, team_reviewers=github.GithubObject.NotSet): """ :calls: `DELETE /repos/:owner/:repo/pulls/:number/requested_reviewers <https://developer.github.com/v3/pulls/review_requests/>`_ :param reviewers: list of strings :param ...
def delete_review_request(self, reviewers=github.GithubObject.NotSet, team_reviewers=github.GithubObject.NotSet): """ :calls: `DELETE /repos/:owner/:repo/pulls/:number/requested_reviewers <https://developer.github.com/v3/pulls/review_requests/>`_ :param reviewers: list of strings :param ...
[ ":", "calls", ":", "DELETE", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "requested_reviewers", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "review_requests", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L471-L489
[ "def", "delete_review_request", "(", "self", ",", "reviewers", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "team_reviewers", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "post_parameters", "=", "dict", "(", ")", "if", "reviewers", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.edit
:calls: `PATCH /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_ :param title: string :param body: string :param state: string :param base: string :rtype: None
github/PullRequest.py
def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, state=github.GithubObject.NotSet, base=github.GithubObject.NotSet): """ :calls: `PATCH /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_ :param title: string :param body: string ...
def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, state=github.GithubObject.NotSet, base=github.GithubObject.NotSet): """ :calls: `PATCH /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_ :param title: string :param body: string ...
[ ":", "calls", ":", "PATCH", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ">", "_", ":", "param", "title", ":", "string", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L491-L518
[ "def", "edit", "(", "self", ",", "title", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "body", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "state", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "base", "=", "github", "....
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_review_comment
:calls: `GET /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_ :param id: integer :rtype: :class:`github.PullRequestComment.PullRequestComment`
github/PullRequest.py
def get_review_comment(self, id): """ :calls: `GET /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_ :param id: integer :rtype: :class:`github.PullRequestComment.PullRequestComment` """ assert isinstance(id, (int, long)), id ...
def get_review_comment(self, id): """ :calls: `GET /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_ :param id: integer :rtype: :class:`github.PullRequestComment.PullRequestComment` """ assert isinstance(id, (int, long)), id ...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", "comments", "/", ":", "number", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "comments", ">", "_", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L528-L539
[ "def", "get_review_comment", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ","...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_review_comments
:calls: `GET /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
github/PullRequest.py
def get_review_comments(self, since=github.GithubObject.NotSet): """ :calls: `GET /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ :rtype: :class:`github.PaginatedList.PaginatedList` o...
def get_review_comments(self, since=github.GithubObject.NotSet): """ :calls: `GET /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_ :param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ :rtype: :class:`github.PaginatedList.PaginatedList` o...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "comments", ">", "_", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L550-L565
[ "def", "get_review_comments", "(", "self", ",", "since", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "since", "is", "github", ".", "GithubObject", ".", "NotSet", "or", "isinstance", "(", "since", ",", "datetime", ".", "datetime", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_single_review_comments
:calls: `GET /repos/:owner/:repo/pulls/:number/review/:id/comments <https://developer.github.com/v3/pulls/reviews/>`_ :param id: integer :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
github/PullRequest.py
def get_single_review_comments(self, id): """ :calls: `GET /repos/:owner/:repo/pulls/:number/review/:id/comments <https://developer.github.com/v3/pulls/reviews/>`_ :param id: integer :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComme...
def get_single_review_comments(self, id): """ :calls: `GET /repos/:owner/:repo/pulls/:number/review/:id/comments <https://developer.github.com/v3/pulls/reviews/>`_ :param id: integer :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComme...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "review", "/", ":", "id", "/", "comments", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L567-L579
[ "def", "get_single_review_comments", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "PullRequestCom...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_commits
:calls: `GET /repos/:owner/:repo/pulls/:number/commits <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit`
github/PullRequest.py
def get_commits(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/commits <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit` """ return github.PaginatedList.PaginatedList( github.Commit...
def get_commits(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/commits <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit` """ return github.PaginatedList.PaginatedList( github.Commit...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "commits", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ">", "_", ":", "rtype", ":", ":"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L581-L591
[ "def", "get_commits", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Commit", ".", "Commit", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/commits\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_files
:calls: `GET /repos/:owner/:repo/pulls/:number/files <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.File.File`
github/PullRequest.py
def get_files(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/files <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.File.File` """ return github.PaginatedList.PaginatedList( github.File.File, ...
def get_files(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/files <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.File.File` """ return github.PaginatedList.PaginatedList( github.File.File, ...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "files", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ">", "_", ":", "rtype", ":", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L593-L603
[ "def", "get_files", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "File", ".", "File", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/files\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_issue_comment
:calls: `GET /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_ :param id: integer :rtype: :class:`github.IssueComment.IssueComment`
github/PullRequest.py
def get_issue_comment(self, id): """ :calls: `GET /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_ :param id: integer :rtype: :class:`github.IssueComment.IssueComment` """ assert isinstance(id, (int, long)), id headers, da...
def get_issue_comment(self, id): """ :calls: `GET /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_ :param id: integer :rtype: :class:`github.IssueComment.IssueComment` """ assert isinstance(id, (int, long)), id headers, da...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", "comments", "/", ":", "id", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "comments", ">", "_", ":", "...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L605-L616
[ "def", "get_issue_comment", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_issue_comments
:calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment`
github/PullRequest.py
def get_issue_comments(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment` """ return github.PaginatedList.Paginated...
def get_issue_comments(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment` """ return github.PaginatedList.Paginated...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "comments", ">", "_", ":",...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L618-L628
[ "def", "get_issue_comments", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "IssueComment", ".", "IssueComment", ",", "self", ".", "_requester", ",", "self", ".", "issue_url", "+", "\"/comments\"", ",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_review
:calls: `GET /repos/:owner/:repo/pulls/:number/reviews/:id <https://developer.github.com/v3/pulls/reviews>`_ :param id: integer :rtype: :class:`github.PullRequestReview.PullRequestReview`
github/PullRequest.py
def get_review(self, id): """ :calls: `GET /repos/:owner/:repo/pulls/:number/reviews/:id <https://developer.github.com/v3/pulls/reviews>`_ :param id: integer :rtype: :class:`github.PullRequestReview.PullRequestReview` """ assert isinstance(id, (int, long)), id hea...
def get_review(self, id): """ :calls: `GET /repos/:owner/:repo/pulls/:number/reviews/:id <https://developer.github.com/v3/pulls/reviews>`_ :param id: integer :rtype: :class:`github.PullRequestReview.PullRequestReview` """ assert isinstance(id, (int, long)), id hea...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "reviews", "/", ":", "id", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "reviews", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L630-L641
[ "def", "get_review", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",", "sel...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_reviews
:calls: `GET /repos/:owner/:repo/pulls/:number/reviews <https://developer.github.com/v3/pulls/reviews/>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestReview.PullRequestReview`
github/PullRequest.py
def get_reviews(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/reviews <https://developer.github.com/v3/pulls/reviews/>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestReview.PullRequestReview` """ return github.PaginatedList.Paginate...
def get_reviews(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/reviews <https://developer.github.com/v3/pulls/reviews/>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestReview.PullRequestReview` """ return github.PaginatedList.Paginate...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "reviews", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "reviews", "/", ">", "_", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L643-L653
[ "def", "get_reviews", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "PullRequestReview", ".", "PullRequestReview", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/reviews\"", ",", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_review_requests
:calls: `GET /repos/:owner/:repo/pulls/:number/requested_reviewers <https://developer.github.com/v3/pulls/review_requests/>`_ :rtype: tuple of :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` and of :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
github/PullRequest.py
def get_review_requests(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/requested_reviewers <https://developer.github.com/v3/pulls/review_requests/>`_ :rtype: tuple of :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` and of :class:`github.PaginatedList...
def get_review_requests(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/requested_reviewers <https://developer.github.com/v3/pulls/review_requests/>`_ :rtype: tuple of :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` and of :class:`github.PaginatedList...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "requested_reviewers", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "review_requests", "...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L655-L675
[ "def", "get_review_requests", "(", "self", ")", ":", "return", "(", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "NamedUser", ".", "NamedUser", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/requested_reviewers\"...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.get_labels
:calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`
github/PullRequest.py
def get_labels(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label` """ return github.PaginatedList.PaginatedList( github.L...
def get_labels(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label` """ return github.PaginatedList.PaginatedList( github.L...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "labels", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "labels", ">", "_", ":", "...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L677-L687
[ "def", "get_labels", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Label", ".", "Label", ",", "self", ".", "_requester", ",", "self", ".", "issue_url", "+", "\"/labels\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.remove_from_labels
:calls: `DELETE /repos/:owner/:repo/issues/:number/labels/:name <http://developer.github.com/v3/issues/labels>`_ :param label: :class:`github.Label.Label` or string :rtype: None
github/PullRequest.py
def remove_from_labels(self, label): """ :calls: `DELETE /repos/:owner/:repo/issues/:number/labels/:name <http://developer.github.com/v3/issues/labels>`_ :param label: :class:`github.Label.Label` or string :rtype: None """ assert isinstance(label, (github.Label.Label, str...
def remove_from_labels(self, label): """ :calls: `DELETE /repos/:owner/:repo/issues/:number/labels/:name <http://developer.github.com/v3/issues/labels>`_ :param label: :class:`github.Label.Label` or string :rtype: None """ assert isinstance(label, (github.Label.Label, str...
[ ":", "calls", ":", "DELETE", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "labels", "/", ":", "name", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "labels...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L713-L727
[ "def", "remove_from_labels", "(", "self", ",", "label", ")", ":", "assert", "isinstance", "(", "label", ",", "(", "github", ".", "Label", ".", "Label", ",", "str", ",", "unicode", ")", ")", ",", "label", "if", "isinstance", "(", "label", ",", "github",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.set_labels
:calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :param labels: list of :class:`github.Label.Label` or strings :rtype: None
github/PullRequest.py
def set_labels(self, *labels): """ :calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :param labels: list of :class:`github.Label.Label` or strings :rtype: None """ assert all(isinstance(element, (github.Label.Label, st...
def set_labels(self, *labels): """ :calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :param labels: list of :class:`github.Label.Label` or strings :rtype: None """ assert all(isinstance(element, (github.Label.Label, st...
[ ":", "calls", ":", "PUT", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "labels", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "labels", ">", "_", ":", "...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L729-L741
[ "def", "set_labels", "(", "self", ",", "*", "labels", ")", ":", "assert", "all", "(", "isinstance", "(", "element", ",", "(", "github", ".", "Label", ".", "Label", ",", "str", ",", "unicode", ")", ")", "for", "element", "in", "labels", ")", ",", "l...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.is_merged
:calls: `GET /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_ :rtype: bool
github/PullRequest.py
def is_merged(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_ :rtype: bool """ status, headers, data = self._requester.requestJson( "GET", self.url + "/merge" ) return status == 204
def is_merged(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_ :rtype: bool """ status, headers, data = self._requester.requestJson( "GET", self.url + "/merge" ) return status == 204
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "merge", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ">", "_", ":", "rtype", ":", "bool...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L743-L752
[ "def", "is_merged", "(", "self", ")", ":", "status", ",", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJson", "(", "\"GET\"", ",", "self", ".", "url", "+", "\"/merge\"", ")", "return", "status", "==", "204" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequest.merge
:calls: `PUT /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_ :param commit_message: string :rtype: :class:`github.PullRequestMergeStatus.PullRequestMergeStatus`
github/PullRequest.py
def merge(self, commit_message=github.GithubObject.NotSet, commit_title=github.GithubObject.NotSet, merge_method=github.GithubObject.NotSet, sha=github.GithubObject.NotSet): """ :calls: `PUT /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_ :param commit_message: s...
def merge(self, commit_message=github.GithubObject.NotSet, commit_title=github.GithubObject.NotSet, merge_method=github.GithubObject.NotSet, sha=github.GithubObject.NotSet): """ :calls: `PUT /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_ :param commit_message: s...
[ ":", "calls", ":", "PUT", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "merge", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ">", "_", ":", "param", "commit_mess...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequest.py#L754-L778
[ "def", "merge", "(", "self", ",", "commit_message", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "commit_title", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "merge_method", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "sha",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.repository
:type: :class:`github.Repository.Repository`
github/Issue.py
def repository(self): """ :type: :class:`github.Repository.Repository` """ self._completeIfNotSet(self._repository) if self._repository is github.GithubObject.NotSet: # The repository was not set automatically, so it must be looked up by url. repo_url = "/...
def repository(self): """ :type: :class:`github.Repository.Repository` """ self._completeIfNotSet(self._repository) if self._repository is github.GithubObject.NotSet: # The repository was not set automatically, so it must be looked up by url. repo_url = "/...
[ ":", "type", ":", ":", "class", ":", "github", ".", "Repository", ".", "Repository" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L199-L208
[ "def", "repository", "(", "self", ")", ":", "self", ".", "_completeIfNotSet", "(", "self", ".", "_repository", ")", "if", "self", ".", "_repository", "is", "github", ".", "GithubObject", ".", "NotSet", ":", "# The repository was not set automatically, so it must be ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.as_pull_request
:calls: `GET /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PullRequest.PullRequest`
github/Issue.py
def as_pull_request(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PullRequest.PullRequest` """ headers, data = self._requester.requestJsonAndCheck( "GET", "/pulls/".join(self.url.r...
def as_pull_request(self): """ :calls: `GET /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_ :rtype: :class:`github.PullRequest.PullRequest` """ headers, data = self._requester.requestJsonAndCheck( "GET", "/pulls/".join(self.url.r...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", ">", "_", ":", "rtype", ":", ":", "class", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L250-L259
[ "def", "as_pull_request", "(", "self", ")", ":", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",", "\"/pulls/\"", ".", "join", "(", "self", ".", "url", ".", "rsplit", "(", "\"/issues/\"", ",", "1", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.add_to_assignees
:calls: `POST /repos/:owner/:repo/issues/:number/assignees <https://developer.github.com/v3/issues/assignees>`_ :param assignee: :class:`github.NamedUser.NamedUser` or string :rtype: None
github/Issue.py
def add_to_assignees(self, *assignees): """ :calls: `POST /repos/:owner/:repo/issues/:number/assignees <https://developer.github.com/v3/issues/assignees>`_ :param assignee: :class:`github.NamedUser.NamedUser` or string :rtype: None """ assert all(isinstance(element, (gith...
def add_to_assignees(self, *assignees): """ :calls: `POST /repos/:owner/:repo/issues/:number/assignees <https://developer.github.com/v3/issues/assignees>`_ :param assignee: :class:`github.NamedUser.NamedUser` or string :rtype: None """ assert all(isinstance(element, (gith...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "assignees", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "assignees", ">", "_", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L261-L274
[ "def", "add_to_assignees", "(", "self", ",", "*", "assignees", ")", ":", "assert", "all", "(", "isinstance", "(", "element", ",", "(", "github", ".", "NamedUser", ".", "NamedUser", ",", "str", ",", "unicode", ")", ")", "for", "element", "in", "assignees"...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.create_comment
:calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param body: string :rtype: :class:`github.IssueComment.IssueComment`
github/Issue.py
def create_comment(self, body): """ :calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param body: string :rtype: :class:`github.IssueComment.IssueComment` """ assert isinstance(body, (str, unicode)), body ...
def create_comment(self, body): """ :calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param body: string :rtype: :class:`github.IssueComment.IssueComment` """ assert isinstance(body, (str, unicode)), body ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "comments", ">", "_", ":"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L290-L305
[ "def", "create_comment", "(", "self", ",", "body", ")", ":", "assert", "isinstance", "(", "body", ",", "(", "str", ",", "unicode", ")", ")", ",", "body", "post_parameters", "=", "{", "\"body\"", ":", "body", ",", "}", "headers", ",", "data", "=", "se...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.edit
:calls: `PATCH /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_ :param title: string :param body: string :param assignee: string or :class:`github.NamedUser.NamedUser` or None :param assignees: list (of string or :class:`github.NamedUser.NamedUser`) :p...
github/Issue.py
def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, state=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, assignees=github.GithubObject.NotSet): """ :calls: `PATCH /repos/:owner/:repo/...
def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, state=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, assignees=github.GithubObject.NotSet): """ :calls: `PATCH /repos/:owner/:repo/...
[ ":", "calls", ":", "PATCH", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", ">", "_", ":", "param", "title", ":", "string"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L317-L359
[ "def", "edit", "(", "self", ",", "title", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "body", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "assignee", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "state", "=", "github", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.get_comments
:calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment`
github/Issue.py
def get_comments(self, since=github.GithubObject.NotSet): """ :calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ :rtype: :class:`github.PaginatedList.PaginatedList` of :cl...
def get_comments(self, since=github.GithubObject.NotSet): """ :calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_ :param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ :rtype: :class:`github.PaginatedList.PaginatedList` of :cl...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "comments", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "comments", ">", "_", ":",...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L374-L389
[ "def", "get_comments", "(", "self", ",", "since", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "since", "is", "github", ".", "GithubObject", ".", "NotSet", "or", "isinstance", "(", "since", ",", "datetime", ".", "datetime", ")", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.get_events
:calls: `GET /repos/:owner/:repo/issues/:issue_number/events <http://developer.github.com/v3/issues/events>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent`
github/Issue.py
def get_events(self): """ :calls: `GET /repos/:owner/:repo/issues/:issue_number/events <http://developer.github.com/v3/issues/events>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent` """ return github.PaginatedList.PaginatedList( ...
def get_events(self): """ :calls: `GET /repos/:owner/:repo/issues/:issue_number/events <http://developer.github.com/v3/issues/events>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent` """ return github.PaginatedList.PaginatedList( ...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "issue_number", "/", "events", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "events", ">", "_", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L391-L402
[ "def", "get_events", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "IssueEvent", ".", "IssueEvent", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/events\"", ",", "None", ",", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.get_labels
:calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`
github/Issue.py
def get_labels(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label` """ return github.PaginatedList.PaginatedList( github.L...
def get_labels(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label` """ return github.PaginatedList.PaginatedList( github.L...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "labels", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "labels", ">", "_", ":", "...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L404-L414
[ "def", "get_labels", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Label", ".", "Label", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/labels\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.get_reactions
:calls: `GET /repos/:owner/:repo/issues/:number/reactions <https://developer.github.com/v3/reactions/#list-reactions-for-an-issue>`_ :return: :class: :class:`github.PaginatedList.PaginatedList` of :class:`github.Reaction.Reaction`
github/Issue.py
def get_reactions(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/reactions <https://developer.github.com/v3/reactions/#list-reactions-for-an-issue>`_ :return: :class: :class:`github.PaginatedList.PaginatedList` of :class:`github.Reaction.Reaction` """ return github.Pa...
def get_reactions(self): """ :calls: `GET /repos/:owner/:repo/issues/:number/reactions <https://developer.github.com/v3/reactions/#list-reactions-for-an-issue>`_ :return: :class: :class:`github.PaginatedList.PaginatedList` of :class:`github.Reaction.Reaction` """ return github.Pa...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "reactions", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "reactions", "/", "#list", "-", "reaction...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L461-L472
[ "def", "get_reactions", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Reaction", ".", "Reaction", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/reactions\"", ",", "None", ","...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Issue.create_reaction
:calls: `POST /repos/:owner/:repo/issues/:number/reactions <https://developer.github.com/v3/reactions>`_ :param reaction_type: string :rtype: :class:`github.Reaction.Reaction`
github/Issue.py
def create_reaction(self, reaction_type): """ :calls: `POST /repos/:owner/:repo/issues/:number/reactions <https://developer.github.com/v3/reactions>`_ :param reaction_type: string :rtype: :class:`github.Reaction.Reaction` """ assert isinstance(reaction_type, (str, unicode...
def create_reaction(self, reaction_type): """ :calls: `POST /repos/:owner/:repo/issues/:number/reactions <https://developer.github.com/v3/reactions>`_ :param reaction_type: string :rtype: :class:`github.Reaction.Reaction` """ assert isinstance(reaction_type, (str, unicode...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "/", ":", "number", "/", "reactions", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "reactions", ">", "_", ":", "param", "...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Issue.py#L474-L493
[ "def", "create_reaction", "(", "self", ",", "reaction_type", ")", ":", "assert", "isinstance", "(", "reaction_type", ",", "(", "str", ",", "unicode", ")", ")", ",", "\"reaction type should be a string\"", "assert", "reaction_type", "in", "[", "\"+1\"", ",", "\"-...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Milestone.edit
:calls: `PATCH /repos/:owner/:repo/milestones/:number <http://developer.github.com/v3/issues/milestones>`_ :param title: string :param state: string :param description: string :param due_on: date :rtype: None
github/Milestone.py
def edit(self, title, state=github.GithubObject.NotSet, description=github.GithubObject.NotSet, due_on=github.GithubObject.NotSet): """ :calls: `PATCH /repos/:owner/:repo/milestones/:number <http://developer.github.com/v3/issues/milestones>`_ :param title: string :param state: string ...
def edit(self, title, state=github.GithubObject.NotSet, description=github.GithubObject.NotSet, due_on=github.GithubObject.NotSet): """ :calls: `PATCH /repos/:owner/:repo/milestones/:number <http://developer.github.com/v3/issues/milestones>`_ :param title: string :param state: string ...
[ ":", "calls", ":", "PATCH", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "milestones", "/", ":", "number", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "milestones", ">", "_", ":", "param", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Milestone.py#L164-L191
[ "def", "edit", "(", "self", ",", "title", ",", "state", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "description", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "due_on", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.add_to_public_members
:calls: `PUT /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_ :param public_member: :class:`github.NamedUser.NamedUser` :rtype: None
github/Organization.py
def add_to_public_members(self, public_member): """ :calls: `PUT /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_ :param public_member: :class:`github.NamedUser.NamedUser` :rtype: None """ assert isinstance(public_member, github.NamedUser.Na...
def add_to_public_members(self, public_member): """ :calls: `PUT /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_ :param public_member: :class:`github.NamedUser.NamedUser` :rtype: None """ assert isinstance(public_member, github.NamedUser.Na...
[ ":", "calls", ":", "PUT", "/", "orgs", "/", ":", "org", "/", "public_members", "/", ":", "user", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "members", ">", "_", ":", "param", "public_member", ":", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L324-L334
[ "def", "add_to_public_members", "(", "self", ",", "public_member", ")", ":", "assert", "isinstance", "(", "public_member", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", ",", "public_member", "headers", ",", "data", "=", "self", ".", "_requester", "."...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.create_fork
:calls: `POST /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_ :param repo: :class:`github.Repository.Repository` :rtype: :class:`github.Repository.Repository`
github/Organization.py
def create_fork(self, repo): """ :calls: `POST /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_ :param repo: :class:`github.Repository.Repository` :rtype: :class:`github.Repository.Repository` """ assert isinstance(repo, github.Repository.Repositor...
def create_fork(self, repo): """ :calls: `POST /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_ :param repo: :class:`github.Repository.Repository` :rtype: :class:`github.Repository.Repository` """ assert isinstance(repo, github.Repository.Repositor...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "forks", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "forks", ">", "_", ":", "param", "repo", ":", ":", "class", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L336-L351
[ "def", "create_fork", "(", "self", ",", "repo", ")", ":", "assert", "isinstance", "(", "repo", ",", "github", ".", "Repository", ".", "Repository", ")", ",", "repo", "url_parameters", "=", "{", "\"org\"", ":", "self", ".", "login", ",", "}", "headers", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.create_hook
:calls: `POST /orgs/:owner/hooks <http://developer.github.com/v3/orgs/hooks>`_ :param name: string :param config: dict :param events: list of string :param active: bool :rtype: :class:`github.Hook.Hook`
github/Organization.py
def create_hook(self, name, config, events=github.GithubObject.NotSet, active=github.GithubObject.NotSet): """ :calls: `POST /orgs/:owner/hooks <http://developer.github.com/v3/orgs/hooks>`_ :param name: string :param config: dict :param events: list of string :param activ...
def create_hook(self, name, config, events=github.GithubObject.NotSet, active=github.GithubObject.NotSet): """ :calls: `POST /orgs/:owner/hooks <http://developer.github.com/v3/orgs/hooks>`_ :param name: string :param config: dict :param events: list of string :param activ...
[ ":", "calls", ":", "POST", "/", "orgs", "/", ":", "owner", "/", "hooks", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "hooks", ">", "_", ":", "param", "name", ":", "string", ":", "param", "config", ":",...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L353-L379
[ "def", "create_hook", "(", "self", ",", "name", ",", "config", ",", "events", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "active", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "(", "name", ",", "(", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.create_team
:calls: `POST /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_ :param name: string :param repo_names: list of :class:`github.Repository.Repository` :param permission: string :param privacy: string :rtype: :class:`github.Team.Team`
github/Organization.py
def create_team(self, name, repo_names=github.GithubObject.NotSet, permission=github.GithubObject.NotSet, privacy=github.GithubObject.NotSet): """ :calls: `POST /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_ :param name: string :param repo_names: list of :class:`github.Re...
def create_team(self, name, repo_names=github.GithubObject.NotSet, permission=github.GithubObject.NotSet, privacy=github.GithubObject.NotSet): """ :calls: `POST /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_ :param name: string :param repo_names: list of :class:`github.Re...
[ ":", "calls", ":", "POST", "/", "orgs", "/", ":", "org", "/", "teams", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "name", ":", "string", ":", "param", "repo_names", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L460-L487
[ "def", "create_team", "(", "self", ",", "name", ",", "repo_names", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "permission", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "privacy", "=", "github", ".", "GithubObject", ".", "NotSet", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.delete_hook
:calls: `DELETE /orgs/:owner/hooks/:id <http://developer.github.com/v3/orgs/hooks>`_ :param id: integer :rtype: None`
github/Organization.py
def delete_hook(self, id): """ :calls: `DELETE /orgs/:owner/hooks/:id <http://developer.github.com/v3/orgs/hooks>`_ :param id: integer :rtype: None` """ assert isinstance(id, (int, long)), id headers, data = self._requester.requestJsonAndCheck( "DELETE...
def delete_hook(self, id): """ :calls: `DELETE /orgs/:owner/hooks/:id <http://developer.github.com/v3/orgs/hooks>`_ :param id: integer :rtype: None` """ assert isinstance(id, (int, long)), id headers, data = self._requester.requestJsonAndCheck( "DELETE...
[ ":", "calls", ":", "DELETE", "/", "orgs", "/", ":", "owner", "/", "hooks", "/", ":", "id", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "hooks", ">", "_", ":", "param", "id", ":", "integer", ":", "rty...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L489-L499
[ "def", "delete_hook", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"DELETE\"", ",", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.edit
:calls: `PATCH /orgs/:org <http://developer.github.com/v3/orgs>`_ :param billing_email: string :param blog: string :param company: string :param description: string :param email: string :param location: string :param name: string :rtype: None
github/Organization.py
def edit(self, billing_email=github.GithubObject.NotSet, blog=github.GithubObject.NotSet, company=github.GithubObject.NotSet, description=github.GithubObject.NotSet, email=github.GithubObject.NotSet, location=github.GithubObject.NotSet, name=github.GithubObject.NotSet): """ :calls: `PATCH /orgs/:org <ht...
def edit(self, billing_email=github.GithubObject.NotSet, blog=github.GithubObject.NotSet, company=github.GithubObject.NotSet, description=github.GithubObject.NotSet, email=github.GithubObject.NotSet, location=github.GithubObject.NotSet, name=github.GithubObject.NotSet): """ :calls: `PATCH /orgs/:org <ht...
[ ":", "calls", ":", "PATCH", "/", "orgs", "/", ":", "org", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", ">", "_", ":", "param", "billing_email", ":", "string", ":", "param", "blog", ":", "string", ":", "param",...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L501-L540
[ "def", "edit", "(", "self", ",", "billing_email", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "blog", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "company", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "description", "=",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_events
:calls: `GET /orgs/:org/events <http://developer.github.com/v3/activity/events>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
github/Organization.py
def get_events(self): """ :calls: `GET /orgs/:org/events <http://developer.github.com/v3/activity/events>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event` """ return github.PaginatedList.PaginatedList( github.Event.Event, ...
def get_events(self): """ :calls: `GET /orgs/:org/events <http://developer.github.com/v3/activity/events>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event` """ return github.PaginatedList.PaginatedList( github.Event.Event, ...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "events", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "activity", "/", "events", ">", "_", ":", "rtype", ":", ":", "class", ":", "github", ".", "Paginate...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L572-L582
[ "def", "get_events", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Event", ".", "Event", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/events\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_hook
:calls: `GET /orgs/:owner/hooks/:id <http://developer.github.com/v3/orgs/hooks>`_ :param id: integer :rtype: :class:`github.Hook.Hook`
github/Organization.py
def get_hook(self, id): """ :calls: `GET /orgs/:owner/hooks/:id <http://developer.github.com/v3/orgs/hooks>`_ :param id: integer :rtype: :class:`github.Hook.Hook` """ assert isinstance(id, (int, long)), id headers, data = self._requester.requestJsonAndCheck( ...
def get_hook(self, id): """ :calls: `GET /orgs/:owner/hooks/:id <http://developer.github.com/v3/orgs/hooks>`_ :param id: integer :rtype: :class:`github.Hook.Hook` """ assert isinstance(id, (int, long)), id headers, data = self._requester.requestJsonAndCheck( ...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "owner", "/", "hooks", "/", ":", "id", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "hooks", ">", "_", ":", "param", "id", ":", "integer", ":", "rtype"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L584-L595
[ "def", "get_hook", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",", "self"...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_hooks
:calls: `GET /orgs/:owner/hooks <http://developer.github.com/v3/orgs/hooks>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Hook.Hook`
github/Organization.py
def get_hooks(self): """ :calls: `GET /orgs/:owner/hooks <http://developer.github.com/v3/orgs/hooks>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Hook.Hook` """ return github.PaginatedList.PaginatedList( github.Hook.Hook, self._r...
def get_hooks(self): """ :calls: `GET /orgs/:owner/hooks <http://developer.github.com/v3/orgs/hooks>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Hook.Hook` """ return github.PaginatedList.PaginatedList( github.Hook.Hook, self._r...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "owner", "/", "hooks", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "hooks", ">", "_", ":", "rtype", ":", ":", "class", ":", "github", ".", "PaginatedLis...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L597-L607
[ "def", "get_hooks", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Hook", ".", "Hook", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/hooks\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_members
:calls: `GET /orgs/:org/members <http://developer.github.com/v3/orgs/members>`_ :param filter_: string :param role: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
github/Organization.py
def get_members(self, filter_=github.GithubObject.NotSet, role=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/members <http://developer.github.com/v3/orgs/members>`_ :param filter_: string :param role: string :rtype: :class:`github.PaginatedList.Pagi...
def get_members(self, filter_=github.GithubObject.NotSet, role=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/members <http://developer.github.com/v3/orgs/members>`_ :param filter_: string :param role: string :rtype: :class:`github.PaginatedList.Pagi...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "members", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "members", ">", "_", ":", "param", "filter_", ":", "string", ":", "param", "role", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L647-L670
[ "def", "get_members", "(", "self", ",", "filter_", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "role", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "(", "filter_", "is", "github", ".", "GithubObject", ".", "NotSet", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_projects
:calls: `GET /orgs/:org/projects <https://developer.github.com/v3/projects/#list-organization-projects>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Project.Project` :param state: string
github/Organization.py
def get_projects(self, state=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/projects <https://developer.github.com/v3/projects/#list-organization-projects>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Project.Project` :param state: string """ ...
def get_projects(self, state=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/projects <https://developer.github.com/v3/projects/#list-organization-projects>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Project.Project` :param state: string """ ...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "projects", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "projects", "/", "#list", "-", "organization", "-", "projects", ">", "_", ":", "rtype", ":", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L672-L689
[ "def", "get_projects", "(", "self", ",", "state", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "url_parameters", "=", "dict", "(", ")", "if", "state", "is", "not", "github", ".", "GithubObject", ".", "NotSet", ":", "url_parameters", "[", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_public_members
:calls: `GET /orgs/:org/public_members <http://developer.github.com/v3/orgs/members>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
github/Organization.py
def get_public_members(self): """ :calls: `GET /orgs/:org/public_members <http://developer.github.com/v3/orgs/members>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ return github.PaginatedList.PaginatedList( github.Na...
def get_public_members(self): """ :calls: `GET /orgs/:org/public_members <http://developer.github.com/v3/orgs/members>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ return github.PaginatedList.PaginatedList( github.Na...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "public_members", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "members", ">", "_", ":", "rtype", ":", ":", "class", ":", "github", ".", "Pag...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L691-L701
[ "def", "get_public_members", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "NamedUser", ".", "NamedUser", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/public_members\"", ",", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_outside_collaborators
:calls: `GET /orgs/:org/outside_collaborators <http://developer.github.com/v3/orgs/outside_collaborators>`_ :param filter_: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
github/Organization.py
def get_outside_collaborators(self, filter_=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/outside_collaborators <http://developer.github.com/v3/orgs/outside_collaborators>`_ :param filter_: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser....
def get_outside_collaborators(self, filter_=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/outside_collaborators <http://developer.github.com/v3/orgs/outside_collaborators>`_ :param filter_: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser....
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "outside_collaborators", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "outside_collaborators", ">", "_", ":", "param", "filter_", ":", "string", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L703-L720
[ "def", "get_outside_collaborators", "(", "self", ",", "filter_", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "(", "filter_", "is", "github", ".", "GithubObject", ".", "NotSet", "or", "isinstance", "(", "filter_", ",", "(", "str", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.remove_outside_collaborator
:calls: `DELETE /orgs/:org/outside_collaborators/:username <https://developer.github.com/v3/orgs/outside_collaborators>`_ :param collaborator: :class:`github.NamedUser.NamedUser` :rtype: None
github/Organization.py
def remove_outside_collaborator(self, collaborator): """ :calls: `DELETE /orgs/:org/outside_collaborators/:username <https://developer.github.com/v3/orgs/outside_collaborators>`_ :param collaborator: :class:`github.NamedUser.NamedUser` :rtype: None """ assert isinstance(c...
def remove_outside_collaborator(self, collaborator): """ :calls: `DELETE /orgs/:org/outside_collaborators/:username <https://developer.github.com/v3/orgs/outside_collaborators>`_ :param collaborator: :class:`github.NamedUser.NamedUser` :rtype: None """ assert isinstance(c...
[ ":", "calls", ":", "DELETE", "/", "orgs", "/", ":", "org", "/", "outside_collaborators", "/", ":", "username", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "outside_collaborators", ">", "_", ":", "param", "c...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L722-L732
[ "def", "remove_outside_collaborator", "(", "self", ",", "collaborator", ")", ":", "assert", "isinstance", "(", "collaborator", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", ",", "collaborator", "headers", ",", "data", "=", "self", ".", "_requester", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.convert_to_outside_collaborator
:calls: `PUT /orgs/:org/outside_collaborators/:username <https://developer.github.com/v3/orgs/outside_collaborators>`_ :param member: :class:`github.NamedUser.NamedUser` :rtype: None
github/Organization.py
def convert_to_outside_collaborator(self, member): """ :calls: `PUT /orgs/:org/outside_collaborators/:username <https://developer.github.com/v3/orgs/outside_collaborators>`_ :param member: :class:`github.NamedUser.NamedUser` :rtype: None """ assert isinstance(member, gith...
def convert_to_outside_collaborator(self, member): """ :calls: `PUT /orgs/:org/outside_collaborators/:username <https://developer.github.com/v3/orgs/outside_collaborators>`_ :param member: :class:`github.NamedUser.NamedUser` :rtype: None """ assert isinstance(member, gith...
[ ":", "calls", ":", "PUT", "/", "orgs", "/", ":", "org", "/", "outside_collaborators", "/", ":", "username", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "outside_collaborators", ">", "_", ":", "param", "memb...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L734-L744
[ "def", "convert_to_outside_collaborator", "(", "self", ",", "member", ")", ":", "assert", "isinstance", "(", "member", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", ",", "member", "headers", ",", "data", "=", "self", ".", "_requester", ".", "reques...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_repo
:calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_ :param name: string :rtype: :class:`github.Repository.Repository`
github/Organization.py
def get_repo(self, name): """ :calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_ :param name: string :rtype: :class:`github.Repository.Repository` """ assert isinstance(name, (str, unicode)), name headers, data = self._requester.requestJsonA...
def get_repo(self, name): """ :calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_ :param name: string :rtype: :class:`github.Repository.Repository` """ assert isinstance(name, (str, unicode)), name headers, data = self._requester.requestJsonA...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", ">", "_", ":", "param", "name", ":", "string", ":", "rtype", ":", ":", "class", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L746-L757
[ "def", "get_repo", "(", "self", ",", "name", ")", ":", "assert", "isinstance", "(", "name", ",", "(", "str", ",", "unicode", ")", ")", ",", "name", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_repos
:calls: `GET /orgs/:org/repos <http://developer.github.com/v3/repos>`_ :param type: string ('all', 'public', 'private', 'forks', 'sources', 'member') :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
github/Organization.py
def get_repos(self, type=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/repos <http://developer.github.com/v3/repos>`_ :param type: string ('all', 'public', 'private', 'forks', 'sources', 'member') :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository...
def get_repos(self, type=github.GithubObject.NotSet): """ :calls: `GET /orgs/:org/repos <http://developer.github.com/v3/repos>`_ :param type: string ('all', 'public', 'private', 'forks', 'sources', 'member') :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "repos", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", ">", "_", ":", "param", "type", ":", "string", "(", "all", "public", "private", "forks", "s...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L759-L774
[ "def", "get_repos", "(", "self", ",", "type", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "type", "is", "github", ".", "GithubObject", ".", "NotSet", "or", "isinstance", "(", "type", ",", "(", "str", ",", "unicode", ")", ")",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_team
:calls: `GET /teams/:id <http://developer.github.com/v3/orgs/teams>`_ :param id: integer :rtype: :class:`github.Team.Team`
github/Organization.py
def get_team(self, id): """ :calls: `GET /teams/:id <http://developer.github.com/v3/orgs/teams>`_ :param id: integer :rtype: :class:`github.Team.Team` """ assert isinstance(id, (int, long)), id headers, data = self._requester.requestJsonAndCheck( "GET"...
def get_team(self, id): """ :calls: `GET /teams/:id <http://developer.github.com/v3/orgs/teams>`_ :param id: integer :rtype: :class:`github.Team.Team` """ assert isinstance(id, (int, long)), id headers, data = self._requester.requestJsonAndCheck( "GET"...
[ ":", "calls", ":", "GET", "/", "teams", "/", ":", "id", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "param", "id", ":", "integer", ":", "rtype", ":", ":", "class", ":", "githu...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L776-L787
[ "def", "get_team", "(", "self", ",", "id", ")", ":", "assert", "isinstance", "(", "id", ",", "(", "int", ",", "long", ")", ")", ",", "id", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"GET\"", ",", "\"/te...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_teams
:calls: `GET /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
github/Organization.py
def get_teams(self): """ :calls: `GET /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team` """ return github.PaginatedList.PaginatedList( github.Team.Team, self._req...
def get_teams(self): """ :calls: `GET /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team` """ return github.PaginatedList.PaginatedList( github.Team.Team, self._req...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "teams", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "teams", ">", "_", ":", "rtype", ":", ":", "class", ":", "github", ".", "PaginatedList"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L789-L799
[ "def", "get_teams", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Team", ".", "Team", ",", "self", ".", "_requester", ",", "self", ".", "url", "+", "\"/teams\"", ",", "None", ")" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.invite_user
:calls: `POST /orgs/:org/invitations <http://developer.github.com/v3/orgs/members>`_ :param user: :class:`github.NamedUser.NamedUser` :param email: string :param role: string :param teams: array of :class:`github.Team.Team` :rtype: None
github/Organization.py
def invite_user(self, user=github.GithubObject.NotSet, email=github.GithubObject.NotSet, role=github.GithubObject.NotSet, teams=github.GithubObject.NotSet): """ :calls: `POST /orgs/:org/invitations <http://developer.github.com/v3/orgs/members>`_ :param user: :class:`github.NamedUser.NamedUser` ...
def invite_user(self, user=github.GithubObject.NotSet, email=github.GithubObject.NotSet, role=github.GithubObject.NotSet, teams=github.GithubObject.NotSet): """ :calls: `POST /orgs/:org/invitations <http://developer.github.com/v3/orgs/members>`_ :param user: :class:`github.NamedUser.NamedUser` ...
[ ":", "calls", ":", "POST", "/", "orgs", "/", ":", "org", "/", "invitations", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "members", ">", "_", ":", "param", "user", ":", ":", "class", ":", "github", "."...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L801-L830
[ "def", "invite_user", "(", "self", ",", "user", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "email", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "role", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "teams", "=", "github...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.has_in_public_members
:calls: `GET /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_ :param public_member: :class:`github.NamedUser.NamedUser` :rtype: bool
github/Organization.py
def has_in_public_members(self, public_member): """ :calls: `GET /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_ :param public_member: :class:`github.NamedUser.NamedUser` :rtype: bool """ assert isinstance(public_member, github.NamedUser.Na...
def has_in_public_members(self, public_member): """ :calls: `GET /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_ :param public_member: :class:`github.NamedUser.NamedUser` :rtype: bool """ assert isinstance(public_member, github.NamedUser.Na...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "public_members", "/", ":", "user", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "members", ">", "_", ":", "param", "public_member", ":", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L850-L861
[ "def", "has_in_public_members", "(", "self", ",", "public_member", ")", ":", "assert", "isinstance", "(", "public_member", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", ",", "public_member", "status", ",", "headers", ",", "data", "=", "self", ".", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Organization.get_migrations
:calls: `GET /orgs/:org/migrations`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Migration.Migration`
github/Organization.py
def get_migrations(self): """ :calls: `GET /orgs/:org/migrations`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Migration.Migration` """ return github.PaginatedList.PaginatedList( github.Migration.Migration, self._requester, ...
def get_migrations(self): """ :calls: `GET /orgs/:org/migrations`_ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Migration.Migration` """ return github.PaginatedList.PaginatedList( github.Migration.Migration, self._requester, ...
[ ":", "calls", ":", "GET", "/", "orgs", "/", ":", "org", "/", "migrations", "_", ":", "rtype", ":", ":", "class", ":", "github", ".", "PaginatedList", ".", "PaginatedList", "of", ":", "class", ":", "github", ".", "Migration", ".", "Migration" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Organization.py#L928-L941
[ "def", "get_migrations", "(", "self", ")", ":", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", ".", "Migration", ".", "Migration", ",", "self", ".", "_requester", ",", "\"/orgs/\"", "+", "self", ".", "login", "+", "\"/migratio...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
BranchProtection.get_user_push_restrictions
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
github/BranchProtection.py
def get_user_push_restrictions(self): """ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ if self._user_push_restrictions is github.GithubObject.NotSet: return None return github.PaginatedList.PaginatedList( g...
def get_user_push_restrictions(self): """ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ if self._user_push_restrictions is github.GithubObject.NotSet: return None return github.PaginatedList.PaginatedList( g...
[ ":", "rtype", ":", ":", "class", ":", "github", ".", "PaginatedList", ".", "PaginatedList", "of", ":", "class", ":", "github", ".", "NamedUser", ".", "NamedUser" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/BranchProtection.py#L73-L84
[ "def", "get_user_push_restrictions", "(", "self", ")", ":", "if", "self", ".", "_user_push_restrictions", "is", "github", ".", "GithubObject", ".", "NotSet", ":", "return", "None", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", "....
f716df86bbe7dc276c6596699fa9712b61ef974c
train
BranchProtection.get_team_push_restrictions
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
github/BranchProtection.py
def get_team_push_restrictions(self): """ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team` """ if self._team_push_restrictions is github.GithubObject.NotSet: return None return github.PaginatedList.PaginatedList( github.Team...
def get_team_push_restrictions(self): """ :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team` """ if self._team_push_restrictions is github.GithubObject.NotSet: return None return github.PaginatedList.PaginatedList( github.Team...
[ ":", "rtype", ":", ":", "class", ":", "github", ".", "PaginatedList", ".", "PaginatedList", "of", ":", "class", ":", "github", ".", "Team", ".", "Team" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/BranchProtection.py#L86-L97
[ "def", "get_team_push_restrictions", "(", "self", ")", ":", "if", "self", ".", "_team_push_restrictions", "is", "github", ".", "GithubObject", ".", "NotSet", ":", "return", "None", "return", "github", ".", "PaginatedList", ".", "PaginatedList", "(", "github", "....
f716df86bbe7dc276c6596699fa9712b61ef974c
train
GitReleaseAsset.name
:type: string
github/GitReleaseAsset.py
def name(self, value): """ :type: string """ self._completeIfNotSet(self._name) self._name.value = value
def name(self, value): """ :type: string """ self._completeIfNotSet(self._name) self._name.value = value
[ ":", "type", ":", "string" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/GitReleaseAsset.py#L64-L69
[ "def", "name", "(", "self", ",", "value", ")", ":", "self", ".", "_completeIfNotSet", "(", "self", ".", "_name", ")", "self", ".", "_name", ".", "value", "=", "value" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
GitReleaseAsset.label
:type: string
github/GitReleaseAsset.py
def label(self, value): """ :type: string """ self._completeIfNotSet(self._label) self._label.value = value
def label(self, value): """ :type: string """ self._completeIfNotSet(self._label) self._label.value = value
[ ":", "type", ":", "string" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/GitReleaseAsset.py#L80-L85
[ "def", "label", "(", "self", ",", "value", ")", ":", "self", ".", "_completeIfNotSet", "(", "self", ".", "_label", ")", "self", ".", "_label", ".", "value", "=", "value" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
GitReleaseAsset.delete_asset
Delete asset from the release. :rtype: bool
github/GitReleaseAsset.py
def delete_asset(self): """ Delete asset from the release. :rtype: bool """ headers, data = self._requester.requestJsonAndCheck( "DELETE", self.url ) return True
def delete_asset(self): """ Delete asset from the release. :rtype: bool """ headers, data = self._requester.requestJsonAndCheck( "DELETE", self.url ) return True
[ "Delete", "asset", "from", "the", "release", ".", ":", "rtype", ":", "bool" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/GitReleaseAsset.py#L151-L160
[ "def", "delete_asset", "(", "self", ")", ":", "headers", ",", "data", "=", "self", ".", "_requester", ".", "requestJsonAndCheck", "(", "\"DELETE\"", ",", "self", ".", "url", ")", "return", "True" ]
f716df86bbe7dc276c6596699fa9712b61ef974c
train
GitReleaseAsset.update_asset
Update asset metadata. :rtype: github.GitReleaseAsset.GitReleaseAsset
github/GitReleaseAsset.py
def update_asset(self, name, label=""): """ Update asset metadata. :rtype: github.GitReleaseAsset.GitReleaseAsset """ assert isinstance(name, (str, unicode)), name assert isinstance(label, (str, unicode)), label post_parameters = { "name": name, ...
def update_asset(self, name, label=""): """ Update asset metadata. :rtype: github.GitReleaseAsset.GitReleaseAsset """ assert isinstance(name, (str, unicode)), name assert isinstance(label, (str, unicode)), label post_parameters = { "name": name, ...
[ "Update", "asset", "metadata", ".", ":", "rtype", ":", "github", ".", "GitReleaseAsset", ".", "GitReleaseAsset" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/GitReleaseAsset.py#L162-L178
[ "def", "update_asset", "(", "self", ",", "name", ",", "label", "=", "\"\"", ")", ":", "assert", "isinstance", "(", "name", ",", "(", "str", ",", "unicode", ")", ")", ",", "name", "assert", "isinstance", "(", "label", ",", "(", "str", ",", "unicode", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
CompletableGithubObject.update
Check and update the object with conditional request :rtype: Boolean value indicating whether the object is changed
github/GithubObject.py
def update(self): ''' Check and update the object with conditional request :rtype: Boolean value indicating whether the object is changed ''' conditionalRequestHeader = dict() if self.etag is not None: conditionalRequestHeader[Consts.REQ_IF_NONE_MATCH] = self....
def update(self): ''' Check and update the object with conditional request :rtype: Boolean value indicating whether the object is changed ''' conditionalRequestHeader = dict() if self.etag is not None: conditionalRequestHeader[Consts.REQ_IF_NONE_MATCH] = self....
[ "Check", "and", "update", "the", "object", "with", "conditional", "request", ":", "rtype", ":", "Boolean", "value", "indicating", "whether", "the", "object", "is", "changed" ]
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/GithubObject.py#L277-L299
[ "def", "update", "(", "self", ")", ":", "conditionalRequestHeader", "=", "dict", "(", ")", "if", "self", ".", "etag", "is", "not", "None", ":", "conditionalRequestHeader", "[", "Consts", ".", "REQ_IF_NONE_MATCH", "]", "=", "self", ".", "etag", "if", "self"...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
PullRequestReview.dismiss
:calls: `PUT /repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals <https://developer.github.com/v3/pulls/reviews/>`_ :rtype: None
github/PullRequestReview.py
def dismiss(self, message): """ :calls: `PUT /repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals <https://developer.github.com/v3/pulls/reviews/>`_ :rtype: None """ assert isinstance(message, (str, unicode)), message post_parameters = {'message': message} ...
def dismiss(self, message): """ :calls: `PUT /repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals <https://developer.github.com/v3/pulls/reviews/>`_ :rtype: None """ assert isinstance(message, (str, unicode)), message post_parameters = {'message': message} ...
[ ":", "calls", ":", "PUT", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "pulls", "/", ":", "number", "/", "reviews", "/", ":", "review_id", "/", "dismissals", "<https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/PullRequestReview.py#L114-L125
[ "def", "dismiss", "(", "self", ",", "message", ")", ":", "assert", "isinstance", "(", "message", ",", "(", "str", ",", "unicode", ")", ")", ",", "message", "post_parameters", "=", "{", "'message'", ":", "message", "}", "headers", ",", "data", "=", "sel...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.add_to_collaborators
:calls: `PUT /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_ :param collaborator: string or :class:`github.NamedUser.NamedUser` :param permission: string 'pull', 'push' or 'admin' :rtype: None
github/Repository.py
def add_to_collaborators(self, collaborator, permission=github.GithubObject.NotSet): """ :calls: `PUT /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_ :param collaborator: string or :class:`github.NamedUser.NamedUser` :param permission: strin...
def add_to_collaborators(self, collaborator, permission=github.GithubObject.NotSet): """ :calls: `PUT /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_ :param collaborator: string or :class:`github.NamedUser.NamedUser` :param permission: strin...
[ ":", "calls", ":", "PUT", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "collaborators", "/", ":", "user", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "collaborators", ">", "_", ":", "param", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L774-L800
[ "def", "add_to_collaborators", "(", "self", ",", "collaborator", ",", "permission", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "(", "collaborator", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", "or", "isinsta...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.get_collaborator_permission
:calls: `GET /repos/:owner/:repo/collaborators/:username/permission <http://developer.github.com/v3/repos/collaborators>`_ :param collaborator: string or :class:`github.NamedUser.NamedUser` :rtype: string
github/Repository.py
def get_collaborator_permission(self, collaborator): """ :calls: `GET /repos/:owner/:repo/collaborators/:username/permission <http://developer.github.com/v3/repos/collaborators>`_ :param collaborator: string or :class:`github.NamedUser.NamedUser` :rtype: string """ assert...
def get_collaborator_permission(self, collaborator): """ :calls: `GET /repos/:owner/:repo/collaborators/:username/permission <http://developer.github.com/v3/repos/collaborators>`_ :param collaborator: string or :class:`github.NamedUser.NamedUser` :rtype: string """ assert...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "collaborators", "/", ":", "username", "/", "permission", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "collaborators", ">"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L802-L815
[ "def", "get_collaborator_permission", "(", "self", ",", "collaborator", ")", ":", "assert", "isinstance", "(", "collaborator", ",", "github", ".", "NamedUser", ".", "NamedUser", ")", "or", "isinstance", "(", "collaborator", ",", "(", "str", ",", "unicode", ")"...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.compare
:calls: `GET /repos/:owner/:repo/compare/:base...:head <http://developer.github.com/v3/repos/commits>`_ :param base: string :param head: string :rtype: :class:`github.Comparison.Comparison`
github/Repository.py
def compare(self, base, head): """ :calls: `GET /repos/:owner/:repo/compare/:base...:head <http://developer.github.com/v3/repos/commits>`_ :param base: string :param head: string :rtype: :class:`github.Comparison.Comparison` """ assert isinstance(base, (str, unico...
def compare(self, base, head): """ :calls: `GET /repos/:owner/:repo/compare/:base...:head <http://developer.github.com/v3/repos/commits>`_ :param base: string :param head: string :rtype: :class:`github.Comparison.Comparison` """ assert isinstance(base, (str, unico...
[ ":", "calls", ":", "GET", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "compare", "/", ":", "base", "...", ":", "head", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "commits", ">", "_", ":...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L817-L830
[ "def", "compare", "(", "self", ",", "base", ",", "head", ")", ":", "assert", "isinstance", "(", "base", ",", "(", "str", ",", "unicode", ")", ")", ",", "base", "assert", "isinstance", "(", "head", ",", "(", "str", ",", "unicode", ")", ")", ",", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_git_blob
:calls: `POST /repos/:owner/:repo/git/blobs <http://developer.github.com/v3/git/blobs>`_ :param content: string :param encoding: string :rtype: :class:`github.GitBlob.GitBlob`
github/Repository.py
def create_git_blob(self, content, encoding): """ :calls: `POST /repos/:owner/:repo/git/blobs <http://developer.github.com/v3/git/blobs>`_ :param content: string :param encoding: string :rtype: :class:`github.GitBlob.GitBlob` """ assert isinstance(content, (str, u...
def create_git_blob(self, content, encoding): """ :calls: `POST /repos/:owner/:repo/git/blobs <http://developer.github.com/v3/git/blobs>`_ :param content: string :param encoding: string :rtype: :class:`github.GitBlob.GitBlob` """ assert isinstance(content, (str, u...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "git", "/", "blobs", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "git", "/", "blobs", ">", "_", ":", "param", "content", ":", "st...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L832-L850
[ "def", "create_git_blob", "(", "self", ",", "content", ",", "encoding", ")", ":", "assert", "isinstance", "(", "content", ",", "(", "str", ",", "unicode", ")", ")", ",", "content", "assert", "isinstance", "(", "encoding", ",", "(", "str", ",", "unicode",...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_git_commit
:calls: `POST /repos/:owner/:repo/git/commits <http://developer.github.com/v3/git/commits>`_ :param message: string :param tree: :class:`github.GitTree.GitTree` :param parents: list of :class:`github.GitCommit.GitCommit` :param author: :class:`github.InputGitAuthor.InputGitAuthor` ...
github/Repository.py
def create_git_commit(self, message, tree, parents, author=github.GithubObject.NotSet, committer=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/git/commits <http://developer.github.com/v3/git/commits>`_ :param message: string :param tree: :class:`github.GitTree.GitTre...
def create_git_commit(self, message, tree, parents, author=github.GithubObject.NotSet, committer=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/git/commits <http://developer.github.com/v3/git/commits>`_ :param message: string :param tree: :class:`github.GitTree.GitTre...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "git", "/", "commits", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "git", "/", "commits", ">", "_", ":", "param", "message", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L852-L881
[ "def", "create_git_commit", "(", "self", ",", "message", ",", "tree", ",", "parents", ",", "author", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "committer", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_git_ref
:calls: `POST /repos/:owner/:repo/git/refs <http://developer.github.com/v3/git/refs>`_ :param ref: string :param sha: string :rtype: :class:`github.GitRef.GitRef`
github/Repository.py
def create_git_ref(self, ref, sha): """ :calls: `POST /repos/:owner/:repo/git/refs <http://developer.github.com/v3/git/refs>`_ :param ref: string :param sha: string :rtype: :class:`github.GitRef.GitRef` """ assert isinstance(ref, (str, unicode)), ref asser...
def create_git_ref(self, ref, sha): """ :calls: `POST /repos/:owner/:repo/git/refs <http://developer.github.com/v3/git/refs>`_ :param ref: string :param sha: string :rtype: :class:`github.GitRef.GitRef` """ assert isinstance(ref, (str, unicode)), ref asser...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "git", "/", "refs", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "git", "/", "refs", ">", "_", ":", "param", "ref", ":", "string",...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L883-L901
[ "def", "create_git_ref", "(", "self", ",", "ref", ",", "sha", ")", ":", "assert", "isinstance", "(", "ref", ",", "(", "str", ",", "unicode", ")", ")", ",", "ref", "assert", "isinstance", "(", "sha", ",", "(", "str", ",", "unicode", ")", ")", ",", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_git_release
:calls: `POST /repos/:owner/:repo/releases <http://developer.github.com/v3/repos/releases>`_ :param tag: string :param name: string :param message: string :param draft: bool :param prerelease: bool :param target_commitish: string or :class:`github.Branch.Branch` or :class...
github/Repository.py
def create_git_release(self, tag, name, message, draft=False, prerelease=False, target_commitish=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/releases <http://developer.github.com/v3/repos/releases>`_ :param tag: string :param name: string :param message: st...
def create_git_release(self, tag, name, message, draft=False, prerelease=False, target_commitish=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/releases <http://developer.github.com/v3/repos/releases>`_ :param tag: string :param name: string :param message: st...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "releases", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "releases", ">", "_", ":", "param", "tag", ":", "string", ":"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L907-L942
[ "def", "create_git_release", "(", "self", ",", "tag", ",", "name", ",", "message", ",", "draft", "=", "False", ",", "prerelease", "=", "False", ",", "target_commitish", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "(...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_git_tag
:calls: `POST /repos/:owner/:repo/git/tags <http://developer.github.com/v3/git/tags>`_ :param tag: string :param message: string :param object: string :param type: string :param tagger: :class:`github.InputGitAuthor.InputGitAuthor` :rtype: :class:`github.GitTag.GitTag`
github/Repository.py
def create_git_tag(self, tag, message, object, type, tagger=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/git/tags <http://developer.github.com/v3/git/tags>`_ :param tag: string :param message: string :param object: string :param type: string ...
def create_git_tag(self, tag, message, object, type, tagger=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/git/tags <http://developer.github.com/v3/git/tags>`_ :param tag: string :param message: string :param object: string :param type: string ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "git", "/", "tags", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "git", "/", "tags", ">", "_", ":", "param", "tag", ":", "string",...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L944-L972
[ "def", "create_git_tag", "(", "self", ",", "tag", ",", "message", ",", "object", ",", "type", ",", "tagger", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "(", "tag", ",", "(", "str", ",", "unicode", ")", ")", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_git_tree
:calls: `POST /repos/:owner/:repo/git/trees <http://developer.github.com/v3/git/trees>`_ :param tree: list of :class:`github.InputGitTreeElement.InputGitTreeElement` :param base_tree: :class:`github.GitTree.GitTree` :rtype: :class:`github.GitTree.GitTree`
github/Repository.py
def create_git_tree(self, tree, base_tree=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/git/trees <http://developer.github.com/v3/git/trees>`_ :param tree: list of :class:`github.InputGitTreeElement.InputGitTreeElement` :param base_tree: :class:`github.GitTree.GitTre...
def create_git_tree(self, tree, base_tree=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/git/trees <http://developer.github.com/v3/git/trees>`_ :param tree: list of :class:`github.InputGitTreeElement.InputGitTreeElement` :param base_tree: :class:`github.GitTree.GitTre...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "git", "/", "trees", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "git", "/", "trees", ">", "_", ":", "param", "tree", ":", "list"...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L974-L993
[ "def", "create_git_tree", "(", "self", ",", "tree", ",", "base_tree", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "all", "(", "isinstance", "(", "element", ",", "github", ".", "InputGitTreeElement", ")", "for", "element", "in", "...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_issue
:calls: `POST /repos/:owner/:repo/issues <http://developer.github.com/v3/issues>`_ :param title: string :param body: string :param assignee: string or :class:`github.NamedUser.NamedUser` :param assignees: list (of string or :class:`github.NamedUser.NamedUser`) :param milestone: :...
github/Repository.py
def create_issue(self, title, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, assignees=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/issues <http://developer.github.com/v3/issues>`_ ...
def create_issue(self, title, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, assignees=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/issues <http://developer.github.com/v3/issues>`_ ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "issues", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", ">", "_", ":", "param", "title", ":", "string", ":", "param", "body...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L1023-L1062
[ "def", "create_issue", "(", "self", ",", "title", ",", "body", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "assignee", "=", "github", ".", "GithubObject", ".", "NotSet", ",", "milestone", "=", "github", ".", "GithubObject", ".", "NotSet", ",", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_key
:calls: `POST /repos/:owner/:repo/keys <http://developer.github.com/v3/repos/keys>`_ :param title: string :param key: string :param read_only: bool :rtype: :class:`github.RepositoryKey.RepositoryKey`
github/Repository.py
def create_key(self, title, key, read_only=False): """ :calls: `POST /repos/:owner/:repo/keys <http://developer.github.com/v3/repos/keys>`_ :param title: string :param key: string :param read_only: bool :rtype: :class:`github.RepositoryKey.RepositoryKey` """ ...
def create_key(self, title, key, read_only=False): """ :calls: `POST /repos/:owner/:repo/keys <http://developer.github.com/v3/repos/keys>`_ :param title: string :param key: string :param read_only: bool :rtype: :class:`github.RepositoryKey.RepositoryKey` """ ...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "keys", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "keys", ">", "_", ":", "param", "title", ":", "string", ":", "p...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L1064-L1085
[ "def", "create_key", "(", "self", ",", "title", ",", "key", ",", "read_only", "=", "False", ")", ":", "assert", "isinstance", "(", "title", ",", "(", "str", ",", "unicode", ")", ")", ",", "title", "assert", "isinstance", "(", "key", ",", "(", "str", ...
f716df86bbe7dc276c6596699fa9712b61ef974c
train
Repository.create_label
:calls: `POST /repos/:owner/:repo/labels <http://developer.github.com/v3/issues/labels>`_ :param name: string :param color: string :param description: string :rtype: :class:`github.Label.Label`
github/Repository.py
def create_label(self, name, color, description=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/labels <http://developer.github.com/v3/issues/labels>`_ :param name: string :param color: string :param description: string :rtype: :class:`github.Label.Labe...
def create_label(self, name, color, description=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/labels <http://developer.github.com/v3/issues/labels>`_ :param name: string :param color: string :param description: string :rtype: :class:`github.Label.Labe...
[ ":", "calls", ":", "POST", "/", "repos", "/", ":", "owner", "/", ":", "repo", "/", "labels", "<http", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "issues", "/", "labels", ">", "_", ":", "param", "name", ":", "string", ":", ...
PyGithub/PyGithub
python
https://github.com/PyGithub/PyGithub/blob/f716df86bbe7dc276c6596699fa9712b61ef974c/github/Repository.py#L1087-L1110
[ "def", "create_label", "(", "self", ",", "name", ",", "color", ",", "description", "=", "github", ".", "GithubObject", ".", "NotSet", ")", ":", "assert", "isinstance", "(", "name", ",", "(", "str", ",", "unicode", ")", ")", ",", "name", "assert", "isin...
f716df86bbe7dc276c6596699fa9712b61ef974c