hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
432c8a0798a550bc2be62356a720731fb992f36b
1,540
py
Python
third_party/models/fc.py
Buhua-Liu/understanding-curricula
fdeb3175140d4da92bee4c9a3a1c83539feb8b33
[ "Apache-2.0" ]
25
2021-03-18T02:30:15.000Z
2022-03-06T12:50:24.000Z
third_party/models/fc.py
Buhua-Liu/understanding-curricula
fdeb3175140d4da92bee4c9a3a1c83539feb8b33
[ "Apache-2.0" ]
2
2021-08-10T05:20:46.000Z
2021-08-10T05:50:43.000Z
third_party/models/fc.py
Buhua-Liu/understanding-curricula
fdeb3175140d4da92bee4c9a3a1c83539feb8b33
[ "Apache-2.0" ]
6
2021-06-16T19:04:39.000Z
2022-01-16T11:59:42.000Z
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.056604
86
0.655844
c478d8282a0d39312de8e6bc2c6c4b5c89701757
8,080
py
Python
cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# (c) Copyright 2019 Brocade, a Broadcom Company # 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 #...
41.22449
79
0.573639
fcf67c03af69cb4822399184aba215e2ddc4c5d6
489
py
Python
src/tipsextension/azext_tipsextension/vendored_sdks/oscp/dataplane/aio/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
null
null
null
src/tipsextension/azext_tipsextension/vendored_sdks/oscp/dataplane/aio/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
null
null
null
src/tipsextension/azext_tipsextension/vendored_sdks/oscp/dataplane/aio/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.2.1, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ------------------------------------------...
54.333333
99
0.560327
0a59c7211d2952d9a6f2fdc0cf6e236c7e5e65f1
6,151
py
Python
test/unit/test_graph_selection.py
pieter-lazzaro/dbt
b6d1e15a9f677a7569eec47f19c8baebb6ed7818
[ "Apache-2.0" ]
null
null
null
test/unit/test_graph_selection.py
pieter-lazzaro/dbt
b6d1e15a9f677a7569eec47f19c8baebb6ed7818
[ "Apache-2.0" ]
1
2019-02-14T20:10:46.000Z
2019-02-19T13:06:38.000Z
test/unit/test_graph_selection.py
pieter-lazzaro/dbt
b6d1e15a9f677a7569eec47f19c8baebb6ed7818
[ "Apache-2.0" ]
null
null
null
import unittest import mock import os import string import dbt.graph.selector as graph_selector import networkx as nx class GraphSelectionTest(unittest.TestCase): def setUp(self): integer_graph = nx.balanced_tree(2, 2, nx.DiGraph()) package_mapping = { i: 'm.' + ('X' if i % 2 == 0 ...
34.751412
89
0.521866
70b3c17d6589ee73194694658836b1a579066375
684
py
Python
flask_mongoengine/wtf/models.py
Ijwu/flask-mongoengine
66ad6a2d670c881a146bd25b9114e5f6530f57a9
[ "BSD-3-Clause" ]
1
2020-07-29T08:42:21.000Z
2020-07-29T08:42:21.000Z
flask_mongoengine/wtf/models.py
Ijwu/flask-mongoengine
66ad6a2d670c881a146bd25b9114e5f6530f57a9
[ "BSD-3-Clause" ]
null
null
null
flask_mongoengine/wtf/models.py
Ijwu/flask-mongoengine
66ad6a2d670c881a146bd25b9114e5f6530f57a9
[ "BSD-3-Clause" ]
null
null
null
from flask_wtf import FlaskForm class ModelForm(FlaskForm): """A WTForms mongoengine model form""" def __init__(self, formdata=None, **kwargs): self.instance = kwargs.pop("instance", None) or kwargs.get("obj") if self.instance and not formdata: kwargs["obj"] = self.instance ...
29.73913
73
0.619883
cb80dc9d8e5b1173363dbe0c103fb499b12d2b4a
688
py
Python
clara/__init__.py
csettles/Clara
146f25dc4d435a27edea0f07fa4e8ebde9da30b6
[ "MIT" ]
null
null
null
clara/__init__.py
csettles/Clara
146f25dc4d435a27edea0f07fa4e8ebde9da30b6
[ "MIT" ]
null
null
null
clara/__init__.py
csettles/Clara
146f25dc4d435a27edea0f07fa4e8ebde9da30b6
[ "MIT" ]
null
null
null
from .bot import Clara from .utils import settings from .utils.logger import logger clara = Clara(command_prefix="!", description=settings.DESCRIPTION) @clara.event async def on_ready(): logger.info('Logged in as {} with id {}'.format(clara.user.name, clara.user.id)) @clara.event async def on_resume(): logge...
26.461538
84
0.726744
8b34557d33fc19f74717d67ff1960d363c21fc1b
27,148
py
Python
tests/test_for_support/test_for_consistency.py
matthiaskoenig/memote
7c14cd304523dda83eaf4835ee007243e8673f85
[ "Apache-2.0" ]
null
null
null
tests/test_for_support/test_for_consistency.py
matthiaskoenig/memote
7c14cd304523dda83eaf4835ee007243e8673f85
[ "Apache-2.0" ]
null
null
null
tests/test_for_support/test_for_consistency.py
matthiaskoenig/memote
7c14cd304523dda83eaf4835ee007243e8673f85
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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...
36.636977
79
0.662627
d5e21832afab34174f56382429792e5c24c1b229
11,246
py
Python
tensorflow/python/framework/python_api_info_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/framework/python_api_info_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/framework/python_api_info_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2020 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...
43.929688
80
0.580829
3553f408010c663cd9ab817665cab0da213d6bb2
12,261
py
Python
kernel/components/binning/vertfeaturebinning/base_feature_binning.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/components/binning/vertfeaturebinning/base_feature_binning.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/components/binning/vertfeaturebinning/base_feature_binning.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2021 Tianmian Tech. 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/LI...
43.021053
116
0.69195
5018fecea46e40b631af5d9a8a9302c9737c99ff
1,187
py
Python
Lib/site-packages/qtutils/disconnect_contextmanager.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/qtutils/disconnect_contextmanager.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qtutils/disconnect_contextmanager.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
##################################################################### # # # disconnect_contextmanager.py # # # # Copyright 2013, Christopher Billington...
45.653846
69
0.361415
80eabaf1a7bfb906d521d66b8c45a14298aa204a
1,486
py
Python
ros2bag/setup.py
albtam/rosbag2
e4ce24cdfa7e24c6d2c025ecc38ab1157a0eecc8
[ "Apache-2.0" ]
null
null
null
ros2bag/setup.py
albtam/rosbag2
e4ce24cdfa7e24c6d2c025ecc38ab1157a0eecc8
[ "Apache-2.0" ]
null
null
null
ros2bag/setup.py
albtam/rosbag2
e4ce24cdfa7e24c6d2c025ecc38ab1157a0eecc8
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages from setuptools import setup package_name = 'ros2bag' setup( name=package_name, version='0.6.0', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_index/resource_index/packages', ...
30.958333
77
0.611709
ae394dd25e9ce1ff43e7a610b1e8e0a75cca2600
457
py
Python
src/source.py
CoolPiotr/CRITERIA
7ec94fbc95dc363227c50a923052115f28c12623
[ "MIT" ]
13
2020-08-17T22:04:50.000Z
2022-02-25T20:59:18.000Z
src/source.py
CoolPiotr/CRITERIA
7ec94fbc95dc363227c50a923052115f28c12623
[ "MIT" ]
12
2020-08-24T15:49:29.000Z
2022-03-17T17:49:46.000Z
src/source.py
CoolPiotr/CRITERIA
7ec94fbc95dc363227c50a923052115f28c12623
[ "MIT" ]
2
2021-04-22T16:40:33.000Z
2021-04-22T16:48:38.000Z
# Main CIDOC-CRM classes, serving as Mermaid classes for styling classes = [ "E2_Temporal_Entity", "E55_Type", "E52_Time-Span", "E41_Appellation", "E53_Place", "E77_Persistent_Item", "E28_Conceptual_Object", "E18_Physical_Thing", "E39_Actor", "E1_CRM_Entity"] # Ontologies files onto = { ...
21.761905
64
0.673961
83e74dfc444edffa7c75e3e4c00a729f2f9977c6
19,746
py
Python
M3_T5_no_pretrain_subword/t5_no_pretraining_main.py
VulRepairTeam/VulRepair
9cf2abd7ca27d84445ddfc7ab323745a5b676cce
[ "MIT" ]
null
null
null
M3_T5_no_pretrain_subword/t5_no_pretraining_main.py
VulRepairTeam/VulRepair
9cf2abd7ca27d84445ddfc7ab323745a5b676cce
[ "MIT" ]
null
null
null
M3_T5_no_pretrain_subword/t5_no_pretraining_main.py
VulRepairTeam/VulRepair
9cf2abd7ca27d84445ddfc7ab323745a5b676cce
[ "MIT" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
48.997519
143
0.632837
37fe2f860a561a40f8a6a70dca11a87518fec383
2,084
py
Python
opensearchpy/client/features.py
CEHENKLE/opensearch-py
44965ad0c91ec59948eb28b652d1474fa1818d76
[ "Apache-2.0" ]
75
2021-08-20T03:43:38.000Z
2022-03-31T12:55:05.000Z
opensearchpy/client/features.py
CEHENKLE/opensearch-py
44965ad0c91ec59948eb28b652d1474fa1818d76
[ "Apache-2.0" ]
75
2021-08-19T19:06:51.000Z
2022-03-28T16:11:04.000Z
opensearchpy/client/features.py
CEHENKLE/opensearch-py
44965ad0c91ec59948eb28b652d1474fa1818d76
[ "Apache-2.0" ]
28
2021-08-19T16:49:34.000Z
2022-03-22T21:48:34.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # # Licensed to Elasticsearch B.V. under...
35.322034
81
0.708733
5a45d617d7bc2dd8ccc82467df23a52b5c1f7d5d
2,195
py
Python
setup.py
friikjones/keepluggable
9a32a885ca617468a2a8ab932b9123e55d490677
[ "MIT" ]
null
null
null
setup.py
friikjones/keepluggable
9a32a885ca617468a2a8ab932b9123e55d490677
[ "MIT" ]
null
null
null
setup.py
friikjones/keepluggable
9a32a885ca617468a2a8ab932b9123e55d490677
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Installer for keepluggable.""" from codecs import open from sys import version_info from setuptools import setup, find_packages # http://peak.telecommunity.com/DevCenter/setuptools#developer-s-guide with open("README.rst", encoding="utf-8") as f: long_description = f.read() requires =...
33.769231
75
0.638269
0ac1a40a18839c3d15113dc0a2bc38dd5dbb1d9d
3,235
py
Python
profiles_project/settings.py
achrafel1/profiles-rest-api
8fba50caa513a3e6553805e030f65b8d3f3c39c1
[ "MIT" ]
null
null
null
profiles_project/settings.py
achrafel1/profiles-rest-api
8fba50caa513a3e6553805e030f65b8d3f3c39c1
[ "MIT" ]
4
2020-06-27T17:32:56.000Z
2022-02-10T09:41:41.000Z
profiles_project/settings.py
achrafel1/profiles-rest-api
8fba50caa513a3e6553805e030f65b8d3f3c39c1
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.88
91
0.698609
7f02c00b6adfbd6b86fa2199bd7541ad43006417
3,070
py
Python
test.py
adit98/Rainbow
928cd4afd0718c956d8cd5b47ea89990e6e2e26f
[ "MIT" ]
null
null
null
test.py
adit98/Rainbow
928cd4afd0718c956d8cd5b47ea89990e6e2e26f
[ "MIT" ]
null
null
null
test.py
adit98/Rainbow
928cd4afd0718c956d8cd5b47ea89990e6e2e26f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division import os import plotly from plotly.graph_objs import Scatter from plotly.graph_objs.scatter import Line import torch from env import Env, MinigridEnv # Test DQN def test(args, T, dqn, val_mem, metrics, results_dir, evaluate=False): if args.minigrid: env ...
36.987952
156
0.683713
bd376b96db0cad9d84d181a55a0a136cf5d81935
2,993
py
Python
tests/test_changelog_file.py
KarstenSiemer/gordian
2724b32e7853912bae43536d150e1da8aaed69f1
[ "Apache-2.0" ]
55
2020-01-07T18:00:06.000Z
2022-03-23T08:59:13.000Z
tests/test_changelog_file.py
KarstenSiemer/gordian
2724b32e7853912bae43536d150e1da8aaed69f1
[ "Apache-2.0" ]
31
2020-01-07T18:21:59.000Z
2022-03-22T18:57:08.000Z
tests/test_changelog_file.py
KarstenSiemer/gordian
2724b32e7853912bae43536d150e1da8aaed69f1
[ "Apache-2.0" ]
14
2020-01-07T17:56:52.000Z
2022-01-25T18:43:53.000Z
import unittest from unittest.mock import MagicMock, patch from gordian.repo import Repo from gordian.files import ChangelogFile from .utils import Utils from datetime import datetime class TestBaseFile(unittest.TestCase): def setUp(self): self.github_file = Utils.create_github_content_file(file='changelo...
30.85567
134
0.668226
756e7bb5df0646931e18630f9f84cc31eb1f472c
4,608
py
Python
fram/fram_spi.py
mcauser/micropython_eeprom
65ac90a559aa096ae91d24edaed87361aa833bb5
[ "MIT" ]
40
2019-12-12T20:35:09.000Z
2022-02-23T16:08:48.000Z
fram/fram_spi.py
mcauser/micropython_eeprom
65ac90a559aa096ae91d24edaed87361aa833bb5
[ "MIT" ]
10
2020-02-11T08:35:53.000Z
2022-02-19T10:01:09.000Z
fram/fram_spi.py
peterhinch/micropython_eeprom
65ac90a559aa096ae91d24edaed87361aa833bb5
[ "MIT" ]
18
2019-12-11T13:56:45.000Z
2022-03-24T20:12:25.000Z
# fram_spi.py Supports Fujitsu 256KiB and 512KiB FRAM devices # M85RS2MT Adafruit https://www.adafruit.com/product/4718 # M85RS4MT Adafruit https://www.adafruit.com/product/4719 # These chips are almost identical. Command sets are identical. # Product ID 1st byte, LS 4 bits is density 0x8 == 2MiB 0x9 == 4MiB # Releas...
34.38806
87
0.534288
c22a652f82207317c9583d6fc273fbdfee9560b3
819
py
Python
2 - BitFriend's auth/authPwn.py
lfontesm/Reverse-Engineering-Challenges
a317977002cd51bea2434690ddefd38ce3cc73c4
[ "WTFPL" ]
1
2021-01-11T17:13:23.000Z
2021-01-11T17:13:23.000Z
2 - BitFriend's auth/authPwn.py
lfontesm/Reverse-Engineering-Challenges
a317977002cd51bea2434690ddefd38ce3cc73c4
[ "WTFPL" ]
null
null
null
2 - BitFriend's auth/authPwn.py
lfontesm/Reverse-Engineering-Challenges
a317977002cd51bea2434690ddefd38ce3cc73c4
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from pwn import * import re offsetFromStack=0x555555556030-0x55555555519c print('Offset from stack string to authenticated(): '+hex(offsetFromStack)) proc=process('./auth') # Exploiting format string vuln to get 5 items on the stack proc.sendline(b"%p %p %p %p %p") procAnswer=proc.recvline() print...
22.75
75
0.757021
eb7cfa2c8d56d1ddfb8644e838c7af95b936c97a
8,027
py
Python
official/cv/resnet/src/momentum.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/resnet/src/momentum.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/resnet/src/momentum.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
52.464052
120
0.664881
26fef4bcd6d8c54f2027583d51d8929061f36b20
3,780
py
Python
src/scripts/inferencing/treelite_python/score.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
13
2021-08-20T01:03:51.000Z
2022-02-12T05:34:46.000Z
src/scripts/inferencing/treelite_python/score.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
199
2021-08-21T21:18:53.000Z
2022-03-27T23:08:44.000Z
src/scripts/inferencing/treelite_python/score.py
microsoft/lightgbm-benchmark
286668d698d9d166857f924ecb775d5de224d489
[ "MIT" ]
4
2021-08-20T06:53:26.000Z
2022-01-24T22:22:39.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ TreeLite/Python inferencing script """ import os import sys import argparse import logging import numpy from distutils.util import strtobool import pandas as pd import treelite, treelite_runtime # Add the right path to PYTHONPATH # so that y...
32.586207
99
0.654497
7f7878e1ce9a81c1a85438a8f5a7f5d4e079a782
2,644
py
Python
ucsmsdk/mometa/firmware/FirmwareServerChassisConstraint.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/firmware/FirmwareServerChassisConstraint.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/firmware/FirmwareServerChassisConstraint.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for FirmwareServerChassisConstraint ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class FirmwareServerChassisConstraintConsts: pass class FirmwareServerChassisConstraint(M...
53.959184
248
0.680408
a1e0b74846bf92de1979de1be368fe7e84b65b1f
652
py
Python
app/mail.py
fboaventura/flask-boilerplate
9f81f1c8d5baddc326a30f64f1d7726dd55c7d4e
[ "MIT" ]
null
null
null
app/mail.py
fboaventura/flask-boilerplate
9f81f1c8d5baddc326a30f64f1d7726dd55c7d4e
[ "MIT" ]
73
2021-03-22T14:24:20.000Z
2022-03-31T23:46:50.000Z
app/mail.py
fboaventura/flask-boilerplate
9f81f1c8d5baddc326a30f64f1d7726dd55c7d4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Code taken from Miguel Grinberg's Mega Flask Tutorial # https://github.com/miguelgrinberg/microblog/blob/master/app/email.py from threading import Thread from flask import current_app from flask_mail import Message from app import mail def send_async_email(app, msg): w...
27.166667
72
0.73773
22e39a467b8f6134c405dd4364d918ed38ca8a79
1,316
py
Python
test/functional/rpc_uptime.py
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
10
2019-03-08T04:10:37.000Z
2021-08-20T11:55:14.000Z
test/functional/rpc_uptime.py
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
69
2018-11-09T20:29:29.000Z
2021-10-05T00:08:36.000Z
test/functional/rpc_uptime.py
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
7
2019-01-21T06:00:18.000Z
2021-12-19T16:18:00.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Copyright (c) 2010-2021 The Freicoin Developers # # This program is free software: you can redistribute it and/or modify it under # the terms of version 3 of the GNU Affero General Public License as published # by the Free Software Foundatio...
31.333333
79
0.731003
3ea75c0f76c3c032111d20bd197207ac4288a611
244
py
Python
models/networks/traceable_network.py
Mirevi/face-synthesizer-JVRB
3c5774b1c5c981131df21b299389f568502b8ecf
[ "BSD-3-Clause" ]
null
null
null
models/networks/traceable_network.py
Mirevi/face-synthesizer-JVRB
3c5774b1c5c981131df21b299389f568502b8ecf
[ "BSD-3-Clause" ]
null
null
null
models/networks/traceable_network.py
Mirevi/face-synthesizer-JVRB
3c5774b1c5c981131df21b299389f568502b8ecf
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod from torch import nn class TraceableNetwork(nn.Module, ABC): def __init__(self): super(TraceableNetwork, self).__init__() @abstractmethod def input_noise(self, metadata): pass
18.769231
48
0.70082
e28829675cef1a68c8b6d6f9820c671d0f43f746
7,108
py
Python
maskrcnn/engine/demo_process.py
kSahatova/MULAN-XAI
7f2ede7cc8ad4e772a3cfe7d52f0a710d5c89d5a
[ "MIT" ]
null
null
null
maskrcnn/engine/demo_process.py
kSahatova/MULAN-XAI
7f2ede7cc8ad4e772a3cfe7d52f0a710d5c89d5a
[ "MIT" ]
null
null
null
maskrcnn/engine/demo_process.py
kSahatova/MULAN-XAI
7f2ede7cc8ad4e772a3cfe7d52f0a710d5c89d5a
[ "MIT" ]
null
null
null
# Ke Yan, Imaging Biomarkers and Computer-Aided Diagnosis Laboratory, # National Institutes of Health Clinical Center, July 2019 """Procedure in the demo mode""" import os import numpy as np from time import time import torch import nibabel as nib from tqdm import tqdm import cv2 from openpyxl import load_workbook fro...
40.617143
114
0.626055
4e11ed63bbfdd2dfd308c23289df476e23bca3bc
3,712
py
Python
src/weblayer/wsgi.py
thruflo/weblayer
24d74f71cedd3855911477ed4952a311c83b0b5f
[ "Unlicense" ]
3
2016-07-04T15:27:12.000Z
2021-04-30T22:46:13.000Z
src/weblayer/wsgi.py
thruflo/weblayer
24d74f71cedd3855911477ed4952a311c83b0b5f
[ "Unlicense" ]
null
null
null
src/weblayer/wsgi.py
thruflo/weblayer
24d74f71cedd3855911477ed4952a311c83b0b5f
[ "Unlicense" ]
3
2015-09-16T08:55:30.000Z
2018-09-23T11:06:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :py:mod:`weblayer.wsgi` provides :py:class:`WSGIApplication`, an implementation of :py:class:`~weblayer.interfaces.IWSGIApplication` that adapts :py:class:`~weblayer.interfaces.ISettings` and an :py:class:`~weblayer.interfaces.IPathRouter`:: >>> setting...
32
81
0.579741
8855ef314d452894a0f7389beba59889d976e63d
5,781
py
Python
ProductDataCompiler/src/main/com/rowley/shavekeeper/productdatacompiler/utils/ModelDeDuper.py
alphonzo79/ShaveKeeper
e6dc98d45caa304db45e660c5d79902a62f2757c
[ "MIT" ]
null
null
null
ProductDataCompiler/src/main/com/rowley/shavekeeper/productdatacompiler/utils/ModelDeDuper.py
alphonzo79/ShaveKeeper
e6dc98d45caa304db45e660c5d79902a62f2757c
[ "MIT" ]
null
null
null
ProductDataCompiler/src/main/com/rowley/shavekeeper/productdatacompiler/utils/ModelDeDuper.py
alphonzo79/ShaveKeeper
e6dc98d45caa304db45e660c5d79902a62f2757c
[ "MIT" ]
null
null
null
from src.main.com.rowley.shavekeeper.productdatacompiler.models.ProductConsolidator import ProductConsolidator from src.main.com.rowley.shavekeeper.productdatacompiler.models.ProductModelByBrandMap import ProductModelByBrandMap from src.main.com.rowley.shavekeeper.productdatacompiler.web.FileHelper import load_consolid...
45.880952
118
0.700052
7b2a6fbcc3f0437df0a5c25d4209a907aa89c15e
1,707
py
Python
src/python/pants/backend/native/tasks/cpp_compile.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/tasks/cpp_compile.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/tasks/cpp_compile.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.backend.native.config.environment import CppCompiler from pants.backend.native...
35.5625
98
0.783831
9ba02eea4fbdbad142e93d071e4a2f525e28b762
5,091
py
Python
cogdl/tasks/node_classification.py
kwyoke/cogdl
df919b4fc7db40f8b035665edbcc7ed59f9d448e
[ "MIT" ]
null
null
null
cogdl/tasks/node_classification.py
kwyoke/cogdl
df919b4fc7db40f8b035665edbcc7ed59f9d448e
[ "MIT" ]
null
null
null
cogdl/tasks/node_classification.py
kwyoke/cogdl
df919b4fc7db40f8b035665edbcc7ed59f9d448e
[ "MIT" ]
null
null
null
import copy import random from typing import Optional import numpy as np import torch import torch.nn.functional as F from tqdm import tqdm from cogdl import options from cogdl.datasets import build_dataset from cogdl.models import build_model from cogdl.models.supervised_model import SupervisedHomogeneousNodeClassif...
36.625899
112
0.593989
cbb80e41628cb773c1a6ead822e6dff65b354e12
3,466
py
Python
app/logic/bluesteel/migrations/0001_initial.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
10
2017-01-13T06:28:04.000Z
2020-11-18T13:00:26.000Z
app/logic/bluesteel/migrations/0001_initial.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
null
null
null
app/logic/bluesteel/migrations/0001_initial.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
2
2018-03-29T14:10:53.000Z
2019-11-20T08:21:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('gitrepo', '0001_initial'), ('commandrepo', '0001_initial'), ] operations = [ migrations.CreateModel( nam...
42.790123
129
0.577323
6dea04f37ca647e3e26ff189cf799bc4d1fea796
1,732
py
Python
_2020/toboggan/test_toboggan.py
dcsparkes/adventofcode
e8bf8cef1d8757ad8981dde8dc76f8f7ec396be5
[ "Unlicense" ]
null
null
null
_2020/toboggan/test_toboggan.py
dcsparkes/adventofcode
e8bf8cef1d8757ad8981dde8dc76f8f7ec396be5
[ "Unlicense" ]
null
null
null
_2020/toboggan/test_toboggan.py
dcsparkes/adventofcode
e8bf8cef1d8757ad8981dde8dc76f8f7ec396be5
[ "Unlicense" ]
null
null
null
import unittest import toboggan class TestToboggan(unittest.TestCase): def test_testInput_default(self): self.assertEqual(7, toboggan.traverse("test.txt")) def test_testInput_slope0(self): self.assertEqual(2, toboggan.traverse("test.txt", (1, 1))) def test_testInput_slope1(self): ...
32.679245
69
0.654734
79b2be827e0b168f30d9cba7e0bd55ff89b9fe73
256
py
Python
comment/urls.py
HaibaraAi123/DjangoBlog-chenfeng123.cn
ca5a90a4ad91e383a5ff25131488527f5733e216
[ "MIT" ]
1
2020-08-06T05:50:26.000Z
2020-08-06T05:50:26.000Z
comment/urls.py
HaibaraAi123/DjangoBlog-chenfeng123.cn
ca5a90a4ad91e383a5ff25131488527f5733e216
[ "MIT" ]
null
null
null
comment/urls.py
HaibaraAi123/DjangoBlog-chenfeng123.cn
ca5a90a4ad91e383a5ff25131488527f5733e216
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'comment' urlpatterns = [ path('<int:article_id>', views.post_comment, name='post_comment'), path('<int:article_id>/<int:parent_comment_id', views.post_comment, name='reply_comment'), ]
25.6
94
0.726563
7c5ea6b74421ee2a8ecb58488b889438d43c83b5
1,398
py
Python
aalh_iit_charlesmensingcollection/debug-find-duplicates.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_charlesmensingcollection/debug-find-duplicates.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_charlesmensingcollection/debug-find-duplicates.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook filename = 'aalh_iit_charlesmensingcollection.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 43 maximumcol = 43 minimumrow = 7 maximumrow = 703 iterationrow = 7 identifiercol = 25 filenamecol = 43 countfilename = dict() countidentifier...
31.772727
105
0.652361
93f57090596c309c842c33b3ba9eab6e5736dbef
569
py
Python
main/model/album.py
lipis/the-smallest-creature
3079046a574bb4bae528b3ab467d34f24b9bd5c7
[ "MIT" ]
1
2016-01-01T20:56:32.000Z
2016-01-01T20:56:32.000Z
main/model/album.py
lipis/the-smallest-creature
3079046a574bb4bae528b3ab467d34f24b9bd5c7
[ "MIT" ]
null
null
null
main/model/album.py
lipis/the-smallest-creature
3079046a574bb4bae528b3ab467d34f24b9bd5c7
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from google.appengine.ext import ndb from api import fields import model class Album(model.Base): name = ndb.StringProperty(required=True) description = ndb.StringProperty(verbose_name='Description (Markdown)') release_date = ndb.DateProperty(required=Tr...
22.76
73
0.725835
b6c188fef319bed9c79a8d9a0b8e322a3667707c
33,841
py
Python
uavcan/dsdl/parser.py
eckel-formlabs/pyuavcan
9c3a0d09dc685cdb494b7fc2080986344d6a13e0
[ "MIT" ]
null
null
null
uavcan/dsdl/parser.py
eckel-formlabs/pyuavcan
9c3a0d09dc685cdb494b7fc2080986344d6a13e0
[ "MIT" ]
1
2018-05-29T14:16:50.000Z
2018-05-29T14:16:50.000Z
uavcan/dsdl/parser.py
eckel-formlabs/pyuavcan
9c3a0d09dc685cdb494b7fc2080986344d6a13e0
[ "MIT" ]
2
2018-05-10T16:48:41.000Z
2018-12-03T16:18:59.000Z
# # Copyright (C) 2014-2015 UAVCAN Development Team <uavcan.org> # # This software is distributed under the terms of the MIT License. # # Author: Pavel Kirienko <pavel.kirienko@zubax.com> # Ben Dyer <ben_dyer@mac.com> # from __future__ import division, absolute_import, print_function, unicode_literals import...
39.812941
119
0.619397
2aae20cd931f1401d9fb9870543e83f208e5657e
1,533
py
Python
src/ggrc/app.py
ankit-collective/ggrc-core
7c94ab6f6cd4f95a0bdfbbd9c81358f35dc1c963
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/app.py
ankit-collective/ggrc-core
7c94ab6f6cd4f95a0bdfbbd9c81358f35dc1c963
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/app.py
ankit-collective/ggrc-core
7c94ab6f6cd4f95a0bdfbbd9c81358f35dc1c963
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: # Maintained By: from . import settings # Initialize Flask app from flask import Flask app = Flask('ggrc', instance_relative_config=True) app.co...
24.725806
78
0.779517
64b614b2c181686ecc04eb43170d02502c8f72bc
788
py
Python
piecash/scripts/ledger.py
z-Wind/piecash
5ac01ac8ce2c98202bb168fdc2803eb9d741150c
[ "MIT" ]
null
null
null
piecash/scripts/ledger.py
z-Wind/piecash
5ac01ac8ce2c98202bb168fdc2803eb9d741150c
[ "MIT" ]
null
null
null
piecash/scripts/ledger.py
z-Wind/piecash
5ac01ac8ce2c98202bb168fdc2803eb9d741150c
[ "MIT" ]
null
null
null
#!/usr/local/bin/python """original script from https://github.com/MatzeB/pygnucash/blob/master/gnucash2ledger.py by Matthias Braun matze@braunis.de adapted for: - python 3 support - new string formatting """ import argparse import sys import codecs import piecash import click from piecash.scripts.cli import cli...
23.176471
124
0.709391
8a55e88551f12827d952f8081003d0196d619e60
28,099
py
Python
closed/FuriosaAI/code/quantization/furiosa_sdk_quantizer/frontend/onnx/spec/export_spec.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
12
2021-09-23T08:05:57.000Z
2022-03-21T03:52:11.000Z
closed/FuriosaAI/code/quantization/furiosa_sdk_quantizer/frontend/onnx/spec/export_spec.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
11
2021-09-23T20:34:06.000Z
2022-01-22T07:58:02.000Z
closed/FuriosaAI/code/quantization/furiosa_sdk_quantizer/frontend/onnx/spec/export_spec.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
16
2021-09-23T20:26:38.000Z
2022-03-09T12:59:56.000Z
from typing import List, Dict, Set, Callable, Tuple, Optional import logging import onnx from onnx import numpy_helper from furiosa_sdk_quantizer.frontend.onnx.spec import spec_utils from furiosa_sdk_quantizer.ir import spec from furiosa_sdk_quantizer.ir.common.operator import HeightWidth, Padding from furiosa_sdk_q...
41.813988
113
0.621801
136f58749aa59a30ae701af8db839f3e744b2b7a
3,092
py
Python
rnpix/pkcli/dedup.py
robnagler/pix
8054420fa49645ea0d29404bc4e0567af9be0394
[ "Apache-2.0" ]
null
null
null
rnpix/pkcli/dedup.py
robnagler/pix
8054420fa49645ea0d29404bc4e0567af9be0394
[ "Apache-2.0" ]
4
2020-05-06T14:05:22.000Z
2021-07-20T20:49:06.000Z
rnpix/pkcli/dedup.py
robnagler/rnpix
93237c1bd949d806ee21f9eef4bdae0d8b261d4c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""deduplicate :copyright: Copyright (c) 2021 Robert Nagler. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern.pkcollections import PKDict from pykern.pkdebug import pkdc, pkdlog, pkd...
30.019417
92
0.51229
33d3657d837cb2ce5fb6831019f02d971c34debb
14,066
py
Python
python/cuml/common/array.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
null
null
null
python/cuml/common/array.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
null
null
null
python/cuml/common/array.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020-2021, NVIDIA CORPORATION. # # 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 ag...
36.066667
79
0.601948
683659e9a812f3078a95435649e54e3e9d39f50a
36
py
Python
algoritmos/PythonM2/ex070.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
algoritmos/PythonM2/ex070.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
algoritmos/PythonM2/ex070.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
n='a' if n[0]in'a': print('sim')
12
16
0.472222
8213a6035d2b9f1e6022c6e1df4e43ee24e01380
109
py
Python
CurrencyConverter/apps.py
route2kernel/omen
62521690ead4341a562d27da7bceb45eae8b778f
[ "MIT" ]
null
null
null
CurrencyConverter/apps.py
route2kernel/omen
62521690ead4341a562d27da7bceb45eae8b778f
[ "MIT" ]
null
null
null
CurrencyConverter/apps.py
route2kernel/omen
62521690ead4341a562d27da7bceb45eae8b778f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CurrencyconverterConfig(AppConfig): name = 'CurrencyConverter'
18.166667
41
0.798165
8e53663e5b4c0dd347d02d61d7bd30e0f41a8f48
1,134
py
Python
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/sites/migrations/0001_initial.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/sites/migrations/0001_initial.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/sites/migrations/0001_initial.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.contrib.sites.models from django.contrib.sites.models import _simple_domain_name_validator from django.db import migrations, models class Migration(migrations.Migration): dependencies = [] operations = [ migrations.Create...
1,134
1,134
0.559083
62776184aa4be230446ffd4e518077270ffe1293
1,326
py
Python
app/app.py
ansnadeem/aic
76b7e264df2aad76b7c3e94171334f3da599b9b0
[ "MIT" ]
null
null
null
app/app.py
ansnadeem/aic
76b7e264df2aad76b7c3e94171334f3da599b9b0
[ "MIT" ]
2
2021-10-10T20:53:14.000Z
2021-10-14T07:15:03.000Z
app/app.py
ansnadeem/aic
76b7e264df2aad76b7c3e94171334f3da599b9b0
[ "MIT" ]
null
null
null
from flask import request from flask import Flask from flask import render_template from engine import AICEngine from dotenv import dotenv_values from dotenv import load_dotenv from utils import constants aicEngine = None def initalize(): global aicEngine global app load_dotenv() config = dotenv_...
30.837209
106
0.719457
13206c444b68f30d527aef0faeea26510285e7c6
1,619
py
Python
src/check_grades.py
troylar/eclass-for-alexa
999b04d48b77587818485ae9869f3d029a2c9ce3
[ "MIT" ]
null
null
null
src/check_grades.py
troylar/eclass-for-alexa
999b04d48b77587818485ae9869f3d029a2c9ce3
[ "MIT" ]
2
2021-03-31T18:39:53.000Z
2021-06-01T21:52:00.000Z
src/check_grades.py
troylar/eclass-for-alexa
999b04d48b77587818485ae9869f3d029a2c9ce3
[ "MIT" ]
null
null
null
import json from bs4 import BeautifulSoup from twill.commands import * import json import os import twill import boto3 def lambda_handler(event, context): if event['request']['type'] == "IntentRequest": return on_intent(event['request'], event['session']); return 'Hello from Lambda' def on_intent(i...
33.040816
81
0.660902
51fcf7eb07bf798a1c79b1e4011aff1f43db8903
216
py
Python
shipment/serializers/batch_shipment_serializer.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
null
null
null
shipment/serializers/batch_shipment_serializer.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
3
2021-07-27T13:11:36.000Z
2021-08-10T22:54:55.000Z
shipment/serializers/batch_shipment_serializer.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
null
null
null
from rest_framework import serializers from shipment.models import BatchShipment class BatchShipmentSerializer(serializers.ModelSerializer): class Meta: model = BatchShipment fields = '__all__'
24
59
0.768519
17240c80d1c749e5c1243dd13ac48eb8e6d8c4d0
1,881
py
Python
research/delf/delf/python/analyze/get_pair.py
zijing-wu/models
dddcbaad9c9846f66febad8d88ea3af0d5d3acbf
[ "Apache-2.0" ]
2
2018-07-05T18:52:53.000Z
2018-07-05T18:54:14.000Z
research/delf/delf/python/analyze/get_pair.py
zijing-wu/models
dddcbaad9c9846f66febad8d88ea3af0d5d3acbf
[ "Apache-2.0" ]
null
null
null
research/delf/delf/python/analyze/get_pair.py
zijing-wu/models
dddcbaad9c9846f66febad8d88ea3af0d5d3acbf
[ "Apache-2.0" ]
null
null
null
import os,re,shutil,sys from subprocess import PIPE, Popen from multiprocessing import Pool, Queue, Process, Manager from itertools import product from time import sleep train_feature_path = os.path.join('..','examples','train_features_ds2') test_feature_path = os.path.join('..','examples','test_features_ds2') line_p...
30.33871
93
0.650718
c583a862f6419471fbb3d570df0ecf12c7cb14af
220
py
Python
Strings/1832. Check if the Sentence Is Pangram.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
1
2021-06-30T17:51:56.000Z
2021-06-30T17:51:56.000Z
Strings/1832. Check if the Sentence Is Pangram.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
null
null
null
Strings/1832. Check if the Sentence Is Pangram.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
null
null
null
class Solution: def checkIfPangram(self, sentence: str) -> bool: x="abcdefghijklmnopqrstuvwxyz" for i in x: if i not in sentence: return False return True
24.444444
52
0.545455
0839ad0e5f420c772974aa0d4b37ac07094c5a78
3,245
py
Python
app/app/settings.py
sonali-uttekar01/receipe-app-api
d06f7cda9e2c516dde1835a5e68e74c3e33b2400
[ "MIT" ]
null
null
null
app/app/settings.py
sonali-uttekar01/receipe-app-api
d06f7cda9e2c516dde1835a5e68e74c3e33b2400
[ "MIT" ]
null
null
null
app/app/settings.py
sonali-uttekar01/receipe-app-api
d06f7cda9e2c516dde1835a5e68e74c3e33b2400
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.753968
91
0.688752
32d936fc21c284d747f6a37882f102cf2a32a1e5
567
py
Python
src/directory-starter/README_text.py
hannahweber244/directory-starter
0cb12b6e9dfe9c3a6eb5029d7d0b6cb5da52b44b
[ "MIT" ]
null
null
null
src/directory-starter/README_text.py
hannahweber244/directory-starter
0cb12b6e9dfe9c3a6eb5029d7d0b6cb5da52b44b
[ "MIT" ]
null
null
null
src/directory-starter/README_text.py
hannahweber244/directory-starter
0cb12b6e9dfe9c3a6eb5029d7d0b6cb5da52b44b
[ "MIT" ]
null
null
null
""" # [REPO NAME] ## Table of contents [Here you can use a table of contents to keep your README structured.] ## Overview [Here you give a short overview over the motivation behind your project and what problem it solves.] ## How to use it [Here you can explain how your tool/project is usable.] ### Requirements an...
31.5
102
0.75485
890919851a1e1ecfaffad314fcaa16b358d060de
3,979
py
Python
setup.py
chalbersma/manowar_agent
ea2615f52658da2acfcc8970eca77226ac2de215
[ "BSD-2-Clause" ]
1
2019-02-16T03:14:15.000Z
2019-02-16T03:14:15.000Z
setup.py
chalbersma/manowar_agent
ea2615f52658da2acfcc8970eca77226ac2de215
[ "BSD-2-Clause" ]
null
null
null
setup.py
chalbersma/manowar_agent
ea2615f52658da2acfcc8970eca77226ac2de215
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 ''' An attempt to make a ghetto packaging script. ''' # pylint: skip-file import setuptools import sys import os import git import subprocess # nosec import datetime current_repo = git.Repo() if current_repo.bare: print("Something went wrong Repo is Bare, Failing the Build.") sys.exi...
31.330709
139
0.667002
84574874af2da6a3056ccfdfcf9b990023c20e5c
37,533
py
Python
core/dbt/adapters/base/impl.py
donaldrauscher/dbt
73d0308e3570b25a7a8c8d32fbcdaaf813c94179
[ "Apache-2.0" ]
null
null
null
core/dbt/adapters/base/impl.py
donaldrauscher/dbt
73d0308e3570b25a7a8c8d32fbcdaaf813c94179
[ "Apache-2.0" ]
null
null
null
core/dbt/adapters/base/impl.py
donaldrauscher/dbt
73d0308e3570b25a7a8c8d32fbcdaaf813c94179
[ "Apache-2.0" ]
null
null
null
import abc from contextlib import contextmanager from datetime import datetime from typing import ( Optional, Tuple, Callable, Container, FrozenSet, Type, Dict, Any, List, Mapping ) import agate import pytz import dbt.exceptions import dbt.flags from dbt.clients.agate_helper import empty_table from dbt.contr...
36.054755
79
0.624251
8db96caafc2f8aeb4efab043cfeb8091c55dbbb1
1,630
py
Python
SimG4Core/PrintGeomInfo/test/python/g4OverlapCheckCalo_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
SimG4Core/PrintGeomInfo/test/python/g4OverlapCheckCalo_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
SimG4Core/PrintGeomInfo/test/python/g4OverlapCheckCalo_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("G4PrintGeometry") #process.load('Configuration.Geometry.GeometryIdeal_cff') #process.load('Configuration.Geometry.GeometryExtended_cff') #process.load('Configuration.Geometry.GeometryExtended2015_cff') #process.load('Configuration.Geometry.GeometryExtend...
40.75
82
0.814724
c71072021729ed9e9e4ec5735f95fcdf64fae732
980
py
Python
prototype_2/src/mouse_controller.py
Bhartendu-Kumar/Computer-Pointer-Controller
f753446e10757a6d304cecee55ddfb7213952d9f
[ "MIT" ]
4
2020-06-07T10:26:56.000Z
2020-06-11T10:39:22.000Z
prototype_2/src/mouse_controller.py
Bhartendu-Kumar/Computer-Pointer-Controller
f753446e10757a6d304cecee55ddfb7213952d9f
[ "MIT" ]
null
null
null
prototype_2/src/mouse_controller.py
Bhartendu-Kumar/Computer-Pointer-Controller
f753446e10757a6d304cecee55ddfb7213952d9f
[ "MIT" ]
1
2020-06-11T10:39:27.000Z
2020-06-11T10:39:27.000Z
''' This is a sample class that you can use to control the mouse pointer. It uses the pyautogui library. You can set the precision for mouse movement (how much the mouse moves) and the speed (how fast it moves) by changing precision_dict and speed_dict. Calling the move function with the x and y output of the gaze est...
33.793103
85
0.69898
557a1ae122c0048ab0a3385ea17a2c0e39661fb3
201
py
Python
plugin.video.mrknow/lib/entities/CRuleItem.py
mrknow/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
plugin.video.mrknow/lib/entities/CRuleItem.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
plugin.video.mrknow/lib/entities/CRuleItem.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
class CRuleItem(object): def __init__(self): self.infos = '' self.order = '' self.skill = '' self.curr = '' self.info_list = [] self.url_build = ''
20.1
27
0.477612
c182671d3c1e6f65ba757fcb56b9d340f3cee0fc
17,851
py
Python
doc/examples/applications/plot_rank_filters.py
RKDSOne/scikit-image
baa67eafcace9cde1b94ad2d467e2f2e0468e759
[ "BSD-3-Clause" ]
1
2020-12-27T18:42:22.000Z
2020-12-27T18:42:22.000Z
doc/examples/applications/plot_rank_filters.py
RKDSOne/scikit-image
baa67eafcace9cde1b94ad2d467e2f2e0468e759
[ "BSD-3-Clause" ]
null
null
null
doc/examples/applications/plot_rank_filters.py
RKDSOne/scikit-image
baa67eafcace9cde1b94ad2d467e2f2e0468e759
[ "BSD-3-Clause" ]
2
2015-12-29T17:04:26.000Z
2020-10-17T15:47:30.000Z
""" ============ Rank filters ============ Rank filters are non-linear filters using the local greylevels ordering to compute the filtered value. This ensemble of filters share a common base: the local grey-level histogram extraction computed on the neighborhood of a pixel (defined by a 2D structuring element). If the...
24.793056
80
0.721808
40b80849c9304ba37916ed8f099ee1706a4e6280
4,302
py
Python
splunk_eventgen/lib/plugins/generator/perdayvolumegenerator.py
mickotronic/eventgen
c0a8b15f50b2216582ac52756923f127630823b2
[ "Apache-2.0" ]
null
null
null
splunk_eventgen/lib/plugins/generator/perdayvolumegenerator.py
mickotronic/eventgen
c0a8b15f50b2216582ac52756923f127630823b2
[ "Apache-2.0" ]
null
null
null
splunk_eventgen/lib/plugins/generator/perdayvolumegenerator.py
mickotronic/eventgen
c0a8b15f50b2216582ac52756923f127630823b2
[ "Apache-2.0" ]
null
null
null
import datetime import random from splunk_eventgen.lib.generatorplugin import GeneratorPlugin from splunk_eventgen.lib.logging_config import logger class PerDayVolumeGenerator(GeneratorPlugin): def __init__(self, sample): GeneratorPlugin.__init__(self, sample) # TODO: Make this work with replay mode...
41.76699
118
0.576709
1f2cdcf08d4fa8925dbcfbe4747b34b3f54bb70b
7,859
py
Python
examples/gym/train_acer_gym.py
WhenTheyCry96/chainerrl
0f32aae2855dbb6288ae628be6271739ced6c42c
[ "MIT" ]
2
2020-05-20T06:15:20.000Z
2020-05-20T06:15:27.000Z
examples/gym/train_acer_gym.py
WhenTheyCry96/chainerrl
0f32aae2855dbb6288ae628be6271739ced6c42c
[ "MIT" ]
null
null
null
examples/gym/train_acer_gym.py
WhenTheyCry96/chainerrl
0f32aae2855dbb6288ae628be6271739ced6c42c
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from builtins import * # NOQA from future import standard_library standard_library.install_aliases() # NOQA import argparse import os # This prevents numpy from using m...
41.803191
79
0.659499
901a11fe27b3aff5acafa6b7e0068861f1af2907
32,860
py
Python
tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
null
null
null
tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/tasks_v2beta2/proto/queue.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import messag...
41.966794
1,874
0.650091
149133f641bf8fcb0f289d4dd1126fbb6e7f7437
2,746
py
Python
ayb/net/http.py
msolo/ayb
3bb804846033cc0b054f06c2e6298131d22d49f2
[ "BSD-3-Clause" ]
null
null
null
ayb/net/http.py
msolo/ayb
3bb804846033cc0b054f06c2e6298131d22d49f2
[ "BSD-3-Clause" ]
null
null
null
ayb/net/http.py
msolo/ayb
3bb804846033cc0b054f06c2e6298131d22d49f2
[ "BSD-3-Clause" ]
null
null
null
import asynchat import asyncore import os import socket import string import sys import StringIO import mimetools ROOT = "." PORT = 8000 class HTTPChannel(asynchat.async_chat): def __init__(self, server, sock, addr): asynchat.async_chat.__init__(self, sock) self.server = server self.set_terminator("\r\n...
25.425926
67
0.630736
faa27f9fb4cb28649b8bd961b2b4e6571733a175
792
py
Python
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.10-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.10-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.10-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Rank from Stream # Imagine you are reading in a stream of integers. # Periodically, you wish to be able to look up the rank off a number x, # the number of values less than or equal to x. # Implement the data structures and algorithms to support these operations. # That is, implement the method track(int x), wh...
36
76
0.67803
aed1e76940a0c934b9b2b8d42ea0e4fa4b96d2b4
11,190
py
Python
Lib/unittest/test/test_runner.py
deadsnakes/python3.2
c0deccc710b5c1c8dd40a1c6d46a8271b60617f1
[ "PSF-2.0" ]
null
null
null
Lib/unittest/test/test_runner.py
deadsnakes/python3.2
c0deccc710b5c1c8dd40a1c6d46a8271b60617f1
[ "PSF-2.0" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
Lib/unittest/test/test_runner.py
deadsnakes/python3.2
c0deccc710b5c1c8dd40a1c6d46a8271b60617f1
[ "PSF-2.0" ]
null
null
null
import io import os import sys import pickle import subprocess import unittest from .support import LoggingResult, ResultWithNoStartTestRunStopTestRun class TestCleanUp(unittest.TestCase): def testCleanUp(self): class TestableTest(unittest.TestCase): def testNothing(self): p...
33.704819
101
0.592761
4d6ecaef08ba17e990185613fb50af05c8e3b4bf
4,981
py
Python
runfile_localVol.py
buwu-DWJ/neural_locVol
a3703fa83edb4694f8c1596676869b2533ade7ad
[ "MIT" ]
null
null
null
runfile_localVol.py
buwu-DWJ/neural_locVol
a3703fa83edb4694f8c1596676869b2533ade7ad
[ "MIT" ]
null
null
null
runfile_localVol.py
buwu-DWJ/neural_locVol
a3703fa83edb4694f8c1596676869b2533ade7ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # MIT License # Copyright (c) 2020 Christa Cuchiero, Wahid Khosrawi, Josef Teichmann # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without r...
37.171642
103
0.687011
80ed2e6cc6df195a0f9df32190d725ff8b026d2a
8,035
py
Python
scripts/implementations.py
yannvon/higgs-boson
4d0804e1987a9e08f6417f8d7119c37572f35515
[ "MIT" ]
null
null
null
scripts/implementations.py
yannvon/higgs-boson
4d0804e1987a9e08f6417f8d7119c37572f35515
[ "MIT" ]
null
null
null
scripts/implementations.py
yannvon/higgs-boson
4d0804e1987a9e08f6417f8d7119c37572f35515
[ "MIT" ]
1
2021-11-01T12:55:40.000Z
2021-11-01T12:55:40.000Z
import numpy as np # ----- Helper functions linear regression ----------------------------------------------------------- def calculate_mse(e): """Calculate the mse for vector e.""" return 1/2 * np.mean(e**2) def compute_loss_mse(y, tx, w): """Calculate the loss using mean squared error loss function""" ...
35.711111
117
0.620162
ab9e2c04538ab2e0dd58674edd5cc38457997567
7,037
py
Python
plugins/module_utils/oci_key_management_custom_helpers.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/module_utils/oci_key_management_custom_helpers.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/module_utils/oci_key_management_custom_helpers.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
# Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for details. from __fu...
39.533708
155
0.64843
4795b6799991a11796a10c641edcd27eee2ee7ce
2,820
py
Python
examples/smtp-vrfy.py
karpierz/libcurl
531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8
[ "Zlib" ]
null
null
null
examples/smtp-vrfy.py
karpierz/libcurl
531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8
[ "Zlib" ]
null
null
null
examples/smtp-vrfy.py
karpierz/libcurl
531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8
[ "Zlib" ]
null
null
null
#*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|...
35.25
81
0.60922
ff33f8c364e27fa9568b5f2ad9297e30b1b78e80
5,206
py
Python
FLutils/data_utils.py
Rand2AI/FedBoosting
999dc879a2fe06563f27fab0a356e07d342dfc34
[ "MIT" ]
3
2021-12-10T19:25:30.000Z
2021-12-10T20:58:55.000Z
FLutils/data_utils.py
Rand2AI/FedBoosting
999dc879a2fe06563f27fab0a356e07d342dfc34
[ "MIT" ]
null
null
null
FLutils/data_utils.py
Rand2AI/FedBoosting
999dc879a2fe06563f27fab0a356e07d342dfc34
[ "MIT" ]
1
2021-11-25T14:03:49.000Z
2021-11-25T14:03:49.000Z
import numpy as np import base64, json, cv2 class DataHandler: def __init__(self, debug = False): self.debug = debug self.train_data = None self.evaluate_data = None self.test_data = None def split_data(self, ratio): thres = int(len(self.train_data)*ratio) self....
40.671875
137
0.589512
d194d3f18fd5f7516046fb8774134e53d7e5a1f9
2,303
py
Python
src/emmental/scorer.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
src/emmental/scorer.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
src/emmental/scorer.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
import logging from functools import partial from typing import Callable, Dict, List from numpy import ndarray from emmental.metrics import METRICS from emmental.utils.utils import array_to_numpy logger = logging.getLogger(__name__) class Scorer(object): r"""A class to score tasks. Args: metrics(lis...
29.909091
87
0.587929
86ae30d50ec1f56010a8c5e3678c98dcd5c9fc24
41
py
Python
py_pkg_demo/mod_a.py
webee/python-packaging-demo
0c60831420d7f2cd6fec270ddd33bd324366e30f
[ "MIT" ]
null
null
null
py_pkg_demo/mod_a.py
webee/python-packaging-demo
0c60831420d7f2cd6fec270ddd33bd324366e30f
[ "MIT" ]
null
null
null
py_pkg_demo/mod_a.py
webee/python-packaging-demo
0c60831420d7f2cd6fec270ddd33bd324366e30f
[ "MIT" ]
null
null
null
# coding=utf-8 def a(): return "a"
6.833333
14
0.512195
82ff85742f2926c89480d45e6fba754a533be242
5,038
py
Python
tests/test_processing.py
IoT-Inspector/unblob
4a6c871dae6805a922e55d30a7925910dc6a4eda
[ "MIT" ]
17
2021-11-23T10:05:24.000Z
2022-03-10T15:40:41.000Z
tests/test_processing.py
IoT-Inspector/unblob
4a6c871dae6805a922e55d30a7925910dc6a4eda
[ "MIT" ]
184
2021-11-22T12:25:05.000Z
2022-03-31T16:27:41.000Z
tests/test_processing.py
IoT-Inspector/unblob
4a6c871dae6805a922e55d30a7925910dc6a4eda
[ "MIT" ]
2
2021-11-25T09:34:01.000Z
2022-02-18T00:14:23.000Z
from pathlib import Path from typing import List import attr import pytest from unblob.models import UnknownChunk, ValidChunk from unblob.processing import ( ExtractionConfig, calculate_buffer_size, calculate_entropy, calculate_unknown_chunks, draw_entropy_plot, remove_inner_chunks, ) def as...
29.121387
85
0.568083
64cf3a585857525c7a514426b4f081636ce23ca2
540
py
Python
backend/app/alembic/versions/cd18d2dcd1fd_.py
lianjy357/vue-element-admin-fastapi
70f697af33ca747a154d0de129f4cbd7f9d03f7b
[ "MIT" ]
10
2020-12-16T07:31:29.000Z
2022-01-27T08:01:22.000Z
backend/app/alembic/versions/cd18d2dcd1fd_.py
lianjy357/vue-element-admin-fastapi
70f697af33ca747a154d0de129f4cbd7f9d03f7b
[ "MIT" ]
null
null
null
backend/app/alembic/versions/cd18d2dcd1fd_.py
lianjy357/vue-element-admin-fastapi
70f697af33ca747a154d0de129f4cbd7f9d03f7b
[ "MIT" ]
3
2021-03-18T11:38:21.000Z
2021-09-02T06:23:15.000Z
""" Revision ID: cd18d2dcd1fd Revises: 250e78708916 Create Date: 2020-06-28 10:18:25.456332 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cd18d2dcd1fd' down_revision = '250e78708916' branch_labels = None depends_on = None def upgrade(): # ### commands ...
18.62069
65
0.681481
766b8395bc2aaae41e1fabb19b985330a9f48e99
2,503
py
Python
test/functional/feature_help.py
lionco-in/lioncoin
3335eea7bef6ca4f309d9ed9b9c92207084da20e
[ "MIT" ]
null
null
null
test/functional/feature_help.py
lionco-in/lioncoin
3335eea7bef6ca4f309d9ed9b9c92207084da20e
[ "MIT" ]
null
null
null
test/functional/feature_help.py
lionco-in/lioncoin
3335eea7bef6ca4f309d9ed9b9c92207084da20e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Verify that starting lioncoin with -h works as expected.""" from test_framework.test_framework import Bitco...
39.730159
85
0.664003
8591a6d6f4d088d5a1ab55160f05088a775db01d
306
py
Python
config.py
yucheng6039/WebAuto
13fa954dd58407ee23e89be89f73cb97f5c11108
[ "Apache-2.0" ]
null
null
null
config.py
yucheng6039/WebAuto
13fa954dd58407ee23e89be89f73cb97f5c11108
[ "Apache-2.0" ]
null
null
null
config.py
yucheng6039/WebAuto
13fa954dd58407ee23e89be89f73cb97f5c11108
[ "Apache-2.0" ]
null
null
null
import os BaseDir = os.path.dirname(os.path.abspath(__file__)) # http://npm.taobao.org/mirrors/chromedriver/ 请在镜像库下载webdriver Driver_Path = os.path.join(BaseDir, "static/driver/chromedriver") Start_Url = "https://spectrum-test.cytekbio.com/" Step_Time = 0.2 # 每一步间隔 DefaultTimeOut = 5 # 默认等待时间
21.857143
66
0.738562
9c808faa440423eb91adc1678e4575a09d81ca68
18,169
py
Python
pyaoscx/configuration.py
aruba/pyaoscx
913506eef8643f4e7b92f0d1633310e62ec5f7e2
[ "Apache-2.0" ]
25
2020-03-12T15:55:03.000Z
2022-03-25T14:39:17.000Z
pyaoscx/configuration.py
aruba/pyaoscx
913506eef8643f4e7b92f0d1633310e62ec5f7e2
[ "Apache-2.0" ]
13
2020-09-25T18:59:30.000Z
2022-01-19T05:46:51.000Z
pyaoscx/configuration.py
aruba/pyaoscx
913506eef8643f4e7b92f0d1633310e62ec5f7e2
[ "Apache-2.0" ]
11
2020-05-20T15:08:13.000Z
2022-03-21T18:42:12.000Z
# (C) Copyright 2019-2021 Hewlett Packard Enterprise Development LP. # Apache License 2.0 from pyaoscx.exceptions.generic_op_error import GenericOperationError from pyaoscx.exceptions.response_error import ResponseError from pyaoscx.exceptions.verification_error import VerificationError from pyaoscx.pyaoscx_module imp...
35.07529
79
0.584622
09607d737a45b3501767844c6567be7348cc58c0
16,916
py
Python
Chapter6/01_cnn_improved.py
SDCND/Hands-On-Vision-and-Behavior-for-Self-Driving-Cars
1802d0ad3184bf53a3920921eeebf3bf9ae979dd
[ "MIT" ]
null
null
null
Chapter6/01_cnn_improved.py
SDCND/Hands-On-Vision-and-Behavior-for-Self-Driving-Cars
1802d0ad3184bf53a3920921eeebf3bf9ae979dd
[ "MIT" ]
null
null
null
Chapter6/01_cnn_improved.py
SDCND/Hands-On-Vision-and-Behavior-for-Self-Driving-Cars
1802d0ad3184bf53a3920921eeebf3bf9ae979dd
[ "MIT" ]
null
null
null
import cv2 import keras #from keras.datasets import mnist, cifar10 #from keras.models import Sequential #from keras.layers import Dense, Dropout, Flatten, BatchNormalization, SpatialDropout2D #from keras.layers import Conv2D, MaxPooling2D, AveragePooling2D #from keras.callbacks import ModelCheckpoint, EarlyStopping #fr...
40.4689
174
0.708028
f0fc9a319c71e75beb6ee5ac025d21a108f88d9c
3,200
py
Python
vtapi3/vtapi3base.py
drobotun/virustotalapi3
7d9e278dc58fa9702ddf8c62de09c852a7316148
[ "MIT" ]
8
2020-01-10T00:19:06.000Z
2022-01-12T18:13:27.000Z
vtapi3/vtapi3base.py
drobotun/virustotalapi3
7d9e278dc58fa9702ddf8c62de09c852a7316148
[ "MIT" ]
2
2020-02-07T22:01:55.000Z
2020-02-11T19:52:48.000Z
vtapi3/vtapi3base.py
drobotun/virustotalapi3
7d9e278dc58fa9702ddf8c62de09c852a7316148
[ "MIT" ]
3
2020-01-10T00:19:18.000Z
2020-12-08T17:13:41.000Z
"""The module describes the VirusTotalAPI base class Author: Evgeny Drobotun (c) 2019 License: MIT (https://github.com/drobotun/virustotalapi3/blob/master/LICENSE) More information: https://virustotalapi3.readthedocs.io/en/latest/base_class.html """ import requests class VirusTotalAPI: """A base class...
38.554217
99
0.665938
904e840fec14e6e7f06f8029c4057ddb95f52a26
2,632
py
Python
tokenwiser/pipeline/_concat.py
Btibert3/tokenwiser
64f78be285d24ebc53bcc6991466517aed633888
[ "Apache-2.0" ]
50
2020-11-21T04:29:34.000Z
2022-02-12T11:16:52.000Z
tokenwiser/pipeline/_concat.py
Btibert3/tokenwiser
64f78be285d24ebc53bcc6991466517aed633888
[ "Apache-2.0" ]
33
2020-11-26T11:03:52.000Z
2021-12-04T20:27:44.000Z
tokenwiser/pipeline/_concat.py
Btibert3/tokenwiser
64f78be285d24ebc53bcc6991466517aed633888
[ "Apache-2.0" ]
7
2021-04-07T08:54:34.000Z
2021-11-11T00:18:17.000Z
from sklearn.pipeline import _name_estimators from sklearn.base import BaseEstimator class TextConcat(BaseEstimator): """ A component like `FeatureUnion` but this also concatenates the text. Arguments: transformer_list: list of (name, text-transformer)-tuples Example: ```python from...
30.964706
91
0.62576
cf03b6895dca4dd89d0d4717f54326562928d4d6
199
py
Python
HolePlateMaker/addBlock.py
henjin0/HolePlateMaker
daf7ef5269b03f2ac2fdc9a8132f945b14177aa0
[ "MIT" ]
2
2020-10-10T21:46:18.000Z
2021-11-01T03:53:16.000Z
HolePlateMaker/addBlock.py
henjin0/HolePlateMaker
daf7ef5269b03f2ac2fdc9a8132f945b14177aa0
[ "MIT" ]
null
null
null
HolePlateMaker/addBlock.py
henjin0/HolePlateMaker
daf7ef5269b03f2ac2fdc9a8132f945b14177aa0
[ "MIT" ]
null
null
null
import numpy as np from stl import mesh def addBlock(curMesh, newMesh): curMesh = mesh.Mesh(np.concatenate([ curMesh.data.copy(), newMesh.data.copy(), ])) return curMesh
19.9
40
0.643216
3071e285c0629c0422781be0bdf91b00ad65a122
110
py
Python
scheduler/reminders/admin.py
maplefeline/scheduler
cb17aca882d64944efdc7622a4536790457170e4
[ "MIT" ]
null
null
null
scheduler/reminders/admin.py
maplefeline/scheduler
cb17aca882d64944efdc7622a4536790457170e4
[ "MIT" ]
18
2020-12-01T06:54:23.000Z
2022-03-02T03:06:10.000Z
scheduler/reminders/admin.py
maplefeline/scheduler
cb17aca882d64944efdc7622a4536790457170e4
[ "MIT" ]
null
null
null
from django.contrib import admin # type: ignore from .models import Reminder admin.site.register(Reminder)
18.333333
48
0.790909
47775deaac79c513855b692c3e7ceb07a2efcf53
392
py
Python
Panda3D/panda3 - GLSL2/ex04 - Transparency/main.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
Panda3D/panda3 - GLSL2/ex04 - Transparency/main.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
Panda3D/panda3 - GLSL2/ex04 - Transparency/main.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
import direct.showbase.ShowBase as p3d_SB import panda3d.core as p3d_Core class MyApp(p3d_SB.ShowBase): def __init__(self): p3d_SB.ShowBase.__init__(self) mesh_np = loader.loadModel("res/plane") mesh_np.reparentTo(render) mesh_np.set_shader( p3d_Core.Shader.load(p3d_Core.Shader.SL_GLSL, "res/vs.glsl", "res...
28
99
0.742347
2a73ffc3657e756bbd45de9ad0c61ebd80e07d31
10,477
py
Python
src/wavestate/model/system/algo_AC.py
wavestate/wavestate-model
d5e9cd3bd7352e07cc789b40a4d9452975b27237
[ "Apache-2.0" ]
null
null
null
src/wavestate/model/system/algo_AC.py
wavestate/wavestate-model
d5e9cd3bd7352e07cc789b40a4d9452975b27237
[ "Apache-2.0" ]
null
null
null
src/wavestate/model/system/algo_AC.py
wavestate/wavestate-model
d5e9cd3bd7352e07cc789b40a4d9452975b27237
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
33.688103
84
0.557507
c34a1bed0463b8d5be16f7a78a40e6f179a5eee9
184
py
Python
unipipeline/answer/uni_answer_params.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
null
null
null
unipipeline/answer/uni_answer_params.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
1
2021-09-14T13:08:13.000Z
2021-09-14T13:08:13.000Z
unipipeline/answer/uni_answer_params.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
null
null
null
from uuid import UUID from pydantic import BaseModel class UniAnswerParams(BaseModel): topic: str id: UUID class Config: frozen = True extra = 'forbid'
14.153846
33
0.652174
da6f710e488b0728db33dd17fa3e7155b22d190f
3,468
py
Python
python/paml/codeml-parallel.py
lotharwissler/bioinformatics
83a53771222ecb0759e3b4bfa2018d2cd7647643
[ "MIT" ]
10
2016-01-13T00:39:30.000Z
2020-11-30T05:56:19.000Z
python/paml/codeml-parallel.py
lotharwissler/bioinformatics
83a53771222ecb0759e3b4bfa2018d2cd7647643
[ "MIT" ]
1
2017-02-09T22:46:49.000Z
2017-02-09T22:46:49.000Z
python/paml/codeml-parallel.py
lotharwissler/bioinformatics
83a53771222ecb0759e3b4bfa2018d2cd7647643
[ "MIT" ]
10
2015-10-09T00:29:16.000Z
2019-06-09T05:32:15.000Z
#!/usr/bin/python import os, sys # low level handling, such as command line stuff import string # string methods available import re # regular expressions import getopt # comand line argument handling import tempfile from low import * # custom functions, written by myself # =======================...
33.669903
83
0.504614
60ee73675e706c52e4c3c69bb789bff3cc66cb34
6,749
py
Python
bindings/python/ensmallen_graph/datasets/string/clostridiumcellulovorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/clostridiumcellulovorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/clostridiumcellulovorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Clostridium cellulovorans. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2...
35.335079
223
0.706327
e964c46252258591545f1008d908b1195525ce0d
586
py
Python
manga-or-illust/client.py
qhgz2013/ml-experiment
95f553f5331d3a8f54f3619f65dc0ec0a19b36af
[ "Apache-2.0" ]
null
null
null
manga-or-illust/client.py
qhgz2013/ml-experiment
95f553f5331d3a8f54f3619f65dc0ec0a19b36af
[ "Apache-2.0" ]
null
null
null
manga-or-illust/client.py
qhgz2013/ml-experiment
95f553f5331d3a8f54f3619f65dc0ec0a19b36af
[ "Apache-2.0" ]
null
null
null
import requests import base64 def main(): print("Input an empty path to exit this program.") while True: path = input('Input image path: ') with open(path, 'rb') as file: length = file.seek(0, 2) file.seek(0) img_binary = file.read(length) img_bi...
26.636364
83
0.569966
57eef4dad804ba2a80f9ec5e50bb5aa946744b92
23,134
py
Python
io_scene_webaverse/blender/exp/gltf2_blender_gather_nodes.py
chrislatorres/blender-plugin
b0cd2dc6af8652a3ab841a8b620dbcf1a5a281e7
[ "Apache-2.0" ]
3
2021-02-01T09:09:30.000Z
2021-11-12T14:39:28.000Z
io_scene_webaverse/blender/exp/gltf2_blender_gather_nodes.py
chrislatorres/blender-plugin
b0cd2dc6af8652a3ab841a8b620dbcf1a5a281e7
[ "Apache-2.0" ]
4
2021-04-01T10:58:30.000Z
2021-08-23T12:27:42.000Z
io_scene_webaverse/blender/exp/gltf2_blender_gather_nodes.py
chrislatorres/blender-plugin
b0cd2dc6af8652a3ab841a8b620dbcf1a5a281e7
[ "Apache-2.0" ]
3
2021-02-22T21:39:41.000Z
2021-11-22T15:12:47.000Z
# Copyright 2018-2019 The glTF-Blender-IO authors. # # 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 ...
43.322097
134
0.658771
a6e1ddad0f80b2dc2f42586dc0c241e2b40e24dd
6,463
py
Python
main.py
Arseny569/CheckHeart
fb4c71edbd8f5c49a4d6f9c97faa8666136cb534
[ "CC0-1.0" ]
null
null
null
main.py
Arseny569/CheckHeart
fb4c71edbd8f5c49a4d6f9c97faa8666136cb534
[ "CC0-1.0" ]
null
null
null
main.py
Arseny569/CheckHeart
fb4c71edbd8f5c49a4d6f9c97faa8666136cb534
[ "CC0-1.0" ]
null
null
null
# Создание и запуск приложения, программирование интерфейса экранов и действий на них # Здесь должен быть твой код from kivy.app import App from kivy.uix.label import Label from kivy.uix.button import Button from kivy.uix.screenmanager import ScreenManager, Screen from kivy.uix.boxlayout import BoxLayout from ...
29.377273
86
0.607148
a1e43c22bfb1eafd5bdb6b88be7b176702073ed4
15,499
py
Python
autotest/gcore/basic_test.py
NathanW2/gdal
a5fc0fa500765f484b497d23ec5459176837e422
[ "MIT" ]
2
2015-07-24T16:16:34.000Z
2015-07-24T16:16:37.000Z
autotest/gcore/basic_test.py
samalone/gdal-ios
beed159503ce550c4e09edb25c168c8344e8998c
[ "MIT" ]
null
null
null
autotest/gcore/basic_test.py
samalone/gdal-ios
beed159503ce550c4e09edb25c168c8344e8998c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test basic GDAL open # Author: Even Rouault <even dot rouault at mines dash paris dot org> # #############################################...
32.289583
158
0.595329
5a98a824534bd42cea39c51ca0c4839e233e52f0
744
py
Python
lang/Python/function-composition-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/function-composition-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/function-composition-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
from math import (acos, cos, asin, sin) # compose (<<<) :: (b -> c) -> (a -> b) -> a -> c def compose(g, f): '''Right to left function composition.''' return lambda x: g(f(x)) # main :: IO () def main(): '''Test''' print((list([f(0.5) for f in zipWith(compose)( [sin, cos, lambda x: x **...
21.882353
59
0.487903
20347941051455ebee58823b4b0be93762912b0a
7,508
py
Python
tools/third_party/pywebsocket3/test/test_util.py
twiss/wpt
df5dd5a92d8c014b21b670841ce6787e422865df
[ "BSD-3-Clause" ]
2
2020-04-16T18:41:05.000Z
2021-01-30T04:33:07.000Z
tools/third_party/pywebsocket3/test/test_util.py
sh3beyat/wpt
cb9c3cad6fbeb2ea8e6cb2424536c95e9be3b557
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
tools/third_party/pywebsocket3/test/test_util.py
sh3beyat/wpt
cb9c3cad6fbeb2ea8e6cb2424536c95e9be3b557
[ "BSD-3-Clause" ]
2
2021-01-05T23:43:46.000Z
2021-01-07T23:36:34.000Z
#!/usr/bin/env python # # Copyright 2011, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
38.502564
79
0.655434
072a3d7cfd6be0f554d91000a01ef38e1a310073
4,183
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/choroplethmapbox/_stream.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/choroplethmapbox/_stream.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/choroplethmapbox/_stream.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.stream" _valid_props = {"maxpoints", "token"...
29.457746
82
0.543629
90c08775744427d819a071d7686bf4a0b63534aa
5,016
py
Python
networks/networks_pytorch.py
SamuelSchmidgall/RodentNavigation
2ec49c5f43aa456ba648d1117a1b76241ad7a946
[ "MIT" ]
2
2021-01-03T17:41:02.000Z
2022-02-28T22:37:48.000Z
Learning/Networks/networks_pytorch.py
SamuelSchmidgall/ImpossibleArcade
945e6b6a39809e35a80eeda4e3da537c4dc92eb7
[ "MIT" ]
null
null
null
Learning/Networks/networks_pytorch.py
SamuelSchmidgall/ImpossibleArcade
945e6b6a39809e35a80eeda4e3da537c4dc92eb7
[ "MIT" ]
1
2022-02-28T22:37:48.000Z
2022-02-28T22:37:48.000Z
import torch import numpy as np import torch.nn as nn from torch.distributions import Normal from Learning.Networks.network_modules_torch import * LOG_SIG_MAX = 2 LOG_SIG_MIN = -20 class ValueNetwork(nn.Module): def __init__(self, input_dim, output_dim=1): super(ValueNetwork, self).__init__() ff...
33.218543
86
0.615032
132458dab35e41c22da4265fa7bb28b9624418b3
182
py
Python
ABC/045/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/045/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/045/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
def main(): # input a = int(input()) b = int(input()) h = int(input()) # compute # output print((a+b) * h // 2) if __name__ == '__main__': main()
12.133333
26
0.456044
59066d236b8014879b0608d92991af890d43981d
5,003
py
Python
magenta/video/tools/extract_frames.py
fanzhiyan/magenta
622c47c19bb84c6f57b286ed03b738516b2f27d6
[ "Apache-2.0" ]
16
2016-09-02T04:59:30.000Z
2022-01-11T10:38:29.000Z
magenta/video/tools/extract_frames.py
fanzhiyan/magenta
622c47c19bb84c6f57b286ed03b738516b2f27d6
[ "Apache-2.0" ]
2
2016-09-25T16:39:59.000Z
2016-11-18T17:43:41.000Z
magenta/video/tools/extract_frames.py
fanzhiyan/magenta
622c47c19bb84c6f57b286ed03b738516b2f27d6
[ "Apache-2.0" ]
10
2016-09-02T04:59:32.000Z
2021-09-29T06:57:24.000Z
# Copyright 2019 The Magenta Authors. # # 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 ...
28.426136
80
0.637018
cc5b06a166c7483387845050c7feb974c80221d9
27,941
py
Python
custom_components/openhasp/__init__.py
Chorty/openHASP-custom-component
21174f1b6d5c41cee27bdcf52526b362a440f9fa
[ "MIT" ]
null
null
null
custom_components/openhasp/__init__.py
Chorty/openHASP-custom-component
21174f1b6d5c41cee27bdcf52526b362a440f9fa
[ "MIT" ]
null
null
null
custom_components/openhasp/__init__.py
Chorty/openHASP-custom-component
21174f1b6d5c41cee27bdcf52526b362a440f9fa
[ "MIT" ]
null
null
null
"""HASP components module.""" import hashlib import json import logging import os import pathlib import re import jsonschema from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN from homeassistant.components.switch import DO...
33.826877
97
0.605562
57785e3742249e6e69fdb5606027bac6121de3f7
3,262
py
Python
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-07T10:02:07.000Z
2020-09-07T10:02:07.000Z
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-16T14:26:01.000Z
2020-09-16T14:26:01.000Z
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-07T11:29:47.000Z
2020-09-07T11:29:47.000Z
""" call in shell: python evaluate.py --dir <rootdir/experiment/> --epoch <epoch to> e.g. in shell: python evaluate.py --dir Runs/se_resnet_trained_final/ --epoch 149 loops over all folds and calculates + stores the accuracies in a file in the root folder of the experiment you might change the model in line 45 from r...
34.336842
139
0.656039
16628614db6700e2dfa237f28d80ff917bc8cc77
1,231
py
Python
pytest-20210411/test_calculator.py
ti132520/pytest-vlog
c6688ed2b1c5e10b91057a22e672dffc1cd54d53
[ "CC0-1.0" ]
1
2021-08-15T09:34:45.000Z
2021-08-15T09:34:45.000Z
pytest-20210411/test_calculator.py
yuhuifei/pytest-vlog
c9f4adbf83bd01613176700f939f57af3e1cdf86
[ "CC0-1.0" ]
null
null
null
pytest-20210411/test_calculator.py
yuhuifei/pytest-vlog
c9f4adbf83bd01613176700f939f57af3e1cdf86
[ "CC0-1.0" ]
2
2021-04-12T14:40:22.000Z
2021-08-28T08:47:27.000Z
import pytest @pytest.fixture(scope='class', autouse=True) def init_class(): print('开始测试 class 级别输出') yield print('测试结束 class 级别输出') @pytest.fixture(scope='session', autouse=True) def init_session(): print('开始测试 session 级别输出') yield print('测试结束 session 级别输出') class TestCal: # pytest ...
27.355556
96
0.659626
4db4d2e28a13bb5b290768e405030caf6dd27333
661
py
Python
covid_19_ph/users/tests/test_urls.py
reyesvicente/unofficial-covidtracker-ph
d1a0548f9f838ccbd0abb88fffb762784354c8a9
[ "MIT" ]
null
null
null
covid_19_ph/users/tests/test_urls.py
reyesvicente/unofficial-covidtracker-ph
d1a0548f9f838ccbd0abb88fffb762784354c8a9
[ "MIT" ]
null
null
null
covid_19_ph/users/tests/test_urls.py
reyesvicente/unofficial-covidtracker-ph
d1a0548f9f838ccbd0abb88fffb762784354c8a9
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from covid_19_ph.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/{u...
26.44
74
0.677761