hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4390f797c460927cf5d18b028a6849ca63e3232
| 8,990
|
py
|
Python
|
src/models/lightning_model.py
|
LuizPitaAlmeida/image_caption_generator
|
e368b9f23ef283856a42f78b724d3181245b27de
|
[
"Apache-2.0"
] | null | null | null |
src/models/lightning_model.py
|
LuizPitaAlmeida/image_caption_generator
|
e368b9f23ef283856a42f78b724d3181245b27de
|
[
"Apache-2.0"
] | null | null | null |
src/models/lightning_model.py
|
LuizPitaAlmeida/image_caption_generator
|
e368b9f23ef283856a42f78b724d3181245b27de
|
[
"Apache-2.0"
] | null | null | null |
"""lightning_model
The Pytorch Lightning is a software package over Pytorch that tries to free
scientists of software engineering's problems. It is used to organize Pytorch
codes in a simple style giving to scientist a easily way to modeling, train,
valid and test deep learning models.
Please, read more in (<https://github.com/PyTorchLightning/pytorch-lightning>)
This code refers to Pytorch lightning model module. Which contains the train
and valid algorithm of the Encoder-Decoder model for image captioning
generation.
It was designed to run in a GPU.
"""
import numpy as np
import torch
from torch.nn.utils.rnn import pack_padded_sequence
import pytorch_lightning as pl
from nltk.translate.bleu_score import corpus_bleu
from hardware_stats import HardwareStats
from decoder import Decoder
from encoder import Encoder
class ImageCaptioning(pl.LightningModule):
"""Encoder-Decoder Image Caption Model"""
def __init__(self, train_loader, valid_loader, vocab):
super().__init__()
self.train_loader = train_loader
self.valid_loader = valid_loader
self.encoder = Encoder().cuda()
self.decoder = Decoder(vocab=vocab).cuda()
self.loss = torch.nn.CrossEntropyLoss()
# Keep validation results
self.references = []
self.hypotheses = []
self.PAD = 0
self.START = 1
self.END = 2
self.UNK = 3
self.hardware_stats = HardwareStats()
def forward(self, x):
images, captions_ids, captions_len = x
encoder_out = self.encoder(images.cuda())
outputs = self.decoder(
encoder_out, captions_ids.cuda(), captions_len)
return outputs
def training_step(self, x, batch_idx):
predictions, captions_id, decoded_lengths, alphas = self(x)
scores = pack_padded_sequence(
predictions, decoded_lengths, batch_first=True).data
y = captions_id[:, 1:]
y = pack_padded_sequence(y, decoded_lengths, batch_first=True)[0]
loss = self.loss(scores.cuda(), y.cuda())
loss += ((1. - alphas.cuda().sum(dim=1)) ** 2).mean()
loss.cuda()
return {"loss": loss, "log": {"loss": loss},
"progress_bar": self.hardware_stats.hardware_stats()}
def validation_step(self, x, batch_idx):
predictions, captions_id, decoded_lengths, alphas = self(x)
scores = pack_padded_sequence(
predictions, decoded_lengths, batch_first=True).data
# Calc loss
y = captions_id[:, 1:]
y = pack_padded_sequence(y, decoded_lengths, batch_first=True).data
loss = self.loss(scores.cuda(), y.cuda())
loss += (((1. - alphas.cuda().sum(dim=1)) ** 2).mean())
loss.cuda()
# References
original_caption = []
targets = captions_id[:, 1:]
for j in range(targets.shape[0]):
# validation dataset only has 1 unique caption per img
img_caps = targets[j].tolist()
# remove pad, start, and end
clean_cap = [w for w in img_caps
if w not in [self.PAD, self.START, self.END]]
img_caption = list(map(lambda c: clean_cap, img_caps))
self.references.append(img_caption)
original_caption.append(clean_cap)
# Hypotheses
_, preds = torch.max(predictions, dim=2)
preds = preds.tolist()
temp_preds = list()
for j, p in enumerate(preds):
pred = p[:decoded_lengths[j]]
pred = [w for w in pred
if w not in [self.PAD, self.START, self.END]]
temp_preds.append(pred)
preds = temp_preds
self.hypotheses.extend(preds)
progress_bar = self.hardware_stats.hardware_stats()
progress_bar.update({"loss": loss})
return {"loss": loss, "preds": preds, "img_captions": original_caption,
"progress_bar": progress_bar}
def test_step(self, x, batch_idx):
predictions, captions_id, decoded_lengths, alphas = self(x)
scores = pack_padded_sequence(
predictions, decoded_lengths, batch_first=True).data
# Calc loss
y = captions_id[:, 1:]
y = pack_padded_sequence(y, decoded_lengths, batch_first=True).data
loss = self.loss(scores.cuda(), y.cuda())
loss += (((1. - alphas.cuda().sum(dim=1)) ** 2).mean())
loss.cuda()
# References
original_caption = []
targets = captions_id[:, 1:]
for j in range(targets.shape[0]):
# validation dataset only has 1 unique caption per img
img_caps = targets[j].tolist()
# remove pad, start, and end
clean_cap = [w for w in img_caps
if w not in [self.PAD, self.START, self.END]]
img_caption = list(map(lambda c: clean_cap, img_caps))
self.references.append(img_caption)
original_caption.append(clean_cap)
# Hypotheses
_, preds = torch.max(predictions, dim=2)
preds = preds.tolist()
temp_preds = list()
for j, p in enumerate(preds):
pred = p[:decoded_lengths[j]]
pred = [w for w in pred
if w not in [self.PAD, self.START, self.END]]
temp_preds.append(pred)
preds = temp_preds
self.hypotheses.extend(preds)
progress_bar = self.hardware_stats.hardware_stats()
progress_bar.update({"loss": loss})
return {"loss": loss, "preds": preds, "img_captions": original_caption,
"progress_bar": progress_bar}
def training_epoch_end(self, outputs):
avg_loss = torch.stack([x["batch_loss"] for x in outputs]).mean()
return {"log": {"train_loss": avg_loss}}
def validation_epoch_end(self, outputs):
val_loss = torch.stack([x["loss"] for x in outputs]).mean()
references = [x["img_captions"] for x in outputs]
hypotheses = [x["preds"] for x in outputs]
bleu = corpus_bleu(self.references, self.hypotheses)
bleu_1 = corpus_bleu(self.references, self.hypotheses,
weights=(1, 0, 0, 0))
bleu_2 = corpus_bleu(self.references, self.hypotheses,
weights=(0, 1, 0, 0))
bleu_3 = corpus_bleu(self.references, self.hypotheses,
weights=(0, 0, 1, 0))
bleu_4 = corpus_bleu(self.references, self.hypotheses,
weights=(0, 0, 0, 1))
print("Validation loss:", val_loss)
print("BLEU:", bleu)
print("BLEU-1:", bleu_1)
print("BLEU-2:", bleu_2)
print("BLEU-3:", bleu_3)
print("BLEU-4:", bleu_4)
tensorboard_logs = {"val_loss": val_loss, "bleu": bleu,
"bleu_1": bleu_1, "bleu_2": bleu_2,
"bleu_3": bleu_3, "bleu_4": bleu_4}
torch.cuda.empty_cache()
self.references.clear()
self.hypotheses.clear()
return {"val_loss": val_loss, "bleu": bleu, "bleu_1": bleu_1,
"bleu_2": bleu_2, "bleu_3": bleu_3, "bleu_4": bleu_4,
"log": tensorboard_logs, "progress_bar": tensorboard_logs}
def test_epoch_end(self, outputs):
val_loss = torch.stack([x["loss"] for x in outputs]).mean()
references = [x["img_captions"] for x in outputs]
hypotheses = [x["preds"] for x in outputs]
bleu = corpus_bleu(self.references, self.hypotheses)
bleu_1 = corpus_bleu(self.references, self.hypotheses,
weights=(1, 0, 0, 0))
bleu_2 = corpus_bleu(self.references, self.hypotheses,
weights=(0, 1, 0, 0))
bleu_3 = corpus_bleu(self.references, self.hypotheses,
weights=(0, 0, 1, 0))
bleu_4 = corpus_bleu(self.references, self.hypotheses,
weights=(0, 0, 0, 1))
print("Validation loss:", val_loss)
print("BLEU:", bleu)
print("BLEU-1:", bleu_1)
print("BLEU-2:", bleu_2)
print("BLEU-3:", bleu_3)
print("BLEU-4:", bleu_4)
tensorboard_logs = {"val_loss": val_loss, "bleu": bleu,
"bleu_1": bleu_1, "bleu_2": bleu_2,
"bleu_3": bleu_3, "bleu_4": bleu_4}
torch.cuda.empty_cache()
self.references.clear()
self.hypotheses.clear()
return {"val_loss": val_loss, "bleu": bleu, "bleu_1": bleu_1,
"bleu_2": bleu_2, "bleu_3": bleu_3, "bleu_4": bleu_4,
"log": tensorboard_logs, "progress_bar": tensorboard_logs}
def configure_optimizers(self):
return torch.optim.Adam(self.parameters())
def train_dataloader(self):
return self.train_loader
def val_dataloader(self):
return self.valid_loader
def test_dataloader(self):
return self.valid_loader
| 37.302905
| 79
| 0.593548
| 1,137
| 8,990
| 4.502199
| 0.165347
| 0.041024
| 0.038679
| 0.060168
| 0.71889
| 0.71889
| 0.701114
| 0.693104
| 0.693104
| 0.693104
| 0
| 0.017717
| 0.290545
| 8,990
| 240
| 80
| 37.458333
| 0.784886
| 0.093548
| 0
| 0.725146
| 0
| 0
| 0.053402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.070175
| false
| 0
| 0.046784
| 0.023392
| 0.187135
| 0.070175
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b44265563a4b224f2ba42e4c04043099491c6a76
| 85
|
py
|
Python
|
konichiwa/__main__.py
|
olooney/the-perfect-hello-world
|
e10e7fa9efeea7f9d86577d6108c84f050588cc3
|
[
"Apache-2.0"
] | null | null | null |
konichiwa/__main__.py
|
olooney/the-perfect-hello-world
|
e10e7fa9efeea7f9d86577d6108c84f050588cc3
|
[
"Apache-2.0"
] | null | null | null |
konichiwa/__main__.py
|
olooney/the-perfect-hello-world
|
e10e7fa9efeea7f9d86577d6108c84f050588cc3
|
[
"Apache-2.0"
] | null | null | null |
"""Expose Konichiwa CLI"""
from . import main
if __name__ == '__main__':
main()
| 14.166667
| 26
| 0.635294
| 10
| 85
| 4.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 85
| 5
| 27
| 17
| 0.676471
| 0.235294
| 0
| 0
| 0
| 0
| 0.135593
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b4449dffae966e5aa10c7578c07053c13df3f37e
| 525
|
py
|
Python
|
arpeggio/error_classes.py
|
bitranox/Arpeggio
|
62151cb8ef2cfe5113a4388da09892e7714c5e96
|
[
"MIT"
] | null | null | null |
arpeggio/error_classes.py
|
bitranox/Arpeggio
|
62151cb8ef2cfe5113a4388da09892e7714c5e96
|
[
"MIT"
] | null | null | null |
arpeggio/error_classes.py
|
bitranox/Arpeggio
|
62151cb8ef2cfe5113a4388da09892e7714c5e96
|
[
"MIT"
] | null | null | null |
class ArpeggioError(Exception):
"""
Base class for arpeggio errors.
"""
def __init__(self, message: str) -> None:
self.message = message
def __str__(self) -> str:
return repr(self.message)
class GrammarError(ArpeggioError):
"""
Error raised during parser building phase used to indicate error in the
grammar definition.
"""
class SemanticError(ArpeggioError):
"""
Error raised during the phase of semantic analysis used to indicate
semantic error.
"""
| 21.875
| 75
| 0.659048
| 58
| 525
| 5.827586
| 0.568966
| 0.097633
| 0.142012
| 0.177515
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.251429
| 525
| 23
| 76
| 22.826087
| 0.860051
| 0.394286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.142857
| 0.857143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
b45b99a657852c7586921f8b497bdf79c7dff2f5
| 104
|
py
|
Python
|
cloud_scanner_generic/simulators/__init__.py
|
Microsoft/cloud-scanner-generic
|
ef3cc01d64fd1857245049ce4ec23f1856eee46f
|
[
"MIT"
] | 4
|
2019-06-22T14:33:43.000Z
|
2021-04-20T16:18:28.000Z
|
cloud_scanner_generic/simulators/__init__.py
|
microsoft/cloud-scanner-generic
|
ef3cc01d64fd1857245049ce4ec23f1856eee46f
|
[
"MIT"
] | null | null | null |
cloud_scanner_generic/simulators/__init__.py
|
microsoft/cloud-scanner-generic
|
ef3cc01d64fd1857245049ce4ec23f1856eee46f
|
[
"MIT"
] | 5
|
2019-11-03T22:54:49.000Z
|
2020-08-05T14:39:06.000Z
|
from cloud_scanner_generic.simulators.resource_service_simulator import (
ResourceServiceSimulator)
| 34.666667
| 73
| 0.875
| 10
| 104
| 8.7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086538
| 104
| 2
| 74
| 52
| 0.915789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b46653a095014805e98a9ef835475608106eddb1
| 652
|
py
|
Python
|
graspologic/__init__.py
|
PSSF23/graspologic
|
d5ae48d0481b6a60fa580158c2e9bae9cc506a9d
|
[
"MIT"
] | null | null | null |
graspologic/__init__.py
|
PSSF23/graspologic
|
d5ae48d0481b6a60fa580158c2e9bae9cc506a9d
|
[
"MIT"
] | null | null | null |
graspologic/__init__.py
|
PSSF23/graspologic
|
d5ae48d0481b6a60fa580158c2e9bae9cc506a9d
|
[
"MIT"
] | null | null | null |
# Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .version.version import name, version as __version__
import warnings
import graspologic.align
import graspologic.cluster
import graspologic.datasets
import graspologic.embed
import graspologic.inference
import graspologic.models
import graspologic.preprocessing
import graspologic.plot
import graspologic.simulations
import graspologic.subgraph
import graspologic.utils
warnings.filterwarnings("ignore", category=RuntimeWarning)
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
warnings.simplefilter("always", category=UserWarning)
| 28.347826
| 69
| 0.854294
| 69
| 652
| 8.014493
| 0.536232
| 0.338156
| 0.101266
| 0.130199
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082822
| 652
| 22
| 70
| 29.636364
| 0.924749
| 0.130368
| 0
| 0
| 0
| 0
| 0.031915
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8125
| 0
| 0.8125
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b46ba398860d2c489049a7e294a0a7345d941afb
| 19,257
|
py
|
Python
|
Recommender.py
|
shan4224/Predict-Ratings
|
4630a6e1a2daa2f2f410a48824d8521fec4601e6
|
[
"MIT"
] | null | null | null |
Recommender.py
|
shan4224/Predict-Ratings
|
4630a6e1a2daa2f2f410a48824d8521fec4601e6
|
[
"MIT"
] | null | null | null |
Recommender.py
|
shan4224/Predict-Ratings
|
4630a6e1a2daa2f2f410a48824d8521fec4601e6
|
[
"MIT"
] | null | null | null |
# Importing some libraries
import graphlab as gl
import numpy as np
import pandas as pd
import os
from sklearn.preprocessing import MinMaxScaler
from sklearn.linear_model import LinearRegression
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import RandomForestRegressor
# Import Files
train = pd.read_csv('train_MLWARE2.csv')
test = pd.read_csv('test_MLWARE2.csv')
#Preparing Data frame
trainId = train['ID']
train = train.drop(['ID'],axis = 1)
train.columns = ['user_id','item_id','rating']
trainSF = gl.SFrame(train)
testId = test['ID']
test = test.drop(['ID'],axis = 1)
test.columns = ['user_id','item_id']
testSF = gl.SFrame(test)
# Modeling : Graphlab - 100 models
mf_rating1 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1, num_factors = 4)
mf_rating2 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 2, num_factors = 4)
mf_rating3 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 3, num_factors = 4)
mf_rating4 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 4, num_factors = 4)
mf_rating5 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 5, num_factors = 4)
mf_rating6 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 50, num_factors = 4)
mf_rating7 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 60, num_factors = 4)
mf_rating8 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 70, num_factors = 4)
mf_rating9 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 80, num_factors = 4)
mf_rating10 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 90, num_factors = 4)
mf_rating11 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1000, num_factors = 8)
mf_rating12 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 2000, num_factors = 8)
mf_rating13 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 3000, num_factors = 8)
mf_rating14 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 4000, num_factors = 8)
mf_rating15 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 5000, num_factors = 8)
mf_rating16 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =600, num_factors = 8)
mf_rating17 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 700, num_factors = 8)
mf_rating18 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 800, num_factors = 8)
mf_rating19 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 900, num_factors = 8)
mf_rating20 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1001, num_factors = 8)
mf_rating21 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1002, num_factors = 8)
mf_rating22 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 2001, num_factors = 8)
mf_rating23 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 3001, num_factors = 8)
mf_rating24 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 4001, num_factors = 8)
mf_rating25 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 5001, num_factors = 8)
mf_rating26 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =6001, num_factors = 8)
mf_rating27 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 701, num_factors = 8)
mf_rating28 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 801, num_factors = 8)
mf_rating29 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 901, num_factors = 8)
mf_rating30 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1001, num_factors = 8)
mf_rating31 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1003, num_factors = 8)
mf_rating32 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 2003, num_factors = 8)
mf_rating33 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 3003, num_factors = 8)
mf_rating34 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 4003, num_factors = 8)
mf_rating35 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 5003, num_factors = 8)
mf_rating36 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =6003, num_factors = 8)
mf_rating37 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 703, num_factors = 8)
mf_rating38 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 803, num_factors = 8)
mf_rating39 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 903, num_factors = 8)
mf_rating40 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1003, num_factors = 8)
mf_rating41 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1002, num_factors = 8)
mf_rating42 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 2001, num_factors = 8)
mf_rating43 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 3001, num_factors = 8)
mf_rating44 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 4001, num_factors = 8)
mf_rating45 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 5001, num_factors = 8)
mf_rating46 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =6001, num_factors = 8)
mf_rating47 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 701, num_factors = 8)
mf_rating48 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 801, num_factors = 8)
mf_rating49 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 901, num_factors = 8)
mf_rating50 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1001, num_factors = 8)
mf_rating51 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 10001, num_factors = 8)
mf_rating52 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 20001, num_factors = 8)
mf_rating53 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 30001, num_factors = 8)
mf_rating54 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 40001, num_factors = 8)
mf_rating55 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 50001, num_factors = 8)
mf_rating56 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =60001, num_factors = 8)
mf_rating57 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 7001, num_factors = 8)
mf_rating58 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 8001, num_factors = 8)
mf_rating59 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 9001, num_factors = 8)
mf_rating60 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 10001, num_factors = 8)
mf_rating61 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 10002, num_factors = 8)
mf_rating62 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 20001, num_factors = 8)
mf_rating63 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 30001, num_factors = 8)
mf_rating64 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 40001, num_factors = 8)
mf_rating65 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 50001, num_factors = 8)
mf_rating66 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =60001, num_factors = 8)
mf_rating67 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 70001, num_factors = 8)
mf_rating68 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 80001, num_factors = 8)
mf_rating69 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 90001, num_factors = 8)
mf_rating70 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 100001, num_factors = 8)
mf_rating71 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 10020, num_factors = 8)
mf_rating72 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 20010, num_factors = 8)
mf_rating73 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 30010, num_factors = 8)
mf_rating74 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 40010, num_factors = 8)
mf_rating75 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 50010, num_factors = 8)
mf_rating76 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =60010, num_factors = 8)
mf_rating77 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 7010, num_factors = 8)
mf_rating78 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 8010, num_factors = 8)
mf_rating79 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 9010, num_factors = 8)
mf_rating80 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 10010, num_factors = 8)
mf_rating81 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 100200, num_factors = 8)
mf_rating82 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 200100, num_factors = 8)
mf_rating83 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 300100, num_factors = 8)
mf_rating84 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 400100, num_factors = 8)
mf_rating85 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 500100, num_factors = 8)
mf_rating86 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =600100, num_factors = 8)
mf_rating87 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 70100, num_factors = 8)
mf_rating88 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 80100, num_factors = 8)
mf_rating89 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 90100, num_factors = 8)
mf_rating90 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 100100, num_factors = 8)
mf_rating91 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 1002000, num_factors = 8)
mf_rating92 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 2001000, num_factors = 8)
mf_rating93 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 3001000, num_factors = 8)
mf_rating94 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 4001000, num_factors = 8)
mf_rating95 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 5001000, num_factors = 8)
mf_rating96 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed =60010000, num_factors = 8)
mf_rating97 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 7010000, num_factors = 8)
mf_rating98 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 8010000, num_factors = 8)
mf_rating99 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 9010000, num_factors = 8)
mf_rating100 = gl.factorization_recommender.create(trainSF, target='rating',linear_regularization = 0.001,random_seed = 10010000, num_factors = 8)
## Result combiner : Simple Average
result = pd.DataFrame(testId)
result['rating'] = (mf_rating1.predict(testSF) + mf_rating2.predict(testSF) + \
mf_rating3.predict(testSF) + mf_rating4.predict(testSF) + \
mf_rating5.predict(testSF) + mf_rating6.predict(testSF) + \
mf_rating7.predict(testSF) + mf_rating8.predict(testSF) + \
mf_rating9.predict(testSF) + mf_rating10.predict(testSF) +
mf_rating11.predict(testSF) + mf_rating12.predict(testSF) + \
mf_rating13.predict(testSF) + mf_rating14.predict(testSF) + \
mf_rating15.predict(testSF) + mf_rating16.predict(testSF) + \
mf_rating17.predict(testSF) + mf_rating18.predict(testSF) + \
mf_rating19.predict(testSF) + mf_rating20.predict(testSF) + \
mf_rating21.predict(testSF) + mf_rating22.predict(testSF) + \
mf_rating23.predict(testSF) + mf_rating24.predict(testSF) + \
mf_rating25.predict(testSF) + mf_rating26.predict(testSF) + \
mf_rating27.predict(testSF) + mf_rating28.predict(testSF) + \
mf_rating29.predict(testSF) + mf_rating30.predict(testSF) +
mf_rating31.predict(testSF) + mf_rating32.predict(testSF) + \
mf_rating33.predict(testSF) + mf_rating34.predict(testSF) + \
mf_rating35.predict(testSF) + mf_rating36.predict(testSF) + \
mf_rating37.predict(testSF) + mf_rating38.predict(testSF) + \
mf_rating39.predict(testSF) + mf_rating40.predict(testSF) +
mf_rating41.predict(testSF) + mf_rating42.predict(testSF) + \
mf_rating43.predict(testSF) + mf_rating44.predict(testSF) + \
mf_rating45.predict(testSF) + mf_rating46.predict(testSF) + \
mf_rating47.predict(testSF) + mf_rating48.predict(testSF) + \
mf_rating49.predict(testSF) + mf_rating50.predict(testSF) + \
mf_rating51.predict(testSF) + mf_rating52.predict(testSF) + \
mf_rating53.predict(testSF) + mf_rating54.predict(testSF) + \
mf_rating55.predict(testSF) + mf_rating56.predict(testSF) + \
mf_rating57.predict(testSF) + mf_rating58.predict(testSF) + \
mf_rating59.predict(testSF) + mf_rating60.predict(testSF) +
mf_rating61.predict(testSF) + mf_rating62.predict(testSF) + \
mf_rating63.predict(testSF) + mf_rating64.predict(testSF) + \
mf_rating65.predict(testSF) + mf_rating66.predict(testSF) + \
mf_rating67.predict(testSF) + mf_rating68.predict(testSF) + \
mf_rating69.predict(testSF) + mf_rating70.predict(testSF) + \
mf_rating71.predict(testSF) + mf_rating72.predict(testSF) + \
mf_rating73.predict(testSF) + mf_rating74.predict(testSF) + \
mf_rating75.predict(testSF) + mf_rating76.predict(testSF) + \
mf_rating77.predict(testSF) + mf_rating78.predict(testSF) + \
mf_rating79.predict(testSF) + mf_rating80.predict(testSF) +
mf_rating81.predict(testSF) + mf_rating82.predict(testSF) + \
mf_rating83.predict(testSF) + mf_rating84.predict(testSF) + \
mf_rating85.predict(testSF) + mf_rating86.predict(testSF) + \
mf_rating87.predict(testSF) + mf_rating88.predict(testSF) + \
mf_rating89.predict(testSF) + mf_rating90.predict(testSF) +
mf_rating91.predict(testSF) + mf_rating92.predict(testSF) + \
mf_rating93.predict(testSF) + mf_rating94.predict(testSF) + \
mf_rating95.predict(testSF) + mf_rating96.predict(testSF) + \
mf_rating97.predict(testSF) + mf_rating98.predict(testSF) + \
mf_rating99.predict(testSF) + mf_rating100.predict(testSF)) / 100
# Keeping everything b/w 0 & 10
result.ix[result['rating'] > 10,'rating'] = 10
result.ix[result['rating'] < 0,'rating'] = 0
result.to_csv('Avg_ensemble.csv',index = False)
| 101.888889
| 146
| 0.759776
| 2,439
| 19,257
| 5.748257
| 0.105781
| 0.10699
| 0.185449
| 0.228245
| 0.654993
| 0.649144
| 0.649144
| 0.649144
| 0.649144
| 0.649144
| 0
| 0.079674
| 0.127278
| 19,257
| 188
| 147
| 102.430851
| 0.754552
| 0.007997
| 0
| 0
| 0
| 0
| 0.037768
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.046512
| 0
| 0.046512
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b478e81dfa6cae7a7e38db74b67f745df7672733
| 527
|
py
|
Python
|
src/python/algorithms/find_next_square.py
|
Binjaaa/CodeWarsOldRepublic
|
6d27ef9426f956243fdcf908898856815cfe022d
|
[
"MIT"
] | null | null | null |
src/python/algorithms/find_next_square.py
|
Binjaaa/CodeWarsOldRepublic
|
6d27ef9426f956243fdcf908898856815cfe022d
|
[
"MIT"
] | 6
|
2017-11-16T11:05:31.000Z
|
2017-12-03T18:31:07.000Z
|
src/python/algorithms/find_next_square.py
|
Binjaaa/CodeWarsOldRepublic
|
6d27ef9426f956243fdcf908898856815cfe022d
|
[
"MIT"
] | null | null | null |
import math
def find_next_square(sq):
if sq > 0 and sq % (math.sqrt(sq)) == 0:
return (math.sqrt(sq)+1)**2
else:
return -1
print find_next_square(-1)
print find_next_square(0)
print find_next_square(1)
print find_next_square(121)
print find_next_square(625)
print find_next_square(114)
# Examples:
#
# findNextSquare(121) --> returns 144
# findNextSquare(625) --> returns 676
# findNextSquare(114) --> returns -1 since 114 is not a perfect
# https://www.codewars.com/kata/find-the-next-perfect-square
| 25.095238
| 63
| 0.709677
| 84
| 527
| 4.285714
| 0.416667
| 0.155556
| 0.272222
| 0.316667
| 0.219444
| 0.216667
| 0.216667
| 0.216667
| 0.216667
| 0
| 0
| 0.081081
| 0.157495
| 527
| 21
| 64
| 25.095238
| 0.72973
| 0.383302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.083333
| null | null | 0.5
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
81ff36cf59b2a5cfbb708771fc46ed7ee4fdc898
| 90,153
|
py
|
Python
|
ondewo/t2s/text_to_speech_pb2.py
|
ondewo/ondewo-t2s-client-python
|
c580c934c7e0e703f81bbddeee3831919fd5f0a2
|
[
"Apache-2.0"
] | null | null | null |
ondewo/t2s/text_to_speech_pb2.py
|
ondewo/ondewo-t2s-client-python
|
c580c934c7e0e703f81bbddeee3831919fd5f0a2
|
[
"Apache-2.0"
] | null | null | null |
ondewo/t2s/text_to_speech_pb2.py
|
ondewo/ondewo-t2s-client-python
|
c580c934c7e0e703f81bbddeee3831919fd5f0a2
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: ondewo/t2s/text-to-speech.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='ondewo/t2s/text-to-speech.proto',
package='ondewo.t2s',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x1fondewo/t2s/text-to-speech.proto\x12\nondewo.t2s\x1a\x1bgoogle/protobuf/empty.proto\"L\n\x11SynthesizeRequest\x12\x0c\n\x04text\x18\x01 \x01(\t\x12)\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.ondewo.t2s.RequestConfig\"N\n\x16\x42\x61tchSynthesizeRequest\x12\x34\n\rbatch_request\x18\x01 \x03(\x0b\x32\x1d.ondewo.t2s.SynthesizeRequest\"Q\n\x17\x42\x61tchSynthesizeResponse\x12\x36\n\x0e\x62\x61tch_response\x18\x01 \x03(\x0b\x32\x1e.ondewo.t2s.SynthesizeResponse\"\xab\x02\n\rRequestConfig\x12\x17\n\x0ft2s_pipeline_id\x18\x01 \x01(\t\x12\x16\n\x0clength_scale\x18\x02 \x01(\x02H\x00\x12\x15\n\x0bnoise_scale\x18\x03 \x01(\x02H\x01\x12\x15\n\x0bsample_rate\x18\x04 \x01(\x05H\x02\x12\x1e\n\x03pcm\x18\x05 \x01(\x0e\x32\x0f.ondewo.t2s.PcmH\x03\x12/\n\x0c\x61udio_format\x18\x06 \x01(\x0e\x32\x17.ondewo.t2s.AudioFormatH\x04\x12\x13\n\tuse_cache\x18\x07 \x01(\x08H\x05\x42\x0f\n\r_length_scaleB\x0e\n\x0c_noise_scaleB\x0e\n\x0c_sample_rateB\x06\n\x04_PcmB\x0e\n\x0c_AudioFormatB\x0c\n\n_use_cache\"\x9f\x01\n\x12SynthesizeResponse\x12\x12\n\naudio_uuid\x18\x01 \x01(\t\x12\r\n\x05\x61udio\x18\x02 \x01(\x0c\x12\x17\n\x0fgeneration_time\x18\x03 \x01(\x02\x12\x14\n\x0c\x61udio_length\x18\x04 \x01(\x02\x12\x0c\n\x04text\x18\x05 \x01(\t\x12)\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x19.ondewo.t2s.RequestConfig\")\n\x16GetServiceInfoResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\"\x84\x01\n\x17ListT2sPipelinesRequest\x12\x11\n\tlanguages\x18\x01 \x03(\t\x12\x15\n\rspeaker_sexes\x18\x02 \x03(\t\x12\x17\n\x0fpipeline_owners\x18\x03 \x03(\t\x12\x15\n\rspeaker_names\x18\x04 \x03(\t\x12\x0f\n\x07\x64omains\x18\x05 \x03(\t\"L\n\x18ListT2sPipelinesResponse\x12\x30\n\tpipelines\x18\x01 \x03(\x0b\x32\x1d.ondewo.t2s.Text2SpeechConfig\"q\n\x17ListT2sLanguagesRequest\x12\x15\n\rspeaker_sexes\x18\x01 \x03(\t\x12\x17\n\x0fpipeline_owners\x18\x02 \x03(\t\x12\x15\n\rspeaker_names\x18\x03 \x03(\t\x12\x0f\n\x07\x64omains\x18\x04 \x03(\t\"-\n\x18ListT2sLanguagesResponse\x12\x11\n\tlanguages\x18\x01 \x03(\t\"q\n\x15ListT2sDomainsRequest\x12\x15\n\rspeaker_sexes\x18\x01 \x03(\t\x12\x17\n\x0fpipeline_owners\x18\x02 \x03(\t\x12\x15\n\rspeaker_names\x18\x03 \x03(\t\x12\x11\n\tlanguages\x18\x04 \x03(\t\")\n\x16ListT2sDomainsResponse\x12\x0f\n\x07\x64omains\x18\x01 \x03(\t\"\x1b\n\rT2sPipelineId\x12\n\n\x02id\x18\x01 \x01(\t\"\xed\x01\n\x11Text2SpeechConfig\x12\n\n\x02id\x18\x01 \x01(\t\x12,\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x17.ondewo.t2s.Description\x12\x0e\n\x06\x61\x63tive\x18\x03 \x01(\x08\x12(\n\tinference\x18\x04 \x01(\x0b\x32\x15.ondewo.t2s.Inference\x12\x30\n\rnormalization\x18\x05 \x01(\x0b\x32\x19.ondewo.t2s.Normalization\x12\x32\n\x0epostprocessing\x18\x06 \x01(\x0b\x32\x1a.ondewo.t2s.Postprocessing\"\x84\x01\n\x0b\x44\x65scription\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x13\n\x0bspeaker_sex\x18\x02 \x01(\t\x12\x16\n\x0epipeline_owner\x18\x03 \x01(\t\x12\x10\n\x08\x63omments\x18\x04 \x01(\t\x12\x14\n\x0cspeaker_name\x18\x05 \x01(\t\x12\x0e\n\x06\x64omain\x18\x06 \x01(\t\"|\n\tInference\x12\x0c\n\x04type\x18\x01 \x01(\t\x12;\n\x13\x63omposite_inference\x18\x02 \x01(\x0b\x32\x1e.ondewo.t2s.CompositeInference\x12$\n\x07\x63\x61\x63hing\x18\x03 \x01(\x0b\x32\x13.ondewo.t2s.Caching\"f\n\x12\x43ompositeInference\x12&\n\x08text2mel\x18\x01 \x01(\x0b\x32\x14.ondewo.t2s.Text2Mel\x12(\n\tmel2audio\x18\x02 \x01(\x0b\x32\x15.ondewo.t2s.Mel2Audio\"s\n\x08Text2Mel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12%\n\x08glow_tts\x18\x02 \x01(\x0b\x32\x13.ondewo.t2s.GlowTTS\x12\x32\n\x0fglow_tts_triton\x18\x03 \x01(\x0b\x32\x19.ondewo.t2s.GlowTTSTriton\"\x94\x01\n\x07GlowTTS\x12\x12\n\nbatch_size\x18\x01 \x01(\x03\x12\x0f\n\x07use_gpu\x18\x02 \x01(\x08\x12\x14\n\x0clength_scale\x18\x03 \x01(\x02\x12\x13\n\x0bnoise_scale\x18\x04 \x01(\x02\x12\x0c\n\x04path\x18\x05 \x01(\t\x12\x10\n\x08\x63leaners\x18\x06 \x03(\t\x12\x19\n\x11param_config_path\x18\x07 \x01(\t\"\xc3\x01\n\rGlowTTSTriton\x12\x12\n\nbatch_size\x18\x01 \x01(\x03\x12\x14\n\x0clength_scale\x18\x02 \x01(\x02\x12\x13\n\x0bnoise_scale\x18\x03 \x01(\x02\x12\x10\n\x08\x63leaners\x18\x04 \x03(\t\x12\x17\n\x0fmax_text_length\x18\x05 \x01(\x03\x12\x19\n\x11param_config_path\x18\x06 \x01(\t\x12\x12\n\ntriton_url\x18\x07 \x01(\t\x12\x19\n\x11triton_model_name\x18\x08 \x01(\t\"\xaa\x01\n\tMel2Audio\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x34\n\x10mb_melgan_triton\x18\x02 \x01(\x0b\x32\x1a.ondewo.t2s.MbMelganTriton\x12%\n\x08hifi_gan\x18\x03 \x01(\x0b\x32\x13.ondewo.t2s.HiFiGan\x12\x32\n\x0fhifi_gan_triton\x18\x04 \x01(\x0b\x32\x19.ondewo.t2s.HiFiGanTriton\"W\n\x07HiFiGan\x12\x0f\n\x07use_gpu\x18\x01 \x01(\x08\x12\x12\n\nbatch_size\x18\x02 \x01(\x03\x12\x13\n\x0b\x63onfig_path\x18\x03 \x01(\t\x12\x12\n\nmodel_path\x18\x04 \x01(\t\"S\n\rHiFiGanTriton\x12\x13\n\x0b\x63onfig_path\x18\x01 \x01(\t\x12\x19\n\x11triton_model_name\x18\x02 \x01(\t\x12\x12\n\ntriton_url\x18\x03 \x01(\t\"h\n\x0eMbMelganTriton\x12\x13\n\x0b\x63onfig_path\x18\x01 \x01(\t\x12\x12\n\nstats_path\x18\x02 \x01(\t\x12\x19\n\x11triton_model_name\x18\x03 \x01(\t\x12\x12\n\ntriton_url\x18\x04 \x01(\t\"\x8f\x01\n\x07\x43\x61\x63hing\x12\x0e\n\x06\x61\x63tive\x18\x01 \x01(\x08\x12\x1d\n\x15memory_cache_max_size\x18\x02 \x01(\x03\x12\x15\n\rsampling_rate\x18\x03 \x01(\x03\x12\x12\n\nload_cache\x18\x04 \x01(\x08\x12\x12\n\nsave_cache\x18\x05 \x01(\x08\x12\x16\n\x0e\x63\x61\x63he_save_dir\x18\x06 \x01(\t\"Q\n\rNormalization\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x10\n\x08pipeline\x18\x02 \x03(\t\x12\x1c\n\x14\x63ustom_phonemizer_id\x18\x03 \x01(\t\"\xb0\x01\n\x0ePostprocessing\x12\x14\n\x0csilence_secs\x18\x01 \x01(\x02\x12\x10\n\x08pipeline\x18\x02 \x03(\t\x12$\n\x07logmmse\x18\x03 \x01(\x0b\x32\x13.ondewo.t2s.Logmnse\x12\"\n\x06wiener\x18\x04 \x01(\x0b\x32\x12.ondewo.t2s.Wiener\x12,\n\x0b\x61podization\x18\x05 \x01(\x0b\x32\x17.ondewo.t2s.Apodization\"N\n\x07Logmnse\x12\x15\n\rinitial_noise\x18\x01 \x01(\x03\x12\x13\n\x0bwindow_size\x18\x02 \x01(\x03\x12\x17\n\x0fnoise_threshold\x18\x03 \x01(\x02\"a\n\x06Wiener\x12\x11\n\tframe_len\x18\x01 \x01(\x03\x12\x11\n\tlpc_order\x18\x02 \x01(\x03\x12\x12\n\niterations\x18\x03 \x01(\x03\x12\r\n\x05\x61lpha\x18\x04 \x01(\x02\x12\x0e\n\x06thresh\x18\x05 \x01(\x02\"\'\n\x0b\x41podization\x12\x18\n\x10\x61podization_secs\x18\x01 \x01(\x02*X\n\x03Pcm\x12\n\n\x06PCM_16\x10\x00\x12\n\n\x06PCM_24\x10\x01\x12\n\n\x06PCM_32\x10\x02\x12\n\n\x06PCM_S8\x10\x03\x12\n\n\x06PCM_U8\x10\x04\x12\t\n\x05\x46LOAT\x10\x05\x12\n\n\x06\x44OUBLE\x10\x06*M\n\x0b\x41udioFormat\x12\x07\n\x03wav\x10\x00\x12\x08\n\x04\x66lac\x10\x01\x12\x07\n\x03\x63\x61\x66\x10\x02\x12\x07\n\x03mp3\x10\x03\x12\x07\n\x03\x61\x61\x63\x10\x04\x12\x07\n\x03ogg\x10\x05\x12\x07\n\x03wma\x10\x06\x32\x8e\x06\n\x0bText2Speech\x12M\n\nSynthesize\x12\x1d.ondewo.t2s.SynthesizeRequest\x1a\x1e.ondewo.t2s.SynthesizeResponse\"\x00\x12\\\n\x0f\x42\x61tchSynthesize\x12\".ondewo.t2s.BatchSynthesizeRequest\x1a#.ondewo.t2s.BatchSynthesizeResponse\"\x00\x12L\n\x0eGetT2sPipeline\x12\x19.ondewo.t2s.T2sPipelineId\x1a\x1d.ondewo.t2s.Text2SpeechConfig\"\x00\x12O\n\x11\x43reateT2sPipeline\x12\x1d.ondewo.t2s.Text2SpeechConfig\x1a\x19.ondewo.t2s.T2sPipelineId\"\x00\x12H\n\x11\x44\x65leteT2sPipeline\x12\x19.ondewo.t2s.T2sPipelineId\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\x11UpdateT2sPipeline\x12\x1d.ondewo.t2s.Text2SpeechConfig\x1a\x16.google.protobuf.Empty\"\x00\x12_\n\x10ListT2sPipelines\x12#.ondewo.t2s.ListT2sPipelinesRequest\x1a$.ondewo.t2s.ListT2sPipelinesResponse\"\x00\x12_\n\x10ListT2sLanguages\x12#.ondewo.t2s.ListT2sLanguagesRequest\x1a$.ondewo.t2s.ListT2sLanguagesResponse\"\x00\x12Y\n\x0eListT2sDomains\x12!.ondewo.t2s.ListT2sDomainsRequest\x1a\".ondewo.t2s.ListT2sDomainsResponse\"\x00\x62\x06proto3'
,
dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,])
_PCM = _descriptor.EnumDescriptor(
name='Pcm',
full_name='ondewo.t2s.Pcm',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='PCM_16', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PCM_24', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PCM_32', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PCM_S8', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PCM_U8', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FLOAT', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DOUBLE', index=6, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=3538,
serialized_end=3626,
)
_sym_db.RegisterEnumDescriptor(_PCM)
Pcm = enum_type_wrapper.EnumTypeWrapper(_PCM)
_AUDIOFORMAT = _descriptor.EnumDescriptor(
name='AudioFormat',
full_name='ondewo.t2s.AudioFormat',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='wav', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='flac', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='caf', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='mp3', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='aac', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='ogg', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='wma', index=6, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=3628,
serialized_end=3705,
)
_sym_db.RegisterEnumDescriptor(_AUDIOFORMAT)
AudioFormat = enum_type_wrapper.EnumTypeWrapper(_AUDIOFORMAT)
PCM_16 = 0
PCM_24 = 1
PCM_32 = 2
PCM_S8 = 3
PCM_U8 = 4
FLOAT = 5
DOUBLE = 6
wav = 0
flac = 1
caf = 2
mp3 = 3
aac = 4
ogg = 5
wma = 6
_SYNTHESIZEREQUEST = _descriptor.Descriptor(
name='SynthesizeRequest',
full_name='ondewo.t2s.SynthesizeRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='text', full_name='ondewo.t2s.SynthesizeRequest.text', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='config', full_name='ondewo.t2s.SynthesizeRequest.config', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=76,
serialized_end=152,
)
_BATCHSYNTHESIZEREQUEST = _descriptor.Descriptor(
name='BatchSynthesizeRequest',
full_name='ondewo.t2s.BatchSynthesizeRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='batch_request', full_name='ondewo.t2s.BatchSynthesizeRequest.batch_request', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=154,
serialized_end=232,
)
_BATCHSYNTHESIZERESPONSE = _descriptor.Descriptor(
name='BatchSynthesizeResponse',
full_name='ondewo.t2s.BatchSynthesizeResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='batch_response', full_name='ondewo.t2s.BatchSynthesizeResponse.batch_response', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=234,
serialized_end=315,
)
_REQUESTCONFIG = _descriptor.Descriptor(
name='RequestConfig',
full_name='ondewo.t2s.RequestConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='t2s_pipeline_id', full_name='ondewo.t2s.RequestConfig.t2s_pipeline_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='length_scale', full_name='ondewo.t2s.RequestConfig.length_scale', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='noise_scale', full_name='ondewo.t2s.RequestConfig.noise_scale', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='sample_rate', full_name='ondewo.t2s.RequestConfig.sample_rate', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pcm', full_name='ondewo.t2s.RequestConfig.pcm', index=4,
number=5, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='audio_format', full_name='ondewo.t2s.RequestConfig.audio_format', index=5,
number=6, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='use_cache', full_name='ondewo.t2s.RequestConfig.use_cache', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='_length_scale', full_name='ondewo.t2s.RequestConfig._length_scale',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
_descriptor.OneofDescriptor(
name='_noise_scale', full_name='ondewo.t2s.RequestConfig._noise_scale',
index=1, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
_descriptor.OneofDescriptor(
name='_sample_rate', full_name='ondewo.t2s.RequestConfig._sample_rate',
index=2, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
_descriptor.OneofDescriptor(
name='_Pcm', full_name='ondewo.t2s.RequestConfig._Pcm',
index=3, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
_descriptor.OneofDescriptor(
name='_AudioFormat', full_name='ondewo.t2s.RequestConfig._AudioFormat',
index=4, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
_descriptor.OneofDescriptor(
name='_use_cache', full_name='ondewo.t2s.RequestConfig._use_cache',
index=5, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=318,
serialized_end=617,
)
_SYNTHESIZERESPONSE = _descriptor.Descriptor(
name='SynthesizeResponse',
full_name='ondewo.t2s.SynthesizeResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='audio_uuid', full_name='ondewo.t2s.SynthesizeResponse.audio_uuid', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='audio', full_name='ondewo.t2s.SynthesizeResponse.audio', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='generation_time', full_name='ondewo.t2s.SynthesizeResponse.generation_time', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='audio_length', full_name='ondewo.t2s.SynthesizeResponse.audio_length', index=3,
number=4, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='text', full_name='ondewo.t2s.SynthesizeResponse.text', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='config', full_name='ondewo.t2s.SynthesizeResponse.config', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=620,
serialized_end=779,
)
_GETSERVICEINFORESPONSE = _descriptor.Descriptor(
name='GetServiceInfoResponse',
full_name='ondewo.t2s.GetServiceInfoResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='version', full_name='ondewo.t2s.GetServiceInfoResponse.version', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=781,
serialized_end=822,
)
_LISTT2SPIPELINESREQUEST = _descriptor.Descriptor(
name='ListT2sPipelinesRequest',
full_name='ondewo.t2s.ListT2sPipelinesRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='languages', full_name='ondewo.t2s.ListT2sPipelinesRequest.languages', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='speaker_sexes', full_name='ondewo.t2s.ListT2sPipelinesRequest.speaker_sexes', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pipeline_owners', full_name='ondewo.t2s.ListT2sPipelinesRequest.pipeline_owners', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='speaker_names', full_name='ondewo.t2s.ListT2sPipelinesRequest.speaker_names', index=3,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='domains', full_name='ondewo.t2s.ListT2sPipelinesRequest.domains', index=4,
number=5, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=825,
serialized_end=957,
)
_LISTT2SPIPELINESRESPONSE = _descriptor.Descriptor(
name='ListT2sPipelinesResponse',
full_name='ondewo.t2s.ListT2sPipelinesResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='pipelines', full_name='ondewo.t2s.ListT2sPipelinesResponse.pipelines', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=959,
serialized_end=1035,
)
_LISTT2SLANGUAGESREQUEST = _descriptor.Descriptor(
name='ListT2sLanguagesRequest',
full_name='ondewo.t2s.ListT2sLanguagesRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='speaker_sexes', full_name='ondewo.t2s.ListT2sLanguagesRequest.speaker_sexes', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pipeline_owners', full_name='ondewo.t2s.ListT2sLanguagesRequest.pipeline_owners', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='speaker_names', full_name='ondewo.t2s.ListT2sLanguagesRequest.speaker_names', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='domains', full_name='ondewo.t2s.ListT2sLanguagesRequest.domains', index=3,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1037,
serialized_end=1150,
)
_LISTT2SLANGUAGESRESPONSE = _descriptor.Descriptor(
name='ListT2sLanguagesResponse',
full_name='ondewo.t2s.ListT2sLanguagesResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='languages', full_name='ondewo.t2s.ListT2sLanguagesResponse.languages', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1152,
serialized_end=1197,
)
_LISTT2SDOMAINSREQUEST = _descriptor.Descriptor(
name='ListT2sDomainsRequest',
full_name='ondewo.t2s.ListT2sDomainsRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='speaker_sexes', full_name='ondewo.t2s.ListT2sDomainsRequest.speaker_sexes', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pipeline_owners', full_name='ondewo.t2s.ListT2sDomainsRequest.pipeline_owners', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='speaker_names', full_name='ondewo.t2s.ListT2sDomainsRequest.speaker_names', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='languages', full_name='ondewo.t2s.ListT2sDomainsRequest.languages', index=3,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1199,
serialized_end=1312,
)
_LISTT2SDOMAINSRESPONSE = _descriptor.Descriptor(
name='ListT2sDomainsResponse',
full_name='ondewo.t2s.ListT2sDomainsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='domains', full_name='ondewo.t2s.ListT2sDomainsResponse.domains', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1314,
serialized_end=1355,
)
_T2SPIPELINEID = _descriptor.Descriptor(
name='T2sPipelineId',
full_name='ondewo.t2s.T2sPipelineId',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='ondewo.t2s.T2sPipelineId.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1357,
serialized_end=1384,
)
_TEXT2SPEECHCONFIG = _descriptor.Descriptor(
name='Text2SpeechConfig',
full_name='ondewo.t2s.Text2SpeechConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='ondewo.t2s.Text2SpeechConfig.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='description', full_name='ondewo.t2s.Text2SpeechConfig.description', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='active', full_name='ondewo.t2s.Text2SpeechConfig.active', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='inference', full_name='ondewo.t2s.Text2SpeechConfig.inference', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='normalization', full_name='ondewo.t2s.Text2SpeechConfig.normalization', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='postprocessing', full_name='ondewo.t2s.Text2SpeechConfig.postprocessing', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1387,
serialized_end=1624,
)
_DESCRIPTION = _descriptor.Descriptor(
name='Description',
full_name='ondewo.t2s.Description',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='language', full_name='ondewo.t2s.Description.language', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='speaker_sex', full_name='ondewo.t2s.Description.speaker_sex', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pipeline_owner', full_name='ondewo.t2s.Description.pipeline_owner', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='comments', full_name='ondewo.t2s.Description.comments', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='speaker_name', full_name='ondewo.t2s.Description.speaker_name', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='domain', full_name='ondewo.t2s.Description.domain', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1627,
serialized_end=1759,
)
_INFERENCE = _descriptor.Descriptor(
name='Inference',
full_name='ondewo.t2s.Inference',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='ondewo.t2s.Inference.type', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='composite_inference', full_name='ondewo.t2s.Inference.composite_inference', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='caching', full_name='ondewo.t2s.Inference.caching', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1761,
serialized_end=1885,
)
_COMPOSITEINFERENCE = _descriptor.Descriptor(
name='CompositeInference',
full_name='ondewo.t2s.CompositeInference',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='text2mel', full_name='ondewo.t2s.CompositeInference.text2mel', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='mel2audio', full_name='ondewo.t2s.CompositeInference.mel2audio', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1887,
serialized_end=1989,
)
_TEXT2MEL = _descriptor.Descriptor(
name='Text2Mel',
full_name='ondewo.t2s.Text2Mel',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='ondewo.t2s.Text2Mel.type', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='glow_tts', full_name='ondewo.t2s.Text2Mel.glow_tts', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='glow_tts_triton', full_name='ondewo.t2s.Text2Mel.glow_tts_triton', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1991,
serialized_end=2106,
)
_GLOWTTS = _descriptor.Descriptor(
name='GlowTTS',
full_name='ondewo.t2s.GlowTTS',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='batch_size', full_name='ondewo.t2s.GlowTTS.batch_size', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='use_gpu', full_name='ondewo.t2s.GlowTTS.use_gpu', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='length_scale', full_name='ondewo.t2s.GlowTTS.length_scale', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='noise_scale', full_name='ondewo.t2s.GlowTTS.noise_scale', index=3,
number=4, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='path', full_name='ondewo.t2s.GlowTTS.path', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='cleaners', full_name='ondewo.t2s.GlowTTS.cleaners', index=5,
number=6, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='param_config_path', full_name='ondewo.t2s.GlowTTS.param_config_path', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2109,
serialized_end=2257,
)
_GLOWTTSTRITON = _descriptor.Descriptor(
name='GlowTTSTriton',
full_name='ondewo.t2s.GlowTTSTriton',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='batch_size', full_name='ondewo.t2s.GlowTTSTriton.batch_size', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='length_scale', full_name='ondewo.t2s.GlowTTSTriton.length_scale', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='noise_scale', full_name='ondewo.t2s.GlowTTSTriton.noise_scale', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='cleaners', full_name='ondewo.t2s.GlowTTSTriton.cleaners', index=3,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='max_text_length', full_name='ondewo.t2s.GlowTTSTriton.max_text_length', index=4,
number=5, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='param_config_path', full_name='ondewo.t2s.GlowTTSTriton.param_config_path', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='triton_url', full_name='ondewo.t2s.GlowTTSTriton.triton_url', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='triton_model_name', full_name='ondewo.t2s.GlowTTSTriton.triton_model_name', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2260,
serialized_end=2455,
)
_MEL2AUDIO = _descriptor.Descriptor(
name='Mel2Audio',
full_name='ondewo.t2s.Mel2Audio',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='ondewo.t2s.Mel2Audio.type', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='mb_melgan_triton', full_name='ondewo.t2s.Mel2Audio.mb_melgan_triton', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='hifi_gan', full_name='ondewo.t2s.Mel2Audio.hifi_gan', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='hifi_gan_triton', full_name='ondewo.t2s.Mel2Audio.hifi_gan_triton', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2458,
serialized_end=2628,
)
_HIFIGAN = _descriptor.Descriptor(
name='HiFiGan',
full_name='ondewo.t2s.HiFiGan',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='use_gpu', full_name='ondewo.t2s.HiFiGan.use_gpu', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='batch_size', full_name='ondewo.t2s.HiFiGan.batch_size', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='config_path', full_name='ondewo.t2s.HiFiGan.config_path', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='model_path', full_name='ondewo.t2s.HiFiGan.model_path', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2630,
serialized_end=2717,
)
_HIFIGANTRITON = _descriptor.Descriptor(
name='HiFiGanTriton',
full_name='ondewo.t2s.HiFiGanTriton',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='config_path', full_name='ondewo.t2s.HiFiGanTriton.config_path', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='triton_model_name', full_name='ondewo.t2s.HiFiGanTriton.triton_model_name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='triton_url', full_name='ondewo.t2s.HiFiGanTriton.triton_url', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2719,
serialized_end=2802,
)
_MBMELGANTRITON = _descriptor.Descriptor(
name='MbMelganTriton',
full_name='ondewo.t2s.MbMelganTriton',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='config_path', full_name='ondewo.t2s.MbMelganTriton.config_path', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='stats_path', full_name='ondewo.t2s.MbMelganTriton.stats_path', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='triton_model_name', full_name='ondewo.t2s.MbMelganTriton.triton_model_name', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='triton_url', full_name='ondewo.t2s.MbMelganTriton.triton_url', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2804,
serialized_end=2908,
)
_CACHING = _descriptor.Descriptor(
name='Caching',
full_name='ondewo.t2s.Caching',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='active', full_name='ondewo.t2s.Caching.active', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='memory_cache_max_size', full_name='ondewo.t2s.Caching.memory_cache_max_size', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='sampling_rate', full_name='ondewo.t2s.Caching.sampling_rate', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='load_cache', full_name='ondewo.t2s.Caching.load_cache', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='save_cache', full_name='ondewo.t2s.Caching.save_cache', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='cache_save_dir', full_name='ondewo.t2s.Caching.cache_save_dir', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2911,
serialized_end=3054,
)
_NORMALIZATION = _descriptor.Descriptor(
name='Normalization',
full_name='ondewo.t2s.Normalization',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='language', full_name='ondewo.t2s.Normalization.language', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pipeline', full_name='ondewo.t2s.Normalization.pipeline', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='custom_phonemizer_id', full_name='ondewo.t2s.Normalization.custom_phonemizer_id', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3056,
serialized_end=3137,
)
_POSTPROCESSING = _descriptor.Descriptor(
name='Postprocessing',
full_name='ondewo.t2s.Postprocessing',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='silence_secs', full_name='ondewo.t2s.Postprocessing.silence_secs', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='pipeline', full_name='ondewo.t2s.Postprocessing.pipeline', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='logmmse', full_name='ondewo.t2s.Postprocessing.logmmse', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='wiener', full_name='ondewo.t2s.Postprocessing.wiener', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='apodization', full_name='ondewo.t2s.Postprocessing.apodization', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3140,
serialized_end=3316,
)
_LOGMNSE = _descriptor.Descriptor(
name='Logmnse',
full_name='ondewo.t2s.Logmnse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='initial_noise', full_name='ondewo.t2s.Logmnse.initial_noise', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='window_size', full_name='ondewo.t2s.Logmnse.window_size', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='noise_threshold', full_name='ondewo.t2s.Logmnse.noise_threshold', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3318,
serialized_end=3396,
)
_WIENER = _descriptor.Descriptor(
name='Wiener',
full_name='ondewo.t2s.Wiener',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='frame_len', full_name='ondewo.t2s.Wiener.frame_len', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='lpc_order', full_name='ondewo.t2s.Wiener.lpc_order', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='iterations', full_name='ondewo.t2s.Wiener.iterations', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='alpha', full_name='ondewo.t2s.Wiener.alpha', index=3,
number=4, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='thresh', full_name='ondewo.t2s.Wiener.thresh', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3398,
serialized_end=3495,
)
_APODIZATION = _descriptor.Descriptor(
name='Apodization',
full_name='ondewo.t2s.Apodization',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='apodization_secs', full_name='ondewo.t2s.Apodization.apodization_secs', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3497,
serialized_end=3536,
)
_SYNTHESIZEREQUEST.fields_by_name['config'].message_type = _REQUESTCONFIG
_BATCHSYNTHESIZEREQUEST.fields_by_name['batch_request'].message_type = _SYNTHESIZEREQUEST
_BATCHSYNTHESIZERESPONSE.fields_by_name['batch_response'].message_type = _SYNTHESIZERESPONSE
_REQUESTCONFIG.fields_by_name['pcm'].enum_type = _PCM
_REQUESTCONFIG.fields_by_name['audio_format'].enum_type = _AUDIOFORMAT
_REQUESTCONFIG.oneofs_by_name['_length_scale'].fields.append(
_REQUESTCONFIG.fields_by_name['length_scale'])
_REQUESTCONFIG.fields_by_name['length_scale'].containing_oneof = _REQUESTCONFIG.oneofs_by_name['_length_scale']
_REQUESTCONFIG.oneofs_by_name['_noise_scale'].fields.append(
_REQUESTCONFIG.fields_by_name['noise_scale'])
_REQUESTCONFIG.fields_by_name['noise_scale'].containing_oneof = _REQUESTCONFIG.oneofs_by_name['_noise_scale']
_REQUESTCONFIG.oneofs_by_name['_sample_rate'].fields.append(
_REQUESTCONFIG.fields_by_name['sample_rate'])
_REQUESTCONFIG.fields_by_name['sample_rate'].containing_oneof = _REQUESTCONFIG.oneofs_by_name['_sample_rate']
_REQUESTCONFIG.oneofs_by_name['_Pcm'].fields.append(
_REQUESTCONFIG.fields_by_name['pcm'])
_REQUESTCONFIG.fields_by_name['pcm'].containing_oneof = _REQUESTCONFIG.oneofs_by_name['_Pcm']
_REQUESTCONFIG.oneofs_by_name['_AudioFormat'].fields.append(
_REQUESTCONFIG.fields_by_name['audio_format'])
_REQUESTCONFIG.fields_by_name['audio_format'].containing_oneof = _REQUESTCONFIG.oneofs_by_name['_AudioFormat']
_REQUESTCONFIG.oneofs_by_name['_use_cache'].fields.append(
_REQUESTCONFIG.fields_by_name['use_cache'])
_REQUESTCONFIG.fields_by_name['use_cache'].containing_oneof = _REQUESTCONFIG.oneofs_by_name['_use_cache']
_SYNTHESIZERESPONSE.fields_by_name['config'].message_type = _REQUESTCONFIG
_LISTT2SPIPELINESRESPONSE.fields_by_name['pipelines'].message_type = _TEXT2SPEECHCONFIG
_TEXT2SPEECHCONFIG.fields_by_name['description'].message_type = _DESCRIPTION
_TEXT2SPEECHCONFIG.fields_by_name['inference'].message_type = _INFERENCE
_TEXT2SPEECHCONFIG.fields_by_name['normalization'].message_type = _NORMALIZATION
_TEXT2SPEECHCONFIG.fields_by_name['postprocessing'].message_type = _POSTPROCESSING
_INFERENCE.fields_by_name['composite_inference'].message_type = _COMPOSITEINFERENCE
_INFERENCE.fields_by_name['caching'].message_type = _CACHING
_COMPOSITEINFERENCE.fields_by_name['text2mel'].message_type = _TEXT2MEL
_COMPOSITEINFERENCE.fields_by_name['mel2audio'].message_type = _MEL2AUDIO
_TEXT2MEL.fields_by_name['glow_tts'].message_type = _GLOWTTS
_TEXT2MEL.fields_by_name['glow_tts_triton'].message_type = _GLOWTTSTRITON
_MEL2AUDIO.fields_by_name['mb_melgan_triton'].message_type = _MBMELGANTRITON
_MEL2AUDIO.fields_by_name['hifi_gan'].message_type = _HIFIGAN
_MEL2AUDIO.fields_by_name['hifi_gan_triton'].message_type = _HIFIGANTRITON
_POSTPROCESSING.fields_by_name['logmmse'].message_type = _LOGMNSE
_POSTPROCESSING.fields_by_name['wiener'].message_type = _WIENER
_POSTPROCESSING.fields_by_name['apodization'].message_type = _APODIZATION
DESCRIPTOR.message_types_by_name['SynthesizeRequest'] = _SYNTHESIZEREQUEST
DESCRIPTOR.message_types_by_name['BatchSynthesizeRequest'] = _BATCHSYNTHESIZEREQUEST
DESCRIPTOR.message_types_by_name['BatchSynthesizeResponse'] = _BATCHSYNTHESIZERESPONSE
DESCRIPTOR.message_types_by_name['RequestConfig'] = _REQUESTCONFIG
DESCRIPTOR.message_types_by_name['SynthesizeResponse'] = _SYNTHESIZERESPONSE
DESCRIPTOR.message_types_by_name['GetServiceInfoResponse'] = _GETSERVICEINFORESPONSE
DESCRIPTOR.message_types_by_name['ListT2sPipelinesRequest'] = _LISTT2SPIPELINESREQUEST
DESCRIPTOR.message_types_by_name['ListT2sPipelinesResponse'] = _LISTT2SPIPELINESRESPONSE
DESCRIPTOR.message_types_by_name['ListT2sLanguagesRequest'] = _LISTT2SLANGUAGESREQUEST
DESCRIPTOR.message_types_by_name['ListT2sLanguagesResponse'] = _LISTT2SLANGUAGESRESPONSE
DESCRIPTOR.message_types_by_name['ListT2sDomainsRequest'] = _LISTT2SDOMAINSREQUEST
DESCRIPTOR.message_types_by_name['ListT2sDomainsResponse'] = _LISTT2SDOMAINSRESPONSE
DESCRIPTOR.message_types_by_name['T2sPipelineId'] = _T2SPIPELINEID
DESCRIPTOR.message_types_by_name['Text2SpeechConfig'] = _TEXT2SPEECHCONFIG
DESCRIPTOR.message_types_by_name['Description'] = _DESCRIPTION
DESCRIPTOR.message_types_by_name['Inference'] = _INFERENCE
DESCRIPTOR.message_types_by_name['CompositeInference'] = _COMPOSITEINFERENCE
DESCRIPTOR.message_types_by_name['Text2Mel'] = _TEXT2MEL
DESCRIPTOR.message_types_by_name['GlowTTS'] = _GLOWTTS
DESCRIPTOR.message_types_by_name['GlowTTSTriton'] = _GLOWTTSTRITON
DESCRIPTOR.message_types_by_name['Mel2Audio'] = _MEL2AUDIO
DESCRIPTOR.message_types_by_name['HiFiGan'] = _HIFIGAN
DESCRIPTOR.message_types_by_name['HiFiGanTriton'] = _HIFIGANTRITON
DESCRIPTOR.message_types_by_name['MbMelganTriton'] = _MBMELGANTRITON
DESCRIPTOR.message_types_by_name['Caching'] = _CACHING
DESCRIPTOR.message_types_by_name['Normalization'] = _NORMALIZATION
DESCRIPTOR.message_types_by_name['Postprocessing'] = _POSTPROCESSING
DESCRIPTOR.message_types_by_name['Logmnse'] = _LOGMNSE
DESCRIPTOR.message_types_by_name['Wiener'] = _WIENER
DESCRIPTOR.message_types_by_name['Apodization'] = _APODIZATION
DESCRIPTOR.enum_types_by_name['Pcm'] = _PCM
DESCRIPTOR.enum_types_by_name['AudioFormat'] = _AUDIOFORMAT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
SynthesizeRequest = _reflection.GeneratedProtocolMessageType('SynthesizeRequest', (_message.Message,), {
'DESCRIPTOR' : _SYNTHESIZEREQUEST,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.SynthesizeRequest)
})
_sym_db.RegisterMessage(SynthesizeRequest)
BatchSynthesizeRequest = _reflection.GeneratedProtocolMessageType('BatchSynthesizeRequest', (_message.Message,), {
'DESCRIPTOR' : _BATCHSYNTHESIZEREQUEST,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.BatchSynthesizeRequest)
})
_sym_db.RegisterMessage(BatchSynthesizeRequest)
BatchSynthesizeResponse = _reflection.GeneratedProtocolMessageType('BatchSynthesizeResponse', (_message.Message,), {
'DESCRIPTOR' : _BATCHSYNTHESIZERESPONSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.BatchSynthesizeResponse)
})
_sym_db.RegisterMessage(BatchSynthesizeResponse)
RequestConfig = _reflection.GeneratedProtocolMessageType('RequestConfig', (_message.Message,), {
'DESCRIPTOR' : _REQUESTCONFIG,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.RequestConfig)
})
_sym_db.RegisterMessage(RequestConfig)
SynthesizeResponse = _reflection.GeneratedProtocolMessageType('SynthesizeResponse', (_message.Message,), {
'DESCRIPTOR' : _SYNTHESIZERESPONSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.SynthesizeResponse)
})
_sym_db.RegisterMessage(SynthesizeResponse)
GetServiceInfoResponse = _reflection.GeneratedProtocolMessageType('GetServiceInfoResponse', (_message.Message,), {
'DESCRIPTOR' : _GETSERVICEINFORESPONSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.GetServiceInfoResponse)
})
_sym_db.RegisterMessage(GetServiceInfoResponse)
ListT2sPipelinesRequest = _reflection.GeneratedProtocolMessageType('ListT2sPipelinesRequest', (_message.Message,), {
'DESCRIPTOR' : _LISTT2SPIPELINESREQUEST,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.ListT2sPipelinesRequest)
})
_sym_db.RegisterMessage(ListT2sPipelinesRequest)
ListT2sPipelinesResponse = _reflection.GeneratedProtocolMessageType('ListT2sPipelinesResponse', (_message.Message,), {
'DESCRIPTOR' : _LISTT2SPIPELINESRESPONSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.ListT2sPipelinesResponse)
})
_sym_db.RegisterMessage(ListT2sPipelinesResponse)
ListT2sLanguagesRequest = _reflection.GeneratedProtocolMessageType('ListT2sLanguagesRequest', (_message.Message,), {
'DESCRIPTOR' : _LISTT2SLANGUAGESREQUEST,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.ListT2sLanguagesRequest)
})
_sym_db.RegisterMessage(ListT2sLanguagesRequest)
ListT2sLanguagesResponse = _reflection.GeneratedProtocolMessageType('ListT2sLanguagesResponse', (_message.Message,), {
'DESCRIPTOR' : _LISTT2SLANGUAGESRESPONSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.ListT2sLanguagesResponse)
})
_sym_db.RegisterMessage(ListT2sLanguagesResponse)
ListT2sDomainsRequest = _reflection.GeneratedProtocolMessageType('ListT2sDomainsRequest', (_message.Message,), {
'DESCRIPTOR' : _LISTT2SDOMAINSREQUEST,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.ListT2sDomainsRequest)
})
_sym_db.RegisterMessage(ListT2sDomainsRequest)
ListT2sDomainsResponse = _reflection.GeneratedProtocolMessageType('ListT2sDomainsResponse', (_message.Message,), {
'DESCRIPTOR' : _LISTT2SDOMAINSRESPONSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.ListT2sDomainsResponse)
})
_sym_db.RegisterMessage(ListT2sDomainsResponse)
T2sPipelineId = _reflection.GeneratedProtocolMessageType('T2sPipelineId', (_message.Message,), {
'DESCRIPTOR' : _T2SPIPELINEID,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.T2sPipelineId)
})
_sym_db.RegisterMessage(T2sPipelineId)
Text2SpeechConfig = _reflection.GeneratedProtocolMessageType('Text2SpeechConfig', (_message.Message,), {
'DESCRIPTOR' : _TEXT2SPEECHCONFIG,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Text2SpeechConfig)
})
_sym_db.RegisterMessage(Text2SpeechConfig)
Description = _reflection.GeneratedProtocolMessageType('Description', (_message.Message,), {
'DESCRIPTOR' : _DESCRIPTION,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Description)
})
_sym_db.RegisterMessage(Description)
Inference = _reflection.GeneratedProtocolMessageType('Inference', (_message.Message,), {
'DESCRIPTOR' : _INFERENCE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Inference)
})
_sym_db.RegisterMessage(Inference)
CompositeInference = _reflection.GeneratedProtocolMessageType('CompositeInference', (_message.Message,), {
'DESCRIPTOR' : _COMPOSITEINFERENCE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.CompositeInference)
})
_sym_db.RegisterMessage(CompositeInference)
Text2Mel = _reflection.GeneratedProtocolMessageType('Text2Mel', (_message.Message,), {
'DESCRIPTOR' : _TEXT2MEL,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Text2Mel)
})
_sym_db.RegisterMessage(Text2Mel)
GlowTTS = _reflection.GeneratedProtocolMessageType('GlowTTS', (_message.Message,), {
'DESCRIPTOR' : _GLOWTTS,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.GlowTTS)
})
_sym_db.RegisterMessage(GlowTTS)
GlowTTSTriton = _reflection.GeneratedProtocolMessageType('GlowTTSTriton', (_message.Message,), {
'DESCRIPTOR' : _GLOWTTSTRITON,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.GlowTTSTriton)
})
_sym_db.RegisterMessage(GlowTTSTriton)
Mel2Audio = _reflection.GeneratedProtocolMessageType('Mel2Audio', (_message.Message,), {
'DESCRIPTOR' : _MEL2AUDIO,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Mel2Audio)
})
_sym_db.RegisterMessage(Mel2Audio)
HiFiGan = _reflection.GeneratedProtocolMessageType('HiFiGan', (_message.Message,), {
'DESCRIPTOR' : _HIFIGAN,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.HiFiGan)
})
_sym_db.RegisterMessage(HiFiGan)
HiFiGanTriton = _reflection.GeneratedProtocolMessageType('HiFiGanTriton', (_message.Message,), {
'DESCRIPTOR' : _HIFIGANTRITON,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.HiFiGanTriton)
})
_sym_db.RegisterMessage(HiFiGanTriton)
MbMelganTriton = _reflection.GeneratedProtocolMessageType('MbMelganTriton', (_message.Message,), {
'DESCRIPTOR' : _MBMELGANTRITON,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.MbMelganTriton)
})
_sym_db.RegisterMessage(MbMelganTriton)
Caching = _reflection.GeneratedProtocolMessageType('Caching', (_message.Message,), {
'DESCRIPTOR' : _CACHING,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Caching)
})
_sym_db.RegisterMessage(Caching)
Normalization = _reflection.GeneratedProtocolMessageType('Normalization', (_message.Message,), {
'DESCRIPTOR' : _NORMALIZATION,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Normalization)
})
_sym_db.RegisterMessage(Normalization)
Postprocessing = _reflection.GeneratedProtocolMessageType('Postprocessing', (_message.Message,), {
'DESCRIPTOR' : _POSTPROCESSING,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Postprocessing)
})
_sym_db.RegisterMessage(Postprocessing)
Logmnse = _reflection.GeneratedProtocolMessageType('Logmnse', (_message.Message,), {
'DESCRIPTOR' : _LOGMNSE,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Logmnse)
})
_sym_db.RegisterMessage(Logmnse)
Wiener = _reflection.GeneratedProtocolMessageType('Wiener', (_message.Message,), {
'DESCRIPTOR' : _WIENER,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Wiener)
})
_sym_db.RegisterMessage(Wiener)
Apodization = _reflection.GeneratedProtocolMessageType('Apodization', (_message.Message,), {
'DESCRIPTOR' : _APODIZATION,
'__module__' : 'ondewo.t2s.text_to_speech_pb2'
# @@protoc_insertion_point(class_scope:ondewo.t2s.Apodization)
})
_sym_db.RegisterMessage(Apodization)
_TEXT2SPEECH = _descriptor.ServiceDescriptor(
name='Text2Speech',
full_name='ondewo.t2s.Text2Speech',
file=DESCRIPTOR,
index=0,
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_start=3708,
serialized_end=4490,
methods=[
_descriptor.MethodDescriptor(
name='Synthesize',
full_name='ondewo.t2s.Text2Speech.Synthesize',
index=0,
containing_service=None,
input_type=_SYNTHESIZEREQUEST,
output_type=_SYNTHESIZERESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='BatchSynthesize',
full_name='ondewo.t2s.Text2Speech.BatchSynthesize',
index=1,
containing_service=None,
input_type=_BATCHSYNTHESIZEREQUEST,
output_type=_BATCHSYNTHESIZERESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='GetT2sPipeline',
full_name='ondewo.t2s.Text2Speech.GetT2sPipeline',
index=2,
containing_service=None,
input_type=_T2SPIPELINEID,
output_type=_TEXT2SPEECHCONFIG,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='CreateT2sPipeline',
full_name='ondewo.t2s.Text2Speech.CreateT2sPipeline',
index=3,
containing_service=None,
input_type=_TEXT2SPEECHCONFIG,
output_type=_T2SPIPELINEID,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='DeleteT2sPipeline',
full_name='ondewo.t2s.Text2Speech.DeleteT2sPipeline',
index=4,
containing_service=None,
input_type=_T2SPIPELINEID,
output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='UpdateT2sPipeline',
full_name='ondewo.t2s.Text2Speech.UpdateT2sPipeline',
index=5,
containing_service=None,
input_type=_TEXT2SPEECHCONFIG,
output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='ListT2sPipelines',
full_name='ondewo.t2s.Text2Speech.ListT2sPipelines',
index=6,
containing_service=None,
input_type=_LISTT2SPIPELINESREQUEST,
output_type=_LISTT2SPIPELINESRESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='ListT2sLanguages',
full_name='ondewo.t2s.Text2Speech.ListT2sLanguages',
index=7,
containing_service=None,
input_type=_LISTT2SLANGUAGESREQUEST,
output_type=_LISTT2SLANGUAGESRESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='ListT2sDomains',
full_name='ondewo.t2s.Text2Speech.ListT2sDomains',
index=8,
containing_service=None,
input_type=_LISTT2SDOMAINSREQUEST,
output_type=_LISTT2SDOMAINSRESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
])
_sym_db.RegisterServiceDescriptor(_TEXT2SPEECH)
DESCRIPTOR.services_by_name['Text2Speech'] = _TEXT2SPEECH
# @@protoc_insertion_point(module_scope)
| 43.447229
| 7,690
| 0.757579
| 11,300
| 90,153
| 5.709469
| 0.044071
| 0.046623
| 0.079219
| 0.071563
| 0.768883
| 0.701505
| 0.655564
| 0.644915
| 0.63143
| 0.623867
| 0
| 0.041723
| 0.120296
| 90,153
| 2,074
| 7,691
| 43.468177
| 0.771776
| 0.024103
| 0
| 0.697879
| 1
| 0.002069
| 0.193211
| 0.149181
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.003104
| 0
| 0.003104
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c3117e127fe4512f30ea255903fe7d4a65c59571
| 475
|
py
|
Python
|
python/app/models/user.py
|
amilstead/unity3d-thrift-twisted
|
25a8601a6b9a6fcf9b1cd79873ad4c0afa45dcb8
|
[
"MIT"
] | 28
|
2015-07-27T21:18:41.000Z
|
2020-03-16T07:51:06.000Z
|
python/app/models/user.py
|
amilstead/unity3d-thrift-twisted
|
25a8601a6b9a6fcf9b1cd79873ad4c0afa45dcb8
|
[
"MIT"
] | 6
|
2015-07-27T14:30:06.000Z
|
2021-03-29T12:47:54.000Z
|
python/app/models/user.py
|
amilstead/unity3d-thrift-twisted
|
25a8601a6b9a6fcf9b1cd79873ad4c0afa45dcb8
|
[
"MIT"
] | 5
|
2016-03-09T07:26:54.000Z
|
2017-03-08T14:27:16.000Z
|
import sqlalchemy
from models import base
class User(base.ModelBase):
__tablename__ = "users"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True)
username = sqlalchemy.Column(sqlalchemy.String)
password = sqlalchemy.Column(sqlalchemy.String)
def __repr__(self):
repr_str = "<User(id='%s', username='%s', password='%s')>" % (
self.id,
self.username,
self.password
)
return repr_str
| 23.75
| 70
| 0.627368
| 51
| 475
| 5.627451
| 0.490196
| 0.167247
| 0.271777
| 0.222997
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.254737
| 475
| 20
| 71
| 23.75
| 0.810734
| 0
| 0
| 0
| 0
| 0
| 0.105042
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071429
| false
| 0.214286
| 0.142857
| 0
| 0.642857
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
c325fd02be6e40e7f678688a389341ae2ced9c25
| 339
|
py
|
Python
|
tests/strings/fstrings.py
|
nanobowers/py2cr
|
b7deb8c227cf43ce0e1bf7d638d5b4c00b7e9bdb
|
[
"MIT"
] | 61
|
2021-10-06T03:29:45.000Z
|
2022-02-11T20:42:16.000Z
|
tests/strings/fstrings.py
|
nanobowers/py2cr
|
b7deb8c227cf43ce0e1bf7d638d5b4c00b7e9bdb
|
[
"MIT"
] | 2
|
2021-12-27T03:05:30.000Z
|
2021-12-27T18:10:33.000Z
|
tests/strings/fstrings.py
|
nanobowers/py2cr
|
b7deb8c227cf43ce0e1bf7d638d5b4c00b7e9bdb
|
[
"MIT"
] | 2
|
2021-12-27T16:35:46.000Z
|
2021-12-28T10:41:49.000Z
|
a = "dog\ndog\tdog"
b = 'cat'
c = '🐱'
print(f"001 {a}{b}{c}")
print(f'002 {a}{b}{c}')
print(f"""003 {a}{b}{c}""")
print(f"005 string {a!s} {b!s} {c!s}")
#broken print(f"006 ascii {a!a} {b!a} {c!a}")
d = -177
print(f"int: {d}")
e = (1, 3, 5)
print(f'tuple: {e}')
print(f'tuple: {e!s}')
print(f'tuple: {e!r}')
#print(f'tuple: {e!a}')
| 15.409091
| 46
| 0.498525
| 76
| 339
| 2.236842
| 0.368421
| 0.352941
| 0.258824
| 0.282353
| 0.158824
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072917
| 0.150442
| 339
| 21
| 47
| 16.142857
| 0.513889
| 0.19764
| 0
| 0
| 0
| 0
| 0.468401
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.615385
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c326e71f99eca2a19455bfdf6bd8d1c25a185f21
| 139
|
py
|
Python
|
Aula_flask/run.py
|
LauroJr/Curso_Flask_Julia_Rizza
|
9c2751459b3760a79a47ca182854a2451dbc4d12
|
[
"MIT"
] | null | null | null |
Aula_flask/run.py
|
LauroJr/Curso_Flask_Julia_Rizza
|
9c2751459b3760a79a47ca182854a2451dbc4d12
|
[
"MIT"
] | null | null | null |
Aula_flask/run.py
|
LauroJr/Curso_Flask_Julia_Rizza
|
9c2751459b3760a79a47ca182854a2451dbc4d12
|
[
"MIT"
] | null | null | null |
from app import manager
if __name__ == '__main__':
manager.run()
# Execute dentro da pasta Aula_flask o seguinte comando 'flask run'
| 19.857143
| 67
| 0.733813
| 20
| 139
| 4.65
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18705
| 139
| 6
| 68
| 23.166667
| 0.823009
| 0.467626
| 0
| 0
| 0
| 0
| 0.111111
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c356feadeff45a53ca6316ffae107fdf72d82f40
| 166
|
py
|
Python
|
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/twitch/urls.py
|
vikram0207/django-rest
|
eafec575999dce6859dc7b99177cff339b2bcbdd
|
[
"MIT"
] | 6,342
|
2015-01-01T07:40:30.000Z
|
2022-03-31T04:18:30.000Z
|
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/twitch/urls.py
|
vikram0207/django-rest
|
eafec575999dce6859dc7b99177cff339b2bcbdd
|
[
"MIT"
] | 2,198
|
2015-01-02T15:17:45.000Z
|
2022-03-28T10:20:43.000Z
|
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/twitch/urls.py
|
vikram0207/django-rest
|
eafec575999dce6859dc7b99177cff339b2bcbdd
|
[
"MIT"
] | 2,928
|
2015-01-01T10:44:13.000Z
|
2022-03-31T03:20:16.000Z
|
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import TwitchProvider
urlpatterns = default_urlpatterns(TwitchProvider)
| 23.714286
| 75
| 0.86747
| 17
| 166
| 8.352941
| 0.647059
| 0.253521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006579
| 0.084337
| 166
| 6
| 76
| 27.666667
| 0.927632
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c35a3d153c52288a15b18973a05bf091bf9020bc
| 148
|
py
|
Python
|
bbs/apps/common/views.py
|
kaixiang1992/python-flask
|
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
|
[
"MIT"
] | null | null | null |
bbs/apps/common/views.py
|
kaixiang1992/python-flask
|
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
|
[
"MIT"
] | null | null | null |
bbs/apps/common/views.py
|
kaixiang1992/python-flask
|
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
bp = Blueprint('common', __name__, url_prefix='/common')
@bp.route('/')
def homepage():
return 'common homepage'
| 16.444444
| 56
| 0.695946
| 18
| 148
| 5.444444
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148649
| 148
| 8
| 57
| 18.5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.195946
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0.4
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
c37592a3db62aa6a05faa795aaa117a0042a735c
| 178
|
py
|
Python
|
Easy/Chef And Apple Trees/Chef_And_Apple_Trees.py
|
anishsingh42/CodeChef
|
50f5c0438516210895e513bc4ee959b9d99ef647
|
[
"Apache-2.0"
] | 127
|
2020-10-13T18:04:35.000Z
|
2022-02-17T10:56:27.000Z
|
Easy/Chef And Apple Trees/Chef_And_Apple_Trees.py
|
anishsingh42/CodeChef
|
50f5c0438516210895e513bc4ee959b9d99ef647
|
[
"Apache-2.0"
] | 132
|
2020-10-13T18:06:53.000Z
|
2021-10-17T18:44:26.000Z
|
Easy/Chef And Apple Trees/Chef_And_Apple_Trees.py
|
anishsingh42/CodeChef
|
50f5c0438516210895e513bc4ee959b9d99ef647
|
[
"Apache-2.0"
] | 364
|
2020-10-13T18:04:52.000Z
|
2022-03-04T14:34:53.000Z
|
try:
t=int(input())
for i in range(t):
n=int(input())
a=list(map(int,input().split()))
set1=list(set(a))
print(len(set1))
except:
pass
| 19.777778
| 40
| 0.494382
| 27
| 178
| 3.259259
| 0.703704
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01626
| 0.308989
| 178
| 9
| 41
| 19.777778
| 0.699187
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.111111
| 0
| 0
| 0
| 0.111111
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
5ee409dbb734ad120a9a33496aa24dc32162d86c
| 273
|
py
|
Python
|
seqwise_cont_skillspace/algo/algo_cont_skillspace_highdim.py
|
fgitmichael/SelfSupevisedSkillDiscovery
|
60eee11cfd67046190dd2784bf40e97bdbed9d40
|
[
"MIT"
] | null | null | null |
seqwise_cont_skillspace/algo/algo_cont_skillspace_highdim.py
|
fgitmichael/SelfSupevisedSkillDiscovery
|
60eee11cfd67046190dd2784bf40e97bdbed9d40
|
[
"MIT"
] | 6
|
2021-02-02T23:00:02.000Z
|
2022-01-13T03:13:51.000Z
|
seqwise_cont_skillspace/algo/algo_cont_skillspace_highdim.py
|
fgitmichael/SelfSupevisedSkillDiscovery
|
60eee11cfd67046190dd2784bf40e97bdbed9d40
|
[
"MIT"
] | null | null | null |
from seqwise_cont_skillspace.algo.algo_cont_skillspace import \
SeqwiseAlgoRevisedContSkills
class SeqwiseAlgoRevisedContSkillsHighDim(SeqwiseAlgoRevisedContSkills):
def write_mode_influence_and_log(self, epoch):
# Two save computation time
pass
| 27.3
| 72
| 0.802198
| 26
| 273
| 8.115385
| 0.846154
| 0.132701
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157509
| 273
| 9
| 73
| 30.333333
| 0.917391
| 0.091575
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
5ef3cadc6d907ced63e9a9c515c8158656de22a6
| 210
|
py
|
Python
|
backend/apps/exam/serializers/level.py
|
xingxingzaixian/python-django-online-exam
|
c504e121814061cbf7647d4d916f363230239f17
|
[
"MIT"
] | 47
|
2021-09-23T00:52:49.000Z
|
2022-03-27T12:57:28.000Z
|
backend/apps/exam/serializers/level.py
|
xingxingzaixian/django-drf-online-exam
|
c504e121814061cbf7647d4d916f363230239f17
|
[
"MIT"
] | null | null | null |
backend/apps/exam/serializers/level.py
|
xingxingzaixian/django-drf-online-exam
|
c504e121814061cbf7647d4d916f363230239f17
|
[
"MIT"
] | 17
|
2021-09-02T12:12:21.000Z
|
2022-03-27T10:28:27.000Z
|
from rest_framework import serializers
from exam.models import TblExamLevel
class LevelSerializer(serializers.ModelSerializer):
class Meta:
model = TblExamLevel
fields = '__all__'
| 23.333333
| 52
| 0.72381
| 20
| 210
| 7.35
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228571
| 210
| 9
| 53
| 23.333333
| 0.907407
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6f4685cfc4ae12d6c9e8fd2a9862b24dbf7af0a7
| 72
|
py
|
Python
|
disco/storage/exceptions.py
|
NREL/disco
|
19afa1c397c6c24e37222f6cbf027eb88833beda
|
[
"BSD-3-Clause"
] | 2
|
2022-03-11T20:04:34.000Z
|
2022-03-14T22:25:29.000Z
|
disco/storage/exceptions.py
|
NREL/disco
|
19afa1c397c6c24e37222f6cbf027eb88833beda
|
[
"BSD-3-Clause"
] | 4
|
2022-03-11T17:48:50.000Z
|
2022-03-17T21:39:47.000Z
|
disco/storage/exceptions.py
|
NREL/disco
|
19afa1c397c6c24e37222f6cbf027eb88833beda
|
[
"BSD-3-Clause"
] | null | null | null |
class IngestionError(Exception):
"""Raise when ingestion failed"""
| 18
| 37
| 0.722222
| 7
| 72
| 7.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152778
| 72
| 3
| 38
| 24
| 0.852459
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
6f751a3a6015f14fed590768f7d1a194335e3036
| 248
|
py
|
Python
|
src/data/sr/others/sr291.py
|
sanghyun-son/srwarp
|
d7cc08db5ba5ec9103f1813f76d1da825afe1a5b
|
[
"MIT"
] | 82
|
2021-04-22T09:22:46.000Z
|
2022-03-30T03:06:47.000Z
|
src/data/sr/others/sr291.py
|
sanghyun-son/srwarp
|
d7cc08db5ba5ec9103f1813f76d1da825afe1a5b
|
[
"MIT"
] | 3
|
2021-08-04T15:40:52.000Z
|
2022-02-21T10:10:52.000Z
|
src/data/sr/others/sr291.py
|
sanghyun-son/srwarp
|
d7cc08db5ba5ec9103f1813f76d1da825afe1a5b
|
[
"MIT"
] | 11
|
2021-05-16T14:54:33.000Z
|
2022-02-18T08:25:37.000Z
|
from os import path
import glob
from data.sr import base
class SR291(base.SRBase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def get_path(self) -> str:
return path.join(self.dpath, 'SR291')
| 17.714286
| 45
| 0.645161
| 35
| 248
| 4.314286
| 0.628571
| 0.13245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030928
| 0.217742
| 248
| 13
| 46
| 19.076923
| 0.747423
| 0
| 0
| 0
| 0
| 0
| 0.020161
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0.125
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
48998b172619f89cbab8e3e2e416342c4511c734
| 138
|
py
|
Python
|
Aulas/Aulas-Mundo3/Aula016/Aula016a.py
|
Sofista23/Aula1_Python
|
129132d977058ac6f23cc95c7bb8b55d8a1bb429
|
[
"MIT"
] | null | null | null |
Aulas/Aulas-Mundo3/Aula016/Aula016a.py
|
Sofista23/Aula1_Python
|
129132d977058ac6f23cc95c7bb8b55d8a1bb429
|
[
"MIT"
] | null | null | null |
Aulas/Aulas-Mundo3/Aula016/Aula016a.py
|
Sofista23/Aula1_Python
|
129132d977058ac6f23cc95c7bb8b55d8a1bb429
|
[
"MIT"
] | null | null | null |
a=["taiga","ryuji","minori","ami"]
for c in range(0,4):
print(a[c])
print(a[1:])
print(a[0:2])
print(len(a))
#Não pode mudar uma tupla
| 19.714286
| 34
| 0.608696
| 29
| 138
| 2.896552
| 0.689655
| 0.214286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041322
| 0.123188
| 138
| 7
| 35
| 19.714286
| 0.652893
| 0.173913
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
48c5d6c938243dd38012c4c2358fd0c02b29d7f3
| 1,321
|
bzl
|
Python
|
example/third_party/org_scala_lang.bzl
|
wix-playground/rules_maven_third_party
|
ff0b486df194779d7d8e6c9102cd12138e3305c3
|
[
"Apache-2.0"
] | null | null | null |
example/third_party/org_scala_lang.bzl
|
wix-playground/rules_maven_third_party
|
ff0b486df194779d7d8e6c9102cd12138e3305c3
|
[
"Apache-2.0"
] | null | null | null |
example/third_party/org_scala_lang.bzl
|
wix-playground/rules_maven_third_party
|
ff0b486df194779d7d8e6c9102cd12138e3305c3
|
[
"Apache-2.0"
] | null | null | null |
load("@rules_maven_third_party//:import_external.bzl", import_external = "import_external")
def dependencies():
import_external(
name = "org_scala_lang_scala_compiler",
artifact = "org.scala-lang:scala-compiler:2.12.13",
artifact_sha256 = "ea971e004e2f15d3b7569eee8b559f220e23b9993e688bbe986f97938d1dc9f9",
srcjar_sha256 = "2229b671c1f481ef52bcba19bab859330366fa915cabca7e06c01add02e5cc21",
deps = [
"@org_scala_lang_modules_scala_xml_2_12",
"@org_scala_lang_scala_library",
"@org_scala_lang_scala_reflect",
],
)
import_external(
name = "org_scala_lang_scala_library",
artifact = "org.scala-lang:scala-library:2.12.13",
artifact_sha256 = "1bb415cff43f792636556a1137b213b192ab0246be003680a3b006d01235dd89",
srcjar_sha256 = "d299cc22829c08bc595a1d4378d7ad521babb6871ca2eab623d55b80c9307653",
)
import_external(
name = "org_scala_lang_scala_reflect",
artifact = "org.scala-lang:scala-reflect:2.12.13",
artifact_sha256 = "2bd46318d87945e72eb186a7b5ea496c43cf8f0aabc6ff11b3e7962f8635e669",
srcjar_sha256 = "1226f12c7d368b76e8ed43fad1cf93a5516efaaa0f75f865fddb818bb06d9256",
deps = [
"@org_scala_lang_scala_library",
],
)
| 38.852941
| 93
| 0.712339
| 108
| 1,321
| 8.287037
| 0.296296
| 0.089385
| 0.134078
| 0.17095
| 0.394413
| 0.117318
| 0.117318
| 0
| 0
| 0
| 0
| 0.263258
| 0.200606
| 1,321
| 33
| 94
| 40.030303
| 0.58428
| 0
| 0
| 0.321429
| 0
| 0
| 0.57835
| 0.566995
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| true
| 0
| 0.142857
| 0
| 0.178571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
48caf110ce0e118a1ab57fdf172fd16d68e694e5
| 750
|
py
|
Python
|
helics_apps-pip/helics_apps/__init__.py
|
nightlark/helics-packaging
|
4675e587d12b2fdccf46d4b95ea3fa99d3babbf6
|
[
"BSD-3-Clause"
] | null | null | null |
helics_apps-pip/helics_apps/__init__.py
|
nightlark/helics-packaging
|
4675e587d12b2fdccf46d4b95ea3fa99d3babbf6
|
[
"BSD-3-Clause"
] | 12
|
2020-02-12T16:56:58.000Z
|
2021-12-08T22:06:36.000Z
|
helics_apps-pip/helics_apps/__init__.py
|
nightlark/helics-packaging
|
4675e587d12b2fdccf46d4b95ea3fa99d3babbf6
|
[
"BSD-3-Clause"
] | null | null | null |
import os
import subprocess
import sys
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
DATA = os.path.join(os.path.dirname(__file__), 'data')
BIN_DIR = os.path.join(DATA, 'bin')
def _program(name, args):
return subprocess.call([os.path.join(BIN_DIR, name)] + args)
def helics_app():
raise SystemExit(_program('helics_app', sys.argv[1:]))
def helics_broker():
raise SystemExit(_program('helics_broker', sys.argv[1:]))
def helics_broker_server():
raise SystemExit(_program('helics_broker_server', sys.argv[1:]))
def helics_player():
raise SystemExit(_program('helics_player', sys.argv[1:]))
def helics_recorder():
raise SystemExit(_program('helics_recorder', sys.argv[1:]))
| 24.193548
| 68
| 0.729333
| 105
| 750
| 4.904762
| 0.304762
| 0.087379
| 0.213592
| 0.271845
| 0.287379
| 0.08932
| 0
| 0
| 0
| 0
| 0
| 0.007576
| 0.12
| 750
| 30
| 69
| 25
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0.113485
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0.2
| 0.05
| 0.55
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
48d3a4fd929fa6696bf8e1937a094e883eea4aa9
| 1,204
|
py
|
Python
|
model/signature.py
|
beda-software/fhir-py-experements
|
363cfb894fa6f971b9be19340cae1b0a3a4377d8
|
[
"MIT"
] | null | null | null |
model/signature.py
|
beda-software/fhir-py-experements
|
363cfb894fa6f971b9be19340cae1b0a3a4377d8
|
[
"MIT"
] | null | null | null |
model/signature.py
|
beda-software/fhir-py-experements
|
363cfb894fa6f971b9be19340cae1b0a3a4377d8
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/Signature) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .coding import Coding
from .element import Element
from .fhirdate import FHIRDate
from .fhirreference import FHIRReference
@dataclass
class Signature(Element):
""" A Signature - XML DigSig, JWS, Graphical image of signature, etc..
A signature along with supporting context. The signature may be a digital
signature that is cryptographic in nature, or some other signature
acceptable to the domain. This other signature may be as simple as a
graphical image representing a hand-written signature, or a signature
ceremony Different signature approaches have different utilities.
"""
resource_type: ClassVar[str] = "Signature"
type: List[Coding] = field(default_factory=list)
when: FHIRDate = None
who: FHIRReference = None
onBehalfOf: Optional[FHIRReference] = None
targetFormat: Optional[str] = None
sigFormat: Optional[str] = None
data: Optional[str] = None
| 35.411765
| 106
| 0.741694
| 157
| 1,204
| 5.675159
| 0.566879
| 0.03367
| 0.050505
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024267
| 0.178571
| 1,204
| 34
| 107
| 35.411765
| 0.876643
| 0.48588
| 0
| 0
| 1
| 0
| 0.015411
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.411765
| 0
| 0.941176
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
48f6aef1e43ade741af584233c1deb2411e58a13
| 112
|
py
|
Python
|
market/settings.py
|
Apreche/tilde_market
|
7ef17cb8a392d525994e421195819fe2b9786b39
|
[
"MIT"
] | null | null | null |
market/settings.py
|
Apreche/tilde_market
|
7ef17cb8a392d525994e421195819fe2b9786b39
|
[
"MIT"
] | null | null | null |
market/settings.py
|
Apreche/tilde_market
|
7ef17cb8a392d525994e421195819fe2b9786b39
|
[
"MIT"
] | null | null | null |
import os
DB_PATH = os.environ.get('MARKET_DB_PATH', ':memory:')
SMTP_HOST = os.environ.get('SMTP_HOST', None)
| 22.4
| 54
| 0.723214
| 19
| 112
| 4
| 0.578947
| 0.157895
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098214
| 112
| 4
| 55
| 28
| 0.752475
| 0
| 0
| 0
| 0
| 0
| 0.276786
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5b01cbb745f8829b9b5a726438b8dbc56e920b01
| 772
|
py
|
Python
|
linkitup/models.py
|
Data2Semantics/linkitup
|
79a2b47be86f2c0faca51f34af6c8004edbfad5a
|
[
"MIT"
] | 5
|
2015-02-27T08:41:57.000Z
|
2017-11-03T10:10:21.000Z
|
linkitup/models.py
|
Data2Semantics/linkitup
|
79a2b47be86f2c0faca51f34af6c8004edbfad5a
|
[
"MIT"
] | null | null | null |
linkitup/models.py
|
Data2Semantics/linkitup
|
79a2b47be86f2c0faca51f34af6c8004edbfad5a
|
[
"MIT"
] | null | null | null |
from flask.ext.sqlalchemy import SQLAlchemy
db = SQLAlchemy()
ROLE_USER = 0
ROLE_ADMIN = 1
class User(db.Model):
id = db.Column(db.Integer, primary_key = True)
nickname = db.Column(db.String(64))
email = db.Column(db.String(120), index = True, unique = True)
role = db.Column(db.SmallInteger, default = ROLE_USER)
oauth_token = db.Column(db.String(66))
oauth_token_secret = db.Column(db.String(22))
xoauth_figshare_id = db.Column(db.String(5))
def is_authenticated(self):
return True
def is_active(self):
return True
def is_anonymous(self):
return False
def get_id(self):
return unicode(self.id)
def __repr__(self):
return '<User %r>' % (self.nickname)
| 22.705882
| 66
| 0.63601
| 107
| 772
| 4.429907
| 0.448598
| 0.118143
| 0.147679
| 0.168776
| 0.080169
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020619
| 0.246114
| 772
| 33
| 67
| 23.393939
| 0.793814
| 0
| 0
| 0.090909
| 0
| 0
| 0.011658
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.227273
| false
| 0
| 0.045455
| 0.227273
| 0.863636
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
5b0e9dfc00bfa23cadae0ff11c7315dd8ce8ff80
| 125
|
py
|
Python
|
django_quicky/namegen/__init__.py
|
sametmax/django-quicky
|
2a87dbdcc6db400aff5a9119533bd3784fc4afb4
|
[
"Zlib"
] | 149
|
2015-01-02T19:48:47.000Z
|
2022-02-18T15:43:34.000Z
|
django_quicky/namegen/__init__.py
|
keshapps/django-quicky
|
2a87dbdcc6db400aff5a9119533bd3784fc4afb4
|
[
"Zlib"
] | 3
|
2015-01-28T18:44:42.000Z
|
2017-05-23T18:50:02.000Z
|
django_quicky/namegen/__init__.py
|
keshapps/django-quicky
|
2a87dbdcc6db400aff5a9119533bd3784fc4afb4
|
[
"Zlib"
] | 11
|
2015-01-05T19:22:16.000Z
|
2021-01-25T13:06:20.000Z
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
from .namegen import NameGenerator
namegen = NameGenerator()
| 20.833333
| 41
| 0.856
| 14
| 125
| 7.142857
| 0.642857
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088
| 125
| 5
| 42
| 25
| 0.877193
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d2b3ae1610d276e14a98ee69fd54bf48f615449d
| 164
|
py
|
Python
|
fastapi_admin/databaseManage/database.py
|
Chise1/fastapi-admin
|
74693cf8dd854d61ae5bd931ebe85f5b94f48121
|
[
"Apache-2.0"
] | null | null | null |
fastapi_admin/databaseManage/database.py
|
Chise1/fastapi-admin
|
74693cf8dd854d61ae5bd931ebe85f5b94f48121
|
[
"Apache-2.0"
] | null | null | null |
fastapi_admin/databaseManage/database.py
|
Chise1/fastapi-admin
|
74693cf8dd854d61ae5bd931ebe85f5b94f48121
|
[
"Apache-2.0"
] | null | null | null |
# -*- encoding: utf-8 -*-
"""
@File : database.py
@Time : 2020/4/4 15:26
@Author : chise
@Email : chise123@live.com
@Software: PyCharm
@info :数据库管理
"""
| 16.4
| 28
| 0.579268
| 22
| 164
| 4.318182
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109375
| 0.219512
| 164
| 9
| 29
| 18.222222
| 0.632813
| 0.939024
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d2bdc4b87388b7eeddd683be6d697f9f3d25d56c
| 65
|
py
|
Python
|
itertable/__main__.py
|
1Q1-Open-Source/itertable
|
73e59be2d1db8433ba954b0242d7964b3da2bf0e
|
[
"MIT"
] | 16
|
2019-11-11T12:50:32.000Z
|
2022-03-25T08:52:07.000Z
|
itertable/__main__.py
|
1Q1-Open-Source/itertable
|
73e59be2d1db8433ba954b0242d7964b3da2bf0e
|
[
"MIT"
] | 3
|
2019-09-24T14:14:04.000Z
|
2021-11-22T02:17:54.000Z
|
itertable/__main__.py
|
1Q1-Open-Source/itertable
|
73e59be2d1db8433ba954b0242d7964b3da2bf0e
|
[
"MIT"
] | 2
|
2021-11-08T07:38:31.000Z
|
2021-12-01T00:01:41.000Z
|
from .commands import cat
if __name__ == '__main__':
cat()
| 10.833333
| 26
| 0.646154
| 8
| 65
| 4.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 65
| 5
| 27
| 13
| 0.68
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d2f35fa56dfc846cb8a3c39952ef80c037b49488
| 93
|
py
|
Python
|
PartyPlay/apps.py
|
rollos/PartyPlay
|
e86ea9e23152611fa1dd7bfaf8e6a34b793ab265
|
[
"MIT"
] | null | null | null |
PartyPlay/apps.py
|
rollos/PartyPlay
|
e86ea9e23152611fa1dd7bfaf8e6a34b793ab265
|
[
"MIT"
] | null | null | null |
PartyPlay/apps.py
|
rollos/PartyPlay
|
e86ea9e23152611fa1dd7bfaf8e6a34b793ab265
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PartyplayConfig(AppConfig):
name = 'PartyPlay'
| 15.5
| 33
| 0.763441
| 10
| 93
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
961a5f8a10a341f9f7abdf00fa513317dd62db28
| 603
|
py
|
Python
|
modules/ckanext-ytp_tasks/ckanext/ytp_tasks/plugin.py
|
vrk-kpa/opendata-ckan
|
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
|
[
"MIT"
] | null | null | null |
modules/ckanext-ytp_tasks/ckanext/ytp_tasks/plugin.py
|
vrk-kpa/opendata-ckan
|
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
|
[
"MIT"
] | 10
|
2021-12-02T10:33:42.000Z
|
2022-03-31T11:00:54.000Z
|
modules/ckanext-ytp_tasks/ckanext/ytp_tasks/plugin.py
|
vrk-kpa/opendata-ckan
|
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
|
[
"MIT"
] | null | null | null |
from ckan import plugins
from ckanext.ytp_tasks import logic
from .cli import get_commands
class YtpTasksPlugin(plugins.SingletonPlugin):
plugins.implements(plugins.IConfigurable)
plugins.implements(plugins.IActions)
plugins.implements(plugins.IAuthFunctions)
plugins.implements(plugins.IClick)
def configure(self, config):
pass
def get_actions(self):
return {'ytp_tasks_add': logic.action_ytp_tasks_add}
def get_auth_functions(self):
return {'ytp_tasks_add': logic.auth_ytp_tasks_add}
def get_commands(self):
return get_commands()
| 25.125
| 60
| 0.741294
| 74
| 603
| 5.810811
| 0.405405
| 0.093023
| 0.223256
| 0.083721
| 0.2
| 0.12093
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177446
| 603
| 23
| 61
| 26.217391
| 0.866935
| 0
| 0
| 0
| 0
| 0
| 0.043118
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.0625
| 0.1875
| 0.1875
| 0.6875
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
824a0225c2c4b7d2a762cbf610cc6091d13a96d1
| 118
|
py
|
Python
|
Geo_Locater/geolocation/urls.py
|
Krishna-Patil/Geo-Locater
|
8af653764ee58a622835e1970b9bc4c93dedf089
|
[
"MIT"
] | null | null | null |
Geo_Locater/geolocation/urls.py
|
Krishna-Patil/Geo-Locater
|
8af653764ee58a622835e1970b9bc4c93dedf089
|
[
"MIT"
] | null | null | null |
Geo_Locater/geolocation/urls.py
|
Krishna-Patil/Geo-Locater
|
8af653764ee58a622835e1970b9bc4c93dedf089
|
[
"MIT"
] | null | null | null |
from django.urls import path
from .views import index_view
urlpatterns = [
path('', index_view, name='index'),
]
| 16.857143
| 39
| 0.70339
| 16
| 118
| 5.0625
| 0.625
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169492
| 118
| 6
| 40
| 19.666667
| 0.826531
| 0
| 0
| 0
| 0
| 0
| 0.042373
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
824adfdb7f402d1e3fcac423600f013cde9b004b
| 22
|
py
|
Python
|
aliyun-python-sdk-live/aliyunsdklive/__init__.py
|
leafcoder/aliyun-openapi-python-sdk
|
26b441ab37a5cda804de475fd5284bab699443f1
|
[
"Apache-2.0"
] | 1,001
|
2015-07-24T01:32:41.000Z
|
2022-03-25T01:28:18.000Z
|
aliyun-python-sdk-live/aliyunsdklive/__init__.py
|
leafcoder/aliyun-openapi-python-sdk
|
26b441ab37a5cda804de475fd5284bab699443f1
|
[
"Apache-2.0"
] | 363
|
2015-10-20T03:15:00.000Z
|
2022-03-08T12:26:19.000Z
|
aliyun-python-sdk-live/aliyunsdklive/__init__.py
|
leafcoder/aliyun-openapi-python-sdk
|
26b441ab37a5cda804de475fd5284bab699443f1
|
[
"Apache-2.0"
] | 682
|
2015-09-22T07:19:02.000Z
|
2022-03-22T09:51:46.000Z
|
__version__ = '3.9.10'
| 22
| 22
| 0.681818
| 4
| 22
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.090909
| 22
| 1
| 22
| 22
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8259d3b862dab4a14d88d5de968cf297d29a4f5d
| 5,415
|
py
|
Python
|
btclib/tests/test_to_prvkey.py
|
giubby84/btclib
|
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
|
[
"MIT"
] | null | null | null |
btclib/tests/test_to_prvkey.py
|
giubby84/btclib
|
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
|
[
"MIT"
] | null | null | null |
btclib/tests/test_to_prvkey.py
|
giubby84/btclib
|
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# Copyright (C) 2017-2020 The btclib developers
#
# This file is part of btclib. It is subject to the license terms in the
# LICENSE file found in the top-level directory of this distribution.
#
# No part of btclib including this file, may be copied, modified, propagated,
# or distributed except according to the terms contained in the LICENSE file.
"Tests for `btclib.to_prvkey` module."
import pytest
from btclib.curve import CURVES
from btclib.tests.test_to_key import (
INF,
INF_xpub_data,
Q,
compressed_prv_keys,
compressed_pub_keys,
invalid_prv_keys,
net_aware_prv_keys,
net_unaware_prv_keys,
not_a_prv_keys,
plain_prv_keys,
plain_pub_keys,
q,
q0,
qn,
uncompressed_prv_keys,
uncompressed_pub_keys,
xprv0_data,
xprv_data,
xprvn_data,
xpub_data,
)
from btclib.to_prvkey import int_from_prvkey, prvkeyinfo_from_prvkey
# FIXME: fix error messages
def test_from_prvkey() -> None:
secp256r1 = CURVES["secp256r1"]
m_c = (q, "mainnet", True)
m_unc = (q, "mainnet", False)
t_c = (q, "testnet", True)
t_unc = (q, "testnet", False)
for prv_key in [q] + plain_prv_keys:
assert q == int_from_prvkey(prv_key)
assert q == int_from_prvkey(prv_key, secp256r1)
assert m_c == prvkeyinfo_from_prvkey(prv_key)
assert m_c == prvkeyinfo_from_prvkey(prv_key, "mainnet")
assert m_c == prvkeyinfo_from_prvkey(prv_key, "mainnet", compressed=True)
assert m_c == prvkeyinfo_from_prvkey(prv_key, compressed=True)
assert m_unc == prvkeyinfo_from_prvkey(prv_key, "mainnet", compressed=False)
assert m_unc == prvkeyinfo_from_prvkey(prv_key, compressed=False)
assert t_c == prvkeyinfo_from_prvkey(prv_key, "testnet")
assert t_c == prvkeyinfo_from_prvkey(prv_key, "testnet", compressed=True)
assert t_unc == prvkeyinfo_from_prvkey(prv_key, "testnet", compressed=False)
for prv_key in [xprv_data] + compressed_prv_keys:
assert q == int_from_prvkey(prv_key)
with pytest.raises(ValueError):
int_from_prvkey(prv_key, secp256r1)
assert m_c == prvkeyinfo_from_prvkey(prv_key)
assert m_c == prvkeyinfo_from_prvkey(prv_key, "mainnet")
assert m_c == prvkeyinfo_from_prvkey(prv_key, "mainnet", compressed=True)
assert m_c == prvkeyinfo_from_prvkey(prv_key, compressed=True)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "mainnet", compressed=False)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, compressed=False)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet")
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet", compressed=True)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet", compressed=False)
for prv_key in uncompressed_prv_keys:
assert q == int_from_prvkey(prv_key)
with pytest.raises(ValueError):
int_from_prvkey(prv_key, secp256r1)
assert m_unc == prvkeyinfo_from_prvkey(prv_key)
assert m_unc == prvkeyinfo_from_prvkey(prv_key, "mainnet")
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "mainnet", compressed=True)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, compressed=True)
assert m_unc == prvkeyinfo_from_prvkey(prv_key, "mainnet", compressed=False)
assert m_unc == prvkeyinfo_from_prvkey(prv_key, compressed=False)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet")
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet", compressed=True)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet", compressed=False)
for prv_key in [xprv_data] + net_aware_prv_keys:
assert q == int_from_prvkey(prv_key)
with pytest.raises(ValueError):
int_from_prvkey(prv_key, secp256r1)
assert prvkeyinfo_from_prvkey(prv_key) in (m_c, m_unc)
assert prvkeyinfo_from_prvkey(prv_key, "mainnet") in (m_c, m_unc)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(prv_key, "testnet")
for prv_key in [q] + net_unaware_prv_keys:
assert q == int_from_prvkey(prv_key)
assert q == int_from_prvkey(prv_key, secp256r1)
assert prvkeyinfo_from_prvkey(prv_key) in (m_c, m_unc)
assert prvkeyinfo_from_prvkey(prv_key, "mainnet") in (m_c, m_unc)
assert prvkeyinfo_from_prvkey(prv_key, "testnet") in (t_c, t_unc)
for invalid_prv_key in [q0, qn, xprv0_data, xprvn_data] + invalid_prv_keys:
with pytest.raises(ValueError):
int_from_prvkey(invalid_prv_key)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(invalid_prv_key)
for not_a_prv_key in (
[q0, qn, xprv0_data, xprvn_data]
+ [INF, INF_xpub_data]
+ not_a_prv_keys
+ [Q]
+ plain_pub_keys
+ [xpub_data]
+ compressed_pub_keys
+ uncompressed_pub_keys
):
with pytest.raises(ValueError):
int_from_prvkey(not_a_prv_key)
with pytest.raises(ValueError):
prvkeyinfo_from_prvkey(not_a_prv_key)
| 39.525547
| 84
| 0.686611
| 733
| 5,415
| 4.718963
| 0.124147
| 0.093669
| 0.161607
| 0.198901
| 0.729402
| 0.715236
| 0.708297
| 0.708297
| 0.671003
| 0.587453
| 0
| 0.010248
| 0.225115
| 5,415
| 136
| 85
| 39.816176
| 0.814109
| 0.077747
| 0
| 0.451327
| 0
| 0
| 0.045201
| 0
| 0
| 0
| 0
| 0.007353
| 0.256637
| 1
| 0.00885
| false
| 0
| 0.035398
| 0
| 0.044248
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8277c18c2d7d1a5c0ae9fd57c5de2e0a362db361
| 1,000
|
py
|
Python
|
Exercicios/ex008.py
|
FelipeLauton/Python
|
7e2b1ba6ba0adafe06a41c9c1db5daabba86e7d1
|
[
"MIT"
] | null | null | null |
Exercicios/ex008.py
|
FelipeLauton/Python
|
7e2b1ba6ba0adafe06a41c9c1db5daabba86e7d1
|
[
"MIT"
] | null | null | null |
Exercicios/ex008.py
|
FelipeLauton/Python
|
7e2b1ba6ba0adafe06a41c9c1db5daabba86e7d1
|
[
"MIT"
] | null | null | null |
n = int(input('Digite um número para ver sua tabuada: '))
#print('===================')
#print('{} x 1 = {}'.format(n, n*1))
#print('{} x 2 = {}'.format(n, n*2))
#print('{} x 3 = {}'.format(n, n*3))
#print('{} x 4 = {}'.format(n, n*4))
#print('{} x 5 = {}'.format(n, n*5))
#print('{} x 6 = {}'.format(n, n*6))
#print('{} x 7 = {}'.format(n, n*7))
#print('{} x 8 = {}'.format(n, n*8))
#print('{} x 9 = {}'.format(n, n*9))
#print('{} x 10 = {}'.format(n, n*10))
#print('===================')
# O jeito mais fácil de realizar este exercício.
print('-'*12)
print('{} x {:2} = {}'.format(n, 1, n*1))
print('{} x {:2} = {}'.format(n, 2, n*2))
print('{} x {:2} = {}'.format(n, 3, n*3))
print('{} x {:2} = {}'.format(n, 4, n*4))
print('{} x {:2} = {}'.format(n, 5, n*5))
print('{} x {:2} = {}'.format(n, 6, n*6))
print('{} x {:2} = {}'.format(n, 7, n*7))
print('{} x {:2} = {}'.format(n, 8, n*8))
print('{} x {:2} = {}'.format(n, 9, n*9))
print('{} x {:2} = {}'.format(n, 10, n*10))
print('-'*12)
| 34.482759
| 57
| 0.436
| 174
| 1,000
| 2.505747
| 0.183908
| 0.275229
| 0.176606
| 0.327982
| 0.362385
| 0.073395
| 0.073395
| 0
| 0
| 0
| 0
| 0.069378
| 0.164
| 1,000
| 28
| 58
| 35.714286
| 0.452153
| 0.464
| 0
| 0.153846
| 0
| 0
| 0.34608
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.923077
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
82cc54701e899150395929f1b3338bcf9ea65d20
| 303
|
py
|
Python
|
examples/using-aws-secret-to-connect-to-dynamodb.py
|
sprucegum/lucid-dynamodb
|
1e7145b14f1f462e2d8fe320b46b3820967bbcbf
|
[
"MIT"
] | 70
|
2021-05-30T13:34:57.000Z
|
2021-06-13T21:05:06.000Z
|
examples/using-aws-secret-to-connect-to-dynamodb.py
|
dineshsonachalam/Course_Registration_System
|
1e7145b14f1f462e2d8fe320b46b3820967bbcbf
|
[
"MIT"
] | 21
|
2021-07-31T07:10:51.000Z
|
2022-02-05T23:46:21.000Z
|
examples/using-aws-secret-to-connect-to-dynamodb.py
|
dineshsonachalam/Course_Registration_System
|
1e7145b14f1f462e2d8fe320b46b3820967bbcbf
|
[
"MIT"
] | 3
|
2021-07-12T10:52:36.000Z
|
2021-12-06T19:51:05.000Z
|
from LucidDynamodb import DynamoDb
import os
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
db = DynamoDb(region_name="us-east-1",
aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY)
| 43.285714
| 58
| 0.775578
| 49
| 303
| 4.285714
| 0.346939
| 0.342857
| 0.228571
| 0.266667
| 0.371429
| 0.304762
| 0.304762
| 0.304762
| 0
| 0
| 0
| 0.003861
| 0.145215
| 303
| 7
| 59
| 43.285714
| 0.80695
| 0
| 0
| 0
| 0
| 0
| 0.154605
| 0.069079
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.285714
| 0
| 0.285714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
82d612b59a3fc5539617f5ccd89d9a3ce2a5c069
| 292
|
py
|
Python
|
10_Day_Loops/example.py
|
diegofregolente/30-Days-Of-Python
|
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
|
[
"Apache-2.0"
] | null | null | null |
10_Day_Loops/example.py
|
diegofregolente/30-Days-Of-Python
|
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
|
[
"Apache-2.0"
] | null | null | null |
10_Day_Loops/example.py
|
diegofregolente/30-Days-Of-Python
|
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
|
[
"Apache-2.0"
] | null | null | null |
count = 0
while count < 5:
print(count)
count += 1
else:
print(count)
count = 0
while count < 5:
print(count)
count += 1
if count == 3:
break
count = 0
while count < 5:
if count == 3:
count += 1
continue
print(count)
count += 1
| 12.166667
| 18
| 0.506849
| 40
| 292
| 3.7
| 0.275
| 0.27027
| 0.405405
| 0.324324
| 0.560811
| 0.445946
| 0.445946
| 0.445946
| 0.445946
| 0
| 0
| 0.066667
| 0.383562
| 292
| 23
| 19
| 12.695652
| 0.755556
| 0
| 0
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.210526
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
82e9c3b1137e09f73a010c3f30450b52b8ab4471
| 493
|
py
|
Python
|
addons14/contract/models/__init__.py
|
odoochain/addons_oca
|
55d456d798aebe16e49b4a6070765f206a8885ca
|
[
"MIT"
] | 1
|
2021-06-10T14:59:13.000Z
|
2021-06-10T14:59:13.000Z
|
addons14/contract/models/__init__.py
|
odoochain/addons_oca
|
55d456d798aebe16e49b4a6070765f206a8885ca
|
[
"MIT"
] | null | null | null |
addons14/contract/models/__init__.py
|
odoochain/addons_oca
|
55d456d798aebe16e49b4a6070765f206a8885ca
|
[
"MIT"
] | 1
|
2021-04-09T09:44:44.000Z
|
2021-04-09T09:44:44.000Z
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import contract_recurrency_mixin # should be first
from . import abstract_contract
from . import abstract_contract_line
from . import contract_template
from . import contract
from . import contract_template_line
from . import contract_line
from . import account_move
from . import res_partner
from . import contract_tag
from . import res_company
from . import res_config_settings
from . import contract_terminate_reason
| 30.8125
| 63
| 0.815416
| 71
| 493
| 5.422535
| 0.450704
| 0.337662
| 0.327273
| 0.135065
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004662
| 0.129817
| 493
| 15
| 64
| 32.866667
| 0.892774
| 0.156187
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7d5eb308b73b6a8c4a5a6a8ca5b6aac3ce55d265
| 411
|
py
|
Python
|
Lab/lab1of3.py
|
damiso15/we_japa_data_science_lab
|
ada2a358753e1f1db087d410808524e7546284f6
|
[
"MIT"
] | null | null | null |
Lab/lab1of3.py
|
damiso15/we_japa_data_science_lab
|
ada2a358753e1f1db087d410808524e7546284f6
|
[
"MIT"
] | null | null | null |
Lab/lab1of3.py
|
damiso15/we_japa_data_science_lab
|
ada2a358753e1f1db087d410808524e7546284f6
|
[
"MIT"
] | null | null | null |
# Use this playground to experiment with list methods, using Test Run
list_method = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
list_method.append(5, )
print(list_method)
list_method.extend([5, 5, 5, 5])
print(list_method)
list_method.insert(3, 2)
print(list_method)
list_method.remove(2)
print(list_method)
print(list_method.count(5))
print(list_method.pop(10))
print(list_method)
list_method.reverse()
print(list_method)
| 24.176471
| 69
| 0.754258
| 74
| 411
| 4
| 0.351351
| 0.472973
| 0.405405
| 0.256757
| 0.344595
| 0.175676
| 0
| 0
| 0
| 0
| 0
| 0.057065
| 0.104623
| 411
| 17
| 70
| 24.176471
| 0.747283
| 0.163017
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.571429
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
7d6e61ed9316d99d970adcfe56b69b201dfd2fd9
| 176
|
py
|
Python
|
blog/forms.py
|
paullab/my-first-blog
|
1ee9f3e52eff29ff278d2ecfaf7921db0c093756
|
[
"Apache-2.0"
] | null | null | null |
blog/forms.py
|
paullab/my-first-blog
|
1ee9f3e52eff29ff278d2ecfaf7921db0c093756
|
[
"Apache-2.0"
] | null | null | null |
blog/forms.py
|
paullab/my-first-blog
|
1ee9f3e52eff29ff278d2ecfaf7921db0c093756
|
[
"Apache-2.0"
] | null | null | null |
from django import forms
from .models import Comment
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
# fields = '__all__'
fields = ('author', 'message')
| 22
| 35
| 0.721591
| 21
| 176
| 5.857143
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170455
| 176
| 8
| 36
| 22
| 0.842466
| 0.102273
| 0
| 0
| 0
| 0
| 0.082803
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7d7d1ec5beb0d0a330889aa7b96241444c33e5fe
| 331
|
py
|
Python
|
ui_interface.py
|
Omnikron13/blether
|
10752c6ed73d1d1e4061a9cc98567212c17e1ddf
|
[
"0BSD"
] | null | null | null |
ui_interface.py
|
Omnikron13/blether
|
10752c6ed73d1d1e4061a9cc98567212c17e1ddf
|
[
"0BSD"
] | null | null | null |
ui_interface.py
|
Omnikron13/blether
|
10752c6ed73d1d1e4061a9cc98567212c17e1ddf
|
[
"0BSD"
] | null | null | null |
from abc import abstractmethod
from singleton import AbstractSingleton
class UIInterface(metaclass=AbstractSingleton):
@abstractmethod
def runloop(self):
pass
@abstractmethod
def infodialogue(self, title: str, message: str):
pass
@abstractmethod
def addfeeddialogue(self):
pass
| 18.388889
| 53
| 0.700906
| 31
| 331
| 7.483871
| 0.580645
| 0.219828
| 0.181034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238671
| 331
| 17
| 54
| 19.470588
| 0.920635
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.166667
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7d96d7f566e13e389d5f93e126a6ff7c87562683
| 209
|
py
|
Python
|
src/oscar/apps/address/config.py
|
highbiza/django-oscar
|
7eba207a77e5dd56b04a63b9283a9d76da2f64ac
|
[
"BSD-3-Clause"
] | 1
|
2019-10-22T01:10:20.000Z
|
2019-10-22T01:10:20.000Z
|
src/oscar/apps/address/config.py
|
highbiza/django-oscar
|
7eba207a77e5dd56b04a63b9283a9d76da2f64ac
|
[
"BSD-3-Clause"
] | 10
|
2020-05-11T20:33:31.000Z
|
2022-03-12T00:24:28.000Z
|
src/oscar/apps/address/config.py
|
highbiza/django-oscar
|
7eba207a77e5dd56b04a63b9283a9d76da2f64ac
|
[
"BSD-3-Clause"
] | 3
|
2019-03-20T16:17:58.000Z
|
2022-02-25T09:38:38.000Z
|
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class AddressConfig(AppConfig):
label = 'address'
name = 'oscar.apps.address'
verbose_name = _('Address')
| 23.222222
| 54
| 0.741627
| 25
| 209
| 6.04
| 0.68
| 0.13245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167464
| 209
| 8
| 55
| 26.125
| 0.867816
| 0
| 0
| 0
| 0
| 0
| 0.15311
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7d9b009a50692457ed09c4c422706e8ad02a76c3
| 767
|
py
|
Python
|
Events.py
|
flameproofsocks/Class-Scheduler-447
|
0c0ce5872765aa9f1a5d8025fe8bb289a5496e8d
|
[
"MIT"
] | 1
|
2020-03-25T14:58:58.000Z
|
2020-03-25T14:58:58.000Z
|
Events.py
|
flameproofsocks/Class-Scheduler-447
|
0c0ce5872765aa9f1a5d8025fe8bb289a5496e8d
|
[
"MIT"
] | null | null | null |
Events.py
|
flameproofsocks/Class-Scheduler-447
|
0c0ce5872765aa9f1a5d8025fe8bb289a5496e8d
|
[
"MIT"
] | null | null | null |
###
# Created on Apr 13,2020
# @author: Jordon Malcolm
# jordonm1@umbc.edu
###
class Events:
def __init__(self, arg1=" ", arg2=" ", arg3=" ", arg4=" ", arg5=" ", arg6=" ", arg7=0):
self.subject = arg1
self.courseNum = arg2
self.version = arg3
self.section = arg4
self.instructor = arg5
self.time = arg6
self.capacity = arg7
def getSubject(self):
return self.subject
def getCourseNum(self):
return self.courseNum
def getVersion(self):
return self.version
def getSection(self):
return self.section
def getInstructor(self):
return self.instructor
def getTime(self):
return self.time
def getCapacity(self):
return self.capacity
| 27.392857
| 91
| 0.598435
| 87
| 767
| 5.229885
| 0.448276
| 0.153846
| 0.215385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040367
| 0.289439
| 767
| 28
| 92
| 27.392857
| 0.794495
| 0.083442
| 0
| 0
| 0
| 0
| 0.008646
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.347826
| false
| 0
| 0
| 0.304348
| 0.695652
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8156286b02b0a1ea6ef651c5b06b3b955093a49e
| 24
|
py
|
Python
|
sugartensor/_version.py
|
DevashishJoshi/sugartensor
|
6eb5b5142b688427b3521f31feda57ffeb8bd6ef
|
[
"MIT"
] | null | null | null |
sugartensor/_version.py
|
DevashishJoshi/sugartensor
|
6eb5b5142b688427b3521f31feda57ffeb8bd6ef
|
[
"MIT"
] | null | null | null |
sugartensor/_version.py
|
DevashishJoshi/sugartensor
|
6eb5b5142b688427b3521f31feda57ffeb8bd6ef
|
[
"MIT"
] | null | null | null |
__version__ = '1.0.0.2'
| 12
| 23
| 0.625
| 5
| 24
| 2.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 0.125
| 24
| 1
| 24
| 24
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
816074d86b0ba537b212522eb71587d73c52a42a
| 54
|
py
|
Python
|
muninn/tools/__init__.py
|
LeoBreebaart/muninn
|
ac54adbac59aa35af13554c77080d2881154b6a8
|
[
"BSD-3-Clause"
] | 3
|
2017-05-03T13:41:35.000Z
|
2022-03-30T10:22:58.000Z
|
muninn/tools/__init__.py
|
LeoBreebaart/muninn
|
ac54adbac59aa35af13554c77080d2881154b6a8
|
[
"BSD-3-Clause"
] | 34
|
2017-03-31T07:55:28.000Z
|
2021-01-29T14:26:26.000Z
|
muninn/tools/__init__.py
|
LeoBreebaart/muninn
|
ac54adbac59aa35af13554c77080d2881154b6a8
|
[
"BSD-3-Clause"
] | 3
|
2019-02-08T03:22:20.000Z
|
2021-04-07T11:21:53.000Z
|
#
# Copyright (C) 2014-2021 S[&]T, The Netherlands.
#
| 13.5
| 49
| 0.62963
| 8
| 54
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177778
| 0.166667
| 54
| 3
| 50
| 18
| 0.577778
| 0.87037
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
81656f926ac614e2e8bb484edfcc340fbe66ee4a
| 166
|
py
|
Python
|
Part 1/Week 8/Soma dos elementos de uma lista.py
|
Arielcarv/Intro-Ciencia-da-Computacao-USP
|
03d69b9e0f3fa5fca053d0fc406aa1a584d33de1
|
[
"MIT"
] | null | null | null |
Part 1/Week 8/Soma dos elementos de uma lista.py
|
Arielcarv/Intro-Ciencia-da-Computacao-USP
|
03d69b9e0f3fa5fca053d0fc406aa1a584d33de1
|
[
"MIT"
] | null | null | null |
Part 1/Week 8/Soma dos elementos de uma lista.py
|
Arielcarv/Intro-Ciencia-da-Computacao-USP
|
03d69b9e0f3fa5fca053d0fc406aa1a584d33de1
|
[
"MIT"
] | null | null | null |
lista = [2, 4, 2, 2, 3, 3, 1]
def soma_elementos(lista):
soma = 0
for element in lista:
soma += element
return soma
print(soma_elementos(lista))
| 18.444444
| 29
| 0.608434
| 26
| 166
| 3.807692
| 0.538462
| 0.262626
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066116
| 0.271084
| 166
| 9
| 30
| 18.444444
| 0.752066
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 0.142857
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8196efe792c7064467cccc8e45da55f6d0db7ea2
| 1,586
|
py
|
Python
|
backend/unpp_api/apps/notification/migrations/0005_auto_20180606_1209.py
|
unicef/un-partner-portal
|
73afa193a5f6d626928cae0025c72a17f0ef8f61
|
[
"Apache-2.0"
] | 6
|
2017-11-21T10:00:44.000Z
|
2022-02-12T16:51:48.000Z
|
backend/unpp_api/apps/notification/migrations/0005_auto_20180606_1209.py
|
unicef/un-partner-portal
|
73afa193a5f6d626928cae0025c72a17f0ef8f61
|
[
"Apache-2.0"
] | 995
|
2017-07-31T02:08:36.000Z
|
2022-03-08T22:44:03.000Z
|
backend/unpp_api/apps/notification/migrations/0005_auto_20180606_1209.py
|
unicef/un-partner-portal
|
73afa193a5f6d626928cae0025c72a17f0ef8f61
|
[
"Apache-2.0"
] | 1
|
2021-07-21T10:45:15.000Z
|
2021-07-21T10:45:15.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-06 12:09
from __future__ import unicode_literals
import common.database_fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notification', '0004_auto_20180606_1156'),
]
operations = [
migrations.AlterField(
model_name='notification',
name='source',
field=common.database_fields.FixedTextField(choices=[('account_create_reject', 'ACCOUNT_REJECTED'), ('account_reject_sanctions', 'ACCOUNT_REJECTED_BY_SANCTIONS'), ('account_active_profile_create', 'ACTIVE_ACCOUNT_PROFILE_CREATE'), ('account_active_send_to_org_head', 'ACTIVE_ACCOUNT_SEND_TO_ORG_HEAD'), ('added_as_cfei_local_point', 'ADDED_AS_CFEI_FOCAL_POINT'), ('cfei_application_lost', 'CFEI_APPLICATION_LOSS'), ('cfei_application_submitted', 'CFEI_APPLICATION_SUBMITTED'), ('cfei_application_selected', 'CFEI_APPLICATION_WIN'), ('cfei_application_withdraw', 'CFEI_APPLICATION_WITHDRAWN'), ('cfei_cancel', 'CFEI_CANCELLED'), ('cfei_update_prev', 'CFEI_DEADLINE_UPDATE'), ('cfei_invitation', 'CFEI_INVITE'), ('cfei_review_required', 'CFEI_REVIEW_REQUIRED'), ('direct_select_ucn', 'DIRECT_SELECTION_FROM_NOTE_INITIATED'), ('direct_select_un_int', 'DIRECT_SELECTION_INITIATED'), ('account_org_duplicate', 'DUPLICATE_ORGANIZATION_ACCOUNT'), ('agency_application_decision_make', 'PARTNER_DECISION_MADE'), ('agency_cfei_reviewers_selected', 'SELECTED_AS_CFEI_REVIEWER'), ('unsol_application_submitted', 'UNSOLICITED_CONCEPT_NOTE_RECEIVED')]),
),
]
| 72.090909
| 1,151
| 0.769861
| 182
| 1,586
| 6.148352
| 0.521978
| 0.107239
| 0.035746
| 0.023235
| 0.0563
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02381
| 0.099622
| 1,586
| 21
| 1,152
| 75.52381
| 0.759804
| 0.043506
| 0
| 0
| 1
| 0
| 0.626156
| 0.47424
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.214286
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
81aaf37e8ba8fe02930316ad55c0b5d33a7a7c51
| 119
|
py
|
Python
|
s3/models.py
|
fallenhitokiri/fddemo
|
95ea3e481a248c0a2c57811736346246ff51cd45
|
[
"MIT"
] | 2
|
2022-01-19T01:48:26.000Z
|
2022-01-19T19:48:48.000Z
|
s3/models.py
|
fallenhitokiri/fddemo
|
95ea3e481a248c0a2c57811736346246ff51cd45
|
[
"MIT"
] | null | null | null |
s3/models.py
|
fallenhitokiri/fddemo
|
95ea3e481a248c0a2c57811736346246ff51cd45
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from django.db import models
class Upload(models.Model):
file = models.FileField(upload_to="s3")
| 17
| 43
| 0.722689
| 18
| 119
| 4.722222
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019802
| 0.151261
| 119
| 6
| 44
| 19.833333
| 0.821782
| 0.109244
| 0
| 0
| 0
| 0
| 0.019231
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c4d4aa3b0fc5aff6e02f3841149cfdc20503092b
| 1,858
|
py
|
Python
|
passwordstate_password_fact/test_passwordstate_password_fact.py
|
boxuk/ansible-boxuk-modules-passwordstate
|
69fb482d54452c37f64ba9f7f1aa0e9ef303117d
|
[
"MIT"
] | 9
|
2016-02-19T22:50:40.000Z
|
2021-06-23T00:59:47.000Z
|
passwordstate_password_fact/test_passwordstate_password_fact.py
|
boxuk/ansible-boxuk-modules-passwordstate
|
69fb482d54452c37f64ba9f7f1aa0e9ef303117d
|
[
"MIT"
] | null | null | null |
passwordstate_password_fact/test_passwordstate_password_fact.py
|
boxuk/ansible-boxuk-modules-passwordstate
|
69fb482d54452c37f64ba9f7f1aa0e9ef303117d
|
[
"MIT"
] | 7
|
2016-02-19T22:50:35.000Z
|
2021-06-23T01:06:04.000Z
|
""" PasswordState Test """
import unittest2 as unittest
from passwordstate_password_fact import Password
from passwordstate_password_fact import PasswordState
from ddt import ddt, data, unpack
import mock
class PasswordTest(unittest.TestCase):
""" PasswordTest """
@mock.patch('urllib2.urlopen', autospec=True)
def test_gather_facts_id(self, mock_urlopen):
""" gather facts by id """
value = '[{"Password": "foo", "Title": "bar", ' \
'"UserName": "foobar", "GenericField1": "123", ' \
'"PasswordID": 999}]'
mock_urlopen.return_value.read.return_value = value
module = mock.Mock()
url = "http://passwordstate"
api_key = "abc123xyz"
api = PasswordState(module, url, api_key)
password = Password(api, '123',
{'id': '999', 'field': None, 'field_id': None})
facts = password.gather_facts('fact_name_prefix')
expected = {'fact_name_prefix_password': 'foo'}
self.assertEquals(expected, facts)
@mock.patch('urllib2.urlopen', autospec=True)
def test_gather_facts_field(self, mock_urlopen):
""" gather facts by custom field """
value = '[{"Password": "foo", "Title": "bar", ' \
'"UserName": "foobar", "GenericField1": "123", ' \
'"PasswordID": 999}]'
mock_urlopen.return_value.read.return_value = value
module = mock.Mock()
url = "http://passwordstate"
api_key = "abc123xyz"
api = PasswordState(module, url, api_key)
password = Password(api, '123',
{'id': None, 'field': 'GenericField1', 'field_id': '123'})
facts = password.gather_facts('fact_name_prefix')
expected = {'fact_name_prefix_password': 'foo'}
self.assertEquals(expected, facts)
| 35.730769
| 86
| 0.599031
| 192
| 1,858
| 5.609375
| 0.270833
| 0.061281
| 0.051996
| 0.053853
| 0.796657
| 0.731662
| 0.679666
| 0.679666
| 0.679666
| 0.679666
| 0
| 0.026182
| 0.259957
| 1,858
| 51
| 87
| 36.431373
| 0.757091
| 0.044133
| 0
| 0.722222
| 0
| 0
| 0.248571
| 0.028571
| 0
| 0
| 0
| 0
| 0.055556
| 1
| 0.055556
| false
| 0.472222
| 0.138889
| 0
| 0.222222
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
c4edf2fbabfd01a2cffc4abf67f2db72b301cbe3
| 1,907
|
py
|
Python
|
credential.py
|
umutonij/Password-Locker
|
522c02697d3568f8e4ec5965d5879d7716c21aa4
|
[
"MIT"
] | null | null | null |
credential.py
|
umutonij/Password-Locker
|
522c02697d3568f8e4ec5965d5879d7716c21aa4
|
[
"MIT"
] | null | null | null |
credential.py
|
umutonij/Password-Locker
|
522c02697d3568f8e4ec5965d5879d7716c21aa4
|
[
"MIT"
] | null | null | null |
class Credential:
'''
class that generates new instance for credentials
'''
credential_list=[]
def __init__(self,account_name,password):
'''
__init__ method that helps us define properties for our objects.
Args:
account_name: New credential account name.
password : New credential password.
'''
self.account_name = account_name
self.password = password
credential_list=[]
def save_credential(self):
'''
save_credential method saves credential object into credential_list
'''
Credential.credential_list.append(self)
def delete_credential(self):
'''
delete_credential method deletes a saved credential from the credential_list
'''
Credential.credential_list.remove(self)
@classmethod
def find_by_name(cls,name):
'''
Method that takes in a number and returns a contact that matches that number.
Args:
number: password to search for
Returns :
Credential of account that matches the number.
'''
for credential in cls.credential_list:
if credential.account_name == name:
return credential
@classmethod
def display_credentials(cls):
'''
method that returns the credential list
'''
return cls.credential_list
@classmethod
def credential_exist(cls,name):
'''
Method that checks if a credential exists from the credential list.
Args:
account_name: accopunt name to search if it exists
Returns :
Boolean: True or false depending if the credential exists
'''
for credential in cls.credential_list:
if credential.account_name == name:
return True
return False
| 28.462687
| 86
| 0.606712
| 201
| 1,907
| 5.597015
| 0.308458
| 0.136889
| 0.056
| 0.060444
| 0.183111
| 0.115556
| 0.115556
| 0.115556
| 0.115556
| 0.115556
| 0
| 0
| 0.332984
| 1,907
| 67
| 87
| 28.462687
| 0.884434
| 0.405349
| 0
| 0.375
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.083333
| 0
| 0
| 0.541667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
c4f147071f47883e5f9814913f96b77f96c62d94
| 392
|
py
|
Python
|
INBa/2015/Semyenov_A_N/task_1_24.py
|
YukkaSarasti/pythonintask
|
eadf4245abb65f4400a3bae30a4256b4658e009c
|
[
"Apache-2.0"
] | null | null | null |
INBa/2015/Semyenov_A_N/task_1_24.py
|
YukkaSarasti/pythonintask
|
eadf4245abb65f4400a3bae30a4256b4658e009c
|
[
"Apache-2.0"
] | null | null | null |
INBa/2015/Semyenov_A_N/task_1_24.py
|
YukkaSarasti/pythonintask
|
eadf4245abb65f4400a3bae30a4256b4658e009c
|
[
"Apache-2.0"
] | null | null | null |
#Задача 1. Вариант 24
#Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Джон Гриффит Лондон. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода.
#Semyenov A.N.
#09.02.2016
print("Джон Гриффит Лондон более известена, как американский писатель, социалист Джек Лондон")
input('\nНажмите Enter для выхода')
| 56
| 211
| 0.816327
| 54
| 392
| 5.925926
| 0.87037
| 0.06875
| 0.10625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03207
| 0.125
| 392
| 7
| 212
| 56
| 0.900875
| 0.645408
| 0
| 0
| 0
| 0
| 0.816176
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c4f1819149336bd43c4d3dd7034e6b7c2eb53754
| 84
|
py
|
Python
|
hero/admin.py
|
BobsProgrammingAcademy/Portfolio-Website-Deployment
|
e3122f6fa0376f64b1580e03b8cb43da6dc85a1a
|
[
"MIT"
] | null | null | null |
hero/admin.py
|
BobsProgrammingAcademy/Portfolio-Website-Deployment
|
e3122f6fa0376f64b1580e03b8cb43da6dc85a1a
|
[
"MIT"
] | null | null | null |
hero/admin.py
|
BobsProgrammingAcademy/Portfolio-Website-Deployment
|
e3122f6fa0376f64b1580e03b8cb43da6dc85a1a
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Hero
admin.site.register(Hero)
| 21
| 32
| 0.821429
| 13
| 84
| 5.307692
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 84
| 4
| 33
| 21
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c4fee62f2828b6975bad2db2d63382d87ff360b4
| 100
|
py
|
Python
|
recursive_app/apps.py
|
thinkAmi-sandbox/django_cte-sample
|
1b130b80a0c2644bfff9d3f8cf856ce92d570af1
|
[
"Unlicense"
] | null | null | null |
recursive_app/apps.py
|
thinkAmi-sandbox/django_cte-sample
|
1b130b80a0c2644bfff9d3f8cf856ce92d570af1
|
[
"Unlicense"
] | null | null | null |
recursive_app/apps.py
|
thinkAmi-sandbox/django_cte-sample
|
1b130b80a0c2644bfff9d3f8cf856ce92d570af1
|
[
"Unlicense"
] | null | null | null |
from django.apps import AppConfig
class RecursiveAppConfig(AppConfig):
name = 'recursive_app'
| 16.666667
| 36
| 0.78
| 11
| 100
| 7
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 100
| 5
| 37
| 20
| 0.905882
| 0
| 0
| 0
| 0
| 0
| 0.13
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f2124bb385fcb5102f3a3bfd37d74b65b14dbcf0
| 2,873
|
py
|
Python
|
tests/es_versions/test_clusters.py
|
billboggs/elasticsearch-HQ
|
c0b5756e1ecb92eb1c22f3d6190b86d52557bd9c
|
[
"Apache-2.0"
] | 2,026
|
2018-01-04T04:46:51.000Z
|
2022-03-31T12:36:47.000Z
|
tests/es_versions/test_clusters.py
|
billboggs/elasticsearch-HQ
|
c0b5756e1ecb92eb1c22f3d6190b86d52557bd9c
|
[
"Apache-2.0"
] | 322
|
2018-01-04T02:05:55.000Z
|
2022-03-23T07:01:03.000Z
|
tests/es_versions/test_clusters.py
|
billboggs/elasticsearch-HQ
|
c0b5756e1ecb92eb1c22f3d6190b86d52557bd9c
|
[
"Apache-2.0"
] | 315
|
2018-01-04T02:42:51.000Z
|
2022-03-31T12:36:49.000Z
|
__author__ = 'royrusso'
import json
import logging
import jmespath
import pytest
LOGGER = logging.getLogger(__name__)
pytest_plugins = ["docker_compose"]
@pytest.mark.es_versions
def test_get_cluster_summary(session_scoped_container_getter, fixture):
fixture.add_all_clusters(session_scoped_container_getter, clear_first=True)
response = fixture.app.get('/api/clusters/%s/_summary' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert fixture.has_all_keys(fixture.config.KEYS_CLUSTER_SUMMARY, res['data'][0].keys()) is True
@pytest.mark.es_versions
def test_get_cluster_health(fixture):
response = fixture.app.get('/api/clusters/%s/_health' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert fixture.has_all_keys(fixture.config.KEYS_CLUSTER_HEALTH, res['data'][0].keys()) is True
@pytest.mark.es_versions
def test_get_cluster_state(fixture):
response = fixture.app.get('/api/clusters/%s/_state' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert fixture.has_all_keys(fixture.config.KEYS_CLUSTER_STATE, res['data'][0].keys()) is True
@pytest.mark.es_versions
def test_get_cluster_stats(fixture):
response = fixture.app.get('/api/clusters/%s/_stats' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert fixture.has_all_keys(fixture.config.KEYS_CLUSTER_STATS, res['data'][0].keys()) is True
@pytest.mark.es_versions
def test_get_cluster_pending_tasks(fixture):
response = fixture.app.get('/api/clusters/%s/_pending_tasks' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert fixture.has_all_keys(fixture.config.KEYS_CLUSTER_PENDING_TASKS, res['data'][0].keys()) is True
@pytest.mark.es_versions
def test_get_cluster_settings(fixture):
response = fixture.app.get('/api/clusters/%s/_settings' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert fixture.has_all_keys(fixture.config.KEYS_CLUSTER_SETTINGS, res['data'][0].keys()) is True
@pytest.mark.es_versions
def test_put_cluster_settings(fixture):
body = {
"transient": {
"discovery.zen.minimum_master_nodes": 1
}
}
response = fixture.app.put('/api/clusters/%s/_settings' % fixture.cluster_name, data=json.dumps(body))
assert 200 == response.status_code
response = fixture.app.get('/api/clusters/%s/_settings' % fixture.cluster_name)
assert 200 == response.status_code
res = fixture.get_response_data(response)
assert jmespath.search("transient.discovery.zen.minimum_master_nodes", res['data'][0]) == "1"
| 34.202381
| 106
| 0.750783
| 397
| 2,873
| 5.141058
| 0.161209
| 0.058795
| 0.070554
| 0.090152
| 0.791769
| 0.77854
| 0.740323
| 0.705537
| 0.605586
| 0.605586
| 0
| 0.013158
| 0.127045
| 2,873
| 83
| 107
| 34.614458
| 0.800638
| 0
| 0
| 0.421053
| 0
| 0
| 0.119039
| 0.098155
| 0
| 0
| 0
| 0
| 0.263158
| 1
| 0.122807
| false
| 0
| 0.070175
| 0
| 0.192982
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f2141d075be351d2b75b6b55ca70cf96a94f6019
| 30
|
py
|
Python
|
tests/dev/__init__.py
|
KyleKing/calcipy
|
c10d78cce727b04b6d4f633859659cdcda832630
|
[
"MIT"
] | 6
|
2021-02-03T20:07:09.000Z
|
2022-02-27T12:31:07.000Z
|
tests/dev/__init__.py
|
KyleKing/calcipy
|
c10d78cce727b04b6d4f633859659cdcda832630
|
[
"MIT"
] | 65
|
2020-12-11T02:36:59.000Z
|
2022-03-05T21:15:07.000Z
|
tests/dev/__init__.py
|
KyleKing/dash_dev
|
a07c092b480777d8ee9c4854847a6e476da78470
|
[
"MIT"
] | 3
|
2021-06-05T13:46:14.000Z
|
2021-11-30T10:34:34.000Z
|
"""Test the dev submodule."""
| 15
| 29
| 0.633333
| 4
| 30
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 30
| 1
| 30
| 30
| 0.730769
| 0.766667
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1eeafdadbb11bd2b64e4aa6a25c2b64142b66e05
| 2,539
|
py
|
Python
|
test_GFD.py
|
Graph-Functional-Dependencies/GFD-Discovery
|
0c10d6a724746934cf8cdf60efd00be2f2168b43
|
[
"MIT"
] | 4
|
2021-03-09T14:51:18.000Z
|
2022-03-27T14:37:05.000Z
|
test_GFD.py
|
Graph-Functional-Dependencies/GFD-Discovery
|
0c10d6a724746934cf8cdf60efd00be2f2168b43
|
[
"MIT"
] | 1
|
2021-08-04T03:06:44.000Z
|
2021-08-04T03:06:44.000Z
|
test_GFD.py
|
Graph-Functional-Dependencies/GFD-Discovery
|
0c10d6a724746934cf8cdf60efd00be2f2168b43
|
[
"MIT"
] | null | null | null |
import unittest
from Graph import GFD
class Test_GFD(unittest.TestCase):
def setUp(self):
self.gfd = GFD('person')
def test_initial(self):
self.assertEqual(1, len(self.gfd.nodes))
self.assertEqual(0, len(self.gfd.edges))
self.assertEqual('person', self.gfd.nodes[0].type)
def test_add_relation(self):
self.gfd, id1, id2 = self.gfd.add_relation('person', 1, 'product', None, 'create')
self.assertEqual(2, len(self.gfd.nodes))
self.assertEqual(1, len(self.gfd.edges))
self.assertEqual('person', self.gfd.nodes[0].type)
self.assertEqual('product', self.gfd.nodes[1].type)
self.assertEqual('create', self.gfd.edges[0].relation)
self.gfd = self.gfd.add_relation('person', None, 'person', 1, 'father')[0]
self.assertEqual(3, len(self.gfd.nodes))
self.assertEqual(2, len(self.gfd.edges))
self.assertEqual('person', self.gfd.nodes[0].type)
self.assertEqual('product', self.gfd.nodes[1].type)
self.assertEqual('person', self.gfd.nodes[2].type)
self.assertEqual('create', self.gfd.edges[0].relation)
self.assertEqual('father', self.gfd.edges[1].relation)
self.gfd = self.gfd.add_relation('person', 3, 'product', 2, 'create')[0]
self.assertEqual(3, len(self.gfd.nodes))
self.assertEqual(3, len(self.gfd.edges))
self.assertEqual('person', self.gfd.nodes[0].type)
self.assertEqual('product', self.gfd.nodes[1].type)
self.assertEqual('person', self.gfd.nodes[2].type)
self.assertEqual('create', self.gfd.edges[0].relation)
self.assertEqual('father', self.gfd.edges[1].relation)
self.assertEqual('create', self.gfd.edges[2].relation)
def test_has_realtion(self):
self.gfd = self.gfd.add_relation('person', 1, 'product', None, 'create')[0]
self.gfd = self.gfd.add_relation('person', None, 'person', 1, 'father')[0]
self.gfd = self.gfd.add_relation('person', 3, 'product', 2, 'create')[0]
self.assertTrue(self.gfd.has_relation('create', 1, 2))
self.assertTrue(self.gfd.has_relation('father', 3, 1))
self.assertTrue(self.gfd.has_relation('create', 3, 2))
self.assertFalse(self.gfd.has_relation('create', 2, 1))
self.assertFalse(self.gfd.has_relation('father', 1, 2))
self.assertFalse(self.gfd.has_relation('create', 2, 4))
self.assertFalse(self.gfd.has_relation('create', 2, 2))
if __name__ == '__main__':
unittest.main()
| 43.775862
| 90
| 0.640016
| 349
| 2,539
| 4.578797
| 0.108883
| 0.18836
| 0.097622
| 0.078849
| 0.87234
| 0.864831
| 0.746558
| 0.697121
| 0.671464
| 0.567584
| 0
| 0.025133
| 0.185112
| 2,539
| 58
| 91
| 43.775862
| 0.747221
| 0
| 0
| 0.434783
| 0
| 0
| 0.102756
| 0
| 0
| 0
| 0
| 0
| 0.652174
| 1
| 0.086957
| false
| 0
| 0.043478
| 0
| 0.152174
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1eedc7b96840a5003c9cd2134df29c00f4b0776a
| 1,566
|
py
|
Python
|
qiskit/extensions/__init__.py
|
tareqdandachi/qiskit-terra
|
5221fe330adba5529bfa22dc25262ac8e6291aaf
|
[
"Apache-2.0"
] | 3
|
2019-05-19T17:39:38.000Z
|
2020-01-28T19:59:18.000Z
|
qiskit/extensions/__init__.py
|
tareqdandachi/qiskit-terra
|
5221fe330adba5529bfa22dc25262ac8e6291aaf
|
[
"Apache-2.0"
] | 4
|
2019-05-13T15:28:46.000Z
|
2019-12-19T20:47:02.000Z
|
qiskit/extensions/__init__.py
|
tareqdandachi/qiskit-terra
|
5221fe330adba5529bfa22dc25262ac8e6291aaf
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
=====================================================
Quantum Circuit Extensions (:mod:`qiskit.extensions`)
=====================================================
.. currentmodule:: qiskit.extensions
Standard Extensions
===================
.. autosummary::
:toctree: ../stubs/
Barrier
ToffoliGate
CHGate
CrxGate
CryGate
CrzGate
FredkinGate
Cu1Gate
Cu3Gate
CnotGate
CyGate
CzGate
HGate
IdGate
MSGate
RXGate
RXXGate
RYGate
RZGate
RZZGate
SGate
SdgGate
SwapGate
TdgGate
U0Gate
U1Gate
U2Gate
U3Gate
XGate
YGate
ZGate
Unitary Extensions
==================
.. autosummary::
:toctree: ../stubs/
UnitaryGate
Simulator Extensions
====================
.. autosummary::
:toctree: ../stubs/
Snapshot
Initialization
==============
.. autosummary::
:toctree: ../stubs/
Initialize
"""
from qiskit.extensions.quantum_initializer.initializer import Initialize
from .standard import *
from .unitary import UnitaryGate
from .simulator import Snapshot
| 17.595506
| 77
| 0.623883
| 166
| 1,566
| 5.879518
| 0.650602
| 0.07377
| 0.094262
| 0.101434
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011914
| 0.196041
| 1,566
| 88
| 78
| 17.795455
| 0.763304
| 0.874202
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4822d57d84ec7b032c1067204ea0914959a58b38
| 255
|
py
|
Python
|
polymorphic_auth/plugins/__init__.py
|
ixc/django-polymorphic-auth
|
690c5e78846b328ca1b60bd0e099fe622d40892d
|
[
"MIT"
] | 6
|
2015-08-09T11:34:49.000Z
|
2019-11-21T22:15:19.000Z
|
polymorphic_auth/plugins/__init__.py
|
ixc/django-polymorphic-auth
|
690c5e78846b328ca1b60bd0e099fe622d40892d
|
[
"MIT"
] | 7
|
2015-08-19T05:07:04.000Z
|
2017-03-27T11:21:02.000Z
|
polymorphic_auth/plugins/__init__.py
|
ixc/django-polymorphic-auth
|
690c5e78846b328ca1b60bd0e099fe622d40892d
|
[
"MIT"
] | 5
|
2015-09-21T07:11:11.000Z
|
2022-03-30T01:16:04.000Z
|
import six
from .base import BaseChildModelPlugin, PluginMount
class PolymorphicAuthChildModelPlugin(six.with_metaclass(
PluginMount, BaseChildModelPlugin)):
"""
Mount point for ``Polymorphic Auth`` child model plugins.
"""
pass
| 23.181818
| 61
| 0.733333
| 23
| 255
| 8.086957
| 0.826087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188235
| 255
| 10
| 62
| 25.5
| 0.898551
| 0.223529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
4829f1ff27e5a216ba5c7db45147356cde548325
| 1,625
|
py
|
Python
|
paper-dispersion-reduction/coef_opt/utils/teste_int.py
|
felipeaugustogudes/devito
|
d4a8eb5fefcababca2e7546d937d7f37a5d7c571
|
[
"MIT"
] | null | null | null |
paper-dispersion-reduction/coef_opt/utils/teste_int.py
|
felipeaugustogudes/devito
|
d4a8eb5fefcababca2e7546d937d7f37a5d7c571
|
[
"MIT"
] | null | null | null |
paper-dispersion-reduction/coef_opt/utils/teste_int.py
|
felipeaugustogudes/devito
|
d4a8eb5fefcababca2e7546d937d7f37a5d7c571
|
[
"MIT"
] | null | null | null |
#==============================================================================
# Pyhton Modules and Imports
#==============================================================================
import numpy as np
from scipy.integrate import quad
from scipy.integrate import nquad
#==============================================================================
#==============================================================================
# Funcoes de Teste
#==============================================================================
#==============================================================================
def fteste1(x):
c = x**2
return c
#==============================================================================
#==============================================================================
def fteste2(x,y):
c = x**2 + y**2
return c
#==============================================================================
#==============================================================================
# Teste 1D Integral
#==============================================================================
res1, err1 = quad(fteste1,0,1)
print(res1)
#==============================================================================
#==============================================================================
# Teste 12D Integral
#==============================================================================
res2, err2 = nquad(fteste2,[[0,1],[0,2]])
print(res2)
#==============================================================================
| 39.634146
| 79
| 0.152615
| 64
| 1,625
| 3.875
| 0.53125
| 0.072581
| 0.145161
| 0.193548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014875
| 0.089846
| 1,625
| 41
| 80
| 39.634146
| 0.152806
| 0.769846
| 0
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.153846
| false
| 0
| 0.230769
| 0
| 0.538462
| 0.153846
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
482e71ec0eaf84626051d3c50ff5e8b2cf37406c
| 143
|
py
|
Python
|
util/templatetags/string_tags.py
|
MAKENTNU/web
|
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
|
[
"MIT"
] | 10
|
2017-11-25T01:47:20.000Z
|
2020-03-24T18:28:24.000Z
|
util/templatetags/string_tags.py
|
MAKENTNU/web
|
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
|
[
"MIT"
] | 319
|
2017-11-16T09:56:03.000Z
|
2022-03-28T00:24:37.000Z
|
util/templatetags/string_tags.py
|
MAKENTNU/web
|
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
|
[
"MIT"
] | 6
|
2017-11-12T14:04:08.000Z
|
2021-03-10T09:41:18.000Z
|
from django import template
register = template.Library()
@register.filter
def first_word(string, arg=" "):
return string.split(arg)[0]
| 15.888889
| 32
| 0.727273
| 19
| 143
| 5.421053
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008197
| 0.146853
| 143
| 8
| 33
| 17.875
| 0.836066
| 0
| 0
| 0
| 0
| 0
| 0.006993
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
4833cb693f072e19c4611ca7db4d94b2e532417c
| 47,049
|
py
|
Python
|
tests/conftest.py
|
sulembutproton/pythonbible
|
7b8c90e1b25bfdc028da3e5a43aaa6287005a0b1
|
[
"MIT"
] | null | null | null |
tests/conftest.py
|
sulembutproton/pythonbible
|
7b8c90e1b25bfdc028da3e5a43aaa6287005a0b1
|
[
"MIT"
] | null | null | null |
tests/conftest.py
|
sulembutproton/pythonbible
|
7b8c90e1b25bfdc028da3e5a43aaa6287005a0b1
|
[
"MIT"
] | null | null | null |
from collections import OrderedDict
from typing import Dict, List
import pytest
import pythonbible as bible
from pythonbible.bible.bible_parser import BibleParser
@pytest.fixture
def verse_id() -> int:
return 1001001
@pytest.fixture
def invalid_verse_id() -> int:
return 1100100
@pytest.fixture
def book() -> bible.Book:
return bible.Book.GENESIS
@pytest.fixture
def chapter() -> int:
return 1
@pytest.fixture
def verse() -> int:
return 1
@pytest.fixture
def invalid_chapter() -> int:
return 100
@pytest.fixture
def invalid_verse() -> int:
return 100
@pytest.fixture
def text_with_reference() -> str:
return "The parable of the lost sheep is told in Matthew 18:12-14 and Luke 15:3-7."
@pytest.fixture
def text_with_reference_complex() -> str:
return "You should read Psalm 130:4,8, Jeremiah 29:32-30:10,31:12, Matthew 1:18 - 2:18, and Luke 3: 5-7."
@pytest.fixture
def normalized_references_complex() -> List[bible.NormalizedReference]:
return [
bible.NormalizedReference(bible.Book.PSALMS, 130, 4, 130, 4),
bible.NormalizedReference(bible.Book.PSALMS, 130, 8, 130, 8),
bible.NormalizedReference(bible.Book.JEREMIAH, 29, 32, 30, 10),
bible.NormalizedReference(bible.Book.JEREMIAH, 31, 12, 31, 12),
bible.NormalizedReference(bible.Book.MATTHEW, 1, 18, 2, 18),
bible.NormalizedReference(bible.Book.LUKE, 3, 5, 3, 7),
]
@pytest.fixture
def non_normalized_reference() -> str:
return "Matthew 18:12-14"
@pytest.fixture
def reference_without_verse_numbers() -> str:
return "Exodus 20"
@pytest.fixture
def reference_range_without_verse_numbers() -> str:
return "Genesis 1-4"
@pytest.fixture
def reference() -> bible.NormalizedReference:
return bible.NormalizedReference(bible.Book.GENESIS, 1, 1, 3, 4)
@pytest.fixture
def invalid_reference() -> bible.NormalizedReference:
return bible.NormalizedReference(bible.Book.GENESIS, 1, 1, 100, 100)
@pytest.fixture
def reference_string() -> str:
return "Genesis 1:1-3:4"
@pytest.fixture
def references() -> List[bible.NormalizedReference]:
return [
bible.NormalizedReference(bible.Book.MATTHEW, 18, 12, 18, 14),
bible.NormalizedReference(bible.Book.LUKE, 15, 3, 15, 7),
]
@pytest.fixture
def verse_ids() -> List[int]:
return [
40018012,
40018013,
40018014,
42015003,
42015004,
42015005,
42015006,
42015007,
]
@pytest.fixture
def verse_ids_multiple_chapters() -> List[int]:
return [
40018012,
40018013,
40018014,
40019001,
]
@pytest.fixture
def verse_ids_complex() -> List[int]:
return [
19130004,
19130008,
24029032,
24030001,
24030002,
24030003,
24030004,
24030005,
24030006,
24030007,
24030008,
24030009,
24030010,
24031012,
40001018,
40001019,
40001020,
40001021,
40001022,
40001023,
40001024,
40001025,
40002001,
40002002,
40002003,
40002004,
40002005,
40002006,
40002007,
40002008,
40002009,
40002010,
40002011,
40002012,
40002013,
40002014,
40002015,
40002016,
40002017,
40002018,
42003005,
42003006,
42003007,
]
@pytest.fixture
def formatted_reference() -> str:
return "Psalms 130:4,8;Jeremiah 29:32-30:10,31:12;Matthew 1:18-2:18;Luke 3:5-7"
@pytest.fixture
def roman_numeral_references() -> str:
return "Psalm cxxx.4,8, Jeremiah xxix. 32 - xxx. 10, xxxi. 12, Matthew i. 18 - ii. 18, and Luke iii. 5-7."
@pytest.fixture
def kjv_passage() -> Dict[bible.Book, Dict[int, List[str]]]:
return OrderedDict(
[
(
bible.Book.PSALMS,
OrderedDict(
[
(
130,
[
"4. But there is forgiveness with thee, that thou mayest be feared.",
"8. And he shall redeem Israel from all his iniquities.",
],
)
]
),
),
(
bible.Book.JEREMIAH,
OrderedDict(
[
(
29,
[
"32. Therefore thus saith the Behold, I will punish Shemaiah the Nehelamite, and his seed: he shall not have a man to dwell among this people; neither shall he behold the good that I will do for my people, saith the because he hath taught rebellion against the"
],
),
(
30,
[
"1. The word that came to Jeremiah from the saying, 2. Thus speaketh the God of Israel, saying, Write thee all the words that I have spoken unto thee in a book. 3. For, lo, the days come, saith the that I will bring again the captivity of my people Israel and Judah, saith the and I will cause them to return to the land that I gave to their fathers, and they shall possess it.",
"4. And these are the words that the spake concerning Israel and concerning Judah. 5. For thus saith the We have heard a voice of trembling, of fear, and not of peace. 6. Ask ye now, and see whether a man doth travail with child? wherefore do I see every man with his hands on his loins, as a woman in travail, and all faces are turned into paleness? 7. Alas! for that day is great, so that none is like it: it is even the time of Jacob’s trouble; but he shall be saved out of it. 8. For it shall come to pass in that day, saith the of hosts, that I will break his yoke from off thy neck, and will burst thy bonds, and strangers shall no more serve themselves of him: 9. But they shall serve the their God, and David their king, whom I will raise up unto them.",
"10. Therefore fear thou not, O my servant Jacob, saith the neither be dismayed, O Israel: for, lo, I will save thee from afar, and thy seed from the land of their captivity; and Jacob shall return, and shall be in rest, and be quiet, and none shall make him afraid.",
],
),
(
31,
[
"12. Therefore they shall come and sing in the height of Zion, and shall flow together to the goodness of the for wheat, and for wine, and for oil, and for the young of the flock and of the herd: and their soul shall be as a watered garden; and they shall not sorrow any more at all."
],
),
]
),
),
(
bible.Book.MATTHEW,
OrderedDict(
[
(
1,
[
"18. Now the birth of Jesus Christ was on this wise: When as his mother Mary was espoused to Joseph, before they came together, she was found with child of the Holy Ghost. 19. Then Joseph her husband, being a just man, and not willing to make her a publick example, was minded to put her away privily. 20. But while he thought on these things, behold, the angel of the Lord appeared unto him in a dream, saying, Joseph, thou son of David, fear not to take unto thee Mary thy wife: for that which is conceived in her is of the Holy Ghost. 21. And she shall bring forth a son, and thou shalt call his name JESUS: for he shall save his people from their sins. 22. Now all this was done, that it might be fulfilled which was spoken of the Lord by the prophet, saying, 23. Behold, a virgin shall be with child, and shall bring forth a son, and they shall call his name Emmanuel, which being interpreted is, God with us. 24. Then Joseph being raised from sleep did as the angel of the Lord had bidden him, and took unto him his wife: 25. And knew her not till she had brought forth her firstborn son: and he called his name JESUS."
],
),
(
2,
[
"1. Now when Jesus was born in Bethlehem of Judaea in the days of Herod the king, behold, there came wise men from the east to Jerusalem, 2. Saying, Where is he that is born King of the Jews? for we have seen his star in the east, and are come to worship him. 3. When Herod the king had heard these things, he was troubled, and all Jerusalem with him. 4. And when he had gathered all the chief priests and scribes of the people together, he demanded of them where Christ should be born. 5. And they said unto him, In Bethlehem of Judaea: for thus it is written by the prophet, 6. And thou Bethlehem, in the land of Juda, art not the least among the princes of Juda: for out of thee shall come a Governor, that shall rule my people Israel. 7. Then Herod, when he had privily called the wise men, enquired of them diligently what time the star appeared. 8. And he sent them to Bethlehem, and said, Go and search diligently for the young child; and when ye have found him, bring me word again, that I may come and worship him also. 9. When they had heard the king, they departed; and, lo, the star, which they saw in the east, went before them, till it came and stood over where the young child was. 10. When they saw the star, they rejoiced with exceeding great joy.",
"11. And when they were come into the house, they saw the young child with Mary his mother, and fell down, and worshipped him: and when they had opened their treasures, they presented unto him gifts; gold, and frankincense, and myrrh. 12. And being warned of God in a dream that they should not return to Herod, they departed into their own country another way. 13. And when they were departed, behold, the angel of the Lord appeareth to Joseph in a dream, saying, Arise, and take the young child and his mother, and flee into Egypt, and be thou there until I bring thee word: for Herod will seek the young child to destroy him. 14. When he arose, he took the young child and his mother by night, and departed into Egypt: 15. And was there until the death of Herod: that it might be fulfilled which was spoken of the Lord by the prophet, saying, Out of Egypt have I called my son.",
"16. Then Herod, when he saw that he was mocked of the wise men, was exceeding wroth, and sent forth, and slew all the children that were in Bethlehem, and in all the coasts thereof, from two years old and under, according to the time which he had diligently enquired of the wise men. 17. Then was fulfilled that which was spoken by Jeremy the prophet, saying, 18. In Rama was there a voice heard, lamentation, and weeping, and great mourning, Rachel weeping for her children, and would not be comforted, because they are not.",
],
),
]
),
),
(
bible.Book.LUKE,
OrderedDict(
[
(
3,
[
"5. Every valley shall be filled, and every mountain and hill shall be brought low; and the crooked shall be made straight, and the rough ways shall be made smooth; 6. And all flesh shall see the salvation of God. 7. Then said he to the multitude that came forth to be baptized of him, O generation of vipers, who hath warned you to flee from the wrath to come?"
],
)
]
),
),
]
)
@pytest.fixture
def kjv_passage_no_verse_numbers() -> Dict[bible.Book, Dict[int, List[str]]]:
return OrderedDict(
[
(
bible.Book.PSALMS,
OrderedDict(
[
(
130,
[
"But there is forgiveness with thee, that thou mayest be feared.",
"And he shall redeem Israel from all his iniquities.",
],
)
]
),
),
(
bible.Book.JEREMIAH,
OrderedDict(
[
(
29,
[
"Therefore thus saith the Behold, I will punish Shemaiah the Nehelamite, and his seed: he shall not have a man to dwell among this people; neither shall he behold the good that I will do for my people, saith the because he hath taught rebellion against the"
],
),
(
30,
[
"The word that came to Jeremiah from the saying, Thus speaketh the God of Israel, saying, Write thee all the words that I have spoken unto thee in a book. For, lo, the days come, saith the that I will bring again the captivity of my people Israel and Judah, saith the and I will cause them to return to the land that I gave to their fathers, and they shall possess it.",
"And these are the words that the spake concerning Israel and concerning Judah. For thus saith the We have heard a voice of trembling, of fear, and not of peace. Ask ye now, and see whether a man doth travail with child? wherefore do I see every man with his hands on his loins, as a woman in travail, and all faces are turned into paleness? Alas! for that day is great, so that none is like it: it is even the time of Jacob’s trouble; but he shall be saved out of it. For it shall come to pass in that day, saith the of hosts, that I will break his yoke from off thy neck, and will burst thy bonds, and strangers shall no more serve themselves of him: But they shall serve the their God, and David their king, whom I will raise up unto them.",
"Therefore fear thou not, O my servant Jacob, saith the neither be dismayed, O Israel: for, lo, I will save thee from afar, and thy seed from the land of their captivity; and Jacob shall return, and shall be in rest, and be quiet, and none shall make him afraid.",
],
),
(
31,
[
"Therefore they shall come and sing in the height of Zion, and shall flow together to the goodness of the for wheat, and for wine, and for oil, and for the young of the flock and of the herd: and their soul shall be as a watered garden; and they shall not sorrow any more at all."
],
),
]
),
),
(
bible.Book.MATTHEW,
OrderedDict(
[
(
1,
[
"Now the birth of Jesus Christ was on this wise: When as his mother Mary was espoused to Joseph, before they came together, she was found with child of the Holy Ghost. Then Joseph her husband, being a just man, and not willing to make her a publick example, was minded to put her away privily. But while he thought on these things, behold, the angel of the Lord appeared unto him in a dream, saying, Joseph, thou son of David, fear not to take unto thee Mary thy wife: for that which is conceived in her is of the Holy Ghost. And she shall bring forth a son, and thou shalt call his name JESUS: for he shall save his people from their sins. Now all this was done, that it might be fulfilled which was spoken of the Lord by the prophet, saying, Behold, a virgin shall be with child, and shall bring forth a son, and they shall call his name Emmanuel, which being interpreted is, God with us. Then Joseph being raised from sleep did as the angel of the Lord had bidden him, and took unto him his wife: And knew her not till she had brought forth her firstborn son: and he called his name JESUS."
],
),
(
2,
[
"Now when Jesus was born in Bethlehem of Judaea in the days of Herod the king, behold, there came wise men from the east to Jerusalem, Saying, Where is he that is born King of the Jews? for we have seen his star in the east, and are come to worship him. When Herod the king had heard these things, he was troubled, and all Jerusalem with him. And when he had gathered all the chief priests and scribes of the people together, he demanded of them where Christ should be born. And they said unto him, In Bethlehem of Judaea: for thus it is written by the prophet, And thou Bethlehem, in the land of Juda, art not the least among the princes of Juda: for out of thee shall come a Governor, that shall rule my people Israel. Then Herod, when he had privily called the wise men, enquired of them diligently what time the star appeared. And he sent them to Bethlehem, and said, Go and search diligently for the young child; and when ye have found him, bring me word again, that I may come and worship him also. When they had heard the king, they departed; and, lo, the star, which they saw in the east, went before them, till it came and stood over where the young child was. When they saw the star, they rejoiced with exceeding great joy.",
"And when they were come into the house, they saw the young child with Mary his mother, and fell down, and worshipped him: and when they had opened their treasures, they presented unto him gifts; gold, and frankincense, and myrrh. And being warned of God in a dream that they should not return to Herod, they departed into their own country another way. And when they were departed, behold, the angel of the Lord appeareth to Joseph in a dream, saying, Arise, and take the young child and his mother, and flee into Egypt, and be thou there until I bring thee word: for Herod will seek the young child to destroy him. When he arose, he took the young child and his mother by night, and departed into Egypt: And was there until the death of Herod: that it might be fulfilled which was spoken of the Lord by the prophet, saying, Out of Egypt have I called my son.",
"Then Herod, when he saw that he was mocked of the wise men, was exceeding wroth, and sent forth, and slew all the children that were in Bethlehem, and in all the coasts thereof, from two years old and under, according to the time which he had diligently enquired of the wise men. Then was fulfilled that which was spoken by Jeremy the prophet, saying, In Rama was there a voice heard, lamentation, and weeping, and great mourning, Rachel weeping for her children, and would not be comforted, because they are not.",
],
),
]
),
),
(
bible.Book.LUKE,
OrderedDict(
[
(
3,
[
"Every valley shall be filled, and every mountain and hill shall be brought low; and the crooked shall be made straight, and the rough ways shall be made smooth; And all flesh shall see the salvation of God. Then said he to the multitude that came forth to be baptized of him, O generation of vipers, who hath warned you to flee from the wrath to come?"
],
)
]
),
),
]
)
@pytest.fixture
def asv_passage() -> Dict[bible.Book, Dict[int, List[str]]]:
return OrderedDict(
[
(
bible.Book.PSALMS,
OrderedDict(
[
(
130,
[
"4. But there is forgiveness with thee,",
"8. And he will redeem Israel",
],
)
]
),
),
(
bible.Book.JEREMIAH,
OrderedDict(
[
(
29,
[
"32. therefore thus saith Jehovah, Behold, I will punish Shemaiah the Nehelamite, and his seed; he shall not have a man to dwell among this people, neither shall he behold the good that I will do unto my people, saith Jehovah, because he hath spoken rebellion against Jehovah."
],
),
(
30,
[
"1. The word that came to Jeremiah from Jehovah, saying, 2. Thus speaketh Jehovah, the God of Israel, saying, Write thee all the words that I have spoken unto thee in a book. 3. For, lo, the days come, saith Jehovah, that I will turn again the captivity of my people Israel and Judah, saith Jehovah; and I will cause them to return to the land that I gave to their fathers, and they shall possess it.",
"4. And these are the words that Jehovah spake concerning Israel and concerning Judah. 5. For thus saith Jehovah: We have heard a voice of trembling, of fear, and not of peace. 6. Ask ye now, and see whether a man doth travail with child: wherefore do I see every man with his hands on his loins, as a woman in travail, and all faces are turned into paleness? 7. Alas! for that day is great, so that none is like it: it is even the time of Jacob’s trouble; but he shall be saved out of it. 8. And it shall come to pass in that day, saith Jehovah of hosts, that I will break his yoke from off thy neck, and will burst thy bonds; and strangers shall no more make him their bondman; 9. but they shall serve Jehovah their God, and David their king, whom I will raise up unto them. 10. Therefore fear thou not, O Jacob my servant, saith Jehovah; neither be dismayed, O Israel: for, lo, I will save thee from afar, and thy seed from the land of their captivity; and Jacob shall return, and shall be quiet and at ease, and none shall make him afraid.",
],
),
(
31,
[
"12. And they shall come and sing in the height of Zion, and shall flow unto the goodness of Jehovah, to the grain, and to the new wine, and to the oil, and to the young of the flock and of the herd: and their soul shall be as a watered garden; and they shall not sorrow any more at all."
],
),
]
),
),
(
bible.Book.MATTHEW,
OrderedDict(
[
(
1,
[
"18. Now the birth of Jesus Christ was on this wise: When his mother Mary had been betrothed to Joseph, before they came together she was found with child of the Holy Spirit. 19. And Joseph her husband, being a righteous man, and not willing to make her a public example, was minded to put her away privily. 20. But when he thought on these things, behold, an angel of the Lord appeared unto him in a dream, saying, Joseph, thou son of David, fear not to take unto thee Mary thy wife: for that which is conceived in her is of the Holy Spirit. 21. And she shall bring forth a son; and thou shalt call his name JESUS; for it is he that shall save his people from their sins. 22. Now all this is come to pass, that it might be fulfilled which was spoken by the Lord through the prophet, saying,",
"23. Behold, the virgin shall be with child, and shall bring forth a son,",
"which is, being interpreted, God with us. 24. And Joseph arose from his sleep, and did as the angel of the Lord commanded him, and took unto him his wife; 25. and knew her not till she had brought forth a son: and he called his name JESUS.",
],
),
(
2,
[
"1. Now when Jesus was born in Bethlehem of Judæa in the days of Herod the king, behold, Wise-men from the east came to Jerusalem, saying, 2. Where is he that is born King of the Jews? for we saw his star in the east, and are come to worship him. 3. And when Herod the king heard it, he was troubled, and all Jerusalem with him. 4. And gathering together all the chief priests and scribes of the people, he inquired of them where the Christ should be born. 5. And they said unto him, In Bethlehem of Judæa: for thus it is written through the prophet,",
"6. And thou Bethlehem, land of Judah,",
"7. Then Herod privily called the Wise-men, and learned of them exactly what time the star appeared. 8. And he sent them to Bethlehem, and said, Go and search out exactly concerning the young child; and when ye have found , bring me word, that I also may come and worship him. 9. And they, having heard the king, went their way; and lo, the star, which they saw in the east, went before them, till it came and stood over where the young child was. 10. And when they saw the star, they rejoiced with exceeding great joy. 11. And they came into the house and saw the young child with Mary his mother; and they fell down and worshipped him; and opening their treasures they offered unto him gifts, gold and frankincense and myrrh. 12. And being warned in a dream that they should not return to Herod, they departed into their own country another way.",
"13. Now when they were departed, behold, an angel of the Lord appeareth to Joseph in a dream, saying, Arise and take the young child and his mother, and flee into Egypt, and be thou there until I tell thee: for Herod will seek the young child to destroy him. 14. And he arose and took the young child and his mother by night, and departed into Egypt; 15. and was there until the death of Herod: that it might be fulfilled which was spoken by the Lord through the prophet, saying, Out of Egypt did I call my son.",
"16. Then Herod, when he saw that he was mocked of the Wise-men, was exceeding wroth, and sent forth, and slew all the male children that were in Bethlehem, and in all the borders thereof, from two years old and under, according to the time which he had exactly learned of the Wise-men. 17. Then was fulfilled that which was spoken through Jeremiah the prophet, saying,",
"18. A voice was heard in Ramah,",
],
),
]
),
),
(
bible.Book.LUKE,
OrderedDict(
[
(
3,
[
"5. Every valley shall be filled,",
"6. And all flesh shall see the salvation of God.",
"7. He said therefore to the multitudes that went out to be baptized of him, Ye offspring of vipers, who warned you to flee from the wrath to come?",
],
)
]
),
),
]
)
@pytest.fixture
def html_scripture_text() -> str:
return (
"<h1>Matthew</h1>\n"
"<h2>Chapter 18</h2>\n"
"<p>12. How think ye? if a man have an hundred sheep, and one of them "
"be gone astray, doth he not leave the ninety and nine, and goeth into "
"the mountains, and seeketh that which is gone astray? 13. And if so be "
"that he find it, verily I say unto you, he rejoiceth more of that "
"sheep, than of the ninety and nine which went not astray. 14. Even so "
"it is not the will of your Father which is in heaven, that one of "
"these little ones should perish.</p>\n"
"<h1>Luke</h1>\n"
"<h2>Chapter 15</h2>\n"
"<p>3. And he spake this parable unto them, saying, 4. What man of you, "
"having an hundred sheep, if he lose one of them, doth not leave the "
"ninety and nine in the wilderness, and go after that which is lost, "
"until he find it? 5. And when he hath found it, he layeth it on his "
"shoulders, rejoicing. 6. And when he cometh home, he calleth together "
"his friends and neighbours, saying unto them, Rejoice with me; for I "
"have found my sheep which was lost. 7. I say unto you, that likewise "
"joy shall be in heaven over one sinner that repenteth, more than over "
"ninety and nine just persons, which need no repentance.</p>\n"
)
@pytest.fixture
def non_html_scripture_text() -> str:
return (
"Matthew\n\n"
"Chapter 18\n\n"
" 12. How think ye? if a man have an hundred sheep, and one of them "
"be gone astray, doth he not leave the ninety and nine, and goeth into "
"the mountains, and seeketh that which is gone astray? 13. And if so be "
"that he find it, verily I say unto you, he rejoiceth more of that "
"sheep, than of the ninety and nine which went not astray. 14. Even so "
"it is not the will of your Father which is in heaven, that one of "
"these little ones should perish.\n\n\n"
"Luke\n\n"
"Chapter 15\n\n"
" 3. And he spake this parable unto them, saying, 4. What man of you, "
"having an hundred sheep, if he lose one of them, doth not leave the "
"ninety and nine in the wilderness, and go after that which is lost, "
"until he find it? 5. And when he hath found it, he layeth it on his "
"shoulders, rejoicing. 6. And when he cometh home, he calleth together "
"his friends and neighbours, saying unto them, Rejoice with me; for I "
"have found my sheep which was lost. 7. I say unto you, that likewise "
"joy shall be in heaven over one sinner that repenteth, more than over "
"ninety and nine just persons, which need no repentance.\n"
)
@pytest.fixture
def html_scripture_text_one_verse_per_paragraph() -> str:
return (
"<h1>Matthew</h1>\n"
"<h2>Chapter 18</h2>\n"
"<p>12. How think ye? if a man have an hundred sheep, and one of them "
"be gone astray, doth he not leave the ninety and nine, and goeth into "
"the mountains, and seeketh that which is gone astray?</p>\n"
"<p>13. And if so be that he find it, verily I say unto you, he rejoiceth "
"more of that sheep, than of the ninety and nine which went not astray.</p>\n"
"<p>14. Even so it is not the will of your Father which is in heaven, "
"that one of these little ones should perish.</p>\n"
"<h2>Chapter 19</h2>\n"
"<p>1. And it came to pass, that when Jesus had finished these sayings, he "
"departed from Galilee, and came into the coasts of Judaea beyond "
"Jordan;</p>\n"
)
@pytest.fixture
def verse_text() -> str:
return "1. In the beginning God created the heaven and the earth."
@pytest.fixture
def verse_text_no_verse_number() -> str:
return "In the beginning God created the heaven and the earth."
@pytest.fixture
def kjv_parser() -> BibleParser:
return bible.get_parser(version=bible.Version.KING_JAMES)
@pytest.fixture
def asv_parser() -> BibleParser:
return bible.get_parser(version=bible.Version.AMERICAN_STANDARD)
@pytest.fixture
def short_verse_id_list() -> List[int]:
return [
1001001,
2020003,
41009038,
41009046,
]
@pytest.fixture
def short_verse_data_json() -> Dict[str, str]:
return {
"1001001": "In the beginning God created the heaven and the earth.",
"2020003": "Thou shalt have no other gods before me.",
"41009038": "And John answered him, saying, Master, we saw one casting "
"out devils in thy name, and he followeth not us: and we "
"forbad him, because he followeth not us.",
"41009046": "Where their worm dieth not, and the fire is not quenched.",
}
@pytest.fixture
def short_verse_data_json_asv() -> Dict[str, str]:
return {
"1001001": "In the beginning God created the heavens and the earth.",
"2020003": "Thou shalt have no other gods before me.",
"41009038": "John said unto him, Teacher, we saw one casting out demons in "
"thy name; and we forbade him, because he followed not us.",
"41009046": "",
}
@pytest.fixture
def short_book_title_data_json() -> Dict[str, List[str]]:
return {
"1": ["The First Book of Moses, called Genesis", "Genesis"],
"2": ["The Second Book of Moses, called Exodus", "Exodus"],
"41": ["THE GOSPEL ACCORDING TO ST. MARK", "Mark"],
}
@pytest.fixture
def short_book_title_data_json_asv() -> Dict[str, List[str]]:
return {
"1": ["The First Book of Moses, Commonly Called Genesis", "Genesis"],
"2": ["The Second Book of Moses, Commonly Called Exodus", "Exodus"],
"41": ["The Gospel According to Mark", "Mark"],
}
@pytest.fixture
def long_book_title() -> str:
return "The First Book of Moses, called Genesis"
@pytest.fixture
def short_book_title() -> str:
return "Genesis"
# noinspection SpellCheckingInspection
@pytest.fixture
def book_alternative_names() -> Dict[bible.Book, List[str]]:
return {
bible.Book.GENESIS: [
"Gen",
"Gen.",
"The First Book of Moses, called Genesis",
"The First Book of Moses, Commonly Called Genesis",
],
bible.Book.EXODUS: [
# "Ex", # This may match too many things
# "Ex.", # This may match too many things
# "Exo", # This may match too many things
# "Exo.", # This may match too many things
"Exod",
"Exod.",
"The Second Book of Moses, called Exodus",
"The Second Book of Moses, Commonly Called Exodus",
],
bible.Book.LEVITICUS: [
"Lev",
"Lev.",
"The Third Book of Moses, called Leviticus",
"The Third Book of Moses, Commonly Called Leviticus",
],
bible.Book.NUMBERS: [
"Num",
"Num.",
"The Fourth Book of Moses, called Numbers",
"The Fourth Book of Moses, Commonly Called Numbers",
],
bible.Book.DEUTERONOMY: [
"Deut",
"Deut.",
"The Fifth Book of Moses, Commonly Called Deuteronomy",
"The Fifth Book of Moses, called Deuteronomy",
],
bible.Book.JOSHUA: [
"Josh",
"Josh.",
"The Book of Joshua",
],
bible.Book.JUDGES: [
"The Book of Judges",
],
bible.Book.RUTH: [
"The Book of Ruth",
],
bible.Book.SAMUEL_1: [
"1 Sam",
"1 Sam.",
"I Sam",
"I Sam.",
"I Samuel",
"The First Book of Samuel",
"The First Book of Samuel Otherwise Called The First Book of the Kings",
],
bible.Book.SAMUEL_2: [
"2 Sam",
"2 Sam.",
"II Sam",
"II Sam.",
"II Samuel",
"The Second Book of Samuel",
"The Second Book of Samuel Otherwise Called The Second Book of the Kings",
],
bible.Book.KINGS_1: [
"1 Kgs",
"1 Kgs.",
"I Kgs",
"I Kgs.",
"I Kings",
"The First Book of the Kings",
"The First Book of the Kings, Commonly Called the Third Book of the Kings",
],
bible.Book.KINGS_2: [
"2 Kgs",
"2 Kgs.",
"II Kgs",
"II Kgs.",
"II Kings",
"The Second Book of the Kings",
"The Second Book of the Kings, Commonly Called the Fourth Book of the Kings",
],
bible.Book.CHRONICLES_1: [
"1 Chr",
"1 Chr.",
"1 Chro",
"1 Chro.",
"1 Chron",
"1 Chron.",
"I Chr",
"I Chr.",
"I Chro",
"I Chro.",
"I Chron",
"I Chron.",
"I Chronicles",
"The First Book of the Chronicles",
],
bible.Book.CHRONICLES_2: [
"2 Chr",
"2 Chr.",
"2 Chro",
"2 Chro.",
"2 Chron",
"2 Chron.",
"II Chr",
"II Chr.",
"II Chro",
"II Chro.",
"II Chron",
"II Chron.",
"II Chronicles",
"The Second Book of the Chronicles",
],
bible.Book.EZRA: [
"The Book of Ezra",
],
bible.Book.NEHEMIAH: [
"Neh",
"Neh.",
"The Book of Nehemiah",
],
bible.Book.ESTHER: [
"Esth",
"Esth.",
"The Book of Esther",
],
bible.Book.JOB: [
"The Book of Job",
],
bible.Book.PSALMS: [
"Ps",
"Ps.",
"Psa",
"Psa.",
"Psalm",
"The Psalms",
"The Book of Psalms",
],
bible.Book.PROVERBS: [
"Prov",
"Prov.",
"The Proverbs",
],
bible.Book.ECCLESIASTES: [
"Ecc",
"Ecc.",
"Eccl",
"Eccl.",
"Eccles",
"Eccles.",
"Ecclesiastes or, the Preacher",
],
bible.Book.SONG_OF_SONGS: [
"Song",
"Song of Sol",
"Song of Sol.",
"Song of Solomon",
"THE SONG OF SOLOMON",
],
bible.Book.ISAIAH: [
"Isa",
"Isa.",
"The Book of Isaiah",
"The Book of the Prophet Isaiah",
],
bible.Book.JEREMIAH: [
"Jer",
"Jer.",
"The Book of Jeremiah",
"The Book of the Prophet Jeremiah",
],
bible.Book.LAMENTATIONS: [
"Lam",
"Lam.",
"The Lamentations of Jeremiah",
],
bible.Book.EZEKIEL: [
"Ezek",
"Ezek.",
"The Book of Ezekiel",
"The Book of the Prophet Ezekiel",
],
bible.Book.DANIEL: [
"Dan",
"Dan.",
"The Book of Daniel",
],
bible.Book.HOSEA: [
"Hos",
"Hos.",
"The Book of Hosea",
],
bible.Book.JOEL: [
"The Book of Joel",
],
bible.Book.AMOS: [
"The Book of Amos",
],
bible.Book.OBADIAH: [
"Obad",
"Obad.",
"The Book of Obadiah",
],
bible.Book.JONAH: [
"Jon",
"Jon.",
"The Book of Jonah",
],
bible.Book.MICAH: [
"Mic",
"Mic.",
"The Book of Micah",
],
bible.Book.NAHUM: [
"Nah",
"Nah.",
"The Book of Nahum",
],
bible.Book.HABAKKUK: [
"Hab",
"Hab.",
"The Book of Habakkuk",
],
bible.Book.ZEPHANIAH: [
"Zeph",
"Zeph.",
"The Book of Zephaniah",
],
bible.Book.HAGGAI: [
"Hag",
"Hag.",
"The Book of Haggai",
],
bible.Book.ZECHARIAH: [
"Zech",
"Zech.",
"The Book of Zechariah",
],
bible.Book.MALACHI: [
"Mal",
"Mal.",
"The Book of Malachi",
],
bible.Book.MATTHEW: [
"Matt",
"Matt.",
"The Gospel According to Matthew",
"The Gospel According to St. Matthew",
],
bible.Book.MARK: [
"The Gospel According to Mark",
"The Gospel According to St. Mark",
],
bible.Book.LUKE: [
"The Gospel According to Luke",
"The Gospel According to St. Luke",
],
bible.Book.JOHN: [
"The Gospel According to John",
"The Gospel According to St. John",
],
bible.Book.ACTS: [
"The Acts",
"Acts of the Apostles",
"The Acts of the Apostles",
],
bible.Book.ROMANS: [
"Rom",
"Rom.",
"The Epistle of Paul to the Romans",
"THE EPISTLE OF PAUL THE APOSTLE TO THE ROMANS",
],
bible.Book.CORINTHIANS_1: [
"1 Cor",
"1 Cor.",
"I Cor",
"I Cor.",
"I Corinthians",
"The First Epistle of Paul to the Corinthians",
"THE FIRST EPISTLE OF PAUL THE APOSTLE TO THE CORINTHIANS",
],
bible.Book.CORINTHIANS_2: [
"2 Cor",
"2 Cor.",
"II Cor",
"II Cor.",
"II Corinthians",
"The Second Epistle of Paul to the Corinthians",
"THE SECOND EPISTLE OF PAUL THE APOSTLE TO THE CORINTHIANS",
],
bible.Book.GALATIANS: [
"Gal",
"Gal.",
"The Epistle of Paul to the Galatians",
"THE EPISTLE OF PAUL THE APOSTLE TO THE GALATIANS",
],
bible.Book.EPHESIANS: [
"Eph",
"Eph.",
"The Epistle of Paul to the Ephesians",
"THE EPISTLE OF PAUL THE APOSTLE TO THE EPHESIANS",
],
bible.Book.PHILIPPIANS: [
"Phil",
"Phil.",
"The Epistle of Paul to the Philippians",
"THE EPISTLE OF PAUL THE APOSTLE TO THE PHILIPPIANS",
],
bible.Book.COLOSSIANS: [
"Col",
"Col.",
"The Epistle of Paul to the Colossians",
"THE EPISTLE OF PAUL THE APOSTLE TO THE COLOSSIANS",
],
bible.Book.THESSALONIANS_1: [
"1 Th",
"1 Th.",
"1 Thess",
"1 Thess.",
"I Th",
"I Th.",
"I Thess",
"I Thess.",
"I Thessalonians",
"The First Epistle of Paul to the Thessalonians",
"THE FIRST EPISTLE OF PAUL THE APOSTLE TO THE THESSALONIANS",
],
bible.Book.THESSALONIANS_2: [
"2 Th",
"2 Th.",
"2 Thess",
"2 Thess.",
"II Th",
"II Th.",
"II Thess",
"II Thess.",
"II Thessalonians",
"The Second Epistle of Paul to the Thessalonians",
"THE SECOND EPISTLE OF PAUL THE APOSTLE TO THE THESSALONIANS",
],
bible.Book.TIMOTHY_1: [
"1 Tim",
"1 Tim.",
"I Tim",
"I Tim.",
"I Timothy",
"The First Epistle of Paul to Timothy",
"THE FIRST EPISTLE OF PAUL THE APOSTLE TO TIMOTHY",
],
bible.Book.TIMOTHY_2: [
"2 Tim",
"2 Tim.",
"II Tim",
"II Tim.",
"II Timothy",
"The Second Epistle of Paul to Timothy",
"THE SECOND EPISTLE OF PAUL THE APOSTLE TO TIMOTHY",
],
bible.Book.TITUS: [
"Tit",
"Tit.",
"The Epistle of Paul to Titus",
"THE EPISTLE OF PAUL THE APOSTLE TO TITUS",
],
bible.Book.PHILEMON: [
"Phlm",
"Phlm.",
"Phile",
"Phile.",
"Philem",
"Philem.",
"The Epistle of Paul to Philemon",
"THE EPISTLE OF PAUL THE APOSTLE TO PHILEMON",
],
bible.Book.HEBREWS: [
"Heb",
"Heb.",
"The Epistle to the Hebrews",
"THE EPISTLE OF PAUL THE APOSTLE TO THE HEBREWS",
],
bible.Book.JAMES: [
"Jas",
"Jas.",
"The Epistle of James",
"THE GENERAL EPISTLE OF JAMES",
],
bible.Book.PETER_1: [
"1 Pet",
"1 Pet.",
"I Pet",
"I Pet.",
"I Peter",
"The First Epistle of Peter",
"THE FIRST EPISTLE GENERAL OF PETER",
],
bible.Book.PETER_2: [
"2 Pet",
"2 Pet.",
"II Pet",
"II Pet.",
"II Peter",
"The Second Epistle of Peter",
"THE SECOND EPISTLE GENERAL OF PETER",
],
bible.Book.JOHN_1: [
"I John",
"The First Epistle of John",
"THE FIRST EPISTLE GENERAL OF JOHN",
],
bible.Book.JOHN_2: [
"II John",
"The Second Epistle of John",
"THE SECOND EPISTLE OF JOHN",
],
bible.Book.JOHN_3: [
"III John",
"The Third Epistle of John",
"THE THIRD EPISTLE OF JOHN",
],
bible.Book.JUDE: [
"The Epistle of Jude",
"THE GENERAL EPISTLE OF JUDE",
],
bible.Book.REVELATION: [
"Rev",
"Rev.",
"Revelation of Jesus Christ",
"The Revelation of John",
"THE REVELATION OF ST. JOHN THE DIVINE",
],
}
| 45.678641
| 1,298
| 0.54981
| 6,202
| 47,049
| 4.153983
| 0.118026
| 0.032838
| 0.024842
| 0.009316
| 0.785196
| 0.734425
| 0.690836
| 0.665179
| 0.636028
| 0.61076
| 0
| 0.03381
| 0.375757
| 47,049
| 1,029
| 1,299
| 45.723032
| 0.843378
| 0.004166
| 0
| 0.287686
| 0
| 0.041401
| 0.57381
| 0.000534
| 0
| 0
| 0
| 0
| 0
| 1
| 0.042463
| true
| 0.008493
| 0.005308
| 0.042463
| 0.090234
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
48413869c4ced3aab4882c8b4b60a85d80c332fa
| 397
|
pyde
|
Python
|
processing/sketch_191105d.pyde
|
nanam0rgana/2019-fall-polytech-cs
|
1a31acb3cf22edc930318dec17324b05dd7788d5
|
[
"MIT"
] | null | null | null |
processing/sketch_191105d.pyde
|
nanam0rgana/2019-fall-polytech-cs
|
1a31acb3cf22edc930318dec17324b05dd7788d5
|
[
"MIT"
] | null | null | null |
processing/sketch_191105d.pyde
|
nanam0rgana/2019-fall-polytech-cs
|
1a31acb3cf22edc930318dec17324b05dd7788d5
|
[
"MIT"
] | null | null | null |
def setup ():
strokeWeight(140)
size (500, 500)
smooth ()
noLoop ()
noStroke()
def draw ():
background (50)
fill (94, 206, 40, 250)
ellipse (100, 100, 150, 150)
fill (94, 206, 40, 150)
ellipse (100, 200, 150, 150)
fill (94, 206, 40, 100)
ellipse (100, 300, 150, 150)
fill (94, 206, 40, 50)
ellipse (100, 400, 150, 150)
| 18.045455
| 32
| 0.511335
| 54
| 397
| 3.759259
| 0.425926
| 0.118227
| 0.17734
| 0.216749
| 0.251232
| 0.251232
| 0
| 0
| 0
| 0
| 0
| 0.374046
| 0.34005
| 397
| 21
| 33
| 18.904762
| 0.400763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| true
| 0
| 0
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
48491717d52c5786f57d1e8a932a165205eb3909
| 546
|
gyp
|
Python
|
node_modules/svd-xbee/node_modules/serialport/binding.gyp
|
MirkoC/SmartHouseRaspberryPiServer
|
268678f3e30810a621cb2736d673ec4af85e04e3
|
[
"MIT"
] | 1
|
2019-05-14T15:38:14.000Z
|
2019-05-14T15:38:14.000Z
|
node_modules/svd-xbee/node_modules/serialport/binding.gyp
|
MirkoC/SmartHouseRaspberryPiServer
|
268678f3e30810a621cb2736d673ec4af85e04e3
|
[
"MIT"
] | null | null | null |
node_modules/svd-xbee/node_modules/serialport/binding.gyp
|
MirkoC/SmartHouseRaspberryPiServer
|
268678f3e30810a621cb2736d673ec4af85e04e3
|
[
"MIT"
] | null | null | null |
{
'targets': [
{
'target_name': 'serialport',
'sources': [
'src/serialport.cpp',
'src/serialport_unix.cpp',
],
'conditions': [
['OS=="win"',
{
'sources': [
"src/serialport_win.cpp",
'src/win/disphelper.c',
'src/win/enumser.cpp',
],
}
],
['OS!="win"',
{
'sources': [
'src/serialport_unix.cpp',
],
}
],
],
},
],
}
| 18.2
| 40
| 0.32967
| 35
| 546
| 5.028571
| 0.4
| 0.295455
| 0.340909
| 0.227273
| 0.284091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.492674
| 546
| 29
| 41
| 18.827586
| 0.635379
| 0
| 0
| 0.413793
| 0
| 0
| 0.369963
| 0.124542
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4856624c762b57e0a328cfcf2f964c75da775595
| 25
|
py
|
Python
|
bellybutton/caching.py
|
sYnfo/bellybutton
|
8b98ebb51f4de4cfcc58cdcfd23e01518829141c
|
[
"MIT"
] | 236
|
2018-02-26T04:29:18.000Z
|
2022-03-10T17:13:13.000Z
|
bellybutton/caching.py
|
sYnfo/bellybutton
|
8b98ebb51f4de4cfcc58cdcfd23e01518829141c
|
[
"MIT"
] | 17
|
2018-08-13T14:53:50.000Z
|
2021-09-27T13:48:51.000Z
|
bellybutton/caching.py
|
sYnfo/bellybutton
|
8b98ebb51f4de4cfcc58cdcfd23e01518829141c
|
[
"MIT"
] | 12
|
2018-02-26T15:07:09.000Z
|
2021-09-07T15:56:41.000Z
|
"""Caching utilities."""
| 12.5
| 24
| 0.64
| 2
| 25
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 25
| 1
| 25
| 25
| 0.695652
| 0.72
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
48707ce8a0f008c18735aa2eff9d231d1f531238
| 496
|
py
|
Python
|
tracardi_dot_notation/dot_template.py
|
Tracardi/tracardi-dot-notation
|
6a620775de3cd3d94e55c103dd8a78f250d2639d
|
[
"MIT"
] | 1
|
2021-09-28T06:45:08.000Z
|
2021-09-28T06:45:08.000Z
|
tracardi_dot_notation/dot_template.py
|
atompie/tracardi-dot-notation
|
6a620775de3cd3d94e55c103dd8a78f250d2639d
|
[
"MIT"
] | null | null | null |
tracardi_dot_notation/dot_template.py
|
atompie/tracardi-dot-notation
|
6a620775de3cd3d94e55c103dd8a78f250d2639d
|
[
"MIT"
] | null | null | null |
import re
from tracardi_dot_notation.dot_accessor import DotAccessor
from tracardi_dot_notation.utils.singleton import Singleton
class DotTemplate(metaclass=Singleton):
def __init__(self):
self._regex = re.compile(r"\{{2}\s*((?:payload|profile|event|session|flow|memory)"
r"@[\[\]0-9a-zA-a_\-\.]+(?<![\.\[]))\s*\}{2}")
def render(self, template, dot: DotAccessor):
return re.sub(self._regex, lambda x: str(dot[x.group(1)]), template)
| 31
| 90
| 0.639113
| 64
| 496
| 4.765625
| 0.625
| 0.078689
| 0.098361
| 0.15082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012346
| 0.183468
| 496
| 15
| 91
| 33.066667
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0.193939
| 0.193939
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
487a5519527b8c406a783644f4f007b2eaea668f
| 422
|
py
|
Python
|
synthesizer/tests/__init__.py
|
puppyapple/Real-Time-Voice-Cloning
|
d1e1481e18ee7d604372025f3b751663d8dda37b
|
[
"MIT"
] | null | null | null |
synthesizer/tests/__init__.py
|
puppyapple/Real-Time-Voice-Cloning
|
d1e1481e18ee7d604372025f3b751663d8dda37b
|
[
"MIT"
] | null | null | null |
synthesizer/tests/__init__.py
|
puppyapple/Real-Time-Voice-Cloning
|
d1e1481e18ee7d604372025f3b751663d8dda37b
|
[
"MIT"
] | null | null | null |
import os
def get_tests_path():
"""Returns the path to the test directory."""
return os.path.dirname(os.path.realpath(__file__))
def get_tests_input_path():
"""Returns the path to the test data directory."""
return os.path.join(get_tests_path(), "inputs")
def get_tests_output_path():
"""Returns the path to the directory for test outputs."""
return os.path.join(get_tests_path(), "outputs")
| 24.823529
| 61
| 0.701422
| 64
| 422
| 4.375
| 0.34375
| 0.142857
| 0.117857
| 0.192857
| 0.475
| 0.475
| 0.392857
| 0
| 0
| 0
| 0
| 0
| 0.165877
| 422
| 16
| 62
| 26.375
| 0.795455
| 0.322275
| 0
| 0
| 0
| 0
| 0.048148
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| true
| 0
| 0.142857
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
6f824a80738bddcdb55062eda65391a0de292c87
| 2,428
|
py
|
Python
|
secondary_market/migrations/0013_auto_20180309_1416.py
|
chinmaysb/fomoboard
|
6fe66a7363d9b5272e200abc69a800834111343c
|
[
"MIT"
] | null | null | null |
secondary_market/migrations/0013_auto_20180309_1416.py
|
chinmaysb/fomoboard
|
6fe66a7363d9b5272e200abc69a800834111343c
|
[
"MIT"
] | null | null | null |
secondary_market/migrations/0013_auto_20180309_1416.py
|
chinmaysb/fomoboard
|
6fe66a7363d9b5272e200abc69a800834111343c
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-03-09 14:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('secondary_market', '0012_auto_20180218_0911'),
]
operations = [
migrations.AddField(
model_name='item',
name='icon',
field=models.TextField(blank=True, max_length=50),
),
migrations.AddField(
model_name='transaction',
name='decay_price',
field=models.IntegerField(blank=True, default=0),
),
migrations.AddField(
model_name='transaction',
name='email_sent',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='transaction',
name='email_tries',
field=models.IntegerField(blank=True, default=0),
),
migrations.AddField(
model_name='transaction',
name='payment_completed',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='transaction',
name='payment_tries',
field=models.IntegerField(blank=True, default=0),
),
migrations.AddField(
model_name='transaction',
name='reserve_price',
field=models.IntegerField(blank=True, default=9999),
),
migrations.AlterField(
model_name='transaction',
name='buyer_venmo_handle',
field=models.TextField(blank=True, max_length=100, null=True),
),
migrations.AlterField(
model_name='transaction',
name='exp_price',
field=models.IntegerField(blank=True, default=9999),
),
migrations.AlterField(
model_name='transaction',
name='id',
field=models.CharField(max_length=6, primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='transaction',
name='seller',
field=models.TextField(blank=True, max_length=250, null=True),
),
migrations.AlterField(
model_name='transaction',
name='seller_venmo_handle',
field=models.TextField(blank=True, max_length=100, null=True),
),
]
| 31.947368
| 84
| 0.571664
| 227
| 2,428
| 5.947137
| 0.325991
| 0.08
| 0.162963
| 0.195556
| 0.75037
| 0.75037
| 0.719259
| 0.6
| 0.528889
| 0.528889
| 0
| 0.033593
| 0.313427
| 2,428
| 75
| 85
| 32.373333
| 0.776245
| 0.028007
| 0
| 0.647059
| 1
| 0
| 0.126008
| 0.009758
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.029412
| 0
| 0.073529
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6f94b8870b132eb5481cfac416587641e3713dd8
| 2,948
|
py
|
Python
|
app/upload/models.py
|
DakobedBard/BaseDjango
|
27b475505cf109125333e30a0517a21ee982ed91
|
[
"MIT"
] | null | null | null |
app/upload/models.py
|
DakobedBard/BaseDjango
|
27b475505cf109125333e30a0517a21ee982ed91
|
[
"MIT"
] | null | null | null |
app/upload/models.py
|
DakobedBard/BaseDjango
|
27b475505cf109125333e30a0517a21ee982ed91
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.conf import settings
class Document(models.Model):
uploaded_at = models.DateTimeField(auto_now_add=True)
s3Path = models.CharField(max_length=500, default='file.txt')
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
bucket=models.CharField(max_length=50, default="basedjango")
extension = models.CharField(max_length=50, default=".txt")
def __str__(self):
return str(self.user.username)
class EC2Instance(models.Model):
'''
There is a default field with name "id" which is auto increment..
'''
created_at = models.DateTimeField(auto_now_add=True)
instance_ID = models.CharField(max_length=30)
instance_dns = models.CharField(max_length=80, default="")
application = models.CharField(max_length=30)
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
class Style(models.Model):
style_image_s3Path = models.CharField(max_length=80)
base_image = models.CharField(max_length=80)
output_image = models.CharField(max_length=80)
class MirModel(models.Model):
s3_bucket = models.CharField(max_length=30, default='heyward-audio-tabs')
class Spectogram(models.Model):
annotation_file_path = models.CharField(max_length=40)
audio_file_path = models.CharField(max_length=40)
class StyleTransferModel(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name = 'user+')
title = models.CharField(max_length=30)
description = models.CharField(max_length=200, default='')
base_image_name = models.CharField(max_length=50, default="base")
style_image_name = models.CharField(max_length=50, default ="stlye")
base_image = models.ForeignKey(Document, on_delete=models.CASCADE, related_name='base-image+', default='')
style_image = models.ForeignKey(Document, on_delete=models.CASCADE, related_name='style-image+', default='')
output_image = models.ForeignKey(Document, on_delete=models.CASCADE, related_name='output-image+',default='')
def __str__(self):
return str(self.user.username)
class StyleTransferRestModel(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name = 'user+')
title = models.CharField(max_length=30)
description = models.CharField(max_length=200, default='')
base_image_name = models.CharField(max_length=50, default="base")
style_image_name = models.CharField(max_length=50, default ="stlye")
base_image = models.ForeignKey(Document, on_delete=models.CASCADE, related_name='base-image+', default='')
style_image = models.ForeignKey(Document, on_delete=models.CASCADE, related_name='style-image+', default='')
output_image = models.ForeignKey(Document, on_delete=models.CASCADE, related_name='output-image+',default='')
def __str__(self):
return str(self.user.username)
| 49.133333
| 113
| 0.752714
| 385
| 2,948
| 5.532468
| 0.197403
| 0.140845
| 0.169014
| 0.225352
| 0.804225
| 0.720657
| 0.660563
| 0.595775
| 0.595775
| 0.574648
| 0
| 0.018203
| 0.124152
| 2,948
| 59
| 114
| 49.966102
| 0.806739
| 0.022049
| 0
| 0.510638
| 0
| 0
| 0.048832
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.06383
| false
| 0
| 0.042553
| 0.06383
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
6f9eb0c059d6b4bca356cfefa10b429b6715039c
| 301
|
py
|
Python
|
autoreject/__init__.py
|
msseibel/autoreject
|
a5e1d4eb79cf8fa37aa08d06928c3803cd8f3a72
|
[
"BSD-3-Clause"
] | null | null | null |
autoreject/__init__.py
|
msseibel/autoreject
|
a5e1d4eb79cf8fa37aa08d06928c3803cd8f3a72
|
[
"BSD-3-Clause"
] | null | null | null |
autoreject/__init__.py
|
msseibel/autoreject
|
a5e1d4eb79cf8fa37aa08d06928c3803cd8f3a72
|
[
"BSD-3-Clause"
] | 1
|
2020-12-12T09:48:22.000Z
|
2020-12-12T09:48:22.000Z
|
__version__ = '0.3.dev0'
from .autoreject import _GlobalAutoReject, _AutoReject, AutoReject
from .autoreject import RejectLog, read_auto_reject
from .autoreject import compute_thresholds, validation_curve, get_rejection_threshold
from .ransac import Ransac
from .utils import set_matplotlib_defaults
| 37.625
| 85
| 0.853821
| 37
| 301
| 6.567568
| 0.648649
| 0.17284
| 0.246914
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011029
| 0.096346
| 301
| 7
| 86
| 43
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0.026578
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6fa3601af62915e4c30c4c5082c05cfb69eacd47
| 673
|
py
|
Python
|
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_NZ.py
|
AMuratTuran/mkn
|
557086426773ced10d82c969304bd349414a601e
|
[
"BSD-3-Clause"
] | 4
|
2018-10-19T04:36:20.000Z
|
2020-02-13T16:14:09.000Z
|
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_NZ.py
|
AMuratTuran/mkn
|
557086426773ced10d82c969304bd349414a601e
|
[
"BSD-3-Clause"
] | null | null | null |
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_NZ.py
|
AMuratTuran/mkn
|
557086426773ced10d82c969304bd349414a601e
|
[
"BSD-3-Clause"
] | null | null | null |
"""Auto-generated file, do not edit by hand. NZ metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_NZ = PhoneMetadata(id='NZ', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[14]\\d{2,3}', possible_length=(3, 4)),
emergency=PhoneNumberDesc(national_number_pattern='111', example_number='111', possible_length=(3,)),
short_code=PhoneNumberDesc(national_number_pattern='111|4098', example_number='111', possible_length=(3, 4)),
sms_services=PhoneNumberDesc(national_number_pattern='4098', example_number='4098', possible_length=(4,)),
short_data=True)
| 67.3
| 113
| 0.780089
| 85
| 673
| 5.905882
| 0.505882
| 0.183267
| 0.231076
| 0.286853
| 0.278884
| 0.123506
| 0
| 0
| 0
| 0
| 0
| 0.055016
| 0.081724
| 673
| 9
| 114
| 74.777778
| 0.757282
| 0.078752
| 0
| 0
| 1
| 0
| 0.063518
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6fb71b175301eab5b4b7a6395eb85e190ef9f69c
| 6,822
|
gyp
|
Python
|
src/ios/ios.gyp
|
google-admin/mozc
|
d0efe11cc6232c4e99371c19d2e02303ba889233
|
[
"BSD-3-Clause"
] | 26
|
2015-03-18T16:08:47.000Z
|
2022-03-09T07:04:41.000Z
|
src/ios/ios.gyp
|
google-admin/mozc
|
d0efe11cc6232c4e99371c19d2e02303ba889233
|
[
"BSD-3-Clause"
] | 19
|
2018-05-09T21:18:45.000Z
|
2022-02-16T08:12:02.000Z
|
src/ios/ios.gyp
|
google-admin/mozc
|
d0efe11cc6232c4e99371c19d2e02303ba889233
|
[
"BSD-3-Clause"
] | 12
|
2015-05-20T15:32:00.000Z
|
2022-02-14T20:59:50.000Z
|
# Copyright 2010-2021, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{
'targets': [
{
'target_name': 'ios_engine_main',
'type': 'executable',
'sources': [
'ios_engine_main.cc',
],
'dependencies': [
'ios_engine',
],
},
{
'target_name': 'ios_engine',
'type': 'static_library',
'sources': [
'ios_engine.cc',
'ios_engine.h',
],
'dependencies': [
'../base/absl.gyp:absl_synchronization',
'../base/base.gyp:base_core',
'../composer/composer.gyp:composer',
'../config/config.gyp:config_handler',
'../data_manager/oss/oss_data_manager.gyp:oss_data_manager',
'../engine/engine.gyp:engine_builder',
'../engine/engine.gyp:minimal_engine',
'../protocol/protocol.gyp:commands_proto',
'../protocol/protocol.gyp:config_proto',
'../session/session.gyp:session',
'../session/session.gyp:session_handler',
],
},
{
'target_name': 'libmozc_gboard',
'type': 'none',
'variables': {
# libraries to be packed into a single library for Gboard.
# This list is generated from the necessary libraries to build
# ios_engine_main except for libprotobuf.a. libprotobuf.a is already
# included by Gboard.
'src_libs': [
'<(PRODUCT_DIR)/libbase.a',
'<(PRODUCT_DIR)/libbase_core.a',
'<(PRODUCT_DIR)/libbit_vector_based_array.a',
'<(PRODUCT_DIR)/libcalculator.a',
'<(PRODUCT_DIR)/libcandidates_proto.a',
'<(PRODUCT_DIR)/libcharacter_form_manager.a',
'<(PRODUCT_DIR)/libclock.a',
'<(PRODUCT_DIR)/libcodec.a',
'<(PRODUCT_DIR)/libcodec_factory.a',
'<(PRODUCT_DIR)/libcodec_util.a',
'<(PRODUCT_DIR)/libcommands_proto.a',
'<(PRODUCT_DIR)/libcomposer.a',
'<(PRODUCT_DIR)/libconfig_file_stream.a',
'<(PRODUCT_DIR)/libconfig_handler.a',
'<(PRODUCT_DIR)/libconfig_proto.a',
'<(PRODUCT_DIR)/libconnector.a',
'<(PRODUCT_DIR)/libconversion_request.a',
'<(PRODUCT_DIR)/libconverter.a',
'<(PRODUCT_DIR)/libconverter_util.a',
'<(PRODUCT_DIR)/libdata_manager.a',
'<(PRODUCT_DIR)/libdataset_proto.a',
'<(PRODUCT_DIR)/libdataset_reader.a',
'<(PRODUCT_DIR)/libdictionary_file.a',
'<(PRODUCT_DIR)/libdictionary_impl.a',
'<(PRODUCT_DIR)/libencryptor.a',
'<(PRODUCT_DIR)/libengine.a',
'<(PRODUCT_DIR)/libengine_builder.a',
'<(PRODUCT_DIR)/libengine_builder_proto.a',
'<(PRODUCT_DIR)/libflags.a',
'<(PRODUCT_DIR)/libgoogle_data_manager.a',
'<(PRODUCT_DIR)/libhash.a',
'<(PRODUCT_DIR)/libimmutable_converter.a',
'<(PRODUCT_DIR)/libimmutable_converter_interface.a',
'<(PRODUCT_DIR)/libios_engine.a',
'<(PRODUCT_DIR)/libkey_event_util.a',
'<(PRODUCT_DIR)/libkey_parser.a',
'<(PRODUCT_DIR)/libkeymap.a',
'<(PRODUCT_DIR)/libkeymap_factory.a',
'<(PRODUCT_DIR)/liblattice.a',
'<(PRODUCT_DIR)/liblouds.a',
'<(PRODUCT_DIR)/liblouds_trie.a',
'<(PRODUCT_DIR)/libmultifile.a',
'<(PRODUCT_DIR)/libmutex.a',
'<(PRODUCT_DIR)/libobfuscator_support.a',
'<(PRODUCT_DIR)/libprediction.a',
'<(PRODUCT_DIR)/libprediction_protocol.a',
# libprotobuf is included in a different place.
# '<(PRODUCT_DIR)/libprotobuf.a',
'<(PRODUCT_DIR)/librequest_test_util.a',
'<(PRODUCT_DIR)/librewriter.a',
'<(PRODUCT_DIR)/libsegmenter.a',
'<(PRODUCT_DIR)/libsegmenter_data_proto.a',
'<(PRODUCT_DIR)/libsegments.a',
'<(PRODUCT_DIR)/libserialized_dictionary.a',
'<(PRODUCT_DIR)/libserialized_string_array.a',
'<(PRODUCT_DIR)/libsession.a',
'<(PRODUCT_DIR)/libsession_handler.a',
'<(PRODUCT_DIR)/libsession_internal.a',
'<(PRODUCT_DIR)/libsession_usage_stats_util.a',
'<(PRODUCT_DIR)/libsimple_succinct_bit_vector_index.a',
'<(PRODUCT_DIR)/libsingleton.a',
'<(PRODUCT_DIR)/libstats_config_util.a',
'<(PRODUCT_DIR)/libstorage.a',
'<(PRODUCT_DIR)/libsuffix_dictionary.a',
'<(PRODUCT_DIR)/libsuggestion_filter.a',
'<(PRODUCT_DIR)/libsuppression_dictionary.a',
'<(PRODUCT_DIR)/libsystem_dictionary.a',
'<(PRODUCT_DIR)/libsystem_dictionary_codec.a',
'<(PRODUCT_DIR)/libtext_dictionary_loader.a',
'<(PRODUCT_DIR)/libtransliteration.a',
'<(PRODUCT_DIR)/libusage_stats.a',
'<(PRODUCT_DIR)/libusage_stats_protocol.a',
'<(PRODUCT_DIR)/libuser_dictionary.a',
'<(PRODUCT_DIR)/libuser_dictionary_storage_proto.a',
'<(PRODUCT_DIR)/libuser_pos.a',
'<(PRODUCT_DIR)/libvalue_dictionary.a',
]
},
'actions': [
{
'action_name': 'libtool',
'outputs': ['<(PRODUCT_DIR)/libmozc_gboard.a'],
'inputs': ['<@(src_libs)'],
'action': [
'libtool', '-static', '-o', '<(PRODUCT_DIR)/libmozc_gboard.a',
'<@(src_libs)',
],
},
],
},
],
}
| 41.597561
| 76
| 0.623571
| 756
| 6,822
| 5.384921
| 0.34127
| 0.189143
| 0.197249
| 0.027512
| 0.128715
| 0.050602
| 0.033407
| 0.033407
| 0.033407
| 0.033407
| 0
| 0.001535
| 0.236001
| 6,822
| 163
| 77
| 41.852761
| 0.779547
| 0.257842
| 0
| 0.085938
| 0
| 0
| 0.652944
| 0.59109
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6fb7dd798e9d325476c697ef893237ecdbbcecd6
| 779
|
py
|
Python
|
icarus_simulator/strategies/atk_geo_constraint/grid_constr_strat.py
|
RubenFr/ICARUS-framework
|
e57a1f50c3bb9522b2a279fee6b625628afd056f
|
[
"MIT"
] | 5
|
2021-08-31T08:07:41.000Z
|
2022-01-04T02:09:25.000Z
|
icarus_simulator/strategies/atk_geo_constraint/grid_constr_strat.py
|
RubenFr/ICARUS-framework
|
e57a1f50c3bb9522b2a279fee6b625628afd056f
|
[
"MIT"
] | 3
|
2021-09-23T09:06:35.000Z
|
2021-12-08T04:53:01.000Z
|
icarus_simulator/strategies/atk_geo_constraint/grid_constr_strat.py
|
RubenFr/ICARUS-framework
|
e57a1f50c3bb9522b2a279fee6b625628afd056f
|
[
"MIT"
] | 2
|
2022-01-19T17:50:56.000Z
|
2022-03-06T18:59:41.000Z
|
# 2020 Tommaso Ciussani and Giacomo Giuliari
from typing import Set, List
from icarus_simulator.strategies.atk_geo_constraint.base_geo_constraint_strat import (
BaseGeoConstraintStrat,
)
from icarus_simulator.structure_definitions import GridPos
class GridConstrStrat(BaseGeoConstraintStrat):
def __init__(self, grid_points: List[int], **kwargs):
super().__init__()
self.grid_points = grid_points
if len(kwargs) > 0:
pass # Appease the unused param inspection
@property
def name(self) -> str:
return "grd"
@property
def param_description(self) -> str:
return ",".join([str(i) for i in self.grid_points])
def compute(self, grid_pos: GridPos) -> Set[int]:
return set(self.grid_points)
| 28.851852
| 86
| 0.695764
| 95
| 779
| 5.463158
| 0.568421
| 0.077071
| 0.1079
| 0.069364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008157
| 0.213094
| 779
| 26
| 87
| 29.961538
| 0.838499
| 0.100128
| 0
| 0.105263
| 0
| 0
| 0.005739
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.210526
| false
| 0.052632
| 0.157895
| 0.157895
| 0.578947
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
6fdb6badf211d6c5daaa62c43a9b65f9fb97ab53
| 286
|
py
|
Python
|
versions/2.0/karma/python/montanagunclassifieds.py
|
Lituta/dig-alignment
|
812ab0e4a181953d23024ef9df92eec1d40559cb
|
[
"Apache-2.0"
] | 5
|
2015-04-26T19:39:44.000Z
|
2018-12-24T13:17:42.000Z
|
versions/2.0/karma/python/montanagunclassifieds.py
|
Lituta/dig-alignment
|
812ab0e4a181953d23024ef9df92eec1d40559cb
|
[
"Apache-2.0"
] | 7
|
2016-03-23T16:52:32.000Z
|
2018-07-24T03:08:05.000Z
|
versions/2.0/karma/python/montanagunclassifieds.py
|
Lituta/dig-alignment
|
812ab0e4a181953d23024ef9df92eec1d40559cb
|
[
"Apache-2.0"
] | 28
|
2015-04-08T22:39:07.000Z
|
2021-12-25T22:16:36.000Z
|
def montana_getEnhancedLocation(location):
"""Add Montana to the location if not there already."""
return add_state(location, "Montana")
def montana_cleanPrice(price):
return price_quantity_us_number(price)
def montana_getCurrency(price):
return price_currency(price)
| 28.6
| 59
| 0.772727
| 36
| 286
| 5.916667
| 0.555556
| 0.140845
| 0.150235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13986
| 286
| 9
| 60
| 31.777778
| 0.865854
| 0.171329
| 0
| 0
| 0
| 0
| 0.030303
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
6fe47f1cf9217dcdd857c9795fc3ea2ebbcff05a
| 352
|
py
|
Python
|
pagedown/settings.py
|
Rhyme24/SignInSystem
|
3ca542297733065444c80bdf4974805d8a721837
|
[
"BSD-3-Clause"
] | 2
|
2018-04-20T10:57:18.000Z
|
2018-05-08T19:06:11.000Z
|
pagedown/settings.py
|
Rhyme24/SignInSystem
|
3ca542297733065444c80bdf4974805d8a721837
|
[
"BSD-3-Clause"
] | 15
|
2018-05-02T11:05:30.000Z
|
2018-05-11T20:51:27.000Z
|
envlive/lib/python2.7/site-packages/pagedown/settings.py
|
ujjwalsb/liveProject
|
8ce7df82de35c3cb5a911ba36a2f11b482cf38d9
|
[
"Apache-2.0"
] | null | null | null |
from django.conf import settings
SHOW_PREVIEW = getattr(settings, "PAGEDOWN_SHOW_PREVIEW", True)
WIDGET_TEMPLATE = getattr(
settings, "PAGEDOWN_WIDGET_TEMPLATE", "pagedown/widgets/default.html")
WIDGET_CSS = getattr(
settings, "PAGEDOWN_WIDGET_CSS", ("pagedown/demo/browser/demo.css", ))
EXTENSIONS = getattr(settings, "PAGEDOWN_EXTENSIONS", [])
| 35.2
| 72
| 0.778409
| 41
| 352
| 6.439024
| 0.463415
| 0.227273
| 0.348485
| 0.219697
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 352
| 9
| 73
| 39.111111
| 0.827586
| 0
| 0
| 0
| 0
| 0
| 0.403409
| 0.295455
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d2027814f9aaae90e181715383d092eeeac75da9
| 177
|
py
|
Python
|
Data Structures/Trees/Tree: Height of a Binary Tree/solution.py
|
rawat9/Hackerrank
|
c8f5e0ec8c0e48ae723a019958940a753f97f8f4
|
[
"MIT"
] | null | null | null |
Data Structures/Trees/Tree: Height of a Binary Tree/solution.py
|
rawat9/Hackerrank
|
c8f5e0ec8c0e48ae723a019958940a753f97f8f4
|
[
"MIT"
] | null | null | null |
Data Structures/Trees/Tree: Height of a Binary Tree/solution.py
|
rawat9/Hackerrank
|
c8f5e0ec8c0e48ae723a019958940a753f97f8f4
|
[
"MIT"
] | null | null | null |
def height(root):
if root is None:
return -1
left_height = height(root.left)
right_height = height(root.right)
return 1 + max(left_height, right_height)
| 25.285714
| 45
| 0.661017
| 26
| 177
| 4.346154
| 0.423077
| 0.265487
| 0.283186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014925
| 0.242938
| 177
| 7
| 45
| 25.285714
| 0.828358
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d21f302b13d1ea0b3afbb986bc96dac40a1f7f8b
| 451
|
py
|
Python
|
lrs/exceptions.py
|
Sembian/ADL_LRS
|
3535dad6371af3f9f5b67f7eabfd0f4a393e0d62
|
[
"Apache-2.0"
] | null | null | null |
lrs/exceptions.py
|
Sembian/ADL_LRS
|
3535dad6371af3f9f5b67f7eabfd0f4a393e0d62
|
[
"Apache-2.0"
] | null | null | null |
lrs/exceptions.py
|
Sembian/ADL_LRS
|
3535dad6371af3f9f5b67f7eabfd0f4a393e0d62
|
[
"Apache-2.0"
] | null | null | null |
class BadRequest(Exception):
pass
class ParamError(BadRequest):
pass
class Unauthorized(Exception):
pass
class Forbidden(Exception):
pass
class NotFound(Exception):
pass
class IDNotFoundError(NotFound):
pass
class Conflict(Exception):
pass
class ParamConflict(Conflict):
pass
class PreconditionFail(Exception):
pass
class OauthUnauthorized(Exception):
pass
class OauthBadRequest(Exception):
pass
| 13.264706
| 35
| 0.731707
| 44
| 451
| 7.5
| 0.318182
| 0.272727
| 0.381818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195122
| 451
| 33
| 36
| 13.666667
| 0.909091
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
d22e3536d63eadaaa95471b04352e7e395c38b8a
| 37
|
py
|
Python
|
abc/192/A.py
|
tonko2/AtCoder
|
5d617072517881d226d7c8af09cb88684d41af7e
|
[
"Xnet",
"X11",
"CECILL-B"
] | 2
|
2022-01-22T07:56:58.000Z
|
2022-01-24T00:29:37.000Z
|
abc/192/A.py
|
tonko2/AtCoder
|
5d617072517881d226d7c8af09cb88684d41af7e
|
[
"Xnet",
"X11",
"CECILL-B"
] | null | null | null |
abc/192/A.py
|
tonko2/AtCoder
|
5d617072517881d226d7c8af09cb88684d41af7e
|
[
"Xnet",
"X11",
"CECILL-B"
] | null | null | null |
X = int(input())
print(100 - X % 100)
| 18.5
| 20
| 0.567568
| 7
| 37
| 3
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.189189
| 37
| 2
| 20
| 18.5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
d2533d5712a74d974e11951770ac9a4687104db5
| 689
|
py
|
Python
|
plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/actions/__init__.py
|
nwbreneman/holland
|
8defe48aafb32388ec2bf1cc76070da98c766d8e
|
[
"BSD-3-Clause"
] | null | null | null |
plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/actions/__init__.py
|
nwbreneman/holland
|
8defe48aafb32388ec2bf1cc76070da98c766d8e
|
[
"BSD-3-Clause"
] | null | null | null |
plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/actions/__init__.py
|
nwbreneman/holland
|
8defe48aafb32388ec2bf1cc76070da98c766d8e
|
[
"BSD-3-Clause"
] | null | null | null |
"""Define mysql_lvm.actions"""
from holland.backup.mysql_lvm.actions.mysql import (FlushAndLockMySQLAction,
InnodbRecoveryAction,
RecordMySQLReplicationAction,
record_slave_status,
record_master_status,
wait_for_mysqld,
MySQLDumpDispatchAction)
from holland.backup.mysql_lvm.actions.tar import TarArchiveAction
from holland.backup.mysql_lvm.actions.dir import DirArchiveAction
| 62.636364
| 81
| 0.478955
| 43
| 689
| 7.44186
| 0.534884
| 0.1
| 0.1875
| 0.20625
| 0.3
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0.481858
| 689
| 10
| 82
| 68.9
| 0.896359
| 0.034833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d254212c80e6a05ad214deec8ef28770a0110f97
| 55
|
py
|
Python
|
mocks/samplelake/driver/handler.py
|
NetSys/dspace
|
c3e2942501288ae06b41d2daf1b81424c812b34d
|
[
"Apache-2.0"
] | 8
|
2021-05-28T13:17:34.000Z
|
2021-11-16T07:55:52.000Z
|
mocks/sample/driver/handler.py
|
digi-project/sosp21-artifact
|
1b4a11c648e456c9ff9d74f16b09f4238d6694a0
|
[
"BSD-3-Clause"
] | 15
|
2021-05-25T18:07:13.000Z
|
2022-01-03T20:00:59.000Z
|
mocks/samplelake/driver/handler.py
|
isabella232/dspace
|
c3e2942501288ae06b41d2daf1b81424c812b34d
|
[
"Apache-2.0"
] | 4
|
2021-05-23T21:40:45.000Z
|
2021-05-31T12:27:44.000Z
|
import digi
if __name__ == '__main__':
digi.run()
| 11
| 26
| 0.636364
| 7
| 55
| 3.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.218182
| 55
| 4
| 27
| 13.75
| 0.627907
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
9627e055f25a379bac79aa2b12885c0709fe1676
| 208
|
py
|
Python
|
08_AdvancedArchitecture/PySodium/sodium/tsai_model/s8.py
|
Septank766/TSAI-DeepVision-EVA4.0
|
02265d7e3e06789d0ee634a38399c6f0e01cfcbd
|
[
"MIT"
] | 22
|
2020-05-16T08:15:48.000Z
|
2021-12-30T14:38:31.000Z
|
08_AdvancedArchitecture/PySodium/sodium/tsai_model/s8.py
|
Septank766/TSAI-DeepVision-EVA4.0
|
02265d7e3e06789d0ee634a38399c6f0e01cfcbd
|
[
"MIT"
] | 1
|
2020-09-07T17:10:41.000Z
|
2020-09-09T20:51:31.000Z
|
08_AdvancedArchitecture/PySodium/sodium/tsai_model/s8.py
|
Septank766/TSAI-DeepVision-EVA4.0
|
02265d7e3e06789d0ee634a38399c6f0e01cfcbd
|
[
"MIT"
] | 43
|
2020-03-07T22:08:41.000Z
|
2022-03-16T21:07:30.000Z
|
import torch.nn as nn
import torch.nn.functional as F
from sodium.utils import setup_logger
from sodium.base import BaseModel
from sodium.model import ResNet18
def CIFAR10S8Model():
return ResNet18()
| 17.333333
| 37
| 0.793269
| 31
| 208
| 5.290323
| 0.580645
| 0.182927
| 0.158537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039773
| 0.153846
| 208
| 11
| 38
| 18.909091
| 0.892045
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| true
| 0
| 0.714286
| 0.142857
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
9637dcc8acdbec5c8d1bbb1e6ac7c0e04d87e907
| 175
|
py
|
Python
|
Ex.3.19.py
|
tarasov4/Intro-to-Python-Excercises
|
f98e79c4626b757316d41f22edfcd2ee94889854
|
[
"Unlicense"
] | null | null | null |
Ex.3.19.py
|
tarasov4/Intro-to-Python-Excercises
|
f98e79c4626b757316d41f22edfcd2ee94889854
|
[
"Unlicense"
] | null | null | null |
Ex.3.19.py
|
tarasov4/Intro-to-Python-Excercises
|
f98e79c4626b757316d41f22edfcd2ee94889854
|
[
"Unlicense"
] | null | null | null |
for cat1 in range(1, 21):
for cat2 in range(1, 21):
hypo = (cat1 ** 2 + cat2 ** 2) ** 0.5
if hypo.is_integer():
print(cat1, cat2, hypo)
| 25
| 46
| 0.474286
| 27
| 175
| 3.037037
| 0.555556
| 0.170732
| 0.195122
| 0.243902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 0.371429
| 175
| 6
| 47
| 29.166667
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
963b829f4deeefea8d37f8a3778881857d938fa8
| 124
|
py
|
Python
|
tests/__init__.py
|
canonical/finos-legend-studio-operator
|
b7567bbb241f3e355cd73b37269b7843a769a5e7
|
[
"Apache-2.0"
] | null | null | null |
tests/__init__.py
|
canonical/finos-legend-studio-operator
|
b7567bbb241f3e355cd73b37269b7843a769a5e7
|
[
"Apache-2.0"
] | null | null | null |
tests/__init__.py
|
canonical/finos-legend-studio-operator
|
b7567bbb241f3e355cd73b37269b7843a769a5e7
|
[
"Apache-2.0"
] | 2
|
2021-12-03T17:32:05.000Z
|
2022-01-20T10:29:29.000Z
|
# Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
"""Module testing the Legend Studio Operator."""
| 24.8
| 48
| 0.758065
| 16
| 124
| 5.875
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038095
| 0.153226
| 124
| 4
| 49
| 31
| 0.857143
| 0.91129
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9665f71f12c8767605495bcaa65b389a3fffbba6
| 2,422
|
py
|
Python
|
mxfusion/components/functions/operators/operator_impl.py
|
tdiethe/MXFusion
|
fbdba79ca85cb5a9760722ffd932b9ec4c401745
|
[
"Apache-2.0"
] | null | null | null |
mxfusion/components/functions/operators/operator_impl.py
|
tdiethe/MXFusion
|
fbdba79ca85cb5a9760722ffd932b9ec4c401745
|
[
"Apache-2.0"
] | null | null | null |
mxfusion/components/functions/operators/operator_impl.py
|
tdiethe/MXFusion
|
fbdba79ca85cb5a9760722ffd932b9ec4c401745
|
[
"Apache-2.0"
] | null | null | null |
from . import MXNetOperatorDecorator
""" Basic Arithmetic """
@MXNetOperatorDecorator(name='add', args=['x', 'y'], inputs=['x', 'y'])
def add(F, x, y):
return F.add(x, y)
@MXNetOperatorDecorator(name='subtract', args=['x', 'y'], inputs=['x', 'y'])
def subtract(F, x, y):
return F.subtract(x, y)
@MXNetOperatorDecorator(name='multiply', args=['x', 'y'], inputs=['x', 'y'])
def multiply(F, x, y):
return F.multiply(x, y)
@MXNetOperatorDecorator(name='divide', args=['x', 'y'], inputs=['x', 'y'])
def divide(F, x, y):
return F.divide(x, y)
@MXNetOperatorDecorator(name='power', args=['x', 'y'], inputs=['x', 'y'])
def power(F, x, y):
return F.power(x, y)
""" Elementwise Operations """
@MXNetOperatorDecorator(name='square', args=['data'], inputs=['data'])
def square(F, data):
return F.square(data)
@MXNetOperatorDecorator(name='exp', args=['data'], inputs=['data'])
def exp(F, data):
return F.exp(data)
@MXNetOperatorDecorator(name='log', args=['data'], inputs=['data'])
def log(F, data):
return F.log(data)
""" Aggregation """
@MXNetOperatorDecorator(name='sum', args=['data', 'axis'], inputs=['data'])
def sum(F, data, axis=None):
return F.sum(data, axis)
@MXNetOperatorDecorator(name='mean', args=['data', 'axis'], inputs=['data'])
def mean(F, data, axis=None):
return F.mean(data, axis)
@MXNetOperatorDecorator(name='prod', args=['data', 'axis'], inputs=['data'])
def prod(F, data, axis=None):
return F.prod(data, axis)
""" Matrix Operations """
@MXNetOperatorDecorator(name='dot', args=['x', 'y'], inputs=['x', 'y'])
def dot(F, x, y):
return F.linalg.gemm2(x, y)
# TODO Bring in the axis arguments once it's in the release version of MXNet
@MXNetOperatorDecorator(name='diag', args=['data', 'k', 'axis1', 'axis2'], inputs=['data'])
def diag(F, data, k=0, axis1=None, axis2=None):
if axis1 is not None or axis2 is not None:
raise Exception("axis1 and axis2 are not implemented yet.")
return F.diag(data, k)
""" Matrix Manipulations """
@MXNetOperatorDecorator(name='reshape', args=['data', 'shape', 'reverse'], inputs=['data'])
def reshape(F, data, shape, reverse=False):
return F.reshape(data=data, shape=shape, reverse=reverse)
@MXNetOperatorDecorator(name='transpose', args=['data', 'axes'], inputs=['data'])
def transpose(F, data, axes=None):
axes = axes if axes is not None else []
return F.transpose(data=data, axes=axes)
| 34.112676
| 91
| 0.649876
| 342
| 2,422
| 4.602339
| 0.201754
| 0.030496
| 0.074333
| 0.045743
| 0.228717
| 0.150572
| 0.064803
| 0
| 0
| 0
| 0
| 0.004771
| 0.1346
| 2,422
| 70
| 92
| 34.6
| 0.746183
| 0.030553
| 0
| 0
| 0
| 0
| 0.113063
| 0
| 0
| 0
| 0
| 0.014286
| 0
| 1
| 0.306122
| false
| 0
| 0.020408
| 0.265306
| 0.632653
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
968053e8c538206cca19bf54d9faab2b7b844cae
| 111
|
py
|
Python
|
DeliveryManagement/apps.py
|
glen-s-abraham/OnlineDelivery
|
138356e17e52d0a4d4a1778f9c440006ce28ae5c
|
[
"MIT"
] | null | null | null |
DeliveryManagement/apps.py
|
glen-s-abraham/OnlineDelivery
|
138356e17e52d0a4d4a1778f9c440006ce28ae5c
|
[
"MIT"
] | null | null | null |
DeliveryManagement/apps.py
|
glen-s-abraham/OnlineDelivery
|
138356e17e52d0a4d4a1778f9c440006ce28ae5c
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class DeliverymanagementConfig(AppConfig):
name = 'DeliveryManagement'
| 18.5
| 42
| 0.801802
| 10
| 111
| 8.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135135
| 111
| 5
| 43
| 22.2
| 0.927083
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
968afbe2a895e70e2604e3a49d14dcb994b078f1
| 222
|
py
|
Python
|
homebar/drinks/urls.py
|
cdriehuys/home-bar
|
22e408c00f3bae0b9b7c0de6ebba36e211c32828
|
[
"MIT"
] | null | null | null |
homebar/drinks/urls.py
|
cdriehuys/home-bar
|
22e408c00f3bae0b9b7c0de6ebba36e211c32828
|
[
"MIT"
] | null | null | null |
homebar/drinks/urls.py
|
cdriehuys/home-bar
|
22e408c00f3bae0b9b7c0de6ebba36e211c32828
|
[
"MIT"
] | null | null | null |
from django.urls import path
from drinks import views
urlpatterns = [
path("drinks/<slug>/", views.DrinkDetailView.as_view(), name="drink-detail"),
path("", views.DrinksListView.as_view(), name="drink-list"),
]
| 22.2
| 81
| 0.698198
| 28
| 222
| 5.464286
| 0.607143
| 0.078431
| 0.130719
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130631
| 222
| 9
| 82
| 24.666667
| 0.792746
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
96b3c2bc2705834b53574d98bb96c57380852781
| 249
|
py
|
Python
|
portscanner/mixins/__init__.py
|
GoodiesHQ/portscanner
|
87591a367b5079f6faa140a20783f92e3bdf2e92
|
[
"MIT"
] | null | null | null |
portscanner/mixins/__init__.py
|
GoodiesHQ/portscanner
|
87591a367b5079f6faa140a20783f92e3bdf2e92
|
[
"MIT"
] | null | null | null |
portscanner/mixins/__init__.py
|
GoodiesHQ/portscanner
|
87591a367b5079f6faa140a20783f92e3bdf2e92
|
[
"MIT"
] | null | null | null |
from .resolver import MxResolverBase, MxResolver
from .loop import MxLoopBase, MxLoop
from .workpool import MxWorkPoolBase, MxWorkPool
__all__ = [
"MxResolverBase", "MxResolver",
"MxLoopBase", "MxLoop",
"MxWorkPoolBase", "MxWorkPool",
]
| 27.666667
| 48
| 0.742972
| 22
| 249
| 8.227273
| 0.545455
| 0.265193
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148594
| 249
| 9
| 49
| 27.666667
| 0.853774
| 0
| 0
| 0
| 0
| 0
| 0.256
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.375
| 0
| 0.375
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
73a0af435814c06fc5f9b2bdd7490b96c86892c3
| 125
|
py
|
Python
|
index.py
|
aguilamullisaca/FP-2021-G2
|
f6097f716357064006159d1816853ed1e4a9743a
|
[
"Apache-2.0"
] | null | null | null |
index.py
|
aguilamullisaca/FP-2021-G2
|
f6097f716357064006159d1816853ed1e4a9743a
|
[
"Apache-2.0"
] | null | null | null |
index.py
|
aguilamullisaca/FP-2021-G2
|
f6097f716357064006159d1816853ed1e4a9743a
|
[
"Apache-2.0"
] | null | null | null |
print ("hola mundo/jhon")
a=45
b=5
print("Suma:",a+b)
print("Resta:",a-b)
print("Division:",a/b)
print("Multiplicacion:",a*b)
| 17.857143
| 28
| 0.656
| 24
| 125
| 3.416667
| 0.5
| 0.097561
| 0.256098
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.064
| 125
| 7
| 28
| 17.857143
| 0.675214
| 0
| 0
| 0
| 0
| 0
| 0.396825
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.714286
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
73aede7d788dea4cd2814381b8a6fcf820b17869
| 435
|
py
|
Python
|
kha/episode_diff.py
|
claui/kommtheuteaktenzeichen
|
2afbdfd1731a8dd6e222d094b0ee26c1a1945e61
|
[
"Apache-2.0"
] | 2
|
2021-06-06T15:29:08.000Z
|
2021-06-07T20:37:38.000Z
|
kha/episode_diff.py
|
claui/kommtheuteaktenzeichen
|
2afbdfd1731a8dd6e222d094b0ee26c1a1945e61
|
[
"Apache-2.0"
] | null | null | null |
kha/episode_diff.py
|
claui/kommtheuteaktenzeichen
|
2afbdfd1731a8dd6e222d094b0ee26c1a1945e61
|
[
"Apache-2.0"
] | 1
|
2021-05-31T16:48:08.000Z
|
2021-05-31T16:48:08.000Z
|
from kha.episode import Episode
from kha.episode_patchers.episode_adder import EpisodeAdder
from kha.episode_patchers.episode_replacer import EpisodeReplacer
from kha.episode_patchers.noop_patcher import NoopPatcher
from kha.episode_patchers.patcher import Patcher
from kha.local_types import EventsDict, Uuid
def episode_diff(events_dict: EventsDict,
incoming_episode: Episode) -> Patcher:
return NoopPatcher()
| 36.25
| 65
| 0.82069
| 55
| 435
| 6.290909
| 0.4
| 0.121387
| 0.202312
| 0.254335
| 0.16763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131034
| 435
| 11
| 66
| 39.545455
| 0.915344
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.666667
| 0.111111
| 0.888889
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 4
|
73ca8a8f4253adce47715be1fa467ea2f8405e44
| 194
|
py
|
Python
|
erddapy/doc_helpers.py
|
pyoceans/erddapy
|
784d164de97e764a757d9612dcd5e42f69e635eb
|
[
"BSD-3-Clause"
] | 17
|
2017-10-17T12:27:31.000Z
|
2019-02-05T18:20:10.000Z
|
erddapy/doc_helpers.py
|
pyoceans/erddapy
|
784d164de97e764a757d9612dcd5e42f69e635eb
|
[
"BSD-3-Clause"
] | 22
|
2017-10-09T18:50:02.000Z
|
2019-01-31T13:54:08.000Z
|
erddapy/doc_helpers.py
|
pyoceans/erddapy
|
784d164de97e764a757d9612dcd5e42f69e635eb
|
[
"BSD-3-Clause"
] | 4
|
2017-10-09T15:58:39.000Z
|
2018-03-08T15:18:29.000Z
|
"""Documentation helpers."""
def show_iframe(src):
"""Show HTML returns on Jupyter outputs."""
from IPython.display import IFrame
return IFrame(src=src, width="100%", height=950)
| 21.555556
| 52
| 0.685567
| 25
| 194
| 5.28
| 0.8
| 0.136364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037267
| 0.170103
| 194
| 8
| 53
| 24.25
| 0.782609
| 0.309278
| 0
| 0
| 0
| 0
| 0.03252
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
73d819f8c8342b061aaf516c66121455edb87e81
| 189
|
py
|
Python
|
temp/petting_zoo/p_z_test.py
|
linklab/link_rl
|
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
|
[
"MIT"
] | null | null | null |
temp/petting_zoo/p_z_test.py
|
linklab/link_rl
|
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
|
[
"MIT"
] | null | null | null |
temp/petting_zoo/p_z_test.py
|
linklab/link_rl
|
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
|
[
"MIT"
] | 1
|
2021-11-23T12:30:37.000Z
|
2021-11-23T12:30:37.000Z
|
from pettingzoo.butterfly import pistonball_v4
env = pistonball_v4.env()
print(env.observation_spaces)
print(env.action_spaces)
obs = env.reset()
print(env.num_agents)
print(env.agents)
| 17.181818
| 46
| 0.798942
| 28
| 189
| 5.214286
| 0.535714
| 0.219178
| 0.205479
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011628
| 0.089947
| 189
| 11
| 47
| 17.181818
| 0.837209
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.571429
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
73dae6b24fd4f66d9b4604ab2b767636bab7d6d2
| 68
|
py
|
Python
|
renderers/__init__.py
|
thecsapprentice/phoenix-plumage-client
|
552bab81757ef3767a5ecfdf44e40b69eeea7e4c
|
[
"BSD-3-Clause"
] | null | null | null |
renderers/__init__.py
|
thecsapprentice/phoenix-plumage-client
|
552bab81757ef3767a5ecfdf44e40b69eeea7e4c
|
[
"BSD-3-Clause"
] | null | null | null |
renderers/__init__.py
|
thecsapprentice/phoenix-plumage-client
|
552bab81757ef3767a5ecfdf44e40b69eeea7e4c
|
[
"BSD-3-Clause"
] | null | null | null |
from Blender import BlenderNode
from Renderman import RenderManNode
| 22.666667
| 35
| 0.882353
| 8
| 68
| 7.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 68
| 2
| 36
| 34
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
73f7c5eb07440970c21301431729365b60ec9458
| 330
|
py
|
Python
|
ui/graphics/frame.py
|
edart76/tree
|
743d14a819c057c50bd4f84ed0712768cb4ba582
|
[
"Apache-2.0"
] | null | null | null |
ui/graphics/frame.py
|
edart76/tree
|
743d14a819c057c50bd4f84ed0712768cb4ba582
|
[
"Apache-2.0"
] | null | null | null |
ui/graphics/frame.py
|
edart76/tree
|
743d14a819c057c50bd4f84ed0712768cb4ba582
|
[
"Apache-2.0"
] | null | null | null |
"""
tab frames to be drawn around sections of the tree,
denoting proxied or instanced branches
should be unobtrusive normally, but able to expand on request
to show source address,
sequence of multiple transformations etc
"""
from PySide2 import QtCore, QtWidgets, QtGui
class TreeFrame(QtWidgets.QGraphicsRectItem):
pass
| 18.333333
| 61
| 0.793939
| 45
| 330
| 5.822222
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00361
| 0.160606
| 330
| 17
| 62
| 19.411765
| 0.942238
| 0.660606
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
fb5172de0aaf6580b5bcdbba4e7c409cc6b0a3a7
| 99
|
py
|
Python
|
photoGallary/apps.py
|
shingareshubham/GQ
|
ddcc1f7323680bde3f6a4ee3f2a0a5f3be38dd78
|
[
"MIT"
] | null | null | null |
photoGallary/apps.py
|
shingareshubham/GQ
|
ddcc1f7323680bde3f6a4ee3f2a0a5f3be38dd78
|
[
"MIT"
] | null | null | null |
photoGallary/apps.py
|
shingareshubham/GQ
|
ddcc1f7323680bde3f6a4ee3f2a0a5f3be38dd78
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PhotogallaryConfig(AppConfig):
name = 'photoGallary'
| 16.5
| 36
| 0.777778
| 10
| 99
| 7.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 99
| 5
| 37
| 19.8
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fbb82541e8d48e782f4fb188e7610754f308b006
| 52
|
py
|
Python
|
locale/pot/api/plotting/_autosummary/pyvista-themes-_AxesConfig-box-1.py
|
tkoyama010/pyvista-doc-translations
|
23bb813387b7f8bfe17e86c2244d5dd2243990db
|
[
"MIT"
] | 4
|
2020-08-07T08:19:19.000Z
|
2020-12-04T09:51:11.000Z
|
locale/pot/api/plotting/_autosummary/pyvista-themes-_AxesConfig-box-1.py
|
tkoyama010/pyvista-doc-translations
|
23bb813387b7f8bfe17e86c2244d5dd2243990db
|
[
"MIT"
] | 19
|
2020-08-06T00:24:30.000Z
|
2022-03-30T19:22:24.000Z
|
locale/pot/api/plotting/_autosummary/pyvista-themes-_AxesConfig-box-1.py
|
tkoyama010/pyvista-doc-translations
|
23bb813387b7f8bfe17e86c2244d5dd2243990db
|
[
"MIT"
] | 1
|
2021-03-09T07:50:40.000Z
|
2021-03-09T07:50:40.000Z
|
import pyvista
pyvista.global_theme.axes.box = True
| 17.333333
| 36
| 0.826923
| 8
| 52
| 5.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096154
| 52
| 2
| 37
| 26
| 0.893617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fbd8ec9dcc8b2d69f633ee570e5c1b085e2038bf
| 153
|
py
|
Python
|
apdt/plt/__init__.py
|
Zhiyuan-Wu/apdt
|
20b4a7821edd39a7de60e222997f6270eae47843
|
[
"Apache-2.0"
] | null | null | null |
apdt/plt/__init__.py
|
Zhiyuan-Wu/apdt
|
20b4a7821edd39a7de60e222997f6270eae47843
|
[
"Apache-2.0"
] | null | null | null |
apdt/plt/__init__.py
|
Zhiyuan-Wu/apdt
|
20b4a7821edd39a7de60e222997f6270eae47843
|
[
"Apache-2.0"
] | 2
|
2020-08-25T03:06:51.000Z
|
2021-03-21T06:54:42.000Z
|
'''
APDT: Ploting
--------------------------
Provide useful data visualizaton tools.
Check https://github.com/Zhiyuan-Wu/apdt for more information.
'''
| 19.125
| 62
| 0.620915
| 17
| 153
| 5.588235
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104575
| 153
| 8
| 63
| 19.125
| 0.693431
| 0.947712
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fbde2dc43817c84089660982750fe0fb4bd504a8
| 12,124
|
py
|
Python
|
bad_channel_lhc15o_3_new.py
|
dhruvdixit/alice_calib_emcal
|
26357206518511842c047c78c9b784acae6203e8
|
[
"BSD-3-Clause-LBNL"
] | 1
|
2017-06-06T19:28:08.000Z
|
2017-06-06T19:28:08.000Z
|
bad_channel_lhc15o_3_new.py
|
dhruvdixit/alice_calib_emcal
|
26357206518511842c047c78c9b784acae6203e8
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
bad_channel_lhc15o_3_new.py
|
dhruvdixit/alice_calib_emcal
|
26357206518511842c047c78c9b784acae6203e8
|
[
"BSD-3-Clause-LBNL"
] | 1
|
2018-10-11T20:07:25.000Z
|
2018-10-11T20:07:25.000Z
|
dead_emcal = [128, 129, 131, 134, 139, 140, 182, 184, 188, 189, 385, 394, 397, 398, 399, 432, 434, 436, 440, 442, 5024, 5025, 5026, 5027, 5028, 5030, 5032, 5033, 5035, 5036, 5037, 5038, 5039, 5121, 5122, 5123, 5124, 5125, 5126, 5128, 5129, 5130, 5132, 5133, 5134, 5135, 5170, 5172, 5173, 5174, 5178, 5181, 6641, 6647, 6654, 6933, 6936, 6941, 6986, 6987, 6990, 8590, 8624, 8626, 8631, 8637, 10580, 10583, 10585, 10586, 10588, 10590, 10591, 10624, 10625, 10626, 10627, 10629, 10630, 10631, 10632, 10636, 10637, 10639, 11232, 11234, 11235, 11236, 11237, 11238, 11239, 11241, 11242, 11244, 11245, 11247, 11280, 11281, 11282, 11283, 11285, 11286, 11287, 11289, 11290, 11292, 11294, 11295]
dead_dcal = [12608, 12831, 12860, 13466, 13470, 13981, 14231, 14312, 14404, 14693, 14695, 14729, 15214, 15215, 15281, 15285, 15323, 15327, 15330, 15332, 15334, 15335, 15336, 15872, 15968, 15970, 15971, 16016, 16017, 16018, 16029, 16030, 16535, 16541, 16577, 16579, 16583, 16610, 16613, 16622, 16659, 16663, 16666, 16824, 17644, 17663]
bad_emcal = [3, 15, 56, 57, 58, 59, 60, 61, 62, 63, 74, 103, 130, 132, 133, 135, 136, 137, 138, 141, 142, 143, 176, 177, 178, 179, 180, 181, 183, 185, 186, 187, 190, 191, 198, 287, 288, 289, 290, 291, 292, 293, 294, 295, 297, 298, 299, 300, 301, 302, 303, 328, 336, 337, 338, 339, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 353, 384, 386, 387, 388, 389, 390, 391, 392, 393, 395, 396, 433, 435, 437, 438, 439, 441, 443, 444, 445, 446, 447, 554, 594, 655, 720, 759, 917, 1002, 1038, 1050, 1061, 1067, 1175, 1204, 1212, 1222, 1276, 1288, 1366, 1376, 1380, 1384, 1386, 1414, 1441, 1519, 1534, 1535, 1704, 1711, 1738, 1825, 1836, 1837, 1838, 1839, 1844, 1860, 1892, 1963, 1967, 1968, 2014, 2020, 2022, 2026, 2047, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2122, 2123, 2124, 2125, 2127, 2161, 2196, 2210, 2245, 2298, 2325, 2389, 2395, 2397, 2399, 2424, 2487, 2505, 2506, 2533, 2534, 2540, 2575, 2581, 2586, 2665, 2688, 2776, 2778, 2787, 2793, 2797, 2805, 2823, 2824, 2825, 2857, 2884, 2888, 2891, 2915, 2921, 2985, 3039, 3051, 3135, 3161, 3196, 3223, 3236, 3244, 3259, 3297, 3339, 3353, 3488, 3503, 3732, 3740, 3748, 3754, 3772, 3776, 3777, 3778, 3779, 3780, 3781, 3782, 3783, 3784, 3785, 3786, 3787, 3788, 3789, 3790, 3791, 3796, 3824, 3825, 3826, 3827, 3828, 3829, 3830, 3831, 3832, 3833, 3834, 3835, 3839, 3840, 3854, 3906, 3908, 3914, 3940, 3962, 3974, 4011, 4026, 4027, 4058, 4129, 4212, 4230, 4282, 4299, 4320, 4372, 4421, 4516, 4530, 4531, 4532, 4538, 4543, 4569, 4571, 4596, 4605, 4613, 4614, 4621, 4627, 4637, 4817, 4835, 4837, 4838, 4839, 4846, 4847, 4967, 5029, 5031, 5034, 5120, 5127, 5131, 5168, 5169, 5171, 5175, 5176, 5177, 5179, 5180, 5182, 5183, 5231, 5328, 5329, 5330, 5331, 5332, 5333, 5334, 5335, 5336, 5337, 5338, 5339, 5340, 5341, 5343, 5448, 5608, 5662, 5663, 5824, 5826, 5831, 5832, 5833, 5850, 6064, 6080, 6081, 6082, 6083, 6084, 6085, 6086, 6087, 6088, 6089, 6090, 6091, 6092, 6093, 6094, 6095, 6104, 6128, 6129, 6130, 6131, 6132, 6133, 6134, 6135, 6136, 6137, 6138, 6139, 6140, 6141, 6142, 6143, 6184, 6275, 6331, 6340, 6481, 6640, 6645, 6646, 6649, 6701, 6735, 6811, 6886, 6928, 6929, 6930, 6931, 6932, 6934, 6935, 6937, 6938, 6939, 6940, 6942, 6943, 6976, 6977, 6978, 6979, 6980, 6981, 6982, 6983, 6984, 6985, 6988, 6989, 6991, 7089, 7150, 7371, 7417, 7425, 7430, 7491, 7572, 7793, 8000, 8001, 8002, 8004, 8005, 8006, 8007, 8008, 8009, 8012, 8013, 8014, 8047, 8051, 8052, 8053, 8054, 8055, 8060, 8061, 8062, 8063, 8244, 8260, 8275, 8340, 8352, 8353, 8356, 8357, 8372, 8420, 8453, 8576, 8577, 8578, 8579, 8580, 8581, 8582, 8583, 8584, 8585, 8586, 8587, 8588, 8589, 8591, 8610, 8625, 8627, 8628, 8629, 8630, 8632, 8633, 8634, 8635, 8636, 8638, 8639, 8724, 8807, 8809, 8813, 8855, 8904, 8906, 8907, 8911, 8916, 8938, 8944, 8976, 9078, 9202, 9217, 9269, 9275, 9282, 9286, 9291, 9338, 9354, 9357, 9361, 9533, 9598, 9703, 9706, 9769, 9798, 9801, 9802, 9807, 9819, 9849, 9872, 9874, 9878, 9927, 9940, 9942, 9943, 9945, 9951, 9960, 9982, 9983, 10091, 10138, 10139, 10142, 10164, 10171, 10203, 10326, 10363, 10451, 10462, 10505, 10558, 10560, 10561, 10562, 10563, 10564, 10565, 10566, 10567, 10568, 10569, 10570, 10571, 10572, 10573, 10574, 10575, 10576, 10577, 10578, 10579, 10581, 10582, 10584, 10587, 10589, 10608, 10609, 10610, 10611, 10612, 10613, 10614, 10615, 10616, 10617, 10618, 10619, 10620, 10621, 10622, 10623, 10628, 10633, 10634, 10635, 10638, 10655, 10666, 10750, 10751, 10759, 10798, 10823, 10829, 10831, 10921, 10981, 10982, 10988, 11034, 11042, 11044, 11048, 11050, 11052, 11091, 11093, 11095, 11097, 11099, 11102, 11141, 11148, 11150, 11197, 11198, 11233, 11240, 11243, 11246, 11284, 11288, 11291, 11293, 11411, 11462, 11534, 11551, 11630, 11647, 11738, 11904, 11905, 12033, 12035, 12046, 12047, 12117, 12127, 12147, 12160, 12161, 12162, 12163, 12164, 12165, 12166, 12167, 12168, 12169, 12170, 12171, 12172, 12173, 12174, 12175, 12271, 12276, 12280, 12282, 12286]
bad_dcal = [12320, 12321, 12322, 12323, 12324, 12325, 12326, 12327, 12328, 12329, 12330, 12331, 12332, 12333, 12334, 12335, 12368, 12369, 12370, 12371, 12372, 12373, 12374, 12375, 12376, 12377, 12378, 12379, 12380, 12381, 12382, 12383, 12384, 12385, 12386, 12387, 12388, 12389, 12390, 12391, 12392, 12393, 12394, 12395, 12396, 12397, 12398, 12399, 12432, 12433, 12434, 12435, 12436, 12437, 12438, 12439, 12440, 12441, 12442, 12443, 12444, 12445, 12446, 12447, 12487, 12604, 12607, 12609, 12610, 12613, 12614, 12615, 12616, 12617, 12618, 12620, 12621, 12622, 12623, 12800, 12801, 12802, 12803, 12805, 12806, 12807, 12809, 12810, 12811, 12812, 12813, 12814, 12815, 12818, 12821, 12822, 12823, 12826, 12827, 12828, 12829, 12830, 12848, 12850, 12856, 12857, 12858, 12859, 12862, 12914, 12915, 12918, 12922, 12925, 12927, 12988, 13049, 13053, 13055, 13056, 13058, 13059, 13064, 13068, 13120, 13122, 13123, 13126, 13128, 13130, 13131, 13156, 13248, 13249, 13280, 13282, 13284, 13287, 13288, 13290, 13292, 13294, 13392, 13394, 13395, 13398, 13399, 13400, 13402, 13403, 13405, 13406, 13407, 13433, 13458, 13459, 13460, 13462, 13463, 13464, 13465, 13467, 13469, 13471, 13476, 13477, 13478, 13479, 13481, 13483, 13485, 13486, 13487, 13508, 13510, 13512, 13517, 13524, 13553, 13556, 13558, 13559, 13574, 13578, 13589, 13630, 13780, 13786, 13798, 13828, 13835, 13848, 13903, 13921, 13926, 13933, 13953, 13968, 13969, 13972, 13973, 13975, 13980, 13983, 13988, 14017, 14058, 14060, 14081, 14116, 14117, 14119, 14123, 14125, 14126, 14153, 14157, 14191, 14193, 14207, 14225, 14228, 14229, 14233, 14234, 14236, 14237, 14239, 14247, 14249, 14254, 14255, 14302, 14303, 14304, 14305, 14306, 14307, 14308, 14309, 14311, 14313, 14314, 14315, 14317, 14318, 14319, 14320, 14325, 14326, 14362, 14363, 14373, 14374, 14398, 14400, 14402, 14403, 14406, 14407, 14409, 14410, 14411, 14412, 14413, 14414, 14415, 14432, 14433, 14434, 14435, 14436, 14437, 14438, 14439, 14440, 14441, 14442, 14443, 14444, 14445, 14446, 14447, 14480, 14481, 14482, 14483, 14484, 14485, 14486, 14487, 14488, 14489, 14490, 14491, 14492, 14493, 14494, 14495, 14498, 14501, 14502, 14503, 14505, 14544, 14545, 14546, 14549, 14550, 14553, 14554, 14557, 14558, 14559, 14592, 14593, 14594, 14597, 14598, 14602, 14604, 14605, 14607, 14608, 14609, 14610, 14611, 14613, 14616, 14617, 14618, 14621, 14622, 14623, 14624, 14625, 14626, 14627, 14628, 14629, 14630, 14631, 14632, 14633, 14634, 14635, 14636, 14637, 14638, 14639, 14640, 14647, 14657, 14659, 14660, 14661, 14662, 14663, 14668, 14669, 14671, 14672, 14679, 14688, 14689, 14690, 14691, 14692, 14694, 14697, 14698, 14700, 14701, 14702, 14703, 14704, 14705, 14706, 14707, 14708, 14709, 14711, 14712, 14713, 14716, 14717, 14721, 14722, 14723, 14724, 14725, 14726, 14727, 14728, 14730, 14731, 14732, 14733, 14734, 14735, 14736, 14737, 14738, 14739, 14740, 14741, 14742, 14744, 14745, 14746, 14747, 14748, 14749, 14750, 14752, 14753, 14754, 14755, 14756, 14757, 14758, 14759, 14760, 14761, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14770, 14772, 14773, 14774, 14775, 14776, 14777, 14779, 14782, 14783, 14839, 14862, 14867, 14872, 14874, 14895, 14977, 14980, 14991, 14993, 15009, 15012, 15015, 15020, 15021, 15027, 15033, 15094, 15096, 15137, 15140, 15143, 15152, 15154, 15155, 15158, 15162, 15164, 15200, 15201, 15202, 15203, 15204, 15205, 15206, 15207, 15208, 15209, 15210, 15211, 15212, 15213, 15217, 15266, 15272, 15276, 15280, 15282, 15284, 15286, 15287, 15288, 15289, 15290, 15291, 15292, 15293, 15294, 15295, 15296, 15298, 15299, 15314, 15315, 15318, 15328, 15331, 15333, 15338, 15339, 15341, 15342, 15343, 15345, 15354, 15359, 15398, 15445, 15460, 15463, 15469, 15470, 15476, 15624, 15670, 15690, 15719, 15754, 15776, 15777, 15785, 15821, 15870, 15877, 15908, 15936, 15947, 15949, 15955, 15958, 15963, 15965, 15967, 15969, 15972, 15979, 15980, 15981, 15982, 15983, 16019, 16026, 16028, 16031, 16082, 16083, 16088, 16089, 16090, 16091, 16094, 16215, 16258, 16268, 16304, 16306, 16307, 16308, 16311, 16317, 16349, 16395, 16422, 16428, 16429, 16431, 16440, 16442, 16443, 16446, 16466, 16467, 16468, 16469, 16472, 16473, 16474, 16475, 16476, 16477, 16478, 16479, 16481, 16482, 16483, 16488, 16489, 16491, 16492, 16493, 16496, 16497, 16498, 16500, 16501, 16502, 16506, 16509, 16510, 16511, 16528, 16529, 16530, 16531, 16532, 16533, 16534, 16536, 16537, 16538, 16539, 16540, 16542, 16543, 16576, 16578, 16580, 16581, 16582, 16584, 16585, 16586, 16587, 16588, 16589, 16590, 16591, 16608, 16609, 16611, 16612, 16614, 16615, 16616, 16617, 16618, 16619, 16620, 16621, 16623, 16634, 16656, 16657, 16658, 16660, 16661, 16662, 16664, 16665, 16667, 16668, 16669, 16670, 16671, 16784, 16785, 16789, 16821, 16826, 16830, 16886, 16907, 16911, 16927, 17046, 17088, 17089, 17090, 17091, 17097, 17107, 17117, 17202, 17203, 17204, 17206, 17232, 17233, 17234, 17236, 17237, 17249, 17265, 17291, 17295, 17296, 17312, 17313, 17314, 17315, 17316, 17317, 17318, 17319, 17320, 17321, 17322, 17323, 17324, 17325, 17326, 17327, 17328, 17329, 17330, 17331, 17332, 17333, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17352, 17377, 17381, 17396, 17452, 17463, 17537, 17597, 17632, 17633, 17634, 17635, 17636, 17637, 17638, 17639, 17640, 17641, 17642, 17643, 17645, 17646, 17647, 17648, 17649, 17650, 17651, 17652, 17653, 17654, 17655, 17656, 17657, 17658, 17659, 17660, 17661, 17662]
warm_emcal = [15, 594, 1276, 1384, 2113, 2127, 2389, 2778, 3135, 4299, 4531, 4569, 4571, 4605, 5608, 5832, 6340, 6640, 6646, 6886, 8000, 8001, 8004, 8005, 8006, 8007, 8009, 8014, 8051, 8052, 8053, 8054, 8055, 8061, 8813, 8855, 8904, 8906, 8907, 8911, 8944, 9202, 9217, 9819, 9849, 9872, 9878, 10091, 10462, 10558, 10655, 10750, 10751, 10798, 11034, 11042, 11044, 11050, 11052, 11093, 11095, 11097, 11099, 11102, 11148, 11150, 11197, 11198, 11411, 11534, 11551, 11647, 11904, 12033, 12035, 12046, 12047, 12117, 12127, 12271, 12276, 12280, 12282, 12286]
warm_dcal = [12609, 12610, 12613, 12615, 12616, 12617, 12618, 12620, 12807, 12811, 12812, 12813, 12818, 12823, 12829, 12830, 12850, 12858, 12914, 12922, 12988, 13056, 13058, 13120, 13128, 13130, 13131, 13288, 13395, 13398, 13399, 13405, 13458, 13462, 13463, 13469, 13477, 13479, 13481, 13483, 13486, 13487, 13512, 13517, 13553, 13574, 13630, 13780, 13786, 13798, 13848, 13921, 13973, 13975, 13980, 13983, 14058, 14081, 14116, 14126, 14304, 14320, 14326, 14362, 14363, 14400, 14402, 14407, 14409, 14411, 14412, 14414, 14498, 14501, 14545, 14546, 14593, 14597, 14609, 14613, 14621, 14622, 14623, 14657, 14659, 14661, 14671, 14703, 14705, 14706, 14707, 14708, 14716, 14717, 14721, 14722, 14725, 14728, 14731, 14739, 14740, 14746, 14748, 14749, 14752, 14759, 14762, 14768, 14770, 14774, 14776, 14777, 14782, 14783, 14874, 15027, 15154, 15158, 15162, 15280, 15284, 15287, 15289, 15290, 15292, 15293, 15298, 15314, 15315, 15341, 15342, 15460, 15470, 15476, 15776, 15947, 15967, 16082, 16083, 16090, 16306, 16308, 16431, 16442, 16466, 16469, 16472, 16475, 16483, 16489, 16491, 16497, 16502, 16510, 16907, 16911, 16927, 17088, 17090, 17107, 17296, 17352, 17396, 17452, 17463]
bad_all = dead_emcal + dead_dcal + bad_emcal + bad_dcal + warm_emcal + warm_dcal
| 808.266667
| 5,380
| 0.696305
| 1,842
| 12,124
| 4.576004
| 0.853963
| 0.002135
| 0.002847
| 0.003796
| 0.035354
| 0.012813
| 0
| 0
| 0
| 0
| 0
| 0.81014
| 0.152425
| 12,124
| 14
| 5,381
| 866
| 0.010121
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8371684d3640950cd7f711fafbd1e3b3faeeecf4
| 132
|
py
|
Python
|
openCV/image02.py
|
JSJeong-me/RaspberryPI
|
25a783fc417f5f98e09b0371525416b439397bd8
|
[
"MIT"
] | null | null | null |
openCV/image02.py
|
JSJeong-me/RaspberryPI
|
25a783fc417f5f98e09b0371525416b439397bd8
|
[
"MIT"
] | null | null | null |
openCV/image02.py
|
JSJeong-me/RaspberryPI
|
25a783fc417f5f98e09b0371525416b439397bd8
|
[
"MIT"
] | 1
|
2022-02-15T04:41:38.000Z
|
2022-02-15T04:41:38.000Z
|
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('test.jpg')
imgplot = plt.imshow(img)
plt.show()
| 26.4
| 32
| 0.772727
| 21
| 132
| 4.857143
| 0.666667
| 0.313725
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106061
| 132
| 5
| 33
| 26.4
| 0.864407
| 0
| 0
| 0
| 0
| 0
| 0.06015
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
83b3844b6eccbaedd42dbb8e246fc53ee07700ee
| 1,065
|
py
|
Python
|
src/octopus/manufacturer/dummy.py
|
gar-syn/congo-lab
|
dc50af4e35903556bc8bc34dc23a7a708c1f5422
|
[
"MIT"
] | 1
|
2021-02-02T11:27:25.000Z
|
2021-02-02T11:27:25.000Z
|
src/octopus/manufacturer/dummy.py
|
gar-syn/congo-lab
|
dc50af4e35903556bc8bc34dc23a7a708c1f5422
|
[
"MIT"
] | 18
|
2021-02-01T11:35:15.000Z
|
2021-08-03T14:23:38.000Z
|
src/octopus/manufacturer/dummy.py
|
gar-syn/congo-lab
|
dc50af4e35903556bc8bc34dc23a7a708c1f5422
|
[
"MIT"
] | null | null | null |
# Twisted Imports
from twisted.internet import defer
from twisted.internet.protocol import Factory
# Package Imports
from ..util import now
from ..machine import Machine, Component, Stream, Property
from ..protocol.basic import QueuedLineReceiver as _qlr
__all__ = ["Dummy"]
class QueuedLineReceiver (_qlr):
delimiter = b"\n\r"
out_delimiter = b"\n"
def sendLine (self, line):
"""
Sends a line to the other end of the connection.
@param line: The line to send, not including the delimiter.
@type line: C{str}
"""
return self.transport.write(line + self.out_delimiter)
class Dummy (Machine):
protocolFactory = Factory.forProtocol(QueuedLineReceiver)
name = "Dummy Machine"
def setup (self):
pass
def start (self):
pass
def stop (self):
pass
def reset (self):
return defer.succeed('OK')
def write (self, msg):
return self.protocol.write(msg)
def hope (self, msg):
return self.protocol.write(msg, expectReply = False)
| 21.3
| 66
| 0.652582
| 131
| 1,065
| 5.244275
| 0.480916
| 0.043668
| 0.048035
| 0.049491
| 0.09607
| 0.09607
| 0.09607
| 0
| 0
| 0
| 0
| 0
| 0.251643
| 1,065
| 49
| 67
| 21.734694
| 0.861982
| 0.151174
| 0
| 0.115385
| 0
| 0
| 0.029988
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.269231
| false
| 0.115385
| 0.192308
| 0.115385
| 0.846154
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
83c587dc941ffc7a81ff94cdb619ba896d8c756b
| 259
|
py
|
Python
|
document/apps.py
|
Zarah-Project/zarah-db-api
|
cce4d0424e5b3121ab2129819cf0cc956fca5267
|
[
"MIT"
] | null | null | null |
document/apps.py
|
Zarah-Project/zarah-db-api
|
cce4d0424e5b3121ab2129819cf0cc956fca5267
|
[
"MIT"
] | 4
|
2021-04-08T22:00:18.000Z
|
2022-02-10T15:09:45.000Z
|
document/apps.py
|
Zarah-Project/zarah-db-api
|
cce4d0424e5b3121ab2129819cf0cc956fca5267
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class DocumentAppConfig(AppConfig):
name = 'document'
def ready(self):
super(DocumentAppConfig, self).ready()
from document.signals import do_index
from document.signals import remove_index
| 23.545455
| 49
| 0.714286
| 29
| 259
| 6.310345
| 0.586207
| 0.131148
| 0.20765
| 0.273224
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.216216
| 259
| 10
| 50
| 25.9
| 0.901478
| 0
| 0
| 0
| 0
| 0
| 0.030888
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.428571
| 0
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
83c9424b73ea87596d45e0d1f891648bda3829a2
| 35
|
py
|
Python
|
thermo-env/lib/python3.5/_bootlocale.py
|
ndebuhr/thermoModelingAlpha
|
9e1a0f9ac4caabf386c1e3103ec69f269131a6b9
|
[
"MIT"
] | 4
|
2017-09-24T21:30:46.000Z
|
2019-06-01T13:37:44.000Z
|
thermo-env/lib/python3.5/_bootlocale.py
|
ndebuhr/thermo-state-solver
|
9e1a0f9ac4caabf386c1e3103ec69f269131a6b9
|
[
"MIT"
] | 19
|
2020-01-28T21:41:50.000Z
|
2022-03-11T23:17:39.000Z
|
thermo-env/lib/python3.5/_bootlocale.py
|
ndebuhr/thermo-state-solver
|
9e1a0f9ac4caabf386c1e3103ec69f269131a6b9
|
[
"MIT"
] | null | null | null |
/usr/lib64/python3.5/_bootlocale.py
| 35
| 35
| 0.828571
| 6
| 35
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 0
| 35
| 1
| 35
| 35
| 0.685714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
83d34174f07fa0c91aa2bb63701bd5ea745adacb
| 77
|
py
|
Python
|
python/physical/elements.py
|
afrl-quantum/physical
|
71de3f7895b9bc1a1e9969701ad6980c5676b294
|
[
"MIT"
] | 1
|
2020-10-01T21:21:54.000Z
|
2020-10-01T21:21:54.000Z
|
python/physical/elements.py
|
afrl-quantum/physical
|
71de3f7895b9bc1a1e9969701ad6980c5676b294
|
[
"MIT"
] | null | null | null |
python/physical/elements.py
|
afrl-quantum/physical
|
71de3f7895b9bc1a1e9969701ad6980c5676b294
|
[
"MIT"
] | 2
|
2018-03-21T15:53:27.000Z
|
2018-07-26T09:29:37.000Z
|
"""
Just a dummy module to be overridden by the real element module.
"""
| 19.25
| 68
| 0.675325
| 12
| 77
| 4.333333
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233766
| 77
| 3
| 69
| 25.666667
| 0.881356
| 0.831169
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
83de08e1873f418853b7df798f9b162106cf24ae
| 275
|
py
|
Python
|
examples/graphsrv_example/application.py
|
20c/graphsrv
|
e4a88a67d3ad5cc8aec0f2c674fb7a9be6860c9d
|
[
"Apache-2.0"
] | 5
|
2017-12-12T16:04:35.000Z
|
2021-06-18T19:03:35.000Z
|
examples/graphsrv_example/application.py
|
20c/graphsrv
|
e4a88a67d3ad5cc8aec0f2c674fb7a9be6860c9d
|
[
"Apache-2.0"
] | 37
|
2016-09-08T08:08:00.000Z
|
2021-08-25T15:06:05.000Z
|
examples/graphsrv_example/application.py
|
20c/graphsrv
|
e4a88a67d3ad5cc8aec0f2c674fb7a9be6860c9d
|
[
"Apache-2.0"
] | 1
|
2016-10-22T14:45:17.000Z
|
2016-10-22T14:45:17.000Z
|
import vodka
import vodka.app
# make sure the plugin is available
import graphsrv_example.plugins.test_plot
# we dont do anything with the applet other than to make sure it exists
@vodka.app.register("graphsrv_example")
class MyApplication(vodka.app.Application):
pass
| 25
| 71
| 0.8
| 42
| 275
| 5.166667
| 0.714286
| 0.110599
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138182
| 275
| 10
| 72
| 27.5
| 0.915612
| 0.374545
| 0
| 0
| 0
| 0
| 0.094675
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.5
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.