hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
888f394f188ea661c1605445db9b8d21a4a1470e
1,263
py
Python
tests/pterradactyl/util/test_common.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
2
2022-03-31T09:02:49.000Z
2022-03-31T18:56:52.000Z
tests/pterradactyl/util/test_common.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
4
2021-12-20T18:31:47.000Z
2022-03-14T16:31:49.000Z
tests/pterradactyl/util/test_common.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
null
null
null
import unittest from pterradactyl.util import as_list, memoize, merge_dict, lookup
28.704545
66
0.588282
8890ba16069cecd8d4ab8ea601bde0d4759bc1b2
15,223
py
Python
code/functions/et_import.py
behinger/etcomp
f30389da49c3416c7a723d44951d197d6e89d40e
[ "MIT" ]
20
2018-08-08T07:08:46.000Z
2022-03-07T14:49:06.000Z
code/functions/et_import.py
Tsehao/etcomp
69485f751649090f3df589e40fb515e874be207b
[ "MIT" ]
32
2017-12-05T14:05:48.000Z
2020-10-20T10:29:43.000Z
code/functions/et_import.py
Tsehao/etcomp
69485f751649090f3df589e40fb515e874be207b
[ "MIT" ]
7
2018-12-09T22:53:10.000Z
2021-11-10T09:13:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import pandas as pd import os import logging from functions.et_helper import findFile,gaze_to_pandas import functions.et_parse as parse import functions.et_make_df as make_df import functions.et_helper as helper import imp # for edfread reload im...
42.522346
200
0.670564
889138e8c38a61134d0f1c1dd8b79dfd0eb55e28
768
py
Python
EXPERIMENT_5/loader.py
PRamoneda/RL_PianoFingering
d9a42c3cb0777c54c1b3e2355128479ef97e8e63
[ "MIT" ]
4
2021-09-24T13:44:22.000Z
2022-03-23T14:03:51.000Z
EXPERIMENT_5/loader.py
PRamoneda/RL_PianoFingering
d9a42c3cb0777c54c1b3e2355128479ef97e8e63
[ "MIT" ]
null
null
null
EXPERIMENT_5/loader.py
PRamoneda/RL_PianoFingering
d9a42c3cb0777c54c1b3e2355128479ef97e8e63
[ "MIT" ]
2
2022-02-14T10:01:10.000Z
2022-03-31T15:40:06.000Z
import music21 KEY_TO_SEMITONE = {'c': 0, 'c#': 1, 'db': 1, 'd': 2, 'd#': 3, 'eb': 3, 'e': 4, 'f': 5, 'f#': 6, 'gb': 6, 'g': 7, 'g#': 8, 'ab': 8, 'a': 9, 'a#': 10, 'bb': 10, 'b': 11, 'x': None} translate5 = { 46: 0, 48: 1, 50: 2, 51: 3, 53: 4, 55: 5, ...
21.333333
108
0.492188
889140ee18ea1e06b9b18606e947a9585cb410f1
145
py
Python
DSA/Python/src/dsa/lib/math/ds/tests/fixture.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
DSA/Python/src/dsa/lib/math/ds/tests/fixture.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
1
2020-10-23T04:06:56.000Z
2020-10-23T04:06:56.000Z
DSA/Python/src/dsa/lib/math/ds/tests/fixture.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
from dsa.lib.math.tests.fixture import MathTestCase
14.5
51
0.77931
8892e5ee057de88b320831e0b236a98d613b4df9
763
py
Python
pacu/data/roles.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
1
2022-03-09T14:51:54.000Z
2022-03-09T14:51:54.000Z
pacu/data/roles.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
null
null
null
pacu/data/roles.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
null
null
null
# import typing # # import boto3 # import typer # # import pacu.data as p # # # if typing.TYPE_CHECKING: # from mypy_boto3_iam import type_defs as t # from mypy_boto3_iam.client import IAMClient # from mypy_boto3_iam.paginator import ListRolesPaginator # # # def fetch(profile_name: typing.Optional[str] = ty...
29.346154
87
0.709043
88940ecc81bb7244f9aadc5c0b28b58ae24e3599
1,698
py
Python
v2ex_daily.py
ZHLHZHU/v2ex
b8458b6834eb22fe337146251f2f1bcd2ecb1a92
[ "MIT" ]
null
null
null
v2ex_daily.py
ZHLHZHU/v2ex
b8458b6834eb22fe337146251f2f1bcd2ecb1a92
[ "MIT" ]
null
null
null
v2ex_daily.py
ZHLHZHU/v2ex
b8458b6834eb22fe337146251f2f1bcd2ecb1a92
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import http.cookiejar import urllib.request # your v2ex cookie value for key [auth] after login # refer README.md if cannot find cookie [auth] V2EX_COOKIE = '' V2EX_DOMAIN = r'v2ex.com' V2EX_URL_START = r'https://' + V2EX_DOMAIN V2EX_MISSION = V2EX_U...
24.257143
92
0.636631
8894291bf420c1eeb84dea70fc3a6ddba70429ed
2,309
py
Python
read_env.py
sloria/read_env
90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605
[ "MIT" ]
null
null
null
read_env.py
sloria/read_env
90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605
[ "MIT" ]
1
2017-07-18T20:49:43.000Z
2017-07-20T15:14:10.000Z
read_env.py
sloria/read_env
90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605
[ "MIT" ]
1
2018-04-11T11:55:55.000Z
2018-04-11T11:55:55.000Z
# -*- coding: utf-8 -*- import re import shlex import os import inspect __version__ = '1.1.0' try: FileNotFoundError except NameError: # Python 2 FileNotFoundError = IOError ENV = '.env' def read_env(path=None, environ=None, recurse=True): """Reads a .env file into ``environ`` (which defaults to ``os.e...
30.381579
85
0.603291
889bb7e2d51608191ee475ae210800ea251a72c4
2,535
py
Python
trinity/contextgroup.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
14
2020-08-24T18:23:31.000Z
2021-11-04T14:11:04.000Z
trinity/contextgroup.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
19
2020-08-25T15:57:05.000Z
2021-07-07T00:49:45.000Z
trinity/contextgroup.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
7
2020-08-24T22:53:02.000Z
2022-03-28T18:51:48.000Z
import asyncio import sys from types import TracebackType from typing import Any, AsyncContextManager, List, Optional, Sequence, Tuple, Type from trio import MultiError from p2p.asyncio_utils import create_task
40.887097
100
0.613018
889d4cf4c9e065bcd8eb21c034baa0e27279103e
895
py
Python
setup.py
sophilabs/trybox-django
87776a75e995a903d08b06dc47ec54a7ce796400
[ "MIT" ]
null
null
null
setup.py
sophilabs/trybox-django
87776a75e995a903d08b06dc47ec54a7ce796400
[ "MIT" ]
null
null
null
setup.py
sophilabs/trybox-django
87776a75e995a903d08b06dc47ec54a7ce796400
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages VERSION = '0.2' setup( name='trybox-django', version=VERSION, description='TryBox:Django', author='Sophilabs', author_email='contact@sophilabs.com', url='https://github.com/sophilabs/trybox-django', download_url='http://github.com/sophilabs/trybo...
34.423077
122
0.660335
889e2666b623f8c9aac578a42112779d0960a46c
1,152
py
Python
bflib/tables/gemsandjewelry/gemtype.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/tables/gemsandjewelry/gemtype.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/tables/gemsandjewelry/gemtype.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.items import gems
32
74
0.623264
889e61707ed575e870d03501921a624e597540da
158
py
Python
RecPatrones/__init__.py
riemannruiz/MediaMovil
282cf498551671f97436bff563c8b1a5c2dbf4ad
[ "MIT" ]
null
null
null
RecPatrones/__init__.py
riemannruiz/MediaMovil
282cf498551671f97436bff563c8b1a5c2dbf4ad
[ "MIT" ]
1
2019-03-21T21:16:00.000Z
2019-03-21T21:16:00.000Z
RecPatrones/__init__.py
riemannruiz/MediaMovil
282cf498551671f97436bff563c8b1a5c2dbf4ad
[ "MIT" ]
3
2019-03-20T22:43:36.000Z
2019-03-27T19:16:38.000Z
from Simulacion import Optimizacion from Simulacion import Graficos from Simulacion import Genetico from Simulacion import Model_close from mylib import mylib
31.6
35
0.879747
889eb3167b3872b5371c8a539d4347c8d68744c1
760
py
Python
SBTK_League_Helper/src/tools/exceptions.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/exceptions.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/exceptions.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
# This need to be sorted out in a smarter way
24.516129
65
0.696053
88a1741eae3c2334f95c70dcecbe762feec732c9
1,964
py
Python
tools/python/smessage_encryption.py
radetsky/themis
18ea2e39a7258e23ca9a5bb642691a9431c63d0b
[ "Apache-2.0" ]
1,561
2015-05-20T05:19:29.000Z
2022-03-31T17:32:55.000Z
tools/python/smessage_encryption.py
radetsky/themis
18ea2e39a7258e23ca9a5bb642691a9431c63d0b
[ "Apache-2.0" ]
536
2015-05-20T13:57:08.000Z
2022-03-15T18:02:59.000Z
tools/python/smessage_encryption.py
radetsky/themis
18ea2e39a7258e23ca9a5bb642691a9431c63d0b
[ "Apache-2.0" ]
141
2015-05-20T13:22:45.000Z
2022-03-29T01:29:40.000Z
# # Copyright (c) 2017 Cossack Labs Limited # # 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 i...
33.288136
109
0.726578
88a50848a3ac961cc89962bc6f936cbbfc7cd63c
819
py
Python
tests/apps/test_rpc.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
tests/apps/test_rpc.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
tests/apps/test_rpc.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
'''Tests the rpc middleware and utilities. It uses the calculator example.''' import unittest from pulsar.apps import rpc from pulsar.apps.http import HttpWsgiClient
30.333333
79
0.660562
88a536261708445fb27628f3196b4050db295eff
22,042
py
Python
BAN_main.py
EMBEDDIA/BAN
5f9cbb383c69f03bf8aa55fc1149f3fb78e1af11
[ "MIT" ]
2
2021-07-01T16:24:45.000Z
2021-12-08T06:59:08.000Z
BAN_main.py
EMBEDDIA/BAN
5f9cbb383c69f03bf8aa55fc1149f3fb78e1af11
[ "MIT" ]
1
2021-12-08T07:01:46.000Z
2021-12-08T07:01:46.000Z
BAN_main.py
KristianMiok/BAN
e8afc73c60152186b073d7dacc04e39888ec67fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """EN3-BT MCD Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1cnvSgNDexJ0cqrTWGygI_smZ0y8EIWZn """ import torch import numpy as np import tqdm import copy from torch.nn import functional as F from torch.nn.modules.module import...
35.957586
185
0.585881
88a59898c3adf079bc749d806b0bcd5596a4b2d8
16,974
py
Python
src/main/python/ui/jriver.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
16
2019-04-12T00:04:56.000Z
2022-03-15T14:26:56.000Z
src/main/python/ui/jriver.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
400
2018-08-27T10:04:00.000Z
2022-03-15T21:32:33.000Z
src/main/python/ui/jriver.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
6
2018-09-19T21:02:27.000Z
2020-10-18T04:11:01.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'jriver.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui...
62.175824
115
0.747143
88a8aa3a3b09f7b8f22914184124db2a1414e747
320
py
Python
src/sensors/__init__.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
2
2021-03-22T16:12:56.000Z
2021-03-22T16:19:09.000Z
src/sensors/__init__.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
46
2021-04-01T10:25:25.000Z
2021-12-26T23:43:46.000Z
src/sensors/__init__.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
4
2021-04-01T10:22:46.000Z
2021-12-26T21:51:10.000Z
from src.sensors.door_block_sensor import DoorBlockSensor from src.sensors.door_state_sensor import DoorStateSensor from src.sensors.light_sensor import LightSensor from src.sensors.movement_sensor import MovementSensor from src.sensors.smoke_sensor import SmokeSensor from src.sensors.weight_sensor import WeightSensor
45.714286
57
0.8875
88a9377893db4fc2f5048d2336cea72ff934579e
888
py
Python
code/animation/sine-cosine.py
geo7/scientific-visualization-book
71f6bac4db7ee2f26e88052fe7faa800303d8b00
[ "BSD-2-Clause" ]
2
2021-11-17T15:10:09.000Z
2021-12-24T13:31:10.000Z
code/animation/sine-cosine.py
WuShichao/scientific-visualization-book
389766215aa6b234ed1cf560a3768437d41d1d37
[ "BSD-2-Clause" ]
1
2021-12-12T11:37:48.000Z
2021-12-12T11:39:00.000Z
code/animation/sine-cosine.py
WuShichao/scientific-visualization-book
389766215aa6b234ed1cf560a3768437d41d1d37
[ "BSD-2-Clause" ]
2
2021-12-30T12:20:07.000Z
2022-02-24T06:36:41.000Z
# ---------------------------------------------------------------------------- # Title: Scientific Visualisation - Python & Matplotlib # Author: Nicolas P. Rougier # License: BSD # ---------------------------------------------------------------------------- import numpy as np import matplotlib.pyplot as plt import m...
31.714286
78
0.566441
88ab2de7a369fd311ec763905e71a9bc7d4f2e49
2,773
py
Python
main.py
ghostcodekc/leagueoflegends-block-chat
0d68345964344410159d834cba81da4224196f87
[ "MIT" ]
null
null
null
main.py
ghostcodekc/leagueoflegends-block-chat
0d68345964344410159d834cba81da4224196f87
[ "MIT" ]
null
null
null
main.py
ghostcodekc/leagueoflegends-block-chat
0d68345964344410159d834cba81da4224196f87
[ "MIT" ]
null
null
null
import yaml import socket import subprocess, ctypes, os, sys from subprocess import Popen, DEVNULL def check_admin(): """ Force to start application with admin rights """ try: isAdmin = ctypes.windll.shell32.IsUserAnAdmin() except AttributeError: isAdmin = False if not isAdmin: ...
36.012987
121
0.679769
88ac260681c50b787cb8306fb30da9bc778c277f
5,623
py
Python
src/Leorio/tokenization.py
majiajue/Listed-company-news-crawl-and-text-analysis
fd3b23814039cbe8fbb2e25cbadb68238e0d998b
[ "MIT" ]
635
2018-02-25T08:45:06.000Z
2022-03-30T10:05:23.000Z
src/Leorio/tokenization.py
NongMaYiSheng/Listed-company-news-crawl-and-text-analysis
fd3b23814039cbe8fbb2e25cbadb68238e0d998b
[ "MIT" ]
5
2018-10-29T16:21:28.000Z
2022-01-03T12:59:28.000Z
src/Leorio/tokenization.py
NongMaYiSheng/Listed-company-news-crawl-and-text-analysis
fd3b23814039cbe8fbb2e25cbadb68238e0d998b
[ "MIT" ]
216
2018-02-26T09:27:15.000Z
2022-03-30T10:05:26.000Z
import __init__ from Kite.database import Database from Kite import config from Kite import utils import jieba import pkuseg import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datefmt='%a, %d %b ...
44.626984
112
0.560377
88ade7f8dfd3c3fdb9f4bfa3e09536d509c88764
2,659
py
Python
Server/app/docs/signup.py
Sporrow/Sporrow-Backend
a711f8a25c0b6fdbbeff0a980fbf39a470020e23
[ "Apache-2.0" ]
null
null
null
Server/app/docs/signup.py
Sporrow/Sporrow-Backend
a711f8a25c0b6fdbbeff0a980fbf39a470020e23
[ "Apache-2.0" ]
null
null
null
Server/app/docs/signup.py
Sporrow/Sporrow-Backend
a711f8a25c0b6fdbbeff0a980fbf39a470020e23
[ "Apache-2.0" ]
null
null
null
from app.docs import SAMPLE_OBJECT_IDS ID_DUPLICATION_CHECK_GET = { 'tags': [''], 'description': ' ().', 'parameters': [ { 'name': 'email', 'description': ' ', 'in': 'path', 'type': 'str', 'required': True } ], 'response...
22.158333
100
0.371944
88afd99ff229803940fa1debc0013f26c15e67cf
366
py
Python
workflow/config/add_path.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
workflow/config/add_path.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
workflow/config/add_path.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
import sys """ Remove """
17.428571
55
0.581967
88b0a8ec143545a862b4e668eb425512ef141839
295
py
Python
incal_lib/exportres.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
incal_lib/exportres.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
incal_lib/exportres.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from collections import OrderedDict, Counter import itertools from typing import * Group = tuple[str, list[int]] Groups = list[Group]
22.692308
71
0.762712
88b1ab4a72c456e8f8edbf2cf4dc0a0cd36b09d4
517
py
Python
my_lambdata/my_mod.py
tatianaportsova/Lambdata_12
4cab1dc4f65d479b8f2919155c4bb6b58243d8db
[ "MIT" ]
null
null
null
my_lambdata/my_mod.py
tatianaportsova/Lambdata_12
4cab1dc4f65d479b8f2919155c4bb6b58243d8db
[ "MIT" ]
null
null
null
my_lambdata/my_mod.py
tatianaportsova/Lambdata_12
4cab1dc4f65d479b8f2919155c4bb6b58243d8db
[ "MIT" ]
null
null
null
# my_lambdata/my_mod.py def enlarge(n): """ Param n is a number Function will enlarge the number """ return n * 100 # this code breakes our ability to omport enlarge from other files # print("HELLO") # y = int(input("Please choose a number")) # print(y, enlarge(y)) if __name__ == "__main__": ...
21.541667
67
0.651838
88b1b8b8cd2dc825c7e83bc1234dcf21c35cee9e
2,406
py
Python
allhub/users/users.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-07T15:46:33.000Z
2019-11-26T04:30:39.000Z
allhub/users/users.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
1
2020-03-09T14:44:04.000Z
2020-03-09T14:44:04.000Z
allhub/users/users.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-08T05:22:37.000Z
2019-10-08T06:20:47.000Z
from allhub.response import Response from enum import Enum
30.846154
86
0.558188
88b1bbc1e2f422bb622061ec6f6d2f4ceb966b0b
22,360
bzl
Python
third_party/boringssl-with-bazel/BUILD.generated_tests.bzl
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
91
2018-11-24T05:33:58.000Z
2022-03-16T05:58:05.000Z
third_party/boringssl-with-bazel/BUILD.generated_tests.bzl
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
11
2019-06-02T23:50:17.000Z
2022-02-04T23:58:56.000Z
third_party/boringssl-with-bazel/BUILD.generated_tests.bzl
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
18
2018-11-24T10:35:29.000Z
2021-04-22T07:22:10.000Z
# This file is created by generate_build_files.py. Do not edit manually. test_support_sources = [ "src/crypto/aes/internal.h", "src/crypto/asn1/asn1_locl.h", "src/crypto/bio/internal.h", "src/crypto/bn/internal.h", "src/crypto/bn/rsaz_exp.h", "src/crypto/bytestring/internal.h", "src/crypto/...
29.228758
91
0.590474
88b2a19329a06c11a7f27402a51fc753d23d3562
1,291
py
Python
DB_resource/code/ci.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
null
null
null
DB_resource/code/ci.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
1
2021-11-29T03:38:21.000Z
2021-11-29T03:38:21.000Z
DB_resource/code/ci.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
13
2021-11-06T03:17:45.000Z
2021-12-02T15:12:54.000Z
# -*- coding: utf-8 -*- """ Author:by on 2021/11/2 13:02 FileName:ci.py in shiyizhonghua_resource Tools:PyCharm python3.8.4 """ from util import get_time_str, get_json, get_file_path, save_json, \ save_split_json if __name__ == '__main__': dir_name = r'./../data/ci' authors = {} ci_jsons = [] p...
26.346939
68
0.473277
88b2a9e556e312a49635b929210b47f14c9cd821
2,307
py
Python
tools/pfif-tools/app/settings.py
priyanshu-kumar02/personfinder
d5390b60709cd0ccaaade9a3b6224a60cd523ed9
[ "Apache-2.0" ]
561
2015-02-16T07:59:42.000Z
2022-03-30T17:31:21.000Z
tools/pfif-tools/app/settings.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
591
2015-01-30T05:09:30.000Z
2022-02-26T09:31:25.000Z
tools/pfif-tools/app/settings.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
258
2015-01-25T18:35:12.000Z
2021-12-25T01:44:14.000Z
# Copyright 2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
26.825581
80
0.706545
88b4ec64c6302ef8adda35ec81fbd48bb0e0a469
2,379
py
Python
tests/test_types.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
190
2017-05-25T11:57:15.000Z
2022-03-17T01:44:53.000Z
tests/test_types.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
42
2017-06-11T14:05:11.000Z
2021-12-14T21:12:07.000Z
tests/test_types.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
18
2018-01-05T08:47:30.000Z
2022-01-28T06:24:05.000Z
# coding=utf-8 from related.types import TypedSequence, TypedMapping, TypedSet, ImmutableDict from attr.exceptions import FrozenInstanceError from related.converters import str_if_not_none from collections import OrderedDict import pytest
21.432432
78
0.628415
88b820c740bb5a71614b2fa5da303eb9d7016011
1,613
py
Python
tornado-lab/main8.py
zhyq0826/test-lab
b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a
[ "MIT" ]
null
null
null
tornado-lab/main8.py
zhyq0826/test-lab
b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a
[ "MIT" ]
null
null
null
tornado-lab/main8.py
zhyq0826/test-lab
b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a
[ "MIT" ]
null
null
null
import tornado.ioloop import tornado.web import tornado.gen import logging from concurrent.futures import ThreadPoolExecutor logger = logging.getLogger() logger.setLevel(logging.DEBUG) executor = ThreadPoolExecutor(max_workers=2) settings = { 'debug': True } application = tornado.web.Application([ (r'/...
22.71831
78
0.691878
31eefe99531de5ae9af50c89852e0a1767f078c7
12,523
py
Python
dpia/views/threats.py
ait-csr/dpia-tool
458f106e25b1d3bd2f07fd9df18bde880f4edc4a
[ "MIT" ]
4
2018-12-25T05:53:17.000Z
2022-02-07T10:07:06.000Z
dpia/views/threats.py
ait-csr/dpia-tool
458f106e25b1d3bd2f07fd9df18bde880f4edc4a
[ "MIT" ]
9
2020-02-12T00:57:33.000Z
2022-03-11T23:24:13.000Z
dpia/views/threats.py
CSR-AIT/dpia-tool
458f106e25b1d3bd2f07fd9df18bde880f4edc4a
[ "MIT" ]
null
null
null
from dpia.modules import * # @primary_assets_required # @supporting_assets_required # supporting-asset add # @supporting_assets_required # @threats_required # @supporting_assets_required # @threats_required # @threat_assessment_required # @risk_assessment_required
45.046763
231
0.649844
31ef1dd8e273d8cef398fef10de951765faeb7fd
10,737
py
Python
ROS/Thymio/controller.py
gyani91/Robotics
124b9df7ae82e8c9b9ad54c74292585e81c7a3bb
[ "MIT" ]
null
null
null
ROS/Thymio/controller.py
gyani91/Robotics
124b9df7ae82e8c9b9ad54c74292585e81c7a3bb
[ "MIT" ]
null
null
null
ROS/Thymio/controller.py
gyani91/Robotics
124b9df7ae82e8c9b9ad54c74292585e81c7a3bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import sys import numpy as np from geometry_msgs.msg import Pose, Twist from nav_msgs.msg import Odometry from sensor_msgs.msg import Range from math import cos, sin, asin, tan, atan2 # msgs and srv for working with the set_model_service from gazebo_msgs.msg import ModelState from ga...
37.28125
131
0.644593
31ef8505dceb7b8308004964199bac366c51558c
54
py
Python
src/pkgcore/merge/__init__.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/merge/__init__.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/merge/__init__.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
""" package related livefs modification subsystem """
13.5
45
0.759259
31efc2692f61977bbe23784db9dd5034a2c6c959
1,153
py
Python
Week 2/id_165/LeetCode_105_165.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 2/id_165/LeetCode_105_165.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 2/id_165/LeetCode_105_165.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
null
null
null
# # # : # # # # # preorder =[3,9,20,15,7] # inorder = [9,3,15,20,7] # # # # 3 # / \ # 9 20 # / \ # 15 7 # Related Topics # leetcode submit region begin(Prohibit modification and deletion) # Definition for a binary tree node. # leetcode submit region end(Prohibit modification and deletion)...
19.542373
90
0.608846
31f3b0c501535082c9dc4e17a5fec3613081ac58
1,644
py
Python
GFG/cloud.py
Navya-tec/100daysofDSA
fa3338122099afdcf01b0f1725d7c5613b53bed8
[ "MIT" ]
13
2021-02-27T10:27:22.000Z
2021-10-05T13:56:28.000Z
GFG/cloud.py
Navya-tec/100daysofDSA
fa3338122099afdcf01b0f1725d7c5613b53bed8
[ "MIT" ]
15
2021-03-06T14:23:49.000Z
2022-01-29T07:10:21.000Z
GFG/cloud.py
Navya-tec/100daysofDSA
fa3338122099afdcf01b0f1725d7c5613b53bed8
[ "MIT" ]
24
2021-03-04T06:15:12.000Z
2021-11-14T22:15:13.000Z
# A child is playing a cloud hopping game. In this game, there are sequentially numbered clouds that can be thunderheads or cumulus clouds. The character must jump from cloud to cloud until it reaches the start again. # There is an array of clouds, e and an energy level e=100. The character starts from c[0] and uses 1...
68.5
309
0.695864
31f50a275cce9e7222985c09de6a704fd2d856df
1,575
py
Python
pyACA/PitchTimeAmdf.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
null
null
null
pyACA/PitchTimeAmdf.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
null
null
null
pyACA/PitchTimeAmdf.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ computes the lag of the amdf function Args: x: audio signal iBlockLength: block length in samples iHopLength: hop length in samples f_s: sample rate of audio data (unused) Returns: f frequency t time stamp for the frequency value """ import numpy as np impo...
23.161765
97
0.581587
31f50c4b34b2287216379f7b02c2f0676d6b7602
636
py
Python
models/edit.py
DOSYCORPS/correct-the-news
92509c1bf8ba88fec273b812142f1b3d73312840
[ "MIT" ]
1
2017-10-16T16:02:33.000Z
2017-10-16T16:02:33.000Z
models/edit.py
dosyago-corp/correct-the-news
92509c1bf8ba88fec273b812142f1b3d73312840
[ "MIT" ]
3
2017-10-19T07:58:42.000Z
2017-10-21T12:01:46.000Z
models/edit.py
DOSYCORPS/correct-the-news
92509c1bf8ba88fec273b812142f1b3d73312840
[ "MIT" ]
null
null
null
from google.appengine.ext import ndb ATTACHMENTS = [ 'beforeBegin', 'afterEnd', 'middle' ] TYPES = [ 'strike', 'insert' ]
23.555556
69
0.75
31f5361ec9609ecfe4d1234a6a87870a550e57fe
316
py
Python
depccg/lang.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
75
2017-05-01T09:32:56.000Z
2022-03-07T02:57:31.000Z
depccg/lang.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
23
2017-05-10T08:28:57.000Z
2022-02-15T05:15:25.000Z
depccg/lang.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
15
2017-05-08T13:02:33.000Z
2022-03-07T01:40:26.000Z
import logging logger = logging.getLogger(__name__) GLOBAL_LANG_NAME = 'en'
17.555556
66
0.737342
31f5cac689f164c99d0da2f1eb8dc6d483e34f4e
6,878
py
Python
trainfile/mfeam_shapenet-spix-disc.py
aabbcco/ssn-3d-pytorch
3b5a1bb807ce751b03501772ed9da48ac7f9f30b
[ "MIT" ]
null
null
null
trainfile/mfeam_shapenet-spix-disc.py
aabbcco/ssn-3d-pytorch
3b5a1bb807ce751b03501772ed9da48ac7f9f30b
[ "MIT" ]
null
null
null
trainfile/mfeam_shapenet-spix-disc.py
aabbcco/ssn-3d-pytorch
3b5a1bb807ce751b03501772ed9da48ac7f9f30b
[ "MIT" ]
null
null
null
import os import math import numpy as np import time import torch import torch.optim as optim from torch.utils.data import DataLoader from tensorboardX import SummaryWriter import sys sys.path.append(os.path.dirname("../")) from lib.utils.meter import Meter from models.model_MNFEAM import MFEAM_SSN from lib.dataset.s...
35.453608
112
0.577639
31f5d73f045c9db55e784a4166f4f9708822341f
5,331
py
Python
great_international/migrations/0023_internationaleuexitformpage_internationaleuexitformsuccesspage.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
great_international/migrations/0023_internationaleuexitformpage_internationaleuexitformsuccesspage.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
great_international/migrations/0023_internationaleuexitformpage_internationaleuexitformsuccesspage.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-09 12:19 from __future__ import unicode_literals import core.model_fields import core.models import core.validators import core.wagtail_fields from django.db import migrations, models import django.db.models.deletion
74.041667
285
0.673982
31f5dfe6cc07ddb8e01d014bf1bbf7cebbdd8060
3,800
py
Python
integrationtest/vm/basic/account/test_multi_users_cli_login.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/basic/account/test_multi_users_cli_login.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/basic/account/test_multi_users_cli_login.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' New Integration Test for 2 normal users zstack-cli login @author: MengLai ''' import hashlib import zstackwoodpecker.operations.account_operations as acc_ops import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import...
40.860215
108
0.727105
31f62416b0ccc5186e179c986b3ee82c422d3de0
5,226
py
Python
venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
10,024
2015-01-01T13:06:43.000Z
2022-03-31T12:45:25.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,191
2015-01-01T18:13:11.000Z
2022-03-31T22:06:00.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,272
2015-01-01T05:04:53.000Z
2022-03-31T17:46:35.000Z
"""Unit tests for the :mod:`networkx.algorithms.structuralholes` module.""" import math import pytest import networkx as nx
39
79
0.580559
31f9305a21377f64bd0e727a4e26ba7424caa0ac
39
py
Python
tests/components/logbook/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/logbook/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/logbook/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the logbook component."""
19.5
38
0.692308
31fb74a7001125577af1d8ec0c7f1936437a0db6
19,069
py
Python
AssetAllocation.py
MomsLasanga/AssetAllocation
3729da4f73402d9162c444636002a964f26e40eb
[ "CC0-1.0" ]
null
null
null
AssetAllocation.py
MomsLasanga/AssetAllocation
3729da4f73402d9162c444636002a964f26e40eb
[ "CC0-1.0" ]
null
null
null
AssetAllocation.py
MomsLasanga/AssetAllocation
3729da4f73402d9162c444636002a964f26e40eb
[ "CC0-1.0" ]
null
null
null
""" Asset Allocation By Patrick Murrell Created 6/17/2020 This program that takes a csv positions file from fidelity.com from a Roth IRA account that contains the investments of SPAXX, FXNAX, FZILX, and FZROX. Since SPAXX is a Money Market fund then it is assumed that the money in here is not meant to be calcul...
60.536508
121
0.679637
31fb8c91aed632440a47a6131c0345c5540769ba
919
py
Python
setup.py
matsurih/pyknp
e4d0756868676a0c2058dbc0d8dfa77102fe0ba4
[ "BSD-3-Clause" ]
null
null
null
setup.py
matsurih/pyknp
e4d0756868676a0c2058dbc0d8dfa77102fe0ba4
[ "BSD-3-Clause" ]
null
null
null
setup.py
matsurih/pyknp
e4d0756868676a0c2058dbc0d8dfa77102fe0ba4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python __author__ = 'Kurohashi-Kawahara Lab, Kyoto Univ.' __email__ = 'contact@nlp.ist.i.kyoto-u.ac.jp' __copyright__ = '' __license__ = 'See COPYING' import os from setuptools import setup, find_packages about = {} here = os.path.abspath(os.path.dirname(__file__)) exec(open(os.path.join(here, 'pyknp'...
27.029412
71
0.709467
31fb8e7e0a458819ec76cfb1aa5beea0df8e62d1
559
py
Python
supriya/ugens/Dreset.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Dreset.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Dreset.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.DUGen import DUGen
19.964286
84
0.581395
31fbbf24a86c0801f6f0f2045710204934802521
1,729
py
Python
src/api/store/export.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
src/api/store/export.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
src/api/store/export.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
from database.models import Team, UserProfile from _main_.utils.massenergize_errors import MassEnergizeAPIError, InvalidResourceError, ServerError, CustomMassenergizeError from _main_.utils.massenergize_response import MassenergizeResponse from _main_.utils.context import Context
29.810345
125
0.717178
31fbec348a03e3f7b7667b0fb7f3d122e939f326
1,125
py
Python
valid_parentheses.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
5
2015-12-10T14:19:02.000Z
2021-07-02T01:23:34.000Z
valid_parentheses.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
null
null
null
valid_parentheses.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
1
2015-10-01T01:43:14.000Z
2015-10-01T01:43:14.000Z
""" https://oj.leetcode.com/problems/valid-parentheses/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. """ if __name__ == '__main__': ...
30.405405
118
0.441778
31fea9ffda59127cd7bda0c20fd0fcfb295048c1
142
py
Python
joga_moeda.py
lucaslk122/Programas-python
816bdaa128f2d279c255c588c1ff61cb4b834ccd
[ "MIT" ]
null
null
null
joga_moeda.py
lucaslk122/Programas-python
816bdaa128f2d279c255c588c1ff61cb4b834ccd
[ "MIT" ]
null
null
null
joga_moeda.py
lucaslk122/Programas-python
816bdaa128f2d279c255c588c1ff61cb4b834ccd
[ "MIT" ]
null
null
null
from random import random print (joga_moeda())
20.285714
25
0.598592
31ffce463b8361c5e6ba6697268ac0aace1de85c
483
py
Python
shop/migrations/0006_auto_20171130_1638.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
10
2017-11-29T17:41:23.000Z
2020-01-13T14:45:18.000Z
shop/migrations/0006_auto_20171130_1638.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
1
2017-12-15T17:24:42.000Z
2017-12-17T00:05:54.000Z
shop/migrations/0006_auto_20171130_1638.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
2
2020-03-31T00:01:27.000Z
2022-01-02T05:45:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-30 16:38 from __future__ import unicode_literals from django.db import migrations, models
23
84
0.641822
31ffd8fdd3242dbfb70cd647f01afb511ece19be
315
py
Python
settings/tests/test_global_settings.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
settings/tests/test_global_settings.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
settings/tests/test_global_settings.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
import pytest from model_bakery import baker pytestmark = pytest.mark.django_db
26.25
66
0.780952
ee006fceb0659547ddf28bebb8b2d57c2c9c4600
181
py
Python
dotpyle/commands/add/__init__.py
jorgebodega/dotpyle
896bcb2126904b58e70c1c63af21da07438ce7b9
[ "MIT" ]
null
null
null
dotpyle/commands/add/__init__.py
jorgebodega/dotpyle
896bcb2126904b58e70c1c63af21da07438ce7b9
[ "MIT" ]
2
2021-04-15T16:36:58.000Z
2022-01-04T00:03:24.000Z
dotpyle/commands/add/__init__.py
jorgebodega/dotpyle
896bcb2126904b58e70c1c63af21da07438ce7b9
[ "MIT" ]
1
2021-12-21T16:57:21.000Z
2021-12-21T16:57:21.000Z
import click from dotpyle.commands.add.dotfile import dotfile add.add_command(dotfile)
12.928571
48
0.674033
ee0270408f2e8be9f93c82f2617c2e04aaafceac
646
py
Python
benchmark/legacy/workload.py
zhangjyr/faas
a40ea1848e6b5428177319285097168faf3253de
[ "MIT" ]
null
null
null
benchmark/legacy/workload.py
zhangjyr/faas
a40ea1848e6b5428177319285097168faf3253de
[ "MIT" ]
null
null
null
benchmark/legacy/workload.py
zhangjyr/faas
a40ea1848e6b5428177319285097168faf3253de
[ "MIT" ]
null
null
null
import sys import os from common.invoker import newRequest from common.invoker import request from common.invoker import threadize port = 8080 if len(sys.argv) > 1: port = int(sys.argv[1]) workload = 10000 req = newRequest( "GET", "http://localhost:{0}/".format(port), headers = { "X-FUNCTION...
19.575758
64
0.648607
ee02c3e71989e00196fcabde81e3802364cd921e
3,679
py
Python
em_net/util/misc.py
weihuang527/superhuman_network
a89820bda4d0006198bac3bb5922a958ac87f2ae
[ "MIT" ]
null
null
null
em_net/util/misc.py
weihuang527/superhuman_network
a89820bda4d0006198bac3bb5922a958ac87f2ae
[ "MIT" ]
null
null
null
em_net/util/misc.py
weihuang527/superhuman_network
a89820bda4d0006198bac3bb5922a958ac87f2ae
[ "MIT" ]
null
null
null
import sys import numpy as np import h5py import random import os from subprocess import check_output # 1. h5 i/o # 2. segmentation wrapper # 3. evaluation """ def runBash(cmd): fn = '/tmp/tmp_'+str(random.random())[2:]+'.sh' print('tmp bash file:',fn) writetxt(fn, cmd) os.chmod(fn, 0755) out =...
33.144144
131
0.611579
ee02e152f754c131475d2144d7eda38e3e662a80
3,277
py
Python
Examples/VisualizationAlgorithms/Python/warpComb.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
3
2015-07-28T18:07:50.000Z
2018-02-28T20:59:58.000Z
Examples/VisualizationAlgorithms/Python/warpComb.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
14
2015-04-25T17:54:13.000Z
2017-01-13T15:30:39.000Z
Examples/VisualizationAlgorithms/Python/warpComb.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
5
2020-10-02T10:14:35.000Z
2022-03-10T07:50:22.000Z
#!/usr/bin/env python # This example demonstrates how to extract "computational planes" from # a structured dataset. Structured data has a natural, logical # coordinate system based on i-j-k indices. Specifying imin,imax, # jmin,jmax, kmin,kmax pairs can indicate a point, line, plane, or # volume of data. # # In this ...
35.236559
70
0.790357
ee0422fdb0bb9569ffe5bfce8332b0898922c7e6
1,482
py
Python
src/docs/architecture/demo.py
coding-fastandslow/testing-spring-boot-applications-masterclass
7564987d4a54e60bf59c4b0eb48ac3736e136904
[ "MIT" ]
1
2021-06-02T03:46:23.000Z
2021-06-02T03:46:23.000Z
src/docs/architecture/demo.py
coding-fastandslow/testing-spring-boot-applications-masterclass
7564987d4a54e60bf59c4b0eb48ac3736e136904
[ "MIT" ]
30
2021-08-04T02:14:16.000Z
2022-03-28T02:19:17.000Z
src/docs/architecture/demo.py
coding-fastandslow/testing-spring-boot-applications-masterclass
7564987d4a54e60bf59c4b0eb48ac3736e136904
[ "MIT" ]
1
2021-10-08T12:44:38.000Z
2021-10-08T12:44:38.000Z
from diagrams import Cluster, Diagram, Edge from diagrams.aws.compute import EC2 from diagrams.aws.database import RDS from diagrams.aws.integration import SQS from diagrams.aws.network import ELB from diagrams.aws.storage import S3 from diagrams.onprem.ci import Jenkins from diagrams.onprem.client import Client, User,...
33.681818
118
0.711876
ee0479dc94dba3bc24c12f4b6da817cfb2faeead
259
py
Python
main/filesAndForms/models.py
nynguyen/sprint_zero_demo
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
[ "MIT" ]
null
null
null
main/filesAndForms/models.py
nynguyen/sprint_zero_demo
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
[ "MIT" ]
null
null
null
main/filesAndForms/models.py
nynguyen/sprint_zero_demo
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
[ "MIT" ]
null
null
null
from django.db import models
32.375
60
0.76834
ee05a479ec4cb10a4599fc18fc14885ce8e8c098
1,751
py
Python
examples/console/a_in.py
Picarro-kskog/mcculw
5a00dfbef2426772f0ec381f7795a2d5fd696a76
[ "MIT" ]
null
null
null
examples/console/a_in.py
Picarro-kskog/mcculw
5a00dfbef2426772f0ec381f7795a2d5fd696a76
[ "MIT" ]
null
null
null
examples/console/a_in.py
Picarro-kskog/mcculw
5a00dfbef2426772f0ec381f7795a2d5fd696a76
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from builtins import * # @UnusedWildImport from mcculw import ul from mcculw.ul import ULError from examples.console import util from examples.props.ai import AnalogInputProps use_device_detection = True if __name__ == '__main__': run_example(...
29.677966
76
0.65791
ee05eaf652dcacea5d625e928ba76476b8f2f36d
721
py
Python
Communication_adaptor/OOCSI/main.py
tahir80/Crowd_of_Oz
a79e1e8a10b99879aeff83b00ef89b480c8d168c
[ "MIT" ]
null
null
null
Communication_adaptor/OOCSI/main.py
tahir80/Crowd_of_Oz
a79e1e8a10b99879aeff83b00ef89b480c8d168c
[ "MIT" ]
3
2021-03-19T03:45:27.000Z
2022-01-13T01:38:22.000Z
Communication_adaptor/OOCSI/main.py
tahir80/Crowd_of_Oz
a79e1e8a10b99879aeff83b00ef89b480c8d168c
[ "MIT" ]
2
2020-02-19T13:58:03.000Z
2022-01-17T19:42:02.000Z
from oocsi import OOCSI from NAO_Speak import NAO_Speak # (file name followed by class name) import unidecode ################################# IP = "IP_OF_PEPPER_ROBOT" text = "" my_nao = NAO_Speak(IP, 9559) ################################## if __name__ == "__main__": #o = OOCSI('abc', "oocsi.id.tue.nl", callb...
25.75
69
0.599168
ee06d5c5bec6e01c97e370a892a4bf6a429c5e09
8,161
py
Python
CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
4
2020-11-11T11:56:57.000Z
2021-03-11T10:05:09.000Z
CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
null
null
null
CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
3
2021-01-07T04:14:11.000Z
2021-04-27T13:41:36.000Z
# encoding:utf-8 import asyncio import os import mimetypes from urllib import parse response = { # 200: [b'HTTP/1.0 200 OK\r\n', # response # b'Connection: close\r\n', # b'Content-Type:text/html; charset=utf-8\r\n', # b'\r\n'], 404: [b'HTTP/1.0 404 Not Found\r\n', # response ...
36.433036
110
0.527754
ee06e35d76242b1961bfd6577cb91d816498e4c1
157
py
Python
template/Test/components/Counter/style.py
Salenia/Orca
1b3381eb22c6c269fa3d6d9c07e997bcc92f1702
[ "MIT" ]
null
null
null
template/Test/components/Counter/style.py
Salenia/Orca
1b3381eb22c6c269fa3d6d9c07e997bcc92f1702
[ "MIT" ]
null
null
null
template/Test/components/Counter/style.py
Salenia/Orca
1b3381eb22c6c269fa3d6d9c07e997bcc92f1702
[ "MIT" ]
null
null
null
from core.object import Object style= Object({ 'btn': { 'bg': '#123321', 'fg': '#dddddd', 'font': ('Ariel', 14, 'bold') } })
17.444444
37
0.452229
ee084007853fb17a734c30e770875d1d79a60983
193
py
Python
OOP/ConstructorExample5.py
suprit08/PythonAssignments
6cab78660d8c77cf573cbea82e4dada19b0fc08c
[ "MIT" ]
null
null
null
OOP/ConstructorExample5.py
suprit08/PythonAssignments
6cab78660d8c77cf573cbea82e4dada19b0fc08c
[ "MIT" ]
null
null
null
OOP/ConstructorExample5.py
suprit08/PythonAssignments
6cab78660d8c77cf573cbea82e4dada19b0fc08c
[ "MIT" ]
null
null
null
t=Test() t.display() print(t.a,t.b)
14.846154
24
0.487047
ee0b159a9b052e35cbc0b56e022fa3be6c4dec93
151
py
Python
tests/testing.py
Shlol762/physics
a142e812bac2da8edec36cdd814b49ea765d9cdc
[ "MIT" ]
null
null
null
tests/testing.py
Shlol762/physics
a142e812bac2da8edec36cdd814b49ea765d9cdc
[ "MIT" ]
null
null
null
tests/testing.py
Shlol762/physics
a142e812bac2da8edec36cdd814b49ea765d9cdc
[ "MIT" ]
null
null
null
from physics import * s1, s2 = Speed(9, 3, unit='cm/s', extra_units=['cm/h']), Speed(9, 2, unit='cm/h', extra_units=['cm/h']) print(s2.distance.unit)
30.2
103
0.635762
ee0b88c2d64968744709b3b0f62395d7460bc8b4
378
py
Python
Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
import random import time from book_book.books_directory import books_requests_queue from book_book.rental_request import RentalRequest
29.076923
87
0.801587
ee0c3eec70fd399ae7e39453c7ddf4147eae1d8b
19
py
Python
tutorial/2_java/emk_rules.py
awm/emk
ee26ceb47a96e1fae8729dea19c7da4f62f798da
[ "BSD-2-Clause" ]
10
2017-04-02T13:05:55.000Z
2021-10-04T22:06:50.000Z
tutorial/2_java/emk_rules.py
awm/emk
ee26ceb47a96e1fae8729dea19c7da4f62f798da
[ "BSD-2-Clause" ]
null
null
null
tutorial/2_java/emk_rules.py
awm/emk
ee26ceb47a96e1fae8729dea19c7da4f62f798da
[ "BSD-2-Clause" ]
null
null
null
emk.module("java")
9.5
18
0.684211
ee0caea10657e730ca0edcf6cea3ad5049994afa
2,111
py
Python
rally/rally-plugins/glance/glance_create_boot_delete.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
null
null
null
rally/rally-plugins/glance/glance_create_boot_delete.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
null
null
null
rally/rally-plugins/glance/glance_create_boot_delete.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
1
2019-12-01T14:35:28.000Z
2019-12-01T14:35:28.000Z
# 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 # distributed ...
50.261905
98
0.732828
ee0cf6c256acb1e19d545ad5310115b214f0b6ae
11,168
py
Python
Evaluation/hbm_axpy_dot_based.py
jnice-81/FpgaHbmForDaCe
b80749524264b4884cbd852d2db825cf8a6007aa
[ "BSD-3-Clause" ]
null
null
null
Evaluation/hbm_axpy_dot_based.py
jnice-81/FpgaHbmForDaCe
b80749524264b4884cbd852d2db825cf8a6007aa
[ "BSD-3-Clause" ]
null
null
null
Evaluation/hbm_axpy_dot_based.py
jnice-81/FpgaHbmForDaCe
b80749524264b4884cbd852d2db825cf8a6007aa
[ "BSD-3-Clause" ]
null
null
null
from typing import List import dace from dace import subsets from dace import memlet from dace import dtypes from dace.sdfg.sdfg import InterstateEdge, SDFG from dace.sdfg.state import SDFGState from dace.transformation.interstate.sdfg_nesting import NestSDFG from dace.transformation.optimizer import Optimizer from dac...
46.92437
115
0.689201
ee0db8b98c1815168cdf176d5c487ac08d4df051
1,134
py
Python
aiida_vasp/parsers/file_parsers/wavecar.py
muhrin/aiida-vasp
641fdc2ccd40bdd041e59af1fa3e1dcf9b037415
[ "MIT" ]
1
2021-06-13T09:13:01.000Z
2021-06-13T09:13:01.000Z
aiida_vasp/parsers/file_parsers/wavecar.py
muhrin/aiida-vasp
641fdc2ccd40bdd041e59af1fa3e1dcf9b037415
[ "MIT" ]
null
null
null
aiida_vasp/parsers/file_parsers/wavecar.py
muhrin/aiida-vasp
641fdc2ccd40bdd041e59af1fa3e1dcf9b037415
[ "MIT" ]
null
null
null
""" WAVECAR parser. --------------- The file parser that handles the parsing of WAVECAR files. """ from aiida_vasp.parsers.file_parsers.parser import BaseFileParser from aiida_vasp.parsers.node_composer import NodeComposer
25.2
65
0.591711
ee0f6bdca365641ee9474e0436ab4c38b5187dad
4,184
py
Python
waflib/package.py
fannymagnet/cwaf
60510f3596f1ee859ea73a50ee56dd636cde14b4
[ "Apache-2.0" ]
null
null
null
waflib/package.py
fannymagnet/cwaf
60510f3596f1ee859ea73a50ee56dd636cde14b4
[ "Apache-2.0" ]
null
null
null
waflib/package.py
fannymagnet/cwaf
60510f3596f1ee859ea73a50ee56dd636cde14b4
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 import re import os import subprocess import json
28.462585
76
0.546845
ee0fd6c103aa5c0dda88b9b7d6ada7be67c461d9
16,951
py
Python
excut/embedding/ampligraph_extend/EmbeddingModelContinue.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
5
2020-11-17T19:59:49.000Z
2021-09-23T23:10:39.000Z
excut/embedding/ampligraph_extend/EmbeddingModelContinue.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
excut/embedding/ampligraph_extend/EmbeddingModelContinue.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy import numpy as np import tensorflow as tf from ampligraph.datasets import NumpyDatasetAdapter, AmpligraphDatasetAdapter from ampligraph.latent_features import SGDOptimizer, constants from ampligraph.latent_features.initializers import DEFAULT_XAVIER_IS_UNIFORM from ampligraph.latent_features...
51.21148
128
0.610583
ee1052ee4cf13eb970ced19001be494a24ecb620
1,518
py
Python
projects/Happy Times/num2txt.py
jsportland/jssmith.biz
1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd
[ "MIT" ]
null
null
null
projects/Happy Times/num2txt.py
jsportland/jssmith.biz
1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd
[ "MIT" ]
7
2020-06-05T21:15:16.000Z
2021-09-22T18:43:04.000Z
projects/Happy Times/num2txt.py
jsportland/jsportland.github.io
1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd
[ "MIT" ]
null
null
null
# num2txt.py # Jeff Smith ''' Convert a given number into its text representation. e.g. 67 becomes 'sixty-seven'. Handle numbers from 0-99. ''' # Create dictionaries of number-text key pairs ones = {0: '', 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine'} twos...
31.625
103
0.550725
ee1117aa879343fdc2d1539ab537208c88466d45
1,811
py
Python
src/pointers/struct.py
ZeroIntensity/pointers.py
c41b0a131d9d538130cf61b19be84c6cdf251cb7
[ "MIT" ]
461
2022-03-10T03:05:30.000Z
2022-03-31T17:53:32.000Z
src/pointers/struct.py
ZeroIntensity/pointers.py
c41b0a131d9d538130cf61b19be84c6cdf251cb7
[ "MIT" ]
7
2022-03-11T03:55:01.000Z
2022-03-23T20:34:21.000Z
src/pointers/struct.py
ZeroIntensity/pointers.py
c41b0a131d9d538130cf61b19be84c6cdf251cb7
[ "MIT" ]
8
2022-03-10T19:30:37.000Z
2022-03-23T20:35:11.000Z
import ctypes from typing import get_type_hints, Any from abc import ABC from .c_pointer import TypedCPointer, attempt_decode from contextlib import suppress
29.688525
102
0.59746
ee11a749896f2dac758fc2f13a4c31bc96f85f10
4,852
py
Python
cs15211/KthSmallestNumberinMultiplicationTable.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/KthSmallestNumberinMultiplicationTable.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/KthSmallestNumberinMultiplicationTable.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/' # Time: O() # Space: O() # # Description: Leetcode # 668. Kth Smallest Number in Multiplication Table # # Nearly every one have used the Multiplication Table. # But could you find out the k-th smallest number quickly from the mul...
25.671958
103
0.523495
ee11bc1258b4bdb1e1c427f2c1da2afcdccd329f
1,141
py
Python
examples/python3/force_platform.py
pariterre/ezc3d
53999b44a17819dc86e485f99887cea5ee4b7112
[ "MIT" ]
83
2018-05-26T00:08:14.000Z
2022-03-31T17:08:41.000Z
examples/python3/force_platform.py
pariterre/ezc3d
53999b44a17819dc86e485f99887cea5ee4b7112
[ "MIT" ]
183
2018-05-23T18:09:59.000Z
2022-03-31T18:36:04.000Z
examples/python3/force_platform.py
pariterre/ezc3d
53999b44a17819dc86e485f99887cea5ee4b7112
[ "MIT" ]
37
2018-07-20T14:15:30.000Z
2021-12-09T06:40:26.000Z
import ezc3d # This example reads a file that contains 2 force platforms. It thereafter print some metadata and data for one them c3d = ezc3d.c3d("../c3dFiles/ezc3d-testFiles-master/ezc3d-testFiles-master/Qualisys.c3d", extract_forceplat_data=True) print(f"Number of force platform = {len(c3d['data']['platform'])}") ...
36.806452
118
0.688869
ee12205ea3c9735342c4affa7e463d604044c45b
7,062
py
Python
docs/html_docs/get_classes_in_file.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
docs/html_docs/get_classes_in_file.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
docs/html_docs/get_classes_in_file.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
from __future__ import print_function, unicode_literals import os from io import open from pyNastran.utils.log import get_logger2 import shutil IGNORE_DIRS = ['src', 'dmap', 'solver', '__pycache__', 'op4_old', 'calculix', 'bars', 'case_control', 'pch', 'old', 'solver', 'test', 'dev', 'bkp...
35.487437
94
0.585387
ee139bfd29a89a7a4a5d77d7a8c7900ad5b256b6
4,650
py
Python
tests/utils/postprocess/test_top.py
ToucanToco/toucan-data-sdk
1d82b7112231b65f8a310327b6d6673d137b7378
[ "BSD-3-Clause" ]
9
2017-12-21T23:09:10.000Z
2020-08-20T13:53:24.000Z
tests/utils/postprocess/test_top.py
ToucanToco/toucan-data-sdk
1d82b7112231b65f8a310327b6d6673d137b7378
[ "BSD-3-Clause" ]
144
2017-11-24T17:23:02.000Z
2022-03-28T02:34:15.000Z
tests/utils/postprocess/test_top.py
ToucanToco/toucan-data-sdk
1d82b7112231b65f8a310327b6d6673d137b7378
[ "BSD-3-Clause" ]
5
2018-03-07T13:22:01.000Z
2021-05-31T11:53:07.000Z
import pandas as pd from toucan_data_sdk.utils.postprocess import top, top_group def test_top(): """ It should return result for top """ data = pd.DataFrame( [ {'variable': 'toto', 'Category': 1, 'value': 100}, {'variable': 'toto', 'Category': 1, 'value': 200}, {'v...
33.214286
96
0.476129
ee13fe06ca5c309a9828923b3634c76483f38157
2,439
py
Python
Main/models.py
semvis123/Project-Webtechnologie
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
[ "MIT" ]
null
null
null
Main/models.py
semvis123/Project-Webtechnologie
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
[ "MIT" ]
null
null
null
Main/models.py
semvis123/Project-Webtechnologie
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
[ "MIT" ]
null
null
null
from Main import db, login_manager from faker import Faker from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash fake = Faker()
30.111111
97
0.671587
ee14c24926c18fc83e37f709865f20c7c3816477
2,199
py
Python
MoveRestructure.py
bsmarine/dicomConversionToNiftiHCC
ea8d4c922a299a2b9e1936bdb08c22d445e48db7
[ "BSD-3-Clause" ]
1
2021-06-25T17:13:37.000Z
2021-06-25T17:13:37.000Z
MoveRestructure.py
bsmarine/dicomConversionToNiftiHCC
ea8d4c922a299a2b9e1936bdb08c22d445e48db7
[ "BSD-3-Clause" ]
null
null
null
MoveRestructure.py
bsmarine/dicomConversionToNiftiHCC
ea8d4c922a299a2b9e1936bdb08c22d445e48db7
[ "BSD-3-Clause" ]
1
2021-07-08T22:27:57.000Z
2021-07-08T22:27:57.000Z
import sys import os import SimpleITK as sitk import pydicom from slugify import slugify import shutil import argparse parser = argparse.ArgumentParser(description='MoveRestructureScript') parser.add_argument("--dicomDir", dest="in_dir", required=True) parser.add_argument("--outDir", dest="out_dir", requi...
36.04918
141
0.622556
ee1671d5719714f90ce4ce8110a4344a83fa25b3
2,384
py
Python
mesmerize_napari/cnmf_viz_gui.py
nel-lab/mesmerize-napari
24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b
[ "Apache-2.0" ]
1
2022-01-11T16:18:17.000Z
2022-01-11T16:18:17.000Z
mesmerize_napari/cnmf_viz_gui.py
nel-lab/caiman-napari-prototype
24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b
[ "Apache-2.0" ]
12
2022-01-11T16:21:01.000Z
2022-02-17T04:43:50.000Z
mesmerize_napari/cnmf_viz_gui.py
nel-lab/mesmerize-napari
24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b
[ "Apache-2.0" ]
null
null
null
from PyQt5 import QtWidgets from .cnmf_viz_pytemplate import Ui_VizualizationWidget from .evaluate_components import EvalComponentsWidgets from mesmerize_core.utils import * from mesmerize_core import * import caiman as cm
38.451613
79
0.693792
ee1b99ad06589e6918f63fd1de2e355976ecde19
7,459
py
Python
graphics/text/config.py
sergeirocks100/satanicinfestation
3eff98631b71207ffbf5aa9791e194ebf41e2027
[ "CC-BY-4.0" ]
5
2020-04-28T02:59:08.000Z
2022-02-26T20:32:54.000Z
graphics/text/config.py
sergeirocks100/satanicinfestation
3eff98631b71207ffbf5aa9791e194ebf41e2027
[ "CC-BY-4.0" ]
null
null
null
graphics/text/config.py
sergeirocks100/satanicinfestation
3eff98631b71207ffbf5aa9791e194ebf41e2027
[ "CC-BY-4.0" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # # Configuration file for textgen. This file defines the graphic lumps # that are generated, and the text to show in each one. # import re # Adjustments for character position based on character pairs. Some # pairs of characters can fit more snugly together, which looks more #...
28.14717
78
0.553962
ee1bd9711953e27dca2cb44d9b6e0151df623ebc
1,840
py
Python
generateFuncdb.py
daeken/GrinningSoul
d35ac197dade35d8a831ffb10fffd2ec93a791ea
[ "Apache-2.0" ]
94
2020-11-22T00:35:08.000Z
2022-02-22T15:45:41.000Z
generateFuncdb.py
CrackerCat/GrinningSoul
d35ac197dade35d8a831ffb10fffd2ec93a791ea
[ "Apache-2.0" ]
1
2021-05-14T14:18:23.000Z
2021-05-15T16:03:24.000Z
generateFuncdb.py
CrackerCat/GrinningSoul
d35ac197dade35d8a831ffb10fffd2ec93a791ea
[ "Apache-2.0" ]
8
2020-11-22T10:23:26.000Z
2022-02-22T08:34:46.000Z
import fnmatch, os, subprocess from multiprocessing import Pool import tqdm sdkPath = subprocess.check_output('xcodebuild -version -sdk iphonesimulator Path', shell=True).strip() allFns = [] for root, dirnames, filenames in os.walk(sdkPath): # + '/usr/include'): for filename in fnmatch.filter(filenames, '*.h'): al...
27.462687
102
0.658696
ee1f75cb3cbebacad1e1938152badf91c6fd14cd
1,331
py
Python
src/cli/dcos_vagrant/commands/wait.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
null
null
null
src/cli/dcos_vagrant/commands/wait.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
null
null
null
src/cli/dcos_vagrant/commands/wait.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
null
null
null
""" Tools for waiting for a cluster. """ import click import click_spinner import urllib3 from cli.common.options import ( superuser_password_option, superuser_username_option, ) from ._common import ClusterVMs from ._options import existing_cluster_id_option
26.62
79
0.689707
ee203c8c6303ac213b7e84dfaa580b41ed282776
1,922
py
Python
Think Complexity/GraphCode.py
henry-zhuang/reading-lists
128b71b24cd49e346df74bee8126d3d3ef0907df
[ "BSD-2-Clause" ]
3
2017-11-06T06:28:07.000Z
2021-12-28T07:04:57.000Z
Think Complexity/GraphCode.py
henry-zhuang/reading-lists
128b71b24cd49e346df74bee8126d3d3ef0907df
[ "BSD-2-Clause" ]
null
null
null
Think Complexity/GraphCode.py
henry-zhuang/reading-lists
128b71b24cd49e346df74bee8126d3d3ef0907df
[ "BSD-2-Clause" ]
null
null
null
if __name__ == '__main__': x = Vertex('x') y = Vertex('y') xy = Edge(x, y) g = Graph([x, y], [xy]) print x print xy print g
25.972973
72
0.565557
ee2050a50daad419401ba669fc24c584b7a2b6fa
65
py
Python
tests/__init__.py
GraphQL-python-archive/graphql-env
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
[ "MIT" ]
null
null
null
tests/__init__.py
GraphQL-python-archive/graphql-env
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
[ "MIT" ]
3
2019-07-24T21:05:52.000Z
2021-11-15T17:46:27.000Z
tests/__init__.py
GraphQL-python-archive/graphql-env
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for graphql_env."""
21.666667
40
0.6
ee2135f4afd77e09b1a2e652846d3ab3f3aa9ee1
3,642
py
Python
model/gastric_cancer_ResNet_cnn.py
bd-z/Gastric_Biopsy_Cancer_Detector
fac18b6484ff10b09b50eb6d81af9984f9fe3019
[ "MIT" ]
1
2022-01-08T14:19:31.000Z
2022-01-08T14:19:31.000Z
model/gastric_cancer_ResNet_cnn.py
bd-z/Gastric_Biopsy_Cancer_Detector
fac18b6484ff10b09b50eb6d81af9984f9fe3019
[ "MIT" ]
null
null
null
model/gastric_cancer_ResNet_cnn.py
bd-z/Gastric_Biopsy_Cancer_Detector
fac18b6484ff10b09b50eb6d81af9984f9fe3019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 3 20:33:21 2021 @author: zhang """ import os import numpy as np import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split from sklearn.utils import shuffle import tensorflow.keras as keras from tensorflow.keras.preprocessing import ...
23.197452
124
0.720209
ee245853feab4e3b1a6bbf63e986448df5eef06f
2,280
py
Python
esim_torch/test_single_pixel.py
Giamm9998/face_detection_on_sim_events
d0917a3fff9427f3b898834f37f7e5ff03c3c8e0
[ "MIT" ]
null
null
null
esim_torch/test_single_pixel.py
Giamm9998/face_detection_on_sim_events
d0917a3fff9427f3b898834f37f7e5ff03c3c8e0
[ "MIT" ]
null
null
null
esim_torch/test_single_pixel.py
Giamm9998/face_detection_on_sim_events
d0917a3fff9427f3b898834f37f7e5ff03c3c8e0
[ "MIT" ]
null
null
null
import torch import matplotlib.pyplot as plt import numpy as np import glob import cv2 from esim_torch import EventSimulator_torch if __name__ == "__main__": c = 0.2 refractory_period_ns = 5e6 esim_torch = EventSimulator_torch(contrast_threshold_neg=c, contrast_thresh...
33.043478
91
0.638158
ee24a1450e91db84cc047da4850276c21c83ee5a
6,642
py
Python
load_csv.py
alexkchew/AppSciTools
7fff312115bd109a5391adff9e0f9cdec8ebbdab
[ "MIT" ]
null
null
null
load_csv.py
alexkchew/AppSciTools
7fff312115bd109a5391adff9e0f9cdec8ebbdab
[ "MIT" ]
null
null
null
load_csv.py
alexkchew/AppSciTools
7fff312115bd109a5391adff9e0f9cdec8ebbdab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ load_csv.py This script controlls all load csv information. Created on: Fri Jul 16 15:54:43 2021 Author: Alex K. Chew (alex.chew@schrodinger.com) Copyright Schrodinger, LLC. All rights reserved. """ # Loading modules import os import pandas as pd import numpy as n...
33.545455
117
0.609907
ee24a2a2d1d21059fb919ebc02526d5846c7d278
303
py
Python
ivory/layers/__init__.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
ivory/layers/__init__.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
ivory/layers/__init__.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
from ivory.layers import (activation, affine, convolution, core, dropout, embedding, loss, normalization, recurrent) __all__ = [ "activation", "affine", "convolution", "core", "dropout", "embedding", "loss", "normalization", "recurrent", ]
20.2
73
0.574257
ee256a737518580b47e962df223472702fb695b6
6,013
py
Python
contest/forms.py
henryyang42/NTHUOJ_web
b197ef8555aaf90cba176eba61da5c919dab7af6
[ "MIT" ]
null
null
null
contest/forms.py
henryyang42/NTHUOJ_web
b197ef8555aaf90cba176eba61da5c919dab7af6
[ "MIT" ]
null
null
null
contest/forms.py
henryyang42/NTHUOJ_web
b197ef8555aaf90cba176eba61da5c919dab7af6
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team 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 without limitation the rights to use,...
38.793548
106
0.611342
ee267e6a87dffffb307c371ef839bb7bf075c746
618
py
Python
wormpose/machine_learning/generic_file_writer.py
AntonioCCosta/wormpose
ebd0acf39b92072f00008731e77c5ac2b8ea4406
[ "BSD-3-Clause" ]
29
2020-05-14T02:58:59.000Z
2022-03-16T10:06:36.000Z
wormpose/machine_learning/generic_file_writer.py
Tubbz-alt/wormpose
a92c0459f940d6e1f517b90d3a445ad3c0689ed8
[ "BSD-3-Clause" ]
8
2020-08-14T06:23:14.000Z
2022-01-03T04:28:58.000Z
wormpose/machine_learning/generic_file_writer.py
Tubbz-alt/wormpose
a92c0459f940d6e1f517b90d3a445ad3c0689ed8
[ "BSD-3-Clause" ]
11
2020-07-18T20:43:00.000Z
2022-03-17T18:27:57.000Z
""" Wrapper to save the training data to different file formats """
24.72
92
0.661812
ee269436a0a76c7351b420811a929b16e0ed781d
772
py
Python
EngLearner/users/migrations/0007_auto_20200330_2201.py
jiangyifan123/EngLearner
a54c205a6e6bf3b2af366b56a7b7f97344fa1466
[ "bzip2-1.0.6" ]
null
null
null
EngLearner/users/migrations/0007_auto_20200330_2201.py
jiangyifan123/EngLearner
a54c205a6e6bf3b2af366b56a7b7f97344fa1466
[ "bzip2-1.0.6" ]
null
null
null
EngLearner/users/migrations/0007_auto_20200330_2201.py
jiangyifan123/EngLearner
a54c205a6e6bf3b2af366b56a7b7f97344fa1466
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2 on 2020-03-30 14:01 from django.db import migrations, models
26.62069
70
0.586788
ee27cbb1f5ab8ff62e70e97b161ec8429dba0d48
8,087
py
Python
NeoML/Python/neoml/Dnn/ImageConversion.py
ndrewl/neoml
c87361fa8489c28a672cb8e1a447f47ba4c1dbc5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
NeoML/Python/neoml/Dnn/ImageConversion.py
ndrewl/neoml
c87361fa8489c28a672cb8e1a447f47ba4c1dbc5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
NeoML/Python/neoml/Dnn/ImageConversion.py
ndrewl/neoml
c87361fa8489c28a672cb8e1a447f47ba4c1dbc5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright (c) 2017-2020 ABBYY Production 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 or agreed to in wr...
33.143443
162
0.614319
ee2a0ae02c4f7fec036fd44cc9fb937a9290c455
237
py
Python
test.py
Torxed/python-pyson
9bcbc256ec989832a0729fef06b797c9eceeaefa
[ "MIT" ]
3
2020-11-03T03:40:53.000Z
2021-01-30T08:37:16.000Z
test.py
Torxed/python-pyson
9bcbc256ec989832a0729fef06b797c9eceeaefa
[ "MIT" ]
null
null
null
test.py
Torxed/python-pyson
9bcbc256ec989832a0729fef06b797c9eceeaefa
[ "MIT" ]
null
null
null
import time import random import pyson content = """ { "time" : time.time(), random.randint(0, 1) : "a random number", "another_level" : { "test" : 5 }, "main level" : True } """ print(pyson.loads(content, globals(), locals()))
13.941176
48
0.616034
ee2a78ecf01311256d971e67c7ba46fef93c2320
716
py
Python
TV_equivalent_indicators.py
J0N3X/crypto-backtest-module
0f2618c4538b25a78f75c7831b9ce3701f33de60
[ "MIT" ]
6
2021-08-10T14:34:11.000Z
2022-03-03T19:14:15.000Z
TV_equivalent_indicators.py
J0N3X/crypto-backtest-module
0f2618c4538b25a78f75c7831b9ce3701f33de60
[ "MIT" ]
null
null
null
TV_equivalent_indicators.py
J0N3X/crypto-backtest-module
0f2618c4538b25a78f75c7831b9ce3701f33de60
[ "MIT" ]
4
2020-11-01T19:46:56.000Z
2022-03-24T05:47:06.000Z
import pandas as pd import numpy as np
26.518519
123
0.586592
ee2b80f6a26a0a00b8f295285fad069f948e9400
808
py
Python
output_generator/Output.py
selcukusta/codalyze-rest-api
2aebb7d96ea0d601af3f8dd0a995bc730621407a
[ "MIT" ]
2
2020-11-16T15:53:08.000Z
2021-06-24T07:16:15.000Z
output_generator/Output.py
selcukusta/codalyze-rest-api
2aebb7d96ea0d601af3f8dd0a995bc730621407a
[ "MIT" ]
null
null
null
output_generator/Output.py
selcukusta/codalyze-rest-api
2aebb7d96ea0d601af3f8dd0a995bc730621407a
[ "MIT" ]
1
2021-11-25T11:57:57.000Z
2021-11-25T11:57:57.000Z
# -*- coding: utf-8 -*- """ This module extends the default output formatting to include HTML. """ import sys import datetime from jinja2 import Template
27.862069
68
0.643564
ee2cb32d9eb1f15b26b978d44b78859a10f8c8d9
5,733
py
Python
currnlp - deprecated.py
Elbitty/Elbitty
fafc1623ca002a6e499101b513696fecf1e894d1
[ "MIT" ]
null
null
null
currnlp - deprecated.py
Elbitty/Elbitty
fafc1623ca002a6e499101b513696fecf1e894d1
[ "MIT" ]
3
2017-07-03T04:01:29.000Z
2017-07-04T00:22:54.000Z
currnlp - deprecated.py
Elbitty/Elbitty
fafc1623ca002a6e499101b513696fecf1e894d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import NLP if __name__ == "__main__": print(calculate(['50', '', '']))
30.822581
72
0.451073
ee2d5efda5124f708e91530073f276b0080ff013
181
py
Python
main/schemas/request.py
vuhuycto/gotit-onboard-final-project
44f4d29c86d841713207efc3d0b30c63f00e6084
[ "MIT" ]
null
null
null
main/schemas/request.py
vuhuycto/gotit-onboard-final-project
44f4d29c86d841713207efc3d0b30c63f00e6084
[ "MIT" ]
null
null
null
main/schemas/request.py
vuhuycto/gotit-onboard-final-project
44f4d29c86d841713207efc3d0b30c63f00e6084
[ "MIT" ]
null
null
null
from marshmallow import fields, validate from .base import BaseSchema
22.625
72
0.790055
ee2dc666a79347b77adfd1d774a2855491600019
1,617
py
Python
__main__.py
tinyurl-com-ItsBigBrainTimeXD/backend
4d360ed02aa5475279af03e4f4300dde6ccc3391
[ "MIT" ]
null
null
null
__main__.py
tinyurl-com-ItsBigBrainTimeXD/backend
4d360ed02aa5475279af03e4f4300dde6ccc3391
[ "MIT" ]
null
null
null
__main__.py
tinyurl-com-ItsBigBrainTimeXD/backend
4d360ed02aa5475279af03e4f4300dde6ccc3391
[ "MIT" ]
null
null
null
from multiprocessing import Lock from flask import Flask, request, jsonify from constants import HOST, PORT from Database.database import Database from handler.frontendHandler import frontend_handler from handler.iotHandler import iot_handler # Create the flask application app = Flask(__name__) db_name = 'test.db' db...
25.265625
68
0.685838
ee2dd69c4e68177c7e58799c681d8b2eea7e81a6
76
py
Python
03_For/Step03/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
03_For/Step03/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
03_For/Step03/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
n = int(input()) result=0 for i in range(1,n+1): result+=i print(result)
15.2
22
0.631579
ee2fea5e9be5798ddc9725b7766369f326b358d6
452
py
Python
ex055.py
LucasLCarreira/Python
03bd64837d74315687e567261a149f0176496348
[ "MIT" ]
1
2020-04-21T19:14:50.000Z
2020-04-21T19:14:50.000Z
ex055.py
LucasLCarreira/Python
03bd64837d74315687e567261a149f0176496348
[ "MIT" ]
null
null
null
ex055.py
LucasLCarreira/Python
03bd64837d74315687e567261a149f0176496348
[ "MIT" ]
null
null
null
# Exerccio Python 055 # Leia o peso de 5 pessoas, mostre o maior e o menor maior = 0 menor = 0 for p in range(1, 6): peso = int(input("Digite o peso:")) if p == 1: #com o contador na primeira posio, o maior e o menor so iguais maior = peso menor = peso else: if peso > maior: ...
25.111111
80
0.573009