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
1242b70d24751dd58f2e174b2b6dafa4b0cf5800
600
py
Python
netbox_secretstore/__init__.py
motad333/netbox-secretstore
6ddb3f7bd1b83cc96f140338926aa56a99ce21f3
[ "Apache-2.0" ]
null
null
null
netbox_secretstore/__init__.py
motad333/netbox-secretstore
6ddb3f7bd1b83cc96f140338926aa56a99ce21f3
[ "Apache-2.0" ]
null
null
null
netbox_secretstore/__init__.py
motad333/netbox-secretstore
6ddb3f7bd1b83cc96f140338926aa56a99ce21f3
[ "Apache-2.0" ]
null
null
null
from extras.plugins import PluginConfig from django.utils.translation import gettext_lazy as _ class NetBoxSecretStore(PluginConfig): name = 'netbox_secretstore' verbose_name = _('Netbox Secret Store') description = _('A Secret Storage for NetBox') version = '1.0.8' author = 'NetBox Maintainers' ...
24
54
0.638333
474
0.79
0
0
0
0
0
0
156
0.26
124700ddcb80e0e1797e3dbe2cb967b7c32e7eb3
722
py
Python
functions/load_respiratory_disease_data.py
rlbarter/covid19-severity-prediction
8846958576fe9cb54a5e111b5c6c71ab8cc8cd08
[ "MIT" ]
2
2020-05-15T14:42:02.000Z
2020-05-22T08:51:47.000Z
functions/load_respiratory_disease_data.py
rahul263-stack/covid19-severity-prediction
f581adb2fccb12d5ab3f3c59ee120f484703edf5
[ "MIT" ]
null
null
null
functions/load_respiratory_disease_data.py
rahul263-stack/covid19-severity-prediction
f581adb2fccb12d5ab3f3c59ee120f484703edf5
[ "MIT" ]
null
null
null
import pandas as pd def loadRespDiseaseSheet(sheet_name): filepath = "data/respiratory_disease/IHME_USA_COUNTY_RESP_DISEASE_MORTALITY_1980_2014_NATIONAL_Y2017M09D26.XLSX" orig_data = pd.read_excel(filepath, sheet_name = "Chronic respiratory diseases", ...
51.571429
116
0.634349
0
0
0
0
0
0
0
0
240
0.33241
1247081add64badc149af8da67683a988746de63
111,647
py
Python
angr/procedures/definitions/win32_mfplat.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_mfplat.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_mfplat.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
360.151613
8,410
0.736276
0
0
0
0
0
0
0
0
36,169
0.323959
1247b2646a2dc945b275a2796fe324446a123943
9,319
py
Python
src/flows.py
act65/mri-reconstruction
2dcf30e10c37a482f1aab2524c5966d03eb72085
[ "MIT" ]
8
2018-12-30T10:33:44.000Z
2021-07-16T09:59:09.000Z
src/flows.py
gongjizhang/mri-reconstruction
2dcf30e10c37a482f1aab2524c5966d03eb72085
[ "MIT" ]
1
2018-06-01T03:51:35.000Z
2018-08-27T03:39:34.000Z
src/flows.py
gongjizhang/mri-reconstruction
2dcf30e10c37a482f1aab2524c5966d03eb72085
[ "MIT" ]
5
2018-12-30T10:33:45.000Z
2021-11-15T11:19:56.000Z
import os import numpy as np import urllib from absl import flags import tensorflow as tf import tensorflow_probability as tfp tfb = tfp.bijectors tfd = tfp.distributions flags.DEFINE_float( "learning_rate", default=0.001, help="Initial learning rate.") flags.DEFINE_integer( "epochs", default=100, help="Numb...
32.81338
102
0.63054
2,064
0.221483
0
0
58
0.006224
0
0
3,325
0.356798
124a1d7c7ee9fa6fc3a3d429e6d76f675fb7017f
227
py
Python
src/utils/url_path.py
FP-DataSolutions/DeltaWarehouse
2c57e6176d9461a287ee925f9006fdfef8da5653
[ "Apache-2.0" ]
6
2020-06-18T13:31:53.000Z
2021-09-12T20:27:26.000Z
src/utils/url_path.py
FP-DataSolutions/DeltaWarehouse
2c57e6176d9461a287ee925f9006fdfef8da5653
[ "Apache-2.0" ]
null
null
null
src/utils/url_path.py
FP-DataSolutions/DeltaWarehouse
2c57e6176d9461a287ee925f9006fdfef8da5653
[ "Apache-2.0" ]
1
2021-04-03T16:56:38.000Z
2021-04-03T16:56:38.000Z
class UrlPath: @staticmethod def combine(*args): result = '' for path in args: result += path if path.endswith('/') else '{}/'.format(path) #result = result[:-1] return result
28.375
72
0.528634
227
1
0
0
208
0.9163
0
0
31
0.136564
124ab5ee13504d68a3d114c277fcb2d99863ce77
5,229
py
Python
data/model.py
depowered/mndot-bid-abstracts
bb02c005e7cbd5645502e21c4baebd76170d4be1
[ "MIT" ]
null
null
null
data/model.py
depowered/mndot-bid-abstracts
bb02c005e7cbd5645502e21c4baebd76170d4be1
[ "MIT" ]
null
null
null
data/model.py
depowered/mndot-bid-abstracts
bb02c005e7cbd5645502e21c4baebd76170d4be1
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Float, ForeignKey from sqlalchemy.engine.create import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker CONNECTION_STRING = "sqlite+pysqlite:///data/db.sqlite" engine = create_engine(CONNECTION_STRING) Sess...
29.542373
98
0.646969
4,712
0.901128
0
0
0
0
0
0
1,793
0.342895
124b91dae4ca83e7c2890e0dcfbf5f3b352095cb
3,436
py
Python
guess_number_bo/guess_number.py
scumabo/Number-Guessing-Game
690bb1e6c1cb7705c4be6ef21306aa63ea015c33
[ "MIT" ]
null
null
null
guess_number_bo/guess_number.py
scumabo/Number-Guessing-Game
690bb1e6c1cb7705c4be6ef21306aa63ea015c33
[ "MIT" ]
null
null
null
guess_number_bo/guess_number.py
scumabo/Number-Guessing-Game
690bb1e6c1cb7705c4be6ef21306aa63ea015c33
[ "MIT" ]
null
null
null
import random from enum import Enum, auto class Result(Enum): BINGO = auto() HIGH = auto() LOW = auto() class GuessNumber: """The class randomly chooses an integer and then tells a human player if a guess is higher or lower than the number """ def __init__(self): """ A...
30.678571
104
0.501746
3,388
0.98603
0
0
0
0
0
0
1,257
0.365832
124cdc7703ebf2ea82fe5e53d675710d5f9da0a2
706
py
Python
attic/concurrency/timer2.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
5,651
2015-01-06T21:58:46.000Z
2022-03-31T13:39:07.000Z
attic/concurrency/timer2.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
42
2016-12-11T19:17:11.000Z
2021-11-23T19:41:16.000Z
attic/concurrency/timer2.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
2,394
2015-01-18T10:57:38.000Z
2022-03-31T11:41:12.000Z
import asyncio import sys import contextlib @asyncio.coroutine def show_remaining(dots_task): remaining = 5 while remaining: print('Remaining: ', remaining) sys.stdout.flush() yield from asyncio.sleep(1) remaining -= 1 dots_task.cancel() print() @asyncio.coroutine def d...
22.774194
62
0.634561
0
0
356
0.504249
394
0.558074
0
0
30
0.042493
124d0147a05244a749391c0acf979893ea8c65d5
6,372
py
Python
nexpose_rest/nexpose_policy.py
Patralos/nexpose-rest
c03431a408afd1528b0ca5a00859467574953ea0
[ "MIT" ]
null
null
null
nexpose_rest/nexpose_policy.py
Patralos/nexpose-rest
c03431a408afd1528b0ca5a00859467574953ea0
[ "MIT" ]
null
null
null
nexpose_rest/nexpose_policy.py
Patralos/nexpose-rest
c03431a408afd1528b0ca5a00859467574953ea0
[ "MIT" ]
null
null
null
from nexpose_rest.nexpose import _GET def getPolicies(config, filter=None, scannedOnly=None): getParameters=[] if filter is not None: getParameters.append('filter=' + filter) if scannedOnly is not None: getParameters.append('scannedOnly=' + scannedOnly) code, data = _GET('/api/3/polici...
37.482353
164
0.694131
0
0
0
0
0
0
0
0
971
0.152385
124f69015efa6812e6854a40b97d1f640b2aa516
3,785
py
Python
cybld/cybld_command_stats.py
dcvetko/cybld
678979543bb3b1f6be696ae9ae2c97ba4d17bc8a
[ "MIT" ]
null
null
null
cybld/cybld_command_stats.py
dcvetko/cybld
678979543bb3b1f6be696ae9ae2c97ba4d17bc8a
[ "MIT" ]
null
null
null
cybld/cybld_command_stats.py
dcvetko/cybld
678979543bb3b1f6be696ae9ae2c97ba4d17bc8a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -------------------------------------------------------------------------- # # MIT License # # -------------------------------------------------------------------------- from cybld import cybld_helpers # -------------------------------------------------------------------------- class CyBldComma...
32.076271
87
0.566182
3,399
0.898018
0
0
68
0.017966
0
0
1,531
0.404491
124f826646c61b86d4bd5ee114177b7081ca0f74
130
py
Python
core/src/zeit/content/article/edit/browser/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/content/article/edit/browser/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
src/zeit/content/article/edit/browser/interfaces.py
ZeitOnline/zeit.content.article
4375baec7e7ff1f013402f4b920cc37305e44379
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
import zope.interface class IFoldable(zope.interface.Interface): """Marker interface for a block which can be callapsed."""
21.666667
62
0.753846
105
0.807692
0
0
0
0
0
0
58
0.446154
124f9adbc3629f60192bbc345789c5fe360c9cdf
190
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/utils/context_processor.py
abahnihi/kn-django-cookiecutter
bf85aa47b6aae450d25551fdf68c943f41b5c6bd
[ "MIT" ]
2
2020-07-26T07:33:08.000Z
2020-08-14T09:40:21.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/utils/context_processor.py
abahnihi/kn-django-cookiecutter
bf85aa47b6aae450d25551fdf68c943f41b5c6bd
[ "MIT" ]
7
2020-02-12T01:19:42.000Z
2022-03-11T23:26:05.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/utils/context_processor.py
abahnihi/kn-django-cookiecutter
bf85aa47b6aae450d25551fdf68c943f41b5c6bd
[ "MIT" ]
9
2020-09-22T10:42:23.000Z
2021-07-28T05:52:26.000Z
from django.conf import settings def google_analytics(request): return {'GOOGLE_ANALYTICS': settings.GOOGLE_ANALYTICS} def debug_state(request): return {'DEBUG': settings.DEBUG}
19
58
0.763158
0
0
0
0
0
0
0
0
25
0.131579
12545f6564e3ca3f83db07ea8b386b6c9ab46b3f
4,256
py
Python
src/search/src/search-service/app.py
Young-ook/retail-demo-store
c54108d5d56566f766514cab77ee68e91b202360
[ "MIT-0" ]
1
2021-04-26T14:29:36.000Z
2021-04-26T14:29:36.000Z
src/search/src/search-service/app.py
Young-ook/retail-demo-store
c54108d5d56566f766514cab77ee68e91b202360
[ "MIT-0" ]
null
null
null
src/search/src/search-service/app.py
Young-ook/retail-demo-store
c54108d5d56566f766514cab77ee68e91b202360
[ "MIT-0" ]
2
2021-06-22T12:45:05.000Z
2021-11-23T22:40:14.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 from aws_xray_sdk.core import xray_recorder from aws_xray_sdk.ext.flask.middleware import XRayMiddleware from aws_xray_sdk.core import patch_all patch_all() from flask import Flask from flask import request from fla...
29.351724
114
0.528195
450
0.105733
0
0
2,631
0.618186
0
0
744
0.174812
1254a9857e6bd6e919dc89f8ba7391c2e619fe3c
1,605
py
Python
utils/iou.py
taimur1871/cutter_detect_app
dd4b2251645b1a1c588739fc60e8c943f40b70df
[ "MIT" ]
null
null
null
utils/iou.py
taimur1871/cutter_detect_app
dd4b2251645b1a1c588739fc60e8c943f40b70df
[ "MIT" ]
null
null
null
utils/iou.py
taimur1871/cutter_detect_app
dd4b2251645b1a1c588739fc60e8c943f40b70df
[ "MIT" ]
1
2022-01-19T03:17:26.000Z
2022-01-19T03:17:26.000Z
# check for duplicate detections import numpy as np def iou(box1, box2): # determine the (x, y)-coordinates of the intersection rectangle xA = max(box1[0], box2[0]) yA = max(box1[1], box2[1]) xB = min(box1[2], box2[2]) yB = min(box1[3], box2[3]) # compute the area of intersection rectangle ...
30.283019
68
0.58567
0
0
0
0
0
0
0
0
441
0.274766
1254d16c4e176a58c1a20487d3f11f36c8056c00
256
py
Python
tests/i18n/patterns/urls/path_unused.py
webjunkie/django
5dbca13f3baa2e1bafd77e84a80ad6d8a074712e
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.5/tests/regressiontests/i18n/patterns/urls/path_unused.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.5/tests/regressiontests/i18n/patterns/urls/path_unused.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from django.conf.urls import url from django.conf.urls import patterns from django.views.generic import TemplateView view = TemplateView.as_view(template_name='dummy.html') urlpatterns = patterns('', url(r'^nl/foo/', view, name='not-translated'), )
23.272727
55
0.753906
0
0
0
0
0
0
0
0
41
0.160156
12569e9c0d171a9d7527cfe600f2b89b30a16992
222
py
Python
backend/profiles/serializers.py
stevethompsonstar/django-react-blog
88af926454901c826acc9e2996addd0d53b0626a
[ "MIT" ]
592
2017-03-07T04:29:08.000Z
2020-09-21T00:36:58.000Z
backend/profiles/serializers.py
stevethompsonstar/django-react-blog
88af926454901c826acc9e2996addd0d53b0626a
[ "MIT" ]
8
2017-03-08T01:22:36.000Z
2020-08-20T15:45:42.000Z
backend/profiles/serializers.py
stevethompsonstar/django-react-blog
88af926454901c826acc9e2996addd0d53b0626a
[ "MIT" ]
102
2017-03-07T05:42:47.000Z
2020-08-28T20:02:20.000Z
from rest_framework import serializers from .models import Subscriber class SubscriberSerializer(serializers.ModelSerializer): class Meta: model = Subscriber fields = ( 'email', )
20.181818
56
0.662162
149
0.671171
0
0
0
0
0
0
7
0.031532
1256d712ac9ca51e3deef82acc5b59bca5098eea
4,592
py
Python
src/opendr/perception/activity_recognition/datasets/utils/transforms.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
3
2021-06-24T01:54:25.000Z
2021-12-12T16:21:24.000Z
src/opendr/perception/activity_recognition/datasets/utils/transforms.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
79
2021-06-23T10:40:10.000Z
2021-12-16T07:59:42.000Z
src/opendr/perception/activity_recognition/datasets/utils/transforms.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
5
2021-07-04T07:38:50.000Z
2021-12-12T16:18:47.000Z
# Copyright 2020-2021 OpenDR Project # # 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 w...
37.950413
107
0.635017
1,974
0.429878
0
0
0
0
0
0
1,955
0.42574
1257bf72104e89e7cfc8426086636e97ad97788b
799
py
Python
coinbase/models/util.py
EU-institution/coinbase_python
1e0d5d162cb40c1094775ceb5c267a5bdedf0949
[ "Unlicense", "MIT" ]
53
2015-01-05T08:42:17.000Z
2022-03-01T20:52:41.000Z
coinbase/models/util.py
EU-institution/coinbase_python
1e0d5d162cb40c1094775ceb5c267a5bdedf0949
[ "Unlicense", "MIT" ]
10
2015-01-08T04:09:25.000Z
2021-10-08T21:43:17.000Z
coinbase/models/util.py
mhluongo/coinbase_python
2e29d4fa1c501495b41005bbcc770cb29fba6ad1
[ "MIT", "Unlicense" ]
34
2016-09-18T23:18:44.000Z
2022-02-19T17:31:05.000Z
import collections try: stringtype = basestring # python 2 except: stringtype = str # python 3 def coerce_to_list(x): if isinstance(x, stringtype): return x.replace(',', ' ').split() return x or [] def namedtuple(name, args=None, optional=None): args = coerce_to_list(args) optiona...
24.212121
63
0.625782
0
0
0
0
0
0
0
0
80
0.100125
1258185b72665406006c911438c249e31103916b
632
py
Python
main.py
Spain-AI/dark_helper
c2a5d774b455b2a374d6ca5e2715f7a560f5fe5b
[ "Apache-2.0" ]
null
null
null
main.py
Spain-AI/dark_helper
c2a5d774b455b2a374d6ca5e2715f7a560f5fe5b
[ "Apache-2.0" ]
8
2020-11-13T18:59:55.000Z
2022-03-12T00:39:43.000Z
main.py
Spain-AI/dark_helper
c2a5d774b455b2a374d6ca5e2715f7a560f5fe5b
[ "Apache-2.0" ]
1
2020-07-10T19:16:37.000Z
2020-07-10T19:16:37.000Z
from capture_monitor import CaptureMonitor from face_lib import FaceSystem from visualizer import Visualizer #MainWindow #from PyQt5 import QtCore, QtGui, QtWidgets import os monitor = CaptureMonitor(bb=(0, 0, 600, 480)) face_system = FaceSystem(os.path.abspath("./bio/bio.json")) def thread_process(): frame = monito...
23.407407
59
0.738924
0
0
0
0
0
0
0
0
197
0.311709
12582c39f2a4992d63610ad2f63f31ac78eb799c
4,454
py
Python
tests/mixins.py
armstrong/armstrong.apps.embeds
6042f4ab39e752c4e78826e44f7c2aa82bc04e6a
[ "Apache-2.0" ]
1
2016-08-02T09:33:35.000Z
2016-08-02T09:33:35.000Z
tests/mixins.py
armstrong/armstrong.apps.embeds
6042f4ab39e752c4e78826e44f7c2aa82bc04e6a
[ "Apache-2.0" ]
null
null
null
tests/mixins.py
armstrong/armstrong.apps.embeds
6042f4ab39e752c4e78826e44f7c2aa82bc04e6a
[ "Apache-2.0" ]
1
2018-03-04T20:30:15.000Z
2018-03-04T20:30:15.000Z
import fudge from armstrong.apps.embeds.mixins import TemplatesByEmbedTypeMixin from .support.models import Parent, Child, TypeModel from ._utils import TestCase class TemplateCompareTestMixin(object): def path_opts(self, obj, use_fallback=False, use_type=False): return dict( base=obj.base_la...
41.626168
84
0.662101
4,285
0.962057
0
0
0
0
0
0
663
0.148855
12597459b30dbd3bd8a1d404996a35025ae53e68
196
py
Python
app/api/__init__.py
correaleyval/Telezon-S3
1a6de581c73f7b2391207bfd717f0dfc42de0223
[ "MIT" ]
12
2021-03-18T20:42:19.000Z
2021-06-08T18:43:05.000Z
app/api/__init__.py
luiscib3r/Telezon-S3
1a6de581c73f7b2391207bfd717f0dfc42de0223
[ "MIT" ]
1
2021-03-19T14:08:51.000Z
2021-03-19T23:09:55.000Z
app/api/__init__.py
luiscib3r/Telezon-S3
1a6de581c73f7b2391207bfd717f0dfc42de0223
[ "MIT" ]
1
2021-04-11T04:35:14.000Z
2021-04-11T04:35:14.000Z
from fastapi import APIRouter from app.api.auth import router as auth from app.api.v1 import router as v1 router = APIRouter(prefix='/api') router.include_router(auth) router.include_router(v1)
21.777778
39
0.795918
0
0
0
0
0
0
0
0
6
0.030612
125c6575edea789ef3f36e0a837caccf4d5a15ab
1,439
py
Python
TestData/Soccer/ImageDownloader.py
hundyoung/yolo3_keras
e0f306e579c2a1515e9e9eedaeabc2fb4a9773eb
[ "MIT" ]
null
null
null
TestData/Soccer/ImageDownloader.py
hundyoung/yolo3_keras
e0f306e579c2a1515e9e9eedaeabc2fb4a9773eb
[ "MIT" ]
null
null
null
TestData/Soccer/ImageDownloader.py
hundyoung/yolo3_keras
e0f306e579c2a1515e9e9eedaeabc2fb4a9773eb
[ "MIT" ]
null
null
null
import requests import urllib import os import re from bs4 import BeautifulSoup import json # save_path = "./foul/" save_path = "./non_foul/" url="https://images.api.press.net/api/v2/search/?category=A,S,E&ck=public&cond=not&crhPriority=1&fields_0=all&fields_1=all&imagesonly=1&limit=2000&orientation=both&page=1&q=foo...
34.261905
268
0.71647
0
0
0
0
0
0
0
0
732
0.508687
125d654e6f98cfb2e9d1009b4b18f7574fef6306
785
py
Python
twitchchatbot/lib/commands/addcom.py
Amperture/twitch-sbc-integration
71ee86688a7735e6bb3d18c9896c1b8c7a3662d7
[ "MIT" ]
10
2017-04-20T15:15:51.000Z
2021-11-17T20:08:01.000Z
twitchchatbot/lib/commands/addcom.py
Amperture/twitch-sbc-integration
71ee86688a7735e6bb3d18c9896c1b8c7a3662d7
[ "MIT" ]
null
null
null
twitchchatbot/lib/commands/addcom.py
Amperture/twitch-sbc-integration
71ee86688a7735e6bb3d18c9896c1b8c7a3662d7
[ "MIT" ]
2
2020-02-08T04:15:43.000Z
2021-11-04T09:18:43.000Z
from twitchchatbot.lib.commands.parsing import commands import json def addcom(user, args): # Concatenate a list of strings down to a single, space delimited string. queueEvent = {} if len(args) < 2: queueEvent['msg'] = "Proper usage: !addcom <cmd> <Text to send>" else: commandHead = ...
26.166667
77
0.540127
0
0
0
0
0
0
0
0
229
0.29172
125da2debfb3bcd25523d38067e1548fefba9b8b
858
py
Python
fog/fog-client/setup.py
breakEval13/tor_dev
1040d906474d1da463f4de57b3c5f72ae14f550d
[ "Apache-2.0" ]
1
2020-07-21T01:23:28.000Z
2020-07-21T01:23:28.000Z
fog/fog-client/setup.py
breakEval13/tor_dev
1040d906474d1da463f4de57b3c5f72ae14f550d
[ "Apache-2.0" ]
null
null
null
fog/fog-client/setup.py
breakEval13/tor_dev
1040d906474d1da463f4de57b3c5f72ae14f550d
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup import py2exe # if py2exe complains "can't find P", try one of the following workarounds: # # a. py2exe doesn't support zipped eggs - http://www.py2exe.org/index.cgi/ExeWithEggs # You should give the --always-unzip option to easy_install, or you can use setup.py directly # $ python s...
35.75
94
0.67366
0
0
0
0
0
0
0
0
673
0.784382
125f0b131e3fd90aefb488268f7b2509f369413b
16,807
py
Python
generate_imagery.py
AnthonyLapadula/pytorch-GANs
81e5138a0e1e97c35a29b9d3ac6a79de6e9dfd6f
[ "MIT" ]
278
2020-09-07T20:17:47.000Z
2021-01-31T10:24:33.000Z
generate_imagery.py
AnthonyLapadula/pytorch-GANs
81e5138a0e1e97c35a29b9d3ac6a79de6e9dfd6f
[ "MIT" ]
1
2020-09-08T08:49:15.000Z
2020-09-09T07:51:02.000Z
generate_imagery.py
AnthonyLapadula/pytorch-GANs
81e5138a0e1e97c35a29b9d3ac6a79de6e9dfd6f
[ "MIT" ]
23
2020-09-07T21:50:29.000Z
2021-01-08T01:25:26.000Z
import os import shutil import argparse import torch from torch import nn from torchvision.utils import save_image, make_grid import matplotlib.pyplot as plt import numpy as np import cv2 as cv import utils.utils as utils from utils.constants import * class GenerationMode(enum.Enum): SINGLE_IMAGE = 0, INT...
51.873457
187
0.699292
103
0.006128
0
0
0
0
0
0
5,170
0.30761
125fa03a8c2ad33884edfc2ff0b21e48fff11c77
2,207
py
Python
toontown/dmenu/DMenuDisclaimer.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/dmenu/DMenuDisclaimer.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/dmenu/DMenuDisclaimer.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.gui.DirectGui import OnscreenText, DirectButton from panda3d.core import * from direct.interval.IntervalGlobal import * from direct.showbase.DirectObject import DirectObject from toontown.toonbase import ToontownGlobals class DMenuDisclaimer(DirectObject): notify = directNotify.newCategory('DisclaimerS...
63.057143
329
0.660172
1,974
0.894427
0
0
0
0
0
0
522
0.23652
125fbe96b358bea289f744b98621a56277d4b0a4
7,012
py
Python
geomloss/sinkhorn_images.py
ismedina/geomloss
bbd6289a139174effedb6855e1e992eb77772c67
[ "MIT" ]
null
null
null
geomloss/sinkhorn_images.py
ismedina/geomloss
bbd6289a139174effedb6855e1e992eb77772c67
[ "MIT" ]
null
null
null
geomloss/sinkhorn_images.py
ismedina/geomloss
bbd6289a139174effedb6855e1e992eb77772c67
[ "MIT" ]
null
null
null
import torch from .utils import log_dens, pyramid, upsample, softmin_grid from .sinkhorn_divergence import epsilon_schedule, scaling_parameters from .sinkhorn_divergence import sinkhorn_cost, sinkhorn_loop def extrapolate(f_ba, g_ab, eps, damping, C_xy, b_log, C_xy_fine): return upsample(f_ba) def kernel_trunca...
36.331606
100
0.591557
0
0
0
0
0
0
0
0
4,594
0.655069
125ff27f92e4698c1a23719a23bf8d2e592956d2
31,947
py
Python
time_trials/indexedvalues_timetrials.py
eric-s-s/share-with-z
60a4c9788085ba55c6214114447e1c16bc49f7ce
[ "MIT" ]
5
2016-07-29T18:28:04.000Z
2019-06-17T19:49:11.000Z
time_trials/indexedvalues_timetrials.py
eric-s-s/dice-tables
60a4c9788085ba55c6214114447e1c16bc49f7ce
[ "MIT" ]
16
2015-11-12T02:13:30.000Z
2020-12-05T21:35:00.000Z
time_trials/indexedvalues_timetrials.py
eric-s-s/dice-tables
60a4c9788085ba55c6214114447e1c16bc49f7ce
[ "MIT" ]
null
null
null
"""a module solely for finding how add_a_list and add_tuple_list compare. it's effectively the empirical proof for how LongIntTable.add() chooses the fastest method with it's get_fastest_method() function.""" from __future__ import print_function from math import log10 import time import random from os import getcwd ...
39.538366
120
0.644348
0
0
3,188
0.09979
0
0
0
0
7,179
0.224716
12613531f2e6b78eb8019166a8391274bea54aaa
14,814
py
Python
orangecontrib/wonder/widgets/wonder/ow_lorentz_polarization.py
WONDER-project/OASYS1-WONDER
cf6e3620f95c0b14c5c33d13161f615f2ac23b14
[ "Unlicense" ]
null
null
null
orangecontrib/wonder/widgets/wonder/ow_lorentz_polarization.py
WONDER-project/OASYS1-WONDER
cf6e3620f95c0b14c5c33d13161f615f2ac23b14
[ "Unlicense" ]
null
null
null
orangecontrib/wonder/widgets/wonder/ow_lorentz_polarization.py
WONDER-project/OASYS1-WONDER
cf6e3620f95c0b14c5c33d13161f615f2ac23b14
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ######################################################################### # Copyright (c) 2020, UChicago Argonne, LLC. All rights reserved. # # # # Copyright 2020. UChicago Argonne, LLC. This ...
56.976923
201
0.64115
10,771
0.727082
0
0
0
0
0
0
4,214
0.284461
126232b6ea1b59bc9e926fc7b1a66519b1a1e9b1
2,891
py
Python
tests/test_local_tile_server.py
FlorianPignol/telluric
285c7e195b2da630b4c76f2552465a424bcdaeb2
[ "MIT" ]
null
null
null
tests/test_local_tile_server.py
FlorianPignol/telluric
285c7e195b2da630b4c76f2552465a424bcdaeb2
[ "MIT" ]
null
null
null
tests/test_local_tile_server.py
FlorianPignol/telluric
285c7e195b2da630b4c76f2552465a424bcdaeb2
[ "MIT" ]
null
null
null
from os import path from unittest import mock from common_for_tests import make_test_raster from tornado.testing import gen_test, AsyncHTTPTestCase from tornado.concurrent import Future import telluric as tl from telluric.util.local_tile_server import TileServer, make_app, TileServerHandler tiles = [(131072, 131072, ...
38.546667
97
0.662746
2,389
0.826358
0
0
1,094
0.378416
0
0
122
0.0422
1262334f0b76e271530a07f67a720a33c98f152f
208
py
Python
utilities/error.py
pskanade/stretch
5320769f73a1f49e91cdaaaede3570550a236d9f
[ "MIT" ]
null
null
null
utilities/error.py
pskanade/stretch
5320769f73a1f49e91cdaaaede3570550a236d9f
[ "MIT" ]
2
2018-08-29T18:39:52.000Z
2018-08-29T19:32:35.000Z
utilities/error.py
pskanade/stretch
5320769f73a1f49e91cdaaaede3570550a236d9f
[ "MIT" ]
null
null
null
class Error(): def __init__(self): print("An error has occured !") class TypeError(Error): def __init__(self): print("This is Type Error\nThere is a type mismatch.. ! Please fix it.")
29.714286
80
0.639423
206
0.990385
0
0
0
0
0
0
89
0.427885
12630eab0d2633dd229a8455f46121e72a20a96c
437
py
Python
skypy/galaxies/__init__.py
itrharrison/skypy-itrharrison
cea1f02d1b2cd3b689266d7ae9bca1a4cfe986a2
[ "BSD-3-Clause" ]
88
2020-04-06T15:48:17.000Z
2022-02-16T12:01:54.000Z
skypy/galaxies/__init__.py
itrharrison/skypy-itrharrison
cea1f02d1b2cd3b689266d7ae9bca1a4cfe986a2
[ "BSD-3-Clause" ]
332
2020-04-04T07:30:08.000Z
2022-03-30T14:49:08.000Z
skypy/galaxies/__init__.py
itrharrison/skypy-itrharrison
cea1f02d1b2cd3b689266d7ae9bca1a4cfe986a2
[ "BSD-3-Clause" ]
41
2020-04-03T13:50:43.000Z
2022-03-24T16:10:03.000Z
""" This module contains methods that model the intrinsic properties of galaxy populations. """ __all__ = [ 'schechter_lf', ] from . import luminosity # noqa F401,F403 from . import morphology # noqa F401,F403 from . import redshift # noqa F401,F403 from . import spectrum # noqa F401,F403 from . import stella...
24.277778
74
0.743707
0
0
0
0
0
0
0
0
201
0.459954
1263a63dc231b8ecbb32bb0b79ff0d5017758d64
84
py
Python
tests/__init__.py
s-leroux/sql-moins
beb65300e4602a0d1dcaccf534df39c071060d40
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
s-leroux/sql-moins
beb65300e4602a0d1dcaccf534df39c071060d40
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
s-leroux/sql-moins
beb65300e4602a0d1dcaccf534df39c071060d40
[ "Apache-2.0" ]
null
null
null
from tests.parser import * from tests.formatter import * from tests.utils import *
16.8
29
0.77381
0
0
0
0
0
0
0
0
0
0
126834642203c16a6f094647812a7f04fd742d0c
853
py
Python
appshell/endpoints.py
adh/appshell
94901df8045336e3217eb2fd5eae77cb7c639340
[ "MIT" ]
3
2015-08-21T22:22:52.000Z
2018-07-14T03:32:51.000Z
appshell/endpoints.py
adh/appshell
94901df8045336e3217eb2fd5eae77cb7c639340
[ "MIT" ]
null
null
null
appshell/endpoints.py
adh/appshell
94901df8045336e3217eb2fd5eae77cb7c639340
[ "MIT" ]
1
2015-08-21T22:22:57.000Z
2015-08-21T22:22:57.000Z
from appshell.base import View from appshell.templates import confirmation, message from flask import request, flash, redirect from flask_babelex import Babel, Domain mydomain = Domain('appshell') _ = mydomain.gettext lazy_gettext = mydomain.lazy_gettext class ConfirmationEndpoint(View): methods = ("GET", "POST"...
25.848485
58
0.629543
594
0.696366
0
0
0
0
0
0
33
0.038687
12684e56d013768e4b5f7ed73f9dc1448a2cbf04
2,679
py
Python
flask_cc_api/utils/requests_utils.py
suAdminWen/cc-api
a00d9b82583fae57a3cd92ec0478d434f141f172
[ "MIT" ]
6
2019-03-04T03:08:07.000Z
2019-07-16T13:43:12.000Z
flask_cc_api/utils/requests_utils.py
suAdminWen/cc-api
a00d9b82583fae57a3cd92ec0478d434f141f172
[ "MIT" ]
1
2021-11-22T15:02:09.000Z
2021-11-22T15:02:09.000Z
flask_cc_api/utils/requests_utils.py
suAdminWen/cc-api
a00d9b82583fae57a3cd92ec0478d434f141f172
[ "MIT" ]
1
2019-07-01T01:01:27.000Z
2019-07-01T01:01:27.000Z
from flask import g, request from flask_restful import reqparse from werkzeug import datastructures from ..exceptions.system_error import SystemError from ..exceptions.system_exception import SystemException from ..exceptions.service_error import ServiceError from ..exceptions.service_exception import ServiceException...
37.208333
92
0.679731
0
0
0
0
0
0
0
0
1,233
0.449508
126906c97bbb7a462f9c0fa424b98a75ba2bd8b2
3,422
py
Python
grouper_lib/parent.py
Saevon/Recipes
ab8ca9b5244805d545da2dd1d80d249f1ec6057d
[ "MIT" ]
null
null
null
grouper_lib/parent.py
Saevon/Recipes
ab8ca9b5244805d545da2dd1d80d249f1ec6057d
[ "MIT" ]
null
null
null
grouper_lib/parent.py
Saevon/Recipes
ab8ca9b5244805d545da2dd1d80d249f1ec6057d
[ "MIT" ]
null
null
null
import itertools class ParentFinder(object): ''' Finds which parent an item should go under ''' def __init__(self): self.__parents = {} def hash(self, item): if item.prefix: return item.prefix else: return item.group_name def add(self, parent...
29.756522
105
0.585622
3,397
0.992694
240
0.070134
0
0
0
0
794
0.232028
126a9e516f4b1e45a50ac7e8798792874a6e0626
2,385
py
Python
tests/test_memory.py
Lewuathe/algernon
23d3aef69d701ddd33cd90451ec8738032396430
[ "MIT" ]
null
null
null
tests/test_memory.py
Lewuathe/algernon
23d3aef69d701ddd33cd90451ec8738032396430
[ "MIT" ]
null
null
null
tests/test_memory.py
Lewuathe/algernon
23d3aef69d701ddd33cd90451ec8738032396430
[ "MIT" ]
null
null
null
from algernon.memory import Memory import pytest import numpy as np from keras.models import Sequential from keras.layers.core import Dense from keras.optimizers import sgd class MockModel: def __init__(self, output_dims, input_dims): self.w = np.random.random(size=(output_dims, input_dims)) def pre...
31.381579
88
0.635639
2,204
0.924109
0
0
0
0
0
0
7
0.002935
126d6c2189f9741ed9c6b294aeb788442cc5308c
4,235
py
Python
m2critic/parse.py
z33kz33k/m2critic
c57914a53286e10a2082406379aa2535164a1e49
[ "MIT" ]
null
null
null
m2critic/parse.py
z33kz33k/m2critic
c57914a53286e10a2082406379aa2535164a1e49
[ "MIT" ]
null
null
null
m2critic/parse.py
z33kz33k/m2critic
c57914a53286e10a2082406379aa2535164a1e49
[ "MIT" ]
null
null
null
""" m2critic.parse ~~~~~~~~~~~~~~~ Scrape page. @author: z33k """ from pathlib import Path from typing import List, Tuple from bs4 import BeautifulSoup from bs4.element import Tag from m2critic import BasicUser FORBIDDENSTR = "403 Forbidden" class PageParser: # abstract """Abstract page p...
31.37037
85
0.608501
3,958
0.934593
0
0
1,412
0.333412
0
0
1,212
0.286187
126f3570c8ca400c14dbf8aadb5953428e90972f
86
py
Python
droidlet/dialog/robot/dialogue_objects/__init__.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
droidlet/dialog/robot/dialogue_objects/__init__.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
droidlet/dialog/robot/dialogue_objects/__init__.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
from .loco_dialogue_object import LocoBotCapabilities __all__ = [LocoBotCapabilities]
28.666667
53
0.872093
0
0
0
0
0
0
0
0
0
0
126fc6c0e704141c3768c167da733628103ad816
248
py
Python
yo_fluq_ds/_fluq/_common.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
16
2019-09-26T09:05:42.000Z
2021-02-04T01:39:09.000Z
yo_fluq_ds/_fluq/_common.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-10-23T19:01:23.000Z
2020-06-11T09:08:45.000Z
yo_fluq_ds/_fluq/_common.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-09-26T09:05:50.000Z
2019-10-23T18:46:11.000Z
from .._common import * from yo_fluq import * Queryable = lambda *args, **kwargs: FlupFactory.QueryableFactory(*args, **kwargs) T = TypeVar('T') TOut = TypeVar('TOut') TKey = TypeVar('TKey') TValue = TypeVar('TValue') TFactory = TypeVar('TFactory')
31
81
0.71371
0
0
0
0
0
0
0
0
33
0.133065
127066403d0bd62ed2b3f09d8857586e3f55d73e
7,423
py
Python
tools/BlenderProc/src/object/ObjectPoseSampler.py
GeorgSchenzel/pose-detector
32aff471e2591726bbe52140915255af6dc4f1a1
[ "MIT" ]
null
null
null
tools/BlenderProc/src/object/ObjectPoseSampler.py
GeorgSchenzel/pose-detector
32aff471e2591726bbe52140915255af6dc4f1a1
[ "MIT" ]
null
null
null
tools/BlenderProc/src/object/ObjectPoseSampler.py
GeorgSchenzel/pose-detector
32aff471e2591726bbe52140915255af6dc4f1a1
[ "MIT" ]
null
null
null
import bpy import mathutils from src.main.Module import Module from src.utility.BlenderUtility import check_intersection, check_bb_intersection, get_all_mesh_objects class ObjectPoseSampler(Module): """ Samples positions and rotations of selected object inside the sampling volume while performing mesh and ...
41.937853
116
0.580224
7,253
0.977098
0
0
2,716
0.36589
0
0
4,469
0.602048
1271a5b636e4e2a4b34227856118cd1f4633a6d6
872
py
Python
models.py
harmonyinnovationhub/project-beta
f98a08972ffb9c01123aa4849dc06a8b0beec171
[ "MIT" ]
null
null
null
models.py
harmonyinnovationhub/project-beta
f98a08972ffb9c01123aa4849dc06a8b0beec171
[ "MIT" ]
null
null
null
models.py
harmonyinnovationhub/project-beta
f98a08972ffb9c01123aa4849dc06a8b0beec171
[ "MIT" ]
null
null
null
from core import app from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate db = SQLAlchemy(app) migrate = Migrate(app, db) # user table class User(db.Model): id = db.Column(db.Integer, primary_key=True) token = db.Column(db.String(50), unique=True) name = db.Column(db.String(50)) ...
28.129032
49
0.692661
708
0.811927
0
0
0
0
0
0
12
0.013761
1272e8c25f35ec0988e71a71e9975672d9b50122
6,285
py
Python
create_swag/lm/load_data.py
gauravkmr/swagaf
0613674cca3612664c3a77a7d26a888ca7d3b127
[ "MIT" ]
182
2018-08-10T23:40:41.000Z
2022-03-25T11:23:17.000Z
create_swag/lm/load_data.py
gauravkmr/swagaf
0613674cca3612664c3a77a7d26a888ca7d3b127
[ "MIT" ]
3
2018-10-08T02:35:56.000Z
2019-11-19T23:24:22.000Z
create_swag/lm/load_data.py
gauravkmr/swagaf
0613674cca3612664c3a77a7d26a888ca7d3b127
[ "MIT" ]
40
2018-08-18T14:50:55.000Z
2022-03-07T23:49:54.000Z
# First make the vocabulary, etc. import os import pickle as pkl import random import simplejson as json from allennlp.common.util import get_spacy_model from allennlp.data import Instance from allennlp.data import Token from allennlp.data import Vocabulary from allennlp.data.dataset import Batch from allennlp.data.f...
41.622517
118
0.590294
1,434
0.228162
0
0
101
0.01607
0
0
1,540
0.245028
12732154001636677778fe83629d7b02a01b585b
148
py
Python
psana/psana/momentum/Energy.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psana/psana/momentum/Energy.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psana/psana/momentum/Energy.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
import numpy as np def CalcEnergy(m_amu,Px_au,Py_au,Pz_au): amu2au = 1836.15 return 27.2*(Px_au**2 + Py_au**2 + Pz_au**2)/(2*amu2au*m_amu)
24.666667
65
0.668919
0
0
0
0
0
0
0
0
0
0
12732acde8058d66a7523c9ed83348d21998d829
357
py
Python
timer.py
davidbarkhuizen/simagora
43d44dc058adcde4738574cb1132abaa02e6516e
[ "MIT" ]
1
2017-04-30T23:31:43.000Z
2017-04-30T23:31:43.000Z
timer.py
davidbarkhuizen/simagora
43d44dc058adcde4738574cb1132abaa02e6516e
[ "MIT" ]
null
null
null
timer.py
davidbarkhuizen/simagora
43d44dc058adcde4738574cb1132abaa02e6516e
[ "MIT" ]
null
null
null
from time import clock import logging #~ class Timer(object): #~ #~ def start(self,s): #~ self.s = s #~ self.started = clock() #~ #~ def stop(self): #~ self.stopped = clock() #~ t = self.stopped - self.started #~ self.log(t) #~ #~ def log(self, t): #~ line = self.s + ',...
19.833333
38
0.504202
0
0
0
0
0
0
0
0
264
0.739496
89bf882df35c847766d8e10365b7efa85c803827
173
py
Python
prototype/data/datasets/__init__.py
Sense-GVT/BigPretrain
d8d9b43d94dd1364c18c1e5ba21b85a31cdbba9e
[ "Apache-2.0" ]
8
2021-10-18T05:11:55.000Z
2021-11-10T11:54:13.000Z
prototype/data/datasets/__init__.py
Sense-GVT/BigPretrain
d8d9b43d94dd1364c18c1e5ba21b85a31cdbba9e
[ "Apache-2.0" ]
null
null
null
prototype/data/datasets/__init__.py
Sense-GVT/BigPretrain
d8d9b43d94dd1364c18c1e5ba21b85a31cdbba9e
[ "Apache-2.0" ]
1
2021-09-10T03:17:19.000Z
2021-09-10T03:17:19.000Z
from .imagenet_dataset import ImageNetDataset, RankedImageNetDataset # noqa from .custom_dataset import CustomDataset # noqa from .imagnetc import ImageNet_C_Dataset
28.833333
76
0.82659
0
0
0
0
0
0
0
0
14
0.080925
89c3edf7f3339956ac7cca062ad64b1b9a40814b
1,457
py
Python
setup.py
BCD65/electricityLoadForecasting
07a6ed060afaf7cc2906c0389b5c9e9b0fede193
[ "MIT" ]
null
null
null
setup.py
BCD65/electricityLoadForecasting
07a6ed060afaf7cc2906c0389b5c9e9b0fede193
[ "MIT" ]
null
null
null
setup.py
BCD65/electricityLoadForecasting
07a6ed060afaf7cc2906c0389b5c9e9b0fede193
[ "MIT" ]
null
null
null
import setuptools from distutils.core import setup setup( name = 'electricityLoadForecasting', version = '0.1.dev0', packages = setuptools.find_packages(), scripts = ['scripts/main_forecasting.py', 'scripts/preprocessing_eCO2mix.p...
35.536585
61
0.320522
0
0
0
0
0
0
0
0
383
0.262869
89c4524ab54cd0dacd5f166c3bbe02a8a3454498
5,966
py
Python
google/ads/google_ads/v3/proto/services/shopping_performance_view_service_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/services/shopping_performance_view_service_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/services/shopping_performance_view_service_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v3/proto/services/shopping_performance_view_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from go...
53.267857
1,127
0.826852
0
0
0
0
0
0
0
0
2,983
0.5
89c4bc4a43842e2dc017090ed080633222516f16
18,930
py
Python
python-client/trustedanalytics/core/graph.py
skavulya/atk
c83f0bee2530282e39bf28d4a15355561b5eca4d
[ "Apache-2.0" ]
null
null
null
python-client/trustedanalytics/core/graph.py
skavulya/atk
c83f0bee2530282e39bf28d4a15355561b5eca4d
[ "Apache-2.0" ]
null
null
null
python-client/trustedanalytics/core/graph.py
skavulya/atk
c83f0bee2530282e39bf28d4a15355561b5eca4d
[ "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # # Copyright (c) 2015 Intel Corporation  # # 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...
32.469983
134
0.539356
17,104
0.899832
192
0.010101
15,362
0.808186
0
0
14,532
0.76452
89c56780209adbe0387cf368029ab9a32fd8735c
377
py
Python
sound_play/scripts/test/test_sound_client.py
iory/audio_common
1db0394dcef452b93474665ee902ab80c3e7e439
[ "BSD-3-Clause" ]
742
2017-07-05T02:49:36.000Z
2022-03-30T12:55:43.000Z
sound_play/scripts/test/test_sound_client.py
iory/audio_common
1db0394dcef452b93474665ee902ab80c3e7e439
[ "BSD-3-Clause" ]
124
2015-06-25T22:52:21.000Z
2022-02-28T15:02:23.000Z
sound_play/scripts/test/test_sound_client.py
iory/audio_common
1db0394dcef452b93474665ee902ab80c3e7e439
[ "BSD-3-Clause" ]
425
2017-07-04T22:03:29.000Z
2022-03-29T06:59:06.000Z
#!/usr/bin/env python import unittest import rospy import rostest from sound_play.libsoundplay import SoundClient class TestCase(unittest.TestCase): def test_soundclient_constructor(self): s = SoundClient() self.assertIsNotNone(s) if __name__ == '__main__': rostest.rosrun('sound_play', 'test...
20.944444
63
0.745358
136
0.360743
0
0
0
0
0
0
78
0.206897
89c68600cd84e244db83ebc8d0fd8aa50d19edfb
2,308
py
Python
misc/getch.py
Chiel92/tfate
63632133e3bf5bf0ae481387da71ef81f164f539
[ "MIT" ]
3
2015-02-20T14:43:54.000Z
2018-03-21T09:17:18.000Z
misc/getch.py
Chiel92/tfate
63632133e3bf5bf0ae481387da71ef81f164f539
[ "MIT" ]
null
null
null
misc/getch.py
Chiel92/tfate
63632133e3bf5bf0ae481387da71ef81f164f539
[ "MIT" ]
null
null
null
#!python """This module is for messing with input characters.""" import os import sys unicurses_path = os.path.dirname(os.path.abspath(__file__)) + '/../libs/unicurses' sys.path.insert(0, unicurses_path) import unicurses as curses def key_info(key): try: _ord = ord(key) except: _ord = -1 t...
23.793814
82
0.52513
0
0
0
0
0
0
0
0
415
0.179498
89c86b75d76dab47c9165b27b0027d8c0bc0fad1
1,598
py
Python
exercises/linked-list/example.py
haithamk/python-exercism
8166a98ba771e0d527efdda421d3d9e741f0459b
[ "MIT" ]
1
2021-05-15T19:59:04.000Z
2021-05-15T19:59:04.000Z
exercises/linked-list/example.py
toroad/python
ce085c81a82ae5fb460fe166323dbbaa5a2588c5
[ "MIT" ]
null
null
null
exercises/linked-list/example.py
toroad/python
ce085c81a82ae5fb460fe166323dbbaa5a2588c5
[ "MIT" ]
2
2018-03-03T08:32:12.000Z
2019-08-22T11:55:53.000Z
class Node(object): def __init__(self, value, next=None, prev=None): self.value = value self.next = next self.prev = prev class LinkedList(object): def __init__(self): self.head = None self.tail = None self.length = 0 def push(self, value): new_node...
25.774194
52
0.532541
1,594
0.997497
164
0.102628
0
0
0
0
0
0
89ca0ec001dbf86f13d792104e70016b1f984f59
879
py
Python
tests/unitTest/testBitWiseSupervisor.py
huitredelombre/BERBER
49ba60f1836e9a7fef89dcadd24d0a812f5fe4bd
[ "Unlicense" ]
null
null
null
tests/unitTest/testBitWiseSupervisor.py
huitredelombre/BERBER
49ba60f1836e9a7fef89dcadd24d0a812f5fe4bd
[ "Unlicense" ]
null
null
null
tests/unitTest/testBitWiseSupervisor.py
huitredelombre/BERBER
49ba60f1836e9a7fef89dcadd24d0a812f5fe4bd
[ "Unlicense" ]
null
null
null
import unittest import sys sys.path.append("../../src/") from supervisors.bitWiseSupervisor import BitWiseSupervisor from senders.scapySender import ScapySender from simulations.randomSimulation import RandomSimulation class testArgParser(unittest.TestCase): def testApplyBER(self): sender = ScapySender...
25.852941
61
0.676906
607
0.690557
0
0
0
0
0
0
109
0.124005
89cc8c96ba145a294249c4b138a3c09de02694bc
949
py
Python
headless_chrome.py
MineRobber9000/discordscript
c9c4eda0e28db72890d0490617ed361722c7c44c
[ "MIT" ]
null
null
null
headless_chrome.py
MineRobber9000/discordscript
c9c4eda0e28db72890d0490617ed361722c7c44c
[ "MIT" ]
null
null
null
headless_chrome.py
MineRobber9000/discordscript
c9c4eda0e28db72890d0490617ed361722c7c44c
[ "MIT" ]
null
null
null
from selenium import webdriver def _options_factory(): """Produces a selenium.webdriver.ChromeOptions object. Used to force "headless" on invocation. You shouldn't call this function.""" ret = webdriver.ChromeOptions() ret.add_argument("headless") return ret def get_driver(*varargs,args=[]): """Creates headless ...
32.724138
132
0.791359
0
0
0
0
0
0
0
0
337
0.355111
89cd7e4794021790017343f1b97d640a8664e0b4
2,677
py
Python
lemonsoap/scent/columns_scent.py
Ekrekr/LemonSoap
61b86b70a3788486235de2e8baeb7c68b80318a9
[ "MIT" ]
null
null
null
lemonsoap/scent/columns_scent.py
Ekrekr/LemonSoap
61b86b70a3788486235de2e8baeb7c68b80318a9
[ "MIT" ]
1
2019-08-23T18:30:31.000Z
2019-08-23T18:32:23.000Z
lemonsoap/scent/columns_scent.py
Ekrekr/LemonSoap
61b86b70a3788486235de2e8baeb7c68b80318a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ LemonSoap - headers scent. Deals with column headers. """ import pandas as pd import inflection import re import logging from ..lemon_bar import LemonBar from .scent_template import ScentTemplate class ColumnsScent(ScentTemplate): """ Manages headers issue identification and fixi...
27.316327
77
0.566679
2,448
0.914456
0
0
0
0
0
0
1,300
0.485618
89ce8df07aa57ac1b43e0c11bcfa9d8eaf3ff5df
2,347
py
Python
experiments/expression/codex/codex_alignment.py
andrewcharlesjones/spatial-alignment
70aecf800c5efea6a92990ccf87a1950752a268b
[ "MIT" ]
14
2022-01-11T14:51:17.000Z
2022-02-26T20:46:58.000Z
experiments/expression/codex/codex_alignment.py
andrewcharlesjones/spatial-alignment
70aecf800c5efea6a92990ccf87a1950752a268b
[ "MIT" ]
3
2022-01-26T17:16:24.000Z
2022-02-24T13:22:39.000Z
experiments/expression/codex/codex_alignment.py
andrewcharlesjones/spatial-alignment
70aecf800c5efea6a92990ccf87a1950752a268b
[ "MIT" ]
1
2022-02-23T09:54:37.000Z
2022-02-23T09:54:37.000Z
import pandas as pd from os.path import join as pjoin import numpy as np import matplotlib.pyplot as plt DATA_DIR = "../../../data/codex" data = pd.read_csv(pjoin(DATA_DIR, "codex_mrl_expression.csv")) # , nrows=200) marker_names = data.columns.values[1:-8] sample_names = data.sample_Xtile_Ytile.str.split("_").str[0...
28.277108
79
0.734555
0
0
0
0
0
0
0
0
360
0.153387
89cf07481d85093cb253e55bad9a9ca217559128
78
py
Python
plugins/pie_branding.py
juergenz/pie
be490b9e18ee3158015a13826ed3caf442c07c51
[ "MIT" ]
null
null
null
plugins/pie_branding.py
juergenz/pie
be490b9e18ee3158015a13826ed3caf442c07c51
[ "MIT" ]
null
null
null
plugins/pie_branding.py
juergenz/pie
be490b9e18ee3158015a13826ed3caf442c07c51
[ "MIT" ]
null
null
null
import pie @pie.eventhandler('pie.PlayerChat') async def onLoad(): pass
11.142857
35
0.705128
0
0
0
0
65
0.833333
29
0.371795
16
0.205128
89cfb900a50afd4227256d6f741798ab183a0cd9
4,853
py
Python
teleband/users/api/views.py
JMU-CIME/CPR-Music-Backend
b72b70ed8826595c96c028595181293edcf1e368
[ "MIT" ]
2
2022-01-08T20:21:43.000Z
2022-03-18T03:31:30.000Z
teleband/users/api/views.py
JMU-CIME/CPR-Music-Backend
b72b70ed8826595c96c028595181293edcf1e368
[ "MIT" ]
16
2022-01-08T02:12:54.000Z
2022-03-02T03:02:59.000Z
teleband/users/api/views.py
JMU-CIME/CPR-Music-Backend
b72b70ed8826595c96c028595181293edcf1e368
[ "MIT" ]
2
2022-01-08T00:21:37.000Z
2022-01-18T05:33:15.000Z
import collections import csv from io import StringIO from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core.exceptions import ValidationError from django.core.validators import validate_email from rest_framework import permissions from rest_framework import statu...
37.620155
142
0.687616
3,750
0.772718
0
0
1,671
0.344323
0
0
493
0.101587
89cfe6c76017fa136a954dd90da05d73e796cbce
10,031
py
Python
models/ri_pcn.py
RexSkywalkerLee/VRCNet
1dce3be11ed89375665fbbbc7462d56cb66f690b
[ "MIT" ]
null
null
null
models/ri_pcn.py
RexSkywalkerLee/VRCNet
1dce3be11ed89375665fbbbc7462d56cb66f690b
[ "MIT" ]
null
null
null
models/ri_pcn.py
RexSkywalkerLee/VRCNet
1dce3be11ed89375665fbbbc7462d56cb66f690b
[ "MIT" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn import torch.nn.parallel import torch.utils.data import torch.nn.functional as F import math from utils.model_utils import * from utils.ri_utils import * from models.vrcnet import Linear_ResBlock class PCN_encoder(nn.Module): def __init__(se...
46.873832
172
0.632539
7,450
0.742698
0
0
0
0
0
0
3,060
0.305054
89d03fb8a0b8c366fe6c36d8c3d59eb5d6f108ae
4,267
py
Python
tests/unit/test_game.py
BrunoASNascimento/ETHGlobal-Project
bbb69d07de17698d716a6990e71bdeedd873582d
[ "MIT" ]
null
null
null
tests/unit/test_game.py
BrunoASNascimento/ETHGlobal-Project
bbb69d07de17698d716a6990e71bdeedd873582d
[ "MIT" ]
null
null
null
tests/unit/test_game.py
BrunoASNascimento/ETHGlobal-Project
bbb69d07de17698d716a6990e71bdeedd873582d
[ "MIT" ]
null
null
null
from scripts.helpful_scripts import ( LOCAL_BLOCKCHAIN_ENVIRONMENTS, get_account, fund_with_link, get_contract, ) from brownie import Game, accounts, config, network, exceptions from scripts.deploy_game import deploy_game from web3 import Web3 import pytest # if network.show_active() not in LOCAL_BLOC...
35.264463
113
0.594563
3,905
0.915163
0
0
1,172
0.274666
0
0
1,013
0.237403
89d04b9eb8d01d291b7226fc499b9d1ce4373de0
466
py
Python
arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py
DiegoDBLe/Python-Linkedin
0365fb2c83d04c10a2ebd8b56baddb91a4525811
[ "MIT" ]
null
null
null
arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py
DiegoDBLe/Python-Linkedin
0365fb2c83d04c10a2ebd8b56baddb91a4525811
[ "MIT" ]
null
null
null
arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py
DiegoDBLe/Python-Linkedin
0365fb2c83d04c10a2ebd8b56baddb91a4525811
[ "MIT" ]
null
null
null
# # Escrevendo arquivos com funções do Python # def escreveArquivo(): arquivo = open('NovoArquivo.txt', 'w+') arquivo.write('Linha gerada com a função Escrevendo Arquivo \r\n') arquivo.close() #escreveArquivo()] def alteraArquivo(): arquivo = open('NovoArquivo.txt', 'a+') # a de append que dizer e...
18.64
106
0.690987
0
0
0
0
0
0
0
0
271
0.574153
89d0cf9f3e0655b88c1a304fee38eb9854817a94
1,150
py
Python
graphio/queries/query_parameters.py
JTaeger/graphio
e856d4266842540cfe56ba7367d8f97183ae2954
[ "Apache-2.0" ]
null
null
null
graphio/queries/query_parameters.py
JTaeger/graphio
e856d4266842540cfe56ba7367d8f97183ae2954
[ "Apache-2.0" ]
null
null
null
graphio/queries/query_parameters.py
JTaeger/graphio
e856d4266842540cfe56ba7367d8f97183ae2954
[ "Apache-2.0" ]
null
null
null
def params_create_rels_unwind_from_objects(relationships, property_identifier=None): """ Format Relationship properties into a one level dictionary matching the query generated in `query_create_rels_from_list`. This is necessary because you cannot access nested dictionairies in the UNWIND query. UN...
33.823529
99
0.646087
0
0
0
0
0
0
0
0
678
0.589565
89d191bec6b5c9759bd10872394402ac762205b9
477
py
Python
user/migrations/0002_userprofile_relations.py
Trippr-dwoc/Trippr-backend
69a8bb8e1a742b64b4eaf8612f97806e6191e8fb
[ "MIT" ]
null
null
null
user/migrations/0002_userprofile_relations.py
Trippr-dwoc/Trippr-backend
69a8bb8e1a742b64b4eaf8612f97806e6191e8fb
[ "MIT" ]
null
null
null
user/migrations/0002_userprofile_relations.py
Trippr-dwoc/Trippr-backend
69a8bb8e1a742b64b4eaf8612f97806e6191e8fb
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-10-19 18:54 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AddField( model_name='userprofile', ...
23.85
116
0.649895
351
0.735849
0
0
0
0
0
0
122
0.255765
89d29a1fa605d5be215d81daea59d7f25ded9268
6,239
py
Python
src/utils/testing_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
null
null
null
src/utils/testing_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
10
2020-05-06T14:30:44.000Z
2022-03-12T00:33:00.000Z
src/utils/testing_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
6
2020-04-15T04:30:36.000Z
2020-10-23T16:02:24.000Z
#python -m marbles test_semantic_columns.py import unittest from marbles.mixins import mixins import pandas as pd import requests from pyspark.sql import SparkSession import psycopg2 as pg import pandas as pd import marbles from pyspark.sql.types import StructType, StructField, StringType import psycopg2 as pg #from s...
58.858491
366
0.536624
0
0
0
0
0
0
0
0
1,263
0.202436
89d312b14f6d96924f16b029fd0ee12233883f44
6,572
py
Python
polygon.py
darinamazur/Math-modeling-
8de5913fd8314dc51641700c9a1088c6f34fd2a3
[ "MIT" ]
null
null
null
polygon.py
darinamazur/Math-modeling-
8de5913fd8314dc51641700c9a1088c6f34fd2a3
[ "MIT" ]
null
null
null
polygon.py
darinamazur/Math-modeling-
8de5913fd8314dc51641700c9a1088c6f34fd2a3
[ "MIT" ]
null
null
null
import math class polygon: def __init__(self, arr): self.original_arr = arr self.size = len(self.original_arr) self.__set_min_max_by_original__() self.__refactor_original_seq__() self.sorted_arr.append(self.sorted_arr[0]) self.size += 1 def __set_min_max_by_ori...
46.609929
145
0.549452
6,558
0.99787
0
0
0
0
0
0
135
0.020542
89d33b22e0bc047ce85d01052a68ca4989846e8f
20,352
py
Python
post_processing/utils.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
post_processing/utils.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
post_processing/utils.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
2
2020-07-31T14:40:49.000Z
2020-07-31T17:52:30.000Z
# coding: utf-8 # In[20]: import numpy as np import pydensecrf.densecrf as dcrf import os import cv2 import random from tqdm import tqdm # In[21]: from skimage.color import gray2rgb from skimage.color import rgb2gray import matplotlib.pyplot as plt from sklearn.metrics import f1_score, accuracy_score from pyden...
37.071038
134
0.604068
0
0
0
0
0
0
0
0
3,831
0.188237
89d3bf0df91591781ea747a7755b48cfdfadf9ad
783
py
Python
lists/management/commands/seed_list.py
nasir733/airbnb-clone
9ac746b6f3f3c8fc45f97773266e6f5f182d14b9
[ "MIT" ]
null
null
null
lists/management/commands/seed_list.py
nasir733/airbnb-clone
9ac746b6f3f3c8fc45f97773266e6f5f182d14b9
[ "MIT" ]
null
null
null
lists/management/commands/seed_list.py
nasir733/airbnb-clone
9ac746b6f3f3c8fc45f97773266e6f5f182d14b9
[ "MIT" ]
null
null
null
import random from django.core.management.base import BaseCommand from django.contrib.admin.utils import flatten from django_seed import Seed from lists import models as list_models from users import models as user_models from rooms import models as room_models NAME = "lists" class Command(BaseCommand): help =...
29
81
0.696041
501
0.639847
0
0
0
0
0
0
66
0.084291
89d4a95a515f918c5e953ba7e49e998786a0f9cc
4,181
py
Python
rdkit/DataStructs/UnitTestBitEnsemble.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/DataStructs/UnitTestBitEnsemble.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/DataStructs/UnitTestBitEnsemble.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# $Id$ # # Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ unit testing code f...
29.443662
95
0.608467
3,482
0.832815
0
0
0
0
0
0
821
0.196365
89d4b8941114154f6cc741048f8332377d3a8b83
1,678
py
Python
simple_classroom/apps/classroom/migrations/0003_auto_20150207_1835.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
7
2015-05-08T22:43:15.000Z
2020-12-04T15:38:17.000Z
simple_classroom/apps/classroom/migrations/0003_auto_20150207_1835.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
7
2020-06-05T17:40:40.000Z
2022-03-11T23:17:13.000Z
simple_classroom/apps/classroom/migrations/0003_auto_20150207_1835.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
4
2015-05-13T05:47:32.000Z
2020-05-08T18:06:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('classroom', '0002_assignment_description'), ] operations = [ migrations.AddField( model_name='assignment', ...
37.288889
184
0.628129
1,569
0.935042
0
0
0
0
0
0
490
0.292014
89d564054c9eaa814b62ed98ed13a84890b170f0
6,484
py
Python
pyburst/misc/resolution.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
4
2019-05-01T07:30:15.000Z
2021-08-04T15:04:38.000Z
pyburst/misc/resolution.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
null
null
null
pyburst/misc/resolution.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
4
2019-03-26T12:38:37.000Z
2022-03-09T05:30:18.000Z
import numpy as np import matplotlib.pyplot as plt import os from pyburst.grids import grid_analyser, grid_strings, grid_tools # resolution tests y_factors = {'dt': 3600, 'fluence': 1e39, 'peak': 1e38, } y_labels = {'dt': '$\Delta t$', 'rate': 'Burst rate', ...
33.42268
85
0.566626
0
0
0
0
0
0
0
0
1,290
0.198951
89d59366b3b61d950e0acc7ff13715341f62b69d
47,267
py
Python
scielomanager/journalmanager/models.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/journalmanager/models.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/journalmanager/models.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import urllib import hashlib import logging import choices import caching.base from scielomanager import tools try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict from django.db import ( models, transaction, IntegrityError, ...
38.428455
166
0.66393
44,669
0.945016
0
0
2,770
0.058602
0
0
11,635
0.24615
89d735fe97fdd6718d6f7ee2b956443498bb36dc
7,323
py
Python
award/forms.py
aiventimptner/stura
268e50d08ec975dd1c974ea27cea5c5b638df686
[ "MIT" ]
null
null
null
award/forms.py
aiventimptner/stura
268e50d08ec975dd1c974ea27cea5c5b638df686
[ "MIT" ]
null
null
null
award/forms.py
aiventimptner/stura
268e50d08ec975dd1c974ea27cea5c5b638df686
[ "MIT" ]
null
null
null
from datetime import timedelta from django import forms from django.core.exceptions import ValidationError from django.core.mail import send_mail from django.http import HttpRequest from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy as _ from .models imp...
40.016393
118
0.632937
5,200
0.709995
0
0
0
0
0
0
2,070
0.282632
89d82542f7b1351b6e3de4ad757581394ba2df33
6,971
py
Python
src/train-transformer.py
ARLab-VT/VT-Natural-Motion-Processing
56622dd3a7ed90e3791601dc569a0312e889eaaf
[ "MIT" ]
11
2020-12-07T11:29:18.000Z
2022-02-25T05:04:46.000Z
src/train-transformer.py
ARLab-VT/VT-Natural-Motion-Processing
56622dd3a7ed90e3791601dc569a0312e889eaaf
[ "MIT" ]
1
2021-10-16T01:37:23.000Z
2021-10-16T01:37:23.000Z
src/train-transformer.py
ARLab-VT/VT-Natural-Motion-Processing
56622dd3a7ed90e3791601dc569a0312e889eaaf
[ "MIT" ]
2
2020-08-15T23:27:23.000Z
2021-02-11T19:06:27.000Z
# Copyright (c) 2020-present, Assistive Robotics Lab # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from transformers.training_utils import fit from transformers.transformers import ( InferenceTransformerEncoder, ...
39.384181
79
0.579544
0
0
0
0
0
0
0
0
2,025
0.290489
89d83015d934717ac40944dfdbcc9a9c8718e02e
3,226
py
Python
amocrm_asterisk_ng/integration/Integration.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/integration/Integration.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/integration/Integration.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
from typing import Collection from typing import Sequence from glassio.initializable_components import InitializableComponent from glassio.logger import InitializableLogger from amocrm_asterisk_ng.scenario import IScenario __all__ = [ "Integration", ] class Integration: __slots__ = ( "__scenario"...
33.257732
93
0.66181
2,963
0.918475
0
0
0
0
2,187
0.677929
557
0.17266
89d89227f288e0f65c724c9ca47de9d7c7896fe6
1,685
py
Python
src/pyro_util/modules/__init__.py
MacoskoLab/pyro-util
6ea5e1dfd082abed8e675743c59efe9b548671ab
[ "MIT" ]
null
null
null
src/pyro_util/modules/__init__.py
MacoskoLab/pyro-util
6ea5e1dfd082abed8e675743c59efe9b548671ab
[ "MIT" ]
null
null
null
src/pyro_util/modules/__init__.py
MacoskoLab/pyro-util
6ea5e1dfd082abed8e675743c59efe9b548671ab
[ "MIT" ]
null
null
null
from typing import Tuple import torch import torch.nn as nn from pyro.distributions.util import broadcast_shape from pyro_util.modules.weight_scaling import GammaReLU, WSLinear T = torch.Tensor def make_ws_fc(*dims: int) -> nn.Module: """Helper function for creating a fully connected neural network. This v...
29.561404
72
0.68546
0
0
0
0
0
0
0
0
622
0.369139
89d9126f3e319e5ec89708f1f4c286d5fd016235
356
py
Python
catalog_harvesting/util.py
ioos/catalog-harvesting
7674f9d0aba21032737f09364db6cd0afa3664cc
[ "MIT" ]
null
null
null
catalog_harvesting/util.py
ioos/catalog-harvesting
7674f9d0aba21032737f09364db6cd0afa3664cc
[ "MIT" ]
17
2016-07-01T18:52:20.000Z
2021-12-13T19:48:50.000Z
catalog_harvesting/util.py
ioos/catalog-harvesting
7674f9d0aba21032737f09364db6cd0afa3664cc
[ "MIT" ]
4
2016-06-28T15:29:28.000Z
2017-05-16T18:54:04.000Z
#!/usr/bin/env python ''' catalog_harvesting/util.py General utilities for the project ''' import random def unique_id(): ''' Return a random 17-character string that works well for mongo IDs ''' charmap = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" return ''.join([random.cho...
19.777778
78
0.72191
0
0
0
0
0
0
0
0
237
0.66573
89d965296e8228cfbfe6118b69532269f5a9bce1
10,442
py
Python
render.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
2
2020-10-26T19:18:11.000Z
2020-10-27T17:27:40.000Z
render.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
null
null
null
render.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
1
2020-12-18T03:42:42.000Z
2020-12-18T03:42:42.000Z
from WeatherScreens.RingScreen import RingScreen from WeatherScreens.QuadrantScreen import QuadrantScreen from WeatherScreens.ImageScreen import ImageScreen from WeatherScreens.ScreenBase import ScreenBase from datetime import datetime, timedelta from suntime import Sun, SunTimeException from dateutil import tz import ...
83.536
187
0.538977
0
0
0
0
0
0
0
0
4,843
0.4638
89da74e72512e7844f3d0419ef0411f667024554
254
py
Python
evergreen/manage/website/page/urls.py
craigsander/evergreen
73c8e1ed546e3ac480add3e30e8696f4eb052496
[ "MIT" ]
null
null
null
evergreen/manage/website/page/urls.py
craigsander/evergreen
73c8e1ed546e3ac480add3e30e8696f4eb052496
[ "MIT" ]
6
2016-05-09T02:56:05.000Z
2016-05-26T18:36:41.000Z
evergreen/manage/website/page/urls.py
craigsander/evergreen
73c8e1ed546e3ac480add3e30e8696f4eb052496
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.conf import settings from . import views # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ url(r'manage/', views.index), ]
23.090909
60
0.755906
0
0
0
0
0
0
0
0
116
0.456693
89dabd1fdd786adb281a58df018fbc280d6e2986
9,563
py
Python
algos/td3.py
SrikarValluri/hidden-state-rrl-sl
80c90ce3e07fc61e6b910a763b9608debeb1e5c4
[ "MIT" ]
null
null
null
algos/td3.py
SrikarValluri/hidden-state-rrl-sl
80c90ce3e07fc61e6b910a763b9608debeb1e5c4
[ "MIT" ]
null
null
null
algos/td3.py
SrikarValluri/hidden-state-rrl-sl
80c90ce3e07fc61e6b910a763b9608debeb1e5c4
[ "MIT" ]
1
2021-12-07T13:45:33.000Z
2021-12-07T13:45:33.000Z
import copy import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import random from algos.dpg import eval_policy, collect_experience from algos.dpg import ReplayBuffer class TD3(): def __init__(self, actor, q1, q2, a_lr, c_lr, discount=0.99, tau=0.001, center_reward=False, policy_n...
37.065891
171
0.680958
3,322
0.347381
0
0
0
0
0
0
1,157
0.120987
89dae401f8334c13497ff1b437626cfde768def7
2,021
py
Python
Hackathon 4.0_2021-01-08_07-22-55.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
Hackathon 4.0_2021-01-08_07-22-55.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
Hackathon 4.0_2021-01-08_07-22-55.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
# This code is generated automatically by ClointFusion BOT Builder Tool. import ClointFusion as cf import time cf.window_show_desktop() cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2)) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_5fa2...
48.119048
256
0.784265
0
0
0
0
0
0
0
0
721
0.356754
89db6ccc91759a48501578936605ad3449526dbf
4,524
py
Python
examples/2d/obsolete/gravity/generate_statedb.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
examples/2d/obsolete/gravity/generate_statedb.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
examples/2d/obsolete/gravity/generate_statedb.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
#!/usr/bin/env nemesis """ This script creates a spatial database for the initial stress and state variables for a Maxwell plane strain material. """ sim = "gravity_vardensity" materials = ["crust","mantle"] import numpy import h5py from spatialdata.spatialdb.SimpleIOAscii import SimpleIOAscii from spatialdata.geoco...
35.34375
230
0.593722
0
0
0
0
0
0
0
0
1,724
0.381079
89de0f572a2f8179acd41fd1a3556c20df2554f1
923
py
Python
Python_Examples/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
Python_Examples/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
Python_Examples/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
from random import randint import numpy as np import random class BehaviorPolicy: def __init__(self): self.lastAction = 0 self.i = 0 self.ACTIONS = { 'forward': "move 1", 'back': "move -1", 'turn_left': "turn 1", 'extend_hand':"attack 1" } def policy(self, state): se...
23.075
112
0.648971
862
0.933911
0
0
0
0
0
0
199
0.215601
89de59b92801ba07cf84ab98bf1071d2e2892971
311
py
Python
Lists/In_Lists.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
1
2021-11-01T12:45:50.000Z
2021-11-01T12:45:50.000Z
Lists/In_Lists.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
null
null
null
Lists/In_Lists.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
null
null
null
# Check if the value is in the list? words = ['apple', 'banana', 'peach', '42'] if 'apple' in words: print('found apple') if 'a' in words: print('found a') else: print('NOT found a') if 42 in words: print('found 42') else: print('NOT found 42') # found apple # NOT found a # NOT found 42
16.368421
42
0.604502
0
0
0
0
0
0
0
0
171
0.549839
89dfe3895be78648508f25f822750a4e38dd966a
46,445
py
Python
src/genesis_api_wrapper/catalogue.py
j-suchard/destatis-genesis-api
b0bbec0283ba41707d543b11e556ab0997e5f792
[ "BSD-3-Clause" ]
null
null
null
src/genesis_api_wrapper/catalogue.py
j-suchard/destatis-genesis-api
b0bbec0283ba41707d543b11e556ab0997e5f792
[ "BSD-3-Clause" ]
null
null
null
src/genesis_api_wrapper/catalogue.py
j-suchard/destatis-genesis-api
b0bbec0283ba41707d543b11e556ab0997e5f792
[ "BSD-3-Clause" ]
null
null
null
import datetime import typing from . import enums, tools class CatalogueAPIWrapper: """Methods for listing objects""" def __init__( self, username: str, password: str, language: enums.Language = enums.Language.GERMAN ): """Create a new Wrapper containing functions for listing different o...
48.53187
98
0.636279
46,384
0.998687
0
0
0
0
43,836
0.943826
25,858
0.556745
89dffdff4ab352309290e6973585dc0df6b2adbd
2,440
py
Python
python/rsa_encrypt_decrypt.py
hipro/hipro
49e8c9751109839fdef9a6bc812e3b92fdff7d4e
[ "Apache-2.0" ]
null
null
null
python/rsa_encrypt_decrypt.py
hipro/hipro
49e8c9751109839fdef9a6bc812e3b92fdff7d4e
[ "Apache-2.0" ]
null
null
null
python/rsa_encrypt_decrypt.py
hipro/hipro
49e8c9751109839fdef9a6bc812e3b92fdff7d4e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """加密算法:公钥(私钥)加密,私钥解密""" from Crypto.PublicKey import RSA from Crypto import Random DATA = 'Hello, word!' PRIVATE_KEY_PEM = """-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDB3c0nwVs6koPkpt6REeT07jK7m9qE9BmDw1Zl55T66rGfKM3g 1DFBq7jtcZ+xcgYAGgvJWPW16nylag/1lVNUxMShm2jlp3MwuBNKRvrXP2u29j9v AAlM9lMLXzt0...
35.362319
66
0.812295
0
0
0
0
0
0
0
0
1,276
0.515347
89e0907a323d313394f560697c26056210dde316
375
py
Python
users/views.py
migleankstutyte/kaavapino
1fd0b642a66f1ec7c61decf46433dc9f0bf3ed8e
[ "MIT" ]
3
2019-02-07T14:47:00.000Z
2022-02-15T14:09:38.000Z
users/views.py
migleankstutyte/kaavapino
1fd0b642a66f1ec7c61decf46433dc9f0bf3ed8e
[ "MIT" ]
74
2017-12-13T09:18:04.000Z
2022-03-11T23:29:59.000Z
users/views.py
migleankstutyte/kaavapino
1fd0b642a66f1ec7c61decf46433dc9f0bf3ed8e
[ "MIT" ]
8
2017-12-13T09:31:20.000Z
2022-02-15T13:10:34.000Z
from django.contrib.auth import get_user_model from rest_framework import mixins from rest_framework.viewsets import GenericViewSet from users.serializers import UserSerializer class UserViewSet(mixins.RetrieveModelMixin, mixins.ListModelMixin, GenericViewSet): queryset = get_user_model().objects.all() seria...
31.25
84
0.824
194
0.517333
0
0
0
0
0
0
6
0.016
89e10d148c9fdea8e999e4febe67aedd65bd1469
59
py
Python
interpreted/python.py
bupboi1337/Hello-World-Collection
989a25cb2916a3fa0c8d5e21c7b857a0f89ab49f
[ "MIT" ]
2
2021-12-03T10:49:15.000Z
2021-12-03T17:28:17.000Z
interpreted/python.py
bupboi1337/Hello-World-Collection
989a25cb2916a3fa0c8d5e21c7b857a0f89ab49f
[ "MIT" ]
null
null
null
interpreted/python.py
bupboi1337/Hello-World-Collection
989a25cb2916a3fa0c8d5e21c7b857a0f89ab49f
[ "MIT" ]
null
null
null
print("Hello, World!") print("This uses the MIT Licence!")
19.666667
35
0.694915
0
0
0
0
0
0
0
0
43
0.728814
89e1e0fdcc58fa3523c28ea0543829f7666a6db0
5,597
py
Python
survae/tests/transforms/bijections/conditional/coupling/coupling_mixtures.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/tests/transforms/bijections/conditional/coupling/coupling_mixtures.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/tests/transforms/bijections/conditional/coupling/coupling_mixtures.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import numpy as np import torch import torch.nn as nn import torchtestcase import unittest from survae.transforms.bijections.conditional.coupling import * from survae.nn.layers import ElementwiseParams, ElementwiseParams2d, scale_fn from survae.tests.transforms.bijections.conditional import ConditionalBijectionTest c...
55.415842
167
0.60586
5,222
0.933
0
0
0
0
0
0
10
0.001787
89e266ad4a5dbc97ce90b8acd022e9cd85eb5d18
408
py
Python
shop_website/shop/migrations/0002_auto_20200228_1533.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
shop_website/shop/migrations/0002_auto_20200228_1533.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
shop_website/shop/migrations/0002_auto_20200228_1533.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-28 15:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0001_initial'), ] operations = [ migrations.AlterField( model_name='product', name='photo', fiel...
21.473684
86
0.60049
315
0.772059
0
0
0
0
0
0
111
0.272059
89e27c59e9c3624f60d5be2d955f2c4ed96ee92e
4,812
py
Python
machines/migrations/0001_initial.py
minikdo/domino
16ccc5b36c730c8bee223024e02b4984feedef26
[ "Apache-2.0" ]
null
null
null
machines/migrations/0001_initial.py
minikdo/domino
16ccc5b36c730c8bee223024e02b4984feedef26
[ "Apache-2.0" ]
1
2022-02-10T10:54:20.000Z
2022-02-10T10:54:20.000Z
machines/migrations/0001_initial.py
minikdo/domino
16ccc5b36c730c8bee223024e02b4984feedef26
[ "Apache-2.0" ]
1
2018-11-19T23:17:52.000Z
2018-11-19T23:17:52.000Z
# Generated by Django 2.2.3 on 2019-07-21 01:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Device', fields=[ ...
50.125
151
0.579177
4,686
0.973815
0
0
0
0
0
0
550
0.114298
89e28e497194558b332c7d2514764dab8aee4b55
813
py
Python
src/openweather/OpenWeatherParser.py
ralfe/wpi
ee077fb9fd1b2e8759e6195b3c36f24848eea6f5
[ "MIT" ]
null
null
null
src/openweather/OpenWeatherParser.py
ralfe/wpi
ee077fb9fd1b2e8759e6195b3c36f24848eea6f5
[ "MIT" ]
null
null
null
src/openweather/OpenWeatherParser.py
ralfe/wpi
ee077fb9fd1b2e8759e6195b3c36f24848eea6f5
[ "MIT" ]
null
null
null
__author__ = 'renderle' class OpenWeatherParser: def __init__(self, data): self.data = data def getValueFor(self, idx): return self.data['list'][idx] def getTemperature(self): earlymorningValue = self.getValueFor(0)['main']['temp_max'] morningValue = self.getValueFor(1)['...
30.111111
67
0.654367
785
0.96556
0
0
0
0
0
0
87
0.107011
89e34b71011f62cacdee9a2e71e2e2ea742bcf2b
8,300
py
Python
docs/make_docs.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/make_docs.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/make_docs.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
# Convert examples in this folder to their corresponding .md files in docs/examples import re import inspect import textwrap import datetime import yaml from pathlib import Path def hide(line): return ":hide:" in line def build_examples(): current = Path(__file__) folder = current.parent for fname...
25.696594
139
0.546145
773
0.093065
0
0
0
0
0
0
1,573
0.189381
89e6cd7ae91131db466757761efa7d854f285ccc
21,017
py
Python
MVMOO/multi_mixed_optimiser.py
jmanson377/MVMOO
0e3d5ca5c1a9dd0fb9ff949e8e0d0448ae78a535
[ "Apache-2.0" ]
5
2021-07-10T10:22:14.000Z
2022-03-28T05:16:21.000Z
MVMOO/multi_mixed_optimiser.py
jmanson377/MVMOO
0e3d5ca5c1a9dd0fb9ff949e8e0d0448ae78a535
[ "Apache-2.0" ]
2
2021-01-19T15:28:32.000Z
2021-08-16T14:21:47.000Z
MVMOO/multi_mixed_optimiser.py
jmanson377/MVMOO
0e3d5ca5c1a9dd0fb9ff949e8e0d0448ae78a535
[ "Apache-2.0" ]
1
2022-03-28T05:16:25.000Z
2022-03-28T05:16:25.000Z
import numpy as np from scipy.stats import norm from .mixed_optimiser import MVO from scipy.optimize import shgo, differential_evolution, dual_annealing import scipy as stats class MVMOO(MVO): """ Multi variate mixed variable optimisation """ def __init__(self, input_dim=1, num_qual=0, num_obj=2, bound...
37.664875
190
0.538136
20,841
0.991626
0
0
0
0
0
0
3,935
0.187229
89e8f1e4189f0729dfe92491a135e0998857cfdb
2,306
py
Python
chainer/links/connection/mgu.py
Qwinpin/chainer
1dca01bc8a1aceec6ee53a66d24970b203a9fc51
[ "MIT" ]
1
2019-02-12T23:10:16.000Z
2019-02-12T23:10:16.000Z
chainer/links/connection/mgu.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
1
2018-06-26T08:16:09.000Z
2018-06-26T08:16:09.000Z
chainer/links/connection/mgu.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
1
2018-05-28T22:43:34.000Z
2018-05-28T22:43:34.000Z
import numpy import chainer from chainer.backends import cuda from chainer.functions.activation import sigmoid from chainer.functions.activation import tanh from chainer.functions.array import concat from chainer.functions.math import linear_interpolate from chainer import link from chainer.links.connection import lin...
29.948052
76
0.630095
1,973
0.855594
0
0
0
0
0
0
95
0.041197
89e93dde7c1c5cc0955c1c9e582b41a9104efdc2
2,920
py
Python
backend/api/v1/rest.py
aroraenterprise/projecteos
e1fb0438af8cb59b77792523c6616c480b23a6f8
[ "MIT" ]
null
null
null
backend/api/v1/rest.py
aroraenterprise/projecteos
e1fb0438af8cb59b77792523c6616c480b23a6f8
[ "MIT" ]
null
null
null
backend/api/v1/rest.py
aroraenterprise/projecteos
e1fb0438af8cb59b77792523c6616c480b23a6f8
[ "MIT" ]
null
null
null
""" Project: flask-rest Author: Saj Arora Description: Initializes the rest app """ from collections import OrderedDict import flask from api.v1 import Api class _SageRest(flask.Flask): _api = None __modules = [] _modules = {} _ordered_modules = OrderedDict() _auth_module = None def __init_...
36.962025
107
0.626027
2,760
0.945205
0
0
0
0
0
0
642
0.219863
89ea4df004678d25f396f7be142ad28d35ef4d77
1,575
py
Python
torchreid/losses/log_euclid_loss.py
fremigereau/MTDA_KD_REID
354645990c9ff0e1eff363ddddccd0d208b08269
[ "MIT" ]
null
null
null
torchreid/losses/log_euclid_loss.py
fremigereau/MTDA_KD_REID
354645990c9ff0e1eff363ddddccd0d208b08269
[ "MIT" ]
null
null
null
torchreid/losses/log_euclid_loss.py
fremigereau/MTDA_KD_REID
354645990c9ff0e1eff363ddddccd0d208b08269
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from torchreid.metrics import compute_distance_matrix import scipy.linalg def adjoint(A, E, f): A_H = A.T.conj().to(E.dtype) n = A.size(0) M = torch.zeros(2*n, 2*n, dty...
28.125
91
0.652063
985
0.625397
0
0
382
0.24254
0
0
31
0.019683
89ebaa5775c0dea38d5246fe1024840283181c4b
4,460
py
Python
app/rockband/tests/test_member_api.py
solattila/rock-band-api
1521b2913b75c53310ba1b71d77d599966237483
[ "MIT" ]
null
null
null
app/rockband/tests/test_member_api.py
solattila/rock-band-api
1521b2913b75c53310ba1b71d77d599966237483
[ "MIT" ]
null
null
null
app/rockband/tests/test_member_api.py
solattila/rock-band-api
1521b2913b75c53310ba1b71d77d599966237483
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Member, Band from rockband.serializers import MemberSerializer MEMBERS_URL = reverse('rockband:member-l...
28.050314
71
0.602018
4,128
0.925561
0
0
0
0
0
0
942
0.211211
89ebb0adb00564e2ea1a6c39febb2b498caf378e
372
py
Python
bot.py
bufgix/slave
9c71035d06e1a714db43ac7c4503a807f0baa185
[ "MIT" ]
8
2019-06-16T17:03:28.000Z
2021-10-10T19:48:34.000Z
bot.py
bufgix/slave
9c71035d06e1a714db43ac7c4503a807f0baa185
[ "MIT" ]
4
2019-08-22T23:28:07.000Z
2021-02-02T22:15:29.000Z
bot.py
bufgix/slave
9c71035d06e1a714db43ac7c4503a807f0baa185
[ "MIT" ]
2
2021-04-02T21:00:15.000Z
2021-04-03T07:02:26.000Z
from slave.playground.bots import BotInformation from slave.lib.bots import BotBasic, BotV2 config = { 'host': 'chat.freenode.net', 'port': 6667, 'channel': "#slavebotpool666", 'boss_name': 'boss666', 'bot_prefix': "SLAVEBOT" } BotInformation.read_config_from_dict(config) BotInformation.use_other...
24.8
48
0.741935
0
0
0
0
0
0
0
0
100
0.268817
89ec0f6ca81160f0a6c25c125bae56759feda8ef
363
py
Python
Desafios-intermediarios-em-Python/Crescente e Decrescente.py
Alexsandramaran/Desafios-Intermedi-rios-Python
5013953d4d5b051bf5f9009141f1e1a61d9798f4
[ "MIT" ]
null
null
null
Desafios-intermediarios-em-Python/Crescente e Decrescente.py
Alexsandramaran/Desafios-Intermedi-rios-Python
5013953d4d5b051bf5f9009141f1e1a61d9798f4
[ "MIT" ]
null
null
null
Desafios-intermediarios-em-Python/Crescente e Decrescente.py
Alexsandramaran/Desafios-Intermedi-rios-Python
5013953d4d5b051bf5f9009141f1e1a61d9798f4
[ "MIT" ]
null
null
null
X = [] Y = [] cont = 0 n = True while n: a,b = input().split(" ") a = int(a) b = int(b) if a == b: n = False cont-=1 else: X.append(a) Y.append(b) cont+=1 i = 0 while i < cont: if X[i] > Y[i]: print('Decrescente') elif X[i] < ...
15.125
29
0.380165
0
0
0
0
0
0
0
0
27
0.07438
89ecf59e43b45e631155311a80e6f746b263deaf
1,482
py
Python
utils/generate-sha256.py
dskrvk/anteater
bce2dba767d661e9245da9dd662fec49554b374f
[ "Apache-2.0" ]
177
2018-03-28T18:50:26.000Z
2022-02-27T00:36:58.000Z
utils/generate-sha256.py
dskrvk/anteater
bce2dba767d661e9245da9dd662fec49554b374f
[ "Apache-2.0" ]
30
2016-08-20T08:58:57.000Z
2018-02-01T16:56:54.000Z
utils/generate-sha256.py
dskrvk/anteater
bce2dba767d661e9245da9dd662fec49554b374f
[ "Apache-2.0" ]
8
2019-06-28T07:45:57.000Z
2021-11-13T06:06:36.000Z
############################################################################## # Copyright (c) 2017 Luke Hinds <lhinds@redhat.com>, Red Hat # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, ...
36.146341
78
0.579622
0
0
0
0
0
0
0
0
667
0.450067