hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
0ceebdf9d3bde890ba7f5356745ce15744d0659d
2,717
py
Python
services/dy-static-file-server/tests/integration/test_docker_image.py
odeimaiz/osparc-services
1a572cc35c742889f39f9d0aae6ad82d1610d33e
[ "MIT" ]
null
null
null
services/dy-static-file-server/tests/integration/test_docker_image.py
odeimaiz/osparc-services
1a572cc35c742889f39f9d0aae6ad82d1610d33e
[ "MIT" ]
null
null
null
services/dy-static-file-server/tests/integration/test_docker_image.py
odeimaiz/osparc-services
1a572cc35c742889f39f9d0aae6ad82d1610d33e
[ "MIT" ]
null
null
null
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name import json import shutil import urllib.request from pathlib import Path from typing import Dict import pytest import docker import jsonschema import yaml # HELPERS # FIXTURES @pytest.fixture(scope="function"...
31.229885
129
0.726537
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name import json import shutil import urllib.request from pathlib import Path from typing import Dict import pytest import docker import jsonschema import yaml # HELPERS def _download_url(url: str, file: Path): #...
2,212
0
135
db27575a4dedb67b2788e5baf45d5a75003ca35f
1,172
py
Python
setup.py
jni/h5cat
98bf0ad301b65ee95f947b3fc764a1fc31ea73b7
[ "MIT" ]
11
2017-03-15T22:16:20.000Z
2020-12-20T05:27:05.000Z
setup.py
jni/h5cat
98bf0ad301b65ee95f947b3fc764a1fc31ea73b7
[ "MIT" ]
1
2018-10-02T09:40:39.000Z
2018-10-05T04:28:06.000Z
setup.py
jni/h5cat
98bf0ad301b65ee95f947b3fc764a1fc31ea73b7
[ "MIT" ]
null
null
null
from setuptools import setup descr = """h5cat: Quick preview of hdf5 files Quickly check the contents of multiple hdf5 files. Usage: `h5cat -h` `h5cat path/to/hdffiles/*.h5` Note: h5cat is no longer maintained. For similar functionality, see h5glance at https://pypi.org/project/h5glance/#description """ DISTNAME ...
26.636364
67
0.633106
from setuptools import setup descr = """h5cat: Quick preview of hdf5 files Quickly check the contents of multiple hdf5 files. Usage: `h5cat -h` `h5cat path/to/hdffiles/*.h5` Note: h5cat is no longer maintained. For similar functionality, see h5glance at https://pypi.org/project/h5glance/#description """ DISTNAME ...
0
0
0
6b8173f66801745c7fe6b93e230a6d0f560b3218
1,343
py
Python
src/feecc_workbench/_db_utils.py
Multi-Agent-io/feecc-workbench-daemon
87f0015fd6fc8e98dde3cde7825573b6c86c1e25
[ "Apache-2.0" ]
null
null
null
src/feecc_workbench/_db_utils.py
Multi-Agent-io/feecc-workbench-daemon
87f0015fd6fc8e98dde3cde7825573b6c86c1e25
[ "Apache-2.0" ]
1
2021-11-08T16:07:08.000Z
2021-11-08T16:07:08.000Z
src/feecc_workbench/_db_utils.py
Multi-Agent-io/feecc-workbench-daemon
87f0015fd6fc8e98dde3cde7825573b6c86c1e25
[ "Apache-2.0" ]
2
2021-12-09T13:23:17.000Z
2022-03-23T13:04:41.000Z
import datetime as dt import sys import typing as tp from loguru import logger from motor.motor_asyncio import AsyncIOMotorClient from .Unit import Unit def _get_database_client(mongo_connection_uri: str) -> AsyncIOMotorClient: """Get MongoDB connection url""" try: db_client = AsyncIOMotorClient(mon...
31.97619
106
0.676843
import datetime as dt import sys import typing as tp from loguru import logger from motor.motor_asyncio import AsyncIOMotorClient from .Unit import Unit def _get_database_client(mongo_connection_uri: str) -> AsyncIOMotorClient: """Get MongoDB connection url""" try: db_client = AsyncIOMotorClient(mon...
641
0
23
aa50f0672f8070eb71fc01f9ec83eb2495ef596a
27,913
py
Python
kits/python/dev/tests/test_agent.py
ppinchuk/Lux-Design-2021
8a04ad48c6749cafc9aca986f14e75daaa31c789
[ "Apache-2.0" ]
null
null
null
kits/python/dev/tests/test_agent.py
ppinchuk/Lux-Design-2021
8a04ad48c6749cafc9aca986f14e75daaa31c789
[ "Apache-2.0" ]
null
null
null
kits/python/dev/tests/test_agent.py
ppinchuk/Lux-Design-2021
8a04ad48c6749cafc9aca986f14e75daaa31c789
[ "Apache-2.0" ]
null
null
null
import pytest import sys import agent as agent import lux.game as g import lux.game_objects as go import lux.game_map as gm import lux.constants as c from collections import deque """ [WARN] (match_NF4VsaRK1hf9) - Agent 0 sent malformed command: 'rp 0 0' <- research points (player id, num) [WARN] (match_NF4VsaRK1hf9)...
32.344148
164
0.513202
import pytest import sys import agent as agent import lux.game as g import lux.game_objects as go import lux.game_map as gm import lux.constants as c from collections import deque """ [WARN] (match_NF4VsaRK1hf9) - Agent 0 sent malformed command: 'rp 0 0' <- research points (player id, num) [WARN] (match_NF4VsaRK1hf9)...
24,540
1,765
69
621096e7d688e913ac0b40cc8fa82008f8dc4e01
2,304
py
Python
mydata_a03.py
g-mitu/timeseries
3b2daf33f9af022d1aae7c4a9caf69b8abd58348
[ "BSD-3-Clause" ]
null
null
null
mydata_a03.py
g-mitu/timeseries
3b2daf33f9af022d1aae7c4a9caf69b8abd58348
[ "BSD-3-Clause" ]
null
null
null
mydata_a03.py
g-mitu/timeseries
3b2daf33f9af022d1aae7c4a9caf69b8abd58348
[ "BSD-3-Clause" ]
null
null
null
import datetime import pandas as pd import numpy as np import matplotlib.pyplot as plt from time import * program_begin = time() # a=pd.DataFrame(pd.date_range("2022-2-14 0:0:02","2022-2-15 23:59:58",freq='2S')) workdir = r"C:\Users\zyhly\Downloads\mydata" df = pd.read_excel(f"{workdir}/a03_data.xlsx", index_...
36
89
0.683594
import datetime import pandas as pd import numpy as np import matplotlib.pyplot as plt from time import * program_begin = time() # a=pd.DataFrame(pd.date_range("2022-2-14 0:0:02","2022-2-15 23:59:58",freq='2S')) workdir = r"C:\Users\zyhly\Downloads\mydata" df = pd.read_excel(f"{workdir}/a03_data.xlsx", index_...
0
0
0
c9b2dbf72c565bc1542f3e6d08c018c4e78c0cda
103
py
Python
nand_io/__init__.py
Noltari/nand-io
23442ed57950360cd4104d77959bd3001170b333
[ "MIT" ]
null
null
null
nand_io/__init__.py
Noltari/nand-io
23442ed57950360cd4104d77959bd3001170b333
[ "MIT" ]
null
null
null
nand_io/__init__.py
Noltari/nand-io
23442ed57950360cd4104d77959bd3001170b333
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT """NAND IO init.""" from .interface import NandIO __all__ = ["NandIO"]
17.166667
30
0.699029
# SPDX-License-Identifier: MIT """NAND IO init.""" from .interface import NandIO __all__ = ["NandIO"]
0
0
0
95d97919eee63e1b9918f1593a33f34ae3379e23
18,341
py
Python
stanCode_Projects/my_drawing/my_drawing.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
stanCode_Projects/my_drawing/my_drawing.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
stanCode_Projects/my_drawing/my_drawing.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
""" File: Drawing Name: Johnson ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GPolygon from campy.graphics.gwindow import GWindow if __name__ == '__main__': main()
28.70266
80
0.635571
""" File: Drawing Name: Johnson ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GPolygon from campy.graphics.gwindow import GWindow def main(): window = GWindow(width=1130, height=1000, title='Girl with a Pearl Earring') background = GRect(1130, 1413) background.filled...
18,109
0
23
d39e71ce888078189411c4e7f6286a6a8096b59c
3,577
py
Python
webviz_config/webviz_factory_registry.py
antoneskov/webviz-config
ce8aa7b40bad5e724fd9b003283cc33a1c474a6c
[ "MIT" ]
null
null
null
webviz_config/webviz_factory_registry.py
antoneskov/webviz-config
ce8aa7b40bad5e724fd9b003283cc33a1c474a6c
[ "MIT" ]
null
null
null
webviz_config/webviz_factory_registry.py
antoneskov/webviz-config
ce8aa7b40bad5e724fd9b003283cc33a1c474a6c
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional, Type, TypeVar import warnings from .webviz_factory import WebvizFactory from .webviz_instance_info import WebvizInstanceInfo, WEBVIZ_INSTANCE_INFO T = TypeVar("T", bound=WebvizFactory) class WebvizFactoryRegistry: """Global registry for factories that allows the actual fa...
38.462366
94
0.70534
from typing import Any, Dict, Optional, Type, TypeVar import warnings from .webviz_factory import WebvizFactory from .webviz_instance_info import WebvizInstanceInfo, WEBVIZ_INSTANCE_INFO T = TypeVar("T", bound=WebvizFactory) class WebvizFactoryRegistry: """Global registry for factories that allows the actual fa...
1,721
0
160
e6a2d90f8fe61d65cbb547f64ae25d50e12059d5
6,729
py
Python
transformer_train.py
phamduyhk/signate_student_cup_2020
19e158b08a86f2df8e4ee45445169ae396c91409
[ "MIT" ]
null
null
null
transformer_train.py
phamduyhk/signate_student_cup_2020
19e158b08a86f2df8e4ee45445169ae396c91409
[ "MIT" ]
null
null
null
transformer_train.py
phamduyhk/signate_student_cup_2020
19e158b08a86f2df8e4ee45445169ae396c91409
[ "MIT" ]
null
null
null
# coding: utf-8 """ Author: Pham Duy Created date: 2020/08/05 """ # coding: utf-8 import numpy as np import random import torch import torch.nn as nn import torch.optim as optim from sklearn.metrics import roc_auc_score, accuracy_score, f1_score import torchtext import pandas as pd import datetime import os import sy...
31.890995
120
0.593104
# coding: utf-8 """ Author: Pham Duy Created date: 2020/08/05 """ # coding: utf-8 import numpy as np import random import torch import torch.nn as nn import torch.optim as optim from sklearn.metrics import roc_auc_score, accuracy_score, f1_score import torchtext import pandas as pd import datetime import os import sy...
5,830
0
92
eea56c022f4a7d158e92d3208591a21db5b1df19
326
py
Python
pdq/python/pdqhashing/types/exceptions.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
997
2015-03-13T18:04:03.000Z
2022-03-30T12:09:10.000Z
pdq/python/pdqhashing/types/exceptions.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
444
2015-03-26T17:28:49.000Z
2022-03-28T19:34:05.000Z
pdq/python/pdqhashing/types/exceptions.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
294
2015-03-13T22:19:43.000Z
2022-03-30T08:42:45.000Z
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
40.75
70
0.763804
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved class PDQHashFormatException(Exception): def __init__(self, error_message, unacceptableInput=None) -> None: super(PDQHashFormatException, self).__init__(error_message) self._unacceptableInput = unacceptable...
165
19
49
07c925215830c65a8bf11878e7f44902e2cda624
48,224
py
Python
corehq/apps/reports/tests/test_esaccessors.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/reports/tests/test_esaccessors.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/reports/tests/test_esaccessors.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
import uuid from datetime import datetime, timedelta from django.test import SimpleTestCase, TestCase from django.test.utils import override_settings import pytz from corehq.util.es.elasticsearch import ConnectionError from mock import MagicMock, patch from casexml.apps.case.const import CASE_ACTION_CREATE from case...
34.944928
112
0.623963
import uuid from datetime import datetime, timedelta from django.test import SimpleTestCase, TestCase from django.test.utils import override_settings import pytz from corehq.util.es.elasticsearch import ConnectionError from mock import MagicMock, patch from casexml.apps.case.const import CASE_ACTION_CREATE from case...
31,406
13,099
269
0cc2b8d1e2e48904a6802e7fd69a28af9c162b77
468
py
Python
Lexicographical Numbers.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Lexicographical Numbers.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Lexicographical Numbers.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given an integer n, return 1 - n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your algorithm to use less time and space. The input size may be as large as 5,000,000. '''
26
104
0.58547
''' Given an integer n, return 1 - n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your algorithm to use less time and space. The input size may be as large as 5,000,000. ''' class Solution(object): def lexicalOrder(self, n): """ :type...
0
206
23
3db8895c7bd1fb7862c3328d0e371202bd92039d
1,720
py
Python
neutron/tests/unit/objects/extensions/test_standardattributes.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/objects/extensions/test_standardattributes.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
3
2015-02-27T00:48:55.000Z
2015-04-21T05:29:37.000Z
neutron/tests/unit/objects/extensions/test_standardattributes.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
3
2015-02-26T00:55:17.000Z
2020-03-01T17:05:40.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.833333
78
0.75814
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
0
667
91
bf14bb395190045dc72a9505d2f34a4ecfb28428
7,724
py
Python
tests/test_bootstrap.py
yuxiaoy1/bootstrap-flask
a1ded400dbc91332a4e23fbc29ab791d92169325
[ "BSD-3-Clause" ]
null
null
null
tests/test_bootstrap.py
yuxiaoy1/bootstrap-flask
a1ded400dbc91332a4e23fbc29ab791d92169325
[ "BSD-3-Clause" ]
null
null
null
tests/test_bootstrap.py
yuxiaoy1/bootstrap-flask
a1ded400dbc91332a4e23fbc29ab791d92169325
[ "BSD-3-Clause" ]
null
null
null
import pytest from flask import current_app from flask_bootstrap import ( VERSION_BOOTSTRAP, VERSION_JQUERY, VERSION_POPPER, BOOTSTRAP_CSS_INTEGRITY, BOOTSTRAP_JS_INTEGRITY, JQUERY_INTEGRITY, POPPER_INTEGRITY ) @pytest.mark.usefixtures('client')
44.137143
110
0.635293
import pytest from flask import current_app from flask_bootstrap import ( VERSION_BOOTSTRAP, VERSION_JQUERY, VERSION_POPPER, BOOTSTRAP_CSS_INTEGRITY, BOOTSTRAP_JS_INTEGRITY, JQUERY_INTEGRITY, POPPER_INTEGRITY ) @pytest.mark.usefixtures('client') class TestBootstrap: def test_extension_init(self, boots...
6,943
499
22
c4719df6f511aafdfcd1b7e967fc0f7e8a39c9dc
1,054
py
Python
users/views.py
vostavhy/yatube
fd02f6f9e3f4249feb4f2f4085c5fb00b1d0c0a1
[ "BSD-3-Clause" ]
null
null
null
users/views.py
vostavhy/yatube
fd02f6f9e3f4249feb4f2f4085c5fb00b1d0c0a1
[ "BSD-3-Clause" ]
11
2021-03-19T14:21:23.000Z
2022-03-12T00:42:49.000Z
users/views.py
vostavhy/yatube
fd02f6f9e3f4249feb4f2f4085c5fb00b1d0c0a1
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import redirect, render from django.core import mail from django.views.generic import CreateView from .forms import CreationForm
31.939394
109
0.634725
from django.shortcuts import redirect, render from django.core import mail from django.views.generic import CreateView from .forms import CreationForm class SignUP(CreateView): form_class = CreationForm success_url = '/auth/login/' template_name = 'registration/signup.html' def post(self, request, *...
759
141
23
6094e952a0271bf9ce85d30b95bb510c07927fcd
1,997
py
Python
tangos/properties/yt/basic.py
anchwr/tangos
a66740258e0987d90d921cd9c6f92658ce8375a8
[ "BSD-3-Clause" ]
null
null
null
tangos/properties/yt/basic.py
anchwr/tangos
a66740258e0987d90d921cd9c6f92658ce8375a8
[ "BSD-3-Clause" ]
4
2021-08-14T19:28:36.000Z
2021-11-27T04:43:01.000Z
tangos/properties/yt/basic.py
anchwr/tangos
a66740258e0987d90d921cd9c6f92658ce8375a8
[ "BSD-3-Clause" ]
null
null
null
from .. import PropertyCalculation, LivePropertyCalculation import numpy as np from tangos import get_halo
39.156863
110
0.64697
from .. import PropertyCalculation, LivePropertyCalculation import numpy as np from tangos import get_halo class FindCenter(PropertyCalculation): names = "Center", "Center_cu" def requires_property(self): return ["X", "Y", "Z", "X_cu", "Y_cu", "Z_cu"] def calculate(self, particle_data, existing_p...
1,321
456
112
f0d37e204a5220a31dfe82a01ceae971839adf96
32,757
py
Python
tests/st/ops/ascend/perf_benchmark/test_alexnet_all_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/perf_benchmark/test_alexnet_all_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/perf_benchmark/test_alexnet_all_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
63.729572
136
0.562475
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
57
30,102
46
45b00b5a30e65a211d3af958899854a636b1088d
805
py
Python
artifacts/migrations/0013_auto_20201203_1112.py
Joe-Bentley/team_totem
0458447619b1480027168d3b704c401ab7db1e0e
[ "Unlicense" ]
null
null
null
artifacts/migrations/0013_auto_20201203_1112.py
Joe-Bentley/team_totem
0458447619b1480027168d3b704c401ab7db1e0e
[ "Unlicense" ]
25
2020-11-30T14:32:43.000Z
2020-12-04T10:35:58.000Z
artifacts/migrations/0013_auto_20201203_1112.py
Joe-Bentley/team_totem
0458447619b1480027168d3b704c401ab7db1e0e
[ "Unlicense" ]
2
2020-12-01T18:08:24.000Z
2020-12-04T10:44:11.000Z
# Generated by Django 3.1.3 on 2020-12-03 11:12 from django.db import migrations, models import django.db.models.deletion
27.758621
117
0.608696
# Generated by Django 3.1.3 on 2020-12-03 11:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('artifacts', '0012_auto_20201201_1420'), ] operations = [ migrations.RemoveField( model_name='lo...
0
658
23
87e1e00bba8e9feced9644dd23c8931b4a3025a9
2,705
py
Python
factorio_status_ui/serve.py
adamcharnock/factorio-status-ui
80fb4200d226b1037c61f4dd655462cb4acf6e16
[ "MIT" ]
7
2019-04-11T11:38:40.000Z
2020-08-25T12:59:16.000Z
factorio_status_ui/serve.py
carsso/factorio-status-ui
bf184fdd7eea6494ecadff966535175a9df8a6ff
[ "MIT" ]
1
2020-04-28T08:34:59.000Z
2020-04-28T17:25:43.000Z
factorio_status_ui/serve.py
carsso/factorio-status-ui
bf184fdd7eea6494ecadff966535175a9df8a6ff
[ "MIT" ]
1
2020-04-27T20:10:44.000Z
2020-04-27T20:10:44.000Z
import argparse import logging import signal import sys from pathlib import Path from aiohttp import web from factorio_status_ui.state import application_config from factorio_status_ui.web import setup_routes, setup_templates, start_background_tasks, cleanup_background_tasks, \ get_version if __name__ == '__ma...
38.098592
117
0.712754
import argparse import logging import signal import sys from pathlib import Path from aiohttp import web from factorio_status_ui.state import application_config from factorio_status_ui.web import setup_routes, setup_templates, start_background_tasks, cleanup_background_tasks, \ get_version def main(): print...
2,344
0
23
c902e68cbf844338c9dd8d461f5075813e9543ef
1,047
py
Python
utils.py
tat-nlp/sart
24d15d25ba29cb82320287fa7787ada5a8643771
[ "CC-BY-4.0" ]
2
2019-06-17T15:38:30.000Z
2021-09-16T07:07:23.000Z
utils.py
tat-nlp/SART
24d15d25ba29cb82320287fa7787ada5a8643771
[ "CC-BY-4.0" ]
null
null
null
utils.py
tat-nlp/SART
24d15d25ba29cb82320287fa7787ada5a8643771
[ "CC-BY-4.0" ]
null
null
null
import io import numpy as np # Read embeddings to a numpy array and word2id dictionary # Normalize embeddings # Read lines from .txt file into a list of lists of words
29.914286
86
0.595033
import io import numpy as np # Read embeddings to a numpy array and word2id dictionary def read_embeddings(emb_path): words2ids = {} vectors = None # load pre-trained embeddings with io.open(emb_path, 'r', encoding='utf-8', newline='\n', errors='ignore') as f: for i, line in enumerate(f): ...
807
0
66
79fd6ea6cf65fd3990bea9da8f17955107286294
3,241
py
Python
dglt/contrib/grover/mol2features.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
3
2022-02-06T09:13:51.000Z
2022-02-19T15:03:35.000Z
dglt/contrib/grover/mol2features.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
1
2022-02-14T23:16:27.000Z
2022-02-14T23:16:27.000Z
dglt/contrib/grover/mol2features.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
null
null
null
from collections import Counter from typing import Callable, Union import numpy as np from rdkit import Chem from dglt.data.featurization.mol2features import register_features_generator from third_party.descriptastorus.descriptors import rdDescriptors Molecule = Union[str, Chem.Mol] FeaturesGenerator = Callable[[Mol...
44.39726
95
0.659673
from collections import Counter from typing import Callable, Union import numpy as np from rdkit import Chem from dglt.data.featurization.mol2features import register_features_generator from third_party.descriptastorus.descriptors import rdDescriptors Molecule = Union[str, Chem.Mol] FeaturesGenerator = Callable[[Mol...
0
0
0
9b6b876677d434054b342ff5d8cddbadf3ed7456
185
py
Python
dffml/util/config/fields.py
agriyakhetarpal/dffml
f76f2ce94c3972634053377b00e7c16530f7f0a4
[ "MIT" ]
171
2019-03-08T19:02:06.000Z
2022-03-29T16:17:23.000Z
dffml/util/config/fields.py
agriyakhetarpal/dffml
f76f2ce94c3972634053377b00e7c16530f7f0a4
[ "MIT" ]
1,158
2019-03-08T19:07:50.000Z
2022-03-25T08:28:27.000Z
dffml/util/config/fields.py
agriyakhetarpal/dffml
f76f2ce94c3972634053377b00e7c16530f7f0a4
[ "MIT" ]
183
2019-03-10T02:40:56.000Z
2022-03-27T18:51:26.000Z
from ...source.source import Sources from ...base import field FIELD_SOURCES = field( "Sources for loading and saving", default_factory=lambda: Sources(), labeled=True, )
18.5
38
0.708108
from ...source.source import Sources from ...base import field FIELD_SOURCES = field( "Sources for loading and saving", default_factory=lambda: Sources(), labeled=True, )
0
0
0
812e36181c5e33bf18aa10f386c28ab03541752a
1,437
py
Python
utils/helper.py
zawlinnnaing/my-wiki-crawler
68458dd7b5548edd0a4e088f9905b53406ff5a4f
[ "MIT" ]
null
null
null
utils/helper.py
zawlinnnaing/my-wiki-crawler
68458dd7b5548edd0a4e088f9905b53406ff5a4f
[ "MIT" ]
null
null
null
utils/helper.py
zawlinnnaing/my-wiki-crawler
68458dd7b5548edd0a4e088f9905b53406ff5a4f
[ "MIT" ]
null
null
null
from requests import get from requests import RequestException from collections import OrderedDict from contextlib import closing import os import logging from .file import FileUtil from datetime import date import json os.chdir(os.getcwd()) def simple_get(url): """ Attempts to get the content at `url` by m...
26.127273
105
0.675713
from requests import get from requests import RequestException from collections import OrderedDict from contextlib import closing import os import logging from .file import FileUtil from datetime import date import json os.chdir(os.getcwd()) def request_api(url, params): try: with closing(get(url, params...
369
0
46
be4bb0ec766c786bc8be57bd96e623364b9c8b8c
2,196
py
Python
profiling/ms_io/mzxml_io.py
wh-xu/falcon
f44f19b5cc49643ff20e3dfe40264f3e08a75f53
[ "BSD-3-Clause" ]
null
null
null
profiling/ms_io/mzxml_io.py
wh-xu/falcon
f44f19b5cc49643ff20e3dfe40264f3e08a75f53
[ "BSD-3-Clause" ]
null
null
null
profiling/ms_io/mzxml_io.py
wh-xu/falcon
f44f19b5cc49643ff20e3dfe40264f3e08a75f53
[ "BSD-3-Clause" ]
null
null
null
import logging import os from typing import Dict, IO, Iterable, Union import pyteomics.mzxml import spectrum_utils.spectrum as sus from lxml.etree import LxmlError logger = logging.getLogger('falcon') def get_spectra(source: Union[IO, str]) -> Iterable[sus.MsmsSpectrum]: """ Get the MS/MS spectra from the ...
30.929577
79
0.617942
import logging import os from typing import Dict, IO, Iterable, Union import pyteomics.mzxml import spectrum_utils.spectrum as sus from lxml.etree import LxmlError logger = logging.getLogger('falcon') def get_spectra(source: Union[IO, str]) -> Iterable[sus.MsmsSpectrum]: """ Get the MS/MS spectra from the ...
0
0
0
2bb34ac2db8359edf6ca8b20a92cb720faf5a20c
6,236
py
Python
forastudent/person/forum_view.py
rautNitesh/job_system
6ea2cdde14c5147b7afb4d1d4aaf7d384486268c
[ "MIT" ]
1
2020-10-13T03:46:22.000Z
2020-10-13T03:46:22.000Z
forastudent/person/forum_view.py
rautNitesh/job_system
6ea2cdde14c5147b7afb4d1d4aaf7d384486268c
[ "MIT" ]
12
2021-03-30T14:08:41.000Z
2022-03-12T00:42:30.000Z
forastudent/person/forum_view.py
rautNitesh/job_system
6ea2cdde14c5147b7afb4d1d4aaf7d384486268c
[ "MIT" ]
1
2020-07-07T10:26:54.000Z
2020-07-07T10:26:54.000Z
from math import ceil from django import http from rest_framework.pagination import PageNumberPagination from rest_framework.viewsets import ModelViewSet from rest_framework.decorators import action from person.models import Post, Reply, ForumCategory, Person from person.serializers import PostSerializer, LogicalDele...
37.341317
129
0.707826
from math import ceil from django import http from rest_framework.pagination import PageNumberPagination from rest_framework.viewsets import ModelViewSet from rest_framework.decorators import action from person.models import Post, Reply, ForumCategory, Person from person.serializers import PostSerializer, LogicalDele...
4,055
1,571
88
7000a798809bded20344d85213ff9f9e4e52601b
1,771
py
Python
Structural/Flyweight/python/FlyWheight.py
Hkataya/design-patterns
cfdebd756a64ee682e90a707747ac4b973a27c55
[ "CC0-1.0" ]
294
2017-10-14T01:18:09.000Z
2022-03-25T12:11:27.000Z
Structural/Flyweight/python/FlyWheight.py
dsfb/design-patterns
7e8fd8157488777a97d33249782d8b751e80e5b5
[ "CC0-1.0" ]
68
2017-10-14T10:06:36.000Z
2021-10-05T07:12:01.000Z
Structural/Flyweight/python/FlyWheight.py
dsfb/design-patterns
7e8fd8157488777a97d33249782d8b751e80e5b5
[ "CC0-1.0" ]
329
2017-10-14T10:27:58.000Z
2021-11-13T11:51:29.000Z
if __name__ == "__main__": main()
26.833333
92
0.648221
class FlyWheight(): def __init__(self, shared_state): self.shared_state = shared_state class Context(): def __init__(self, unique_state, flywheight: FlyWheight): self.unique_state = unique_state self.flywheight = flywheight def __repr__(self): return "unique: %s - shared...
1,388
87
249
0eee2137f04fdd8f534a676c62eaf75ebe9af0a0
4,443
py
Python
Python/_Movidius/Data.py
epicalyx/AML-Classifiers
051d33a6e458ad04548f056a6a3048ecf47c5293
[ "MIT" ]
1
2019-08-21T15:12:29.000Z
2019-08-21T15:12:29.000Z
Python/_Movidius/Data.py
epicalyx/AML-Classifiers
051d33a6e458ad04548f056a6a3048ecf47c5293
[ "MIT" ]
null
null
null
Python/_Movidius/Data.py
epicalyx/AML-Classifiers
051d33a6e458ad04548f056a6a3048ecf47c5293
[ "MIT" ]
1
2019-08-31T17:20:51.000Z
2019-08-31T17:20:51.000Z
################################################################################################## # # The MIT License (MIT) # # Peter Moss Acute Myeloid Leukemia Research Project # Copyright (C) 2018 Adam Milton-Barker (AdamMiltonBarker.com) # # Permission is hereby granted, free of charge, to any person obtaining a...
41.138889
102
0.574387
################################################################################################## # # The MIT License (MIT) # # Peter Moss Acute Myeloid Leukemia Research Project # Copyright (C) 2018 Adam Milton-Barker (AdamMiltonBarker.com) # # Permission is hereby granted, free of charge, to any person obtaining a...
2,163
-8
77
3fe5950b768aca8bc2bfe65c6bc3afa3e2e962a2
318
py
Python
prac/app1/migrations/0002_remove_comment_item_name.py
32-Adarsha/Shopping-Site-Django-Backend-
013b6593f98f7d0565c047d46b74f3a22620af31
[ "Unlicense" ]
1
2021-12-10T16:16:56.000Z
2021-12-10T16:16:56.000Z
prac/app1/migrations/0002_remove_comment_item_name.py
32-Adarsha/Shopping-Site-Django-Backend-
013b6593f98f7d0565c047d46b74f3a22620af31
[ "Unlicense" ]
null
null
null
prac/app1/migrations/0002_remove_comment_item_name.py
32-Adarsha/Shopping-Site-Django-Backend-
013b6593f98f7d0565c047d46b74f3a22620af31
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-15 04:55 from django.db import migrations
17.666667
47
0.578616
# Generated by Django 3.2.8 on 2021-11-15 04:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app1', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='comment', name='item_name', ), ]
0
212
23
feb9ced6fb55d2d8f9e10087092ee53d1de5ffd1
1,898
py
Python
api/app/main/service/token_service.py
Stevencibambo/face-detection-based-web
9e7d2d37977f242ef1ec8701ef61e8b79a64941b
[ "MIT" ]
null
null
null
api/app/main/service/token_service.py
Stevencibambo/face-detection-based-web
9e7d2d37977f242ef1ec8701ef61e8b79a64941b
[ "MIT" ]
null
null
null
api/app/main/service/token_service.py
Stevencibambo/face-detection-based-web
9e7d2d37977f242ef1ec8701ef61e8b79a64941b
[ "MIT" ]
null
null
null
# import the necessary package from app.main import db from app.main.service.user_service import get_a_user from app.main.model.tokens import Token from datetime import datetime def check_token(access_token): """check if the token is opened""" token = Token.check_opened_token_by_token(access_token) if tok...
29.65625
65
0.530032
# import the necessary package from app.main import db from app.main.service.user_service import get_a_user from app.main.model.tokens import Token from datetime import datetime def save_token(token): # token = Token(token=token) try: db.session.add(token) db.session.commit() except Except...
1,140
0
46
f40d87a3418de3d5ebd83c246b98d27ee3ac24eb
4,380
py
Python
PYSEQM/seqm/seqm_functions/energy.py
roehr-lab/SFast-Singlet-Fission-adiabatic-basis-screening
dfda08400bb1328ce6cd45ac6b1dd3e7f9d7d4a6
[ "MIT" ]
null
null
null
PYSEQM/seqm/seqm_functions/energy.py
roehr-lab/SFast-Singlet-Fission-adiabatic-basis-screening
dfda08400bb1328ce6cd45ac6b1dd3e7f9d7d4a6
[ "MIT" ]
null
null
null
PYSEQM/seqm/seqm_functions/energy.py
roehr-lab/SFast-Singlet-Fission-adiabatic-basis-screening
dfda08400bb1328ce6cd45ac6b1dd3e7f9d7d4a6
[ "MIT" ]
null
null
null
import torch from .constants import a0 def elec_energy_isolated_atom(const, Z, uss, upp, gss, gpp, gsp, gp2, hsp): """ electrionc energy for a single atom #eisol in block.f or in calpar.f return Eiso, shape (natoms,) """ Eiso = uss*const.ussc[Z] \ + upp*const.uppc[Z] \ + gss...
36.806723
98
0.61895
import torch from .constants import a0 def elec_energy_isolated_atom(const, Z, uss, upp, gss, gpp, gsp, gp2, hsp): """ electrionc energy for a single atom #eisol in block.f or in calpar.f return Eiso, shape (natoms,) """ Eiso = uss*const.ussc[Z] \ + upp*const.uppc[Z] \ + gss...
0
0
0
4224f26cc7a0ac2b792ba98188c1c53c1d78548e
463
py
Python
test/generate/autotest/66_67_XRL_A_Ri.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/66_67_XRL_A_Ri.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/66_67_XRL_A_Ri.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-23 12:41:37 # AI # ins: XRL A, @Ri ######################################################### from .common.INS_XXX_A_Ri import XXX_A_Ri from ..asmconst import * p = XRL_A_Ri().gen(0, 15, 1)
23.15
57
0.455724
######################################################### # 2020-01-23 12:41:37 # AI # ins: XRL A, @Ri ######################################################### from .common.INS_XXX_A_Ri import XXX_A_Ri from ..asmconst import * class XRL_A_Ri(XXX_A_Ri): def __init__(self): super().__init__("XRL") de...
115
4
76
dbeec67ba9d7093ff775b134cff749dd0646925c
13,350
py
Python
tests/test_usecases.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
277
2016-05-12T13:22:49.000Z
2022-03-11T00:18:32.000Z
tests/test_usecases.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
57
2016-05-18T01:03:32.000Z
2022-02-17T13:48:43.000Z
tests/test_usecases.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
16
2016-05-22T11:35:19.000Z
2021-12-01T19:41:42.000Z
# -*- coding: utf-8 -*- """A handful of integration tests to check for idiomatic use cases that we want make sure are as convinient as possible for users. """ from . import _unittest as unittest import math import datetime import datatest try: import squint except ImportError: squint = None try: import pa...
35.131579
83
0.597228
# -*- coding: utf-8 -*- """A handful of integration tests to check for idiomatic use cases that we want make sure are as convinient as possible for users. """ from . import _unittest as unittest import math import datetime import datatest try: import squint except ImportError: squint = None try: import pa...
4,107
7,035
289
c7101538571949bc2d9a16b432738d706b6d0506
968
py
Python
test/test_day03.py
frangiz/AdventOfCode2018
dffbc0a8467d3c31678d9719923c461b0b12d67f
[ "MIT" ]
null
null
null
test/test_day03.py
frangiz/AdventOfCode2018
dffbc0a8467d3c31678d9719923c461b0b12d67f
[ "MIT" ]
null
null
null
test/test_day03.py
frangiz/AdventOfCode2018
dffbc0a8467d3c31678d9719923c461b0b12d67f
[ "MIT" ]
null
null
null
"""The tests for day03.""" from days import day03 from ddt import ddt, data, unpack import unittest import helpers @ddt
31.225806
69
0.628099
"""The tests for day03.""" from days import day03 from ddt import ddt, data, unpack import unittest import helpers @ddt class MyTestCase(unittest.TestCase): # noqa D101 @data( [['#1 @ 1,3: 4x4', '#2 @ 3,1: 4x4', '#3 @ 5,5: 2x2'], '4']) @unpack def test_example_a(self, test_input, expected): # noqa...
508
316
22
67e483507c8bb1197e202652649ae79f6a212d7d
11,767
py
Python
skbio/util/_decorator.py
jairideout/scikit-bio
81a1ce5acb434603c537f832caee64a76db19190
[ "BSD-3-Clause" ]
null
null
null
skbio/util/_decorator.py
jairideout/scikit-bio
81a1ce5acb434603c537f832caee64a76db19190
[ "BSD-3-Clause" ]
null
null
null
skbio/util/_decorator.py
jairideout/scikit-bio
81a1ce5acb434603c537f832caee64a76db19190
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
34.710914
79
0.624968
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
4,156
0
322
3a62db4bd65765d304546ab9bbecde61034b3928
10,485
py
Python
datablox_framework/datablox_framework/loader.py
mpi-sws-rse/datablox
93af071e5f8a68dc83df1700ed657bd64aca8849
[ "Apache-2.0" ]
null
null
null
datablox_framework/datablox_framework/loader.py
mpi-sws-rse/datablox
93af071e5f8a68dc83df1700ed657bd64aca8849
[ "Apache-2.0" ]
null
null
null
datablox_framework/datablox_framework/loader.py
mpi-sws-rse/datablox
93af071e5f8a68dc83df1700ed657bd64aca8849
[ "Apache-2.0" ]
null
null
null
"""This is the command line interface to the master. """ import os import os.path import sys from optparse import OptionParser import logging from logging.handlers import RotatingFileHandler logger = logging.getLogger(__name__) from master import * import defs try: import datablox_engage_adapter.file_locator usin...
40.797665
272
0.686218
"""This is the command line interface to the master. """ import os import os.path import sys from optparse import OptionParser import logging from logging.handlers import RotatingFileHandler logger = logging.getLogger(__name__) from master import * import defs try: import datablox_engage_adapter.file_locator usin...
8,437
0
68
75b153c2471d475e880de834fc7fd9faf3ad3d81
541
py
Python
supplier_image_upload.py
martroben/Google-automation-with-Python-exam
0e6c1144def8c06a01da6e1c63df492b3a383f50
[ "MIT" ]
null
null
null
supplier_image_upload.py
martroben/Google-automation-with-Python-exam
0e6c1144def8c06a01da6e1c63df492b3a383f50
[ "MIT" ]
null
null
null
supplier_image_upload.py
martroben/Google-automation-with-Python-exam
0e6c1144def8c06a01da6e1c63df492b3a383f50
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import requests # Inputs images_dir = "/home/student/supplier-data/images/" upload_url = "http://xxx.xxx.xxx.xxx/upload/" # Get a list of paths of all .jpeg files in directory file_list = os.listdir(images_dir) jpeg_paths = [images_dir + item for item in file_list if bool(r...
27.05
88
0.726433
#!/usr/bin/env python3 import os import re import requests # Inputs images_dir = "/home/student/supplier-data/images/" upload_url = "http://xxx.xxx.xxx.xxx/upload/" # Get a list of paths of all .jpeg files in directory file_list = os.listdir(images_dir) jpeg_paths = [images_dir + item for item in file_list if bool(r...
0
0
0
3e1ad8fd7e80b6c65c87c128c1ec33be6f4f13f9
3,346
py
Python
LED2Net/DuLaPost/objs/WallPlane.py
zhigangjiang/LED2-Net
28528b2180d6af0caee54a60560b88dd0f218f1b
[ "MIT" ]
57
2021-03-25T05:42:34.000Z
2022-03-30T02:50:30.000Z
LED2Net/DuLaPost/objs/WallPlane.py
zhigangjiang/LED2-Net
28528b2180d6af0caee54a60560b88dd0f218f1b
[ "MIT" ]
8
2021-04-09T09:50:22.000Z
2022-02-17T17:36:27.000Z
LED2Net/DuLaPost/objs/WallPlane.py
zhigangjiang/LED2-Net
28528b2180d6af0caee54a60560b88dd0f218f1b
[ "MIT" ]
6
2021-04-11T10:15:07.000Z
2022-03-31T06:56:56.000Z
import random import objs import utils #manh only
31.566038
85
0.504782
import random import objs import utils class WallPlane(object): def __init__(self, scene, gPoints): self.scene = scene self.attached = [] self.gPoints = gPoints self.color = (0, 0, 0) self.normal = (0, 0, 0) self.planeEquation = (0, ...
3,043
3
237
68c2f80d3dee75eb3408b80fb12d6266c87ba3a0
70
py
Python
Configuration/Eras/python/Modifier_run3_RPC_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Eras/python/Modifier_run3_RPC_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Eras/python/Modifier_run3_RPC_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms run3_RPC = cms.Modifier()
14
40
0.771429
import FWCore.ParameterSet.Config as cms run3_RPC = cms.Modifier()
0
0
0
e830322abcfe2b89b4741f5180a64f7028796c88
6,997
py
Python
cloudify_cli/tests/commands/test_uninstall.py
cloudify-cosmo/cloudify-cli
c6370012a25335f773ec0c449f46b526874c87fe
[ "Apache-2.0" ]
41
2015-03-11T17:45:28.000Z
2021-11-07T19:50:26.000Z
cloudify_cli/tests/commands/test_uninstall.py
cloudify-cosmo/cloudify-cli
c6370012a25335f773ec0c449f46b526874c87fe
[ "Apache-2.0" ]
134
2015-01-04T20:51:41.000Z
2022-03-29T10:13:25.000Z
cloudify_cli/tests/commands/test_uninstall.py
cloudify-cosmo/cloudify-cli
c6370012a25335f773ec0c449f46b526874c87fe
[ "Apache-2.0" ]
61
2015-01-09T12:10:49.000Z
2022-03-24T07:22:53.000Z
import os from mock import patch from cloudify_rest_client import deployments from ... import local from .test_base import CliCommandTest from ...constants import DEFAULT_UNINSTALL_WORKFLOW, \ DEFAULT_TIMEOUT, DEFAULT_PARAMETERS from .constants import BLUEPRINTS_DIR, DEFAULT_BLUEPRINT_FILE_NAME
37.218085
78
0.580106
import os from mock import patch from cloudify_rest_client import deployments from ... import local from .test_base import CliCommandTest from ...constants import DEFAULT_UNINSTALL_WORKFLOW, \ DEFAULT_TIMEOUT, DEFAULT_PARAMETERS from .constants import BLUEPRINTS_DIR, DEFAULT_BLUEPRINT_FILE_NAME class Uninstall...
5,217
1,453
23
f41ea368edf3bae3763987ab2fcc2150623e0568
3,112
py
Python
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/gps_datalogging.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/gps_datalogging.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/gps_datalogging.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
# Simple GPS datalogging demonstration. # This example uses the GPS library and to read raw NMEA sentences # over I2C or UART from the GPS unit and dumps them to a file on an SD card # (recommended), microcontroller internal storage (be careful as only a few # kilobytes are available), or to a filesystem. # If you...
44.457143
86
0.726864
# Simple GPS datalogging demonstration. # This example uses the GPS library and to read raw NMEA sentences # over I2C or UART from the GPS unit and dumps them to a file on an SD card # (recommended), microcontroller internal storage (be careful as only a few # kilobytes are available), or to a filesystem. # If you...
0
0
0
a6023474ac04ec797be0cf1bec09097eb38be8bb
8,502
py
Python
category_diagram_editor.py
lbordowitz/AssistiveDiagramChaser
b843791a6fb66bd91d5a63e8ccd5bf5aca2784ed
[ "MIT" ]
null
null
null
category_diagram_editor.py
lbordowitz/AssistiveDiagramChaser
b843791a6fb66bd91d5a63e8ccd5bf5aca2784ed
[ "MIT" ]
null
null
null
category_diagram_editor.py
lbordowitz/AssistiveDiagramChaser
b843791a6fb66bd91d5a63e8ccd5bf5aca2784ed
[ "MIT" ]
null
null
null
from graph_editor import GraphEditor from category_object import CategoryObject from category_arrow import CategoryArrow from qt_tools import simpleMaxContrastingColor, Pen, firstParentGfxItemOfType from PyQt5.QtGui import QTransform from PyQt5.QtWidgets import QMenu import re from PyQt5.QtCore import Qt from g...
39.544186
117
0.53211
from graph_editor import GraphEditor from category_object import CategoryObject from category_arrow import CategoryArrow from qt_tools import simpleMaxContrastingColor, Pen, firstParentGfxItemOfType from PyQt5.QtGui import QTransform from PyQt5.QtWidgets import QMenu import re from PyQt5.QtCore import Qt from g...
7,438
20
524
ee27a28302f204f9ca3634ac2f0132205190bb14
573
py
Python
honeybadger/tests/utils.py
dstuebe/honeybadger-python
81519b40d3e446b62035f64e34900e08ff91938c
[ "MIT" ]
1
2019-06-12T10:45:30.000Z
2019-06-12T10:45:30.000Z
honeybadger/tests/utils.py
dstuebe/honeybadger-python
81519b40d3e446b62035f64e34900e08ff91938c
[ "MIT" ]
null
null
null
honeybadger/tests/utils.py
dstuebe/honeybadger-python
81519b40d3e446b62035f64e34900e08ff91938c
[ "MIT" ]
2
2021-01-15T21:36:06.000Z
2021-01-26T10:17:17.000Z
from contextlib import contextmanager from mock import patch from mock import DEFAULT import six import time from threading import Event @contextmanager
27.285714
96
0.734729
from contextlib import contextmanager from mock import patch from mock import DEFAULT import six import time from threading import Event @contextmanager def mock_urlopen(func, status=201): mock_called_event = Event() def mock_was_called(*args, **kwargs): mock_called_event.set() return DEFAULT ...
397
0
22
9a27497b26f4a836550b82849252fb5b4de17d7e
6,405
py
Python
app.py
tfausten/bokehwise
7ffb10a757e4d93b74df3913c5b400165d4aff2b
[ "MIT" ]
null
null
null
app.py
tfausten/bokehwise
7ffb10a757e4d93b74df3913c5b400165d4aff2b
[ "MIT" ]
null
null
null
app.py
tfausten/bokehwise
7ffb10a757e4d93b74df3913c5b400165d4aff2b
[ "MIT" ]
null
null
null
import data_preparation from bokeh.models import ColumnDataSource, BooleanFilter, CDSView from bokeh.plotting import figure from bokeh.io import curdoc from bokeh.palettes import Category20c from bokeh.models.formatters import NumeralTickFormatter from bokeh.models.widgets import ( Panel, Tabs, DataTable, TableColu...
37.238372
78
0.704606
import data_preparation from bokeh.models import ColumnDataSource, BooleanFilter, CDSView from bokeh.plotting import figure from bokeh.io import curdoc from bokeh.palettes import Category20c from bokeh.models.formatters import NumeralTickFormatter from bokeh.models.widgets import ( Panel, Tabs, DataTable, TableColu...
1,753
0
46
a1f7bd879a15010325df7cd01a71db2a87d16e6f
3,717
py
Python
n_step.py
m4n4n-j/subway-surfers-AI-main
5907754a1dee3cb9e395709834db93bcd2244536
[ "MIT" ]
2
2021-09-30T02:35:26.000Z
2021-11-20T08:58:34.000Z
n_step.py
m4n4n-j/subway-surfers-AI-main
5907754a1dee3cb9e395709834db93bcd2244536
[ "MIT" ]
null
null
null
n_step.py
m4n4n-j/subway-surfers-AI-main
5907754a1dee3cb9e395709834db93bcd2244536
[ "MIT" ]
2
2021-05-19T03:47:24.000Z
2021-07-06T15:51:37.000Z
# Importing the libraries import matplotlib.pyplot as plt import torch from torch.autograd import Variable import numpy as np from collections import namedtuple, deque #This step/experience includes the state of game, action performed, the reward for the state # whether the game had ended after this state and the LSTM...
40.402174
153
0.554479
# Importing the libraries import matplotlib.pyplot as plt import torch from torch.autograd import Variable import numpy as np from collections import namedtuple, deque #This step/experience includes the state of game, action performed, the reward for the state # whether the game had ended after this state and the LSTM...
3,150
-1
112
6122b93d979e921a9799ec641b0843ae9a17bddc
15,597
py
Python
aoc/src/8.py
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
null
null
null
aoc/src/8.py
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
3
2020-12-11T10:01:27.000Z
2022-02-13T22:12:05.000Z
aoc/src/8.py
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
null
null
null
data = '22222120221222212222221122222222222222222222220222202222222222200222122222222222022220222220212222202022222202102022002212222222222022222220222222222222222120220222212222222222222222222222222222220222202222222222202222022222222222022221222221222222222022222222112122202202222222222222222221222222222222222020220...
421.540541
15,009
0.984484
def split(word): return [int(char) for char in word] data = '22222120221222212222221122222222222222222222220222202222222222200222122222222222022220222220212222202022222202102022002212222222222022222220222222222222222120220222212222222222222222222222222222220222202222222222202222022222222222022221222221222222222022222...
32
0
22
84afb8ee0a1db12ea2f24da153608e4935cd8f4c
1,924
py
Python
cl_app/models.py
talley/craigslistpython
fbc6e9fc64a7bcaaded0d369259a338cf1c91194
[ "MIT" ]
22
2018-06-03T08:30:49.000Z
2021-12-31T19:10:36.000Z
cl_app/models.py
talley/craigslistpython
fbc6e9fc64a7bcaaded0d369259a338cf1c91194
[ "MIT" ]
10
2019-02-19T13:08:47.000Z
2022-03-11T23:15:44.000Z
cl_app/models.py
talley/craigslistpython
fbc6e9fc64a7bcaaded0d369259a338cf1c91194
[ "MIT" ]
20
2018-07-30T17:19:59.000Z
2022-03-23T23:58:13.000Z
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token # Create your models here. @receiver(post_save, sender='auth.User') @receiver(post_save, sender='auth.User')
27.884058
110
0.703222
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token # Create your models here. class City(models.Model): city = models.CharField(max_length=20) def __str__(self): return self.city class Pr...
502
1,006
135
1e722a1d7391c3f290ab84597dac0ae35ca009d8
117,805
py
Python
openapi_netdisco/api/reports_api.py
mksoska/openapi-client-netdisco
d6444505307e4897a9fef1ded60a180eb764d4b8
[ "MIT" ]
null
null
null
openapi_netdisco/api/reports_api.py
mksoska/openapi-client-netdisco
d6444505307e4897a9fef1ded60a180eb764d4b8
[ "MIT" ]
null
null
null
openapi_netdisco/api/reports_api.py
mksoska/openapi-client-netdisco
d6444505307e4897a9fef1ded60a180eb764d4b8
[ "MIT" ]
null
null
null
# coding: utf-8 """ App::Netdisco No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 2.050003 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re...
42.698441
124
0.594796
# coding: utf-8 """ App::Netdisco No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 2.050003 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re...
120
0
27
ceb54fb28a4ee266bcaafabf6b90e122e97a5575
2,319
py
Python
st2common/st2common/constants/meta.py
muyouming/st2
a80fa2b6b0f7ff3281ed8dee8ca6e97910fbd00e
[ "Apache-2.0" ]
4,920
2015-01-01T15:12:17.000Z
2022-03-31T19:31:15.000Z
st2common/st2common/constants/meta.py
muyouming/st2
a80fa2b6b0f7ff3281ed8dee8ca6e97910fbd00e
[ "Apache-2.0" ]
3,563
2015-01-05T19:02:19.000Z
2022-03-31T19:23:09.000Z
st2common/st2common/constants/meta.py
muyouming/st2
a80fa2b6b0f7ff3281ed8dee8ca6e97910fbd00e
[ "Apache-2.0" ]
774
2015-01-01T20:41:24.000Z
2022-03-31T13:25:29.000Z
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.403226
97
0.749461
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
132
0
45
ab103eb0478ae2e88967e12bbd8ec3c12d4d930c
2,531
py
Python
parserg/lexer.py
teddynecsoiu/parserg
15d8409efaadd2d39e2a10ec478a4df9dbaa9b40
[ "MIT" ]
null
null
null
parserg/lexer.py
teddynecsoiu/parserg
15d8409efaadd2d39e2a10ec478a4df9dbaa9b40
[ "MIT" ]
null
null
null
parserg/lexer.py
teddynecsoiu/parserg
15d8409efaadd2d39e2a10ec478a4df9dbaa9b40
[ "MIT" ]
null
null
null
from .constants import * JSON_QUOTE = '"' JSON_WHITESPACE = [' ', '\t', '\b', '\n', '\r'] JSON_SYNTAX = [JSON_COMMA, JSON_COLON, JSON_LEFTBRACKET, JSON_RIGHTBRACKET, JSON_LEFTBRACE, JSON_RIGHTBRACE] FALSE_LEN = len('false') TRUE_LEN = len('true') NULL_LEN = len('null')
23.220183
75
0.583564
from .constants import * JSON_QUOTE = '"' JSON_WHITESPACE = [' ', '\t', '\b', '\n', '\r'] JSON_SYNTAX = [JSON_COMMA, JSON_COLON, JSON_LEFTBRACKET, JSON_RIGHTBRACKET, JSON_LEFTBRACE, JSON_RIGHTBRACE] FALSE_LEN = len('false') TRUE_LEN = len('true') NULL_LEN = len('null') def lex_string(string): json...
2,126
0
115
8281b73e609e9dd3e292e156482a6cf9a7ef9667
202
py
Python
Getting_Started_With_Raspberry_Pi_Pico/data_logger_no_ground_wire_boot/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Getting_Started_With_Raspberry_Pi_Pico/data_logger_no_ground_wire_boot/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Getting_Started_With_Raspberry_Pi_Pico/data_logger_no_ground_wire_boot/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
""" boot.py file for Pico data logging example. If this file is present when the pico starts up, make the filesystem writeable by CircuitPython. """ import storage storage.remount("/", readonly=False)
25.25
72
0.762376
""" boot.py file for Pico data logging example. If this file is present when the pico starts up, make the filesystem writeable by CircuitPython. """ import storage storage.remount("/", readonly=False)
0
0
0
736cc4a08b4adca06311b8ad6d9e03beccd10663
21,253
py
Python
athenet/tests/test_derivative.py
heurezjusz/Athena
0bdda97b0e06dbb3c1699d4ed7875e4adc96d580
[ "BSD-2-Clause" ]
2
2016-02-02T12:59:39.000Z
2018-03-29T17:17:11.000Z
athenet/tests/test_derivative.py
heurezjusz/Athenet
0bdda97b0e06dbb3c1699d4ed7875e4adc96d580
[ "BSD-2-Clause" ]
5
2016-01-10T23:23:57.000Z
2016-03-26T16:29:42.000Z
athenet/tests/test_derivative.py
heurezjusz/Athena
0bdda97b0e06dbb3c1699d4ed7875e4adc96d580
[ "BSD-2-Clause" ]
1
2020-02-26T20:19:17.000Z
2020-02-26T20:19:17.000Z
"""Testing athenet.algorithm.derest.derivative functions. """ import numpy as np import theano import unittest from athenet.algorithm.derest.layers.fully_connected import d_fully_connected from athenet.algorithm.derest.layers.convolutional import d_conv from athenet.algorithm.derest.layers.pool import d_pool from ath...
38.99633
78
0.399802
"""Testing athenet.algorithm.derest.derivative functions. """ import numpy as np import theano import unittest from athenet.algorithm.derest.layers.fully_connected import d_fully_connected from athenet.algorithm.derest.layers.convolutional import d_conv from athenet.algorithm.derest.layers.pool import d_pool from ath...
18,937
405
1,078
bfaf6e7cdef5ef47cf258822d993d21d3a5b5cdf
9,317
py
Python
pynuodb/cursor.py
madscientist/nuodb-python
93dc174afada40f56f3e2ddded6b9f473b7ae553
[ "BSD-3-Clause" ]
null
null
null
pynuodb/cursor.py
madscientist/nuodb-python
93dc174afada40f56f3e2ddded6b9f473b7ae553
[ "BSD-3-Clause" ]
null
null
null
pynuodb/cursor.py
madscientist/nuodb-python
93dc174afada40f56f3e2ddded6b9f473b7ae553
[ "BSD-3-Clause" ]
null
null
null
"""A module for housing the Cursor class. Exported Classes: Cursor -- Class for representing a database cursor. """ from collections import deque from .statement import Statement, PreparedStatement from .exception import Error, NotSupportedError, ProgrammingError class Cursor(object): """Class for represent...
32.127586
100
0.625631
"""A module for housing the Cursor class. Exported Classes: Cursor -- Class for representing a database cursor. """ from collections import deque from .statement import Statement, PreparedStatement from .exception import Error, NotSupportedError, ProgrammingError class Cursor(object): """Class for represent...
450
1,313
23
fe701f3001d6852bba8289651be46f88091b413c
115
py
Python
grapherty/properties/__init__.py
Mautriz/grapherty
5aae4fb13b0b0cb715911373e5cfb2d75bddc2c6
[ "MIT" ]
null
null
null
grapherty/properties/__init__.py
Mautriz/grapherty
5aae4fb13b0b0cb715911373e5cfb2d75bddc2c6
[ "MIT" ]
null
null
null
grapherty/properties/__init__.py
Mautriz/grapherty
5aae4fb13b0b0cb715911373e5cfb2d75bddc2c6
[ "MIT" ]
null
null
null
from .one import * from .two import * from .three import * properties = [PropertyOne, PropertyTwo, PropertyThree]
19.166667
54
0.747826
from .one import * from .two import * from .three import * properties = [PropertyOne, PropertyTwo, PropertyThree]
0
0
0
d20fe013cd627b92dda27ee894bcdae87d098d82
1,318
py
Python
src/modules/tests/testQnetwork.py
sankhaMukherjee/RLalgos
80d19a39af29947db2fc73b0443b9c3bb66d6fc0
[ "MIT" ]
null
null
null
src/modules/tests/testQnetwork.py
sankhaMukherjee/RLalgos
80d19a39af29947db2fc73b0443b9c3bb66d6fc0
[ "MIT" ]
25
2019-03-30T00:31:07.000Z
2022-03-11T23:38:34.000Z
src/modules/tests/testQnetwork.py
sankhaMukherjee/RLalgos
80d19a39af29947db2fc73b0443b9c3bb66d6fc0
[ "MIT" ]
null
null
null
from logs import logDecorator as lD import json import numpy as np import torch from torch.nn import functional as F from lib.agents import qNetwork as qN import torch config = json.load(open('../config/config.json')) logBase = config['logging']['logBase'] + '.modules.tests.testPolicy' @lD.log( logBase + '.testA...
24.407407
97
0.562974
from logs import logDecorator as lD import json import numpy as np import torch from torch.nn import functional as F from lib.agents import qNetwork as qN import torch config = json.load(open('../config/config.json')) logBase = config['logging']['logBase'] + '.modules.tests.testPolicy' @lD.log( logBase + '.testA...
910
0
44
f7a0c034abe6bcbd6d0f2ab7346d69d8e7c9cbde
7,321
py
Python
games/world_gen_output.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
games/world_gen_output.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
games/world_gen_output.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
map_template = ( ( (0,0,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), (0,0,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), (0,0,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), (0,0...
87.154762
96
0.462642
map_template = ( ( (0,0,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), (0,0,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), (0,0,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), (0,0...
0
0
0
4d67af64d56116da62993595b723329bee185928
42
py
Python
tensordata/paper/WACV/__init__.py
Hourout/tensordata
cbef6742ee0d3bfc4b886358fc01618bb5b63603
[ "Apache-2.0" ]
13
2019-01-08T10:22:39.000Z
2020-06-17T10:02:47.000Z
tensordata/paper/WACV/__init__.py
Hourout/tensordata
cbef6742ee0d3bfc4b886358fc01618bb5b63603
[ "Apache-2.0" ]
null
null
null
tensordata/paper/WACV/__init__.py
Hourout/tensordata
cbef6742ee0d3bfc4b886358fc01618bb5b63603
[ "Apache-2.0" ]
1
2020-06-17T10:02:49.000Z
2020-06-17T10:02:49.000Z
from tensordata.paper.WACV._wacv import *
21
41
0.809524
from tensordata.paper.WACV._wacv import *
0
0
0
a8700ebf98366f97e9d9a60d1fdc6859359b5397
124
py
Python
src/test1.py
danilecug/GitTestNew
c76e3a71fea296eddc5c4110b853a5089904ea7d
[ "MIT" ]
null
null
null
src/test1.py
danilecug/GitTestNew
c76e3a71fea296eddc5c4110b853a5089904ea7d
[ "MIT" ]
null
null
null
src/test1.py
danilecug/GitTestNew
c76e3a71fea296eddc5c4110b853a5089904ea7d
[ "MIT" ]
null
null
null
import numpu as np import scipy as sp import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import pdb
15.5
31
0.806452
import numpu as np import scipy as sp import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import pdb
0
0
0
d02428ca36b49bbfb13c2f3c47cecf62c9b9d042
211
py
Python
networkx/algorithms/connectivity/__init__.py
tempcyc/networkx
cae83ba501c242567cb2454f97f851898276f06e
[ "BSD-3-Clause" ]
1
2015-07-16T01:36:44.000Z
2015-07-16T01:36:44.000Z
networkx/algorithms/connectivity/__init__.py
tempcyc/networkx
cae83ba501c242567cb2454f97f851898276f06e
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/connectivity/__init__.py
tempcyc/networkx
cae83ba501c242567cb2454f97f851898276f06e
[ "BSD-3-Clause" ]
null
null
null
"""Connectivity and cut algorithms """ from networkx.algorithms.connectivity.connectivity import * from networkx.algorithms.connectivity.cuts import * from networkx.algorithms.connectivity.stoer_wagner import *
35.166667
59
0.834123
"""Connectivity and cut algorithms """ from networkx.algorithms.connectivity.connectivity import * from networkx.algorithms.connectivity.cuts import * from networkx.algorithms.connectivity.stoer_wagner import *
0
0
0
92442f9bdf30bef30f81e6e93fec882d43e694a1
1,522
py
Python
DNN.py
idocal/statslearning
a72b492d4ec07de3c719727015ad74b045b66bd6
[ "MIT" ]
null
null
null
DNN.py
idocal/statslearning
a72b492d4ec07de3c719727015ad74b045b66bd6
[ "MIT" ]
null
null
null
DNN.py
idocal/statslearning
a72b492d4ec07de3c719727015ad74b045b66bd6
[ "MIT" ]
null
null
null
import torch from torch import nn import torch.nn.functional as F import pytorch_lightning as pl
31.061224
73
0.574901
import torch from torch import nn import torch.nn.functional as F import pytorch_lightning as pl class DNN(pl.LightningModule): def __init__(self, n_feats, layers=None): super().__init__() if layers is None: layers = [n_feats * 2] modules = [] if not len(layers): # pe...
1,257
9
158
5f5c3304c166f2a61c8883dc9a55e972b6432a91
1,151
py
Python
src/io_gateway/pinata.py
nakata5321/feecc-io-gateway
a7a70c3b7239142e7ee1b846916d28961020b1a9
[ "Apache-2.0" ]
null
null
null
src/io_gateway/pinata.py
nakata5321/feecc-io-gateway
a7a70c3b7239142e7ee1b846916d28961020b1a9
[ "Apache-2.0" ]
2
2021-11-27T09:31:12.000Z
2022-03-23T13:15:57.000Z
src/io_gateway/pinata.py
nakata5321/feecc-io-gateway
a7a70c3b7239142e7ee1b846916d28961020b1a9
[ "Apache-2.0" ]
2
2021-12-09T13:50:51.000Z
2022-03-23T12:39:38.000Z
from __future__ import annotations import os import typing as tp from time import time import httpx from loguru import logger from ..shared.config import config PINATA_ENDPOINT: str = "https://api.pinata.cloud" PINATA_API: str = config.pinata.pinata_api PINATA_SECRET_API: str = config.pinata.pinata_secret_api AUTH_...
31.108108
97
0.724587
from __future__ import annotations import os import typing as tp from time import time import httpx from loguru import logger from ..shared.config import config PINATA_ENDPOINT: str = "https://api.pinata.cloud" PINATA_API: str = config.pinata.pinata_api PINATA_SECRET_API: str = config.pinata.pinata_secret_api AUTH_...
683
0
22
e508928aef3dd5fedee7d857f487400676619dd7
3,270
py
Python
wikidataintegrator/ref_handlers/update_retrieved_if_new_multiple_refs.py
tentwentyfour/WikidataIntegrator
a035d585ade4b0aa7a2b6126f14f2c5a828f6c49
[ "MIT" ]
193
2017-01-16T14:19:40.000Z
2022-03-13T18:44:18.000Z
wikidataintegrator/ref_handlers/update_retrieved_if_new_multiple_refs.py
tentwentyfour/WikidataIntegrator
a035d585ade4b0aa7a2b6126f14f2c5a828f6c49
[ "MIT" ]
140
2017-01-17T20:20:29.000Z
2022-03-21T11:17:11.000Z
wikidataintegrator/ref_handlers/update_retrieved_if_new_multiple_refs.py
tentwentyfour/WikidataIntegrator
a035d585ade4b0aa7a2b6126f14f2c5a828f6c49
[ "MIT" ]
53
2016-12-30T11:24:20.000Z
2022-03-16T20:46:07.000Z
#### # custom ref handler # If the newref is the same as the oldref except the retrieved date is `days` newer, overwrite # the retrieved date is NOT `days` newer, keep the old ref # If the refs are different (in any other way), overwrite with new ref # #### from datetime i...
45.416667
124
0.622018
#### # custom ref handler # If the newref is the same as the oldref except the retrieved date is `days` newer, overwrite # the retrieved date is NOT `days` newer, keep the old ref # If the refs are different (in any other way), overwrite with new ref # #### from datetime i...
0
0
0
b1ad856ad595461a20d1c8a1de08459807527696
14,130
py
Python
maad/util/wav2dBSPL.py
jflatorreg/scikit-maad
f7c4ac1370dcf416b7014f94784d71549623593f
[ "BSD-3-Clause" ]
3
2021-04-17T21:13:57.000Z
2021-04-25T00:55:18.000Z
maad/util/wav2dBSPL.py
jflatorreg/scikit-maad
f7c4ac1370dcf416b7014f94784d71549623593f
[ "BSD-3-Clause" ]
null
null
null
maad/util/wav2dBSPL.py
jflatorreg/scikit-maad
f7c4ac1370dcf416b7014f94784d71549623593f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ SPL conversion functions for scikit-maad Collection of miscelaneous functions that help to convert wav and volt data to Sound Pressure Level (SPL in Pascal) and Leq (Continuous Equivalent SPL) """ # # Authors: Juan Sebastian ULLOA <lisofomia@gmail.com> # ...
33.169014
160
0.601628
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ SPL conversion functions for scikit-maad Collection of miscelaneous functions that help to convert wav and volt data to Sound Pressure Level (SPL in Pascal) and Leq (Continuous Equivalent SPL) """ # # Authors: Juan Sebastian ULLOA <lisofomia@gmail.com> # ...
0
0
0
f63afc086bb45acbfb6e4ac6ff5932c650741902
313
py
Python
test/unit/api/test_total_time.py
redmic-project/device-oag-buoy-modem
e905c53a5705695670512ff8f72bcc44c44421b1
[ "MIT" ]
2
2019-07-02T14:34:52.000Z
2021-04-15T12:48:20.000Z
test/unit/api/test_total_time.py
alzeih/python-vodem-vodafone-K4607-Z
d3b1f35d510b71b79ba9203993b5228006d9d8ee
[ "MIT" ]
null
null
null
test/unit/api/test_total_time.py
alzeih/python-vodem-vodafone-K4607-Z
d3b1f35d510b71b79ba9203993b5228006d9d8ee
[ "MIT" ]
null
null
null
import unittest from vodem.api import total_time
18.411765
51
0.632588
import unittest from vodem.api import total_time class TestTotalTime(unittest.TestCase): @classmethod def setUpClass(cls): cls.valid_response = { 'total_time': '0', } def test_call(self): resp = total_time() self.assertEqual(self.valid_response, resp)
150
89
23
146af929aa57220a406988b72ce3550451e498fb
2,924
py
Python
pyobiee/classes.py
hgokduman/pyobiee
f673f8d0474c7f151e2d74daa576ccf07933500f
[ "MIT-0" ]
1
2019-09-09T12:51:40.000Z
2019-09-09T12:51:40.000Z
pyobiee/classes.py
hgokduman/pyobiee
f673f8d0474c7f151e2d74daa576ccf07933500f
[ "MIT-0" ]
null
null
null
pyobiee/classes.py
hgokduman/pyobiee
f673f8d0474c7f151e2d74daa576ccf07933500f
[ "MIT-0" ]
null
null
null
from zeep import Client, Settings from zeep.transports import Transport from requests import Session
38.986667
142
0.683311
from zeep import Client, Settings from zeep.transports import Transport from requests import Session class SAWSessionService(): def __init__(self, wsdl): session = Session() transport = Transport(session=session) settings = Settings(xml_huge_tree=True) self.client = Cli...
2,283
7
524
87a9aef30724ffb204884ea7b3f846805e2a937f
27,197
py
Python
pysnmp-with-texts/UMSAOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/UMSAOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/UMSAOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module UMSAOL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UMSAOL-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:28:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
125.912037
3,583
0.829466
# # PySNMP MIB module UMSAOL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UMSAOL-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:28:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
0
0
0
f41f2662e4f40fdad1c2ec61ff8cf3d68cf63e8c
2,945
py
Python
tensorflow/python/client/pywrap_tf_session.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/client/pywrap_tf_session.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/client/pywrap_tf_session.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.478873
100
0.782683
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
490
0
44
959b3db8a6a7d05b7f3378dbae164f774574b9f1
1,956
py
Python
monarch.py
michaelduong/monarch-apt-scraper
2bf36af7ab4c26b661d96cfedb0c49239e601ddc
[ "MIT" ]
null
null
null
monarch.py
michaelduong/monarch-apt-scraper
2bf36af7ab4c26b661d96cfedb0c49239e601ddc
[ "MIT" ]
null
null
null
monarch.py
michaelduong/monarch-apt-scraper
2bf36af7ab4c26b661d96cfedb0c49239e601ddc
[ "MIT" ]
null
null
null
# Monarch Apartment Price Scraper # Monarch.py # Checks Monarch apartment webpages every hour to see if the prices have changed import bs4 import requests import smtplib import time # time between checks in seconds sleeptime = 3600 # generic network request function that returns an array of prices last_A4_Prices =...
33.152542
152
0.699898
# Monarch Apartment Price Scraper # Monarch.py # Checks Monarch apartment webpages every hour to see if the prices have changed import bs4 import requests import smtplib import time # time between checks in seconds sleeptime = 3600 # generic network request function that returns an array of prices def getPrices(flo...
980
0
45
7277ad1fe405a54a5b713d131f90a8d72b4b88f3
135
py
Python
gameServer/mapCode/__init__.py
hydrogen602/settlersPy
5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c
[ "MIT" ]
null
null
null
gameServer/mapCode/__init__.py
hydrogen602/settlersPy
5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c
[ "MIT" ]
null
null
null
gameServer/mapCode/__init__.py
hydrogen602/settlersPy
5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c
[ "MIT" ]
null
null
null
from .gameMap import GameMap from .lineMapFeatures import Road from .pointMapFeatures import Settlement, City from .tiles import Tile
22.5
46
0.82963
from .gameMap import GameMap from .lineMapFeatures import Road from .pointMapFeatures import Settlement, City from .tiles import Tile
0
0
0
573d32a608f13f8d64effc820ea56127067e7930
1,559
py
Python
esmvalcore/cmor/_fixes/cmip5/ccsm4.py
jvegreg/ESMValCore
03eb1c942bf1dc3be98cb30c3592b42e82a94f16
[ "Apache-2.0" ]
26
2019-06-07T07:50:07.000Z
2022-03-22T21:04:01.000Z
esmvalcore/cmor/_fixes/cmip5/ccsm4.py
jvegreg/ESMValCore
03eb1c942bf1dc3be98cb30c3592b42e82a94f16
[ "Apache-2.0" ]
1,370
2019-06-06T09:03:07.000Z
2022-03-31T04:37:20.000Z
esmvalcore/cmor/_fixes/cmip5/ccsm4.py
valeriupredoi/ESMValCore
b46b948c47d8579d997b28501f8588f5531aa354
[ "Apache-2.0" ]
26
2019-07-03T13:08:48.000Z
2022-03-02T16:08:47.000Z
"""Fixes for CCSM4 model.""" import dask.array as da from ..fix import Fix from ..shared import round_coordinates from .bnu_esm import Cl as BaseCl Cl = BaseCl class Csoil(Fix): """Fixes for Csoil.""" def fix_data(self, cube): """Fix data. The data is not properly masked. This fix...
19.4875
78
0.552919
"""Fixes for CCSM4 model.""" import dask.array as da from ..fix import Fix from ..shared import round_coordinates from .bnu_esm import Cl as BaseCl Cl = BaseCl class Csoil(Fix): """Fixes for Csoil.""" def fix_data(self, cube): """Fix data. The data is not properly masked. This fix...
0
0
0
f7f7b1147798ce46ece79acebd6afb2506af7e3b
4,106
py
Python
snakescale/formatters.py
clintval/snakeskin
0d282ae8331756ca5b93ffe7146af1ba6491d579
[ "MIT" ]
6
2018-01-24T04:40:45.000Z
2018-08-10T18:03:35.000Z
snakescale/formatters.py
clintval/snakeskin
0d282ae8331756ca5b93ffe7146af1ba6491d579
[ "MIT" ]
9
2018-12-27T18:13:15.000Z
2019-01-01T23:06:22.000Z
snakescale/formatters.py
clintval/snakeskin
0d282ae8331756ca5b93ffe7146af1ba6491d579
[ "MIT" ]
null
null
null
from types import GeneratorType from typing import List, Mapping, Union __all__ = [ 'clean_picard_style_value', 'snakecase_to_kebab_case', 'clean_picard_style_key', 'format_bedtools_params', 'format_bwa_params', 'format_dwgsim_params', 'format_fgbio_params', 'format_kraken_params', ...
27.013158
84
0.595226
from types import GeneratorType from typing import List, Mapping, Union __all__ = [ 'clean_picard_style_value', 'snakecase_to_kebab_case', 'clean_picard_style_key', 'format_bedtools_params', 'format_bwa_params', 'format_dwgsim_params', 'format_fgbio_params', 'format_kraken_params', ...
0
0
0
49336efae7ad8ab0ed8d9f0b0ab614569ef39185
3,883
py
Python
dot_weechat/python/unhighlight.py
benmezger/new-dotfiles
5aa41015bd017d0e4cc39edf374ca73e8c25b8cb
[ "MIT" ]
68
2016-09-28T12:51:20.000Z
2022-02-25T15:33:16.000Z
dot_weechat/python/unhighlight.py
benmezger/new-dotfiles
5aa41015bd017d0e4cc39edf374ca73e8c25b8cb
[ "MIT" ]
null
null
null
dot_weechat/python/unhighlight.py
benmezger/new-dotfiles
5aa41015bd017d0e4cc39edf374ca73e8c25b8cb
[ "MIT" ]
2
2016-09-28T12:51:28.000Z
2022-01-11T10:26:44.000Z
# # Copyright (C) 2016 Andrew Rodgers-Schatz <me@andrew.rs> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This p...
35.3
153
0.733969
# # Copyright (C) 2016 Andrew Rodgers-Schatz <me@andrew.rs> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This p...
1,459
0
69
5dbc29abd552c7f1afbb42cf9ea7e8338b005f16
9,759
py
Python
src/utils/myutils.py
haxhimitsu/dl_classification
0de59faedb18dd944f341af4fd37028639831d54
[ "MIT" ]
null
null
null
src/utils/myutils.py
haxhimitsu/dl_classification
0de59faedb18dd944f341af4fd37028639831d54
[ "MIT" ]
null
null
null
src/utils/myutils.py
haxhimitsu/dl_classification
0de59faedb18dd944f341af4fd37028639831d54
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: UTF-8 #--------------------------------------------------------------- # author:"Haxhimitsu" # date :"2021/01/06" # cite : # sample:python3 imgtrim_gui_ver.2.0.py --input_dir ../assets/original_img/cbn_test_01/ --output_dir ../assets/sample_output/ --trim_width 32 --trim_height 64 ...
38.121094
160
0.565119
#!/usr/bin/env python3 # coding: UTF-8 #--------------------------------------------------------------- # author:"Haxhimitsu" # date :"2021/01/06" # cite : # sample:python3 imgtrim_gui_ver.2.0.py --input_dir ../assets/original_img/cbn_test_01/ --output_dir ../assets/sample_output/ --trim_width 32 --trim_height 64 ...
7,664
0
157
fc29640972c3d6c009959460f4b241cb149acfc7
2,735
py
Python
src/ndn/bin/sec/cmd_new_item.py
tianyuan129/python-ndn
f390b3122d2a233a9a22a1ee9468b1241c46ef86
[ "Apache-2.0" ]
5
2019-10-03T01:26:43.000Z
2020-07-07T15:21:52.000Z
src/ndn/bin/sec/cmd_new_item.py
tianyuan129/python-ndn
f390b3122d2a233a9a22a1ee9468b1241c46ef86
[ "Apache-2.0" ]
12
2019-10-28T03:17:16.000Z
2020-08-26T22:10:52.000Z
src/ndn/bin/sec/cmd_new_item.py
tianyuan129/python-ndn
f390b3122d2a233a9a22a1ee9468b1241c46ef86
[ "Apache-2.0" ]
10
2019-10-18T21:16:43.000Z
2021-06-24T07:26:22.000Z
# ----------------------------------------------------------------------------- # Copyright (C) 2019-2021 The python-ndn authors # # This file is part of python-ndn. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a ...
40.820896
99
0.595978
# ----------------------------------------------------------------------------- # Copyright (C) 2019-2021 The python-ndn authors # # This file is part of python-ndn. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a ...
1,798
0
46
4b1b7c995699f7c87327dc61ab60c9ce63683dd7
748
py
Python
tests/settings.py
vincenz-e/django-paydirekt
eda3b23c27f0a5a78d5a2a91e4083dab75f2f01f
[ "MIT" ]
4
2017-04-19T15:01:24.000Z
2021-08-23T07:26:18.000Z
tests/settings.py
vincenz-e/django-paydirekt
eda3b23c27f0a5a78d5a2a91e4083dab75f2f01f
[ "MIT" ]
2
2019-04-03T13:44:51.000Z
2019-07-22T10:19:06.000Z
tests/settings.py
vincenz-e/django-paydirekt
eda3b23c27f0a5a78d5a2a91e4083dab75f2f01f
[ "MIT" ]
2
2019-04-03T08:08:28.000Z
2019-07-22T00:32:05.000Z
# Django settings for testproject project. from django.conf import settings settings.configure( ALLOWED_HOSTS=['*'], DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:' } }, ROOT_URLCONF='tests.test_urls', INSTALLED_APPS=( ...
24.933333
72
0.629679
# Django settings for testproject project. from django.conf import settings settings.configure( ALLOWED_HOSTS=['*'], DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:' } }, ROOT_URLCONF='tests.test_urls', INSTALLED_APPS=( ...
0
0
0
d77ccb5ed65ceadf95c5aa7f2d4204c73111466c
749
py
Python
eye_video.py
Berkeley-BORIS/BORIS_FileBrowser
5742a7686b0aa7b3dccad71ecd39bc640346a1df
[ "MIT" ]
null
null
null
eye_video.py
Berkeley-BORIS/BORIS_FileBrowser
5742a7686b0aa7b3dccad71ecd39bc640346a1df
[ "MIT" ]
null
null
null
eye_video.py
Berkeley-BORIS/BORIS_FileBrowser
5742a7686b0aa7b3dccad71ecd39bc640346a1df
[ "MIT" ]
null
null
null
import subprocess import os from glob import glob import cv2 # def printnow(s): # sys. tempdir= './temp_for_video' if os.path.exists(tempdir): print "Removing temp_for_video directory" subprocess.call('rm -rf {0}'.format(tempdir), shell=True) print "Creating temp_for_video directory" os.mkdir(tempdir) i...
24.16129
89
0.682243
import subprocess import os from glob import glob import cv2 # def printnow(s): # sys. tempdir= './temp_for_video' if os.path.exists(tempdir): print "Removing temp_for_video directory" subprocess.call('rm -rf {0}'.format(tempdir), shell=True) print "Creating temp_for_video directory" os.mkdir(tempdir) i...
0
0
0
98225817872599faceaca882fac6b82b284be004
17,867
py
Python
fowt_force_gen/moortune.py
SoftwareDevEngResearch/fowt-force-gen
abfda75edf31ee7018ceec0e48b2b24e7ee350eb
[ "MIT" ]
null
null
null
fowt_force_gen/moortune.py
SoftwareDevEngResearch/fowt-force-gen
abfda75edf31ee7018ceec0e48b2b24e7ee350eb
[ "MIT" ]
null
null
null
fowt_force_gen/moortune.py
SoftwareDevEngResearch/fowt-force-gen
abfda75edf31ee7018ceec0e48b2b24e7ee350eb
[ "MIT" ]
null
null
null
from fowt_force_gen import run_fast from fowt_force_gen import filegen from fowt_force_gen import parse import math import numpy as np import os import argparse def tune(water_depth, platform, output_moordyn_filename): """ Using metocean and platform information, generates MoorDyn .dat files with a properly t...
52.705015
130
0.643477
from fowt_force_gen import run_fast from fowt_force_gen import filegen from fowt_force_gen import parse import math import numpy as np import os import argparse def tune(water_depth, platform, output_moordyn_filename): """ Using metocean and platform information, generates MoorDyn .dat files with a properly t...
4,092
12,162
46
bff8917d6740c51bfa4e08081e7c2fe235de40e8
1,697
py
Python
helpers.py
mikeehun/mattermost-bitbucket-bridge
d231cbd4cf1e73c107ce6e1b07c2a7dea190b262
[ "MIT" ]
null
null
null
helpers.py
mikeehun/mattermost-bitbucket-bridge
d231cbd4cf1e73c107ce6e1b07c2a7dea190b262
[ "MIT" ]
null
null
null
helpers.py
mikeehun/mattermost-bitbucket-bridge
d231cbd4cf1e73c107ce6e1b07c2a7dea190b262
[ "MIT" ]
1
2019-04-18T15:12:25.000Z
2019-04-18T15:12:25.000Z
""" Dictionary of supported Bitbucket events and output friendly format """ bitbucket_server_event_names = { "pr:comment:added": "Pull Request: Comment Added", "pr:comment:deleted": "Pull Request: Comment Deleted", "pr:comment:edited": "Pull Request: Comment Edited", "pr:opened": "Pull Request: Opened",...
47.138889
77
0.677666
""" Dictionary of supported Bitbucket events and output friendly format """ bitbucket_server_event_names = { "pr:comment:added": "Pull Request: Comment Added", "pr:comment:deleted": "Pull Request: Comment Deleted", "pr:comment:edited": "Pull Request: Comment Edited", "pr:opened": "Pull Request: Opened",...
0
0
0
108c8e8ba849b9944dfb5dfed567e85d38231b86
249
py
Python
tests/box_test.py
drichmond/IPICO-Open-Source
bbb7b7f800edd524caba1f89394236f32e05e02e
[ "Apache-2.0" ]
3
2018-02-13T17:54:58.000Z
2020-12-30T04:07:48.000Z
tests/box_test.py
drichmond/IPICO-Open-Source
bbb7b7f800edd524caba1f89394236f32e05e02e
[ "Apache-2.0" ]
null
null
null
tests/box_test.py
drichmond/IPICO-Open-Source
bbb7b7f800edd524caba1f89394236f32e05e02e
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3.6 from ipico.reader import BoxReader if __name__ == '__main__': main()
14.647059
45
0.590361
#!/usr/local/bin/python3.6 from ipico.reader import BoxReader def main(): # read a data packet data = None seq = 0 rdr = BoxReader('Finish', '192.168.2.34') for s in rdr: print(s) if __name__ == '__main__': main()
125
0
22
d22419bb2ffe084bb952a6ac2539d7f55fc18699
450
py
Python
leetcode-life/linkedlist/NO_141_linked_list_cycle_easy.py
sunrong1990/PythonLife
ce288e4fcccc76cd647c80f47f83bf16117269ba
[ "MIT" ]
null
null
null
leetcode-life/linkedlist/NO_141_linked_list_cycle_easy.py
sunrong1990/PythonLife
ce288e4fcccc76cd647c80f47f83bf16117269ba
[ "MIT" ]
null
null
null
leetcode-life/linkedlist/NO_141_linked_list_cycle_easy.py
sunrong1990/PythonLife
ce288e4fcccc76cd647c80f47f83bf16117269ba
[ "MIT" ]
null
null
null
from myLinkedList import *
21.428571
47
0.482222
from myLinkedList import * class Solution: def hasCycle(self, head: ListNode) -> bool: """ 方法1,快慢指针 链表中环的判断 :param head: :return: """ if not head: return False slow, fast = head, head while fast and fast.next: slow = s...
0
427
23
8714de68982283bcaeff5e6a0b71251d452dbab8
1,873
py
Python
tests/x7/lib/test_shell_tools.py
gribbg/x7-lib
1ec5807d2c85d522a9f678f995d0f2fe42735d18
[ "BSD-2-Clause" ]
null
null
null
tests/x7/lib/test_shell_tools.py
gribbg/x7-lib
1ec5807d2c85d522a9f678f995d0f2fe42735d18
[ "BSD-2-Clause" ]
null
null
null
tests/x7/lib/test_shell_tools.py
gribbg/x7-lib
1ec5807d2c85d522a9f678f995d0f2fe42735d18
[ "BSD-2-Clause" ]
null
null
null
# Originally auto-generated on 2021-02-15-12:14:36 -0500 EST # By '--verbose --verbose x7.lib.shell_tools' from unittest import TestCase from x7.lib.annotations import tests from x7.testing.support import Capture from x7.lib import shell_tools from x7.lib.shell_tools_load import ShellTool @tests(shell_tools) class T...
36.019231
74
0.662573
# Originally auto-generated on 2021-02-15-12:14:36 -0500 EST # By '--verbose --verbose x7.lib.shell_tools' from unittest import TestCase from x7.lib.annotations import tests from x7.testing.support import Capture from x7.lib import shell_tools from x7.lib.shell_tools_load import ShellTool @tests(shell_tools) class T...
1,230
0
104
1619fbea4d2721b8f99f0b77fee06159cd5d23ad
1,560
py
Python
challenges/graph/graph/tests/test_graph.py
nsinner1/data-structures-and-algorithms-python
6c15d3805ba052d6b884c8ddae1c926d81b97118
[ "MIT" ]
null
null
null
challenges/graph/graph/tests/test_graph.py
nsinner1/data-structures-and-algorithms-python
6c15d3805ba052d6b884c8ddae1c926d81b97118
[ "MIT" ]
null
null
null
challenges/graph/graph/tests/test_graph.py
nsinner1/data-structures-and-algorithms-python
6c15d3805ba052d6b884c8ddae1c926d81b97118
[ "MIT" ]
null
null
null
import pytest from graph.graph import Graph, Vertex, Edge, Queue
22.285714
50
0.665385
import pytest from graph.graph import Graph, Vertex, Edge, Queue def test_add_graph(): graph = Graph() assert graph def test_add_vertex(): graph = Graph() vertex = graph.add_vertex('spam') assert vertex.value == 'spam' def test_add_edge(): graph = Graph() spam = graph.add_vertex('spam'...
1,278
0
207
2620b6b9400f88f53b3ed2fe084239f6a699e5d3
432
py
Python
semantic_querying.py
Haoyu-R/How-to-Manage-TinyML-at-Scale
da05a79f3abdaf476b73a4b7c689468c951bb364
[ "MIT" ]
1
2022-02-22T01:32:50.000Z
2022-02-22T01:32:50.000Z
semantic_querying.py
Haoyu-R/How-to-Manage-TinyML-at-Scale
da05a79f3abdaf476b73a4b7c689468c951bb364
[ "MIT" ]
null
null
null
semantic_querying.py
Haoyu-R/How-to-Manage-TinyML-at-Scale
da05a79f3abdaf476b73a4b7c689468c951bb364
[ "MIT" ]
null
null
null
from SPARQLWrapper import SPARQLWrapper, JSON from sparql_queries import * import json # Put the repository URL from Graph DB here sparql = SPARQLWrapper(r"http://192.168.1.106:7200/repositories/tinyml2022_v2") # Put the query here sparql.setQuery(query_1) sparql.setReturnFormat(JSON) results = sparql.query().convert...
28.8
79
0.773148
from SPARQLWrapper import SPARQLWrapper, JSON from sparql_queries import * import json # Put the repository URL from Graph DB here sparql = SPARQLWrapper(r"http://192.168.1.106:7200/repositories/tinyml2022_v2") # Put the query here sparql.setQuery(query_1) sparql.setReturnFormat(JSON) results = sparql.query().convert...
0
0
0
f5a48c2673e686fc065e294695731a83dc05584c
4,015
py
Python
lnk/googl/command.py
goldsborough/lnk
1487d272a70329571c77c0ec17c394dc6a1d088f
[ "MIT" ]
3
2017-06-16T18:51:54.000Z
2018-04-08T19:36:12.000Z
lnk/googl/command.py
goldsborough/lnk
1487d272a70329571c77c0ec17c394dc6a1d088f
[ "MIT" ]
2
2021-02-08T20:17:54.000Z
2021-04-30T20:35:44.000Z
lnk/googl/command.py
goldsborough/lnk
1487d272a70329571c77c0ec17c394dc6a1d088f
[ "MIT" ]
1
2019-11-06T19:05:30.000Z
2019-11-06T19:05:30.000Z
#!/usr/bin/env python #! -*- coding: utf-8 -*- """Contains the base-class for all goo.gl commands.""" import apiclient.discovery import googleapiclient.errors import httplib2 import oauth2client.file import os import lnk.config import lnk.errors from lnk.abstract import AbstractCommand class Command(AbstractComman...
30.648855
74
0.718306
#!/usr/bin/env python #! -*- coding: utf-8 -*- """Contains the base-class for all goo.gl commands.""" import apiclient.discovery import googleapiclient.errors import httplib2 import oauth2client.file import os import lnk.config import lnk.errors from lnk.abstract import AbstractCommand class Command(AbstractComman...
0
0
0
d9de5c2b3e8c00f404ff312ce3e36c2caeb75133
771
py
Python
var/spack/repos/builtin/packages/nvtop/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2021-09-29T02:14:40.000Z
2022-01-27T20:50:36.000Z
var/spack/repos/builtin/packages/nvtop/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2022-02-28T11:30:18.000Z
2022-03-23T19:34:56.000Z
var/spack/repos/builtin/packages/nvtop/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Nvtop(CMakePackage, CudaPackage): """Nvtop stands for NVidia TOP, a (h)top like task monit...
33.521739
95
0.728923
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Nvtop(CMakePackage, CudaPackage): """Nvtop stands for NVidia TOP, a (h)top like task monit...
66
0
27
1a9d033864d3ed4ca4ff2d1c25a865a9ebe5bb68
599
py
Python
website/extensions/intro_text.py
acaciawater/wfn
74c5b6bb0b2065cfcf6e968daef6e7354ff971c2
[ "MIT" ]
null
null
null
website/extensions/intro_text.py
acaciawater/wfn
74c5b6bb0b2065cfcf6e968daef6e7354ff971c2
[ "MIT" ]
null
null
null
website/extensions/intro_text.py
acaciawater/wfn
74c5b6bb0b2065cfcf6e968daef6e7354ff971c2
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms.module.medialibrary.models import MediaFile from feincms import extensions
31.526316
75
0.701169
from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms.module.medialibrary.models import MediaFile from feincms import extensions class Extension(extensions.Extension): def handle_model(self): self.model.add_to_class('intro_text', models.TextField( v...
331
17
76
45b35d71aa5c89c4cc5bf4f44e16d910cbdcac65
10,551
py
Python
codes/data/data_process.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
2
2021-11-05T09:21:54.000Z
2021-11-14T06:03:16.000Z
codes/data/data_process.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
2
2021-06-05T02:53:30.000Z
2021-06-06T03:05:44.000Z
codes/data/data_process.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import cv2 import os, sys sys.path.append('./') import numpy as np import glob import math """ Created on Thu Jan 10 10:48:00 2013 @author: Chen Ming """ def read_YUV420(image_path, rows, cols, numfrm): """ 读取YUV文件,解析为Y, U, V图像 :param image_path: YUV图像路径 :param...
40.425287
268
0.572647
# -*- coding: utf-8 -*- import cv2 import os, sys sys.path.append('./') import numpy as np import glob import math """ Created on Thu Jan 10 10:48:00 2013 @author: Chen Ming """ def read_YUV420(image_path, rows, cols, numfrm): """ 读取YUV文件,解析为Y, U, V图像 :param image_path: YUV图像路径 :param...
680
0
100
1fc81586f7ee334a7c58811a00bc04f65d79aa81
5,752
py
Python
Bot_Training.py
TianyuWu1990/ChatterBot
171fd25a14fd0c4dccaaa54e1a5d0ec6c40221dd
[ "BSD-3-Clause" ]
null
null
null
Bot_Training.py
TianyuWu1990/ChatterBot
171fd25a14fd0c4dccaaa54e1a5d0ec6c40221dd
[ "BSD-3-Clause" ]
null
null
null
Bot_Training.py
TianyuWu1990/ChatterBot
171fd25a14fd0c4dccaaa54e1a5d0ec6c40221dd
[ "BSD-3-Clause" ]
null
null
null
""" AI Neural Network Training For Captain Pi Created By: Vicky Bao """ import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.layers import Embedding, LSTM, Dense, Bidirectional, GRU from tensorflow.keras...
31.26087
105
0.727399
""" AI Neural Network Training For Captain Pi Created By: Vicky Bao """ import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.layers import Embedding, LSTM, Dense, Bidirectional, GRU from tensorflow.keras...
1,052
0
45
0cbff20b100b33389282e1285b151fa26b89e5b3
2,251
py
Python
lamby/models/user.py
lamby-ml/lamby-web
4e3a1f0c9a12118bb8d6d084d07256475d48256c
[ "MIT" ]
null
null
null
lamby/models/user.py
lamby-ml/lamby-web
4e3a1f0c9a12118bb8d6d084d07256475d48256c
[ "MIT" ]
16
2019-01-31T21:48:41.000Z
2019-04-25T21:32:38.000Z
lamby/models/user.py
lamby-ml/lamby-web
4e3a1f0c9a12118bb8d6d084d07256475d48256c
[ "MIT" ]
null
null
null
import secrets from flask_login import UserMixin from werkzeug.security import check_password_hash, generate_password_hash from lamby.database import db from lamby.models.projects import projects
31.704225
79
0.501555
import secrets from flask_login import UserMixin from werkzeug.security import check_password_hash, generate_password_hash from lamby.database import db from lamby.models.projects import projects class User(UserMixin, db.Model): # ------------------------------------------------------------------------- # M...
269
1,760
23
73d4a4be4d531fdb1cabdd6b5596c2c010a561cc
948
py
Python
imlib/image/masking.py
noisysky/imlib
625193be4a586d9040a48df9d51dbdd3a17c7d06
[ "MIT" ]
null
null
null
imlib/image/masking.py
noisysky/imlib
625193be4a586d9040a48df9d51dbdd3a17c7d06
[ "MIT" ]
6
2020-04-17T12:02:56.000Z
2020-05-12T15:20:18.000Z
imlib/image/masking.py
noisysky/imlib
625193be4a586d9040a48df9d51dbdd3a17c7d06
[ "MIT" ]
4
2020-02-05T18:53:30.000Z
2022-02-21T18:50:14.000Z
import numpy as np def mask_image_threshold(image, masking_image, threshold=0): """ Mask one image, based on the values in another image that are above a threshold :param image: Input image :param masking_image: Image to base the mask on (same shape as image) :param threshold: Threshold to bas...
31.6
78
0.703586
import numpy as np def mask_image_threshold(image, masking_image, threshold=0): """ Mask one image, based on the values in another image that are above a threshold :param image: Input image :param masking_image: Image to base the mask on (same shape as image) :param threshold: Threshold to bas...
0
0
0
fabd427094c1ac44bdebcf5e81a06aed67bcb985
1,425
py
Python
percept/point.py
joshleeb/PerceptronVis
2d0e2f1969e11498533f190f5598c174b7584513
[ "MIT" ]
null
null
null
percept/point.py
joshleeb/PerceptronVis
2d0e2f1969e11498533f190f5598c174b7584513
[ "MIT" ]
null
null
null
percept/point.py
joshleeb/PerceptronVis
2d0e2f1969e11498533f190f5598c174b7584513
[ "MIT" ]
null
null
null
import random def generate_points(n, bounds): ''' Generates a list of n points with random coordinates. ''' return [Point.create_random(bounds) for i in range(n)] def generate_class_fn(bounds): ''' Generates a function used to classify the generated points. The function returned is the ...
27.941176
76
0.61193
import random class Point: def __init__(self, x, y, classification=None): self.x = x self.y = y self.classification = None def __repr__(self): return '({}, {}, {})'.format(self.x, self.y, self.classification) def __str__(self): return self.__repr__() def appl...
227
644
50
4d3dcdd573097f329abfa171c72eeb7e953e4944
74
py
Python
src/lib/robotparser.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
10
2015-11-13T17:02:40.000Z
2021-02-09T23:21:05.000Z
src/lib/robotparser.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
43
2015-06-03T17:59:23.000Z
2021-09-17T10:45:21.000Z
src/lib/robotparser.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
13
2017-07-02T03:16:46.000Z
2021-07-05T14:53:56.000Z
raise NotImplementedError("robotparser is not yet implemented in Skulpt")
37
73
0.837838
raise NotImplementedError("robotparser is not yet implemented in Skulpt")
0
0
0
681ce907021c18a1a31bb281a18230934f7340fc
1,761
py
Python
rl_games/algos_tf14/model_builder.py
cremebrule/rl_games
fc996a0d00438f6747fef86959c8d31ecd7880f9
[ "MIT" ]
193
2019-05-28T01:48:56.000Z
2022-03-31T07:56:37.000Z
rl_games/algos_tf14/model_builder.py
cremebrule/rl_games
fc996a0d00438f6747fef86959c8d31ecd7880f9
[ "MIT" ]
35
2020-01-28T22:15:51.000Z
2022-03-28T22:10:54.000Z
rl_games/algos_tf14/model_builder.py
cremebrule/rl_games
fc996a0d00438f6747fef86959c8d31ecd7880f9
[ "MIT" ]
37
2019-06-28T01:09:53.000Z
2022-03-26T09:14:06.000Z
from rl_games.common import object_factory import rl_games.algos_tf14 from rl_games.algos_tf14 import network_builder from rl_games.algos_tf14 import models
50.314286
146
0.752413
from rl_games.common import object_factory import rl_games.algos_tf14 from rl_games.algos_tf14 import network_builder from rl_games.algos_tf14 import models class ModelBuilder: def __init__(self): self.model_factory = object_factory.ObjectFactory() self.model_factory.register_builder('discrete_a2...
1,527
-2
76
bab9e9cc214af5590dbda085405554100fa3778a
544
py
Python
examples/parameterized_test.py
Likangkang08/SeleniumBases
0fdd3ea44fafff976d349c2ccc2b4e7fef21084e
[ "MIT" ]
1
2019-06-14T09:23:51.000Z
2019-06-14T09:23:51.000Z
examples/parameterized_test.py
Likangkang08/SeleniumBases
0fdd3ea44fafff976d349c2ccc2b4e7fef21084e
[ "MIT" ]
1
2021-06-01T23:51:27.000Z
2021-06-01T23:51:27.000Z
examples/parameterized_test.py
Likangkang08/SeleniumBases
0fdd3ea44fafff976d349c2ccc2b4e7fef21084e
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase from parameterized import parameterized
34
74
0.676471
from seleniumbase import BaseCase from parameterized import parameterized class GoogleTestClass(BaseCase): @parameterized.expand([ ["pypi", "https://pypi.org"], ["wikipedia", "https://www.wikipedia.org"], ["seleniumbase", "https://github.com/seleniumbase/SeleniumBase"], ]) def tes...
209
237
23
6ad90e1b8027ebf5b6784838d7b1bf86701cb99c
7,110
py
Python
calamari_ocr/scripts/predict.py
timothydereuse/calamari
eba8e9c35d2c301319cc9cb15d25124460aee2db
[ "Apache-2.0" ]
null
null
null
calamari_ocr/scripts/predict.py
timothydereuse/calamari
eba8e9c35d2c301319cc9cb15d25124460aee2db
[ "Apache-2.0" ]
null
null
null
calamari_ocr/scripts/predict.py
timothydereuse/calamari
eba8e9c35d2c301319cc9cb15d25124460aee2db
[ "Apache-2.0" ]
null
null
null
import os import zlib from dataclasses import dataclass, field from typing import TYPE_CHECKING, List, Optional import tfaip.util.logging from bidi.algorithm import get_base_level from paiargparse import PAIArgumentParser, pai_meta, pai_dataclass from calamari_ocr import __version__ from calamari_ocr.ocr.dataset.data...
36.839378
120
0.669198
import os import zlib from dataclasses import dataclass, field from typing import TYPE_CHECKING, List, Optional import tfaip.util.logging from bidi.algorithm import get_base_level from paiargparse import PAIArgumentParser, pai_meta, pai_dataclass from calamari_ocr import __version__ from calamari_ocr.ocr.dataset.data...
4,405
1,639
91
c1e3aaef01cfa4a5cc14f7225f454aa2d7e4a3f1
13,767
py
Python
detect_wrapper.py
jobpasin/tensorflow-yolov4
52ffe2e21ee715bfcaa72058a4c32a3942fc594e
[ "MIT" ]
null
null
null
detect_wrapper.py
jobpasin/tensorflow-yolov4
52ffe2e21ee715bfcaa72058a4c32a3942fc594e
[ "MIT" ]
null
null
null
detect_wrapper.py
jobpasin/tensorflow-yolov4
52ffe2e21ee715bfcaa72058a4c32a3942fc594e
[ "MIT" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' import sys import cv2 import numpy as np import tensorflow as tf from tensorflow.compat.v1 import ConfigProto from tensorflow.compat.v1 import InteractiveSession from tensorflow.python.saved_model import tag_constants import tensorflow_yolov4.core.utils as utils from ...
48.819149
118
0.575507
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' import sys import cv2 import numpy as np import tensorflow as tf from tensorflow.compat.v1 import ConfigProto from tensorflow.compat.v1 import InteractiveSession from tensorflow.python.saved_model import tag_constants import tensorflow_yolov4.core.utils as utils from ...
9,505
3,230
23
abbbd08479e35cd1f8448cdae81203f7b33d7947
5,991
py
Python
src/cogs/buttonrole.py
Infernum1/Spacebot
1a393334ff03ea9d6015498e96adb2ad6a8481b4
[ "MIT" ]
48
2021-12-03T19:19:35.000Z
2022-03-28T08:41:15.000Z
src/cogs/buttonrole.py
27Saumya/Spacebot
9736ae2543de5d59114eb9a027b9f8787c172057
[ "MIT" ]
30
2021-12-06T10:22:35.000Z
2022-01-23T10:50:02.000Z
src/cogs/buttonrole.py
27Saumya/Spacebot
9736ae2543de5d59114eb9a027b9f8787c172057
[ "MIT" ]
14
2021-12-08T18:20:36.000Z
2022-03-06T18:01:30.000Z
import discord import aiosqlite from discord.commands import slash_command from discord.ext import commands # Courtesy of Pycord examples """ Let users assign themselves roles by clicking on Buttons. The view made is persistent, so it will work even when the bot restarts. See this example for more information...
38.651613
155
0.602737
import discord import aiosqlite from discord.commands import slash_command from discord.ext import commands # Courtesy of Pycord examples """ Let users assign themselves roles by clicking on Buttons. The view made is persistent, so it will work even when the bot restarts. See this example for more information...
78
1,699
79
eea26823d632d9aada73bba8a8562d67323244cd
729
py
Python
tests/paradrop/backend/test_token_manager.py
lhartung/paradrop-test
22a491bf3198bf61bcabaedfaecde5b9be97e76f
[ "Apache-2.0" ]
76
2015-08-24T18:15:20.000Z
2021-12-06T20:03:19.000Z
tests/paradrop/backend/test_token_manager.py
leilei1881/Paradrop
546464e075f8a226b9eb4fe444390dc5c8527ad9
[ "Apache-2.0" ]
35
2015-07-07T22:27:49.000Z
2022-03-01T17:13:40.000Z
tests/paradrop/backend/test_token_manager.py
lhartung/paradrop-test
22a491bf3198bf61bcabaedfaecde5b9be97e76f
[ "Apache-2.0" ]
27
2016-02-03T22:00:09.000Z
2021-09-26T16:59:38.000Z
import time from mock import patch, MagicMock from paradrop.backend import token_manager @patch("paradrop.backend.token_manager.nexus")
27
49
0.717421
import time from mock import patch, MagicMock from paradrop.backend import token_manager def test_generate_jwt_secret(): secret = token_manager.generate_jwt_secret() assert isinstance(secret, basestring) assert len(secret) >= 32 @patch("paradrop.backend.token_manager.nexus") def test_TokenManager_issue...
544
0
45
154a33fc57b757260cefdc34b640f03d0463f7c5
10,613
py
Python
TeMail.py
k8scat/TeMail
32591ebf0d9774c8d9ce7aee90946e2502f81263
[ "MIT" ]
null
null
null
TeMail.py
k8scat/TeMail
32591ebf0d9774c8d9ce7aee90946e2502f81263
[ "MIT" ]
null
null
null
TeMail.py
k8scat/TeMail
32591ebf0d9774c8d9ce7aee90946e2502f81263
[ "MIT" ]
1
2019-10-20T14:29:03.000Z
2019-10-20T14:29:03.000Z
# -*- coding: utf-8 -*- """ @author: hsowan <hsowan.me@gmail.com> @date: 2019/10/19 """ import os from tkinter import * from tkinter import simpledialog, messagebox, filedialog, dialog from tkinter import ttk import yaml import smtplib from email.mime.text import MIMEText from email.header import Header from smtplib ...
31.306785
116
0.576274
# -*- coding: utf-8 -*- """ @author: hsowan <hsowan.me@gmail.com> @date: 2019/10/19 """ import os from tkinter import * from tkinter import simpledialog, messagebox, filedialog, dialog from tkinter import ttk import yaml import smtplib from email.mime.text import MIMEText from email.header import Header from smtplib ...
5,128
0
267
0c4b4d51a705eb165b6b3aefbcd194e6b68b539a
3,106
py
Python
irc_harvest.py
pauldardeau/irc-wheat
94ecc407497c2b6c9c22d566315c12cb3015e558
[ "BSD-3-Clause" ]
null
null
null
irc_harvest.py
pauldardeau/irc-wheat
94ecc407497c2b6c9c22d566315c12cb3015e558
[ "BSD-3-Clause" ]
null
null
null
irc_harvest.py
pauldardeau/irc-wheat
94ecc407497c2b6c9c22d566315c12cb3015e558
[ "BSD-3-Clause" ]
null
null
null
import irc_wheat import sys def parse_date(d): """Parse date string to (yyyy, MM, dd) :param d: the date string to parse :returns: parsed date as tuple or None on error """ date_fields = d.split('-') if date_fields and len(date_fields) == 3: return (int(date_fields[0]), int(da...
30.752475
78
0.554733
import irc_wheat import sys def parse_date(d): """Parse date string to (yyyy, MM, dd) :param d: the date string to parse :returns: parsed date as tuple or None on error """ date_fields = d.split('-') if date_fields and len(date_fields) == 3: return (int(date_fields[0]), int(da...
0
0
0
7c37cc3d1996a097af34d7a0ff2aa60225add307
1,154
py
Python
benzole/core/response.py
kritibytes/benzole
6f8f246ab55a3ca29c52c650e400c69317773622
[ "MIT" ]
null
null
null
benzole/core/response.py
kritibytes/benzole
6f8f246ab55a3ca29c52c650e400c69317773622
[ "MIT" ]
null
null
null
benzole/core/response.py
kritibytes/benzole
6f8f246ab55a3ca29c52c650e400c69317773622
[ "MIT" ]
null
null
null
from typing import Any, Union, List from ..utils.types import Header, HeaderList import json
25.644444
75
0.613518
from typing import Any, Union, List from ..utils.types import Header, HeaderList import json class Response: status_code: str = "200" _headers: Header body: Any def __init__(self, type: str, body: Any) -> None: self._headers = { "Content-Type": type, } self.body = ...
672
365
23