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
0c34fc08f42c8637a1d795a07180d44a6de5c252
4,946
py
Python
components/server/src/data_model/sources/jenkins.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
components/server/src/data_model/sources/jenkins.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
components/server/src/data_model/sources/jenkins.py
m-zakeri/quality-time
531931f0d8d4f5d262ea98445868158e41d268da
[ "Apache-2.0" ]
null
null
null
"""Jenkins source.""" from ..meta.entity import Color, EntityAttributeType from ..parameters import ( access_parameters, Days, FailureType, MultipleChoiceParameter, MultipleChoiceWithAdditionParameter, TestResult, ) from ..meta.source import Source def jenkins_access_parameters(*args, **kwarg...
38.640625
119
0.603114
0
0
0
0
0
0
0
0
1,978
0.399919
0c3529b1f848cd4aef129f241e7149c8c46fd8c6
3,155
py
Python
tests/test_transducer.py
dandersonw/myouji-kenchi
6a373d8626995bf5d4383dcac4fc8e6372135640
[ "MIT" ]
7
2019-10-22T10:09:12.000Z
2022-01-31T07:49:07.000Z
tests/test_transducer.py
dandersonw/myouji-kenchi
6a373d8626995bf5d4383dcac4fc8e6372135640
[ "MIT" ]
null
null
null
tests/test_transducer.py
dandersonw/myouji-kenchi
6a373d8626995bf5d4383dcac4fc8e6372135640
[ "MIT" ]
1
2021-07-09T18:10:17.000Z
2021-07-09T18:10:17.000Z
import myouji_kenchi # Given that the output depends on what goes into the attested myouji file I'm # hesitant to write too many tests in the blast radius of changes to that file class TestTransducer(): nbt = myouji_kenchi.MyoujiBackTransliteration() def assert_transliteration(self, romaji, *expected_resul...
44.43662
78
0.66878
3,362
0.948111
0
0
0
0
0
0
1,317
0.371404
0c36ba1ececdebf56f9ae6696bc5d261578450ca
1,668
py
Python
algorithms/named/mergesort.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
1
2022-01-06T04:50:09.000Z
2022-01-06T04:50:09.000Z
algorithms/named/mergesort.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
1
2022-01-23T06:09:21.000Z
2022-01-23T06:14:17.000Z
algorithms/named/mergesort.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
null
null
null
import unittest from typing import List, Optional # Consider making generic with: # https://stackoverflow.com/a/47970232/4885590 def merge_sort(items: List[int], lo: int = 0, hi: Optional[int] = None) -> None: if hi is None: hi = len(items) - 1 if lo < hi: mid = (lo + hi) // 2 # Range...
24.895522
80
0.576739
225
0.134892
0
0
0
0
0
0
264
0.158273
0c380570b168add317dd67b7037f3b6ec7e93c2b
392
py
Python
pages/main_page.py
thaidem/selenium-training-page-objects
1f37a2b5287a502295bb57050c95455d68c2d3eb
[ "Apache-2.0" ]
null
null
null
pages/main_page.py
thaidem/selenium-training-page-objects
1f37a2b5287a502295bb57050c95455d68c2d3eb
[ "Apache-2.0" ]
null
null
null
pages/main_page.py
thaidem/selenium-training-page-objects
1f37a2b5287a502295bb57050c95455d68c2d3eb
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.support.wait import WebDriverWait class MainPage: def __init__(self, driver): self.driver = driver self.wait = WebDriverWait(driver, 10) def open(self): self.driver.get("https://litecart.stqa.ru/en/") return self @property def product_item(sel...
23.058824
67
0.670918
331
0.844388
0
0
105
0.267857
0
0
40
0.102041
0c39dce08e2639d2b8e9721a52545154b1694858
196
py
Python
src/frr/tests/lib/test_nexthop_iter.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/lib/test_nexthop_iter.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/lib/test_nexthop_iter.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
import frrtest class TestNexthopIter(frrtest.TestMultiOut): program = "./test_nexthop_iter" TestNexthopIter.onesimple("Simple test passed.") TestNexthopIter.onesimple("PRNG test passed.")
19.6
48
0.785714
80
0.408163
0
0
0
0
0
0
61
0.311224
0c3b154bc332d251c3e35e98a56001cf94c27a53
1,319
py
Python
setup.py
themis-project/themis-finals-checker-app-py
12e70102bcca3d6e4082d96e676e364176c0da67
[ "MIT" ]
null
null
null
setup.py
themis-project/themis-finals-checker-app-py
12e70102bcca3d6e4082d96e676e364176c0da67
[ "MIT" ]
null
null
null
setup.py
themis-project/themis-finals-checker-app-py
12e70102bcca3d6e4082d96e676e364176c0da67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import io import os about = {} about_filename = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'themis', 'finals', 'checker', 'app', '__about__.py') with io.open(about_filename, 'rb') as fp: exec(fp.read(), about) setup( ...
26.918367
87
0.581501
0
0
0
0
0
0
0
0
647
0.490523
0c3b1affbabd1c858deb93d0a0302a8d675091d1
8,090
py
Python
tools/xenserver/cleanup_sm_locks.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
tools/xenserver/cleanup_sm_locks.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
tools/xenserver/cleanup_sm_locks.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'#!/usr/bin/env python' nl|'\n' nl|'\n' comment|'# Copyright 2013 OpenStack Foundation' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License");' nl|'\n' comment|'# you may not use this file except in compliance with the License.' nl|'\n' comment|'# You m...
13.758503
495
0.591595
0
0
0
0
0
0
0
0
4,563
0.56403
0c3c5abd70c1f21c01879c6ec3f584ca3464ae2e
13,324
py
Python
clifun.py
tdimiduk/clifun
d7e5acae0a76506d9440ae86a15341b6cc1cf25e
[ "MIT" ]
1
2022-01-04T17:58:19.000Z
2022-01-04T17:58:19.000Z
clifun.py
tdimiduk/clifun
d7e5acae0a76506d9440ae86a15341b6cc1cf25e
[ "MIT" ]
4
2022-01-04T17:17:33.000Z
2022-01-04T17:26:12.000Z
clifun.py
tdimiduk/clifun
d7e5acae0a76506d9440ae86a15341b6cc1cf25e
[ "MIT" ]
null
null
null
import datetime as dt import importlib.util import inspect import itertools import json import os import pathlib import sys import types import typing from typing import ( Any, Callable, Dict, Generic, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Uni...
29.283516
120
0.590513
3,014
0.226208
309
0.023191
290
0.021765
0
0
2,878
0.216001
0c3c8f51e10f9073a8d53d99be68ca016464578d
2,758
py
Python
pages/views.py
joshua-hashimoto/eigo-of-the-day-django
68ec7fe4257c67689de596cf34e991a3750b7f36
[ "MIT" ]
null
null
null
pages/views.py
joshua-hashimoto/eigo-of-the-day-django
68ec7fe4257c67689de596cf34e991a3750b7f36
[ "MIT" ]
8
2021-04-08T19:45:15.000Z
2022-03-12T00:49:25.000Z
pages/views.py
joshua-hashimoto/eigo-of-the-day-django
68ec7fe4257c67689de596cf34e991a3750b7f36
[ "MIT" ]
null
null
null
import os import json import uuid from django.conf import settings from django.http import HttpResponse from django.utils.translation import ugettext_lazy as _ from django.views.generic import View import cloudinary class MarkdownImageUploader(View): """ custom image uploader for martor. """ def po...
34.049383
85
0.591008
2,537
0.919869
0
0
0
0
0
0
1,075
0.389775
0c3e673531e09903ae71e40dc82ffb45887a73df
1,776
py
Python
shc/log/in_memory.py
fabaff/smarthomeconnect
611cd0f372d03b5fc5798a2a9a5f962d1da72799
[ "Apache-2.0" ]
5
2021-07-02T21:48:45.000Z
2021-12-12T21:55:42.000Z
shc/log/in_memory.py
fabaff/smarthomeconnect
611cd0f372d03b5fc5798a2a9a5f962d1da72799
[ "Apache-2.0" ]
49
2020-09-18T20:05:55.000Z
2022-03-05T19:51:33.000Z
shc/log/in_memory.py
fabaff/smarthomeconnect
611cd0f372d03b5fc5798a2a9a5f962d1da72799
[ "Apache-2.0" ]
1
2021-12-10T14:50:43.000Z
2021-12-10T14:50:43.000Z
import datetime from typing import Optional, Type, Generic, List, Tuple from ..base import T from .generic import PersistenceVariable class InMemoryPersistenceVariable(PersistenceVariable, Generic[T]): def __init__(self, type_: Type[T], keep: datetime.timedelta): super().__init__(type_, log=True) ...
36.244898
96
0.606419
1,638
0.922297
0
0
0
0
1,046
0.588964
0
0
0c3ec0f29f7bce414073cc341dd9839fbf5fca06
1,393
py
Python
guts/api/contrib/type_actions.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/api/contrib/type_actions.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/api/contrib/type_actions.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
1
2022-03-03T05:41:31.000Z
2022-03-03T05:41:31.000Z
# Copyright (c) 2015 Aptira Pty Ltd. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
29.638298
78
0.724336
508
0.364681
0
0
0
0
0
0
715
0.513281
0c4122d4f0b749136bdf171cdb6e696eecf404bd
8,579
py
Python
models/StyleTransfer/AdaIN.py
mtroym/pytorch-train
3b303b6c7e364a58cb88d7142da942a30cc2b255
[ "Apache-2.0" ]
2
2019-12-21T14:40:11.000Z
2020-05-26T09:26:52.000Z
models/StyleTransfer/AdaIN.py
mtroym/pytorch-train
3b303b6c7e364a58cb88d7142da942a30cc2b255
[ "Apache-2.0" ]
null
null
null
models/StyleTransfer/AdaIN.py
mtroym/pytorch-train
3b303b6c7e364a58cb88d7142da942a30cc2b255
[ "Apache-2.0" ]
1
2020-10-16T12:03:19.000Z
2020-10-16T12:03:19.000Z
""" Author: Yiming Mao - mtroym@github Description: Transplant from "https://github.com/xunhuang1995/AdaIN-style/blob/master/train.lua" """ import functools import os from collections import OrderedDict import torch import torch.nn as nn from torchvision.models import vgg19 from datasets.utils import deno...
40.852381
115
0.602518
7,642
0.89078
0
0
0
0
0
0
1,152
0.134281
0c418b56746d824c2d98f37af03cc0b209cd7415
1,099
py
Python
airflow/migrations/versions/52d714495f0_job_id_indices.py
rubeshdcube/incubator-airflow
5419fbb78a2ea2388456c356d2f899ea1991b2de
[ "Apache-2.0" ]
6
2016-04-20T20:40:43.000Z
2022-02-20T10:32:00.000Z
airflow/migrations/versions/52d714495f0_job_id_indices.py
curest0x1021/incubator-airflow
e6d3160a061dbaa6042d524095dcd1cbc15e0bcd
[ "Apache-2.0" ]
13
2018-11-30T18:18:32.000Z
2021-02-19T17:04:12.000Z
airflow/migrations/versions/52d714495f0_job_id_indices.py
curest0x1021/incubator-airflow
e6d3160a061dbaa6042d524095dcd1cbc15e0bcd
[ "Apache-2.0" ]
9
2017-08-24T15:47:44.000Z
2022-02-14T03:30:49.000Z
# -*- coding: utf-8 -*- # # 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 ...
27.475
98
0.755232
0
0
0
0
0
0
0
0
815
0.741583
0c42822d78adfa0e7f0264f5d356cb0270939941
7,836
py
Python
deep_semantic_similarity_keras.py
viksit/Deep-Semantic-Similarity-Model
1dc94346801e711125fb573284a1984ce17fb90e
[ "MIT" ]
3
2016-05-26T00:04:38.000Z
2019-10-22T09:52:39.000Z
deep_semantic_similarity_keras.py
viksit/Deep-Semantic-Similarity-Model
1dc94346801e711125fb573284a1984ce17fb90e
[ "MIT" ]
null
null
null
deep_semantic_similarity_keras.py
viksit/Deep-Semantic-Similarity-Model
1dc94346801e711125fb573284a1984ce17fb90e
[ "MIT" ]
1
2019-10-22T09:59:04.000Z
2019-10-22T09:59:04.000Z
# Michael A. Alcorn ([email protected]) # An implementation of the Deep Semantic Similarity Model (DSSM) found in [1]. # [1] Shen, Y., He, X., Gao, J., Deng, L., and Mesnil, G. 2014. A latent semantic model # with convolutional-pooling structure for information retrieval. In CIKM, pp. 101-110. # http:/...
49.910828
148
0.732006
0
0
0
0
0
0
0
0
4,759
0.60686
0c4483174d1c4ff711dd1bd4cb802a150131d7f7
469
py
Python
posthog/migrations/0087_fix_annotation_created_at.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
posthog/migrations/0087_fix_annotation_created_at.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
posthog/migrations/0087_fix_annotation_created_at.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
# Generated by Django 3.0.7 on 2020-10-14 07:46 import django.utils.timezone from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0086_team_session_recording_opt_in"), ] operations = [ migrations.AlterField( model_name...
23.45
85
0.648188
347
0.739872
0
0
0
0
0
0
116
0.247335
0c476cbc9139db2d5b5477a2919a3f47a83b94b5
4,723
py
Python
tumorevo/tumorfig/main.py
pedrofale/tumorevo
cf43f3854f6815c822cf4df71be82fc6dbae065b
[ "MIT" ]
2
2022-02-08T12:54:58.000Z
2022-03-04T12:21:06.000Z
tumorevo/tumorfig/main.py
pedrofale/tumorevo
cf43f3854f6815c822cf4df71be82fc6dbae065b
[ "MIT" ]
null
null
null
tumorevo/tumorfig/main.py
pedrofale/tumorevo
cf43f3854f6815c822cf4df71be82fc6dbae065b
[ "MIT" ]
null
null
null
""" Create a cartoon of a tumor given the frequencies of different genotypes. """ from .util import * import pandas as pd import matplotlib.pyplot as plt import click import os from pathlib import Path from pymuller import muller @click.command(help="Plot the evolution of a tumor.") @click.argument( "genotype-...
28.624242
85
0.547957
0
0
0
0
4,447
0.941563
0
0
788
0.166843
0c486c53d8fb3bd729143cb46efffc314acc492f
23
py
Python
Aulas/aula20/src/bb_circular.py
alexNeto/data-struct
f54917247a4e75ffe15783b0a025185d2215309a
[ "BSD-2-Clause" ]
5
2017-08-25T19:24:47.000Z
2020-01-19T15:52:02.000Z
Aulas/aula20/src/bb_circular.py
alexNeto/data-struct
f54917247a4e75ffe15783b0a025185d2215309a
[ "BSD-2-Clause" ]
null
null
null
Aulas/aula20/src/bb_circular.py
alexNeto/data-struct
f54917247a4e75ffe15783b0a025185d2215309a
[ "BSD-2-Clause" ]
5
2017-09-25T14:49:43.000Z
2019-11-27T00:05:56.000Z
class Circular():
11.5
18
0.565217
17
0.73913
0
0
0
0
0
0
0
0
0c48b673acc0ea7efa42fafb3fba6d032e5deab7
196
py
Python
src/brouwers/online_users/urls.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
6
2015-03-03T13:23:07.000Z
2021-12-19T18:12:41.000Z
src/brouwers/online_users/urls.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
95
2015-02-07T00:55:39.000Z
2022-02-08T20:22:05.000Z
src/brouwers/online_users/urls.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
2
2016-03-22T16:53:26.000Z
2019-02-09T22:46:04.000Z
from django.conf.urls import url from .views import get_online_users, set_online app_name = 'online_users' urlpatterns = [ url(r'^so/$', set_online), url(r'^ous/$', get_online_users), ]
19.6
47
0.704082
0
0
0
0
0
0
0
0
31
0.158163
0c49d08e42802a84e6d6315644d21f43e88ce921
5,881
py
Python
dftb+/plot_spline.py
hsulab/DailyScripts
26b03cfb721fd66f39c86df50d2ec5866e651d6e
[ "MIT" ]
2
2020-06-08T21:39:44.000Z
2020-10-18T15:12:47.000Z
dftb+/plot_spline.py
hsulab/DailyScripts
26b03cfb721fd66f39c86df50d2ec5866e651d6e
[ "MIT" ]
null
null
null
dftb+/plot_spline.py
hsulab/DailyScripts
26b03cfb721fd66f39c86df50d2ec5866e651d6e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import argparse import numpy as np import matplotlib as mpl mpl.use('Agg') #silent mode from matplotlib import pyplot as plt from mpl_toolkits.axes_grid1.inset_locator import inset_axes, InsetPosition, zoomed_inset_axes, mark_inset MAXLINE = 10000 class Sp...
29.70202
106
0.530012
1,800
0.30607
0
0
418
0.071076
0
0
818
0.139092
0c4b5ba22b3ba7761012b4918404bffd6258a269
370
py
Python
network_monitor/__init__.py
brennanhfredericks/network-monitor-client
618d222bb015662c3958f0100a965f3c71b29d32
[ "MIT" ]
null
null
null
network_monitor/__init__.py
brennanhfredericks/network-monitor-client
618d222bb015662c3958f0100a965f3c71b29d32
[ "MIT" ]
null
null
null
network_monitor/__init__.py
brennanhfredericks/network-monitor-client
618d222bb015662c3958f0100a965f3c71b29d32
[ "MIT" ]
null
null
null
import argparse import netifaces import sys import signal import os import asyncio from asyncio import CancelledError, Task from typing import Optional, List, Any from .services import ( Service_Manager, Packet_Parser, Packet_Submitter, Packet_Filter, ) from .configurations import generate_configu...
16.818182
93
0.802703
0
0
0
0
0
0
0
0
0
0
0c4c75e50a5aeb0f4d0c50388de64676ac264483
1,516
py
Python
investing_com/cs_pattern_list.py
filipecn/maldives
f20f17d817fc3dcad7f9674753744716d1d4c821
[ "MIT" ]
1
2021-09-17T18:04:33.000Z
2021-09-17T18:04:33.000Z
investing_com/cs_pattern_list.py
filipecn/maldives
f20f17d817fc3dcad7f9674753744716d1d4c821
[ "MIT" ]
null
null
null
investing_com/cs_pattern_list.py
filipecn/maldives
f20f17d817fc3dcad7f9674753744716d1d4c821
[ "MIT" ]
3
2021-09-17T18:04:43.000Z
2022-03-18T20:04:07.000Z
#!/usr/bin/py import pandas as pd import os # Holds investing.com candlestick patterns class CSPatternList: def __init__(self, path): self.data = None with os.scandir(path) as entries: for e in entries: if e.is_file() and os.path.splitext(e.path)[1] == '.csv': ...
29.72549
73
0.513852
1,425
0.939974
0
0
0
0
0
0
115
0.075858
0c4cdf64475499e51798185a532224a138493103
1,113
py
Python
simpleTest04Client_.py
LaplaceKorea/APIClient
e772482c3d9cbedee98f46a3529dca5acc254f3c
[ "MIT" ]
null
null
null
simpleTest04Client_.py
LaplaceKorea/APIClient
e772482c3d9cbedee98f46a3529dca5acc254f3c
[ "MIT" ]
null
null
null
simpleTest04Client_.py
LaplaceKorea/APIClient
e772482c3d9cbedee98f46a3529dca5acc254f3c
[ "MIT" ]
null
null
null
from LaplaceWSAPIClient import * from MarkowitzSerde import * from TargetSerde import * from Operators import * from TargetOperators import * from RLStructure import * from ClientConfig import client_config query = RLQuery("default", datetime(2021,1,1), datetime(2021,1,21), { "BankAccount": 100000.0, ...
27.146341
123
0.442947
0
0
0
0
0
0
0
0
171
0.153639
0c4fdea50a153837205a14c5c61c7d560b9d7a43
14,406
py
Python
vdisk.py
cookpan001/vdisk
1414e5c20eba3722ce99818fe48ddf0217fb25ca
[ "BSD-3-Clause" ]
1
2016-01-11T06:46:11.000Z
2016-01-11T06:46:11.000Z
vdisk.py
cookpan001/vdisk
1414e5c20eba3722ce99818fe48ddf0217fb25ca
[ "BSD-3-Clause" ]
null
null
null
vdisk.py
cookpan001/vdisk
1414e5c20eba3722ce99818fe48ddf0217fb25ca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # author: cookpan001 import sys import logging import time import mimetypes import urllib import urllib2 """ oauth2 client """ class OAuth2(object): ACCESS_TOKEN_URL = "https://auth.sina.com.cn/oauth2/access_token" AUTHORIZE_URL = "https://auth.sina.com.cn/oauth2/authoriz...
36.470886
115
0.521102
14,158
0.982239
191
0.013251
0
0
0
0
2,783
0.193076
0c50ef47cd53ea48685602b6b3d98c7fea184c96
263
py
Python
setup.py
thevoxium/netspeed
9e16a49d64da90a173ef9eaf491d4245c1023105
[ "MIT" ]
null
null
null
setup.py
thevoxium/netspeed
9e16a49d64da90a173ef9eaf491d4245c1023105
[ "MIT" ]
null
null
null
setup.py
thevoxium/netspeed
9e16a49d64da90a173ef9eaf491d4245c1023105
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='netspeed', version='0.1', py_modules=['netspeed'], install_requires=[ 'Click', 'pyspeedtest' ], entry_points=''' [console_scripts] netspeed=netspeed:cli ''', )
16.4375
29
0.558935
0
0
0
0
0
0
0
0
112
0.425856
0c51490cf6a9e00d3f171f44d583a875d050c2af
244
py
Python
store/admin.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
store/admin.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
store/admin.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import (Dish, Payments, Order, Delivery, OrderItem) admin.site.register(Dish) admin.site.register(Payments) admin.site.register(Order) admin.site.register(Delivery) admin.site.register(OrderItem)
24.4
64
0.807377
0
0
0
0
0
0
0
0
0
0
0c517d2c976cb6c4a933b0a237cbe0bcc83aaacb
31,109
py
Python
hpedockerplugin/request_context.py
renovate-bot/python-hpedockerplugin
b7fa6b3193fa6dd42574585b4c621ff6a16babc9
[ "Apache-2.0" ]
49
2016-06-14T22:25:40.000Z
2021-04-05T05:00:59.000Z
hpedockerplugin/request_context.py
imran-ansari/python-hpedockerplugin
e2726f48ac793dc894100e3772c40ce89bfe9bb8
[ "Apache-2.0" ]
550
2016-07-25T12:01:12.000Z
2021-11-15T17:52:40.000Z
hpedockerplugin/request_context.py
imran-ansari/python-hpedockerplugin
e2726f48ac793dc894100e3772c40ce89bfe9bb8
[ "Apache-2.0" ]
96
2016-06-01T22:07:03.000Z
2021-06-22T09:05:05.000Z
import abc import json import re from collections import OrderedDict from oslo_log import log as logging import hpedockerplugin.exception as exception from hpedockerplugin.hpe import share LOG = logging.getLogger(__name__) class RequestContextBuilderFactory(object): def __init__(self, all_configs): sel...
43.387727
79
0.567746
16,687
0.536404
0
0
6,461
0.207689
0
0
18,657
0.59973
0c51d4fd680a6be2f21491d3d55f99e1a13769ea
32,369
py
Python
scripts/train_image_.py
shafieelab/SPyDERMAN
1b3fe1d0fcb33dcaed85fb110c88575ffa6fb7b6
[ "MIT" ]
1
2021-01-26T18:07:56.000Z
2021-01-26T18:07:56.000Z
scripts/train_image_.py
Deeksha-K/SPyDERMAN
8cb4a3efc2b8706133f81e7bf878439110402434
[ "MIT" ]
null
null
null
scripts/train_image_.py
Deeksha-K/SPyDERMAN
8cb4a3efc2b8706133f81e7bf878439110402434
[ "MIT" ]
3
2021-01-26T18:07:39.000Z
2021-04-07T22:07:01.000Z
import argparse import csv import os import os.path as osp import statistics import tqdm import time from datetime import datetime import copy import numpy as np import torch import torch.nn as nn import torch.optim as optim import helper_utils.network as network import helper_utils.loss as loss import helper_utils.pre...
42.646904
170
0.575489
1,651
0.051006
0
0
0
0
0
0
9,515
0.293954
0c51eb0b9b67869087426ffee62488bbc0029d3f
1,230
py
Python
src/freshchat/client/configuration.py
twyla-ai/python-freshchat
5bb0ea730f82b63292688be61315b6b880896e1f
[ "MIT" ]
4
2019-10-15T11:03:28.000Z
2021-08-19T01:14:12.000Z
src/freshchat/client/configuration.py
twyla-ai/python-freshchat
5bb0ea730f82b63292688be61315b6b880896e1f
[ "MIT" ]
137
2019-10-18T04:36:21.000Z
2022-03-21T04:11:18.000Z
src/freshchat/client/configuration.py
twyla-ai/python-freshchat
5bb0ea730f82b63292688be61315b6b880896e1f
[ "MIT" ]
1
2021-08-19T01:14:14.000Z
2021-08-19T01:14:14.000Z
import os from dataclasses import dataclass, field from typing import AnyStr, Dict, Optional from urllib.parse import urljoin @dataclass class FreshChatConfiguration: """ Class represents the base configuration for Freshchat """ app_id: str token: str = field(repr=False) default_channel_id: O...
28.604651
80
0.64065
1,090
0.886179
0
0
1,101
0.895122
0
0
472
0.38374
0c521cb77fbca7152db05ece3eddd9a49ae59322
20,120
py
Python
get_headers.py
rupendrab/py_unstr_parse
3cece3fb7ca969734bf5e60fe5846a7148ce8be4
[ "MIT" ]
null
null
null
get_headers.py
rupendrab/py_unstr_parse
3cece3fb7ca969734bf5e60fe5846a7148ce8be4
[ "MIT" ]
null
null
null
get_headers.py
rupendrab/py_unstr_parse
3cece3fb7ca969734bf5e60fe5846a7148ce8be4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.5 import sys import re import os import csv import numpy as np from operator import itemgetter from time import time from multiprocessing import Pool from extract_toc import parseargs from predict_using_toc_mapper import Mapper, get_topic, read_model_file from find_topics import toc_entries, ge...
31.885895
174
0.655964
0
0
98
0.004871
0
0
0
0
4,431
0.220229
0c52238d0be9f0af598966fd7664c6c79e85f8cb
6,214
py
Python
dalle_pytorch/dalle_pytorch.py
tensorfork/DALLE-pytorch
0e8f5d9a7fe054c587ed91d9c9616c7a883f393b
[ "MIT" ]
1
2021-06-22T08:26:20.000Z
2021-06-22T08:26:20.000Z
dalle_pytorch/dalle_pytorch.py
tensorfork/DALLE-pytorch
0e8f5d9a7fe054c587ed91d9c9616c7a883f393b
[ "MIT" ]
null
null
null
dalle_pytorch/dalle_pytorch.py
tensorfork/DALLE-pytorch
0e8f5d9a7fe054c587ed91d9c9616c7a883f393b
[ "MIT" ]
null
null
null
from math import log2 import torch from torch import nn, einsum import torch.nn.functional as F from einops import rearrange from x_transformers import Encoder, Decoder # helpers def exists(val): return val is not None def masked_mean(t, mask, dim = 1): t = t.masked_fill(~mask[:, :, None], 0.) return t....
30.019324
117
0.587383
5,816
0.935951
0
0
0
0
0
0
338
0.054393
0c52795432861cbcf4e3ec45d893ec1acc331585
7,668
py
Python
aiida_phonopy/parsers/phonopy.py
giovannipizzi/aiida-phonopy
26e419c34415c68f815fa81ce2ac644aa387ae72
[ "MIT" ]
null
null
null
aiida_phonopy/parsers/phonopy.py
giovannipizzi/aiida-phonopy
26e419c34415c68f815fa81ce2ac644aa387ae72
[ "MIT" ]
null
null
null
aiida_phonopy/parsers/phonopy.py
giovannipizzi/aiida-phonopy
26e419c34415c68f815fa81ce2ac644aa387ae72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from aiida.orm.data.folder import FolderData from aiida.parsers.parser import Parser from aiida.common.datastructures import calc_states from aiida.parsers.exceptions import OutputParsingError from aiida.common.exceptions import UniquenessError import numpy from aiida.orm.data.array import Arra...
36.865385
185
0.594027
6,749
0.879807
0
0
0
0
0
0
2,151
0.280407
0c52883ec5869dd4ebaf9438c8845a04d78492ff
1,128
py
Python
bagua/bagua_define.py
jphgxq/bagua
3444f79b8fe9c9d2975a8994a1a613ebd14c3d33
[ "MIT" ]
1
2021-07-12T03:33:38.000Z
2021-07-12T03:33:38.000Z
bagua/bagua_define.py
jphgxq/bagua
3444f79b8fe9c9d2975a8994a1a613ebd14c3d33
[ "MIT" ]
null
null
null
bagua/bagua_define.py
jphgxq/bagua
3444f79b8fe9c9d2975a8994a1a613ebd14c3d33
[ "MIT" ]
null
null
null
import enum from typing import List import sys if sys.version_info >= (3, 9): from typing import TypedDict # pytype: disable=not-supported-yet else: from typing_extensions import TypedDict # pytype: disable=not-supported-yet from pydantic import BaseModel class TensorDtype(str, enum.Enum): F32 = "f32" ...
22.56
80
0.656915
593
0.525709
0
0
0
0
0
0
157
0.139184
0c53db086eb0eb7f6a00e60d3b14eacbfe7ba92e
97
py
Python
instaphotos/apps.py
LekamCharity/insta-IG
0302440df3b2029297af54eb9c56090f82232973
[ "MIT" ]
null
null
null
instaphotos/apps.py
LekamCharity/insta-IG
0302440df3b2029297af54eb9c56090f82232973
[ "MIT" ]
null
null
null
instaphotos/apps.py
LekamCharity/insta-IG
0302440df3b2029297af54eb9c56090f82232973
[ "MIT" ]
null
null
null
from django.apps import AppConfig class InstaphotosConfig(AppConfig): name = 'instaphotos'
16.166667
35
0.773196
60
0.618557
0
0
0
0
0
0
13
0.134021
0c5539475c0da1f3dfc53cbf5dc335c43077d9cf
2,835
py
Python
services/backend/expiring_links/tests/test_expiring_link_generator_serializer.py
patpio/drf_images_api
ef689bac10ce8b9d2f03d6b647fa4bbd70b02f1c
[ "Beerware" ]
1
2022-02-27T16:34:46.000Z
2022-02-27T16:34:46.000Z
services/backend/expiring_links/tests/test_expiring_link_generator_serializer.py
patpio/drf_images_api
ef689bac10ce8b9d2f03d6b647fa4bbd70b02f1c
[ "Beerware" ]
null
null
null
services/backend/expiring_links/tests/test_expiring_link_generator_serializer.py
patpio/drf_images_api
ef689bac10ce8b9d2f03d6b647fa4bbd70b02f1c
[ "Beerware" ]
null
null
null
import pytest from expiring_links.serializers import ExpiringLinkGeneratorSerializer @pytest.mark.serializers def test_fields(db, create_test_expiring_link_serializer_data): assert list(create_test_expiring_link_serializer_data.keys()) == ['image_id', 'expiration_time'] @pytest.mark.serializers def test_valid_...
42.954545
118
0.71358
0
0
0
0
2,731
0.963316
0
0
163
0.057496
0c553d8f4165e63fa177620f1fa3f79bb1b9cb45
91,609
py
Python
com/vmware/nsx/trust_management_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/nsx/trust_management_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/nsx/trust_management_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2020 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.nsx.trust_management. #-------------------------------------------------------------...
44.40572
156
0.596492
90,542
0.988353
0
0
0
0
0
0
51,538
0.562587
0c5549700625606ae1bd959bf730c22c941eb303
4,255
py
Python
bottleneck/tests/list_input_test.py
stroxler/bottleneck
6e91bcb8a21170588ee9a3f2c425a4e307ae05de
[ "BSD-2-Clause" ]
2
2015-05-26T09:06:32.000Z
2015-05-26T09:06:46.000Z
bottleneck/tests/list_input_test.py
stroxler/bottleneck
6e91bcb8a21170588ee9a3f2c425a4e307ae05de
[ "BSD-2-Clause" ]
null
null
null
bottleneck/tests/list_input_test.py
stroxler/bottleneck
6e91bcb8a21170588ee9a3f2c425a4e307ae05de
[ "BSD-2-Clause" ]
null
null
null
"Test list input." # For support of python 2.5 from __future__ import with_statement import numpy as np from numpy.testing import assert_equal, assert_array_almost_equal import bottleneck as bn # --------------------------------------------------------------------------- # Check that functions can handle list input ...
22.632979
77
0.636193
0
0
3,207
0.753702
0
0
0
0
899
0.211281
0c587de94c3ee270415110f012b7d77cb256c5a4
1,475
py
Python
hanzo/warcindex.py
ukwa/warctools
f74061382d6bc37b6eec889a3aec26c5748d90d3
[ "MIT" ]
1
2020-09-03T00:51:50.000Z
2020-09-03T00:51:50.000Z
hanzo/warcindex.py
martinsbalodis/warc-tools
d9d5e708e00bd0f6d9d0c2d95cbc9332f51b05e4
[ "MIT" ]
null
null
null
hanzo/warcindex.py
martinsbalodis/warc-tools
d9d5e708e00bd0f6d9d0c2d95cbc9332f51b05e4
[ "MIT" ]
1
2021-04-12T01:45:14.000Z
2021-04-12T01:45:14.000Z
#!/usr/bin/env python """warcindex - dump warc index""" import os import sys import sys import os.path from optparse import OptionParser from .warctools import WarcRecord, expand_files parser = OptionParser(usage="%prog [options] warc warc warc") parser.add_option("-l", "--limit", dest="limit") parser.add_option(...
23.412698
114
0.633898
0
0
0
0
0
0
0
0
412
0.279322
0c599f149ff2c8a006a46a9e33e3ef181a3cc037
1,469
py
Python
tsdata/migrations/0001_initial.py
OpenDataPolicingNC/Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
25
2015-09-12T23:10:52.000Z
2021-03-24T08:39:46.000Z
tsdata/migrations/0001_initial.py
OpenDataPolicingNC/Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
159
2015-07-01T03:57:23.000Z
2021-04-17T21:09:19.000Z
tsdata/migrations/0001_initial.py
copelco/NC-Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
8
2015-10-02T16:56:40.000Z
2020-10-18T01:16:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Dataset', fields=[ ('id', models.AutoField(prim...
40.805556
153
0.582709
1,360
0.9258
0
0
0
0
0
0
281
0.191287
0c5b11a856de6baa5333d1f6f60e74187acb3fcd
1,836
py
Python
api/tests/opentrons/protocol_engine/execution/test_run_control_handler.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
api/tests/opentrons/protocol_engine/execution/test_run_control_handler.py
koji/opentrons
0f339f45de238183b2c433e67f839363d5177582
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
api/tests/opentrons/protocol_engine/execution/test_run_control_handler.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
"""Run control side-effect handler.""" import pytest from decoy import Decoy from opentrons.protocol_engine.state import StateStore from opentrons.protocol_engine.actions import ActionDispatcher, PauseAction from opentrons.protocol_engine.execution.run_control import RunControlHandler from opentrons.protocol_engine.st...
30.6
88
0.751634
0
0
0
0
605
0.329521
871
0.474401
270
0.147059
0c5b7ae73a2b618a79092df65cc9600f76dbf5e0
510
py
Python
Datasets/Generator/Healthcare/mergedrug.py
undraaa/m2bench
b661b61ca04470ed1c9c50531ce760a2cd5000d9
[ "RSA-MD" ]
null
null
null
Datasets/Generator/Healthcare/mergedrug.py
undraaa/m2bench
b661b61ca04470ed1c9c50531ce760a2cd5000d9
[ "RSA-MD" ]
null
null
null
Datasets/Generator/Healthcare/mergedrug.py
undraaa/m2bench
b661b61ca04470ed1c9c50531ce760a2cd5000d9
[ "RSA-MD" ]
1
2021-11-29T10:31:36.000Z
2021-11-29T10:31:36.000Z
import json import glob def merge_drug(drug_dirpath): #start_time = time.time() print("\n----- MERGING json data into merged_drug.json -----") result = [] for f in glob.glob(drug_dirpath+'/*.json'): with open(f,"rb") as infile: result.append(json.load(infile)) with open("merge...
26.842105
76
0.592157
0
0
0
0
0
0
0
0
221
0.433333
0c5c225bea97b848df7068538bc1df5271634638
10,326
py
Python
tests/test_rundramatiq_command.py
BradleyKirton/django_dramatiq
93a4a9ae39aee643cc4a987b18030ad8d1fc8480
[ "Apache-2.0" ]
null
null
null
tests/test_rundramatiq_command.py
BradleyKirton/django_dramatiq
93a4a9ae39aee643cc4a987b18030ad8d1fc8480
[ "Apache-2.0" ]
null
null
null
tests/test_rundramatiq_command.py
BradleyKirton/django_dramatiq
93a4a9ae39aee643cc4a987b18030ad8d1fc8480
[ "Apache-2.0" ]
null
null
null
import os import sys from io import StringIO from unittest.mock import patch from django.core.management import call_command from django_dramatiq.management.commands import rundramatiq def test_rundramatiq_command_autodiscovers_modules(): assert rundramatiq.Command().discover_tasks_modules() == [ "django...
35.122449
93
0.673833
0
0
0
0
9,155
0.886597
0
0
4,946
0.478985
0c5c924b0477b69417c6a0474627207f48573e2f
3,620
py
Python
WordRPG/data/states/new_game.py
ChristopherLBruce/WordRPG
e545cf313afc430e8191a7c813db9ee9759a6fd4
[ "Apache-2.0" ]
2
2018-12-15T15:06:35.000Z
2022-02-09T00:19:28.000Z
WordRPG/data/states/new_game.py
ChristopherLBruce/WordRPG
e545cf313afc430e8191a7c813db9ee9759a6fd4
[ "Apache-2.0" ]
null
null
null
WordRPG/data/states/new_game.py
ChristopherLBruce/WordRPG
e545cf313afc430e8191a7c813db9ee9759a6fd4
[ "Apache-2.0" ]
null
null
null
""" 'new_game' state. Includes character creation. """ from ...engine.gui.screen import const, Screen from ...engine.state_machine import State class New_Game(State): def __init__(self): """ Initiailize class and super class """ super(New_Game, self).__init__() self.screen = self._init...
27.424242
86
0.551381
3,458
0.955249
0
0
0
0
0
0
1,408
0.38895
0c5da302d0cfb597c70f8c34fe51028d86ae2e18
2,106
py
Python
guestbook.py
Tycx2ry/FKRTimeline
11e784f4a3800336abf19c42c15a06c86af970bd
[ "Apache-2.0" ]
null
null
null
guestbook.py
Tycx2ry/FKRTimeline
11e784f4a3800336abf19c42c15a06c86af970bd
[ "Apache-2.0" ]
null
null
null
guestbook.py
Tycx2ry/FKRTimeline
11e784f4a3800336abf19c42c15a06c86af970bd
[ "Apache-2.0" ]
null
null
null
#!/usr /bin/env python # -*- coding: utf-8 -*- __author__ = 'jiangge' from flask_sqlalchemy import SQLAlchemy from datetime import datetime from flask import Flask, request, render_template, redirect application = Flask(__name__) application.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///guestbook.db' app...
27.350649
73
0.632479
393
0.18661
0
0
681
0.323362
0
0
451
0.21415
0c5db28673060acc0246927ee800263dd3a7f124
707
py
Python
dash_test_runner/testapp/migrations/0001_initial.py
Ilhasoft/dash
d9b900cc08d9238304a226d837a4c90dec6b46fc
[ "BSD-3-Clause" ]
null
null
null
dash_test_runner/testapp/migrations/0001_initial.py
Ilhasoft/dash
d9b900cc08d9238304a226d837a4c90dec6b46fc
[ "BSD-3-Clause" ]
null
null
null
dash_test_runner/testapp/migrations/0001_initial.py
Ilhasoft/dash
d9b900cc08d9238304a226d837a4c90dec6b46fc
[ "BSD-3-Clause" ]
1
2018-04-12T20:18:34.000Z
2018-04-12T20:18:34.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orgs', '0015_auto_20160209_0926'), ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.AutoField(verbose_name='ID', seria...
32.136364
114
0.575672
663
0.937765
0
0
0
0
0
0
92
0.130127
0c5e4893a61a507b2525a971a14202b85e75581a
6,596
py
Python
tests/test_integration.py
Radico/business-rules
7dd0551e8b33234fcea0abaf04f9982eb6f3426f
[ "MIT" ]
null
null
null
tests/test_integration.py
Radico/business-rules
7dd0551e8b33234fcea0abaf04f9982eb6f3426f
[ "MIT" ]
null
null
null
tests/test_integration.py
Radico/business-rules
7dd0551e8b33234fcea0abaf04f9982eb6f3426f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from business_rules.actions import rule_action, BaseActions from business_rules.engine import check_condition, run_all from business_rules.fields import FIELD_TEXT, FIELD_NUMERIC, FIELD_SELECT from business_rules.variables import BaseVariables, string_rule_variable, numeric_rule_v...
27.256198
118
0.575045
6,213
0.941935
0
0
1,307
0.19815
0
0
1,143
0.173287
0c5f5d9ac8242efc8ccf5bafaa6e567b8ee2cc86
5,808
py
Python
cog/cli/user_argparser.py
Demonware/cog
b206066ebfd5faae000b1a1708988db8ca592b94
[ "BSD-3-Clause" ]
2
2016-06-02T02:15:56.000Z
2016-08-16T08:37:27.000Z
cog/cli/user_argparser.py
Demonware/cog
b206066ebfd5faae000b1a1708988db8ca592b94
[ "BSD-3-Clause" ]
null
null
null
cog/cli/user_argparser.py
Demonware/cog
b206066ebfd5faae000b1a1708988db8ca592b94
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sys import argparse arg_no = len(sys.argv) tool_parser = argparse.ArgumentParser(add_help=False) tool_subparsers = tool_parser.add_subparsers(help='commands', dest='command') # The rename command. rename_parser = tool_subparsers.add_parser('rename', help='rename an existing user acco...
35.2
118
0.722968
0
0
0
0
0
0
0
0
2,622
0.451446
0c605a349671fad2588ca9a0e3c2afed9c2453f5
6,235
py
Python
custom_components/wisersmart/climate.py
tomtomfx/wiserSmartForHA
9878840b073250302e583bd2f6040a825de97803
[ "MIT" ]
1
2020-10-06T19:49:59.000Z
2020-10-06T19:49:59.000Z
custom_components/wisersmart/climate.py
tomtomfx/wiserSmartForHA
9878840b073250302e583bd2f6040a825de97803
[ "MIT" ]
1
2020-10-06T20:18:32.000Z
2020-10-24T19:50:53.000Z
custom_components/wisersmart/climate.py
tomtomfx/wiserSmartForHA
9878840b073250302e583bd2f6040a825de97803
[ "MIT" ]
1
2021-04-12T16:37:40.000Z
2021-04-12T16:37:40.000Z
""" Climate Platform Device for Wiser Smart https://github.com/tomtomfx/wiserSmartForHA [email protected] """ import asyncio import logging import voluptuous as vol from functools import partial from ruamel.yaml import YAML as yaml from homeassistant.components.climate import ClimateEntity from homeassistant...
28.865741
94
0.645549
5,001
0.802085
0
0
2,907
0.466239
1,800
0.288693
1,133
0.181716
0c60917a4d7a8f1d00442aa352ab85caf9e37f11
4,765
py
Python
src/dataset/utils/process_df.py
Fkaneko/kaggle_g2net_gravitational_wave_detection-
8bb32cc675e6b56171da8a3754fffeda41e934bb
[ "Apache-2.0" ]
null
null
null
src/dataset/utils/process_df.py
Fkaneko/kaggle_g2net_gravitational_wave_detection-
8bb32cc675e6b56171da8a3754fffeda41e934bb
[ "Apache-2.0" ]
null
null
null
src/dataset/utils/process_df.py
Fkaneko/kaggle_g2net_gravitational_wave_detection-
8bb32cc675e6b56171da8a3754fffeda41e934bb
[ "Apache-2.0" ]
null
null
null
import os from functools import partial from multiprocessing import Pool from typing import Any, Callable, Dict, List, Optional import numpy as np import pandas as pd from tqdm import tqdm from src.dataset.utils.waveform_preprocessings import preprocess_strain def id_2_path( image_id: str, is_train: bool = ...
28.532934
87
0.570619
0
0
0
0
0
0
0
0
769
0.161385
0c60c978bb3233d48fef80aac1fbd85b7650f54f
637
py
Python
sa/migrations/0051_managedobject_set_profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/migrations/0051_managedobject_set_profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/migrations/0051_managedobject_set_profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # managedobject set profile # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NO...
37.470588
90
0.470958
254
0.398744
0
0
0
0
0
0
435
0.682889
0c6180591c4611e118c4ac0d8c026f5d2d7c99fa
305
py
Python
oct2py/compat.py
sdvillal/oct2py
f7aa89b909cbb5959ddedf3ab3e743898eac3d45
[ "MIT" ]
8
2015-10-16T23:28:16.000Z
2020-06-19T18:49:18.000Z
oct2py/compat.py
sdvillal/oct2py
f7aa89b909cbb5959ddedf3ab3e743898eac3d45
[ "MIT" ]
8
2015-06-25T20:57:56.000Z
2020-04-03T22:33:16.000Z
oct2py/compat.py
sdvillal/oct2py
f7aa89b909cbb5959ddedf3ab3e743898eac3d45
[ "MIT" ]
6
2015-04-21T12:23:44.000Z
2021-10-01T00:08:47.000Z
# -*- coding: utf-8 -*- import sys PY2 = sys.version[0] == '2' PY3 = sys.version[0] == '3' if PY2: unicode = unicode long = long from StringIO import StringIO import Queue as queue else: # pragma : no cover unicode = str long = int from io import StringIO import queue
16.944444
33
0.606557
0
0
0
0
0
0
0
0
48
0.157377
0c61d0a37539223a22a77c96706aa91e5bab6637
1,563
py
Python
lambda_functions/compute/campaign/aws.py
pierrealixt/MapCampaigner
7845bda4b0f6ccb7d18905a8c77d91ba6a4f78ad
[ "BSD-3-Clause" ]
null
null
null
lambda_functions/compute/campaign/aws.py
pierrealixt/MapCampaigner
7845bda4b0f6ccb7d18905a8c77d91ba6a4f78ad
[ "BSD-3-Clause" ]
1
2018-07-24T13:57:03.000Z
2018-07-24T13:57:03.000Z
lambda_functions/compute/campaign/aws.py
pierrealixt/MapCampaigner
7845bda4b0f6ccb7d18905a8c77d91ba6a4f78ad
[ "BSD-3-Clause" ]
null
null
null
import os import json import boto3 class S3Data(object): """ Class for AWS S3 """ def __init__(self): """ Initialize the s3 client. """ self.s3 = boto3.client('s3') self.bucket = os.environ['S3_BUCKET'] def list(self, prefix): """ List S3 o...
24.809524
78
0.515035
1,526
0.976328
0
0
0
0
0
0
835
0.534229
0c6200ff0e4e0bec1acf3bffde906f26e624c332
5,980
py
Python
infra/utils/launch_ec2.py
philipmac/nephele2
50acba6b7bb00da6209c75e26c8c040ffacbaa1e
[ "CC0-1.0" ]
1
2021-02-26T23:00:10.000Z
2021-02-26T23:00:10.000Z
infra/utils/launch_ec2.py
philipmac/nephele2
50acba6b7bb00da6209c75e26c8c040ffacbaa1e
[ "CC0-1.0" ]
1
2020-11-16T01:55:06.000Z
2020-11-16T01:55:06.000Z
infra/utils/launch_ec2.py
philipmac/nephele2
50acba6b7bb00da6209c75e26c8c040ffacbaa1e
[ "CC0-1.0" ]
2
2021-08-12T13:59:49.000Z
2022-01-19T17:16:26.000Z
#!/usr/bin/env python3 import os import boto3 import botocore.exceptions import argparse import yaml from nephele2 import NepheleError mand_vars = ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY'] perm_error = """\n\nIt seems you have not set up your AWS correctly. Should you be running this with Awssume? Or have profile...
39.084967
167
0.623746
0
0
0
0
0
0
0
0
1,986
0.332107
0c6419af7c4ea362b8097a85b3a1cb0ca9746ce0
9,196
py
Python
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
4
2019-09-16T15:50:22.000Z
2021-04-08T15:32:48.000Z
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
3
2018-05-04T09:28:24.000Z
2018-12-03T09:00:31.000Z
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
1
2020-10-12T15:14:17.000Z
2020-10-12T15:14:17.000Z
"""Test VIMS wavelength module.""" from pathlib import Path import numpy as np from numpy.testing import assert_array_almost_equal as assert_array from pyvims import QUB from pyvims.vars import ROOT_DATA from pyvims.wvlns import (BAD_IR_PIXELS, CHANNELS, FWHM, SHIFT, VIMS_IR, VIMS_VIS, WLN...
27.450746
79
0.605154
0
0
0
0
0
0
0
0
1,145
0.124511
0c661084ef2dc9a119cb718b8362035d15b03067
909
py
Python
Outliers/loss/losses.py
MakotoTAKAMATSU013/Outliers
80043027d64b8f07355a05b281925f00bbf1a442
[ "MIT" ]
null
null
null
Outliers/loss/losses.py
MakotoTAKAMATSU013/Outliers
80043027d64b8f07355a05b281925f00bbf1a442
[ "MIT" ]
null
null
null
Outliers/loss/losses.py
MakotoTAKAMATSU013/Outliers
80043027d64b8f07355a05b281925f00bbf1a442
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class LabelSmoothingCrossEntropy(nn.Module): def __init__(self, smoothing = 0.1): super(LabelSmoothingCrossEntropy, self).__init__() assert smoothing < 0.1 self.smoothing = smoothing self.confidence = 1. - smoothing ...
34.961538
73
0.660066
839
0.922992
0
0
0
0
0
0
0
0
0c663401e4bd928831a371cae4be0b6a743a91c8
5,783
py
Python
esiosdata/importdemdata.py
azogue/esiosdata
680c7918955bc6ceee5bded92b3a4485f5ea8151
[ "MIT" ]
20
2017-06-04T20:34:16.000Z
2021-10-31T22:55:22.000Z
esiosdata/importdemdata.py
azogue/esiosdata
680c7918955bc6ceee5bded92b3a4485f5ea8151
[ "MIT" ]
null
null
null
esiosdata/importdemdata.py
azogue/esiosdata
680c7918955bc6ceee5bded92b3a4485f5ea8151
[ "MIT" ]
4
2020-01-28T19:02:24.000Z
2022-03-08T15:59:11.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 27 18:16:24 2015 @author: Eugenio Panadero A raíz del cambio previsto: DESCONEXIÓN DE LA WEB PÚBLICA CLÁSICA DE E·SIOS La Web pública clásica de e·sios (http://www.esios.ree.es) será desconectada el día 29 de marzo de 2016. Continuaremos ofreciendo servicio en la nueva ...
39.609589
114
0.639633
0
0
0
0
0
0
0
0
1,782
0.306871
a73d0e2b381469762428cb4845c16d12f86b59d9
4,744
py
Python
brainfrick.py
rium9/brainfrick
37f8e3417cde5828e3ed2c2099fc952259f12844
[ "MIT" ]
null
null
null
brainfrick.py
rium9/brainfrick
37f8e3417cde5828e3ed2c2099fc952259f12844
[ "MIT" ]
null
null
null
brainfrick.py
rium9/brainfrick
37f8e3417cde5828e3ed2c2099fc952259f12844
[ "MIT" ]
null
null
null
class BrainfuckException(Exception): pass class BLexer: """ Static class encapsulating functionality for lexing Brainfuck programs. """ symbols = [ '>', '<', '+', '-', '.', ',', '[', ']' ] @staticmethod def lex(code): """ Return a generator for tokens in...
32.493151
110
0.490304
4,501
0.948777
0
0
381
0.080312
0
0
1,674
0.352867
a73f4577fe0a30a2fdd1d7b44615b63fb0d34f1e
3,476
bzl
Python
infra_macros/fbcode_macros/build_defs/build_info.bzl
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
infra_macros/fbcode_macros/build_defs/build_info.bzl
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
infra_macros/fbcode_macros/build_defs/build_info.bzl
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
load("@fbcode_macros//build_defs:config.bzl", "config") load("@fbcode_macros//build_defs/config:read_configs.bzl", "read_int") load("@fbcode_macros//build_defs:core_tools.bzl", "core_tools") def _create_build_info( build_mode, buck_package, name, rule_type, platform, epochtime=0, host="", ...
35.469388
97
0.635788
0
0
0
0
0
0
0
0
1,335
0.384062
a7401ff3c28629b2dc0848d7b3f999f8226d524f
1,885
py
Python
src/scan.py
Unitato/github-public-alert
29dbcf72dd8c18c45385c29f25174c28c3428560
[ "MIT" ]
null
null
null
src/scan.py
Unitato/github-public-alert
29dbcf72dd8c18c45385c29f25174c28c3428560
[ "MIT" ]
null
null
null
src/scan.py
Unitato/github-public-alert
29dbcf72dd8c18c45385c29f25174c28c3428560
[ "MIT" ]
null
null
null
#!#!/usr/bin/env python import os from github import Github from libraries.notify import Notify import json print("") print("Scanning Github repos") GITHUB_API_KEY = os.environ.get('GITHUB_API_KEY') WHITELIST = json.loads(os.environ.get('GITHUB_WHITELIST').lower()) GITHUB_SCAN = json.loads(os.environ.get('GITHUB_SCAN...
30.901639
76
0.671088
0
0
0
0
0
0
0
0
501
0.265782
a7403e0780a57d1602d030f1189826ad5b0324b5
3,634
py
Python
models.py
YavorPaunov/await
0ea7ad1d0d48b66686e35702d39695268451b688
[ "MIT" ]
null
null
null
models.py
YavorPaunov/await
0ea7ad1d0d48b66686e35702d39695268451b688
[ "MIT" ]
null
null
null
models.py
YavorPaunov/await
0ea7ad1d0d48b66686e35702d39695268451b688
[ "MIT" ]
null
null
null
from flask.ext.sqlalchemy import SQLAlchemy from util import hex_to_rgb, rgb_to_hex from time2words import relative_time_to_text from datetime import datetime from dateutil.tz import tzutc import pytz db = SQLAlchemy() def created_on_default(): return datetime.utcnow() class Counter(db.Model): __tablename__ ...
30.79661
94
0.632911
3,077
0.846725
0
0
0
0
0
0
310
0.085305
a74179e3bf17c46fcdccafdc139bb260a2c60cb7
732
py
Python
setup.py
ManuelMeraz/ReinforcementLearning
5d42a88776428308d35c8031c01bf5afdf080079
[ "MIT" ]
1
2020-04-19T15:29:47.000Z
2020-04-19T15:29:47.000Z
setup.py
ManuelMeraz/ReinforcementLearning
5d42a88776428308d35c8031c01bf5afdf080079
[ "MIT" ]
null
null
null
setup.py
ManuelMeraz/ReinforcementLearning
5d42a88776428308d35c8031c01bf5afdf080079
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import setuptools DIR = os.path.dirname(__file__) REQUIREMENTS = os.path.join(DIR, "requirements.txt") with open(REQUIREMENTS) as f: reqs = f.read().strip().split("\n") setuptools.setup( name="rl", version="0.0.1", description="Reinforcement Learning: An Introduction...
25.241379
64
0.648907
0
0
0
0
0
0
0
0
308
0.420765
a743058f6e943a66d50447c9ef87971c35895cc0
169
py
Python
taxcalc/tbi/__init__.py
ClarePan/Tax-Calculator
d2d6cb4b551f34017db7166d91d982b5c4670816
[ "CC0-1.0" ]
1
2021-02-23T21:03:43.000Z
2021-02-23T21:03:43.000Z
taxcalc/tbi/__init__.py
ClarePan/Tax-Calculator
d2d6cb4b551f34017db7166d91d982b5c4670816
[ "CC0-1.0" ]
null
null
null
taxcalc/tbi/__init__.py
ClarePan/Tax-Calculator
d2d6cb4b551f34017db7166d91d982b5c4670816
[ "CC0-1.0" ]
null
null
null
from taxcalc.tbi.tbi import (run_nth_year_taxcalc_model, run_nth_year_gdp_elast_model, reform_warnings_errors)
42.25
58
0.585799
0
0
0
0
0
0
0
0
0
0
a7433e8c895ee751d0a668a187a9eb4c45927efe
6,223
py
Python
mooc_access_number.py
mengshouer/mooc_access_number
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
6
2020-05-12T14:36:17.000Z
2021-12-03T01:56:58.000Z
mooc_access_number.py
mengshouer/mooc_tools
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
2
2020-05-11T06:21:13.000Z
2020-05-23T12:34:18.000Z
mooc_access_number.py
mengshouer/mooc_tools
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
1
2020-05-11T04:19:15.000Z
2020-05-11T04:19:15.000Z
import requests,time,json,re,base64 requests.packages.urllib3.disable_warnings() from io import BytesIO from PIL import Image,ImageDraw,ImageChops from lxml import etree from urllib.parse import urlparse, parse_qs username = "" #登录账号 password = "" #登录密码 s = requests.Session() s.headers.update({'User-Ag...
32.752632
151
0.527398
0
0
0
0
0
0
0
0
4,263
0.635226
a743c86ba9ec1ed2c5e5910bec35a0fda5523988
11,174
py
Python
tests/test_json_api.py
Padraic-O-Mhuiris/fava
797ae1ee1f7378c8e7347d2970fc52c4be366b01
[ "MIT" ]
null
null
null
tests/test_json_api.py
Padraic-O-Mhuiris/fava
797ae1ee1f7378c8e7347d2970fc52c4be366b01
[ "MIT" ]
null
null
null
tests/test_json_api.py
Padraic-O-Mhuiris/fava
797ae1ee1f7378c8e7347d2970fc52c4be366b01
[ "MIT" ]
null
null
null
# pylint: disable=missing-docstring from __future__ import annotations import hashlib from io import BytesIO from pathlib import Path from typing import Any import pytest from beancount.core.compare import hash_entry from flask import url_for from flask.testing import FlaskClient from fava.context import g from fava...
31.564972
79
0.578038
0
0
0
0
600
0.053696
0
0
2,586
0.23143
a747752e784483f13e0672fa7ef44261d743dd9f
403
py
Python
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-27 20:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('babybuddy', '0016_auto_20191127_1424'), ] operations = [ migrations.AddField( model_name='promocode', name='max_usag...
21.210526
49
0.615385
310
0.769231
0
0
0
0
0
0
117
0.290323
a74a33620df33a15eb19e53e0f2d731815811072
6,218
py
Python
tests/test_upload.py
LuminosoInsight/luminoso-api-client-python
bae7db9b02123718ded5a8345a860bd12680b367
[ "MIT" ]
5
2016-09-14T02:02:30.000Z
2021-06-20T21:11:19.000Z
tests/test_upload.py
LuminosoInsight/luminoso-api-client-python
bae7db9b02123718ded5a8345a860bd12680b367
[ "MIT" ]
29
2015-01-13T15:07:38.000Z
2021-06-14T21:03:06.000Z
tests/test_upload.py
LuminosoInsight/luminoso-api-client-python
bae7db9b02123718ded5a8345a860bd12680b367
[ "MIT" ]
3
2016-03-07T13:04:34.000Z
2017-08-07T21:15:53.000Z
from luminoso_api.v5_client import LuminosoClient from luminoso_api.v5_upload import create_project_with_docs, BATCH_SIZE from unittest.mock import patch import pytest BASE_URL = 'http://mock-api.localhost/api/v5/' DOCS_TO_UPLOAD = [ {'title': 'Document 1', 'text': 'Bonjour', 'extra': 'field'}, {'title': 'Do...
31.72449
78
0.595529
0
0
0
0
0
0
0
0
2,525
0.406079
a74ad7dc8ca825fa0b64d0132540f37da6f4e67a
1,259
py
Python
src/oca_github_bot/webhooks/on_command.py
eLBati/oca-github-bot
4fa974f8ec123c9ccfd7bcad22e4baa939c985ac
[ "MIT" ]
null
null
null
src/oca_github_bot/webhooks/on_command.py
eLBati/oca-github-bot
4fa974f8ec123c9ccfd7bcad22e4baa939c985ac
[ "MIT" ]
null
null
null
src/oca_github_bot/webhooks/on_command.py
eLBati/oca-github-bot
4fa974f8ec123c9ccfd7bcad22e4baa939c985ac
[ "MIT" ]
null
null
null
# Copyright (c) initOS GmbH 2019 # Distributed under the MIT License (http://opensource.org/licenses/MIT). from ..commands import CommandError, parse_commands from ..config import OCABOT_EXTRA_DOCUMENTATION, OCABOT_USAGE from ..router import router from ..tasks.add_pr_comment import add_pr_comment @router.register("...
34.972222
73
0.629071
0
0
0
0
956
0.759333
904
0.71803
505
0.401112
a74cb2eb35421327d8faf002d2a0cd393a5579ab
1,151
py
Python
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def splitListToParts(self, root, k): res = [] size = 0 traverse = root while traverse: si...
20.553571
47
0.536056
815
0.664222
0
0
0
0
0
0
205
0.167074
a74cdb915e99b5e47e7fb18dd30921d17381a256
7,744
py
Python
pmlearn/mixture/tests/test_dirichlet_process.py
john-veillette/pymc-learn
267b0084438616b869866194bc167c332c3e3547
[ "BSD-3-Clause" ]
187
2018-10-16T02:33:51.000Z
2022-03-27T14:06:36.000Z
pmlearn/mixture/tests/test_dirichlet_process.py
john-veillette/pymc-learn
267b0084438616b869866194bc167c332c3e3547
[ "BSD-3-Clause" ]
20
2018-10-31T15:13:29.000Z
2022-01-20T18:54:00.000Z
pmlearn/mixture/tests/test_dirichlet_process.py
john-veillette/pymc-learn
267b0084438616b869866194bc167c332c3e3547
[ "BSD-3-Clause" ]
20
2018-10-19T21:32:06.000Z
2022-02-07T06:04:55.000Z
import unittest import shutil import tempfile import numpy as np # import pandas as pd # import pymc3 as pm # from pymc3 import summary # from sklearn.mixture import BayesianGaussianMixture as skBayesianGaussianMixture from sklearn.model_selection import train_test_split from pmlearn.exceptions import NotFittedError ...
38.914573
84
0.594008
1,995
0.257619
0
0
0
0
0
0
5,949
0.768208
a74d82ac6813ed8153326a2d69c62b3256148e18
1,096
py
Python
algorithms/utils.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
2
2016-03-20T03:03:18.000Z
2021-02-15T22:23:44.000Z
algorithms/utils.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
null
null
null
algorithms/utils.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
null
null
null
import random TUPLE_SIZE = 4 DIGIT_BASE = 10 MAX_GUESS = DIGIT_BASE ** TUPLE_SIZE def yield_all(): for i in xrange(DIGIT_BASE ** TUPLE_SIZE): tup = tuple([int(x) for x in '%04d' % i]) assert len(tup) == TUPLE_SIZE for l in tup: if tup.count(l) != 1: break ...
28.842105
86
0.603102
406
0.370438
277
0.252737
377
0.343978
0
0
180
0.164234
a74d8736deea9179712853219ede84e9608d42dd
1,276
py
Python
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
212
2020-06-11T01:03:36.000Z
2022-03-17T17:29:21.000Z
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
25
2020-06-15T13:35:13.000Z
2022-03-10T05:44:05.000Z
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
24
2020-06-11T01:17:24.000Z
2022-03-30T13:34:45.000Z
import torch import torch.nn as nn import torch.nn.functional as F def conv3x3x3(in_planes, out_planes, stride): # 3x3x3 convolution with padding return nn.Conv3d( in_planes, out_planes, kernel_size=3, stride=stride, padding=1) def upconv3x3x3(in_planes, out_planes, stri...
27.73913
103
0.670063
0
0
0
0
0
0
0
0
32
0.025078
a74f41b8c63e9716f46430fe18d6b543d0682cb3
8,258
py
Python
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
2
2016-12-12T15:16:16.000Z
2018-10-30T02:35:36.000Z
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
null
null
null
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
null
null
null
import logging import threading import json import base64 import os from subprocess import Popen import glob import time import urllib2 import re import string import datetime class DeviceHandler: logger = logging.getLogger() def __init__(self, config): self.service = None self.tunnel = None ...
47.45977
177
0.552434
8,073
0.977597
0
0
0
0
0
0
2,109
0.255389
a74fb2c9000b17ff11193cacddad30429c023b4c
7,882
py
Python
deepsource/utils.py
vafaei-ar/deepsource
cbb06f5a2105506b63539ae5bfe73a3e62d4055f
[ "BSD-3-Clause" ]
null
null
null
deepsource/utils.py
vafaei-ar/deepsource
cbb06f5a2105506b63539ae5bfe73a3e62d4055f
[ "BSD-3-Clause" ]
1
2020-12-15T10:03:50.000Z
2020-12-16T10:39:00.000Z
deepsource/utils.py
vafaei-ar/deepsource
cbb06f5a2105506b63539ae5bfe73a3e62d4055f
[ "BSD-3-Clause" ]
2
2019-09-02T10:24:22.000Z
2021-03-30T01:29:03.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from skimage import draw from skimage import measure from astropy.io import fits from astropy import units as u from astropy import wcs, coordinates from scipy.ndimage.filters impor...
29.520599
148
0.586399
0
0
0
0
0
0
0
0
4,345
0.551256
a74fd79fe36c35a1329c69bf98a54c22cc8f9a55
12,349
py
Python
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
""" @created_at 2015-01-18 @author Exequiel Fuentes Lettura <[email protected]> """ from pybrain.datasets import ClassificationDataSet from pybrain.tools.shortcuts import buildNetwork from pybrain.structure.modules import SoftmaxLayer from pybrain.supervised.trainers import BackpropTrainer from pybrain.utilities impor...
38.711599
128
0.581667
11,709
0.948174
0
0
0
0
0
0
4,274
0.346101
a75006d06757a5f27ac00ff68ada7211ab1bbdc4
342
py
Python
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
from sys import argv from subprocess import call try : link = argv[ 1 ] except IndexError: link = raw_input( " - which url interests you? " ) try: ydl_answ = call( "youtube-dl -F "+ link, shell = True ) if ydl_answ is not 0 : print "-- failed "+ link + " code "+ str(ydl_answ) except OSError as ose : print "Ex...
21.375
56
0.663743
0
0
0
0
0
0
0
0
85
0.248538
a7538f1279770f7607c3e20bb1757708788234b0
9,689
py
Python
src/cogs/welcome.py
Cr4zi/SynatxBot
eeb59555c1cfa81e05c924b84c601c0b240e5ee3
[ "MIT" ]
4
2021-08-12T08:11:21.000Z
2021-08-12T08:15:22.000Z
src/cogs/welcome.py
Cr4zi/SynatxBot
eeb59555c1cfa81e05c924b84c601c0b240e5ee3
[ "MIT" ]
null
null
null
src/cogs/welcome.py
Cr4zi/SynatxBot
eeb59555c1cfa81e05c924b84c601c0b240e5ee3
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord import Embed from discord.utils import get import datetime import psycopg2 from bot import DB_NAME, DB_PASS, DB_HOST, DB_USER, logger, private_message class Welcome(commands.Cog): def __init__(self, bot): self.bot = bot logge...
46.581731
146
0.58489
9,412
0.971411
0
0
9,239
0.953556
8,157
0.841883
2,520
0.260089
a7551310f1a028ec26dd2191bdc424bc482a29c5
468
py
Python
etcd_restore_rebuild_util/edit_yaml_for_rebuild.py
Cray-HPE/utils
dd6e13b46500e1c2f6ad887a8c1604044465d1d8
[ "MIT" ]
null
null
null
etcd_restore_rebuild_util/edit_yaml_for_rebuild.py
Cray-HPE/utils
dd6e13b46500e1c2f6ad887a8c1604044465d1d8
[ "MIT" ]
null
null
null
etcd_restore_rebuild_util/edit_yaml_for_rebuild.py
Cray-HPE/utils
dd6e13b46500e1c2f6ad887a8c1604044465d1d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import yaml file_name=sys.argv[1] file_name = '/root/etcd/' + file_name + '.yaml' with open(file_name) as f: y=yaml.safe_load(f) del y['metadata']['creationTimestamp'] del y['metadata']['generation'] del y['metadata']['resourceVersion'] del y['metad...
22.285714
70
0.67094
0
0
0
0
0
0
0
0
146
0.311966
a75582560560cf86bc8bb8744feee3c442ea60e2
1,514
py
Python
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
1
2019-03-05T06:00:38.000Z
2019-03-05T06:00:38.000Z
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
2
2019-03-02T05:12:59.000Z
2019-09-26T17:03:56.000Z
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
null
null
null
import os import cv2 from Segmentation import CombinedHist, get_histograms, HistQueue import matplotlib.pyplot as plt import numpy as np listofFiles = os.listdir('generated_frames') # change the size of queue accordingly queue_of_hists = HistQueue.HistQueue(25) x = [] y_r = [] y_g = [] y_b = [] def compare(current_h...
29.115385
114
0.718626
0
0
0
0
0
0
0
0
145
0.095773
a755b8f4c107bcf90ce08cbfeeeaa2d842ac3f66
12,369
py
Python
stickerbot.py
gumblex/stickerindexbot
8e8edaabac54d2747e4b620464670a60a65efcb5
[ "MIT" ]
1
2017-01-20T18:11:46.000Z
2017-01-20T18:11:46.000Z
stickerbot.py
gumblex/stickerindexbot
8e8edaabac54d2747e4b620464670a60a65efcb5
[ "MIT" ]
null
null
null
stickerbot.py
gumblex/stickerindexbot
8e8edaabac54d2747e4b620464670a60a65efcb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Telegram Sticker Index Bot ''' import re import sys import time import json import queue import sqlite3 import logging import requests import functools import threading import collections import concurrent.futures import zhconv logging.basicConfig(stream=sys.stderr...
32.379581
160
0.570216
1,132
0.091151
0
0
1,552
0.12497
0
0
3,050
0.245591
a755c3e60d6f4943e03a99183eadd47ca1d97d29
4,571
py
Python
tests.py
AndreLouisCaron/requests-wsgi-adapter
5506c4785824673147449daabb5c4e06192e5078
[ "BSD-3-Clause" ]
null
null
null
tests.py
AndreLouisCaron/requests-wsgi-adapter
5506c4785824673147449daabb5c4e06192e5078
[ "BSD-3-Clause" ]
null
null
null
tests.py
AndreLouisCaron/requests-wsgi-adapter
5506c4785824673147449daabb5c4e06192e5078
[ "BSD-3-Clause" ]
null
null
null
import json import unittest import requests from urllib3._collections import HTTPHeaderDict from wsgiadapter import WSGIAdapter class WSGITestHandler(object): def __init__(self, extra_headers=None): self.extra_headers = extra_headers or tuple() def __call__(self, environ, start_response): h...
39.068376
107
0.640123
3,051
0.667469
0
0
0
0
0
0
1,350
0.29534
a75611852715e07033587bffa7d94fdf7b98243d
548
py
Python
setup.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
setup.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
setup.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
""" ------------------------------------------------------------------------- shine - setup !!TODO: add file description here!! created: 2017/06/04 in PyCharm (c) 2017 Sven - ducandu GmbH ------------------------------------------------------------------------- """ from setuptools import setup setup(nam...
34.25
138
0.501825
0
0
0
0
0
0
0
0
405
0.739051
a756ca330f0702ca67f549b4365c53dd8dc05dbc
1,932
py
Python
podcast_dl/podcasts.py
RMPR/simple-podcast-dl
bb4419d3beb1a893bfac5aa6546ba25522531b00
[ "MIT" ]
null
null
null
podcast_dl/podcasts.py
RMPR/simple-podcast-dl
bb4419d3beb1a893bfac5aa6546ba25522531b00
[ "MIT" ]
null
null
null
podcast_dl/podcasts.py
RMPR/simple-podcast-dl
bb4419d3beb1a893bfac5aa6546ba25522531b00
[ "MIT" ]
null
null
null
""" List of podcasts and their filename parser types. """ from .rss_parsers import BaseItem, TalkPythonItem, ChangelogItem, IndieHackersItem import attr @attr.s(slots=True, frozen=True) class Podcast: name = attr.ib(type=str) title = attr.ib(type=str) url = attr.ib(type=str) rss = attr.ib(type=str) ...
27.6
82
0.608696
169
0.087474
0
0
202
0.104555
0
0
788
0.407867
a75700da032ade0f2e5909a09f4ffc60c4abd193
20,543
py
Python
07_spitzer_aor_extraction.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
07_spitzer_aor_extraction.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
07_spitzer_aor_extraction.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 : # # Extract and save extended object catalogs from the specified data and # uncertainty images. This version of the script jointly analyzes all # images from a specific AOR/channel to enable more sophisticated # analysis. # # Rob Siverd # Cr...
37.148282
82
0.577861
540
0.026286
0
0
0
0
0
0
11,171
0.543786
a7574a31d3793e68486c1afc1807fc0afcd14ce5
6,594
py
Python
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
1
2022-03-02T22:54:36.000Z
2022-03-02T22:54:36.000Z
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
from os import strerror import os import pytest import datetime import sqlalchemy from sqlalchemy import inspect from sqlalchemy import select from sqlalchemy.orm import session from sqlalchemy.sql.expression import func ################################################# # DATABASE CONNECTOR user = 'user' password = ...
30.957746
74
0.746588
0
0
0
0
0
0
0
0
245
0.037155
a7574f04a38567a940cb678fc874747f83a2b6d9
223
py
Python
quran/domain/edition.py
octabytes/quran
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
[ "Apache-2.0" ]
null
null
null
quran/domain/edition.py
octabytes/quran
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
[ "Apache-2.0" ]
null
null
null
quran/domain/edition.py
octabytes/quran
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from quran.domain.entity import Entity @dataclass class Edition(Entity): id: str language: str name: str translator: str type: str format: str direction: str
14.866667
38
0.690583
135
0.605381
0
0
146
0.654709
0
0
0
0
a75778c132db31042c63da3f963565d091dded6a
1,231
py
Python
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
""" Helper functions to visualize a graph in a notebook or save the plot to file. Import as: import dataflow.core.visualization as dtfcorvisu """ import IPython import networkx as networ import pygraphviz import dataflow.core.dag as dtfcordag import helpers.hdbg as hdbg import helpers.hio as hio def draw(dag: dtf...
25.122449
77
0.707555
0
0
0
0
0
0
0
0
396
0.32169
a758f541fb2e3c2ec9bc820cd471a439cd2c4443
7,714
py
Python
scripts/pixel_error.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
31
2019-10-14T01:48:44.000Z
2022-01-20T19:19:14.000Z
scripts/pixel_error.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
3
2020-05-08T11:01:25.000Z
2021-05-24T07:50:10.000Z
scripts/pixel_error.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
9
2020-01-13T11:25:16.000Z
2021-05-10T06:04:08.000Z
"""Calculate pixel errors for a single run or all runs in an experiment dir.""" import torch import itertools import numpy as np import imageio import argparse import os import glob from model.main import main as restore_model from model.utils.utils import bw_transform os.environ["CUDA_VISIBLE_DEVICES"] = '-1' def...
34.4375
93
0.621208
0
0
0
0
0
0
0
0
1,907
0.247213
a75a94acdbd36e7b6da2d3d837a50b906558f9b8
770
py
Python
users/admin.py
JVacca12/FIRST
e3906209cae1198e1fbda4d00bc0a906e8294a69
[ "MIT" ]
null
null
null
users/admin.py
JVacca12/FIRST
e3906209cae1198e1fbda4d00bc0a906e8294a69
[ "MIT" ]
null
null
null
users/admin.py
JVacca12/FIRST
e3906209cae1198e1fbda4d00bc0a906e8294a69
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. """User admin classes.""" # Django from django.contrib import admin # Models from users.models import User @admin.register(User) class UserAdmin(admin.ModelAdmin): """User admin.""" list_display = ('pk', 'username', 'email','first_name','last_na...
23.333333
154
0.633766
576
0.747082
0
0
598
0.775616
0
0
376
0.487678
a75aa0bd60c43a11405b09d22589cf2d9c586cc5
3,469
py
Python
mud/migrations/0001_initial.py
lambda-mud-cs18/backend
060c5c1a317d8b6557e778cd539e75f24eff05dd
[ "MIT" ]
1
2022-01-12T17:44:26.000Z
2022-01-12T17:44:26.000Z
mud/migrations/0001_initial.py
lambda-mud-cs18/backend
060c5c1a317d8b6557e778cd539e75f24eff05dd
[ "MIT" ]
8
2020-02-12T01:12:46.000Z
2022-02-10T10:17:28.000Z
mud/migrations/0001_initial.py
lambda-mud-cs18/backend
060c5c1a317d8b6557e778cd539e75f24eff05dd
[ "MIT" ]
2
2022-01-12T17:44:29.000Z
2022-01-12T17:44:29.000Z
# Generated by Django 2.2.3 on 2019-07-31 17:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(pri...
39.420455
84
0.51254
3,376
0.973191
0
0
0
0
0
0
457
0.131738
a75c1979034dbafe33e7945478e87745ce9ce8e5
918
py
Python
scripts/quest/q22504s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/quest/q22504s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/quest/q22504s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
sm.setSpeakerID(1013000) sm.sendNext("Ugh. This isn't going to work. I need something else. No plants. No meat. What, you have no idea? But you're the master, and you're older than me, too. You must know what'd be good for me!") sm.setPlayerAsSpeaker() sm.sendSay("#bBut I don't. It's not like age has anything to do wi...
61.2
203
0.721133
0
0
0
0
0
0
0
0
637
0.6939
a75cf13072fe0194f0d08765f3c331975a5d8df7
424
py
Python
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
null
null
null
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
5
2021-04-08T18:54:04.000Z
2021-06-10T18:37:26.000Z
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-01 00:58 from django.db import migrations, models import user.models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='photo', ...
21.2
88
0.606132
312
0.735849
0
0
0
0
0
0
87
0.205189
a75f0071595f1cf5e30f78a377181f6b55570f76
61
py
Python
core/models/__init__.py
Bhaskers-Blu-Org1/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
62
2019-10-22T14:52:30.000Z
2021-07-27T12:07:38.000Z
core/models/__init__.py
Bhaskers-Blu-Org1/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
6
2019-12-16T06:03:42.000Z
2020-08-31T07:59:04.000Z
core/models/__init__.py
IBM/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
16
2019-11-02T06:49:19.000Z
2021-12-30T14:51:48.000Z
from .blvnet_tam import bLVNet_TAM __all__ = ['bLVNet_TAM']
15.25
34
0.770492
0
0
0
0
0
0
0
0
12
0.196721
a760fe286388453e9bf13c54cc23324198919723
438
py
Python
monodepth/geometry/utils.py
vguizilini/packnet-sfm
e462716837f24c11cb227ca99fe30bcf12b3cc56
[ "MIT" ]
1
2020-04-30T07:32:57.000Z
2020-04-30T07:32:57.000Z
monodepth/geometry/utils.py
muzi2045/packnet-sfm
fec6d0b493b784cabe5e6bf9c65b996a83c63fe1
[ "MIT" ]
null
null
null
monodepth/geometry/utils.py
muzi2045/packnet-sfm
fec6d0b493b784cabe5e6bf9c65b996a83c63fe1
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. """ Geometry utilities """ import numpy as np def invert_pose_numpy(T): """ 'Invert' 4x4 extrinsic matrix Parameters ---------- T: 4x4 matrix (world to camera) Returns ------- 4x4 matrix (camera to world) """ ...
16.222222
65
0.547945
0
0
0
0
0
0
0
0
261
0.59589
a7624496ee4975eb04a3c005275217a54323fb5d
27,209
py
Python
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
#Minesweeper! from tkinter import * import random, time, math, threading, os.path, os #Tkinter Class class MinesweeperMain: #Initialising class def __init__(self, xLength, yLength, percentOfBombs, caller=None, winChoice=True): try: #kills the 'play again' host (if it exists) caller.root.destr...
40.429421
183
0.592745
26,522
0.974751
0
0
0
0
0
0
6,153
0.226138
a7625f42a7dd6cbf1419217f4da8ae9f6f00c5f6
5,431
py
Python
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
7
2021-05-31T15:30:22.000Z
2022-02-05T14:12:31.000Z
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
17
2021-06-09T01:04:27.000Z
2022-03-18T14:48:12.000Z
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
5
2021-06-07T13:52:33.000Z
2021-08-04T00:09:39.000Z
# -*- coding: utf-8 -*- """ Scrape Website Data | Cannlytics Copyright © 2021 Cannlytics Author: Keegan Skeate <[email protected]> Created: 1/10/2021 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANT...
30.511236
110
0.598048
0
0
0
0
0
0
0
0
2,377
0.437592
a762725a417c914c2de8c1cfaad398234b972ef4
22,326
py
Python
acsm/utils/bird_vis.py
eldar/acsm
04069e8bb4c12185473dc10c3355e5367fa98968
[ "Apache-2.0" ]
52
2020-04-02T12:35:55.000Z
2022-03-11T07:47:30.000Z
acsm/utils/bird_vis.py
eldar/acsm
04069e8bb4c12185473dc10c3355e5367fa98968
[ "Apache-2.0" ]
8
2020-06-04T07:34:34.000Z
2021-09-18T21:17:26.000Z
acsm/utils/bird_vis.py
eldar/acsm
04069e8bb4c12185473dc10c3355e5367fa98968
[ "Apache-2.0" ]
6
2020-07-12T02:12:18.000Z
2021-03-06T05:03:33.000Z
""" Code borrowed from https://github.com/akanazawa/cmr/blob/master/utils/bird_vis.py Visualization helpers specific to birds. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch from torch.autograd import Variable import numpy as np import os...
37.585859
150
0.61874
5,690
0.25486
0
0
0
0
0
0
3,243
0.145257
a7641eec8122f15991dc897dc20ebeb0e83b0d20
10,764
py
Python
gatenlp/corpora/files.py
joancf/python-gatenlp
21441d72ded19e9348052e99ac5bc1fc6af7ab6e
[ "Apache-2.0" ]
30
2020-04-18T12:28:15.000Z
2022-02-18T21:31:18.000Z
gatenlp/corpora/files.py
joancf/python-gatenlp
21441d72ded19e9348052e99ac5bc1fc6af7ab6e
[ "Apache-2.0" ]
133
2019-10-16T07:41:59.000Z
2022-03-31T07:27:07.000Z
gatenlp/corpora/files.py
joancf/python-gatenlp
21441d72ded19e9348052e99ac5bc1fc6af7ab6e
[ "Apache-2.0" ]
4
2021-01-20T08:12:19.000Z
2021-10-21T13:29:44.000Z
""" Module that defines Corpus and DocumentSource/DocumentDestination classes which access documents as lines or parts in a file. """ import json from gatenlp.urlfileutils import yield_lines_from from gatenlp.document import Document from gatenlp.corpora.base import DocumentSource, DocumentDestination from gatenlp.cor...
40.164179
118
0.590673
10,392
0.96544
2,813
0.261334
0
0
0
0
5,001
0.464604
a7646b2e354d22868d6a6f4cc986b8c2069e186b
709
py
Python
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
import fastapi from starlette.requests import Request from web.viewmodels.account.AccountViewModel import AccountViewModel from web.viewmodels.account.LoginViewModel import LoginViewModel from web.viewmodels.account.RegisterViewModel import RegisterViewModel router = fastapi.APIRouter() @router.get('/account') def i...
22.870968
70
0.760226
0
0
0
0
408
0.575458
0
0
62
0.087447
a7659e9cd38acecd1d387852d0d503d7207e98a9
29,031
py
Python
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # UVEServer # # Operational State Server for UVEs # import gevent import json import copy import xmltodict import redis import datetime import sys from opserver_util import OpServerUtils import re from gevent.coros import BoundedSemaphore from pys...
41.711207
91
0.450484
28,320
0.975509
923
0.031794
5,890
0.202887
0
0
3,300
0.113672
a765ce6d1c1eea007b73c094feaef3cfb92302b9
6,559
py
Python
tests/datasets/test_tonas.py
lucaspbastos/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
224
2019-05-08T14:46:05.000Z
2022-03-31T12:14:39.000Z
tests/datasets/test_tonas.py
oriolcolomefont/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
492
2019-04-08T16:59:33.000Z
2022-01-19T13:50:56.000Z
tests/datasets/test_tonas.py
oriolcolomefont/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
46
2019-04-11T15:12:18.000Z
2022-01-19T17:33:50.000Z
import numpy as np from tests.test_utils import run_track_tests from mirdata import annotations from mirdata.datasets import tonas TEST_DATA_HOME = "tests/resources/mir_datasets/tonas" def test_track(): default_trackid = "01-D_AMairena" dataset = tonas.Dataset(TEST_DATA_HOME) track = dataset.track(defa...
30.649533
96
0.633938
0
0
0
0
0
0
0
0
939
0.143162
a765ee4d5ce159cb94158867be1e207d0bdc988c
1,064
py
Python
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
7
2017-06-13T15:55:23.000Z
2019-05-23T18:52:00.000Z
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
2
2019-02-16T12:56:33.000Z
2020-07-02T19:32:58.000Z
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
8
2017-05-17T22:46:07.000Z
2022-03-11T14:27:56.000Z
import os import hashlib import getpass import hmac import botocore.session import botocore.exceptions def _hash(value): return hmac.new(os.environ['TEST_KEY'], value, digestmod=hashlib.sha256).hexdigest() def main(): access_key = getpass.getpass("Access Key: ").strip() secret_acces...
30.4
72
0.656015
0
0
0
0
0
0
0
0
230
0.216165