hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
97891c390e26c8669b2fd4771b32cf12a946bf0d
796
py
Python
hitch/engine.py
hitchdev/hitchchrome
7229f75e976ffa6f0a9bf84bef5529e4b23b3eb1
[ "MIT" ]
null
null
null
hitch/engine.py
hitchdev/hitchchrome
7229f75e976ffa6f0a9bf84bef5529e4b23b3eb1
[ "MIT" ]
null
null
null
hitch/engine.py
hitchdev/hitchchrome
7229f75e976ffa6f0a9bf84bef5529e4b23b3eb1
[ "MIT" ]
null
null
null
from hitchstory import InfoDefinition, InfoProperty from strictyaml import Seq, Enum import hitchpylibrarytoolkit import hitchchrome import os class Engine(hitchpylibrarytoolkit.Engine): info_definition = InfoDefinition( environments=InfoProperty(Seq(Enum([ "gui", "mac", "docker", "headless", ...
30.615385
70
0.657035
2c22f714e68e1c8b5db77e22852048ff04fcc75f
5,432
py
Python
src/chaospy/distributions/operators/power.py
yoon-gu/chaospy
fe541840a79882008f38764cd7ba4935a4fd4fa3
[ "BSD-3-Clause" ]
1
2018-08-22T01:51:25.000Z
2018-08-22T01:51:25.000Z
src/chaospy/distributions/operators/power.py
TribleCircle/chaospy
f22aa31e2a338a32a6d09b810c5b629c10a87236
[ "BSD-3-Clause" ]
null
null
null
src/chaospy/distributions/operators/power.py
TribleCircle/chaospy
f22aa31e2a338a32a6d09b810c5b629c10a87236
[ "BSD-3-Clause" ]
1
2019-11-24T17:16:30.000Z
2019-11-24T17:16:30.000Z
""" Power operator. """ import numpy from ..baseclass import Dist class Pow(Dist): """Power operator.""" def __init__(self, left, right): """ Constructor. Args: left (Dist, array_like) : Left hand side. right (Dist, array_like) : Right hand side. """ ...
31.398844
91
0.503498
be12e4485f1a1d44bb2a8db9363c362a80b73a23
18,472
py
Python
tiled/_version.py
dylanmcreynolds/tiled
a77cf233ff4827ac03faa66448b29a84e3de02bf
[ "BSD-3-Clause" ]
15
2021-03-31T18:46:05.000Z
2022-03-31T16:25:13.000Z
tiled/_version.py
dylanmcreynolds/tiled
a77cf233ff4827ac03faa66448b29a84e3de02bf
[ "BSD-3-Clause" ]
125
2021-03-15T13:11:42.000Z
2022-03-31T16:03:30.000Z
tiled/_version.py
dylanmcreynolds/tiled
a77cf233ff4827ac03faa66448b29a84e3de02bf
[ "BSD-3-Clause" ]
17
2021-04-29T20:21:20.000Z
2022-03-25T12:59:15.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains th...
33.163375
88
0.583911
f34fe651e95a3b3cc1272a20c60b9525bb317698
615
py
Python
tests/test_views_disable_default.py
peterdemin/kinto
ffdc764cdd0e69b277a7bdcd9151f9809eaa78d4
[ "Apache-2.0" ]
null
null
null
tests/test_views_disable_default.py
peterdemin/kinto
ffdc764cdd0e69b277a7bdcd9151f9809eaa78d4
[ "Apache-2.0" ]
null
null
null
tests/test_views_disable_default.py
peterdemin/kinto
ffdc764cdd0e69b277a7bdcd9151f9809eaa78d4
[ "Apache-2.0" ]
null
null
null
from kinto.core.testing import unittest from .support import BaseWebTest class DisableDefaultBucketViewTest(BaseWebTest, unittest.TestCase): test_url = '/buckets/default' def test_returns_403_if_excluded_in_configuration(self): extra = {'includes': ''} app = self.make_app(settings=extra) ...
32.368421
67
0.725203
2b4ac5634666585c9d6b7776ffb1d16518f54ad9
5,088
py
Python
Chapter05/virtualenvs/myproject_env/project/django-myproject/bulletin_board/forms.py
PacktPublishing/Django-2-Web-Development-Cookbook-Third-Edition
f129613e2b1d00f5c76649025ae4d568f6286f2c
[ "MIT" ]
75
2018-12-03T02:35:29.000Z
2021-11-08T13:13:34.000Z
Chapter07/virtualenvs/myproject_env/project/django-myproject/bulletin_board/forms.py
PacktPublishing/Django-2-Web-Development-Cookbook-Third-Edition
f129613e2b1d00f5c76649025ae4d568f6286f2c
[ "MIT" ]
3
2019-08-11T13:35:01.000Z
2020-09-29T06:52:36.000Z
Chapter05/myproject_docker/apps/bulletin_board/forms.py
PacktPublishing/Django-2-Web-Development-Cookbook-Third-Edition
f129613e2b1d00f5c76649025ae4d568f6286f2c
[ "MIT" ]
45
2018-11-03T14:03:22.000Z
2021-08-25T07:39:33.000Z
from django import forms from django.conf import settings from django.forms.renderers import TemplatesSetting from django.utils.translation import ugettext_lazy as _ from crispy_forms import bootstrap, helper, layout from .models import Bulletin # NOTE FROM THE AUTHOR # Because the book covers approaches to custom ...
31.602484
66
0.581368
92c280e2289ac4ea2b35c432ff20996aba209e4a
19,691
py
Python
grr/server/grr_response_server/client_index.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/client_index.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/client_index.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
1
2020-07-09T01:08:48.000Z
2020-07-09T01:08:48.000Z
#!/usr/bin/env python """A keyword index of client machines. An index of client machines, associating likely identifiers to client IDs. """ from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from future.builtins import map from future.builtins import range ...
32.280328
80
0.683256
44ad5c4eecf812f202789a7790b8fbaa9c1792e6
1,720
py
Python
datatableview/tests/test_utils.py
b3ni/django-datatable-view
e2ad8e6b43e57b07cbfa1189a1fee460e992f038
[ "Apache-2.0" ]
9
2018-01-25T07:48:10.000Z
2019-07-05T03:04:31.000Z
datatableview/tests/test_utils.py
b3ni/django-datatable-view
e2ad8e6b43e57b07cbfa1189a1fee460e992f038
[ "Apache-2.0" ]
null
null
null
datatableview/tests/test_utils.py
b3ni/django-datatable-view
e2ad8e6b43e57b07cbfa1189a1fee460e992f038
[ "Apache-2.0" ]
8
2017-11-29T01:33:11.000Z
2022-03-20T04:06:33.000Z
# -*- encoding: utf-8 -*- from .testcase import DatatableViewTestCase from .test_app import models from ..columns import Column from ..compat import get_field from ..views.legacy import DEFAULT_OPTIONS from .. import utils class UtilsTests(DatatableViewTestCase): def test_get_first_orm_bit(self): """ ""...
47.777778
97
0.729651
16bef25754474e95bbcb3195752c6fb67e79248e
1,255
py
Python
alipay/aop/api/response/AlipayFundTransUniTransferResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayFundTransUniTransferResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayFundTransUniTransferResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayFundTransUniTransferResponse(AlipayResponse): def __init__(self): super(AlipayFundTransUniTransferResponse, self).__init__() self._order_id = None...
27.282609
107
0.665339
93dadb4be020df3560677f8b1036cac822212b5f
6,829
py
Python
python/open3d/__init__.py
bartholmberg/Open3D
c3f9de224e13838a72da0e5565a7ba51038b0f11
[ "MIT" ]
8
2021-03-17T14:24:12.000Z
2022-03-30T15:35:27.000Z
python/open3d/__init__.py
bartholmberg/Open3D
c3f9de224e13838a72da0e5565a7ba51038b0f11
[ "MIT" ]
1
2021-11-04T09:22:25.000Z
2022-02-14T01:32:31.000Z
python/open3d/__init__.py
bartholmberg/Open3D
c3f9de224e13838a72da0e5565a7ba51038b0f11
[ "MIT" ]
2
2021-08-24T18:06:55.000Z
2021-12-17T10:48:34.000Z
# ---------------------------------------------------------------------------- # - Open3D: www.open3d.org - # ---------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2018 www.open3d.org # # Permission is her...
44.058065
117
0.658808
82657ec780dd4647f4f5d0c4dcc721886261fb46
6,391
py
Python
train_colab_localdata.py
JackCChen2017/CS5242_project
0c9ed57798880416db17ccc936a0dbd0fc66951d
[ "MIT" ]
null
null
null
train_colab_localdata.py
JackCChen2017/CS5242_project
0c9ed57798880416db17ccc936a0dbd0fc66951d
[ "MIT" ]
null
null
null
train_colab_localdata.py
JackCChen2017/CS5242_project
0c9ed57798880416db17ccc936a0dbd0fc66951d
[ "MIT" ]
null
null
null
import argparse import os from time import sleep import infolog import tensorflow as tf from hparams import hparams from infolog import log from tacotron.synthesize import tacotron_synthesize from tacotron.train import tacotron_train from wavenet_vocoder.train import wavenet_train from tensorflow.python import debug a...
45.326241
207
0.702238
709766559103d7b35f7912059a0d2c25022c90f7
425
py
Python
tests/urls.py
yedpodtrzitko/wagtail-bakery
0937dde07d1791a3780079a1b6959eb0b9c43d55
[ "MIT" ]
1
2019-10-06T17:19:07.000Z
2019-10-06T17:19:07.000Z
tests/urls.py
yedpodtrzitko/wagtail-bakery
0937dde07d1791a3780079a1b6959eb0b9c43d55
[ "MIT" ]
null
null
null
tests/urls.py
yedpodtrzitko/wagtail-bakery
0937dde07d1791a3780079a1b6959eb0b9c43d55
[ "MIT" ]
null
null
null
from django.conf.urls import include, url import wagtail if wagtail.VERSION >= (2, 0): from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import urls as wagtail_urls else: from wagtail.wagtailadmin import urls as wagtailadmin_urls from wagtail.wagtailcore import urls as wagtail_urls ...
28.333333
62
0.748235
19cc37e6058f442551aa7be8739be2eab65c3fd8
23,891
py
Python
tests/core/test_domain.py
RielKIM/rasa
a3e329efd16032c900900181dcf57b01884e1a97
[ "Apache-2.0" ]
1
2020-02-18T03:48:44.000Z
2020-02-18T03:48:44.000Z
tests/core/test_domain.py
Doometnick/rasa
969dc83a83f989a7774b2ff3ba186272b18bc73a
[ "Apache-2.0" ]
4
2020-09-25T18:31:22.000Z
2022-02-09T23:27:20.000Z
tests/core/test_domain.py
Doometnick/rasa
969dc83a83f989a7774b2ff3ba186272b18bc73a
[ "Apache-2.0" ]
1
2020-03-12T16:09:06.000Z
2020-03-12T16:09:06.000Z
import json from pathlib import Path import pytest from _pytest.tmpdir import TempdirFactory from rasa.core.constants import ( DEFAULT_KNOWLEDGE_BASE_ACTION, SLOT_LISTED_ITEMS, SLOT_LAST_OBJECT, SLOT_LAST_OBJECT_TYPE, ) from rasa.core import training, utils from rasa.core.domain import Domain, Invalid...
32.285135
143
0.625842
aa4dbfbe7b08a388a5ee8702370664a1cde95299
3,738
py
Python
invenio_marc21/serializers/marcxml.py
invenio-toaster/invenio-marc21
98f7259d5dc14763fb44cd90908a0c9b802ec605
[ "MIT" ]
1
2016-06-10T04:50:20.000Z
2016-06-10T04:50:20.000Z
invenio_marc21/serializers/marcxml.py
invenio-toaster/invenio-marc21
98f7259d5dc14763fb44cd90908a0c9b802ec605
[ "MIT" ]
41
2016-02-11T15:21:32.000Z
2018-03-15T16:06:30.000Z
invenio_marc21/serializers/marcxml.py
invenio-toaster/invenio-marc21
98f7259d5dc14763fb44cd90908a0c9b802ec605
[ "MIT" ]
25
2016-02-12T09:51:21.000Z
2021-12-07T08:59:05.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """MARC21 based serializer.""" from __future__ import absolute_import, print_functio...
37.38
79
0.631354
101aa8c3b61161da53043d6c13df43da46fb305f
12,938
py
Python
RoughWorks/socket-programming/UserInterface.py
Rahul-singh98/CodeSure
0a756a3224388ed71d52d7bcda439d0bf4b7e281
[ "MIT" ]
1
2021-05-18T07:52:22.000Z
2021-05-18T07:52:22.000Z
RoughWorks/socket-programming/UserInterface.py
Rahul-singh98/CodeSure
0a756a3224388ed71d52d7bcda439d0bf4b7e281
[ "MIT" ]
null
null
null
RoughWorks/socket-programming/UserInterface.py
Rahul-singh98/CodeSure
0a756a3224388ed71d52d7bcda439d0bf4b7e281
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.ttk import * import datetime import pandas as pd import numpy as np import time import warnings warnings.simplefilter('ignore') bg_color = '#ff952b' # csv_filepath = filedialog.askopenfilename( # # initialdir="C:/Users/MainFrame/Desktop/", # title="Open Text file", # f...
34.77957
137
0.606276
6eb7f302b5fa679f3acb69ef4fd05d4145ea0cb2
34,458
py
Python
sdk/python/lib/pulumi/runtime/rpc.py
followben/pulumi
db6c4b88cbee47332bc305f594b1c15eb6803bd7
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/runtime/rpc.py
followben/pulumi
db6c4b88cbee47332bc305f594b1c15eb6803bd7
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/runtime/rpc.py
followben/pulumi
db6c4b88cbee47332bc305f594b1c15eb6803bd7
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018, Pulumi 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 required by applicable law or agreed t...
44.925684
160
0.669133
fa0ae8e8b0d1f9fa583b7b2829a31e9a23f7040c
1,108
py
Python
tests/test_plugin_jars.py
fiji/fiji-historical
b02121eec5124b0667bc94bc9db42f3d484de99a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
tests/test_plugin_jars.py
fiji/fiji-historical
b02121eec5124b0667bc94bc9db42f3d484de99a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
tests/test_plugin_jars.py
fiji/fiji-historical
b02121eec5124b0667bc94bc9db42f3d484de99a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Test whether any menu items contain pointers to non-existent classes # which likely indicate a missconfiguration of a plugins.config file in a .jar plugin. import ij from ij import ImageJ, Menus import java from java.lang import Class, ClassNotFoundException, System, NoClassDefFoundError # Launch ImageJ ImageJ() o...
25.767442
86
0.66065
a8c57054de7dc5f68945b330fd06b821211dbb1a
11,795
py
Python
mutmut/cache.py
roxanebellot/mutmut
dba633d9f79df203d2ece81e70b5455442c7ad93
[ "BSD-3-Clause" ]
null
null
null
mutmut/cache.py
roxanebellot/mutmut
dba633d9f79df203d2ece81e70b5455442c7ad93
[ "BSD-3-Clause" ]
null
null
null
mutmut/cache.py
roxanebellot/mutmut
dba633d9f79df203d2ece81e70b5455442c7ad93
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import os from difflib import SequenceMatcher, unified_diff from functools import wraps from io import open from itertools import groupby, zip_longest from typing import Tuple from junit_xml import TestSuite, TestCase from pony.orm import Database, Required, db_session, Set, Opt...
34.387755
129
0.639847
34858831e6aed313d1f422f175a69096531be635
14,418
py
Python
hyperion/densities/ulrich_envelope.py
christopherlovell/hyperion
f65c253abf0bdf174a9302666bc2fec57f7ae7da
[ "BSD-2-Clause" ]
37
2015-01-29T20:58:04.000Z
2022-03-10T23:36:39.000Z
hyperion/densities/ulrich_envelope.py
christopherlovell/hyperion
f65c253abf0bdf174a9302666bc2fec57f7ae7da
[ "BSD-2-Clause" ]
83
2015-01-07T11:04:08.000Z
2022-02-16T16:26:33.000Z
hyperion/densities/ulrich_envelope.py
christopherlovell/hyperion
f65c253abf0bdf174a9302666bc2fec57f7ae7da
[ "BSD-2-Clause" ]
17
2015-04-21T13:17:41.000Z
2021-12-06T02:42:20.000Z
from __future__ import print_function, division import numpy as np from astropy import log as logger import six from ..dust import SphericalDust from ..grid import SphericalPolarGrid, CylindricalPolarGrid from ..util.constants import G, pi from ..util.convenience import OptThinRadius from ..util.integrate import inte...
30.939914
416
0.51831
f6d76be219c06300d1b8eab0a305a0510c5db0e3
16,311
py
Python
skactiveml/pool/multiannotator/tests/test_interval_estimation_threshold.py
LukasLuehrs/scikit-activeml
04d7107272ef0438070808475599131d8726f547
[ "BSD-3-Clause" ]
null
null
null
skactiveml/pool/multiannotator/tests/test_interval_estimation_threshold.py
LukasLuehrs/scikit-activeml
04d7107272ef0438070808475599131d8726f547
[ "BSD-3-Clause" ]
null
null
null
skactiveml/pool/multiannotator/tests/test_interval_estimation_threshold.py
LukasLuehrs/scikit-activeml
04d7107272ef0438070808475599131d8726f547
[ "BSD-3-Clause" ]
null
null
null
import unittest import numpy as np from sklearn.datasets import make_blobs from sklearn.preprocessing import StandardScaler from skactiveml.classifier.multiannotator import AnnotatorLogisticRegression from skactiveml.pool.multiannotator import ( IntervalEstimationThreshold, IntervalEstimationAnnotModel, ) c...
31.671845
79
0.538471
fc44a705908d2ec060bb09e3fbd90e4e2dcdbf92
2,906
py
Python
main.py
femtoAmpere/cloud-downloader
6fc59a897166566001a26b730691afab21089073
[ "MIT" ]
null
null
null
main.py
femtoAmpere/cloud-downloader
6fc59a897166566001a26b730691afab21089073
[ "MIT" ]
1
2021-02-08T20:40:01.000Z
2021-02-08T20:40:01.000Z
main.py
femtoAmpere/cloud-downloader
6fc59a897166566001a26b730691afab21089073
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3.6 """ cloud downloader by femtoAmpere 2019-2020 """ import sys import os import logging import requests from bs4 import BeautifulSoup from downloader import download, post_process if not os.path.isfile('downloader.log'): open('downloader.log', 'a+').close() logging.basicConfig(level=lo...
42.115942
125
0.633173
2a1967142d6745ae38f1f60577def28e9a7452d4
27,957
py
Python
tests/test_jmx2yaml.py
rsanam/taurus
12f4f4de0949fd1d1c5bfe2e8be8a4fb0b1678cb
[ "Apache-2.0" ]
1
2021-09-15T05:27:22.000Z
2021-09-15T05:27:22.000Z
tests/test_jmx2yaml.py
rsanam/taurus
12f4f4de0949fd1d1c5bfe2e8be8a4fb0b1678cb
[ "Apache-2.0" ]
null
null
null
tests/test_jmx2yaml.py
rsanam/taurus
12f4f4de0949fd1d1c5bfe2e8be8a4fb0b1678cb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import os import sys import yaml from bzt.engine import EXEC from bzt.jmx2yaml import JMX2YAML from bzt.utils import get_full_path, FileReader, temp_file from tests import BZTestCase, RESOURCES_DIR class FakeOptions(object): def __init__(self, verbose=True, file_name=None, dump_jmx=None, quiet=Fa...
46.057661
117
0.625139
ba54e71b20338f33f9ccad2216371ae02932988c
702
py
Python
cride/teachers/models/teachers.py
alexhernandez-git/cride-frontend
3c7e7b2ab374efb33b798d959e473a943b6df03c
[ "MIT" ]
null
null
null
cride/teachers/models/teachers.py
alexhernandez-git/cride-frontend
3c7e7b2ab374efb33b798d959e473a943b6df03c
[ "MIT" ]
11
2020-02-25T07:34:21.000Z
2022-01-13T02:15:57.000Z
cride/teachers/models/teachers.py
alexhernandez-git/cride-frontend
3c7e7b2ab374efb33b798d959e473a943b6df03c
[ "MIT" ]
null
null
null
"""Teaches Model""" # Django from django.db import models # Utilities from cride.utils.models import CLineModel class Teacher(CLineModel): """Teacher model.""" user = models.OneToOneField('users.User', on_delete=models.CASCADE) rating = models.FloatField( default=0.0, help_text="Teache...
23.4
107
0.680912
7f2f7100d1f2cc1bab3f42526d1908c0fe3c1e82
29,556
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/aio/operations/_express_route_gateways_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/aio/operations/_express_route_gateways_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/aio/operations/_express_route_gateways_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
51.761821
209
0.689302
c3557224c0454ca6cfb628a7ce7f6feb22b84fd0
934
py
Python
wapyce/validation/migrations/0004_auto_20181016_0355.py
wapyce/wapyce
abd8c85f40387aefa2a2e37ca44296ef086016a6
[ "MIT" ]
null
null
null
wapyce/validation/migrations/0004_auto_20181016_0355.py
wapyce/wapyce
abd8c85f40387aefa2a2e37ca44296ef086016a6
[ "MIT" ]
null
null
null
wapyce/validation/migrations/0004_auto_20181016_0355.py
wapyce/wapyce
abd8c85f40387aefa2a2e37ca44296ef086016a6
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-16 03:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('validation', '0003_validation'), ] operations = [ migrations.CreateModel( name='Page', ...
31.133333
155
0.586724
9d44b304fbfbf93c662ca1ee2e35d54321a48eca
20,185
py
Python
tcfl/target_ext_shell.py
zmdismai/tcf
3903e0a2f444c3aa14647a5147a0df76a49e4195
[ "Apache-2.0" ]
null
null
null
tcfl/target_ext_shell.py
zmdismai/tcf
3903e0a2f444c3aa14647a5147a0df76a49e4195
[ "Apache-2.0" ]
null
null
null
tcfl/target_ext_shell.py
zmdismai/tcf
3903e0a2f444c3aa14647a5147a0df76a49e4195
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python2 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # # pylint: disable = missing-docstring """ Run commands a shell available on a target's serial console ----------------------------------------------------------- Also allows basic file transmission over serial line. ...
39.423828
84
0.595739
e5ddcb43e36b9b444f293fca9110d815ad9f0fa3
71,762
py
Python
scripts/vulkan_tools_helper_file_generator.py
ShabbyX/Vulkan-Tools
7fec5fb7f5399d3ff3ab51c0dab4a39e50c43b98
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
scripts/vulkan_tools_helper_file_generator.py
ShabbyX/Vulkan-Tools
7fec5fb7f5399d3ff3ab51c0dab4a39e50c43b98
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
scripts/vulkan_tools_helper_file_generator.py
ShabbyX/Vulkan-Tools
7fec5fb7f5399d3ff3ab51c0dab4a39e50c43b98
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 -i # # Copyright (c) 2015-2017 The Khronos Group Inc. # Copyright (c) 2015-2017 Valve Corporation # Copyright (c) 2015-2017 LunarG, Inc. # Copyright (c) 2015-2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
58.201135
195
0.556827
dbb63b2e4afd397ae5a7ca2666edcdc40e19c6c3
5,689
py
Python
openstack_dashboard/dashboards/admin/defaults/tests.py
citrix-openstack-build/horizon
9c08d883ea2b729bad4c16c3aefa5bdc23e03174
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/defaults/tests.py
citrix-openstack-build/horizon
9c08d883ea2b729bad4c16c3aefa5bdc23e03174
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/defaults/tests.py
citrix-openstack-build/horizon
9c08d883ea2b729bad4c16c3aefa5bdc23e03174
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Kylin, Inc. # # 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 # # ...
41.525547
78
0.608367
58fef716c059c25d5e10e3f205f25792130c1564
580
py
Python
OG Static/static.py
rAlphabet/CreativePie
3577c9f6fbc79b9c07071d5601b7d20d791f3a21
[ "MIT" ]
4
2021-02-28T12:09:40.000Z
2022-01-31T16:21:39.000Z
OG Static/static.py
rAlphabet/CreativePie
3577c9f6fbc79b9c07071d5601b7d20d791f3a21
[ "MIT" ]
null
null
null
OG Static/static.py
rAlphabet/CreativePie
3577c9f6fbc79b9c07071d5601b7d20d791f3a21
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt def nums(iteration): num = {"x": [], "y": []} for i in range(iteration): num["x"] += [random.uniform(0, 1)] num["y"] += [random.uniform(0, 1)] return num def draw(num): fig = plt.figure(frameon=False) ax = plt.Axes(fig, [0., 0., 1., 1.]...
27.619048
66
0.52931
fc75b16fd67b4dd0f81e59b6f95b9f97b10c5d61
769
py
Python
base/LinkedListStack.py
MnkyC/Algorithms-Python
01d2c9099f185f549c07e6e3162b9b2d55ba6fd6
[ "MIT" ]
1
2020-01-03T06:30:41.000Z
2020-01-03T06:30:41.000Z
base/LinkedListStack.py
MnkyC/Algorithms-Python
01d2c9099f185f549c07e6e3162b9b2d55ba6fd6
[ "MIT" ]
null
null
null
base/LinkedListStack.py
MnkyC/Algorithms-Python
01d2c9099f185f549c07e6e3162b9b2d55ba6fd6
[ "MIT" ]
null
null
null
# 数据结构基本都是数组和链表演变而来 # 链式栈,单链表实现,尾部操作需要遍历,头部操作只需要头指针移动即可 from base import SingleNode from SingleNode import Node class LinkedListStack(object): def __init__(self): self.__head = None self.__count = 0 # 头插法 def push(self, data): newNode = Node(data, nextp=self.__head) sel...
18.309524
47
0.591678
a38dd493eab8c0dfc98dd4c84bdc5ba78013a510
691
py
Python
src/main/python/runtime/modules/base.py
danilkolikov/fnn
0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1
[ "MIT" ]
1
2019-01-06T04:42:28.000Z
2019-01-06T04:42:28.000Z
src/main/python/runtime/modules/base.py
danilkolikov/fnn
0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1
[ "MIT" ]
null
null
null
src/main/python/runtime/modules/base.py
danilkolikov/fnn
0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1
[ "MIT" ]
null
null
null
from abc import abstractmethod from torch.nn import Module from ..data import DataBag from ..trees import make_tuple class FunctionalModule(Module): """ Base class for all functional modules. Supports forward propagation and calls with raw data array. Also module can be instantiated - type variables su...
23.827586
102
0.643994
882dcc9692e3053339ff006dfe772798da276248
58
py
Python
src/test/resources/invalid_python.py
AlexTereshenkov/pybutler
3712e116d9b33fb8ad52b8f00fd41136f1266090
[ "MIT" ]
null
null
null
src/test/resources/invalid_python.py
AlexTereshenkov/pybutler
3712e116d9b33fb8ad52b8f00fd41136f1266090
[ "MIT" ]
null
null
null
src/test/resources/invalid_python.py
AlexTereshenkov/pybutler
3712e116d9b33fb8ad52b8f00fd41136f1266090
[ "MIT" ]
null
null
null
def bar(): print("hello") def foo():: print("hello")
9.666667
16
0.551724
09cc13ab868dfc00540c543a05cfdd84c37ebf48
364
py
Python
tests/test_invalid_endpoint.py
beastmatser/aiopokeapi
6ffe10bf8db0b6349cabf5b5b01b738214f805d0
[ "MIT" ]
3
2021-10-03T13:49:47.000Z
2022-03-31T03:12:30.000Z
tests/test_invalid_endpoint.py
beastmatser/aiopokeapi
6ffe10bf8db0b6349cabf5b5b01b738214f805d0
[ "MIT" ]
3
2022-01-18T07:31:08.000Z
2022-01-18T07:32:09.000Z
tests/test_invalid_endpoint.py
beastmatser/aiopokeapi
6ffe10bf8db0b6349cabf5b5b01b738214f805d0
[ "MIT" ]
1
2022-01-19T12:35:09.000Z
2022-01-19T12:35:09.000Z
import aiopoke import pytest @pytest.mark.asyncio async def test_invalid_endpoint(client: aiopoke.AiopokeClient): with pytest.raises(ValueError): await client.get_egg_group(1234) with pytest.raises(ValueError): await client.get_egg_group("invalid") assert client.http.inexistent_endpoints...
26
86
0.744505
7c9bf98a1e36acd6513075bf181d8e0433d9dac2
15,523
py
Python
configs/example/quadcore_dvfs.py
lokeshjindal15/pd-gem5_transformer
f8eb40dc65a5d7e15c8aa0756b1b48dd104bd54f
[ "BSD-3-Clause" ]
null
null
null
configs/example/quadcore_dvfs.py
lokeshjindal15/pd-gem5_transformer
f8eb40dc65a5d7e15c8aa0756b1b48dd104bd54f
[ "BSD-3-Clause" ]
null
null
null
configs/example/quadcore_dvfs.py
lokeshjindal15/pd-gem5_transformer
f8eb40dc65a5d7e15c8aa0756b1b48dd104bd54f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2010-2013 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
42.528767
314
0.656123
ac11007b6036bbe062754bbdf94318f5a8ef692d
250
py
Python
Curso-Em-Video-Python/Mundo-3/EXs/EX101.py
victor-da-costa/Aprendendo-Python
8fd19b93a13953cda30de02de7dac22b4e62fb5b
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/Mundo-3/EXs/EX101.py
victor-da-costa/Aprendendo-Python
8fd19b93a13953cda30de02de7dac22b4e62fb5b
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/Mundo-3/EXs/EX101.py
victor-da-costa/Aprendendo-Python
8fd19b93a13953cda30de02de7dac22b4e62fb5b
[ "MIT" ]
null
null
null
def voto(ano): from datetime import date idade = date.today().year - ano if idade < 16: return 'NEGADO' elif 16 <= idade < 18 or idade > 65: return 'OPCIONAL' else: return 'OBRIGATÓRIO' print(voto(1850))
19.230769
40
0.576
091cf632583c5d755e87cb398d80ba3f886eb368
497
py
Python
alipay/aop/api/response/AlipayOpenMiniInnerappPluginuseconfigUpgradeResponse.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/response/AlipayOpenMiniInnerappPluginuseconfigUpgradeResponse.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/response/AlipayOpenMiniInnerappPluginuseconfigUpgradeResponse.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.response.AlipayResponse import AlipayResponse class AlipayOpenMiniInnerappPluginuseconfigUpgradeResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniInnerappPluginuseconfigUpgradeResponse, self).__init__() d...
31.0625
125
0.804829
adabe72d978863f80bb407db36cd04c5d48f0871
744
py
Python
apiarist/__init__.py
msharp/apiarist
03e2e78068b87b8176540f5d9deb262b3689807f
[ "Apache-2.0" ]
1
2018-05-30T20:07:04.000Z
2018-05-30T20:07:04.000Z
apiarist/__init__.py
msharp/apiarist
03e2e78068b87b8176540f5d9deb262b3689807f
[ "Apache-2.0" ]
8
2015-06-29T01:32:51.000Z
2021-03-25T21:41:17.000Z
apiarist/__init__.py
msharp/apiarist
03e2e78068b87b8176540f5d9deb262b3689807f
[ "Apache-2.0" ]
3
2015-01-21T14:47:10.000Z
2016-09-28T03:04:24.000Z
# Copyright 2014 Max Sharples # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.76
74
0.754032
c5c33bc5dde38679e6cbd21ec947cc9ae0a4f97b
900
py
Python
Python3/637.average-of-levels-in-binary-tree.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/637.average-of-levels-in-binary-tree.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/637.average-of-levels-in-binary-tree.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=637 lang=python3 # # [637] Average of Levels in Binary Tree # # @lc code=start # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def averageOfLevels(self, root): if...
24.324324
54
0.497778
1c1048a049d966b8d9479c2dd6b7735c04dbb031
20,304
py
Python
peripheral/nvic/config/nvic.py
Unitek-KL/csp
2ac7ba59465f23959e51d2f16a5712b57b79ef5f
[ "0BSD" ]
null
null
null
peripheral/nvic/config/nvic.py
Unitek-KL/csp
2ac7ba59465f23959e51d2f16a5712b57b79ef5f
[ "0BSD" ]
null
null
null
peripheral/nvic/config/nvic.py
Unitek-KL/csp
2ac7ba59465f23959e51d2f16a5712b57b79ef5f
[ "0BSD" ]
1
2019-09-02T01:57:39.000Z
2019-09-02T01:57:39.000Z
# coding: utf-8 """***************************************************************************** * Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your * re...
52.875
193
0.673069
965c6ab93e7815dfbd1fa6875bc6afc151db585a
1,465
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/redis/apis/DescribeBackupPolicyRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/redis/apis/DescribeBackupPolicyRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/redis/apis/DescribeBackupPolicyRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
33.295455
117
0.731058
f4c9c15313a6c616cce45481307e51caa568ad9f
207
py
Python
cursoemvideo/python/exercicio/006(dobroTriploRaiz).py
mateusjustino/cursos
10927bf62f89b5847bb0acd998e9e9191472d0f4
[ "MIT" ]
null
null
null
cursoemvideo/python/exercicio/006(dobroTriploRaiz).py
mateusjustino/cursos
10927bf62f89b5847bb0acd998e9e9191472d0f4
[ "MIT" ]
null
null
null
cursoemvideo/python/exercicio/006(dobroTriploRaiz).py
mateusjustino/cursos
10927bf62f89b5847bb0acd998e9e9191472d0f4
[ "MIT" ]
null
null
null
n = int(input('Digite um número: ')) nquadrado = n * 2 ntriplo = n * 3 nraiz = n ** (1/2) print('Seu número é {}, o dobro é {}, o triplo é {} e a raiz quadrada é {:.2f}'.format(n, nquadrado, ntriplo, nraiz))
41.4
117
0.608696
bc205652152a0017942f3defe04090c948b4f479
723
py
Python
attacking_anti_tamper/taint_cpp/extern/keystone/suite/regress/x86_issue10.py
tum-i4/dta-vs-osc
b39f4d4eb6ffea501025fc3e07622251c2118fe0
[ "MIT" ]
15
2021-12-08T09:53:35.000Z
2022-03-07T10:13:37.000Z
attacking_anti_tamper/taint_cpp/extern/keystone/suite/regress/x86_issue10.py
archercreat/dta-vs-osc
b39f4d4eb6ffea501025fc3e07622251c2118fe0
[ "MIT" ]
null
null
null
attacking_anti_tamper/taint_cpp/extern/keystone/suite/regress/x86_issue10.py
archercreat/dta-vs-osc
b39f4d4eb6ffea501025fc3e07622251c2118fe0
[ "MIT" ]
1
2021-12-27T18:01:41.000Z
2021-12-27T18:01:41.000Z
#!/usr/bin/python # Test 'push word 0xd' # Github issue: #10 # Author: Duncan (mrexodia) from keystone import * import regress class TestX86(regress.RegressTest): def runTest(self): # Initialize Keystone engine ks = Ks(KS_ARCH_X86, KS_MODE_32) # Assemble to get back insn encoding & stat...
26.777778
63
0.634855
fe204a8f58a63f04df929d1deb06c072e5403631
1,227
py
Python
aesara/tensor/random/var.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
111
2021-01-29T06:12:58.000Z
2021-06-04T20:27:51.000Z
aesara/tensor/random/var.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
253
2020-02-07T15:19:38.000Z
2021-01-27T20:26:55.000Z
aesara/tensor/random/var.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
38
2020-07-20T12:09:06.000Z
2021-01-27T13:38:50.000Z
import copy import numpy as np from aesara.compile.sharedvalue import SharedVariable, shared_constructor from aesara.tensor.random.type import random_generator_type, random_state_type class RandomStateSharedVariable(SharedVariable): def __str__(self): return "RandomStateSharedVariable({})".format(repr(s...
28.534884
85
0.723716
0af6854497e3fbb9c64a689cfc62bc783327e85a
1,118
py
Python
setup.py
zhengyu-inboc/cookiecutter-pypackage
2206c320bfd32231987dde8e08b1d30df35b7c8d
[ "BSD-3-Clause" ]
null
null
null
setup.py
zhengyu-inboc/cookiecutter-pypackage
2206c320bfd32231987dde8e08b1d30df35b7c8d
[ "BSD-3-Clause" ]
null
null
null
setup.py
zhengyu-inboc/cookiecutter-pypackage
2206c320bfd32231987dde8e08b1d30df35b7c8d
[ "BSD-3-Clause" ]
null
null
null
# !/usr/bin/env python from distutils.core import setup setup( name='cookiecutter-pypackage', packages=[], version='0.1.0', description='Cookiecutter template for a Python package', author='Audrey Roy Greenfeld', license='BSD', author_email='aroy@alum.mit.edu', url='https://g...
36.064516
71
0.597496
18f610e4c6bced08fad7687cf95a807b413b75c8
501
py
Python
ExamManagement/migrations/0005_auto_20201004_1133.py
Anmol3199/Ms-Engage2021
1855da7d0ac83cd3601cc62a93c089b79c9fa677
[ "MIT" ]
7
2020-10-19T03:37:10.000Z
2022-03-24T19:33:30.000Z
ExamManagement/migrations/0005_auto_20201004_1133.py
AnkushCh/Finalproject
880d29390043a506c8c4f570b8005b9f4660454b
[ "MIT" ]
1
2021-07-10T15:59:41.000Z
2021-07-10T15:59:41.000Z
ExamManagement/migrations/0005_auto_20201004_1133.py
ssoad/OnlineExamSystem
ae57e9acb32f1804e86ca1f9e0718ef1280ac289
[ "MIT" ]
4
2020-10-19T00:59:53.000Z
2021-11-28T12:19:40.000Z
# Generated by Django 3.1.2 on 2020-10-04 05:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ExamManagement', '0004_attemptedexam_submit'), ] operations = [ migrations.AlterField( model_na...
25.05
118
0.654691
9fddb4f74f1ad9481e6f211e81f1f88bb3521cb2
3,610
py
Python
application/application_web_socket.py
ATUAV/ATUAV_Experiment
d0c1c3e1ff790bffa37d404ec1f4d70b537cd7fb
[ "BSD-2-Clause" ]
7
2019-04-20T05:38:05.000Z
2022-01-17T14:48:43.000Z
application/application_web_socket.py
ATUAV/ATUAV_Experiment
d0c1c3e1ff790bffa37d404ec1f4d70b537cd7fb
[ "BSD-2-Clause" ]
1
2021-04-04T01:50:09.000Z
2021-04-04T01:50:09.000Z
application/application_web_socket.py
ATUAV/ATUAV_Experiment
d0c1c3e1ff790bffa37d404ec1f4d70b537cd7fb
[ "BSD-2-Clause" ]
2
2020-06-22T03:04:26.000Z
2021-07-10T20:14:55.000Z
import tornado.websocket import params import time TOBII_CONTROLLER = "tobii_controller" APPLICATION_STATE_CONTROLLER = "application_state_controller" ADAPTATION_LOOP = "adaptation_loop" FIXATION_ALGORITHM = "fixation_algorithm" EMDAT_COMPONENT = "emdat_component" ML_COMPONENT = "ml_component" MOUSE_KEY_COMPONENT = ...
38.817204
101
0.686981
ed3405c4cd80d3b8c48606a8ca3bbccc2c6b1ffb
11,993
py
Python
sdks/python/appcenter_sdk/api/billing_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/api/billing_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/api/billing_api.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 re # noqa: F401 # pytho...
45.42803
145
0.651964
e4d7adb4e1ccff75153f0ed5ff43692fb5f82b56
1,525
py
Python
processing/__init__.py
darioackermann/passing-networks-in-python
c73856e7ce8ea489f33653179d2b522a6b7d57c6
[ "MIT" ]
94
2020-04-26T22:05:24.000Z
2022-03-14T23:34:48.000Z
processing/__init__.py
darioackermann/passing-networks-in-python
c73856e7ce8ea489f33653179d2b522a6b7d57c6
[ "MIT" ]
2
2020-05-17T14:35:47.000Z
2020-11-15T19:19:06.000Z
processing/__init__.py
darioackermann/passing-networks-in-python
c73856e7ce8ea489f33653179d2b522a6b7d57c6
[ "MIT" ]
36
2020-04-26T20:28:01.000Z
2022-03-24T15:17:24.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 19 2020 @author: Sergio Llana (@SergioMinuto90) """ from abc import ABC, abstractmethod import matplotlib.pyplot as plt from visualization.passing_network import draw_pitch, draw_pass_map class PassingNetworkBuilder(ABC): """ Abstract c...
25
100
0.656393
9151aa7c2068074d83d5aa55abbd594acf541cbe
2,346
py
Python
data/dates.py
ajbowler/mlb-led-scoreboard
f6678649253f5491ccdbcd4703372a0ab739f1de
[ "MIT" ]
35
2018-01-28T02:40:08.000Z
2018-02-26T21:09:48.000Z
data/dates.py
ajbowler/mlb-led-scoreboard
f6678649253f5491ccdbcd4703372a0ab739f1de
[ "MIT" ]
53
2018-01-28T15:01:32.000Z
2018-02-26T22:22:51.000Z
data/dates.py
ajbowler/mlb-led-scoreboard
f6678649253f5491ccdbcd4703372a0ab739f1de
[ "MIT" ]
10
2018-01-28T18:35:29.000Z
2018-02-20T11:53:07.000Z
from datetime import datetime, timedelta import statsapi import debug class Dates: def __init__(self, year: int): try: data = statsapi.get("season", {"sportId": 1, "seasonId": year}) self.__parse_important_dates(data["seasons"][0], year) now = datetime.now() ...
45.115385
106
0.614237
a20560e9e8d2029ff23aa6bd167fab74e882c51a
11,926
py
Python
src/train_model.py
bgshin/doc-classify-multi-gpu
fe3712c3c3fe410b09cf3ef7f460eaa62d696d67
[ "Apache-2.0" ]
null
null
null
src/train_model.py
bgshin/doc-classify-multi-gpu
fe3712c3c3fe410b09cf3ef7f460eaa62d696d67
[ "Apache-2.0" ]
null
null
null
src/train_model.py
bgshin/doc-classify-multi-gpu
fe3712c3c3fe410b09cf3ef7f460eaa62d696d67
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import os import argparse import tensorflow as tf import numpy as np import datetime from utils import cnn_data_helpers from utils.butils import Timer from cnn_models.w2v_cnn import W2V_CNN from utils.word2vecReader import Word2Vec import time import gc import sys # Parameters # ==============...
42.899281
118
0.58645
be49158426c89a93ddee0609d8f7ebee7e529264
4,881
py
Python
bitcoin/assignment/spend_p2sh_cltv_p2pkh.py
papaemman/decentralized-technologies
52cc4205dcc27f77a843fa5411a3a85b92c8dccc
[ "MIT" ]
null
null
null
bitcoin/assignment/spend_p2sh_cltv_p2pkh.py
papaemman/decentralized-technologies
52cc4205dcc27f77a843fa5411a3a85b92c8dccc
[ "MIT" ]
null
null
null
bitcoin/assignment/spend_p2sh_cltv_p2pkh.py
papaemman/decentralized-technologies
52cc4205dcc27f77a843fa5411a3a85b92c8dccc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim:et:sta:sts=4:sw=4:ts=8:tw=79: # Copyright (C) 2019 The python-bitcoin-utils developers # # This file is part of python-bitcoin-utils # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoin-utils, inclu...
37.837209
165
0.712969
b98e1988aec39a449270dfaf7eb84fad48da85ab
12,846
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_servicegroupmember_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
1
2015-04-05T21:21:26.000Z
2015-04-05T21:21:26.000Z
nssrc/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_servicegroupmember_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
1
2017-01-20T22:56:58.000Z
2017-01-20T22:56:58.000Z
nssrc/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_servicegroupmember_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
6
2015-04-21T13:14:08.000Z
2020-12-03T07:27:52.000Z
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # 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 l...
31.485294
418
0.725051
c53f8c8a631d78dde3f8031fc2766cfb5fa83ae2
1,289
py
Python
app/utils/service_result.py
Cyxapic/fastapi-template
3151b38b8ed3d44a53f4ca4b1b90b07099026709
[ "MIT" ]
null
null
null
app/utils/service_result.py
Cyxapic/fastapi-template
3151b38b8ed3d44a53f4ca4b1b90b07099026709
[ "MIT" ]
null
null
null
app/utils/service_result.py
Cyxapic/fastapi-template
3151b38b8ed3d44a53f4ca4b1b90b07099026709
[ "MIT" ]
null
null
null
import logging import inspect from app.utils.app_exceptions import AppExceptionCase logger = logging.getLogger() class ServiceResult(object): def __init__(self, arg): if isinstance(arg, AppExceptionCase): self.success = False self.exception_case = arg.exception_case ...
25.27451
68
0.625291
63d08994568d6a3bb4ceb59295b47a644c241f2d
24,342
py
Python
virt/lib/python3.8/site-packages/socketio/asyncio_client.py
marcelodive/scrum-tools-flask
5be526a44a3005955ea4a5820b6de46d4ceb1f04
[ "MIT" ]
null
null
null
virt/lib/python3.8/site-packages/socketio/asyncio_client.py
marcelodive/scrum-tools-flask
5be526a44a3005955ea4a5820b6de46d4ceb1f04
[ "MIT" ]
null
null
null
virt/lib/python3.8/site-packages/socketio/asyncio_client.py
marcelodive/scrum-tools-flask
5be526a44a3005955ea4a5820b6de46d4ceb1f04
[ "MIT" ]
null
null
null
import asyncio import logging import random import engineio from . import client from . import exceptions from . import packet default_logger = logging.getLogger('socketio.client') class AsyncClient(client.Client): """A Socket.IO client for asyncio. This class implements a fully compliant Socket.IO web cl...
45.669794
79
0.583436
a592914f826195ac7168dc7c9556d941ff8a2ef6
1,056
py
Python
tests/test_Network.py
nvaldeziii/netmon
3a61a206ab4d071c3c4853694d960d0e8d671336
[ "Apache-2.0" ]
null
null
null
tests/test_Network.py
nvaldeziii/netmon
3a61a206ab4d071c3c4853694d960d0e8d671336
[ "Apache-2.0" ]
null
null
null
tests/test_Network.py
nvaldeziii/netmon
3a61a206ab4d071c3c4853694d960d0e8d671336
[ "Apache-2.0" ]
null
null
null
import unittest from netmon.netmon import IpAddress from netmon.netmon import Network class TestNetwork(unittest.TestCase): def setUp(self): self.Network = Network() def test_add_ip_address(self): self.Network.add_ip_address('home',IpAddress('127.0.0.1')) self.assertEqual(self.Network....
35.2
130
0.705492
aa8cb000aeed9bed6eb59143f8889f66f27957c8
3,895
py
Python
venv/lib/python3.8/site-packages/nltk/chat/util.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
7
2021-01-30T17:42:00.000Z
2022-01-09T08:08:48.000Z
venv/lib/python3.8/site-packages/nltk/chat/util.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
venv/lib/python3.8/site-packages/nltk/chat/util.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
2
2021-05-03T04:02:50.000Z
2021-05-18T01:34:45.000Z
# Natural Language Toolkit: Chatbot Utilities # # Copyright (C) 2001-2021 NLTK Project # Authors: Steven Bird <stevenbird1@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT # Based on an Eliza implementation by Joe Strout <joe@strout.net>, # Jeff Epler <jepler@inetnebr.com> and Jez Higgin...
30.912698
89
0.538896
d45bad12b6b1b6392f7c18a7453f6fe1dc20c795
66,691
py
Python
mobile_insight/analyzer/lte_rrc_analyzer.py
unknownhandX/mobileinsight-core
5efc3d877072d0a176c5e628064c6e981f2a0342
[ "Apache-2.0" ]
null
null
null
mobile_insight/analyzer/lte_rrc_analyzer.py
unknownhandX/mobileinsight-core
5efc3d877072d0a176c5e628064c6e981f2a0342
[ "Apache-2.0" ]
null
null
null
mobile_insight/analyzer/lte_rrc_analyzer.py
unknownhandX/mobileinsight-core
5efc3d877072d0a176c5e628064c6e981f2a0342
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: lte_rrc_analyzer.py """ A LTE RRC analyzer. Author: Yuanjie Li, Zhehui Zhang """ try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET from analyzer import * from state_machine import * from protocol_analyzer import * import timeit import...
43.054229
153
0.539803
0e0517ca5ef776efd7145960f3f50b3dc7d25e46
5,754
py
Python
src/robotide/lib/robot/output/xmllogger.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
11
2017-09-30T05:47:28.000Z
2019-04-15T11:58:40.000Z
src/robotide/lib/robot/output/xmllogger.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/lib/robot/output/xmllogger.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
7
2018-02-13T10:22:39.000Z
2019-07-04T07:39:28.000Z
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
35.518519
85
0.634341
5c472648d5b59a4840f3215250ad916ddf4143b9
1,276
py
Python
fairseq/data/__init__.py
ihish52/d-HAT
7ea8ecf01896b144cea11ee54e20c5f533003be0
[ "MIT" ]
280
2020-05-20T04:59:40.000Z
2022-03-22T23:24:11.000Z
fairseq/data/__init__.py
abodacs/hardware-aware-transformers
35d12828fb9e8e7a184adaa4caa187bef3a94be2
[ "MIT" ]
14
2020-06-10T02:12:54.000Z
2022-01-26T09:52:07.000Z
fairseq/data/__init__.py
abodacs/hardware-aware-transformers
35d12828fb9e8e7a184adaa4caa187bef3a94be2
[ "MIT" ]
45
2020-05-29T05:10:26.000Z
2022-03-25T06:29:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .dictionary import Dictionary, TruncatedDictionary from .fairseq_dataset import FairseqDataset from .base_wrapper_dataset import BaseWr...
26.583333
108
0.771944
d6a67a1bcad65c3a5546e29c168f18eeef9c1bfb
7,062
py
Python
tocmfastpy/boxstats.py
yunfanz/ReionBub
c42401d9baf131c4e67b8b2f18828c1d83443a44
[ "MIT" ]
1
2020-03-25T06:14:17.000Z
2020-03-25T06:14:17.000Z
tocmfastpy/boxstats.py
yunfanz/ReionBub
c42401d9baf131c4e67b8b2f18828c1d83443a44
[ "MIT" ]
null
null
null
tocmfastpy/boxstats.py
yunfanz/ReionBub
c42401d9baf131c4e67b8b2f18828c1d83443a44
[ "MIT" ]
2
2019-05-28T02:56:20.000Z
2020-03-25T06:14:23.000Z
#!/usr/bin/python #Jonathan Pritchard """ This code is designed to analyse statistics of a box produced by 21cmFast Underlying this is the Box class, which should contain all relevant info on the box itself and its parameters and data """ from Box import * from PDF import * import numpy as np import os import math im...
29.548117
87
0.664259
ed04f8ee02cec91bafbfbb37d36c720d57d23d85
5,012
py
Python
sqlparse/filters/others.py
ali-tny/sqlparse
1499cffcd7c4d635b4297b44d48fb4fe94cf988e
[ "BSD-3-Clause" ]
null
null
null
sqlparse/filters/others.py
ali-tny/sqlparse
1499cffcd7c4d635b4297b44d48fb4fe94cf988e
[ "BSD-3-Clause" ]
null
null
null
sqlparse/filters/others.py
ali-tny/sqlparse
1499cffcd7c4d635b4297b44d48fb4fe94cf988e
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (C) 2009-2018 the sqlparse authors and contributors # <see AUTHORS file> # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause import re from sqlparse import sql, tokens as T from sqlparse.utils import split_unquoted_newlines c...
37.402985
79
0.612729
70bcac16cec6dec5b6c686cc7ad16857a7722fed
402
py
Python
elasticsearch/compat.py
iandanforth-alation/elasticsearch-py
8f5c60f333850dd10b6b8ad78e4f68b85ee78cce
[ "Apache-2.0" ]
3
2020-04-03T20:06:25.000Z
2020-12-12T23:47:05.000Z
elasticsearch/compat.py
iandanforth-alation/elasticsearch-py
8f5c60f333850dd10b6b8ad78e4f68b85ee78cce
[ "Apache-2.0" ]
1
2021-06-02T01:45:42.000Z
2021-06-02T01:45:42.000Z
env/lib/python2.7/site-packages/elasticsearch/compat.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
1
2021-12-01T18:21:12.000Z
2021-12-01T18:21:12.000Z
import sys PY2 = sys.version_info[0] == 2 if PY2: string_types = (basestring,) from urllib import quote_plus, quote, urlencode, unquote from urlparse import urlparse from itertools import imap as map from Queue import Queue else: string_types = str, bytes from urllib.parse import quote, qu...
23.647059
76
0.71393
092641a4fceae9b773baf6a59c78fa2ab7a898f5
1,234
py
Python
Game5/modules/sprites/bullet.py
dwlcreat/dsf
51af9107367dd8abc34b90230465f40f6950cdec
[ "MIT" ]
2
2020-06-30T16:43:57.000Z
2020-11-08T13:30:49.000Z
Game5/modules/sprites/bullet.py
kib1413/Games
d97378ad7f7f9799797fc2f61dcf1f8c16dfa5e8
[ "MIT" ]
null
null
null
Game5/modules/sprites/bullet.py
kib1413/Games
d97378ad7f7f9799797fc2f61dcf1f8c16dfa5e8
[ "MIT" ]
1
2020-08-09T12:33:15.000Z
2020-08-09T12:33:15.000Z
''' Function: 子弹类 Author: Charles 微信公众号: Charles的皮卡丘 ''' import pygame '''子弹''' class Bullet(pygame.sprite.Sprite): def __init__(self, bullet_image_paths, screensize, direction, position, border_len, is_stronger=False, speed=8, **kwargs): pygame.sprite.Sprite.__init__(self) self.bullet_image_paths = bullet_im...
30.097561
147
0.711507
39730aaae07a03f52787f0b5c464e93682175319
25,082
py
Python
src/azure-cli/azure/cli/command_modules/keyvault/_validators.py
abhaagr/azure-cli
575ae2e6141d7021ae5fed4d7d512e5e5df631d7
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/keyvault/_validators.py
abhaagr/azure-cli
575ae2e6141d7021ae5fed4d7d512e5e5df631d7
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/keyvault/_validators.py
abhaagr/azure-cli
575ae2e6141d7021ae5fed4d7d512e5e5df631d7
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.587692
120
0.647915
bef1f37eda676e72c62812d4834ebd08ba847a3a
6,159
py
Python
python/setup.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/setup.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
2
2020-09-14T09:18:25.000Z
2020-09-24T03:28:18.000Z
python/setup.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# 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...
32.587302
96
0.606267
44d8a9539b66a088efa832f42e50db3d475e5e63
13,707
py
Python
examples/popl22/mmverify.py
kframework/matching-logic-proof-checker
b1fb5e3ad77965af67bbdf6df24b3dbd5faef31b
[ "BSD-3-Clause" ]
1
2020-12-20T05:35:33.000Z
2020-12-20T05:35:33.000Z
examples/popl22/mmverify.py
kframework/matching-logic-proof-checker
b1fb5e3ad77965af67bbdf6df24b3dbd5faef31b
[ "BSD-3-Clause" ]
23
2021-03-01T00:13:19.000Z
2022-02-21T11:21:58.000Z
examples/popl22/mmverify.py
kframework/matching-logic-proof-checker
b1fb5e3ad77965af67bbdf6df24b3dbd5faef31b
[ "BSD-3-Clause" ]
3
2020-11-19T02:00:24.000Z
2021-04-27T17:51:32.000Z
#!/usr/bin/env python3 # mmverify.py -- Proof verifier for the Metamath language # Copyright (C) 2002 Raph Levien raph (at) acm (dot) org # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License # To run the program, type # $ python3 mmverify.py < ...
35.510363
119
0.507551
891bc48e7d3a8854adcd5cf272d58f4aeb2227a3
6,982
py
Python
utility.py
BJTU-MIMO/RIS_Channel_estimation_EDSR_MDSR
927e5a2dd53c385bfd99625727e4406c7b027184
[ "MIT" ]
null
null
null
utility.py
BJTU-MIMO/RIS_Channel_estimation_EDSR_MDSR
927e5a2dd53c385bfd99625727e4406c7b027184
[ "MIT" ]
null
null
null
utility.py
BJTU-MIMO/RIS_Channel_estimation_EDSR_MDSR
927e5a2dd53c385bfd99625727e4406c7b027184
[ "MIT" ]
null
null
null
import os import math import time import datetime from functools import reduce import matplotlib.pyplot as plt import numpy as np # import scipy.misc as misc import imageio import torch import torch.optim as optim import torch.optim.lr_scheduler as lrs import matplotlib matplotlib.use('Agg') class...
31.169643
87
0.53552
82c43845e7e8fdbaf1ba90d945067bcfcc3ccf07
1,139
py
Python
utils/evaluation.py
neverstoplearn/remote_sensing_change_detection
34ca27af74c4085331dbabcf678286ed89891493
[ "MIT" ]
56
2020-04-14T08:37:48.000Z
2022-03-22T02:40:34.000Z
utils/evaluation.py
neverstoplearn/remote_sensing_change_detection
34ca27af74c4085331dbabcf678286ed89891493
[ "MIT" ]
13
2020-04-19T11:24:56.000Z
2022-03-21T02:03:34.000Z
utils/evaluation.py
neverstoplearn/remote_sensing_change_detection
34ca27af74c4085331dbabcf678286ed89891493
[ "MIT" ]
14
2020-04-13T15:19:46.000Z
2021-11-17T09:03:31.000Z
import numpy as np import glob import tqdm import os import cv2 as cv from sklearn.metrics import confusion_matrix,cohen_kappa_score from skimage import io from .en_de import Encode_Decode def cal_val_kappa(val_pred_dir = "./val_predict/*.tif",targetPath = './val_set') en_de_tool = Encode_Decode() imglist = ...
34.515152
80
0.681299
59519473d2cff00067588e32301ffcd022e4a3d2
1,434
py
Python
helpers.py
zcaceres/char-rnn.pytorch
afa9dba64abaccace5e86b411f3f917b95ff991b
[ "MIT" ]
1
2020-12-25T09:18:54.000Z
2020-12-25T09:18:54.000Z
helpers.py
zcaceres/char-rnn.pytorch
afa9dba64abaccace5e86b411f3f917b95ff991b
[ "MIT" ]
null
null
null
helpers.py
zcaceres/char-rnn.pytorch
afa9dba64abaccace5e86b411f3f917b95ff991b
[ "MIT" ]
null
null
null
# https://github.com/spro/char-rnn.pytorch import unidecode import string import random import time import math import torch import torchaudio import glob from pathlib import Path # Reading and un-unicode-encoding data all_characters = string.printable n_characters = len(all_characters) MAX_AUDIO_FILES = 10 def re...
23.9
58
0.668061
f92bd6bc1512cced7960bf8e0cfcb37e7a38d8d5
10,117
py
Python
main.py
praveenbandaru/CarND-Semantic-Segmentation
8ca85a36485454b3acd5f5655b3a2f9245996923
[ "MIT" ]
null
null
null
main.py
praveenbandaru/CarND-Semantic-Segmentation
8ca85a36485454b3acd5f5655b3a2f9245996923
[ "MIT" ]
null
null
null
main.py
praveenbandaru/CarND-Semantic-Segmentation
8ca85a36485454b3acd5f5655b3a2f9245996923
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os.path import tensorflow as tf import helper import warnings from distutils.version import LooseVersion import project_tests as tests from moviepy.editor import VideoFileClip from IPython.display import HTML # Check TensorFlow Version assert LooseVersion(tf.__version__) >= LooseVersion(...
45.165179
146
0.658792
acfde3123065225740dbe1eceeb0c518a06b8555
13,407
py
Python
pychron/pipeline/plot/plotter/references_series.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/pipeline/plot/plotter/references_series.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/pipeline/plot/plotter/references_series.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2015 Jake Ross # # 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...
33.68593
88
0.533154
f27ed2b42026e62c8cdc23474838eed23708b73e
2,161
py
Python
prom2zabbix.py
czhujer/prom2zabbix-
fbbf21b897211dc0d8e0e4af892e042a7b09f477
[ "MIT" ]
10
2018-05-04T06:48:46.000Z
2021-12-23T14:33:26.000Z
prom2zabbix.py
czhujer/prom2zabbix-
fbbf21b897211dc0d8e0e4af892e042a7b09f477
[ "MIT" ]
null
null
null
prom2zabbix.py
czhujer/prom2zabbix-
fbbf21b897211dc0d8e0e4af892e042a7b09f477
[ "MIT" ]
4
2018-05-16T09:04:07.000Z
2021-11-29T09:27:33.000Z
#!/usr/bin/python3 import argparse from prom2zabbix_lib import getDiscovery from prom2zabbix_lib import getDiscovery2 from prom2zabbix_lib import getValue #import sys import string #import json #import requests #import socket #import md5 # check a import parameters parser = argparse.ArgumentParser(description='pro...
26.036145
102
0.618695
fd164b371dbe053925a536440c1678c02d643135
10,397
py
Python
analyses/data_finalization/correct_data_based_on_jfj.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/data_finalization/correct_data_based_on_jfj.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/data_finalization/correct_data_based_on_jfj.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
""" For CFCs -11, -12, and -113, we have JFJ data to correct by for the period we have only one skewed sample per day. That is addressed here. """ raise DeprecationWarning("Most of this functionality has been moved to reporting.finalization.<...>.") import statistics as stats from collections import namedtuple, defaul...
37.807273
130
0.584303
731b931d87e0994be42d7da22f01cc9e39ca7f91
46,341
py
Python
custom_components/lightingsm.py
jasonwilk/entity-controller
8f23d39faad4de3f856ccc66595b21cd6855d008
[ "MIT" ]
null
null
null
custom_components/lightingsm.py
jasonwilk/entity-controller
8f23d39faad4de3f856ccc66595b21cd6855d008
[ "MIT" ]
null
null
null
custom_components/lightingsm.py
jasonwilk/entity-controller
8f23d39faad4de3f856ccc66595b21cd6855d008
[ "MIT" ]
null
null
null
""" Entity timer component for Home Assistant Maintainer: Daniel Mason Version: v2.4.9 Documentation: https://github.com/danobot/appdaemon-motion-lights Issues Tracker: Report issues on Github. Include: * component version * YAML configuration (for misbeha...
39.880379
144
0.548111
1701643844e105d05c724a6fff970dbaca306888
11,250
py
Python
topi/python/topi/x86/conv2d_int8.py
ANSHUMAN87/incubator-tvm
902e21bd4e975037020c3b6445e4c903c2490a22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2021-02-23T22:06:01.000Z
2021-09-30T09:59:17.000Z
topi/python/topi/x86/conv2d_int8.py
ANSHUMAN87/incubator-tvm
902e21bd4e975037020c3b6445e4c903c2490a22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
topi/python/topi/x86/conv2d_int8.py
ANSHUMAN87/incubator-tvm
902e21bd4e975037020c3b6445e4c903c2490a22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# 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...
41.666667
99
0.622222
e1bf713691a1a13eda65f3332c828c533e8f6d1c
4,521
py
Python
parser.py
SuLab/covid_pdb_datasets
c7efc8808103a69029d2bd2b4639650c617448cd
[ "MIT" ]
null
null
null
parser.py
SuLab/covid_pdb_datasets
c7efc8808103a69029d2bd2b4639650c617448cd
[ "MIT" ]
null
null
null
parser.py
SuLab/covid_pdb_datasets
c7efc8808103a69029d2bd2b4639650c617448cd
[ "MIT" ]
1
2020-12-02T00:50:13.000Z
2020-12-02T00:50:13.000Z
import os import pandas as pd import requests from datetime import date from biothings.utils.common import open_anyfile from biothings import config logging = config.logger # List of coronavirus-related PDB ids, curated by RCSB # PDB_IDS = "https://cdn.rcsb.org/rcsb-pdb/general_information/news_publications/SARS-Cov...
42.650943
125
0.639018
900b06b86a087109d1507dceed1f729437a88e78
400
py
Python
dev/Experimental/Pysat/satplacer/setup.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
119
2019-05-14T18:44:34.000Z
2022-03-17T01:01:02.000Z
dev/Experimental/Pysat/satplacer/setup.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
717
2019-04-03T15:36:35.000Z
2022-03-31T21:56:47.000Z
dev/Experimental/Pysat/satplacer/setup.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
34
2019-04-01T21:21:27.000Z
2022-03-21T09:46:57.000Z
from setuptools import setup, find_packages setup(name='satplacer', version='0.1', description='Simple SAT-based Placer', url='ALIGN-analoglayout/ALIGN.git', author='Steven Burns', author_email='steven.m.burns@intel.com', license='MIT', packages=find_packages(), setup_re...
28.571429
46
0.655
770e09fe38ab8140fb8cb0af637e372cedae81b2
9,496
py
Python
seaqube/benchmark/benchmark_datasets/Outlier-detection 2/scorer_outlierdetection.py
bees4ever/seaqube
51bfe8f07574a7d5bf365c7e707646b59b623244
[ "MIT" ]
2
2020-12-29T13:18:33.000Z
2021-01-24T12:04:43.000Z
seaqube/benchmark/benchmark_datasets/Outlier-detection 2/scorer_outlierdetection.py
bees4ever/SeaQuBe
51bfe8f07574a7d5bf365c7e707646b59b623244
[ "MIT" ]
1
2021-01-14T14:14:57.000Z
2021-01-14T14:14:57.000Z
seaqube/benchmark/benchmark_datasets/Outlier-detection 2/scorer_outlierdetection.py
bees4ever/SeaQuBe
51bfe8f07574a7d5bf365c7e707646b59b623244
[ "MIT" ]
1
2021-01-15T12:05:38.000Z
2021-01-15T12:05:38.000Z
# -*- coding: utf-8 -*- ### Author: Jose Camacho Collados import os import fileinput from math import sqrt import operator import sys class OutlierDetectionCluster: #Class modeling a cluster of the dataset, composed of its topic name, its corresponding elements and the outliers to be detected def __init__(s...
41.649123
159
0.63511
68d0aba2fb0aa34ebe8446f17bb5962c1e43d026
3,608
py
Python
src/oci/key_management/models/replica_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/key_management/models/replica_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/key_management/models/replica_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.576271
245
0.643016
395c3c7d91add21a8c729ec12918f2df16fca1a8
3,906
py
Python
sources/modules/python/test/test2.py
ovb197310/opencv_2.4.13.2
940159dab8ea8f5ee019d2038b59e1daf4119d1c
[ "BSD-3-Clause" ]
null
null
null
sources/modules/python/test/test2.py
ovb197310/opencv_2.4.13.2
940159dab8ea8f5ee019d2038b59e1daf4119d1c
[ "BSD-3-Clause" ]
null
null
null
sources/modules/python/test/test2.py
ovb197310/opencv_2.4.13.2
940159dab8ea8f5ee019d2038b59e1daf4119d1c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import unittest import random import urllib2 import hashlib import numpy as np import cv2 import cv2.cv as cv from tests_common import NewOpenCVTests # Tests to run first; check the handful of basic operations that the later tests rely on class Hackathon244Tests(NewOpenCVTests): ...
39.454545
115
0.611623
33187b84511e9b34d50ba2b88b123b4c71c39b6e
317
py
Python
python/hash_tables/hash_table.py
edchelstephens/algorithms-datastructures
6d7f68bce2f9d783debc62ec25cdc85c40c1c1bc
[ "BSD-3-Clause" ]
1
2021-11-20T05:51:21.000Z
2021-11-20T05:51:21.000Z
python/hash_tables/hash_table.py
edchelstephens/algorithms-datastructures
6d7f68bce2f9d783debc62ec25cdc85c40c1c1bc
[ "BSD-3-Clause" ]
null
null
null
python/hash_tables/hash_table.py
edchelstephens/algorithms-datastructures
6d7f68bce2f9d783debc62ec25cdc85c40c1c1bc
[ "BSD-3-Clause" ]
null
null
null
from typing import Any class HashTableEntry: """A hash table entry for separate chaining collisions.""" def __init__(self, key:str, value:Any, next:object) -> None: self.key = key self.value = value self.next = next class HashTable: """A hash table data structure.""" pass
21.133333
64
0.637224
2869f7a548d19a558fc4abff4d330f7d5406716e
12,136
py
Python
pymodbus3/client/sync.py
phygitalism/pymodbus3
28edc8d6455af880b5d86651eda66a3563ed67e8
[ "BSD-3-Clause" ]
40
2015-12-01T09:10:20.000Z
2021-07-10T17:30:32.000Z
pymodbus3/client/sync.py
phygitalism/pymodbus3
28edc8d6455af880b5d86651eda66a3563ed67e8
[ "BSD-3-Clause" ]
12
2016-06-03T03:06:43.000Z
2019-09-06T06:35:06.000Z
pymodbus3/client/sync.py
phygitalism/pymodbus3
28edc8d6455af880b5d86651eda66a3563ed67e8
[ "BSD-3-Clause" ]
17
2015-09-02T07:25:46.000Z
2021-08-10T13:07:55.000Z
# -*- coding: utf-8 -*- import socket import serial from pymodbus3.constants import Defaults from pymodbus3.factory import ClientDecoder from pymodbus3.exceptions import ParameterException from pymodbus3.exceptions import ConnectionException from pymodbus3.transaction import FifoTransactionManager from pymodbus3.trans...
30.34
76
0.607202
af0c0c640c7463bdf6f24d841066af58b8074800
5,625
py
Python
frame.py
Marinela-S/Object_Tracker_Modified
04b32a6c2fb2154271182fef80543bdf130cb294
[ "MIT" ]
null
null
null
frame.py
Marinela-S/Object_Tracker_Modified
04b32a6c2fb2154271182fef80543bdf130cb294
[ "MIT" ]
null
null
null
frame.py
Marinela-S/Object_Tracker_Modified
04b32a6c2fb2154271182fef80543bdf130cb294
[ "MIT" ]
null
null
null
import copy import os import multiclass_rectangle from multiclass_rectangle import Rectangle_Multiclass import vid_classes ##################################################################################################################################################################### ########################## CL...
36.764706
165
0.552889
212d8f6c89ccf832ae2e90c5f6ed2a2e0aebd782
1,360
py
Python
bot/com/mod/kick.py
VoxelPrismatic/prizai
632a5dfed23807d78064d292d474ac4cc8988b12
[ "Unlicense" ]
2
2019-11-08T21:34:44.000Z
2020-07-05T15:31:19.000Z
bot/com/mod/kick.py
VoxelPrismatic/prizai
632a5dfed23807d78064d292d474ac4cc8988b12
[ "Unlicense" ]
null
null
null
bot/com/mod/kick.py
VoxelPrismatic/prizai
632a5dfed23807d78064d292d474ac4cc8988b12
[ "Unlicense" ]
2
2020-07-05T15:39:51.000Z
2020-07-05T16:15:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -* #/// DEPENDENCIES import discord #python3.7 -m pip install -U discord.py import logging from discord.ext import commands from discord.ext.commands import Bot, MissingPermissions, has_permissions from discord.ext.commands import Greedy as Grab from util.e...
30.909091
86
0.550735
c2108fd727b0972644e7ad02938e2688d9952ea6
1,044
py
Python
old/test_circle_detection.py
ehtec/pie-chart-ocr
ea36e29e9e585bd7a1779d7563578f190a6e0e65
[ "MIT" ]
null
null
null
old/test_circle_detection.py
ehtec/pie-chart-ocr
ea36e29e9e585bd7a1779d7563578f190a6e0e65
[ "MIT" ]
1
2021-12-22T18:34:42.000Z
2021-12-22T18:34:42.000Z
old/test_circle_detection.py
ehtec/pie-chart-ocr
ea36e29e9e585bd7a1779d7563578f190a6e0e65
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from skimage import data, color from skimage.transform import hough_circle, hough_circle_peaks from skimage.feature import canny from skimage.draw import circle_perimeter from skimage.util import img_as_ubyte # Load picture and detect edges image = img_as_ubyte(data...
30.705882
66
0.705939
df6af7e0d1c2714cb709f5fcdccefeecb357e501
350
py
Python
setup.py
sn6uv/rply
b3263083647a83eb5d4593065eccdf034a2dbbdc
[ "BSD-3-Clause" ]
null
null
null
setup.py
sn6uv/rply
b3263083647a83eb5d4593065eccdf034a2dbbdc
[ "BSD-3-Clause" ]
null
null
null
setup.py
sn6uv/rply
b3263083647a83eb5d4593065eccdf034a2dbbdc
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup with open("README.rst") as f: readme = f.read() setup( name="rply", description="A pure Python Lex/Yacc that works with RPython", long_description=readme, # duplicated in docs/conf.py version="0.7.3", author="Alex Gaynor", author_email="alex.gaynor@gmail.c...
20.588235
65
0.657143
54ccafa399e8aacca03ebd716b08321522296f49
28,307
py
Python
slowfast/visualization/video_visualizer.py
thetkim9/SlowFast
3abf6c60a6eb9af0e598c078b8eb5f1af9dc7193
[ "Apache-2.0" ]
2
2020-08-24T01:22:06.000Z
2020-10-13T21:14:39.000Z
slowfast/visualization/video_visualizer.py
thetkim9/SlowFast
3abf6c60a6eb9af0e598c078b8eb5f1af9dc7193
[ "Apache-2.0" ]
null
null
null
slowfast/visualization/video_visualizer.py
thetkim9/SlowFast
3abf6c60a6eb9af0e598c078b8eb5f1af9dc7193
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import itertools import logging as log import numpy as np import matplotlib.pyplot as plt import torch from detectron2.utils.visualizer import Visualizer import slowfast.utils.logging as logging from slowfast.utils.misc imp...
40.847042
260
0.574946
22b700262af21030b7cab818d6c366a23340e717
2,694
py
Python
bin/Python27/Lib/site-packages/scipy/weave/examples/md5_speed.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/scipy/weave/examples/md5_speed.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/scipy/weave/examples/md5_speed.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
""" Storing actual strings instead of their md5 value appears to be about 10 times faster. >>> md5_speed.run(200,50000) md5 build(len,sec): 50000 0.870999932289 md5 retrv(len,sec): 50000 0.680999994278 std build(len,sec): 50000 0.259999990463 std retrv(len,sec): 50000 0.0599999427795 This test actually take...
26.94
74
0.63029
3a789ab76d3e1ff6e223ca4d6abcb2b2923e722a
4,922
py
Python
1To3.roboFontExt/lib/RF1.py
typemytype/RoboFont1-3
787f30ae7b4479e4bda7c9450e124e1135726a70
[ "MIT" ]
2
2018-01-24T22:21:54.000Z
2019-11-13T18:02:20.000Z
1To3.roboFontExt/lib/RF1.py
typemytype/RoboFont1-3
787f30ae7b4479e4bda7c9450e124e1135726a70
[ "MIT" ]
2
2018-02-06T00:04:19.000Z
2018-02-08T15:58:27.000Z
1To3.roboFontExt/lib/RF1.py
typemytype/RoboFont1-3
787f30ae7b4479e4bda7c9450e124e1135726a70
[ "MIT" ]
1
2018-02-05T17:19:23.000Z
2018-02-05T17:19:23.000Z
import AppKit from mojo.roboFont import version as roboFontVersion from lib.fontObjects import doodleContour, doodlePoint, doodleComponent, doodleGlyph, doodleFont, doodleAnchor, robofabWrapper ############### # identifiers # ############### needIdentifiers = [ doodleGlyph.DoodleGlyph, doodleContour.DoodleCo...
25.371134
146
0.672288
aeee45ff3e0463179bb214a20dc311d141a72c5a
268
py
Python
800/NormalPods/clean-pod-anti-affinty-pod-rs.py
jagadishpb89/BenchmarkingScripts
4f7831ae70c409d85eda4fc808f841c251421b62
[ "Apache-2.0" ]
null
null
null
800/NormalPods/clean-pod-anti-affinty-pod-rs.py
jagadishpb89/BenchmarkingScripts
4f7831ae70c409d85eda4fc808f841c251421b62
[ "Apache-2.0" ]
null
null
null
800/NormalPods/clean-pod-anti-affinty-pod-rs.py
jagadishpb89/BenchmarkingScripts
4f7831ae70c409d85eda4fc808f841c251421b62
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python import os import commands import time for i in os.listdir("./pod-anti-affinity-yamls"): name = "./pod-anti-affinity-yamls/" + i cmd = "kubectl delete -f " + name print commands.getoutput(cmd) os.system("rm -rf ./pod-anti-affinity-yamls")
22.333333
49
0.679104
dccbdf39ed5c4625e19c3b02ecd9b2d3fe8d29b0
322
py
Python
config/urls.py
PabloEmidio/django-news
81a7a60609de0e2233ad7522d1b43c27e2482017
[ "MIT" ]
null
null
null
config/urls.py
PabloEmidio/django-news
81a7a60609de0e2233ad7522d1b43c27e2482017
[ "MIT" ]
null
null
null
config/urls.py
PabloEmidio/django-news
81a7a60609de0e2233ad7522d1b43c27e2482017
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('accounts.urls')), path('accounts/', include('django.contrib.auth.urls')), path('articles/', include('articles.urls')), path('', include('pages.urls')), ...
29.272727
59
0.664596
3b94224923e3cd23f2c4b3406f84436f258e9248
11,726
py
Python
tests/test_decorators.py
relaxdiego/charms.reactive
e37e781432e77c12b63d2c739bd6cd70d3230c3a
[ "Apache-2.0" ]
20
2015-09-02T16:32:45.000Z
2022-03-01T05:57:14.000Z
tests/test_decorators.py
relaxdiego/charms.reactive
e37e781432e77c12b63d2c739bd6cd70d3230c3a
[ "Apache-2.0" ]
191
2015-10-01T16:13:58.000Z
2022-03-22T03:36:08.000Z
tests/test_decorators.py
relaxdiego/charms.reactive
e37e781432e77c12b63d2c739bd6cd70d3230c3a
[ "Apache-2.0" ]
38
2015-09-23T01:57:15.000Z
2022-03-24T19:20:15.000Z
# Copyright 2014-2017 Canonical Limited. # # This file is part of charms.reactive. # # charms.reactive is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 as # published by the Free Software Foundation. # # charm-helpers is distributed in the h...
34.387097
95
0.642845
c27b3f51cddb51654b1ff5a35fd7d689fc4109c4
35,409
py
Python
tensorflow/python/debug/lib/stepper.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/debug/lib/stepper.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/debug/lib/stepper.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2016 The TensorFlow Authors. 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 applica...
36.617373
109
0.688384
e7c2779adbdc25a1acf9c92e85575ccf6ec182e8
22
py
Python
alerta/version.py
iDemonix/alerta
c35c56ca246d968c0f7419af0b485e999530f792
[ "Apache-2.0" ]
null
null
null
alerta/version.py
iDemonix/alerta
c35c56ca246d968c0f7419af0b485e999530f792
[ "Apache-2.0" ]
null
null
null
alerta/version.py
iDemonix/alerta
c35c56ca246d968c0f7419af0b485e999530f792
[ "Apache-2.0" ]
null
null
null
__version__ = '6.2.0'
11
21
0.636364
e5375b7dbc09b8fe8c7991ab4683e91ae0f751f2
1,709
py
Python
app/core/migrations/0001_initial.py
dodge-ttu/gohan-api
bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
dodge-ttu/gohan-api
bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
dodge-ttu/gohan-api
bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-08-18 17:08 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
0152b645f5372cc686cbeea5dfd997e189448ea9
3,836
py
Python
src/bio2bel_kegg/models.py
pminervini/kegg
49450a84d6dedc8cd857d8f8d8c151c391a27661
[ "MIT" ]
null
null
null
src/bio2bel_kegg/models.py
pminervini/kegg
49450a84d6dedc8cd857d8f8d8c151c391a27661
[ "MIT" ]
null
null
null
src/bio2bel_kegg/models.py
pminervini/kegg
49450a84d6dedc8cd857d8f8d8c151c391a27661
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """KEGG database models.""" from typing import List, Optional, Set from sqlalchemy import Column, ForeignKey, Integer, String, Table from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship import pybel.dsl from .constants import HGNC, KEGG Base = decl...
30.204724
107
0.645725
672f571fb96b42e274a70d376bea425c40f98ca7
64,963
py
Python
tensorflow/python/kernel_tests/parsing_ops_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/kernel_tests/parsing_ops_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/kernel_tests/parsing_ops_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 The TensorFlow Authors. 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 applica...
35.096164
80
0.547743
88bc027cc71a860dd6e6be7fea6b583b0940b5a7
4,051
py
Python
auth.py
srichakradhar/Flask-Blog-with-Login
9e52f37507729b5f4b246956c7f6026015cfb518
[ "MIT" ]
null
null
null
auth.py
srichakradhar/Flask-Blog-with-Login
9e52f37507729b5f4b246956c7f6026015cfb518
[ "MIT" ]
null
null
null
auth.py
srichakradhar/Flask-Blog-with-Login
9e52f37507729b5f4b246956c7f6026015cfb518
[ "MIT" ]
1
2020-06-22T06:32:34.000Z
2020-06-22T06:32:34.000Z
from flask import Blueprint, render_template, request, redirect, url_for, flash from flask_login import login_user, logout_user, login_required, current_user from werkzeug.security import check_password_hash, generate_password_hash from app import db from user import User auth = Blueprint('auth', __name__) # app.co...
30.231343
119
0.671439
8a023506ef9c85238c4e7c4ed3d44fec224ca8fa
7,693
py
Python
usaspending_api/accounts/views/financial_spending.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
usaspending_api/accounts/views/financial_spending.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
3
2020-02-12T01:16:46.000Z
2021-06-10T20:36:57.000Z
usaspending_api/accounts/views/financial_spending.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
from django.db.models import F, Sum, Case, Value, When from usaspending_api.accounts.serializers import (ObjectClassFinancialSpendingSerializer, MinorObjectClassFinancialSpendingSerializer) from usaspending_api.financial_activities.models import FinancialAccountsByProgr...
51.97973
120
0.716366
7d68f067b0c1585c0427e989b491aa6c3db49a0c
2,308
py
Python
setup.py
brl0/dask
9791ce6f6b283321138685c65d7e37b898d9876d
[ "BSD-3-Clause" ]
1
2021-10-05T02:08:05.000Z
2021-10-05T02:08:05.000Z
setup.py
brl0/dask
9791ce6f6b283321138685c65d7e37b898d9876d
[ "BSD-3-Clause" ]
1
2020-10-24T09:17:39.000Z
2020-10-24T09:17:39.000Z
setup.py
Illviljan/dask
df7f14b0b9da02c965a5a6da02de249531e06a7c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from os.path import exists from setuptools import setup import versioneer # NOTE: These are tested in `continuous_integration/test_imports.sh` If # you modify these, make sure to change the corresponding line there. extras_require = { "array": ["numpy >= 1.16"], "bag": [], ...
29.21519
88
0.647747
55eb223796e9a93abf120bd970e821454846fa25
22,174
py
Python
main_extra.py
ice-github/CoARiJAndCOTOHA
31e562d6ba14e8fa6c6c9e4c076bf3d410c4d1fa
[ "MIT" ]
null
null
null
main_extra.py
ice-github/CoARiJAndCOTOHA
31e562d6ba14e8fa6c6c9e4c076bf3d410c4d1fa
[ "MIT" ]
null
null
null
main_extra.py
ice-github/CoARiJAndCOTOHA
31e562d6ba14e8fa6c6c9e4c076bf3d410c4d1fa
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os import time import configparser import json from enum import Enum from typing import Dict, List from TopixCore30 import TopixCore30 from Nikkei255 import Nikkei255 from CompanyInformation import CompanyInformation from CompanyInformation import CompanyInformationRepository...
42.560461
188
0.620186