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
fa05450d1d7c180250bb2871e4b423856e0a8484
475
py
Python
util/repomirror/validator.py
anwarchk/quay
23c5120790c619174e7d36784ca5aab7f4eece5c
[ "Apache-2.0" ]
1
2021-05-30T01:54:21.000Z
2021-05-30T01:54:21.000Z
util/repomirror/validator.py
anwarchk/quay
23c5120790c619174e7d36784ca5aab7f4eece5c
[ "Apache-2.0" ]
20
2019-12-26T17:32:34.000Z
2022-03-21T22:18:06.000Z
util/repomirror/validator.py
anwarchk/quay
23c5120790c619174e7d36784ca5aab7f4eece5c
[ "Apache-2.0" ]
1
2020-06-28T07:49:37.000Z
2020-06-28T07:49:37.000Z
import logging from util.config.validators import ConfigValidationException logger = logging.getLogger(__name__) class RepoMirrorConfigValidator(object): """ Helper class for validating the repository mirror configuration. """ def __init__(self, feature_repo_mirror): self._feature_repo_mirror = feature_repo_mirror def valid(self): if not self._feature_repo_mirror: raise ConfigValidationException('REPO_MIRROR feature not enabled') return True
27.941176
74
0.791579
54
475
6.611111
0.592593
0.140056
0.190476
0.176471
0
0
0
0
0
0
0
0
0.143158
475
16
75
29.6875
0.87715
0.134737
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
0
0
1
0
0
3
fa0f37075faf0a7debb3d66f8d42b652c81a5310
1,244
py
Python
translate/translator.py
raojinlin/cmd-fanyi
8d747c31bc706df5771133a7e84fb941d1b11849
[ "MIT" ]
1
2020-07-04T05:56:01.000Z
2020-07-04T05:56:01.000Z
translate/translator.py
raojinlin/cmd-fanyi
8d747c31bc706df5771133a7e84fb941d1b11849
[ "MIT" ]
null
null
null
translate/translator.py
raojinlin/cmd-fanyi
8d747c31bc706df5771133a7e84fb941d1b11849
[ "MIT" ]
null
null
null
# encoding: utf-8 class Translator(object): """翻译器抽象类""" user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " \ "Chrome/73.0.3683.86 Safari/537.36 " def __init__(self): self.trans_from = 'zh' self.trans_to = 'en' def get_result(self, *args, **kwargs): """获取翻译后的结果,类型如'字典(dict)'""" raise MethodNotImplementedException("subclass of AbstractRequest method get_result not implemented.") def query(self, *args, **kwargs): """单词或文本翻译接口 @return self """ return self def serialize(self, *args, **kwargs): """序列化""" raise MethodNotImplementedException("subclass of AbstractRequest method serialize not implemented.") def format(self, verbose=0): """格式化, 返回格式化的文本""" raise MethodNotImplementedException("subclass of AbstractRequest method view not implemented.") def set_trans_from(self, trans_from): """待翻译文字语种""" self.trans_from = trans_from def set_trans_to(self, trans_to): """翻译到哪个语种""" self.trans_to = trans_to def get_name(self): return "" class MethodNotImplementedException(Exception): pass
27.043478
109
0.626206
139
1,244
5.460432
0.489209
0.071146
0.051383
0.173913
0.256917
0.256917
0
0
0
0
0
0.032154
0.25
1,244
45
110
27.644444
0.78135
0.082797
0
0
0
0.045455
0.273897
0
0
0
0
0
0
1
0.363636
false
0.045455
0
0.045455
0.590909
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
0
1
0
0
3
fa19d58e3f83c950e1702f2f32d60a234982993d
292
py
Python
spotistory/models/artist.py
babastienne/spotistory
13c5347c8d13a2f4279be99cf97f1cb89a5453d6
[ "MIT" ]
4
2017-05-06T14:27:20.000Z
2021-03-28T07:55:34.000Z
spotistory/models/artist.py
babastienne/spotistory
13c5347c8d13a2f4279be99cf97f1cb89a5453d6
[ "MIT" ]
1
2017-05-17T18:27:08.000Z
2019-12-24T18:39:32.000Z
spotistory/models/artist.py
babastienne/spotistory
13c5347c8d13a2f4279be99cf97f1cb89a5453d6
[ "MIT" ]
1
2017-05-05T22:16:41.000Z
2017-05-05T22:16:41.000Z
class Artist: def __init__(self, artist_id, uri, title): self.id = artist_id self.uri = uri self.title = title def __str__(self): return '{} (id={})'.format(self.title, self.id) def to_tuple(self): return (self.id, self.uri, self.title)
22.461538
55
0.575342
40
292
3.925
0.325
0.11465
0.140127
0
0
0
0
0
0
0
0
0
0.284247
292
12
56
24.333333
0.751196
0
0
0
0
0
0.034247
0
0
0
0
0
0
1
0.333333
false
0
0
0.222222
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
1
0
0
0
1
1
0
0
3
fa1db66e1c1aa27edcb283c37f829d70c4733998
7,338
py
Python
composition.py
Chiel92/music-arithmetic
69e1d181aaff2e08c5a97cccf6b1d6a151cb06c8
[ "MIT" ]
2
2015-05-16T14:32:31.000Z
2015-05-16T14:51:38.000Z
composition.py
Chiel92/music-arithmetic
69e1d181aaff2e08c5a97cccf6b1d6a151cb06c8
[ "MIT" ]
null
null
null
composition.py
Chiel92/music-arithmetic
69e1d181aaff2e08c5a97cccf6b1d6a151cb06c8
[ "MIT" ]
null
null
null
""" This module contains the definition of the composition datatype that we use as intermediate representation for describing musical pieces. It is flexible enough to contain various types of tone representations, such as frequencies, symbols and vectors. """ from copy import deepcopy import math import fractions from abc import abstractmethod from music21 import pitch Infinity = float('inf') class Music: """ Abstract music class. """ @abstractmethod def stretch(self, duration_factor): pass @abstractmethod def transpose(self, pitch_factor): pass class Tone(Music): """ Abstract atomic object of a composition. """ def __init__(self, duration): self.duration = duration def stretch(self, duration_factor): result = deepcopy(self) result.duration *= duration_factor return result def concat(self, other): result = Piece() result[0] = [self] return result.concat(other) @abstractmethod def frequency(self, base_frequency=1): pass @abstractmethod def harmonic_distance(self, other): pass def melodic_distance(self, other): return abs(math.log(2, self.frequency()) - math.log(2, other.frequency())) class Rest(Tone): """ Rests are encoded by a frequency of 0. """ def __init__(self, duration=1): Tone.__init__(self, duration) def __repr(self): return 'Rest({})'.format(self.duration) def transpose(self, pitch_factor): return Rest(self.duration) def frequency(self, base_frequency=1): return 0 def harmonic_distance(self, other): return float('inf') class Symbol(Tone): """ The usual symbols are allowed. c2, cis3, bes4, etc. """ def __init__(self, symbol, duration=1): self.symbol = symbol Tone.__init__(self, duration) def __repr(self): return 'Symbol({}, {})'.format(self.symbol, self.duration) def transpose(self, pitch_factor): # TODO: try to keep Symbol representation return Frequency(self.frequency() * pitch_factor, self.duration) def frequency(self, base_frequency=1): return base_frequency * pitch.Pitch(self.symbol).frequency def harmonic_distance(self, other): return Infinity class Frequency(Tone): """ Tone that represents a raw frequency. """ def __init__(self, frequency, duration=1): self._frequency = frequency Tone.__init__(self, duration) def __repr(self): return 'Frequency({}, {})'.format(self.frequency, self.duration) def transpose(self, pitch_factor): return Frequency(self.frequency() * pitch_factor, self.duration) def frequency(self, base_frequency=1): return base_frequency * self._frequency def add(self, other): return Frequency(self.frequency() * other.frequency()) def substract(self, other): return Frequency(self.frequency() / other.frequency()) def harmonic_distance(self, other): return Infinity class Vector(Tone): """ A vector is a 3-tuple (x,y,z) of integers, representing a pitch via the formula 2^x * 3^y * 5^z. """ def __init__(self, x=0, y=0, z=0, duration=1): Tone.__init__(self, duration) self.powers = (x, y, z) def __getitem__(self, i): return self.powers[i] def __repr__(self): return 'Vector({}, {})'.format(', '.join(str(p) for p in self.powers), self.duration) @staticmethod def from_frequency(number): """ Try factorize given integer in terms of 2,3 and 5. If number is not integer or no factorization exists, raise ValueError. """ frac = fractions.Fraction(number) powers = [0, 0, 0] for number, sign in [(frac.numerator, 1), (frac.denominator, -1)]: for i, prime in enumerate([2, 3, 5]): while number % prime == 0: number //= prime powers[i] += sign if number != 1: raise ValueError return Vector(*powers) def transpose(self, pitch_factor): try: transpose_vector = Vector.from_frequency(pitch_factor) return self.add(transpose_vector) except ValueError: return Frequency(self.frequency() * pitch_factor) def __str__(self): x, y, z = self numerator = 2 ** max(0, x) * 3 ** max(0, y) * 5 ** max(0, z) denominator = 2 ** -min(0, x) * 3 ** -min(0, y) * 5 ** -min(0, z) return str(self.powers) + ': ' + str(numerator) + '/' + str(denominator) def __eq__(self, tone): return self.powers == tone.powers def frequency(self, base_frequency=1): """Return the pitch of self, with 1 being mapped to the given base_pitch.""" x, y, z = self return base_frequency * 2 ** x * 3 ** y * 5 ** z def add(self, other): """Add given tone to self. Duration is kept.""" return Vector(*(x + y for x, y in zip(self, other)), duration=self.duration) def substract(self, other): """Substract given tone from self. Duration is kept.""" return Vector(*(x - y for x, y in zip(self, other)), duration=self.duration) def harmonic_distance(self, other): """Return the harmonic distance.""" if not isinstance(other, Vector): try: other = Vector.from_frequency(other) except ValueError: raise NotImplementedError difference = self.substract(other) x, y, z = difference return abs(2 * x) + abs(3 * y) + abs(5 * z) # TODO: check whether input are really lists of tones # TODO: make slicing use constant time class Piece(dict, Music): """Mapping from offsets to lists of tones""" def __getitem__(self, index, item): if type(index) == slice: ... else: ... def __setitem__(self, item): ... def stretch(self, duration_factor): result = Piece() for offset, tones in self.items(): new_tones = [] for tone in tones: new_tones.append(tone.stretch(duration_factor)) result[offset * duration_factor] = new_tones return result def transpose(self, pitch_factor): result = Piece() for offset, tones in self.items(): new_tones = [] for tone in tones: new_tones.append(tone.transpose(pitch_factor)) result[offset] = new_tones return result @property def duration(self): return max(offset + tone.duration for offset, tones in self.items() for tone in tones) def concat(self, other): """Return a piece where other is concatenated after self""" if isinstance(other, Tone): other = Piece({0: [other]}) if not isinstance(other, Piece): raise ValueError result = deepcopy(self) for offset, tones in other.items(): result[self.duration + offset] = [] for tone in tones: result[self.duration + offset].append(deepcopy(tone)) return result
27.690566
84
0.596348
882
7,338
4.835601
0.198413
0.064713
0.038687
0.029543
0.337632
0.306917
0.247597
0.225791
0.18007
0.120047
0
0.011372
0.292995
7,338
264
85
27.795455
0.810717
0.146907
0
0.44375
0
0
0.010507
0
0
0
0
0.007576
0
1
0.2625
false
0.025
0.03125
0.11875
0.5375
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
0
1
1
0
0
3
fa2e37352cab9c5b5ac2cbe24374b59ac3973547
1,187
py
Python
xsdata/formats/bindings.py
gramm/xsdata
082c780757c6d76a5c31a6757276ef6912901ed2
[ "MIT" ]
null
null
null
xsdata/formats/bindings.py
gramm/xsdata
082c780757c6d76a5c31a6757276ef6912901ed2
[ "MIT" ]
null
null
null
xsdata/formats/bindings.py
gramm/xsdata
082c780757c6d76a5c31a6757276ef6912901ed2
[ "MIT" ]
null
null
null
import abc import io import pathlib from typing import Any from typing import Optional from typing import Type from typing import TypeVar T = TypeVar("T") class AbstractSerializer(abc.ABC): @abc.abstractmethod def render(self, obj: object) -> object: """Render the given object to the target output format.""" class AbstractParser(abc.ABC): def from_path(self, path: pathlib.Path, clazz: Optional[Type[T]] = None) -> T: """Parse the input file path and return the resulting object tree.""" return self.parse(str(path.resolve()), clazz) def from_string(self, source: str, clazz: Optional[Type[T]] = None) -> T: """Parse the input string and return the resulting object tree.""" return self.from_bytes(source.encode(), clazz) def from_bytes(self, source: bytes, clazz: Optional[Type[T]] = None) -> T: """Parse the input bytes array return the resulting object tree.""" return self.parse(io.BytesIO(source), clazz) @abc.abstractmethod def parse(self, source: Any, clazz: Optional[Type[T]] = None) -> T: """Parse the input stream or filename and return the resulting object tree."""
33.914286
82
0.675653
164
1,187
4.865854
0.286585
0.050125
0.080201
0.090226
0.382206
0.382206
0.343358
0.343358
0.180451
0
0
0
0.207245
1,187
34
83
34.911765
0.848034
0.262848
0
0.1
0
0
0.001189
0
0
0
0
0
0
1
0.25
false
0
0.35
0
0.85
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
0
1
0
0
3
fa6f849c140e19763bebce3b6efb60ea46161022
923
py
Python
delivery/serializers.py
ITedy/cloudtraining
eff1f320fa5abd1961118bc0fc99aa4f0a7c90cd
[ "MIT" ]
8
2016-09-10T12:18:37.000Z
2019-04-04T09:33:52.000Z
delivery/serializers.py
Harkirat9711/pizza-time
eff1f320fa5abd1961118bc0fc99aa4f0a7c90cd
[ "MIT" ]
1
2016-10-11T15:26:32.000Z
2016-10-11T16:34:43.000Z
delivery/serializers.py
Harkirat9711/pizza-time
eff1f320fa5abd1961118bc0fc99aa4f0a7c90cd
[ "MIT" ]
14
2016-10-11T14:00:48.000Z
2018-10-29T10:48:58.000Z
from django.contrib.auth.models import User, Group from rest_framework import serializers from delivery.models import Pizza, Order class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ('username', 'id', 'url') class PizzaSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Pizza fields = ('name', 'price', 'url') class GetOrderSerializer(serializers.HyperlinkedModelSerializer): pizzas = serializers.StringRelatedField(many=True) user = serializers.SlugRelatedField( read_only=True, slug_field='username' ) class Meta: model = Order fields = ('id', 'user', 'pizzas', 'total', 'status', 'url') class NewOrderSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Order fields = ('id', 'user', 'pizzas', 'total', 'status', 'url')
29.774194
67
0.67714
87
923
7.149425
0.448276
0.237942
0.090032
0.221865
0.38746
0.163987
0.163987
0.163987
0.163987
0.163987
0
0
0.208017
923
30
68
30.766667
0.850889
0
0
0.333333
0
0
0.092091
0
0
0
0
0
0
1
0
false
0
0.125
0
0.541667
0
0
0
0
null
1
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
0
0
0
0
0
1
0
0
3
d70671eccf6fa28cfaad5138ee60132e6924ff7c
420
py
Python
Educative/Django: Python Web Development Unleashed/django-unleashed-educative/first_app/admin.py
imrande/Django-Projects
fb59d068111448877d0c5ea26824b5b1550be680
[ "MIT" ]
null
null
null
Educative/Django: Python Web Development Unleashed/django-unleashed-educative/first_app/admin.py
imrande/Django-Projects
fb59d068111448877d0c5ea26824b5b1550be680
[ "MIT" ]
null
null
null
Educative/Django: Python Web Development Unleashed/django-unleashed-educative/first_app/admin.py
imrande/Django-Projects
fb59d068111448877d0c5ea26824b5b1550be680
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. @admin.register(models.Topic) class TopicAdmin(admin.ModelAdmin): list_display = ('topic_name',) @admin.register(models.Webpage) class WebpageAdmin(admin.ModelAdmin): list_display = ('topic', 'name') @admin.register(models.AccessRecord) class AccessRecordAdmin(admin.ModelAdmin): list_display = ('name', 'date_field')
28
43
0.75
49
420
6.326531
0.44898
0.125806
0.183871
0.251613
0.348387
0.348387
0.348387
0.348387
0.348387
0
0
0
0.12381
420
15
44
28
0.842391
0.061905
0
0
0
0
0.087071
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.727273
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
0
0
1
0
0
3
d7170868cc1b9d3bc6e827230066b9b562e8f3c3
30
py
Python
tests/testapp1/__init__.py
jayvdb/python-app-loader
e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c
[ "BSD-3-Clause" ]
null
null
null
tests/testapp1/__init__.py
jayvdb/python-app-loader
e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c
[ "BSD-3-Clause" ]
5
2016-01-07T14:57:39.000Z
2016-09-14T22:17:41.000Z
tests/testapp1/__init__.py
jayvdb/python-app-loader
e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c
[ "BSD-3-Clause" ]
1
2020-01-15T12:28:37.000Z
2020-01-15T12:28:37.000Z
LEONARDO_APPS = ['testapp1']
10
28
0.7
3
30
6.666667
1
0
0
0
0
0
0
0
0
0
0
0.038462
0.133333
30
2
29
15
0.730769
0
0
0
0
0
0.275862
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d71d57d627a96554e6fcf57814ab56280a0a6ff9
987
py
Python
mozi_cross_val/filters/overfitness_filters.py
Habush/moses-crossval
46c5d878e1ab293cfba3973b7fb7403e8a0fb723
[ "MIT" ]
null
null
null
mozi_cross_val/filters/overfitness_filters.py
Habush/moses-crossval
46c5d878e1ab293cfba3973b7fb7403e8a0fb723
[ "MIT" ]
null
null
null
mozi_cross_val/filters/overfitness_filters.py
Habush/moses-crossval
46c5d878e1ab293cfba3973b7fb7403e8a0fb723
[ "MIT" ]
null
null
null
__author__ = 'Abdulrahman Semrie<hsamireh@gmail.com>' from mozi_cross_val.filters.base_filter import BaseFilter class AccuracyFilter(BaseFilter): def cut_off(self, models, value): return list(filter(lambda k : k.train_score.accuracy - k.test_score.accuracy <= value, models)) class PrecisionFilter(BaseFilter): def cut_off(self, models, value): return list(filter(lambda k : k.train_score.precision - k.test_score.precision <= value, models)) class RecallFilter(BaseFilter): def cut_off(self, models, value): return list(filter(lambda k : k.train_score.recall - k.test_score.recall <= value, models)) class F1Score(BaseFilter): def cut_off(self, models, value): return list(filter(lambda k : k.train_score.f1_score - k.test_score.f1_score <= value, models)) class PValue(BaseFilter): def cut_off(self, models, value): return list(filter(lambda k : k.train_score.p_value - k.test_score.p_value <= value, models))
29.909091
105
0.719352
139
987
4.920863
0.280576
0.095029
0.116959
0.138889
0.497076
0.497076
0.497076
0.497076
0.497076
0.497076
0
0.003641
0.165147
987
33
106
29.909091
0.826456
0
0
0.294118
0
0
0.038462
0.026316
0
0
0
0
0
1
0.294118
false
0
0.058824
0.294118
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
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
d735d08199525f4735a367d8252ea22fb2e06596
146
py
Python
setup.py
Lukas-Dresel/customassert
df3c3031577730c6c23391518f42db5c8764167f
[ "BSD-2-Clause" ]
null
null
null
setup.py
Lukas-Dresel/customassert
df3c3031577730c6c23391518f42db5c8764167f
[ "BSD-2-Clause" ]
null
null
null
setup.py
Lukas-Dresel/customassert
df3c3031577730c6c23391518f42db5c8764167f
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup setup( name='customassert', version='1.0.0.0', packages=['customassert'], install_requires=[] )
16.222222
32
0.657534
17
146
5.588235
0.764706
0.042105
0
0
0
0
0
0
0
0
0
0.033613
0.184932
146
8
33
18.25
0.764706
0
0
0
0
0
0.213793
0
0
0
0
0
0.285714
1
0
true
0
0.142857
0
0.142857
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
0
0
0
3
d73b304376e2d14ada8f74ce4c505a48513f3ff5
222
py
Python
code-exercises-etc/section_09_(functions)/ajm.func4-fileopen.20160117.py
hannahkwarren/CLaG-Sp2016
a75862d187176d9f2f1778eb6300056364292b44
[ "MIT" ]
null
null
null
code-exercises-etc/section_09_(functions)/ajm.func4-fileopen.20160117.py
hannahkwarren/CLaG-Sp2016
a75862d187176d9f2f1778eb6300056364292b44
[ "MIT" ]
null
null
null
code-exercises-etc/section_09_(functions)/ajm.func4-fileopen.20160117.py
hannahkwarren/CLaG-Sp2016
a75862d187176d9f2f1778eb6300056364292b44
[ "MIT" ]
null
null
null
def textfile_to_string(filename_with_path): with open(filename_with_path, "r") as the_file: the_text = the_file.read() return the_text file_contents = textfile_to_string('lessons.txt') print file_contents
22.2
51
0.761261
34
222
4.558824
0.558824
0.129032
0.206452
0
0
0
0
0
0
0
0
0
0.153153
222
9
52
24.666667
0.824468
0
0
0
0
0
0.054054
0
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
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
1
0
0
0
0
0
0
0
0
3
d751f1606b43d888ddcab21a7edc79e306106bd4
106
py
Python
qtoggleserver/mppsolar/commands/psdv.py
qtoggle/qtoggleserver-mppsolar
cc3a68f3ba9f5695946989ea5fa32364c5e28f70
[ "Apache-2.0" ]
1
2021-11-30T01:04:37.000Z
2021-11-30T01:04:37.000Z
qtoggleserver/mppsolar/commands/psdv.py
qtoggle/qtoggleserver-mppsolar
cc3a68f3ba9f5695946989ea5fa32364c5e28f70
[ "Apache-2.0" ]
null
null
null
qtoggleserver/mppsolar/commands/psdv.py
qtoggle/qtoggleserver-mppsolar
cc3a68f3ba9f5695946989ea5fa32364c5e28f70
[ "Apache-2.0" ]
null
null
null
from .base import Command class PSDV(Command): REQUEST_FMT = 'PSDV{battery_cut_off_voltage:04.1f}'
15.142857
55
0.745283
16
106
4.6875
0.875
0
0
0
0
0
0
0
0
0
0
0.033333
0.150943
106
6
56
17.666667
0.8
0
0
0
0
0
0.333333
0.333333
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
0
0
0
3
d7557f8b8babd42a22a42b24dfe7fa9759c68799
270
py
Python
Task1.py
BeenashPervaiz/Command_Line_Task
a603fbdd06717ff157ecd72881d08329413fd82c
[ "MIT" ]
null
null
null
Task1.py
BeenashPervaiz/Command_Line_Task
a603fbdd06717ff157ecd72881d08329413fd82c
[ "MIT" ]
null
null
null
Task1.py
BeenashPervaiz/Command_Line_Task
a603fbdd06717ff157ecd72881d08329413fd82c
[ "MIT" ]
null
null
null
#task1: print the \\ double backslash print("This is \\\\ double backslash") #task2: print the mountains print ("this is /\\/\\/\\/\\/\\ mountain") #task3:he is awesome(using escape sequence) print ("he is \t awesome") #task4: \" \n \t \' print ("\\\" \\n \\t \\\'")
33.75
46
0.596296
36
270
4.472222
0.527778
0.099379
0.136646
0
0
0
0
0
0
0
0
0.017621
0.159259
270
8
47
33.75
0.69163
0.462963
0
0
0
0
0.567376
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
1
0
0
0
0
1
0
3
d75a7fafcf0a3326ce9e4cddd5cc898de5b24cc2
138
py
Python
SpeedTest.py
MrRouhi/Speedtest-by-python
1294ff471560408293508631a7790fa171951d64
[ "Apache-2.0" ]
null
null
null
SpeedTest.py
MrRouhi/Speedtest-by-python
1294ff471560408293508631a7790fa171951d64
[ "Apache-2.0" ]
null
null
null
SpeedTest.py
MrRouhi/Speedtest-by-python
1294ff471560408293508631a7790fa171951d64
[ "Apache-2.0" ]
null
null
null
from speedtest import Speedtest obj = Speedtest() print(f'Download Speed : {obj.download()}') print(f'Upload Speed : {obj.upload()}')
27.6
44
0.695652
18
138
5.333333
0.5
0.125
0
0
0
0
0
0
0
0
0
0
0.137681
138
5
45
27.6
0.806723
0
0
0
0
0
0.459259
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
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
0
0
1
0
3
d7672f723c53a7f8dbcf32dbe0dcb1b10b06c4c0
1,211
py
Python
dataworkspace/dataworkspace/apps/datasets/migrations/0050_auto_20200805_1226.py
uktrade/jupyterhub-data-auth-admin
91544f376209a201531f4dbfb8faad1b8ada18c9
[ "MIT" ]
1
2019-06-10T08:22:56.000Z
2019-06-10T08:22:56.000Z
dataworkspace/dataworkspace/apps/datasets/migrations/0050_auto_20200805_1226.py
uktrade/jupyterhub-data-auth-admin
91544f376209a201531f4dbfb8faad1b8ada18c9
[ "MIT" ]
2
2019-05-17T13:10:42.000Z
2019-06-17T10:48:46.000Z
dataworkspace/dataworkspace/apps/datasets/migrations/0050_auto_20200805_1226.py
uktrade/jupyterhub-data-auth-admin
91544f376209a201531f4dbfb8faad1b8ada18c9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-05 12:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("datasets", "0049_auto_20200610_1007"), ] operations = [ migrations.AlterField( model_name="sourcetable", name="frequency", field=models.IntegerField( choices=[ (1, "Daily"), (2, "Weekly"), (3, "Monthly"), (4, "Quarterly"), (6, "6-monthly"), (5, "Annually"), (7, "Ad hoc"), ], default=1, ), ), migrations.AlterField( model_name="sourceview", name="frequency", field=models.IntegerField( choices=[ (1, "Daily"), (2, "Weekly"), (3, "Monthly"), (4, "Quarterly"), (6, "6-monthly"), (5, "Annually"), (7, "Ad hoc"), ], default=1, ), ), ]
26.326087
48
0.369116
87
1,211
5.08046
0.563218
0.090498
0.113122
0.131222
0.479638
0.479638
0.479638
0.479638
0.479638
0.479638
0
0.080992
0.500413
1,211
45
49
26.911111
0.649587
0.037159
0
0.769231
1
0
0.146048
0.019759
0
0
0
0
0
1
0
false
0
0.025641
0
0.102564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d76c1a512e5e56596363898040108c19c779c418
745
py
Python
test/1.py
sunsyw/utils
675fcdcfa47b37ec938631f1cc5f8c99b0a92fb3
[ "Apache-2.0" ]
null
null
null
test/1.py
sunsyw/utils
675fcdcfa47b37ec938631f1cc5f8c99b0a92fb3
[ "Apache-2.0" ]
null
null
null
test/1.py
sunsyw/utils
675fcdcfa47b37ec938631f1cc5f8c99b0a92fb3
[ "Apache-2.0" ]
null
null
null
import sympy x = sympy.Symbol('x') n = 0 # print(sympy.solve(((((((x-1)/5*4-1)*5/4-1)*5/4-1)*5/4-1)*5/4-4),x)) while True: a = sympy.solve(((((((x - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - n), x) # a = sympy.solve((x-1)/5*4-4) if a[0].is_integer: break n += 1 print(a) print('n = %s' % n) print(a) # a = (((((3121 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 # print(a) # # b = (((((3121 - 1) / 5 * 4 - 1) / 5 * 4) - 1) / 5 * 4 -1) / 5 * 4 - 1 # print(b) # a = sympy.solve((x-1)/5*4-8) # print(a) # b = a[0] # print(b) # # b = sympy.Symbol('b') # print(a.is_integer) # print(type(b)) #<class 'sympy.core.numbers.Integer'> # # <class 'sympy.core.numbers.Rational'>
24.032258
101
0.444295
148
745
2.222973
0.182432
0.12766
0.191489
0.194529
0.361702
0.361702
0.361702
0.267477
0.267477
0.267477
0
0.143898
0.263087
745
30
102
24.833333
0.455373
0.608054
0
0.181818
0
0
0.025641
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.272727
0
0
0
null
0
1
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
0
0
3
d77c370b109f64eff8d2b637c46094f70aa8b85e
7,355
py
Python
graphnn/transformer.py
nextBillyonair/GraphNN
5d0601b8dc8dc61dcdb6af51eb17b536995a178c
[ "MIT" ]
null
null
null
graphnn/transformer.py
nextBillyonair/GraphNN
5d0601b8dc8dc61dcdb6af51eb17b536995a178c
[ "MIT" ]
null
null
null
graphnn/transformer.py
nextBillyonair/GraphNN
5d0601b8dc8dc61dcdb6af51eb17b536995a178c
[ "MIT" ]
null
null
null
import torch from torch.nn import Module, Linear, Dropout, LayerNorm import torch.nn.functional as F from .multihead_attention import MultiheadAttention from .residual import AdditiveResidual, GeneralResidual, DotResidual class Transformer(Module): r"""Transformer is made up of self-attn and feedforward network. Encoder. Args: d_model: the number of expected features in the input (required). nhead: the number of heads in the multiheadattention models (required). dim_feedforward: the dimension of the feedforward network model (default=2048). dropout: the dropout value (default=0.1). activation: the activation function of intermediate layer, relu or gelu (default=relu). """ def __init__(self, d_model, nhead, dim_feedforward=2048, dropout=0.1, activation=F.relu, bias=True, learned_residual=False, residual=AdditiveResidual): super().__init__() self.self_attn = MultiheadAttention(d_model, nhead, bias=bias) # Implementation of Feedforward model self.linear1 = Linear(d_model, dim_feedforward, bias=bias) self.dropout = Dropout(dropout) self.linear2 = Linear(dim_feedforward, d_model, bias=bias) self.norm1 = LayerNorm(d_model) self.norm2 = LayerNorm(d_model) self.dropout1 = Dropout(dropout) self.dropout2 = Dropout(dropout) self.activation = getattr(nn, activation)() if isinstance(activation, str) else activation self.learned_residual = learned_residual if learned_residual: self.residual = residual(d_model, dim_feedforward, bias=bias) # self.residual = Residual(d_model // nhead, dim_feedforward) self.d_model = d_model self.nhead = nhead def forward(self, src, mask=None, return_weights=False): r"""Pass the input through the encoder layer. Args: src: the sequence to the encoder layer (required). (Batch Size, *, Seq Len, Embedding Size) mask: what to attend to (optional). (Batch Size, *, Seq Len, Seq Len) -> Binary Tensor, 1 to attend, 0 to exclude return_weights: True -> return MHA weights, else only attended src Out: src: Attented src (Batch Size, *, Seq Len, Embedding Size) attn_weights: attentions weights given to each edge (Batch Size, *, Num Heads, Seq Len, Seq Len) """ if mask is None: mask = torch.ones(src.size()[:-1] + src.size()[-2:-1]) src2, attn_weights = self.self_attn(src, src, src, mask=mask) # output.shape == (batch_size, vertices, d_model) # feed forward if self.learned_residual: src, residual_weights = self.residual(src, self.dropout1(src2)) else: src = src + self.dropout1(src2) src = self.norm1(src) src2 = self.linear2(self.dropout(self.activation(self.linear1(src)))) src = src + self.dropout2(src2) src = self.norm2(src) if return_weights: if self.learned_residual: return src, {'mha':attn_weights, 'res':residual_weights} return src, {'mha':attn_weights} return src class TransformerDecoder(Module): r"""Transformer is made up of self-attn and feedforward network. Decoder. Args: d_model: the number of expected features in the input (required). nhead: the number of heads in the multiheadattention models (required). dim_feedforward: the dimension of the feedforward network model (default=2048). dropout: the dropout value (default=0.1). activation: the activation function of intermediate layer, relu or gelu (default=relu). """ def __init__(self, d_model, nhead, dim_feedforward=2048, dropout=0.1, activation=F.relu, bias=True, learned_residual=False, residual=AdditiveResidual): super().__init__() self.self_attn = MultiheadAttention(d_model, nhead, bias=bias) self.multihead_attn = MultiheadAttention(d_model, nhead, bias=bias) # Implementation of Feedforward model self.linear1 = Linear(d_model, dim_feedforward, bias=bias) self.dropout = Dropout(dropout) self.linear2 = Linear(dim_feedforward, d_model, bias=bias) self.norm1 = LayerNorm(d_model) self.norm2 = LayerNorm(d_model) self.norm3 = LayerNorm(d_model) self.dropout1 = Dropout(dropout) self.dropout2 = Dropout(dropout) self.dropout3 = Dropout(dropout) self.activation = getattr(nn, activation)() if isinstance(activation, str) else activation self.learned_residual = learned_residual if learned_residual: self.residual1 = residual(d_model, dim_feedforward, bias=bias) self.residual2 = residual(d_model, dim_feedforward, bias=bias) # self.residual = Residual(d_model // nhead, dim_feedforward) self.d_model = d_model self.nhead = nhead def forward(self, tgt, memory, tgt_mask=None, memory_mask=None, return_weights=False): r"""Pass the input through the encoder layer. Args: tgt: the sequence to decoder layer (required). (Batch Size, *, T Seq Len, Embedding Size) memory: the sequence to the decoder layer (required). (Batch Size, *, S Seq Len, Embedding Size) tgt_mask: what to attend to in target sequence (optional). (Batch Size, *, T Seq Len, T Seq Len) -> Binary Tensor, 1 to attend, 0 to exclude memory_mask: what to attend to with the memory (optional). (Batch Size, *, T Seq Len, S Seq Len) -> Binary Tensor, 1 to attend, 0 to exclude return_weights: True -> return MHA weights, else only attended tgt Out: tgt: Attented tgt (Batch Size, *, T Seq Len, Embedding Size) attn_weights: attentions weights given to each edge (Batch Size, *, Num Heads, Seq Len, Seq Len) """ if mask is None: mask = torch.ones(src.size()[:-1] + src.size()[-2:-1]) tgt2, attn_weights_1 = self.self_attn(tgt, tgt, tgt, mask=tgt_mask) # output.shape == (batch_size, vertices, d_model) # feed forward if self.learned_residual: tgt, residual_weights_1 = self.residual1(tgt, self.dropout1(tgt2)) else: tgt = tgt + self.dropout1(tgt2) tgt = self.norm1(tgt) tgt2, attn_weights_2 = self.multihead_attn(tgt, memory, memory, mask=memory_mask) if self.learned_residual: tgt, residual_weights_2 = self.residual2(tgt, self.dropout2(tgt2)) else: tgt = tgt + self.dropout2(tgt2) tgt = self.norm2(tgt) tgt2 = self.linear2(self.dropout(self.activation(self.linear1(tgt)))) tgt = tgt + self.dropout3(tgt2) tgt = self.norm3(tgt) if return_weights: if self.learned_residual: return tgt, {'mha_1':attn_weights_1, 'mha_2':attn_weights_2, 'res_1':residual_weights_1, 'res_2':residual_weights_2} return tgt, {'mha_1':attn_weights_1, 'mha_2':attn_weights_2} return tgt
41.789773
98
0.632767
916
7,355
4.946507
0.14083
0.035754
0.021187
0.02207
0.77356
0.732289
0.713529
0.692342
0.645553
0.645553
0
0.018695
0.27274
7,355
175
99
42.028571
0.828379
0.34847
0
0.511111
0
0
0.008705
0
0
0
0
0
0
1
0.044444
false
0
0.055556
0
0.188889
0
0
0
0
null
0
0
0
0
1
1
0
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
3
d780467fdbf6ccba3e65a5b06058f0625f5a8bb5
1,741
py
Python
pyiArduinoI2Cmatrix/examples/5PrintChar.py
tremaru/pyiArduinoI2Cmatrix
76cbe92c725d04ebf88bd0a46e1170b9bde55207
[ "MIT" ]
null
null
null
pyiArduinoI2Cmatrix/examples/5PrintChar.py
tremaru/pyiArduinoI2Cmatrix
76cbe92c725d04ebf88bd0a46e1170b9bde55207
[ "MIT" ]
null
null
null
pyiArduinoI2Cmatrix/examples/5PrintChar.py
tremaru/pyiArduinoI2Cmatrix
76cbe92c725d04ebf88bd0a46e1170b9bde55207
[ "MIT" ]
null
null
null
# Данный пример выводит символы. # from pyiArduinoI2Cmatrix import * # Подключаем библиотеку (модуль python) для работы с LED матрицей 8x8. from time import sleep # Импортируем функцию ожидания disp = pyiArduinoI2Cmatrix(0x09) # Объявляем объект disp для работы # с LED матрицей 8x8, указывая её адрес на шине I2C. # try: # Входим в блок исключений while True: # Входим в бесконечный цикл disp.print('i') # Выводим символ sleep(.300) # disp.print('A') # Выводим символ sleep(.300) # disp.print('r') # Выводим символ sleep(.300) # disp.print('d') # Выводим символ sleep(.300) # disp.print('u') # Выводим символ sleep(.300) # disp.print('i') # Выводим символ sleep(.300) # disp.print('n') # Выводим символ sleep(.300) # disp.print('o') # Выводим символ sleep(.300) # disp.print(' ') # Выводим символ sleep(.500) # except: # Если поднято исключение (например, # выполнение сценария прервано с клавиатуры) disp.reset() # Сбрасываем все параметры матрицы
56.16129
110
0.398047
131
1,741
5.290076
0.51145
0.116883
0.233766
0.242424
0.431457
0.431457
0.11544
0.11544
0.11544
0
0
0.045455
0.532453
1,741
30
111
58.033333
0.805897
0.298679
0
0.4
0
0
0.007563
0
0
0
0.003361
0
0
1
0
false
0
0.08
0
0.08
0.36
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
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
3
d791365d9143ac7d5be5687c74bbd44af71cc7a3
189
py
Python
tools/__init__.py
depp/chaostomb
6ccbfe91b9675eb6dc4cf264bc34bddd593a688e
[ "BSD-2-Clause" ]
4
2015-04-26T00:08:40.000Z
2018-12-20T01:01:22.000Z
tools/__init__.py
depp/chaostomb
6ccbfe91b9675eb6dc4cf264bc34bddd593a688e
[ "BSD-2-Clause" ]
1
2018-12-19T18:09:27.000Z
2018-12-20T00:51:01.000Z
tools/__init__.py
depp/chaostomb
6ccbfe91b9675eb6dc4cf264bc34bddd593a688e
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2015 Dietrich Epp. # # This file is part of Chaos Tomb. The Chaos Tomb source code is # distributed under the terms of the 2-clause BSD license. # See LICENSE.txt for details.
31.5
65
0.751323
32
189
4.4375
0.78125
0.126761
0
0
0
0
0
0
0
0
0
0.03268
0.190476
189
5
66
37.8
0.895425
0.941799
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
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
3
d7984a92d9cb470ce977fb2eb7994c94badc31db
205
py
Python
MyRickyDL/rickydl.py
luckyandricky/MyRickyDL
f71a6c113946636b6c13c784af55d1a9f02be916
[ "MIT" ]
null
null
null
MyRickyDL/rickydl.py
luckyandricky/MyRickyDL
f71a6c113946636b6c13c784af55d1a9f02be916
[ "MIT" ]
null
null
null
MyRickyDL/rickydl.py
luckyandricky/MyRickyDL
f71a6c113946636b6c13c784af55d1a9f02be916
[ "MIT" ]
null
null
null
from . import kernel from . import operate from . import optimizer default_cal = kernel.def_cal get_node_from_graph = kernel.get_node_from_graph name_scope = kernel.Name_Scope Variable = kernel.Variable
20.5
48
0.819512
31
205
5.096774
0.451613
0.189873
0.139241
0.202532
0
0
0
0
0
0
0
0
0.126829
205
9
49
22.777778
0.882682
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
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
3
ad112af2e0a9aa106837fb39b9e5891908c10c0b
900
py
Python
unittest/python/tests.py
matthieuvigne/pinocchio
01f211eceda3ac2e5edc8cf101690afb6f3184d3
[ "BSD-2-Clause-FreeBSD" ]
1
2021-06-22T15:42:45.000Z
2021-06-22T15:42:45.000Z
unittest/python/tests.py
matthieuvigne/pinocchio
01f211eceda3ac2e5edc8cf101690afb6f3184d3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
unittest/python/tests.py
matthieuvigne/pinocchio
01f211eceda3ac2e5edc8cf101690afb6f3184d3
[ "BSD-2-Clause-FreeBSD" ]
1
2021-03-21T09:14:26.000Z
2021-03-21T09:14:26.000Z
#!/usr/bin/env python from __future__ import print_function import unittest, sys from bindings import TestSE3 # TODO: probably remove and move/split its contents from bindings_SE3 import TestSE3Bindings from bindings_force import TestForceBindings from bindings_motion import TestMotionBindings from bindings_inertia import TestInertiaBindings from bindings_frame import TestFrameBindings from bindings_geometry_object import TestGeometryObjectBindings from bindings_geometry_object_urdf import TestGeometryObjectUrdfBindings from bindings_dynamics import TestDynamicsBindings from bindings_com import TestComBindings from bindings_joint_composite import TestJointCompositeBindings from explog import TestExpLog from model import TestModel from rpy import TestRPY from utils import TestUtils if __name__ == '__main__': print("Python version") print(sys.version_info) unittest.main()
33.333333
81
0.86
106
900
7.037736
0.528302
0.176944
0.053619
0.069705
0
0
0
0
0
0
0
0.003759
0.113333
900
26
82
34.615385
0.931078
0.077778
0
0
0
0
0.02657
0
0
0
0
0.038462
0
1
0
true
0
0.809524
0
0.809524
0.142857
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
0
1
0
1
0
0
0
0
3
ad15210a4be064d095243e6d0032830447c1d1e9
1,428
py
Python
PyFlow/Packages/PyFlowPyrr/Pins/Matrix44Pin.py
IlgarLunin/PyFlowPyrr
171c376664ad269435e74da9b5da1d06210ad5fe
[ "MIT" ]
null
null
null
PyFlow/Packages/PyFlowPyrr/Pins/Matrix44Pin.py
IlgarLunin/PyFlowPyrr
171c376664ad269435e74da9b5da1d06210ad5fe
[ "MIT" ]
null
null
null
PyFlow/Packages/PyFlowPyrr/Pins/Matrix44Pin.py
IlgarLunin/PyFlowPyrr
171c376664ad269435e74da9b5da1d06210ad5fe
[ "MIT" ]
null
null
null
from pyrr import Matrix44 import json from PyFlow.Core import PinBase from PyFlow.Core.Common import * class M44Encoder(json.JSONEncoder): def default(self, m44): if isinstance(m44, Matrix44): return {Matrix44.__name__: m44.tolist()} json.JSONEncoder.default(self, m44) class M44Decoder(json.JSONDecoder): def __init__(self, *args, **kwargs): super(M44Decoder, self).__init__(object_hook=self.object_hook, *args, **kwargs) def object_hook(self, m44Dict): return Matrix44(m44Dict[Matrix44.__name__]) class Matrix44Pin(PinBase): """doc string for Matrix44Pin""" def __init__(self, name, parent, direction, **kwargs): super(Matrix44Pin, self).__init__(name, parent, direction, **kwargs) self.setDefaultValue(Matrix44()) @staticmethod def IsValuePin(): return True @staticmethod def jsonEncoderClass(): return M44Encoder @staticmethod def jsonDecoderClass(): return M44Decoder @staticmethod def color(): return (150, 0, 20, 255) @staticmethod def supportedDataTypes(): return ('Matrix44Pin',) @staticmethod def pinDataTypeHint(): return 'Matrix44Pin', Matrix44() @staticmethod def internalDataStructure(): return Matrix44 @staticmethod def processData(data): return Matrix44Pin.internalDataStructure()(data)
23.8
87
0.666667
140
1,428
6.607143
0.371429
0.12973
0.074595
0.054054
0
0
0
0
0
0
0
0.053636
0.229692
1,428
59
88
24.20339
0.787273
0.018207
0
0.190476
0
0
0.015759
0
0
0
0
0
0
1
0.285714
false
0
0.095238
0.214286
0.690476
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
0
1
1
0
0
3
ad36cbf6c25ff6dd3d08431ace192dfd63e72de4
1,229
py
Python
test_game_of_greed.py
rgvh/game-of-greed
f48c2f8707c95a7d38e70f358566670a91fa176d
[ "MIT" ]
null
null
null
test_game_of_greed.py
rgvh/game-of-greed
f48c2f8707c95a7d38e70f358566670a91fa176d
[ "MIT" ]
null
null
null
test_game_of_greed.py
rgvh/game-of-greed
f48c2f8707c95a7d38e70f358566670a91fa176d
[ "MIT" ]
null
null
null
from game_of_greed import # test_zilch - non scoring roll should return 0 def test_zilch(): expected = 0 actual = round_score(0) assert expected == actual # test_ones - rolls with various number of 1s should return correct score def test_ones(): expected = 100 # test_twos - rolls with various number of 2s should return correct score def test_two(): expected = 2 actual = (2) assert expected == actual # test_threes - rolls with various number of 3s should return correct score # test_fours - rolls with various number of 4s should return correct score # test_fives - rolls with various number of 5s should return correct score # test_sixes - rolls with various number of 6s should return correct score # test_straight - 1,2,3,4,5,6 should return correct score # test_three_pairs - 3 pairs should return correct score # test_leftover_ones - 1s not used in set of 3 (or greater) should return correct score # test_leftover_fives - 5s not used in set of 3 (or greater) should return correct score # test_two_trios = 2 sets of 3 should return correct score # test_roll -doing a roll with x number of dice should return sequence of x length random integers between 1 and 6 inclusive
29.261905
124
0.74939
199
1,229
4.512563
0.336683
0.173719
0.232739
0.293987
0.581292
0.233853
0.115813
0.115813
0.115813
0.115813
0
0.029652
0.204231
1,229
41
125
29.97561
0.888548
0.769731
0
0.181818
0
0
0
0
0
0
0
0
0.181818
0
null
null
0
0.090909
null
null
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
1
0
0
0
0
0
0
0
0
3
ad5b18fb9842a570df78c27cef00bb2e88311522
138
py
Python
dosed/models/__init__.py
haberdashPI/dosed
86348441ecec18bf12887a40d2fd873538d376a2
[ "MIT" ]
40
2019-04-12T16:18:40.000Z
2022-03-02T07:03:58.000Z
dosed/models/__init__.py
haberdashPI/dosed
86348441ecec18bf12887a40d2fd873538d376a2
[ "MIT" ]
5
2019-10-28T14:19:20.000Z
2021-08-19T07:43:41.000Z
dosed/models/__init__.py
haberdashPI/dosed
86348441ecec18bf12887a40d2fd873538d376a2
[ "MIT" ]
15
2019-04-13T22:14:42.000Z
2022-02-27T14:57:38.000Z
from .dosed1 import DOSED1 from .dosed2 import DOSED2 from .dosed3 import DOSED3 __all__ = [ "DOSED1", "DOSED2", "DOSED3", ]
13.8
26
0.65942
16
138
5.4375
0.375
0
0
0
0
0
0
0
0
0
0
0.084906
0.231884
138
9
27
15.333333
0.735849
0
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
0
0
3
ad684b1ca1bf58268f74e9345662e066e3143cb6
628
py
Python
app/site/view.py
DaveLanday/Flask_Bulma_boilerplate
40a493dc7765f2e6a37c689e80cebc7f0a0d0394
[ "MIT" ]
null
null
null
app/site/view.py
DaveLanday/Flask_Bulma_boilerplate
40a493dc7765f2e6a37c689e80cebc7f0a0d0394
[ "MIT" ]
null
null
null
app/site/view.py
DaveLanday/Flask_Bulma_boilerplate
40a493dc7765f2e6a37c689e80cebc7f0a0d0394
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*-coding: utf-8 -*- #views.py #Dave Landay #LAST UPDATED: 01-09-2020 from flask import Blueprint, url_for, render_template mod = Blueprint('site', __name__, template_folder='templates') # Routes to the homepage: @mod.route('/') def index(): return render_template('index.html') # Routes to the gallery page: @mod.route('/gallery') def gallery(): return render_template('gallery.html') # Routes to the shop page @mod.route('/shop') def shop(): return render_template('shop.html') # Routes to the about page: @mod.route('/about') def about(): return render_template('about.html')
19.625
62
0.69586
89
628
4.786517
0.47191
0.164319
0.103286
0.105634
0
0
0
0
0
0
0
0.01676
0.144904
628
31
63
20.258065
0.776536
0.296178
0
0
0
0
0.171296
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.285714
0.642857
0.142857
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
0
1
1
0
0
3
ad72fcb206224b55d0c247f4f4dfb4b0dc81aaa0
315
py
Python
src/healthvaultlib/methods/method.py
rajeevs1992/pyhealthvault
2b6fa7c1687300bcc2e501368883fbb13dc80495
[ "MIT" ]
1
2015-12-19T09:09:15.000Z
2015-12-19T09:09:15.000Z
src/healthvaultlib/methods/method.py
rajeevs1992/pyhealthvault
2b6fa7c1687300bcc2e501368883fbb13dc80495
[ "MIT" ]
6
2015-12-19T07:53:44.000Z
2021-12-13T19:35:10.000Z
src/healthvaultlib/methods/method.py
rajeevs1992/pyhealthvault
2b6fa7c1687300bcc2e501368883fbb13dc80495
[ "MIT" ]
2
2018-02-20T08:34:50.000Z
2018-03-28T14:29:52.000Z
from healthvaultlib.helpers.requestmanager import RequestManager class Method: def __init__(self, request, response): self.request = request self.response = response def execute(self, connection): requestmgr = RequestManager(self, connection) requestmgr.makerequest()
26.25
64
0.701587
29
315
7.482759
0.551724
0.101382
0.221198
0
0
0
0
0
0
0
0
0
0.225397
315
11
65
28.636364
0.889344
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
1
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
0
0
0
0
3
ad841cec97cdc0e8350d96964cb9ae090d540faf
412
py
Python
gunicorn/metrics/worker_stats.py
smpio/gunicorn
c2f171a985cc0980532683eb108fabc5410da439
[ "MIT" ]
null
null
null
gunicorn/metrics/worker_stats.py
smpio/gunicorn
c2f171a985cc0980532683eb108fabc5410da439
[ "MIT" ]
null
null
null
gunicorn/metrics/worker_stats.py
smpio/gunicorn
c2f171a985cc0980532683eb108fabc5410da439
[ "MIT" ]
1
2021-04-01T12:38:40.000Z
2021-04-01T12:38:40.000Z
import time class WorkerStats(object): def __init__(self): self.idle_time_sum = 0 self.request_started_at = time.time() self.request_ended_at = time.time() def start_request(self): self.request_started_at = time.time() self.idle_time_sum += self.request_started_at - self.request_ended_at def end_request(self): self.request_ended_at = time.time()
25.75
77
0.674757
57
412
4.491228
0.298246
0.257813
0.15625
0.234375
0.4375
0.4375
0.25
0
0
0
0
0.003145
0.228155
412
15
78
27.466667
0.801887
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
0
0
0
0
null
1
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
0
0
0
0
3
ad9bdc9c122e0de10b179d0cd99f26d908ff08e1
35
py
Python
py_social/__init__.py
movermeyer/py-social
3dc351c7b70c9d27593ef9a3dbe5cb5f07d1add6
[ "Apache-2.0", "MIT" ]
null
null
null
py_social/__init__.py
movermeyer/py-social
3dc351c7b70c9d27593ef9a3dbe5cb5f07d1add6
[ "Apache-2.0", "MIT" ]
null
null
null
py_social/__init__.py
movermeyer/py-social
3dc351c7b70c9d27593ef9a3dbe5cb5f07d1add6
[ "Apache-2.0", "MIT" ]
1
2018-03-05T01:08:11.000Z
2018-03-05T01:08:11.000Z
# coding: utf-8 VERSION = '0.1.9'
8.75
17
0.571429
7
35
2.857143
1
0
0
0
0
0
0
0
0
0
0
0.142857
0.2
35
3
18
11.666667
0.571429
0.371429
0
0
0
0
0.25
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a8dc59a205adadba3d272efd7d17d2e5130f4e99
317
py
Python
yahtzee/__main__.py
pmacking/tutorial-yahtzee-app
0be148665892dd2cb4d0e98f2afce9535bc80fce
[ "MIT" ]
null
null
null
yahtzee/__main__.py
pmacking/tutorial-yahtzee-app
0be148665892dd2cb4d0e98f2afce9535bc80fce
[ "MIT" ]
2
2021-06-08T21:53:09.000Z
2021-09-08T02:14:00.000Z
yahtzee/__main__.py
pmacking/tutorial-yahtzee-app
0be148665892dd2cb4d0e98f2afce9535bc80fce
[ "MIT" ]
null
null
null
""" Main module of the server file. """ from yahtzee import app from yahtzee.users.routes import users from yahtzee.main.routes import main from yahtzee.errors.handlers import errors app.register_blueprint(users) app.register_blueprint(main) app.register_blueprint(errors) if __name__ == "__main__": app.run()
19.8125
42
0.782334
45
317
5.266667
0.422222
0.185654
0.253165
0
0
0
0
0
0
0
0
0
0.123028
317
15
43
21.133333
0.852518
0.097792
0
0
0
0
0.028777
0
0
0
0
0
0
1
0
true
0
0.444444
0
0.444444
0.333333
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
0
1
0
1
0
0
0
0
3
a8e883d5cbf34d8f2a5c6a926852e781096330cf
1,332
py
Python
stubs.min/Autodesk/Revit/DB/Analysis_parts/gbXMLConditionType.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/Autodesk/Revit/DB/Analysis_parts/gbXMLConditionType.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/Analysis_parts/gbXMLConditionType.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class gbXMLConditionType(Enum,IComparable,IFormattable,IConvertible): """ This enumeration corresponds to the conditionType attribute in gbXML. The enumerated attribute identifies the type of heating,cooling, or ventilation the space has. enum gbXMLConditionType,values: Cooled (1),Heated (0),HeatedAndCooled (2),NaturallyVentedOnly (5),NoConditionType (-1),NoOfConditionTypes (6),Unconditioned (3),Vented (4) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self,*args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self,*args): pass def __gt__(self,*args): pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self,*args): pass def __lt__(self,*args): pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass Cooled=None Heated=None HeatedAndCooled=None NaturallyVentedOnly=None NoConditionType=None NoOfConditionTypes=None Unconditioned=None value__=None Vented=None
31.714286
215
0.701201
164
1,332
5.115854
0.414634
0.095352
0.100119
0.107271
0.153754
0.153754
0.153754
0.134684
0.134684
0.134684
0
0.007181
0.163664
1,332
41
216
32.487805
0.745961
0.506006
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
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
1
0
1
0
0
1
0
0
3
a8eb0e88297fb92354bc2a44658af92dfb20f29a
1,315
py
Python
test/jpypetest/test_repr.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
test/jpypetest/test_repr.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
test/jpypetest/test_repr.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
import jpype from jpype.types import * from jpype import JPackage, java import common class ReprTestCase(common.JPypeTestCase): def setUp(self): common.JPypeTestCase.setUp(self) def testClass(self): cls = JClass("java.lang.String") self.assertIsInstance(str(cls), str) self.assertIsInstance(repr(cls), str) def testMethod(self): JS = JClass("java.lang.String") method = JS.substring self.assertIsInstance(str(method), str) self.assertIsInstance(repr(method), str) def testField(self): JS = JClass("java.lang.String") field = JS.__dict__['CASE_INSENSITIVE_ORDER'] self.assertIsInstance(str(JS.substring), str) self.assertIsInstance(repr(JS.substring), str) def testMonitor(self): JI = JClass("java.lang.Integer") with jpype.synchronized(JI) as monitor: self.assertIsInstance(str(monitor), str) self.assertIsInstance(repr(monitor), str) def testArray(self): array = JArray(JInt)([1, 2, 3]) self.assertIsInstance(str(array), str) self.assertIsInstance(repr(array), str) def testObject(self): obj = JObject("abc", JObject) self.assertIsInstance(str(obj), str) self.assertIsInstance(repr(obj), str)
29.886364
54
0.644867
149
1,315
5.651007
0.328859
0.285036
0.163895
0.192399
0.061758
0.061758
0
0
0
0
0
0.002973
0.2327
1,315
43
55
30.581395
0.831516
0
0
0.058824
0
0
0.068441
0.01673
0
0
0
0
0.352941
1
0.205882
false
0
0.117647
0
0.352941
0
0
0
0
null
1
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
0
0
0
0
3
d1312543db0469bd05c667b7e1fa15716ae9e727
248
py
Python
Python POO/Cursopythonyt/drunk.py
lucasjlgc/Python-POO
56c98e7abb47a0268396f1981e58a0a2441db4fe
[ "MIT" ]
null
null
null
Python POO/Cursopythonyt/drunk.py
lucasjlgc/Python-POO
56c98e7abb47a0268396f1981e58a0a2441db4fe
[ "MIT" ]
null
null
null
Python POO/Cursopythonyt/drunk.py
lucasjlgc/Python-POO
56c98e7abb47a0268396f1981e58a0a2441db4fe
[ "MIT" ]
null
null
null
from bebado import Bebado p1=Bebado('Carlos',23) p1.beber('Cerveja') p1.parar_beber('cerveja') p1.parar_beber('cerveja') p1.beber('Whisky') p1.brigar('Chutes') p1.parar_beber('Whisky') p1.brigar('Chutes') #print(f'{p1.nome} tem {p1.idade} anos ')
20.666667
41
0.717742
40
248
4.375
0.45
0.205714
0.24
0.217143
0.582857
0.297143
0.297143
0
0
0
0
0.052174
0.072581
248
12
41
20.666667
0.708696
0.16129
0
0.444444
0
0
0.245192
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
0
0
0
0
0
3
d1343ea8c85d1fd2695764e2b217ca9135fbc32a
192
py
Python
PMMH/apps/game/battlefield/urls.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
null
null
null
PMMH/apps/game/battlefield/urls.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
4
2021-03-19T02:37:45.000Z
2022-02-10T11:18:04.000Z
PMMH/apps/game/battlefield/urls.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
1
2019-10-21T20:32:20.000Z
2019-10-21T20:32:20.000Z
from django.urls import path from . import views urlpatterns = [ path('ground', views.battle_ground, name='Ground Battle'), path('naval', views.battle_naval, name='Naval Battle'), ]
21.333333
62
0.703125
25
192
5.32
0.44
0.165414
0
0
0
0
0
0
0
0
0
0
0.15625
192
8
63
24
0.820988
0
0
0
0
0
0.188482
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
d14a5a719a4cc3c4107a2c984cc52aa63edc1a41
340
py
Python
ACM ICPC/Math/TowerofHanoi/t-hanoi.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
ACM ICPC/Math/TowerofHanoi/t-hanoi.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
ACM ICPC/Math/TowerofHanoi/t-hanoi.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
c = int() def hanoi(discs, main, target, aux): global c if discs >= 1: c = c + 1 hanoi(discs - 1, main, aux, target) print("[{}] -> Move disc {} from {} to {}".format(c, discs, main, target)) hanoi(discs - 1, aux, target, main) if __name__ == "__main__": discs = int(input()) hanoi(discs, "main", "target", "aux")
24.285714
78
0.561765
49
340
3.734694
0.387755
0.218579
0.245902
0.218579
0.251366
0
0
0
0
0
0
0.015385
0.235294
340
14
79
24.285714
0.688462
0
0
0
0
0
0.16129
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.090909
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
0
0
3
d14aad895aa1ab2d43330b677dee78f21d229e8d
927
py
Python
DQM/EcalPreshowerMonitorModule/python/EcalPreshowerMonitorTasks_withFEDIntegrity_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/EcalPreshowerMonitorModule/python/EcalPreshowerMonitorTasks_withFEDIntegrity_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/EcalPreshowerMonitorModule/python/EcalPreshowerMonitorTasks_withFEDIntegrity_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQM.EcalPreshowerMonitorModule.ESRawDataTask_cfi import * from DQM.EcalPreshowerMonitorModule.ESIntegrityTask_cfi import * from DQM.EcalPreshowerMonitorModule.ESFEDIntegrityTask_cfi import * #from DQM.EcalPreshowerMonitorModule.ESPedestalTask_cfi import * from DQM.EcalPreshowerMonitorModule.ESOccupancyTask_cfi import * from DQM.EcalPreshowerMonitorModule.ESTimingTask_cfi import * from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer dqmInfoES = DQMEDAnalyzer('DQMEventInfo', subSystemFolder = cms.untracked.string('EcalPreshower') ) #ecalPreshowerDefaultTasksSequence = cms.Sequence(ecalPreshowerOccupancyTask*ecalPreshowerPedestalTask) ecalPreshowerDefaultTasksSequence = cms.Sequence(ecalPreshowerRawDataTask*ecalPreshowerFEDIntegrityTask*ecalPreshowerIntegrityTask*ecalPreshowerOccupancyTask*ecalPreshowerTimingTask)
51.5
182
0.839266
69
927
11.188406
0.478261
0.054404
0.256477
0.103627
0.272021
0
0
0
0
0
0
0
0.106796
927
17
183
54.529412
0.932367
0.177994
0
0
0
0
0.032938
0
0
0
0
0
0
1
0
false
0
0.636364
0
0.636364
0
0
0
1
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
0
0
0
1
0
0
0
0
3
d150f23eb0930c78fbbd9327527d8ac972aa58a3
60
py
Python
geotrek/trekking/__init__.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/trekking/__init__.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/trekking/__init__.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
default_app_config = 'geotrek.trekking.apps.TrekkingConfig'
30
59
0.85
7
60
7
1
0
0
0
0
0
0
0
0
0
0
0
0.05
60
1
60
60
0.859649
0
0
0
0
0
0.6
0.6
0
0
0
0
0
1
0
false
0
0
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d1637f863593a9e1adc420f7db46601da9790e70
111
py
Python
rate_severity_of_toxic_comments/__init__.py
ilSommo/rate-severity-of-toxic-comments
c0c28475c4d83eeeea72012df6911fc10ba0edbf
[ "MIT" ]
1
2022-02-25T18:37:02.000Z
2022-02-25T18:37:02.000Z
rate_severity_of_toxic_comments/__init__.py
ilSommo/rate-severity-of-toxic-comments
c0c28475c4d83eeeea72012df6911fc10ba0edbf
[ "MIT" ]
null
null
null
rate_severity_of_toxic_comments/__init__.py
ilSommo/rate-severity-of-toxic-comments
c0c28475c4d83eeeea72012df6911fc10ba0edbf
[ "MIT" ]
null
null
null
__version__ = '1.0.0-rc.1' __author__ = 'Lorenzo Menghini, Martino Pulici, Alessandro Stockman, Luca Zucchini'
37
83
0.765766
15
111
5.133333
0.866667
0
0
0
0
0
0
0
0
0
0
0.040816
0.117117
111
2
84
55.5
0.744898
0
0
0
0
0
0.702703
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d1647f02cd0ce31ce5e58ceba7cc72b1ca175bc4
490
py
Python
quadmodel/deflector_models/sis.py
dangilman/quadmodel
35bcb3e7f4bd45729ac809af76550456fc10779e
[ "MIT" ]
1
2021-09-24T00:42:56.000Z
2021-09-24T00:42:56.000Z
quadmodel/deflector_models/sis.py
dangilman/quadmodel
35bcb3e7f4bd45729ac809af76550456fc10779e
[ "MIT" ]
1
2022-02-28T00:43:31.000Z
2022-02-28T00:43:31.000Z
quadmodel/deflector_models/sis.py
dangilman/quadmodel
35bcb3e7f4bd45729ac809af76550456fc10779e
[ "MIT" ]
null
null
null
from quadmodel.deflector_models.model_base import ComponentBase class SIS(ComponentBase): def __init__(self, redshift, kwargs_init=None): self._redshift = redshift super(SIS, self).__init__(self.lens_model_list, [redshift], kwargs_init) @property def n_models(self): return 1 @property def lens_model_list(self): return ['SIS'] @property def redshift_list(self): return [self._redshift] * len(self.lens_model_list)
22.272727
80
0.681633
60
490
5.2
0.4
0.115385
0.125
0.108974
0
0
0
0
0
0
0
0.002625
0.222449
490
21
81
23.333333
0.816273
0
0
0.214286
0
0
0.006122
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.214286
0.642857
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
0
1
1
0
0
3
d1766c0f12e4d4e8fcd72423c6aa68d4b7e1ba00
618
py
Python
tamcolors/tam_tools/__init__.py
cmcmarrow/tamcolors
65a5f2455bbe35a739b98d14af158c3df7feb786
[ "Apache-2.0" ]
29
2020-07-17T23:46:17.000Z
2022-02-06T05:36:44.000Z
tamcolors/tam_tools/__init__.py
sudo-nikhil/tamcolors
65a5f2455bbe35a739b98d14af158c3df7feb786
[ "Apache-2.0" ]
42
2020-07-25T19:39:52.000Z
2021-02-24T01:19:58.000Z
tamcolors/tam_tools/__init__.py
sudo-nikhil/tamcolors
65a5f2455bbe35a739b98d14af158c3df7feb786
[ "Apache-2.0" ]
8
2020-07-18T23:02:48.000Z
2020-12-30T04:07:35.000Z
from . import tam_color_palette from . import tam_fade from . import tam_film from . import tam_key_manager from . import tam_list_surface from . import tam_menu from . import tam_placing from . import tam_print from . import tam_str from . import tam_text_box from . import tam_icon """ tam_tools gives tools that support tam """ __all__ = ("tam_color_palette", "tam_fade", "tam_film", "tam_key_manager", "tam_list_surface", "tam_menu", "tam_placing", "tam_print", "tam_str", "tam_text_box", "tam_icon")
21.310345
38
0.627832
82
618
4.304878
0.280488
0.311615
0.405099
0
0
0
0
0
0
0
0
0
0.288026
618
28
39
22.071429
0.802273
0
0
0
0
0
0.208042
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.090909
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
0
0
1
0
0
0
0
3
d17682133ce8c7d78ccc0218bc51adef8118a2cf
426
py
Python
config/config.py
minskylab/antevorta
e90ef285819c6466b844ed05c8d71908269d828a
[ "MIT" ]
null
null
null
config/config.py
minskylab/antevorta
e90ef285819c6466b844ed05c8d71908269d828a
[ "MIT" ]
null
null
null
config/config.py
minskylab/antevorta
e90ef285819c6466b844ed05c8d71908269d828a
[ "MIT" ]
null
null
null
from decouple import config HOST: str = config("HOST", default="0.0.0.0", cast=str) PORT: int = config("PORT", default=8080, cast=int) CONCURRENT_TASKS: int = config('CONCURRENT_TASKS', default=50, cast=int) ADMIN_SECRET: str | None = config('ADMIN_SECRET', default=None) DIRECTUS_CREATE_RESOURCE_ENDPOINT: str = config("DIRECTUS_CREATE_RESOURCE_ENDPOINT", cast=str) DIRECTUS_TOKEN: str = config("DIRECTUS_TOKEN", cast=str)
42.6
94
0.762911
62
426
5.048387
0.370968
0.086262
0.019169
0.191693
0
0
0
0
0
0
0
0.025974
0.096244
426
9
95
47.333333
0.787013
0
0
0
0
0
0.211268
0.077465
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
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
1
0
0
0
0
0
0
3
66f8f7912a33eb81d436098b5ca693caa894ce2a
296
py
Python
workflow/scripts/adsorbate/vacuum_converge.py
sevyharris/qe_workflow
2a9324f16d06c8c37989b5580b10738492fe9957
[ "MIT" ]
null
null
null
workflow/scripts/adsorbate/vacuum_converge.py
sevyharris/qe_workflow
2a9324f16d06c8c37989b5580b10738492fe9957
[ "MIT" ]
3
2022-03-08T15:48:11.000Z
2022-03-08T16:34:01.000Z
workflow/scripts/adsorbate/vacuum_converge.py
sevyharris/qe_workflow
2a9324f16d06c8c37989b5580b10738492fe9957
[ "MIT" ]
null
null
null
import os import sys import adlib.adsorbate.convergence adsorbate_dir = sys.argv[1] adsorbate_pwo = sys.argv[2] adlib.adsorbate.convergence.setup_converge(adsorbate_dir, 'vacuum_converge', adsorbate_pwo=adsorbate_pwo) adlib.adsorbate.convergence.run_converge(adsorbate_dir, 'vacuum_converge')
26.909091
105
0.837838
40
296
5.95
0.375
0.176471
0.315126
0.218487
0.285714
0
0
0
0
0
0
0.007246
0.067568
296
10
106
29.6
0.855072
0
0
0
0
0
0.101351
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
0
0
0
0
3
0f0b100789776fe7224596b6a4237e43840b4a44
226
py
Python
src/CTL/__init__.py
wistaria/CTL
ddb0f917369df4e7233b5ab097595c6ce254862e
[ "MIT" ]
11
2021-06-23T15:47:03.000Z
2022-03-17T03:29:55.000Z
src/CTL/__init__.py
wistaria/CTL
ddb0f917369df4e7233b5ab097595c6ce254862e
[ "MIT" ]
1
2021-10-16T15:10:54.000Z
2021-10-16T15:10:54.000Z
src/CTL/__init__.py
wistaria/CTL
ddb0f917369df4e7233b5ab097595c6ce254862e
[ "MIT" ]
2
2021-06-23T09:11:20.000Z
2021-10-16T15:35:18.000Z
import CTL.funcs.xplib as xplib def setXP(newXP): ''' Set the *py(e.g. numpy, cupy) library for CTL newXP : object, default numpy The numpy-like library for numeric functions. ''' xplib.xp = newXP
22.6
53
0.637168
33
226
4.363636
0.69697
0.138889
0
0
0
0
0
0
0
0
0
0
0.261062
226
10
54
22.6
0.862275
0.557522
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
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
1
0
0
1
0
1
0
0
3
0f0bcb29255d61b052314f31dc9f7cc80af38ed4
141
py
Python
kaztron/cog/projects/__init__.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
6
2018-07-04T20:41:01.000Z
2021-09-08T08:10:34.000Z
kaztron/cog/projects/__init__.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
259
2018-05-01T22:41:32.000Z
2022-02-08T23:25:00.000Z
kaztron/cog/projects/__init__.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
6
2019-04-16T22:13:15.000Z
2021-12-15T08:06:38.000Z
def setup(bot): from .projects import ProjectsManager from .query import init_db init_db() bot.add_cog(ProjectsManager(bot))
23.5
41
0.716312
19
141
5.157895
0.631579
0.122449
0
0
0
0
0
0
0
0
0
0
0.198582
141
5
42
28.2
0.867257
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
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
0
1
0
0
0
0
3
0f1e1d9ae20c4289cc5e5ebbcdd71d3760061dd5
144
py
Python
article/models.py
memoartpad/orders
032eed1e881a1faa4d8ca7765a3afec247121649
[ "MIT" ]
null
null
null
article/models.py
memoartpad/orders
032eed1e881a1faa4d8ca7765a3afec247121649
[ "MIT" ]
null
null
null
article/models.py
memoartpad/orders
032eed1e881a1faa4d8ca7765a3afec247121649
[ "MIT" ]
null
null
null
from django.db import models class Article(models.Model): code = models.IntegerField() description = models.CharField(max_length=256)
20.571429
50
0.75
18
144
5.944444
0.833333
0
0
0
0
0
0
0
0
0
0
0.02459
0.152778
144
6
51
24
0.852459
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
1
0
0
3
0f360beab67fbf9625bccccd3f10b754df21c6d3
755
py
Python
anif/anif.py
bp15046/iot-access-network-interface-sdk-python3
9f81d4bb16571dfb07ceb18593b98dd0c97947f6
[ "MIT" ]
null
null
null
anif/anif.py
bp15046/iot-access-network-interface-sdk-python3
9f81d4bb16571dfb07ceb18593b98dd0c97947f6
[ "MIT" ]
null
null
null
anif/anif.py
bp15046/iot-access-network-interface-sdk-python3
9f81d4bb16571dfb07ceb18593b98dd0c97947f6
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class AccessNetworkInterface(metaclass=ABCMeta): def __init__(self, addr, port): self._addr = addr self._port = port self._file = None self._data = None def open(self, file): self._file = file self._connect() def close(self): self._file = None self._disconnect() def write(self, data): self._data = data self._send() def read(self): return self._recv() @abstractmethod def _connect(self): pass @abstractmethod def _disconnect(self): pass @abstractmethod def _send(self): pass @abstractmethod def _recv(self): pass
18.875
48
0.562914
78
755
5.205128
0.333333
0.078818
0.162562
0.184729
0
0
0
0
0
0
0
0
0.349669
755
40
49
18.875
0.826884
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.3
false
0.133333
0.033333
0.033333
0.4
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
1
0
0
0
0
0
3
0f4d7fb1bf3d8288c6ba7c545419afc910a8ecaf
27
py
Python
config.py
ttkltll2/fisher_review
01070316d1e0854fb03460956b67c5c2ed0030be
[ "MIT" ]
null
null
null
config.py
ttkltll2/fisher_review
01070316d1e0854fb03460956b67c5c2ed0030be
[ "MIT" ]
3
2020-09-15T23:37:18.000Z
2020-09-16T00:36:55.000Z
config.py
ttkltll2/fisher_review
01070316d1e0854fb03460956b67c5c2ed0030be
[ "MIT" ]
1
2020-09-15T02:55:54.000Z
2020-09-15T02:55:54.000Z
DEBUG = False PER_PAGE = 10
13.5
13
0.740741
5
27
3.8
1
0
0
0
0
0
0
0
0
0
0
0.090909
0.185185
27
2
14
13.5
0.772727
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0f53006adda19f70842f3a41f5aaa4bd0045d628
465
py
Python
{{cookiecutter.repo_name}}/hseling_lib_{{cookiecutter.package_name}}/tests/test_hseling_api_{{cookiecutter.package_name}}.py
nikita-pershukov/hseling-cookiecutter
6a8bed4ad7a8245e50f0c68daa209f6009a15dd9
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/hseling_lib_{{cookiecutter.package_name}}/tests/test_hseling_api_{{cookiecutter.package_name}}.py
nikita-pershukov/hseling-cookiecutter
6a8bed4ad7a8245e50f0c68daa209f6009a15dd9
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/hseling_lib_{{cookiecutter.package_name}}/tests/test_hseling_api_{{cookiecutter.package_name}}.py
nikita-pershukov/hseling-cookiecutter
6a8bed4ad7a8245e50f0c68daa209f6009a15dd9
[ "MIT" ]
1
2020-09-14T14:44:14.000Z
2020-09-14T14:44:14.000Z
import unittest import hseling_api_{{cookiecutter.package_name}} class HSELing_API_{{cookiecutter.package_name.capitalize()}}TestCase(unittest.TestCase): def setUp(self): self.app = hseling_api_{{cookiecutter.package_name}}.app.test_client() def test_index(self): rv = self.app.get('/') self.assertIn('Welcome to hseling_api_{{cookiecutter.application_name}}', rv.data.decode()) if __name__ == '__main__': unittest.main()
25.833333
99
0.713978
56
465
5.535714
0.482143
0.129032
0.283871
0.280645
0.319355
0
0
0
0
0
0
0
0.146237
465
17
100
27.352941
0.780856
0
0
0
0
0
0.139785
0.096774
0
0
0
0
0.1
0
null
null
0
0.2
null
null
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
1
0
0
0
0
0
0
0
0
3
7e3ecc2e0b14a334d86baa7fe79cab6f47e0ef01
342
py
Python
tests/unit/test_utils_filesystem.py
q0w/pip
422719863a061640a84c6292e7d86d81e22c938c
[ "MIT" ]
null
null
null
tests/unit/test_utils_filesystem.py
q0w/pip
422719863a061640a84c6292e7d86d81e22c938c
[ "MIT" ]
1
2022-01-27T19:09:25.000Z
2022-01-27T19:09:25.000Z
tests/unit/test_utils_filesystem.py
q0w/pip
422719863a061640a84c6292e7d86d81e22c938c
[ "MIT" ]
null
null
null
import os from pathlib import Path def make_file(path: str) -> None: Path(path).touch() def make_valid_symlink(path: str) -> None: target = path + "1" make_file(target) os.symlink(target, path) def make_broken_symlink(path: str) -> None: os.symlink("foo", path) def make_dir(path: str) -> None: os.mkdir(path)
16.285714
43
0.654971
52
342
4.173077
0.365385
0.129032
0.202765
0.165899
0
0
0
0
0
0
0
0.003676
0.204678
342
20
44
17.1
0.794118
0
0
0
0
0
0.011696
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.5
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
0
0
0
3
7e439c1327bb8232bcec330aeba5f4fa6d2bd62b
255
py
Python
minecraft_mod_manager/app/configure/configure_repo.py
lospejos/minecraft-mod-manager
49ec3f6e22dd07a6389d8704bf97c4068be79660
[ "MIT" ]
56
2021-02-13T20:28:35.000Z
2022-03-27T17:29:54.000Z
minecraft_mod_manager/app/configure/configure_repo.py
lospejos/minecraft-mod-manager
49ec3f6e22dd07a6389d8704bf97c4068be79660
[ "MIT" ]
102
2020-11-11T13:19:38.000Z
2022-03-31T18:27:06.000Z
minecraft_mod_manager/app/configure/configure_repo.py
lospejos/minecraft-mod-manager
49ec3f6e22dd07a6389d8704bf97c4068be79660
[ "MIT" ]
8
2021-02-17T20:27:32.000Z
2022-03-21T20:06:30.000Z
from typing import Union from ...core.entities.mod import Mod class ConfigureRepo: def get_mod(self, id: str) -> Union[Mod, None]: raise NotImplementedError() def update_mod(self, mod: Mod) -> None: raise NotImplementedError()
21.25
51
0.678431
32
255
5.34375
0.5625
0.081871
0.140351
0.362573
0
0
0
0
0
0
0
0
0.215686
255
11
52
23.181818
0.855
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
0.714286
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
0
1
0
0
3
7e52e5459beef89dbde5df7e38aa4d430b9e1a6b
129
py
Python
anet/tasks/hexagrid/__init__.py
thomasaunger/Anet
1d353f280a30c3207fa6d09af91a85c4955bbda4
[ "BSD-3-Clause" ]
null
null
null
anet/tasks/hexagrid/__init__.py
thomasaunger/Anet
1d353f280a30c3207fa6d09af91a85c4955bbda4
[ "BSD-3-Clause" ]
null
null
null
anet/tasks/hexagrid/__init__.py
thomasaunger/Anet
1d353f280a30c3207fa6d09af91a85c4955bbda4
[ "BSD-3-Clause" ]
null
null
null
from gym.envs.registration import register register( id="ArdaEnv-v0", entry_point="anet.tasks.hexagrid.envs:ArdaEnv", )
18.428571
51
0.736434
17
129
5.529412
0.823529
0
0
0
0
0
0
0
0
0
0
0.008929
0.131783
129
6
52
21.5
0.830357
0
0
0
0
0
0.325581
0.248062
0
0
0
0
0
1
0
true
0
0.2
0
0.2
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
0
0
0
3
7e54b22da73510f9c74e8d6b7e1f245b57e92e2e
698
py
Python
src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/profile/utilityspace/LinearAdditive.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
1
2022-02-17T19:14:46.000Z
2022-02-17T19:14:46.000Z
src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/profile/utilityspace/LinearAdditive.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
null
null
null
src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/profile/utilityspace/LinearAdditive.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
null
null
null
from decimal import Decimal from typing import Dict from geniusweb.profile.utilityspace.UtilitySpace import UtilitySpace from geniusweb.profile.utilityspace.ValueSetUtilities import ValueSetUtilities class LinearAdditive ( UtilitySpace): ''' interface to a Utilityspace that is linear-additive. ''' def getUtilities(self) -> Dict[str, ValueSetUtilities] : ''' @return the map from issue names to valuesetutilities (un-weighted) ''' def getWeights(self) -> Dict[str, Decimal] : ''' @return the map from issue names to weights. weights sum to 1. ''' def getWeight(self, issue:str) -> Decimal: ''' @param issue the issue name @return the weight of the given issue '''
24.928571
78
0.734957
85
698
6.035294
0.458824
0.052632
0.077973
0.124756
0.109162
0.109162
0.109162
0
0
0
0
0.001724
0.169054
698
27
79
25.851852
0.882759
0.356734
0
0
0
0
0.151767
0
0
0
0
0
0
1
0.272727
false
0
0.363636
0
0.727273
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
0
1
0
0
3
7e584133e626487b3d0ffb903947153696ce6808
124
py
Python
rdmo/questions/widgets.py
m6121/rdmo
db3990c7525138c6ce9634fc3e5b6b8ee9b915c8
[ "Apache-2.0" ]
77
2016-08-09T11:40:20.000Z
2022-03-06T11:03:26.000Z
rdmo/questions/widgets.py
m6121/rdmo
db3990c7525138c6ce9634fc3e5b6b8ee9b915c8
[ "Apache-2.0" ]
377
2016-07-01T13:59:36.000Z
2022-03-30T13:53:19.000Z
rdmo/questions/widgets.py
m6121/rdmo
db3990c7525138c6ce9634fc3e5b6b8ee9b915c8
[ "Apache-2.0" ]
47
2016-06-23T11:32:19.000Z
2022-03-01T11:34:37.000Z
from rdmo.core.plugins import Plugin class Widget(Plugin): template_name = None scss_files = [] js_files = []
15.5
36
0.669355
16
124
5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.233871
124
7
37
17.714286
0.842105
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
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
0
0
1
0
0
3
7e59f32d126fed1639cadacdfa01807269d0cc51
184
py
Python
workers/base/constantes.py
rjcorflo/ServerMessageWorkers
55659dc73719867a57f83d9ec0231fa4001e51a2
[ "MIT" ]
null
null
null
workers/base/constantes.py
rjcorflo/ServerMessageWorkers
55659dc73719867a57f83d9ec0231fa4001e51a2
[ "MIT" ]
null
null
null
workers/base/constantes.py
rjcorflo/ServerMessageWorkers
55659dc73719867a57f83d9ec0231fa4001e51a2
[ "MIT" ]
null
null
null
""" Constants """ MONGO_DOCKER_SERVICE = "db" MONGO_HOST = "192.168.99.100" MONGO_PORT = 27017 RABBIT_DOCKER_SERVICE = "rabbit" RABBIT_HOST = "192.168.99.100" RABBIT_PORT = 5672
11.5
32
0.711957
27
184
4.555556
0.518519
0.211382
0.162602
0.195122
0.243902
0
0
0
0
0
0
0.197452
0.146739
184
15
33
12.266667
0.585987
0.048913
0
0
0
0
0.215569
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
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
0
0
0
0
0
0
0
0
3
7e7bc26f31749a74de5c674f09370bb53e65cb60
352
py
Python
backapi/admin.py
rashiddaha/health-care-backend
ed9f918a30f1648501184804816ab98d00bcc3ed
[ "MIT" ]
null
null
null
backapi/admin.py
rashiddaha/health-care-backend
ed9f918a30f1648501184804816ab98d00bcc3ed
[ "MIT" ]
null
null
null
backapi/admin.py
rashiddaha/health-care-backend
ed9f918a30f1648501184804816ab98d00bcc3ed
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Measurement, DeductCreditSetting @admin.register(Measurement) class MeasurementAdmin(admin.ModelAdmin): list_display = ['category', 'user', 'value', 'created'] @admin.register(DeductCreditSetting) class MeasurementAdmin(admin.ModelAdmin): list_display = ['amount', 'updated', 'created']
27.076923
59
0.767045
35
352
7.657143
0.571429
0.097015
0.19403
0.268657
0.350746
0.350746
0
0
0
0
0
0
0.107955
352
12
60
29.333333
0.853503
0
0
0.25
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
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
0
0
1
0
0
3
7e82f86a625e002de34204df557f4a84525b06a0
118
py
Python
Django-Python-Full-Stack-Web-Devloper-master/Django_Level_Two/ProTwo/appTwo/urls.py
apoorv-x12/Django
2b052e654571e4703beb22ad562efab0520f845c
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
Django-Python-Full-Stack-Web-Devloper-master/Django_Level_Two/ProTwo/appTwo/urls.py
apoorv-x12/Django
2b052e654571e4703beb22ad562efab0520f845c
[ "MIT" ]
2
2021-12-10T10:25:19.000Z
2021-12-10T10:27:15.000Z
Web-Dev/DJANGO_COURSE_1.xx/Django_Level_Two/ProTwo/appTwo/urls.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
null
null
null
from django.conf.urls import url from appTwo import views urlpatterns = [ url(r'^$',views.users,name='users'), ]
16.857143
40
0.694915
17
118
4.823529
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.152542
118
6
41
19.666667
0.82
0
0
0
0
0
0.059322
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
0
3
7e99afaaf2016aa09354d255dce00660222efbd7
2,434
py
Python
tests/test_packing.py
grantps/superhelp
d8e861bf1ad91571ac23b9c833a8cd461bb1952f
[ "MIT" ]
27
2020-05-17T20:48:43.000Z
2022-01-08T21:32:30.000Z
tests/test_packing.py
grantps/superhelp
d8e861bf1ad91571ac23b9c833a8cd461bb1952f
[ "MIT" ]
null
null
null
tests/test_packing.py
grantps/superhelp
d8e861bf1ad91571ac23b9c833a8cd461bb1952f
[ "MIT" ]
null
null
null
from textwrap import dedent from tests import check_as_expected ROOT = 'superhelp.helpers.packing_help.' def test_misc(): test_conf = [ ( dedent("""\ pet = 'cat' """), { ROOT + 'unpacking': 0, ROOT + 'unpacking_opportunity': 0, } ), ( dedent("""\ x, y = coord """), { ROOT + 'unpacking': 1, ROOT + 'unpacking_opportunity': 0, } ), ( dedent("""\ x, y = coord1 x, y = coord2 """), { ROOT + 'unpacking': 2, ROOT + 'unpacking_opportunity': 0, } ), ( dedent("""\ for i in range(2): x, y = coord1 x, y = coord2 """), { ROOT + 'unpacking': 1, ## in one block so one message ROOT + 'unpacking_opportunity': 0, } ), ( dedent("""\ x = coord[0] y = coord[1] """), { ROOT + 'unpacking': 0, ROOT + 'unpacking_opportunity': 1, } ), ( dedent("""\ for i in range(2): x = coord[0] y = coord[1] """), { ROOT + 'unpacking': 0, ROOT + 'unpacking_opportunity': 1, } ), ( dedent("""\ for i in range(2): x = coord1[0] y = coord1[1] for i in range(2): x = coord2[0] y = coord2[1] """), { ROOT + 'unpacking': 0, ROOT + 'unpacking_opportunity': 1, ## snippet-level message so only the one } ), ( dedent("""\ nz_capital = capitals['NZ'] aus_capital = capitals['Australia'] """), { ROOT + 'unpacking': 0, ROOT + 'unpacking_opportunity': 0, ## snippet-level message so only the one } ), ] check_as_expected(test_conf, execute_code=True) check_as_expected(test_conf, execute_code=False) # test_misc()
24.836735
92
0.351684
191
2,434
4.356021
0.26178
0.25
0.230769
0.108173
0.691106
0.661058
0.608173
0.289663
0.171875
0.171875
0
0.031414
0.52917
2,434
97
93
25.092784
0.69459
0.047247
0
0.554348
0
0
0.42579
0.095197
0
0
0
0
0
1
0.01087
false
0
0.021739
0
0.032609
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
1
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
3
0e40192cc2908b80b283b4e06a91550f5ea67a15
207
py
Python
module_b/tests/test_the_answer.py
SwitchEV/local-actions-runner-poc
5548696f104fcd2acff07cb9f572e9cf378d5146
[ "MIT" ]
null
null
null
module_b/tests/test_the_answer.py
SwitchEV/local-actions-runner-poc
5548696f104fcd2acff07cb9f572e9cf378d5146
[ "MIT" ]
1
2021-09-02T12:14:37.000Z
2021-09-02T12:14:37.000Z
module_b/tests/test_the_answer.py
SwitchEV/local-actions-runner-poc
5548696f104fcd2acff07cb9f572e9cf378d5146
[ "MIT" ]
null
null
null
from module_b.main import get_the_question QUESTION: str = "life universe and everything" def test_given_question_is_known_when_asked_for_question_then_answer(): assert QUESTION == get_the_question()
25.875
71
0.826087
31
207
5.032258
0.774194
0.076923
0.179487
0
0
0
0
0
0
0
0
0
0.115942
207
7
72
29.571429
0.852459
0
0
0
0
0
0.135266
0
0
0
0
0
0.25
1
0.25
true
0
0.25
0
0.5
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
1
0
0
0
0
0
0
3
0e499c187067cedd813ed0fb842eae9d4f1fff63
65
py
Python
lambdata_razzlestorm/__init__.py
razzlestorm/lambdata_razzlestorm
1877320277d0b9ca376c6c12eb34c404581bd75f
[ "MIT" ]
1
2022-02-01T21:20:26.000Z
2022-02-01T21:20:26.000Z
lambdata_razzlestorm/__init__.py
razzlestorm/lambdata_razzlestorm
1877320277d0b9ca376c6c12eb34c404581bd75f
[ "MIT" ]
4
2020-03-24T17:58:31.000Z
2021-06-02T00:59:15.000Z
lambdata_razzlestorm/__init__.py
razzlestorm/lambdata_razzlestorm
1877320277d0b9ca376c6c12eb34c404581bd75f
[ "MIT" ]
null
null
null
__version__ = "0.0.2" my_str = "this is my_str from __init__.py"
21.666667
42
0.707692
13
65
2.769231
0.769231
0.277778
0
0
0
0
0
0
0
0
0
0.054545
0.153846
65
2
43
32.5
0.6
0
0
0
0
0
0.553846
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
3
0e4a453dcb1974245d3bb3acba5d91a3fee0897e
85
py
Python
bad-analytics.js/constant.py
pcnoic/bad-analytics.js
f3b7492641f218135292ab36d7c611a659d917be
[ "Apache-2.0" ]
null
null
null
bad-analytics.js/constant.py
pcnoic/bad-analytics.js
f3b7492641f218135292ab36d7c611a659d917be
[ "Apache-2.0" ]
null
null
null
bad-analytics.js/constant.py
pcnoic/bad-analytics.js
f3b7492641f218135292ab36d7c611a659d917be
[ "Apache-2.0" ]
null
null
null
MALICIOUS_LOCATION = "/wp-includes/js/jquery/jquery-migrate.min.js" WORKDIR = "tmp/"
28.333333
67
0.752941
12
85
5.25
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.070588
85
2
68
42.5
0.797468
0
0
0
0
0
0.564706
0.517647
0
0
0
0
0
1
0
false
0
0
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0e7df7d18008dd81f9c66a3058f43866f859f741
121
py
Python
tests/__init__.py
azadoks/aiida-openmx
2298a95c0f10e63d8d83d36ebec5746ff579a5e4
[ "MIT" ]
null
null
null
tests/__init__.py
azadoks/aiida-openmx
2298a95c0f10e63d8d83d36ebec5746ff579a5e4
[ "MIT" ]
1
2021-02-16T10:46:58.000Z
2021-02-18T11:07:14.000Z
tests/__init__.py
zooks97/aiida-openmx
2298a95c0f10e63d8d83d36ebec5746ff579a5e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for aiida-openmx.""" import os TEST_DIR = os.path.dirname(os.path.realpath(__file__))
17.285714
54
0.661157
18
121
4.166667
0.833333
0.16
0
0
0
0
0
0
0
0
0
0.009434
0.123967
121
6
55
20.166667
0.698113
0.380165
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
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
0
0
0
3
7ec468435a3ef92a6bd73a6f59ebfddeb792d19c
1,867
py
Python
plugged/uri.py
tantalum7/plugged
0eed969d034fd9eb09ed1691af10bbe702fe8912
[ "WTFPL" ]
null
null
null
plugged/uri.py
tantalum7/plugged
0eed969d034fd9eb09ed1691af10bbe702fe8912
[ "WTFPL" ]
3
2021-03-31T18:39:28.000Z
2021-12-13T19:48:38.000Z
plugged/uri.py
tantalum7/plugged
0eed969d034fd9eb09ed1691af10bbe702fe8912
[ "WTFPL" ]
null
null
null
import urllib import urllib.parse import zlib class Uri: def __init__(self, scheme: str, hostname: str, port: int, resource: str): """ Simple Uri (Universal Resource Identifier) class to split/join uri components format: scheme://hostname:port/resource (e.g. http://stuff.com:1234/personal/addressbook.xml)""" self.scheme = scheme self.hostname = hostname self.port = port self.resource = resource @classmethod def parse(cls, url_string): """ Create a Uri instance by parsing a url string""" url = urllib.parse.urlsplit(url_string) return cls(scheme=url.scheme, hostname=url.hostname, port=url.port, resource=url.path) def get_url(self, resource=None): resource = resource if resource else self.resource fmt = "{scheme}://{hostname}:{port}{resource}" if self.port is not None else "{scheme}://{hostname}{resource}" return fmt.format(scheme=self.scheme, hostname=self.hostname, port=self.port, resource=resource) def get_root_url(self): fmt = "{scheme}://{hostname}:{port}" if self.port is not None else "{scheme}://{hostname}" return fmt.format(scheme=self.scheme, hostname=self.hostname, port=self.port) def copy(self, resource=None): resource = resource if resource else self.resource return Uri(scheme=self.scheme, hostname=self.hostname, port=self.port, resource=resource) def __repr__(self): return "Uri({scheme}, {hostname}, {port}, {resource}".format(**self.__dict__) def __str__(self): return self.get_url() def __hash__(self): return zlib.adler32(repr(self).encode()) def __eq__(self, other): if isinstance(other, Uri): return other.__hash__() == self.__hash__() def __ne__(self, other): return not self.__eq__(other)
37.34
118
0.658811
239
1,867
4.953975
0.259414
0.118243
0.060811
0.065878
0.339527
0.339527
0.339527
0.339527
0.339527
0.277027
0
0.004073
0.211034
1,867
50
119
37.34
0.799728
0.116229
0
0.058824
0
0
0.099692
0.072615
0
0
0
0
0
1
0.294118
false
0
0.088235
0.117647
0.676471
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
0
1
1
0
0
3
7ec659d7a096eee0f3f3bb82b835a0ed20f2a675
164
py
Python
project1b.py
kaamila42/project1
736b5e59bf450bea852c6aa6e9454efbd6c293c6
[ "MIT" ]
null
null
null
project1b.py
kaamila42/project1
736b5e59bf450bea852c6aa6e9454efbd6c293c6
[ "MIT" ]
null
null
null
project1b.py
kaamila42/project1
736b5e59bf450bea852c6aa6e9454efbd6c293c6
[ "MIT" ]
null
null
null
filename = input("Input the Filename: " ,"py = python", "txt = text", ...) f_extns = filename.split(".") print(f " The extension of the file is '{f_extns[]}'")
41
76
0.609756
23
164
4.26087
0.652174
0.122449
0
0
0
0
0
0
0
0
0
0
0.176829
164
3
77
54.666667
0.725926
0
0
0
0
0
0.534161
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
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
1
0
0
0
0
0
0
0
0
3
7ed176c179fb0b95d199b4d2352d917cb80cf11a
234
py
Python
output/models/nist_data/list_pkg/string/schema_instance/nistschema_sv_iv_list_string_length_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/string/schema_instance/nistschema_sv_iv_list_string_length_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/string/schema_instance/nistschema_sv_iv_list_string_length_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.string.schema_instance.nistschema_sv_iv_list_string_length_4_xsd.nistschema_sv_iv_list_string_length_4 import NistschemaSvIvListStringLength4 __all__ = [ "NistschemaSvIvListStringLength4", ]
39
179
0.884615
29
234
6.448276
0.655172
0.128342
0.149733
0.192513
0.331551
0.331551
0.331551
0
0
0
0
0.018182
0.059829
234
5
180
46.8
0.831818
0
0
0
0
0
0.132479
0.132479
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
3
7edca112c9643f2a2eb351a7f74219653a370e12
30
py
Python
zendesk_viewer/api/__init__.py
arunima811/zendesk-ticket-viewer
3e567cbc6b0af29b9cb722ff1a1ac3cf73c671c1
[ "MIT" ]
null
null
null
zendesk_viewer/api/__init__.py
arunima811/zendesk-ticket-viewer
3e567cbc6b0af29b9cb722ff1a1ac3cf73c671c1
[ "MIT" ]
null
null
null
zendesk_viewer/api/__init__.py
arunima811/zendesk-ticket-viewer
3e567cbc6b0af29b9cb722ff1a1ac3cf73c671c1
[ "MIT" ]
null
null
null
__all__ = ["ZendeskApiClient"]
30
30
0.766667
2
30
9.5
1
0
0
0
0
0
0
0
0
0
0
0
0.066667
30
1
30
30
0.678571
0
0
0
0
0
0.516129
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
7eff518fbe6806796b18aeaff1294533474c066c
70
py
Python
plotter/__init__.py
davidelbaze/plotter
79871d87b6d1d35ce72159e664dd4e09eef559b7
[ "MIT" ]
null
null
null
plotter/__init__.py
davidelbaze/plotter
79871d87b6d1d35ce72159e664dd4e09eef559b7
[ "MIT" ]
null
null
null
plotter/__init__.py
davidelbaze/plotter
79871d87b6d1d35ce72159e664dd4e09eef559b7
[ "MIT" ]
null
null
null
from .plotter import Plotter, PlotterType __all__ = ["gtk3_plotter"]
17.5
41
0.771429
8
70
6.125
0.75
0
0
0
0
0
0
0
0
0
0
0.016393
0.128571
70
3
42
23.333333
0.786885
0
0
0
0
0
0.171429
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
7d025b237f59fc9d709684e8bae5d3f8d01d48f3
2,494
py
Python
fedml_core/distributed/communication/message.py
GabriJP/FedML
9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988
[ "Apache-2.0" ]
null
null
null
fedml_core/distributed/communication/message.py
GabriJP/FedML
9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988
[ "Apache-2.0" ]
null
null
null
fedml_core/distributed/communication/message.py
GabriJP/FedML
9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988
[ "Apache-2.0" ]
null
null
null
import json import logging import sys from torch import Tensor class Message: MSG_ARG_KEY_OPERATION = "operation" MSG_ARG_KEY_TYPE = "msg_type" MSG_ARG_KEY_SENDER = "sender" MSG_ARG_KEY_RECEIVER = "receiver" MSG_OPERATION_SEND = "send" MSG_OPERATION_RECEIVE = "receive" MSG_OPERATION_BROADCAST = "broadcast" MSG_OPERATION_REDUCE = "reduce" MSG_ARG_KEY_MODEL_PARAMS = "model_params" def __init__(self, msg_type=0, sender_id=0, receiver_id=0): self.msg_type = msg_type self.sender_id = sender_id self.receiver_id = receiver_id self.msg_params = { Message.MSG_ARG_KEY_TYPE: msg_type, Message.MSG_ARG_KEY_SENDER: sender_id, Message.MSG_ARG_KEY_RECEIVER: receiver_id, } def init(self, msg_params): self.msg_params = msg_params def init_from_json_string(self, json_string): self.msg_params = json.loads(json_string) self.msg_type = self.msg_params[Message.MSG_ARG_KEY_TYPE] self.sender_id = self.msg_params[Message.MSG_ARG_KEY_SENDER] self.receiver_id = self.msg_params[Message.MSG_ARG_KEY_RECEIVER] # print("msg_params = " + str(self.msg_params)) def get_sender_id(self): return self.sender_id def get_receiver_id(self): return self.receiver_id @staticmethod def _tensor_to_numpy(tensor: Tensor): return tensor.cpu().numpy().tolist() def add_params(self, key, value): if isinstance(value, Tensor): value = self._tensor_to_numpy(value) elif isinstance(value, dict): for k, v in value.items(): if not isinstance(v, Tensor): continue value[k] = self._tensor_to_numpy(v) self.msg_params[key] = value def get_params(self): return self.msg_params def add(self, key, value): self.msg_params[key] = value def get(self, key): return self.msg_params[key] def get_type(self): return self.msg_params[Message.MSG_ARG_KEY_TYPE] def to_string(self): return self.msg_params def to_json(self): json_string = json.dumps(self.msg_params) logging.info(f"json string size = {sys.getsizeof(json_string)}") return json_string def get_content(self): print_dict = self.msg_params.copy() msg_str = f"{self.msg_params[Message.MSG_ARG_KEY_TYPE]}: {print_dict}" return msg_str
29.341176
78
0.655974
344
2,494
4.40407
0.168605
0.092409
0.145875
0.09505
0.313531
0.227723
0.175578
0.139934
0.051485
0
0
0.00161
0.253007
2,494
84
79
29.690476
0.811594
0.018043
0
0.0625
0
0
0.070699
0.029424
0
0
0
0
0
1
0.21875
false
0
0.0625
0.109375
0.578125
0.03125
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
0
1
1
0
0
3
7d1a3b3018a8bfc4f70c85bafaf5e49fce9b1a38
172
py
Python
aiodocker/__init__.py
truenas/aiodocker
8edefe73832d62d70fa11a4846594bc74ae12244
[ "Apache-2.0" ]
1
2019-12-02T08:43:23.000Z
2019-12-02T08:43:23.000Z
aiodocker/__init__.py
truenas/aiodocker
8edefe73832d62d70fa11a4846594bc74ae12244
[ "Apache-2.0" ]
30
2021-08-19T04:28:08.000Z
2022-03-29T04:20:41.000Z
aiodocker/__init__.py
truenas/aiodocker
8edefe73832d62d70fa11a4846594bc74ae12244
[ "Apache-2.0" ]
null
null
null
from .docker import Docker from .exceptions import DockerContainerError, DockerError __version__ = "0.19.1" __all__ = ("Docker", "DockerError", "DockerContainerError")
19.111111
59
0.767442
17
172
7.294118
0.647059
0
0
0
0
0
0
0
0
0
0
0.02649
0.122093
172
8
60
21.5
0.794702
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
7d21e420d169da90cc5acf48d6c06ceded8ed4be
717
py
Python
discord-mensa/commands/menu.py
pblan/discord-mensa
81d07812bd958b93894c2adeae41d7b758bf0c64
[ "MIT" ]
1
2021-09-27T07:13:19.000Z
2021-09-27T07:13:19.000Z
discord-mensa/commands/menu.py
pblan/discord-mensa
81d07812bd958b93894c2adeae41d7b758bf0c64
[ "MIT" ]
4
2021-09-29T21:22:39.000Z
2021-09-29T21:26:14.000Z
discord-mensa/commands/menu.py
pblan/discord-mensa
81d07812bd958b93894c2adeae41d7b758bf0c64
[ "MIT" ]
null
null
null
import hikari import lightbulb import typing from datetime import datetime from ..helpers.utils import respond_menu from Constants import GUILD_IDS class Menu(lightbulb.slash_commands.SlashCommand): # Options id: int = lightbulb.slash_commands.Option( description="ID der Mensa (siehe https://openmensa.org)", required=True ) @property def description(self) -> str: return "Zeigt den Speiseplan einer Mensa an." @property def enabled_guilds(self) -> typing.Optional[typing.Iterable[int]]: return GUILD_IDS async def callback(self, ctx: lightbulb.context.Context) -> None: await respond_menu(ctx, ctx.option_values.id, datetime.today().weekday())
26.555556
81
0.718271
89
717
5.696629
0.595506
0.043393
0.086785
0
0
0
0
0
0
0
0
0
0.18689
717
26
82
27.576923
0.86964
0.009763
0
0.111111
0
0
0.110169
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0.111111
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
0
0
1
1
1
0
0
3
7d422fbe219a8004c509ec5071928e449b170da7
94
py
Python
boj/math/boj_1037.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
1
2022-03-01T10:32:08.000Z
2022-03-01T10:32:08.000Z
boj/math/boj_1037.py
sangjinsu/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
null
null
null
boj/math/boj_1037.py
sangjinsu/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
null
null
null
n = int(input()) nums = list(map(int, input().strip().split())) print(min(nums) * max(nums))
18.8
46
0.606383
15
94
3.8
0.733333
0.280702
0
0
0
0
0
0
0
0
0
0
0.117021
94
4
47
23.5
0.686747
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0
0
3
adbfce9fcd6ac69e8af44f7fbe04922945667ff5
134
py
Python
docs/source/examples/unordered.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
4
2015-02-24T06:50:08.000Z
2020-08-08T03:23:32.000Z
docs/source/examples/unordered.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
13
2017-07-17T15:52:09.000Z
2017-07-17T15:52:09.000Z
docs/source/examples/unordered.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
null
null
null
line = Line() line.xValues = [2, 1, 3, 4, 0] line.yValues = [2, 1, 3, 4, 0] plot = Plot() plot.add(line) plot.save("unordered.png")
14.888889
30
0.589552
25
134
3.16
0.52
0.202532
0.075949
0.101266
0.126582
0
0
0
0
0
0
0.090909
0.179104
134
8
31
16.75
0.627273
0
0
0
0
0
0.097015
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
3
adcecd56b8a4fe0993d64d6581afd6d9ce573e8e
72
py
Python
jaraco/input/win32/__init__.py
jaraco/jaraco.input
2693448286ce496efc82045ad4e1165f0479cc15
[ "MIT" ]
null
null
null
jaraco/input/win32/__init__.py
jaraco/jaraco.input
2693448286ce496efc82045ad4e1165f0479cc15
[ "MIT" ]
null
null
null
jaraco/input/win32/__init__.py
jaraco/jaraco.input
2693448286ce496efc82045ad4e1165f0479cc15
[ "MIT" ]
null
null
null
from .xinput import XInputJoystick as Joystick __all__ = ['Joystick']
14.4
46
0.763889
8
72
6.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.152778
72
4
47
18
0.836066
0
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
adf6335f49f9c0c741a9ac5b83c6d7951e1566d2
685
py
Python
modules/parser/nodes/sequential_operation_node.py
DavidMacDonald11/sea-to-c-transpiler-python-based
20c41931346b13d4bf2a12e96037f44b1add8145
[ "MIT" ]
null
null
null
modules/parser/nodes/sequential_operation_node.py
DavidMacDonald11/sea-to-c-transpiler-python-based
20c41931346b13d4bf2a12e96037f44b1add8145
[ "MIT" ]
11
2021-04-22T13:09:34.000Z
2022-01-29T22:53:58.000Z
modules/parser/nodes/sequential_operation_node.py
DavidMacDonald11/sea-to-c-transpiler-python-based
20c41931346b13d4bf2a12e96037f44b1add8145
[ "MIT" ]
null
null
null
from modules.lexer.position import Position from .ast_node import ASTNode class SequentialOperationNode(ASTNode): def __init__(self, left, right): self.left = left self.right = right super().__init__(Position(left.position.start, right.position.end)) def __repr__(self): return f"({self.left}, THEN, {self.right})" def visit(self, visitor): left = self.left.visit(visitor) right = self.right.visit(visitor) return left if right == "" else f"{left}\n{right}" def interpret(self, interpreter): return self.visit(interpreter) def transpile(self, transpiler): return self.visit(transpiler)
27.4
75
0.656934
83
685
5.26506
0.373494
0.073227
0.06865
0
0
0
0
0
0
0
0
0
0.224818
685
24
76
28.541667
0.822976
0
0
0
0
0
0.070073
0
0
0
0
0
0
1
0.294118
false
0
0.117647
0.176471
0.705882
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
0
1
1
0
0
3
bc01518ec0109a1ca2291438fe4d07b2c54d8a81
982
py
Python
JobsDB/models.py
zrzxj/JobsSpiderManager
f6e60d4035fb7651d62900f2c8a147cdf04bbc07
[ "Apache-2.0" ]
null
null
null
JobsDB/models.py
zrzxj/JobsSpiderManager
f6e60d4035fb7651d62900f2c8a147cdf04bbc07
[ "Apache-2.0" ]
null
null
null
JobsDB/models.py
zrzxj/JobsSpiderManager
f6e60d4035fb7651d62900f2c8a147cdf04bbc07
[ "Apache-2.0" ]
null
null
null
from django.db import models class JobInfo(models.Model): id = models.AutoField(primary_key=True) source = models.CharField(max_length=100, null=True, blank=True) job_id = models.CharField(max_length=100, unique=True) job_name = models.CharField(max_length=100, null=True, blank=True) company_name = models.CharField(max_length=100, null=True, blank=True) provide_salary = models.CharField(max_length=100, null=True, blank=True) update_date = models.CharField(max_length=100, null=True, blank=True) company_location = models.CharField(max_length=100, null=True, blank=True) experience_requirement = models.CharField(max_length=100, null=True, blank=True) academic_requirements = models.CharField(max_length=100, null=True, blank=True) demand_num = models.CharField(max_length=100, null=True, blank=True) job_requirements = models.CharField(max_length=100, null=True, blank=True) def __str__(self): return self.job_name
49.1
84
0.754582
140
982
5.1
0.278571
0.231092
0.277311
0.369748
0.726891
0.689076
0.689076
0.689076
0.689076
0.504202
0
0.038732
0.132383
982
20
85
49.1
0.799296
0
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0.0625
1
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
0
0
0
0
0
0
0
3
bc1a794687d5998d3274a2c3e88bc2ab2cbfe58a
316
py
Python
botstory/__init__.py
botstory/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
5
2017-01-14T13:42:13.000Z
2021-07-27T21:52:04.000Z
botstory/__init__.py
botstory/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
235
2016-11-07T23:33:28.000Z
2018-03-13T11:27:33.000Z
botstory/__init__.py
hyzhak/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
5
2017-01-14T13:42:14.000Z
2020-11-06T08:33:20.000Z
from .ast.callable import EndOfStory from .ast.forking import SwitchOnValue, Undefined from .story import Story import os __all__ = [EndOfStory, Story, SwitchOnValue] with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'version.txt')) as version_file: __version__ = version_file.read().strip()
31.6
100
0.775316
43
316
5.372093
0.534884
0.077922
0
0
0
0
0
0
0
0
0
0
0.107595
316
9
101
35.111111
0.819149
0
0
0
0
0
0.03481
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
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
0
0
0
1
0
1
0
0
3
bc1e72531c888ffd6f8a9aa21c25be6502ced3a4
99
py
Python
backend/apps/ineedstudent/apps.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
3
2020-03-27T20:39:31.000Z
2020-03-31T20:24:55.000Z
backend/apps/ineedstudent/apps.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
21
2020-03-28T09:57:15.000Z
2020-03-31T11:38:00.000Z
backend/apps/ineedstudent/apps.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class IneedstudentConfig(AppConfig): name = 'ineedstudent'
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
0
0
0
3
bc362c4bd09d1ed2d56185e2ae93df34c6acfaf2
190
py
Python
rainy_project/notice/urls.py
osamhack2020/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
2
2021-08-15T02:17:43.000Z
2022-01-31T14:46:20.000Z
rainy_project/notice/urls.py
habijung/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
null
null
null
rainy_project/notice/urls.py
habijung/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
2
2020-11-17T09:37:24.000Z
2021-10-04T05:59:02.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.notice, name='notice'), path('detail/<int:notice_id>', views.detail_notice, name='detail_notice'), ]
23.75
78
0.694737
25
190
5.16
0.48
0.155039
0
0
0
0
0
0
0
0
0
0
0.142105
190
8
79
23.75
0.791411
0
0
0
0
0
0.21466
0.115183
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
70b6ee7c44d84dc0e2ad503956cbc4f81cb481a7
10,460
py
Python
swagger_client/mercury/client/model/option_contract.py
kovacicek/fiddleoptions
43e3517046fb4c47d3284d357e75099e81f861b7
[ "MIT" ]
null
null
null
swagger_client/mercury/client/model/option_contract.py
kovacicek/fiddleoptions
43e3517046fb4c47d3284d357e75099e81f861b7
[ "MIT" ]
null
null
null
swagger_client/mercury/client/model/option_contract.py
kovacicek/fiddleoptions
43e3517046fb4c47d3284d357e75099e81f861b7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Fiddle Options Platform No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class OptionContract(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'strike': 'float', 'bid': 'float', 'ask': 'float', 'volume': 'int', 'open_interest': 'int', 'delta': 'float', 'gamma': 'float', 'vega': 'float', 'theta': 'float', 'rho': 'float', 'expiration_date': 'date', 'call': 'bool', 'mid': 'float' } attribute_map = { 'strike': 'strike', 'bid': 'bid', 'ask': 'ask', 'volume': 'volume', 'open_interest': 'openInterest', 'delta': 'delta', 'gamma': 'gamma', 'vega': 'vega', 'theta': 'theta', 'rho': 'rho', 'expiration_date': 'expirationDate', 'call': 'call', 'mid': 'mid' } def __init__(self, strike=None, bid=None, ask=None, volume=None, open_interest=None, delta=None, gamma=None, vega=None, theta=None, rho=None, expiration_date=None, call=None, mid=None): # noqa: E501 """OptionContract - a model defined in Swagger""" # noqa: E501 self._strike = None self._bid = None self._ask = None self._volume = None self._open_interest = None self._delta = None self._gamma = None self._vega = None self._theta = None self._rho = None self._expiration_date = None self._call = None self._mid = None self.discriminator = None if strike is not None: self.strike = strike if bid is not None: self.bid = bid if ask is not None: self.ask = ask if volume is not None: self.volume = volume if open_interest is not None: self.open_interest = open_interest if delta is not None: self.delta = delta if gamma is not None: self.gamma = gamma if vega is not None: self.vega = vega if theta is not None: self.theta = theta if rho is not None: self.rho = rho if expiration_date is not None: self.expiration_date = expiration_date if call is not None: self.call = call if mid is not None: self.mid = mid @property def strike(self): """Gets the strike of this OptionContract. # noqa: E501 :return: The strike of this OptionContract. # noqa: E501 :rtype: float """ return self._strike @strike.setter def strike(self, strike): """Sets the strike of this OptionContract. :param strike: The strike of this OptionContract. # noqa: E501 :type: float """ self._strike = strike @property def bid(self): """Gets the bid of this OptionContract. # noqa: E501 :return: The bid of this OptionContract. # noqa: E501 :rtype: float """ return self._bid @bid.setter def bid(self, bid): """Sets the bid of this OptionContract. :param bid: The bid of this OptionContract. # noqa: E501 :type: float """ self._bid = bid @property def ask(self): """Gets the ask of this OptionContract. # noqa: E501 :return: The ask of this OptionContract. # noqa: E501 :rtype: float """ return self._ask @ask.setter def ask(self, ask): """Sets the ask of this OptionContract. :param ask: The ask of this OptionContract. # noqa: E501 :type: float """ self._ask = ask @property def volume(self): """Gets the volume of this OptionContract. # noqa: E501 :return: The volume of this OptionContract. # noqa: E501 :rtype: int """ return self._volume @volume.setter def volume(self, volume): """Sets the volume of this OptionContract. :param volume: The volume of this OptionContract. # noqa: E501 :type: int """ self._volume = volume @property def open_interest(self): """Gets the open_interest of this OptionContract. # noqa: E501 :return: The open_interest of this OptionContract. # noqa: E501 :rtype: int """ return self._open_interest @open_interest.setter def open_interest(self, open_interest): """Sets the open_interest of this OptionContract. :param open_interest: The open_interest of this OptionContract. # noqa: E501 :type: int """ self._open_interest = open_interest @property def delta(self): """Gets the delta of this OptionContract. # noqa: E501 :return: The delta of this OptionContract. # noqa: E501 :rtype: float """ return self._delta @delta.setter def delta(self, delta): """Sets the delta of this OptionContract. :param delta: The delta of this OptionContract. # noqa: E501 :type: float """ self._delta = delta @property def gamma(self): """Gets the gamma of this OptionContract. # noqa: E501 :return: The gamma of this OptionContract. # noqa: E501 :rtype: float """ return self._gamma @gamma.setter def gamma(self, gamma): """Sets the gamma of this OptionContract. :param gamma: The gamma of this OptionContract. # noqa: E501 :type: float """ self._gamma = gamma @property def vega(self): """Gets the vega of this OptionContract. # noqa: E501 :return: The vega of this OptionContract. # noqa: E501 :rtype: float """ return self._vega @vega.setter def vega(self, vega): """Sets the vega of this OptionContract. :param vega: The vega of this OptionContract. # noqa: E501 :type: float """ self._vega = vega @property def theta(self): """Gets the theta of this OptionContract. # noqa: E501 :return: The theta of this OptionContract. # noqa: E501 :rtype: float """ return self._theta @theta.setter def theta(self, theta): """Sets the theta of this OptionContract. :param theta: The theta of this OptionContract. # noqa: E501 :type: float """ self._theta = theta @property def rho(self): """Gets the rho of this OptionContract. # noqa: E501 :return: The rho of this OptionContract. # noqa: E501 :rtype: float """ return self._rho @rho.setter def rho(self, rho): """Sets the rho of this OptionContract. :param rho: The rho of this OptionContract. # noqa: E501 :type: float """ self._rho = rho @property def expiration_date(self): """Gets the expiration_date of this OptionContract. # noqa: E501 :return: The expiration_date of this OptionContract. # noqa: E501 :rtype: date """ return self._expiration_date @expiration_date.setter def expiration_date(self, expiration_date): """Sets the expiration_date of this OptionContract. :param expiration_date: The expiration_date of this OptionContract. # noqa: E501 :type: date """ self._expiration_date = expiration_date @property def call(self): """Gets the call of this OptionContract. # noqa: E501 :return: The call of this OptionContract. # noqa: E501 :rtype: bool """ return self._call @call.setter def call(self, call): """Sets the call of this OptionContract. :param call: The call of this OptionContract. # noqa: E501 :type: bool """ self._call = call @property def mid(self): """Gets the mid of this OptionContract. # noqa: E501 :return: The mid of this OptionContract. # noqa: E501 :rtype: float """ return self._mid @mid.setter def mid(self, mid): """Sets the mid of this OptionContract. :param mid: The mid of this OptionContract. # noqa: E501 :type: float """ self._mid = mid def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, OptionContract): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
24.611765
203
0.552964
1,193
10,460
4.75021
0.107293
0.055056
0.183519
0.165167
0.46709
0.383801
0.36792
0.234163
0.105876
0.013411
0
0.01978
0.347514
10,460
424
204
24.669811
0.810549
0.364149
0
0.081967
1
0
0.054782
0
0
0
0
0
0
1
0.174863
false
0
0.016393
0
0.311475
0.010929
0
0
0
null
0
1
1
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
0
0
0
0
0
0
0
3
70d0c6b4dd7468bb0dd3ef82f9a48b9c5d2fff7f
878
py
Python
python/dxa/__init__.py
portfolioscout/py4fi
9a65df340189ed52037456da221bf66fe89e787f
[ "CNRI-Python" ]
15
2018-07-10T09:18:23.000Z
2021-12-30T06:35:09.000Z
python3/dxa/__init__.py
ioancw/py4fi
bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec
[ "CNRI-Python" ]
2
2020-10-27T19:44:15.000Z
2020-11-03T23:55:36.000Z
python3/dxa/__init__.py
ioancw/py4fi
bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec
[ "CNRI-Python" ]
13
2018-01-08T01:10:22.000Z
2021-05-26T17:35:35.000Z
# # DX Library # packaging file # __init__.py # import numpy as np import pandas as pd import datetime as dt # frame from get_year_deltas import get_year_deltas from constant_short_rate import constant_short_rate from market_environment import market_environment from plot_option_stats import plot_option_stats # simulation from sn_random_numbers import sn_random_numbers from simulation_class import simulation_class from geometric_brownian_motion import geometric_brownian_motion from jump_diffusion import jump_diffusion from square_root_diffusion import square_root_diffusion # valuation from valuation_class import valuation_class from valuation_mcs_european import valuation_mcs_european from valuation_mcs_american import valuation_mcs_american # portfolio from derivatives_position import derivatives_position from derivatives_portfolio import derivatives_portfolio
28.322581
63
0.886105
122
878
5.983607
0.377049
0.065753
0.035616
0
0
0
0
0
0
0
0
0
0.102506
878
30
64
29.266667
0.926396
0.084282
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
70db9d36a6757c4b90d7e4f497b3a15959df0ed3
126
py
Python
test.py
qiulongquan/web_server
a9abd49d4f50ecd8045eec7c55e01051ad321c84
[ "CC-BY-3.0" ]
1
2019-04-05T09:30:37.000Z
2019-04-05T09:30:37.000Z
test.py
qiulongquan/web_server
a9abd49d4f50ecd8045eec7c55e01051ad321c84
[ "CC-BY-3.0" ]
null
null
null
test.py
qiulongquan/web_server
a9abd49d4f50ecd8045eec7c55e01051ad321c84
[ "CC-BY-3.0" ]
null
null
null
import subprocess as sp import os sp.call('python run.py', shell = True) path=os.path.join('c://', 'index.html') print(path)
18
39
0.690476
22
126
3.954545
0.772727
0
0
0
0
0
0
0
0
0
0
0
0.119048
126
7
40
18
0.783784
0
0
0
0
0
0.212598
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
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
0
0
0
3
70edc10b32a6ebec0ae5ce52dfd34f6808f439f6
85,847
py
Python
tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/worker_pb2.py
shawwn/tensorflow-checkpoint-reader
f0e65548411e3bd66a07e36bb1850907a05952d0
[ "MIT" ]
1
2021-12-02T15:06:09.000Z
2021-12-02T15:06:09.000Z
tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/worker_pb2.py
shawwn/tensorflow-checkpoint-reader
f0e65548411e3bd66a07e36bb1850907a05952d0
[ "MIT" ]
null
null
null
tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/worker_pb2.py
shawwn/tensorflow-checkpoint-reader
f0e65548411e3bd66a07e36bb1850907a05952d0
[ "MIT" ]
null
null
null
'Generated protocol buffer code.' 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 _sym_db = _symbol_database.Default() from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from ....tensorflow.core.framework import cost_graph_pb2 as tensorflow_dot_core_dot_framework_dot_cost__graph__pb2 from ....tensorflow.core.framework import device_attributes_pb2 as tensorflow_dot_core_dot_framework_dot_device__attributes__pb2 from ....tensorflow.core.framework import graph_pb2 as tensorflow_dot_core_dot_framework_dot_graph__pb2 from ....tensorflow.core.framework import step_stats_pb2 as tensorflow_dot_core_dot_framework_dot_step__stats__pb2 from ....tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2 from ....tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2 from ....tensorflow.core.framework import types_pb2 as tensorflow_dot_core_dot_framework_dot_types__pb2 from ....tensorflow.core.protobuf import config_pb2 as tensorflow_dot_core_dot_protobuf_dot_config__pb2 from ....tensorflow.core.protobuf import debug_pb2 as tensorflow_dot_core_dot_protobuf_dot_debug__pb2 from ....tensorflow.core.protobuf import error_codes_pb2 as tensorflow_dot_core_dot_protobuf_dot_error__codes__pb2 from ....tensorflow.core.protobuf import named_tensor_pb2 as tensorflow_dot_core_dot_protobuf_dot_named__tensor__pb2 from ....tensorflow.core.protobuf import tensorflow_server_pb2 as tensorflow_dot_core_dot_protobuf_dot_tensorflow__server__pb2 DESCRIPTOR = _descriptor.FileDescriptor(name='tensorflow/core/protobuf/worker.proto', package='tensorflow', syntax='proto3', serialized_options=b'\n\x1aorg.tensorflow.distruntimeB\x0cWorkerProtosP\x01ZUgithub.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto\xf8\x01\x01', create_key=_descriptor._internal_create_key, serialized_pb=b'\n%tensorflow/core/protobuf/worker.proto\x12\ntensorflow\x1a\x19google/protobuf/any.proto\x1a*tensorflow/core/framework/cost_graph.proto\x1a1tensorflow/core/framework/device_attributes.proto\x1a%tensorflow/core/framework/graph.proto\x1a*tensorflow/core/framework/step_stats.proto\x1a&tensorflow/core/framework/tensor.proto\x1a,tensorflow/core/framework/tensor_shape.proto\x1a%tensorflow/core/framework/types.proto\x1a%tensorflow/core/protobuf/config.proto\x1a$tensorflow/core/protobuf/debug.proto\x1a*tensorflow/core/protobuf/error_codes.proto\x1a+tensorflow/core/protobuf/named_tensor.proto\x1a0tensorflow/core/protobuf/tensorflow_server.proto"\x12\n\x10GetStatusRequest"L\n\x11GetStatusResponse\x127\n\x11device_attributes\x18\x01 \x03(\x0b2\x1c.tensorflow.DeviceAttributes"\xf0\x01\n\x1aCreateWorkerSessionRequest\x12\x16\n\x0esession_handle\x18\x01 \x01(\t\x12)\n\nserver_def\x18\x02 \x01(\x0b2\x15.tensorflow.ServerDef\x12\x1d\n\x15isolate_session_state\x18\x03 \x01(\x08\x12?\n\x19cluster_device_attributes\x18\x04 \x03(\x0b2\x1c.tensorflow.DeviceAttributes\x12\x13\n\x0bmaster_task\x18\x05 \x01(\t\x12\x1a\n\x12master_incarnation\x18\x06 \x01(\x03"\x1d\n\x1bCreateWorkerSessionResponse"4\n\x1aDeleteWorkerSessionRequest\x12\x16\n\x0esession_handle\x18\x01 \x01(\t"\x1d\n\x1bDeleteWorkerSessionResponse"\xca\x02\n\x14RegisterGraphRequest\x12\x16\n\x0esession_handle\x18\x01 \x01(\t\x12$\n\x1ccreate_worker_session_called\x18\x06 \x01(\x08\x12\'\n\tgraph_def\x18\x02 \x01(\x0b2\x14.tensorflow.GraphDef\x12\x1c\n\x10has_control_flow\x18\x03 \x01(\x08B\x02\x18\x01\x12/\n\rgraph_options\x18\x04 \x01(\x0b2\x18.tensorflow.GraphOptions\x12/\n\rdebug_options\x18\x05 \x01(\x0b2\x18.tensorflow.DebugOptions\x12\x1c\n\x14collective_graph_key\x18\x07 \x01(\x03\x12-\n\x0cconfig_proto\x18\x08 \x01(\x0b2\x17.tensorflow.ConfigProto"-\n\x15RegisterGraphResponse\x12\x14\n\x0cgraph_handle\x18\x01 \x01(\t"l\n\x16DeregisterGraphRequest\x12\x16\n\x0esession_handle\x18\x02 \x01(\t\x12$\n\x1ccreate_worker_session_called\x18\x03 \x01(\x08\x12\x14\n\x0cgraph_handle\x18\x01 \x01(\t"\x19\n\x17DeregisterGraphResponse"&\n\x11CleanupAllRequest\x12\x11\n\tcontainer\x18\x01 \x03(\t"\x14\n\x12CleanupAllResponse"\x8a\x01\n\x0cExecutorOpts\x12\x14\n\x0crecord_costs\x18\x01 \x01(\x08\x12\x17\n\x0frecord_timeline\x18\x03 \x01(\x08\x12\x1f\n\x17record_partition_graphs\x18\x04 \x01(\x08\x12*\n"report_tensor_allocations_upon_oom\x18\x05 \x01(\x08"\xcd\x02\n\x0fRunGraphRequest\x12\x16\n\x0esession_handle\x18\x08 \x01(\t\x12$\n\x1ccreate_worker_session_called\x18\n \x01(\x08\x12\x14\n\x0cgraph_handle\x18\x01 \x01(\t\x12\x0f\n\x07step_id\x18\x02 \x01(\x03\x12+\n\texec_opts\x18\x05 \x01(\x0b2\x18.tensorflow.ExecutorOpts\x12*\n\x04send\x18\x03 \x03(\x0b2\x1c.tensorflow.NamedTensorProto\x12\x10\n\x08recv_key\x18\x04 \x03(\t\x12\x12\n\nis_partial\x18\x06 \x01(\x08\x12\x1b\n\x13is_last_partial_run\x18\x07 \x01(\x08\x12%\n\x1dstore_errors_in_response_body\x18\t \x01(\x08\x12\x12\n\nrequest_id\x18\x0b \x01(\x03"\x91\x02\n\x10RunGraphResponse\x12*\n\x04recv\x18\x01 \x03(\x0b2\x1c.tensorflow.NamedTensorProto\x12)\n\nstep_stats\x18\x02 \x01(\x0b2\x15.tensorflow.StepStats\x12,\n\ncost_graph\x18\x03 \x01(\x0b2\x18.tensorflow.CostGraphDef\x12-\n\x0fpartition_graph\x18\x04 \x03(\x0b2\x14.tensorflow.GraphDef\x12+\n\x0bstatus_code\x18\x05 \x01(\x0e2\x16.tensorflow.error.Code\x12\x1c\n\x14status_error_message\x18\x06 \x01(\t"&\n\x13CleanupGraphRequest\x12\x0f\n\x07step_id\x18\x01 \x01(\x03"\x16\n\x14CleanupGraphResponse"\xfb\x01\n\x11RecvTensorRequest\x12\x0f\n\x07step_id\x18\x01 \x01(\x03\x12\x16\n\x0erendezvous_key\x18\x02 \x01(\t\x12\x0e\n\x06dma_ok\x18\x03 \x01(\x08\x123\n\x0fclient_locality\x18\x04 \x01(\x0b2\x1a.tensorflow.DeviceLocality\x123\n\x0fserver_locality\x18\x05 \x01(\x0b2\x1a.tensorflow.DeviceLocality\x12/\n\x11transport_options\x18\x06 \x01(\x0b2\x14.google.protobuf.Any\x12\x12\n\nrequest_id\x18\x07 \x01(\x03"\xaf\x01\n\x12RecvTensorResponse\x12\'\n\x06tensor\x18\x01 \x01(\x0b2\x17.tensorflow.TensorProto\x12\x0f\n\x07is_dead\x18\x02 \x01(\x08\x12\x19\n\x11send_start_micros\x18\x03 \x01(\x03\x12/\n\x11transport_options\x18\x04 \x01(\x0b2\x14.google.protobuf.Any\x12\x13\n\x0brequire_ack\x18\x05 \x01(\x08"-\n\x17MarkRecvFinishedRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\x03"\x1a\n\x18MarkRecvFinishedResponse"o\n\x0eLoggingRequest\x12\x1a\n\x12enable_rpc_logging\x18\x01 \x01(\x08\x12\x1b\n\x13disable_rpc_logging\x18\x04 \x01(\x08\x12\r\n\x05clear\x18\x02 \x01(\x08\x12\x15\n\rfetch_step_id\x18\x03 \x03(\x03"N\n\x10LabeledStepStats\x12\x0f\n\x07step_id\x18\x01 \x01(\x03\x12)\n\nstep_stats\x18\x02 \x01(\x0b2\x15.tensorflow.StepStats"=\n\x0fLoggingResponse\x12*\n\x04step\x18\x01 \x03(\x0b2\x1c.tensorflow.LabeledStepStats"\xab\x01\n\tTraceOpts\x12\x10\n\x08duration\x18\x01 \x01(\x01\x12\x19\n\x11use_step_profiler\x18\x02 \x01(\x08\x12\x1b\n\x13use_kernel_profiler\x18\x03 \x01(\x08\x12\x1d\n\x15use_extended_profiler\x18\x04 \x01(\x08\x12\x18\n\x10use_gpu_profiler\x18\x05 \x01(\x08\x12\x1b\n\x13use_sample_profiler\x18\x06 \x01(\x08"8\n\x0eTracingRequest\x12&\n\x07options\x18\x01 \x01(\x0b2\x15.tensorflow.TraceOpts"\x11\n\x0fTracingResponse"\xd1\x02\n\x0eRecvBufRequest\x12\x0f\n\x07step_id\x18\x01 \x01(\x03\x12\x1a\n\x12buf_rendezvous_key\x18\x02 \x01(\t\x12\x11\n\tnum_bytes\x18\x03 \x01(\x03\x12\x0f\n\x07buf_ptr\x18\x04 \x01(\x06\x123\n\x0fclient_locality\x18\x05 \x01(\x0b2\x1a.tensorflow.DeviceLocality\x123\n\x0fserver_locality\x18\x06 \x01(\x0b2\x1a.tensorflow.DeviceLocality\x12/\n\x11transport_options\x18\x07 \x01(\x0b2\x14.google.protobuf.Any\x12\x12\n\nsrc_device\x18\x08 \x01(\t\x12\x12\n\ndst_device\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\x03\x12\x17\n\x0fsrc_incarnation\x18\x0b \x01(\x04"\xa7\x01\n\x0fRecvBufResponse\x12\x0f\n\x07buf_ptr\x18\x01 \x01(\x06\x12\x11\n\tnum_bytes\x18\x02 \x01(\x03\x12\x0f\n\x07is_dead\x18\x03 \x01(\x08\x12/\n\x11transport_options\x18\x04 \x01(\x0b2\x14.google.protobuf.Any\x12\x19\n\x11send_start_micros\x18\x05 \x01(\x03\x12\x13\n\x0brequire_ack\x18\x06 \x01(\x08"\xaa\x01\n\x14CompleteGroupRequest\x12\x11\n\tgroup_key\x18\x01 \x01(\x05\x12\x12\n\ngroup_size\x18\x02 \x01(\x05\x12\x13\n\x0bdevice_type\x18\x03 \x01(\t\x12\x17\n\x0fcollective_type\x18\x05 \x01(\x05\x127\n\x11device_attributes\x18\x06 \x01(\x0b2\x1c.tensorflow.DeviceAttributesJ\x04\x08\x04\x10\x05"\xc5\x01\n\x15CompleteGroupResponse\x12\x11\n\tgroup_key\x18\x01 \x01(\x05\x12\x12\n\ngroup_size\x18\x02 \x01(\x05\x12\x13\n\x0bdevice_type\x18\x03 \x01(\t\x12\x11\n\tnum_tasks\x18\x04 \x01(\x05\x12\x18\n\x10communicator_key\x18\x07 \x01(\x0c\x127\n\x11device_attributes\x18\x08 \x03(\x0b2\x1c.tensorflow.DeviceAttributesJ\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07"\x97\x02\n\x17CompleteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\x05\x12\'\n\tdata_type\x18\x03 \x01(\x0e2\x14.tensorflow.DataType\x12+\n\x05shape\x18\x04 \x01(\x0b2\x1c.tensorflow.TensorShapeProto\x12\x11\n\tgroup_key\x18\x05 \x01(\x05\x12\x12\n\ngroup_size\x18\x06 \x01(\x05\x12\x14\n\x0cinstance_key\x18\x07 \x01(\x05\x12\x13\n\x0bdevice_type\x18\x08 \x01(\t\x12\x15\n\rsubdiv_offset\x18\t \x03(\x05\x12\x0e\n\x06device\x18\n \x01(\t\x12\x11\n\tis_source\x18\x0b \x01(\x08"K\n\x18CompleteInstanceResponse\x12\x14\n\x0cinstance_key\x18\x01 \x01(\x05\x12\x13\n\x0bsource_rank\x18\x02 \x01(\x05J\x04\x08\x03\x10\x04"+\n\x16GetStepSequenceRequest\x12\x11\n\tgraph_key\x18\x01 \x03(\x03"7\n\x0cStepSequence\x12\x11\n\tgraph_key\x18\x01 \x01(\x03\x12\x14\n\x0cnext_step_id\x18\x02 \x01(\x03"J\n\x17GetStepSequenceResponse\x12/\n\rstep_sequence\x18\x01 \x03(\x0b2\x18.tensorflow.StepSequenceB\x86\x01\n\x1aorg.tensorflow.distruntimeB\x0cWorkerProtosP\x01ZUgithub.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto\xf8\x01\x01b\x06proto3', dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_cost__graph__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_device__attributes__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_graph__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_step__stats__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_tensor__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2.DESCRIPTOR, tensorflow_dot_core_dot_framework_dot_types__pb2.DESCRIPTOR, tensorflow_dot_core_dot_protobuf_dot_config__pb2.DESCRIPTOR, tensorflow_dot_core_dot_protobuf_dot_debug__pb2.DESCRIPTOR, tensorflow_dot_core_dot_protobuf_dot_error__codes__pb2.DESCRIPTOR, tensorflow_dot_core_dot_protobuf_dot_named__tensor__pb2.DESCRIPTOR, tensorflow_dot_core_dot_protobuf_dot_tensorflow__server__pb2.DESCRIPTOR]) _GETSTATUSREQUEST = _descriptor.Descriptor(name='GetStatusRequest', full_name='tensorflow.GetStatusRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=599, serialized_end=617) _GETSTATUSRESPONSE = _descriptor.Descriptor(name='GetStatusResponse', full_name='tensorflow.GetStatusResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='device_attributes', full_name='tensorflow.GetStatusResponse.device_attributes', 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=619, serialized_end=695) _CREATEWORKERSESSIONREQUEST = _descriptor.Descriptor(name='CreateWorkerSessionRequest', full_name='tensorflow.CreateWorkerSessionRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='session_handle', full_name='tensorflow.CreateWorkerSessionRequest.session_handle', 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='server_def', full_name='tensorflow.CreateWorkerSessionRequest.server_def', 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='isolate_session_state', full_name='tensorflow.CreateWorkerSessionRequest.isolate_session_state', 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='cluster_device_attributes', full_name='tensorflow.CreateWorkerSessionRequest.cluster_device_attributes', index=3, number=4, 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), _descriptor.FieldDescriptor(name='master_task', full_name='tensorflow.CreateWorkerSessionRequest.master_task', 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='master_incarnation', full_name='tensorflow.CreateWorkerSessionRequest.master_incarnation', index=5, number=6, 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=698, serialized_end=938) _CREATEWORKERSESSIONRESPONSE = _descriptor.Descriptor(name='CreateWorkerSessionResponse', full_name='tensorflow.CreateWorkerSessionResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=940, serialized_end=969) _DELETEWORKERSESSIONREQUEST = _descriptor.Descriptor(name='DeleteWorkerSessionRequest', full_name='tensorflow.DeleteWorkerSessionRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='session_handle', full_name='tensorflow.DeleteWorkerSessionRequest.session_handle', 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=971, serialized_end=1023) _DELETEWORKERSESSIONRESPONSE = _descriptor.Descriptor(name='DeleteWorkerSessionResponse', full_name='tensorflow.DeleteWorkerSessionResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=1025, serialized_end=1054) _REGISTERGRAPHREQUEST = _descriptor.Descriptor(name='RegisterGraphRequest', full_name='tensorflow.RegisterGraphRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='session_handle', full_name='tensorflow.RegisterGraphRequest.session_handle', 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='create_worker_session_called', full_name='tensorflow.RegisterGraphRequest.create_worker_session_called', index=1, number=6, 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='graph_def', full_name='tensorflow.RegisterGraphRequest.graph_def', index=2, 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='has_control_flow', full_name='tensorflow.RegisterGraphRequest.has_control_flow', index=3, 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=b'\x18\x01', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor(name='graph_options', full_name='tensorflow.RegisterGraphRequest.graph_options', index=4, 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='debug_options', full_name='tensorflow.RegisterGraphRequest.debug_options', index=5, 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='collective_graph_key', full_name='tensorflow.RegisterGraphRequest.collective_graph_key', index=6, number=7, 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_proto', full_name='tensorflow.RegisterGraphRequest.config_proto', index=7, number=8, 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=1057, serialized_end=1387) _REGISTERGRAPHRESPONSE = _descriptor.Descriptor(name='RegisterGraphResponse', full_name='tensorflow.RegisterGraphResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='graph_handle', full_name='tensorflow.RegisterGraphResponse.graph_handle', 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=1389, serialized_end=1434) _DEREGISTERGRAPHREQUEST = _descriptor.Descriptor(name='DeregisterGraphRequest', full_name='tensorflow.DeregisterGraphRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='session_handle', full_name='tensorflow.DeregisterGraphRequest.session_handle', index=0, 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='create_worker_session_called', full_name='tensorflow.DeregisterGraphRequest.create_worker_session_called', index=1, 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='graph_handle', full_name='tensorflow.DeregisterGraphRequest.graph_handle', index=2, 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=1436, serialized_end=1544) _DEREGISTERGRAPHRESPONSE = _descriptor.Descriptor(name='DeregisterGraphResponse', full_name='tensorflow.DeregisterGraphResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=1546, serialized_end=1571) _CLEANUPALLREQUEST = _descriptor.Descriptor(name='CleanupAllRequest', full_name='tensorflow.CleanupAllRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='container', full_name='tensorflow.CleanupAllRequest.container', 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=1573, serialized_end=1611) _CLEANUPALLRESPONSE = _descriptor.Descriptor(name='CleanupAllResponse', full_name='tensorflow.CleanupAllResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=1613, serialized_end=1633) _EXECUTOROPTS = _descriptor.Descriptor(name='ExecutorOpts', full_name='tensorflow.ExecutorOpts', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='record_costs', full_name='tensorflow.ExecutorOpts.record_costs', 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='record_timeline', full_name='tensorflow.ExecutorOpts.record_timeline', index=1, 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='record_partition_graphs', full_name='tensorflow.ExecutorOpts.record_partition_graphs', index=2, 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='report_tensor_allocations_upon_oom', full_name='tensorflow.ExecutorOpts.report_tensor_allocations_upon_oom', index=3, 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=1636, serialized_end=1774) _RUNGRAPHREQUEST = _descriptor.Descriptor(name='RunGraphRequest', full_name='tensorflow.RunGraphRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='session_handle', full_name='tensorflow.RunGraphRequest.session_handle', index=0, 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), _descriptor.FieldDescriptor(name='create_worker_session_called', full_name='tensorflow.RunGraphRequest.create_worker_session_called', index=1, number=10, 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='graph_handle', full_name='tensorflow.RunGraphRequest.graph_handle', index=2, 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='step_id', full_name='tensorflow.RunGraphRequest.step_id', index=3, 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='exec_opts', full_name='tensorflow.RunGraphRequest.exec_opts', 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='send', full_name='tensorflow.RunGraphRequest.send', index=5, number=3, 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), _descriptor.FieldDescriptor(name='recv_key', full_name='tensorflow.RunGraphRequest.recv_key', index=6, 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='is_partial', full_name='tensorflow.RunGraphRequest.is_partial', index=7, number=6, 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='is_last_partial_run', full_name='tensorflow.RunGraphRequest.is_last_partial_run', index=8, 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), _descriptor.FieldDescriptor(name='store_errors_in_response_body', full_name='tensorflow.RunGraphRequest.store_errors_in_response_body', index=9, number=9, 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='request_id', full_name='tensorflow.RunGraphRequest.request_id', index=10, number=11, 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=1777, serialized_end=2110) _RUNGRAPHRESPONSE = _descriptor.Descriptor(name='RunGraphResponse', full_name='tensorflow.RunGraphResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='recv', full_name='tensorflow.RunGraphResponse.recv', 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), _descriptor.FieldDescriptor(name='step_stats', full_name='tensorflow.RunGraphResponse.step_stats', 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='cost_graph', full_name='tensorflow.RunGraphResponse.cost_graph', 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='partition_graph', full_name='tensorflow.RunGraphResponse.partition_graph', index=3, number=4, 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), _descriptor.FieldDescriptor(name='status_code', full_name='tensorflow.RunGraphResponse.status_code', 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='status_error_message', full_name='tensorflow.RunGraphResponse.status_error_message', 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=2113, serialized_end=2386) _CLEANUPGRAPHREQUEST = _descriptor.Descriptor(name='CleanupGraphRequest', full_name='tensorflow.CleanupGraphRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='step_id', full_name='tensorflow.CleanupGraphRequest.step_id', 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=2388, serialized_end=2426) _CLEANUPGRAPHRESPONSE = _descriptor.Descriptor(name='CleanupGraphResponse', full_name='tensorflow.CleanupGraphResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=2428, serialized_end=2450) _RECVTENSORREQUEST = _descriptor.Descriptor(name='RecvTensorRequest', full_name='tensorflow.RecvTensorRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='step_id', full_name='tensorflow.RecvTensorRequest.step_id', 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='rendezvous_key', full_name='tensorflow.RecvTensorRequest.rendezvous_key', 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='dma_ok', full_name='tensorflow.RecvTensorRequest.dma_ok', 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='client_locality', full_name='tensorflow.RecvTensorRequest.client_locality', 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='server_locality', full_name='tensorflow.RecvTensorRequest.server_locality', 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='transport_options', full_name='tensorflow.RecvTensorRequest.transport_options', 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), _descriptor.FieldDescriptor(name='request_id', full_name='tensorflow.RecvTensorRequest.request_id', index=6, number=7, 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=2453, serialized_end=2704) _RECVTENSORRESPONSE = _descriptor.Descriptor(name='RecvTensorResponse', full_name='tensorflow.RecvTensorResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='tensor', full_name='tensorflow.RecvTensorResponse.tensor', 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='is_dead', full_name='tensorflow.RecvTensorResponse.is_dead', 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='send_start_micros', full_name='tensorflow.RecvTensorResponse.send_start_micros', 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='transport_options', full_name='tensorflow.RecvTensorResponse.transport_options', 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='require_ack', full_name='tensorflow.RecvTensorResponse.require_ack', 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=2707, serialized_end=2882) _MARKRECVFINISHEDREQUEST = _descriptor.Descriptor(name='MarkRecvFinishedRequest', full_name='tensorflow.MarkRecvFinishedRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='request_id', full_name='tensorflow.MarkRecvFinishedRequest.request_id', 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=2884, serialized_end=2929) _MARKRECVFINISHEDRESPONSE = _descriptor.Descriptor(name='MarkRecvFinishedResponse', full_name='tensorflow.MarkRecvFinishedResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=2931, serialized_end=2957) _LOGGINGREQUEST = _descriptor.Descriptor(name='LoggingRequest', full_name='tensorflow.LoggingRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='enable_rpc_logging', full_name='tensorflow.LoggingRequest.enable_rpc_logging', 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='disable_rpc_logging', full_name='tensorflow.LoggingRequest.disable_rpc_logging', index=1, 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='clear', full_name='tensorflow.LoggingRequest.clear', index=2, 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='fetch_step_id', full_name='tensorflow.LoggingRequest.fetch_step_id', index=3, number=3, type=3, cpp_type=2, 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=2959, serialized_end=3070) _LABELEDSTEPSTATS = _descriptor.Descriptor(name='LabeledStepStats', full_name='tensorflow.LabeledStepStats', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='step_id', full_name='tensorflow.LabeledStepStats.step_id', 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='step_stats', full_name='tensorflow.LabeledStepStats.step_stats', 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=3072, serialized_end=3150) _LOGGINGRESPONSE = _descriptor.Descriptor(name='LoggingResponse', full_name='tensorflow.LoggingResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='step', full_name='tensorflow.LoggingResponse.step', 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=3152, serialized_end=3213) _TRACEOPTS = _descriptor.Descriptor(name='TraceOpts', full_name='tensorflow.TraceOpts', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='duration', full_name='tensorflow.TraceOpts.duration', index=0, number=1, type=1, cpp_type=5, 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='use_step_profiler', full_name='tensorflow.TraceOpts.use_step_profiler', 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='use_kernel_profiler', full_name='tensorflow.TraceOpts.use_kernel_profiler', 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='use_extended_profiler', full_name='tensorflow.TraceOpts.use_extended_profiler', 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='use_gpu_profiler', full_name='tensorflow.TraceOpts.use_gpu_profiler', 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='use_sample_profiler', full_name='tensorflow.TraceOpts.use_sample_profiler', index=5, number=6, 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=[], serialized_start=3216, serialized_end=3387) _TRACINGREQUEST = _descriptor.Descriptor(name='TracingRequest', full_name='tensorflow.TracingRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='options', full_name='tensorflow.TracingRequest.options', 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=3389, serialized_end=3445) _TRACINGRESPONSE = _descriptor.Descriptor(name='TracingResponse', full_name='tensorflow.TracingResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=3447, serialized_end=3464) _RECVBUFREQUEST = _descriptor.Descriptor(name='RecvBufRequest', full_name='tensorflow.RecvBufRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='step_id', full_name='tensorflow.RecvBufRequest.step_id', 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='buf_rendezvous_key', full_name='tensorflow.RecvBufRequest.buf_rendezvous_key', 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='num_bytes', full_name='tensorflow.RecvBufRequest.num_bytes', 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='buf_ptr', full_name='tensorflow.RecvBufRequest.buf_ptr', index=3, number=4, type=6, cpp_type=4, 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='client_locality', full_name='tensorflow.RecvBufRequest.client_locality', 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='server_locality', full_name='tensorflow.RecvBufRequest.server_locality', 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), _descriptor.FieldDescriptor(name='transport_options', full_name='tensorflow.RecvBufRequest.transport_options', index=6, number=7, 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='src_device', full_name='tensorflow.RecvBufRequest.src_device', 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), _descriptor.FieldDescriptor(name='dst_device', full_name='tensorflow.RecvBufRequest.dst_device', index=8, number=9, 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='request_id', full_name='tensorflow.RecvBufRequest.request_id', index=9, number=10, 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='src_incarnation', full_name='tensorflow.RecvBufRequest.src_incarnation', index=10, number=11, type=4, cpp_type=4, 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=3467, serialized_end=3804) _RECVBUFRESPONSE = _descriptor.Descriptor(name='RecvBufResponse', full_name='tensorflow.RecvBufResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='buf_ptr', full_name='tensorflow.RecvBufResponse.buf_ptr', index=0, number=1, type=6, cpp_type=4, 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='num_bytes', full_name='tensorflow.RecvBufResponse.num_bytes', 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='is_dead', full_name='tensorflow.RecvBufResponse.is_dead', 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='transport_options', full_name='tensorflow.RecvBufResponse.transport_options', 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='send_start_micros', full_name='tensorflow.RecvBufResponse.send_start_micros', 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='require_ack', full_name='tensorflow.RecvBufResponse.require_ack', index=5, number=6, 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=[], serialized_start=3807, serialized_end=3974) _COMPLETEGROUPREQUEST = _descriptor.Descriptor(name='CompleteGroupRequest', full_name='tensorflow.CompleteGroupRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='group_key', full_name='tensorflow.CompleteGroupRequest.group_key', index=0, number=1, 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='group_size', full_name='tensorflow.CompleteGroupRequest.group_size', index=1, number=2, 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='device_type', full_name='tensorflow.CompleteGroupRequest.device_type', 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='collective_type', full_name='tensorflow.CompleteGroupRequest.collective_type', index=3, number=5, 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='device_attributes', full_name='tensorflow.CompleteGroupRequest.device_attributes', index=4, 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=3977, serialized_end=4147) _COMPLETEGROUPRESPONSE = _descriptor.Descriptor(name='CompleteGroupResponse', full_name='tensorflow.CompleteGroupResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='group_key', full_name='tensorflow.CompleteGroupResponse.group_key', index=0, number=1, 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='group_size', full_name='tensorflow.CompleteGroupResponse.group_size', index=1, number=2, 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='device_type', full_name='tensorflow.CompleteGroupResponse.device_type', 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='num_tasks', full_name='tensorflow.CompleteGroupResponse.num_tasks', 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='communicator_key', full_name='tensorflow.CompleteGroupResponse.communicator_key', index=4, number=7, 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='device_attributes', full_name='tensorflow.CompleteGroupResponse.device_attributes', index=5, number=8, 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=4150, serialized_end=4347) _COMPLETEINSTANCEREQUEST = _descriptor.Descriptor(name='CompleteInstanceRequest', full_name='tensorflow.CompleteInstanceRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='name', full_name='tensorflow.CompleteInstanceRequest.name', 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='type', full_name='tensorflow.CompleteInstanceRequest.type', index=1, number=2, 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='data_type', full_name='tensorflow.CompleteInstanceRequest.data_type', index=2, number=3, 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='shape', full_name='tensorflow.CompleteInstanceRequest.shape', 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='group_key', full_name='tensorflow.CompleteInstanceRequest.group_key', index=4, number=5, 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='group_size', full_name='tensorflow.CompleteInstanceRequest.group_size', index=5, number=6, 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='instance_key', full_name='tensorflow.CompleteInstanceRequest.instance_key', index=6, number=7, 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='device_type', full_name='tensorflow.CompleteInstanceRequest.device_type', 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), _descriptor.FieldDescriptor(name='subdiv_offset', full_name='tensorflow.CompleteInstanceRequest.subdiv_offset', index=8, number=9, type=5, cpp_type=1, 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='device', full_name='tensorflow.CompleteInstanceRequest.device', index=9, number=10, 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='is_source', full_name='tensorflow.CompleteInstanceRequest.is_source', index=10, number=11, 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=[], serialized_start=4350, serialized_end=4629) _COMPLETEINSTANCERESPONSE = _descriptor.Descriptor(name='CompleteInstanceResponse', full_name='tensorflow.CompleteInstanceResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='instance_key', full_name='tensorflow.CompleteInstanceResponse.instance_key', index=0, number=1, 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='source_rank', full_name='tensorflow.CompleteInstanceResponse.source_rank', index=1, number=2, 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=4631, serialized_end=4706) _GETSTEPSEQUENCEREQUEST = _descriptor.Descriptor(name='GetStepSequenceRequest', full_name='tensorflow.GetStepSequenceRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='graph_key', full_name='tensorflow.GetStepSequenceRequest.graph_key', index=0, number=1, type=3, cpp_type=2, 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=4708, serialized_end=4751) _STEPSEQUENCE = _descriptor.Descriptor(name='StepSequence', full_name='tensorflow.StepSequence', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='graph_key', full_name='tensorflow.StepSequence.graph_key', 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='next_step_id', full_name='tensorflow.StepSequence.next_step_id', 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)], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[], serialized_start=4753, serialized_end=4808) _GETSTEPSEQUENCERESPONSE = _descriptor.Descriptor(name='GetStepSequenceResponse', full_name='tensorflow.GetStepSequenceResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[_descriptor.FieldDescriptor(name='step_sequence', full_name='tensorflow.GetStepSequenceResponse.step_sequence', 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=4810, serialized_end=4884) _GETSTATUSRESPONSE.fields_by_name['device_attributes'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICEATTRIBUTES _CREATEWORKERSESSIONREQUEST.fields_by_name['server_def'].message_type = tensorflow_dot_core_dot_protobuf_dot_tensorflow__server__pb2._SERVERDEF _CREATEWORKERSESSIONREQUEST.fields_by_name['cluster_device_attributes'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICEATTRIBUTES _REGISTERGRAPHREQUEST.fields_by_name['graph_def'].message_type = tensorflow_dot_core_dot_framework_dot_graph__pb2._GRAPHDEF _REGISTERGRAPHREQUEST.fields_by_name['graph_options'].message_type = tensorflow_dot_core_dot_protobuf_dot_config__pb2._GRAPHOPTIONS _REGISTERGRAPHREQUEST.fields_by_name['debug_options'].message_type = tensorflow_dot_core_dot_protobuf_dot_debug__pb2._DEBUGOPTIONS _REGISTERGRAPHREQUEST.fields_by_name['config_proto'].message_type = tensorflow_dot_core_dot_protobuf_dot_config__pb2._CONFIGPROTO _RUNGRAPHREQUEST.fields_by_name['exec_opts'].message_type = _EXECUTOROPTS _RUNGRAPHREQUEST.fields_by_name['send'].message_type = tensorflow_dot_core_dot_protobuf_dot_named__tensor__pb2._NAMEDTENSORPROTO _RUNGRAPHRESPONSE.fields_by_name['recv'].message_type = tensorflow_dot_core_dot_protobuf_dot_named__tensor__pb2._NAMEDTENSORPROTO _RUNGRAPHRESPONSE.fields_by_name['step_stats'].message_type = tensorflow_dot_core_dot_framework_dot_step__stats__pb2._STEPSTATS _RUNGRAPHRESPONSE.fields_by_name['cost_graph'].message_type = tensorflow_dot_core_dot_framework_dot_cost__graph__pb2._COSTGRAPHDEF _RUNGRAPHRESPONSE.fields_by_name['partition_graph'].message_type = tensorflow_dot_core_dot_framework_dot_graph__pb2._GRAPHDEF _RUNGRAPHRESPONSE.fields_by_name['status_code'].enum_type = tensorflow_dot_core_dot_protobuf_dot_error__codes__pb2._CODE _RECVTENSORREQUEST.fields_by_name['client_locality'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICELOCALITY _RECVTENSORREQUEST.fields_by_name['server_locality'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICELOCALITY _RECVTENSORREQUEST.fields_by_name['transport_options'].message_type = google_dot_protobuf_dot_any__pb2._ANY _RECVTENSORRESPONSE.fields_by_name['tensor'].message_type = tensorflow_dot_core_dot_framework_dot_tensor__pb2._TENSORPROTO _RECVTENSORRESPONSE.fields_by_name['transport_options'].message_type = google_dot_protobuf_dot_any__pb2._ANY _LABELEDSTEPSTATS.fields_by_name['step_stats'].message_type = tensorflow_dot_core_dot_framework_dot_step__stats__pb2._STEPSTATS _LOGGINGRESPONSE.fields_by_name['step'].message_type = _LABELEDSTEPSTATS _TRACINGREQUEST.fields_by_name['options'].message_type = _TRACEOPTS _RECVBUFREQUEST.fields_by_name['client_locality'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICELOCALITY _RECVBUFREQUEST.fields_by_name['server_locality'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICELOCALITY _RECVBUFREQUEST.fields_by_name['transport_options'].message_type = google_dot_protobuf_dot_any__pb2._ANY _RECVBUFRESPONSE.fields_by_name['transport_options'].message_type = google_dot_protobuf_dot_any__pb2._ANY _COMPLETEGROUPREQUEST.fields_by_name['device_attributes'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICEATTRIBUTES _COMPLETEGROUPRESPONSE.fields_by_name['device_attributes'].message_type = tensorflow_dot_core_dot_framework_dot_device__attributes__pb2._DEVICEATTRIBUTES _COMPLETEINSTANCEREQUEST.fields_by_name['data_type'].enum_type = tensorflow_dot_core_dot_framework_dot_types__pb2._DATATYPE _COMPLETEINSTANCEREQUEST.fields_by_name['shape'].message_type = tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2._TENSORSHAPEPROTO _GETSTEPSEQUENCERESPONSE.fields_by_name['step_sequence'].message_type = _STEPSEQUENCE DESCRIPTOR.message_types_by_name['GetStatusRequest'] = _GETSTATUSREQUEST DESCRIPTOR.message_types_by_name['GetStatusResponse'] = _GETSTATUSRESPONSE DESCRIPTOR.message_types_by_name['CreateWorkerSessionRequest'] = _CREATEWORKERSESSIONREQUEST DESCRIPTOR.message_types_by_name['CreateWorkerSessionResponse'] = _CREATEWORKERSESSIONRESPONSE DESCRIPTOR.message_types_by_name['DeleteWorkerSessionRequest'] = _DELETEWORKERSESSIONREQUEST DESCRIPTOR.message_types_by_name['DeleteWorkerSessionResponse'] = _DELETEWORKERSESSIONRESPONSE DESCRIPTOR.message_types_by_name['RegisterGraphRequest'] = _REGISTERGRAPHREQUEST DESCRIPTOR.message_types_by_name['RegisterGraphResponse'] = _REGISTERGRAPHRESPONSE DESCRIPTOR.message_types_by_name['DeregisterGraphRequest'] = _DEREGISTERGRAPHREQUEST DESCRIPTOR.message_types_by_name['DeregisterGraphResponse'] = _DEREGISTERGRAPHRESPONSE DESCRIPTOR.message_types_by_name['CleanupAllRequest'] = _CLEANUPALLREQUEST DESCRIPTOR.message_types_by_name['CleanupAllResponse'] = _CLEANUPALLRESPONSE DESCRIPTOR.message_types_by_name['ExecutorOpts'] = _EXECUTOROPTS DESCRIPTOR.message_types_by_name['RunGraphRequest'] = _RUNGRAPHREQUEST DESCRIPTOR.message_types_by_name['RunGraphResponse'] = _RUNGRAPHRESPONSE DESCRIPTOR.message_types_by_name['CleanupGraphRequest'] = _CLEANUPGRAPHREQUEST DESCRIPTOR.message_types_by_name['CleanupGraphResponse'] = _CLEANUPGRAPHRESPONSE DESCRIPTOR.message_types_by_name['RecvTensorRequest'] = _RECVTENSORREQUEST DESCRIPTOR.message_types_by_name['RecvTensorResponse'] = _RECVTENSORRESPONSE DESCRIPTOR.message_types_by_name['MarkRecvFinishedRequest'] = _MARKRECVFINISHEDREQUEST DESCRIPTOR.message_types_by_name['MarkRecvFinishedResponse'] = _MARKRECVFINISHEDRESPONSE DESCRIPTOR.message_types_by_name['LoggingRequest'] = _LOGGINGREQUEST DESCRIPTOR.message_types_by_name['LabeledStepStats'] = _LABELEDSTEPSTATS DESCRIPTOR.message_types_by_name['LoggingResponse'] = _LOGGINGRESPONSE DESCRIPTOR.message_types_by_name['TraceOpts'] = _TRACEOPTS DESCRIPTOR.message_types_by_name['TracingRequest'] = _TRACINGREQUEST DESCRIPTOR.message_types_by_name['TracingResponse'] = _TRACINGRESPONSE DESCRIPTOR.message_types_by_name['RecvBufRequest'] = _RECVBUFREQUEST DESCRIPTOR.message_types_by_name['RecvBufResponse'] = _RECVBUFRESPONSE DESCRIPTOR.message_types_by_name['CompleteGroupRequest'] = _COMPLETEGROUPREQUEST DESCRIPTOR.message_types_by_name['CompleteGroupResponse'] = _COMPLETEGROUPRESPONSE DESCRIPTOR.message_types_by_name['CompleteInstanceRequest'] = _COMPLETEINSTANCEREQUEST DESCRIPTOR.message_types_by_name['CompleteInstanceResponse'] = _COMPLETEINSTANCERESPONSE DESCRIPTOR.message_types_by_name['GetStepSequenceRequest'] = _GETSTEPSEQUENCEREQUEST DESCRIPTOR.message_types_by_name['StepSequence'] = _STEPSEQUENCE DESCRIPTOR.message_types_by_name['GetStepSequenceResponse'] = _GETSTEPSEQUENCERESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) GetStatusRequest = _reflection.GeneratedProtocolMessageType('GetStatusRequest', (_message.Message,), {'DESCRIPTOR': _GETSTATUSREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(GetStatusRequest) GetStatusResponse = _reflection.GeneratedProtocolMessageType('GetStatusResponse', (_message.Message,), {'DESCRIPTOR': _GETSTATUSRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(GetStatusResponse) CreateWorkerSessionRequest = _reflection.GeneratedProtocolMessageType('CreateWorkerSessionRequest', (_message.Message,), {'DESCRIPTOR': _CREATEWORKERSESSIONREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CreateWorkerSessionRequest) CreateWorkerSessionResponse = _reflection.GeneratedProtocolMessageType('CreateWorkerSessionResponse', (_message.Message,), {'DESCRIPTOR': _CREATEWORKERSESSIONRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CreateWorkerSessionResponse) DeleteWorkerSessionRequest = _reflection.GeneratedProtocolMessageType('DeleteWorkerSessionRequest', (_message.Message,), {'DESCRIPTOR': _DELETEWORKERSESSIONREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(DeleteWorkerSessionRequest) DeleteWorkerSessionResponse = _reflection.GeneratedProtocolMessageType('DeleteWorkerSessionResponse', (_message.Message,), {'DESCRIPTOR': _DELETEWORKERSESSIONRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(DeleteWorkerSessionResponse) RegisterGraphRequest = _reflection.GeneratedProtocolMessageType('RegisterGraphRequest', (_message.Message,), {'DESCRIPTOR': _REGISTERGRAPHREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RegisterGraphRequest) RegisterGraphResponse = _reflection.GeneratedProtocolMessageType('RegisterGraphResponse', (_message.Message,), {'DESCRIPTOR': _REGISTERGRAPHRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RegisterGraphResponse) DeregisterGraphRequest = _reflection.GeneratedProtocolMessageType('DeregisterGraphRequest', (_message.Message,), {'DESCRIPTOR': _DEREGISTERGRAPHREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(DeregisterGraphRequest) DeregisterGraphResponse = _reflection.GeneratedProtocolMessageType('DeregisterGraphResponse', (_message.Message,), {'DESCRIPTOR': _DEREGISTERGRAPHRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(DeregisterGraphResponse) CleanupAllRequest = _reflection.GeneratedProtocolMessageType('CleanupAllRequest', (_message.Message,), {'DESCRIPTOR': _CLEANUPALLREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CleanupAllRequest) CleanupAllResponse = _reflection.GeneratedProtocolMessageType('CleanupAllResponse', (_message.Message,), {'DESCRIPTOR': _CLEANUPALLRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CleanupAllResponse) ExecutorOpts = _reflection.GeneratedProtocolMessageType('ExecutorOpts', (_message.Message,), {'DESCRIPTOR': _EXECUTOROPTS, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(ExecutorOpts) RunGraphRequest = _reflection.GeneratedProtocolMessageType('RunGraphRequest', (_message.Message,), {'DESCRIPTOR': _RUNGRAPHREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RunGraphRequest) RunGraphResponse = _reflection.GeneratedProtocolMessageType('RunGraphResponse', (_message.Message,), {'DESCRIPTOR': _RUNGRAPHRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RunGraphResponse) CleanupGraphRequest = _reflection.GeneratedProtocolMessageType('CleanupGraphRequest', (_message.Message,), {'DESCRIPTOR': _CLEANUPGRAPHREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CleanupGraphRequest) CleanupGraphResponse = _reflection.GeneratedProtocolMessageType('CleanupGraphResponse', (_message.Message,), {'DESCRIPTOR': _CLEANUPGRAPHRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CleanupGraphResponse) RecvTensorRequest = _reflection.GeneratedProtocolMessageType('RecvTensorRequest', (_message.Message,), {'DESCRIPTOR': _RECVTENSORREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RecvTensorRequest) RecvTensorResponse = _reflection.GeneratedProtocolMessageType('RecvTensorResponse', (_message.Message,), {'DESCRIPTOR': _RECVTENSORRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RecvTensorResponse) MarkRecvFinishedRequest = _reflection.GeneratedProtocolMessageType('MarkRecvFinishedRequest', (_message.Message,), {'DESCRIPTOR': _MARKRECVFINISHEDREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(MarkRecvFinishedRequest) MarkRecvFinishedResponse = _reflection.GeneratedProtocolMessageType('MarkRecvFinishedResponse', (_message.Message,), {'DESCRIPTOR': _MARKRECVFINISHEDRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(MarkRecvFinishedResponse) LoggingRequest = _reflection.GeneratedProtocolMessageType('LoggingRequest', (_message.Message,), {'DESCRIPTOR': _LOGGINGREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(LoggingRequest) LabeledStepStats = _reflection.GeneratedProtocolMessageType('LabeledStepStats', (_message.Message,), {'DESCRIPTOR': _LABELEDSTEPSTATS, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(LabeledStepStats) LoggingResponse = _reflection.GeneratedProtocolMessageType('LoggingResponse', (_message.Message,), {'DESCRIPTOR': _LOGGINGRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(LoggingResponse) TraceOpts = _reflection.GeneratedProtocolMessageType('TraceOpts', (_message.Message,), {'DESCRIPTOR': _TRACEOPTS, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(TraceOpts) TracingRequest = _reflection.GeneratedProtocolMessageType('TracingRequest', (_message.Message,), {'DESCRIPTOR': _TRACINGREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(TracingRequest) TracingResponse = _reflection.GeneratedProtocolMessageType('TracingResponse', (_message.Message,), {'DESCRIPTOR': _TRACINGRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(TracingResponse) RecvBufRequest = _reflection.GeneratedProtocolMessageType('RecvBufRequest', (_message.Message,), {'DESCRIPTOR': _RECVBUFREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RecvBufRequest) RecvBufResponse = _reflection.GeneratedProtocolMessageType('RecvBufResponse', (_message.Message,), {'DESCRIPTOR': _RECVBUFRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(RecvBufResponse) CompleteGroupRequest = _reflection.GeneratedProtocolMessageType('CompleteGroupRequest', (_message.Message,), {'DESCRIPTOR': _COMPLETEGROUPREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CompleteGroupRequest) CompleteGroupResponse = _reflection.GeneratedProtocolMessageType('CompleteGroupResponse', (_message.Message,), {'DESCRIPTOR': _COMPLETEGROUPRESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CompleteGroupResponse) CompleteInstanceRequest = _reflection.GeneratedProtocolMessageType('CompleteInstanceRequest', (_message.Message,), {'DESCRIPTOR': _COMPLETEINSTANCEREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CompleteInstanceRequest) CompleteInstanceResponse = _reflection.GeneratedProtocolMessageType('CompleteInstanceResponse', (_message.Message,), {'DESCRIPTOR': _COMPLETEINSTANCERESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(CompleteInstanceResponse) GetStepSequenceRequest = _reflection.GeneratedProtocolMessageType('GetStepSequenceRequest', (_message.Message,), {'DESCRIPTOR': _GETSTEPSEQUENCEREQUEST, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(GetStepSequenceRequest) StepSequence = _reflection.GeneratedProtocolMessageType('StepSequence', (_message.Message,), {'DESCRIPTOR': _STEPSEQUENCE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(StepSequence) GetStepSequenceResponse = _reflection.GeneratedProtocolMessageType('GetStepSequenceResponse', (_message.Message,), {'DESCRIPTOR': _GETSTEPSEQUENCERESPONSE, '__module__': 'tensorflow.core.protobuf.worker_pb2'}) _sym_db.RegisterMessage(GetStepSequenceResponse) DESCRIPTOR._options = None _REGISTERGRAPHREQUEST.fields_by_name['has_control_flow']._options = None
429.235
9,027
0.839971
11,242
85,847
6.044654
0.043053
0.044854
0.066825
0.060394
0.738706
0.678621
0.655075
0.649866
0.637505
0.58778
0
0.033084
0.039477
85,847
199
9,028
431.39196
0.791021
0.000361
0
0
1
0.045455
0.19719
0.15204
0
0
0
0
0
1
0
false
0
0.085859
0
0.085859
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
70f5e82d7344f528ef17d2361abcc32b04905649
1,840
py
Python
home/migrations/0004_auto_20190706_0004.py
AkinWilderman/myPort
3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c
[ "Apache-2.0" ]
null
null
null
home/migrations/0004_auto_20190706_0004.py
AkinWilderman/myPort
3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c
[ "Apache-2.0" ]
null
null
null
home/migrations/0004_auto_20190706_0004.py
AkinWilderman/myPort
3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-07-05 23:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0003_job'), ] operations = [ migrations.AlterField( model_name='home', name='Jumbotron_Text', field=models.TextField(max_length=200, verbose_name='Jumbotron Text'), ), migrations.AlterField( model_name='home', name='address', field=models.CharField(max_length=100, verbose_name='Address'), ), migrations.AlterField( model_name='home', name='company_name', field=models.CharField(max_length=100, verbose_name='Company Name'), ), migrations.AlterField( model_name='home', name='country', field=models.CharField(max_length=30, verbose_name='Country'), ), migrations.AlterField( model_name='home', name='keywords', field=models.CharField(max_length=400, verbose_name='Keywords'), ), migrations.AlterField( model_name='home', name='meta_description', field=models.TextField(max_length=160, verbose_name='Meta Description'), ), migrations.AlterField( model_name='home', name='postal', field=models.IntegerField(verbose_name='Postal Code'), ), migrations.AlterField( model_name='home', name='state', field=models.CharField(max_length=20, verbose_name='State'), ), migrations.AlterField( model_name='home', name='statement', field=models.TextField(max_length=300, verbose_name='Statement'), ), ]
31.186441
84
0.564674
175
1,840
5.765714
0.302857
0.178394
0.222993
0.258672
0.587711
0.415263
0.085233
0.085233
0
0
0
0.032514
0.314674
1,840
58
85
31.724138
0.767645
0.024457
0
0.519231
1
0
0.123257
0
0
0
0
0
0
1
0
false
0
0.019231
0
0.076923
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cb160dc829f1664e73a584594f088291e59dea06
3,491
py
Python
stellarobservatory/quorum_intersection_test.py
carlos-echeverria/stellar-observatory
afc396227fefaabf4717ab7ea0842be0bab7f098
[ "MIT" ]
null
null
null
stellarobservatory/quorum_intersection_test.py
carlos-echeverria/stellar-observatory
afc396227fefaabf4717ab7ea0842be0bab7f098
[ "MIT" ]
null
null
null
stellarobservatory/quorum_intersection_test.py
carlos-echeverria/stellar-observatory
afc396227fefaabf4717ab7ea0842be0bab7f098
[ "MIT" ]
null
null
null
"""Test for Torstens's quorum intersection checker (Lachowski variant)""" from stellarobservatory.quorum_intersection import quorum_intersection, is_quorum from stellarobservatory.quorums import contains_slice def test_has_quorum_intersection_false(): """Test quorum_intersection() == False""" # Basically two disjoint quorums {A, B} and {D} (two SCCs) slices_by_node = { 'A': [{'A', 'B'}, {'A', 'C'}, {'A', 'B', 'C'}], 'B': [{'A', 'B'}], 'C': [{'A', 'B', 'C', 'D'}], 'D': [{'D'}] } def is_slice_contained(nodes_subset, node) -> bool: return contains_slice(nodes_subset, slices_by_node, node) has_intersection, quorum1, quorum2 = quorum_intersection((is_slice_contained, {'A', 'B', 'C', 'D'})) assert has_intersection is False assert is_quorum(is_slice_contained, quorum1) is True assert is_quorum(is_slice_contained, quorum2) is True assert quorum1.intersection(quorum2) == set() def test_has_quorum_intersection_false_in_scc(): """Test has_quorum_intersection() without intersection inside an scc. Disjoint SCCs: {1, 2}, {3, 4}""" slices_by_node = { 1: [{1, 2}, {1, 3}, {1, 4}], 2: [{2, 1}, {2, 3}, {2, 4}], 3: [{1, 3}, {2, 3}, {3, 4}], 4: [{1, 4}, {2, 4}, {3, 4}] } def is_slice_contained(nodes_subset, node) -> bool: return contains_slice(nodes_subset, slices_by_node, node) has_intersection, quorum1, quorum2 = quorum_intersection((is_slice_contained, {1, 2, 3, 4})) assert has_intersection is False assert is_quorum(is_slice_contained, quorum1) is True assert is_quorum(is_slice_contained, quorum2) is True assert quorum1.intersection(quorum2) == set() def test_has_quorum_intersection_false_two_max_scc(): """Test has_quorum_intersection() without intersection with two max scc: Disjoint SCCs: {2}, {3}""" slices_by_node = { 1: [{1, 2, 3}], 2: [{2}], 3: [{3}] } def is_slice_contained(nodes_subset, node) -> bool: return contains_slice(nodes_subset, slices_by_node, node) has_intersection, quorum1, quorum2 = quorum_intersection((is_slice_contained, {1, 2, 3})) assert has_intersection is False assert is_quorum(is_slice_contained, quorum1) is True assert is_quorum(is_slice_contained, quorum2) is True assert quorum1.intersection(quorum2) == set() def test_has_quorum_intersection_true(): """Test has_quorum_intersection()""" # One SCC containing quorum {A, B} quorum_slices_by_node = { 'A': [{'A', 'B'}, {'A', 'C'}, {'A', 'B', 'C'}], 'B': [{'A', 'B'}], 'C': [{'A', 'B', 'C'}] } def is_slice_contained(nodes_subset, node) -> bool: return contains_slice(nodes_subset, quorum_slices_by_node, node) assert quorum_intersection((is_slice_contained, {'A', 'B', 'C'})) is True def test_has_quorum_intersection_true_sccs(): """Test has_quorum_intersection() with intersection with three sccs""" slices_by_node = { 1: [{1, 2}, {1, 3}], 2: [{2, 1}, {2, 3}], 3: [{1, 3}, {2, 3}], 4: [{1, 4}], 5: [{2, 5}] } def is_slice_contained(nodes_subset, node) -> bool: return contains_slice(nodes_subset, slices_by_node, node) assert quorum_intersection((is_slice_contained, {1, 2, 3, 4, 5})) is True
35.989691
93
0.608422
460
3,491
4.345652
0.121739
0.162081
0.128064
0.112556
0.766883
0.756878
0.714857
0.667834
0.647824
0.645323
0
0.035041
0.239759
3,491
96
94
36.364583
0.718161
0.138356
0
0.476923
0
0
0.013477
0
0
0
0
0
0.215385
1
0.153846
false
0
0.030769
0.076923
0.261538
0
0
0
0
null
0
0
0
0
1
1
0
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
3
cb21cf7e5da1ab8075841a0af7413a997bd2a04b
2,377
py
Python
tracker/migrations/0005_usermeasurementtypesvisibility.py
mateuszlizun/body-measurement-tracker
824b20564d3b7421f602d484c7dd3c29ae1d3d7b
[ "MIT" ]
null
null
null
tracker/migrations/0005_usermeasurementtypesvisibility.py
mateuszlizun/body-measurement-tracker
824b20564d3b7421f602d484c7dd3c29ae1d3d7b
[ "MIT" ]
null
null
null
tracker/migrations/0005_usermeasurementtypesvisibility.py
mateuszlizun/body-measurement-tracker
824b20564d3b7421f602d484c7dd3c29ae1d3d7b
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-27 10:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tracker', '0004_alter_measurement_abdomen_alter_measurement_bicep_l_and_more'), ] operations = [ migrations.CreateModel( name='UserMeasurementTypesVisibility', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('neck', models.BooleanField(default=False, verbose_name='Neck')), ('shoulders', models.BooleanField(default=False, verbose_name='Shoulders')), ('chest', models.BooleanField(default=True, verbose_name='Chest')), ('bust', models.BooleanField(default=False, verbose_name='Bust')), ('under_bust', models.BooleanField(default=False, verbose_name='Under bust')), ('bicep_r', models.BooleanField(default=False, verbose_name='Bicep (R)')), ('bicep_l', models.BooleanField(default=False, verbose_name='Bicep (L)')), ('forearm_r', models.BooleanField(default=False, verbose_name='Forearm (R)')), ('forearm_l', models.BooleanField(default=False, verbose_name='Forearm (L)')), ('waist', models.BooleanField(default=True, verbose_name='Waist')), ('abdomen', models.BooleanField(default=False, verbose_name='Abdomen')), ('hips', models.BooleanField(default=True, verbose_name='Hips')), ('buttocks', models.BooleanField(default=False, verbose_name='Buttocks')), ('thigh_r', models.BooleanField(default=False, verbose_name='Thigh (R)')), ('thigh_l', models.BooleanField(default=False, verbose_name='Thigh (L)')), ('calf_r', models.BooleanField(default=False, verbose_name='Calf (R)')), ('calf_l', models.BooleanField(default=False, verbose_name='Calf (L)')), ('weight', models.BooleanField(default=True, verbose_name='Weight')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
56.595238
118
0.635255
248
2,377
5.907258
0.28629
0.142662
0.307167
0.286689
0.540614
0.540614
0.319454
0
0
0
0
0.010215
0.217501
2,377
41
119
57.97561
0.777419
0.018931
0
0
1
0
0.157082
0.040773
0
0
0
0
0
1
0
false
0
0.085714
0
0.171429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cb35af44e90f923de595efebaf430000ea02ced3
131
py
Python
api/task/signals.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
api/task/signals.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
api/task/signals.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
from django.dispatch import Signal task_cleanup_signal = Signal(providing_args=['apiview', 'result', 'task_id', 'status', 'obj'])
32.75
94
0.748092
17
131
5.529412
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.091603
131
3
95
43.666667
0.789916
0
0
0
0
0
0.221374
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
cb8504e2ff80ff4d1668b08f25cb0dabc6b6e890
5,861
py
Python
broken/new/samuel.py
DaMuffinDev/joel.enc
ab955215b2f4bdfe3b0db8e8d31aaf02e85e137f
[ "MIT" ]
null
null
null
broken/new/samuel.py
DaMuffinDev/joel.enc
ab955215b2f4bdfe3b0db8e8d31aaf02e85e137f
[ "MIT" ]
null
null
null
broken/new/samuel.py
DaMuffinDev/joel.enc
ab955215b2f4bdfe3b0db8e8d31aaf02e85e137f
[ "MIT" ]
null
null
null
import re from tqdm import tqdm import string import random from _table import lookup_subbyte, reverse_subbyte_lookup, character_lookup def fill_list(list, characters: int): list.append("&") for i in range(characters): list.append(hex(ord(random.choice(string.ascii_letters)))) return list def create_grid(hex_values=[], fill_grid=[]): if len(hex_values) == 0: raise TypeError("Cannot encrypted a string of length 0.") grid_values = [] for value in [hex_values[i:i + 25] for i in range(0, len(hex_values), 25)]: if len(value) == 25: grid_values.append(value); continue temp = value for i in range(len(value), 25): temp.append(fill_grid[i]) grid_values.append(temp) return [[grid_value[i:i + 5] for i in range(0, len(grid_value), 5)] for grid_value in grid_values] def shift_row(list, positions, direction): return {"r": [*list[-positions::], *list[:-positions]], "l": [*list[positions::], *list[:positions]]}[direction] def shift_col(grid, col_index, positions, direction): col = shift_row([row[col_index] for row in grid], positions, {"u": "l", "d": "r"}[direction]) for i, row in enumerate(grid): row[col_index] = col[i] return grid def swap_row(grid, row1_index, row2_index): grid[row1_index], grid[row2_index] = grid[row2_index], grid[row1_index] return grid def swap_col(grid, column1_index, column2_index): for row in grid: row[column1_index], row[column2_index] = row[column2_index], row[column1_index] return grid def xor(hex1, hex2): return hex1 ^ hex2 def xor_row(row1, row2): return [hex(xor(int(row1[i], 16), int(row2[i], 16))) for i in range(5)] def xor_grid(grid1, grid2): return [xor_row(grid1[i], grid2[i]) for i in range(5)] """ Procedure 1: Shift (Row 1) 1p Right Shift (Row 2) 2p Right Shift (Row 3) 3p Right Shift (Row 4) 1p Left Shift (Row 5) 2p Left Procedure 2: Swap (Column 1) & (Column 2) Swap (Column 3) & (Column 5) Shift (Column 1) 2p Down Shift (Column 2) 2p Down Shift (Column 4) 2p Up Swap (Row 1) & (Row 3) Swap (Row 2) & (Row 4) Procedure 3: Shift (Column 1) 2p Up Shift (Column 2) 2p Up Shift (Column 3) 1p Down Shift (Column 4) 2p Down Shift (Column 5) 1p Down """ def generate_cipher_grid(): values = generate_fill_grid() return [values[i:i + 5] for i in range(0, len(values), 5)] def generate_fill_grid(): return [hex(ord(random.choice(string.ascii_letters))) for i in range(25)] def procedure1(grid): shifts = {0: [1, "r"], 1: [2, "r"], 2: [3, "r"], 3: [1, "l"], 4: [2, "l"]} return [shift_row(row, *shifts[index]) for index, row in enumerate(grid)] def procedure2(grid): return swap_row(swap_row(shift_col(shift_col(shift_col(swap_col(swap_col(grid, 0, 1), 2, 4), 0, positions=2, direction="d"), 1, positions=2, direction="d"), 3, positions=2, direction="u"), 0, 2), 1, 3) def procedure3(grid): instructions = {0: [2, "u"], 1: [2, "u"], 2: [1, "d"], 3: [2, "d"], 4: [1, "d"]} for i in range(5): grid = shift_col(grid, i, *instructions[i]) return grid def procedure4(state, p3_grid): return [[lookup_subbyte(int(row[i], 16)) for i in range(5)] for row in xor_grid(state, p3_grid)] def __encrypt(grid, cipher_grid): return "".join(["".join([chr(v) for v in row]) for row in procedure4(grid, procedure3(procedure2(procedure1(xor_grid(grid, cipher_grid)))))]) def parse_decryption_key(key): return tuple([v for v in key.split(".")]) def set_cipher_key_as_grid(cipher_key): return [[int(v, 16) for v in cipher_key[i:i + 5]] for i in range(0, len(cipher_key), 5)] def get_encrypted_grids(encrypted_text): values = encrypted_text.split(".") return [[v[i:i + 5] for i in range(0, len(v), 5)] for v in values] def reverse_procedure1(grid): shifts = {0: [1, "l"], 1: [2, "l"], 2: [3, "l"], 3: [1, "r"], 4: [2, "r"]} return [shift_row(row, *shifts[index]) for index, row in enumerate(grid)] def reverse_procedure2(grid): return swap_row(swap_row(shift_col(shift_col(shift_col(swap_col(swap_col(grid, 0, 1), 2, 4), 0, positions=2, direction="u"), 1, positions=2, direction="u"), 3, positions=2, direction="d"), 0, 2), 1, 3) def reverse_procedure3(grid): instructions = {0: [2, "d"], 1: [2, "d"], 2: [1, "u"], 3: [2, "u"], 4: [1, "u"]} for i in range(5): grid = shift_col(grid, i, *instructions[i]) return grid def reverse_procedure4(output_grid, cipher_grid): return [[reverse_subbyte_lookup(row[i]) for i in range(5)] for row in xor_grid(output_grid, cipher_grid)] def decrypt(encrypted_text, decryption_key, console=True): rounds, _cipher_grid, fill_grid = parse_decryption_key(decryption_key) cipher_grid = set_cipher_key_as_grid(_cipher_grid) grids = get_encrypted_grids(encrypted_text) for i in tqdm(range(int(rounds)), desc="Decrypting", disable=not console): values = [] for grid in grids: values.append(__decrypt(grid, cipher_grid)) def encrypt(text, rounds=1, console=True): cipher_grid = generate_cipher_grid() fill_grid = generate_fill_grid() state = create_grid([hex(ord(t)) for t in text], fill_grid) for i in tqdm(range(rounds), desc="Encrypting", disable=not console): values = [] for grid in state: values.append(__encrypt(grid, cipher_grid)) _ = [] for row in state: for v in row: _.append(v) state = create_grid(v, fill_grid) decryption_key = f"{rounds}.{''.join([''.join([character_lookup(int(v, 16)) for v in row]) for row in cipher_grid])}.{''.join([character_lookup(int(v, 16)) for v in fill_grid])}" encrypted_text = "".join([".".join([character_lookup(ord(x)) for x in v]) for v in values]) return (decryption_key, encrypted_text)
38.81457
205
0.647671
947
5,861
3.853221
0.123548
0.018635
0.026309
0.042203
0.344204
0.241984
0.217594
0.167717
0.167717
0.130995
0
0.039577
0.193824
5,861
151
206
38.81457
0.732698
0
0
0.128713
0
0.009901
0.047235
0.018557
0
0
0
0
0
1
0.247525
false
0
0.049505
0.118812
0.534653
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
0
1
1
0
0
3
cb8c2231d967d599019570a421034d46716701fe
427
py
Python
sklearn_try/news.py
ahmadhafidh/analysis-of-sentiment-ranking-and-rating-apps
0d9b71eef573bff27575ff0d5be211b51cefd31b
[ "MIT" ]
1
2019-06-30T11:51:24.000Z
2019-06-30T11:51:24.000Z
sklearn_try/news.py
ahmadhafidh/analysis-of-sentiment-ranking-and-rating-apps
0d9b71eef573bff27575ff0d5be211b51cefd31b
[ "MIT" ]
null
null
null
sklearn_try/news.py
ahmadhafidh/analysis-of-sentiment-ranking-and-rating-apps
0d9b71eef573bff27575ff0d5be211b51cefd31b
[ "MIT" ]
null
null
null
from sklearn.datasets import fetch_20newsgroups newsgroups_train = fetch_20newsgroups(subset='train') from pprint import pprint pprint(list(newsgroups_train.target_names)) cats = ['alt.atheism', 'sci.space'] newsgroups_train = fetch_20newsgroups(subset='train', categories=cats) list(newsgroups_train.target_names) newsgroups_train.filenames.shape newsgroups_train.target.shape newsgroups_train.target[:10]
26.6875
71
0.800937
52
427
6.346154
0.423077
0.318182
0.254545
0.193939
0.442424
0.260606
0
0
0
0
0
0.020888
0.103045
427
16
72
26.6875
0.840731
0
0
0
0
0
0.072639
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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
0
0
3
cba7b1556a8af501b2f5da8bf6f913ac98f59498
311
py
Python
django_coinpayments/forms.py
SaberDoTcodeR/django-coinpayments
a40e0c6b7e5821756ce2b5b0838d1f0c42b2545c
[ "MIT" ]
23
2018-04-06T03:56:01.000Z
2022-01-14T21:00:10.000Z
django_coinpayments/forms.py
SaberDoTcodeR/django-coinpayments
a40e0c6b7e5821756ce2b5b0838d1f0c42b2545c
[ "MIT" ]
7
2018-04-25T17:03:21.000Z
2022-01-14T08:01:51.000Z
django_coinpayments/forms.py
SaberDoTcodeR/django-coinpayments
a40e0c6b7e5821756ce2b5b0838d1f0c42b2545c
[ "MIT" ]
15
2018-04-16T14:00:52.000Z
2022-01-12T19:27:24.000Z
from django import forms from .utils import get_coins_list class ChooseCoinToPayForm(forms.Form): currency = forms.ChoiceField(choices=get_coins_list(), widget=forms.RadioSelect(), label='', required=True)
31.1
60
0.536977
27
311
6.037037
0.703704
0.09816
0.147239
0
0
0
0
0
0
0
0
0
0.389068
311
9
61
34.555556
0.857895
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
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
0
1
0
0
3
cba8c0c03b7e7e02941a737d8f072e5f3e101c3c
207
py
Python
server/libs/notification_enum.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
195
2019-12-26T11:19:27.000Z
2022-03-28T04:20:34.000Z
server/libs/notification_enum.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
144
2019-09-07T19:10:13.000Z
2022-03-30T07:24:02.000Z
server/libs/notification_enum.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
51
2019-12-02T00:13:47.000Z
2022-03-29T17:26:47.000Z
from enum import Enum class NotificationEnum(Enum): config_refresh = 1 config_refresh_finished = 2 config_refresh_failed = 3 process_stop = 4 process_pause = 5 process_continue = 6
18.818182
31
0.714976
27
207
5.185185
0.703704
0.278571
0
0
0
0
0
0
0
0
0
0.038217
0.241546
207
10
32
20.7
0.853503
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
1
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
0
0
0
0
1
0
0
3
cbb02847fa741b639cf6cfbd70020430670e0257
123
py
Python
lowell-dashboard/app/tools/make_schedule/wkschedule.py
lowell-dashboard/dashboard-flask
c83ad772f40e48258bf845908ffc361d8fe08120
[ "Apache-2.0" ]
3
2018-12-06T17:19:20.000Z
2022-03-29T22:28:59.000Z
lowell-dashboard/app/tools/make_schedule/wkschedule.py
lowell-dashboard/dashboard-flask
c83ad772f40e48258bf845908ffc361d8fe08120
[ "Apache-2.0" ]
10
2018-12-08T03:54:52.000Z
2022-03-29T22:27:42.000Z
lowell-dashboard/app/tools/make_schedule/wkschedule.py
lowell-dashboard/dashboard-flask
c83ad772f40e48258bf845908ffc361d8fe08120
[ "Apache-2.0" ]
null
null
null
class WeekSchedule(): def __init__(self, dates=[], codes=[]): self.weeknum = 0 self.dates = dates self.codes = codes
24.6
40
0.666667
16
123
4.875
0.5625
0.230769
0
0
0
0
0
0
0
0
0
0.009804
0.170732
123
5
41
24.6
0.754902
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
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
0
0
0
0
0
3
1dabd7e3b3c9b4beb638f6213c7ffbb88c70dc53
50
py
Python
apps/api/v2/__init__.py
MySmile/mysmile
5abe4baa7970674d1f8365d875519283c2e29dae
[ "BSD-3-Clause" ]
5
2015-05-03T09:51:32.000Z
2019-05-21T14:19:02.000Z
apps/api/v2/__init__.py
MySmile/mysmile
5abe4baa7970674d1f8365d875519283c2e29dae
[ "BSD-3-Clause" ]
24
2015-04-05T16:28:08.000Z
2022-03-11T23:36:56.000Z
apps/api/v2/__init__.py
MySmile/mysmile
5abe4baa7970674d1f8365d875519283c2e29dae
[ "BSD-3-Clause" ]
null
null
null
default_app_config = 'apps.api.v2.apps.ApiConfig'
25
49
0.8
8
50
4.75
0.875
0
0
0
0
0
0
0
0
0
0
0.021277
0.06
50
1
50
50
0.787234
0
0
0
0
0
0.52
0.52
0
0
0
0
0
1
0
false
0
0
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1dad55d5bac00d63ac8485622e68edf4d15d44b1
217
py
Python
Connector/admin/constants.py
bridgedragon/NodeChain
2554eb7fa7f677037a800eca43e58e1ab15c41a6
[ "MIT" ]
null
null
null
Connector/admin/constants.py
bridgedragon/NodeChain
2554eb7fa7f677037a800eca43e58e1ab15c41a6
[ "MIT" ]
null
null
null
Connector/admin/constants.py
bridgedragon/NodeChain
2554eb7fa7f677037a800eca43e58e1ab15c41a6
[ "MIT" ]
null
null
null
#!/usr/bin/python ADMIN_SCHEMA_FOLDER = "admin/schemas/" ADMIN_SCHEMA_CHAR_SEPARATOR = "_" ADD_COIN_METHOD = "addcoin" GET_COIN_METHOD = "getcoin" REMOVE_COIN_METHOD = "removecoin" UPDATE_COIN_METHOD = "updatecoin"
21.7
38
0.788018
28
217
5.607143
0.678571
0.254777
0
0
0
0
0
0
0
0
0
0
0.096774
217
9
39
24.111111
0.80102
0.073733
0
0
0
0
0.245
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
3
1db61cbec80cb93f5c82777710252cd643ea4efa
123
py
Python
exercises/exc_D1.py
dataXcode/IPP
c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b
[ "MIT" ]
null
null
null
exercises/exc_D1.py
dataXcode/IPP
c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b
[ "MIT" ]
null
null
null
exercises/exc_D1.py
dataXcode/IPP
c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b
[ "MIT" ]
null
null
null
#1 Create countries dictionary countries = __________________ #2 Print out the capital of egypt print(__________________)
24.6
33
0.829268
13
123
5.076923
0.846154
0
0
0
0
0
0
0
0
0
0
0.018692
0.130081
123
5
34
24.6
0.598131
0.504065
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
1
0
3
1dbdafae96ca8bdcec1783d4ac6d7a37215bf6e7
1,187
py
Python
x5gon_content_metadata_dataset/io.py
IRCAI/X5GON_content_metadata_dataset
aac2384157cacbdb1e519ee6337c713eb10b3fdc
[ "CC-BY-4.0" ]
null
null
null
x5gon_content_metadata_dataset/io.py
IRCAI/X5GON_content_metadata_dataset
aac2384157cacbdb1e519ee6337c713eb10b3fdc
[ "CC-BY-4.0" ]
null
null
null
x5gon_content_metadata_dataset/io.py
IRCAI/X5GON_content_metadata_dataset
aac2384157cacbdb1e519ee6337c713eb10b3fdc
[ "CC-BY-4.0" ]
null
null
null
import pandas as pd SEPARATOR = "|||" def _split_text(text, sep=SEPARATOR): return [t.strip() for t in str(text).split(sep)] def load_dataset(filepath): """Loads the x5gon metadata dataset from the specified path Args: filepath (str): filepath to the TSV file with metadata dataset Returns: data (DataFrame): A pandas DataFrame containing the metadata Format of output file: id (int): resource id of OER in the X5GON index. Useful to get more information using the API title (str): Title of the Resource type (str): File Type (can be video, audio, pdf etc...) language (str): Language of the resource keywords ([str]): A list of keywords extracted using AI concepts ([str]): A list of Wikipedia concepts associated with the resource (using AI) """ data = pd.read_csv(filepath, sep="\t") data["keywords"] = data["keywords"].apply(_split_text) data["concepts"] = data["concepts"].apply(_split_text) return data
38.290323
125
0.57203
143
1,187
4.692308
0.475524
0.040238
0.038748
0.029806
0
0
0
0
0
0
0
0.002554
0.340354
1,187
30
126
39.566667
0.854406
0.663016
0
0
0
0
0.107246
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.555556
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
0
1
1
0
0
3
1dea1409f2fd757a98d96a2754d573995a2a736e
155
py
Python
web_elements/table/td.py
tronze/PythonCustomCalendar
bd7ffbbf28616ccf65e545605ede5f3dda251c9a
[ "BSD-3-Clause" ]
8
2019-03-05T12:23:07.000Z
2021-01-10T09:49:27.000Z
web_elements/table/td.py
tronze/PythonCustomCalendar
bd7ffbbf28616ccf65e545605ede5f3dda251c9a
[ "BSD-3-Clause" ]
null
null
null
web_elements/table/td.py
tronze/PythonCustomCalendar
bd7ffbbf28616ccf65e545605ede5f3dda251c9a
[ "BSD-3-Clause" ]
2
2019-02-18T06:34:34.000Z
2019-03-05T12:17:22.000Z
from ..web_element import WebElement class TdElement(WebElement): TD = 'td' def __init__(self): super().__init__(element_type=self.TD)
15.5
46
0.677419
19
155
5
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.206452
155
9
47
17.222222
0.772358
0
0
0
0
0
0.012903
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
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
0
1
0
0
3
1df3057703672e6a31b41b37cbadd545c4e589ed
226
py
Python
sendfile/backends/xsendfile.py
NotSqrt/django-sendfile
31ceca3298c83b69361f7af59a65b06a0ca69506
[ "BSD-3-Clause" ]
1
2015-10-23T18:00:51.000Z
2015-10-23T18:00:51.000Z
sendfile/backends/xsendfile.py
NotSqrt/django-sendfile
31ceca3298c83b69361f7af59a65b06a0ca69506
[ "BSD-3-Clause" ]
null
null
null
sendfile/backends/xsendfile.py
NotSqrt/django-sendfile
31ceca3298c83b69361f7af59a65b06a0ca69506
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse from django.utils.encoding import smart_str def sendfile(request, filename, **kwargs): response = HttpResponse() response['X-Sendfile'] = smart_str(filename) return response
22.6
48
0.752212
27
226
6.222222
0.62963
0.119048
0
0
0
0
0
0
0
0
0
0
0.154867
226
9
49
25.111111
0.879581
0
0
0
0
0
0.044248
0
0
0
0
0
0
1
0.166667
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
0
0
0
3
1dfcda565aa037a729dca081add9b1b386ddf78a
5,805
py
Python
chb/asm/AsmRegister.py
psifertex/CodeHawk-Binary
1711d7b16d32a2e9ffa9d22af483182b3f9ded77
[ "MIT" ]
null
null
null
chb/asm/AsmRegister.py
psifertex/CodeHawk-Binary
1711d7b16d32a2e9ffa9d22af483182b3f9ded77
[ "MIT" ]
null
null
null
chb/asm/AsmRegister.py
psifertex/CodeHawk-Binary
1711d7b16d32a2e9ffa9d22af483182b3f9ded77
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Access to the CodeHawk Binary Analyzer Analysis Results # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # ------------------------------------------------------------------------------ """X86 CPU Register data.""" class AsmRegisterBase(object): def __init__(self,bd,index,tags,args): self.bd = bd self.index = index self.tags = tags self.args = args def is_cpu_register(self): return False def is_segment_register(self): return False def is_double_register(self): return False def is_floating_point_register(self): return False def is_control_register(self): return False def is_debug_register(self): return False def is_mmx_register(self): return False def is_xmm_register(self): return False def get_key(self): return (','.join(self.tags), ','.join([str(x) for x in self.args])) # ------------------------------------------------------------------------------ # CPURegister # ------------------------------------------------------------------------------ class CPURegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_cpu_register(self): return True def __str__(self): return self.tags[1] # ------------------------------------------------------------------------------ # SegmentRegister # ------------------------------------------------------------------------------ class SegmentRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_segment_register(self): return True def __str__(self): return self.tags[1] # ------------------------------------------------------------------------------ # DoubleRegister # ------------------------------------------------------------------------------ class DoubleRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_double_register(self): return True def __str__(self): return self.tags[1] + ':' + self.tags[2] # ------------------------------------------------------------------------------ # FloatingPointRegister # ------------------------------------------------------------------------------ class FloatingPointRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_floating_point_register(self): return True def get_index(self): return self.args[0] def __str__(self): return 'st(' + str(self.get_index()) + ')' # ------------------------------------------------------------------------------ # ControlRegister # ------------------------------------------------------------------------------ class ControlRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_control_register(self): return True def get_index(self): return self.args[0] def __str__(self): return 'CR' + str(self.get_index()) # ------------------------------------------------------------------------------ # DebugRegister # ------------------------------------------------------------------------------ class DebugRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_debug_register(self): return True def get_index(self): return self.args[0] def __str__(self): return 'DR' + str(self.get_index()) # ------------------------------------------------------------------------------ # MmxRegister # ------------------------------------------------------------------------------ class MmxRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_mmx_register(self): return True def get_index(self): return self.args[0] def __str__(self): return 'mm(' + str(self.get_index()) + ')' # ------------------------------------------------------------------------------ # XmmRegister # ------------------------------------------------------------------------------ class XmmRegister(AsmRegisterBase): def __init__(self,bd,index,tags,args): AsmRegisterBase.__init__(self,bd,index,tags,args) def is_xmm_register(self): return True def get_index(self): return self.args[0] def __str__(self): return 'xmm(' + str(self.get_index()) + ')'
35.613497
80
0.531611
594
5,805
4.951178
0.257576
0.102006
0.057803
0.086705
0.511391
0.508671
0.428766
0.392044
0.392044
0.392044
0
0.003788
0.135917
5,805
162
81
35.833333
0.582536
0.484065
0
0.393443
0
0
0.006803
0
0
0
0
0
0
1
0.639344
false
0
0
0.491803
0.803279
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
0
1
1
0
0
3
3811f55f1c82a91b5af469548d334ddd86ba58d3
210
py
Python
pipescaler/__init__.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
1
2022-02-07T03:47:53.000Z
2022-02-07T03:47:53.000Z
pipescaler/__init__.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
49
2022-01-17T15:16:22.000Z
2022-03-28T03:00:39.000Z
pipescaler/__init__.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # pipescaler/__init__.py # # Copyright (C) 2020-2021 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license.
23.333333
72
0.704762
31
210
4.645161
0.967742
0
0
0
0
0
0
0
0
0
0
0.047904
0.204762
210
8
73
26.25
0.814371
0.92381
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
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
3
381b1b39db3c7ea5935c7967d4ba5a82c7a7e81d
926
py
Python
account_creaters/generate_account_data.py
erhan-/pokefarm
797ad72d44bdccd2b7a32080d259d187988bd4ab
[ "MIT" ]
null
null
null
account_creaters/generate_account_data.py
erhan-/pokefarm
797ad72d44bdccd2b7a32080d259d187988bd4ab
[ "MIT" ]
null
null
null
account_creaters/generate_account_data.py
erhan-/pokefarm
797ad72d44bdccd2b7a32080d259d187988bd4ab
[ "MIT" ]
null
null
null
from faker import Faker # install with: pip install faker import string import random import json import sys def gen_password(length, special=False): # TODO: do this more secure alpha = string.ascii_uppercase + string.ascii_lowercase + string.digits if special: alpha += "@${}()^&*%#!" return ''.join(random.choice(alpha) for _ in range(length)) if len(sys.argv) != 3: print "Usage: %s <num accounts> <output file>"%(sys.argv[0]) num_accounts = int(sys.argv[1]) output_file = sys.argv[2] config = {"accounts": []} f = Faker() for _ in range(num_accounts): account = { "auth_service": "ptc", "username": f.username() + gen_password(5) , "password": gen_password(10)+"!", "location": "40.766733, -73.977474", "cp": 0 } config["accounts"].append(account) with open(output_file, "w") as fd: fd.write(json.JSONEncoder().encode(config))
25.027027
75
0.62959
122
926
4.680328
0.57377
0.049037
0.035026
0.059545
0
0
0
0
0
0
0
0.032742
0.208423
926
36
76
25.722222
0.746248
0.061555
0
0
0
0
0.150115
0
0
0
0
0.027778
0
0
null
null
0.111111
0.185185
null
null
0.037037
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
1
0
0
1
0
0
0
0
0
3
381c68c41ff37227ef5347b98ef68391090bd919
214
py
Python
LeetCode/python3/650.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
279
2019-02-19T16:00:32.000Z
2022-03-23T12:16:30.000Z
LeetCode/python3/650.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
2
2019-03-31T08:03:06.000Z
2021-03-07T04:54:32.000Z
LeetCode/python3/650.py
ZintrulCre/LeetCode_Crawler
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
12
2019-01-29T11:45:32.000Z
2019-02-04T16:31:46.000Z
class Solution: def minSteps(self, n: int) -> int: res, m = 0, 2 while n > 1: while n % m == 0: res += m n //= m m += 1 return res
23.777778
38
0.341121
27
214
2.703704
0.518519
0.109589
0
0
0
0
0
0
0
0
0
0.051546
0.546729
214
9
39
23.777778
0.701031
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
3
382d576c44a6fa463366738de9481ac25116c75b
52
py
Python
astrobot/cogs/spotify/__init__.py
astro-devel/astrobot
d0a957731cabed23a7442c8ad4672e7331946e26
[ "MIT" ]
null
null
null
astrobot/cogs/spotify/__init__.py
astro-devel/astrobot
d0a957731cabed23a7442c8ad4672e7331946e26
[ "MIT" ]
8
2022-01-24T00:14:54.000Z
2022-03-25T18:19:20.000Z
astrobot/cogs/spotify/__init__.py
astro-devel/astrobot
d0a957731cabed23a7442c8ad4672e7331946e26
[ "MIT" ]
1
2022-01-24T22:37:47.000Z
2022-01-24T22:37:47.000Z
from .spotify import Spotify __all__ = ["Spotify"]
13
28
0.730769
6
52
5.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
3
29
17.333333
0.772727
0
0
0
0
0
0.134615
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3