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
a5eb11c266b52a4ea62d20e4ddc60757bf6cf0d8
427
py
Python
dceu2019/src/dceu2019/apps/invoices/migrations/0014_ticketbutlerticket_invited_when.py
djangocph/djangocon2019
27ed5d5f703a6a8e8f9bc0edee7a971929aa5c22
[ "MIT" ]
13
2018-12-02T12:53:44.000Z
2019-09-14T19:49:55.000Z
dceu2019/src/dceu2019/apps/invoices/migrations/0014_ticketbutlerticket_invited_when.py
djangocph/djangocon2019
27ed5d5f703a6a8e8f9bc0edee7a971929aa5c22
[ "MIT" ]
122
2018-12-03T23:04:21.000Z
2019-09-11T11:22:10.000Z
dceu2019/src/dceu2019/apps/invoices/migrations/0014_ticketbutlerticket_invited_when.py
djangocph/djangocon2019
27ed5d5f703a6a8e8f9bc0edee7a971929aa5c22
[ "MIT" ]
19
2018-11-03T19:32:47.000Z
2020-01-04T18:49:34.000Z
# Generated by Django 2.1.4 on 2019-03-11 23:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('invoices', '0013_ticketbutlerticket_invited'), ] operations = [ migrations.AddField( model_name='ticketbutlerticket', ...
22.473684
66
0.629977
43
427
6.162791
0.813953
0
0
0
0
0
0
0
0
0
0
0.060317
0.262295
427
18
67
23.722222
0.780952
0.105386
0
0
1
0
0.181579
0.081579
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
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
0
0
0
0
0
0
1
a5edfe2153b61ad62d85e20fde55894ee4cc5632
1,098
py
Python
betternet/websocket.py
kevelbreh/betternet
ca431a2f43ed3d50a9efaa921a0352e85fff3a87
[ "Apache-2.0" ]
3
2015-05-08T09:50:47.000Z
2016-01-10T11:44:59.000Z
betternet/websocket.py
kevelbreh/betternet
ca431a2f43ed3d50a9efaa921a0352e85fff3a87
[ "Apache-2.0" ]
null
null
null
betternet/websocket.py
kevelbreh/betternet
ca431a2f43ed3d50a9efaa921a0352e85fff3a87
[ "Apache-2.0" ]
null
null
null
import logging from autobahn.twisted.websocket import WebSocketServerProtocol, WebSocketServerFactory from betternet.network import Client class WsClient(WebSocketServerProtocol, Client): def __init__(self): Client.__init__(self, None) self.server = None def onOpen(self): self.server...
29.675676
86
0.689435
114
1,098
6.491228
0.473684
0.067568
0.02973
0
0
0
0
0
0
0
0
0.008037
0.20674
1,098
37
87
29.675676
0.841561
0.022769
0
0
0
0
0.059701
0
0
0
0
0
0
0
null
null
0
0.12
null
null
0.04
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
1
0
0
0
0
0
0
0
0
1
571503243f87d2aab786bab59c708cc5a8f8385e
1,258
py
Python
website/migrations/0002_auto_20210205_1929.py
TAS-7/KDY-SITE
bf5075de8daaed50b7e8f1df535033e6ccaa2729
[ "MIT" ]
1
2020-12-01T10:04:31.000Z
2020-12-01T10:04:31.000Z
website/migrations/0002_auto_20210205_1929.py
TAS-7/KDY-SITE
bf5075de8daaed50b7e8f1df535033e6ccaa2729
[ "MIT" ]
5
2020-10-16T14:03:27.000Z
2020-12-02T07:09:55.000Z
website/migrations/0002_auto_20210205_1929.py
TAS-7/KDY-SITE
bf5075de8daaed50b7e8f1df535033e6ccaa2729
[ "MIT" ]
1
2020-12-01T08:00:45.000Z
2020-12-01T08:00:45.000Z
# Generated by Django 3.1.2 on 2021-02-05 19:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
37
137
0.635135
132
1,258
5.931818
0.515152
0.040868
0.05364
0.084291
0.257982
0.257982
0.257982
0.135377
0.135377
0
0
0.019812
0.237679
1,258
33
138
38.121212
0.796663
0.035771
0
0.074074
1
0
0.093311
0
0
0
0
0
0
1
0
false
0
0.148148
0
0.259259
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
0
0
0
0
0
0
1
5716879df37cd2e0ad13b6b6bbaa39958c993128
898
py
Python
distarray/localapi/tests/test_mpiutils.py
sjperkins/distarray
0e014e4d08e6745f5028a53132a424f909ca354e
[ "BSD-3-Clause" ]
66
2015-01-04T22:40:23.000Z
2021-11-03T11:25:52.000Z
distarray/localapi/tests/test_mpiutils.py
sjperkins/distarray
0e014e4d08e6745f5028a53132a424f909ca354e
[ "BSD-3-Clause" ]
66
2015-02-02T22:39:25.000Z
2021-10-16T07:55:03.000Z
distarray/localapi/tests/test_mpiutils.py
sjperkins/distarray
0e014e4d08e6745f5028a53132a424f909ca354e
[ "BSD-3-Clause" ]
9
2015-07-12T18:57:21.000Z
2020-10-03T03:54:19.000Z
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- imp...
33.259259
77
0.587973
103
898
4.873786
0.640777
0.069721
0.099602
0.169323
0.119522
0.119522
0.119522
0
0
0
0
0.016151
0.172606
898
26
78
34.538462
0.659489
0.54343
0
0
0
0
0.02046
0
0
0
0
0
0.1
1
0.1
false
0
0.3
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
0
0
0
0
0
0
0
1
571837d61c0b0ecb5182d60ba385c51b0b86fab0
381
py
Python
diary/migrations/0004_job_keywords.py
tbrlpld/CAEJobDiary
16676b3eaa56aafdf54579d19baa6540375d91e4
[ "MIT" ]
null
null
null
diary/migrations/0004_job_keywords.py
tbrlpld/CAEJobDiary
16676b3eaa56aafdf54579d19baa6540375d91e4
[ "MIT" ]
2
2020-06-06T01:37:33.000Z
2020-06-06T04:16:18.000Z
diary/migrations/0004_job_keywords.py
tbrlpld/CAEJobDiary
16676b3eaa56aafdf54579d19baa6540375d91e4
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2019-05-11 15:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('diary', '0003_keyword'), ] operations = [ migrations.AddField( model_name='job', name='keywords', field=...
20.052632
61
0.585302
40
381
5.525
0.8
0
0
0
0
0
0
0
0
0
0
0.07037
0.291339
381
18
62
21.166667
0.748148
0.11811
0
0
1
0
0.122754
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
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
0
0
0
0
0
0
1
571c4d640cb219ce69058d1b60a1e55a69c2a922
4,608
py
Python
nomad/core/scheduler/KubernetesScheduler.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
2
2019-02-06T19:47:48.000Z
2019-10-30T07:30:14.000Z
nomad/core/scheduler/KubernetesScheduler.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
6
2019-03-21T18:29:04.000Z
2019-04-11T18:31:34.000Z
nomad/core/scheduler/KubernetesScheduler.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
null
null
null
# This module watches the kubernetes API and handles pod allocation (AKA placement) import json import logging import nomad.core.config.KubernetesConfig as KubernetesConfig from ..config import CONSTANTS from ..config import SchedulerConfig from collections import deque from kubernetes import client, config, watch ...
48
225
0.611979
510
4,608
5.382353
0.360784
0.03643
0.048452
0.041894
0.044444
0
0
0
0
0
0
0.005583
0.300347
4,608
95
226
48.505263
0.845844
0.08355
0
0.089744
0
0
0.151767
0
0
0
0
0.010526
0
1
0.064103
false
0.012821
0.089744
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
571fa1f939100dfbe82920442263a7539debe0f3
1,450
py
Python
jupiter/domain/recurring_task_period.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
15
2019-05-05T14:34:58.000Z
2022-02-25T09:57:28.000Z
jupiter/domain/recurring_task_period.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
3
2020-02-22T16:09:39.000Z
2021-12-18T21:33:06.000Z
jupiter/domain/recurring_task_period.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
null
null
null
"""A period for a particular task.""" import enum from functools import lru_cache from typing import Iterable, Optional from jupiter.framework.errors import InputValidationError @enum.unique class RecurringTaskPeriod(enum.Enum): """A period for a particular task.""" DAILY = "daily" WEEKLY = "weekly" ...
34.52381
88
0.689655
168
1,450
5.785714
0.386905
0.133745
0.195473
0.090535
0.05144
0.05144
0
0
0
0
0
0.000877
0.213793
1,450
41
89
35.365854
0.851754
0.131724
0
0.074074
0
0
0.175994
0.060827
0
0
0
0
0
1
0.111111
false
0
0.148148
0
0.592593
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
0
0
0
0
0
0
0
0
1
572ab48e135f91f175f63704195f918bfc80fdc6
355
py
Python
Python3/1025-Divisor-Game/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1025-Divisor-Game/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1025-Divisor-Game/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
from functools import lru_cache class Solution: @lru_cache(None) def divisorGame(self, N: int) -> bool: if N == 1: return False if N == 2: return True if all(self.divisorGame(N - factor) for factor in range(1, int(math.sqrt(N)) + 1) if N % factor == 0): ...
29.583333
110
0.55493
50
355
3.9
0.56
0.046154
0
0
0
0
0
0
0
0
0
0.021459
0.343662
355
11
111
32.272727
0.815451
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
572bee01ab2c35dc5551ca5115f468e5655d97ce
12,551
py
Python
examples/test_ns.py
q0w/snug
a9de335b48d96190a2bfe5e606830c4a60cb5705
[ "MIT" ]
123
2018-01-23T17:29:29.000Z
2022-02-11T06:57:57.000Z
examples/test_ns.py
q0w/snug
a9de335b48d96190a2bfe5e606830c4a60cb5705
[ "MIT" ]
274
2018-01-25T07:17:55.000Z
2022-01-20T07:37:10.000Z
examples/test_ns.py
q0w/snug
a9de335b48d96190a2bfe5e606830c4a60cb5705
[ "MIT" ]
5
2017-11-26T21:31:12.000Z
2021-11-28T10:19:57.000Z
import json from pathlib import Path import aiohttp import pytest from gentools import sendreturn import ns import snug live = pytest.config.getoption('--live') CRED_PATH = Path('~/.snug/ns.json').expanduser() auth = json.loads(CRED_PATH.read_bytes()) @pytest.fixture(scope='module') async def exec(): async wit...
32.099744
77
0.621703
1,297
12,551
5.988435
0.205089
0.030127
0.035535
0.041457
0.604094
0.539848
0.439552
0.365263
0.312347
0.270761
0
0.094304
0.232013
12,551
390
78
32.182051
0.711485
0.003028
0
0.508287
0
0
0.807818
0.37541
0
0
0
0
0.049724
1
0
false
0
0.019337
0
0.019337
0.005525
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
572e5b40af6f988a771369279d691385465dcd21
6,275
py
Python
MAKDataHub/settings.py
adamw00000/MAK-Datahub
9735f2f970439c49cec3ad693a056d7a151156ce
[ "MIT" ]
1
2022-03-16T09:05:42.000Z
2022-03-16T09:05:42.000Z
MAKDataHub/settings.py
adamw00000/MAK-Datahub
9735f2f970439c49cec3ad693a056d7a151156ce
[ "MIT" ]
8
2021-02-08T20:43:06.000Z
2021-06-09T18:54:14.000Z
MAKDataHub/settings.py
adamw00000/MAK-Datahub
9735f2f970439c49cec3ad693a056d7a151156ce
[ "MIT" ]
null
null
null
""" Django settings for MAKDataHub project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os...
27.643172
94
0.630279
638
6,275
6.050157
0.413793
0.053886
0.039896
0.045337
0.200518
0.16399
0.101813
0.101813
0.063731
0
0
0.023508
0.220398
6,275
226
95
27.765487
0.765536
0.191873
0
0.100629
1
0
0.479365
0.317063
0
0
0
0
0
1
0
false
0.044025
0.012579
0
0.012579
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
0
0
0
0
0
0
1
573ce327d68da2565054f712f9e6c05e118330aa
1,050
py
Python
pid/example_imp_pid.py
FelipeCapati/pid-tuning-using-pso
1b53668f76bf692cdd87edae2148a71bf6c28c70
[ "MIT" ]
null
null
null
pid/example_imp_pid.py
FelipeCapati/pid-tuning-using-pso
1b53668f76bf692cdd87edae2148a71bf6c28c70
[ "MIT" ]
null
null
null
pid/example_imp_pid.py
FelipeCapati/pid-tuning-using-pso
1b53668f76bf692cdd87edae2148a71bf6c28c70
[ "MIT" ]
null
null
null
from pid.abstract_pid import AbstractPID from scipy import signal class ExampleOnePID(AbstractPID): def __init__(self): super(ExampleOnePID, self).__init__(number_of_inputs=3, lim_min=0, lim_max=5) def get_plant_transfer_function(self) -> signal.lti: return signal.lti([4], [1, 0.5, 1]) d...
35
85
0.606667
127
1,050
4.787402
0.433071
0.029605
0.042763
0.078947
0
0
0
0
0
0
0
0.01699
0.215238
1,050
29
86
36.206897
0.720874
0.037143
0
0.1
0
0
0.115956
0.071358
0
0
0
0.034483
0
1
0.2
false
0
0.1
0.1
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
57495b3087691ce50fed3ff23d561cbee370da88
3,265
py
Python
tests/system/test_integration.py
sqren/apm-server
629fa9196fb2f618bf9b42942ff0e17771153d29
[ "Apache-2.0" ]
null
null
null
tests/system/test_integration.py
sqren/apm-server
629fa9196fb2f618bf9b42942ff0e17771153d29
[ "Apache-2.0" ]
null
null
null
tests/system/test_integration.py
sqren/apm-server
629fa9196fb2f618bf9b42942ff0e17771153d29
[ "Apache-2.0" ]
1
2021-07-02T00:05:25.000Z
2021-07-02T00:05:25.000Z
from apmserver import ElasticTest from beat.beat import INTEGRATION_TESTS import os import json import requests import unittest class Test(ElasticTest): @unittest.skipUnless(INTEGRATION_TESTS, "integration test") def test_load_docs_with_template_and_add_transaction(self): """ This test starts...
42.402597
106
0.582236
383
3,265
4.827676
0.349869
0.021633
0.03245
0.054083
0.407247
0.407247
0.364521
0.333153
0.294213
0.294213
0
0.007795
0.332006
3,265
76
107
42.960526
0.839982
0.212864
0
0.244898
0
0
0.131452
0.009677
0
0
0
0.013158
0.102041
1
0.081633
false
0
0.122449
0
0.22449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5754f1bf479ff7293f8adba2b12201096fddd2ac
3,082
py
Python
dreambeam/rime/tests.py
creaneroDIAS/dreamBeam
b7345744b87648126193fb7e81c8519a4e66d20d
[ "ISC" ]
null
null
null
dreambeam/rime/tests.py
creaneroDIAS/dreamBeam
b7345744b87648126193fb7e81c8519a4e66d20d
[ "ISC" ]
null
null
null
dreambeam/rime/tests.py
creaneroDIAS/dreamBeam
b7345744b87648126193fb7e81c8519a4e66d20d
[ "ISC" ]
null
null
null
#!/usr/bin/python from datetime import datetime, timedelta import numpy as np from jones import * from conversionUtils import * from dreambeam.telescopes.LOFAR.native.parseAntennaField import getArrayBandParams import antpat.reps.sphgridfun from casacore.measures import measures def setupObsInstance(): #Observati...
31.131313
82
0.710902
361
3,082
5.98338
0.398892
0.038889
0.046296
0.060185
0.126852
0.037037
0
0
0
0
0
0.037911
0.161259
3,082
98
83
31.44898
0.797679
0.155094
0
0.063492
0
0
0.028638
0
0
0
0
0
0
0
null
null
0.015873
0.111111
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5759ab4fc87154a719c1c8e74bc2ab981991942f
1,026
py
Python
my_homepage/contact_me/views.py
beasyx0/my_homepage
12df4fedfe3f39c03a898a229a96c431627d19bd
[ "MIT" ]
null
null
null
my_homepage/contact_me/views.py
beasyx0/my_homepage
12df4fedfe3f39c03a898a229a96c431627d19bd
[ "MIT" ]
null
null
null
my_homepage/contact_me/views.py
beasyx0/my_homepage
12df4fedfe3f39c03a898a229a96c431627d19bd
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.views.decorators.http import require_POST from django.contrib import messages from my_homepage.contact_me.models import NewContact from my_homepage.contact_me.forms import NewContactForm from my_homepage.utils.my_utils import process_recaptcha @require_POST d...
38
81
0.720273
129
1,026
5.55814
0.48062
0.069735
0.078103
0.058577
0.181311
0.117155
0.117155
0
0
0
0
0
0.202729
1,026
26
82
39.461538
0.876528
0.049708
0
0.227273
0
0
0.126935
0
0
0
0
0
0
1
0.045455
false
0.090909
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
93859ffe19f34c68728dcb64dd7f1ba1fc8a2598
1,466
py
Python
examples/parallel_example.py
ashander/opty
85f8c5d75c924d393edcbc07324088c3266bca31
[ "BSD-2-Clause-FreeBSD" ]
63
2015-03-07T19:38:10.000Z
2022-03-31T17:17:53.000Z
examples/parallel_example.py
ashander/opty
85f8c5d75c924d393edcbc07324088c3266bca31
[ "BSD-2-Clause-FreeBSD" ]
52
2015-02-15T17:24:03.000Z
2021-06-18T16:43:45.000Z
examples/parallel_example.py
ashander/opty
85f8c5d75c924d393edcbc07324088c3266bca31
[ "BSD-2-Clause-FreeBSD" ]
22
2015-05-25T21:28:16.000Z
2022-03-14T03:55:57.000Z
"""This script generates equations of motion that have a very large number of operations. It then creates a parallelized and non-parallelized version and compares the evaluation time.""" import timeit import numpy as np import sympy as sm from pydy.models import n_link_pendulum_on_cart from opty.utils import ufuncify...
31.869565
79
0.71146
227
1,466
4.361233
0.400881
0.035354
0.072727
0.069697
0.423232
0.357576
0.262626
0.262626
0.262626
0.262626
0
0.00817
0.165075
1,466
45
80
32.577778
0.800654
0.122783
0
0.148148
1
0
0.039063
0
0
0
0
0
0
1
0
false
0
0.185185
0
0.185185
0.074074
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
0
0
0
0
0
0
1
938718c4c66ea940be93256b51985cf24f3dd4f4
643
py
Python
library/core/migrations/0003_auto_20170624_1050.py
marcellobenigno/library
f95d8029ef84338bff784492a66fe01d007cda7f
[ "MIT" ]
null
null
null
library/core/migrations/0003_auto_20170624_1050.py
marcellobenigno/library
f95d8029ef84338bff784492a66fe01d007cda7f
[ "MIT" ]
10
2020-02-11T21:57:22.000Z
2022-02-26T10:18:33.000Z
library/core/migrations/0003_auto_20170624_1050.py
marcellobenigno/library
f95d8029ef84338bff784492a66fe01d007cda7f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-24 13:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20170624_1046'), ] operations = [ migrations.AlterModelOptions( ...
26.791667
102
0.601866
64
643
5.828125
0.6875
0.117962
0.16622
0
0
0
0
0
0
0
0
0.068323
0.248834
643
23
103
27.956522
0.703934
0.105754
0
0.25
1
0
0.256993
0.04021
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
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
0
0
0
0
0
0
1
9388b3fe25253e0d4db8c9e591310b147594368d
379
py
Python
tests/test_timeout.py
MattBBaker/ucx-py
c94a7400cf0df0fdf7a9e48e8a09c8231c194385
[ "BSD-3-Clause" ]
null
null
null
tests/test_timeout.py
MattBBaker/ucx-py
c94a7400cf0df0fdf7a9e48e8a09c8231c194385
[ "BSD-3-Clause" ]
null
null
null
tests/test_timeout.py
MattBBaker/ucx-py
c94a7400cf0df0fdf7a9e48e8a09c8231c194385
[ "BSD-3-Clause" ]
null
null
null
import pytest import asyncio import ucp import time async def talk_to_server(ip, port, timeout): try: ep = await ucp.get_endpoint(ip, port, timeout) except TimeoutError: pass @pytest.mark.asyncio async def test_timeout(): ucp.init() ip = ucp.get_address() await asyncio.gather(tal...
18.95
72
0.680739
55
379
4.563636
0.563636
0.063745
0.095618
0.111554
0
0
0
0
0
0
0
0.020067
0.211082
379
19
73
19.947368
0.819398
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.066667
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
938b764d44f9ba1fd79302a4b2b1ef441efbd8f4
7,254
py
Python
omahelsinki/settings.py
frwickst/omahelsinki
91fb0d1d5ac560364f8098373ae65634279bf79d
[ "MIT" ]
7
2018-10-08T11:57:20.000Z
2021-09-18T22:01:56.000Z
omahelsinki/settings.py
frwickst/omahelsinki
91fb0d1d5ac560364f8098373ae65634279bf79d
[ "MIT" ]
200
2018-07-01T09:28:10.000Z
2022-02-12T15:19:04.000Z
omahelsinki/settings.py
frwickst/omahelsinki
91fb0d1d5ac560364f8098373ae65634279bf79d
[ "MIT" ]
7
2018-07-04T09:54:07.000Z
2019-10-03T10:21:14.000Z
""" Django settings for omahelsinki project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ # Build ...
27.9
111
0.675489
812
7,254
5.880542
0.381773
0.040838
0.020942
0.023456
0.089424
0.075183
0.047539
0.047539
0.016754
0
0
0.007353
0.193824
7,254
259
112
28.007722
0.809166
0.172457
0
0.039326
1
0.005618
0.422781
0.274372
0
0
0
0.003861
0
1
0
false
0
0.067416
0
0.067416
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
0
0
0
0
0
0
1
9392b06d509a9384cf1c36f2bce523d06c26357a
2,441
py
Python
open_data/app/views.py
balfroim/OpenData
f0334dae16c2806e81f7d2d53adeabc72403ecce
[ "MIT" ]
null
null
null
open_data/app/views.py
balfroim/OpenData
f0334dae16c2806e81f7d2d53adeabc72403ecce
[ "MIT" ]
null
null
null
open_data/app/views.py
balfroim/OpenData
f0334dae16c2806e81f7d2d53adeabc72403ecce
[ "MIT" ]
null
null
null
import random from django.db.models import Count from django.shortcuts import render from badge.registry import BadgeCache from dataset.models import Theme, ProxyDataset, Question from quiz.models import Quiz from user.models import User def home_page(request): all_datasets = ProxyDataset.objects.annotate( ...
32.986486
91
0.656288
283
2,441
5.40636
0.339223
0.230065
0.094118
0.104575
0.203922
0.203922
0.176471
0.176471
0.176471
0.176471
0
0.004336
0.244162
2,441
73
92
33.438356
0.824932
0
0
0.2
0
0.015385
0.151577
0
0
0
0
0
0
1
0.046154
false
0
0.107692
0
0.2
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9396a196d8063b04acbf52edec147966f9c8a802
283
py
Python
archive/heatmaps_code/gen_markup_meta.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
23
2018-08-23T03:58:37.000Z
2022-02-23T05:04:54.000Z
archive/heatmaps_code/gen_markup_meta.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/heatmaps_code/gen_markup_meta.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
from bson import json_util slide_list_file = '/data08/shared/lehhou/necrosis_segmentation_workingdir/slide_list.txt'; # read from file with open(slide_list_file) as f: content = f.readlines(); #lines = content.split('\n'); print content[-1][-2]; #print (content[-1][-3]);
23.583333
90
0.713781
42
283
4.619048
0.690476
0.139175
0.134021
0
0
0
0
0
0
0
0
0.024292
0.127208
283
11
91
25.727273
0.761134
0.233216
0
0
0
0
0.323944
0.323944
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
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
1
0
0
0
0
0
0
0
0
1
9396a1dfa8e69bb3eea90a6441aaceaed3f4b250
674
py
Python
meiduo_mall/apps/users/utils.py
kura-Lee/meiduo-mall
8406eb49a41f8c8e726cca13231493b6422d427d
[ "MIT" ]
1
2022-01-30T13:09:19.000Z
2022-01-30T13:09:19.000Z
meiduo_mall/apps/users/utils.py
kura-Lee/meiduo-mall
8406eb49a41f8c8e726cca13231493b6422d427d
[ "MIT" ]
null
null
null
meiduo_mall/apps/users/utils.py
kura-Lee/meiduo-mall
8406eb49a41f8c8e726cca13231493b6422d427d
[ "MIT" ]
null
null
null
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadData from django.conf import settings def generate_verify_email_url(user): """ 生成邮箱验证链接 :param user: 当前登录用户 :return: verify_url """ serializer = Serializer(settings.SECRET_KEY, expires_in=3600) data = {'user_id': use...
28.083333
79
0.700297
79
674
5.78481
0.443038
0.078775
0.061269
0.148797
0.161926
0
0
0
0
0
0
0.007491
0.207715
674
23
80
29.304348
0.848315
0.071217
0
0
1
0
0.031561
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.4375
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
0
0
0
0
0
0
1
939ba28164146606dad8ea3c9bd0bbe8731208f6
9,545
py
Python
deductor/preparator.py
4ban/volentix_tools
45d8e707f47e2fd76a06a6a5e0dd17ff5bec5235
[ "MIT" ]
null
null
null
deductor/preparator.py
4ban/volentix_tools
45d8e707f47e2fd76a06a6a5e0dd17ff5bec5235
[ "MIT" ]
null
null
null
deductor/preparator.py
4ban/volentix_tools
45d8e707f47e2fd76a06a6a5e0dd17ff5bec5235
[ "MIT" ]
null
null
null
from pymongo import MongoClient import logging import configparser import requests import json import subprocess import os import time import random import string # volentixtrez 454990000.0000 VTX # volentixprvt 65000000.0000 VTX # volentixprir 130000000.0000 VTX # vtxsmsupport 99000000.0000 VTX # vtxmesupport 9900000...
39.605809
134
0.702043
728
9,545
9.114011
0.302198
0.004069
0.025772
0.021703
0.13052
0.078372
0.054559
0.044009
0.044009
0.017784
0
0.268373
0.201676
9,545
240
135
39.770833
0.602362
0.041907
0
0.19403
0
0
0.450005
0.347498
0
0
0
0
0
1
0.014925
false
0.00995
0.049751
0
0.074627
0.089552
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
1
939c4ad6312dac22b3099915b688e95f429a4fa9
5,477
py
Python
handlers/main_handler.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
4
2018-09-20T13:37:28.000Z
2022-02-23T00:36:55.000Z
handlers/main_handler.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
null
null
null
handlers/main_handler.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
null
null
null
import os import time import modules.set_globals as set_globals import modules.cfg as cfg import modules.change_session_values as change_session_values import modules.show_banner as show_banner import modules.cleanup_and_exit as cleanup_and_exit import modules.clear_screen as clear_screen import handlers.listen...
45.264463
113
0.526566
543
5,477
5.11418
0.202578
0.068419
0.039611
0.03457
0.327332
0.232265
0.203457
0.173569
0.149802
0.149802
0
0.002687
0.388351
5,477
120
114
45.641667
0.826269
0.011137
0
0.373913
0
0
0.116925
0
0
0
0
0
0
0
null
null
0.017391
0.113043
null
null
0.182609
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
1
0
0
0
0
0
0
0
0
1
939e12c6547ff260c06356d1fdb618574c541680
6,855
py
Python
podrum/protocol/mcbe/type/metadata_dictionary_type.py
johndoe434/Podrum
e4b2ff4094b662e0c08be5cc2138539a33e35d84
[ "MIT" ]
null
null
null
podrum/protocol/mcbe/type/metadata_dictionary_type.py
johndoe434/Podrum
e4b2ff4094b662e0c08be5cc2138539a33e35d84
[ "MIT" ]
null
null
null
podrum/protocol/mcbe/type/metadata_dictionary_type.py
johndoe434/Podrum
e4b2ff4094b662e0c08be5cc2138539a33e35d84
[ "MIT" ]
null
null
null
################################################################################ # # # ____ _ # # | _ \ ___ __| |_ __ _ _ _ __ ___ ...
42.314815
80
0.588038
881
6,855
4.1521
0.441544
0.024057
0.020503
0.015582
0
0
0
0
0
0
0
0.059003
0.329978
6,855
161
81
42.57764
0.737427
0.286652
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
939f6a1ee9dfa6d55b895cf679f2c873d68702a3
3,071
py
Python
protos/gen/python/protos/public/modeldb/versioning/Enums_pb2.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
protos/gen/python/protos/public/modeldb/versioning/Enums_pb2.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
protos/gen/python/protos/public/modeldb/versioning/Enums_pb2.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: modeldb/versioning/Enums.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_data...
31.020202
396
0.763269
353
3,071
6.422096
0.373938
0.06749
0.064843
0.055139
0.220997
0.191442
0.191442
0.15086
0.041464
0
0
0.036531
0.117551
3,071
98
397
31.336735
0.8
0.088245
0
0.415584
1
0.025974
0.271393
0.22807
0
0
0
0
0
1
0
false
0
0.051948
0
0.051948
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
0
0
0
0
0
0
1
93a32a00634f38e4f14580e26dd3258be2d666ec
3,592
py
Python
kubernetes_manager/serializers/base.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
13
2020-04-03T08:33:51.000Z
2022-02-22T07:30:28.000Z
kubernetes_manager/serializers/base.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
27
2020-04-03T06:51:38.000Z
2022-01-21T13:12:28.000Z
kubernetes_manager/serializers/base.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
6
2020-09-14T18:22:37.000Z
2022-03-04T09:08:25.000Z
from kubernetes_manager.models import ( KubernetesBase, KubernetesConfigMap, KubernetesContainer, KubernetesDeployment, KubernetesIngress, KubernetesJob, KubernetesMetadataObjBase, KubernetesNamespace, KubernetesNetworkingBase, KubernetesPodTemplate, KubernetesService, Ku...
33.259259
148
0.742205
239
3,592
11.075314
0.34728
0.047601
0.074046
0.057424
0.13147
0.049112
0.049112
0
0
0
0
0
0.179566
3,592
107
149
33.570093
0.898202
0
0
0.21519
0
0
0.099944
0
0
0
0
0
0
1
0
false
0
0.025316
0
0.379747
0
0
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
0
0
0
0
0
0
1
93a6f0ae25bd61bd271aca48d4e6e5b9080ba521
4,150
py
Python
napalm_getters/get_version.py
jwbensley/NAPALM_Examples
7095592dc3832b366056125e952038a88e195f6b
[ "MIT" ]
2
2019-03-09T19:19:04.000Z
2022-02-21T03:06:55.000Z
napalm_getters/get_version.py
jwbensley/NAPALM_Examples
7095592dc3832b366056125e952038a88e195f6b
[ "MIT" ]
null
null
null
napalm_getters/get_version.py
jwbensley/NAPALM_Examples
7095592dc3832b366056125e952038a88e195f6b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Loop over a list of devies in a YAML file and print their OS version sudo -H pip3 install napalm example inventory.yml: --- # required: hostname, os # optional: username, password, timeout, optional_args R1: hostname: 192.168.223.2 os: ios username: admin password: admin timeout: 15...
26.602564
107
0.611807
451
4,150
5.549889
0.339246
0.04155
0.027167
0.010388
0.094287
0.015182
0
0
0
0
0
0.01087
0.290602
4,150
155
108
26.774194
0.839334
0.159277
0
0.244681
0
0
0.161392
0
0
0
0
0
0
1
0.021277
false
0.074468
0.12766
0
0.191489
0.085106
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
93b54fe09e0890c05b582c691b2d57c537d84760
685
py
Python
exercises/general/update_label.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
exercises/general/update_label.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
exercises/general/update_label.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
# File: update_label.py # Desc: Update label above input box using user input name. from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import ObjectProperty from kivy.lang import Builder # Designate our .kv design file Builder.load_file('update_label.kv') class MyLayout(Widget): de...
22.096774
59
0.681752
95
685
4.768421
0.484211
0.07064
0.072848
0.07064
0.0883
0
0
0
0
0
0
0
0.223358
685
30
60
22.833333
0.851504
0.254015
0
0
0
0
0.071429
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
93b70e46dbff04eed29c43c32a8ab0d426a6be17
793
py
Python
peerplays/cli/committee.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
10
2019-03-14T03:09:42.000Z
2021-03-17T10:20:05.000Z
peerplays/cli/committee.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
8
2019-04-02T17:07:20.000Z
2020-04-30T08:24:01.000Z
peerplays/cli/committee.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
4
2019-04-02T17:00:22.000Z
2021-08-09T11:28:20.000Z
import click from pprint import pprint from .decorators import onlineChain, unlockWallet from .main import main @main.command() @click.pass_context @onlineChain @click.argument("members", nargs=-1) @click.option("--account", help="Account that takes this action", type=str) @unlockWallet def approvecommittee(ctx, memb...
27.344828
75
0.750315
93
793
6.376344
0.365591
0.094435
0.053963
0.067454
0.56661
0.56661
0.451939
0.451939
0.451939
0.451939
0
0.002849
0.114754
793
28
76
28.321429
0.84188
0.079445
0
0.6
0
0
0.129213
0
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.3
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
93baae464b913bb685d0bd3f1298fb2f3d5eb29a
2,751
py
Python
Day14_Max Absolute Difference/absolute.py
EstherWaweru/30DaysOfCode
845c33349e3d732bc1fda081fa910ac33d92e204
[ "MIT" ]
2
2021-01-13T10:10:43.000Z
2021-10-06T04:08:36.000Z
Day14_Max Absolute Difference/absolute.py
EstherWaweru/30DaysOfCode
845c33349e3d732bc1fda081fa910ac33d92e204
[ "MIT" ]
null
null
null
Day14_Max Absolute Difference/absolute.py
EstherWaweru/30DaysOfCode
845c33349e3d732bc1fda081fa910ac33d92e204
[ "MIT" ]
null
null
null
# Objective # Today we're discussing scope. Check out the Tutorial tab for learning materials and an instructional video! # The absolute difference between two integers, # and , is written as . The maximum absolute difference between two integers in a set of positive integers, , is the largest absolute difference betw...
29.265957
172
0.701927
393
2,751
4.857506
0.366412
0.03143
0.049764
0.044002
0.091671
0.030382
0
0
0
0
0
0.005709
0.235914
2,751
94
173
29.265957
0.902474
0.742276
0
0
0
0
0.001497
0
0
0
0
0.010638
0
1
0.133333
false
0
0
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
93be71636d5e1d7d57e812f783804f6da2ac06a3
2,942
py
Python
symupy/runtime/logic/states.py
symuvia/symupy
e6604c59bb4474f594ef5c997508f0407c9b3870
[ "MIT" ]
2
2019-07-01T09:58:53.000Z
2020-06-12T12:12:46.000Z
symupy/runtime/logic/states.py
licit-lab/symupy
942a17ee78cd12a363a4cd7b7f8363e239ccf7fe
[ "MIT" ]
33
2021-01-18T13:59:01.000Z
2021-11-29T13:21:10.000Z
symupy/runtime/logic/states.py
licit-lab/symupy
942a17ee78cd12a363a4cd7b7f8363e239ccf7fe
[ "MIT" ]
7
2018-07-12T13:34:38.000Z
2019-10-02T13:37:31.000Z
""" This module defines the basic states required to execute and launch a simulation. The states are defined as: * **Compliance**: This state is defined to check availability of files and candidates. * **Connect**: This state is defined to process * **Initialize**: This state perform initializ...
22.984375
173
0.623725
350
2,942
5.217143
0.291429
0.03943
0.064074
0.088719
0.31161
0.23713
0.193319
0.170318
0.154436
0.154436
0
0
0.288239
2,942
127
174
23.165354
0.872015
0.46397
0
0.456522
0
0
0.052443
0
0
0
0
0
0
1
0.195652
false
0
0.021739
0.021739
0.804348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
93c591401f8b070eabd9790d600b993e43bba778
393
py
Python
saleor/shipping/migrations/0026_shippingzone_description.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/shipping/migrations/0026_shippingzone_description.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/shipping/migrations/0026_shippingzone_description.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.1.4 on 2020-12-29 12:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("shipping", "0025_auto_20201130_1122"), ] operations = [ migrations.AddField( model_name="shippingzone", name="descri...
20.684211
48
0.605598
41
393
5.707317
0.829268
0
0
0
0
0
0
0
0
0
0
0.109929
0.282443
393
18
49
21.833333
0.719858
0.114504
0
0
1
0
0.156069
0.066474
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
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
0
0
0
0
0
0
1
93c792426f9401ed88206f3aa0739b4c61431a51
350
py
Python
pycollisionavoidance/raycast/__init__.py
virtual-origami/pycollisionavoidance
a58f496efed2d945e361305b27f7bbe3c360dff7
[ "MIT" ]
null
null
null
pycollisionavoidance/raycast/__init__.py
virtual-origami/pycollisionavoidance
a58f496efed2d945e361305b27f7bbe3c360dff7
[ "MIT" ]
1
2021-12-10T22:16:01.000Z
2021-12-11T11:30:35.000Z
pywalkgen/raycast/__init__.py
virtual-origami/pywalkgen
e860b8fb327aa6ceb05849f610855657f917a1ea
[ "MIT" ]
null
null
null
from __future__ import generator_stop from __future__ import annotations from .Obstacle import Obstacle from .Particle import Particle from .Point import Point, LineSegment, Dot from .Ray import Ray from .StaticMap import StaticMap __all__ = [ 'Obstacle', 'Particle', 'Point', 'LineSegment', 'Dot',...
18.421053
42
0.711429
39
350
6.051282
0.358974
0.084746
0.135593
0
0
0
0
0
0
0
0
0
0.202857
350
18
43
19.444444
0.845878
0
0
0
0
0
0.134286
0
0
0
0
0
0
1
0
false
0
0.4375
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
93c8219019af71b1628fe34cf24f5b45fd90c780
2,300
py
Python
mvmm/single_view/MMGridSearch.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
1
2021-08-17T13:22:54.000Z
2021-08-17T13:22:54.000Z
mvmm/single_view/MMGridSearch.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
null
null
null
mvmm/single_view/MMGridSearch.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
null
null
null
from time import time import pandas as pd import matplotlib.pyplot as plt from mvmm.BaseGridSearch import BaseGridSearch from mvmm.viz_utils import set_xaxis_int_ticks def fit_and_score(estimator, X, parameters): """ Fits a mixture model on a dataset then comptues aic/bic scores. Output ------ s...
27.058824
67
0.616522
267
2,300
5.018727
0.370787
0.065672
0.041045
0.023881
0.079104
0.046269
0
0
0
0
0
0.003036
0.283913
2,300
84
68
27.380952
0.810565
0.152174
0
0
0
0
0.062533
0
0
0
0
0.011905
0
1
0.081633
false
0
0.102041
0.020408
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
93cf16c10a917f138d70c0cfca2e7f5d6f8e372c
2,512
py
Python
sound.py
gndu91/Windows-Sound-Manager
cdcf7a0044aed14abf5a4c48babf8f7ce2ff4fab
[ "MIT" ]
null
null
null
sound.py
gndu91/Windows-Sound-Manager
cdcf7a0044aed14abf5a4c48babf8f7ce2ff4fab
[ "MIT" ]
null
null
null
sound.py
gndu91/Windows-Sound-Manager
cdcf7a0044aed14abf5a4c48babf8f7ce2ff4fab
[ "MIT" ]
null
null
null
# import keyboard as Keyboard # Keyboard.key = Keyboard.press_and_release import os if os.name == 'nt': from _nt import get_volume_device else: raise NotImplementedError('Only available in Windows for the moment') class Sound: """ Class Sound :description: Based on the class written by Paradoxis ...
23.92381
104
0.588376
290
2,512
4.92069
0.337931
0.069376
0.115627
0.093203
0.284513
0.284513
0.147162
0.057463
0.057463
0
0
0.004765
0.331608
2,512
104
105
24.153846
0.845146
0.400876
0
0.27027
0
0
0.037333
0
0
0
0
0
0
1
0.27027
false
0.027027
0.054054
0
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
93d0caa369599384d40a73e8d849c110139f1bbc
330
py
Python
exam_organization_tool/settings/development.py
andaeh/django-exam-organization-tool
fd269402cb74e4028f3aa65978da5a47e4d2f7ae
[ "Apache-2.0" ]
null
null
null
exam_organization_tool/settings/development.py
andaeh/django-exam-organization-tool
fd269402cb74e4028f3aa65978da5a47e4d2f7ae
[ "Apache-2.0" ]
2
2021-09-11T13:42:08.000Z
2022-03-12T01:01:37.000Z
exam_organization_tool/settings/development.py
andaeh/django-exam-organization-tool
fd269402cb74e4028f3aa65978da5a47e4d2f7ae
[ "Apache-2.0" ]
null
null
null
from .base import * DEBUG = True INSTALLED_APPS += [ 'debug_toolbar' ] MIDDLEWARE += [ 'debug_toolbar.middleware.DebugToolbarMiddleware', ] DEBUG_TOOLBAR_CONFIG = { 'JQUERY_URL': '', } DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3'...
14.347826
54
0.609091
31
330
6.258065
0.709677
0.185567
0.226804
0
0
0
0
0
0
0
0
0.007905
0.233333
330
22
55
15
0.758893
0
0
0
0
0
0.372727
0.221212
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
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
0
0
0
0
0
0
0
0
1
93d26c10250776aa889771c3d40ad86452062b13
447
py
Python
ebola_prediction/model.py
fjelltopp/ebola_prediction
ec12e342cad9c7167db0504abb197d400e83e5f4
[ "MIT" ]
1
2020-02-02T04:57:42.000Z
2020-02-02T04:57:42.000Z
ebola_prediction/model.py
fjelltopp/ebola_prediction
ec12e342cad9c7167db0504abb197d400e83e5f4
[ "MIT" ]
null
null
null
ebola_prediction/model.py
fjelltopp/ebola_prediction
ec12e342cad9c7167db0504abb197d400e83e5f4
[ "MIT" ]
null
null
null
import config from sqlalchemy import Column, Integer, String, DateTime, create_engine from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class DataSource(Base): __tablename__ = 'datasource' id = Column(Integer, primary_key=True) update_time = Column(DateTime) data = Co...
23.526316
71
0.756152
53
447
6
0.566038
0.08805
0
0
0
0
0
0
0
0
0
0
0.1566
447
18
72
24.833333
0.843501
0
0
0
0
0
0.040268
0
0
0
0
0
0
1
0
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
93d40edf5cdacd5bd4debc10d624462c580a5df1
613
py
Python
tests/packages/PlatformDependentCode/plugin.py
Thom1729/st_package_reviewer
71e4eaad60fe3391b0a4d39405b784ec84ea58bc
[ "MIT" ]
8
2017-06-07T07:52:32.000Z
2021-04-26T23:46:36.000Z
tests/packages/PlatformDependentCode/plugin.py
Thom1729/st_package_reviewer
71e4eaad60fe3391b0a4d39405b784ec84ea58bc
[ "MIT" ]
26
2017-05-29T21:11:10.000Z
2021-05-16T20:58:23.000Z
tests/packages/PlatformDependentCode/plugin.py
Thom1729/st_package_reviewer
71e4eaad60fe3391b0a4d39405b784ec84ea58bc
[ "MIT" ]
8
2017-05-31T21:16:49.000Z
2021-03-20T16:43:26.000Z
import platform, sublime, sublime_plugin class AwesomeFooCommand(sublime_plugin.ApplicationCommand): def run(self): if "Darwin" in platform.platform(): print("Darwin") else: print("not supported") class AwesomeBarCommand(sublime_plugin.ApplicationCommand): d...
25.541667
59
0.575856
56
613
6.25
0.428571
0.171429
0.177143
0.194286
0.245714
0.245714
0.245714
0
0
0
0
0
0.2969
613
23
60
26.652174
0.812065
0
0
0.235294
0
0
0.107667
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.294118
0.352941
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
0
0
0
0
0
0
0
1
93d671a350bdb9128da8fa21e436c502c50804a3
3,391
py
Python
sugu/models/owner.py
fadiga/sugu
b3171076039dccf14ec14f9a82c8492912a14c12
[ "Apache-2.0" ]
null
null
null
sugu/models/owner.py
fadiga/sugu
b3171076039dccf14ec14f9a82c8492912a14c12
[ "Apache-2.0" ]
null
null
null
sugu/models/owner.py
fadiga/sugu
b3171076039dccf14ec14f9a82c8492912a14c12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding=utf-8 # maintainer: Fadiga from datetime import datetime from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy, ugettext as _ class Owner(User): """ The web user who is also owner of the Organization """ ...
35.694737
78
0.562666
324
3,391
5.648148
0.33642
0.12623
0.052459
0.065574
0.41694
0.397814
0.359563
0.32459
0.237705
0.219672
0
0.006184
0.33235
3,391
94
79
36.074468
0.80212
0.0578
0
0.412698
0
0
0.13075
0.006616
0
0
0
0
0
1
0.063492
false
0
0.063492
0.063492
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
93d72bfbfcbc01f9a3ec1c3a2cc792d9ff1ab675
3,648
py
Python
namsa/optics.py
nlaanait/namsa
55f82ecf1c82601fcb81815d5e60705506c01e1e
[ "MIT" ]
null
null
null
namsa/optics.py
nlaanait/namsa
55f82ecf1c82601fcb81815d5e60705506c01e1e
[ "MIT" ]
null
null
null
namsa/optics.py
nlaanait/namsa
55f82ecf1c82601fcb81815d5e60705506c01e1e
[ "MIT" ]
null
null
null
import numpy as np from scipy.constants import speed_of_light, electron_mass, elementary_charge def voltage2Lambda(voltage): """ Energy to Wavelength conversion. Params: voltage: accelerating voltage in V. Returns: wavelength in Å. """ return 12.2643 / np.sqrt(voltage + 0.97845e-6 * vol...
32
119
0.615132
513
3,648
4.259259
0.290448
0.012815
0.012357
0.007323
0.184439
0.169794
0.154691
0.143707
0.143707
0.105263
0
0.04659
0.264529
3,648
114
120
32
0.767797
0.41557
0
0.139535
0
0
0.037428
0
0
0
0
0
0
1
0.209302
false
0.023256
0.046512
0
0.465116
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
93d7a0eab1667756db2a80c41707419aa124ba03
606
py
Python
auctionItem/migrations/0022_auto_20201124_1032.py
melodyPereira05/Aukshan
3a086e58976937a9a47aac4edaf0feef6ece15ee
[ "MIT" ]
4
2020-10-15T09:31:00.000Z
2022-03-06T22:20:13.000Z
auctionItem/migrations/0022_auto_20201124_1032.py
melodyPereira05/Aukshan
3a086e58976937a9a47aac4edaf0feef6ece15ee
[ "MIT" ]
null
null
null
auctionItem/migrations/0022_auto_20201124_1032.py
melodyPereira05/Aukshan
3a086e58976937a9a47aac4edaf0feef6ece15ee
[ "MIT" ]
2
2021-11-22T23:37:10.000Z
2022-03-13T19:24:19.000Z
# Generated by Django 3.1.3 on 2020-11-24 05:02 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctionItem', '0021_auto_20201124_1029'), ] operations = [ migrations.RenameField( model_name='message', ...
24.24
99
0.59571
64
606
5.5
0.71875
0.034091
0.045455
0
0
0
0
0
0
0
0
0.116279
0.290429
606
24
100
25.25
0.702326
0.074257
0
0.111111
1
0
0.137746
0.041145
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
0
0
0
0
0
0
1
93dcb34e1dda8c28a4d0c4e9eac545fd981c5749
279
py
Python
server.py
evaustin17/DeepAR
672927b1d0ec599bdf9fdd8198b11ba70ef2d3c9
[ "MIT" ]
null
null
null
server.py
evaustin17/DeepAR
672927b1d0ec599bdf9fdd8198b11ba70ef2d3c9
[ "MIT" ]
null
null
null
server.py
evaustin17/DeepAR
672927b1d0ec599bdf9fdd8198b11ba70ef2d3c9
[ "MIT" ]
null
null
null
import http.server import socketserver PORT = 8888 class Handler(http.server.SimpleHTTPRequestHandler): pass Handler.extensions_map['.wasm'] = 'application/wasm' httpd = socketserver.TCPServer(("", PORT), Handler) print(("serving at port"), PORT) httpd.serve_forever()
17.4375
52
0.749104
32
279
6.46875
0.65625
0.096618
0
0
0
0
0
0
0
0
0
0.01626
0.11828
279
15
53
18.6
0.825203
0
0
0
0
0
0.129496
0
0
0
0
0
0
1
0
false
0.111111
0.222222
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
93dcbfcb86ff7f9d58525332e7de2680b5c17c86
1,350
py
Python
0812/send_multipart.py
developbiao/pythonbasics
a7549786629e820646dcde5bb9f1aad4331de9be
[ "MIT" ]
1
2019-06-13T15:33:57.000Z
2019-06-13T15:33:57.000Z
0812/send_multipart.py
developbiao/pythonbasics
a7549786629e820646dcde5bb9f1aad4331de9be
[ "MIT" ]
null
null
null
0812/send_multipart.py
developbiao/pythonbasics
a7549786629e820646dcde5bb9f1aad4331de9be
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from email import encoders from email.header import Header from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib def _format_addr(s): name, addr = parseaddr(s) return formataddr((Header(name, 'utf-8').encode(), addr)) ...
25.471698
77
0.680741
182
1,350
4.928571
0.450549
0.017837
0.043478
0.044593
0
0
0
0
0
0
0
0.012079
0.141481
1,350
52
78
25.961538
0.761864
0.112593
0
0
0
0
0.180976
0
0
0
0
0
0
1
0.033333
false
0.066667
0.166667
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
93de7c99f59a8965e99a6e837acd6c9e4eb0cb6a
471
py
Python
modularwebapplication/users/migrations/0002_auto_20211214_0319.py
ScastrillonE/modularwebapp
2635bfbb6984d5966651010d547f4537ac6f6860
[ "MIT" ]
null
null
null
modularwebapplication/users/migrations/0002_auto_20211214_0319.py
ScastrillonE/modularwebapp
2635bfbb6984d5966651010d547f4537ac6f6860
[ "MIT" ]
23
2021-12-23T06:24:05.000Z
2022-03-31T06:27:16.000Z
modularwebapplication/users/migrations/0002_auto_20211214_0319.py
ScastrillonE/modularwebapp
2635bfbb6984d5966651010d547f4537ac6f6860
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2021-12-14 03:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='user', options={'verbose_name': 'Person', 've...
21.409091
80
0.566879
45
471
5.822222
0.755556
0.061069
0
0
0
0
0
0
0
0
0
0.061162
0.305732
471
21
81
22.428571
0.740061
0.097665
0
0.266667
1
0
0.182033
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
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
0
0
0
0
0
0
1
93e073979db26528994fb6091bcf7df3a27aed2a
1,869
py
Python
21/aoc2020_21.py
bjrnwnklr/AoC2020
d3a9b03a439c8cf3f21f9a4f8e14794777df524f
[ "MIT" ]
null
null
null
21/aoc2020_21.py
bjrnwnklr/AoC2020
d3a9b03a439c8cf3f21f9a4f8e14794777df524f
[ "MIT" ]
null
null
null
21/aoc2020_21.py
bjrnwnklr/AoC2020
d3a9b03a439c8cf3f21f9a4f8e14794777df524f
[ "MIT" ]
null
null
null
# f_name = 'ex1.txt' f_name = 'input.txt' all_ingredients = set() possible_allergens = dict() recipes = list() with open(f_name, 'r') as f: for i, line in enumerate(f.readlines()): # get a list of the ingredients and record the food recipe as a set of the # ingredients (recipes = [{'aaa', 'bbb'}, ...
32.789474
93
0.654896
270
1,869
4.407407
0.277778
0.228571
0.095798
0.017647
0.185714
0.110084
0.089076
0.089076
0.089076
0.089076
0
0.015961
0.228999
1,869
56
94
33.375
0.809854
0.225789
0
0.058824
0
0
0.027121
0
0
0
0
0
0
1
0
false
0
0
0
0
0.058824
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
93e190f0534f952257546544d9374c0d1b6ecb85
6,628
py
Python
server/dvaapp/operations/retrieval.py
ysglh/DeepVideoAnalytics
ce807cc1595c813250bb4bc7dfc6fb76cd644335
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
3
2019-03-05T00:46:56.000Z
2021-11-26T10:20:40.000Z
server/dvaapp/operations/retrieval.py
jiangxu87/DeepVideoAnalytics
e401b3273782409b2604657514bec293d6aa75b0
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
server/dvaapp/operations/retrieval.py
jiangxu87/DeepVideoAnalytics
e401b3273782409b2604657514bec293d6aa75b0
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
4
2021-09-22T07:47:27.000Z
2022-01-23T14:16:08.000Z
import logging from .approximation import Approximators try: from dvalib import indexer, retriever import numpy as np except ImportError: np = None logging.warning("Could not import indexer / clustering assuming running in front-end mode") from ..models import IndexEntries,QueryResults,Region,Retrieve...
52.603175
117
0.556578
663
6,628
5.346908
0.250377
0.055853
0.035543
0.040621
0.269958
0.242031
0.225106
0.163611
0.142172
0.142172
0
0.002631
0.369191
6,628
126
118
52.603175
0.845252
0.065178
0
0.214953
0
0
0.0646
0.006852
0
0
0
0.007937
0
0
null
null
0
0.065421
null
null
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
1
0
0
0
0
0
0
0
0
1
93f3963e58b168bab1d33d437ee1ead85db5ba8b
1,734
py
Python
src/common/migrations/0004_auto_20201225_1634.py
dsc-upt/django-template-project
15b636259255b1253ad9c3f7d866c024791e7463
[ "Apache-2.0" ]
6
2020-12-25T20:46:51.000Z
2022-01-27T20:52:13.000Z
src/common/migrations/0004_auto_20201225_1634.py
dsc-upt/django-template-project
15b636259255b1253ad9c3f7d866c024791e7463
[ "Apache-2.0" ]
3
2021-01-26T12:20:14.000Z
2022-01-27T20:45:28.000Z
src/common/migrations/0004_auto_20201225_1634.py
dsc-upt/django-template-project
15b636259255b1253ad9c3f7d866c024791e7463
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-25 14:34 from django.db import migrations import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('common', '0003_example_image'), ] operations = [ migrations.RemoveField( model_na...
35.387755
159
0.620531
172
1,734
6.098837
0.372093
0.060057
0.106768
0.13346
0.499523
0.499523
0.348904
0.265014
0.265014
0.163966
0
0.017857
0.257209
1,734
48
160
36.125
0.796584
0.025952
0
0.47619
1
0
0.135151
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.142857
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
0
0
0
0
0
0
1
93ff7966b6e3b1867adab2be581f10ae1bb42dac
1,418
py
Python
filegenerator.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
filegenerator.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
filegenerator.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.http import StreamingHttpResponse from django.utils.text import get_valid_filename from mighty.functions import make_searchable import csv class StreamingBuffer: def write(self, value): return value class FileGenerator: filename = None items = [] fields = () ct_list = { "text/c...
33.761905
91
0.653738
178
1,418
5.016854
0.337079
0.033595
0.035834
0.047032
0.109742
0.109742
0.109742
0.109742
0.109742
0
0
0
0.228491
1,418
41
92
34.585366
0.816271
0
0
0
0
0
0.076869
0.01763
0
0
0
0
0
1
0.176471
false
0
0.117647
0.088235
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9e03d5451cf60a84cb4f9e8c1f6f28304fec0654
2,001
py
Python
setup-cxfreeze.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
null
null
null
setup-cxfreeze.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
null
null
null
setup-cxfreeze.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
null
null
null
import sys from cx_Freeze import setup, Executable build_exe_options = { 'includes': [ 'ninfs', 'ninfs.gui', 'ninfs.mount.cci', 'ninfs.mount.cdn', 'ninfs.mount.cia', 'ninfs.mount.exefs', 'ninfs.mount.nandctr', 'ninfs.mount.nandhac', 'ninfs.mou...
28.585714
107
0.567216
211
2,001
5.251185
0.454976
0.117329
0.032491
0.043321
0.138989
0.090253
0.066787
0
0
0
0
0.038435
0.284858
2,001
69
108
29
0.735849
0.052474
0
0
0
0
0.406547
0.095037
0
0
0
0.014493
0
1
0
false
0
0.032787
0
0.032787
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9e06256e3de4ea46daa3c2a325f6f40fdf6f6c3e
1,243
py
Python
CC1002-IntroduccionProgramacion/tarea1.py
jcrucesdeveloper/ProgramacionUChile
af01e6efa885fae6923e9b27c895cc91275c5101
[ "MIT" ]
2
2020-09-02T00:35:33.000Z
2020-09-02T02:33:40.000Z
CC1002-IntroduccionProgramacion/tarea1.py
jcrucesdeveloper/ProgramacionUChile
af01e6efa885fae6923e9b27c895cc91275c5101
[ "MIT" ]
null
null
null
CC1002-IntroduccionProgramacion/tarea1.py
jcrucesdeveloper/ProgramacionUChile
af01e6efa885fae6923e9b27c895cc91275c5101
[ "MIT" ]
null
null
null
# Evaluacion de expresiones print(3+5) print(3+2*5) print((3+2)*5) print(2**3) print(4**0.5) print(10%3) print('abra' + 'cadabra') print('ja'*3) print(1+2) print(1.0+2.0) print(1.0+2) print(1/2) print(1//2) print(1.0//2.0) print('En el curso hay ' + str(30) + ' alumnos') print('100'+'1') print(int('100') +1) # Variabl...
17.757143
67
0.630732
222
1,243
3.531532
0.373874
0.045918
0.035714
0.045918
0.155612
0.091837
0.053571
0.053571
0.053571
0
0
0.078332
0.209171
1,243
69
68
18.014493
0.719227
0.189863
0
0.171429
0
0
0.116883
0
0
0
0
0
0
1
0
false
0
0
0
0
0.657143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
9e06677ec99a91a93bc7de72003c42a908b60733
2,343
py
Python
engine/args/clients/sync.py
wezzyofficial/discord_soft
1fdbeffa2b4511a95e147fd7bac09a83d1546a7b
[ "MIT" ]
null
null
null
engine/args/clients/sync.py
wezzyofficial/discord_soft
1fdbeffa2b4511a95e147fd7bac09a83d1546a7b
[ "MIT" ]
null
null
null
engine/args/clients/sync.py
wezzyofficial/discord_soft
1fdbeffa2b4511a95e147fd7bac09a83d1546a7b
[ "MIT" ]
null
null
null
import requests from engine import console from engine.functions import handler from engine.functions.configs import load_chat_config_file from engine.models.client import Chats, Accounts, Avatars, Nicks, Proxys from engine.functions.client.caches import update_servers, update_accounts, update_avatars, update_nicks, up...
41.105263
119
0.585147
258
2,343
5.108527
0.275194
0.061457
0.063733
0.068285
0.054628
0
0
0
0
0
0
0.000611
0.301323
2,343
57
120
41.105263
0.80452
0.114383
0
0
0
0
0.115198
0
0
0
0
0
0
1
0.025641
false
0.051282
0.153846
0
0.179487
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9e074fb3b7fe669aded11c118b82a2f0d1eee222
5,297
py
Python
wall_app/settings/settings.py
viral85/test_wall_app
5487297e3dcd5971c4f8778fe0bc49e35efad587
[ "MIT" ]
null
null
null
wall_app/settings/settings.py
viral85/test_wall_app
5487297e3dcd5971c4f8778fe0bc49e35efad587
[ "MIT" ]
null
null
null
wall_app/settings/settings.py
viral85/test_wall_app
5487297e3dcd5971c4f8778fe0bc49e35efad587
[ "MIT" ]
null
null
null
""" Django settings for wall_app project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os f...
26.61809
93
0.654333
569
5,297
5.956063
0.442882
0.057539
0.045441
0.051638
0.167896
0.124816
0.078784
0.078784
0.035409
0
0
0.020009
0.198037
5,297
198
94
26.752525
0.777778
0.195582
0
0.013986
1
0.013986
0.500708
0.322474
0
0
0
0
0
1
0
false
0.048951
0.013986
0
0.013986
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
0
0
0
0
0
0
1
9e0df022f56bc230d2e6473ce88c0d5ea103355e
13,468
py
Python
src/atxt/gui/window.py
jonaprieto/python-atxt
ee5cbf2bcc7dbe0f89251a64acce1147ccb84dc4
[ "BSD-2-Clause" ]
null
null
null
src/atxt/gui/window.py
jonaprieto/python-atxt
ee5cbf2bcc7dbe0f89251a64acce1147ccb84dc4
[ "BSD-2-Clause" ]
null
null
null
src/atxt/gui/window.py
jonaprieto/python-atxt
ee5cbf2bcc7dbe0f89251a64acce1147ccb84dc4
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Jonathan S. Prieto # @Date: 2015-03-20 23:17:55 # @Last Modified by: d555 # @Last Modified time: 2015-11-11 10:29:54 import logging import os import sys from PySide import QtGui, QtCore from PySide.QtGui import ( QFileDialog, QGridLayout, QGroupB...
33.090909
98
0.612712
1,519
13,468
5.177749
0.189598
0.023141
0.028608
0.01869
0.272982
0.128926
0.079593
0.070184
0.070184
0.070184
0
0.014835
0.279255
13,468
406
99
33.172414
0.795405
0.060811
0
0.199367
0
0
0.031632
0
0
0
0
0
0
0
null
null
0.003165
0.037975
null
null
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
1
0
0
0
0
0
0
0
0
1
9e127878a000c83a840ed545ea98bf1bc44de813
393
py
Python
website/music/migrations/0003_remove_album_album_logo.py
10yogi/Django-Csong
6fdab31cb32f387a20e930eca16ddde78aab916b
[ "MIT" ]
null
null
null
website/music/migrations/0003_remove_album_album_logo.py
10yogi/Django-Csong
6fdab31cb32f387a20e930eca16ddde78aab916b
[ "MIT" ]
null
null
null
website/music/migrations/0003_remove_album_album_logo.py
10yogi/Django-Csong
6fdab31cb32f387a20e930eca16ddde78aab916b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-10 17:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('music', '0002_song_is_favorite'), ] operations = [ migrations.RemoveField( ...
19.65
49
0.613232
44
393
5.25
0.818182
0.077922
0
0
0
0
0
0
0
0
0
0.076655
0.26972
393
19
50
20.684211
0.728223
0.175573
0
0
1
0
0.127726
0.065421
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
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
0
0
0
0
0
0
1
9e1480aa3fdcd79d09e21b990f1fb17a1dc40a77
227
py
Python
na_population.py
siddarta-weis/data-visualization
a4ad4f1eb94db769eae1bff44acc3ca02c10b782
[ "BSD-2-Clause" ]
null
null
null
na_population.py
siddarta-weis/data-visualization
a4ad4f1eb94db769eae1bff44acc3ca02c10b782
[ "BSD-2-Clause" ]
null
null
null
na_population.py
siddarta-weis/data-visualization
a4ad4f1eb94db769eae1bff44acc3ca02c10b782
[ "BSD-2-Clause" ]
null
null
null
from pygal_maps_world import maps wm = maps.World() wm.title = 'North America' wm.add('North America', {'ca': 34126000, 'us': 309349000, 'mx': 113423000}) wm.add("Teste", {'br': 202000000}) wm.render_to_file('na_america.svg')
28.375
75
0.700441
35
227
4.4
0.685714
0.116883
0
0
0
0
0
0
0
0
0
0.172414
0.105727
227
8
76
28.375
0.586207
0
0
0
0
0
0.232456
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e14f69ed3645393ddd3a034a52536c5b4cc1716
482
py
Python
From Another World/game_stats.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
From Another World/game_stats.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
From Another World/game_stats.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
class GameStats(): """TRACK STATISTICS FOR FROM ANOTHER WORLD""" def __init__(self, ai_settings): """INITIALIZE STATISTICS""" self.ai_settings = ai_settings self.reset_stats() # START GAME IN AN INACTIVE STATE self.game_active = False def reset_stats(self): ...
26.777778
67
0.630705
59
482
4.932203
0.627119
0.137457
0.14433
0
0
0
0
0
0
0
0
0.005747
0.278008
482
17
68
28.352941
0.83046
0.307054
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9e1e2eef890d1a95fb0ff247c3d91af45e03b951
1,435
py
Python
nturl2path.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
nturl2path.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
nturl2path.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: nturl2path def url2pathname(url): import string, urllib url = url.replace(':', '|') if '|' not in url: if url[:4] ...
29.285714
104
0.520557
183
1,435
4.076503
0.349727
0.075067
0.024129
0.037534
0.150134
0.150134
0.104558
0.104558
0.104558
0
0
0.060039
0.291986
1,435
49
105
29.285714
0.674213
0.129617
0
0.205128
0
0
0.046586
0
0
0
0
0
0
0
null
null
0
0.051282
null
null
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
1
0
0
0
0
0
0
0
0
1
9e2262c3f16767e61193616647a1e8d8fdc5067e
1,724
py
Python
src/model/base.py
Ikigaisys/Flask-restx-Boilerplate
535c899959f8d8304a8f2e5925cb6309be017db4
[ "MIT" ]
null
null
null
src/model/base.py
Ikigaisys/Flask-restx-Boilerplate
535c899959f8d8304a8f2e5925cb6309be017db4
[ "MIT" ]
null
null
null
src/model/base.py
Ikigaisys/Flask-restx-Boilerplate
535c899959f8d8304a8f2e5925cb6309be017db4
[ "MIT" ]
2
2022-02-23T07:49:55.000Z
2022-02-23T11:56:45.000Z
from __future__ import annotations from datetime import datetime from typing import Dict, Union from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Column, DateTime, Integer from sqlalchemy.ext import declarative db = SQLAlchemy(session_options={"autoflush": False}) def declarative_base(cls): return...
21.55
73
0.586427
193
1,724
5.124352
0.295337
0.072801
0.045501
0.051567
0.17998
0.133468
0
0
0
0
0
0
0.302784
1,724
79
74
21.822785
0.822795
0.084687
0
0.2
0
0
0.006406
0
0
0
0
0
0
1
0.15
false
0
0.15
0.025
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f50b481495822623dba8ef8c1c2cff280b884106
1,792
py
Python
tests/test_generate_hamilton_input_ntp.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
2
2018-06-18T16:31:09.000Z
2021-03-31T20:13:39.000Z
tests/test_generate_hamilton_input_ntp.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
99
2016-02-15T16:21:51.000Z
2022-03-11T23:43:26.000Z
tests/test_generate_hamilton_input_ntp.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
null
null
null
from itertools import cycle from pyclarity_lims.entities import ReagentLot from scripts.generate_hamilton_input_ntp import GenerateHamiltonInputNTP from tests.test_common import TestEPP, FakeEntitiesMaker class TestGenerateHamiltonInputNTP(TestEPP): def setUp(self): self.epp = GenerateHamiltonInputNTP...
43.707317
112
0.674107
218
1,792
5.302752
0.417431
0.042388
0.033737
0.046713
0.100346
0.050173
0
0
0
0
0
0.072805
0.218192
1,792
40
113
44.8
0.75232
0.061384
0
0
1
0
0.277576
0.164848
0
0
0
0
0.103448
1
0.068966
false
0
0.137931
0
0.241379
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
0
0
0
0
0
0
1
f5216bcf773c031e62d8458e214734da967bdfbf
2,133
py
Python
mtl-sequence-tagging-framework/src/shared_modules/config/BaseConfig.py
UKPLab/germeval2017-sentiment-detection
6e652353c900c9b193029f483ed527e369aad500
[ "BSD-3-Clause" ]
11
2017-10-25T08:30:21.000Z
2022-03-05T04:00:57.000Z
src/config/BaseConfig.py
UKPLab/thesis2018-tk_mtl_sequence_tagging
c2041097b1f6f895183d14ef06f60632bc30a34f
[ "Apache-2.0" ]
7
2020-01-28T22:26:24.000Z
2022-02-09T23:43:33.000Z
src/config/BaseConfig.py
UKPLab/thesis2018-tk_mtl_sequence_tagging
c2041097b1f6f895183d14ef06f60632bc30a34f
[ "Apache-2.0" ]
1
2018-04-02T16:12:42.000Z
2018-04-02T16:12:42.000Z
"""Abstract class for configurations.""" from abc import ABCMeta, abstractmethod, abstractproperty class BaseConfig(object): """Abstract class for configurations. All configuration classes need to inherit from this base class. """ __metaclass__ = ABCMeta @abstractmethod def prepare(self): ...
32.318182
101
0.6376
239
2,133
5.640167
0.317992
0.041543
0.067507
0.151335
0.450297
0.422107
0.181751
0.048961
0
0
0
0
0.289733
2,133
65
102
32.815385
0.889769
0.421003
0
0.285714
0
0
0.298675
0
0
0
0
0
0
1
0.285714
false
0
0.047619
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f5253e7c7009d58bb79427517820e0b261c8148f
948
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/system_wide_roles/migrations/0002_add_system_wide_student_support_role.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/system_wide_roles/migrations/0002_add_system_wide_student_support_role.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/system_wide_roles/migrations/0002_add_system_wide_student_support_role.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
# Generated by Django 1.11.22 on 2019-07-11 11:26 from django.db import migrations from openedx.core.djangoapps.system_wide_roles.constants import STUDENT_SUPPORT_ADMIN_ROLE def create_roles(apps, schema_editor): """Create the system wide student support roles if they do not already exist.""" SystemWideRol...
29.625
90
0.754219
115
948
5.965217
0.46087
0.087464
0.087464
0.100583
0.43586
0.314869
0.221574
0.221574
0.221574
0.221574
0
0.026217
0.155063
948
31
91
30.580645
0.830212
0.17827
0
0.117647
1
0
0.160156
0.057292
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.411765
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
0
0
0
0
0
0
1
f525e35a256bd811eb3d13467831883f96e93ad6
1,471
py
Python
set/set.py
kazenetu/python-practice
05c81875b1d00d81359d8774482ba4a69013feff
[ "MIT" ]
null
null
null
set/set.py
kazenetu/python-practice
05c81875b1d00d81359d8774482ba4a69013feff
[ "MIT" ]
null
null
null
set/set.py
kazenetu/python-practice
05c81875b1d00d81359d8774482ba4a69013feff
[ "MIT" ]
null
null
null
# -- coding: utf-8 -- #セット設定 set_a = {1,2,3,1,'a',4,'a'} set_b = {2,3,5,'a',4,'a'} set_c = {2,5,'b'} #union(重複分を除いたセットを作成) print(set_a.union(set_b)) """ [出力] set(['a', 1, 2, 3, 4, 5]) """ print(set_a.union(set_b,set_c)) """ [出力] set(['a', 1, 2, 3, 4, 5, 'b']) """ #intersection(セットすべてで重複する要素のセットを作成) print(set_a.inte...
14.858586
78
0.639701
247
1,471
3.578947
0.1417
0.126697
0.10181
0.040724
0.688914
0.397059
0.024887
0.024887
0
0
0
0.030967
0.099932
1,471
98
79
15.010204
0.636707
0.121686
0
0
0
0
0.164822
0.127921
0
0
0
0
0
1
0
false
0
0
0
0
0.736842
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
f52e7415b026da7a8ab020f38e84c9fb08a121c8
2,401
py
Python
INBa/2015/Ermashov_A_V/task_10_5.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ermashov_A_V/task_10_5.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ermashov_A_V/task_10_5.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №10, Вариант 5 #Напишите программу "Генератор персонажей" для игры. Пользователю должно быть предоставлено 30 пунктов, которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но и возв...
46.173077
372
0.747189
337
2,401
5.317507
0.403561
0.049107
0.03125
0.044643
0.537388
0.470424
0.470424
0.470424
0.40346
0.40346
0
0.014728
0.151604
2,401
52
373
46.173077
0.863525
0.172428
0
0.478261
0
0.021739
0.558245
0.01059
0
0
0
0
0
0
null
null
0
0
null
null
0.195652
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
1
0
0
0
0
0
0
0
0
1
f5364dfa98d02522b0918e596132f097e9fd121a
1,709
py
Python
menus/migrations/0001_initial.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
1
2019-03-06T19:46:18.000Z
2019-03-06T19:46:18.000Z
menus/migrations/0001_initial.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
2
2020-06-05T19:41:06.000Z
2021-06-10T21:05:53.000Z
menus/migrations/0001_initial.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.1.7 on 2019-06-29 21:20 from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SystemMenu', ...
46.189189
171
0.624927
180
1,709
5.833333
0.427778
0.073333
0.085714
0.090476
0.165714
0.165714
0.134286
0.104762
0.104762
0.104762
0
0.021423
0.235225
1,709
36
172
47.472222
0.781943
0.026331
0
0
1
0
0.111913
0
0
0
0
0
0
1
0
false
0
0.103448
0
0.241379
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
0
0
0
0
0
0
1
f544f7886576310ad22b29656e7ac7aae1da7d9a
2,855
py
Python
test_fen.py
lesliejohng/KISS-chess
4ebe130ea422ddd6d8f17ad9168bec2e73f8b7a7
[ "MIT" ]
null
null
null
test_fen.py
lesliejohng/KISS-chess
4ebe130ea422ddd6d8f17ad9168bec2e73f8b7a7
[ "MIT" ]
null
null
null
test_fen.py
lesliejohng/KISS-chess
4ebe130ea422ddd6d8f17ad9168bec2e73f8b7a7
[ "MIT" ]
null
null
null
import pytest from fen import Fen import chess import mock startingFen = 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1' # -------------------- tests: non-string fen ---------------------------------- def test_missingFen(): test = Fen() # nothing passed assert test.fen == startingFen def test_non...
40.211268
106
0.63993
406
2,855
4.470443
0.219212
0.084848
0.131129
0.15427
0.666116
0.627548
0.627548
0.566391
0.543251
0.543251
0
0.082343
0.174781
2,855
70
107
40.785714
0.688031
0.281961
0
0.307692
0
0.102564
0.464532
0.359113
0
0
0
0
0.282051
1
0.282051
false
0
0.102564
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f54c1c22e5582202321505f9dd1edd3046260ec3
703
py
Python
Python Advanced/3. Multidimensional Lists/Exercise/02. Diagonal Difference.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Advanced/3. Multidimensional Lists/Exercise/02. Diagonal Difference.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Advanced/3. Multidimensional Lists/Exercise/02. Diagonal Difference.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
def read_matrix(): rows_count = int(input()) matrix = [] for _ in range(rows_count): row = [int(r) for r in input().split(' ')] matrix.append(row) return matrix def get_primary_diagonal_sum(matrix): p_d_sum = 0 for i in range(len(matrix)): p_d_sum += matrix[i][i] ...
18.025641
59
0.668563
108
703
4.009259
0.268519
0.203233
0.166282
0.096998
0.374134
0.115473
0.115473
0.115473
0.115473
0
0
0.005484
0.221906
703
38
60
18.5
0.786106
0
0
0.095238
0
0
0.001425
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.047619
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f55230e6e0a0ee8c33b8124fd882e26108d693ad
4,946
py
Python
src/baskerville/util/enums.py
deflect-ca/baskerville
9659f4b39ab66fcf5329a4eccff15e97245b04f0
[ "CC-BY-4.0" ]
2
2021-12-03T11:26:38.000Z
2022-01-12T22:24:29.000Z
src/baskerville/util/enums.py
deflect-ca/baskerville
9659f4b39ab66fcf5329a4eccff15e97245b04f0
[ "CC-BY-4.0" ]
3
2022-01-19T15:17:37.000Z
2022-03-22T04:55:22.000Z
src/baskerville/util/enums.py
deflect-ca/baskerville
9659f4b39ab66fcf5329a4eccff15e97245b04f0
[ "CC-BY-4.0" ]
null
null
null
# Copyright (c) 2020, eQualit.ie inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from enum import Enum class BaseStrEnum(Enum): def __str__(self): return self.value def __eq__(self, othe...
28.589595
120
0.690457
565
4,946
5.833628
0.39292
0.021845
0.024272
0.036408
0.165959
0.145328
0.120146
0.095874
0.065534
0.065534
0
0.003893
0.220987
4,946
173
121
28.589595
0.851544
0.054387
0
0.07874
0
0
0.325526
0.053287
0
0
0
0
0
1
0.03937
false
0
0.007874
0.015748
0.897638
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f5609ee46f20544b19bfe7bb5ef935548e032d05
927
py
Python
mulsite/tests/factories.py
DjangoBoston/django-mulsite
1a4c0e710fa89cbdeda1f0d9070588cdde0878db
[ "MIT" ]
null
null
null
mulsite/tests/factories.py
DjangoBoston/django-mulsite
1a4c0e710fa89cbdeda1f0d9070588cdde0878db
[ "MIT" ]
4
2021-03-19T01:05:57.000Z
2022-02-10T08:23:38.000Z
mulsite/tests/factories.py
DjangoBoston/django-mulsite
1a4c0e710fa89cbdeda1f0d9070588cdde0878db
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.sites.models import Site import factory from core.models import SiteUser class UserFactory(factory.DjangoModelFactory): class Meta: model = get_user_model() username = factory.Sequence(lambda n: 'user{}'.format(n)) password = f...
27.264706
81
0.718447
108
927
6.092593
0.398148
0.113982
0.136778
0.155015
0.256839
0
0
0
0
0
0
0.001305
0.173679
927
33
82
28.090909
0.857702
0
0
0.130435
0
0
0.072354
0
0
0
0
0
0
1
0
false
0.043478
0.173913
0
0.869565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f5623fb02a6b1a1e3ac99b5dce8f06c7b3348623
341
py
Python
generic/templatetags/dictionary.py
vicseven/TableView-GridView
aac6cbbc7c3129ba2dece31102e9ddf7c912668d
[ "BSD-3-Clause" ]
1
2017-03-30T03:05:23.000Z
2017-03-30T03:05:23.000Z
generic/templatetags/dictionary.py
vicseven/TableView-GridView
aac6cbbc7c3129ba2dece31102e9ddf7c912668d
[ "BSD-3-Clause" ]
null
null
null
generic/templatetags/dictionary.py
vicseven/TableView-GridView
aac6cbbc7c3129ba2dece31102e9ddf7c912668d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.template import Library register = Library() @register.filter def get_item(dictionary, key): tmp = dictionary.get(key) if tmp == None: return '' else: return tmp @register.filter def get_value(value): if value is None: return '' else: ...
15.5
35
0.604106
42
341
4.857143
0.52381
0.147059
0.166667
0.196078
0
0
0
0
0
0
0
0.004098
0.284457
341
21
36
16.238095
0.831967
0.061584
0
0.4
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.466667
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
0
0
0
0
0
0
0
1
f56d90b915f5b7d9ad78bf9ff5c211eacfdbf44a
1,710
py
Python
tests/cif-governance/test_change_quorum.py
matnad/cif-esports-trophy
eedf360e9c30e2d32dcf1eebdab8ff983c19d665
[ "MIT" ]
null
null
null
tests/cif-governance/test_change_quorum.py
matnad/cif-esports-trophy
eedf360e9c30e2d32dcf1eebdab8ff983c19d665
[ "MIT" ]
null
null
null
tests/cif-governance/test_change_quorum.py
matnad/cif-esports-trophy
eedf360e9c30e2d32dcf1eebdab8ff983c19d665
[ "MIT" ]
null
null
null
import brownie CHANGE_QUORUM = 6 def test_change_quorum(gov, accounts): assert gov.quorum() == 50 new_quorum = 75 tx = gov.changeQuorum(new_quorum, {'from': accounts[0]}) assert tx.return_value == 1 # Verify Tx State assert tx.events["Submission"]["transactionId"] == 1 assert tx.events[...
32.264151
70
0.671345
228
1,710
4.921053
0.285088
0.071301
0.044563
0.071301
0.146168
0
0
0
0
0
0
0.033165
0.188889
1,710
52
71
32.884615
0.775775
0.065497
0
0
0
0
0.169182
0
0
0
0
0
0.617647
1
0.058824
false
0
0.029412
0
0.088235
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
1
0
0
0
0
0
0
0
0
0
1
f5713785423083f8f5465f4c3d81602c304b6b25
322
py
Python
home/migrations/0016_rename_logs_log.py
SoumyaRanjanPatnaik/Health-And-Safety-Dashboard
ad5ba26f280db0f199a0a4598959c0ec0b4d6515
[ "MIT" ]
1
2021-07-17T07:55:48.000Z
2021-07-17T07:55:48.000Z
home/migrations/0016_rename_logs_log.py
SoumyaRanjanPatnaik/Health-And-Safety-Dashboard
ad5ba26f280db0f199a0a4598959c0ec0b4d6515
[ "MIT" ]
null
null
null
home/migrations/0016_rename_logs_log.py
SoumyaRanjanPatnaik/Health-And-Safety-Dashboard
ad5ba26f280db0f199a0a4598959c0ec0b4d6515
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-05 13:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('home', '0015_auto_20210805_1254'), ] operations = [ migrations.RenameModel( old_name='Logs', new_name='Log', ), ...
17.888889
47
0.583851
36
322
5.083333
0.861111
0
0
0
0
0
0
0
0
0
0
0.137778
0.301242
322
17
48
18.941176
0.675556
0.139752
0
0
1
0
0.123636
0.083636
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
0
0
0
0
0
0
1
f572273499c4cc1c7321a313ec2a2262a72a105b
1,953
py
Python
addons/blender-addon-fbx-bundle/modifier.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
2
2021-12-21T16:38:58.000Z
2022-01-08T00:56:35.000Z
addons/blender-addon-fbx-bundle/modifier.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
addons/blender-addon-fbx-bundle/modifier.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
import bpy import bmesh import operator import mathutils from mathutils import Vector import imp from . import op_modifier_apply imp.reload(op_modifier_apply) from . import modifiers imp.reload(modifiers) class Settings(bpy.types.PropertyGroup): active: bpy.props.BoolProperty ( name="Active", default=False )...
21.461538
113
0.682028
266
1,953
4.879699
0.300752
0.032357
0.046225
0.032357
0.190293
0.154083
0.050847
0.050847
0
0
0
0.001193
0.141321
1,953
90
114
21.7
0.772809
0.050179
0
0.181818
0
0
0.2
0.088108
0
0
0
0
0
1
0.181818
false
0.036364
0.181818
0.090909
0.563636
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f5741a4ea190f65f51f81f0b628c6d9123704664
848
py
Python
main.py
bakulrujak/hookcommander
12106fb3c5ca53c0aea30fdc1e69bda60d770e21
[ "MIT" ]
null
null
null
main.py
bakulrujak/hookcommander
12106fb3c5ca53c0aea30fdc1e69bda60d770e21
[ "MIT" ]
null
null
null
main.py
bakulrujak/hookcommander
12106fb3c5ca53c0aea30fdc1e69bda60d770e21
[ "MIT" ]
null
null
null
from utils.config import Config, main from repo import aws, jaguar from urllib import parse from flask import Flask, request, jesonify app = Flask('__name__') @app.route('/') @app.route('/index') def index(): return "Hello home!" @app.route('/get-instances/<string:tag_name>', methods=['GET']) def getIntances(tag_na...
21.2
63
0.689858
125
848
4.504
0.44
0.085258
0.042629
0
0
0
0
0
0
0
0
0.004049
0.126179
848
39
64
21.74359
0.755735
0
0
0
0
0
0.179245
0.069575
0
0
0
0
0
1
0.15625
false
0
0.125
0.125
0.46875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f5770650bdc3e509c0c46e73fd0ce8e55210673d
13,654
py
Python
earth/weather/weatherbug.py
justquick/python-earth
ced0d1fff7c2de77df5b51ea490137b0d84d1d96
[ "MIT" ]
2
2017-12-18T13:12:48.000Z
2020-01-21T04:18:03.000Z
earth/weather/weatherbug.py
justquick/python-earth
ced0d1fff7c2de77df5b51ea490137b0d84d1d96
[ "MIT" ]
null
null
null
earth/weather/weatherbug.py
justquick/python-earth
ced0d1fff7c2de77df5b51ea490137b0d84d1d96
[ "MIT" ]
null
null
null
import re import time import urllib from datetime import datetime, timedelta try: from lxml import objectify except ImportError: raise ImportError, "Missing dependency: lxml" try: from SOAPpy import WSDL except ImportError: raise ImportError, "Missing dependency: SOAPpy" from earth.core import * API...
36.121693
78
0.648601
1,598
13,654
5.282854
0.161452
0.06444
0.022388
0.06823
0.489931
0.474295
0.421464
0.391376
0.384743
0.356551
0
0.003494
0.224476
13,654
377
79
36.217507
0.793748
0.243958
0
0.384259
0
0
0.109533
0.011804
0
0
0
0.002653
0
0
null
null
0
0.050926
null
null
0.009259
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
1
0
0
0
0
0
0
0
0
1
f57c339fe2aee93e45598da63277aecb4a27c8c4
806
py
Python
reprobench/managers/local/__init__.py
gorczyca/reprobench
915c729eec488ce85ff8c65b8b36851c43b1b345
[ "MIT" ]
1
2019-05-18T12:18:02.000Z
2019-05-18T12:18:02.000Z
reprobench/managers/local/__init__.py
gorczyca/reprobench
915c729eec488ce85ff8c65b8b36851c43b1b345
[ "MIT" ]
19
2019-03-11T13:35:12.000Z
2019-07-26T06:54:39.000Z
reprobench/managers/local/__init__.py
gorczyca/reprobench
915c729eec488ce85ff8c65b8b36851c43b1b345
[ "MIT" ]
4
2020-09-28T09:24:38.000Z
2022-03-18T12:55:20.000Z
from multiprocessing import cpu_count import click from loguru import logger from reprobench.console.decorators import server_info, common, use_tunneling from .manager import LocalManager @click.command("local") @click.option("-w", "--num-workers", type=int, default=cpu_count(), show_default=True) @click.option( ...
24.424242
86
0.700993
104
806
5.259615
0.490385
0.060329
0.051188
0.073126
0.095064
0
0
0
0
0
0
0.00142
0.126551
806
32
87
25.1875
0.775568
0.031017
0
0
0
0
0.120668
0
0
0
0
0.03125
0
1
0.045455
false
0
0.227273
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f57d0bb2abd14e5981d33ae7c66068576bd94a82
835
py
Python
cit-api/pipeline/tests/models/test_opportunity.py
bcgov/CIT
b9db4f169b52e9a6293b3ee1e61935888074215a
[ "Apache-2.0" ]
10
2020-11-12T15:13:40.000Z
2022-03-05T22:33:08.000Z
cit-api/pipeline/tests/models/test_opportunity.py
bcgov/CIT
b9db4f169b52e9a6293b3ee1e61935888074215a
[ "Apache-2.0" ]
28
2020-07-17T16:33:55.000Z
2022-03-21T16:24:25.000Z
cit-api/pipeline/tests/models/test_opportunity.py
bcgov/CIT
b9db4f169b52e9a6293b3ee1e61935888074215a
[ "Apache-2.0" ]
5
2020-11-02T23:39:53.000Z
2022-03-01T19:09:45.000Z
from django.test import TestCase from django.contrib.gis.geos import Point from ...models import Opportunity, ApprovalStatus class OpportunityModelTest(TestCase): def test_fields(self): approval_status = ApprovalStatus(status_name="Test status", status_description...
49.117647
116
0.639521
87
835
6.022989
0.436782
0.133588
0.198473
0.053435
0.068702
0
0
0
0
0
0
0.042693
0.270659
835
17
117
49.117647
0.817734
0
0
0
0
0
0.078947
0
0
0
0
0
0.285714
1
0.071429
false
0
0.214286
0
0.357143
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
0
0
0
0
0
0
0
0
1
f57da4157fe85f47b8e931e217cc909182596e9d
1,438
py
Python
winrmsh.py
magicalbob/winrmshell
de500b4224e112f729a3f69955f849bcde418927
[ "Apache-2.0" ]
null
null
null
winrmsh.py
magicalbob/winrmshell
de500b4224e112f729a3f69955f849bcde418927
[ "Apache-2.0" ]
null
null
null
winrmsh.py
magicalbob/winrmshell
de500b4224e112f729a3f69955f849bcde418927
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys, winrm def handle_args(): USAGE="Usage: %s {host} {user} {pass}" % (sys.argv[0]) if len(sys.argv) != 4: print(USAGE) sys.exit(-1) WINRM_HOST=sys.argv[1] WINRM_USER=sys.argv[2] WINRM_PASS=sys.argv[3] return WINRM_HOST, WINRM_USER, WINRM_PASS def connect_to_serv...
20.542857
95
0.593185
231
1,438
3.532468
0.316017
0.042892
0.051471
0.066176
0.126225
0.126225
0
0
0
0
0
0.014109
0.211405
1,438
69
96
20.84058
0.705467
0.014604
0
0.042553
0
0
0.103814
0
0
0
0
0
0
1
0.06383
false
0.106383
0.021277
0
0.12766
0.106383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f57fc37260b6a50f784946faff13b8e03d545c09
1,198
py
Python
tests/test_figures.py
weecology/NEON_crown_maps
2da84d36ae5af44631a6d0489ccb29b212f83fd8
[ "MIT" ]
null
null
null
tests/test_figures.py
weecology/NEON_crown_maps
2da84d36ae5af44631a6d0489ccb29b212f83fd8
[ "MIT" ]
34
2020-01-30T05:44:47.000Z
2021-02-08T22:51:57.000Z
tests/test_figures.py
weecology/NEON_crown_maps
2da84d36ae5af44631a6d0489ccb29b212f83fd8
[ "MIT" ]
null
null
null
#test figures #relative path hack just for pytest import os import sys import glob sys.path.append(os.path.dirname(os.getcwd())) from analysis import figures import pytest @pytest.fixture() def client(): client = figures.start_client(debug=True) return client @pytest.fixture() def daskdf(client): daskdf = figures...
26.043478
79
0.733723
166
1,198
5.192771
0.373494
0.048724
0.037123
0.053364
0.259861
0.106729
0.106729
0
0
0
0
0.004776
0.126043
1,198
46
80
26.043478
0.818529
0.156093
0
0.129032
0
0
0.067594
0
0
0
0
0
0.16129
1
0.225806
false
0
0.16129
0
0.451613
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f580441c27adb802f8533be5bd30048375ce85f7
3,464
py
Python
E3_Distill_ESRGAN/libs/dataset.py
DLPerf/GSOC
3fae5fdca06df87ed6d9b4c99b90bbd2970cef3c
[ "MIT" ]
65
2019-07-01T17:24:04.000Z
2022-03-23T13:31:32.000Z
E3_Distill_ESRGAN/libs/dataset.py
DLPerf/GSOC
3fae5fdca06df87ed6d9b4c99b90bbd2970cef3c
[ "MIT" ]
41
2019-06-09T23:49:09.000Z
2021-08-19T08:12:04.000Z
E3_Distill_ESRGAN/libs/dataset.py
DLPerf/GSOC
3fae5fdca06df87ed6d9b4c99b90bbd2970cef3c
[ "MIT" ]
23
2019-06-23T15:09:51.000Z
2022-01-08T19:28:29.000Z
from absl import logging import os from lib import dataset from libs import settings import tensorflow as tf def generate_tf_record( data_dir, raw_data=False, tfrecord_path="serialized_dataset", num_shards=8): teacher_sett = settings.Settings(use_student_settings=False) student_se...
32.990476
73
0.676097
474
3,464
4.647679
0.274262
0.014526
0.016341
0.02315
0.288243
0.288243
0.207444
0.13527
0.098956
0.05901
0
0.006531
0.204388
3,464
104
74
33.307692
0.792816
0
0
0.12766
1
0
0.068995
0
0
0
0
0
0.010638
1
0.085106
false
0
0.053191
0.010638
0.202128
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
0
0
0
0
0
0
1
f581941ebd6565c2b1f1be8c5f0ceb626e82b3c3
422
py
Python
global_finprint/bruv/migrations/0003_auto_20160302_0028.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
global_finprint/bruv/migrations/0003_auto_20160302_0028.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
6
2020-06-05T18:42:32.000Z
2022-01-13T00:48:57.000Z
global_finprint/bruv/migrations/0003_auto_20160302_0028.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-03-02 00:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bruv', '0002_auto_20160201_0329'), ] operations = [ migrations.AlterUniqueTo...
21.1
52
0.611374
46
422
5.413043
0.826087
0
0
0
0
0
0
0
0
0
0
0.101911
0.255924
422
19
53
22.210526
0.691083
0.158768
0
0
1
0
0.107955
0.065341
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
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
0
0
0
0
0
0
1
f587705f89c7409d8e1f7b9d3f5bebff08dfcec9
3,106
py
Python
genomicode/graphviz.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
genomicode/graphviz.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
genomicode/graphviz.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
""" Uses the 1st quadrant in the Cartesian coordinate system. (0, 0, 0) is at the lower left corner of the screen, extending positive to the right and up. TODO: fix this API Functions: make_graph Creates an pygraphviz.AGraph object. layout """ def make_graph( nodes, edges, node2attributes=None, edge2attribu...
33.042553
79
0.625563
435
3,106
4.432184
0.390805
0.010892
0.025934
0.032676
0.101141
0.088693
0.088693
0.073651
0.036307
0
0
0.012461
0.276561
3,106
93
80
33.397849
0.845572
0.556343
0
0.060606
0
0
0.023308
0
0
0
0
0.010753
0
1
0.060606
false
0
0.030303
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f59bd80c38c72a034b8bcf49cab0969f09589f27
1,663
py
Python
src/wheezy/validation/mixin.py
akornatskyy/wheezy.validation
73b8e1887afd367dc83d3face923fb42755ff6e8
[ "MIT" ]
null
null
null
src/wheezy/validation/mixin.py
akornatskyy/wheezy.validation
73b8e1887afd367dc83d3face923fb42755ff6e8
[ "MIT" ]
21
2020-07-18T04:33:44.000Z
2021-07-06T09:42:35.000Z
src/wheezy/validation/mixin.py
akornatskyy/wheezy.validation
73b8e1887afd367dc83d3face923fb42755ff6e8
[ "MIT" ]
null
null
null
""" ``mixin`` module. """ class ErrorsMixin(object): """Used primary by service layer to validate business rules. Requirements: - self.errors Example:: class MyService(ValidationMixin): def __init__(self, repository, errors, locale): # ... def authe...
26.822581
76
0.557426
146
1,663
6.232877
0.369863
0.054945
0.037363
0.041758
0.553846
0.553846
0.553846
0.553846
0.367033
0.228571
0
0
0.330126
1,663
61
77
27.262295
0.816876
0.62718
0
0.4
0
0
0.0587
0
0
0
0
0
0
1
0.3
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f59d1c48993eb482becf1950d3a715328f481c2a
1,348
py
Python
agony/migrations/0001_initial.py
onhan/free-site
f01de27a3cafd09234cddacfd4ca9705b5b9d6e7
[ "BSD-3-Clause" ]
19
2018-01-28T14:35:40.000Z
2020-12-04T03:04:02.000Z
agony/migrations/0001_initial.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
8
2018-06-02T14:28:28.000Z
2021-08-06T10:22:37.000Z
agony/migrations/0001_initial.py
onhan/free-site
f01de27a3cafd09234cddacfd4ca9705b5b9d6e7
[ "BSD-3-Clause" ]
21
2018-02-25T14:07:48.000Z
2020-05-28T23:10:52.000Z
# Generated by Django 2.1.4 on 2019-01-07 12:46 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='QandA', fields=[ ('id', models.AutoField(au...
39.647059
114
0.588279
135
1,348
5.725926
0.459259
0.104787
0.129366
0.155239
0.253558
0.093144
0.093144
0
0
0
0
0.027551
0.272997
1,348
33
115
40.848485
0.761224
0.033383
0
0
1
0
0.126057
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.192308
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
0
0
0
0
0
0
1
f5a78c3edd3c27f6a9d715db2f6a62b32479a61f
1,238
py
Python
second/create_data.py
xuyongzhi/second.pytorch
cfdba3955ccb20824f196cd5dfbb373ed2f71451
[ "MIT" ]
1
2019-05-20T03:43:18.000Z
2019-05-20T03:43:18.000Z
second/create_data.py
pflab-ut/second.pytorch
c7bb659a7937ee62aef8049aeb055a457fcd8fa7
[ "MIT" ]
null
null
null
second/create_data.py
pflab-ut/second.pytorch
c7bb659a7937ee62aef8049aeb055a457fcd8fa7
[ "MIT" ]
null
null
null
import copy from pathlib import Path import pickle import fire import second.data.kitti_dataset as kitti_ds import second.data.nuscenes_dataset as nu_ds from second.data.all_dataset import create_groundtruth_database def kitti_data_prep(root_path): kitti_ds.create_kitti_info_file(root_path) kitti...
38.6875
103
0.731826
180
1,238
4.711111
0.361111
0.113208
0.033019
0.056604
0.205189
0
0
0
0
0
0
0.015459
0.163974
1,238
31
104
39.935484
0.803865
0.172859
0
0
0
0
0.19332
0.021255
0
0
0
0
0
1
0.090909
false
0
0.318182
0
0.409091
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1918e07b7a1ec18dbbf42d121017a1c5de8e5d37
2,714
py
Python
test/UDLI.py
KAIST-NCL/IDLE
e88aef411ba43a42487202286d743486484f5e17
[ "BSD-2-Clause" ]
7
2018-11-21T09:19:51.000Z
2022-01-27T11:55:43.000Z
test/UDLI.py
KAIST-NCL/IDLE
e88aef411ba43a42487202286d743486484f5e17
[ "BSD-2-Clause" ]
null
null
null
test/UDLI.py
KAIST-NCL/IDLE
e88aef411ba43a42487202286d743486484f5e17
[ "BSD-2-Clause" ]
3
2019-03-11T11:10:29.000Z
2021-04-16T16:07:17.000Z
# -*- coding: utf-8 -*- from src.DLMDL.DLNetwork import DLNetwork from src.Serializer.serializer import JsonSerialize import importlib import argparse from src.util.signal_handler import signal_handler class UDLI: def __init__(self): self.args = arg_parser().parse_args() self.handler = signal_han...
29.182796
116
0.607959
300
2,714
5.363333
0.366667
0.039155
0.073959
0.031697
0.144189
0.041019
0.041019
0
0
0
0
0.000502
0.26566
2,714
93
117
29.182796
0.806824
0.084746
0
0.205128
0
0
0.18156
0.011779
0
0
0
0.010753
0
1
0.064103
false
0
0.089744
0.012821
0.192308
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1919f09c98158136aa2a7acbb53a8dfe9887fca9
473
py
Python
lindy_bar_code_scanner.py
hacker-h/pyusb-keyboard-alike
ce892fbd8dac5ad72af628c993a3e12c076485d6
[ "MIT" ]
47
2015-02-09T11:39:03.000Z
2022-03-29T00:55:21.000Z
lindy_bar_code_scanner.py
hacker-h/pyusb-keyboard-alike
ce892fbd8dac5ad72af628c993a3e12c076485d6
[ "MIT" ]
12
2015-03-03T21:13:28.000Z
2021-10-02T18:05:18.000Z
lindy_bar_code_scanner.py
hacker-h/pyusb-keyboard-alike
ce892fbd8dac5ad72af628c993a3e12c076485d6
[ "MIT" ]
23
2015-02-19T13:46:32.000Z
2021-07-31T18:57:55.000Z
from keyboard_alike import reader class BarCodeReader(reader.Reader): """ This class supports Lindy USB bar code scanner configured to work as a keyboard http://www.lindy.co.uk/accessories-c9/input-devices-c357/barcode-scanners-c360/barcode-scanner-ccd-usb-p1352 """ pass if __name__ == "__main__...
27.823529
112
0.716702
62
473
5.306452
0.790323
0
0
0
0
0
0
0
0
0
0
0.055696
0.164905
473
16
113
29.5625
0.777215
0.397463
0
0
0
0
0.030189
0
0
0
0.045283
0
0
1
0
false
0.125
0.125
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
192273c228bf90742e509b70a5d9872b74d7fdb7
1,282
py
Python
event.py
Ratismal/watch
3bbd4d6b4f718a236085e1f25966fd4083f502a8
[ "Apache-2.0" ]
2
2021-01-08T05:36:34.000Z
2021-05-05T16:18:30.000Z
event.py
Ratismal/watch
3bbd4d6b4f718a236085e1f25966fd4083f502a8
[ "Apache-2.0" ]
6
2021-03-01T05:01:29.000Z
2021-05-05T16:18:21.000Z
event.py
Ratismal/watch
3bbd4d6b4f718a236085e1f25966fd4083f502a8
[ "Apache-2.0" ]
3
2021-01-24T12:13:37.000Z
2021-05-05T16:00:38.000Z
class Event(): def __init__(self, guild_id, event_type, target_id, target_name, actor, reason, timestamp, role_id=None, role_name=None, count=None, message_id=None): self.guild_id = guild_id self.event_type = event_type self.target_id = target_id self.target_name = target_name ...
49.307692
303
0.663027
193
1,282
4.181347
0.15544
0.081784
0.039653
0.039653
0.179678
0
0
0
0
0
0
0
0.210608
1,282
26
304
49.307692
0.797431
0
0
0.181818
0
0
0.071707
0
0
0
0
0
0
1
0.227273
false
0
0
0.090909
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1923f0ddd1d85b9b5d0d87093c701d52c5a9b9eb
437
py
Python
hackerrank/time_conversion.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
hackerrank/time_conversion.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
hackerrank/time_conversion.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
import os import sys from datetime import datetime def timeConversion(s): if not s.endswith("PM"): return s[:8] elif s.endswith("AM") and s.startwith("00"): return s[:8] else: return str(int(s[0:2]) + 12) + s[2:8] def timeConversion1(s): my_date = datetime.strptime(s, '%I:%M:...
19
48
0.613272
70
437
3.8
0.528571
0.112782
0.06015
0
0
0
0
0
0
0
0
0.052023
0.208238
437
22
49
19.863636
0.716763
0
0
0.125
0
0
0.077803
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.5625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
19256f81071d3b1eca9bc5ee32733ce8d60dc93d
7,454
py
Python
main.py
Mattlk13/Generate-Continous-Data-Using-RNN-Tensorflow
85ee72484aad8935ad7d00d146cbd1fcfcde0d92
[ "MIT" ]
2
2021-03-16T21:47:55.000Z
2021-03-20T10:44:24.000Z
main.py
Mattlk13/Generate-Continous-Data-Using-RNN-Tensorflow
85ee72484aad8935ad7d00d146cbd1fcfcde0d92
[ "MIT" ]
null
null
null
main.py
Mattlk13/Generate-Continous-Data-Using-RNN-Tensorflow
85ee72484aad8935ad7d00d146cbd1fcfcde0d92
[ "MIT" ]
3
2018-05-27T19:37:58.000Z
2020-02-06T18:22:07.000Z
import tensorflow as tf import numpy as np from model import * from utils import * import random import time import matplotlib.pyplot as plt import matplotlib as mp mp.rcParams['lines.linewidth'] = .5 # This program originally created by http://www.cs.utoronto.ca/~ilya/pubs/2011/LANG-RNN.pdf # So I write a similar pr...
32.837004
138
0.626643
1,037
7,454
4.395371
0.313404
0.017552
0.035103
0.052655
0.216104
0.149627
0.098289
0.083809
0.083809
0.062308
0
0.019204
0.231554
7,454
227
139
32.837004
0.776536
0.230883
0
0.126984
0
0
0.171657
0.014516
0
0
0
0
0
0
null
null
0
0.063492
null
null
0.063492
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
1
0
0
0
0
0
0
0
0
1
1929270d4a0b0da32ec26aac25140a67abdfb8e1
17,033
py
Python
logger.py
smalik169/recursive-convolutional-autoencoder
ef91cfe94b71680b4c614b024fec23b8a09f825b
[ "MIT" ]
3
2018-08-06T05:50:56.000Z
2021-07-05T10:19:37.000Z
logger.py
smalik169/recursive-convolutional-autoencoder
ef91cfe94b71680b4c614b024fec23b8a09f825b
[ "MIT" ]
null
null
null
logger.py
smalik169/recursive-convolutional-autoencoder
ef91cfe94b71680b4c614b024fec23b8a09f825b
[ "MIT" ]
2
2018-02-04T17:32:21.000Z
2018-11-05T16:19:42.000Z
# Code referenced from https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514 # and https://github.com/yunjey/pytorch-tutorial/blob/master/tutorials/04-utils/tensorboard/logger.py import datetime import glob import itertools import os import shutil import sys import time from collections import defaultdict im...
38.711364
101
0.595843
2,186
17,033
4.441446
0.158737
0.023689
0.014832
0.003605
0.223916
0.172314
0.116181
0.08693
0.073952
0.051293
0
0.007521
0.273998
17,033
439
102
38.799544
0.777616
0.105442
0
0.105096
0
0.003185
0.108578
0.004932
0
0
0
0
0.012739
0
null
null
0
0.038217
null
null
0.070064
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
1
0
0
0
0
0
0
0
0
1
192d741415726c564013e94b97755624c889a494
869
py
Python
restless_dj_utils/rest_sessions/migrations/0006_auto_20201001_1249.py
AdvancedThreatAnalytics/restless_dj_utils
50470b11c95f5d7c2caa61147c2341d9b0e86ab6
[ "MIT" ]
null
null
null
restless_dj_utils/rest_sessions/migrations/0006_auto_20201001_1249.py
AdvancedThreatAnalytics/restless_dj_utils
50470b11c95f5d7c2caa61147c2341d9b0e86ab6
[ "MIT" ]
1
2020-09-21T09:35:58.000Z
2020-09-21T09:35:58.000Z
restless_dj_utils/rest_sessions/migrations/0006_auto_20201001_1249.py
AdvancedThreatAnalytics/restless_dj_utils
50470b11c95f5d7c2caa61147c2341d9b0e86ab6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-10-01 12:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rest_sessions', '0005_apisession_description'), ] operations = [ migrations.AlterModelOptions( name='apisession', options={...
27.15625
61
0.514384
70
869
6.2
0.542857
0.101382
0.142857
0.082949
0.281106
0.281106
0.281106
0.281106
0.281106
0.281106
0
0.036232
0.364787
869
31
62
28.032258
0.75
0.052934
0
0.4
1
0
0.317905
0.032887
0
0
0
0
0
1
0
false
0
0.04
0
0.16
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
0
0
0
0
0
0
1
192e8246bc690386440bc434da436361a438e6c0
10,851
py
Python
authors/apps/authentication/views.py
andela/ah-backend-odin
0e9ef1a10c8a3f6736999a5111736f7bd7236689
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/views.py
andela/ah-backend-odin
0e9ef1a10c8a3f6736999a5111736f7bd7236689
[ "BSD-3-Clause" ]
43
2018-10-25T10:14:52.000Z
2022-03-11T23:33:46.000Z
authors/apps/authentication/views.py
andela/ah-backend-odin
0e9ef1a10c8a3f6736999a5111736f7bd7236689
[ "BSD-3-Clause" ]
4
2018-10-29T07:04:58.000Z
2020-04-02T14:15:10.000Z
from django.contrib.auth import get_user_model from rest_framework import status from .models import User from rest_framework.generics import (RetrieveUpdateAPIView, ListAPIView, CreateAPIView) from rest_framework.permissions import AllowAny, IsA...
32.981763
149
0.64077
1,205
10,851
5.645643
0.257261
0.028811
0.028223
0.022343
0.372189
0.337204
0.30707
0.285315
0.258121
0.231222
0
0.00836
0.272417
10,851
328
150
33.082317
0.853325
0.101557
0
0.392694
0
0.004566
0.110504
0.002371
0
0
0
0
0
1
0.045662
false
0.09589
0.141553
0.004566
0.374429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1939d8bc9f8ef6700825c654de41d091c0fb76cc
3,226
py
Python
custom_dataset/custom_dataset.py
l-yohai/Efficient-Baseline-Using-Pytorch-Template
ebc2bf44c1581fcf1361b59812441db34c53336e
[ "MIT" ]
1
2021-09-09T15:26:02.000Z
2021-09-09T15:26:02.000Z
custom_dataset/custom_dataset.py
l-yohai/Efficient-Baseline-Using-Pytorch-Template
ebc2bf44c1581fcf1361b59812441db34c53336e
[ "MIT" ]
null
null
null
custom_dataset/custom_dataset.py
l-yohai/Efficient-Baseline-Using-Pytorch-Template
ebc2bf44c1581fcf1361b59812441db34c53336e
[ "MIT" ]
1
2022-01-31T02:13:46.000Z
2022-01-31T02:13:46.000Z
from albumentations.augmentations.transforms import HorizontalFlip import pandas as pd from torch.utils.data import Dataset from PIL import Image, ImageOps, ImageEnhance import numpy as np from torchvision import datasets, transforms import albumentations as A from albumentations.pytorch import ToTensorV2 import torch ...
37.08046
78
0.6646
437
3,226
4.656751
0.173913
0.078624
0.043243
0.031941
0.679607
0.644226
0.621622
0.579361
0.527273
0.486978
0
0.000419
0.260074
3,226
86
79
37.511628
0.852116
0.182269
0
0.596154
0
0
0.026346
0
0
0
0
0.011628
0
1
0.115385
false
0
0.173077
0.038462
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
193a39ee8fb26cfcd35c3fe607d2a7cc425fa76e
622
py
Python
options/custom-options.py
mtroym/pytorch-train
3b303b6c7e364a58cb88d7142da942a30cc2b255
[ "Apache-2.0" ]
2
2019-12-21T14:40:11.000Z
2020-05-26T09:26:52.000Z
options/custom-options.py
mtroym/pytorch-train
3b303b6c7e364a58cb88d7142da942a30cc2b255
[ "Apache-2.0" ]
null
null
null
options/custom-options.py
mtroym/pytorch-train
3b303b6c7e364a58cb88d7142da942a30cc2b255
[ "Apache-2.0" ]
1
2020-10-16T12:03:19.000Z
2020-10-16T12:03:19.000Z
import yaml from options.base import BaseOptions class CustomOptions(BaseOptions): def __init__(self): super(CustomOptions, self).__init__() BaseOptions.initialize(self) configure_stream = open(self.opt.configure_file, 'r') experiment_config = yaml.load(configure_stream) i...
32.736842
73
0.684887
68
622
5.941176
0.5
0.237624
0.09901
0
0
0
0
0
0
0
0
0
0.213826
622
18
74
34.555556
0.826176
0
0
0
0
0
0.07717
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
19401102444a43e9a793c6187418c5445e676920
6,758
py
Python
pcapman/tshark_pcap_to_txt.py
att-innovate/pcapman
90a0c2ab30715958fa903305661c4ab43c974771
[ "MIT" ]
2
2017-12-02T21:03:51.000Z
2019-10-01T12:31:43.000Z
pcapman/tshark_pcap_to_txt.py
att-innovate/pcapman
90a0c2ab30715958fa903305661c4ab43c974771
[ "MIT" ]
null
null
null
pcapman/tshark_pcap_to_txt.py
att-innovate/pcapman
90a0c2ab30715958fa903305661c4ab43c974771
[ "MIT" ]
4
2017-11-30T20:30:26.000Z
2019-11-01T18:13:39.000Z
# Use this file to convert packets using tshark # This is from the manual pages of TSHARK : the terminal application for wireshark # yum install wireshark for this to work! ''' TShark (Wireshark) 2.1.0 (v2.1.0rc0-502-g328fbc0 from master) Dump and analyze network traffic. See https://www.wireshark.org for more informa...
48.971014
309
0.591743
891
6,758
4.461279
0.388328
0.012075
0.009057
0.009811
0.057107
0.057107
0.013585
0
0
0
0
0.008644
0.332347
6,758
137
310
49.328467
0.87234
0.024563
0
0
0
0.052632
0.384917
0.041136
0
0
0
0
0
0
null
null
0
0.105263
null
null
0.210526
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
1
0
0
0
0
0
0
0
0
1
1941e54705c2d929781c0af13471bb6b96663c80
8,193
py
Python
test/process/test-processmanipulation.py
clayne/syringe-1
4a431aa65c371a2018fca95145a3952ba802a609
[ "BSD-2-Clause" ]
25
2015-04-14T21:53:46.000Z
2022-03-30T19:15:24.000Z
test/process/test-processmanipulation.py
clayne/syringe-1
4a431aa65c371a2018fca95145a3952ba802a609
[ "BSD-2-Clause" ]
5
2020-03-23T20:19:59.000Z
2021-05-24T19:38:31.000Z
test/process/test-processmanipulation.py
clayne/syringe-1
4a431aa65c371a2018fca95145a3952ba802a609
[ "BSD-2-Clause" ]
7
2015-07-31T13:26:37.000Z
2021-03-05T19:35:37.000Z
### #### to fix the issue with window messages being dispatched, we might need to execute code that ### calls GetQueueStatus, and then will empty the queue to dispatch them later # this is the debugger attacher for manipulating a process import sys,time sys.path.append('lib/') import win32com.client as com import c...
30.232472
136
0.630538
1,038
8,193
4.868979
0.384393
0.026118
0.005936
0.007123
0.014246
0
0
0
0
0
0
0.049047
0.263396
8,193
270
137
30.344444
0.788401
0.131698
0
0.081633
0
0
0.058422
0
0
0
0.029303
0
0.040816
0
null
null
0.006803
0.034014
null
null
0.040816
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
1
0
0
0
0
0
0
0
0
1
194249a70283ca015fe686021658a5a2c2c738a3
1,144
py
Python
LINE/2021/web/diveinternal/private/app/datamodel.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
LINE/2021/web/diveinternal/private/app/datamodel.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
LINE/2021/web/diveinternal/private/app/datamodel.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os from datetime import date, datetime, timedelta from sqlalchemy import create_engine, ForeignKeyConstraint from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, String, Integer, Date, Table, Boolean, ForeignKey, DateTime, BLOB, Text, JSO...
29.333333
115
0.708916
138
1,144
5.717391
0.521739
0.08872
0.050697
0.058302
0
0
0
0
0
0
0
0
0.200175
1,144
38
116
30.105263
0.862295
0.022727
0
0
0
0
0.076165
0
0
0
0
0
0
1
0.034483
false
0
0.241379
0
0.62069
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
19501a2acc6e154bafab4a15de618e8848086913
1,503
py
Python
loquis_speech.py
Steve132/loquis
49c9efcdcd8e29ceec662e11cb89d7e00db7d1d7
[ "MIT" ]
null
null
null
loquis_speech.py
Steve132/loquis
49c9efcdcd8e29ceec662e11cb89d7e00db7d1d7
[ "MIT" ]
null
null
null
loquis_speech.py
Steve132/loquis
49c9efcdcd8e29ceec662e11cb89d7e00db7d1d7
[ "MIT" ]
null
null
null
import loquis import speech_recognition as sr import sys def srfilt(words): def srfiltword(w): if(w.lower() == 'quote'): return '"' return w return [srfiltword(x) for x in words] def bs(amount): sys.stdout.write('\b'*amount) sys.stdout.write(' '*amount) sys.stdout.write('\b'*amount) sys.stdout.flush() ...
21.169014
91
0.656687
222
1,503
4.387387
0.441441
0.101643
0.11499
0.061602
0.160164
0.073922
0.073922
0.073922
0
0
0
0.00161
0.173653
1,503
70
92
21.471429
0.782609
0.141051
0
0.22807
0
0
0.068429
0
0
0
0
0.014286
0
1
0.070175
false
0
0.052632
0
0.210526
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
195d7f2be435acb328f406cda3d4830c1acafc63
1,653
py
Python
src/scenery/MetadataTools.py
Dachaz/scenery
e64199eb064b192bbbad2aa3944f136c24048866
[ "MIT" ]
9
2019-02-18T23:07:08.000Z
2020-08-24T02:17:35.000Z
src/scenery/MetadataTools.py
Dachaz/scenery
e64199eb064b192bbbad2aa3944f136c24048866
[ "MIT" ]
1
2020-08-08T16:52:12.000Z
2020-08-08T16:52:12.000Z
src/scenery/MetadataTools.py
Dachaz/scenery
e64199eb064b192bbbad2aa3944f136c24048866
[ "MIT" ]
null
null
null
import re import os.path from scenery.model.SceneFileMetadata import SceneFileMetadata REGEX_SPLITTER = "([sS]?\\d+?\\s?[eExX-]\\d+)" REGEX_EPISODE_SPLITTER = "[sS]?(\\d+?)\\s?[eExX-](\\d+)" REGEX_CLEANER = "[^a-zA-Z0-9]+$" def extractMetadata(fileName): # Normalise to whitespace-separated words fileName = r...
30.611111
83
0.661827
204
1,653
5.318627
0.47549
0.01106
0.020277
0.02212
0.040553
0.040553
0.040553
0
0
0
0
0.009119
0.203872
1,653
53
84
31.188679
0.81535
0.212341
0
0
0
0
0.081207
0.04331
0
0
0
0.018868
0
1
0.064516
false
0
0.096774
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
195e4123d60dba1bf7e735141911cc1136f24ea5
5,248
py
Python
Tushar Iyer - Dynamic Programming.py
tushariyer/dp-edit-hamming-distance
72ed3f982dcf54713a61dc044169f6d31abbacac
[ "MIT" ]
null
null
null
Tushar Iyer - Dynamic Programming.py
tushariyer/dp-edit-hamming-distance
72ed3f982dcf54713a61dc044169f6d31abbacac
[ "MIT" ]
null
null
null
Tushar Iyer - Dynamic Programming.py
tushariyer/dp-edit-hamming-distance
72ed3f982dcf54713a61dc044169f6d31abbacac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 24 20:44:43 2016 CS 290 Homework 2 - Dynamic Programming Problems @author: tushariyer """ import datetime as d def main(): m1 = "\n\nThis project uses two int lists called s1 and s2.\nThe script will print out the answer to the question along with the time taken to ...
30.870588
296
0.577553
790
5,248
3.810127
0.270886
0.018272
0.031894
0.022591
0.190033
0.168771
0.168771
0.124585
0.077741
0.077741
0
0.053429
0.308117
5,248
169
297
31.053254
0.775544
0.262767
0
0.094118
0
0.023529
0.151745
0
0
0
0
0
0
0
null
null
0
0.011765
null
null
0.2
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
1
0
0
0
0
0
0
0
0
1