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
543f29bd41b3a411201f1f74222877f97eea75c5
320
py
Python
main.py
waterpepene/typer-for-typeracer
00063e6269a559b0d0d3fee2bf5224cc7264dea1
[ "MIT" ]
null
null
null
main.py
waterpepene/typer-for-typeracer
00063e6269a559b0d0d3fee2bf5224cc7264dea1
[ "MIT" ]
null
null
null
main.py
waterpepene/typer-for-typeracer
00063e6269a559b0d0d3fee2bf5224cc7264dea1
[ "MIT" ]
null
null
null
from functions import * from GUI import * pt.pytesseract.tesseract_cmd = r'G:\Tesseract\tesseract.exe' # path to tesseract executable while True: event, values = trWin.read() if event in (None, 'Exit'): exit() if event in (None, "start"): t.Thread(target=start, daemon=True).start()
24.615385
97
0.646875
2691ee12f8b78c3886fa3398e87cf8bb93992677
6,634
py
Python
learn_to_infer/ring_models.py
dshirron/google-research
0c0f6ce46af61250e0604bb5a6aa481d849e66dc
[ "Apache-2.0" ]
1
2022-01-25T05:40:27.000Z
2022-01-25T05:40:27.000Z
learn_to_infer/ring_models.py
AI21212019/google-research
901524f4d4ab15ef9d2f5165148347d0f26b32c2
[ "Apache-2.0" ]
null
null
null
learn_to_infer/ring_models.py
AI21212019/google-research
901524f4d4ab15ef9d2f5165148347d0f26b32c2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
40.45122
80
0.679228
3ffa50d948b5df64cb48723d0105df6fab68feaf
1,505
py
Python
leetcode/python/1169_invalid_transactions.py
VVKot/leetcode-solutions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
4
2019-04-22T11:57:36.000Z
2019-10-29T09:12:56.000Z
leetcode/python/1169_invalid_transactions.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
leetcode/python/1169_invalid_transactions.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List, Tuple class Solution: CLOSE_TIME = 60 def invalidTransactions(self, transactions: List[str]) -> List[str]: result = [] transactions_by_name = defaultdict(lambda: defaultdict(list)) \ # type: Dict[str, Dict[str, Li...
37.625
79
0.573422
07c23a837504498a9c3df0fab75c459145049053
3,845
py
Python
grabber/yandex.py
NeolithEra/EagleEye
6d712f5936eff2b16a9acac6109e4178009d8a3d
[ "WTFPL" ]
3
2019-11-29T00:12:08.000Z
2020-03-23T12:50:44.000Z
grabber/yandex.py
NeolithEra/EagleEye
6d712f5936eff2b16a9acac6109e4178009d8a3d
[ "WTFPL" ]
null
null
null
grabber/yandex.py
NeolithEra/EagleEye
6d712f5936eff2b16a9acac6109e4178009d8a3d
[ "WTFPL" ]
6
2019-11-20T23:04:38.000Z
2021-05-04T05:48:55.000Z
import time import os from pathlib import Path from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.keys import Keys import utils.config as cfg import utils.console as console def filterLink(link): filters = cfg.google_filter() for f in filters: if f in link: ...
37.696078
152
0.580754
75eef9a08bea66f4341fae56c809a8e28b8a4738
11,364
py
Python
dinette/migrations/0012_populate_slugs.py
agiliq/Dinette
b953a0e30cd05c2148c93c4d58d7e52f59668532
[ "BSD-3-Clause" ]
17
2015-06-28T10:12:19.000Z
2021-11-15T09:52:46.000Z
dinette/migrations/0012_populate_slugs.py
agiliq/Dinette
b953a0e30cd05c2148c93c4d58d7e52f59668532
[ "BSD-3-Clause" ]
1
2015-05-10T11:53:18.000Z
2015-05-10T11:54:30.000Z
dinette/migrations/0012_populate_slugs.py
agiliq/Dinette
b953a0e30cd05c2148c93c4d58d7e52f59668532
[ "BSD-3-Clause" ]
5
2015-08-05T16:54:35.000Z
2021-01-23T22:42:04.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import DataMigration from django.db import models from django.template.defaultfilters import slugify class Migration(DataMigration): def forwards(self, orm): for profile in orm.DinetteUserProfile.objects.all(): slug = slug...
75.258278
176
0.561774
57695633e0c9da87896da1261ea6b39315717ece
649
py
Python
var/spack/repos/builtin/packages/py-identify/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-identify/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-identify/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 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 PyIdentify(PythonPackage): """File identification library for Python""" homepage = "h...
36.055556
145
0.767334
e0446cf138ff3a03ae2288e8a52ebb22e2427837
11,227
py
Python
python/oneflow/test/modules/test_where.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_where.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_where.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 applicable law or agr...
34.758514
88
0.6031
f2901c3287316326081d6af0d21581aaa5f7efbe
7
py
Python
liuhaitao.py
cainiaochengdashen/python1808homework
0cfb3aa795fd950e65a045067d9813fb94157c35
[ "Apache-2.0" ]
null
null
null
liuhaitao.py
cainiaochengdashen/python1808homework
0cfb3aa795fd950e65a045067d9813fb94157c35
[ "Apache-2.0" ]
null
null
null
liuhaitao.py
cainiaochengdashen/python1808homework
0cfb3aa795fd950e65a045067d9813fb94157c35
[ "Apache-2.0" ]
null
null
null
第一次尝试
2.333333
5
0.714286
0868753db803bbccc4bde6abbba62b0b5b3e5a1f
272
py
Python
backend/scoreserver/exceptions.py
tukeJonny/flagger
e4c1bedeb211daf6749cd7aacc73d76f342a4f53
[ "MIT" ]
1
2019-04-15T09:40:25.000Z
2019-04-15T09:40:25.000Z
backend/scoreserver/exceptions.py
tukeJonny/flagger
e4c1bedeb211daf6749cd7aacc73d76f342a4f53
[ "MIT" ]
null
null
null
backend/scoreserver/exceptions.py
tukeJonny/flagger
e4c1bedeb211daf6749cd7aacc73d76f342a4f53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework.exceptions import APIException class OutOfTermException(APIException): status_code = 503 def __init__(self, message, code): super().__init__(dict( message=message, code=code ))
20.923077
50
0.625
e138987eecbc602617c45cbe70d5188beaf92948
1,176
py
Python
book/alien_invasion/alien.py
LiuJunb/PythonStudy
3386b9e3ccb398bfcfcd1a3402182811f9bb37ca
[ "Apache-2.0" ]
1
2021-02-08T09:34:14.000Z
2021-02-08T09:34:14.000Z
book/alien_invasion/alien.py
LiuJunb/PythonStudy
3386b9e3ccb398bfcfcd1a3402182811f9bb37ca
[ "Apache-2.0" ]
5
2021-03-18T21:26:07.000Z
2022-03-11T23:33:44.000Z
book/alien_invasion/alien.py
LiuJunb/PythonStudy
3386b9e3ccb398bfcfcd1a3402182811f9bb37ca
[ "Apache-2.0" ]
null
null
null
import pygame from pygame.sprite import Sprite # 外星人类 继承了Sprite类 class Alien(Sprite): """表示单个外星人的类""" def __init__(self, ai_settings, screen): """初始化外星人并设置其起始位置""" super().__init__() # 一定要手动调用父亲的构造函数 self.screen = screen self.ai_settings = ai_settings # 加载外星人图像,并设置re...
26.133333
90
0.606293
88a5877601e277ed38c350d3911ebea9ed11e3fd
529
py
Python
ProjectEuler_plus/euler_065.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_065.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_065.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys N = int(input().strip()) if N == 1: print(2) sys.exit(1) elif N == 2: print(3) sys.exit(1) n = [8, 11, 8 + 11] d = [3, 4, 3 + 4] i = 5 M = 4 while i < N + 1: if i % 3 == 0: n[0] = n[2] * M + n[1] d[0] = d[2] * M + d[1] M += 1 elif i % ...
17.064516
37
0.351607
8994a2935b4ed1446cc5f1ee506d70ba78624422
32,521
py
Python
osisoft/pidevclub/piwebapi/api/analysis_api.py
inselbuch/pwap2
4ded0a62b241d9354f39ce87f3411fe9708317e3
[ "Apache-2.0" ]
3
2019-05-16T15:44:09.000Z
2020-11-25T22:28:31.000Z
osisoft/pidevclub/piwebapi/api/analysis_api.py
inselbuch/pwap2
4ded0a62b241d9354f39ce87f3411fe9708317e3
[ "Apache-2.0" ]
null
null
null
osisoft/pidevclub/piwebapi/api/analysis_api.py
inselbuch/pwap2
4ded0a62b241d9354f39ce87f3411fe9708317e3
[ "Apache-2.0" ]
8
2019-03-15T10:20:57.000Z
2021-05-20T13:06:37.000Z
# coding: utf-8 """ Copyright 2018 OSIsoft, 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 <http://www.apache.org/licenses/LICENSE-2.0> Unless required by applicable law o...
35.542077
164
0.704253
443e98b3ec9c27daa9f7c6d6ea2838d6e1e500fc
56,998
py
Python
hvac/api/secrets_engines/identity.py
pjaudiomv/hvac
95057178a4dcd487df058fc569e363351fe11507
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/identity.py
pjaudiomv/hvac
95057178a4dcd487df058fc569e363351fe11507
[ "Apache-2.0" ]
2
2019-07-08T03:09:38.000Z
2021-07-08T18:17:51.000Z
hvac/api/secrets_engines/identity.py
pjaudiomv/hvac
95057178a4dcd487df058fc569e363351fe11507
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Identity secret engine module.""" import logging from hvac import exceptions, utils from hvac.api.vault_api_base import VaultApiBase from hvac.constants.identity import ALLOWED_GROUP_TYPES DEFAULT_MOUNT_POINT = 'identity' logger = logging.getLogger(__name__) class I...
39.998596
147
0.615443
4ac72033d1591e2e3438d897689a54e51c89e7c6
18,521
py
Python
mars/services/storage/core.py
snsnlou/mars
6b8eec162eccc8bb980a98ca2cf1e6a4b866d302
[ "Apache-2.0" ]
null
null
null
mars/services/storage/core.py
snsnlou/mars
6b8eec162eccc8bb980a98ca2cf1e6a4b866d302
[ "Apache-2.0" ]
null
null
null
mars/services/storage/core.py
snsnlou/mars
6b8eec162eccc8bb980a98ca2cf1e6a4b866d302
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding 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 a...
38.585417
92
0.597862
4e708d6afcd42bc480cb927a50f481c1a69c9675
274
py
Python
chat/mixins.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
1
2018-02-17T08:46:11.000Z
2018-02-17T08:46:11.000Z
chat/mixins.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
chat/mixins.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
from chat.models import Chat, Message from chat.serializers import ChatSerializer, MessageSerializer class ChatMixin(object): model = Chat serializer_class = ChatSerializer class MessageMixin(object): model = Message serializer_class = MessageSerializer
21.076923
62
0.781022
0c26937b98b3c36a1a6af28fa9ae55f4fdd7b3b4
9,268
py
Python
python/qibuild/worktree.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qibuild/worktree.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qibuild/worktree.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. import os import sys from qisys import ui import qisys.command import qisys.worktree import qibuild.build import qibuild.build_config import qibuild.de...
34.71161
94
0.615343
e04e560983c9165c4d2aeb99af1fb318d823e87d
638
py
Python
2020/05/16/Adding Extra Fields On Many-To-Many Relationships in Django/many_to_many_extra/many_to_many_extra/manage.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
492
2019-06-25T12:54:31.000Z
2022-03-30T12:38:28.000Z
2020/05/16/Adding Extra Fields On Many-To-Many Relationships in Django/many_to_many_extra/many_to_many_extra/manage.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
23
2019-10-01T01:36:08.000Z
2022-02-10T12:46:16.000Z
2020/05/16/Adding Extra Fields On Many-To-Many Relationships in Django/many_to_many_extra/many_to_many_extra/manage.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
1,734
2019-06-03T06:25:13.000Z
2022-03-31T23:57:53.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'many_to_many_extra.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: r...
29
82
0.688088
f10b54706130592ab1bd1eda693944d4c094e544
653
py
Python
lang/py/cookbook/v2/04/pcase.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/04/pcase.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/04/pcase.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding:UTF-8 -*- """模拟case-switch语句""" animals = [] felines = 0 def deal_with_a_cat(): global felines print "Meow" animals.append("feline") felines += 1 def deal_with_a_dog(): print "bark" animals.append("canine") def deal_with_a_bear(): print "watch out for...
18.138889
51
0.607963
2038ef917382b192870178adda5da936f65276ea
393
py
Python
Bucles/While2.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
20
2020-08-19T23:27:01.000Z
2022-02-03T12:02:17.000Z
Bucles/While2.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
1
2021-04-10T18:06:05.000Z
2021-04-10T18:06:05.000Z
Bucles/While2.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
2
2020-12-03T19:35:36.000Z
2021-11-10T14:58:39.000Z
# While 2 i=1 while i <=10: print("Ejecucion " + str(i)) i=i+1 print("Termino la Ejecucion") #===================================================================== # While Edades edad= int(input("Ingrese su Edad: ")) while edad <=0 or edad>=100: print("\nEdad Incorrecta!") edad= int(input("Ingrese ...
19.65
70
0.498728
9074a7e80845933fbb5db38186b081e868ad10b5
122
py
Python
tests/dir/install/setup.py
NAnnamalai/gramex
6a0845aed2f7423da09eaa84678d3a0519fe1ff1
[ "MIT" ]
130
2019-02-05T06:09:16.000Z
2022-03-31T03:09:00.000Z
tests/dir/install/setup.py
NAnnamalai/gramex
6a0845aed2f7423da09eaa84678d3a0519fe1ff1
[ "MIT" ]
457
2019-02-05T05:08:34.000Z
2022-03-30T03:47:45.000Z
tests/dir/install/setup.py
NAnnamalai/gramex
6a0845aed2f7423da09eaa84678d3a0519fe1ff1
[ "MIT" ]
50
2019-02-12T12:20:02.000Z
2022-03-15T02:50:02.000Z
from io import open with open('python-setup.txt', 'w', encoding='utf-8') as handle: handle.write('python-setup.txt')
24.4
63
0.688525
4cd705da72a7a91b727991ddf5b854f9485daa27
1,364
py
Python
Python/pyworkout/dicts_and_sets/ex14_mod2.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
Python/pyworkout/dicts_and_sets/ex14_mod2.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
3
2020-03-24T16:26:35.000Z
2020-04-15T19:40:41.000Z
Python/pyworkout/dicts_and_sets/ex14_mod2.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
import random import datetime def create_dataset( days_to_add: int = 30 ) -> dict: dataset = {} today = datetime.datetime.now().date() for day_idx in range(days_to_add): date = today - datetime.timedelta(days=day_idx) date_str = date.strftime("%Y-%m-%d") temperature =...
24.357143
81
0.641496
16d39d7b9da242a7929b3d67b12cb25ac0624fb3
23,910
py
Python
src/openapi_client/api/project_sections_api.py
mjamroz/NTImporters
4ca820c800be182f13b0afe37c5d5383bffb5107
[ "MIT" ]
null
null
null
src/openapi_client/api/project_sections_api.py
mjamroz/NTImporters
4ca820c800be182f13b0afe37c5d5383bffb5107
[ "MIT" ]
null
null
null
src/openapi_client/api/project_sections_api.py
mjamroz/NTImporters
4ca820c800be182f13b0afe37c5d5383bffb5107
[ "MIT" ]
null
null
null
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.api_client import ApiClient, Endpoint as _E...
34.402878
190
0.464617
3b7d31a83469bf1cd9ccfa6a919f55858d147d0b
7,156
py
Python
webscraper/TheOne/WebScraping.py
rex-lui/Hong-Kong-Mall-Shop-Directory-Web-Scraping
6120040cc64b1f2331f894bb411191555f2afdbf
[ "CC0-1.0" ]
null
null
null
webscraper/TheOne/WebScraping.py
rex-lui/Hong-Kong-Mall-Shop-Directory-Web-Scraping
6120040cc64b1f2331f894bb411191555f2afdbf
[ "CC0-1.0" ]
null
null
null
webscraper/TheOne/WebScraping.py
rex-lui/Hong-Kong-Mall-Shop-Directory-Web-Scraping
6120040cc64b1f2331f894bb411191555f2afdbf
[ "CC0-1.0" ]
null
null
null
#Import necessary package import requests import re from bs4 import BeautifulSoup import pandas as pd import numpy as np import datetime as dt import configparser import os #Configure parameter config = configparser.ConfigParser() config.read(os.path.join(os.path.dirname(__file__), 'config.ini')) mall = config['genera...
39.755556
239
0.564282
7cec413ca418c80bd4071e84a2325109b9d33ab0
3,062
py
Python
ci/download_appveyor.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
1
2019-09-10T07:19:57.000Z
2019-09-10T07:19:57.000Z
ci/download_appveyor.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
1
2018-11-04T10:30:13.000Z
2018-11-04T10:30:13.000Z
ci/download_appveyor.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
2
2018-10-23T08:54:38.000Z
2018-11-22T10:14:26.000Z
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Use the Appveyor API to download Windows artifacts.""" import os import os.path import sys import zipfile import requests def make_auth_headers(): """Mak...
31.895833
94
0.626715
94fdcc50e80a154263fa4022402e7311b2e3bc83
1,308
py
Python
molmodmt/attributes/coordinates/base.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molmodmt/attributes/coordinates/base.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molmodmt/attributes/coordinates/base.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
from os import listdir as _listdir from os.path import dirname as _dirname from importlib import import_module as _import_module base_package = __name__.replace('.base','') def _not_implemented_conversion(item): raise NotImplementedError("This conversion has not been implemented yet") list_api_forms=[filename.sp...
35.351351
114
0.700306
45dc091c9f6fe28d0b19a013d1e3cb19a15329d8
1,424
py
Python
webgraze/scrapers/hema_scraper.py
kroncrv/webgraze
20b2987b2a3028767e32f22d7f097d45d5dac7e2
[ "MIT" ]
1
2021-12-27T07:55:08.000Z
2021-12-27T07:55:08.000Z
webgraze/scrapers/hema_scraper.py
kroncrv/webgraze
20b2987b2a3028767e32f22d7f097d45d5dac7e2
[ "MIT" ]
null
null
null
webgraze/scrapers/hema_scraper.py
kroncrv/webgraze
20b2987b2a3028767e32f22d7f097d45d5dac7e2
[ "MIT" ]
null
null
null
""" Overview page with only one page: https://www.hema.nl/dames/dameskleding/regenkleding Overview page with two pages: https://www.hema.nl/dames/dameskleding/bikinis-badpakken """ from webgraze.scraper import Scraper, ScrapeResults from webgraze.utils import ZeroItems, to_number import html import json import logging ...
30.297872
86
0.627809
7174992e9fbcee6c33a2cc41075a15babdd135df
3,306
py
Python
insights/parsers/systemd_analyze.py
maxamillion/insights-core
aa11e07e68077df97b6c85219911f8382be6e2fa
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/parsers/systemd_analyze.py
maxamillion/insights-core
aa11e07e68077df97b6c85219911f8382be6e2fa
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/parsers/systemd_analyze.py
maxamillion/insights-core
aa11e07e68077df97b6c85219911f8382be6e2fa
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
""" SystemdAnalyzeBlame - command ``systemd-analyze blame`` ======================================================= This module parses the output of command ``systemd-analyze blame``. """ from insights.specs import Specs from insights import CommandParser, parser from insights.parsers import SkipException @parser(Sp...
37.146067
77
0.494253
ae026977c063ba065474d87f1d2fc4372a7af580
604
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/stencil_wrap.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/stencil_wrap.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/stencil_wrap.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
35.529412
114
0.779801
aae80e23e447eef29c026d58b96ec9e835cbb117
3,412
py
Python
goodok_mlu/kekas/callbacks/neptune_callbacks.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
null
null
null
goodok_mlu/kekas/callbacks/neptune_callbacks.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
null
null
null
goodok_mlu/kekas/callbacks/neptune_callbacks.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
1
2021-03-29T13:15:02.000Z
2021-03-29T13:15:02.000Z
"A `Callback` that saves tracked metrics into a Neptune" # Contribution from devforfu: https://nbviewer.jupyter.org/gist/devforfu/ea0b3fcfe194dad323c3762492b05cae from collections import defaultdict import numpy as np import time from kekas.callbacks import Callback from kekas.utils import DotDict, get_opt_lr __all_...
35.175258
105
0.605803
e1256d5fb0985aced83a5f7250b32bc977b98045
8,147
py
Python
src/PoincareModel.py
MehdiAbbanaBennani/Poincare-Embeddings
8a5df49a7a84df738edc89f138ffbaa57ddbf3df
[ "MIT" ]
null
null
null
src/PoincareModel.py
MehdiAbbanaBennani/Poincare-Embeddings
8a5df49a7a84df738edc89f138ffbaa57ddbf3df
[ "MIT" ]
null
null
null
src/PoincareModel.py
MehdiAbbanaBennani/Poincare-Embeddings
8a5df49a7a84df738edc89f138ffbaa57ddbf3df
[ "MIT" ]
null
null
null
import json import autograd as a_grad from Data import PoincareData from constants import BURN_IN_EPOCHS, BURN_IN_RATE, MAX_RAND from poincare_math import * from tools.Logger import Logger from utils import log_setup class PoincareModel: def __init__(self, model_parameters, data_parameters): self.model_parameters...
34.375527
76
0.662821
e399e226c19a3abd0c807ed58879c2ab9f464a46
4,053
py
Python
anaconda_project/internal/cli/variable_commands.py
kathatherine/anaconda-project
77ad59cc0531ad8e2e7c35fa1d80a95a010ef917
[ "BSD-3-Clause" ]
188
2017-03-21T10:39:55.000Z
2022-03-10T21:52:19.000Z
anaconda_project/internal/cli/variable_commands.py
kathatherine/anaconda-project
77ad59cc0531ad8e2e7c35fa1d80a95a010ef917
[ "BSD-3-Clause" ]
300
2017-02-21T15:27:58.000Z
2022-03-30T01:02:08.000Z
anaconda_project/internal/cli/variable_commands.py
kathatherine/anaconda-project
77ad59cc0531ad8e2e7c35fa1d80a95a010ef917
[ "BSD-3-Clause" ]
70
2017-04-08T23:40:25.000Z
2022-03-16T19:41:03.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016, Anaconda, Inc. All rights reserved. # # Licensed under the terms of the BSD 3-Clause License. # The full license is in the file LICENSE.txt, distributed with this software. # -------------------...
31.913386
117
0.673328
df9e62296d369f9c00eb47d32365ddbde436f392
1,023
py
Python
python/10.01/main.py
diggingforfire/AdventOfCode2019
1f58e159f11b35ca132e6dee65661f4ea6389400
[ "MIT" ]
null
null
null
python/10.01/main.py
diggingforfire/AdventOfCode2019
1f58e159f11b35ca132e6dee65661f4ea6389400
[ "MIT" ]
null
null
null
python/10.01/main.py
diggingforfire/AdventOfCode2019
1f58e159f11b35ca132e6dee65661f4ea6389400
[ "MIT" ]
null
null
null
from math import atan2 class Point: def __init__(self, x, y): self.x = x self.y = y def get_manhattan_distance(point, other_point): return abs(point.x - other_point.x) + abs(point.y - other_point.y) def has_line_of_sight(point, other_point, points): angle = atan2(point.y - other_point....
26.230769
85
0.625611
f474426862efdb4b5a3239e03a6188e263b8a92f
1,582
py
Python
promgen/tests/__init__.py
mtetreault/promgen
d0691ad1e1cf7cea4d1cfd76da8293db77c1c205
[ "MIT" ]
null
null
null
promgen/tests/__init__.py
mtetreault/promgen
d0691ad1e1cf7cea4d1cfd76da8293db77c1c205
[ "MIT" ]
null
null
null
promgen/tests/__init__.py
mtetreault/promgen
d0691ad1e1cf7cea4d1cfd76da8293db77c1c205
[ "MIT" ]
null
null
null
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import json import yaml from django.contrib.auth.models import Permission, User from django.test import TestCase from django.conf import settings class Data: def __init__(self, *args, test_dir=set...
29.849057
88
0.663085
d00169094921083ae9712cb714eccd2d04ecdd1d
3,259
py
Python
b2fuse/filetypes/B2SequentialFileMemory.py
sondree/b2_fuse
1c5bfa987fba1db59c3734ee7468bc644fb72ebb
[ "MIT" ]
253
2015-12-07T07:32:05.000Z
2021-12-28T01:06:01.000Z
b2fuse/filetypes/B2SequentialFileMemory.py
falense/b2_fuse
1c5bfa987fba1db59c3734ee7468bc644fb72ebb
[ "MIT" ]
73
2015-12-14T08:43:00.000Z
2021-12-08T11:57:03.000Z
b2fuse/filetypes/B2SequentialFileMemory.py
sondree/b2_fuse
1c5bfa987fba1db59c3734ee7468bc644fb72ebb
[ "MIT" ]
34
2016-02-02T00:32:49.000Z
2021-02-18T02:22:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #The MIT License (MIT) #Copyright (c) 2015 Sondre Engebraaten #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including with...
35.043011
95
0.672292
13982db582434ac850986da289acd8a018ee0eb8
9,655
py
Python
starlette/responses.py
jaceksnet/starlette
b2f9f4359b93a9f941779c575af764019e5183c7
[ "BSD-3-Clause" ]
null
null
null
starlette/responses.py
jaceksnet/starlette
b2f9f4359b93a9f941779c575af764019e5183c7
[ "BSD-3-Clause" ]
null
null
null
starlette/responses.py
jaceksnet/starlette
b2f9f4359b93a9f941779c575af764019e5183c7
[ "BSD-3-Clause" ]
null
null
null
import hashlib import http.cookies import inspect import json import os import stat import typing from email.utils import formatdate from mimetypes import guess_type from urllib.parse import quote_plus from starlette.background import BackgroundTask from starlette.concurrency import iterate_in_threadpool from starlett...
34.237589
88
0.584775
8256ccb9ff66d5c4bb1f9f821e6290c14ad49ed6
1,881
py
Python
trseeker/tools/seqfile.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/tools/seqfile.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/tools/seqfile.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Aleksey Komissarov ( ad3002@gmail.com ) # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. ''' Varios usefull functions. Again. TODO: j...
29.390625
91
0.550771
cd52587121b287d8e7c7ff4bf69f34b0afd07922
3,069
py
Python
selfdrive/controls/lib/latcontrol_pid.py
danyoquack1/openpilot
c285a3e70e677e6f3ae8612f8d03b6bfa1bf083b
[ "MIT" ]
5
2020-02-18T09:37:00.000Z
2022-02-28T01:06:42.000Z
selfdrive/controls/lib/latcontrol_pid.py
danyoquack1/openpilot
c285a3e70e677e6f3ae8612f8d03b6bfa1bf083b
[ "MIT" ]
null
null
null
selfdrive/controls/lib/latcontrol_pid.py
danyoquack1/openpilot
c285a3e70e677e6f3ae8612f8d03b6bfa1bf083b
[ "MIT" ]
6
2020-07-07T14:09:55.000Z
2021-08-31T22:33:51.000Z
from selfdrive.controls.lib.pid import PIController from selfdrive.controls.lib.drive_helpers import get_steer_max from cereal import car from cereal import log from selfdrive.kegman_conf import kegman_conf class LatControlPID(): def __init__(self, CP): self.kegman = kegman_conf(CP) self.deadzone = float(se...
40.92
129
0.666667
b1ce0b1322f0cc2b1e38affd2c779798885a8b47
588
py
Python
transforms/relatedscreenshots.py
crits/mcrits
5ea142ea277976c1694ca878cb4a4a4928341507
[ "BSD-2-Clause" ]
29
2015-01-09T17:30:17.000Z
2019-07-26T18:19:55.000Z
transforms/relatedscreenshots.py
crits/mcrits
5ea142ea277976c1694ca878cb4a4a4928341507
[ "BSD-2-Clause" ]
null
null
null
transforms/relatedscreenshots.py
crits/mcrits
5ea142ea277976c1694ca878cb4a4a4928341507
[ "BSD-2-Clause" ]
10
2015-04-22T21:49:34.000Z
2019-08-16T06:57:14.000Z
from MaltegoTransform import * from mcrits_utils import * crits = mcrits() me = MaltegoTransform() me.parseArguments(sys.argv) id_ = me.getVar('id') crits_type = me.getVar('crits_type') # While rare, screenshots can actually be related to other objects. for result in crits.get_related(crits_type, id_, 'Screenshot'):...
28
67
0.746599
24a4f8b8142c8e1500355528d29575d8951ccebf
448
py
Python
sniffets/sniffets.py
behconsci/sniffets-python
a8cfed5f32950a8a1db466ddfefe4280b2eb5ae8
[ "MIT" ]
null
null
null
sniffets/sniffets.py
behconsci/sniffets-python
a8cfed5f32950a8a1db466ddfefe4280b2eb5ae8
[ "MIT" ]
null
null
null
sniffets/sniffets.py
behconsci/sniffets-python
a8cfed5f32950a8a1db466ddfefe4280b2eb5ae8
[ "MIT" ]
null
null
null
import grequests import requests class Sniffet(object): def __init__(self, token): self.url = 'http://sniffets.com/sniff/event/%s/' % token # keep alive and connection pooling self.session = requests.session() def event(self, event_name, extra=None): payload = {'name': event_...
28
77
0.649554
0df06b7cbc96bb0330ab64ba3ec3b867f216a5a4
3,093
py
Python
scripts/calendar_mirror_server.py
kieranjwhite/calendar_mirror
269187e2dddbe448c8c5561d89b30bc44491a1a2
[ "Apache-2.0" ]
null
null
null
scripts/calendar_mirror_server.py
kieranjwhite/calendar_mirror
269187e2dddbe448c8c5561d89b30bc44491a1a2
[ "Apache-2.0" ]
null
null
null
scripts/calendar_mirror_server.py
kieranjwhite/calendar_mirror
269187e2dddbe448c8c5561d89b30bc44491a1a2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """ Copyright [2019] [Kieran White] 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 ...
30.623762
127
0.658907
e720025a2b21b42b25340b7889a66864e5e424af
3,392
py
Python
h5pyViewer/utilities.py
flying-sheep/h5pyViewer
065bd2361df31fd38fa2eec087c91d1c2c06b1ab
[ "BSD-2-Clause" ]
48
2015-06-23T16:11:55.000Z
2022-02-28T10:14:14.000Z
h5pyViewer/utilities.py
flying-sheep/h5pyViewer
065bd2361df31fd38fa2eec087c91d1c2c06b1ab
[ "BSD-2-Clause" ]
10
2015-05-06T17:41:51.000Z
2020-11-18T08:23:28.000Z
h5pyViewer/utilities.py
flying-sheep/h5pyViewer
065bd2361df31fd38fa2eec087c91d1c2c06b1ab
[ "BSD-2-Clause" ]
41
2015-09-15T13:23:21.000Z
2022-03-04T03:03:15.000Z
if __name__ == '__main__': #Used to guarantee to use at least Wx2.8 import wxversion wxversion.ensureMinimal('2.8') import wx import matplotlib as mpl if __name__ == '__main__': mpl.use('WXAgg') #or mpl.use('WX') from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg as NavigationToolbar import ...
29.754386
90
0.691627
1795daa1a59fc73ddc793491495cc9bc73438405
37,196
py
Python
pypy/module/posix/test/test_posix2.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/module/posix/test/test_posix2.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/module/posix/test/test_posix2.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement from pypy.objspace.std import StdObjSpace from pypy.tool.udir import udir from pypy.conftest import gettestobjspace from pypy.tool.autopath import pypydir from pypy.rpython.module.ll_os import RegisterOs import os import py import sys import signal def se...
34.697761
141
0.525218
76abc54c070f190468bf285de71ea4a6e9fba8bc
10,241
py
Python
plotting/grid/__init__.py
GustikS/NeuraLifting
c7e59175f50200897a362dff09b7fe2e7b89e7b6
[ "MIT" ]
1
2020-07-21T04:35:52.000Z
2020-07-21T04:35:52.000Z
plotting/grid/__init__.py
GustikS/NeuraLifting
c7e59175f50200897a362dff09b7fe2e7b89e7b6
[ "MIT" ]
null
null
null
plotting/grid/__init__.py
GustikS/NeuraLifting
c7e59175f50200897a362dff09b7fe2e7b89e7b6
[ "MIT" ]
null
null
null
import os from os import listdir # static naming conventions examples = "examples" queries = "queries" # jarname = "NeuraLogic.jar" jarname = "/home/XXXXX/neuralogic/NeuraLogic.jar" # %% experiment-specific setup = single file class ExperimentSetup(): def __init__(self, experiment_id, params="", template="templ...
38.5
152
0.588029
5b00e0b33f916faf57b51422b8e9c65778f02315
2,053
py
Python
crontab_job.py
fanylee/github
8f6a1b240fda800fa0b53ba6236c5f2df0fe84b0
[ "Apache-2.0" ]
null
null
null
crontab_job.py
fanylee/github
8f6a1b240fda800fa0b53ba6236c5f2df0fe84b0
[ "Apache-2.0" ]
null
null
null
crontab_job.py
fanylee/github
8f6a1b240fda800fa0b53ba6236c5f2df0fe84b0
[ "Apache-2.0" ]
null
null
null
from tkinter import * import threading import multiprocessing from runpy import run_path import time data = [] def make_app(): app = Tk() app.geometry('400x500') Button(name='add', text='add task', command=make_task).pack(side=BOTTOM) return app def make_task(): _font = ['Arial', 15, 'bold'] ...
25.987342
90
0.57282
bbce3e246273e04c0441598366b080e871ecdd0a
437
py
Python
api/base/settings/__init__.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
api/base/settings/__init__.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
api/base/settings/__init__.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- '''Consolidates settings from defaults.py and local.py. :: >>> from api.base import settings >>> settings.API_BASE 'v2/' ''' import warnings from .defaults import * # noqa try: from .local import * # noqa except ImportError as error: warnings.warn('No api/base/settings/l...
24.277778
91
0.652174
698cfa6b949c102e8153a572077b63820ecdaf2c
478
py
Python
dist/setup.py
cmorgan/trading-with-python
c7d91a418030316cc9d06f318ade134fde016dee
[ "BSD-3-Clause" ]
24
2015-01-24T11:27:34.000Z
2019-09-03T22:28:00.000Z
dist/setup.py
cmorgan/trading-with-python
c7d91a418030316cc9d06f318ade134fde016dee
[ "BSD-3-Clause" ]
null
null
null
dist/setup.py
cmorgan/trading-with-python
c7d91a418030316cc9d06f318ade134fde016dee
[ "BSD-3-Clause" ]
19
2015-11-03T19:52:50.000Z
2021-03-12T08:16:15.000Z
from distutils.core import setup import tradingWithPython as twp setup(name = "tradingWithPython", version = twp.__version__, description = "A collection of functions and classes for Quantitative trading", author = "Jev Kuznetsov", author_email = "jev.kuznetsov@gmail.com", u...
36.769231
107
0.692469
83bcf0dfd57335907e60506fb30a42eff60bc9b7
1,674
py
Python
airflow/utils/trigger_rule.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
airflow/utils/trigger_rule.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
airflow/utils/trigger_rule.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
33.48
63
0.716249
49eba9baacbeb095e2bbb96e44e63619b65635be
171
py
Python
tests/always_long_lines.py
RyuKojiro/tach
8dfac9577ed3ccaf2fad5fe799f825f4a369868b
[ "MIT" ]
1
2021-12-20T22:28:42.000Z
2021-12-20T22:28:42.000Z
tests/always_long_lines.py
RyuKojiro/tach
8dfac9577ed3ccaf2fad5fe799f825f4a369868b
[ "MIT" ]
null
null
null
tests/always_long_lines.py
RyuKojiro/tach
8dfac9577ed3ccaf2fad5fe799f825f4a369868b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from time import sleep from math import sin import sys while True: print("this is a very long line" * 20) sys.stdout.flush() sleep(1)
15.545455
42
0.678363
5cbea84a94d4bbc408de0ee2eb41ac5346603f66
3,221
py
Python
HLTriggerOffline/B2G/python/b2gHadronicHLTEventValidation_cfi.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
HLTriggerOffline/B2G/python/b2gHadronicHLTEventValidation_cfi.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
HLTriggerOffline/B2G/python/b2gHadronicHLTEventValidation_cfi.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms # single jet validation from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer b2gSingleJetHLTValidation = DQMEDAnalyzer('B2GHadronicHLTValidation', # Directory sDir = cms.untracked.string('HLT/B2GHLTValidation/B2G/SingleJet/'), # Jets ...
60.773585
98
0.510711
c63b3added6d426db71c1e9850ca207a2854b85f
1,988
py
Python
2.train_and_test.py
fialhocoelho/projetoic
774b7eb7c926ea18baf17690254e372fa72a7c66
[ "MIT" ]
null
null
null
2.train_and_test.py
fialhocoelho/projetoic
774b7eb7c926ea18baf17690254e372fa72a7c66
[ "MIT" ]
null
null
null
2.train_and_test.py
fialhocoelho/projetoic
774b7eb7c926ea18baf17690254e372fa72a7c66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os from src.model import ScaleGan import tensorflow as tf import warnings warnings.filterwarnings("ignore") parser = argparse.ArgumentParser(description='') parser.add_argument('--phase', dest='phase', default='test', help='phase') parser.add_argument('--dataset_name',...
43.217391
116
0.696177
376a72f8d6ee77243dd69bf1ff9f0b7c555e0b22
11,533
py
Python
django/contrib/gis/geos/prototypes/io.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/prototypes/io.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/prototypes/io.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import threading from ctypes import POINTER, Structure, byref, c_byte, c_char_p, c_int, c_size_t from django.contrib.gis.geos.base import GEOSBase from django.contrib.gis.geos.libgeos import ( GEOM_PTR, GEOSFuncFactory, geos_version_tuple, ) from django.contrib.gis.geos.prototypes.errcheck import ( che...
34.020649
114
0.690974
f8c42e9a0275c21bb40abe8d6115e7277ab68c01
18,805
py
Python
PhysicsTools/HeppyCore/python/utils/dataset.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
1
2019-03-09T19:47:49.000Z
2019-03-09T19:47:49.000Z
PhysicsTools/HeppyCore/python/utils/dataset.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
null
null
null
PhysicsTools/HeppyCore/python/utils/dataset.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
1
2019-04-03T19:23:27.000Z
2019-04-03T19:23:27.000Z
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import import os import pprint import re import pickle import sys from .castorBaseDir import castorBaseDir from . import eostools as castortools import fnmatch import six class IntegrityCheckError(Exception): def __init__...
36.585603
193
0.552459
b3fa73c2f547170a31bebf3083930f3f2ff995c3
3,177
py
Python
daml_dit_ddit/main.py
digital-asset/daml-dit-dd
99ff5c3eb40c9369bb5d6137e51d4a9aada267a6
[ "Apache-2.0" ]
null
null
null
daml_dit_ddit/main.py
digital-asset/daml-dit-dd
99ff5c3eb40c9369bb5d6137e51d4a9aada267a6
[ "Apache-2.0" ]
null
null
null
daml_dit_ddit/main.py
digital-asset/daml-dit-dd
99ff5c3eb40c9369bb5d6137e51d4a9aada267a6
[ "Apache-2.0" ]
null
null
null
import argparse import logging from typing import Union, List from .log import setup_default_logging, LOG from .common import die from .subcommand_build import setup as setup_subcommand_build from .subcommand_clean import setup as setup_subcommand_clean from .subcommand_ditversion import setup as setup_subcommand_...
36.94186
107
0.709474
ed716ac84535420872111157d0a0540e4e6608b8
5,623
py
Python
ingestion/src/metadata/ingestion/source/dashboard/looker.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/dashboard/looker.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/dashboard/looker.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # 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 writing, software...
39.879433
99
0.66637
f1f56da7fe12f696465c6256c6d56bbd1bef71c3
4,057
py
Python
brambox/boxes/annotations/vatic.py
thesuperorange/task-conditioned
dd700bbed6806d166b8ede6142a2129bc69fdef6
[ "MIT" ]
331
2020-06-05T05:10:21.000Z
2022-03-29T07:32:42.000Z
brambox/boxes/annotations/vatic.py
xiongcaihua/ObjectDetection-OneStageDet
d29f69cdce32b006bd040edb6e66427b3c987c70
[ "Apache-2.0" ]
10
2020-06-12T07:53:42.000Z
2021-05-11T00:09:10.000Z
brambox/boxes/annotations/vatic.py
xiongcaihua/ObjectDetection-OneStageDet
d29f69cdce32b006bd040edb6e66427b3c987c70
[ "Apache-2.0" ]
84
2020-06-05T10:21:11.000Z
2022-03-27T23:42:44.000Z
# # Copyright EAVISE # Author: Maarten Vandersteegen # """ Vatic ----- """ from .annotation import * __all__ = ["VaticAnnotation", "VaticParser"] class VaticAnnotation(Annotation): """ VATIC tool annotation """ def serialize(self, frame_nr=0): """ generate a vatic annotation string """ ...
33.254098
94
0.578506
cbb56d405353e895d235f141507360147811a213
21,595
py
Python
torch/ao/quantization/fx/utils.py
jiyuanzFB/pytorch
d047e475f830631d8fcc877ea17eac8fb34748d7
[ "Intel" ]
1
2022-03-08T14:43:39.000Z
2022-03-08T14:43:39.000Z
torch/ao/quantization/fx/utils.py
jiyuanzFB/pytorch
d047e475f830631d8fcc877ea17eac8fb34748d7
[ "Intel" ]
null
null
null
torch/ao/quantization/fx/utils.py
jiyuanzFB/pytorch
d047e475f830631d8fcc877ea17eac8fb34748d7
[ "Intel" ]
null
null
null
import re import torch import torch.nn as nn from torch.ao.quantization.utils import is_per_tensor, is_per_channel from torch.ao.quantization.quantize import is_activation_post_process from torch.fx import GraphModule, map_arg from torch.fx.graph import ( Graph, Node, ) from typing import Callable, Optional,...
40.97723
128
0.649734
83b0ea4d6c236714b1d0a894bf2665832273beb8
675
py
Python
presenter/ismb-prep-embassy/05-index-downsample.py
ga4gh/ismb-2022-fasp-starter-kit
4230bc46af92997d5665ad14eb8d5ea380576e5d
[ "Apache-2.0" ]
null
null
null
presenter/ismb-prep-embassy/05-index-downsample.py
ga4gh/ismb-2022-fasp-starter-kit
4230bc46af92997d5665ad14eb8d5ea380576e5d
[ "Apache-2.0" ]
null
null
null
presenter/ismb-prep-embassy/05-index-downsample.py
ga4gh/ismb-2022-fasp-starter-kit
4230bc46af92997d5665ad14eb8d5ea380576e5d
[ "Apache-2.0" ]
null
null
null
import os import sys def main(): start = int(sys.argv[1]) end = int(sys.argv[2]) records_file = "1000genomes.low_coverage.GRCh38DH.alignment.index" records = open(records_file, "r").readlines() for record in records[start:end]: rs = record.rstrip().split("\t") original_filename = ...
27
80
0.613333
265af820de928777fa946e3d2ca9d95445e63ca0
429
py
Python
wangcaiyu/flask-tutorial/flaskr/lijing/lijing_index.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
wangcaiyu/flask-tutorial/flaskr/lijing/lijing_index.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
wangcaiyu/flask-tutorial/flaskr/lijing/lijing_index.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for, jsonify, session, send_file, send_from_directory ) from flaskr.auth import login_required import os bp = Blueprint('lijing', __name__, url_prefix='/lijing') @bp.route('/') def index(): return render_template('lijing/logi...
19.5
118
0.729604
9dff92e126e2272c6119e62f970950a467e39016
2,279
py
Python
global_scraper.py
kittinan/Fantasy-Premier-League
2753bd4bbe8f7417c761f95d4af1218933c81c1d
[ "MIT" ]
null
null
null
global_scraper.py
kittinan/Fantasy-Premier-League
2753bd4bbe8f7417c761f95d4af1218933c81c1d
[ "MIT" ]
null
null
null
global_scraper.py
kittinan/Fantasy-Premier-League
2753bd4bbe8f7417c761f95d4af1218933c81c1d
[ "MIT" ]
null
null
null
import requests import json from utility import uprint from parsers import * from cleaners import * from collector import collect_gw import time def get_data(): """ Retrieve the fpl player data from the hard-coded url """ response = requests.get("https://fantasy.premierleague.com/drf/bootstrap-static") ...
33.514706
101
0.68846
2c84127b2bd9f03eeabd3ed49ee9be8338c85980
11,808
py
Python
pyscf/pbc/scf/stability.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
pyscf/pbc/scf/stability.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
pyscf/pbc/scf/stability.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
#!/usr/bin/env python # Copyright 2014-2021 The PySCF Developers. 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 # # U...
37.132075
100
0.605352
850eff759e1da68078cc941242a70f6fecdbb5ba
2,687
py
Python
models/Attention/CoAtNet.py
Dou-Yu-xuan/deep-learning-visal
82978f454c7f2662d0eb972b5a4a1e5d5961b232
[ "Apache-2.0" ]
150
2021-12-10T01:21:06.000Z
2022-03-30T08:13:42.000Z
models/Attention/CoAtNet.py
Curdboycc/torch-template-for-deep-learning
da1ebc527d44c8c5a524e757a1d784ba37ec2d5c
[ "Apache-2.0" ]
2
2021-12-23T04:59:54.000Z
2021-12-23T06:23:24.000Z
models/Attention/CoAtNet.py
Curdboycc/torch-template-for-deep-learning
da1ebc527d44c8c5a524e757a1d784ba37ec2d5c
[ "Apache-2.0" ]
54
2021-12-10T03:36:27.000Z
2022-03-22T11:57:12.000Z
from torch import nn, sqrt import torch import sys from math import sqrt sys.path.append('.') from MBConv import MBConvBlock from SelfAttention import ScaledDotProductAttention class CoAtNet(nn.Module): def __init__(self,in_ch,image_size,out_chs=[64,96,192,384,768]): super().__init__() self.out_chs...
31.988095
112
0.584667
8685df2773c3b1e799a8e0ba4a1a3daafed82c55
2,463
py
Python
python/aghast/aghast_generated/IrregularBinning.py
HDembinski/aghast
f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95
[ "BSD-3-Clause" ]
18
2019-04-15T14:39:35.000Z
2021-12-21T15:01:02.000Z
python/aghast/aghast_generated/IrregularBinning.py
HDembinski/aghast
f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95
[ "BSD-3-Clause" ]
27
2019-04-12T20:24:00.000Z
2021-12-03T08:51:56.000Z
python/aghast/aghast_generated/IrregularBinning.py
diana-hep/stagg
ed97e9abc870e729d300622253aa7e9c870f77ec
[ "BSD-3-Clause" ]
11
2019-04-15T14:41:00.000Z
2021-11-16T13:28:10.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: aghast_generated import flatbuffers class IrregularBinning(object): __slots__ = ["_tab"] @classmethod def GetRootAsIrregularBinning(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, of...
27.988636
87
0.666261
c2eb799528424d21c00cc17db2a15b54861690b5
3,325
py
Python
test/programytest/services/library/metoffice/test_metoffice.py
RonKhondji/program-y
422c5dea440e569469d7512d80315a731c5e35d6
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
test/programytest/services/library/metoffice/test_metoffice.py
sofi2305/Nik
e8bb4a6614c16c334cd0df3a16b30a9daac0070d
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
test/programytest/services/library/metoffice/test_metoffice.py
sofi2305/Nik
e8bb4a6614c16c334cd0df3a16b30a9daac0070d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
import unittest import metoffer from programy.services.library.metoffice.metoffice import MetOffice from programytest.client import TestClient from programytest.services.library.metoffice.payloads.forecast_3hourly import forecast_3hourly_payload from programytest.services.library.metoffice.payloads.observation import o...
39.583333
102
0.753985
8345e32d4363dd948b44464df9e753b24ace9eb1
2,632
py
Python
src/services/search_scraper/search_spider.py
BlieNuckel/kronoxAppBackend
3c720e7529a06abaa378a576f1931a45c5545458
[ "MIT" ]
null
null
null
src/services/search_scraper/search_spider.py
BlieNuckel/kronoxAppBackend
3c720e7529a06abaa378a576f1931a45c5545458
[ "MIT" ]
null
null
null
src/services/search_scraper/search_spider.py
BlieNuckel/kronoxAppBackend
3c720e7529a06abaa378a576f1931a45c5545458
[ "MIT" ]
null
null
null
from typing import List import scrapy from scrapy.http import Response from scrapy import Selector import re class SearchSpider(scrapy.Spider): name = "search" def __init__(self, searchString: str, yearQuery: str, baseUrl: str): self.searchString = searchString self.yearQuery = yearQuery ...
39.283582
233
0.548252
c1f4871b6f18135850b66056039e9b0067227587
3,703
py
Python
test/functional/wallet_encryption.py
codingbam/visioncoin
7be3fb2b7c0748b2c9b902a88356f21ffacac45c
[ "MIT" ]
null
null
null
test/functional/wallet_encryption.py
codingbam/visioncoin
7be3fb2b7c0748b2c9b902a88356f21ffacac45c
[ "MIT" ]
null
null
null
test/functional/wallet_encryption.py
codingbam/visioncoin
7be3fb2b7c0748b2c9b902a88356f21ffacac45c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-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. """Test Wallet encryption""" import time from test_framework.test_framework import BitcoinTestFr...
43.564706
139
0.689981
447975ab85bc97089cc50af458de45b3d9450869
169
py
Python
AppServer/lib/django-1.4/tests/regressiontests/dispatch/tests/__init__.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.4/tests/regressiontests/dispatch/tests/__init__.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.4/tests/regressiontests/dispatch/tests/__init__.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
""" Unit-tests for the dispatch project """ from __future__ import absolute_import from .test_dispatcher import DispatcherTests from .test_saferef import SaferefTests
18.777778
44
0.822485
5c7344372a27047f292580749269f76e72246688
4,595
py
Python
pos/default_settings.py
ardzix/pos_cooperative
3d85884d50e501a50b6cd1c421d427a0b9373413
[ "MIT" ]
2
2018-04-29T19:59:04.000Z
2020-01-29T10:32:28.000Z
pos/default_settings.py
ardzix/pos_cooperative
3d85884d50e501a50b6cd1c421d427a0b9373413
[ "MIT" ]
1
2020-01-29T10:32:09.000Z
2020-01-29T10:32:09.000Z
pos/default_settings.py
ardzix/pos_cooperative
3d85884d50e501a50b6cd1c421d427a0b9373413
[ "MIT" ]
null
null
null
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Author: Arif Dzikrullah # ardzix@hotmail.com # # File Created: Thursday, 11th January 2018 11:59:14 am # Last Modified: Thursday, 11th January 2018 12:00:31 pm # Modified By: Arif Dzikrullah (ardzix@hotmail.com) # # Give the best to the world # C...
26.107955
91
0.670511
5a121ad481dd38a60d62b3b13cc3e31af2bfa2a4
7,669
py
Python
tests/test_effects.py
stuartarchibald/librosa
960414420ae530d14608af29608de81cead19e7c
[ "ISC" ]
null
null
null
tests/test_effects.py
stuartarchibald/librosa
960414420ae530d14608af29608de81cead19e7c
[ "ISC" ]
null
null
null
tests/test_effects.py
stuartarchibald/librosa
960414420ae530d14608af29608de81cead19e7c
[ "ISC" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """Unit tests for the effects module""" import warnings # Disable cache import os try: os.environ.pop("LIBROSA_CACHE_DIR") except KeyError: pass from contextlib2 import nullcontext as dnr import numpy as np import pytest import librosa __EXAMPLE_FILE = os.pat...
27.786232
120
0.632547
5f1445a84a88f9f66d088c79f6573d0ffc55563e
775
py
Python
server/tests/test_transport.py
3c7/vscode-yara
c22a49316f1d7ddf518b4e87f67d76bc557173fd
[ "MIT" ]
2
2021-11-13T02:04:05.000Z
2021-11-13T10:16:41.000Z
server/tests/test_transport.py
3c7/vscode-yara
c22a49316f1d7ddf518b4e87f67d76bc557173fd
[ "MIT" ]
null
null
null
server/tests/test_transport.py
3c7/vscode-yara
c22a49316f1d7ddf518b4e87f67d76bc557173fd
[ "MIT" ]
null
null
null
''' Test the various transport mechanisms used between client and server Currently only TCP is supported, though ideally anything supported by the asyncio library will be fully integrated and tested in the future ''' import pytest @pytest.mark.asyncio @pytest.mark.transport async def test_tcp_closed(open_stre...
31
73
0.747097
f2dd9d5e016b02e99aa261ce98311f99b2336175
4,583
py
Python
views.py
lethain/lifeflow
e8886041be227684ceb27a4a5ef2347f05c6af5e
[ "MIT" ]
2
2016-05-08T09:15:48.000Z
2016-09-07T04:32:03.000Z
views.py
lethain/lifeflow
e8886041be227684ceb27a4a5ef2347f05c6af5e
[ "MIT" ]
null
null
null
views.py
lethain/lifeflow
e8886041be227684ceb27a4a5ef2347f05c6af5e
[ "MIT" ]
null
null
null
""" Views.py Author: Will Larson Contact: lethain@gmail.com Contains one custom view for displaying articles. Mostly necessary to presort the articles in order of descending size. """ import datetime, time, random, cgi, md5 from django.template import RequestContext from django.shortcuts import render_to_response f...
32.735714
114
0.646956
2379837be85f2b30ec735d08474ba62914a87f90
1,881
py
Python
src/zenmake/zm/autodict.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
null
null
null
src/zenmake/zm/autodict.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
null
null
null
src/zenmake/zm/autodict.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # """ Copyright (c) 2019, Alexander Magola. All rights reserved. license: BSD 3-Clause License, see LICENSE for more details. """ from copy import deepcopy try: from collections.abc import Mapping as maptype except ImportError: from collections import Mapping as maptype class AutoDict(dict)...
28.938462
80
0.614567
ba5fe34ac1e461287e9c3933d78ee3d2346ca623
3,848
py
Python
sirepo/exporter.py
mkeilman/sirepo
29ac632f688b019c95d69191a84848f263433dd7
[ "Apache-2.0" ]
49
2015-07-29T14:11:29.000Z
2021-12-10T15:24:26.000Z
sirepo/exporter.py
mkeilman/sirepo
29ac632f688b019c95d69191a84848f263433dd7
[ "Apache-2.0" ]
3,732
2015-08-03T22:07:26.000Z
2022-03-31T22:48:33.000Z
sirepo/exporter.py
mkeilman/sirepo
29ac632f688b019c95d69191a84848f263433dd7
[ "Apache-2.0" ]
28
2015-11-20T16:23:46.000Z
2021-09-20T07:22:48.000Z
# -*- coding: utf-8 -*- u"""Export simulations in a single archive :copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkcollections from pykern import pkio ...
29.6
78
0.664501
6e7ea37414d7a11606a3a83ad1416df0538ea60c
2,984
py
Python
src/restapi/ideas/migrations/0002_auto_20181018_1729.py
WickedBrat1/backend
a28694ed51fdc02a90460df0f3b9e57b3ca5db4d
[ "Apache-2.0" ]
null
null
null
src/restapi/ideas/migrations/0002_auto_20181018_1729.py
WickedBrat1/backend
a28694ed51fdc02a90460df0f3b9e57b3ca5db4d
[ "Apache-2.0" ]
null
null
null
src/restapi/ideas/migrations/0002_auto_20181018_1729.py
WickedBrat1/backend
a28694ed51fdc02a90460df0f3b9e57b3ca5db4d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.7 on 2018-10-18 11:59 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ('ideas', '0001_initial'), ] operations = [ migrations.Cre...
34.697674
130
0.563673
990ce061cd84cc60ccda0e8d87aeb10402518206
148
py
Python
music/admin.py
ayush1999guptA/Music_Storage_Cloud
7bac8cb1145ccfdba284180e9e5d1e57f3f8e132
[ "MIT" ]
3
2019-04-02T15:42:18.000Z
2019-04-02T22:18:25.000Z
music/admin.py
ayush1999guptA/Music_Storage_Cloud
7bac8cb1145ccfdba284180e9e5d1e57f3f8e132
[ "MIT" ]
null
null
null
music/admin.py
ayush1999guptA/Music_Storage_Cloud
7bac8cb1145ccfdba284180e9e5d1e57f3f8e132
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Album, Song # Register your models here. admin.site.register(Album) admin.site.register(Song)
21.142857
32
0.797297
94b3c18994efff7962629ae8bf80358c1ab16e2c
11,991
py
Python
imperative/python/test/unit/test_tracing.py
Neutron3529/MegEngine
91a3580f751ed5ca4d17f1305f8614cec438b87e
[ "Apache-2.0" ]
null
null
null
imperative/python/test/unit/test_tracing.py
Neutron3529/MegEngine
91a3580f751ed5ca4d17f1305f8614cec438b87e
[ "Apache-2.0" ]
null
null
null
imperative/python/test/unit/test_tracing.py
Neutron3529/MegEngine
91a3580f751ed5ca4d17f1305f8614cec438b87e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
24.571721
88
0.574431
7f2fa5e4dfd92c520b9d2c723346b91bd8fddd06
398
py
Python
restaurant/admin.py
lebegueduweb/django-restaurant-template
81b5199e1febd7701de6d90829b7e9cef0171b54
[ "MIT" ]
null
null
null
restaurant/admin.py
lebegueduweb/django-restaurant-template
81b5199e1febd7701de6d90829b7e9cef0171b54
[ "MIT" ]
null
null
null
restaurant/admin.py
lebegueduweb/django-restaurant-template
81b5199e1febd7701de6d90829b7e9cef0171b54
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Carousel, Service, MotGerante admin.site.register(Post) admin.site.register(Carousel) admin.site.register(Service) admin.site.register(MotGerante) class CarouselAdmin(admin.ModelAdmin): list_display = "__all__" fieldsets = ( (None, { ...
22.111111
66
0.69598
b52dd559a4b00723fdd7c2cdb150938ae148941d
18,476
py
Python
ansible/roles/win_template-fail/files/toCopy/contrib/inventory/vmware.py
rdepke/ansible-35613-win_template-example
4b017a3638665b69c0342431d8fa2bb17f433dbc
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
ansible/roles/win_template-fail/files/toCopy/contrib/inventory/vmware.py
rdepke/ansible-35613-win_template-example
4b017a3638665b69c0342431d8fa2bb17f433dbc
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
ansible/roles/win_template-fail/files/toCopy/contrib/inventory/vmware.py
rdepke/ansible-35613-win_template-example
4b017a3638665b69c0342431d8fa2bb17f433dbc
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' VMware Inventory Script ======================= Retrieve information about virtual machines from a vCenter server or standalone ESX host. When `group_by=false` (in the INI file), host systems are also returned in addition to VMs. This script will attempt to read conf...
39.061311
109
0.575179
0eb3ecac9110d0d847b3ceed3b783be4bbbe7ac0
2,595
py
Python
selfdrive/car/mazda/carcontroller.py
kansakitw/dragonpilotamd
83295e6746e685b22e218bd0bd943df674e42a81
[ "MIT" ]
46
2021-05-20T08:54:54.000Z
2022-03-30T20:37:42.000Z
selfdrive/car/mazda/carcontroller.py
birdman6450/openpilot
2429f86bed65cca163122ac9f7a0c1d53597d463
[ "MIT" ]
2
2021-11-11T15:44:54.000Z
2022-02-21T06:39:45.000Z
selfdrive/car/mazda/carcontroller.py
birdman6450/openpilot
2429f86bed65cca163122ac9f7a0c1d53597d463
[ "MIT" ]
34
2021-05-24T09:51:08.000Z
2022-02-28T04:48:00.000Z
from selfdrive.car.mazda import mazdacan from selfdrive.car.mazda.values import CarControllerParams, Buttons from opendbc.can.packer import CANPacker from selfdrive.car import apply_std_steer_torque_limits from common.dp_common import common_controller_ctrl class CarController(): def __init__(self, dbc_name, CP, VM)...
42.540984
103
0.670906
69ac404aa7c3845476c481adf526bc47cc8ffd92
894
py
Python
mollie/api/resources/customer_mandates.py
bryanwills/mollie-api-python
8122569ae83f07ad07893f3dd56e9a60bcccae05
[ "BSD-2-Clause" ]
95
2015-02-22T23:32:13.000Z
2022-02-17T21:28:19.000Z
mollie/api/resources/customer_mandates.py
bryanwills/mollie-api-python
8122569ae83f07ad07893f3dd56e9a60bcccae05
[ "BSD-2-Clause" ]
108
2015-02-26T08:51:35.000Z
2021-10-10T12:57:55.000Z
mollie/api/resources/customer_mandates.py
bryanwills/mollie-api-python
8122569ae83f07ad07893f3dd56e9a60bcccae05
[ "BSD-2-Clause" ]
70
2015-01-17T17:47:56.000Z
2022-01-18T17:31:12.000Z
from ..error import IdentifierError from ..objects.mandate import Mandate from .base import ResourceBase class CustomerMandates(ResourceBase): RESOURCE_ID_PREFIX = "mdt_" customer_id = None def get_resource_object(self, result): return Mandate(result, self.client) def get(self, mandate_id, *...
30.827586
114
0.684564
481c9d386c992a703954633977d4da44ff3c4b98
4,449
py
Python
docs/conf.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
2
2021-01-22T07:34:35.000Z
2021-01-23T04:36:41.000Z
docs/conf.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
null
null
null
docs/conf.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
null
null
null
import os import re import sys from os import path sys.path.insert(0, path.abspath('..')) project = 'Jina' slug = re.sub(r'\W+', '-', project.lower()) author = 'Jina AI Dev Team' copyright = 'Jina AI Limited. All rights reserved.' source_suffix = ['.rst', '.md'] master_doc = 'index' language = 'en' try: if 'JINA...
27.80625
93
0.636098
ca52622c3b271f662363a294133a72d61a91f958
4,117
py
Python
nova/api/openstack/compute/flavor_access.py
KevinWang2015/nova
e9ce5c4c95edc869ab2cf82ca0733a2821c384ad
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/flavor_access.py
KevinWang2015/nova
e9ce5c4c95edc869ab2cf82ca0733a2821c384ad
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/flavor_access.py
KevinWang2015/nova
e9ce5c4c95edc869ab2cf82ca0733a2821c384ad
[ "Apache-2.0" ]
1
2021-05-12T07:52:44.000Z
2021-05-12T07:52:44.000Z
# Copyright (c) 2011 OpenStack Foundation # 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 ...
37.427273
79
0.693466
a1faddf5759b804d4227af93e4e06434a8ed704a
2,967
py
Python
app.py
Simplon-IA-Bdx-1/realestate-alexis-bastien-clement-vincent
5382c9ae1e305d4dba5892c6f686e7c1b68d433d
[ "MIT" ]
null
null
null
app.py
Simplon-IA-Bdx-1/realestate-alexis-bastien-clement-vincent
5382c9ae1e305d4dba5892c6f686e7c1b68d433d
[ "MIT" ]
null
null
null
app.py
Simplon-IA-Bdx-1/realestate-alexis-bastien-clement-vincent
5382c9ae1e305d4dba5892c6f686e7c1b68d433d
[ "MIT" ]
null
null
null
import numpy as np from flask import Flask, request, jsonify, render_template, make_response from flask_restful import reqparse, abort, Api, Resource from sklearn.preprocessing import MinMaxScaler,MaxAbsScaler,StandardScaler,RobustScaler,Normalizer import pickle import pandas as pd app = Flask(__name__) model = pickle...
30.90625
98
0.68453
cd91f3b530875126dd3b83ac2ab988290a74ac7d
35,597
py
Python
dnnbrain/dnn/core.py
shuledelizi/dnnbrain
3e584e6ffd5d9b1c01e685cccaa6a13a77b8a965
[ "MIT" ]
null
null
null
dnnbrain/dnn/core.py
shuledelizi/dnnbrain
3e584e6ffd5d9b1c01e685cccaa6a13a77b8a965
[ "MIT" ]
null
null
null
dnnbrain/dnn/core.py
shuledelizi/dnnbrain
3e584e6ffd5d9b1c01e685cccaa6a13a77b8a965
[ "MIT" ]
null
null
null
import torch import numpy as np from copy import deepcopy from dnnbrain.io import file as iofile from dnnbrain.io.io import DNNLoader from dnnbrain.utils.util import array_fe from nipy.modalities.fmri.hemodynamic_models import spm_hrf from scipy.signal import convolve, periodogram from sklearn.decomposition import PCA...
31.252853
117
0.559429
b5bf59eff1b2885c098450af0e13fd8569db1340
760,592
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200801/outputs.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20200801/outputs.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20200801/outputs.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.610691
395
0.649562
0c252d377b00bfd81c0c192fc8d90c49379c0d45
569
py
Python
api/schemas.py
personeusw18/Order-Assistant
2bda9a4fcdd84e5e2ca8658f82a3e695e6cb91ad
[ "MIT" ]
4
2021-09-17T21:30:32.000Z
2021-12-09T01:44:51.000Z
api/schemas.py
personeusw18/Order-Assistant
2bda9a4fcdd84e5e2ca8658f82a3e695e6cb91ad
[ "MIT" ]
19
2021-09-21T21:16:47.000Z
2021-12-05T20:52:52.000Z
api/schemas.py
personeusw18/Order-Assistant
2bda9a4fcdd84e5e2ca8658f82a3e695e6cb91ad
[ "MIT" ]
null
null
null
from typing import List from pydantic import BaseModel class MenuItemBase(BaseModel): id: int price: float name: str desc: str img: str class Config: orm_mode = True class RestaurantBase(BaseModel): id: int name: str img: str class Config: orm_mode = True cla...
16.735294
39
0.657293
c9c8265ce60c08508b6ae6e6e0ff3f52418b2715
19,517
py
Python
bin/cnn_20190416/train.py
qianyingw/rob
4881c26a095e51036989ffd1bc76a97adf44e7c6
[ "MIT" ]
null
null
null
bin/cnn_20190416/train.py
qianyingw/rob
4881c26a095e51036989ffd1bc76a97adf44e7c6
[ "MIT" ]
null
null
null
bin/cnn_20190416/train.py
qianyingw/rob
4881c26a095e51036989ffd1bc76a97adf44e7c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 12 15:32:05 2019 ref: github/GokuMohandas/practicalAI: notebooks/12_Embeddings.ipynb @author: qwang """ import os os.chdir('/home/qwang/rob') import copy import json import time from argparse import Namespace import numpy as np import matplotlib.pyplot as plt from gens...
39.112224
174
0.588205
aac2488578f34babd0e2275574420a4bd20c3289
5,574
py
Python
Archive/Current_Software_Modules/ImageCorrection/image_correction.py
Jual6332/OTheRS_IP
420cfde562249941f4a85f936d549d11edadc36f
[ "MIT" ]
null
null
null
Archive/Current_Software_Modules/ImageCorrection/image_correction.py
Jual6332/OTheRS_IP
420cfde562249941f4a85f936d549d11edadc36f
[ "MIT" ]
17
2018-11-13T04:13:26.000Z
2019-04-29T21:00:26.000Z
Archive/Current_Software_Modules/ImageCorrection/image_correction.py
Jual6332/OTheRS_IP
420cfde562249941f4a85f936d549d11edadc36f
[ "MIT" ]
1
2018-10-29T18:14:45.000Z
2018-10-29T18:14:45.000Z
#!/usr/bin/python3 import math import cv2 import time import imutils import argparse import numpy as np import matplotlib.pyplot as plt from matplotlib import pyplot as pylepton # Adaptive Thresholding def adaptive_thresholding(img): ad = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,1...
31.314607
93
0.67456
d1692c84e820fa2c3b090facc9cacfa62d3a3f70
11,386
py
Python
neutron/tests/unit/db/test_ovn_revision_numbers_db.py
tankertyp/openstack-learning
d729672663f170d0138ecf23b3c23df225c1b1b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/db/test_ovn_revision_numbers_db.py
tankertyp/openstack-learning
d729672663f170d0138ecf23b3c23df225c1b1b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/db/test_ovn_revision_numbers_db.py
tankertyp/openstack-learning
d729672663f170d0138ecf23b3c23df225c1b1b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Red Hat, Inc. # 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...
45.91129
79
0.675391
84b6c6040d32eb915b4aa50f4810c30cad522c01
3,613
py
Python
gfsa/model/model_util_test.py
muell-monster/google-research
04d2024f4723bc4be3d639a668c19fb1f6a31478
[ "Apache-2.0" ]
3
2021-01-18T04:46:49.000Z
2021-03-05T09:21:40.000Z
gfsa/model/model_util_test.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
7
2021-11-10T19:44:38.000Z
2022-02-10T06:48:39.000Z
gfsa/model/model_util_test.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
35.07767
80
0.642956
b6b3ccdc26ea3a1b9792944c94a2e02431344221
2,667
py
Python
mysite/settings.py
willem-vanheemstrasystems/django-backend
1c9dcf662be7fab46e5619b457e0d0ddf2f7a38d
[ "MIT" ]
null
null
null
mysite/settings.py
willem-vanheemstrasystems/django-backend
1c9dcf662be7fab46e5619b457e0d0ddf2f7a38d
[ "MIT" ]
null
null
null
mysite/settings.py
willem-vanheemstrasystems/django-backend
1c9dcf662be7fab46e5619b457e0d0ddf2f7a38d
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
25.4
71
0.699663
0a3608d7d220686675a4ec4464d6eda717b40ce7
2,057
py
Python
app.py
rajasgandhi/urlemailscraper
1bd5f6b917d6d005d884dc14f076ba68861fb056
[ "CC-BY-3.0" ]
null
null
null
app.py
rajasgandhi/urlemailscraper
1bd5f6b917d6d005d884dc14f076ba68861fb056
[ "CC-BY-3.0" ]
null
null
null
app.py
rajasgandhi/urlemailscraper
1bd5f6b917d6d005d884dc14f076ba68861fb056
[ "CC-BY-3.0" ]
null
null
null
import requests import os from flask import Flask, render_template, request, jsonify import re from requests_html import HTMLSession app = Flask(__name__) session = HTMLSession() #session.browser @app.route("/") @app.route("/index") def main(): return render_template('index.html') @app.route("/output", methods=...
29.811594
129
0.575596
23f27144a0e2ebf58a87905b2be9aed12f5f7b1a
2,262
py
Python
djangocms_snippet/models.py
Bernardvdv/djangocms-snippet
883f9f895c6036f243ae90ce24a6e30ec82ad57f
[ "BSD-3-Clause" ]
27
2015-03-29T01:06:26.000Z
2020-02-04T02:02:55.000Z
djangocms_snippet/models.py
Bernardvdv/djangocms-snippet
883f9f895c6036f243ae90ce24a6e30ec82ad57f
[ "BSD-3-Clause" ]
65
2015-01-02T05:15:17.000Z
2020-09-20T17:56:04.000Z
djangocms_snippet/models.py
adam-murray/djangocms-snippet
a58974888ea4e2569a22feafe03b051f28bc22db
[ "BSD-3-Clause" ]
28
2015-01-10T06:34:43.000Z
2020-09-20T17:35:03.000Z
from django.conf import settings from django.db import models from django.utils.translation import gettext_lazy as _ from cms.models import CMSPlugin # Search is enabled by default to keep backwards compatibility. SEARCH_ENABLED = getattr(settings, 'DJANGOCMS_SNIPPET_SEARCH', False) # Stores the actual data class ...
29.376623
77
0.629531
f494a531ee6a8a5578c6b531a8133c21d152caa5
81,444
py
Python
sleap/gui/commands.py
oeway/sleap
1eb06f81eb8f0bc1beedd1c3dd10902f8ff9e724
[ "BSD-3-Clause-Clear" ]
1
2021-07-20T07:17:27.000Z
2021-07-20T07:17:27.000Z
sleap/gui/commands.py
oeway/sleap
1eb06f81eb8f0bc1beedd1c3dd10902f8ff9e724
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/commands.py
oeway/sleap
1eb06f81eb8f0bc1beedd1c3dd10902f8ff9e724
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Module for gui command context and commands objects. Each open project (i.e., `MainWindow`) will have its own `CommandContext`. The context enables commands to access and modify the `GuiState` and `Labels`, as well as potentially maintaining a command history (so we can add support for undo!). See `sleap.gui.app` ...
32.986634
105
0.627413
8967ae2f4e0a2949e449a35bd8f372f916c880fe
554
py
Python
permutation.py
Shophorn/practice-javafx-noise
041fa935a677eeaac1fa3f37134b761923a694e6
[ "MIT" ]
null
null
null
permutation.py
Shophorn/practice-javafx-noise
041fa935a677eeaac1fa3f37134b761923a694e6
[ "MIT" ]
null
null
null
permutation.py
Shophorn/practice-javafx-noise
041fa935a677eeaac1fa3f37134b761923a694e6
[ "MIT" ]
null
null
null
# This prints randomized permutation table import random numbers = [] length = 256 count = 0 while count < length: numbers.append (count) count += 1 count = 0 while count < length: r = random.randint (count, length - 1) temp = numbers [r] numbers [r] = numbers[count] numbers [count] = temp ...
17.3125
57
0.597473
4a5dab9c158917b320f0038a94f0ce1278cb219f
1,684
py
Python
app/todos/forms.py
kmnkit/web-todo
e06e42f5b68b2b9473fad820857634a9c5c0dadf
[ "MIT" ]
null
null
null
app/todos/forms.py
kmnkit/web-todo
e06e42f5b68b2b9473fad820857634a9c5c0dadf
[ "MIT" ]
null
null
null
app/todos/forms.py
kmnkit/web-todo
e06e42f5b68b2b9473fad820857634a9c5c0dadf
[ "MIT" ]
null
null
null
from django.forms import ModelForm, ValidationError from django.contrib.auth import get_user_model from .models import ToDo from teams.models import TeamMember User = get_user_model() class TodoCreateForm(ModelForm): class Meta: model = ToDo exclude = ["is_finished", "team"] def __init__(sel...
33.019608
68
0.648456
e951f0595267d0b8fda0cffa9495e1ceae4e94da
2,392
py
Python
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/SwitchDBInstanceHARequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/SwitchDBInstanceHARequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/SwitchDBInstanceHARequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
1
2021-01-26T05:01:42.000Z
2021-01-26T05:01:42.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.222222
77
0.765886
9c3381457582261a53a01d95f45f786d17f99704
1,267
py
Python
03_pyPRMS_prototype/XML work.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
03_pyPRMS_prototype/XML work.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
03_pyPRMS_prototype/XML work.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit] # language: python # name: conda-env-bandit-p...
23.036364
83
0.67719
8be578513b0d04aaafe39debb19507fced496298
1,219
py
Python
StatisticsAnalyzer.py
SparshaSaha/OpenAI-gym-cartpole-with-NEAT-and-ReinforcementLearning-Performance-Comparison
8b3bcf837b1da3301f8b0a420cd750374743008d
[ "MIT" ]
2
2019-06-02T13:26:48.000Z
2019-11-27T11:59:54.000Z
StatisticsAnalyzer.py
SparshaSaha/OpenAI-gym-cartpole-with-NEAT-and-ReinforcementLearning-Performance-Comparison
8b3bcf837b1da3301f8b0a420cd750374743008d
[ "MIT" ]
null
null
null
StatisticsAnalyzer.py
SparshaSaha/OpenAI-gym-cartpole-with-NEAT-and-ReinforcementLearning-Performance-Comparison
8b3bcf837b1da3301f8b0a420cd750374743008d
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plot import pickle class StatsAnalyzer(object): def __init__(self, pickleFiles): self.filenames = pickleFiles def plotData(self, dataPts, label): xCoords = dataPts[0] yCoords = dataPts[1] plot.plot(xCoords, yCoords, label = label) ...
26.5
56
0.515997
25ed2d92b84d4aaaca7256ae2a66684161408653
7,465
py
Python
mETL/core/runner.py
sebmartin/mETL
4842f55120ec6c362b91855bb4c25c2d604679a2
[ "Apache-2.0" ]
null
null
null
mETL/core/runner.py
sebmartin/mETL
4842f55120ec6c362b91855bb4c25c2d604679a2
[ "Apache-2.0" ]
1
2021-03-31T19:26:01.000Z
2021-03-31T19:26:01.000Z
mETL/core/runner.py
sebmartin/mETL
4842f55120ec6c362b91855bb4c25c2d604679a2
[ "Apache-2.0" ]
null
null
null
import argparse import os import pathlib import re import subprocess import sys import tempfile from collections import OrderedDict from pprint import pprint import yaml TRANSFORMS_REPO_PATH = os.path.abspath(os.path.dirname(__file__)+'/../transforms') REQUIRED_TRANSFORM_FIELDS = {'name', 'run-command'} def load_yam...
37.512563
157
0.621835
b18f2c128bfcd61d4dc3a9e98fb7b2725419adab
3,085
py
Python
abletondrumrack/adg.py
danikavu/Ableton-Drum-Rack
a607d25137a31d83f5ef9bfbace5e717e7cf5c10
[ "MIT" ]
10
2021-11-02T16:31:17.000Z
2022-03-23T18:53:44.000Z
abletondrumrack/adg.py
danikavu/Ableton-Drum-Rack
a607d25137a31d83f5ef9bfbace5e717e7cf5c10
[ "MIT" ]
null
null
null
abletondrumrack/adg.py
danikavu/Ableton-Drum-Rack
a607d25137a31d83f5ef9bfbace5e717e7cf5c10
[ "MIT" ]
1
2022-03-21T13:00:34.000Z
2022-03-21T13:00:34.000Z
""" Create the '.adg' preset file. """ import os import gzip from xml.etree import ElementTree as ET def write_adg(blank, fname, path): """ Write the adg file. """ blank.write(fname + '.xml') with open(fname + '.xml') as new: header = '<?xml version="1.0" encoding="UTF-8"?>\n' ...
40.064935
106
0.583468