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
d8ae69ea1790bae2bd95a19e783ce159cf12ff32
98
py
Python
heisenbridge/__init__.py
pstn/heisenbridge
c01bb90315cb0fba8a439e40bbe076445e0b62b8
[ "MIT" ]
null
null
null
heisenbridge/__init__.py
pstn/heisenbridge
c01bb90315cb0fba8a439e40bbe076445e0b62b8
[ "MIT" ]
null
null
null
heisenbridge/__init__.py
pstn/heisenbridge
c01bb90315cb0fba8a439e40bbe076445e0b62b8
[ "MIT" ]
null
null
null
"""Heisenbridge An alternative to https://github.com/matrix-org/matrix-appservice-irc/issues """
19.6
76
0.765306
13
98
5.769231
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.071429
98
4
77
24.5
0.824176
0.918367
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
d8cd1068673dd646fcd201862b3f7955fdf7f6e7
122
py
Python
integration/test_workspace/src/test-pip-install/src/test-pip-install.py
mulino-bianco/colcon-bundle
4f85e5dc33d77318e9de431ad292bb62b6d0ab56
[ "Apache-2.0" ]
null
null
null
integration/test_workspace/src/test-pip-install/src/test-pip-install.py
mulino-bianco/colcon-bundle
4f85e5dc33d77318e9de431ad292bb62b6d0ab56
[ "Apache-2.0" ]
null
null
null
integration/test_workspace/src/test-pip-install/src/test-pip-install.py
mulino-bianco/colcon-bundle
4f85e5dc33d77318e9de431ad292bb62b6d0ab56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from bitstring import BitArray foo = BitArray(bin='00101') print 'test-pip-install passed...'
11.090909
34
0.704918
17
122
5.058824
0.882353
0
0
0
0
0
0
0
0
0
0
0.048077
0.147541
122
10
35
12.2
0.778846
0.163934
0
0
0
0
0.316327
0
0
0
0
0
0
0
null
null
0.333333
0.333333
null
null
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
1
0
0
0
0
4
d8fd0d4af1e76a13792cdd26c327384bea65e655
228
py
Python
Mundo 1 - Fundamentos/ex021.py
N3mT3nta/ExerciciosPython
23451dd800ef0d73b75e9fa78d0dcfa0859206a0
[ "MIT" ]
null
null
null
Mundo 1 - Fundamentos/ex021.py
N3mT3nta/ExerciciosPython
23451dd800ef0d73b75e9fa78d0dcfa0859206a0
[ "MIT" ]
null
null
null
Mundo 1 - Fundamentos/ex021.py
N3mT3nta/ExerciciosPython
23451dd800ef0d73b75e9fa78d0dcfa0859206a0
[ "MIT" ]
null
null
null
#Para IDE local: '''import pygame pygame.mixer.init() pygame.mixer.music.load('music.mp3') pygame.mixer.music.play() pygame.event.wait()''' #Para Repl.it: from replit import audio audio.play('music.mp3') input('Tocando...')
15.2
36
0.710526
34
228
4.764706
0.588235
0.203704
0.197531
0
0
0
0
0
0
0
0
0.009662
0.092105
228
14
37
16.285714
0.772947
0.635965
0
0
0
0
0.25
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9926bfe86d4ae8099b4716f981ab090e4a46b8b6
231
py
Python
pytorch_seed_rl/functional/__init__.py
mjanschek/pytorch_seed_rl
bd7415deb8bbb04b11b92439eea0fc2a19bb029d
[ "Apache-2.0" ]
9
2020-06-10T07:17:39.000Z
2022-01-25T12:09:03.000Z
pytorch_seed_rl/functional/__init__.py
mjanschek/pytorch_seed_rl
bd7415deb8bbb04b11b92439eea0fc2a19bb029d
[ "Apache-2.0" ]
null
null
null
pytorch_seed_rl/functional/__init__.py
mjanschek/pytorch_seed_rl
bd7415deb8bbb04b11b92439eea0fc2a19bb029d
[ "Apache-2.0" ]
3
2021-02-25T07:19:29.000Z
2021-07-21T02:15:44.000Z
"""The functional module implements various functional needed for reinforcement learning calculations. Exposed functions: * :py:func:`loss.entropy` * :py:func:`loss.policy_gradient` * :py:func:`vtrace.from_logits` """
25.666667
61
0.731602
27
231
6.185185
0.777778
0.107784
0.11976
0
0
0
0
0
0
0
0
0
0.142857
231
8
62
28.875
0.843434
0.965368
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
996d77dc4eab434a2340ac2277038019918bedaf
87
py
Python
3/3.1/name.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
3/3.1/name.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
3/3.1/name.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
# 姓名 names = ['singi', 'lily', 'sam'] print(names[0]) print(names[1]) print(names[2])
12.428571
32
0.597701
14
87
3.714286
0.642857
0.576923
0
0
0
0
0
0
0
0
0
0.039474
0.126437
87
6
33
14.5
0.644737
0.022989
0
0
0
0
0.144578
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
997915cf9fe4fe9d9644a4fb24c93d164b3db85a
105
py
Python
filemanager/forms.py
code-assassin/django-filemanager
69950c786348bec619f060e3131f49eb7f2e58c5
[ "BSD-3-Clause" ]
12
2016-04-02T06:02:20.000Z
2021-11-18T18:49:08.000Z
filemanager/forms.py
code-assassin/django-filemanager
69950c786348bec619f060e3131f49eb7f2e58c5
[ "BSD-3-Clause" ]
3
2015-06-02T08:28:29.000Z
2016-01-08T16:09:24.000Z
filemanager/forms.py
code-assassin/django-filemanager
69950c786348bec619f060e3131f49eb7f2e58c5
[ "BSD-3-Clause" ]
9
2015-04-21T05:07:20.000Z
2021-05-14T14:11:16.000Z
from django import forms class DirectoryCreateForm(forms.Form): directory_name = forms.CharField()
17.5
38
0.780952
12
105
6.75
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.142857
105
5
39
21
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
998bbd22a6b1b94a7d7ab3d59620958424c7533e
599
py
Python
wrappers.py
chkim403/blstm-mtp
6f69b4121f137c9c0bd97e1291e5ce2bae3bbc4e
[ "MIT" ]
18
2021-04-01T12:40:26.000Z
2022-03-30T03:28:36.000Z
wrappers.py
chkim403/blstm-mtp
6f69b4121f137c9c0bd97e1291e5ce2bae3bbc4e
[ "MIT" ]
null
null
null
wrappers.py
chkim403/blstm-mtp
6f69b4121f137c9c0bd97e1291e5ce2bae3bbc4e
[ "MIT" ]
2
2021-07-13T06:04:45.000Z
2022-01-26T09:03:44.000Z
import tensorflow as tf # Code Source: https://stackoverflow.com/questions/47745027/ class Wrapper(tf.nn.rnn_cell.RNNCell): def __init__(self, inner_cell): super(Wrapper, self).__init__() self._inner_cell = inner_cell @property def state_size(self): return self._inner_cell.state_size @property def output_size(self): return (self._inner_cell.state_size, self._inner_cell.output_size) def call(self, input, *args, **kwargs): output, next_state = self._inner_cell(input, *args, **kwargs) emit_output = (next_state, output) return emit_output, next_state
29.95
70
0.731219
84
599
4.845238
0.392857
0.154791
0.191646
0.083538
0.176904
0.176904
0.176904
0.176904
0
0
0
0.01581
0.155259
599
20
71
29.95
0.788538
0.096828
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.266667
false
0
0.066667
0.133333
0.6
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
41d44036c4754c45cabed0cb8b6db7f48e73a48b
96
py
Python
contact_app/apps.py
FQAlmeida/DjangoWithDocker
5c5569dafbf5b7754e4b388fa620a624eb9d1662
[ "MIT" ]
null
null
null
contact_app/apps.py
FQAlmeida/DjangoWithDocker
5c5569dafbf5b7754e4b388fa620a624eb9d1662
[ "MIT" ]
null
null
null
contact_app/apps.py
FQAlmeida/DjangoWithDocker
5c5569dafbf5b7754e4b388fa620a624eb9d1662
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ContactAppConfig(AppConfig): name = 'contact_app'
16
34
0.770833
11
96
6.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15625
96
5
35
19.2
0.901235
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
41e8392a810fc7590212a576247873c135e33435
1,660
py
Python
fate/DUT/queue.py
kartik-hegde/fate
0ad0acd5ab9b8dc7f7786c233629c69a061ecbdb
[ "MIT" ]
null
null
null
fate/DUT/queue.py
kartik-hegde/fate
0ad0acd5ab9b8dc7f7786c233629c69a061ecbdb
[ "MIT" ]
null
null
null
fate/DUT/queue.py
kartik-hegde/fate
0ad0acd5ab9b8dc7f7786c233629c69a061ecbdb
[ "MIT" ]
null
null
null
import queue import simpy class SimpleQueue: def __init__(self, name, data=[]): self.queue = list(data) self.name = name def peek(self): print("Peeking {0} from {1}".format(self.queue[0], self.name)) return self.queue[0] def pop(self): print("Popping {0} from {1}".format(self.queue[0], self.name)) return self.queue.pop(0) def push(self, value, latency=0): print("Inserting {0} to {1}".format(value, self.name)) self.queue.append(value) def empty(self): return (len(self.queue) == 0) def done(self): return (self.inflight_push.count == 0) and (len(self.queue) == 0) class SimpyQueue: def __init__(self, env, name, data=[], pipeline_stages=100): self.env = env self.queue = list(data) self.name = name self.inflight_push = simpy.Resource(env, capacity=pipeline_stages+1) def peek(self): print("Peeking {0} from {1}".format(self.queue[0], self.name)) return self.queue[0] def pop(self): print("Popping {0} from {1}".format(self.queue[0], self.name)) return self.queue.pop(0) def push(self, value, latency=0): with self.inflight_push.request() as req: yield req # Spend extra cycles (as many as the pipelining stages of the producer) yield self.env.timeout(latency) print("Inserting {0} to {1}".format(value, self.name)) self.queue.append(value) def empty(self): return (len(self.queue) == 0) def done(self): return (self.inflight_push.count == 0) and (len(self.queue) == 0)
30.740741
83
0.592771
231
1,660
4.199134
0.233766
0.148454
0.103093
0.049485
0.692784
0.692784
0.692784
0.63299
0.63299
0.63299
0
0.02608
0.260843
1,660
54
84
30.740741
0.764466
0.041566
0
0.731707
0
0
0.075472
0
0
0
0
0
0
1
0.292683
false
0
0.04878
0.097561
0.585366
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
5106787efe4dd53e79b44ff2da200d121d3247e8
463
py
Python
tests/test_mcdparsercpp.py
tabatsky/imctools
f7482b5b543ff5452219f54c0218177044f76df8
[ "MIT" ]
null
null
null
tests/test_mcdparsercpp.py
tabatsky/imctools
f7482b5b543ff5452219f54c0218177044f76df8
[ "MIT" ]
null
null
null
tests/test_mcdparsercpp.py
tabatsky/imctools
f7482b5b543ff5452219f54c0218177044f76df8
[ "MIT" ]
null
null
null
from .context import TestMcdParsing from .generate_testcase import ParsingTestMCD import unittest import platform if (platform.system() != 'Java'): try: from imctools.io.mcdparsercpp import McdParserCpp class TestMCDparser(TestMcdParsing): """ Compare the current MCD parser results with some stored ones """ def test_parser(self): self.parser_test(McdParserCpp) except: pass
28.9375
84
0.658747
47
463
6.425532
0.702128
0
0
0
0
0
0
0
0
0
0
0
0.274298
463
15
85
30.866667
0.89881
0.12959
0
0
1
0
0.010127
0
0
0
0
0
0
1
0.083333
false
0.083333
0.416667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
511e0c999f6924c0326056558ddd17f5b145aa18
138
py
Python
src/shovel/config.py
felix-org/shovel
49cd4cccbc1d60858d406a87c7a1e1b3d9eb0e46
[ "Apache-2.0" ]
11
2017-07-12T10:27:05.000Z
2020-07-14T07:36:33.000Z
src/shovel/config.py
felix-org/shovel
49cd4cccbc1d60858d406a87c7a1e1b3d9eb0e46
[ "Apache-2.0" ]
18
2017-07-12T10:49:56.000Z
2017-08-26T15:57:13.000Z
src/shovel/config.py
lyst/shovel
7bccd5a3ff83594718b2ad43687a1c12f7a2b60c
[ "Apache-2.0" ]
7
2017-07-12T13:20:37.000Z
2021-08-17T15:26:18.000Z
# -*- coding: utf-8 -*- class Config(object): def __init__(self, bucket, root): self.bucket = bucket self.root = root
23
37
0.57971
17
138
4.470588
0.647059
0.263158
0
0
0
0
0
0
0
0
0
0.009901
0.268116
138
5
38
27.6
0.742574
0.152174
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
514b4d15251cf7e47f1f5082f1f629c9128fee2b
1,058
py
Python
logapp/models.py
rahmangate/log
b79bd44aed492ff15af8cd038e5d85b37dfc7a8e
[ "Apache-2.0" ]
null
null
null
logapp/models.py
rahmangate/log
b79bd44aed492ff15af8cd038e5d85b37dfc7a8e
[ "Apache-2.0" ]
null
null
null
logapp/models.py
rahmangate/log
b79bd44aed492ff15af8cd038e5d85b37dfc7a8e
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from datetime import date from django.urls import reverse # Create your models here. class Employee(models.Model): first_name=models.CharField(max_length=50) last_name=models.CharField(max_length=50) picture=models.CharField(max_length=40) department=models.CharField(max_length=50) role=models.CharField(max_length=50) email=models.EmailField(max_length=80) phone=models.CharField(max_length=15) def __str__(self): return f'{self.first_name} {self.last_name}' def get_absolute_url(self): return reverse('employee_detail',args=[str(self.id)]) class Visitor(models.Model): first_name=models.CharField(max_length=50) last_name=models.CharField(max_length=50) picture=models.CharField(max_length=40) phone=models.CharField(max_length=15) def __str__(self): return f'{self.first_name} {self.last_name}' def get_absolute_url(self): return reverse('visitor_detail',args=[str(self.id)])
31.117647
61
0.736295
151
1,058
4.940397
0.304636
0.132708
0.241287
0.321716
0.710456
0.589812
0.589812
0.589812
0.589812
0.589812
0
0.024472
0.150284
1,058
33
62
32.060606
0.805339
0.022684
0
0.56
0
0
0.09593
0
0
0
0
0
0
1
0.16
false
0
0.16
0.16
1
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
1
1
0
0
4
5a9e75a728343409dced9e2ba4446901543b25e6
194
py
Python
surgerytype/urls.py
DaleProctor/tscharts
5447395e0aef0b949bef8426febdec2093cf37ef
[ "Apache-2.0" ]
16
2016-08-17T21:39:10.000Z
2021-11-24T12:14:28.000Z
surgerytype/urls.py
DaleProctor/tscharts
5447395e0aef0b949bef8426febdec2093cf37ef
[ "Apache-2.0" ]
55
2017-04-23T18:12:04.000Z
2021-08-08T08:25:18.000Z
surgerytype/urls.py
DaleProctor/tscharts
5447395e0aef0b949bef8426febdec2093cf37ef
[ "Apache-2.0" ]
8
2017-08-11T02:11:46.000Z
2021-07-06T22:58:42.000Z
from django.conf.urls import url from surgerytype.views import SurgeryTypeView urlpatterns = [ url(r'^$', SurgeryTypeView.as_view()), url(r'^([0-9]+)/$', SurgeryTypeView.as_view()), ]
21.555556
51
0.685567
24
194
5.458333
0.625
0.061069
0.320611
0
0
0
0
0
0
0
0
0.011905
0.134021
194
8
52
24.25
0.767857
0
0
0
0
0
0.067358
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
5ac81f3f84f345c193c6a01bbaa0d07b7beda257
952
py
Python
src/regular_expressions.py
celalormanli/python_sandbox
3063b974d946130a35a4cb8c55014c8df1ffcdb4
[ "MIT" ]
null
null
null
src/regular_expressions.py
celalormanli/python_sandbox
3063b974d946130a35a4cb8c55014c8df1ffcdb4
[ "MIT" ]
null
null
null
src/regular_expressions.py
celalormanli/python_sandbox
3063b974d946130a35a4cb8c55014c8df1ffcdb4
[ "MIT" ]
null
null
null
import re class RegularExpressions: def find_emails(self, input_text): regex = r'\S+@\S+\.\S+' return re.findall(regex, input_text) def validete_email(self, input_text): regex = r'^(\w|\.|\_|\-)+[@](\w|\_|\-|\.)+[.]\w{2,3}$' if re.search(regex, input_text): return True return False def find_numbers(self, input_text): regex = r'\d+' return re.findall(regex, input_text) def find_senders(self, input_text): regex = r'Sender (.*) Recievers' return re.findall(regex, input_text) def find_amounts(self, input_text): regex = r'[0-9]+\$' return re.findall(regex, input_text) def find_amounts(self, input_text): regex = r'[0-9]+\$' return re.findall(regex, input_text) def find_plate_numbers(self, input_text): regex = r'\d{2}\s?\S{1,3}[A-Z]\s?\d{2,4}' return re.findall(regex, input_text)
28
62
0.578782
134
952
3.932836
0.276119
0.239089
0.172676
0.239089
0.705882
0.597723
0.542695
0.379507
0.311195
0.311195
0
0.015471
0.253151
952
33
63
28.848485
0.725738
0
0
0.4
0
0.04
0.131303
0.076681
0
0
0
0
0
1
0.28
false
0
0.04
0
0.68
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
1
0
0
4
851083f0b5c52762d26c2637c162ce160e7cb9bf
91
py
Python
src/sage/geometry/triangulation/all.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/geometry/triangulation/all.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/geometry/triangulation/all.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
from __future__ import absolute_import from .point_configuration import PointConfiguration
30.333333
51
0.901099
10
91
7.6
0.7
0
0
0
0
0
0
0
0
0
0
0
0.087912
91
2
52
45.5
0.915663
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
518ca1b3f00e5bca08d7f6f72017db3b6bfd7bd3
1,327
py
Python
crypto.py
poemm/PythonYellowpaperExperiment
a3438b7641df519825517fa1ba78c8f57fc2cd88
[ "CC0-1.0" ]
4
2021-05-27T17:32:30.000Z
2021-06-04T00:14:36.000Z
crypto.py
poemm/PythonYellowpaperExperiment
a3438b7641df519825517fa1ba78c8f57fc2cd88
[ "CC0-1.0" ]
null
null
null
crypto.py
poemm/PythonYellowpaperExperiment
a3438b7641df519825517fa1ba78c8f57fc2cd88
[ "CC0-1.0" ]
null
null
null
####################### ## Keccak # pip install pysha3 import sha3 def keccak256(bytes_): return sha3.keccak_256(bytes_).digest() def keccak512(bytes_): return sha3.keccak_512(bytes_).digest() ####################### ## secp256k1 # pip install coincurve from coincurve.ecdsa import deserialize_recoverable, recover from coincurve.keys import PublicKey import coincurve def secp256k1sign(msgbytes_,privkey): pass def secp256k1recover(r,s,v,msg_hash): #print("secp256k1recover",r,s,v,msg_hash) sig = bytearray([0]*65) sig[32-len(r):32] = r sig[64-len(s):64] = s sig[64] = v sig = bytes(sig) #print("sig,msg_hash:",sig.hex(),msg_hash.hex()) pub = coincurve.PublicKey.from_signature_and_message(sig,msg_hash,hasher=None) #print("pub",pub) pub = pub.format(compressed=False)[1:] #pub = pub.format(compressed=False) #pub = pub.format() #print("pub formatted",pub) return pub #deserialized_sig = deserialize_recoverable(serialized_sig) #print(deserialized_sig) #recovered_pubkey = PublicKey(recover(msg_hash,deserialized_sig)).format() #print(recovered_pubkey) #return recovered_pubkey #sig = empty.ecdsa_recoverable_deserialize(serialized_sig, v-27) #empty.pubkey = empty.ecdsa_recover(hash_,sig,raw=True) #recovered_pubkey = empty.serialize(compressed=False)[1:]
23.280702
80
0.712886
176
1,327
5.198864
0.352273
0.045902
0.039344
0.045902
0.115847
0.056831
0
0
0
0
0
0.042096
0.122833
1,327
56
81
23.696429
0.743986
0.460437
0
0
0
0
0
0
0
0
0
0
0
1
0.210526
false
0.052632
0.210526
0.105263
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
51939851c2a13c201972bb71dfde88658ac92b4a
248
py
Python
indra/assemblers/indranet/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
136
2016-02-11T22:06:37.000Z
2022-03-31T17:26:20.000Z
indra/assemblers/indranet/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
748
2016-02-03T16:27:56.000Z
2022-03-09T14:27:54.000Z
indra/assemblers/indranet/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
56
2015-08-28T14:03:44.000Z
2022-02-04T06:15:55.000Z
"""The IndraNet assembler creates multiple different types of networkx graphs from INDRA Statements. It also allows exporting binary Statement information as a pandas DataFrame.""" from .net import IndraNet from .assembler import IndraNetAssembler
41.333333
70
0.830645
32
248
6.4375
0.84375
0
0
0
0
0
0
0
0
0
0
0
0.129032
248
5
71
49.6
0.953704
0.701613
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
51971eddfa5888ac2cd9cd9a828402508a76ebe9
204
py
Python
Python/UofG/Year1/week14.py
prynix/learning-programming
85aea40a61fb824a2b4e142331d9ac7971fef263
[ "MIT" ]
2
2017-03-14T16:02:08.000Z
2017-05-02T13:48:18.000Z
Python/UofG/Year1/week14.py
CajetanP/learning-programming
85aea40a61fb824a2b4e142331d9ac7971fef263
[ "MIT" ]
4
2021-05-20T21:10:13.000Z
2022-02-26T09:50:19.000Z
Python/UofG/Year1/week14.py
CajetanP/learning-programming
85aea40a61fb824a2b4e142331d9ac7971fef263
[ "MIT" ]
1
2021-06-18T01:31:24.000Z
2021-06-18T01:31:24.000Z
# [Lab] CS1P - Sorting & dictionaries # [Lecture] CS1S - Practicals # [Lecture] CS1P - Python review # [Lecture] CS1P - Basic algorithms # [Lecture] CS1S - Multiplexers # [Lecture] CS1S - Registers
15.692308
37
0.681373
21
204
6.619048
0.619048
0.23741
0
0
0
0
0
0
0
0
0
0.036585
0.196078
204
12
38
17
0.810976
0.906863
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
51b7b55da74ebf41e0ccf09e675e32dbefad384c
242
py
Python
weboobToFile/helpers/pretty.py
QuentinBay/weboobToFile
a42d6a36f74dbc5d865c4e668f2d0bdc2ab9feea
[ "BSD-2-Clause" ]
null
null
null
weboobToFile/helpers/pretty.py
QuentinBay/weboobToFile
a42d6a36f74dbc5d865c4e668f2d0bdc2ab9feea
[ "BSD-2-Clause" ]
null
null
null
weboobToFile/helpers/pretty.py
QuentinBay/weboobToFile
a42d6a36f74dbc5d865c4e668f2d0bdc2ab9feea
[ "BSD-2-Clause" ]
null
null
null
import json def pretty_print(jsonContent): print json.dumps(jsonContent, sort_keys=True, indent=4, separators=(',', ': ')) def get_pretty_json(jsonContent): return json.dumps(jsonContent, sort_keys=True, indent=4, separators=(',', ': '))
30.25
81
0.727273
31
242
5.516129
0.483871
0.105263
0.233918
0.280702
0.573099
0.573099
0.573099
0.573099
0.573099
0
0
0.009174
0.099174
242
7
82
34.571429
0.775229
0
0
0
0
0
0.024793
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.4
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
51cfcff2bf0fe083d022b84d1a3632cd04851f5d
125
py
Python
tools/cardiac_py/cable/__init__.py
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
33
2018-12-12T20:05:06.000Z
2021-09-26T13:30:16.000Z
tools/cardiac_py/cable/__init__.py
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
5
2019-04-25T11:34:43.000Z
2021-11-14T04:35:37.000Z
tools/cardiac_py/cable/__init__.py
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
15
2018-12-21T22:44:59.000Z
2021-08-29T10:30:25.000Z
import strip_Vm import pseudo_ECG import apd import pECG_compare __all__ = ['strip_Vm', 'pseudo_ECG', 'apd','pECG_compare']
17.857143
58
0.776
19
125
4.578947
0.473684
0.16092
0
0
0
0
0
0
0
0
0
0
0.112
125
6
59
20.833333
0.783784
0
0
0
0
0
0.264
0
0
0
0
0
0
1
0
false
0
0.8
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
1
0
1
0
0
4
51f0a139b113898917a1fde8477e6f40ece0f479
4,423
py
Python
tests/integration/test_permission.py
spmistry/crux-python
15a6b705d1eec7e789f6f62819429f93e02349c1
[ "MIT" ]
null
null
null
tests/integration/test_permission.py
spmistry/crux-python
15a6b705d1eec7e789f6f62819429f93e02349c1
[ "MIT" ]
2
2019-07-30T14:37:01.000Z
2019-09-09T06:12:23.000Z
tests/integration/test_permission.py
anshul-patel-infostretch/crux-python
e112a09ff61049b2396cf68f947c7583f67488c6
[ "MIT" ]
null
null
null
import os import pytest @pytest.mark.usefixtures("dataset", "helpers") def test_file_add_delete_permission(dataset, helpers): file_path = os.path.join( os.path.abspath(os.path.dirname(os.path.dirname(__file__))), "data", "test_file.csv", ) file_1 = dataset.upload_file( file_path, "/test_file_" + helpers.generate_random_string(16) + ".csv" ) permission = file_1.add_permission("_subscribed_", "Read") assert permission.identity_id == "_subscribed_" assert permission.permission_name == "Read" delete_permission_result = file_1.delete_permission("_subscribed_", "Read") file_perms = file_1.list_permissions() assert delete_permission_result is True for perm in file_perms: assert perm.permission_name in ["Admin"] assert len(file_perms) == 1 file_1.delete() @pytest.mark.skip(reason="Test is too slow") @pytest.mark.usefixtures("dataset", "helpers") def test_folder_add_delete_permission(dataset, helpers): file_path = os.path.join( os.path.abspath(os.path.dirname(os.path.dirname(__file__))), "data", "test_file.csv", ) file_1 = dataset.upload_file( file_path, "/test_folder/test_file_" + helpers.generate_random_string(16) + ".csv", ) file_2 = dataset.upload_file( file_path, "/test_folder/test_file_" + helpers.generate_random_string(16) + ".csv", ) folder_1 = dataset.get_folder(path="/test_folder") permission_result = folder_1.add_permission("_subscribed_", "Read", recursive=True) assert permission_result is True file_1_perms = file_1.list_permissions() file_2_perms = file_1.list_permissions() assert len(file_1_perms) == 2 assert len(file_2_perms) == 2 for perm in file_1_perms: assert perm.permission_name in ["Read", "Admin"] for perm in file_2_perms: assert perm.permission_name in ["Read", "Admin"] delete_permission_result = folder_1.delete_permission( "_subscribed_", "Read", recursive=True ) assert delete_permission_result is True file_1_perms = file_1.list_permissions() file_2_perms = file_1.list_permissions() for perm in file_1_perms: assert perm.permission_name in ["Admin"] for perm in file_1_perms: assert perm.permission_name in ["Admin"] file_1.delete() file_2.delete() folder_1.delete() @pytest.mark.usefixtures("dataset", "helpers") def test_dataset_add_to_delete_from_resources_permission(dataset, helpers): file_path = os.path.join( os.path.abspath(os.path.dirname(os.path.dirname(__file__))), "data", "test_file.csv", ) file_1 = dataset.upload_file( file_path, "/test_file_" + helpers.generate_random_string(16) + ".csv" ) file_2 = dataset.upload_file( file_path, "/test_folder/test_file_" + helpers.generate_random_string(16) + ".csv", ) file_3 = dataset.upload_file( file_path, "/test_folder/test_file_" + helpers.generate_random_string(16) + ".csv", ) dataset_perm_result = dataset.add_permission_to_resources("_subscribed_", "Read") assert dataset_perm_result is True for file_object in [file_1, file_2, file_3]: perm_list = file_object.list_permissions() assert len(perm_list) == 2 for perm_object in perm_list: assert perm_object.permission_name in ["Admin", "Read"] dataset_perm_result = dataset.delete_permission_from_resources( "_subscribed_", "Read" ) assert dataset_perm_result is True for file_object in [file_1, file_2, file_3]: perm_list = file_object.list_permissions() assert len(perm_list) == 1 for perm_object in perm_list: assert perm_object.permission_name in ["Admin"] @pytest.mark.usefixtures("dataset", "helpers") def test_dataset_add_delete_list_permission(dataset, helpers): permission = dataset.add_permission("_subscribed_", "Read") assert permission.identity_id == "_subscribed_" assert permission.permission_name == "Read" delete_permission_result = dataset.delete_permission("_subscribed_", "Read") assert delete_permission_result is True dataset_perms = dataset.list_permissions() for perm in dataset_perms: assert perm.permission_name in ["Admin"] assert len(dataset_perms) == 1
28.352564
87
0.687316
571
4,423
4.938704
0.096322
0.035461
0.04539
0.044681
0.817731
0.789362
0.721631
0.691844
0.674468
0.605674
0
0.015332
0.203708
4,423
155
88
28.535484
0.785349
0
0
0.570093
0
0
0.109654
0.0208
0
0
0
0
0.224299
1
0.037383
false
0
0.018692
0
0.056075
0
0
0
0
null
0
0
0
1
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
4
cf8ec1fe86072f34a4ddc8b337e6b7c5914101d1
73
py
Python
pygromos/data/solvent_coordinates/__init__.py
SalomeRonja/PyGromosTools
5a17740a0ec634b8b591ef74d8a420e3fd3e38ba
[ "MIT" ]
13
2021-03-17T09:29:37.000Z
2022-01-14T20:42:16.000Z
pygromos/data/solvent_coordinates/__init__.py
SchroederB/PyGromosTools
c31c38455a849c864241a962efee9e6575f27b06
[ "MIT" ]
185
2021-03-03T14:24:55.000Z
2022-03-31T18:39:29.000Z
pygromos/data/solvent_coordinates/__init__.py
SchroederB/PyGromosTools
c31c38455a849c864241a962efee9e6575f27b06
[ "MIT" ]
13
2021-03-03T14:18:06.000Z
2022-02-17T09:48:55.000Z
import os data_dir = os.path.dirname(__file__) spc = data_dir+"/spc.cnf"
18.25
36
0.739726
13
73
3.692308
0.692308
0.291667
0
0
0
0
0
0
0
0
0
0
0.109589
73
3
37
24.333333
0.738462
0
0
0
0
0
0.109589
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
cf95dd48d9a544d39870083914ba5fa4ec67b24a
334
py
Python
UVa 12554 happy birthday song/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 12554 happy birthday song/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 12554 happy birthday song/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
import sys sys.stdin = open('input.txt') n = int(input()) names = [] for _ in range(n): names.append(raw_input().strip()) song = 'Happy birthday to you Happy birthday to you Happy birthday to Rujia Happy birthday to you'.split( ) last = max(n, len(song)) for i in range(last): print names[i % n] + ': ' + song[i % len(song)]
25.692308
105
0.649701
56
334
3.839286
0.482143
0.24186
0.27907
0.251163
0.237209
0.237209
0.237209
0
0
0
0
0
0.188623
334
12
106
27.833333
0.793358
0
0
0
0
0
0.299401
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
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
1
0
0
0
0
0
0
0
0
4
cf986b8c1ab1dd77056d2dbacac69d6d3e95f895
70
py
Python
4/4.8/cube.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
4/4.8/cube.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
4/4.8/cube.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
# 立方 cube = [v**3 for v in range(1, 11)] for v in cube: print(v)
11.666667
35
0.542857
16
70
2.375
0.625
0.210526
0.315789
0
0
0
0
0
0
0
0
0.08
0.285714
70
5
36
14
0.68
0.028571
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
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
cfba44ba38ba5a7da0f9bf5a11b572a84e17546e
90
py
Python
frontend/apps.py
leolileo/bxc2019
c6bcf7b9ae87f50327a752b9a1b59445e4f0f60a
[ "Apache-2.0" ]
null
null
null
frontend/apps.py
leolileo/bxc2019
c6bcf7b9ae87f50327a752b9a1b59445e4f0f60a
[ "Apache-2.0" ]
null
null
null
frontend/apps.py
leolileo/bxc2019
c6bcf7b9ae87f50327a752b9a1b59445e4f0f60a
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class ExampleConfig(AppConfig): name = 'frontend'
15
33
0.755556
10
90
6.8
0.9
0
0
0
0
0
0
0
0
0
0
0
0.166667
90
5
34
18
0.906667
0
0
0
0
0
0.088889
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
5c9465e84743280da1751a87a528a8e2e5d0c324
468
py
Python
tests/test_load_simul.py
snek5000/snek5000
2c914047fdb5679c5345cb83856e785e780a9b93
[ "BSD-3-Clause" ]
null
null
null
tests/test_load_simul.py
snek5000/snek5000
2c914047fdb5679c5345cb83856e785e780a9b93
[ "BSD-3-Clause" ]
5
2022-02-11T16:07:06.000Z
2022-03-28T12:52:28.000Z
tests/test_load_simul.py
snek5000/snek5000
2c914047fdb5679c5345cb83856e785e780a9b93
[ "BSD-3-Clause" ]
null
null
null
import pytest from snek5000 import load_simul @pytest.mark.parametrize("session_id", (0, 1)) def test_load_simul_error(sim_data, session_id): sim = load_simul(sim_data / f"session_{session_id:02d}") assert sim.params.output.session_id == session_id @pytest.mark.parametrize("session_id", (0, 1)) def test_load_simul_session(sim_data, session_id): sim = load_simul(sim_data, session_id=session_id) assert sim.params.output.session_id == session_id
29.25
60
0.764957
74
468
4.5
0.297297
0.297297
0.126126
0.144144
0.732733
0.732733
0.732733
0.732733
0.498499
0.288288
0
0.024272
0.119658
468
15
61
31.2
0.783981
0
0
0.4
0
0
0.094017
0.051282
0
0
0
0
0.2
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
1
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5c979be64abbfb3f52bcd97c7d96f8ead2bb6a9e
794
py
Python
data_describe/config/__init__.py
truongc2/data-describe
ed64a34587c7997e0c8a67938c2b9de996aaac11
[ "Apache-2.0" ]
294
2020-10-18T06:18:35.000Z
2022-03-17T01:58:41.000Z
data_describe/config/__init__.py
lenamax2355/data-describe
4e42a3de5b0dd776f78b78bd85f1ba6435b252eb
[ "Apache-2.0" ]
127
2020-10-13T22:42:15.000Z
2022-03-31T05:07:23.000Z
data_describe/config/__init__.py
brianray/data-describe
eafc810ac20f6c0fb426732f29452756df96b278
[ "Apache-2.0" ]
19
2020-10-18T06:21:26.000Z
2021-06-28T15:39:14.000Z
"""data-describe configuration. This module provides package-level configuration for the data-describe package. Examples: Assignment of configuration items is heavily inspired by Pandas' options system that uses a "dotted-style":: import data_describe as dd dd.options.backends.compute = "modin" To see all configuration options, simply print the options object:: print(dd.options) # Or simply dd.options as the last line in a Jupyter notebook cell A context manager is also provided to allow for temporary re-assignment of configurations that only affect a block of code:: with dd.config.update_context("display.fig_height", 20): dd.correlation_matrix(df) """ from data_describe.config._config import update_context # noqa: F401
37.809524
128
0.741814
111
794
5.243243
0.630631
0.082474
0
0
0
0
0
0
0
0
0
0.007813
0.193955
794
20
129
39.7
0.901563
0.916877
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
5c9c6515bbb53aaa637687711b77a37bbd04bc44
125
py
Python
gerrychain/partition/__init__.py
InnovativeInventor/GerryChain
4ee30472072b26f86bf6349b5a1dc90412a4acc1
[ "BSD-3-Clause" ]
89
2018-10-15T21:08:50.000Z
2022-03-08T02:45:13.000Z
gerrychain/partition/__init__.py
InnovativeInventor/GerryChain
4ee30472072b26f86bf6349b5a1dc90412a4acc1
[ "BSD-3-Clause" ]
114
2018-10-16T04:08:52.000Z
2022-03-19T05:21:38.000Z
gerrychain/partition/__init__.py
InnovativeInventor/GerryChain
4ee30472072b26f86bf6349b5a1dc90412a4acc1
[ "BSD-3-Clause" ]
47
2018-10-16T03:51:54.000Z
2022-01-16T17:47:32.000Z
from .partition import Partition from .geographic import GeographicPartition __all__ = ['Partition', 'GeographicPartition']
25
46
0.816
11
125
8.909091
0.545455
0
0
0
0
0
0
0
0
0
0
0
0.104
125
4
47
31.25
0.875
0
0
0
0
0
0.224
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
5c9f0bf066de4c29b5b1af44a8de8538d1c6cdee
142
py
Python
setup.py
ed741/DTL
c1a4af39c8be8891f76a4dcc3834717ec484e720
[ "MIT" ]
null
null
null
setup.py
ed741/DTL
c1a4af39c8be8891f76a4dcc3834717ec484e720
[ "MIT" ]
null
null
null
setup.py
ed741/DTL
c1a4af39c8be8891f76a4dcc3834717ec484e720
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="DTL", version="0.1", packages=find_packages(), install_requires=["graphviz"] )
20.285714
86
0.732394
18
142
5.611111
0.777778
0.237624
0
0
0
0
0
0
0
0
0
0.016
0.119718
142
6
87
23.666667
0.792
0
0
0
0
0
0.098592
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
1
0
0
0
0
0
0
4
5ca327e2e7500066624473e75ca2567d6b5097c6
281
py
Python
cracking_the_coding_interview_qs/16.20/get_words_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
cracking_the_coding_interview_qs/16.20/get_words_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
cracking_the_coding_interview_qs/16.20/get_words_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
import unittest from get_words import Number_Pad_To_Words class Test_Case_Get_Words(unittest.TestCase): def test_get_words(self): converter = Number_Pad_To_Words(['tree', 'used', 'pots']) self.assertListEqual(converter.get_num_to_words(8733), ['tree', 'used'])
40.142857
80
0.743772
40
281
4.85
0.525
0.123711
0.113402
0.164948
0
0
0
0
0
0
0
0.016461
0.135231
281
7
80
40.142857
0.781893
0
0
0
0
0
0.070922
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.666667
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
1
0
0
4
5cb41043eb1080116b03d90293f9ce15c913e800
93
py
Python
hhrequest/apps.py
andreylrr/HHAnalyticsDjango
b792f06fe5c272a8965119cdfc318a539543d4f9
[ "MIT" ]
null
null
null
hhrequest/apps.py
andreylrr/HHAnalyticsDjango
b792f06fe5c272a8965119cdfc318a539543d4f9
[ "MIT" ]
null
null
null
hhrequest/apps.py
andreylrr/HHAnalyticsDjango
b792f06fe5c272a8965119cdfc318a539543d4f9
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HhrequestConfig(AppConfig): name = 'hhrequest'
15.5
33
0.763441
10
93
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.16129
93
5
34
18.6
0.910256
0
0
0
0
0
0.096774
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7a7bc02f60bd508aaf6c00816d5595efd8cae29d
78
py
Python
ch1/test_four.py
anarinya/pytest-examples
4c778435b921bbac52cc5391bebc03cbe57e0c1f
[ "MIT" ]
null
null
null
ch1/test_four.py
anarinya/pytest-examples
4c778435b921bbac52cc5391bebc03cbe57e0c1f
[ "MIT" ]
null
null
null
ch1/test_four.py
anarinya/pytest-examples
4c778435b921bbac52cc5391bebc03cbe57e0c1f
[ "MIT" ]
null
null
null
import pytest @pytest.mark.xfail() def test_should_fail(): assert 3 > 5
11.142857
23
0.692308
12
78
4.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0.031746
0.192308
78
6
24
13
0.793651
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.25
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
1
1
0
0
0
0
0
0
4
7a7d4a2f57685e69522342bb37e4e24cc13a0f81
199
py
Python
dbschema/models/factories/user.py
achiku/pyscript
ff2b6577025c67506c783a89c8c7a449d224f72f
[ "MIT" ]
null
null
null
dbschema/models/factories/user.py
achiku/pyscript
ff2b6577025c67506c783a89c8c7a449d224f72f
[ "MIT" ]
null
null
null
dbschema/models/factories/user.py
achiku/pyscript
ff2b6577025c67506c783a89c8c7a449d224f72f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from models.user import User class UserFactory(object): def __init__(self): self.u = User('tarou', 34) def greeting(self): return self.u.greeting()
18.090909
34
0.60804
26
199
4.5
0.692308
0.08547
0
0
0
0
0
0
0
0
0
0.019868
0.241206
199
10
35
19.9
0.754967
0.105528
0
0
0
0
0.028409
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
8f9bb897fa39f62a1dd609e79349e80bd76774a0
109
py
Python
sauronlab/model/__init__.py
dmyersturnbull/sauronlab
c458b622efd3cb70c2547ec64ea9d11c293ab8f6
[ "Apache-2.0" ]
null
null
null
sauronlab/model/__init__.py
dmyersturnbull/sauronlab
c458b622efd3cb70c2547ec64ea9d11c293ab8f6
[ "Apache-2.0" ]
73
2021-02-03T21:32:44.000Z
2022-03-28T05:14:24.000Z
sauronlab/model/__init__.py
dmyersturnbull/sauronlab
c458b622efd3cb70c2547ec64ea9d11c293ab8f6
[ "Apache-2.0" ]
null
null
null
""" Code implementing standard data types. Can depend on core and calc, and no other Sauronlab packages. """
21.8
61
0.752294
16
109
5.125
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.165138
109
4
62
27.25
0.901099
0.917431
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8fa683afbc74f4e2af97aed99447acfed4c6298d
332
py
Python
models/designs/no_design.py
ohadoh-math/invertible-resnet
4f05b9d1761c2d46cc05d9748ef3e690f8b9c0b2
[ "MIT" ]
null
null
null
models/designs/no_design.py
ohadoh-math/invertible-resnet
4f05b9d1761c2d46cc05d9748ef3e690f8b9c0b2
[ "MIT" ]
null
null
null
models/designs/no_design.py
ohadoh-math/invertible-resnet
4f05b9d1761c2d46cc05d9748ef3e690f8b9c0b2
[ "MIT" ]
null
null
null
""" A stub design. """ from .design import Design, Dataset, Module class NoDesign(Design): """ Don't perform any design. """ def __init__(self, dataset: Dataset): self._ds = dataset def get_dataset(self) -> Dataset: return self._ds def update_design(self, model: Module): pass
15.090909
43
0.605422
40
332
4.825
0.55
0.11399
0
0
0
0
0
0
0
0
0
0
0.277108
332
21
44
15.809524
0.804167
0.120482
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0.125
0.125
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
8fc081888140f70b692db2087cde7bd6ee9e92cf
133
py
Python
websiteFunctions/apps.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
websiteFunctions/apps.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
websiteFunctions/apps.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig class WebsitefunctionsConfig(AppConfig): name = 'websiteFunctions'
14.777778
40
0.714286
13
133
7.307692
0.923077
0
0
0
0
0
0
0
0
0
0
0.009009
0.165414
133
8
41
16.625
0.846847
0.157895
0
0
0
0
0.145455
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
64e1b32dfb21b23b71f94e20fa4294bf0f9ba9c0
124
py
Python
app2/apps.py
bmampaey/rest_test
4b13d153dfed725de2aae5b687c724299595eddb
[ "MIT" ]
null
null
null
app2/apps.py
bmampaey/rest_test
4b13d153dfed725de2aae5b687c724299595eddb
[ "MIT" ]
null
null
null
app2/apps.py
bmampaey/rest_test
4b13d153dfed725de2aae5b687c724299595eddb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class App2Config(AppConfig): name = 'app2'
15.5
39
0.782258
15
124
6.133333
0.8
0
0
0
0
0
0
0
0
0
0
0.019231
0.16129
124
7
40
17.714286
0.865385
0
0
0
0
0
0.032258
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
64ebf39d6eccb6e739d57f6fda15286383698f22
23,427
py
Python
apps/quality/models/basicinfor_model.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
apps/quality/models/basicinfor_model.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
apps/quality/models/basicinfor_model.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
from django.db import models class QualityAuditRecordModel(models.Model): """ 当前APP所有的操作记录 """ id = models.AutoField(primary_key=True, unique=True) uri = models.CharField(max_length=32, null=True, blank=True, name="uri", verbose_name="资源名称",help_text="当前操作的资源名称") uri_id = models.CharField(max_length=16, null=True, blank=True, name="uri_id", verbose_name="资源索引", help_text="当前操作的资源索引项") time = models.DateTimeField(auto_now_add=True, verbose_name="时间", help_text="进行操作的时间") classes = models.CharField(max_length=16, null=True, blank=True, name="classes", verbose_name="类别",help_text="进行操作的类别") user = models.CharField(max_length=32, null=True, blank=True, name="user",verbose_name="账号", help_text="进行操作的账号名称") result = models.CharField(max_length=16, null=True, blank=True, name="result", verbose_name="结果", help_text="进行操作的结果") content = models.TextField(null=True, blank=True, name="content", verbose_name="内容", help_text="进行当前操作具体涉及哪些内容") def __str__(self): return self.uri+" >> "+self.uri_id class Meta: db_table = "QualityAuditRecordModel" app_label = 'quality' verbose_name = "品质管理-操作记录" verbose_name_plural = verbose_name permissions={("read_qualityauditrecordmodel", u"Can read 品质管理-操作记录")} class QualityAlterRecordModel(models.Model): """ 当前APP所有审核记录 """ id = models.AutoField(primary_key=True, unique=True) uri = models.CharField(max_length=32, null=True, blank=True,name="uri", verbose_name="资源名称", help_text="当前审核记录属于资源的名称") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") def __str__(self): return (self.uri + " >> " + self.create_user) class Meta: db_table = "QualityAlterRecordModel" app_label = 'quality' verbose_name = "品质管理-审核记录" verbose_name_plural = verbose_name class QualityImageModel(models.Model): """ 当前APP所有的图片项保存 """ id = models.AutoField(primary_key=True, unique=True) image = models.ImageField(upload_to="quality/image/", help_text="当前APP照片") image_name=models.CharField(max_length=32,name="image_name", null=True, blank=True, verbose_name="照片名", help_text="当前图片的名称") uri = models.CharField(max_length=32,name="uri", null=True, blank=True, verbose_name="资源名",help_text="当前图片属于资源的名称") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") def __str__(self): return (self.uri+" >> "+self.image_name) class Meta: db_table = "QualityImageModel" app_label = 'quality' verbose_name = "品质管理-图片项" verbose_name_plural = verbose_name class QualityFileModel(models.Model): """ 当前APP所有的文件项保存 """ id = models.AutoField(primary_key=True, unique=True) file = models.FileField(upload_to="quality/file/", help_text="当前APP文件") file_name = models.CharField(max_length=32, name="file_name", null=True, blank=True, verbose_name="文件名", help_text="当前文件的名称") uri = models.CharField(max_length=32,name="uri", null=True, blank=True, verbose_name="资源名",help_text="当前文件属于资源的名称") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") def __str__(self): return (self.uri+" >> "+self.file_name) class Meta: db_table = "QualityFileModel" app_label = 'quality' verbose_name = "品质管理-文件项" verbose_name_plural = verbose_name class DefectTypeDefinitionModel(models.Model): """ 缺陷类型定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) CLASS = ( ("一级类别", "一级类别"), ("二级类别", "二级类别"), ("三级类别", "三级类别"), ("四级类别", "四级类别"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name", null=True, blank=True, verbose_name="名称", help_text="缺陷类型名称(建议唯一)") code = models.CharField(max_length=32, name="code", unique=True, verbose_name="编码", help_text="缺陷类型编码(必须唯一)") state = models.CharField(max_length=16, choices=STATUS, default="新建", name="state", verbose_name="状态", help_text="当前信息的状态") classes = models.CharField(max_length=16, choices=CLASS, name="classes", verbose_name="类别", help_text="缺陷类型处于的层级类别") parent = models.ForeignKey("self", null=True, blank=True, name="parent",verbose_name="父类别", related_name="defectType_child", on_delete=models.CASCADE,help_text="当前缺陷类型属于的上一级别") attach_attribute = models.TextField(null=True, blank=True, name="attach_attribute", verbose_name="缺陷附加属性",help_text="当前缺陷类型下缺陷的附加属性") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="缺陷类型文件",help_text="当前缺陷类型的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = "DefectTypeDefinitionModel" app_label = 'quality' verbose_name = "品质管理-缺陷类型定义" verbose_name_plural = verbose_name permissions = {("read_defecttypedefinitionmodel", u"Can read 品质管理-缺陷类型定义"), ("admin_defecttypedefinitionmodel", u"Can admin 品质管理-缺陷类型定义")} class DefectGradeDefinitionModel(models.Model): """ 缺陷等级定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name",null=True, blank=True, verbose_name="名称", help_text="等级名称(建议唯一)") code = models.CharField(max_length=32, name="code", verbose_name="编码", help_text="等级编码(必须唯一)") state = models.CharField(max_length=16,choices=STATUS, default="新建", name="state", verbose_name="状态", help_text="当前信息的状态") rule = models.TextField(null=True, blank=True, name="rule", verbose_name="评定规则",help_text="此缺陷等级的评定规则是什么") influences = models.TextField(null=True, blank=True, name="influences", verbose_name="不良影响",help_text="此等级下的缺陷会产生什么影响") processing_method = models.TextField(null=True, blank=True, name="processing_method", verbose_name="处理方式",help_text="此等级下的缺陷产生时,应采取什么处理方式") attribute1 = models.CharField(max_length=32, null=True, blank=True, name="attribute1", verbose_name="属性1", help_text="当前附加属性1") attribute2 = models.CharField(max_length=32, null=True, blank=True, name="attribute2", verbose_name="属性2", help_text="当前附加属性2") attribute3 = models.CharField(max_length=32, null=True, blank=True, name="attribute3", verbose_name="属性3", help_text="当前附加属性3") attribute4 = models.CharField(max_length=32, null=True, blank=True, name="attribute4", verbose_name="属性4", help_text="当前附加属性4") attribute5 = models.CharField(max_length=32, null=True, blank=True, name="attribute5", verbose_name="属性5", help_text="当前附加属性5") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="产品文件",help_text="当前缺陷等级的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = "DefectGradeDefinitionModel" app_label = 'quality' verbose_name = "品质管理-缺陷等级定义" verbose_name_plural = verbose_name permissions = {("read_defectgradedefinitionmodel", u"Can read 品质管理-缺陷等级定义"), ("admin_defectgradedefinitionmodel", u"Can admin 品质管理-缺陷等级定义")} class DefectInforDefinitionModel(models.Model): """ 缺陷信息定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name",null=True, blank=True, verbose_name="名称",help_text="缺陷名称(建议唯一)") code = models.CharField(max_length=32, name="code", verbose_name="编码",help_text="缺陷编码((与类型联合唯一))") state = models.CharField(max_length=16, choices=STATUS, default="新建", name="state", verbose_name="状态",help_text="当前信息的状态") type = models.ForeignKey(DefectTypeDefinitionModel, on_delete=models.CASCADE, name="type",related_name="defectType_item", verbose_name="类型", help_text="当前缺陷属于的缺陷类型") defect_grade = models.ForeignKey(DefectGradeDefinitionModel, on_delete=models.CASCADE,name="defect_grade",related_name="defectGrade_defectInfor", verbose_name="缺陷等级", help_text="当前缺陷属于的等级") rule = models.TextField(null=True, blank=True, name="rule", verbose_name="评定规则",help_text="此缺陷项的评定规则是什么") attribute1 = models.CharField(max_length=32, null=True, blank=True, name="attribute1", verbose_name="属性1", help_text="当前缺陷附件的属性1") attribute2 = models.CharField(max_length=32, null=True, blank=True, name="attribute2", verbose_name="属性2", help_text="当前缺陷附加的属性2") attribute3 = models.CharField(max_length=32, null=True, blank=True, name="attribute3", verbose_name="属性3", help_text="当前缺陷附加的属性3") attribute4 = models.CharField(max_length=32, null=True, blank=True, name="attribute4", verbose_name="属性4", help_text="当前缺陷附加的属性4") attribute5 = models.CharField(max_length=32, null=True, blank=True, name="attribute5", verbose_name="属性5", help_text="当前缺陷附加的属性5") image = models.ManyToManyField(QualityImageModel, blank=True, name="image", verbose_name="缺陷图片", help_text="当前缺陷的照片信息") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="缺陷文件",help_text="当前缺陷的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = "DefectInforDefinitionModel" app_label = 'quality' verbose_name = "品质管理-缺陷信息定义" verbose_name_plural = verbose_name unique_together = ('code', 'type') permissions = {("read_defectinfordefinitionmodel", u"Can read 品质管理-缺陷信息定义"), ("admin_defectinfordefinitionmodel", u"Can admin 品质管理-缺陷信息定义")} class InspectionStandardTypeDefinitionModel(models.Model): """ 检验标准类型定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) CLASS = ( ("一级类别", "一级类别"), ("二级类别", "二级类别"), ("三级类别", "三级类别"), ("四级类别", "四级类别"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name", null=True, blank=True, verbose_name="名称", help_text="检验标准类型名称(建议唯一)") code = models.CharField(max_length=32, name="code", unique=True, verbose_name="编码", help_text="检验标准类型编码(必须唯一)") state = models.CharField(max_length=16, choices=STATUS, default="新建", name="state", verbose_name="状态", help_text="当前信息的状态") classes = models.CharField(max_length=16, choices=CLASS, name="classes", verbose_name="类别", help_text="检验标准类型处于的层级类别") parent = models.ForeignKey("self", null=True, blank=True, name="parent",verbose_name="父类别", related_name="inspectionStandardType_child", on_delete=models.CASCADE,help_text="当前检验标准类型属于的上一级别") attach_attribute = models.TextField(null=True, blank=True, name="attach_attribute", verbose_name="检验标准附加属性",help_text="当前检验标准类型下检验标准的附加属性") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="检验标准类型文件",help_text="当前检验标准类型的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = "InspectionStandardTypeDefinitionModel" app_label = 'quality' verbose_name = "品质管理-检验标准类型定义" verbose_name_plural = verbose_name permissions = {("read_inspectionstandardtypedefinitionmodel", u"Can read 品质管理-检验标准类型定义"), ("admin_inspectionstandardtypedefinitionmodel", u"Can admin 品质管理-检验标准类型定义")} class InspectionStandardDefinitionModel(models.Model): """ 检验标准定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name", null=True, blank=True, verbose_name="名称",help_text="检验标准名称(建议唯一)") code = models.CharField(max_length=32, name="code", verbose_name="编码", help_text="检验标准编码(与类型联合唯一)") type = models.ForeignKey(InspectionStandardTypeDefinitionModel, on_delete=models.CASCADE, name="type",related_name="inspectionStandardType_item", verbose_name="类型", help_text="当前检验标准属于的检验标准类型") state = models.CharField(max_length=16,choices=STATUS, default="新建", name="state", verbose_name="状态", help_text="当前信息的状态") defect = models.ManyToManyField(DefectInforDefinitionModel, blank=True, name="defect", verbose_name="缺陷子项", related_name="defectInfor_inspectionStandard", help_text="当前检验标准的缺陷子项") samples_ration= models.IntegerField(name="samples_ration", verbose_name="检验比例",help_text="当前标准要求抽检数量占报检数量的比例") ok_ration = models.IntegerField(name="ok_ration", verbose_name="合格比例", help_text="当前标准要求合格数量占抽检数量的比例") ng_ration = models.IntegerField(name="ng_ration", verbose_name="不合格比例", help_text="当前标准要求不合格数量占抽检数量的比例") concession_ration = models.IntegerField(name="concession_ration", verbose_name="让步接收比例", help_text="当前标准要求让步接收数量占抽检数量的比例") attribute1 = models.CharField(max_length=32, null=True, blank=True, name="attribute1", verbose_name="属性1", help_text="当前检验标准附加的属性1") attribute2 = models.CharField(max_length=32, null=True, blank=True, name="attribute2", verbose_name="属性2", help_text="当前检验标准附加的属性2") attribute3 = models.CharField(max_length=32, null=True, blank=True, name="attribute3", verbose_name="属性3", help_text="当前检验标准附加的属性3") attribute4 = models.CharField(max_length=32, null=True, blank=True, name="attribute4", verbose_name="属性4", help_text="当前检验标准附加的属性4") attribute5 = models.CharField(max_length=32, null=True, blank=True, name="attribute5", verbose_name="属性5", help_text="当前检验标准附加的属性5") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="文件", help_text="当前检验标准的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = "InspectionStandardDefinitionModel" app_label = 'quality' verbose_name = "品质管理-检验标准定义" verbose_name_plural = verbose_name unique_together = ('code', 'type') permissions = {("read_inspectionstandarddefinitionmodel", u"Can read 品质管理-检验标准定义"), ("admin_inspectionstandarddefinitionmodel", u"Can admin 品质管理-检验标准定义")} class InspectionReportTypeDefinitionModel(models.Model): """ 检验汇报类型定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) CLASS = ( ("一级类别", "一级类别"), ("二级类别", "二级类别"), ("三级类别", "三级类别"), ("四级类别", "四级类别"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name", null=True, blank=True, verbose_name="名称", help_text="检验汇报类型名称(建议唯一)") code = models.CharField(max_length=32, name="code", unique=True, verbose_name="编码", help_text="检验汇报类型编码(必须唯一)") state = models.CharField(max_length=16, choices=STATUS, default="新建", name="state", verbose_name="状态", help_text="当前信息的状态") classes = models.CharField(max_length=16, choices=CLASS, name="classes", verbose_name="类别", help_text="检验汇报类型处于的层级类别") parent = models.ForeignKey("self", null=True, blank=True, name="parent",verbose_name="父类别", related_name="inspectionReportType_child", on_delete=models.CASCADE,help_text="当前检验汇报类型属于的上一级别") attach_attribute = models.TextField(null=True, blank=True, name="attach_attribute", verbose_name="检验汇报附加属性",help_text="当前检验汇报类型下检验汇报的附加属性") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="检验汇报类型文件",help_text="当前检验汇报类型的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = "InspectionReportTypeDefinitionModel" app_label = 'quality' verbose_name = "品质管理-检验汇报类型定义" verbose_name_plural = verbose_name permissions = {("read_inspectionreporttypedefinitionmodel", u"Can read 品质管理-检验汇报类型定义"), ("admin_inspectionreporttypedefinitionmodel", u"Can admin 品质管理-检验汇报类型定义")} class QualityBoardModel(models.Model): """ 品质看板定义 """ STATUS = ( ("新建", "新建"), ("审核中", "审核中"), ("使用中", "使用中"), ("作废", "作废"), ) id = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=32, name="name", null=True, blank=True, verbose_name="名称", help_text="品质看板名称(建议唯一)") code = models.CharField(max_length=32, unique=True, name="code", verbose_name="编码",help_text="品质看板编号(必须唯一)") state = models.CharField(max_length=16,choices=STATUS, default="新建", name="state", verbose_name="状态",help_text="当前信息的使用状态") image = models.ForeignKey(QualityImageModel, on_delete=models.CASCADE, name="image", verbose_name="缩略图", help_text="当前看板的缩略图") file = models.ManyToManyField(QualityFileModel, blank=True, name="file", verbose_name="文件", help_text="当前看板的文件信息") desc = models.TextField(null=True, blank=True, name="desc", verbose_name="备注",help_text="当前信息未列出的字段项,可以在此字段描述.每一项用;隔开") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间", help_text="当前信息创建的时间,后台会自动填充此字段") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间", help_text="当前信息最后的更新时间,后台会自动填充此字段") create_user = models.CharField(max_length=32, name="create_user", verbose_name="创建账号", help_text="创建当前信息的账号名称") auditor = models.CharField(max_length=32, name="auditor", verbose_name="审核账号", help_text="可对当前信息进行审核的账号名称") alter = models.ManyToManyField(QualityAlterRecordModel, blank=True, name="alter", verbose_name="审核记录", help_text="当前信息的审核记录") def __str__(self): return self.code class Meta: db_table = 'QualityBoardModel' app_label = "quality" verbose_name = "品质管理-品质看板定义" verbose_name_plural = verbose_name permissions = {("read_qualityboardmodel", u"Can read 品质管理-品质看板定义"), ("admin_qualityboardmodel", u"Can admin 品质管理-品质看板定义")}
59.010076
149
0.693986
2,778
23,427
5.643269
0.097552
0.11367
0.07578
0.10104
0.755884
0.750144
0.718696
0.672897
0.662563
0.659501
0
0.009753
0.159688
23,427
396
150
59.159091
0.7866
0.004482
0
0.549689
0
0
0.207136
0.056115
0
0
0
0
0
1
0.034161
false
0
0.003106
0.034161
0.611801
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
1
0
0
4
64ebfee497508be2257b66b2cccbad1b36864dc1
97
py
Python
codes_auto/1587.parallel-courses-ii.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1587.parallel-courses-ii.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1587.parallel-courses-ii.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=1587 lang=python3 # # [1587] parallel-courses-ii # None # @lc code=end
13.857143
42
0.680412
16
97
4.125
0.875
0
0
0
0
0
0
0
0
0
0
0.108434
0.14433
97
7
43
13.857143
0.686747
0.824742
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
64ec378f1a620cc7b51ba5340d9023cee753a10d
1,840
py
Python
pyaidoop/robot/robot_arm_dev.py
aidoop/pyaidoop
fa42d0010b95b6641227033700f7dc31844cbe3b
[ "MIT" ]
null
null
null
pyaidoop/robot/robot_arm_dev.py
aidoop/pyaidoop
fa42d0010b95b6641227033700f7dc31844cbe3b
[ "MIT" ]
null
null
null
pyaidoop/robot/robot_arm_dev.py
aidoop/pyaidoop
fa42d0010b95b6641227033700f7dc31844cbe3b
[ "MIT" ]
null
null
null
from abc import * import enum # CameraPortLayer abstraction class class RobotArmDev(metaclass=ABCMeta): ################################### # Abstraction Functions ################################### # initialize parameters for any camera operation # TODO: manage robot parameters varied by robot manufacturer to connect a robot @abstractmethod def start(self, connect_ip): pass # finalize this object @abstractmethod def stop(self): pass # move-to on task cooridnate system @abstractmethod def move_task_to(self): pass # move-by on task cooridnate system @abstractmethod def move_task_by(self, xyzuvw): pass # move-by on task cooridnate system (no wait to finish moveing) @abstractmethod def move_task_by_async(self, xyzuvw): pass # joint-to on task cooridnate system @abstractmethod def joint_task_to(self, jointpos): pass # joint-by on task cooridnate system @abstractmethod def joint_task_by(self, jointpos): pass @abstractmethod def move_to_home(self): pass # go to zero @abstractmethod def move_to_zero(self): pass # get the current task position @abstractmethod def get_task_pos(self): pass # check next move for singularity @abstractmethod def check_next_move(self, next_task_pos, curr_joint_pos): pass # get the current joint position @abstractmethod def get_joint_pos(self): pass # set the direct-teaching mode @abstractmethod def set_teaching_mode(self, flag): pass # get the direct-teaching mode @abstractmethod def get_teaching_mode(self): pass # reset @abstractmethod def reset_robot(self): pass
21.395349
83
0.631522
213
1,840
5.309859
0.314554
0.225464
0.070734
0.097259
0.303271
0.27763
0.210433
0.167993
0
0
0
0
0.276087
1,840
85
84
21.647059
0.849099
0.309239
0
0.625
0
0
0
0
0
0
0
0.011765
0
1
0.3125
false
0.3125
0.041667
0
0.375
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
4
8f062d031cd214d2ec9c09cee8c6174baf2817b7
83
py
Python
tech/apps.py
hpb1/Django-Basics
0083952252c176d9779f5a0ee5c46f8424f02e1f
[ "MIT" ]
2
2021-06-13T17:29:02.000Z
2021-11-29T08:18:20.000Z
tech/apps.py
mjelde/TechReview2021
96b5f9af3c35f2f1dc79e6c53b48623d84e21da8
[ "MIT" ]
7
2020-06-06T01:17:00.000Z
2022-02-10T14:26:14.000Z
tech/apps.py
mjelde/TechReview2021
96b5f9af3c35f2f1dc79e6c53b48623d84e21da8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TechConfig(AppConfig): name = 'tech'
13.833333
33
0.73494
10
83
6.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.180723
83
5
34
16.6
0.897059
0
0
0
0
0
0.048193
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8f0be4feca1764e1939eb57c5201404ecea6f2dc
139
py
Python
opskit_api/common/paasswordmd5.py
yxxhero/opskit-api
01b2ba64e1bde1c1f4755e8a87624f04b037629f
[ "MIT" ]
null
null
null
opskit_api/common/paasswordmd5.py
yxxhero/opskit-api
01b2ba64e1bde1c1f4755e8a87624f04b037629f
[ "MIT" ]
null
null
null
opskit_api/common/paasswordmd5.py
yxxhero/opskit-api
01b2ba64e1bde1c1f4755e8a87624f04b037629f
[ "MIT" ]
null
null
null
import hashlib def md5passwd(passwd): md5 = hashlib.md5() md5.update(passwd.encode(encoding="utf-8")) return md5.hexdigest()
17.375
47
0.683453
18
139
5.277778
0.722222
0
0
0
0
0
0
0
0
0
0
0.052174
0.172662
139
7
48
19.857143
0.773913
0
0
0
0
0
0.035971
0
0
0
0
0
0
1
0.2
false
0.4
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
8f330f1da2a99c420bbb1dd75b02d1135b19e4de
108
py
Python
tests/unix/extra_coverage.py
braytac/micropython
4fba270b6061395367e7f49eb3baa77365557ace
[ "MIT" ]
303
2015-07-11T17:12:55.000Z
2018-01-08T03:02:37.000Z
src/micropython/tests/unix/extra_coverage.py
Killercotton/OpenMV_OV7670
c4130052fc6e0f2eed2089222b3b1f2573c9825f
[ "MIT" ]
27
2015-01-02T16:17:37.000Z
2015-09-07T19:21:26.000Z
src/micropython/tests/unix/extra_coverage.py
Killercotton/OpenMV_OV7670
c4130052fc6e0f2eed2089222b3b1f2573c9825f
[ "MIT" ]
26
2018-01-18T09:15:33.000Z
2022-02-07T13:09:14.000Z
try: extra_coverage except NameError: print("SKIP") import sys sys.exit() extra_coverage()
12
18
0.657407
13
108
5.307692
0.769231
0.376812
0
0
0
0
0
0
0
0
0
0
0.240741
108
8
19
13.5
0.841463
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0.142857
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
1
0
0
0
0
0
0
4
8f7d552e60df4102f9281717e3e430d7d077feda
152
py
Python
common/utils.py
ollinevalainen/satellitetools
c36cb686bb6d87d5268890706d71f2144144b4c0
[ "MIT" ]
6
2021-02-26T09:17:15.000Z
2022-01-10T17:10:04.000Z
common/utils.py
ollinevalainen/satellitetools
c36cb686bb6d87d5268890706d71f2144144b4c0
[ "MIT" ]
2
2020-06-09T09:55:45.000Z
2022-02-23T12:36:01.000Z
common/utils.py
ollinevalainen/satellitetools
c36cb686bb6d87d5268890706d71f2144144b4c0
[ "MIT" ]
1
2021-06-08T01:09:22.000Z
2021-06-08T01:09:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 16 11:05:36 2021 @author: Olli Nevalainen (Finnish Meteorological Institute) """
19
59
0.677632
22
152
4.681818
1
0
0
0
0
0
0
0
0
0
0
0.108527
0.151316
152
7
60
21.714286
0.689922
0.921053
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
56d28fa49d913a77c2d971a5ca3e292bb1377cf8
410
py
Python
tremo/tests/test_check.py
thisishoon/trend-monitoring
a0a21b631061c2189d86882258c742f04bb9eb63
[ "MIT" ]
26
2020-08-03T22:20:02.000Z
2020-08-29T11:37:51.000Z
tremo/tests/test_check.py
thisishoon/trend-monitoring
a0a21b631061c2189d86882258c742f04bb9eb63
[ "MIT" ]
8
2020-08-14T08:42:29.000Z
2020-08-25T02:27:05.000Z
tremo/tests/test_check.py
thisishoon/trend-monitoring
a0a21b631061c2189d86882258c742f04bb9eb63
[ "MIT" ]
4
2020-08-17T05:16:56.000Z
2021-05-10T16:30:40.000Z
from tremo.check import check_category def test_check_category(): category, related_search = check_category('김태희') assert '영화배우' in category category, related_search = check_category('놀면 뭐하니?') assert '예능' in category category, related_search = check_category('다만 악에서 구하소서') assert '영화' in category category, related_search = check_category('윤은혜') assert '탤런트' in category
25.625
60
0.719512
53
410
5.358491
0.415094
0.274648
0.323944
0.408451
0.612676
0.612676
0.464789
0
0
0
0
0
0.190244
410
15
61
27.333333
0.855422
0
0
0
0
0
0.085366
0
0
0
0
0
0.4
1
0.1
true
0
0.1
0
0.2
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
56dc6611d58d739017e6848839aaa9baff5c21c0
89
py
Python
pathway/apps.py
eladnoor/equilibrator
b7b7b1651aa605dd117af7654132cab5f83889da
[ "MIT" ]
12
2015-08-05T16:12:29.000Z
2021-03-05T11:57:49.000Z
pathway/apps.py
eladnoor/equilibrator
b7b7b1651aa605dd117af7654132cab5f83889da
[ "MIT" ]
48
2016-07-07T13:10:22.000Z
2018-05-30T21:38:03.000Z
pathway/apps.py
eladnoor/equilibrator
b7b7b1651aa605dd117af7654132cab5f83889da
[ "MIT" ]
4
2016-01-21T10:45:25.000Z
2017-12-14T14:45:18.000Z
from django.apps import AppConfig class PathwayConfig(AppConfig): name = 'pathway'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
711370afac642f89d7ece65ce9db322e5744ba8e
63
py
Python
python/testData/resolve/TypeDunderSizeOfNewStyleClass.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/resolve/TypeDunderSizeOfNewStyleClass.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/resolve/TypeDunderSizeOfNewStyleClass.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A(object): pass print(A.__sizeof__) # <ref>
10.5
19
0.555556
8
63
3.875
0.875
0
0
0
0
0
0
0
0
0
0
0
0.301587
63
6
20
10.5
0.704545
0.079365
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0
0
0.333333
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
0
0
1
1
0
0
0
0
0
4
713f80c8206d13d42eebf34082c17b0385ff0b92
450
py
Python
placements 2016/d1.py
enlighter/automater-scripts
fa6f02fb5c95a083de87733250dbe47ab7c85e0f
[ "MIT" ]
null
null
null
placements 2016/d1.py
enlighter/automater-scripts
fa6f02fb5c95a083de87733250dbe47ab7c85e0f
[ "MIT" ]
null
null
null
placements 2016/d1.py
enlighter/automater-scripts
fa6f02fb5c95a083de87733250dbe47ab7c85e0f
[ "MIT" ]
null
null
null
d1=['13CS10001','12CS30016','12CS30043','12CS30042','12CS30043','13CS10038','12CS30017','12CS30044','13CS10041','12CS30041','12CS30010', '13CS10020','12CS30025','12CS30027','12CS30032','13CS10035','12CS30003','12CS30044','12CS30016','13CS10038','13CS10021','12CS30028', '12CS30016','13CS10006','13CS10046','13CS10034','12CS30037','12CS30017','13CS10025','12CS30014','13CS10035','12CS30005','12CS30036'] d1s = set(d1) print(len(d1)) print(len(d1s))
50
136
0.728889
43
450
7.627907
0.72093
0.042683
0.060976
0
0
0
0
0
0
0
0
0.536364
0.022222
450
8
137
56.25
0.209091
0
0
0
0
0
0.66
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
855e7f45c43c359b970f3f88f8156d936ba6e1d2
2,832
py
Python
test/model/cep.py
robertons/dbmodel
628c4d6a2d0b23d9137015e5b0ea4551b20943bd
[ "MIT" ]
null
null
null
test/model/cep.py
robertons/dbmodel
628c4d6a2d0b23d9137015e5b0ea4551b20943bd
[ "MIT" ]
null
null
null
test/model/cep.py
robertons/dbmodel
628c4d6a2d0b23d9137015e5b0ea4551b20943bd
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from dbmodel.entity import * class Cep(Entity): __primary_key__ = ['id'] # FIELDS @Int(pk=True, not_null=True, precision = 10, scale=0) def id(self): pass @Int(fk=True, not_null=True, precision = 10, scale=0) def id_estado(self): pass @Int(fk=True, not_null=True, precision = 10, scale=0) def id_regiao(self): pass @Int(fk=True, not_null=True, precision = 10, scale=0) def id_cidade(self): pass @String(not_null=True, max=11) def cep_postal(self): pass @String(max=50) def cep_tipo(self): pass @String(max=100) def cep_nome_logradouro(self): pass @String(max=100) def cep_logradouro(self): pass @String(max=100) def cep_bairro(self): pass @String(not_null=True, max=255) def cep_cid_nome(self): pass @String(max=45) def cep_est_prefixo(self): pass @String(not_null=True, max=255) def cep_est_nome(self): pass @String(not_null=True, max=2) def cep_est_sigla(self): pass @String(max=100) def cep_complemento(self): pass @String(max=100) def cep_grandes_usuarios(self): pass @String(max=100) def cep_latitude(self): pass @Decimal(not_null=True, precision = 19, scale=13) def cep_latitude_decimal(self): pass @String(max=100) def cep_longitude(self): pass @Decimal(not_null=True, precision = 19, scale=13) def cep_longitude_decimal(self): pass @String(max=20) def cep_codigo_ibge_cidade(self): pass @String(max=20) def cep_area_cidade(self): pass @String(max=2) def cep_codigo_ddd_cidade(self): pass @String(max=20) def cep_ativo(self): pass @Int(precision = 3, scale=0) def cep_cid_distrito(self): pass @String(max=65535) def cep_est_texto(self): pass @String(max=65535) def cep_est_principais_cidades(self): pass @String(max=255) def cep_cid_nome_completo(self): pass @Int(precision = 3, scale=0) def cep_cid_principal_regiao(self): pass @String(max=45) def cep_cid_url(self): pass @Decimal(precision = 19, scale=2) def cep_cid_desconto(self): pass @Int(fk=True, precision = 10, scale=0) def id_municipio(self): pass @String(max=100) def cep_reg_nome(self): pass @String(max=65535) def cep_reg_texto(self): pass @Int(precision = 3, scale=0) def cep_reg_ativo(self): pass @Int(precision = 10, scale=0) def cep_reg_prioridade(self): pass @String(max=65535) def cep_reg_template_texto(self): pass @Int(precision = 10, scale=0) def id_bairro(self): pass # One-to-One @Object(name="Estado", key="id", reference="id_estado", table="estados") def estados(self):pass @Object(name="Regiao", key="id", reference="id_regiao", table="regioes") def regioes(self):pass @Object(name="Cidade", key="id", reference="id_cidade", table="cidades") def cidades(self):pass # One-to-many @ObjectList(name="Acompanhante", key="id_cep", reference="id", table="acompanhantes") def acompanhantes(self):pass
20.977778
86
0.717161
466
2,832
4.178112
0.184549
0.168464
0.172573
0.174628
0.621469
0.578839
0.564458
0.403698
0.239343
0.222393
0
0.043974
0.132768
2,832
135
87
20.977778
0.748779
0.018008
0
0.341176
0
0
0.038517
0
0
0
0
0
0
1
0.482353
false
0.482353
0.011765
0
0.517647
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
1
0
0
4
85724a9e5efc5483d799a0ee0970cd37cfc2aed0
127
py
Python
psltdsim/BAAgents/__init__.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
psltdsim/BAAgents/__init__.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
psltdsim/BAAgents/__init__.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
# This imports functions that will be available as psltdsim.balancingAuthroityAgents.* from .TLB import TLB from .BA import BA
31.75
86
0.811024
18
127
5.722222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.141732
127
3
87
42.333333
0.944954
0.661417
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
859878b14b3e11ba18ce54288e1695b962f9ab41
208
py
Python
CodingBat/Python/List-1/first_last6.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
null
null
null
CodingBat/Python/List-1/first_last6.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-10-14T18:26:56.000Z
2021-10-14T18:26:56.000Z
CodingBat/Python/List-1/first_last6.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-08-06T03:39:55.000Z
2021-08-06T03:39:55.000Z
''' Given an array of ints, return True if 6 appears as either the first or last element in the array. The array will be length 1 or more. ''' def first_last6(nums): return nums[0] == 6 or nums[-1] == 6
26
76
0.682692
40
208
3.525
0.675
0.113475
0
0
0
0
0
0
0
0
0
0.042945
0.216346
208
7
77
29.714286
0.822086
0.644231
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
859ba9b1c743181beb5f78d9eef84fa7a54a1c36
3,531
py
Python
python/problem61.py
mjwestcott/projecteuler
6c1f01ab1aa412eaa4f2aabfe49514fbc0a7cdbc
[ "MIT" ]
5
2016-04-03T18:01:30.000Z
2018-01-20T15:56:59.000Z
python/problem61.py
mjwestcott/projecteuler
6c1f01ab1aa412eaa4f2aabfe49514fbc0a7cdbc
[ "MIT" ]
null
null
null
python/problem61.py
mjwestcott/projecteuler
6c1f01ab1aa412eaa4f2aabfe49514fbc0a7cdbc
[ "MIT" ]
null
null
null
""" problem61.py https://projecteuler.net/problem=61 Triangle, square, pentagonal, hexagonal, heptagonal, and octagonal numbers are all figurate (polygonal) numbers and are generated by the following formulae: Triangle P[3,n]=n(n+1)/2 --> 1, 3, 6, 10, 15, ... Square P[4,n]=n2 --> 1, 4, 9, 16, 25, ... Pentagonal P[5,n]=n(3n−1)/2 --> 1, 5, 12, 22, 35, ... Hexagonal P[6,n]=n(2n−1) --> 1, 6, 15, 28, 45, ... Heptagonal P[7,n]=n(5n−3)/2 --> 1, 7, 18, 34, 55, ... Octagonal P[8,n]=n(3n−2) --> 1, 8, 21, 40, 65, ... The ordered set of three 4-digit numbers: 8128, 2882, 8281, has three interesting properties. 1. The set is cyclic, in that the last two digits of each number is the first two digits of the next number (including the last number with the first). 2. Each polygonal type: triangle (P[3,127]=8128), square (P[4,91]=8281), and pentagonal (P[5,44]=2882), is represented by a different number in the set. 3. This is the only set of 4-digit numbers with this property. Find the sum of the only ordered set of six cyclic 4-digit numbers for which each polygonal type: triangle, square, pentagonal, hexagonal, heptagonal, and octagonal, is represented by a different number in the set. """ from itertools import count, dropwhile, permutations, takewhile from toolset import memoize def triangle(n): return (n*(n+1))/2 def square(n): return n**2 def pentagonal(n): return n*(3*n - 1)/2 def hexagonal(n): return n*(2*n - 1) def heptagonal(n): return n*(5*n - 3)/2 def octagonal(n): return n*(3*n - 2) @memoize def is_cyclic(x, y): """Are these four-digit numbers cyclic?""" # We can safely truncate to int as x and y come from the polygonal funcs. return str(int(x))[2:] == str(int(y))[:2] def is_all_cyclic(node): """Is the set of digits cyclic, including the last number with the first?""" x = len(node) return all(is_cyclic(node[i], node[(i+1)%x]) for i in range(x)) def is_fourdigit(n): # We can safely truncate to int as n comes from the polygonal funcs. return len(str(int(n))) == 4 def fourdigit_polys(func): """Given a function representing a polygonal type, return all four-digit members of that type.""" dw = dropwhile(lambda x: not is_fourdigit(x), (func(i) for i in count())) return list(takewhile(lambda x: is_fourdigit(x), dw)) def polygon_dict(): """Return a dict from polygon name to four-digit polygon numbers.""" poly_funcs = [triangle, square, pentagonal, hexagonal, heptagonal, octagonal] return {f.__name__: fourdigit_polys(f) for f in poly_funcs} # For every way to order the polygonal types, perform depth-first search, # returning as soon as a solution is found. def problem61(): polys = polygon_dict() perms = permutations(polys.keys()) for perm in perms: # We will build up candidate solutions incrementally. The starting # nodes are therefore the members of polys[perm[0]]. frontier = [[x] for x in polys[perm[0]]] while frontier: node = frontier.pop() z = len(node) if z == 6 and is_all_cyclic(node): return int(sum(node)) elif z < 6: # Note that perm[z] contains the next polygonal type in this # order, e.g. "pentagonal". for y in polys[perm[z]]: if is_cyclic(node[-1], y): frontier.append(node + [y]) if __name__ == "__main__": print(problem61())
38.380435
81
0.638912
573
3,531
3.895288
0.308901
0.006272
0.021505
0.044355
0.190412
0.137993
0.137993
0.034946
0.034946
0
0
0.049871
0.233362
3,531
91
82
38.802198
0.773181
0.560748
0
0
1
0
0.005291
0
0
0
0
0
0
1
0.315789
false
0
0.052632
0.184211
0.526316
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
a41865b140d37fd6df9ea6dee945a99030656196
210
py
Python
scripts/factory-common-install/py/src/nsf_factory_common_install/click/__init__.py
jraygauthier/nixos_secure_factory
67adb93b153902226301d4a68e7b6e3a0af660c2
[ "Apache-2.0" ]
1
2021-04-17T10:13:42.000Z
2021-04-17T10:13:42.000Z
scripts/factory-common-install/py/src/nsf_factory_common_install/click/__init__.py
jraygauthier/nixos_secure_factory
67adb93b153902226301d4a68e7b6e3a0af660c2
[ "Apache-2.0" ]
4
2019-10-21T17:40:17.000Z
2021-11-11T13:46:20.000Z
scripts/factory-common-install/py/src/nsf_factory_common_install/click/__init__.py
jraygauthier/nixos_secure_factory
67adb93b153902226301d4a68e7b6e3a0af660c2
[ "Apache-2.0" ]
2
2019-10-10T18:32:01.000Z
2021-08-24T16:02:09.000Z
"""A bunch of click related tools / helpers / patterns that have a potential of reuse across clis. TODO: We would improve sharing by moving these to a separate re-usable repository instead of copying. """
30
60
0.752381
33
210
4.787879
0.878788
0
0
0
0
0
0
0
0
0
0
0
0.190476
210
6
61
35
0.929412
0.961905
0
null
0
null
0
0
null
0
0
0.166667
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
1
0
0
0
1
0
0
0
0
0
0
4
a4370bd15958da14b3c6c7405ee28ecdcaaa2501
30
py
Python
tests/unit/utils/__init__.py
vmgabriel/tabu-base
615c45e4d6b6fdb1c85c8fbaa316a1e6ce829fcd
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/__init__.py
vmgabriel/tabu-base
615c45e4d6b6fdb1c85c8fbaa316a1e6ce829fcd
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/__init__.py
vmgabriel/tabu-base
615c45e4d6b6fdb1c85c8fbaa316a1e6ce829fcd
[ "Apache-2.0" ]
null
null
null
""" Module test for utils """
7.5
21
0.6
4
30
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.2
30
3
22
10
0.75
0.7
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a4585a83e9538ef8e3e027537d60f4a26c8e6cb3
272
py
Python
tests/__init__.py
squillero/randy
3fb205a82dfdadfd66d1971a22c782f8b69f6fbd
[ "Unlicense" ]
1
2021-04-07T16:15:06.000Z
2021-04-07T16:15:06.000Z
tests/__init__.py
squillero/randy
3fb205a82dfdadfd66d1971a22c782f8b69f6fbd
[ "Unlicense" ]
null
null
null
tests/__init__.py
squillero/randy
3fb205a82dfdadfd66d1971a22c782f8b69f6fbd
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # ______________ ______ __ # |____/|____|| \ || \\_/ # |R \_|A ||N \_||D__/ |Y # # @..@ 古池や # (----) 蛙飛び込む # ( >__< ) 水の音 # # ( ! ) 2021 Giovanni Squillero. Public Domain. # Project page: https://github.com/squillero/randy
22.666667
50
0.496324
23
272
4.26087
0.956522
0
0
0
0
0
0
0
0
0
0
0.024876
0.261029
272
11
51
24.727273
0.462687
0.915441
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a4621b37601bf4645bfe60a3e1d7fb561381a220
95
py
Python
rkigeonameapi/apps.py
benmaier/django-rkigeonameapi
00c0a9fc4ca1c182e4f574a5378ecdd29fcb0720
[ "MIT" ]
null
null
null
rkigeonameapi/apps.py
benmaier/django-rkigeonameapi
00c0a9fc4ca1c182e4f574a5378ecdd29fcb0720
[ "MIT" ]
7
2020-06-06T00:13:40.000Z
2022-02-10T09:36:27.000Z
geonameapi/apps.py
benmaier/rkigeonameapi
93a24969d034b107102e4b98d97710d125deafb1
[ "MIT" ]
null
null
null
from django.apps import AppConfig class GeonameapiConfig(AppConfig): name = 'geonameapi'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a470127a915f843b144e3ca24ba0b79b721794cc
171
py
Python
flask-be/conf/debugConfig.py
yinzhangyue/PDF_tool
ff1c689478e0d40370724ad88da78ef8bd0bf3d1
[ "MIT" ]
3
2021-12-07T06:19:12.000Z
2022-03-30T13:45:34.000Z
flask-be/conf/debugConfig.py
yinzhangyue/PDF_tool
ff1c689478e0d40370724ad88da78ef8bd0bf3d1
[ "MIT" ]
null
null
null
flask-be/conf/debugConfig.py
yinzhangyue/PDF_tool
ff1c689478e0d40370724ad88da78ef8bd0bf3d1
[ "MIT" ]
2
2022-02-27T16:15:05.000Z
2022-03-19T07:35:38.000Z
# PATH UPLOAD_FOLDER = './upload_file' GENERATE_PATH = './download_file' # DATABASE DATABASE = 'mysql' DATABASE_URL = 'localhost:3306' USERNAME = 'root' PASSWORD = 'root'
19
33
0.725146
20
171
5.95
0.7
0
0
0
0
0
0
0
0
0
0
0.026846
0.128655
171
8
34
21.375
0.771812
0.076023
0
0
1
0
0.354839
0
0
0
0
0
0
1
0
false
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
f12f810222b7c9e1dd1a5f3c06914eda9946dbe3
291
py
Python
src/image_processing/paths.py
kolibri91/image-processing
6de773d27c8036a360f3f120e81fe52481abb34c
[ "MIT" ]
2
2020-07-05T11:22:43.000Z
2020-07-05T11:47:22.000Z
src/image_processing/paths.py
kolibri91/image-processing
6de773d27c8036a360f3f120e81fe52481abb34c
[ "MIT" ]
null
null
null
src/image_processing/paths.py
kolibri91/image-processing
6de773d27c8036a360f3f120e81fe52481abb34c
[ "MIT" ]
null
null
null
import os.path SCRIPT_FOLDER = os.path.dirname(os.path.abspath(__file__)) DATA_FOLDER = os.path.join(SCRIPT_FOLDER, "..", "..", "data") INPUT_FOLDER = os.path.join(DATA_FOLDER, "input") OUTPUT_FOLDER = os.path.join(DATA_FOLDER, "output") RESULT_FOLDER = os.path.join(DATA_FOLDER, "result")
36.375
61
0.738832
44
291
4.590909
0.295455
0.207921
0.29703
0.316832
0.386139
0.386139
0
0
0
0
0
0
0.082474
291
7
62
41.571429
0.756554
0
0
0
0
0
0.085911
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f1390fa794c2f652fab7f3ca50c3d8781599209f
290
py
Python
pytest_unittest_discovery_scenarios/under_subdir_of_root_plus_one_further_subdir/tests/further_tests/test_more_multiply.py
d3r3kk/vscode-python-extras
e96da47ccf15dff8673c28bd3e8981b550a00a3d
[ "MIT" ]
null
null
null
pytest_unittest_discovery_scenarios/under_subdir_of_root_plus_one_further_subdir/tests/further_tests/test_more_multiply.py
d3r3kk/vscode-python-extras
e96da47ccf15dff8673c28bd3e8981b550a00a3d
[ "MIT" ]
null
null
null
pytest_unittest_discovery_scenarios/under_subdir_of_root_plus_one_further_subdir/tests/further_tests/test_more_multiply.py
d3r3kk/vscode-python-extras
e96da47ccf15dff8673c28bd3e8981b550a00a3d
[ "MIT" ]
null
null
null
import multiply def test_times_100(): multiplier = multiply.bind_multiply(100) assert multiplier(5) == 500 assert multiplier(10) == 1000 def test_times_negative_1(): multiplier = multiply.bind_multiply(-1) assert multiplier(3) == -3 assert multiplier(7) == -7
18.125
44
0.686207
37
290
5.189189
0.459459
0.333333
0.125
0.3125
0
0
0
0
0
0
0
0.094828
0.2
290
15
45
19.333333
0.732759
0
0
0
0
0
0
0
0
0
0
0
0.444444
1
0.222222
false
0
0.111111
0
0.333333
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
1
0
1
0
0
0
0
0
0
0
4
f140bb59e799119ae0a15107e43aff75ab0aa060
20
py
Python
stu_demo/123.py
Demoyuge/stu_demo
0f76283ec22c6a18300cc5105829673bd4fc3dc5
[ "MIT" ]
null
null
null
stu_demo/123.py
Demoyuge/stu_demo
0f76283ec22c6a18300cc5105829673bd4fc3dc5
[ "MIT" ]
null
null
null
stu_demo/123.py
Demoyuge/stu_demo
0f76283ec22c6a18300cc5105829673bd4fc3dc5
[ "MIT" ]
null
null
null
i = 12 number = 250
6.666667
12
0.6
4
20
3
1
0
0
0
0
0
0
0
0
0
0
0.357143
0.3
20
2
13
10
0.5
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
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f1454ef12ff3764639ae190c9c7b1200f07d0885
381
py
Python
examples/traversals/configuration/hyperparameters.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
2
2021-12-13T17:52:17.000Z
2021-12-13T17:52:18.000Z
examples/traversals/configuration/hyperparameters.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
4
2020-10-06T21:06:15.000Z
2020-10-10T01:18:23.000Z
examples/traversals/configuration/hyperparameters.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .tools import ConfigObj @dataclass class HyperParamConfig(ConfigObj): lr: float = 1e-3 #: the learning rate train_core_processing_steps: int = ( 10 #: number of core processing steps for training step ) eval_core_processing_steps: int = ( 10 #: number of core processing steps for evaluation step )
23.8125
66
0.700787
47
381
5.553191
0.595745
0.214559
0.291188
0.168582
0.413793
0.413793
0.413793
0.413793
0.413793
0.413793
0
0.020761
0.24147
381
15
67
25.4
0.882353
0.322835
0
0.181818
0
0
0
0
0
0
0
0
0
1
0
true
0
0.181818
0
0.545455
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f1458df82392e6c1f71f029c102bb81940cb5233
143
py
Python
tests/basics/fun3.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/basics/fun3.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/basics/fun3.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
# function with large number of arguments def fun(a, b, c, d, e, f, g): return a + b + c * d + e * f * g print(fun(1, 2, 3, 4, 5, 6, 7))
20.428571
41
0.524476
32
143
2.34375
0.75
0.053333
0.08
0.106667
0.186667
0.186667
0.186667
0
0
0
0
0.069307
0.293706
143
6
42
23.833333
0.673267
0.272727
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
74e58826f8b3a4777d3ae624190a8aad282032dc
273
py
Python
dbuild/util/signal_utils.py
mickare/docker_build_environment
770bb41097ed8b98eef719a614d78d3229655e8d
[ "MIT" ]
null
null
null
dbuild/util/signal_utils.py
mickare/docker_build_environment
770bb41097ed8b98eef719a614d78d3229655e8d
[ "MIT" ]
null
null
null
dbuild/util/signal_utils.py
mickare/docker_build_environment
770bb41097ed8b98eef719a614d78d3229655e8d
[ "MIT" ]
null
null
null
import signal SIGNALS_TO_NAMES_DICT = dict((getattr(signal, n), n) \ for n in dir(signal) if n.startswith('SIG') and '_' not in n) def getSignalName(signum) -> str: return SIGNALS_TO_NAMES_DICT.get(signum, "Unnamed signal: %d" % signum)
30.333333
90
0.637363
39
273
4.282051
0.615385
0.107784
0.167665
0.215569
0
0
0
0
0
0
0
0
0.241758
273
8
91
34.125
0.806763
0
0
0
0
0
0.080586
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
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
0
1
1
0
0
4
74106a8fbca2d4ef329142c152175df870131a40
78
py
Python
2019/04-tjctf/bin-silly-sledshop/make_string001.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
25
2019-03-06T11:55:56.000Z
2021-05-21T22:07:14.000Z
2019/04-tjctf/bin-silly-sledshop/make_string001.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2020-06-25T07:27:15.000Z
2020-06-25T07:27:15.000Z
2019/04-tjctf/bin-silly-sledshop/make_string001.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2019-02-14T00:42:28.000Z
2019-02-14T00:42:28.000Z
import sys sys.stdout.buffer.write(b"A" * 80 + b"\x2d\x86\x04\x08EFGHIJ\n")
15.6
64
0.679487
15
78
3.533333
0.866667
0
0
0
0
0
0
0
0
0
0
0.130435
0.115385
78
4
65
19.5
0.637681
0
0
0
0
0
0.324675
0.311688
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
74312836473c182a0a595cd390d26cc1554bd875
122
py
Python
impyute/util/errors.py
tahmidmehdi/impyute
232497d53c68f47c3ed600b3de4a386cb6d4f2f3
[ "MIT" ]
null
null
null
impyute/util/errors.py
tahmidmehdi/impyute
232497d53c68f47c3ed600b3de4a386cb6d4f2f3
[ "MIT" ]
null
null
null
impyute/util/errors.py
tahmidmehdi/impyute
232497d53c68f47c3ed600b3de4a386cb6d4f2f3
[ "MIT" ]
1
2019-07-30T15:43:39.000Z
2019-07-30T15:43:39.000Z
""" impyute.util.errors """ class BadInputError(Exception): "Error thrown when input args don't match spec" pass
20.333333
51
0.696721
16
122
5.3125
1
0
0
0
0
0
0
0
0
0
0
0
0.188525
122
5
52
24.4
0.858586
0.532787
0
0
0
0
0.473684
0
0
0
0
0
0
1
0
true
0.333333
0
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
7433e2d73ac9dcd704532770c859917ce27dfbe4
94
py
Python
listingDataProcessor/downloader.py
worldbank/ZSA_Census
3c659d6b83b8a799eba4e0f2082e04fac495d2ef
[ "MIT" ]
null
null
null
listingDataProcessor/downloader.py
worldbank/ZSA_Census
3c659d6b83b8a799eba4e0f2082e04fac495d2ef
[ "MIT" ]
null
null
null
listingDataProcessor/downloader.py
worldbank/ZSA_Census
3c659d6b83b8a799eba4e0f2082e04fac495d2ef
[ "MIT" ]
null
null
null
""" This module contains scripts for automatically downloading data fromm Survey solutions """
31.333333
86
0.808511
11
94
6.909091
1
0
0
0
0
0
0
0
0
0
0
0
0.12766
94
3
87
31.333333
0.926829
0.914894
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
743f0d95fd34a6e97ada7b8259abc5da213ab8e1
307
py
Python
practice_problems/most_freq.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
practice_problems/most_freq.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
1
2017-02-13T20:48:06.000Z
2017-02-13T20:48:06.000Z
practice_problems/most_freq.py
smenon8/AlgDataStruct_practice
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
from collections import Counter cntr = Counter(list(input())) lst = sorted(cntr.items(),key = lambda x:(-cntr[x],x),reverse = False)[:3] print() print() print() print() print() print() print() print() print(lst) for i in range(0,3): print(lst[i] +" "+ " ".join(str(cntr[lst[i]])))
17.055556
75
0.586319
45
307
4
0.533333
0.444444
0.583333
0.666667
0.25
0.25
0.25
0.25
0
0
0
0.012097
0.192182
307
18
76
17.055556
0.71371
0
0
0.571429
0
0
0.006873
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.714286
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
746146b72221725941d5bb2ca5535179711eb06c
161
py
Python
rest2pdf/tests/fakeapp/__init__.py
rhouse2/django-rest2pdf
13f378fae6b649e92e486a31b7dc7011eea68265
[ "BSD-3-Clause" ]
null
null
null
rest2pdf/tests/fakeapp/__init__.py
rhouse2/django-rest2pdf
13f378fae6b649e92e486a31b7dc7011eea68265
[ "BSD-3-Clause" ]
null
null
null
rest2pdf/tests/fakeapp/__init__.py
rhouse2/django-rest2pdf
13f378fae6b649e92e486a31b7dc7011eea68265
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ __init__.py Creating models for testing. See ticket for more detail. http://code.djangoproject.com/ticket/7835 """
16.1
56
0.726708
24
161
4.708333
0.916667
0
0
0
0
0
0
0
0
0
0
0.035461
0.124224
161
9
57
17.888889
0.765957
0.919255
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
778137d4a82ba4970318ebb2ca73c597287fde54
169
py
Python
tests/unit/test_objector.py
Theonefoster/praw
3d79b43a5193387974455f3d3ccdfff644714d09
[ "BSD-2-Clause" ]
1
2018-12-24T18:54:02.000Z
2018-12-24T18:54:02.000Z
tests/unit/test_objector.py
Theonefoster/praw
3d79b43a5193387974455f3d3ccdfff644714d09
[ "BSD-2-Clause" ]
null
null
null
tests/unit/test_objector.py
Theonefoster/praw
3d79b43a5193387974455f3d3ccdfff644714d09
[ "BSD-2-Clause" ]
null
null
null
from . import UnitTest class TestObjector(UnitTest): def test_objectify_returns_None_for_None(self): assert self.reddit._objector.objectify(None) is None
21.125
60
0.769231
22
169
5.636364
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.159763
169
7
61
24.142857
0.873239
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
779b36513025df2566bebe4b6f3c13977678ce19
723
py
Python
configgen/tests/utils/videoModeUtil_test.py
pmoran13800/rhgamestation-configgen
72cf636adeb6fa83abea66e0a85fe574405a0ede
[ "MIT" ]
5
2016-01-20T20:33:16.000Z
2019-10-24T23:47:34.000Z
configgen/tests/utils/videoModeUtil_test.py
pmoran13800/rhgamestation-configgen
72cf636adeb6fa83abea66e0a85fe574405a0ede
[ "MIT" ]
58
2015-12-09T12:44:27.000Z
2019-08-15T11:35:24.000Z
configgen/tests/utils/videoModeUtil_test.py
pmoran13800/rhgamestation-configgen
72cf636adeb6fa83abea66e0a85fe574405a0ede
[ "MIT" ]
30
2015-11-15T22:17:26.000Z
2021-04-16T23:24:26.000Z
#!/usr/bin/env python import sys import os.path import unittest sys.path.append( os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))) import configgen.utils.videoMode as videoMode class VideoModeUtilTest(unittest.TestCase): pass #def test_createSimpleFillValues(self): # self.assertEquals(videoMode.createVideoModeLine("10"), "tvservice -e 10 CEA HDMI") #def test_createAddHDMI(self): # self.assertEquals(videoMode.createVideoModeLine("10 CEA"), "tvservice -e 10 CEA HDMI") #def test_createDontAddWhenLineCompelete(self): # self.assertEquals(videoMode.createVideoModeLine("10 CEA HDMI"), "tvservice -e 10 CEA HDMI") if __name__ == '__main__': unittest.main()
31.434783
100
0.726141
85
723
6
0.447059
0.04902
0.070588
0.170588
0.445098
0.407843
0.309804
0
0
0
0
0.019324
0.141079
723
22
101
32.863636
0.801932
0.5574
0
0
0
0
0.044728
0
0
0
0
0
0
1
0
true
0.1
0.4
0
0.5
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
0
1
1
1
0
0
0
0
4
77ccae1a94a92134cfd5ce2f0f04f9f262df00ce
175
py
Python
Intermediate/math-module.py
abhishek8075374519/python-for-beginners
a3c0334751001c6468819af7c8ae7ec0993a48c3
[ "MIT" ]
null
null
null
Intermediate/math-module.py
abhishek8075374519/python-for-beginners
a3c0334751001c6468819af7c8ae7ec0993a48c3
[ "MIT" ]
null
null
null
Intermediate/math-module.py
abhishek8075374519/python-for-beginners
a3c0334751001c6468819af7c8ae7ec0993a48c3
[ "MIT" ]
null
null
null
import math print(math.sqrt(25)) print(math.ceil(5.143210)) print(math.floor(5.543210)) print(math.pow(2, 4)) print(math.pi) print(math.sin(30)) print(math.log(10))
17.5
28
0.68
32
175
3.71875
0.5625
0.529412
0
0
0
0
0
0
0
0
0
0.141935
0.114286
175
9
29
19.444444
0.625806
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0.875
0
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
1
0
0
0
0
1
0
4
77d9bb3392aa8744982eed50549d5c4923d3f31a
149
py
Python
test/__init__.py
chargehound/chargehound-python
d9400c83c6b83f6362883a655ce4090ff23aca2d
[ "MIT" ]
2
2016-05-10T00:02:52.000Z
2016-10-20T17:25:01.000Z
test/__init__.py
chargehound/chargehound-python
d9400c83c6b83f6362883a655ce4090ff23aca2d
[ "MIT" ]
5
2017-05-31T23:37:41.000Z
2019-05-08T21:39:12.000Z
test/__init__.py
chargehound/chargehound-python
d9400c83c6b83f6362883a655ce4090ff23aca2d
[ "MIT" ]
1
2017-06-01T22:46:44.000Z
2017-06-01T22:46:44.000Z
import os import unittest2 def all(): path = os.path.dirname(os.path.realpath(__file__)) return unittest2.defaultTestLoader.discover(path)
18.625
54
0.751678
19
149
5.684211
0.631579
0.111111
0
0
0
0
0
0
0
0
0
0.015625
0.14094
149
7
55
21.285714
0.828125
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
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
1
0
1
0
0
4
7acf572b5a3b7938058742cb217b061cfabc1197
281
py
Python
tau/twitch/filters.py
Dj-Viking/tau
91f324104c68e76e6514228203d1b7832428790f
[ "MIT" ]
51
2021-06-24T16:22:05.000Z
2022-03-26T02:39:26.000Z
tau/twitch/filters.py
Dj-Viking/tau
91f324104c68e76e6514228203d1b7832428790f
[ "MIT" ]
41
2021-04-05T17:21:13.000Z
2021-06-13T14:26:40.000Z
tau/twitch/filters.py
Dj-Viking/tau
91f324104c68e76e6514228203d1b7832428790f
[ "MIT" ]
15
2021-02-16T22:14:36.000Z
2021-06-07T20:14:33.000Z
from django.db.models import Q from django_filters import rest_framework as filters from .models import TwitchEventSubSubscription class TwitchEventSubSubscriptionFilter(filters.FilterSet): class Meta: model = TwitchEventSubSubscription fields = ('active', )
28.1
58
0.779359
28
281
7.75
0.642857
0.092166
0
0
0
0
0
0
0
0
0
0
0.16726
281
9
59
31.222222
0.92735
0
0
0
0
0
0.021352
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7ae23c044a513c3a0eee9b7b18eb2d2bcf5fda0f
2,145
py
Python
tests/test_save.py
fabiocaccamo/python-fontbro
2ed7ef0d3d1ed4d91387278cfb5f7fd63324451b
[ "MIT" ]
11
2021-11-17T23:51:55.000Z
2022-03-17T20:38:14.000Z
tests/test_save.py
fabiocaccamo/python-fontbro
2ed7ef0d3d1ed4d91387278cfb5f7fd63324451b
[ "MIT" ]
4
2022-02-21T02:16:06.000Z
2022-03-28T02:18:16.000Z
tests/test_save.py
fabiocaccamo/python-fontbro
2ed7ef0d3d1ed4d91387278cfb5f7fd63324451b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from fontbro import Font from tests import AbstractTestCase class SaveTestCase(AbstractTestCase): """ Test case for the methods related to the font save method. """ def test_save_with_font_src_path_as_filepath_with_overwrite(self): font_filepath = self._get_font_path( "/Roboto_Mono/static/RobotoMono-Regular.ttf" ) font = self._get_font("/Roboto_Mono/static/RobotoMono-Regular.ttf") font_saved_path = font.save(font_filepath, overwrite=True) self.assertEqual(font_saved_path, font_filepath) def test_save_with_font_src_path_as_filepath_without_overwrite(self): font_filepath = self._get_font_path( "/Roboto_Mono/static/RobotoMono-Regular.ttf" ) font = self._get_font("/Roboto_Mono/static/RobotoMono-Regular.ttf") with self.assertRaises(ValueError): font.save(font_filepath) def test_save_as_woff(self): # font = self._get_font('/Noto_Sans_TC/NotoSansTC-Regular.otf') font = self._get_font("/Roboto_Mono/static/RobotoMono-Regular.ttf") output_filepath = self._get_font_temp_path("") font_saved_filepath = font.save_as_woff(output_filepath) self.assertTrue(font_saved_filepath.endswith(".woff")) # ensure that the original font format is not changed self.assertEqual(font.get_format(), Font.FORMAT_TTF) font_saved = Font(font_saved_filepath) self.assertEqual(font_saved.get_format(), Font.FORMAT_WOFF) def test_save_as_woff2(self): # font = self._get_font('/Noto_Sans_TC/NotoSansTC-Regular.otf') font = self._get_font("/Roboto_Mono/static/RobotoMono-Regular.ttf") output_filepath = self._get_font_temp_path("") font_saved_filepath = font.save_as_woff2(output_filepath) self.assertTrue(font_saved_filepath.endswith(".woff2")) # ensure that the original font format is not changed self.assertEqual(font.get_format(), Font.FORMAT_TTF) font_saved = Font(font_saved_filepath) self.assertEqual(font_saved.get_format(), Font.FORMAT_WOFF2)
41.25
75
0.707692
279
2,145
5.078853
0.21147
0.076217
0.077629
0.110092
0.779817
0.755116
0.755116
0.752294
0.677488
0.626676
0
0.002887
0.192541
2,145
51
76
42.058824
0.815242
0.144056
0
0.424242
0
0
0.144824
0.138767
0
0
0
0
0.242424
1
0.121212
false
0
0.060606
0
0.212121
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
bb02a179208c8e040a302cc29262a2ad9fbd088d
25,067
py
Python
download_rc.py
AskarKani/split_downloader
2227380db50f2a454bfadb8f702c23b2b7ac37e3
[ "MIT" ]
1
2021-10-19T13:55:25.000Z
2021-10-19T13:55:25.000Z
download_rc.py
AskarKani/split_downloader
2227380db50f2a454bfadb8f702c23b2b7ac37e3
[ "MIT" ]
null
null
null
download_rc.py
AskarKani/split_downloader
2227380db50f2a454bfadb8f702c23b2b7ac37e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.0) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x16\x68\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x01\x00\x00\x00\x01\x00\x08\x06\x00\x00\x00\x5c\x72\xa8\x66\ \x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\ \xa7\x93\x00\x00\x16\x1d\x49\x44\x41\x54\x78\x9c\xed\xdd\x7b\x78\ \x5c\x75\x9d\x06\xf0\xf7\xfb\x9b\x99\xa6\x6d\xca\x4d\x84\x22\x4a\ \xb1\x75\x17\xa1\x08\x2e\xd2\x07\x29\xa4\x99\x99\x5c\x1a\x26\xbd\ \x40\xd5\x14\xf0\xb2\x17\x51\x0a\xbb\x8b\xe2\xee\x82\xee\x83\xb0\ \xc1\x5d\x5d\x61\xdd\xc7\xe5\x01\xdd\x75\x17\x41\x51\x1e\x96\x06\ \x05\x9a\x64\xa6\x4d\x66\x92\x49\x4a\x5b\xa0\x14\x51\x2e\x2a\x37\ \x29\x08\x2d\x17\x7b\x11\x92\x90\x64\xe6\x7c\xf7\x8f\xa4\xdd\xb4\ \x4d\xd2\x5c\xe6\x9c\xdf\x99\x39\xef\xe7\x79\xfa\x3c\x4d\x32\x39\ \xe7\x4d\xc9\xf7\xe5\xcc\x99\x33\xe7\x07\x10\x11\x11\x11\x11\x11\ \x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\ \x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\ \x11\x11\x11\x91\xa7\xc4\x76\x00\x72\x47\xac\x33\x36\x67\x56\x28\ \x34\xcf\x38\x98\xeb\x08\x4e\x84\xc8\x71\xe2\xc8\xf1\x2a\x3a\x0b\ \xc0\x6c\x81\x84\x20\x7a\x24\x14\x8e\x02\x7b\x05\xf2\xae\x42\xfb\ \xa0\xf2\x47\x23\x3a\xa0\x22\x6f\x39\xc0\x2b\x9a\x37\xdb\x8f\x3c\ \xfe\xc8\x97\x9b\x4e\x6f\x1a\xb0\xfd\x33\x51\xe1\xb1\x00\x8a\x5c\ \xc3\xd3\x0d\x33\x7a\x76\xed\x3d\x0b\x8e\x2e\x02\x74\xa1\x00\x1f\ \x56\xc8\x87\x01\xfd\x40\x01\x77\xe3\x00\xd8\x01\xe0\x25\x85\x3c\ \x6f\x54\xb7\x09\xf4\xb1\x59\x33\x7a\x9f\x68\x3a\x6f\x4b\x5f\x01\ \xf7\x43\x1e\x63\x01\x14\x99\x58\x67\x6c\x4e\xb9\x89\x54\x39\xd0\ \x38\x80\x8f\x0b\xf0\x31\x00\x65\x96\xe2\xe4\x00\x3c\x25\x82\xad\ \x0a\xd9\x1c\x1e\x70\x52\xeb\x6a\x32\xaf\x5b\xca\x42\x53\xc0\x02\ \x28\x02\xcb\xba\x6a\x4e\x73\x54\x57\x88\xa0\x0e\x90\x0a\x00\x33\ \x6c\x67\x1a\x83\x03\x60\x1b\x80\x56\x38\xd2\x7a\x4e\xec\xfc\xc7\ \x1b\xa5\xd1\xb1\x1d\x8a\xc6\xc6\x02\xf0\xa9\xfa\x4c\xd5\xc9\x12\ \x0e\x5d\xa2\xea\x5c\x0a\x91\x8f\xda\xce\x33\x45\xaf\x0b\xd0\x64\ \xc4\xb9\xb3\xb9\xb2\xe3\x71\xdb\x61\xe8\x50\x2c\x00\x1f\x69\x78\ \xba\x61\x46\xcf\x5b\xbb\x3f\x05\xe0\x0a\x00\x15\x28\xa5\xff\x3e\ \xaa\xbf\x04\x70\x47\x59\x0e\x77\xdf\x5f\x93\xf9\x83\xed\x38\x34\ \xa4\x74\x7e\xc1\x8a\xd8\xd2\xae\xa5\x27\x45\x24\x7f\x85\xaa\x5c\ \x06\x60\xae\xed\x3c\x2e\xeb\x07\xf0\xa0\x18\x73\x73\xeb\x92\xb6\ \x6d\xb6\xc3\x04\x1d\x0b\xc0\xa2\x15\x5d\x4b\xe7\xe7\xa1\x57\x03\ \xba\x06\xf6\x4e\xe4\xd9\xb4\x49\xd5\xdc\x94\x8a\xb5\x35\xdb\x0e\ \x12\x54\x2c\x00\x0b\x56\x74\x2e\x3d\x35\x2f\xf9\xeb\x20\x72\x29\ \x80\x90\xed\x3c\x3e\xb0\x49\x04\xff\xda\x5a\x99\x6e\xb5\x1d\x24\ \x68\x58\x00\x1e\x5a\x95\xae\x3e\xb6\x3f\x62\x6e\x00\xf4\xaf\x01\ \x84\x6d\xe7\xf1\xa1\x47\x60\xcc\x97\x93\x4b\xda\x1e\xb1\x1d\x24\ \x28\x58\x00\x1e\x18\x3a\xb9\xb7\xe7\x4a\x40\x6f\x04\x70\x94\xed\ \x3c\x3e\xe7\x40\x70\x77\x78\x40\xaf\xe1\x35\x05\xee\x63\x01\xb8\ \x6c\x59\x67\x4d\x8d\x1a\xfc\x00\xc0\x02\xdb\x59\x8a\xcc\x1e\x15\ \xdc\xd8\x97\xcf\xdd\x96\x8d\x67\x73\xb6\xc3\x94\x2a\x16\x80\x4b\ \x2e\xea\x8c\x1d\xdd\x6f\xc2\x37\x09\xf0\x45\xf0\xdf\x79\x3a\xb6\ \x86\x1c\xf3\xe7\xcd\xf1\xb6\xdf\xd8\x0e\x52\x8a\xf8\x8b\xe9\x82\ \x65\x5d\xb5\x2b\x15\xfa\x03\x00\x27\xd8\xce\x52\x22\xfa\x54\x70\ \x6d\x6a\x49\xfa\x7b\x10\xa8\xed\x30\xa5\x84\x05\x50\x40\x89\x64\ \xa2\x4c\xca\x73\x37\x03\x7a\x15\xf8\x6f\x5b\x78\x82\x74\x4e\xcd\ \xe7\xdb\xa2\x6d\xaf\xd8\x8e\x52\x2a\xf8\x4b\x5a\x20\x2b\x3a\x97\ \x9e\x9a\x37\xce\x3d\x00\xfe\xcc\x76\x96\x12\xb7\x5b\xd5\xf9\x4c\ \x2a\xd6\x91\xb2\x1d\xa4\x14\x18\xdb\x01\x4a\xc1\xf2\x6c\xed\x2a\ \xc7\x38\x5b\xc1\xe1\xf7\xc2\x31\x22\xa6\xb9\xbe\xbb\xe6\x1a\xdb\ \x41\x4a\x01\x8f\x00\xa6\x43\x21\xcb\xba\x6b\xaf\x55\xe8\xb7\xc0\ \x32\xf5\x9c\xaa\xfc\x6f\x78\xce\xcc\xcb\x9a\x17\x35\xf7\xda\xce\ \x52\xac\x58\x00\x53\xd4\xb0\x79\xf1\xac\x77\x06\xe6\xdc\x21\xa2\ \x97\xd8\xce\x12\x70\x5b\x4d\xce\x59\xd5\x52\xdd\xf1\xaa\xed\x20\ \xc5\x88\x05\x30\x05\x35\xed\x35\x47\x95\x95\xa1\x45\x15\x15\xb6\ \xb3\x10\x00\xe0\x65\x03\xa9\x69\x89\xb6\x3f\x67\x3b\x48\xb1\x61\ \x01\x4c\xd2\xca\x74\xf5\xdc\x5c\x44\x52\x00\xce\xb2\x9d\x85\x0e\ \xf0\x3a\x80\xda\x64\x34\xfd\xa4\xed\x20\xc5\x84\xcf\x5b\x27\xa1\ \x3e\x53\x75\x72\x2e\x22\xdd\xe0\xf0\xfb\xd1\x5c\x00\x5d\xcb\xbb\ \xab\xce\xb1\x1d\xa4\x98\xf0\x08\x60\x82\x12\x9d\xb1\x0f\x88\x09\ \x77\x03\x98\x6f\x3b\x0b\x8d\x6b\xaf\xc0\xa9\x6f\x8d\x76\x6c\xb6\ \x1d\xa4\x18\xb0\x00\x26\x20\xd1\x9d\x38\x4e\x74\xb0\x0b\xc0\x69\ \xb6\xb3\xd0\x84\xbc\xad\x40\x34\x15\x4d\xff\xc2\x76\x10\xbf\xe3\ \x53\x80\xc3\xb8\xa8\x33\x76\xb4\xe8\xe0\x06\x70\xf8\x8b\xc9\x11\ \x02\xb4\x5e\xd0\x79\xc1\x07\x6d\x07\xf1\x3b\x16\xc0\x38\x1a\x36\ \x2f\x9e\x35\x60\xc2\x3c\xe1\x57\x9c\xde\x67\x4c\x2e\xb5\x2a\x5d\ \x7d\xac\xed\x20\x7e\xc6\x02\x18\x8b\x42\x7a\x06\xcb\x6f\x07\x70\ \xae\xed\x28\x34\x65\xa7\xf6\x47\x4c\x72\xe9\x86\xa5\xe5\xb6\x83\ \xf8\x15\x0b\x60\x0c\x89\x8d\xd5\x8d\x00\x3e\x6d\x3b\x07\x4d\x97\ \x9e\x13\x29\xd3\x1f\x41\x79\xbe\x6b\x34\xbc\x1f\xdd\x28\xea\xbb\ \x6a\x3e\x2d\x90\x5b\xc0\x93\xa4\xa5\x41\xb0\xf0\x4f\x5f\x5e\xb0\ \xf7\xb9\x3b\x5f\x7c\xd8\x76\x14\xbf\xe1\x2f\xf8\x41\xea\x37\x56\ \x9f\x02\x47\x1e\x03\x70\x84\xed\x2c\x54\x50\x83\x2a\x12\x4f\x55\ \xb6\x6f\xb2\x1d\xc4\x4f\xf8\x14\x60\x84\x58\x67\x6c\x26\xf2\x58\ \x0b\x0e\x7f\x29\x8a\x88\xea\x3d\x2b\x3a\x63\xef\xb5\x1d\xc4\x4f\ \x58\x00\x23\xcc\x32\xe1\x5b\x8a\x78\x19\x2e\x3a\xbc\x93\xf2\x26\ \x72\x57\xa3\x36\xf2\xf7\x7e\x58\xe0\x9e\x02\xd4\x75\xd7\xbd\x2f\ \x24\x3a\x4f\xf2\x3a\xcf\x31\x3a\xd7\x28\x8e\x72\x80\xa3\x05\x38\ \x11\x3c\xe9\x17\x08\x2a\xb8\x2a\x55\x99\xbe\xcd\x76\x0e\x3f\x28\ \xd9\x02\x58\xb6\x71\xd9\x31\x79\x67\x60\xb1\x81\x9e\x09\xe0\x0c\ \x00\x0b\x31\x74\x31\x4f\x10\x57\xe0\xa1\x03\xbd\x9d\x83\x39\x9d\ \xb7\x16\x2b\xa1\xc5\x29\xea\x36\xd7\xbd\x27\x34\x98\xaf\x51\xa0\ \xda\xa8\x9c\xaf\x4e\xff\x42\x53\xc2\x05\x47\xd3\x72\x44\x58\x9d\ \xef\x03\x58\x61\x3b\x88\x6d\x45\x3d\x20\x75\x9d\x75\x7f\x62\xc4\ \x59\x2d\x82\x65\x80\x7e\x1c\x7c\x59\x93\x26\x41\xa1\x97\xa4\xa2\ \x99\x7b\x6d\xe7\xb0\xa9\xe8\x0a\x60\x65\xba\x7a\xee\x60\xc4\x7c\ \x56\xa0\x97\x00\x58\x64\x3b\x0f\x15\xb5\xd7\xf3\x91\xd0\xc2\x0d\ \xe7\x6d\xd8\x65\x3b\x88\x2d\xc5\xf1\x14\x40\x21\x17\x6c\xac\xad\ \x32\xd0\x35\x39\xc5\x85\x02\x9d\x61\x3b\x12\x95\x84\xb9\xe1\xc1\ \xfc\x8d\x00\xae\xb2\x1d\xc4\x16\x5f\x1f\x01\x9c\xfd\xd8\xd9\x91\ \xe3\x7b\x8e\xb9\xd4\xa8\x5c\xab\xa2\xa7\xdb\xce\x43\x25\x69\x50\ \x73\xce\x69\xa9\xea\x8e\x17\x6c\x07\xb1\xc1\x97\x47\x00\x89\x64\ \xa2\x4c\x66\x0f\xac\x41\x8f\xfc\x03\x80\x93\x54\xb8\x18\x0c\xb9\ \x26\x22\x21\x69\x04\xf0\x39\xdb\x41\x6c\xf0\xd5\x11\x40\xa3\x36\ \x9a\xad\x5d\x9b\x3e\xa9\xa2\xdf\x06\x17\xd3\x24\xef\x38\x70\xe4\ \xec\x64\xbc\xfd\x09\xdb\x41\xbc\xe6\x9b\x2b\xa2\x2e\xe8\xae\xad\ \x7e\xb4\xfb\xa1\x27\x55\x74\x2d\x38\xfc\xe4\x2d\x03\xe3\x7c\xc3\ \x76\x08\x1b\xac\x1f\x01\x0c\xdf\x6b\xef\xdf\x01\xac\xb6\x9d\x85\ \x82\xcd\x88\xf3\xf1\x96\xca\x8e\x47\x6d\xe7\xf0\x92\xbd\x23\x00\ \x85\x2c\xeb\xaa\xb9\x5c\x4c\xf8\x19\x70\xf8\xc9\x07\x1c\x98\xab\ \x6d\x67\xf0\x9a\x95\x23\x80\xfa\x4c\xd5\xc9\x88\x98\xdb\xa1\xa8\ \xb1\xb1\x7f\xa2\x31\x0c\xaa\x93\x5b\x90\x8a\x67\x7f\x6f\x3b\x88\ \x57\x3c\x3f\x02\x58\x9e\xad\x5d\x85\xb0\xf9\x05\x87\x9f\x7c\x28\ \x22\x26\xbc\xc6\x76\x08\x2f\x79\x76\x04\x90\x48\x26\xca\xa4\x3c\ \x77\x33\xa0\x5f\xf2\x6a\x9f\x44\x53\xf0\x66\xaf\x93\x9b\x97\x8d\ \x67\xdf\xb5\x1d\xc4\x0b\x9e\x1c\x01\x2c\xcf\x54\xbd\x5f\xca\x07\ \x1f\xe2\xf0\x53\x11\x38\x6e\x76\x28\x12\x98\x05\x5f\x5d\x2f\x80\ \x44\x57\xcd\x59\x4e\xd8\x6c\x01\xaf\xdb\xa7\x62\xa1\xce\x5f\xd9\ \x8e\xe0\x15\x57\x9f\x02\xd4\x77\xd5\xac\x06\xf0\x63\x00\x33\xdd\ \xdc\x0f\x51\x81\x39\xe1\x90\x9c\xb4\xae\xa2\xfd\x35\xdb\x41\xdc\ \xe6\xda\x11\x40\x22\x5b\x73\x25\x80\x7b\xc0\xe1\xa7\xe2\x63\x72\ \x39\xe7\x53\xb6\x43\x78\xc1\x95\x02\x48\x74\x57\x5f\x2f\x82\xef\ \xbb\xb5\x7d\x22\xd7\x89\xb9\xd8\x76\x04\x2f\x14\xfc\x29\x40\xa2\ \xbb\xfa\x46\x51\xb9\xa1\xd0\xdb\x25\xf2\x98\x22\xe7\xcc\x4f\x56\ \x77\x6c\xb7\x1d\xc4\x4d\x05\x2d\x80\x44\x77\xf5\xf5\xa2\x12\xc8\ \x6b\xaa\xa9\x14\xe9\x2d\x2a\xa6\xc9\xe4\x65\xaf\x83\x81\x3d\x7d\ \xc0\xce\x6c\x3c\x9b\xb3\x9d\xaa\x90\x0a\x56\x00\x89\xae\xda\xbf\ \x17\xe8\x77\x0a\xb5\x3d\x22\x1f\xca\x01\xd8\x21\x82\xed\xea\xe8\ \x6f\xd4\xc8\xd3\xe2\xe8\xd3\x33\x34\xbf\xf5\x81\x78\x76\x8f\xed\ \x70\x53\x51\x90\x02\x58\xd6\x5d\x7d\x89\xaa\xdc\x0d\x3e\xe7\xa7\ \x60\x72\x44\xe5\xd7\x30\xba\x59\x15\xe9\x7c\x24\x94\x2e\x96\xdb\ \x8c\x4d\xbb\x00\x96\x65\xab\xe3\x2a\x92\x02\x6f\xb7\x4d\xb4\x4f\ \x1e\x90\x47\xa0\xce\xcf\x72\x12\x6a\xf2\xf3\xed\xc7\xa7\x55\x00\ \x89\x4c\xd5\x87\x24\x6c\x1e\x05\xf0\x9e\x02\xe5\x21\x2a\x35\x2a\ \x82\x4d\x50\xbd\xdd\x94\xcf\x6e\x6a\x5e\xd4\xdc\x6b\x3b\xd0\x48\ \x53\x2e\x80\x58\x67\x6c\xce\x6c\x13\xde\x02\xe0\x23\x05\xcc\x43\ \x54\xca\xf6\x02\xfa\x23\xc7\x89\xfc\xc7\xfa\xf8\xfa\x97\x6c\x87\ \x01\xa6\x5a\x00\x0a\xa9\xef\xae\xb9\x0f\xc0\x27\x0a\x1b\x87\x28\ \x10\x72\xaa\x72\x9f\x51\xf9\x66\x6b\xbc\xed\x29\x9b\x41\xa6\x54\ \x00\x89\xee\x9a\xbf\x15\xc5\xad\x85\x0e\x43\x14\x30\x8e\x00\xf7\ \xe4\x9c\x50\xe3\x86\xf8\x86\xe7\x6d\x04\x98\x74\x01\xd4\x3d\x14\ \x3f\x3d\x94\x0f\x6d\x05\x30\xcb\x85\x3c\x44\x41\x34\x08\xc8\x7f\ \x0e\x0c\xe8\x0d\xe9\xda\xf4\x5e\x2f\x77\x3c\xa9\x02\x48\x24\x13\ \x65\x66\x76\x6e\x1b\xef\xd1\x4f\xe4\x8a\x9d\x00\xbe\x9c\x8c\xa6\ \xd7\x7a\xb5\xc3\x49\xbd\x6e\x6f\xe6\x0c\xdc\xc0\xe1\x27\x72\xcd\ \x09\x00\xee\xad\xef\xae\x59\x5b\xb7\xb9\xce\x93\x57\xd6\x26\x7c\ \x04\xb0\x7c\x63\xdd\x47\x1d\x27\xbf\x15\x40\xc4\xc5\x3c\x44\x34\ \x64\xa7\x08\xbe\xd0\x5a\x99\x6e\x75\x73\x27\x13\x2a\x80\x86\xb5\ \x0d\xa1\x9e\xb9\xbb\x1f\x01\x70\xb6\x9b\x61\x88\xe8\x00\xaa\x8a\ \xdb\xfa\x34\x77\xad\x5b\xb7\x28\x9b\xd0\x53\x80\x9e\xb9\xbb\xbe\ \x00\x0e\x3f\x91\xd7\x44\x04\x57\xcd\x36\xe1\xce\x95\xe9\xea\xb9\ \xae\xec\xe0\x70\x0f\x48\x3c\x9c\x38\x52\xfa\x07\x7f\x8b\xa1\xe7\ \x27\x44\x64\xc7\xef\x54\x74\x79\xaa\x32\xf3\x4c\x21\x37\x7a\xf8\ \x23\x80\xfe\xc1\xeb\xc1\xe1\x27\xb2\x6d\xbe\xa8\x6c\x5a\xd6\x59\ \x53\xd0\xdb\xe9\x8f\x7b\x04\xb0\xf2\xa1\xda\x13\x73\x79\x7d\x1e\ \x7c\xcd\x9f\xc8\x2f\x72\x0a\xac\x49\x45\xd3\x77\x14\x62\x63\xe3\ \x1e\x01\xe4\xf2\x7a\x1d\x38\xfc\x44\x7e\x12\x16\xe0\xf6\xfa\xee\ \xda\x2f\x14\x62\x63\x63\x1e\x01\xd4\x67\xaa\x4e\x46\xd8\x3c\x0b\ \x60\x46\x21\x76\x44\x44\x05\x95\x57\xe8\x67\x52\xd1\xcc\xbd\xd3\ \xd9\xc8\xd8\x47\x00\x61\xf9\x0a\x38\xfc\x44\x7e\x15\x12\xc8\xdd\ \xcb\xb2\xb5\x0d\xd3\xd9\xc8\xa8\x47\x00\x35\xed\x35\x47\xcd\x98\ \x81\x57\x00\x1c\x31\x9d\x8d\x13\x91\xeb\xfa\x45\x70\x61\x6b\x65\ \x7a\xc3\x54\xbe\x79\xd4\x23\x80\x48\x44\xd7\x80\xc3\x4f\x54\x0c\ \xca\xa0\xb8\x2f\xd1\x5d\xbd\x70\x2a\xdf\x7c\x48\x01\x34\x6a\xa3\ \x11\x91\x2b\xa6\x9f\x8b\x88\xbc\xa0\xc0\x1c\x51\xb9\x6f\xe5\x43\ \xe7\x4f\xfa\x7f\xda\x87\x14\xc0\xc3\x1b\x37\xc5\x01\xcc\x2f\x48\ \x32\x22\xf2\xca\x69\xb9\xfc\xac\x9f\x40\x27\xf7\x0e\xdf\x43\x0a\ \xc0\x40\x2f\x2b\x5c\x26\x22\xf2\xd0\x85\x89\xae\xea\x6b\x26\xf3\ \x0d\x07\xb4\xc5\xf0\xc9\xbf\x9d\xe0\x7a\x7e\x44\xc5\x2a\x2f\xaa\ \xf1\xd6\x58\x66\xe3\x44\x1e\x7c\xc0\x11\x40\x59\x99\xac\x00\x87\ \x9f\xa8\x98\x85\x54\xe4\xf6\x58\x67\x6c\x42\x73\x7c\x40\x01\xa8\ \xa3\x9f\x74\x27\x13\x11\x79\xe8\x94\xd9\x26\x7c\xdd\x44\x1e\xb8\ \xff\x29\xc0\xd2\x0d\x4b\xcb\xc3\x33\x9d\x37\xc1\x4b\x7f\x89\x4a\ \xc1\xa0\x38\xe6\x63\x87\xbb\xeb\xf0\xfe\x23\x80\x50\x19\xaa\xc0\ \xe1\x27\x2a\x15\x11\x35\xfa\xc3\x86\xb5\x0d\xa1\xf1\x1e\xb4\xbf\ \x00\x44\xb4\xa0\x6f\x33\x24\x22\xdb\xf4\x9c\x77\x8e\xdf\x7d\xf9\ \x78\x8f\x18\x71\x0e\x40\x97\xba\x1d\x87\x88\xbc\x25\x82\x1b\xc7\ \xbb\x40\x28\x0c\xec\x7f\xdf\xff\xa9\xde\xc5\xa2\x02\x73\x00\x6c\ \x07\xf0\xb2\x00\x3d\x2a\xe8\x71\x63\x27\xa2\x28\x57\xa0\x1c\xd0\ \x93\x01\x99\x07\xae\x06\x5d\x0c\x8e\x1b\x74\x66\x5e\x0d\xe0\x9f\ \x47\xfb\xa2\x00\xc0\xf2\x6c\xed\x2a\x47\xf4\xe7\x9e\xc6\xa2\xe9\ \x7a\x0c\xc0\x83\x2a\xd2\xd9\x97\x1f\xdc\xe6\xd6\x4d\x23\xc7\x12\ \xeb\x8c\xcd\x9c\x89\xf0\xa2\x90\x48\x95\x23\x7a\xa1\x00\x1f\xf3\ \x72\xff\x34\x29\x7b\xb5\x2c\x32\x2f\x75\x6e\xea\x8f\x07\x7f\x21\ \x0c\x00\x8e\xe8\x39\xde\x67\xa2\x29\xe8\x17\xc1\x1d\x0e\xf4\xb6\ \x42\xdf\x1b\x6e\xb2\x86\x0b\xe7\xa1\xe1\x3f\xdf\x18\x5a\x31\x2a\ \x7c\x15\xa0\x7f\x09\x2e\x15\xef\x37\x47\x99\xfe\xdc\x95\x00\x6e\ \x3a\xf8\x0b\x02\x00\xf5\x5d\x35\x1d\x00\xe2\x5e\xa7\xa2\x09\x53\ \x08\x7e\x1a\x36\xf2\xb5\x75\x15\xed\xaf\xd9\x0e\x33\x9e\xe5\x99\ \xaa\xf7\x6b\xd8\xdc\xa4\xc0\xa7\x31\xcd\xe5\xe7\xa9\xa0\x76\xf6\ \x3a\xb9\xf9\x07\x1f\x29\x86\x01\x40\x81\x33\xf9\x5f\xca\xb7\x5e\ \x15\xd5\xcf\xb5\x46\x33\x9d\xb6\x83\x4c\x44\x4b\x75\xc7\xab\x00\ \x3e\x7b\x41\x77\xed\x9d\xa2\x7a\x97\x00\x27\xda\xce\x44\x00\x80\ \x13\x66\x4b\xa4\x01\xc0\x4f\x46\x7e\xd2\x2c\xdd\xb4\xf4\x78\x01\ \x8e\xb5\x14\x8a\xc6\xd7\xa9\x12\x39\xab\x35\x56\x1c\xc3\x3f\xd2\ \xfa\xca\xf6\x4c\x3e\x6c\xce\x02\xd0\x65\x3b\x0b\x0d\x13\x1c\xf2\ \x36\x7f\x13\xce\x81\x67\xff\xfd\xe9\x67\xda\x13\x49\xa4\x2a\x53\ \x6f\xda\x0e\x32\x55\x6d\xe7\xb7\xbd\xa1\x3d\x91\x3a\x00\x3c\xc1\ \xec\x0b\x7a\x5e\x7d\x57\xcd\x19\x23\x3f\x63\x04\x0e\x0b\xc0\x67\ \x14\x58\xd7\xeb\xe4\x2e\x49\xd5\xa7\xfa\x6d\x67\x99\xae\x54\x7d\ \xaa\xbf\xd7\xc9\x5d\x0c\x45\x8b\xed\x2c\x04\x28\xf0\x99\x91\x1f\ \x1b\x05\x4e\xb2\x15\x86\x46\x23\x8f\xce\x89\xf4\x5c\x92\x8d\x67\ \x73\xb6\x93\x14\x4a\x36\x9e\xcd\x85\xe6\xcc\xba\x18\xc0\x36\xdb\ \x59\x82\x4e\x80\x4b\x1b\xb5\x71\xff\xf5\x1b\x86\x27\x69\x7c\x65\ \xb7\xe3\x84\x2e\x6e\x3a\x6f\x4b\x9f\xed\x20\x85\xd6\xbc\xa8\xb9\ \x57\x0c\x56\x03\xd8\x6b\x3b\x4b\xc0\xcd\xdb\xda\xdd\x7d\xee\xbe\ \x0f\x8c\x0a\x0b\xc0\x2f\x04\xfa\x95\xf5\xf1\xf5\x2f\xd9\xce\xe1\ \x96\xd6\x25\xe9\x17\x15\xf8\x3b\xdb\x39\x02\x4f\x64\xd9\xbe\xbf\ \x1a\x28\x5c\x59\x75\x94\x26\x6d\x63\x6b\x65\xe6\x2e\xdb\x21\xdc\ \x96\xaa\x4c\xdf\xa9\xc0\x16\xdb\x39\x82\x4c\x1d\x8c\x28\x00\xc1\ \x91\x36\xc3\xd0\x3e\xe6\xeb\x10\xa8\xed\x14\xae\x13\xa8\x51\x9d\ \xd0\xcd\x2a\xc8\x25\x22\x67\xd6\x75\xd7\xbd\x0f\x18\x3a\x02\xe0\ \xfd\xff\xed\xdb\x94\x8c\xb6\x75\xdb\x0e\xe1\x95\xd6\x58\xa6\x93\ \x47\x01\x56\x49\x48\xf3\x4b\x80\xa1\x77\x73\xf1\x08\xc0\x32\x81\ \xfe\x8f\xed\x0c\x5e\x33\xd0\x1f\xda\xce\x10\x64\xaa\xa8\x00\x86\ \x0a\x80\xeb\xff\xd9\xd5\x17\x0a\xbd\x1b\xb8\x0b\x65\x9c\xb2\x19\ \x4d\x00\x3c\x7d\x07\x23\xfd\x3f\x11\x2c\x06\xf8\x7e\x6e\xfb\x04\ \x9b\xd6\x55\x6c\x7a\xdb\x76\x0c\xaf\x0d\xbf\x35\x95\x4f\x03\xec\ \x39\x23\xd6\x19\x0b\x1b\x00\x79\xdb\x49\x82\x4c\x14\x59\xdb\x19\ \x6c\x51\xd1\xa2\x7b\x8f\x43\x09\x29\x9b\x15\x0a\x9d\x62\x80\x00\ \x9c\x79\xf6\x35\x79\xd2\x76\x02\x8b\x82\xfc\xb3\x5b\x67\x1c\x73\ \xba\x01\xd0\x6b\x3b\x48\x90\x19\x47\x9e\xb5\x9d\xc1\xa2\x20\xff\ \xec\xd6\x39\x70\xe6\x1b\x08\x2f\xcd\xb4\x69\xa0\x4c\xde\xb0\x9d\ \xc1\x96\x70\x3e\x1f\xd8\x9f\xdd\x0f\x44\x64\xbe\x81\xb2\x00\x6c\ \x3a\xf2\xa8\x23\xdf\xb1\x9d\xc1\x96\x5c\xdf\xac\xc0\x9d\xfc\xf4\ \x13\x01\xe6\x85\x01\xdd\xc3\x3b\x37\xd9\xd3\x74\x7a\xd3\x40\xa1\ \xb7\x59\xdf\x5d\xb3\x16\x8a\x86\x82\x6e\x54\xd0\x94\xac\x4c\xaf\ \x2e\xe4\x26\x53\xf5\xa9\xfe\xfa\x2e\x2e\x47\x61\x8b\x42\xde\x6b\ \x00\xd9\x61\x3b\x08\x11\x59\x20\x7a\xac\x51\xe0\x15\xdb\x39\x88\ \xc8\x02\xc5\x31\x46\x54\x59\x00\x44\x01\x24\xc0\x0c\x03\x23\xdb\ \x6d\x07\x21\x22\xef\x29\x50\x66\x42\x79\xf3\x5b\xdb\x41\x88\xc8\ \x8a\xb0\x79\x1b\x03\xcf\x03\x28\xfa\x9b\x4f\x12\xd1\xa4\x0d\x98\ \xe1\x9b\x4f\x3e\x67\x3b\x09\x11\x79\xae\x7f\xdf\xbb\x01\x1f\xb7\ \x1a\x83\x88\x6c\xe8\x33\x00\xa0\x8a\x87\x6d\x27\x21\x22\xcf\xed\ \x32\x00\x10\x36\xce\x23\xb6\x93\x10\x91\xe7\xde\x32\x00\xf0\x76\ \xde\xf9\x15\x78\xbf\x76\xa2\x40\x51\xe8\x50\x01\x0c\x9f\x08\xcc\ \xda\x8d\x43\x44\x5e\x12\x31\xbf\xdb\x7f\x4b\x30\x15\xa4\x6d\x86\ \x21\x22\xcf\xfd\x7a\xe4\x1a\x61\x49\x9b\x49\x88\xc8\x5b\x3a\xb2\ \x00\x5a\x97\xa4\x5f\x04\xf0\x84\xc5\x3c\x44\xe4\x21\x27\x6c\x7e\ \x7d\xc0\x5d\x81\x55\x34\x70\xb7\xa7\x26\x0a\xa8\x1d\x1b\xce\xdb\ \xb0\xeb\x80\x02\x10\xc1\xbd\xb6\xd2\x10\x91\x97\xe4\x29\xe0\xa0\ \x75\x01\x92\x4b\x32\xcf\x72\xc9\x26\xa2\x00\x10\xa7\x13\x18\x65\ \x61\x10\x81\xfe\xd8\xfb\x34\x44\xe4\x25\xc7\x19\x7a\xd5\xef\x90\ \x02\xd0\xb2\x19\xf7\x00\xe0\xcd\x1a\x89\x4a\xd7\xae\x23\xde\x78\ \xcf\xe3\xc0\x28\x05\x30\xb4\x64\x93\xdc\xe9\x7d\x26\x22\xf2\x82\ \xa8\x74\x34\xad\x6e\xca\x03\x63\xac\x0d\x68\x80\xdb\x00\x38\x9e\ \xa6\x22\x22\x4f\xa8\x38\xfb\x2f\xfa\x1b\xb5\x00\x5a\xa2\xed\xcf\ \x01\xb8\xcf\xb3\x44\x44\xe4\x95\x1c\x9c\xfc\x83\xfb\x3e\x18\x7b\ \x75\x60\xa3\xd7\x03\xc8\x79\x91\x88\x88\x3c\xa2\x68\x49\xc6\xb3\ \x3b\xf7\x7d\x38\x66\x01\x0c\xbd\x24\x28\x77\x7b\x93\x8a\x88\xbc\ \x20\x72\xe0\xf9\xbd\xb1\x8f\x00\x00\x48\x2e\xff\x4f\x00\x0a\xbe\ \x72\x0d\x11\x59\xf1\xc6\xce\xf2\x5d\xa9\x91\x9f\x18\xb7\x00\x92\ \xd5\x1d\xdb\x45\xf0\x43\x77\x33\x11\x91\x27\x44\x7e\xba\x6d\xd1\ \xb6\xc1\x91\x9f\x1a\xb7\x00\x00\x40\x06\x9d\x6f\x0a\x10\xd8\x05\ \x2c\x89\x4a\xc4\x60\x48\xe5\xb6\x83\x3f\x79\xd8\x02\x68\xa9\xee\ \x78\x55\x21\x5f\x77\x27\x13\x11\x79\x41\x80\x9f\x34\x47\xdb\x7e\ \x77\xf0\xe7\x0f\x5b\x00\x00\x70\x4e\xe5\xf9\xb7\x02\xb2\xb9\xf0\ \xb1\x88\xc8\x03\x79\x35\x7a\xd3\x68\x5f\x98\x50\x01\x34\x4a\xa3\ \x23\x8e\xac\x01\x4f\x08\x12\x15\xa3\xbb\x93\x4b\x32\xcf\x8e\xf6\ \x85\x09\x15\x00\x00\xb4\xc6\xdb\x9e\x12\x95\x51\x5b\x84\x88\x7c\ \x2b\xef\x84\xf2\xdf\x1a\xeb\x8b\x13\x2e\x00\x00\x70\x7a\xc3\xdf\ \x04\xf0\xcc\xb4\x23\x11\x91\x27\x14\xb8\x75\x7d\x45\xe7\x98\xeb\ \x7f\x4e\xaa\x00\x52\xf5\xa9\x7e\x27\x94\xff\x04\x80\x3f\x4e\x3b\ \x19\x11\xb9\x6d\xc7\xe0\x00\x1a\xc7\x7b\xc0\xa4\x0a\x00\x00\xd6\ \x57\x74\xfe\x56\xa1\x97\x4f\x39\x12\x11\x79\xc2\xa8\xfc\x4d\xba\ \x36\x3d\xee\x7a\x1f\x93\x2e\x00\x00\x48\x45\x33\xf7\x02\x7a\xcb\ \xd4\x62\x11\x91\xfb\x24\xd5\x12\x6b\xbf\xff\x70\x8f\x9a\x52\x01\ \x00\xc0\xeb\xe5\x7b\xae\x01\xb0\x69\xaa\xdf\x4f\x44\xae\xd9\x1d\ \x0a\xe9\x15\x13\x79\xe0\x94\x0b\x60\xdb\xa2\x6d\x83\xe1\x90\xac\ \x06\xf0\xea\x54\xb7\x41\x44\x05\xa7\x2a\xfa\xf9\xe6\x8a\xf4\xcb\ \x13\x79\xf0\x94\x0b\x00\x00\xd6\x55\xb4\xbf\x06\xa3\x55\x00\xde\ \x98\xce\x76\x88\xa8\x40\x44\xbe\x9b\xaa\xcc\x3c\x30\xd1\x87\x4f\ \xab\x00\x80\xa1\xb7\x0d\x3b\xaa\xcb\xc1\xfb\x08\x12\x59\x26\x8f\ \x96\x1f\x7b\xf4\x3f\x4e\xe6\x3b\xa6\x5d\x00\x00\xb0\x3e\x96\xd9\ \xaa\x30\x17\x01\x78\xb7\x10\xdb\x23\xa2\x49\x7b\x33\x14\xd2\x86\ \xa6\xd3\x9b\x26\x75\xb5\x6e\x41\x0a\x00\x00\x52\xd1\xb6\x0e\x81\ \x5c\x0c\xde\x45\x88\xc8\x6b\xbd\x46\xf5\xc2\x89\x3e\xef\x1f\xa9\ \x60\x05\x00\x00\xad\xd1\xf6\x75\x2a\x7a\x29\x80\xfe\x42\x6e\x97\ \x88\xc6\x34\xa0\x90\x55\x2d\xb1\xcc\x94\x16\xf4\x29\x68\x01\x00\ \x40\xaa\x32\x73\x9f\x8a\xd4\x01\xd8\x53\xe8\x6d\x13\xd1\x01\x54\ \x81\x2f\xa6\xa2\xed\x6d\x53\xdd\x40\xc1\x0b\x00\x00\x52\x95\xed\ \x5d\x00\x2a\x15\x78\xcd\x8d\xed\x13\x11\x54\x05\x5f\x4a\x45\xd3\ \x77\x4d\x67\x23\xae\x14\x00\x00\x24\xa3\xe9\x27\x25\xe7\x9c\x07\ \xe0\x37\x6e\xed\x83\x28\xa0\xf2\x10\xb9\x3c\x55\x99\x3e\xe4\x0e\ \x3f\x93\xe5\x5a\x01\x00\x43\xf7\x14\x2c\x1b\xd4\x0a\x05\x36\xb8\ \xb9\x1f\xa2\x00\x79\x57\x45\x3f\x95\xac\x6c\xbf\xbd\x10\x1b\x73\ \xb5\x00\x00\xe0\xfe\x9a\xcc\x1f\x52\x95\xe9\x04\x20\x57\x03\x18\ \x3c\xec\x37\x10\xd1\xa8\x04\x78\x07\xaa\x2b\x27\x73\xa1\xcf\xe1\ \xb8\x5e\x00\x00\x00\x81\x26\xa3\xed\xb7\x18\x07\x4b\x01\xec\xf0\ \x64\x9f\x44\xa5\xe5\x45\x31\xa1\x8a\x64\x2c\xd3\x5e\xc8\x8d\x7a\ \x53\x00\xc3\x5a\xe2\xe9\xac\x4a\xe4\xa3\x7c\x4a\x40\x34\x09\x8a\ \x16\x31\x65\x8b\x5a\x96\x6c\xf8\x65\xa1\x37\xed\x69\x01\x00\x40\ \xaa\x32\xf5\x66\xaa\x32\x9d\x50\xe0\x2f\x00\xec\xf2\x7a\xff\x44\ \x45\x24\x0f\xe0\xc6\x73\xa2\x15\x17\xb6\x2e\x69\xdd\xed\xc6\x0e\ \x3c\x2f\x00\x00\x80\x40\x53\xd1\xf4\x5d\xe1\x90\x9c\x21\x2a\x5c\ \x84\x94\xe8\x10\xfa\x12\x60\xaa\x92\xd1\x74\x63\xa3\x34\xba\xb6\ \x52\xb7\x9d\x02\x18\xb6\xae\xa2\xfd\xb5\xd6\x58\x7b\x83\x08\x96\ \x43\xb0\xdd\x66\x16\x22\x9f\x70\x14\xf8\xef\x70\xe8\xdd\x33\x93\ \xd1\xb6\x6e\xb7\x77\x66\xb5\x00\xf6\x69\xad\x4c\xb7\xf6\xe6\x73\ \x1f\x01\xf0\x2f\xe0\xbb\x0a\x29\xb8\x7e\x65\xc4\x59\x9c\x8a\xa6\ \xd7\xac\xab\xd8\xe4\xc9\x1c\xf8\xa2\x00\x00\x20\x1b\xcf\xbe\x93\ \x8c\xa6\xaf\x0f\x39\xb9\x05\x50\xfc\x1b\x80\x5e\xdb\x99\x88\x3c\ \xb2\x5b\x55\xbf\xfa\x7a\xf9\xee\x45\x2d\x95\x1d\x8f\x7a\xb9\x63\ \xdf\x14\xc0\x3e\xcd\xf1\xec\x5b\xc9\x58\xfa\x5a\x95\xc8\x07\x15\ \xb8\x09\x40\x9f\xed\x4c\x44\x2e\xe9\x51\xe0\x26\x31\x65\x1f\x4a\ \xc5\x32\x37\x1f\xbc\x70\xa7\x17\xc2\x5e\xef\x70\xa2\x52\x95\xa9\ \x37\x01\x7c\x6d\x79\xa6\xea\xd6\x7c\xd8\x5c\x29\xc0\x65\x00\x4e\ \xb0\x9d\x8b\xa8\x00\xfa\x01\xfd\xaf\x5c\x38\xf4\xad\xb6\xf3\xdb\ \xac\xde\x4d\xcb\xb7\x05\xb0\x4f\x4b\x75\xc7\xab\x00\xbe\xde\xb0\ \xb6\xe1\x9f\xde\x39\x7e\x6f\xbd\x18\xe7\x4b\x50\x54\x03\x10\xdb\ \xd9\x88\x26\x69\x87\x02\x77\xc1\xc9\xdd\x96\x8a\x67\x7f\x6f\x3b\ \x0c\x50\x04\x05\xb0\x4f\xd3\xea\xa6\x3c\x80\x66\x00\xcd\x89\xee\ \xea\x85\xa2\x66\x0d\x80\x4f\x00\xfa\x01\xcb\xd1\x88\xc6\xa3\x00\ \xb2\x10\x7c\xaf\x37\x9f\x7b\x30\x1b\xcf\xfa\xea\x86\x39\x45\x53\ \x00\x23\xa5\x2a\x33\xcf\x00\xf8\x32\x14\x57\xd7\x67\x6b\xcf\x96\ \x90\xb3\x4a\x55\x2e\x02\xb0\xd0\x76\x36\x22\x0c\x0d\xfd\xa3\x02\ \xb9\x5f\x80\x9f\xb7\x44\xdb\x9f\xb3\x1d\x68\x2c\x45\x59\x00\xfb\ \x09\x34\x89\xf6\xc7\x00\x3c\x06\xe0\xba\xfa\x8d\xd5\xa7\x88\x23\ \x2b\x15\xa8\x00\x70\x2e\x80\xb9\x76\x03\x52\x80\xf4\x40\xb0\x05\ \x2a\x0f\xa8\x33\xf8\xa0\x5f\x0e\xf1\x0f\xa7\xb8\x0b\xe0\x20\xc3\ \x4b\x20\x7f\x67\xf8\x0f\x12\x99\xaa\x0f\x99\x48\x68\xb1\xaa\x73\ \x2e\x20\xe7\x02\x38\x0d\xc0\x6c\x9b\x19\xa9\x64\xbc\xa2\x2a\x9b\ \x04\xce\x16\xa8\xd9\xdc\x8b\xc1\x27\xfc\x76\x78\x3f\x11\x25\x55\ \x00\x07\x4b\x55\x77\xbc\x00\xe0\x05\x00\x3f\xdd\xf7\xb9\xfa\xce\ \xd8\x09\x62\xcc\x02\x48\x68\x01\x1c\x2c\x70\x04\x0b\x04\x38\x11\ \x40\x39\xa0\xb3\x00\x1c\x35\xf4\x77\xcc\x1c\xfe\x3b\x05\x47\x3f\ \x86\xae\x3f\xd9\x2d\x2a\x7d\x2a\xda\x07\xc1\x5b\x02\xbc\x02\x95\ \x17\xa0\x78\x11\x21\x79\x31\x92\x1b\x78\xe1\x81\x78\xb6\x24\x6e\ \x79\x57\xd2\x05\x30\x9a\x64\x3c\xbb\x13\xc0\x4e\x00\x9b\x6d\x67\ \x21\x20\x19\x4d\xf3\xd5\x1c\x8b\x7c\x77\x21\x10\x11\x79\x87\x05\ \x40\x14\x60\x2c\x00\xa2\x00\x63\x01\x10\x05\x18\x0b\x80\x28\xc0\ \x58\x00\x44\x01\xc6\x02\x20\x0a\x30\x16\x00\x51\x80\xb1\x00\x88\ \x02\x8c\x05\x40\x14\x60\x2c\x00\xa2\x00\x63\x01\x10\x05\x18\x0b\ \x80\x28\xc0\x58\x00\x44\x01\xc6\x02\x20\x0a\x30\x16\x00\x51\x80\ \xb1\x00\x88\x02\x8c\x05\x40\x14\x60\x2c\x00\xa2\x00\x63\x01\x10\ \x05\x18\x6f\xc8\xe8\x82\xe5\xd9\xea\xc5\x8e\x91\xaf\x58\x0b\xa0\ \xb2\xb8\xf0\x2b\x26\xc9\xef\x21\xba\xa5\xb0\xdb\x9c\x38\xe3\xe8\ \x77\x5b\x62\x19\x6b\xfb\x2f\x55\x2c\x00\x97\x2c\xeb\xaa\xfd\xaa\ \x42\xbf\x6d\x3b\x47\x89\x68\x4c\x46\xd3\x37\xda\x0e\x51\x8a\x58\ \x00\x2e\x62\x09\x14\x04\x87\xdf\x45\x2c\x00\x97\xb1\x04\xa6\x85\ \xc3\xef\x32\x16\x80\x07\x58\x02\x53\xc2\xe1\xf7\x00\x0b\xc0\x23\ \x2c\x81\x49\xe1\xf0\x7b\x84\x05\xe0\x21\x96\xc0\x84\x70\xf8\x3d\ \xc4\x02\xf0\x18\x4b\x60\x5c\x1c\x7e\x8f\xb1\x00\x2c\x60\x09\x8c\ \x8a\xc3\x6f\x01\x0b\xc0\x12\x96\xc0\x01\x38\xfc\x96\xb0\x00\x2c\ \x62\x09\x00\xe0\xf0\x5b\xc5\x02\xb0\x2c\xe0\x25\xc0\xe1\xb7\x8c\ \x05\xe0\x03\x01\x2d\x01\x0e\xbf\x0f\xb0\x00\x7c\x22\x60\x25\xc0\ \xe1\xf7\x09\x16\x80\x8f\x04\xa4\x04\x38\xfc\x3e\xc2\x02\xf0\x99\ \x12\x2f\x01\x0e\xbf\xcf\xb0\x00\x7c\xa8\x44\x4b\x80\xc3\xef\x43\ \x2c\x00\x9f\x2a\xb1\x12\xe0\xf0\xfb\x14\x0b\xc0\xc7\x4a\xa4\x04\ \x38\xfc\x3e\xc6\x02\xf0\xb9\x22\x2f\x01\x0e\xbf\xcf\xb1\x00\x8a\ \x40\x91\x96\x00\x87\xbf\x08\xb0\x00\x8a\x44\x91\x95\x00\x87\xbf\ \x48\xb0\x00\x8a\x48\x91\x94\x00\x87\xbf\x88\xb0\x00\x8a\x8c\xcf\ \x4b\x80\xc3\x5f\x64\x58\x00\x45\xc8\xa7\x25\xc0\xe1\x2f\x42\x2c\ \x80\x22\xe5\xb3\x12\xe0\xf0\x17\x29\x16\x40\x11\xf3\x49\x09\x70\ \xf8\x8b\x18\x0b\xa0\xc8\x59\x2e\x01\x0e\x7f\x91\x63\x01\x94\x00\ \x4b\x25\xc0\xe1\x2f\x01\x2c\x80\x12\xe1\x71\x09\x70\xf8\x4b\x04\ \x0b\xa0\x84\x78\x54\x02\x1c\xfe\x12\xc2\x02\x28\x31\x2e\x97\x00\ \x87\xbf\xc4\xb0\x00\x4a\x90\x4b\x25\xc0\xe1\x2f\x41\x2c\x80\x12\ \x55\xe0\x12\xe0\xf0\x97\x28\x16\x40\x09\x2b\x50\x09\x70\xf8\x4b\ \x18\x0b\xa0\xc4\x4d\xb3\x04\x38\xfc\x25\x8e\x05\x10\x00\x53\x2c\ \x01\x0e\x7f\x00\xb0\x00\x02\x62\x92\x25\xc0\xe1\x0f\x08\x16\x40\ \x80\x4c\xb0\x04\x38\xfc\x01\xc2\x02\x08\x98\xc3\x94\x00\x87\x3f\ \x60\x58\x00\x01\x34\x46\x09\x70\xf8\x03\x88\x05\x10\x50\x07\x95\ \x00\x87\x9f\x28\x68\xea\xbb\x6a\x1a\xeb\xbb\x6a\x1a\x6d\xe7\x20\ \x7b\xfe\x0f\xd9\x5d\x53\x28\x04\x9c\x74\x62\x00\x00\x00\x00\x49\ \x45\x4e\x44\xae\x42\x60\x82\ " qt_resource_name = b"\ \x00\x0c\ \x08\x1a\x9d\x27\ \x00\x64\ \x00\x6f\x00\x77\x00\x6e\x00\x6c\x00\x6f\x00\x61\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\ " qt_resource_struct_v1 = b"\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ " qt_resource_struct_v2 = b"\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ \x00\x00\x01\x73\x1f\x37\x27\xed\ " qt_version = [int(v) for v in QtCore.qVersion().split('.')] if qt_version < [5, 8, 0]: rcc_version = 1 qt_resource_struct = qt_resource_struct_v1 else: rcc_version = 2 qt_resource_struct = qt_resource_struct_v2 def qInitResources(): QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data) def qCleanupResources(): QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data) qInitResources()
60.842233
103
0.727411
5,995
25,067
3.035196
0.051209
0.034293
0.031161
0.027039
0.058035
0.048142
0.044625
0.04446
0.043141
0.043141
0
0.316672
0.019907
25,067
411
104
60.990268
0.423966
0.006064
0
0.025316
0
0.924051
0.00004
0
0
1
0
0
0
1
0.005063
false
0
0.002532
0
0.007595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
bb0c6036dab163ddf1caa8d7bd3e0c0732cb8a69
183
py
Python
sql.py
yanhuicang/python-lib
ddd72284866150403b1caef092501eb020069c56
[ "Apache-2.0" ]
null
null
null
sql.py
yanhuicang/python-lib
ddd72284866150403b1caef092501eb020069c56
[ "Apache-2.0" ]
null
null
null
sql.py
yanhuicang/python-lib
ddd72284866150403b1caef092501eb020069c56
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import sqlparse import sys def sqlformat(sql_file): f = open(sql_file, "r") for l in f: print sqlparse.format(l, reindent=True, keyword_case='upper')
20.333333
69
0.672131
29
183
4.137931
0.793103
0.116667
0
0
0
0
0
0
0
0
0
0.006897
0.20765
183
8
70
22.875
0.82069
0.071038
0
0
0
0
0.035714
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.166667
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
1
0
0
0
0
4
bb3ee543416709b2368516e373eff190ae9fed40
189
py
Python
PythonExercicios/ex008.py
VitorCezila/programming-logic
20acac1264fbeed16bfbd5b9bb41643ca784da95
[ "MIT" ]
null
null
null
PythonExercicios/ex008.py
VitorCezila/programming-logic
20acac1264fbeed16bfbd5b9bb41643ca784da95
[ "MIT" ]
null
null
null
PythonExercicios/ex008.py
VitorCezila/programming-logic
20acac1264fbeed16bfbd5b9bb41643ca784da95
[ "MIT" ]
null
null
null
# 008: Make a program that reads a value in meter and convert to centimeter and millimeter n = float(input('Write a number in meter: ')) print(f'{n} is: {n*100:.1f}cm and {n*1000:.1f}mm')
37.8
90
0.693122
37
189
3.540541
0.72973
0.10687
0
0
0
0
0
0
0
0
0
0.075949
0.164021
189
4
91
47.25
0.753165
0.465608
0
0
0
0.5
0.656566
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
bb461a65b807f363fcb11f6f9aa9fd6b16cfaea0
157
py
Python
archivo2.py
johnma96/curso_github
38c059b1ddae5a0c3b5aca6b32f8b3655e95ad32
[ "Apache-2.0" ]
null
null
null
archivo2.py
johnma96/curso_github
38c059b1ddae5a0c3b5aca6b32f8b3655e95ad32
[ "Apache-2.0" ]
2
2020-08-05T15:49:10.000Z
2020-08-05T15:57:38.000Z
archivo2.py
johnma96/curso_github
38c059b1ddae5a0c3b5aca6b32f8b3655e95ad32
[ "Apache-2.0" ]
null
null
null
def restar(x,y): resta = x-y return resta def multiplicar(x,y): mult = x*y return mult def dividir(x,y): div = x/y return div
12.076923
21
0.55414
27
157
3.222222
0.37037
0.137931
0.275862
0
0
0
0
0
0
0
0
0
0.33121
157
12
22
13.083333
0.828571
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
1
0
0
4
bb4ed4ea570051e790e95a868bf26139623118f3
464
py
Python
mjlib/stream/SineStream.py
mgroth0/matt_py_tools
aff2866ea29155abad393d8d92bf1c5369ae5dab
[ "MIT" ]
null
null
null
mjlib/stream/SineStream.py
mgroth0/matt_py_tools
aff2866ea29155abad393d8d92bf1c5369ae5dab
[ "MIT" ]
null
null
null
mjlib/stream/SineStream.py
mgroth0/matt_py_tools
aff2866ea29155abad393d8d92bf1c5369ae5dab
[ "MIT" ]
null
null
null
import time from numpy import * from mjlib.stream import Stream class SineStream(Stream): def x(self, sample): return sample[0] def y(self, sample): return sample[1] def __init__(self): super().__init__() self.i = 0.0 def _get_sample(self): time.sleep(.005) # sample rate = 200 like ganglion self.i = self.i + 0.03 t = self.i sample = sin(2 * pi * t) return t, sample
18.56
59
0.564655
65
464
3.876923
0.476923
0.079365
0.126984
0.174603
0
0
0
0
0
0
0
0.044872
0.327586
464
24
60
19.333333
0.762821
0.06681
0
0
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.176471
0.117647
0.647059
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
bb579a47f31b5a555983610fbda9f0c14b6fc569
132
py
Python
__main__.py
pavelperc/isd_homework_1
ec0b5ecd6447850be9ec778d280e4429f2b74216
[ "MIT" ]
null
null
null
__main__.py
pavelperc/isd_homework_1
ec0b5ecd6447850be9ec778d280e4429f2b74216
[ "MIT" ]
4
2019-10-08T22:10:45.000Z
2019-11-24T12:07:03.000Z
__main__.py
taiypeo/isd_homework_1
2e2ecc79262329a920ee943a3eeb879819032e3d
[ "MIT" ]
1
2019-11-24T00:24:24.000Z
2019-11-24T00:24:24.000Z
from app import app from config import host, port, debug if __name__ == "__main__": app.run(host=host, port=port, debug=debug)
22
46
0.719697
21
132
4.142857
0.52381
0.183908
0
0
0
0
0
0
0
0
0
0
0.166667
132
5
47
26.4
0.790909
0
0
0
0
0
0.060606
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
2483028cabd0846f4c1306431c65a24929e9a322
15
py
Python
testsuite/nodebuilder-tree/zipsrc/zfnspackage/submod.py
xoviat/modulegraph2
766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a
[ "MIT" ]
9
2020-03-22T14:48:01.000Z
2021-05-30T12:18:12.000Z
testsuite/nodebuilder-tree/zipsrc/zfnspackage/submod.py
xoviat/modulegraph2
766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a
[ "MIT" ]
15
2020-01-06T10:02:32.000Z
2021-05-28T12:22:44.000Z
testsuite/modulegraph-dir/star_package/submod.py
ronaldoussoren/modulegraph2
b6ab1766b0098651b51083235ff8a18a5639128b
[ "MIT" ]
4
2020-05-10T18:51:41.000Z
2021-04-07T14:03:12.000Z
""" submod """
7.5
14
0.4
1
15
6
1
0
0
0
0
0
0
0
0
0
0
0
0.2
15
1
15
15
0.5
0.4
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
248ce54c79b7be6774e2f161f1eddccc9cd97b45
64
py
Python
lesson06/denghonglin/main.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson06/denghonglin/main.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson06/denghonglin/main.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
from .utils import logic if __name__ == '__main__': logic()
16
26
0.671875
8
64
4.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.203125
64
4
27
16
0.686275
0
0
0
0
0
0.123077
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
24aeede112e75a234effef13eb3c331360f195fa
174
py
Python
q_and_a/apps/candidates/authentication.py
DemocracyClub/candidate_questions
95954de7cb818f113691445b71b4668177a7f5b9
[ "BSD-3-Clause" ]
1
2015-03-26T15:59:27.000Z
2015-03-26T15:59:27.000Z
q_and_a/apps/candidates/authentication.py
DemocracyClub/candidate_questions
95954de7cb818f113691445b71b4668177a7f5b9
[ "BSD-3-Clause" ]
16
2015-03-01T21:20:21.000Z
2015-04-21T23:12:14.000Z
q_and_a/apps/candidates/authentication.py
DemocracyClub/candidate_questions
95954de7cb818f113691445b71b4668177a7f5b9
[ "BSD-3-Clause" ]
3
2015-03-23T08:57:03.000Z
2015-04-17T09:10:08.000Z
from token_auth.authentication import BaseTokenAuthBackend from .models import Candidate class CandidateTokenAuthBackend(BaseTokenAuthBackend): model_class = Candidate
24.857143
58
0.856322
16
174
9.1875
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.109195
174
6
59
29
0.948387
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
24bff22b93099cb86443406eb825d28c6338694a
2,165
py
Python
django/engagementmanager/decorator/retry.py
onap/vvp-engagementmgr
8d2108708e7c55cc753b956563c535177f92d0d9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
django/engagementmanager/decorator/retry.py
onap/vvp-engagementmgr
8d2108708e7c55cc753b956563c535177f92d0d9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
django/engagementmanager/decorator/retry.py
onap/vvp-engagementmgr
8d2108708e7c55cc753b956563c535177f92d0d9
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-19T15:17:09.000Z
2021-10-19T15:17:09.000Z
# # ============LICENSE_START========================================== # org.onap.vvp/engagementmgr # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed # under the Apache License, Version 2.0 (the “License”); # you may not use this software except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # # Unless otherwise specified, all documentation contained herein is licensed # under the Creative Commons License, Attribution 4.0 Intl. (the “License”); # you may not use this documentation except in compliance with the License. # You may obtain a copy of the License at # # https://creativecommons.org/licenses/by/4.0/ # # Unless required by applicable law or agreed to in writing, documentation # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # ============LICENSE_END============================================ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. """This module provides retry_connection, a simple wrapper around retrying.retry, for our most common use case. """ from requests.exceptions import Timeout, ConnectionError from retrying import retry def is_connection_exception(exception): return isinstance(exception, (ConnectionError, Timeout)) retry_connection = retry(stop_max_attempt_number=2, retry_on_exception=is_connection_exception)
39.363636
76
0.676674
270
2,165
5.381481
0.422222
0.082588
0.035788
0.044047
0.505162
0.505162
0.459738
0.42395
0.42395
0.42395
0
0.007088
0.152887
2,165
54
77
40.092593
0.784624
0.817552
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
24d195224ca4835763f5f249856f0a1b37f359cb
6,867
py
Python
tests/demo/test_demo.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
tests/demo/test_demo.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
tests/demo/test_demo.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
import pytest as pytest from didcomm.message import Message from didcomm.pack_encrypted import pack_encrypted, PackEncryptedConfig from didcomm.pack_plaintext import pack_plaintext from didcomm.pack_signed import pack_signed from didcomm.protocols.routing.forward import unpack_forward from didcomm.unpack import unpack from tests.test_vectors.common import ALICE_DID, BOB_DID, CHARLIE_DID @pytest.mark.asyncio async def test_demo_repudiable_authenticated_encryption( resolvers_config_alice, resolvers_config_bob, resolvers_config_mediator1 ): # ALICE message = Message( body={"aaa": 1, "bbb": 2}, id="1234567890", type="my-protocol/1.0", frm=ALICE_DID, to=[BOB_DID], ) pack_result = await pack_encrypted( resolvers_config=resolvers_config_alice, message=message, frm=ALICE_DID, to=BOB_DID, pack_config=PackEncryptedConfig(), ) packed_msg = pack_result.packed_msg print(f"Sending ${packed_msg} to ${pack_result.service_metadata.service_endpoint}") # BOB's MEDIATOR forward_bob = await unpack_forward(resolvers_config_mediator1, packed_msg, True) print(f"Got {forward_bob.forwarded_msg}") # BOB unpack_result = await unpack(resolvers_config_bob, forward_bob.forwarded_msg) print(f"Got ${unpack_result.message} message") @pytest.mark.asyncio async def test_demo_repudiable_non_authenticated_encryption( resolvers_config_alice, resolvers_config_bob, resolvers_config_mediator1 ): # ALICE message = Message( body={"aaa": 1, "bbb": 2}, id="1234567890", type="my-protocol/1.0", frm=ALICE_DID, to=[BOB_DID], ) pack_result = await pack_encrypted( resolvers_config=resolvers_config_alice, message=message, to=BOB_DID, pack_config=PackEncryptedConfig(), ) packed_msg = pack_result.packed_msg print(f"Sending ${packed_msg} to ${pack_result.service_metadata.service_endpoint}") # BOB's MEDIATOR forward_bob = await unpack_forward(resolvers_config_mediator1, packed_msg, True) print(f"Got {forward_bob.forwarded_msg}") # BOB unpack_result = await unpack(resolvers_config_bob, forward_bob.forwarded_msg) print(f"Got ${unpack_result.message} message") @pytest.mark.asyncio async def test_demo_non_repudiable_encryption( resolvers_config_alice, resolvers_config_bob, resolvers_config_mediator1 ): # ALICE message = Message( body={"aaa": 1, "bbb": 2}, id="1234567890", type="my-protocol/1.0", frm=ALICE_DID, to=[BOB_DID], ) pack_result = await pack_encrypted( resolvers_config=resolvers_config_alice, message=message, frm=ALICE_DID, sign_frm=ALICE_DID, to=BOB_DID, pack_config=PackEncryptedConfig(), ) packed_msg = pack_result.packed_msg print(f"Sending ${packed_msg} to ${pack_result.service_metadata.service_endpoint}") # BOB's MEDIATOR forward_bob = await unpack_forward(resolvers_config_mediator1, packed_msg, True) print(f"Got {forward_bob.forwarded_msg}") # BOB unpack_result = await unpack(resolvers_config_bob, forward_bob.forwarded_msg) print( f"Got ${unpack_result.message} message signed as ${unpack_result.metadata.signed_message}" ) @pytest.mark.asyncio async def test_demo_message_to_multiple_recipients( resolvers_config_alice, resolvers_config_bob, resolvers_config_charlie, resolvers_config_mediator1, resolvers_config_mediator2, ): # ALICE message = Message( body={"aaa": 1, "bbb": 2}, id="1234567890", type="my-protocol/1.0", frm=ALICE_DID, to=[BOB_DID, CHARLIE_DID], ) pack_config = PackEncryptedConfig() pack_result_for_bob = await pack_encrypted( resolvers_config=resolvers_config_alice, message=message, frm=ALICE_DID, to=BOB_DID, pack_config=pack_config, ) packed_msg_for_bob = pack_result_for_bob.packed_msg print( f"Sending ${packed_msg_for_bob} for Bob to " f"${pack_result_for_bob.service_metadata.service_endpoint}" ) pack_result_for_charlie = await pack_encrypted( resolvers_config=resolvers_config_alice, message=message, frm=ALICE_DID, to=CHARLIE_DID, pack_config=pack_config, ) packed_msg_for_charlie = pack_result_for_charlie.packed_msg print( f"Sending ${packed_msg_for_charlie} for Charlie to " f"${pack_result_for_charlie.service_metadata.service_endpoint}" ) # BOB's MEDIATOR forward_bob = await unpack_forward( resolvers_config_mediator1, packed_msg_for_bob, True ) print(f"Got {forward_bob.forwarded_msg}") # BOB unpack_result_at_bob = await unpack(resolvers_config_bob, forward_bob.forwarded_msg) print(f"Bob got ${unpack_result_at_bob.message} message") # CHARLIE's MEDIATOR forward_forward_charlie = await unpack_forward( resolvers_config_mediator2, packed_msg_for_charlie, True ) print(f"Got {forward_forward_charlie.forwarded_msg}") # MEDIATOR2's MEDIATOR forward_charlie = await unpack_forward( resolvers_config_mediator1, forward_forward_charlie.forwarded_msg, True ) print(f"Got {forward_charlie.forwarded_msg}") # CHARLIE unpack_result_at_charlie = await unpack( resolvers_config_charlie, forward_charlie.forwarded_msg ) print(f"Charlie got ${unpack_result_at_charlie.message} message") @pytest.mark.asyncio async def test_demo_signed_unencrypted(resolvers_config_alice, resolvers_config_bob): # ALICE message = Message( body={"aaa": 1, "bbb": 2}, id="1234567890", type="my-protocol/1.0", frm=ALICE_DID, to=[BOB_DID], ) pack_result = await pack_signed( resolvers_config=resolvers_config_alice, message=message, sign_frm=ALICE_DID ) packed_msg = pack_result.packed_msg print(f"Publishing ${packed_msg}") # BOB unpack_result = await unpack(resolvers_config_bob, packed_msg) print( f"Got ${unpack_result.message} message signed as ${unpack_result.metadata.signed_message}" ) @pytest.mark.asyncio async def test_demo_plaintext(resolvers_config_alice, resolvers_config_bob): # ALICE message = Message( body={"aaa": 1, "bbb": 2}, id="1234567890", type="my-protocol/1.0", frm=ALICE_DID, to=[BOB_DID], ) pack_result = await pack_plaintext( resolvers_config=resolvers_config_alice, message=message ) print(f"Publishing ${pack_result.packed_msg}") # BOB unpack_result = await unpack(resolvers_config_bob, pack_result.packed_msg) print(f"Got ${unpack_result.message} message")
30.932432
98
0.703655
860
6,867
5.266279
0.082558
0.14904
0.057408
0.028704
0.7845
0.759991
0.750718
0.708324
0.649812
0.628395
0
0.017589
0.205184
6,867
221
99
31.072398
0.812202
0.024319
0
0.578035
0
0
0.188174
0.116018
0
0
0
0
0
1
0
false
0
0.046243
0
0.046243
0.115607
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
24fe7e6a3d85b14c0e4db518d822167681d0b461
384
py
Python
lesson_code/ex01_A_Good_First_Program/practice_02.py
andy-young/Python-First-Principles
daf135e864e89219235964121f36b9c4f813d5d5
[ "MIT" ]
2
2018-11-08T02:41:24.000Z
2019-01-09T16:44:50.000Z
lesson_code/ex01_A_Good_First_Program/practice_02.py
andy-young/Python-First-Principles
daf135e864e89219235964121f36b9c4f813d5d5
[ "MIT" ]
3
2018-09-30T23:45:57.000Z
2018-11-05T22:14:59.000Z
lesson_code/ex01_A_Good_First_Program/practice_02.py
andy-young/Python-First-Principles
daf135e864e89219235964121f36b9c4f813d5d5
[ "MIT" ]
2
2018-10-18T02:02:27.000Z
2019-01-09T16:44:53.000Z
print("Hello World") print("Hello again.\n") print("Hello BCC!") print("My name is Andy.\n") print("single 'quotes' <-- in double quotes") print('double "quotes" <-- in single quotes\n') print("Python docs @ --> https://docs/python.org/3") print("Type --> python3 ex1.py <-- in terminal to run this program.\n") # print("If you're reading this, it's because I un-commented the line.")
42.666667
72
0.674479
63
384
4.111111
0.634921
0.092664
0
0
0
0
0
0
0
0
0
0.008929
0.125
384
9
72
42.666667
0.761905
0.182292
0
0
0
0
0.741214
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
7008afd4e7f2fa45ed70bd5d62c399755d634caa
193
py
Python
googlecharts/__init__.py
sideeffects/stats_core
333c3111bef466541d754c962db9817769b260cd
[ "MIT" ]
1
2021-02-09T18:09:30.000Z
2021-02-09T18:09:30.000Z
googlecharts/__init__.py
sideeffects/stats_core
333c3111bef466541d754c962db9817769b260cd
[ "MIT" ]
null
null
null
googlecharts/__init__.py
sideeffects/stats_core
333c3111bef466541d754c962db9817769b260cd
[ "MIT" ]
1
2021-08-09T03:34:06.000Z
2021-08-09T03:34:06.000Z
from qsstats import QuerySetStats def time_series(queryset, date_field, interval, func=None): qsstats = QuerySetStats(queryset, date_field, func) return qsstats.time_series(*interval)
32.166667
59
0.787565
24
193
6.166667
0.583333
0.135135
0.22973
0
0
0
0
0
0
0
0
0
0.129534
193
5
60
38.6
0.880952
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
703bc229f5c00ad0f37a5bc1796344d3fec4bdd7
9,497
py
Python
tests/test_projections.py
kazh98/fpmlib
49533953ea3305f5db7b3afe978c323ddf4ede2a
[ "MIT" ]
null
null
null
tests/test_projections.py
kazh98/fpmlib
49533953ea3305f5db7b3afe978c323ddf4ede2a
[ "MIT" ]
null
null
null
tests/test_projections.py
kazh98/fpmlib
49533953ea3305f5db7b3afe978c323ddf4ede2a
[ "MIT" ]
null
null
null
import numpy as np import unittest from fpmlib.projections import * class TestBox(unittest.TestCase): def test_behavior(self): p = Box(np.array([-1., -2.]), np.array([3., 4.])) self.assertTrue(np.array([0., 0.]) in p) np.testing.assert_equal( p(np.array([0., 0.])), np.array([0., 0.])) self.assertTrue(np.array([-1., -2.]) in p) np.testing.assert_equal( p(np.array([-1., -2.])), np.array([-1., -2.])) self.assertTrue(np.array([3., 4.]) in p) np.testing.assert_equal( p(np.array([3., 4.])), np.array([3., 4.])) self.assertFalse(np.array([-3., -4.]) in p) np.testing.assert_equal( p(np.array([-3., -4.])), np.array([-1., -2.])) self.assertFalse(np.array([5., 6.]) in p) np.testing.assert_equal( p(np.array([5., 6.])), np.array([3., 4.])) def test_lb_only(self): p = Box(lb=np.ones(2)) self.assertFalse(np.zeros(2) in p) np.testing.assert_equal( p(np.zeros(2)), np.ones(2)) self.assertTrue(np.ones(2) in p) np.testing.assert_equal( p(np.ones(2)), np.ones(2)) self.assertTrue(np.full(2, 2) in p) np.testing.assert_equal( p(np.full(2, 2)), np.full(2, 2)) def test_ub_only(self): p = Box(ub=np.ones(2)) self.assertTrue(np.zeros(2) in p) np.testing.assert_equal( p(np.zeros(2)), np.zeros(2)) self.assertTrue(np.ones(2) in p) np.testing.assert_equal( p(np.ones(2)), np.ones(2)) self.assertFalse(np.full(2, 2) in p) np.testing.assert_equal( p(np.full(2, 2)), np.ones(2)) def test_scalar(self): p = Box(0, 1) self.assertFalse(np.full(10, -1) in p) np.testing.assert_equal( p(np.full(10, -1)), np.full(10, 0)) self.assertTrue(np.full(10, 0) in p) np.testing.assert_equal( p(np.full(10, 0)), np.full(10, 0)) self.assertTrue(np.full(10, 1) in p) np.testing.assert_equal( p(np.full(10, 1)), np.full(10, 1)) self.assertFalse(np.full(10, 2) in p) np.testing.assert_equal( p(np.full(10, 2)), np.full(10, 1)) def test_reallocation(self): p = Box(np.zeros(2), np.ones(2)) x = np.array([0.5, 0.5]) self.assertIsNot(p(x), x) def test_lb_dim(self): p = Box(np.zeros(5)) self.assertEqual(p.ndim, 5) def test_ub_dim(self): p = Box(-12, np.zeros(5)) self.assertEqual(p.ndim, 5) def test_none_dim(self): p = Box(3, 5) self.assertIsNone(p.ndim) def test_copying_parameters(self): lb = np.array([1, 2, 3, 4, 5]) ub = np.array([6, 7, 8, 9, 10]) p = Box(lb, ub) self.assertIsNot(lb, p._lb) self.assertIsNot(ub, p._ub) def test_contains1(self): p = Box(3, 5) self.assertFalse(np.array([2]) in p) self.assertTrue(np.array([3]) in p) self.assertTrue(np.array([4]) in p) self.assertTrue(np.array([5]) in p) self.assertFalse(np.array([6]) in p) def test_contains2(self): p = Box(np.array([1, 2]), np.array([3, 4])) self.assertFalse(np.array([0, 1]) in p) self.assertFalse(np.array([0, 2]) in p) self.assertFalse(np.array([0, 3]) in p) self.assertFalse(np.array([0, 4]) in p) self.assertFalse(np.array([0, 5]) in p) self.assertFalse(np.array([1, 1]) in p) self.assertTrue(np.array([1, 2]) in p) self.assertTrue(np.array([1, 3]) in p) self.assertTrue(np.array([1, 4]) in p) self.assertFalse(np.array([1, 5]) in p) self.assertFalse(np.array([2, 1]) in p) self.assertTrue(np.array([2, 2]) in p) self.assertTrue(np.array([2, 3]) in p) self.assertTrue(np.array([2, 4]) in p) self.assertFalse(np.array([2, 5]) in p) self.assertFalse(np.array([3, 1]) in p) self.assertTrue(np.array([3, 2]) in p) self.assertTrue(np.array([3, 3]) in p) self.assertTrue(np.array([3, 4]) in p) self.assertFalse(np.array([3, 5]) in p) self.assertFalse(np.array([4, 1]) in p) self.assertFalse(np.array([4, 2]) in p) self.assertFalse(np.array([4, 3]) in p) self.assertFalse(np.array([4, 4]) in p) self.assertFalse(np.array([4, 5]) in p) def test_contains_invalid_lb(self): p = Box(np.array([1, -1])) self.assertFalse("" in p) self.assertFalse(np.array([1, 2, 3]) in p) def test_contains_invalid_ub(self): p = Box(-2, np.array([1, -1])) self.assertFalse("" in p) self.assertFalse(np.array([1, 2, 3]) in p) class TestHalfSpace(unittest.TestCase): def test_behavior(self): p = HalfSpace(np.array([1., 2.]), 3.) np.testing.assert_array_equal( p(np.array([0., 0.])), np.array([0., 0.])) np.testing.assert_array_equal( p(np.array([0., 1.5])), np.array([0., 1.5])) np.testing.assert_array_equal( p(np.array([3., 0.])), np.array([3., 0.])) np.testing.assert_array_equal( p(np.array([3., 0.])), np.array([3., 0.])) np.testing.assert_array_almost_equal( p(np.array([4., 2.])), np.array([3., 0.])) def test_behavior_negative(self): p = HalfSpace(np.array([-1., -1.]), -1.) np.testing.assert_array_almost_equal( p(np.array([0., 0.])), np.array([0.5, 0.5])) np.testing.assert_array_equal( p(np.array([0.5, 0.5])), np.array([0.5, 0.5])) np.testing.assert_array_equal( p(np.array([1., 1.])), np.array([1., 1.])) np.testing.assert_array_equal( p(np.array([0., 1.])), np.array([0., 1.])) def test_w_changed(self): w = np.array([1., 1.]) p = HalfSpace(w, 3.) w[0] = 3. np.testing.assert_equal( p(np.array([3., 0.])), np.array([3., 0.])) def test_reallocation(self): p = HalfSpace(np.array([1., 1.]), 3.) x = np.array([1., 1.]) self.assertIsNot(p(x), x) x = np.array([3., 3.]) self.assertIsNot(p(x), x) def test_nonzero(self): with self.assertRaisesRegex(ValueError, 'must be a nonzero vector'): HalfSpace(np.zeros(100), 1) def test_matrix(self): with self.assertRaisesRegex(ValueError, 'must be a vector'): HalfSpace(np.ones([5, 5]), 1) def test_ndim(self): p = HalfSpace(np.ones(5), 1) self.assertEqual(p.ndim, 5) def test_copying_parameters(self): w = np.ones(10) p = HalfSpace(w, 1) self.assertIsNot(w, p._w) def test_contains1(self): p = HalfSpace(np.array([1]), 1) self.assertTrue(np.array([0]) in p) self.assertTrue(np.array([1]) in p) self.assertFalse(np.array([2]) in p) def test_contains2(self): p = HalfSpace(np.array([1, -1]), 1) self.assertTrue(np.array([0, 0]) in p) self.assertTrue(np.array([0.5, -0.5]) in p) self.assertFalse(np.array([1, -1]) in p) def test_contains_invalid(self): p = HalfSpace(np.array([1, -1]), 1) self.assertFalse("" in p) self.assertFalse(np.array([1, 2, 3]) in p) class TestBall(unittest.TestCase): def test_behavior(self): p = Ball(np.array([2., -3.]), 1.) np.testing.assert_equal( p(np.array([2., -3.])), np.array([2., -3.])) np.testing.assert_equal( p(np.array([1., -3.])), np.array([1., -3.])) np.testing.assert_equal( p(np.array([3., -3.])), np.array([3., -3.])) np.testing.assert_equal( p(np.array([2., -4.])), np.array([2., -4.])) np.testing.assert_equal( p(np.array([2., -2.])), np.array([2., -2.])) np.testing.assert_almost_equal( p(np.array([2., -1.])), np.array([2., -2.])) np.testing.assert_almost_equal( p(np.array([5., -3.])), np.array([3., -3.])) np.testing.assert_almost_equal( p(np.array([3., -2.])), np.array([2., -3.]) + 2 ** -0.5) def test_c_changed(self): c = np.array([1., 1.]) p = Ball(c, 1.) c[0] = 3. np.testing.assert_equal( p(np.array([1., 1.])), np.array([1., 1.])) def test_reallocation(self): p = Ball(np.array([2., -3.]), 1.) x = np.array([2., -3.]) self.assertIsNot(p(x), x) x = np.array([3., -2.]) self.assertIsNot(p(x), x) def test_negative_radius(self): with self.assertRaisesRegex(ValueError, 'must be a positive real'): Ball(np.zeros(10), -1) def test_matrix(self): with self.assertRaisesRegex(ValueError, 'must be a vector'): Ball(np.ones([5, 5]), 1) def test_ndim(self): p = Ball(np.ones(5), 1) self.assertEqual(p.ndim, 5) def test_copying_parameters(self): c = np.ones(10) p = Ball(c, 1) self.assertIsNot(c, p._c) def test_contains(self): p = Ball(np.array([1, -2]), 1) self.assertTrue(np.array([1, -2]) in p) self.assertTrue(np.array([1, -1]) in p) self.assertFalse(np.array([1, -0.9]) in p) def test_contains_invalid(self): p = Ball(np.array([1, -2]), 1) self.assertFalse("" in p) self.assertFalse(np.array([1, 2, 3]) in p)
35.174074
76
0.528377
1,474
9,497
3.334464
0.053596
0.17233
0.065107
0.120855
0.868362
0.834588
0.76765
0.569481
0.461241
0.370498
0
0.055265
0.274087
9,497
269
77
35.304833
0.657673
0
0
0.399142
0
0
0.008318
0
0
0
0
0
0.48927
1
0.141631
false
0
0.012876
0
0.167382
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
707125f3b46c143c0e7d9fb7c8b7056f940e5dd6
124
py
Python
django_simulations_visualizator/apps/simulations_manager/admin.py
AlekseyFobos/django_simulaions_visualizator
9efe3d7cb88a032fb7ba3eabd126f08b3c06e1c0
[ "MIT" ]
null
null
null
django_simulations_visualizator/apps/simulations_manager/admin.py
AlekseyFobos/django_simulaions_visualizator
9efe3d7cb88a032fb7ba3eabd126f08b3c06e1c0
[ "MIT" ]
null
null
null
django_simulations_visualizator/apps/simulations_manager/admin.py
AlekseyFobos/django_simulaions_visualizator
9efe3d7cb88a032fb7ba3eabd126f08b3c06e1c0
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Simulator admin.site.register(Simulator)
20.666667
32
0.814516
17
124
5.941176
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.120968
124
6
33
20.666667
0.926606
0.209677
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
560c64c1320e5acfb50bfa7ee87f211ab33fa6eb
21
py
Python
micromouse_interface.py
manavbilakhia/floodFill_algorithm
27ca74c5d20d455862451256bc83baef3a383df1
[ "MIT" ]
null
null
null
micromouse_interface.py
manavbilakhia/floodFill_algorithm
27ca74c5d20d455862451256bc83baef3a383df1
[ "MIT" ]
null
null
null
micromouse_interface.py
manavbilakhia/floodFill_algorithm
27ca74c5d20d455862451256bc83baef3a383df1
[ "MIT" ]
null
null
null
class Micromouse():
7
19
0.714286
2
21
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
2
20
10.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
5617d88ad2bb75be250deb46a698bf18064ee54d
3,311
py
Python
demo_simple.py
KMiNT21/html2sent
78889c538606b1f3f4c7551ea5ead90434e9ac39
[ "MIT" ]
5
2019-05-26T05:05:29.000Z
2021-01-20T15:29:55.000Z
demo_simple.py
KMiNT21/html2sent
78889c538606b1f3f4c7551ea5ead90434e9ac39
[ "MIT" ]
null
null
null
demo_simple.py
KMiNT21/html2sent
78889c538606b1f3f4c7551ea5ead90434e9ac39
[ "MIT" ]
2
2019-04-16T20:25:21.000Z
2020-01-03T20:49:59.000Z
import html2sent html = """ <h2>Golden FTP Server - free and PRO versions</h2></b><p style="color: red;">Version 5.00 - June, 2012</p> Golden FTP Server is extremely easy to use personal FTP server for Windows and can be run by any person who has the most basic computer skills. The program loads automatically on Windows startup and you can identify the files you want to share with two mouse clicks via the dialog window that works in the same way as the standard Windows "Open File:" dialog or via the Windows Explorer context menu. Golden FTP Server features clean and easy to understand multi-lingual interface. Multi-threaded downloads and ability to resume aborted downloads are supported. <center><br><br><b>Golden FTP Server Pro</b><br><img src="screenshots/pro.jpg" width="430" height="265"><br><br><br><b>Golden FTP Server Free</b><br><img src="screenshots/small-main-window.jpg" width="430" height="278"></center> <br><hr size="1"><Br><hr size="1"><div align="center"><b><a href="order.html" target="_blank">FREE registration key for Golden FTP Server PRO!</a></b></div><hr size="1"><b>Press Release - October , 2004</b><br><br>For Immediate Release<br><br>KMiNT21 Software Releases Golden FTP Server 1.32<br><br>Free FTP server for file sharing. <br><br>Golden FTP Server is a free Windows FTP server specially designed for PC novices. While most advanced PC users know what FTP is and how to use it, it's a complete mystery for the beginners. Yet, there is often a need to share a large amount of data, like 200 MB worth of wedding photos, music files or videos with friends and relatives scattered all over the country. This is where Golden FTP Server comes to the rescue. <br><br>This is how Golden FTP Server works - the program builds itself into Windows shell (Explorer's context menu) and is loaded upon startup. User then selects a file or files that he or she wants to share by clicking them and selecting an appropriate option. One click and the files start being uploaded. The session may be aborted, paused or exited any time. The process is resumed from the place where it was left off. Since the program supports anonymous FTPs only, there is absolutely no room for "I-don't-know's" and "it-does-not-work's". Two mouse clicks do it all and multi-threading does it fast. <br><br>Golden FTP Server is probably the most uncomplicated FTP server in the entire world. The interface consists of three buttons and a vertical panel with four icons. That's it. Combined with intellectual shares control, multilingual interface and a whooping price of 0, Golden FTP Server is an FTP server of choice for regular PC users who like sharing files. <br><br>Golden FTP Server is available for free download at www.goldenftpserver.com<br><br>If you would like to get a comment, have a businesses proposal or want to learn more about KMiNT21 Software products and services, please contact Mikhail N. Kalinskiy at info@kmint21.com <br><br>System Requirements: no special requirements<br><br>Company: KMiNT21 Software<br><br>Product Page: www.goldenftpserver.com<br><br>Download: www.goldenftpserver.com/golden-ftp-server.zip<br><br>Screenshot: www.goldenftpserver.com/screenshots.html """ sentences = html2sent.tokenize(html, language='english') text = '\n'.join(sentences) print(text)
174.263158
614
0.771972
574
3,311
4.452962
0.477352
0.066901
0.08216
0.033255
0.075509
0.040297
0
0
0
0
0
0.015839
0.141951
3,311
18
615
183.944444
0.883492
0
0
0
0
0.6
0.963433
0.132064
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
561daefb8fbcae2425a208bd3ba2657bcf981df6
182
py
Python
tests/roots/test-ext-autodoc/target/properties.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/roots/test-ext-autodoc/target/properties.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/roots/test-ext-autodoc/target/properties.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
class Foo: """docstring""" @property def prop1(self) -> int: """docstring""" @classmethod @property def prop2(self) -> int: """docstring"""
15.166667
27
0.505495
16
182
5.75
0.625
0.23913
0.347826
0
0
0
0
0
0
0
0
0.016129
0.318681
182
11
28
16.545455
0.725806
0.159341
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
5627094bc8bbdcf9cf260868cc4d908125963903
791
py
Python
contrib/libatscc/libatscc2py/CATS/string_cats.py
alex-ren/Learn-ATS-Postiats-contrib
899cbda27ff8c84082b46484313235f44d7d3c11
[ "MIT" ]
null
null
null
contrib/libatscc/libatscc2py/CATS/string_cats.py
alex-ren/Learn-ATS-Postiats-contrib
899cbda27ff8c84082b46484313235f44d7d3c11
[ "MIT" ]
null
null
null
contrib/libatscc/libatscc2py/CATS/string_cats.py
alex-ren/Learn-ATS-Postiats-contrib
899cbda27ff8c84082b46484313235f44d7d3c11
[ "MIT" ]
null
null
null
###### # # HX-2014-08: # for Python code translated from ATS # ###### ###### #beg of [string_cats.py] ###### ###### from ats2pypre_basics_cats import * ###### ############################################ def atspre_strlen(x): return (x.__len__()) ############################################ def ats2pypre_string_get_at(x, i): return(x[i]) ############################################ def ats2pypre_string_isalnum(x): return (x.isalnum()) def ats2pypre_string_isalpha(x): return (x.isalpha()) def ats2pypre_string_isdecimal(x): return (x.isdecimal()) ############################################ def ats2pypre_string_lower(x): return (x.lower()) def ats2pypre_string_upper(x): return (x.upper()) ############################################ ###### end of [string_cats.py] ######
20.815789
57
0.477876
81
791
4.395062
0.395062
0.13764
0.134831
0.078652
0
0
0
0
0
0
0
0.018131
0.093552
791
37
58
21.378378
0.478382
0.118837
0
0
0
0
0
0
0
0
0
0
0
1
0.875
false
0
0.125
0.875
1
0
0
0
0
null
0
0
0
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
1
0
0
0
1
1
0
0
4
56556602920c620ec0108a7474b6cba1c389a5c4
711
py
Python
leetcode/231.power-of-two.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
177
2017-08-21T08:57:43.000Z
2020-06-22T03:44:22.000Z
leetcode/231.power-of-two.py
geemaple/leetcode
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
2
2020-09-22T09:51:17.000Z
2021-12-25T08:18:45.000Z
leetcode/231.power-of-two.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
23
2017-08-23T06:01:28.000Z
2020-04-20T03:17:36.000Z
class Solution(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """ return n > 0 and not (n & (n - 1)) class Solution2(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """ return n > 0 and (2 ** 30) % n == 0 class Solution3(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """ if n <= 0: return False number = n while number > 1: if number & 1 == 1: break number >>= 1 return number == 1
19.216216
43
0.38256
72
711
3.777778
0.347222
0.029412
0.231618
0.275735
0.555147
0.555147
0.555147
0.555147
0.555147
0.555147
0
0.042493
0.503516
711
36
44
19.75
0.728045
0.108298
0
0.1875
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0
0
0.625
0
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
1
0
0
4
565b8e54ce5536e36d8903952979485cd5aa678b
61
py
Python
src/wshop/apps/basket/__init__.py
vituocgia/wshop-core
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
[ "BSD-3-Clause" ]
null
null
null
src/wshop/apps/basket/__init__.py
vituocgia/wshop-core
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
[ "BSD-3-Clause" ]
null
null
null
src/wshop/apps/basket/__init__.py
vituocgia/wshop-core
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
[ "BSD-3-Clause" ]
null
null
null
default_app_config = 'wshop.apps.basket.config.BasketConfig'
30.5
60
0.836066
8
61
6.125
0.875
0
0
0
0
0
0
0
0
0
0
0
0.04918
61
1
61
61
0.844828
0
0
0
0
0
0.606557
0.606557
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5663b16738651a64861549fdf75f83bb66b7d2b1
173
py
Python
mgui/utils/__init__.py
Dreagonmon/micropython-mgui
42001e347a6f80a1123a7a4dd37851e4b3d85529
[ "MIT" ]
1
2022-02-22T11:58:46.000Z
2022-02-22T11:58:46.000Z
mgui/utils/__init__.py
Dreagonmon/micropython-mgui
42001e347a6f80a1123a7a4dd37851e4b3d85529
[ "MIT" ]
null
null
null
mgui/utils/__init__.py
Dreagonmon/micropython-mgui
42001e347a6f80a1123a7a4dd37851e4b3d85529
[ "MIT" ]
1
2021-09-18T07:06:49.000Z
2021-09-18T07:06:49.000Z
# mgui utils package try: import bmfont __all__ = [ "bmfont", ] except Exception as e: from . import bmfont __all__ = [ "bmfont", ]
13.307692
24
0.526012
17
173
4.882353
0.705882
0.289157
0.361446
0.506024
0
0
0
0
0
0
0
0
0.381503
173
12
25
14.416667
0.775701
0.104046
0
0.4
0
0
0.078947
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
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
4
56767f360f263b3c84a83ef1dd2fe2110046b74e
198
py
Python
delegate/ScanDialogDelegate.py
uname/blepi
78d0f44064b90a334096d29b6628b05dc1290174
[ "Apache-2.0" ]
null
null
null
delegate/ScanDialogDelegate.py
uname/blepi
78d0f44064b90a334096d29b6628b05dc1290174
[ "Apache-2.0" ]
null
null
null
delegate/ScanDialogDelegate.py
uname/blepi
78d0f44064b90a334096d29b6628b05dc1290174
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- from ble.BLEHelper import bleHelper class ScanDialogDelegate(object): def __init__(self): pass def startBLEScan(self): bleHelper.startScan()
19.8
35
0.636364
20
198
6.1
0.8
0
0
0
0
0
0
0
0
0
0
0.006757
0.252525
198
10
36
19.8
0.817568
0.106061
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.166667
0.166667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
568025da36fdb40b1d92de8ebb721f99e01fc310
391
py
Python
static_compress/storage.py
RentFreeMedia/django-static-compress
b56940b9246714401bdd0b24c2f9595419dc6671
[ "MIT" ]
8
2017-10-23T07:32:43.000Z
2019-12-16T16:25:02.000Z
static_compress/storage.py
RentFreeMedia/django-static-compress
b56940b9246714401bdd0b24c2f9595419dc6671
[ "MIT" ]
90
2018-06-02T07:37:29.000Z
2022-03-31T13:01:24.000Z
static_compress/storage.py
RentFreeMedia/django-static-compress
b56940b9246714401bdd0b24c2f9595419dc6671
[ "MIT" ]
8
2018-07-25T13:56:40.000Z
2022-02-11T17:18:17.000Z
from django.contrib.staticfiles.storage import StaticFilesStorage, ManifestStaticFilesStorage from . import mixin __all__ = ["CompressedStaticFilesStorage", "CompressedManifestStaticFilesStorage"] class CompressedStaticFilesStorage(mixin.CompressMixin, StaticFilesStorage): pass class CompressedManifestStaticFilesStorage(mixin.CompressMixin, ManifestStaticFilesStorage): pass
27.928571
93
0.851662
26
391
12.653846
0.576923
0.109422
0
0
0
0
0
0
0
0
0
0
0.089514
391
13
94
30.076923
0.924157
0
0
0.285714
0
0
0.163683
0.163683
0
0
0
0
0
1
0
false
0.285714
0.285714
0
0.571429
0
1
0
1
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
1
0
0
1
0
0
4
3b210305228be587b3e2677bb30bd6b4eb6a1309
72
py
Python
fastapi/src/middleware/__init__.py
asatale/python-webperf
ab8fade7504ff6d88785a45e3144584410ce5467
[ "MIT" ]
null
null
null
fastapi/src/middleware/__init__.py
asatale/python-webperf
ab8fade7504ff6d88785a45e3144584410ce5467
[ "MIT" ]
null
null
null
fastapi/src/middleware/__init__.py
asatale/python-webperf
ab8fade7504ff6d88785a45e3144584410ce5467
[ "MIT" ]
null
null
null
from .cancel import CancelMiddleware from .delay import DelayMiddleware
24
36
0.861111
8
72
7.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.111111
72
2
37
36
0.96875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
3b55bdcbda539699af83b4b1c588c08d47251a99
5,047
py
Python
projects/shadow/kmap-builder-jython27/to_text_jy_template.py
zaqwes8811/smart-vocabulary-cards
abeab5c86b1c6f68d8796475cba80c4f2c6055ff
[ "Apache-2.0" ]
null
null
null
projects/shadow/kmap-builder-jython27/to_text_jy_template.py
zaqwes8811/smart-vocabulary-cards
abeab5c86b1c6f68d8796475cba80c4f2c6055ff
[ "Apache-2.0" ]
11
2015-01-25T14:22:52.000Z
2015-09-08T09:59:38.000Z
projects/shadow/kmap-builder-jython27/to_text_jy_template.py
zaqwes8811/vocabulary-cards
abeab5c86b1c6f68d8796475cba80c4f2c6055ff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Autogenerated by script D:\github\to-text\mkts\mkt_parser.py from to_text import IExtracitorResourcePlan from to_text import IExtractorTextFromResource from to_text import ITextToText from to_text import IErrorContainer # type-mkt: interfaces """ TODO(zaqwes): Move from here Словарь макетов: String - абстрактная строка Int(int) - целое число ! Комментарии расставлять как показано под именами классов и интерфейсов. Это используется при разборе макета Делемма: Для Python тип не важен, для Java важен, как быть с макетом? Ровнять по Java? Так же по другому происходит комментирование. class Name !! no comments /*(? это предположение)* /!! в длинных комментах """ """ Dict: ресурс - файл, сокет, ресурс по ссылке, cgi-скрипт, etc. Use cases: @use case @use case @use case Notes: Данные можно получать и прямо по ссылкам, и по готовому тексту Так как макет интерфейсный, то по всем java классам и интерфейсам должны генерится отдельные файлы Thinks: Есть ли в Java деструкторы или финалайзеры? Есть ли смысл в разделении захвата ресурса и преобразовании? Пока не используется преобразование по частям. А если использовать по частям? Наследование интерфейсов http:#www.javainception.ru/index.php/interfeisi/interfeisi/lmnozhestvennoe-nasledovanier-v-java.html http:#www.javaportal.ru/java/articles/mnj.html - in depth Перенести навигационную часть в dals or not? В dals конкретные запросы, или карты тоже, там сейчас есть dir_walker.py, и он вполне ценен и, кажется, на месте. Наверное стоит. Но пример множественного наследования можно оставить. Что если объединить обработку и навигацию? Появляется избыточность, если обработка данных не нужна Что если разделить? Возможно будет возникать повторное открытие ресурсов А что если использовать множественное наследование интерфейсов? Troubles: Возможно требуется двойной (и более) захват ресурса, что может быть накладно. Это особенно сильно проявляется при делении на получение карты ресурса и его обработку. Может таки объединить классы, тогда в алгоритм может быть таким: 1. Захват вершины 2. Получение карты ресурса 3. "Ходим" по карте и что-то делаем 4. Отпускаем ресурс Usige: Java: interface IAll extend/*(? это предположение)* / IExtractorTextFromResource, IExtracitorResourcePlan class MixedClass2 implements IExtractorTextFromResource, IExtracitorResourcePlan """ class ExtracitorResourcePlan(IExtracitorResourcePlan): """ Как бы навигационная часть """ # Спорный вызов. Как он будет использоваться при множественном наследовании? # Захватывает точку входа в ресурс (например, файл базы данных) # @return_type IErrorContainer def captureRoot(self, urlRoot): pass # Error _freeRoot(); # должен вызывать в деструкторе # @param url информация о том, как можно добраться до вершины ресурса # @return карта, по которой можно передвигаться # @return_type IGraphToText def getPlan(self, url, err): pass # @return_type IGraphToText def getPlanFromText(self, url, err): pass # @return просто список "адресов" # Обобщить дробилку с рекурсией! Она использовалась для разбора страницы Курсеры # @return_type List<String> def getListAddresses(self, url, err): pass # Выделяем адреса без подключения, у нас есть текст, который доставерно # отражает план ресурса # @return_type List<String> def extractListAddressesFromText(self, text, err): pass class ExtractorTextFromResource(IExtractorTextFromResource): """ Соединяется с ресурсом и преобразовывает его в текст. Thinks: Не забывать освободить ресурсы(о реализации), но как быть при множ. наследовании """ # Выделяет весь текст из ресурса по некоторому адресу # @param url в переменной все данные, чтобы ресурс мог быть открыт # @return_type String def extract(self, url, err): pass # Получить из ресурса сразу список единиц контента - предложений, например # @return_type List<String> def contentItemsToList(self, url, err): pass class TextToText(ITextToText): # @param text зашумленнй текст, например html код # @return чистый текст # ! не возможно разрешить перегрузку # @return_type String def testToText(self, text, err): pass # Получить сразу список единиц контента # @return_type List<String> def contentItemsToList(self, text, err): pass class ErrorContainer(IErrorContainer): """ Thinks: Как я понял в Java нельзя передать примитив по ссылке, исключениями для обработки ошибок пользоваться не хочу - исключения для исключительных ситуаций. Можно как-то вернуть tuple, но похоже с python это не склеить """ # @return_type String def what(self): pass # @return_type int def getErrCode(self): pass
30.221557
106
0.718447
610
5,047
5.914754
0.539344
0.030488
0.013858
0.019401
0.058758
0.024945
0.024945
0
0
0
0
0.001528
0.222112
5,047
166
107
30.403614
0.917473
0.317218
0
0.366667
1
0
0
0
0
0
0
0.006024
0
1
0.366667
false
0.366667
0.133333
0
0.633333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4