hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
73bdd86155a33f933587e1152f8cc8cdb05381c8
68,295
py
Python
app/docs/private.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
2
2020-03-04T13:43:45.000Z
2020-11-03T20:34:21.000Z
app/docs/private.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
64
2019-07-19T19:19:50.000Z
2022-03-03T21:19:28.000Z
app/docs/private.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
null
null
null
authorization_token_management = { "authorization_check": { "name": "/authorization/check", "desc": """\ <p><b>GET</b> or <b>POST</b> to this endpoint to determine if your Authorization header is still valid or if it has expired.</p>""", }, "authorization_refresh": { "name": "/author...
41.092058
184
0.623867
73bdf346a5f9e02db1efb51fa5124a7b0d9fa0f5
5,498
py
Python
kpiit/providers/piwik.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
kpiit/providers/piwik.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
kpiit/providers/piwik.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # # KPIit is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Piwik provider.""" import subprocess import cern_sso import requests import requests.exceptions from celery.utils.log i...
30.544444
78
0.58785
73be003273eecb74350a8c02395b6dfc3fe5bfbf
6,039
py
Python
python/ngraph/runtime.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
python/ngraph/runtime.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
python/ngraph/runtime.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2020 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.apa...
41.9375
96
0.652426
73be03d7b9d17a327b44e10e9de91f9bf71f13ba
7,627
py
Python
handcam/scratch/dirty-view-oni.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
1
2022-02-10T13:19:20.000Z
2022-02-10T13:19:20.000Z
handcam/scratch/dirty-view-oni.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
null
null
null
handcam/scratch/dirty-view-oni.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
null
null
null
import cv2 import numpy as np from primesense import openni2 from primesense import _openni2 as c_api import matplotlib from handcam.ltt.datasets.handcam.OrbbecCamParams import OrbbecCamParams matplotlib.use("TkAgg") import scipy.misc import matplotlib.pyplot as plt # noqa: ignore=E402 # Refernce for rgb stream: # ...
25.854237
155
0.671562
73be0e180a9f3a61f8b6abe32d367650b953ef5e
2,404
py
Python
dvae/utils/eval_metric.py
sleglaive/DVAE-speech
df3ab438d169a8f852b0450eebf0a9f3229f891f
[ "MIT" ]
41
2020-11-30T22:20:28.000Z
2021-10-19T06:33:36.000Z
dvae/utils/eval_metric.py
sleglaive/DVAE-speech
df3ab438d169a8f852b0450eebf0a9f3229f891f
[ "MIT" ]
2
2021-01-23T18:47:45.000Z
2021-07-08T11:35:34.000Z
dvae/utils/eval_metric.py
sleglaive/DVAE-speech
df3ab438d169a8f852b0450eebf0a9f3229f891f
[ "MIT" ]
9
2021-01-23T18:15:38.000Z
2021-09-30T03:37:34.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Software dvae-speech Copyright Inria Year 2020 Contact : xiaoyu.bie@inria.fr License agreement in LICENSE.txt In this files, I write some equatinos to evaluate speech qualites after re-synthesis """ import numpy as np import soundfile as sf import soundfile as sf fro...
29.317073
99
0.611481
73be1397473fec6a82e56efb99359c8c0bbbd58b
1,106
py
Python
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/vcs/git/gittyup/tests/commit.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/vcs/git/gittyup/tests/commit.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/vcs/git/gittyup/tests/commit.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
from __future__ import absolute_import from __future__ import print_function # # test/stage.py # import os from shutil import rmtree from sys import argv from optparse import OptionParser from gittyup.client import GittyupClient from gittyup.objects import * from util import touch, change parser = OptionParser() par...
24.577778
121
0.690778
73be1a6b1ae2b9a982565b281616990f0da42cfe
369
py
Python
ophiuchus/tests/test_core.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
1
2015-09-25T10:12:52.000Z
2015-09-25T10:12:52.000Z
ophiuchus/tests/test_core.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
ophiuchus/tests/test_core.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Test ... """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os import sys import logging # Third-party from astropy import log as logger import matplotlib.pyplot as pl import numpy as np # Project from ..potential import...
15.375
47
0.747967
73be23166a3d00f6703b0179427bc1e6fb622532
8,817
py
Python
tests/test_vrf_attr.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/test_vrf_attr.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/test_vrf_attr.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
import pytest from test_vrf import ( g_vars, setup_vrf, host_facts, cfg_facts, gen_vrf_neigh_file, partial_ptf_runner ) from tests.ptf_runner import ptf_runner pytestmark = [ pytest.mark.topology('any') ] # tests class TestVrfAttrSrcMac(): new_vrf1_router_mac = '00:12:34:56:78:9a' ...
36.585062
97
0.615515
73be31ef87b41cc4384ab010c54c8b771725ec85
353
py
Python
Sec10_Math/q0470.py
OctoberChang/LeetCode-Solutions
bb7958194e7b196729611cbad19ee792ba41c429
[ "MIT" ]
2
2021-01-26T00:59:47.000Z
2021-11-20T02:55:13.000Z
Sec10_Math/q0470.py
OctoberChang/LeetCode-Solutions
bb7958194e7b196729611cbad19ee792ba41c429
[ "MIT" ]
null
null
null
Sec10_Math/q0470.py
OctoberChang/LeetCode-Solutions
bb7958194e7b196729611cbad19ee792ba41c429
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # The rand7() API is already defined for you. # def rand7(): # @return a random integer in the range 1 to 7 class Solution: def rand10(self): """ :rtype: int """ while True: x = (rand7()-1)*7 + (rand7()-1) if x < 40: ...
18.578947
46
0.492918
73be6c50f61d79c38fdc27e76a4283abd02d6bab
40
py
Python
carla/recourse_methods/catalog/clue/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/clue/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/clue/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .model import Clue
10
23
0.725
73be82fd4dcb6504fca544db2f17004fd2e5a7f6
1,835
py
Python
google-cloud-sdk/lib/surface/logging/resource_descriptors/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/logging/resource_descriptors/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/logging/resource_descriptors/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 Google Inc. 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 required by applicable law or ag...
31.637931
79
0.733515
73be8626daf9dd6692582ed6e174ad5c8c0e73dc
1,510
py
Python
pysamba/rpc/dcerpc.py
vnation/wmi-1.3.14
170c5af4501087ebf35833386ca1345fafed723b
[ "MIT" ]
null
null
null
pysamba/rpc/dcerpc.py
vnation/wmi-1.3.14
170c5af4501087ebf35833386ca1345fafed723b
[ "MIT" ]
null
null
null
pysamba/rpc/dcerpc.py
vnation/wmi-1.3.14
170c5af4501087ebf35833386ca1345fafed723b
[ "MIT" ]
null
null
null
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008-2010, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License ...
29.607843
75
0.566225
73be967ba364aab6438359a78d6b5826f540b80b
1,858
py
Python
peartree/convert.py
yiyange/peartree
eb4fdab7a8484a621a0ee78d7723858b5ca2ac27
[ "MIT" ]
136
2017-11-21T22:45:12.000Z
2022-03-25T14:10:26.000Z
peartree/convert.py
yiyange/peartree
eb4fdab7a8484a621a0ee78d7723858b5ca2ac27
[ "MIT" ]
156
2017-11-30T21:15:47.000Z
2021-10-31T17:22:55.000Z
peartree/convert.py
yiyange/peartree
eb4fdab7a8484a621a0ee78d7723858b5ca2ac27
[ "MIT" ]
14
2018-01-01T19:03:35.000Z
2021-08-12T17:48:51.000Z
import collections import networkx as nx def convert_to_digraph(G_orig: nx.MultiDiGraph) -> nx.DiGraph: # Prevent upstream impacts G = G_orig.copy() dupes_dict = {} for node_id in G.nodes(): nodes_to = [] for fr, to in G.out_edges(node_id): nodes_to.append(to) to_...
35.730769
76
0.586652
73bea8245b2ac281112dd89df2134546c03b2a06
15,535
py
Python
src/blobtools/lib/view.py
blobtoolkit/blobtools-add
88717a92b81170b6244b5693eca03689464d2cea
[ "MIT" ]
2
2022-03-11T16:30:17.000Z
2022-03-23T15:18:55.000Z
src/blobtools/lib/view.py
blobtoolkit/blobtools-add
88717a92b81170b6244b5693eca03689464d2cea
[ "MIT" ]
9
2022-03-04T14:58:28.000Z
2022-03-30T20:32:05.000Z
src/blobtools/lib/view.py
blobtoolkit/blobtools-add
88717a92b81170b6244b5693eca03689464d2cea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=no-member, too-many-branches, too-many-locals, too-many-statements, broad-except """ Generate plots using BlobToolKit Viewer. Usage: blobtools view [--format STRING...] [--host STRING] [--interactive] [--out PATH] [--param STRING...] [--ports RANGE] [--prefix STRING] [-...
34.067982
109
0.538011
73bebce865dc8536e8489e6d641b29c48bde08da
4,484
py
Python
spark/cs110_autograder_register.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
spark/cs110_autograder_register.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
spark/cs110_autograder_register.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
# Databricks notebook source exported at Mon, 11 Jul 2016 16:37:17 UTC # MAGIC %md # MAGIC <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"> <img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png"/> </a> <br/> This work is license...
43.115385
409
0.727475
73bece33673c9b47a7879ee7eba9e999a090a637
2,959
py
Python
tests/gui/test_formbuilder.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
156
2020-05-01T18:43:43.000Z
2022-03-25T10:31:18.000Z
tests/gui/test_formbuilder.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
299
2020-04-20T16:37:52.000Z
2022-03-31T23:54:48.000Z
tests/gui/test_formbuilder.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
41
2020-05-14T15:25:21.000Z
2022-03-25T12:44:54.000Z
import yaml from sleap.gui.dialogs import formbuilder def test_formbuilder_dialog(qtbot): dialog = formbuilder.FormBuilderModalDialog(form_name="labeled_clip_form") dialog.set_message("foo") assert dialog.message_fields[0].text() == "foo" dialog.set_message("bar") assert dialog.message_fields[0...
21.918519
78
0.656303
73bed724157fbe211ecdbf5f5cf0fcb148c64126
10,623
py
Python
google/cloud/compute_v1/services/projects/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/projects/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/projects/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.175497
101
0.642756
73bef83387c599ada0bb4726a4d47f62e55a7d32
1,078
py
Python
messaging/load-sms.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
2
2016-02-18T01:06:04.000Z
2016-02-18T03:53:37.000Z
messaging/load-sms.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
null
null
null
messaging/load-sms.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
null
null
null
import sys, os from time import * import urllib2 import feedparser import rfc822 sys.path.append('/var/projects') os.environ['DJANGO_SETTINGS_MODULE'] ='mednet.settings' from mednet import settings from mednet.messaging.models import * feedurl = ('http://%s:%s@%s') % (settings.GEOCHAT_USER, settings.GEOCHAT_PASS, se...
26.95
101
0.703154
73bf008213ef5a0b49b559bd4418ec981218b459
2,219
py
Python
vapor_manager/dashboard/views.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/dashboard/views.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/dashboard/views.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin # Create your views here. from django.db.models.aggregates import Sum from django.utils import timezone from django.views.generic import TemplateView from vapor_manager.projects.models import Project from vapor_manager.clients.models import Client from vapor_m...
51.604651
112
0.711131
73bf88c562afb0ade72d8f796e4ae2f83d1dff1d
1,092
py
Python
rllab/rllab/envs/proxy_env.py
SurvivorT/SRTP
1ddc0c4ec31d61daf9f4292c533722e61818eb51
[ "MIT" ]
null
null
null
rllab/rllab/envs/proxy_env.py
SurvivorT/SRTP
1ddc0c4ec31d61daf9f4292c533722e61818eb51
[ "MIT" ]
null
null
null
rllab/rllab/envs/proxy_env.py
SurvivorT/SRTP
1ddc0c4ec31d61daf9f4292c533722e61818eb51
[ "MIT" ]
null
null
null
from .base import Env class ProxyEnv(Env): def __init__(self, wrapped_env): self._wrapped_env = wrapped_env @property def wrapped_env(self): return self._wrapped_env def reset(self): return self._wrapped_env.reset() @property def action_space(self): return s...
23.73913
58
0.67674
73bfa977dd79c1f5f5906a14d804b0be73bab71a
3,690
py
Python
intersight/models/server_result_handler_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/server_result_handler_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/server_result_handler_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class ServerResultHandlerTaskRef(object): """ NOTE:...
24.6
79
0.551491
73bfcb8d4b957ca74e296f93f1466d5f3ac32aa2
6,171
py
Python
blitzortung/files.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
3
2015-04-09T22:33:59.000Z
2019-02-12T12:52:16.000Z
blitzortung/files.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
7
2015-05-23T13:38:14.000Z
2019-12-13T20:43:12.000Z
blitzortung/files.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
4
2015-12-13T12:40:40.000Z
2021-07-09T10:48:16.000Z
# -*- coding: utf8 -*- """ Copyright 2014-2016 Andreas Würl 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 ap...
31.166667
104
0.632474
73bfd504d347806b05122b9f71d89df291a95b13
2,070
py
Python
bflib/tables/experience.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/tables/experience.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/tables/experience.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
class ExperienceRow(object): __slots__ = ["hit_dice", "xp_value", "special_ability_bonus"] def __init__(self, hit_dice, xp_value, special_ability_bonus): self.hit_dice = hit_dice self.xp_value = xp_value self.special_ability_bonus = special_ability_bonus class ExperienceTable(object):...
34.5
73
0.557488
73bff9ed64ad83ef89122066bac51d2fb6ecf0d2
1,535
py
Python
mps/mwt.py
Smarties89/mps
c3885329ea9ea52c1d60559658df55ba01b3b612
[ "MIT" ]
2
2015-10-08T22:06:18.000Z
2017-04-30T18:03:41.000Z
mps/mwt.py
Smarties89/mps
c3885329ea9ea52c1d60559658df55ba01b3b612
[ "MIT" ]
null
null
null
mps/mwt.py
Smarties89/mps
c3885329ea9ea52c1d60559658df55ba01b3b612
[ "MIT" ]
null
null
null
import time import logging log = logging.getLogger(__name__) class MemoizeWithTimeout(object): """Memoize With Timeout The implementation builds on Leslie Polzer code from http://code.activestate.com/recipes/325905-memoize-decorator-with-timeout The code have been modified to support log and flush...
27.909091
89
0.541368
73c00ef1997fb8703a15d814a4fb8df40d609f9e
2,803
py
Python
mongo/tests/conftest.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
mongo/tests/conftest.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
mongo/tests/conftest.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import subprocess import os import logging import time import pymongo import pytest from datadog_checks.mongo import MongoDb from . import common log = logging.getLogger('conftest') @pytest.fixture def check(...
22.97541
100
0.622904
73c029e78ec379beb99e10e4a45b52e588698a41
8,003
py
Python
nova/tests/unit/api/openstack/compute/test_scheduler_hints.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_scheduler_hints.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_scheduler_hints.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
36.711009
78
0.631638
73c02a61047d66ea23b93ce605258f5490e1a9a7
8,937
py
Python
tests/io/test_hdf_dataset.py
PedroAbreuQB/kedro
a38552a0266d4ad7b823f1640e98aefa6175fd33
[ "Apache-2.0" ]
null
null
null
tests/io/test_hdf_dataset.py
PedroAbreuQB/kedro
a38552a0266d4ad7b823f1640e98aefa6175fd33
[ "Apache-2.0" ]
null
null
null
tests/io/test_hdf_dataset.py
PedroAbreuQB/kedro
a38552a0266d4ad7b823f1640e98aefa6175fd33
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS"...
39.544248
87
0.681996
73c036c48b68af9b0b3f13d570e99e3c027c8247
4,499
py
Python
services/web/server/tests/unit/login/conftest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/web/server/tests/unit/login/conftest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/web/server/tests/unit/login/conftest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" Tests functionality that requires login users """ # pylint:disable=wildcard-import # pylint:disable=unused-import # pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name import os import sys from pathlib import Path import pytest import sqlalchemy as sa import tr...
28.656051
122
0.717937
73c05a7fad317a4113f7ce51002efea3d8cbcdf7
1,036
py
Python
characterCrowdSrc/exceptions.py
campbellwmorgan/charactercrowd
968f53ea23c347d57e7e45d46206ab4dc8fb39ca
[ "Apache-2.0" ]
1
2016-08-04T11:49:12.000Z
2016-08-04T11:49:12.000Z
characterCrowdSrc/exceptions.py
campbellwmorgan/charactercrowd
968f53ea23c347d57e7e45d46206ab4dc8fb39ca
[ "Apache-2.0" ]
null
null
null
characterCrowdSrc/exceptions.py
campbellwmorgan/charactercrowd
968f53ea23c347d57e7e45d46206ab4dc8fb39ca
[ "Apache-2.0" ]
null
null
null
import sys, traceback import pymel.core as pm class CCCoreException(Exception): pass class CCGuiException(Exception): pass def wrapper(fn): """ Wraps exception handler around common functions to write trace and popup gui dialogs """ def innerWrapper(*args, **kwargs): try: ...
25.9
49
0.513514
73c07d8e24b6b3b1fa57e57c81b4f31d5c99ae49
1,558
py
Python
atom/nucleus/python/test/test_document_api.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_document_api.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_document_api.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
22.257143
75
0.662388
73c08af3383168b40bff87e52c13c9c64a5fb3ed
1,403
py
Python
tests/test_post_init.py
cnheider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2018-11-30T09:14:28.000Z
2018-11-30T09:14:28.000Z
tests/test_post_init.py
aivclab/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
49
2019-04-02T12:06:10.000Z
2019-08-31T14:30:12.000Z
tests/test_post_init.py
cnHeider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2019-03-16T13:56:03.000Z
2019-03-16T13:56:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from warg import drop_unused_kws from warg.metas.post_init import PostInit __author__ = "Christian Heider Nielsen" __doc__ = r""" """ def test_post_init_class(): class MyTestingClass(metaclass=PostInit): """ class with the metaclass passed...
21.257576
57
0.579473
73c0fa87360537bf7f25bbc39ea14903bf7ff91b
5,596
py
Python
lines/cif2xy.py
stefsmeets/lines
6993183517fbf99e2feda288d992b742af8816d1
[ "MIT" ]
3
2019-10-06T18:45:51.000Z
2022-03-14T20:22:51.000Z
lines/cif2xy.py
stefsmeets/lines
6993183517fbf99e2feda288d992b742af8816d1
[ "MIT" ]
2
2016-05-02T15:12:25.000Z
2018-10-14T13:06:46.000Z
lines/cif2xy.py
stefsmeets/lines
6993183517fbf99e2feda288d992b742af8816d1
[ "MIT" ]
3
2016-05-02T16:51:37.000Z
2021-06-18T16:01:43.000Z
#!/usr/bin/env python # Lines - a python plotting program # Copyright (C) 2015 Stef Smeets # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or #...
30.747253
124
0.557362
73c102834152775b71d76c2763791ef131b1648e
16,756
py
Python
visual_automata/fa/dfa.py
ManuelALH/ProyectoTeoriaComputacionDFA
f989c71934f2d31f25c31f60ed1aab9e8e0a971a
[ "MIT" ]
45
2021-03-19T14:14:16.000Z
2022-03-29T11:20:53.000Z
visual_automata/fa/dfa.py
ManuelALH/ProyectoTeoriaComputacionDFA
f989c71934f2d31f25c31f60ed1aab9e8e0a971a
[ "MIT" ]
2
2021-04-16T15:11:08.000Z
2021-04-16T15:23:31.000Z
visual_automata/fa/dfa.py
ManuelALH/ProyectoTeoriaComputacionDFA
f989c71934f2d31f25c31f60ed1aab9e8e0a971a
[ "MIT" ]
2
2021-03-24T11:01:54.000Z
2021-04-24T03:10:49.000Z
"""Classes and methods for working with visual deterministic finite automata.""" from typing import Union import os import pandas as pd from pandas import DataFrame from automata.fa.dfa import DFA from colormath.color_objects import sRGBColor from graphviz import Digraph from IPython.display import display from visu...
33.850505
109
0.554428
73c11c466365722c81ec3c0ea297381e5117af6c
20,159
py
Python
SimpleGP/simplega.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
2
2015-03-18T17:26:20.000Z
2019-03-18T17:28:16.000Z
SimpleGP/simplega.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
1
2015-04-19T17:02:49.000Z
2015-07-21T18:48:34.000Z
SimpleGP/simplega.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mario Graff Guerrero # 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 wri...
31.205882
86
0.550226
73c13404cbd29a6a00af8835804620358d33b49e
4,788
py
Python
test/test_task_short_read_assembler.py
michaelbarton/nucleotides-cli
04c94773a9186dc67a887e91e3cdc9ba4a41d3fc
[ "BSD-3-Clause-LBNL" ]
null
null
null
test/test_task_short_read_assembler.py
michaelbarton/nucleotides-cli
04c94773a9186dc67a887e91e3cdc9ba4a41d3fc
[ "BSD-3-Clause-LBNL" ]
null
null
null
test/test_task_short_read_assembler.py
michaelbarton/nucleotides-cli
04c94773a9186dc67a887e91e3cdc9ba4a41d3fc
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os.path, docker, funcy import nose.tools as nose import biobox.util as docker import biobox.container as container import helper.application as app_helper import helper.file as file_helper import helper.image as image_helper import nucleotides.filesystem as fs import...
37.700787
111
0.637845
73c192667eb0fcd644028cec3f9ff001cfb9e111
125
py
Python
states/state_balance.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
states/state_balance.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
states/state_balance.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from aiogram.dispatcher.filters.state import StatesGroup, State class Balancestate(StatesGroup): balances_menu = State()
31.25
63
0.808
73c1a62a25d281b0236a02d52580d0a848e3d1ec
8,927
py
Python
tests/test_pyscript.py
rpavani1998/cmd2
77d9015986bca909aae9181e2d72d0d835aeaa09
[ "MIT" ]
null
null
null
tests/test_pyscript.py
rpavani1998/cmd2
77d9015986bca909aae9181e2d72d0d835aeaa09
[ "MIT" ]
null
null
null
tests/test_pyscript.py
rpavani1998/cmd2
77d9015986bca909aae9181e2d72d0d835aeaa09
[ "MIT" ]
null
null
null
""" Unit/functional testing for argparse completer in cmd2 Copyright 2018 Eric Lin <anselor@gmail.com> Released under MIT license, see LICENSE file """ import os import pytest from cmd2.cmd2 import Cmd, with_argparser from cmd2 import argparse_completer from .conftest import run_cmd, StdOut from cmd2.utils import name...
37.041494
185
0.646802
73c1aacf6cb41161e7ed44dd3ac9484b85dc4770
17,767
py
Python
arkane/logs/terachem.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
1
2020-03-17T13:16:51.000Z
2020-03-17T13:16:51.000Z
arkane/logs/terachem.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
null
null
null
arkane/logs/terachem.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
49.216066
119
0.522542
73c1b03c5cb3262cea1378c78d355827e450160b
2,215
py
Python
python/sdk/merlin/validation.py
Omrisnyk/merlin
cc2dbeabe52ac6e413db7f7647ed54c7edb7695f
[ "Apache-2.0" ]
97
2020-10-15T08:03:56.000Z
2022-03-31T22:30:59.000Z
python/sdk/merlin/validation.py
babywyrm/merlin
29f669ab613d6808d0186067b948496b508caa96
[ "Apache-2.0" ]
91
2020-10-26T03:15:27.000Z
2022-03-31T10:19:55.000Z
python/sdk/merlin/validation.py
babywyrm/merlin
29f669ab613d6808d0186067b948496b508caa96
[ "Apache-2.0" ]
26
2020-10-21T03:53:36.000Z
2022-03-16T06:43:15.000Z
# Copyright 2020 The Merlin Authors # # 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...
45.204082
129
0.710609
73c1d5a6aab4fb18848c8b22cfcc25cb949f0429
351
py
Python
pfstratsim/triggers/trigger_interface.py
aarondorffeld/portfolio-strategy-simulation
8c4771df24e3c45865c7df2a68e51ef018f7be1b
[ "MIT" ]
null
null
null
pfstratsim/triggers/trigger_interface.py
aarondorffeld/portfolio-strategy-simulation
8c4771df24e3c45865c7df2a68e51ef018f7be1b
[ "MIT" ]
42
2021-11-06T15:19:49.000Z
2022-01-23T16:38:21.000Z
pfstratsim/triggers/trigger_interface.py
aarondorffeld/portfolio-strategy-simulation
8c4771df24e3c45865c7df2a68e51ef018f7be1b
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class TriggerInterface(metaclass=ABCMeta): """Trigger algorithm interface to be derived. This is the strategy class on the strategy pattern for trigger algorithms. """ @abstractmethod def __init__(self): pass @abstractmethod de...
21.9375
79
0.663818
73c21a16ffaa4c557b919f11ba0c830e8e523c89
528
py
Python
microcosm_resourcesync/formatters/json_formatter.py
globality-corp/microcosm-resourcesync
a7c8f9e2f60e27ac7368e00e5c646d74006afcfb
[ "Apache-2.0" ]
null
null
null
microcosm_resourcesync/formatters/json_formatter.py
globality-corp/microcosm-resourcesync
a7c8f9e2f60e27ac7368e00e5c646d74006afcfb
[ "Apache-2.0" ]
8
2017-02-02T20:01:53.000Z
2019-11-08T11:42:34.000Z
microcosm_resourcesync/formatters/json_formatter.py
globality-corp/microcosm-resourcesync
a7c8f9e2f60e27ac7368e00e5c646d74006afcfb
[ "Apache-2.0" ]
1
2019-03-17T03:46:33.000Z
2019-03-17T03:46:33.000Z
""" JSON Formatter """ from json import dumps, loads from microcosm_resourcesync.formatters.base import Formatter class JSONFormatter(Formatter): def load(self, data): return loads(data) def dump(self, dct): # ensure deterministic output order for easier diffs return dumps(dct, sor...
18.206897
60
0.611742
73c22ca8f32fd947c6aacc4d4ad6fe7cf6954597
1,673
py
Python
datasets/CLS/constructor/base_interface.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/CLS/constructor/base_interface.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/CLS/constructor/base_interface.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from datasets.base.common.constructor import BaseDatasetConstructorGenerator, BaseImageDatasetConstructor, \ BaseDatasetImageConstructorGenerator, BaseDatasetImageConstructor class ImageClassificationImageConstructorGenerator(BaseDatasetImageConstructorGenerator): def __init__(self, image: dict, root_path: st...
52.28125
118
0.756127
73c2416b16b81c823a23c835bb234380f572dc50
9,301
py
Python
python/ray/rllib/optimizers/multi_gpu_optimizer.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/rllib/optimizers/multi_gpu_optimizer.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/rllib/optimizers/multi_gpu_optimizer.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import math import numpy as np from collections import defaultdict import tensorflow as tf import ray from ray.rllib.evaluation.tf_policy_graph import TFPolicyGraph from ray.rllib.optimizers.pol...
43.260465
79
0.586819
73c25655490a686948dde74c36e80ed36b635f0a
1,482
py
Python
floodsystem/flood.py
ryrolio/IA_Lent_Project
9023dfb199b5db7676fef61f0fca46ab69707461
[ "MIT" ]
null
null
null
floodsystem/flood.py
ryrolio/IA_Lent_Project
9023dfb199b5db7676fef61f0fca46ab69707461
[ "MIT" ]
null
null
null
floodsystem/flood.py
ryrolio/IA_Lent_Project
9023dfb199b5db7676fef61f0fca46ab69707461
[ "MIT" ]
1
2022-01-28T11:46:05.000Z
2022-01-28T11:46:05.000Z
"""This module contains a collection of functions related to flood data.""" from .stationdata import * from .station import MonitoringStation from .utils import sorted_by_key ### TASK 2B def stations_level_over_threshold(stations, tol): """Returns a list of stations that have a relative water level over the t...
33.681818
88
0.706478
73c258701545989dee208eefad8aa47b62e69c5f
3,951
py
Python
website/project/__init__.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
website/project/__init__.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
website/project/__init__.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import uuid from django.apps import apps from .model import PrivateLink from framework.mongo.utils import from_mongo from modularodm import Q from modularodm.exceptions import ValidationValueError from website.exceptions import NodeStateError from website.util.sanitize import strip_html def s...
28.221429
99
0.657302
73c2621289bb6fdfecf7d5b7e7dd8268cb427967
117,047
py
Python
tests/conftest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/conftest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/conftest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import os import random import time import tempfile import threading from concurrent.futures.thread import ThreadPoolExecutor from datetime import datetime from math import floor from shutil import copyfile from functools import partial from botocore.exceptions import ClientError import pytest from ocs...
33.008178
166
0.636573
73c2627c84bf4f1a6719a082d7e8442176e7729d
14,077
py
Python
pydmrs/matching/aligned_matching.py
vishalbelsare/pydmrs
795b35dba4986fa9084eaa81fb16206cb131a752
[ "MIT" ]
14
2015-11-27T14:22:26.000Z
2022-03-02T21:11:28.000Z
pydmrs/matching/aligned_matching.py
vishalbelsare/pydmrs
795b35dba4986fa9084eaa81fb16206cb131a752
[ "MIT" ]
25
2015-11-27T16:08:19.000Z
2019-08-28T10:13:06.000Z
pydmrs/matching/aligned_matching.py
vishalbelsare/pydmrs
795b35dba4986fa9084eaa81fb16206cb131a752
[ "MIT" ]
8
2015-11-01T17:57:44.000Z
2021-06-04T05:33:38.000Z
from pydmrs.core import SortDictDmrs, span_pred_key, abstractSortDictDmrs from pydmrs.matching.common import are_equal_links # ------------------------------------------------------------------------ def match_nodes(nodes1, nodes2, excluded=[]): """ :param nodes1: A list of Nodes from the DMRS to be matched, ...
43.717391
119
0.630958
73c26adafe2912143ef8c7d1ab6aa802fce639c2
10,853
py
Python
src/onevision/datasets/cubepp/cubepp.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/datasets/cubepp/cubepp.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/datasets/cubepp/cubepp.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Cube++ dataset and datamodule. Images were obtained with sensors of same type on Canon 550D and Canon 600D cameras. As a calibration tool, SpyderCube was used due to its ability to identify multiple illumination sources from different angles. References: https://g...
35.46732
85
0.57643
73c26c2199f3b91fcec8b7f6c2864a7ec92d2a89
2,937
py
Python
hybrid/train_model.py
aivatoglou/ABSA-GR
a0701de55200012f24a3060f63316b98515f83c9
[ "MIT" ]
null
null
null
hybrid/train_model.py
aivatoglou/ABSA-GR
a0701de55200012f24a3060f63316b98515f83c9
[ "MIT" ]
null
null
null
hybrid/train_model.py
aivatoglou/ABSA-GR
a0701de55200012f24a3060f63316b98515f83c9
[ "MIT" ]
1
2022-03-15T14:20:10.000Z
2022-03-15T14:20:10.000Z
import time import numpy as np import torch from sklearn.metrics import classification_report, f1_score from torch.cuda.amp import autocast def epoch_time(start_time, end_time): """Calculates the elapsed time between the epochs.""" elapsed_time = end_time - start_time elapsed_mins = int(elapsed_time / ...
24.07377
78
0.612189
73c27a6643a8550dd6c2294e45c26a15098174b9
4,024
py
Python
Code to apply on BS output/Python/compute_t_on_gini.py
albertocottica/community-management-simulator
e942f854f41705fcb114a79308536a2765896e60
[ "MIT" ]
null
null
null
Code to apply on BS output/Python/compute_t_on_gini.py
albertocottica/community-management-simulator
e942f854f41705fcb114a79308536a2765896e60
[ "MIT" ]
null
null
null
Code to apply on BS output/Python/compute_t_on_gini.py
albertocottica/community-management-simulator
e942f854f41705fcb114a79308536a2765896e60
[ "MIT" ]
null
null
null
import csv dirPath = '/Users/albertocottica/github/local/community-management-simulator-2/Data/' def readFile(filename): ''' (str) => list of dicts loads file filename into a list. Each item is a dict encoding one run in the model. ''' with open (filename, 'r') as csvFile: csvReader = csv.D...
45.727273
229
0.555169
73c28d2389462067d556abe8599abd412ab8bdba
1,239
py
Python
bin/fix_bed_for_bigbed_conversion.py
mr-c/eclip
833a389b773e12492d316e61db802dd353404f4f
[ "BSD-3-Clause" ]
null
null
null
bin/fix_bed_for_bigbed_conversion.py
mr-c/eclip
833a389b773e12492d316e61db802dd353404f4f
[ "BSD-3-Clause" ]
null
null
null
bin/fix_bed_for_bigbed_conversion.py
mr-c/eclip
833a389b773e12492d316e61db802dd353404f4f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ narrowPeak, cols 9 and 10 are just blank, col 5 is 1000 for things that meet the >=3 l2fc and l10pval cutoffs and 200 otherwise (its just for ucsc track coloring) """ import numpy as np import pandas as pd import argparse import os ECLIP_HEADER = [ 'chrom','start','end','pValue','signal...
21.736842
120
0.608555
73c2a7e219b469c56cadb90ec0996607d34067a3
987
py
Python
pw_bloat/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_bloat/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
1
2021-06-18T13:54:41.000Z
2021-06-18T13:54:41.000Z
pw_bloat/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Pigweed Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.034483
79
0.734549
73c2bb55e85a60a3c3b07367673abc51b523d4ba
3,284
py
Python
synth/forward_synth.py
kamikaze0923/ChemBo
596b4108deef785c7afe25f9a68975e6d3a18225
[ "MIT" ]
29
2019-08-07T07:41:25.000Z
2022-03-20T13:10:49.000Z
synth/forward_synth.py
ks-korovina/dragonfly_chemist
aa30a1cbacaee1d5c46e333f54781c90183f5cd7
[ "MIT" ]
10
2019-11-02T07:10:37.000Z
2022-03-12T00:03:04.000Z
synth/forward_synth.py
cyclone923/ChemBo
596b4108deef785c7afe25f9a68975e6d3a18225
[ "MIT" ]
4
2020-06-29T02:39:59.000Z
2022-02-17T20:52:46.000Z
""" Implements forward synthesis TODO: * Template synthesis and sanity checks Notes: * Using pretrained models: * There is code for MoleculeTransformers: see https://github.com/pschwllr/MolecularTransformer so train it? * Another option: https://github.com/connorcoley/rexgen_direct """ import sys import...
31.576923
98
0.617235
73c2bb653cb0f1165e62ccf55af8ac022cc16e3f
1,590
py
Python
phenotype/Predicate/Evaluator.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Predicate/Evaluator.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Predicate/Evaluator.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
if __name__ == '__main__': from sys import ( path as __sys_path__ ) from os.path import ( abspath as __abs_path__ ) __sys_path__.insert(0, __abs_path__('..')) from itertools import starmap as __it_starmap__ from operator import ( lt as __lt__, le as __le__, eq as __e...
33.829787
72
0.591824
73c2f8ac2835281cd363fd10ba9489fd4c988609
11,419
py
Python
coinlendingbot/Bitfinex.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
3
2018-07-13T12:42:48.000Z
2021-03-22T01:15:32.000Z
coinlendingbot/Bitfinex.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
1
2018-07-29T14:43:19.000Z
2022-01-16T13:53:11.000Z
coinlendingbot/Bitfinex.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
3
2020-05-05T12:41:37.000Z
2022-01-21T14:48:17.000Z
# coding=utf-8 import hashlib import hmac import base64 import json import requests import time import threading import logging from coinlendingbot.ExchangeApi import ExchangeApi from coinlendingbot.ExchangeApi import ApiError from coinlendingbot.Bitfinex2Poloniex import Bitfinex2Poloniex from coinlendingbot.RingBuffe...
36.482428
120
0.569402
73c314db3eac53ef6efc72961fba1d9ce7abc600
4,910
py
Python
leetcode_python/Dynamic_Programming/knight-probability-in-chessboard.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Dynamic_Programming/knight-probability-in-chessboard.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Dynamic_Programming/knight-probability-in-chessboard.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 688. Knight Probability in Chessboard Medium On an n x n chessboard, a knight starts at the cell (row, column) and attempts to make exactly k moves. The rows and columns are 0-indexed, so the top-left cell is (0, 0), and the bottom-right cell is (n - 1, n - 1). A chess knight has eight possible moves it can make...
34.822695
216
0.48778
73c319c7780749e203f5a800420f7264ab5656e6
977
py
Python
test/test_fft.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
19
2021-05-26T12:27:12.000Z
2022-03-24T02:55:41.000Z
test/test_fft.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
null
null
null
test/test_fft.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
4
2021-06-02T03:14:27.000Z
2022-02-23T13:09:48.000Z
import itertools import numpy as np import pytest import torch from util.fft import fftshift, ifftshift size = ((3,), (4,), (4, 4), (3, 4), (4, 3), (4, 5, 6)) @pytest.mark.parametrize('size', size) def test_fftshift(size): ndims = len(size) x = torch.rand(size) x_np = x.numpy() for d in range(ndims...
26.405405
64
0.581372
73c3205635123c0f9b8eb88cbf21b8df5c89f5ab
8,080
py
Python
Deeplearning_tutorial/RNN/RNNPytorch.py
JiaxinYangJX/MTH994
3037aa445fcd502a76eff399a3f2d34b11764764
[ "MIT" ]
null
null
null
Deeplearning_tutorial/RNN/RNNPytorch.py
JiaxinYangJX/MTH994
3037aa445fcd502a76eff399a3f2d34b11764764
[ "MIT" ]
null
null
null
Deeplearning_tutorial/RNN/RNNPytorch.py
JiaxinYangJX/MTH994
3037aa445fcd502a76eff399a3f2d34b11764764
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import sys import numpy as np import pandas as pd import time import random from sklearn import preprocessing import torch from torch.utils.data.dataset import Dataset from torchvision import transforms from torch.autograd import Variable import torch.nn.functional ...
43.44086
174
0.61349
73c39cc8314fd2fc18f06fa042120a483cefd90e
1,109
py
Python
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/floating_menu_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/floating_menu_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
51
2021-04-08T11:39:59.000Z
2021-05-07T12:01:27.000Z
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/floating_menu_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
""" @author: Yi-Pei, Tu @email: yptu@kth.se @date: 21-Apr-19 """ from pages import dynamic_controls_page from pages.floating_menu_page import FloatingMenuPage from pages.welcome_page import WelcomePage from utility.drivermanager import DriverManagerFirefox, DriverManagerChrome from nose.plugins.attrib import attr @at...
32.617647
75
0.772768
73c3a4eb4073c76dec4de8f45c539be0a06b605d
1,474
py
Python
tests/python/relay/test_pass_eta_expand.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
tests/python/relay/test_pass_eta_expand.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
tests/python/relay/test_pass_eta_expand.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.95122
62
0.721167
73c3bf67a1c905861695be70f7df41f5cf3e299c
18,017
py
Python
src/program/autoscheduler.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/program/autoscheduler.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/program/autoscheduler.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
import logging from datetime import timedelta from conference_scheduler import resources, scheduler from conference_scheduler.lp_problem import objective_functions from conference_scheduler.validator import is_valid_schedule, schedule_violations from psycopg2.extras import DateTimeTZRange from program.email import ad...
44.818408
98
0.589055
73c3c833cf73eb757fa92d8cb97f221dce8bf2ad
607
py
Python
notebooks/ab_test.py
avisionh/abtest
9b4e640b67b2b4d2c3501f1549b63ddd675f058e
[ "MIT" ]
1
2021-01-13T06:39:08.000Z
2021-01-13T06:39:08.000Z
notebooks/ab_test.py
avisionh/abtest
9b4e640b67b2b4d2c3501f1549b63ddd675f058e
[ "MIT" ]
null
null
null
notebooks/ab_test.py
avisionh/abtest
9b4e640b67b2b4d2c3501f1549b63ddd675f058e
[ "MIT" ]
null
null
null
import src.utils.helper_ab_test as f import pandas as pd df = pd.read_csv(filepath_or_buffer="data/interim/df_conversion_clean.csv") ( conversions_control, total_users_control, percent_convert_control, ) = f.report_conversions( data=df, group_col="group", group_filter="control", convert_c...
20.233333
75
0.718287
73c3d67bb9de83966fa618d5868eb55fc49bd270
4,322
py
Python
alipay/aop/api/domain/Org.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/Org.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/Org.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class Org(object): def __init__(self): self._org_id_number = None self._org_id_type = None self._org_legal_id_number = None self._org_legal_id_type = None self._...
32.992366
89
0.627487
73c3d94bbd2e3a44082c804f262463932130f875
831
py
Python
tartangan/kubeflow/download_dataset.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
tartangan/kubeflow/download_dataset.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
tartangan/kubeflow/download_dataset.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
import smart_open from .base_metadata_app import BaseMetadataApp class DownloadDatasetMetadata(BaseMetadataApp): def run(self): super().run() datasets = self.find_metadata_datasets_by_name(self.args.dataset_name) # TODO: need to sort to get latest? dataset = datasets[-1] w...
28.655172
78
0.672684
73c3f0a82dd837b440975e35c2200e3b50ac7aae
304
py
Python
chapter10/exercises/EG10-19 Twinkle Twinkle Tuples.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/EG10-19 Twinkle Twinkle Tuples.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/EG10-19 Twinkle Twinkle Tuples.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG10-19 Twinkle Twinkle Tuples import time import snaps tune = [(0, 0.4), (0, 0.4), (7, 0.4), (7, 0.4), (9, 0.4), (9, 0.4), (7, 0.8), (5, 0.4), (5, 0.4), (4, 0.4), (4, 0.4), (2, 0.4), (2, 0.4), (0, 0.8)] for note in tune: snaps.play_note(note[0]) time.sleep(note[1])
21.714286
47
0.457237
73c43dfe372141ff7fda7b888444aa9dd9b2792f
291
py
Python
mainapp/admin.py
AHTOH2001/OOP_4_term
c9b0f64f3507486e0670cc95d7252862b673d845
[ "MIT" ]
null
null
null
mainapp/admin.py
AHTOH2001/OOP_4_term
c9b0f64f3507486e0670cc95d7252862b673d845
[ "MIT" ]
null
null
null
mainapp/admin.py
AHTOH2001/OOP_4_term
c9b0f64f3507486e0670cc95d7252862b673d845
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import * admin.site.register(Genre) admin.site.register(Author) admin.site.register(Book) admin.site.register(ClientGroup) admin.site.register(Client) admin.site.register(Basket) admin.site.register(SliderImages)
20.785714
33
0.80756
73c44a40df8a25538935d78f07b7f11014300089
42
py
Python
carla/recourse_methods/catalog/cchvae/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/cchvae/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/cchvae/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .model import CCHVAE
10.5
25
0.738095
73c44be8f89e616d4b24b47bcef729f430f820cd
43
py
Python
btd6_memory_info/generated/System/Collections/EmptyReadOnlyDictionaryInternal/empty_read_only_dictionary_internal.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Collections/EmptyReadOnlyDictionaryInternal/empty_read_only_dictionary_internal.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Collections/EmptyReadOnlyDictionaryInternal/empty_read_only_dictionary_internal.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class EmptyReadOnlyDictionaryInternal: pass
43
43
0.930233
73c4535bd78fbc0579d70eab1d032f76d674ba84
4,864
py
Python
stock_trading_backend/train.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
1
2021-01-27T18:24:02.000Z
2021-01-27T18:24:02.000Z
stock_trading_backend/train.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
null
null
null
stock_trading_backend/train.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
null
null
null
"""Training. """ from datetime import datetime, timedelta import numpy as np import pandas as pd import progressbar from stock_trading_backend.simulation import StockMarketSimulation # pylint: disable=too-many-arguments # pylint: disable=too-many-locals def train_agent(agent, from_date=None, to_date=None, min_durati...
46.769231
100
0.637541
73c470fba30f2997b698b39705ae17c451af605b
4,287
py
Python
trax/layers/rnn.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/layers/rnn.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/layers/rnn.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax Authors. # # 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 a...
33.232558
80
0.706088
73c4c099dd4b6772132cb0468de4e1952b6c22ac
1,075
py
Python
sdks/python/test/test_DistributionGroupReleasesResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_DistributionGroupReleasesResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_DistributionGroupReleasesResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
26.875
130
0.75814
73c50eaa6d03abd836b96de66832e04c218ff64a
2,099
py
Python
thirdparty/nsiqcppstyle/nsiqunittest/nsiqcppstyle_update_unittest.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
171
2015-04-13T11:24:34.000Z
2022-03-26T00:56:38.000Z
thirdparty/nsiqcppstyle/nsiqunittest/nsiqcppstyle_update_unittest.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
620
2015-01-20T08:34:36.000Z
2022-03-30T11:05:33.000Z
thirdparty/nsiqcppstyle/nsiqunittest/nsiqcppstyle_update_unittest.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
56
2015-02-09T13:33:56.000Z
2022-03-19T04:52:51.000Z
# Copyright (c) 2009 NHN Inc. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the follow...
48.813953
111
0.741782
73c51e5eac01fc43694fb9499ad496ac5da378bc
8,613
py
Python
megdc/install_method.py
indykish/megdc.py
e9de7ce844889efef2ff30444bdf0e361956d7fa
[ "Apache-2.0" ]
1
2015-11-06T09:12:59.000Z
2015-11-06T09:12:59.000Z
megdc/install_method.py
indykish/megdc.py
e9de7ce844889efef2ff30444bdf0e361956d7fa
[ "Apache-2.0" ]
null
null
null
megdc/install_method.py
indykish/megdc.py
e9de7ce844889efef2ff30444bdf0e361956d7fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import socket import urllib2 import sys import datetime import getopt import textwrap from help_text import * if os.name != "nt": import fcntl import struct def get_interface_ip(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_nto...
33.383721
156
0.626611
73c53b435175c5a20b107a11ffdf0fe3acebbcf1
6,592
py
Python
sacla/scripts/backups/old_scripts/ancient-preOct2016/sacla_Chip_Manager3_Apr4_0947.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/old_scripts/ancient-preOct2016/sacla_Chip_Manager3_Apr4_0947.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/old_scripts/ancient-preOct2016/sacla_Chip_Manager3_Apr4_0947.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
import pv import os, re, sys import math import string from time import sleep from ca import caput, caget from sacla_Chip_StartUp3 import get_xy from sacla_Chip_StartUp3 import make_path_dict ########################################## # New Chip_Manager for SACLA # # This version last edited 04 Mar by DAS...
32
88
0.597239
73c55c9984fbc04b2959467813c814ef1fbe2a62
45,540
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.049861
190
0.660277
73c560f1ad8a08a1f88c8d0d474492215b878fcd
982
py
Python
cron/models.py
lukaszlacinski/dashboard
e84131d141f64f2ae41aa3726ff201ef9a626184
[ "Apache-2.0" ]
null
null
null
cron/models.py
lukaszlacinski/dashboard
e84131d141f64f2ae41aa3726ff201ef9a626184
[ "Apache-2.0" ]
null
null
null
cron/models.py
lukaszlacinski/dashboard
e84131d141f64f2ae41aa3726ff201ef9a626184
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy import Column, Integer, BigInteger, String, DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session DBSession = scoped_session(sessionmaker()) Base = declarative_base() class TransferModel(Base): __tab...
33.862069
130
0.706721
73c57060bcb145021eb5b710e1bcfcb21f2648f0
1,067
py
Python
Courses/Udacity/CS101/Lesson_4_Problem_Set/04-Better_Splitting/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Udacity/CS101/Lesson_4_Problem_Set/04-Better_Splitting/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Udacity/CS101/Lesson_4_Problem_Set/04-Better_Splitting/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
# 1 Gold Star # The built-in <string>.split() procedure works # okay, but fails to find all the words on a page # because it only uses whitespace to split the # string. To do better, we should also use punctuation # marks to split the page into words. # Define a procedure, split_string, that takes two # inputs: the s...
32.333333
82
0.68135
73c5853a6ea3d141b03350a4361f2462d761ad05
1,453
py
Python
stable_baselines/deepq/experiments/train_cartpole.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/deepq/experiments/train_cartpole.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/deepq/experiments/train_cartpole.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
1
2019-12-25T16:45:54.000Z
2019-12-25T16:45:54.000Z
import argparse import gym import numpy as np from stable_baselines.deepq import DeepQ, models as deepq_models def callback(lcl, _glb): """ the callback function for logging and saving :param lcl: (dict) the local variables :param _glb: (dict) the global variables :return: (bool) is solved ...
27.415094
104
0.668273
73c596404520949ea5c7aec7682dccacedb1313d
2,047
py
Python
linux_proc_extras/tests/test_linux_proc_extras.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
linux_proc_extras/tests/test_linux_proc_extras.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
linux_proc_extras/tests/test_linux_proc_extras.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2019-03-06T14:30:52.000Z
2019-03-06T14:30:52.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from mock import mock_open, patch import pytest from datadog_checks.linux_proc_extras import MoreUnixCheck CHECK_NAME = 'linux_proc_extras' HERE = os.path.abspath(os.path.dirname(__file__)) FIXTURE...
24.369048
87
0.679043
73c5b2feb2840b35e91916a6a1e748a3f7a3a9fe
17,779
py
Python
src/lazycluster/cluster/runtime_cluster.py
prototypefund/lazycluster
e6fbd69dbd73ec9bf101a502f25f7afdf0579f66
[ "Apache-2.0" ]
44
2019-08-07T12:01:07.000Z
2021-09-02T16:50:51.000Z
src/lazycluster/cluster/runtime_cluster.py
prototypefund/lazycluster
e6fbd69dbd73ec9bf101a502f25f7afdf0579f66
[ "Apache-2.0" ]
9
2020-10-26T13:08:32.000Z
2021-09-16T02:13:58.000Z
src/lazycluster/cluster/runtime_cluster.py
prototypefund/lazycluster
e6fbd69dbd73ec9bf101a502f25f7afdf0579f66
[ "Apache-2.0" ]
9
2019-09-18T07:52:09.000Z
2022-02-11T13:48:19.000Z
"""Module comprising the abstract RuntimeCluster class with its related `launcher strategy` classes. Note: The design of the launcher classes follows the strategy pattern. """ import atexit import logging from subprocess import Popen from typing import Dict, List, Optional, Union from lazycluster.exceptions import La...
42.431981
157
0.648293
73c5c5b84d97be6ef48795971abd6d3bf6eabde2
5,260
py
Python
obsplan/tests/test_graphics.py
zachariahmilby/keck-aurora-observation-planning
9f37e4f7782a3c3a2eb388bb0fac8fcb05ca1882
[ "MIT" ]
null
null
null
obsplan/tests/test_graphics.py
zachariahmilby/keck-aurora-observation-planning
9f37e4f7782a3c3a2eb388bb0fac8fcb05ca1882
[ "MIT" ]
null
null
null
obsplan/tests/test_graphics.py
zachariahmilby/keck-aurora-observation-planning
9f37e4f7782a3c3a2eb388bb0fac8fcb05ca1882
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd import pytest from numpy.testing import assert_array_equal from obsplan.graphics import color_dict, _keck_one_alt_az_axis, \ _format_axis_date_labels class TestColorDictionary: @pytest.fixture def red(self): yield '#D6272...
29.550562
73
0.642395
73c60c9b2a9d4a6d490e76e0e11784f6261481af
2,273
py
Python
2019-02-04/islands.py
asthajn6/archive
975fc4cf8acb9b0c9dc971f8b31f8905edf6031f
[ "Unlicense" ]
2
2018-10-16T03:17:53.000Z
2018-10-16T17:49:10.000Z
2019-02-04/islands.py
asthajn6/archive
975fc4cf8acb9b0c9dc971f8b31f8905edf6031f
[ "Unlicense" ]
null
null
null
2019-02-04/islands.py
asthajn6/archive
975fc4cf8acb9b0c9dc971f8b31f8905edf6031f
[ "Unlicense" ]
null
null
null
def beachfront_cell(map, i, j): '''Returns the amount of beachfront for the cell at `map[i][j]`. The map is a grid of 1s and 0s where 1 means land and 0 means water. Beachfront is defined as any point where water borders land to the top, bottom, left, or right. Only land cells have beachfront (otherwis...
28.772152
79
0.58645
73c621d2cc505fdeeb9c2b4ad7fc3f201ef7a374
20,139
py
Python
tests/druid_tests.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
1
2019-12-12T16:18:45.000Z
2019-12-12T16:18:45.000Z
tests/druid_tests.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
59
2019-10-29T10:43:54.000Z
2020-01-13T20:28:00.000Z
tests/druid_tests.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
3
2020-04-15T16:34:09.000Z
2020-06-22T17:26:45.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.076142
88
0.576394
73c62c1f11b2d75426516f5c6dac4f78a5583228
512
py
Python
setup.py
ninadpage/contact-book-python
5247a7d13df0c952da59fb3c0875ab4002a3fc14
[ "MIT" ]
null
null
null
setup.py
ninadpage/contact-book-python
5247a7d13df0c952da59fb3c0875ab4002a3fc14
[ "MIT" ]
null
null
null
setup.py
ninadpage/contact-book-python
5247a7d13df0c952da59fb3c0875ab4002a3fc14
[ "MIT" ]
null
null
null
# encoding=utf-8 # Author: ninadpage from setuptools import setup setup(name='contactbook', version='0.0.1', description='A simple Python implementation of a personal address book', url='https://github.com/ninadpage/contact-book-python', author='Ninad Page', license='MIT', packages...
23.272727
78
0.578125
73c65c0825ac3e66c86ddfbfa8c6bd324c05d2b1
118
py
Python
papermerge/core/ocr/__init__.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1
2020-09-28T06:04:38.000Z
2020-09-28T06:04:38.000Z
papermerge/core/ocr/__init__.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1
2021-02-12T02:28:00.000Z
2021-02-24T04:08:34.000Z
papermerge/core/ocr/__init__.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
2
2021-02-11T23:10:29.000Z
2021-02-13T09:06:49.000Z
from papermerge.core.ocr.page import ocr_page # noqa from papermerge.core.ocr.page import (COMPLETE, STARTED) # noqa
59
64
0.788136
73c698c17e56f20c5d5f2569656abbc455f52c35
7,063
py
Python
pymtv/ABI/DatabaseABI.py
MultiversumBlockchain/PyMTV
3e91d8376ee08c2da2f1ab3eeb6873d2165af54e
[ "MIT" ]
null
null
null
pymtv/ABI/DatabaseABI.py
MultiversumBlockchain/PyMTV
3e91d8376ee08c2da2f1ab3eeb6873d2165af54e
[ "MIT" ]
null
null
null
pymtv/ABI/DatabaseABI.py
MultiversumBlockchain/PyMTV
3e91d8376ee08c2da2f1ab3eeb6873d2165af54e
[ "MIT" ]
null
null
null
DatabaseABI = [ { "inputs": [ { "internalType": "address", "name": "factoryAddress", "type": "address" }, { "internalType": "address", "name": "creatorAddress", "type": "address" } ], "stateMutability": "n...
20.591837
53
0.374204
73c71f2d4d722adee1ba282d9dc6cc64a7dd663e
3,528
py
Python
laserAtomTrap/scripts/main.py
statisdisc/modellingAndSimulation
1458e7b7a527a4835c5a545f5899b6f1e4d80f92
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
laserAtomTrap/scripts/main.py
statisdisc/modellingAndSimulation
1458e7b7a527a4835c5a545f5899b6f1e4d80f92
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
laserAtomTrap/scripts/main.py
statisdisc/modellingAndSimulation
1458e7b7a527a4835c5a545f5899b6f1e4d80f92
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
''' Script for modelling and plotting the forces on neutral Rb-87 atoms in a magneto optical trap with a single laser and reflection gratings. If modelling the fields (computationally expensive) has been done previously, use plotFields.py instead for faster computation. Use this script if generating the data for...
38.347826
135
0.636338
73c72060a23e792a218bc8f69f12a3b033e9d322
3,024
py
Python
playx/playlist/spotify.py
Saul-Dickson/playx
48f3dc0d2cb68cfb6b0ed3c362c86ed3ed382ebe
[ "MIT" ]
221
2017-07-21T03:46:50.000Z
2021-12-20T22:45:25.000Z
playx/playlist/spotify.py
Saul-Dickson/playx
48f3dc0d2cb68cfb6b0ed3c362c86ed3ed382ebe
[ "MIT" ]
98
2018-07-14T12:56:28.000Z
2021-03-04T16:48:24.000Z
playx/playlist/spotify.py
Saul-Dickson/playx
48f3dc0d2cb68cfb6b0ed3c362c86ed3ed382ebe
[ "MIT" ]
35
2018-05-15T19:30:08.000Z
2021-07-24T14:43:33.000Z
from requests import get from bs4 import BeautifulSoup import re from playx.playlist.playlistbase import PlaylistBase, SongMetadataBase from playx.logger import Logger # Setup logger logger = Logger("Spotify") class SpotifySong(SongMetadataBase): """Spotify songs container.""" def __init__(self, title="",...
31.5
78
0.54828
73c7216499bbd887e8b741cbf4905c24a5bee460
633
py
Python
supriya/ugens/PauseSelf.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PauseSelf.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PauseSelf.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import UGen class PauseSelf(UGen): """ Pauses the enclosing synth when triggered by `trigger`. :: >>> trigger = supriya.ugens.Impulse.kr(frequency=1.0) >>> pause_self = supriya.ugens.PauseSelf.kr( ... ...
21.827586
71
0.64297
73c799d1e4e35a1b5d6898fb31a4e1c21a684c8f
2,746
py
Python
scrapy_projects/Hoaxlyspiders/spiders/correctiv_org.py
hoaxly/hoaxly-spiderbreeder
066ff4072e1e0e7f5d7c495d3048909256127a5f
[ "MIT" ]
null
null
null
scrapy_projects/Hoaxlyspiders/spiders/correctiv_org.py
hoaxly/hoaxly-spiderbreeder
066ff4072e1e0e7f5d7c495d3048909256127a5f
[ "MIT" ]
null
null
null
scrapy_projects/Hoaxlyspiders/spiders/correctiv_org.py
hoaxly/hoaxly-spiderbreeder
066ff4072e1e0e7f5d7c495d3048909256127a5f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from scrapy import Request from scrapy.linkextractors import LinkExtractor from scrapy.loader import ItemLoader from scrapy.loader.processors import Identity from scrapy.spiders import Rule from ..utils.spiders import BasePortiaSpider from ..utils.starturls import FeedGenerator,...
39.228571
112
0.458121
73c7b94565a8ed4c2db388f7b29a67a154b523d5
603
py
Python
src/rpi/gpio/examples/dc_motor_with_button_relay.py
MatthewGerber/rpi
29246e7eceb95299ee6fa337d812b8f8c0165001
[ "MIT" ]
null
null
null
src/rpi/gpio/examples/dc_motor_with_button_relay.py
MatthewGerber/rpi
29246e7eceb95299ee6fa337d812b8f8c0165001
[ "MIT" ]
null
null
null
src/rpi/gpio/examples/dc_motor_with_button_relay.py
MatthewGerber/rpi
29246e7eceb95299ee6fa337d812b8f8c0165001
[ "MIT" ]
null
null
null
import time import RPi.GPIO as gpio from rpi.gpio import CkPin, setup, cleanup from rpi.gpio.controls import TwoPoleButton def main(): """ This example drives a DC motor as shown on page 176 of the tutorial. """ setup() transistor_base_pin = CkPin.GPIO17 gpio.setup(transistor_base_pin, gpi...
20.793103
98
0.693201
73c7ce12922da9c68863e541bbdb80f15064cccc
270
py
Python
manage.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
null
null
null
manage.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
21
2018-02-21T06:53:36.000Z
2022-03-11T23:14:47.000Z
manage.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
1
2018-03-01T11:01:20.000Z
2018-03-01T11:01:20.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "subscriptionbox.settings.development") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
24.545455
91
0.785185
73c7d2606cc017abd1c6576f9d7723e7b4252c49
112
py
Python
thompson_sampling/contextual_bandits.py
wooohoooo/thompson_sampling
259f4ba5d7ec023c5c48fa51e9d6c2ba0ee19fcc
[ "Apache-2.0" ]
1
2021-07-28T16:35:58.000Z
2021-07-28T16:35:58.000Z
thompson_sampling/contextual_bandits.py
wooohoooo/thompson_sampling
259f4ba5d7ec023c5c48fa51e9d6c2ba0ee19fcc
[ "Apache-2.0" ]
2
2020-04-24T12:58:34.000Z
2022-02-26T07:03:05.000Z
thompson_sampling/contextual_bandits.py
wooohoooo/thompson_sampling
259f4ba5d7ec023c5c48fa51e9d6c2ba0ee19fcc
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: contextual_bandits.ipynb (unless otherwise specified). __all__ = []
37.333333
98
0.767857
73c843ffc11ffcc0b1d09e2a6759704689d21fbc
5,524
py
Python
app/celery/provider_tasks.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/celery/provider_tasks.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/celery/provider_tasks.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from flask import current_app from notifications_utils.recipients import InvalidEmailError from notifications_utils.statsd_decorators import statsd from sqlalchemy.orm.exc import NoResultFound from app import notify_celery from app.config import QueueNames from app.dao import notifications_dao from app.dao.notificatio...
47.213675
119
0.745474
73c8627e2e61fbbc92b1969077a79136fb3526b8
5,604
py
Python
Chapter05/chapter_05_example_01.py
pesader/hands-on-music-generation-with-magenta
0e2364e10dc76a90d5ba09f42122cc9555950798
[ "MIT" ]
123
2019-08-25T11:01:04.000Z
2022-03-10T19:23:53.000Z
Chapter05/chapter_05_example_01.py
pesader/hands-on-music-generation-with-magenta
0e2364e10dc76a90d5ba09f42122cc9555950798
[ "MIT" ]
17
2020-02-20T18:17:49.000Z
2021-05-28T06:17:51.000Z
Chapter05/chapter_05_example_01.py
pesader/hands-on-music-generation-with-magenta
0e2364e10dc76a90d5ba09f42122cc9555950798
[ "MIT" ]
45
2019-07-26T15:17:13.000Z
2022-03-22T15:58:05.000Z
""" This example shows how to use NSynth to interpolate between pairs of sounds. VERSION: Magenta 1.1.7 """ import os import tarfile from typing import List, Tuple import numpy as np import tensorflow as tf from magenta.models.nsynth import utils from magenta.models.nsynth.wavenet import fastgen from six.moves impor...
35.245283
80
0.687545
73c8774e9b18b4742353e9fffc733949d0db7ff7
3,068
py
Python
sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """ FILE: sample_begin_translation_async.py DESCRIPTION: This sample demonstrates how to translate documents in your Azure Blob Storage container. To translate a ...
40.906667
121
0.711213
73c8afac260281cbf368d7247892d66c05588dd2
2,882
py
Python
examples/torch_br_example.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
38
2019-06-10T04:19:42.000Z
2022-02-15T05:21:23.000Z
examples/torch_br_example.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
4
2019-07-30T19:00:23.000Z
2019-09-26T01:35:05.000Z
examples/torch_br_example.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
10
2019-06-10T05:45:33.000Z
2021-04-22T08:33:28.000Z
""" Test case for Torch """ from __future__ import absolute_import import torch import torchvision.models as models import numpy as np from perceptron.models.classification.pytorch import PyTorchModel from perceptron.utils.image import imagenet_example from perceptron.benchmarks.brightness import BrightnessMetric fro...
39.479452
132
0.705066
73c8b17b7874def49d81bd4d016d060fb222ae09
121,817
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/operations/_app_service_plans_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/operations/_app_service_plans_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/operations/_app_service_plans_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.8184
254
0.665441
73c8d3d774359132f95f20250f913fed36a1af64
636
py
Python
Python3/Books/Douson/chapter03/losing_battle-bad.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter03/losing_battle-bad.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter03/losing_battle-bad.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Losing Battle # Demonstrates the dreaded infinite loop print("Your lone hero is surrounded by a massive army of trolls.") print("Their decaying green bodies stretch out, melting into the horizon.") print("Your hero unsheathes his sword for the last fight of his life.\n") health = 10 trolls = 0 damage = 3 while hea...
26.5
75
0.693396
73c8d863116c864c6222063260e28596691d886a
23,324
py
Python
tests/h/views/api/groups_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/views/api/groups_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/views/api/groups_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import mock import pytest from pyramid.httpexceptions import ( HTTPNoContent, HTTPBadRequest, HTTPNotFound, HTTPConflict, ) from h.views.api import groups as views from h.services.group_list import GroupListService from h...
33.036827
88
0.712228