hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
a9e96f3479553a323cae24395aae1384d5d71a03
54
py
Python
hello world.py
xiongshao1943/test-only
b197f1b3d7abeaafcd45dcadcc34a6cf4f600f88
[ "Apache-2.0" ]
null
null
null
hello world.py
xiongshao1943/test-only
b197f1b3d7abeaafcd45dcadcc34a6cf4f600f88
[ "Apache-2.0" ]
null
null
null
hello world.py
xiongshao1943/test-only
b197f1b3d7abeaafcd45dcadcc34a6cf4f600f88
[ "Apache-2.0" ]
null
null
null
name = input('Enter you name :') print('Hello ',name)
27
33
0.648148
0
0
0
0
0
0
0
0
26
0.481481
a9ea7e1103d7e405e0173553e3a33e8c3f2d77a8
1,116
py
Python
src/Chapter7/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter7/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter7/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
""" Exercise 2 Write a program to prompt for a file name, and then read through the file and look for lines of the form: X-DSPAM-Confidence: 0.8475 When you encounter a line that starts with 'X-DSPAM-Confidence:' pull apart the line to extract the floating point number on the line. Count these lines and the compute ...
36
78
0.729391
0
0
0
0
0
0
0
0
733
0.65681
a9ed614fe3c61a4ccb6a6fd96549be447884ceeb
353
py
Python
assets/downloads/CQED/CQED/Code/color.py
OTPS3141/otps3141.github.io
2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4
[ "MIT" ]
null
null
null
assets/downloads/CQED/CQED/Code/color.py
OTPS3141/otps3141.github.io
2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4
[ "MIT" ]
null
null
null
assets/downloads/CQED/CQED/Code/color.py
OTPS3141/otps3141.github.io
2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 21 13:00:28 2021 @author: OTPS """ import matplotlib.pyplot as plt import numpy as np from scipy.ndimage.filters import gaussian_filter from PIL import Image img1 = Image.open(r"fit to merge.png", mode='r') img2 = Image.open(r"base to merge.png") img1.paste(img2, ...
17.65
49
0.685552
0
0
0
0
0
0
0
0
123
0.348442
a9ee1cf8e130e1df16f5fb39574aa6241710e34f
1,081
py
Python
intake/serializers/application_transfer_serializer.py
cforlando/intake
a5233d5c0f862f28ee265b9b4831405aabeec7e2
[ "MIT" ]
51
2016-07-20T02:26:57.000Z
2021-07-07T14:45:06.000Z
intake/serializers/application_transfer_serializer.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1,091
2016-04-29T18:07:45.000Z
2021-04-19T18:39:39.000Z
intake/serializers/application_transfer_serializer.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
24
2016-06-14T18:10:43.000Z
2021-11-14T20:26:39.000Z
from intake import models from rest_framework import serializers from . import fields class IncomingTransferSerializer(serializers.ModelSerializer): organization_name = serializers.SerializerMethodField() author_name = serializers.SerializerMethodField() local_date = serializers.SerializerMethodField() ...
31.794118
67
0.715079
992
0.917669
0
0
0
0
0
0
74
0.068455
a9ee3e2d59a60ee5b5ca120d2e41aae3d0a460cf
256
py
Python
submissions/abc120/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc120/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc120/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
a, b, k = map(int, input().split()) mx = max(a, b) match, ans = 0, 0 for i in range(mx): if ((a % (mx - i)) == 0) and ((b % (mx - i)) == 0): match += 1 ans = mx - i if match == k: break print(ans)
18.285714
55
0.378906
0
0
0
0
0
0
0
0
0
0
a9ee7d9ddb02712f3efcfc4263b4574071d89f40
237
py
Python
src/server/handlers/issues.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/handlers/issues.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/handlers/issues.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from server.handlers.base import ListResource from server.models import Issue class IssueListResource(ListResource): @property def resource(self): return Issue @property def key(self): return "issues"
16.928571
45
0.696203
155
0.654008
0
0
106
0.447257
0
0
8
0.033755
a9efff0068d850b62f8833a3ca0a86fffd2e04fc
1,305
py
Python
muddery/server/elements/world_npc.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
127
2015-04-16T15:27:59.000Z
2022-03-10T08:35:37.000Z
muddery/server/elements/world_npc.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
14
2015-12-17T08:02:18.000Z
2022-01-30T15:15:38.000Z
muddery/server/elements/world_npc.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
54
2015-06-23T07:27:45.000Z
2022-02-22T01:46:05.000Z
""" None Player Characters Player Characters are (by default) Objects setup to be puppeted by Players. They are what you "see" in game. The Character class in this module is setup to be the "default" character type created by the default creation commands. """ from muddery.server.mappings.element_set import ELEMENT ...
28.369565
84
0.669732
847
0.649042
0
0
0
0
0
0
557
0.42682
a9f12a5d988555852c0080f8c8a1c4ce957aa4ba
14,149
py
Python
authors/apps/articles/test/test_create_articles.py
Kasulejoseph/ah-backend-athena
016810d6a2391ae45985b4d43003e51ada1e81be
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/test/test_create_articles.py
Kasulejoseph/ah-backend-athena
016810d6a2391ae45985b4d43003e51ada1e81be
[ "BSD-3-Clause" ]
31
2018-11-26T17:42:35.000Z
2022-03-11T23:36:55.000Z
authors/apps/articles/test/test_create_articles.py
Kasulejoseph/ah-backend-athena
016810d6a2391ae45985b4d43003e51ada1e81be
[ "BSD-3-Clause" ]
6
2018-11-23T09:55:02.000Z
2021-06-17T15:18:49.000Z
import json from .base import BaseTestArticles from rest_framework.views import status from ..models import Article from ...authentication.models import User from ....apps.profiles.models import Profile class TestArticles(BaseTestArticles): def data3_user_jwt(self): return User.objects.create_user(**self...
41.250729
82
0.627111
13,942
0.98537
0
0
0
0
0
0
2,118
0.149693
a9f3f3be1654fa48f8d6c06923796e334d80d0ec
7,135
py
Python
davan/http/service/presence/PresenceMgrService.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
davan/http/service/presence/PresenceMgrService.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
davan/http/service/presence/PresenceMgrService.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
''' @author: davandev ''' import logging import os import urllib import datetime from threading import Thread,Event import davan.config.config_creator as configuration import davan.http.service.presence.url_helper as url_util import davan.util.constants as constants import davan.util.cmd_executor as cmd_exec...
37.952128
140
0.569306
6,188
0.867274
0
0
0
0
0
0
1,761
0.246811
a9f61c14f73a64dee1f29930eb0caeda4f5890cd
815
py
Python
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
from __future__ import print_function import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator def test_glm_plot(): training_data = h2o.import_file(pyunit_utils.locate("smalldata/logreg/benign.csv")) Y = 3 X = [0, 1, ...
30.185185
87
0.687117
0
0
0
0
0
0
0
0
150
0.184049
a9f972e3f0ce11289703edace28d7d79fca045c9
4,521
py
Python
tutorials/03_exact_integration_simple.py
TruongQuocChien/FFTHomPy
2c23c80dd2cab46f1090103e613b4f886b3daac7
[ "MIT" ]
18
2015-03-14T20:08:57.000Z
2021-01-25T11:08:40.000Z
tutorials/03_exact_integration_simple.py
vondrejc/FFTHomPy
2c23c80dd2cab46f1090103e613b4f886b3daac7
[ "MIT" ]
null
null
null
tutorials/03_exact_integration_simple.py
vondrejc/FFTHomPy
2c23c80dd2cab46f1090103e613b4f886b3daac7
[ "MIT" ]
10
2015-08-31T20:18:13.000Z
2021-06-03T10:20:57.000Z
from __future__ import division, print_function print(""" Numerical homogenisation based on exact integration, which is described in J. Vondrejc, Improved guaranteed computable bounds on homogenized properties of periodic media by FourierGalerkin method with exact integration, Int. J. Numer. Methods Eng., 2016. This ...
39.313043
110
0.656492
0
0
0
0
0
0
0
0
1,736
0.383986
a9f9c4d3526307e32a5500958c3dd33e1cedd8eb
2,289
py
Python
pipeline/io/xml.py
probonas/pipeline
96f565f2d827498efd31a7e76b74e0394ef2abc1
[ "Apache-2.0" ]
5
2020-04-11T15:12:07.000Z
2021-09-13T04:15:47.000Z
pipeline/io/xml.py
probonas/pipeline
96f565f2d827498efd31a7e76b74e0394ef2abc1
[ "Apache-2.0" ]
46
2019-04-22T20:36:40.000Z
2022-01-12T18:03:32.000Z
pipeline/io/xml.py
probonas/pipeline
96f565f2d827498efd31a7e76b74e0394ef2abc1
[ "Apache-2.0" ]
2
2020-05-27T20:49:53.000Z
2021-03-17T04:21:38.000Z
import sys import lxml.etree from bonobo.constants import NOT_MODIFIED from bonobo.nodes.io.file import FileReader from bonobo.config import Configurable, Option, Service class XMLReader(FileReader): ''' A FileReader that parses an XML file and yields lxml.etree Element objects matching the given XPath expression....
23.121212
85
0.676715
1,920
0.838794
607
0.265181
0
0
0
0
571
0.249454
a9fac466d61fa4e1209093752784a51baa09d5f3
3,063
py
Python
YukkiMusic/utils/formatters.py
VasuXD/YukkiMusicBot
d7fdbd46d9fc793daedf624fa34fe644119bcb25
[ "MIT" ]
null
null
null
YukkiMusic/utils/formatters.py
VasuXD/YukkiMusicBot
d7fdbd46d9fc793daedf624fa34fe644119bcb25
[ "MIT" ]
null
null
null
YukkiMusic/utils/formatters.py
VasuXD/YukkiMusicBot
d7fdbd46d9fc793daedf624fa34fe644119bcb25
[ "MIT" ]
null
null
null
# # Copyright (C) 2021-2022 by TeamYukki@Github, < https://github.com/TeamYukki >. # # This file is part of < https://github.com/TeamYukki/YukkiMusicBot > project, # and is released under the "GNU v3.0 License Agreement". # Please see < https://github.com/TeamYukki/YukkiMusicBot/blob/master/LICENSE > # # All rights res...
22.195652
80
0.501469
0
0
0
0
0
0
499
0.162912
728
0.237675
a9fc4f5e65a9e9ec49c824da6ceb7e54ae1603c4
316
py
Python
kubernetes_typed/client/models/v1_typed_local_object_reference.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_typed_local_object_reference.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_typed_local_object_reference.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1TypedLocalObjectReferenceDict generated type.""" from typing import TypedDict V1TypedLocalObjectReferenceDict = TypedDict( "V1TypedLocalObjectReferenceDict", { "apiGroup": str, "kind": str, "name": str, }, total=False, )
22.571429
53
0.667722
0
0
0
0
0
0
0
0
156
0.493671
a9fcc66dd61126cc0745ff31b6efb944d4f0b8ed
271
py
Python
backend/system/__init__.py
red23495/maya
8ac042982ffb803a8e1499c06a3957e93de2343a
[ "MIT" ]
null
null
null
backend/system/__init__.py
red23495/maya
8ac042982ffb803a8e1499c06a3957e93de2343a
[ "MIT" ]
null
null
null
backend/system/__init__.py
red23495/maya
8ac042982ffb803a8e1499c06a3957e93de2343a
[ "MIT" ]
null
null
null
from .context import GlobalContext from .dao import BaseDao from .model import BaseModel from .service import BaseService from .schema import BaseSchema, DeleteSchema, DeleteResponseSchema, ListSchema from .crud import BaseCrud from .message_generator import get_message
33.875
78
0.848708
0
0
0
0
0
0
0
0
0
0
a9fea1cdc53e3c61b7fd002e8743d6e65365ae7f
3,742
py
Python
karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2021-05-23T01:48:25.000Z
2021-05-23T01:48:25.000Z
karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.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 # d...
35.980769
78
0.646713
3,044
0.813469
0
0
0
0
0
0
759
0.202833
a9fec7c77af3629a8aa1a529833cc19bcd959e3d
7,309
py
Python
config/custom_components/huesyncbox/__init__.py
LRvdLinden/homeassistant-config
4f0e8bb08329b8af08fc90cb1699a9314e297ab7
[ "MIT" ]
288
2021-04-27T07:25:04.000Z
2022-03-23T14:38:36.000Z
config/custom_components/huesyncbox/__init__.py
givemhell/homeassistant-config
8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a
[ "MIT" ]
6
2021-04-30T10:47:24.000Z
2022-01-12T01:14:15.000Z
config/custom_components/huesyncbox/__init__.py
givemhell/homeassistant-config
8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a
[ "MIT" ]
28
2021-04-30T23:58:07.000Z
2022-02-15T04:33:46.000Z
"""The Philips Hue Play HDMI Sync Box integration.""" import asyncio import logging import json import os import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import (config_validation as cv) from homeassistant.helpers.co...
39.722826
383
0.738131
0
0
0
0
0
0
4,821
0.659598
632
0.086469
a9fefe89a714c084a57a2cacbde52e00dfefc404
6,278
py
Python
examples/hubert/train.py
underdogliu/audio
38e530d77e5a194d4e5f91356cc1a191207a3b29
[ "BSD-2-Clause" ]
null
null
null
examples/hubert/train.py
underdogliu/audio
38e530d77e5a194d4e5f91356cc1a191207a3b29
[ "BSD-2-Clause" ]
null
null
null
examples/hubert/train.py
underdogliu/audio
38e530d77e5a194d4e5f91356cc1a191207a3b29
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """Train the HuBERTPretrainModel by using labels generated by KMeans clustering. Example: python train.py --root-path ./exp/data/mfcc/ --feature-type mfcc --num-classes 100 """ import logging import pathlib from argparse import ( ArgumentDefaultsHelpFormatter, ArgumentParser, RawDesc...
28.798165
113
0.624084
291
0.046352
0
0
0
0
0
0
2,025
0.322555
e7016a36ae131d4a62b304569a0a5345a17c8a87
495
py
Python
modeling/networks/proxylessnas.py
RunpeiDong/DGMS
1f6a7ca9f39a2bc31cfade1e45967b006ea6532d
[ "Apache-2.0" ]
2
2022-01-03T05:25:01.000Z
2022-01-06T23:08:50.000Z
modeling/networks/proxylessnas.py
RunpeiDong/DGMS
1f6a7ca9f39a2bc31cfade1e45967b006ea6532d
[ "Apache-2.0" ]
null
null
null
modeling/networks/proxylessnas.py
RunpeiDong/DGMS
1f6a7ca9f39a2bc31cfade1e45967b006ea6532d
[ "Apache-2.0" ]
1
2022-02-28T01:13:30.000Z
2022-02-28T01:13:30.000Z
import torch def proxyless_nas_mobile(args): target_platform = "proxyless_mobile" # proxyless_gpu, proxyless_mobile, proxyless_mobile14 are also avaliable. if args.pretrained: model = torch.hub.load('mit-han-lab/ProxylessNAS', target_platform, pretrained=True) print("ImageNet pretrained Proxyle...
45
114
0.739394
0
0
0
0
0
0
0
0
223
0.450505
e701d8319474ec61648531dd3164c26ea90f0f94
3,504
py
Python
hellopy/test/utils/test.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
null
null
null
hellopy/test/utils/test.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
3
2021-04-17T18:36:24.000Z
2022-03-04T20:30:09.000Z
hellopy/test/utils/test.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
null
null
null
''' Created on 22 Dec 2019 @author: ody ''' import unittest from utils.Assrt import Eq, AssertErr, XdArrParser class Test(unittest.TestCase): def testArrEq(self): eq = Eq() try: eq.int2dArr([[]], [[1]]) self.fail("Error not checked") except AssertErr as e: ...
27.375
91
0.435788
3,291
0.939212
0
0
0
0
0
0
523
0.149258
e70273fea7d7bb9be6cfcea6ec6c16b42f763637
1,474
py
Python
home/migrations/0017_remove_restaurant_date_remove_restaurant_start_time_and_more.py
divyesh1099/goparty
7e2f189aa195824d31d349d25bdbe9c853209a42
[ "MIT" ]
null
null
null
home/migrations/0017_remove_restaurant_date_remove_restaurant_start_time_and_more.py
divyesh1099/goparty
7e2f189aa195824d31d349d25bdbe9c853209a42
[ "MIT" ]
null
null
null
home/migrations/0017_remove_restaurant_date_remove_restaurant_start_time_and_more.py
divyesh1099/goparty
7e2f189aa195824d31d349d25bdbe9c853209a42
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-05-03 21:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0016_rename_restaurantfeatures_restaurantfeature'), ] operations = [ migrations.RemoveField( ...
30.708333
131
0.585482
1,348
0.914518
0
0
0
0
0
0
282
0.191316
e7038aeca649431fd026d3a0b2376ad105c16473
246
py
Python
source/menu.py
Azzy001/Login-Register_Tk
774538666992cee12797671bd56fcc0dde46c343
[ "MIT" ]
1
2022-02-01T15:46:51.000Z
2022-02-01T15:46:51.000Z
source/menu.py
Azzy001/Login-Register_Tk
774538666992cee12797671bd56fcc0dde46c343
[ "MIT" ]
null
null
null
source/menu.py
Azzy001/Login-Register_Tk
774538666992cee12797671bd56fcc0dde46c343
[ "MIT" ]
null
null
null
from tkinter import * window = Tk() def open_menu_window(): pass # Window configs window.title("Azzy001 : Menu Window") window.geometry("440x520") window.resizable(0, 0) window.attributes("-topmost", True) window.mainloop()
16.4
38
0.682927
0
0
0
0
0
0
0
0
59
0.239837
e705a57826a489b26a0995f0c679c1815e1975ce
701
py
Python
anagram.py
Tatooine-Soldier/Beginner_projects
d6c77793e5d58860318cc95e0aedaef6f4b128db
[ "Apache-2.0" ]
null
null
null
anagram.py
Tatooine-Soldier/Beginner_projects
d6c77793e5d58860318cc95e0aedaef6f4b128db
[ "Apache-2.0" ]
null
null
null
anagram.py
Tatooine-Soldier/Beginner_projects
d6c77793e5d58860318cc95e0aedaef6f4b128db
[ "Apache-2.0" ]
null
null
null
def anagram(s1, s2): result = False #set your base if len(s1) == len(s2): #can't be anagrams if diff length count = 0 #used to check for matches i = 0 while i < len(s1): #'outer loop' for s1 j = 0 while j < len(s2): #'inne...
36.894737
100
0.46933
0
0
0
0
0
0
0
0
259
0.369472
e706666948f0a275a5dbfc4777f61a9c59c85d96
2,298
py
Python
ping_pong.py
SteelAnge1/ping-pong
dfc5200f907e0d139649afcc880ea918dd6083f3
[ "CC0-1.0" ]
null
null
null
ping_pong.py
SteelAnge1/ping-pong
dfc5200f907e0d139649afcc880ea918dd6083f3
[ "CC0-1.0" ]
null
null
null
ping_pong.py
SteelAnge1/ping-pong
dfc5200f907e0d139649afcc880ea918dd6083f3
[ "CC0-1.0" ]
null
null
null
from pygame import * win_width=600 win_height=500 class GameSprite(sprite.Sprite): def __init__(self, player_image, player_x, player_y, size_x, size_y, player_speed ): super().__init__() self.image = transform.scale(image.load(player_image), (size_x, size_y)) self.speed = player_s...
26.72093
89
0.561793
963
0.41906
0
0
0
0
0
0
77
0.033507
e707604999bdeed189d1ba802afd56ed532a88c3
2,121
py
Python
companies/admin.py
Valuehorizon/valuehorizon-companies
5366e230da69ee30fcdc1bf4beddc99310f6b767
[ "MIT" ]
1
2015-09-28T17:11:12.000Z
2015-09-28T17:11:12.000Z
companies/admin.py
Valuehorizon/valuehorizon-companies
5366e230da69ee30fcdc1bf4beddc99310f6b767
[ "MIT" ]
4
2020-02-11T22:59:54.000Z
2021-06-10T17:55:15.000Z
companies/admin.py
Valuehorizon/valuehorizon-companies
5366e230da69ee30fcdc1bf4beddc99310f6b767
[ "MIT" ]
null
null
null
from django.contrib import admin from datetime import * from companies.models import Sector, IndustryGroup, Industry, SubIndustry from companies.models import Company, Ownership, Director, Executive, CompanyNameChange class SectorAdmin(admin.ModelAdmin): search_fields=["name",] list_display = ('name', 'sym...
35.949153
101
0.754833
1,433
0.675625
0
0
0
0
0
0
491
0.231495
e708f0f5533cb309985218c0e13c8f1882c1ecf0
2,234
py
Python
ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py
aolieman/open-raadsinformatie
66469fc924fb0d312607afe998d271bf6f55c9d6
[ "MIT" ]
23
2015-10-28T09:02:41.000Z
2021-12-15T08:40:41.000Z
ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py
aolieman/open-raadsinformatie
66469fc924fb0d312607afe998d271bf6f55c9d6
[ "MIT" ]
326
2015-11-03T12:59:48.000Z
2022-03-11T23:18:14.000Z
ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py
aolieman/open-raadsinformatie
66469fc924fb0d312607afe998d271bf6f55c9d6
[ "MIT" ]
10
2016-02-05T08:43:07.000Z
2022-03-09T10:04:32.000Z
import operator import requests from ocd_backend.enrichers.text_enricher.tasks import BaseEnrichmentTask from ocd_backend.models.definitions import Meeting as MeetingNS, Rdf from ocd_backend.models.misc import Uri from ocd_backend.settings import ORI_CLASSIFIER_HOST, ORI_CLASSIFIER_PORT from ocd_backend.utils.http imp...
32.376812
107
0.608774
1,799
0.805282
0
0
0
0
0
0
331
0.148165
e70abdf746f94ff1be56b5f084ab1342ab7e56e2
3,465
py
Python
src/model/mlp.py
statsu1990/yoto_class_balanced_loss
d05c97c6cea08efa431d458897199bf940bce4a7
[ "MIT" ]
13
2020-05-04T01:19:32.000Z
2022-03-09T03:03:01.000Z
src/model/mlp.py
statsu1990/yoto_class_balanced_loss
d05c97c6cea08efa431d458897199bf940bce4a7
[ "MIT" ]
1
2020-12-17T00:58:42.000Z
2020-12-17T01:56:33.000Z
src/model/mlp.py
statsu1990/yoto_class_balanced_loss
d05c97c6cea08efa431d458897199bf940bce4a7
[ "MIT" ]
3
2020-07-01T06:14:24.000Z
2022-01-06T04:08:48.000Z
""" YOU ONLY TRAIN ONCE: LOSS-CONDITIONAL TRAINING OF DEEP NETWORKS # https://openreview.net/pdf?id=HyxY6JHKwr For YOTO models, we condition the last layer of each convolutional block. The conditioning MLP has one hidden layer with 256 units on Shapes3D and 512 units on CIFAR-10. At training time we sample the...
33.317308
104
0.583261
2,799
0.807093
0
0
0
0
0
0
754
0.217416
e70bb3a04a1fd426e40b7909cae8bda16260e6c6
1,067
py
Python
pyenv/lib/python3.6/_weakrefset.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
null
null
null
pyenv/lib/python3.6/_weakrefset.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
3
2020-03-23T18:01:51.000Z
2021-03-19T23:15:15.000Z
pyenv/lib/python3.6/_weakrefset.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
null
null
null
XSym 0078 350008fd8e0cf4fdaa063759c1fd071b /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_weakrefset.py ...
213.4
945
0.099344
0
0
0
0
0
0
0
0
0
0
e70f113a220c3f243ab0f7dd157ded80f7e74758
4,616
py
Python
util/counter.py
FadedCosine/POS-Guided-Neural-Text-Generation
2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505
[ "Apache-2.0" ]
2
2021-06-23T08:52:20.000Z
2021-06-23T08:52:31.000Z
util/counter.py
FadedCosine/POS-Guided-Neural-Text-Generation
2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505
[ "Apache-2.0" ]
null
null
null
util/counter.py
FadedCosine/POS-Guided-Neural-Text-Generation
2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505
[ "Apache-2.0" ]
null
null
null
import collections import pandas as pd import numpy as np import re import os def count(fl,target='input_context',checks='input_keyword', vocab_size=10000): cnter = collections.Counter() s = set() for filename in fl: cur_df = pd.read_pickle(filename) texts = cur_df[target].tolist() ...
27.807229
95
0.581672
0
0
0
0
0
0
0
0
86
0.018631
e71022164013af8d4affab42a89cbbb9cbc78af8
250
py
Python
Ex02.py
ErickTeixeira777/Python-3
5bd886d13e8118bba556d499ecd6841e9cdb5e9f
[ "MIT" ]
null
null
null
Ex02.py
ErickTeixeira777/Python-3
5bd886d13e8118bba556d499ecd6841e9cdb5e9f
[ "MIT" ]
null
null
null
Ex02.py
ErickTeixeira777/Python-3
5bd886d13e8118bba556d499ecd6841e9cdb5e9f
[ "MIT" ]
null
null
null
# Aula 06-A # Tipos Primitivos e Saída de Dados n1 = int(input('\033[0;30;47mDigite um número:\033[m')) n2 = int(input('\033[0;30;47mDigite outro número:\033[m')) s = n1 + n2 print('\033[4;36;40mA soma entre {} e {} vale {}\033[m'.format(n1, n2, s))
41.666667
74
0.644
0
0
0
0
0
0
0
0
178
0.703557
e711732a95edbbd28e9325c694a3258b0896d4c9
3,304
py
Python
importkit/import_/tests/test_proxy.py
sprymix/importkit
72702fd6150ef9b470c986061ff976bc814463c8
[ "MIT" ]
2
2015-04-25T09:04:10.000Z
2018-05-04T18:03:19.000Z
importkit/import_/tests/test_proxy.py
sprymix/importkit
72702fd6150ef9b470c986061ff976bc814463c8
[ "MIT" ]
null
null
null
importkit/import_/tests/test_proxy.py
sprymix/importkit
72702fd6150ef9b470c986061ff976bc814463c8
[ "MIT" ]
null
null
null
## # Copyright (c) 2012 Sprymix Inc. # All rights reserved. # # See LICENSE for details. ## import importlib import pickle import sys import types import unittest from importkit.import_ import module as module_utils from importkit.import_ import utils as import_utils class TestLangImportModuleProxy(unittest.TestCa...
29.5
99
0.664346
3,030
0.91707
0
0
0
0
0
0
348
0.105327
e7118f625a826be6f20337e189488ef58415fddb
1,972
py
Python
sdk/python/tests/compiler/testdata/tekton_loop_dsl.py
kubeflow/kfp-tekton
b16bd8863aaf36de240b7306f501d62b95f01f31
[ "Apache-2.0" ]
102
2019-10-23T20:35:41.000Z
2022-03-27T10:28:56.000Z
sdk/python/tests/compiler/testdata/tekton_loop_dsl.py
kubeflow/kfp-tekton
b16bd8863aaf36de240b7306f501d62b95f01f31
[ "Apache-2.0" ]
891
2019-10-24T04:08:17.000Z
2022-03-31T22:45:40.000Z
sdk/python/tests/compiler/testdata/tekton_loop_dsl.py
kubeflow/kfp-tekton
b16bd8863aaf36de240b7306f501d62b95f01f31
[ "Apache-2.0" ]
85
2019-10-24T04:04:36.000Z
2022-03-01T10:52:57.000Z
# Copyright 2021 kubeflow.org # # 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...
34
76
0.674949
0
0
0
0
806
0.408722
0
0
1,328
0.673428
e7146df9c79e95a75dba56942c81b49fcbfb3769
17,700
py
Python
azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.859155
192
0.668192
17,090
0.965537
0
0
0
0
0
0
9,511
0.537345
e71491f4cb9bb7378a6de6ac09af125d71edaa4c
317
py
Python
Problem1/Collections/DefaultDict Tutorial.py
Joanna-O-Ben/ADM-HW1
0a914d4ab5462fa563980644d3f5d777af61aef9
[ "MIT" ]
null
null
null
Problem1/Collections/DefaultDict Tutorial.py
Joanna-O-Ben/ADM-HW1
0a914d4ab5462fa563980644d3f5d777af61aef9
[ "MIT" ]
null
null
null
Problem1/Collections/DefaultDict Tutorial.py
Joanna-O-Ben/ADM-HW1
0a914d4ab5462fa563980644d3f5d777af61aef9
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from collections import defaultdict n, m = map(int, input().split()) d = defaultdict(lambda: -1) for i in range(1, n+1): word = input() d[word] = d[word] + ' ' + str(i) if word in d else str(i) for _ in range(m): print(d[input()])
22.642857
69
0.630915
0
0
0
0
0
0
0
0
72
0.227129
e715ae23973f203c68cfe998932183b2bad3bee2
6,966
py
Python
excptr/excptr.py
kakkarja/Excptr
2ed1b40da339130eb15770c1cc91e94e3a17690f
[ "BSD-3-Clause" ]
null
null
null
excptr/excptr.py
kakkarja/Excptr
2ed1b40da339130eb15770c1cc91e94e3a17690f
[ "BSD-3-Clause" ]
null
null
null
excptr/excptr.py
kakkarja/Excptr
2ed1b40da339130eb15770c1cc91e94e3a17690f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2022, KarjaKAK # All rights reserved. from functools import wraps from textwrap import fill from contextlib import redirect_stdout from datetime import datetime as dt import io, inspect, os, sys __all__ = [''] DIRPATH = ( os.environ["USERPROFILE"] if sys.platform.startsw...
30.419214
87
0.47617
0
0
0
0
1,635
0.234711
0
0
1,364
0.195808
e715d497f6c98d297a4d39a0e91d8045bc2c4af4
81
py
Python
ims/apps.py
lcneo/ims
94fc8a1dea0278acdde8599224c0a7c8d54d758c
[ "MIT" ]
8
2020-10-02T02:41:12.000Z
2021-09-22T08:37:26.000Z
ims/apps.py
lcneo/ims
94fc8a1dea0278acdde8599224c0a7c8d54d758c
[ "MIT" ]
15
2021-03-19T03:43:56.000Z
2022-03-12T00:30:55.000Z
ims/apps.py
hisham2k9/IMS-and-CAPA
9f70988a6411c72ab4f0cbc818b84db58a28076f
[ "MIT" ]
2
2018-12-22T20:19:13.000Z
2020-09-02T07:32:21.000Z
from django.apps import AppConfig class ImsConfig(AppConfig): name = 'ims'
13.5
33
0.728395
44
0.54321
0
0
0
0
0
0
5
0.061728
e71644cfb5d102b2cef3ef1c0dbff7833919d707
772
py
Python
transports/validators.py
I-TECH-UW/mwachx
e191755c3369208d678fceec68dbb4f5f51c453a
[ "Apache-2.0" ]
3
2015-05-27T14:35:49.000Z
2016-02-26T21:04:32.000Z
transports/validators.py
tperrier/mwachx
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
[ "Apache-2.0" ]
375
2015-01-31T10:08:34.000Z
2021-06-10T19:44:21.000Z
transports/validators.py
I-TECH-UW/mwachx
e191755c3369208d678fceec68dbb4f5f51c453a
[ "Apache-2.0" ]
6
2016-01-10T19:52:41.000Z
2020-06-15T22:07:24.000Z
class Validator(object): def __init__(self,name,check=None,action=None): self.name = '{0}_validator'.format(name) self.check = check self.action = action def __call__(self,message): return self.check(message) def set(self,action): if not (action == 'check' or actio...
30.88
80
0.626943
769
0.996114
0
0
0
0
0
0
81
0.104922
e716eb4f5f13801172dc0b217aa846ea2a03b1b0
25,735
py
Python
PyU4V/tests/unit_tests/test_pyu4v_system.py
SiSTm1/PyU4V
ce9784fc5f8192024cfa42509b8d45583b83f01d
[ "MIT" ]
19
2020-01-06T12:02:25.000Z
2021-12-14T06:50:04.000Z
PyU4V/tests/unit_tests/test_pyu4v_system.py
SiSTm1/PyU4V
ce9784fc5f8192024cfa42509b8d45583b83f01d
[ "MIT" ]
53
2019-12-17T17:26:44.000Z
2022-02-03T12:28:34.000Z
PyU4V/tests/unit_tests/test_pyu4v_system.py
SiSTm1/PyU4V
ce9784fc5f8192024cfa42509b8d45583b83f01d
[ "MIT" ]
11
2020-05-24T14:42:46.000Z
2022-03-02T16:30:57.000Z
# Copyright (c) 2020 Dell Inc. or its subsidiaries. # # 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...
46.790909
79
0.674956
24,056
0.934758
0
0
9,958
0.386944
0
0
4,400
0.170973
e7184bb619f9cf0c50a0b0b91431faa51ba55646
4,968
py
Python
fbms/create_fg_bg_masks.py
MSiam/segment-any-moving
82cb782867d866d2f4eb68230edb75f613e15a02
[ "Apache-2.0" ]
70
2019-09-16T17:55:55.000Z
2022-03-07T00:26:53.000Z
fbms/create_fg_bg_masks.py
MSiam/segment-any-moving
82cb782867d866d2f4eb68230edb75f613e15a02
[ "Apache-2.0" ]
9
2019-09-30T09:15:11.000Z
2021-07-21T11:33:13.000Z
fbms/create_fg_bg_masks.py
MSiam/segment-any-moving
82cb782867d866d2f4eb68230edb75f613e15a02
[ "Apache-2.0" ]
5
2019-09-25T05:14:37.000Z
2021-07-08T20:13:47.000Z
"""Create foreground/background motion masks from detections.""" import argparse import logging import pickle import pprint from pathlib import Path import numpy as np from PIL import Image import pycocotools.mask as mask_util from utils.fbms import utils as fbms_utils from utils.log import add_time_to_path, setup_...
35.741007
78
0.652576
0
0
0
0
0
0
0
0
861
0.173309
e7192a652cc3b4f56fd8f1600fe41d11e8eebf58
221
py
Python
tests/file_to_strip.py
smok-serwis/strip-docs
17ceb3aef9b3a8b9f80592da51cd8162edfc7600
[ "MIT" ]
null
null
null
tests/file_to_strip.py
smok-serwis/strip-docs
17ceb3aef9b3a8b9f80592da51cd8162edfc7600
[ "MIT" ]
null
null
null
tests/file_to_strip.py
smok-serwis/strip-docs
17ceb3aef9b3a8b9f80592da51cd8162edfc7600
[ "MIT" ]
null
null
null
""" Strip me """ class EmptyClass(object): """Strip me""" pass def empty_method(self): """Strip me""" pass def empty_routine(): """ Strip me :return: nothing """ pass
10.045455
27
0.493213
118
0.533937
0
0
0
0
0
0
90
0.40724
e71995c893a9d316253ea7bd48b5f5659ea3fec1
1,669
py
Python
src/dispatch/plugins/dispatch_google/common.py
jason-azze/dispatch
56a9435d08b32429c6b44f83cb0f5aff5a8b6931
[ "Apache-2.0" ]
null
null
null
src/dispatch/plugins/dispatch_google/common.py
jason-azze/dispatch
56a9435d08b32429c6b44f83cb0f5aff5a8b6931
[ "Apache-2.0" ]
2
2021-03-11T04:29:11.000Z
2021-10-06T21:12:45.000Z
src/dispatch/plugins/dispatch_google/common.py
jason-azze/dispatch
56a9435d08b32429c6b44f83cb0f5aff5a8b6931
[ "Apache-2.0" ]
null
null
null
import json import socket import tempfile from google.oauth2 import service_account import googleapiclient.discovery from .config import ( GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL, GOOGLE_SERVICE_ACCOUNT_CLIENT_ID, GOOGLE_SERVICE_ACCOUNT_DELAGATED_ACCOUNT, GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY, GOOGLE_SER...
32.096154
98
0.732774
0
0
0
0
0
0
0
0
201
0.120431
e719d280906322349a44262ff73a7f9f71dcec17
511
py
Python
web_app/main.py
dimagi/commcare-fhir-web-app
c0afec94a177b79ee8314ac29692d0697567e1f2
[ "Apache-2.0" ]
null
null
null
web_app/main.py
dimagi/commcare-fhir-web-app
c0afec94a177b79ee8314ac29692d0697567e1f2
[ "Apache-2.0" ]
3
2021-04-19T16:03:45.000Z
2021-05-06T11:11:21.000Z
web_app/main.py
dimagi/commcare-fhir-web-app
c0afec94a177b79ee8314ac29692d0697567e1f2
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request from web_app.fhir_client import fetch_patient_data app = Flask(__name__) @app.route('/') def root(): return render_template('root.html') @app.route('/patient/') def view_patient(): patient_id = request.args['patient_id'] patient, observations, diag_rep...
22.217391
72
0.708415
0
0
0
0
380
0.74364
0
0
51
0.099804
e71b58e87dfbb0a1a266b2ea42679908ef474085
1,070
py
Python
plugml/dao.py
mkraemer67/plugml
d1702a2b733e0511c735fea08e30b5b3f959a174
[ "Apache-2.0" ]
1
2015-03-26T13:28:47.000Z
2015-03-26T13:28:47.000Z
plugml/dao.py
mkraemer67/plugml
d1702a2b733e0511c735fea08e30b5b3f959a174
[ "Apache-2.0" ]
null
null
null
plugml/dao.py
mkraemer67/plugml
d1702a2b733e0511c735fea08e30b5b3f959a174
[ "Apache-2.0" ]
null
null
null
import psycopg2 class Dao: def __init__(self, dbUrl): self._url = dbUrl def __enter__(self): conn = psycopg2.connect(self._url) self.conn = conn class _Dao: def get(self, table, orderBy="id", limit=None): cursor = conn.cursor() ...
32.424242
72
0.447664
1,051
0.982243
0
0
0
0
0
0
104
0.097196
e71d0f0f5c085420788077efbcac474df2e59445
57
py
Python
align_images/__init__.py
ArcturusB/align_images
7bf0348e17db4172bc4ddd259d8a9dfbe9eca0e7
[ "Unlicense" ]
1
2019-06-21T05:11:34.000Z
2019-06-21T05:11:34.000Z
align_images/__init__.py
ArcturusB/align_images
7bf0348e17db4172bc4ddd259d8a9dfbe9eca0e7
[ "Unlicense" ]
null
null
null
align_images/__init__.py
ArcturusB/align_images
7bf0348e17db4172bc4ddd259d8a9dfbe9eca0e7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from . import align, cc2d, tools
14.25
32
0.701754
0
0
0
0
0
0
0
0
22
0.385965
e71fe0afc69089b13f571b743733ac7787ae15e6
394
py
Python
website/models/home_tab.py
LKKTGB/lkk-website
d9cd2f5a11f2b4316ea4b242c5e09981207abdfb
[ "MIT" ]
null
null
null
website/models/home_tab.py
LKKTGB/lkk-website
d9cd2f5a11f2b4316ea4b242c5e09981207abdfb
[ "MIT" ]
5
2020-04-26T09:03:33.000Z
2022-02-02T13:00:39.000Z
website/models/home_tab.py
LKKTGB/lkk-website
d9cd2f5a11f2b4316ea4b242c5e09981207abdfb
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ class HomeTab(models.Model): name = models.CharField(_('home_tab_name'), max_length=100) order = models.PositiveSmallIntegerField(_('home_tab_order')) class Meta: verbose_name = _('home_tab') verbose_name...
26.266667
65
0.708122
306
0.77665
0
0
0
0
0
0
52
0.13198
e720bfb7b582ffd688d460b748233b9c2140ca6a
1,528
py
Python
kite-python/kite_ml/kite/infer_keyword/classifier.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-python/kite_ml/kite/infer_keyword/classifier.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-python/kite_ml/kite/infer_keyword/classifier.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
import tensorflow as tf class SoftmaxClassifier(object): # x should have a shape of [batch size, encoded feature size] def __init__(self, x: tf.Tensor, n_categories: int, scope: str): with tf.name_scope(scope): self.labels: tf.Tensor = tf.placeholder(tf.int64, [None], name='labels') # sha...
52.689655
119
0.645942
1,501
0.98233
0
0
0
0
0
0
409
0.26767
e722c1eb1d2bea4a1f19801458516ddedaac5629
226
py
Python
001146StepikPyBegin/Stepik001146PyBeginсh04p01st12C09_v06_Ivan_Merzlyakov_20200413.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh04p01st12C09_v06_Ivan_Merzlyakov_20200413.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh04p01st12C09_v06_Ivan_Merzlyakov_20200413.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
# https://stepik.org/lesson/265081/step/12?discussion=1542627&thread=solutions&unit=246029 s, a, b, c = 0, int(input()), int(input()), int(input()) s += a if a > 0 else 0 s += b if b > 0 else 0 s += c if c > 0 else 0 print(s)
32.285714
90
0.628319
0
0
0
0
0
0
0
0
90
0.39823
e722cecb5e5dea00739adffd75f58caf64344e85
171
py
Python
assets/tuned/daemon/tuned/version.py
marioferh/cluster-node-tuning-operator
c0a64236e2083739e0b560f0bf75f65859df059e
[ "Apache-2.0" ]
null
null
null
assets/tuned/daemon/tuned/version.py
marioferh/cluster-node-tuning-operator
c0a64236e2083739e0b560f0bf75f65859df059e
[ "Apache-2.0" ]
null
null
null
assets/tuned/daemon/tuned/version.py
marioferh/cluster-node-tuning-operator
c0a64236e2083739e0b560f0bf75f65859df059e
[ "Apache-2.0" ]
2
2022-02-02T11:46:53.000Z
2022-02-02T11:51:57.000Z
TUNED_VERSION_MAJOR = 2 TUNED_VERSION_MINOR = 18 TUNED_VERSION_PATCH = 0 TUNED_VERSION_STR = "%d.%d.%d" % (TUNED_VERSION_MAJOR, TUNED_VERSION_MINOR, TUNED_VERSION_PATCH)
28.5
96
0.807018
0
0
0
0
0
0
0
0
10
0.05848
e723fc68b936a185b342791de1bcfa8bea088d91
1,550
py
Python
pages/process.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
null
null
null
pages/process.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
1
2021-08-23T21:22:51.000Z
2021-08-23T21:22:51.000Z
pages/process.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
null
null
null
''' blog space for collaborative and model development process RJProcess ''' # Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app # 1 column layout...
26.271186
212
0.687742
0
0
0
0
0
0
0
0
1,161
0.749032
e725e18e3a277e1d976adc5ce8f0c78b09bd922e
999
py
Python
pro_tes/ga4gh/tes/endpoints/utils.py
Ayush5120/proTES
5bf1a7394b7c528f6d5a5dc38c05689262ae033a
[ "Apache-2.0" ]
2
2020-02-14T18:41:08.000Z
2020-02-17T06:56:10.000Z
pro_tes/ga4gh/tes/endpoints/utils.py
Ayush5120/proTES
5bf1a7394b7c528f6d5a5dc38c05689262ae033a
[ "Apache-2.0" ]
22
2018-11-15T18:17:09.000Z
2019-11-21T14:14:40.000Z
pro_tes/ga4gh/tes/endpoints/utils.py
Ayush5120/proTES
5bf1a7394b7c528f6d5a5dc38c05689262ae033a
[ "Apache-2.0" ]
3
2020-03-25T11:28:40.000Z
2022-03-16T09:41:59.000Z
def # Set access token if authorization required: try: access_token = request_access_token( user_id=document['user_id'], token_endpoint=endpoint_params['token_endpoint'], timeout=endpoint_params['timeout_token_request'], ) ...
34.448276
78
0.502503
0
0
0
0
0
0
0
0
217
0.217217
e72663b878c8d9076da42c6d7b5d2a0e8a31201f
26
py
Python
code/src/__init__.py
nzw0301/Understanding-Negative-Samples-in-Instance-Discriminative-Self-supervised-Representation-Learning
957173bd8ec5b5e00994099d8b4467c74b802303
[ "MIT" ]
4
2021-10-06T07:04:43.000Z
2022-01-28T09:31:29.000Z
code/src/__init__.py
nzw0301/Understanding-Negative-Samples
957173bd8ec5b5e00994099d8b4467c74b802303
[ "MIT" ]
null
null
null
code/src/__init__.py
nzw0301/Understanding-Negative-Samples
957173bd8ec5b5e00994099d8b4467c74b802303
[ "MIT" ]
null
null
null
from .loss import NT_Xent
13
25
0.807692
0
0
0
0
0
0
0
0
0
0
e7266a839947e7bff99aab9ea7cf93fed2314c1b
84
py
Python
framework/rpibaremetal/connection/__init__.py
KisImre/rpi-bare-metal-prototyping-framework
ec3db9db3697ddfdd56e8883d34111981a4c38f7
[ "MIT" ]
null
null
null
framework/rpibaremetal/connection/__init__.py
KisImre/rpi-bare-metal-prototyping-framework
ec3db9db3697ddfdd56e8883d34111981a4c38f7
[ "MIT" ]
null
null
null
framework/rpibaremetal/connection/__init__.py
KisImre/rpi-bare-metal-prototyping-framework
ec3db9db3697ddfdd56e8883d34111981a4c38f7
[ "MIT" ]
null
null
null
# Copyright (c) 2020, Kis Imre. All rights reserved. # SPDX-License-Identifier: MIT
28
52
0.738095
0
0
0
0
0
0
0
0
82
0.97619
e726ce3420ac33849733ba1549bfbf5f6cbd4bab
2,085
py
Python
src/Chap13_Lab_PageRank.py
falconlee236/CodingTheMatrix-Answer
4fab8087bde352913da71c8d86b802a93231b1b5
[ "MIT" ]
null
null
null
src/Chap13_Lab_PageRank.py
falconlee236/CodingTheMatrix-Answer
4fab8087bde352913da71c8d86b802a93231b1b5
[ "MIT" ]
null
null
null
src/Chap13_Lab_PageRank.py
falconlee236/CodingTheMatrix-Answer
4fab8087bde352913da71c8d86b802a93231b1b5
[ "MIT" ]
null
null
null
from pagerank_test import small_links, A2 from pagerank import find_word, read_data from vec import Vec from mat import Mat from math import sqrt # Task 13.12.1 def find_num_links(L): return Vec(L.D[0], {key: 1 for key in L.D[0]}) * L # Task 13.12.2 def make_Markov(L): num_links = find_num_links(L) ...
20.441176
73
0.608633
0
0
0
0
0
0
0
0
161
0.077218
e7276f28ac4e072f7bd65b6f8eba2b3bc1b6fc22
4,695
py
Python
tasks/parsing/parsers.py
rasmusbergpalm/attend-copy-parse
4673be36db64e982ceabc1e29ff34a296917f969
[ "MIT" ]
8
2021-05-11T12:12:23.000Z
2022-02-10T09:56:14.000Z
tasks/parsing/parsers.py
karimcossentini/attend-copy-parse
4acbe7bfc2be1b5c21c197a44b27143a9422b426
[ "MIT" ]
3
2021-08-11T06:44:56.000Z
2022-03-14T09:16:03.000Z
tasks/parsing/parsers.py
rasmusbergpalm/attend-copy-parse
4673be36db64e982ceabc1e29ff34a296917f969
[ "MIT" ]
2
2021-05-22T07:41:21.000Z
2021-05-26T12:39:02.000Z
import tensorflow as tf from tensorflow.contrib import layers from tensorflow.contrib.cudnn_rnn import CudnnLSTM from tensorflow.contrib.cudnn_rnn.python.layers.cudnn_rnn import CUDNN_RNN_BIDIRECTION import os from tasks.acp.data import RealData class Parser: def parse(self, x, context, is_training): rais...
35.568182
140
0.613845
4,434
0.944409
0
0
0
0
0
0
775
0.165069
e72ac116e6c24e4369118ac69de62498b785f6e9
7,297
py
Python
scripts/etl/constants.py
lcbm/cs-data-viz
9272833b612b8921fe21b1196904e40f9e827e0e
[ "0BSD" ]
null
null
null
scripts/etl/constants.py
lcbm/cs-data-viz
9272833b612b8921fe21b1196904e40f9e827e0e
[ "0BSD" ]
null
null
null
scripts/etl/constants.py
lcbm/cs-data-viz
9272833b612b8921fe21b1196904e40f9e827e0e
[ "0BSD" ]
null
null
null
""" File with the definitions of constants for the ETL scripts. """ SCRIPTS_DIR = "scripts" SCRIPTS_ETL_DIR = f"{SCRIPTS_DIR}/etl" SCRIPTS_ETL_TRANSFORM = f"{SCRIPTS_ETL_DIR}/transform.sh" VENV_BIN = ".venv/bin" VENV_KAGGLE_BIN = f"{VENV_BIN}/kaggle" DOCKER_DIR = "docker" ENVARS_DIR = f"{DOCKER_DIR}/env.d" DATA_DIR =...
33.319635
93
0.771139
0
0
0
0
0
0
0
0
1,926
0.263944
e72ac9ee875861cb5ac036cb18ed4ef985d32680
3,262
py
Python
SouthernOceanTopography3D.py
cesar-rocha/SouthernOceanTopography
10e698e01e8435ae35ef028437d7a881fa3e5585
[ "MIT" ]
null
null
null
SouthernOceanTopography3D.py
cesar-rocha/SouthernOceanTopography
10e698e01e8435ae35ef028437d7a881fa3e5585
[ "MIT" ]
null
null
null
SouthernOceanTopography3D.py
cesar-rocha/SouthernOceanTopography
10e698e01e8435ae35ef028437d7a881fa3e5585
[ "MIT" ]
1
2020-12-11T02:15:56.000Z
2020-12-11T02:15:56.000Z
# coding: utf-8 # This script makes a 3D plot of the Southern Ocean topography. # # The data comes from some geophysiscists at Columbia. The product is "MGDS: Global Multi-Resolution Topography". These folks took all multibeam swath data that they can get their hands on and filled gaps with Smith and Sandwell. See ht...
23.467626
292
0.671061
0
0
0
0
0
0
0
0
952
0.291845
e72c41aab33604f2ec16e615d495812f5f5c7b37
139
py
Python
login/urls.py
JianPpan/untitled_ClassManagement
f6bd968823fc376ec1971ee9d2eece308287455a
[ "MulanPSL-1.0" ]
null
null
null
login/urls.py
JianPpan/untitled_ClassManagement
f6bd968823fc376ec1971ee9d2eece308287455a
[ "MulanPSL-1.0" ]
null
null
null
login/urls.py
JianPpan/untitled_ClassManagement
f6bd968823fc376ec1971ee9d2eece308287455a
[ "MulanPSL-1.0" ]
null
null
null
from django.conf.urls import url from login.views import login app_name = 'logins' urlpatterns = [ url(r'^$', login, name='login') ]
15.444444
35
0.683453
0
0
0
0
0
0
0
0
20
0.143885
e72e5ca0d5f1fd1ab089d27e8486d4e08350c674
2,136
py
Python
tests/performance_test.py
CMU-TBD/behavior_machine
b403192b8002603fc20c76713c7a9fe46a7ed686
[ "MIT" ]
1
2020-07-28T20:17:52.000Z
2020-07-28T20:17:52.000Z
tests/performance_test.py
CMU-TBD/behavior_machine
b403192b8002603fc20c76713c7a9fe46a7ed686
[ "MIT" ]
1
2021-01-25T15:54:45.000Z
2021-01-25T15:54:45.000Z
tests/performance_test.py
CMU-TBD/behavior_machine
b403192b8002603fc20c76713c7a9fe46a7ed686
[ "MIT" ]
1
2021-01-22T06:12:10.000Z
2021-01-22T06:12:10.000Z
from behavior_machine.library.parallel_state import ParallelState import time from behavior_machine.core import Board, StateStatus, State, Machine, machine from behavior_machine.library import IdleState def test_repeat_node_in_machine_fast(): counter = 0 class CounterState(State): def execute(self,...
27.384615
77
0.654963
472
0.220974
0
0
0
0
0
0
176
0.082397
e72eb1777b0eeb9d14e40c925b44ea47d54e32ca
289
py
Python
kubernetes_typed/client/models/v1_nfs_volume_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_nfs_volume_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_nfs_volume_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1NFSVolumeSourceDict generated type.""" from typing import TypedDict V1NFSVolumeSourceDict = TypedDict( "V1NFSVolumeSourceDict", { "path": str, "readOnly": bool, "server": str, }, total=False, )
20.642857
48
0.636678
0
0
0
0
0
0
0
0
138
0.477509
e72ec4ac47db8b60c5ca290dce90179f2358006a
3,580
py
Python
scdown/sc.py
chrisjr/scdown
fe82dce52884661297ecf640cd3ffd18c76ffc25
[ "MIT" ]
null
null
null
scdown/sc.py
chrisjr/scdown
fe82dce52884661297ecf640cd3ffd18c76ffc25
[ "MIT" ]
null
null
null
scdown/sc.py
chrisjr/scdown
fe82dce52884661297ecf640cd3ffd18c76ffc25
[ "MIT" ]
null
null
null
import soundcloud import os import logging from datetime import datetime import requests import sys from celeryconfig import mongolab import pymongo from pymongo import MongoClient from pymongo.errors import OperationFailure USER = '/users/{_id}' USER_TRACKS = '/users/{_id}/tracks' USER_FOLLOWINGS = '/users/{_id}/fol...
30.862069
75
0.572626
2,729
0.762291
0
0
0
0
0
0
472
0.131844
e730923173d6165ff991f322cce7b078b98b427d
3,163
py
Python
engine/api/gcp/tasks/system_add_new_usecase.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
1
2022-01-12T08:31:59.000Z
2022-01-12T08:31:59.000Z
engine/api/gcp/tasks/system_add_new_usecase.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
null
null
null
engine/api/gcp/tasks/system_add_new_usecase.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
2
2022-01-19T06:26:32.000Z
2022-01-26T15:25:15.000Z
from api.gcp.tasks.baseTask import baseTask from db.usecase.db_usecase_mgr import usecase_mgr from googleapiclient.errors import HttpError from utils.status_code import response_code import traceback import json import logging logger = logging.getLogger("main.api.gcp.tasks" + __name__) class system_add_new_usecase(bas...
44.549296
121
0.5773
2,875
0.908947
0
0
0
0
0
0
911
0.288018
e73096dd8b901862007a1822a67dd870b61cd04e
43,110
py
Python
tests/PyroTests/test_server.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
tests/PyroTests/test_server.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
tests/PyroTests/test_server.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
""" Tests for a running Pyro server, without timeouts. Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net). """ import time import sys import uuid import unittest import Pyro4.core import Pyro4.errors import Pyro4.util import Pyro4.message from Pyro4 import threadutil, curren...
42.767857
153
0.575389
42,587
0.987868
0
0
1,474
0.034192
0
0
7,415
0.172002
e731796d279cf969e12aff158cf9fea92faa20ea
1,394
py
Python
allies/management/commands/volley_ally.py
kevincornish/HeckGuide
eb974d6b589908f5fc2308d41032a48941cc3d21
[ "MIT" ]
4
2022-02-16T10:19:11.000Z
2022-03-17T03:34:26.000Z
allies/management/commands/volley_ally.py
kevincornish/HeckGuide
eb974d6b589908f5fc2308d41032a48941cc3d21
[ "MIT" ]
1
2022-02-17T14:02:31.000Z
2022-03-31T03:56:42.000Z
allies/management/commands/volley_ally.py
kevincornish/HeckGuide
eb974d6b589908f5fc2308d41032a48941cc3d21
[ "MIT" ]
3
2022-02-17T06:13:52.000Z
2022-03-23T21:37:21.000Z
from django.core.management.base import BaseCommand, CommandError from api import HeckfireApi, TokenException from django.conf import settings import logging logger = logging.getLogger(__name__) class Command(BaseCommand): help = 'Volly an ally via supplied username' def add_arguments(self, parser): pa...
38.722222
82
0.607604
1,199
0.860115
0
0
0
0
0
0
395
0.283357
e73755fa550829d883f1573e3aa8b34fc04f814e
7,030
py
Python
src/tabnet/sparsemax.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
src/tabnet/sparsemax.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
src/tabnet/sparsemax.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
from typing import Any, Tuple, Union import torch import torch.nn as nn from entmax import entmax_bisect class _Sparsemax1(torch.autograd.Function): """adapted from https://github.com/aced125/sparsemax/tree/master/sparsemax""" @staticmethod def forward(ctx: Any, input: torch.Tensor, dim: int = -1) -> to...
32.100457
117
0.616074
6,912
0.983215
0
0
5,697
0.810384
0
0
2,088
0.297013
e737a6ff2ca452102fe4ae2d50a7bb2e06a1ab1b
1,423
py
Python
subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py
UtopiaLLC/subseasonal_toolkit
35e120a010606d10a7d94cdfbf4cb8347a234dfb
[ "MIT" ]
2
2021-10-02T07:37:52.000Z
2022-01-27T07:46:31.000Z
subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py
UtopiaLLC/subseasonal_toolkit
35e120a010606d10a7d94cdfbf4cb8347a234dfb
[ "MIT" ]
null
null
null
subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py
UtopiaLLC/subseasonal_toolkit
35e120a010606d10a7d94cdfbf4cb8347a234dfb
[ "MIT" ]
3
2021-09-27T16:53:35.000Z
2021-12-27T21:39:07.000Z
from scipy.spatial.distance import cdist, euclidean def geometric_median(X, eps=1e-5): """Computes the geometric median of the columns of X, up to a tolerance epsilon. The geometric median is the vector that minimizes the mean Euclidean norm to each column of X. """ y = np.mean(X, 0) while Tru...
30.276596
99
0.550246
0
0
0
0
0
0
0
0
477
0.335207
e7390c6ea9997d92c5a59b802c520427aaf2e179
2,493
py
Python
espnet2/gan_tts/vits/monotonic_align/__init__.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
espnet2/gan_tts/vits/monotonic_align/__init__.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
espnet2/gan_tts/vits/monotonic_align/__init__.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
"""Maximum path calculation module. This code is based on https://github.com/jaywalnut310/vits. """ import warnings import numpy as np import torch from numba import njit, prange try: from .core import maximum_path_c is_cython_avalable = True except ImportError: is_cython_avalable = False warnings...
31.1625
88
0.607702
0
0
0
0
1,027
0.411953
0
0
680
0.272764
e739779fbb9f7ff0a4abdae832fc3a6922d47f68
620
py
Python
plugins/mod_log.py
nfcgate/server
51dd45e64f91e765b1a0c9d5e5f52933006fb212
[ "Apache-2.0" ]
25
2016-01-13T21:59:00.000Z
2022-02-05T07:55:18.000Z
plugins/mod_log.py
salmg/server
e5b485c4e2517aa741ed70948a92c61c1bc73f62
[ "Apache-2.0" ]
3
2018-05-30T13:42:12.000Z
2020-10-13T09:56:01.000Z
plugins/mod_log.py
salmg/server
e5b485c4e2517aa741ed70948a92c61c1bc73f62
[ "Apache-2.0" ]
19
2015-08-23T02:53:33.000Z
2021-09-28T20:53:50.000Z
from plugins.c2c_pb2 import NFCData from plugins.c2s_pb2 import ServerData def format_data(data): if len(data) == 0: return "" nfc_data = NFCData() nfc_data.ParseFromString(data) letter = "C" if nfc_data.data_source == NFCData.CARD else "R" initial = "(initial) " if nfc_data.data_type ==...
26.956522
88
0.701613
0
0
0
0
0
0
0
0
32
0.051613
e7398960f4dd8de46cd8fd73487b06b0c4d4c812
3,191
py
Python
rowboat/plugins/join.py
DeJayDev/speedboat
ecce2075b69d8e18de17fac0daa702eb59cfcddd
[ "MIT" ]
16
2021-01-03T14:00:48.000Z
2022-03-01T21:03:27.000Z
rowboat/plugins/join.py
DeJayDev/speedboat
ecce2075b69d8e18de17fac0daa702eb59cfcddd
[ "MIT" ]
14
2020-11-20T07:00:09.000Z
2022-03-12T01:02:08.000Z
rowboat/plugins/join.py
SethBots/speedboat
e516261e9d34031045c70522955e8babe3d8ec6e
[ "MIT" ]
9
2018-09-12T20:50:44.000Z
2020-06-20T15:58:52.000Z
from datetime import datetime, timedelta import gevent from disco.types.base import SlottedModel from disco.types.guild import VerificationLevel from disco.util.snowflake import to_datetime from rowboat.plugins import RowboatPlugin as Plugin from rowboat.types import Field, snowflake from rowboat.types.plugin import ...
42.546667
127
0.67095
2,811
0.880915
0
0
2,411
0.755563
0
0
611
0.191476
e73ab7b64cfe244e1ca49e1be6932024a4d3924d
7,062
py
Python
hue/logic/action.py
dnnsmnstrr/workflows
104b370292060b7011120e7decb3db26275ae7f5
[ "Unlicense" ]
4
2020-08-12T21:56:07.000Z
2021-06-01T09:11:12.000Z
hue/logic/action.py
dnnsmnstrr/workflows
104b370292060b7011120e7decb3db26275ae7f5
[ "Unlicense" ]
null
null
null
hue/logic/action.py
dnnsmnstrr/workflows
104b370292060b7011120e7decb3db26275ae7f5
[ "Unlicense" ]
1
2021-12-06T02:40:43.000Z
2021-12-06T02:40:43.000Z
# encoding: utf-8 from __future__ import unicode_literals import colorsys import datetime import json import os import random import sys import time from packages.workflow import Workflow3 as Workflow import colors import harmony import request import setup import utils class HueAction: def __init__(self): ...
31.810811
98
0.534551
6,165
0.872982
0
0
0
0
0
0
1,244
0.176154
e73aed3b29e68e999fa8e3ace630cc2cc0db89e5
734
py
Python
bookshelf/accounts/urls.py
Danielvalev/bookshelf
eda857b275de49623c57e2288f86f401b87406c9
[ "MIT" ]
null
null
null
bookshelf/accounts/urls.py
Danielvalev/bookshelf
eda857b275de49623c57e2288f86f401b87406c9
[ "MIT" ]
null
null
null
bookshelf/accounts/urls.py
Danielvalev/bookshelf
eda857b275de49623c57e2288f86f401b87406c9
[ "MIT" ]
null
null
null
from django.urls import path from accounts.views import user_profile, LogoutView, LoginView, RegisterView, user_profile_edit urlpatterns = [ # path('login/', login_user, name='login user'), path('login/', LoginView.as_view(), name='login user'), # CBV # path('logout/', logout_user, name='logout user'), ...
43.176471
95
0.678474
0
0
0
0
0
0
0
0
367
0.5
e73ccdac55d151051f197eec351b7129cd6e61de
13,790
py
Python
doc/.src/book/src/approx1D.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
86
2015-12-17T12:57:11.000Z
2022-03-26T01:53:47.000Z
doc/.src/book/src/approx1D.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
9
2017-04-16T21:57:29.000Z
2021-04-17T08:09:30.000Z
doc/.src/book/src/approx1D.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
43
2016-03-11T19:33:14.000Z
2022-03-05T00:21:57.000Z
""" Approximation of functions by linear combination of basis functions in function spaces and the least squares method or the collocation method for determining the coefficients. """ from __future__ import print_function import sympy as sym import numpy as np import mpmath import matplotlib.pyplot as plt #import sci...
36.005222
78
0.570631
0
0
0
0
0
0
0
0
4,901
0.355402
e73d28b97614c66ca738e1e4c737e90d85ce9b19
835
py
Python
src/problems/cancel_1112/gen.py
Leomotors/stupid-problems
801213b7646e39530e2fe652c95ec6cd887e7bd1
[ "MIT" ]
null
null
null
src/problems/cancel_1112/gen.py
Leomotors/stupid-problems
801213b7646e39530e2fe652c95ec6cd887e7bd1
[ "MIT" ]
null
null
null
src/problems/cancel_1112/gen.py
Leomotors/stupid-problems
801213b7646e39530e2fe652c95ec6cd887e7bd1
[ "MIT" ]
null
null
null
# * N <= 500, M <= 10000, max(p), max(a) <= 1e6 # * 10 คะแนน : N, max(p), max(a) <= 10, M <= 15 # * 20 คะแนน : N <= 20, M <= 100 # * 30 คะแนน : N <= 69, M <= 420 # * 50 คะแนน : ไม่มีเงื่อนไขเพิ่มเติม def useGenerator(gen): gen("s1", "sample1", 5, 10, 10, 10) gen("s2", "sample2", 7, 10, 9, 9) gen(1, "112 ...
33.4
48
0.48982
0
0
0
0
0
0
0
0
445
0.476956
e7422355175454fcfb89f48ad2d00d9c5dd1fa0e
2,532
py
Python
dash_website/utils/controls.py
SamuelDiai/Dash-Website
e064e432f14a86de1b54cf31ab311997c5643129
[ "MIT" ]
null
null
null
dash_website/utils/controls.py
SamuelDiai/Dash-Website
e064e432f14a86de1b54cf31ab311997c5643129
[ "MIT" ]
null
null
null
dash_website/utils/controls.py
SamuelDiai/Dash-Website
e064e432f14a86de1b54cf31ab311997c5643129
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html def get_options_from_list(list_): list_label_value = [] for value in list_: list_label_value.append({"value": value, "label": value}) return list_label_value def get_options_from_dict(d...
25.836735
105
0.554502
0
0
0
0
0
0
0
0
130
0.051343
e745fb5c2bd82701b4b6fe87fdf23d2d1913eabb
2,333
py
Python
hedwig/test.py
Cool-tong/covid
389c490e60f7b854369e0600b6dfc071baceaa7e
[ "Apache-2.0" ]
15
2020-06-25T21:44:41.000Z
2022-01-14T23:41:50.000Z
hedwig/test.py
Cool-tong/covid
389c490e60f7b854369e0600b6dfc071baceaa7e
[ "Apache-2.0" ]
9
2021-03-31T19:48:34.000Z
2022-03-12T00:34:28.000Z
hedwig/test.py
Cool-tong/covid
389c490e60f7b854369e0600b6dfc071baceaa7e
[ "Apache-2.0" ]
8
2020-09-16T10:29:14.000Z
2022-01-16T17:53:41.000Z
# from transformers import ReformerModel, ReformerTokenizer # import torch # # tokenizer = ReformerTokenizer.from_pretrained('google/reformer-crime-and-punishment') # model = ReformerModel.from_pretrained('google/reformer-crime-and-punishment') # # input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute", add...
44.865385
123
0.753965
0
0
0
0
0
0
0
0
1,375
0.58937
e746b6586494198935ce54917af266b0ab3f32e9
7,091
py
Python
nginx_parse_emit/utils.py
offscale/nginx-parse-emit
29b020f62fe1bc8377f2c30689f4bb4c5777ec69
[ "Apache-2.0", "MIT" ]
null
null
null
nginx_parse_emit/utils.py
offscale/nginx-parse-emit
29b020f62fe1bc8377f2c30689f4bb4c5777ec69
[ "Apache-2.0", "MIT" ]
null
null
null
nginx_parse_emit/utils.py
offscale/nginx-parse-emit
29b020f62fe1bc8377f2c30689f4bb4c5777ec69
[ "Apache-2.0", "MIT" ]
null
null
null
from operator import itemgetter from platform import python_version_tuple from sys import version if version[0] == "2": from cStringIO import StringIO else: from functools import reduce from io import StringIO from copy import copy from itertools import filterfalse from os import remove, path from strin...
30.433476
103
0.608236
86
0.012128
0
0
0
0
0
0
1,365
0.192498
e7480e46acbddcd69f925328f54a3a8f35b1978c
832
py
Python
setup.py
JimBoonie/hydra
63665090812e4e209c67d5dc0b84b5bb35a57ead
[ "MIT" ]
28
2015-12-30T22:38:16.000Z
2021-03-21T07:52:39.000Z
setup.py
JimBoonie/hydra
63665090812e4e209c67d5dc0b84b5bb35a57ead
[ "MIT" ]
2
2017-02-23T09:54:09.000Z
2018-12-14T12:20:28.000Z
setup.py
JimBoonie/hydra
63665090812e4e209c67d5dc0b84b5bb35a57ead
[ "MIT" ]
7
2017-02-23T09:43:24.000Z
2022-01-10T12:17:36.000Z
from setuptools import setup from setuptools.command.install import install as _install class install(_install): def run(self): _install.run(self) setup( cmdclass = { 'install' : install }, name = 'hydra', version = '0.1', author = 'tatsy', author_email = 'tatsy.mail@gmail.com', ur...
25.212121
58
0.56851
70
0.084135
0
0
0
0
0
0
360
0.432692
e74a1d4b6667e28ee221b633c7ed252338e6e82b
689
py
Python
appmail/migrations/0003_emailtemplate_test_context.py
yunojuno/django-appmail
e665990a56e00b06469177d165cc14970b61971a
[ "MIT" ]
7
2017-03-16T22:16:54.000Z
2020-07-06T20:07:06.000Z
appmail/migrations/0003_emailtemplate_test_context.py
yunojuno/django-appmail
e665990a56e00b06469177d165cc14970b61971a
[ "MIT" ]
13
2017-04-27T15:26:51.000Z
2021-07-09T16:31:21.000Z
appmail/migrations/0003_emailtemplate_test_context.py
yunojuno/django-appmail
e665990a56e00b06469177d165cc14970b61971a
[ "MIT" ]
3
2017-03-10T18:22:03.000Z
2018-09-25T14:40:29.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-06 08:15 from __future__ import unicode_literals from django.db import migrations from ..compat import JSONField class Migration(migrations.Migration): dependencies = [("appmail", "0002_add_template_description")] operations = [ migra...
24.607143
85
0.552975
507
0.735849
0
0
0
0
0
0
213
0.309144
e74a548d5928286d5e89cff8efabd8323a997dc8
3,006
py
Python
tests/skillsearch/clients.py
allenai/alexafsm
0c2e8842ddbb4a34ac64a5139e7febee3b28889a
[ "Apache-2.0" ]
108
2017-05-11T22:33:39.000Z
2022-03-04T03:04:51.000Z
tests/skillsearch/clients.py
allenai/alexafsm
0c2e8842ddbb4a34ac64a5139e7febee3b28889a
[ "Apache-2.0" ]
null
null
null
tests/skillsearch/clients.py
allenai/alexafsm
0c2e8842ddbb4a34ac64a5139e7febee3b28889a
[ "Apache-2.0" ]
17
2017-05-12T23:26:38.000Z
2020-04-20T19:39:54.000Z
"""Client that handles query to elasticsearch""" import string from typing import List from elasticsearch_dsl import Search from alexafsm.test_helpers import recordable as rec from elasticsearch_dsl.response import Response from tests.skillsearch.skill_settings import SkillSettings from tests.skillsearch.skill impo...
37.575
109
0.633733
0
0
0
0
726
0.241517
0
0
534
0.177645
e74bee176de16cba930d5ae5c1c4a6c4a4161b92
9,380
py
Python
pypsych/schedule.py
janmtl/pypsych
1c606342dbdb984bc06aa9fd26963f3ce0a378b1
[ "BSD-3-Clause" ]
null
null
null
pypsych/schedule.py
janmtl/pypsych
1c606342dbdb984bc06aa9fd26963f3ce0a378b1
[ "BSD-3-Clause" ]
null
null
null
pypsych/schedule.py
janmtl/pypsych
1c606342dbdb984bc06aa9fd26963f3ce0a378b1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Includes the Schedule class, validation functions, and compilation functions for compiling a schedule of files to process. Methods: compile: shortcut for validating the loaded configuration, then performing the search, and _resolve functions load: load ...
38.921162
79
0.552452
7,918
0.844136
0
0
4,464
0.475906
0
0
3,427
0.365352
e74c20ff4559c50606dac276ec5df833419986bc
3,160
py
Python
dcorch/drivers/openstack/cinder_v2.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
1
2018-08-24T19:48:03.000Z
2018-08-24T19:48:03.000Z
dcorch/drivers/openstack/cinder_v2.py
kbujold/stx-distcloud
e82c7b43362bceb8d4ae9d121d023e42268204db
[ "Apache-2.0" ]
3
2018-08-23T20:32:45.000Z
2018-08-30T19:26:00.000Z
dcorch/drivers/openstack/cinder_v2.py
kbujold/stx-distcloud
e82c7b43362bceb8d4ae9d121d023e42268204db
[ "Apache-2.0" ]
4
2018-08-21T18:09:12.000Z
2018-08-28T15:47:12.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 unde...
35.505618
77
0.603797
2,395
0.757911
0
0
0
0
0
0
935
0.295886
e74d4d6162ae8c2a70fd86d11e2efc802d6df3be
1,202
py
Python
figthesis/figshape.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
figthesis/figshape.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
figthesis/figshape.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt import figlatex import template import afterpulse_tile21 styles = { 5.5: dict(color='#f55'), 7.5: dict(hatch='//////', facecolor='#0000'), 9.5: dict(edgecolor='black', facecolor='#0000'), } fig, ax = plt.subplots(num='figshape', clear=True, figsize=...
24.04
107
0.62396
0
0
0
0
0
0
0
0
139
0.115641
e74daacb5f8aa03a88e92486990e7dd734003673
1,940
py
Python
linchackathon/auth.py
YasserMahfoud/linchackathon
d0cdb7d72aa588847669830e14bb9baa308afc24
[ "MIT" ]
null
null
null
linchackathon/auth.py
YasserMahfoud/linchackathon
d0cdb7d72aa588847669830e14bb9baa308afc24
[ "MIT" ]
null
null
null
linchackathon/auth.py
YasserMahfoud/linchackathon
d0cdb7d72aa588847669830e14bb9baa308afc24
[ "MIT" ]
1
2022-02-28T09:25:47.000Z
2022-02-28T09:25:47.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jan 13 11:08:56 2021 @author: yasse """ # ============================================================================= # Imports # ============================================================================= import requests from . import ipaddr as u from .public import ge...
25.526316
81
0.465464
0
0
0
0
0
0
0
0
1,411
0.72732
e74e18233e68e6e6e2b6b4650e8d71aa16535204
5,559
py
Python
eFELunit/utils.py
appukuttan-shailesh/eFELunit
055385254875249293da72c1daf2d489033cb9da
[ "BSD-3-Clause" ]
null
null
null
eFELunit/utils.py
appukuttan-shailesh/eFELunit
055385254875249293da72c1daf2d489033cb9da
[ "BSD-3-Clause" ]
null
null
null
eFELunit/utils.py
appukuttan-shailesh/eFELunit
055385254875249293da72c1daf2d489033cb9da
[ "BSD-3-Clause" ]
null
null
null
""" Module for loading BluePyOpt optimized model files """ import os import sciunit from neuronunit.capabilities import ReceivesSquareCurrent, ProducesMembranePotential, Runnable from neuron import h import neo from quantities import ms import zipfile import json import collections class CellModel(sciunit.Model, ...
40.282609
135
0.589674
5,273
0.948552
0
0
0
0
0
0
1,483
0.266775
e7505d6ec1c66fa5c31c1b68248657004784ebb2
5,401
py
Python
invenio_ldapclient/views.py
galterlibrary/invenio-ldapclient
48b24b5bf46fd40c22dce042f54eaab6b7d377c3
[ "MIT" ]
1
2018-12-25T23:18:35.000Z
2018-12-25T23:18:35.000Z
invenio_ldapclient/views.py
galterlibrary/invenio-ldapclient
48b24b5bf46fd40c22dce042f54eaab6b7d377c3
[ "MIT" ]
6
2018-12-12T17:15:11.000Z
2020-01-22T14:00:07.000Z
invenio_ldapclient/views.py
galterlibrary/invenio-ldapclient
48b24b5bf46fd40c22dce042f54eaab6b7d377c3
[ "MIT" ]
null
null
null
"""Invenio-LDAPClient login view.""" from __future__ import absolute_import, print_function import uuid from flask import Blueprint, after_this_request from flask import current_app as app from flask import flash, redirect, render_template, request from flask_security import login_user from invenio_accounts.models i...
29.839779
91
0.672098
0
0
0
0
1,239
0.229402
0
0
1,260
0.23329
e750a7db318e1b1722b11d4663f54e8a2e8abb6a
1,125
py
Python
10 - Using break/Des_068.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
4
2021-04-23T18:07:58.000Z
2021-05-12T11:38:14.000Z
10 - Using break/Des_068.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
10 - Using break/Des_068.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
from random import randint perder = ganhou = 0 print('\n=-=-=-=-TENTE GANHAR DE MIM NO PAR OU ÍMPAR!=-=-=-=-\n') while True: print('-=' * 15) eu = int(input('Digite um número: ')) pc = randint(1, 100) par_ganhou = impar_ganhou = 0 i_p = ' ' while i_p not in 'IP': i_p = input('Você esco...
31.25
113
0.533333
0
0
0
0
0
0
0
0
524
0.458042
e7523010d534a1b9ddc9737a5e53cd84edd3fabe
553
py
Python
src/app/coursegrab/controllers/untrack_section_controller.py
cuappdev/coursegrab-backend
e69cfaf8bcabae788ebf81e18078f8eb604c79a7
[ "MIT" ]
1
2020-02-28T00:53:34.000Z
2020-02-28T00:53:34.000Z
src/app/coursegrab/controllers/untrack_section_controller.py
cuappdev/coursegrab-backend
e69cfaf8bcabae788ebf81e18078f8eb604c79a7
[ "MIT" ]
31
2019-11-06T22:14:16.000Z
2021-11-03T21:51:40.000Z
src/app/coursegrab/controllers/untrack_section_controller.py
cuappdev/coursegrab-backend
e69cfaf8bcabae788ebf81e18078f8eb604c79a7
[ "MIT" ]
null
null
null
from . import * class UntrackSectionController(AppDevController): def get_path(self): return "/sections/untrack/" def get_methods(self): return ["POST"] @authorize_user def content(self, **kwargs): data = request.get_json() user = kwargs.get("user") catalog_nu...
26.333333
65
0.643761
534
0.965642
0
0
367
0.663653
0
0
73
0.132007
e7524d0748239053472f74164e6004e070acbfe8
281
py
Python
scripts/stop.py
J0ins08/aria2-python-script
461c1e861893b6309726bb804d51f9e2fff0a1e8
[ "MIT" ]
null
null
null
scripts/stop.py
J0ins08/aria2-python-script
461c1e861893b6309726bb804d51f9e2fff0a1e8
[ "MIT" ]
null
null
null
scripts/stop.py
J0ins08/aria2-python-script
461c1e861893b6309726bb804d51f9e2fff0a1e8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- #@File : stop.py #@Time : 2021/12/23 16:21:37 #@Author : J0ins08 #@Software : Visual Studio Code from aria2 import * if __name__ == '__main__': remove_aria2_file() remove_download_file() remove_torrent_file()
23.416667
36
0.590747
0
0
0
0
0
0
0
0
155
0.551601
e7531c6aec53aa133b091d9c44add5e29edc53d4
446
py
Python
rop1-sean_Pwn-2/hack.py
ss8651twtw/Pwn-CTF-writeups
930a85169c2110594479cf66528b79e8ddae46a2
[ "MIT" ]
4
2021-08-01T07:53:26.000Z
2021-09-08T08:50:09.000Z
rop1-sean_Pwn-2/hack.py
ss8651twtw/Pwn-CTF-writeups
930a85169c2110594479cf66528b79e8ddae46a2
[ "MIT" ]
null
null
null
rop1-sean_Pwn-2/hack.py
ss8651twtw/Pwn-CTF-writeups
930a85169c2110594479cf66528b79e8ddae46a2
[ "MIT" ]
1
2022-03-22T10:13:53.000Z
2022-03-22T10:13:53.000Z
from pwn import * import time context.arch = "amd64" ip = "140.110.112.77" port = 3122 r = remote(ip, port) # r = process("./rop1") data = 0x6ccd60 pop_rsi = 0x401637 pop_rax_rdx_rbx = 0x478616 pop_rdi = 0x401516 syscall = 0x4672b5 leave = 0x4009e4 r.sendline(flat(0xdeadbeef, pop_rax_rdx_rbx, 0x3b, 0, 0, pop_rdi, ...
18.583333
121
0.681614
0
0
0
0
0
0
0
0
66
0.147982
e7541e90aae6724fc21be662cfca2ab9529171ad
3,548
py
Python
jikanvision/FaceMeshModule.py
JikanDev/jikanvision
09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0
[ "Apache-2.0" ]
1
2021-09-02T09:03:53.000Z
2021-09-02T09:03:53.000Z
jikanvision/FaceMeshModule.py
JikanDev/jikanvision
09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0
[ "Apache-2.0" ]
1
2021-10-21T14:50:06.000Z
2021-10-21T14:50:06.000Z
jikanvision/FaceMeshModule.py
JikanDev/jikanvision
09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0
[ "Apache-2.0" ]
null
null
null
""" Face Mesh Module By : JikanDev Website : https://jikandev.xyz/ """ import cv2 import mediapipe as mp class FaceMeshDetector(): """ Find 468 Landmarks using the mediapipe library. Exports the landmarks in pixel format. """ def __init__(self, mode=False, maxFaces=1, refine_lm=False, m...
35.48
112
0.592728
2,600
0.732807
0
0
0
0
0
0
1,330
0.374859
e7556f82e722747db689856c467461b5664c4d41
65,366
py
Python
avi/heat/resources/pool.py
itlinux/avi-heat
551adc130f651e1a52dcff0afc01cfa6b29a87f0
[ "Apache-2.0" ]
2
2016-08-09T21:06:52.000Z
2016-08-18T21:34:11.000Z
avi/heat/resources/pool.py
itlinux/avi-heat
551adc130f651e1a52dcff0afc01cfa6b29a87f0
[ "Apache-2.0" ]
10
2016-08-03T00:07:51.000Z
2018-10-30T19:00:38.000Z
avi/heat/resources/pool.py
itlinux/avi-heat
551adc130f651e1a52dcff0afc01cfa6b29a87f0
[ "Apache-2.0" ]
10
2016-06-13T20:17:19.000Z
2020-12-21T11:46:59.000Z
# GENERATED FILE - DO NOT EDIT THIS FILE UNLESS YOU ARE A WIZZARD #pylint: skip-file from heat.engine import properties from heat.engine import constraints from heat.engine import attributes from heat.common.i18n import _ from avi.heat.avi_resource import AviResource from avi.heat.avi_resource import AviNestedResource...
37.783815
486
0.669813
64,570
0.987822
0
0
0
0
0
0
26,460
0.404798
e75664bd27754a66bb2b335b17ad15fd80bbf4ca
1,041
py
Python
app/service/account_title_service.py
JunFuruya/Ratsnake
ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7
[ "MIT" ]
null
null
null
app/service/account_title_service.py
JunFuruya/Ratsnake
ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7
[ "MIT" ]
5
2018-05-17T04:03:39.000Z
2021-09-08T01:03:17.000Z
app/service/account_title_service.py
JunFuruya/Hideout
ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from app.service.base_service import BaseService from app.repository.account_title_repository import AccountTitleRepository class AccountTitleService(BaseService): def __init__(self): self.__reposiroty = AccountTitleRepository() pass def getList(self, user_id, limit, o...
41.64
121
0.777137
890
0.854947
0
0
0
0
0
0
23
0.022094
e756f3d909ed9cf27d6e6754f6228111304c2edd
6,728
py
Python
cellpack/mgl_tools/mglutil/math/kinematics.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
cellpack/mgl_tools/mglutil/math/kinematics.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
cellpack/mgl_tools/mglutil/math/kinematics.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by # # Last modified on Mon Oct 15 15:33:49 PDT 2001 by lindy # # $Header: /opt/cvs/python/packages/share1.5/mglutil/math/kinematics.py,v 1.16 2007/07/24 17:30:40 vareille Exp $ # """kinematics.py - kinematic manipulation of chains of points All transformati...
32.191388
113
0.522889
6,032
0.896552
0
0
0
0
0
0
1,915
0.284631
e7584bf56075da23dbb46430a6950a9f3d4405c0
2,178
py
Python
ucsc_genomes_downloader/utils/expand_bed_regions.py
LucaCappelletti94/ucsc_genomes_downloader
fdef5fae76a78606279aa3e49e0b009a1b34a436
[ "MIT" ]
5
2020-01-30T15:03:40.000Z
2022-01-25T18:44:16.000Z
ucsc_genomes_downloader/utils/expand_bed_regions.py
LucaCappelletti94/ucsc_genomes_downloader
fdef5fae76a78606279aa3e49e0b009a1b34a436
[ "MIT" ]
2
2020-01-04T15:22:16.000Z
2020-07-16T20:02:42.000Z
ucsc_genomes_downloader/utils/expand_bed_regions.py
LucaCappelletti94/ucsc_genomes_downloader
fdef5fae76a78606279aa3e49e0b009a1b34a436
[ "MIT" ]
3
2019-12-29T15:19:22.000Z
2021-03-27T03:05:51.000Z
import pandas as pd import numpy as np __all__ = ["expand_bed_regions"] def expand_bed_regions(bed: pd.DataFrame, window_size: int, alignment: str = "center") -> pd.DataFrame: """Return pandas dataframe setting regions to given window size considering given alignment. Parameters ----------------------- ...
36.915254
103
0.649219
0
0
0
0
0
0
0
0
1,441
0.661616
e7593ec909d2ec472ea74ef88d48fb12c9f615bd
2,972
py
Python
examples/mri/non_cartesian_reconstruction.py
LElgueddari/pisap
ddd9f9f02dcd629b5615fa571ac7795c2d5e9727
[ "CECILL-B" ]
null
null
null
examples/mri/non_cartesian_reconstruction.py
LElgueddari/pisap
ddd9f9f02dcd629b5615fa571ac7795c2d5e9727
[ "CECILL-B" ]
null
null
null
examples/mri/non_cartesian_reconstruction.py
LElgueddari/pisap
ddd9f9f02dcd629b5615fa571ac7795c2d5e9727
[ "CECILL-B" ]
1
2018-12-04T14:32:15.000Z
2018-12-04T14:32:15.000Z
""" Neuroimaging non-cartesian reconstruction ========================================= Author: Chaithya G R In this tutorial we will reconstruct an MRI image from non-cartesian kspace measurements. Import neuroimaging data ------------------------ We use the toy datasets available in pysap, more specifically a 2D ...
30.326531
78
0.694482
0
0
0
0
0
0
0
0
1,343
0.451884
e7596a25709bd7aeb8d58fbb9eb155b5582963d5
3,996
py
Python
Homeautomation/Alarmpi/get_weather_yahoo.py
EtechProjects/Curtains-and-Blinds-Tests
7bfacf50ee7a4b951337e60f0fa288fbe59762e2
[ "Apache-2.0" ]
null
null
null
Homeautomation/Alarmpi/get_weather_yahoo.py
EtechProjects/Curtains-and-Blinds-Tests
7bfacf50ee7a4b951337e60f0fa288fbe59762e2
[ "Apache-2.0" ]
null
null
null
Homeautomation/Alarmpi/get_weather_yahoo.py
EtechProjects/Curtains-and-Blinds-Tests
7bfacf50ee7a4b951337e60f0fa288fbe59762e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib import urllib2 import json import decimal import time from apcontent import alarmpi_content class weather_yahoo(alarmpi_content): def build(self): location = self.sconfig['location'] if self.sconfig['metric'] == str(1): metric = '%20and%2...
37.698113
191
0.548048
3,840
0.960961
0
0
0
0
0
0
1,310
0.327828
e75b23de02a67ea7c8d05abe2bf178f7d08eb2d7
1,857
py
Python
triassic_scoring.py
SouthwestCCDC/2019-pcc
a2a38cfd0eb714fc9b2c0e69484171306eca67e0
[ "Unlicense" ]
1
2022-01-14T18:04:20.000Z
2022-01-14T18:04:20.000Z
triassic_scoring.py
wrharding/triassic_shell
2d13f8299c01a050d230034d2d37e0e3af8e1a02
[ "Unlicense" ]
null
null
null
triassic_scoring.py
wrharding/triassic_shell
2d13f8299c01a050d230034d2d37e0e3af8e1a02
[ "Unlicense" ]
1
2021-01-22T23:03:29.000Z
2021-01-22T23:03:29.000Z
import sys import logging import socket import argparse import json import os import data_model from flask import Flask app = Flask(__name__) app.secret_key = 'NpaguVKgv<;f;i(:T>3tn~dsOue5Vy)' @app.route('/degrade/<int:index>/') def degrade_segment(index): if index >= 97 or index < 0: return 'bad' e...
26.913043
95
0.645665
0
0
0
0
1,129
0.60797
0
0
368
0.198169
e7610363e0afa1615d49f445e3e975b339f2990d
592
py
Python
day26.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day26.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day26.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right #Submitted by thr3sh0ld class Solution: def solve(self,root, curr): if root == None: return 0 cu...
28.190476
73
0.572635
361
0.609797
0
0
0
0
0
0
209
0.353041
e761eb72917ebd1c05f7e0b4d31c558fc821a540
511
py
Python
extra/docker/django/mailinglist/factories.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
null
null
null
extra/docker/django/mailinglist/factories.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
13
2020-02-12T00:12:52.000Z
2022-02-12T09:42:36.000Z
extra/docker/django/mailinglist/factories.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
null
null
null
from unittest.mock import patch import factory from mailinglist.models import Subscriber class SubscriberFactory(factory.DjangoModelFactory): email = factory.Sequence(lambda n: 'foo.%d@example.com' % n) class Meta: model = Subscriber @classmethod def _create(cls, model_class, *args, **kwar...
25.55
76
0.690802
416
0.81409
0
0
249
0.48728
0
0
86
0.168297
e7623781c52321968e53976d519675e457ceed8b
486
py
Python
wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
null
null
null
wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
11
2019-03-19T02:03:11.000Z
2019-05-31T07:20:59.000Z
wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
2
2020-08-10T10:17:10.000Z
2021-10-31T23:20:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-01 08:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wl_main', '0005_wildlifelicence_locations'), ] operations = [ migrations.Alt...
23.142857
63
0.63786
329
0.676955
0
0
0
0
0
0
143
0.294239
e7632eac9bb25990fae2d561c6c167a8a522a509
5,565
py
Python
plugin.program.super.favourites/player.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
plugin.program.super.favourites/player.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.program.super.favourites/player.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
# # Copyright (C) 2014- # Sean Poyser (seanpoyser@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, or (at your option) # any later version. # # Thi...
27.413793
115
0.611321
0
0
0
0
0
0
0
0
1,863
0.334771