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
31ecb782be25a483f73139a3d3781cbd65bbb995
13,447
py
Python
tests/matrix_extern_irq_reset/matrix_extern_irq_reset.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
207
2019-11-12T11:42:25.000Z
2022-03-20T20:32:17.000Z
tests/matrix_extern_irq_reset/matrix_extern_irq_reset.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
31
2019-11-25T07:33:30.000Z
2022-03-17T12:34:34.000Z
tests/matrix_extern_irq_reset/matrix_extern_irq_reset.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
29
2019-11-07T02:25:48.000Z
2022-03-12T16:22:57.000Z
from __future__ import absolute_import from __future__ import print_function import os import sys import functools import math import numpy as np if sys.version_info.major < 3: from itertools import izip_longest as zip_longest else: from itertools import zip_longest # the next line can be removed after insta...
33.039312
93
0.533428
677ca5b0e1c29125ac2883a4cf35b55b7a9ea4d5
2,328
py
Python
roles/models/cta/cta_mixmatch.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
roles/models/cta/cta_mixmatch.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
7
2020-11-13T17:50:07.000Z
2022-02-10T02:17:14.000Z
roles/models/cta/cta_mixmatch.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
# Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.235294
87
0.675687
2f008983fdb56afb61f5759e739ffba9951f07f4
3,754
py
Python
tests/util/test_merkle.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
tests/util/test_merkle.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
tests/util/test_merkle.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
# This file is part of the Blockchain-based Fair Exchange Benchmark Tool # https://gitlab.com/MatthiasLohr/bfebench # # Copyright 2021-2022 Matthias Lohr <mail@mlohr.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 o...
35.752381
103
0.669952
19350fafd622afdc51cd5cfffa5ee18ce5f5f27f
22,151
py
Python
tensorflow_probability/python/internal/backend/numpy/ops.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
2
2019-10-30T04:45:07.000Z
2019-10-30T04:45:08.000Z
tensorflow_probability/python/internal/backend/numpy/ops.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/ops.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
30.937151
110
0.687012
13dce8f8f3e57ff4a6e01d63174a6da7ae30ef3d
76,244
py
Python
lib/galaxy/datatypes/interval.py
igorhollaender/sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
2
2018-10-14T16:42:39.000Z
2018-10-14T16:42:41.000Z
lib/galaxy/datatypes/interval.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/interval.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
""" Interval datatypes """ import logging import math import os import sys import tempfile import urllib import numpy from bx.intervals.io import GenomicIntervalReader, ParseError from galaxy import util from galaxy.datatypes import metadata from galaxy.datatypes.metadata import MetadataElement from galaxy.datatypes....
48.563057
208
0.52673
be5429303e0356e1730e3ab24c345369c08f6a49
614
py
Python
Lib/site-packages/ghtTests/trivialscript.py
Jriszz/guacamole-python
cf0dfcaaa7d85c3577571954fc5b2b9dcf55ba17
[ "MIT" ]
1
2021-11-02T06:48:13.000Z
2021-11-02T06:48:13.000Z
Lib/site-packages/ghtTests/trivialscript.py
Jriszz/guacamole-python
cf0dfcaaa7d85c3577571954fc5b2b9dcf55ba17
[ "MIT" ]
null
null
null
Lib/site-packages/ghtTests/trivialscript.py
Jriszz/guacamole-python
cf0dfcaaa7d85c3577571954fc5b2b9dcf55ba17
[ "MIT" ]
null
null
null
from __future__ import print_function import sys from twisted.application import reactors reactors.installReactor('qt4') from twisted.internet import reactor, task from twisted.python import log, runtime log.startLogging(sys.stdout) def testreactor(): print('tick...') def doit(): log.msg("reactor module...
21.172414
68
0.737785
77b344a2b70254578540c292396381035e9c4739
1,139
py
Python
setup.py
LuizHNLorena/jgraph
fa658299c07a588badcf4fb2cafa1fc68ac5e72d
[ "MIT" ]
91
2015-12-24T09:11:54.000Z
2022-01-22T21:18:50.000Z
setup.py
LuizHNLorena/jgraph
fa658299c07a588badcf4fb2cafa1fc68ac5e72d
[ "MIT" ]
12
2015-12-21T21:57:34.000Z
2019-12-18T17:33:22.000Z
setup.py
LuizHNLorena/jgraph
fa658299c07a588badcf4fb2cafa1fc68ac5e72d
[ "MIT" ]
28
2015-12-25T14:14:56.000Z
2021-12-10T06:24:35.000Z
from setuptools import setup from python import __version__ setup( name="jgraph", version=__version__, description="View graph data structures in the IPython notebook.", url="http://github.com/patrickfuller/jgraph/", license="MIT", author="Patrick Fuller", author_email="patrickfuller@gmail....
34.515152
70
0.614574
3f6aec647fcbf099ae720454868a43da376da8ce
1,424
py
Python
versions/paper.py
Advik-B/MC-Server-Installer
a52ed35eac828f220044b5a751c5f8ecf4d82f42
[ "MIT" ]
1
2021-08-15T11:23:09.000Z
2021-08-15T11:23:09.000Z
versions/paper.py
Advik-B/Server-Installer
a52ed35eac828f220044b5a751c5f8ecf4d82f42
[ "MIT" ]
null
null
null
versions/paper.py
Advik-B/Server-Installer
a52ed35eac828f220044b5a751c5f8ecf4d82f42
[ "MIT" ]
null
null
null
from versions.default import * class Paper(Server): def getlink(version_number:str) -> str: versions = { '1.10.2':'https://www.mediafire.com/file/1ds9hhiuvhazn5e/paper-1.10.2-916.jar/file', '1.11.2':'https://www.mediafire.com/file/eeidpu8dcg0h23v/paper-1.11.2-1104.jar/fi...
38.486486
97
0.606039
7968cb2897c532040d9f32f888ffdb6e6422ba4f
2,706
py
Python
modules/filter.py
TheHercules/Telegram-UserBot
62f7abf68eaf729779f9e0c4af4c000445d6136b
[ "Unlicense" ]
2
2018-10-23T09:15:18.000Z
2019-02-14T11:47:08.000Z
modules/filter.py
pkp1337x/Telegram-UserBot
f139a1b09f01da795a663fc8ff9d147ecc51e8de
[ "Unlicense" ]
null
null
null
modules/filter.py
pkp1337x/Telegram-UserBot
f139a1b09f01da795a663fc8ff9d147ecc51e8de
[ "Unlicense" ]
null
null
null
import sqlite3 @bot.on(events.NewMessage(incoming=True)) @bot.on(events.MessageEdited(incoming=True)) async def filter_incoming_handler(e): db=sqlite3.connect("filters.db") cursor=db.cursor() cursor.execute('''SELECT * FROM FILTER''') all_rows = cursor.fetchall() for row in all_rows: if int(...
41
101
0.642646
abf0666002d1b2b7d4794d89adf2a0ee200d4d85
1,651
py
Python
stonesoup/predictor/base.py
riskaware-ltd/Stone-Soup
ef3a2fb7e121c00dcf458e370794db3785b732e3
[ "MIT" ]
null
null
null
stonesoup/predictor/base.py
riskaware-ltd/Stone-Soup
ef3a2fb7e121c00dcf458e370794db3785b732e3
[ "MIT" ]
4
2020-03-10T13:51:00.000Z
2020-03-23T12:38:24.000Z
stonesoup/predictor/base.py
riskaware-ltd/Stone-Soup
ef3a2fb7e121c00dcf458e370794db3785b732e3
[ "MIT" ]
1
2019-12-09T14:33:09.000Z
2019-12-09T14:33:09.000Z
# -*- coding: utf-8 -*- """Base classes for Stone Soup Predictor interface""" from abc import abstractmethod from ..base import Base, Property from ..models.transition import TransitionModel from ..models.control import ControlModel class Predictor(Base): r"""Predictor base class A predictor is used to pred...
32.372549
77
0.632344
1ae23d05c78cd40b3775e9824b2fd1f3576cba5a
404
py
Python
timeseries/computeError.py
Thanduriel/NeuralTurbulence
044729c39b77b0acf73071b15c5ddfa79cb1f9cb
[ "MIT" ]
null
null
null
timeseries/computeError.py
Thanduriel/NeuralTurbulence
044729c39b77b0acf73071b15c5ddfa79cb1f9cb
[ "MIT" ]
null
null
null
timeseries/computeError.py
Thanduriel/NeuralTurbulence
044729c39b77b0acf73071b15c5ddfa79cb1f9cb
[ "MIT" ]
null
null
null
import numpy as np import sys sys.path.append("../utils") import ioext # Computes the L2 error of the given numpy arrays. def error(array1, array2): dif = np.subtract(array1, array2) return np.linalg.norm(dif.flatten(), ord=2) densities = ioext.loadData("data/validation32New/density_*.uni") total = 0 for i in ran...
23.764706
64
0.725248
44a3de06c0518aebb55cfa8f2a1bbfd7551df14d
837
py
Python
aigpyqt/__init__.py
AIGMix/AIGPYQT
a814758d6a1dbdc75cc4ef794470c4686d28685d
[ "MIT" ]
null
null
null
aigpyqt/__init__.py
AIGMix/AIGPYQT
a814758d6a1dbdc75cc4ef794470c4686d28685d
[ "MIT" ]
null
null
null
aigpyqt/__init__.py
AIGMix/AIGPYQT
a814758d6a1dbdc75cc4ef794470c4686d28685d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : __init__.py @Date : 2021/05/08 @Author : Yaronzz @Version : 1.0 @Contact : yaronhuang@foxmail.com @Desc : ''' import sys import aigpy import aigpyqt.theme from PyQt5.Qt import * from aigpyqt.page.loginView import LoginView loginView = None d...
22.621622
70
0.691756
fab9e5b224f9e9778b3077b5ce0d556705ac6ea4
788
py
Python
recipes/libnsgif/all/test_package/conanfile.py
Speak2Erase/conan-center-index
36ef6081cd4cd201542bd9790cc654c4eafe7b0f
[ "MIT" ]
null
null
null
recipes/libnsgif/all/test_package/conanfile.py
Speak2Erase/conan-center-index
36ef6081cd4cd201542bd9790cc654c4eafe7b0f
[ "MIT" ]
null
null
null
recipes/libnsgif/all/test_package/conanfile.py
Speak2Erase/conan-center-index
36ef6081cd4cd201542bd9790cc654c4eafe7b0f
[ "MIT" ]
null
null
null
import os from conans import ConanFile, tools from conan.tools.cmake import CMake from conan.tools.layout import cmake_layout class LibnsgifTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" # VirtualBuildEnv and VirtualRunEnv can be avoided if "tools.env.virtualenv:auto_use" is defined ...
29.185185
100
0.668782
a51e8a2285d0ed669d164028ece47abad9db855a
1,871
py
Python
speaking_portfolio/migrations/0007_add_coverage_model.py
jacobian/jacobian.org
cacff78aa68cb1585a63c04ff5bd7fc484066730
[ "Apache-2.0" ]
8
2018-11-12T21:11:18.000Z
2020-10-20T09:03:54.000Z
speaking_portfolio/migrations/0007_add_coverage_model.py
jacobian/jacobian.org
cacff78aa68cb1585a63c04ff5bd7fc484066730
[ "Apache-2.0" ]
5
2018-11-28T12:56:57.000Z
2020-02-05T21:56:48.000Z
speaking_portfolio/migrations/0007_add_coverage_model.py
jacobian/jacobian.org
cacff78aa68cb1585a63c04ff5bd7fc484066730
[ "Apache-2.0" ]
5
2018-11-19T16:47:15.000Z
2020-02-14T22:34:26.000Z
# Generated by Django 2.1.3 on 2018-11-16 00:21 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django_postgres_unlimited_varchar class Migration(migrations.Migration): dependencies = [ ("speaking_portfolio", "0006_drop_confere...
31.711864
79
0.403528
ebb78a041769cb8b3ecf52fdf5766ac97740e671
9,066
py
Python
classroom/views/teachers.py
jtryan/AssessmentApplication
d7559957fcbce9eac3739dcf2bba366edcd3363b
[ "MIT" ]
null
null
null
classroom/views/teachers.py
jtryan/AssessmentApplication
d7559957fcbce9eac3739dcf2bba366edcd3363b
[ "MIT" ]
null
null
null
classroom/views/teachers.py
jtryan/AssessmentApplication
d7559957fcbce9eac3739dcf2bba366edcd3363b
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import login from django.contrib.auth.decorators import login_required from django.db import transaction from django.db.models import Avg, Count from django.forms import inlineformset_factory from django.shortcuts import get_object_or_404, redirect, render fr...
37.155738
113
0.688396
e4237ed0776e04a4dc0f96893d6192a0fbc0bfa2
6,265
py
Python
find_relationships.py
Ernir/icelanders-on-twitter
1cd08e735bc622d44e96d18e7e04a0a7e0cb9665
[ "MIT" ]
null
null
null
find_relationships.py
Ernir/icelanders-on-twitter
1cd08e735bc622d44e96d18e7e04a0a7e0cb9665
[ "MIT" ]
null
null
null
find_relationships.py
Ernir/icelanders-on-twitter
1cd08e735bc622d44e96d18e7e04a0a7e0cb9665
[ "MIT" ]
null
null
null
from pprint import pprint import os import json from time import time import tweepy def get_tweepy_instance(): """ Reads credentials from environment variables and returns a Tweepy instance. """ consumer_key = os.environ.get("ERNIRNET_TWITTER_APP_ID") consumer_secret = os.environ.get("ERNIRNET_TW...
36.005747
118
0.68332
2bb240936067da76ac5445b23514763a9d05014d
7,773
py
Python
tests/test_tversky_loss.py
benduffy1/MONAI
046e625b09262261373d7b8039fb652547201368
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_tversky_loss.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
null
null
null
tests/test_tversky_loss.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
1
2020-05-27T12:53:58.000Z
2020-05-27T12:53:58.000Z
# Copyright (c) MONAI Consortium # 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, so...
41.566845
119
0.487328
831a8fbfc0a2088437ce47ecdd01a6351032a489
3,630
py
Python
libetrv/data_struct.py
AdamStrojek/libetrv
28a48676f15180d71feadca163859d4b2d8832c3
[ "Apache-2.0" ]
36
2019-06-20T09:00:19.000Z
2022-01-26T23:36:46.000Z
libetrv/data_struct.py
AdamStrojek/libetrv
28a48676f15180d71feadca163859d4b2d8832c3
[ "Apache-2.0" ]
23
2019-05-10T09:47:05.000Z
2021-09-28T22:19:31.000Z
libetrv/data_struct.py
AdamStrojek/libetrv
28a48676f15180d71feadca163859d4b2d8832c3
[ "Apache-2.0" ]
14
2019-10-28T01:29:29.000Z
2021-02-10T19:54:35.000Z
import enum from .properties import eTRVData, eTRVSingleData from .fields import eTRVField, TemperatureField, UTCDateTimeField, LocalDateTimeField, EnumField, \ HexField, TextField, BitField class BatteryData(eTRVSingleData): battery = eTRVField(read_only=True) class Meta: structure = { ...
27.709924
101
0.622865
f2d93478688e5faa20126822fc567b09c05fc7fc
569
py
Python
test/rules/test_bite_child.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
test/rules/test_bite_child.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
test/rules/test_bite_child.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
from smartva.rules import bite_child as bite from smartva.data.constants import * VA = Child def test_pass(): row = { VA.BITE: YES, VA.INJURY_DAYS: 0, } assert bite.logic_rule(row) is True def test_fail_bite(): row = { VA.BITE: NO, VA.INJURY_DAYS: 0, } asse...
14.973684
44
0.599297
e8adedc05b8e2d3d6f2457179753a4f571f787f9
12,446
py
Python
parlai/tasks/multidogo/build.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-03-13T21:02:22.000Z
2022-03-13T21:02:22.000Z
parlai/tasks/multidogo/build.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-01-18T09:14:27.000Z
2022-01-18T09:14:27.000Z
parlai/tasks/multidogo/build.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-01-24T13:22:18.000Z
2022-01-24T13:22:18.000Z
#!/usr/bin/env python3 # 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. import parlai.core.build_data as build_data from parlai.core.build_data import DownloadableFile import csv from itertoo...
37.375375
121
0.676764
1fbfef5b5f45c87385bf1b1860ed8a395724d17a
8,022
py
Python
pex/vendor/__init__.py
jneuff/pex
f7eb554ecdbfdb9cd24a793b4dda358035e26855
[ "Apache-2.0" ]
null
null
null
pex/vendor/__init__.py
jneuff/pex
f7eb554ecdbfdb9cd24a793b4dda358035e26855
[ "Apache-2.0" ]
null
null
null
pex/vendor/__init__.py
jneuff/pex
f7eb554ecdbfdb9cd24a793b4dda358035e26855
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import collections import os from pex.common import filter_pyc_dirs, filter_pyc_files, touch from pex.compatibility import urlparse from pex.tracer...
42.670213
109
0.639865
05bd693ed23d6ac36953df0e3331778102f52fde
17,416
py
Python
google/cloud/gaming_v1/services/realms_service/transports/grpc.py
renovate-bot/python-game-servers
d60305505e0afbed940a2a7f0c1a6fc0e6eca56d
[ "Apache-2.0" ]
null
null
null
google/cloud/gaming_v1/services/realms_service/transports/grpc.py
renovate-bot/python-game-servers
d60305505e0afbed940a2a7f0c1a6fc0e6eca56d
[ "Apache-2.0" ]
null
null
null
google/cloud/gaming_v1/services/realms_service/transports/grpc.py
renovate-bot/python-game-servers
d60305505e0afbed940a2a7f0c1a6fc0e6eca56d
[ "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...
42.791155
87
0.631833
e26490a446b4843739b32641e1a95211864cb58f
8,781
py
Python
test/units/modules/network/f5/test_bigip_command.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/units/modules/network/f5/test_bigip_command.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/units/modules/network/f5/test_bigip_command.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import json import sys from nose.plugins.skip import SkipTest i...
30.071918
91
0.613028
64a60980f86d283938f5b5efaa137005cf7c282d
3,103
py
Python
setup.py
xiaomengy/moolib
d46826b4dead28e7a9be6545f46bcf159c77ca17
[ "MIT" ]
2
2022-02-08T02:42:22.000Z
2022-02-10T03:41:54.000Z
setup.py
xiaomengy/moolib
d46826b4dead28e7a9be6545f46bcf159c77ca17
[ "MIT" ]
null
null
null
setup.py
xiaomengy/moolib
d46826b4dead28e7a9be6545f46bcf159c77ca17
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Facebook, Inc. and its affiliates. # # To install: pip install . # # For debug builds: python setup.py build --debug install # # The environment variable USE_CUDA can be set to "OFF" (or 0). # import os import pathlib import subprocess import sys import setuptools from setuptoo...
31.989691
88
0.614567
b0fc72a05a6d7210e5155a3f940d34eb99842c4d
8,645
py
Python
tests/api/benchmark/test_permission_group.py
baitsanape/saleor
9594b40fb23bb6e665ba207c8ef436043e372bba
[ "CC-BY-4.0" ]
2
2020-05-28T19:29:33.000Z
2020-05-28T19:29:39.000Z
tests/api/benchmark/test_permission_group.py
baitsanape/saleor
9594b40fb23bb6e665ba207c8ef436043e372bba
[ "CC-BY-4.0" ]
13
2021-03-19T02:54:47.000Z
2022-03-12T00:36:26.000Z
tests/api/benchmark/test_permission_group.py
baitsanape/saleor
9594b40fb23bb6e665ba207c8ef436043e372bba
[ "CC-BY-4.0" ]
1
2020-05-15T18:18:52.000Z
2020-05-15T18:18:52.000Z
import graphene import pytest from django.contrib.auth.models import Group from saleor.core.permissions import AccountPermissions from tests.api.utils import get_graphql_content @pytest.mark.django_db @pytest.mark.count_queries(autouse=False) def test_permission_group_create( staff_user, permission_manage_st...
27.797428
86
0.595604
facb1ab8b0e67ee945169f2cf225a64e4303e93b
4,784
py
Python
pypureclient/flasharray/FA_2_6/models/session_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_6/models/session_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_6/models/session_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
36.8
524
0.60556
ce4b29e97a1dc1db0ab9476748a50f68188b3598
25,644
py
Python
code_summary/onmt/translate/translator.py
Nrgeup/review_assistant
bf03d62773501b84069afcc8b3da66d6d7829218
[ "Apache-2.0" ]
1
2020-01-17T00:41:51.000Z
2020-01-17T00:41:51.000Z
code_summary/onmt/translate/translator.py
Nrgeup/review_assistant
bf03d62773501b84069afcc8b3da66d6d7829218
[ "Apache-2.0" ]
null
null
null
code_summary/onmt/translate/translator.py
Nrgeup/review_assistant
bf03d62773501b84069afcc8b3da66d6d7829218
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Translator Class and builder """ from __future__ import print_function import codecs import os import math import time from itertools import count import torch import onmt.model_builder import onmt.inputters as inputters import onmt.decoders.ensemble from onmt.translate.beam_search import Be...
38.047478
79
0.563368
9b3deadc900c6a8d3c71ad795785a21ab7b044da
2,747
py
Python
src/garage/tf/distributions/bernoulli.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
src/garage/tf/distributions/bernoulli.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
src/garage/tf/distributions/bernoulli.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from garage.tf.distributions.base import Distribution TINY = 1e-8 class Bernoulli(Distribution): def __init__(self, dim, name='Bernoulli'): self._name = name self._dim = dim @property def dim(self): return self._dim def kl_sym(sel...
35.217949
83
0.495086
92fb8180b972de53bb253c06e1b38359376ef11e
1,180
py
Python
clay/markdown_ext/md_superscript.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
clay/markdown_ext/md_superscript.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
clay/markdown_ext/md_superscript.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
# coding=utf-8 """ Superscipt extension for Markdown ================================== Examples: >>> import markdown >>> md = markdown.Markdown(extensions=[SuperscriptExtension()]) >>> md.convert('lorem ipsum^1 sit.') u'<p>lorem ipsum<sup>1</sup> sit.</p>' >>> md.convert('6.02 x 10^23') u'<p>6.02 x 10<sup>23</sup>...
23.137255
75
0.616102
c0c91e4430ccbb59fc5f0b146c18d4971a58198b
1,282
py
Python
dict_read.py
liaocm/LLHTranslate
c3e62f91b9f8b3594ce07601e123f0757efe63f3
[ "Apache-2.0" ]
null
null
null
dict_read.py
liaocm/LLHTranslate
c3e62f91b9f8b3594ce07601e123f0757efe63f3
[ "Apache-2.0" ]
null
null
null
dict_read.py
liaocm/LLHTranslate
c3e62f91b9f8b3594ce07601e123f0757efe63f3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import io, sys def verify_line(line): if not line: return -1 if line == '\n': return 1 return 0 def read_dict(fname, show_warning=True): content = dict() try: fd = io.open(fname, 'r') except BaseException: sys.exit("Unable to open the dictionary.") line_num = 1 ...
26.708333
97
0.641186
02465a2f656014272a2fa4896a41ebcd98e6c5d8
1,463
py
Python
ooobuild/lo/configuration/backend/merge_importer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/configuration/backend/merge_importer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/configuration/backend/merge_importer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
31.804348
147
0.74026
d201c51658bb23fef026f46026d60002b900ac20
1,730
py
Python
plotly/validators/candlestick/hoverlabel/_font.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/candlestick/hoverlabel/_font.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
null
null
null
plotly/validators/candlestick/hoverlabel/_font.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='font', parent_name='candlestick.hoverlabel', **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, ...
35.306122
68
0.537572
6fe02521649d88d87fe829b3712574c90316d3f1
5,486
py
Python
detection/dota15_demo.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
detection/dota15_demo.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
detection/dota15_demo.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
import cv2 import math import mmcv import numpy as np import os import pdb from mmcv import Config from tqdm import tqdm from argparse import ArgumentParser import DOTA_devkit.polyiou as polyiou from mmdet.apis import init_detector, inference_detector, draw_poly_detections from mmdet.datasets import get_dataset dota...
35.166667
118
0.556325
53c67ddc4d522fcc2aa592daeb46c15301b5636a
7,276
py
Python
mealpy/dummy/PIO.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
162
2020-08-31T10:13:06.000Z
2022-03-31T09:38:19.000Z
mealpy/dummy/PIO.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
51
2020-09-13T10:46:31.000Z
2022-03-30T06:12:08.000Z
mealpy/dummy/PIO.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
58
2020-09-12T13:29:18.000Z
2022-03-31T09:38:21.000Z
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 11:41, 08/04/2020 % # ...
53.5
131
0.529962
4ce39ad8be08a0d7a389868b75324c47d637fec9
39,651
py
Python
datalad/metadata/aggregate.py
jelmer/datalad
fedc04867d87e0191bd500991d0df97e97113457
[ "MIT" ]
null
null
null
datalad/metadata/aggregate.py
jelmer/datalad
fedc04867d87e0191bd500991d0df97e97113457
[ "MIT" ]
null
null
null
datalad/metadata/aggregate.py
jelmer/datalad
fedc04867d87e0191bd500991d0df97e97113457
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
41.737895
148
0.638496
bb73395bd605264ccf66f386c60be56bb28c7a54
201
py
Python
tests/test_project/api/urls.py
ShreeshaRelysys/openwisp-utils
7c0b5f249b0e8e1f3af7bf1942b6543c9375dd75
[ "BSD-3-Clause" ]
80
2017-06-28T08:17:41.000Z
2022-03-29T19:38:31.000Z
tests/test_project/api/urls.py
ShreeshaRelysys/openwisp-utils
7c0b5f249b0e8e1f3af7bf1942b6543c9375dd75
[ "BSD-3-Clause" ]
275
2017-06-22T09:57:40.000Z
2022-03-29T19:20:12.000Z
tests/test_project/api/urls.py
ShreeshaRelysys/openwisp-utils
7c0b5f249b0e8e1f3af7bf1942b6543c9375dd75
[ "BSD-3-Clause" ]
91
2017-06-22T10:12:16.000Z
2022-03-19T12:53:55.000Z
from django.urls import re_path from . import views urlpatterns = [ re_path( r'^receive_project/(?P<pk>[^/\?]+)/$', views.receive_project, name='receive_project', ) ]
16.75
46
0.587065
9c79db4eb1cafba18fee252bb250583513fc7c12
2,294
py
Python
endpage.py
MarcelloEdocia/battleship_remake
ab26edbfc42dae5d96d11540f7f14fc7f1bbbf68
[ "Apache-2.0" ]
null
null
null
endpage.py
MarcelloEdocia/battleship_remake
ab26edbfc42dae5d96d11540f7f14fc7f1bbbf68
[ "Apache-2.0" ]
null
null
null
endpage.py
MarcelloEdocia/battleship_remake
ab26edbfc42dae5d96d11540f7f14fc7f1bbbf68
[ "Apache-2.0" ]
null
null
null
import tkinter class EndPage(tkinter.Frame): def __init__(self, parent, App): self.application = App self.config = App.config super().__init__(parent) self.configure(bg="grey") self.grid(row=0, column=0, sticky="nsew") parent.grid_rowconfigure(0, weight=...
44.980392
233
0.664342
bf5ce8942686127a7a2d145cf0175f61e09e54c7
4,882
py
Python
tests/e2e/tests/test_kiali_workload_endpoint.py
jsloyer/kiali
bd7e97b46c936fe9ce0d9fffa3b89d06f676c24e
[ "Apache-2.0" ]
null
null
null
tests/e2e/tests/test_kiali_workload_endpoint.py
jsloyer/kiali
bd7e97b46c936fe9ce0d9fffa3b89d06f676c24e
[ "Apache-2.0" ]
null
null
null
tests/e2e/tests/test_kiali_workload_endpoint.py
jsloyer/kiali
bd7e97b46c936fe9ce0d9fffa3b89d06f676c24e
[ "Apache-2.0" ]
null
null
null
import pytest import tests.conftest as conftest import time from utils.command_exec import command_exec from utils.timeout import timeout WORKLOAD_TO_VALIDATE = 'details-v1' WORKLOAD_TYPE = 'Deployment' BOOKINFO_WORKLOADS_COUNT = 6 EXTRA_WORKLOAD_COUNT = 4 EXTRA_WORKLOADS = set(['details-v2', 'reviews-v4', 'reviews-v5...
42.452174
147
0.723884
d40b0e6d3c923233ed749f2749e1c5a5a27bc1ce
4,348
py
Python
docs/conf.py
wesleykendall/django-kmatch
0ca5d8465461210aa98fd3fb9afd2ec3838a4f9b
[ "MIT" ]
null
null
null
docs/conf.py
wesleykendall/django-kmatch
0ca5d8465461210aa98fd3fb9afd2ec3838a4f9b
[ "MIT" ]
2
2015-03-27T18:10:34.000Z
2015-03-30T17:39:44.000Z
docs/conf.py
wesleykendall/django-kmatch
0ca5d8465461210aa98fd3fb9afd2ec3838a4f9b
[ "MIT" ]
5
2015-03-27T17:49:20.000Z
2016-11-28T22:29:54.000Z
# -*- coding: utf-8 -*- # # django-kmatch documentation build configuration file import os import re def get_version(): """ Extracts the version number from the version.py file. """ VERSION_FILE = '../django_kmatch/version.py' mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FIL...
30.619718
96
0.663293
b28296d62c8c5fdb41c330ad745a325f3e511dc9
936
py
Python
get_data.py
himoto/3d-surface-plot
733c5195b1b35a218fdce51d6aa49a67f4159e95
[ "MIT" ]
2
2020-07-01T18:49:16.000Z
2021-12-22T12:14:51.000Z
get_data.py
himoto/3d-surface-plot
733c5195b1b35a218fdce51d6aa49a67f4159e95
[ "MIT" ]
null
null
null
get_data.py
himoto/3d-surface-plot
733c5195b1b35a218fdce51d6aa49a67f4159e95
[ "MIT" ]
null
null
null
import os import numpy as np from biomass.dynamics.solver import * from tqdm import tqdm from model import * def compute_matrix(): os.makedirs("data", exist_ok=True) sim_n = 101 sim_t = range(5401) sim_ligand = ["EGF", "HRG"] z_cFosmRNA = np.empty((len(sim_ligand), sim_n, len(sim_t))) norm...
28.363636
69
0.595085
83c0aa5a04c40b72fb40975c94f5be4c44f968a1
12,636
py
Python
tfx/extensions/google_cloud_ai_platform/runner.py
seyedrezamirkhani/tfx
b2dc2338b27d6ccf1cae690e65c4e358e17ec626
[ "Apache-2.0" ]
1
2021-07-21T15:54:20.000Z
2021-07-21T15:54:20.000Z
tfx/extensions/google_cloud_ai_platform/runner.py
seyedrezamirkhani/tfx
b2dc2338b27d6ccf1cae690e65c4e358e17ec626
[ "Apache-2.0" ]
1
2020-08-28T09:59:13.000Z
2020-08-28T09:59:13.000Z
tfx/extensions/google_cloud_ai_platform/runner.py
seyedrezamirkhani/tfx
b2dc2338b27d6ccf1cae690e65c4e358e17ec626
[ "Apache-2.0" ]
1
2020-11-06T11:44:33.000Z
2020-11-06T11:44:33.000Z
# Lint as: python3 # Copyright 2019 Google LLC. 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 ...
40.114286
94
0.714941
17fd2f4f724fa323f264ea8111f1726eb7895c5e
850
py
Python
apoli/apoli/urls.py
masaki1002/backend
24d186f3a224a0ee0e8f410b9c0d4832881c21e3
[ "MIT" ]
null
null
null
apoli/apoli/urls.py
masaki1002/backend
24d186f3a224a0ee0e8f410b9c0d4832881c21e3
[ "MIT" ]
null
null
null
apoli/apoli/urls.py
masaki1002/backend
24d186f3a224a0ee0e8f410b9c0d4832881c21e3
[ "MIT" ]
null
null
null
"""apoli URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
35.416667
77
0.696471
7a30ecc970c7975dfeda75d8772592219d20fa7a
1,535
py
Python
tests/events/test_mq.py
chuckwondo/aws-lambda-typing
8417ab67f2492be1508fe38b2c34bc106619a56d
[ "MIT" ]
29
2021-01-07T13:35:16.000Z
2022-03-25T07:20:54.000Z
tests/events/test_mq.py
chuckwondo/aws-lambda-typing
8417ab67f2492be1508fe38b2c34bc106619a56d
[ "MIT" ]
13
2021-02-28T00:31:00.000Z
2022-03-29T15:24:01.000Z
tests/events/test_mq.py
chuckwondo/aws-lambda-typing
8417ab67f2492be1508fe38b2c34bc106619a56d
[ "MIT" ]
5
2021-02-27T13:50:42.000Z
2022-01-13T15:05:44.000Z
from aws_lambda_typing.events import MQEvent def test_mq_event() -> None: event: MQEvent = { "eventSource": "aws:amq", "eventSourceArn": "arn:aws:mq:us-west-2:112556298976:broker:test:b-9bcfa592-423a-4942-879d-eb284b418fc8", # noqa: E501 "messages": { [ { ...
43.857143
150
0.49772
81f132148495342e6188c1aca3e6d01510a0be15
1,462
py
Python
custom/nic_compliance/tests/test_utils.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
custom/nic_compliance/tests/test_utils.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
custom/nic_compliance/tests/test_utils.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.test import TestCase from custom.nic_compliance.utils import extract_password OBFUSCATED_PASSWORD_MAPPING = { "sha256$1e2d5bc2hhMjU2JDFlMmQ1Yk1USXpORFUyZjc5MTI3PQ==f79127=": "123456", "sha256$8f5008c2hhMjU2JDhmNTAwOFlXSmpNVEl6TFE9PTRhNjBhOT0=4a60a9=": "abc123-", "sha256$4bf7cdc2hhMjU2JDRiZjdjZ...
48.733333
103
0.787962
2584aaa1d2f37ee517c9ac1bce084409d8b80da8
1,094
py
Python
week7-8/week8/hw32/file_stats.py
fac33/py_intro_exercise
e2c3f3044537b5cc8980bf7aa7651fd16c5fd34b
[ "MIT" ]
null
null
null
week7-8/week8/hw32/file_stats.py
fac33/py_intro_exercise
e2c3f3044537b5cc8980bf7aa7651fd16c5fd34b
[ "MIT" ]
null
null
null
week7-8/week8/hw32/file_stats.py
fac33/py_intro_exercise
e2c3f3044537b5cc8980bf7aa7651fd16c5fd34b
[ "MIT" ]
null
null
null
################################################################################ # Author:Fanyang Cheng # Date:27/03/2021 # Description: This file read one sepcific text file and track the number of words #, number of lines and the average words per line. ################################################################...
40.518519
106
0.508227
7bd8f8d78b2c4f5dccb96fea010dd3900e9e48d8
812
py
Python
log_offload/__init__.py
our-city-app/log-offload
1842dbd6d10af4435582f1d1a9994c9dc15c6d0c
[ "Apache-2.0" ]
null
null
null
log_offload/__init__.py
our-city-app/log-offload
1842dbd6d10af4435582f1d1a9994c9dc15c6d0c
[ "Apache-2.0" ]
1
2018-09-13T11:00:59.000Z
2022-03-23T08:31:35.000Z
log_offload/__init__.py
our-city-app/log-offload
1842dbd6d10af4435582f1d1a9994c9dc15c6d0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Green Valley Belgium NV # NOTICE: THIS FILE HAS BEEN MODIFIED BY GREEN VALLEY BELGIUM NV IN ACCORDANCE WITH THE APACHE LICENSE VERSION 2.0 # Copyright 2018 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in...
38.666667
114
0.751232
ce57b1f3c2f669f588fcecc073631f78263acb2c
4,707
py
Python
amazon_paapi/sdk/models/browse_node_info.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
121
2020-03-07T06:56:56.000Z
2022-03-30T21:03:43.000Z
amazon_paapi/sdk/models/browse_node_info.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
61
2020-03-03T11:03:58.000Z
2022-01-20T19:27:49.000Z
amazon_paapi/sdk/models/browse_node_info.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
29
2020-03-04T18:08:22.000Z
2022-03-25T18:49:46.000Z
# coding: utf-8 """ Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://www.apache.org/licenses/LICENSE-2.0 ...
29.980892
95
0.619503
e15a63067e4ac44d9fcc3899f66fff79b14de19e
6,685
py
Python
chemdataextractor/parse/nmr.py
edbeard/chemdataextractor-uvvis2018
a5750d5313a250468e29d244cd4aeafdfc3250da
[ "MIT" ]
6
2019-12-05T17:10:19.000Z
2021-08-10T15:15:10.000Z
chemdataextractor/parse/nmr.py
edbeard/chemdataextractor-uvvis2018
a5750d5313a250468e29d244cd4aeafdfc3250da
[ "MIT" ]
null
null
null
chemdataextractor/parse/nmr.py
edbeard/chemdataextractor-uvvis2018
a5750d5313a250468e29d244cd4aeafdfc3250da
[ "MIT" ]
2
2020-06-29T06:58:53.000Z
2021-03-21T08:39:36.000Z
# -*- coding: utf-8 -*- """ chemdataextractor.parse.nmr ~~~~~~~~~~~~~~~~~~~~~~~~~~~ NMR text parser. :copyright: Copyright 2016 by Matt Swain. :license: MIT, see LICENSE file for more details. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __futu...
44.865772
257
0.577711
ac2da2f89add792a14eadb69d2d8b44ae798cd56
590
py
Python
nengo/utils/neurons.py
pedrombmachado/nengo
abc85e1a75ce2f980e19eef195d98081f95efd28
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/neurons.py
pedrombmachado/nengo
abc85e1a75ce2f980e19eef195d98081f95efd28
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/neurons.py
pedrombmachado/nengo
abc85e1a75ce2f980e19eef195d98081f95efd28
[ "BSD-2-Clause" ]
null
null
null
from nengo.exceptions import MovedError def spikes2events(*args, **kwargs): raise MovedError(location="nengo_extras.neurons") def _rates_isi_events(*args, **kwargs): raise MovedError(location="nengo_extras.neurons") def rates_isi(*args, **kwargs): raise MovedError(location="nengo_extras.neurons") de...
22.692308
53
0.747458
92c416223b4fd21f3533a253df13ff23e2b0ef77
14,251
py
Python
wyze_sdk/service/base.py
mrdranias/wyze-sdk
ab329092eca1f4b00264e18a42da8d0e7e4bf71c
[ "Unlicense" ]
null
null
null
wyze_sdk/service/base.py
mrdranias/wyze-sdk
ab329092eca1f4b00264e18a42da8d0e7e4bf71c
[ "Unlicense" ]
null
null
null
wyze_sdk/service/base.py
mrdranias/wyze-sdk
ab329092eca1f4b00264e18a42da8d0e7e4bf71c
[ "Unlicense" ]
null
null
null
from __future__ import annotations import logging import platform import sys import time import uuid from abc import ABCMeta from contextlib import suppress from json import dumps from typing import Dict, Optional, Union from urllib.parse import urljoin import requests from wyze_sdk import version from wyze_sdk.erro...
37.901596
173
0.604308
a7e7408c9152580b48d14a73a3cd7970174eb732
949
py
Python
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_tag_create_batch_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_tag_create_batch_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
null
null
null
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_tag_create_batch_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
31.633333
91
0.586934
fbf02a8244b372c9e2ed168da237cb2c18234951
3,772
py
Python
lemur_cms/settings.py
lemur-cms/lemur-cms
6dfa087f9c16f1452c0af935855abfedd73fa239
[ "BSD-2-Clause" ]
null
null
null
lemur_cms/settings.py
lemur-cms/lemur-cms
6dfa087f9c16f1452c0af935855abfedd73fa239
[ "BSD-2-Clause" ]
2
2022-02-12T23:03:18.000Z
2022-02-26T19:08:27.000Z
lemur_cms/settings.py
lemur-cms/lemur-cms
6dfa087f9c16f1452c0af935855abfedd73fa239
[ "BSD-2-Clause" ]
1
2019-10-19T22:21:33.000Z
2019-10-19T22:21:33.000Z
from __future__ import absolute_import import os from django.apps import apps from lemur_cms.base import lemur_cms, default from lemur_cms.utils.settings import merge import os import six import logging import warnings from django.apps import apps from lemur_cms.conf.spec import DJANGO_CONF from lemur_cms.base impor...
26.013793
91
0.688759
403bdbad1bd39062aa5916f154e0f36dd271e115
735
py
Python
docs/examples/container/kubernetes/instantiate_driver.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
null
null
null
docs/examples/container/kubernetes/instantiate_driver.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2021-12-06T12:29:13.000Z
2021-12-06T12:29:13.000Z
docs/examples/container/kubernetes/instantiate_driver.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2019-08-05T10:12:02.000Z
2019-08-05T10:12:02.000Z
from libcloud.container.types import Provider from libcloud.container.providers import get_driver cls = get_driver(Provider.KUBERNETES) # 1. Client side cert auth conn = cls( host="192.168.99.103", port=8443, secure=True, key_file="/home/user/.minikube/client.key", cert_file="/home/user/.minikube/...
25.344828
87
0.717007
258c730049a5832c9489afb89c6c88f5b191e95c
12,757
py
Python
tests/requirements.py
DanCardin/alembic
2719c0ef1917af0b74b9d642a75c9b6dd5cf537a
[ "MIT" ]
1,324
2018-11-27T05:44:41.000Z
2022-03-30T19:49:20.000Z
tests/requirements.py
DanCardin/alembic
2719c0ef1917af0b74b9d642a75c9b6dd5cf537a
[ "MIT" ]
452
2018-11-27T22:43:38.000Z
2022-03-28T04:33:43.000Z
tests/requirements.py
DanCardin/alembic
2719c0ef1917af0b74b9d642a75c9b6dd5cf537a
[ "MIT" ]
159
2018-11-29T18:46:15.000Z
2022-03-28T16:34:19.000Z
from sqlalchemy import exc as sqla_exc from sqlalchemy import text from alembic.testing import exclusions from alembic.testing.requirements import SuiteRequirements from alembic.util import compat from alembic.util import sqla_compat class DefaultRequirements(SuiteRequirements): @property def unicode_string(...
32.214646
78
0.586502
9485a808d7b665f3fe3f2188435263697d4a4d59
2,376
py
Python
src/Algopylib/algo/sort.py
siddhartha18101/Algopylib
5890fbb20ae9998a4ade9f7e3df602b24e49ea17
[ "MIT" ]
null
null
null
src/Algopylib/algo/sort.py
siddhartha18101/Algopylib
5890fbb20ae9998a4ade9f7e3df602b24e49ea17
[ "MIT" ]
null
null
null
src/Algopylib/algo/sort.py
siddhartha18101/Algopylib
5890fbb20ae9998a4ade9f7e3df602b24e49ea17
[ "MIT" ]
null
null
null
from typing import List, Union def bubble_sort(arr : List , simulation : bool = False) -> List: """Sorts A List using bubble sort algorithm https://en.wikipedia.org/wiki/Bubble_sort Worst-case performance: O(N^2) Parameters: arr(List) : Unsorted List simulation(bool) : to enable simul...
30.461538
174
0.539983
9e4cb5022fa7a44ee0abf8b70020c173a1196146
4,758
py
Python
nova/api/openstack/compute/snapshot.py
xuweiliang/Codelibrary
54e45b2daa205132c05b0ff5a2c3db7fca2853a7
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/snapshot.py
xuweiliang/Codelibrary
54e45b2daa205132c05b0ff5a2c3db7fca2853a7
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/snapshot.py
xuweiliang/Codelibrary
54e45b2daa205132c05b0ff5a2c3db7fca2853a7
[ "Apache-2.0" ]
null
null
null
from oslo_utils import strutils import webob from nova.api.openstack import common from nova import compute from nova.api.openstack import extensions from nova.api.openstack import wsgi from oslo_log import log as logging from nova import exception from nova.i18n import _ from nova import utils ALIAS = "os-snapshot" ...
37.171875
82
0.6219
b4a5887c593bd7a9995f589acd3bd2b7aaa0fab9
10,959
py
Python
python/paddle/fluid/tests/unittests/rnn/test_rnn_cells_static.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/rnn/test_rnn_cells_static.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/rnn/test_rnn_cells_static.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2020 PaddlePaddle 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 appli...
32.423077
78
0.543024
766d42b96a08d22c77f3f38d1898747f5efa2c2a
2,531
py
Python
utils/poincare.py
thanhhoangvan/Authentication-system-using-fingerprint
2f7819d959f8d8b737dc0c3e8c4d7eda8e0edd94
[ "Apache-2.0" ]
1
2021-07-06T00:20:56.000Z
2021-07-06T00:20:56.000Z
utils/poincare.py
thanhhoangvan/Authentication-system-using-fingerprint
2f7819d959f8d8b737dc0c3e8c4d7eda8e0edd94
[ "Apache-2.0" ]
null
null
null
utils/poincare.py
thanhhoangvan/Authentication-system-using-fingerprint
2f7819d959f8d8b737dc0c3e8c4d7eda8e0edd94
[ "Apache-2.0" ]
null
null
null
from utils import orientation import math import cv2 as cv import numpy as np def poincare_index_at(i, j, angles, tolerance): """ compute the summation difference between the adjacent orientations such that the orientations is less then 90 degrees https://books.google.pl/books?id=1Wpx25D8qOwC&lpg=PA120&ots...
35.152778
174
0.556302
964bfe94e67253b12bff9fcfb796256d0a568d26
3,612
py
Python
tests/test_pysms.py
argandas/pysms
f0eb21435e65ddee151705cfd8d9a0449c03eea2
[ "MIT" ]
null
null
null
tests/test_pysms.py
argandas/pysms
f0eb21435e65ddee151705cfd8d9a0449c03eea2
[ "MIT" ]
null
null
null
tests/test_pysms.py
argandas/pysms
f0eb21435e65ddee151705cfd8d9a0449c03eea2
[ "MIT" ]
null
null
null
import pytest import simxxx.simxxx as simxxx from unittest.mock import Mock import serial @pytest.fixture def sim(): sim = simxxx.SERIAL_GSM_MODEM() sim.open("COM4") yield sim sim.close() def test_simxxx_send(): stub_serial = Mock(serial.Serial) stub_serial.write = lambda x: len(x) stub_...
30.610169
79
0.683832
a8a1cf5a689f766bf805554c9637f0b7913d053b
20,452
py
Python
finrl_meta/factors/factors.py
AI4Finance-Foundation/FinRL-Metaverse
7ada7fe917d9fdc55300409cb0a3cc719129e03a
[ "MIT" ]
5
2021-11-04T07:13:08.000Z
2021-11-07T01:41:49.000Z
finrl_meta/factors/factors.py
AI4Finance-Foundation/FinRL-Metaverse
7ada7fe917d9fdc55300409cb0a3cc719129e03a
[ "MIT" ]
1
2021-11-06T18:23:21.000Z
2021-11-07T07:57:33.000Z
finrl_meta/factors/factors.py
AI4Finance-Foundation/FinRL-Metaverse
7ada7fe917d9fdc55300409cb0a3cc719129e03a
[ "MIT" ]
null
null
null
import numpy as np import scipy import statsmodels.api as sm import pandas as pd def filter_Nan(df): ''' 各特征NaN的个数 ''' naCount_dict = {} for col in df.columns.values: if df[col].dtypes == float: naCount_dict[col] = len(np.where(np.isnan(df[col]).values)[0]) for i in naCount_...
37.185455
194
0.542832
f042658a648342bb2b7e35e72e9f826105b2d1ba
587
py
Python
myawwards/migrations/0004_auto_20210721_1838.py
VGichuki/awwards-app
67ea12812ef93f0fc4735a65c87af64c86fd0a31
[ "Unlicense", "MIT" ]
null
null
null
myawwards/migrations/0004_auto_20210721_1838.py
VGichuki/awwards-app
67ea12812ef93f0fc4735a65c87af64c86fd0a31
[ "Unlicense", "MIT" ]
null
null
null
myawwards/migrations/0004_auto_20210721_1838.py
VGichuki/awwards-app
67ea12812ef93f0fc4735a65c87af64c86fd0a31
[ "Unlicense", "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-21 15:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myawwards', '0003_auto_20210721_1627'), ] operations = [ migrations.AlterField( model_name='profile', name='profile_...
24.458333
81
0.584327
f8af979a421c6b37426f54e77c952e741896f170
2,685
py
Python
src/language_model/MaskedLM/IsRoBERTa.py
NeuroCode-io/icelandic-language-model
3ac81bf0470926ca96abacef2c63118b07609afc
[ "MIT" ]
null
null
null
src/language_model/MaskedLM/IsRoBERTa.py
NeuroCode-io/icelandic-language-model
3ac81bf0470926ca96abacef2c63118b07609afc
[ "MIT" ]
null
null
null
src/language_model/MaskedLM/IsRoBERTa.py
NeuroCode-io/icelandic-language-model
3ac81bf0470926ca96abacef2c63118b07609afc
[ "MIT" ]
null
null
null
from pathlib import Path from transformers import RobertaConfig, DataCollatorForLanguageModeling, RobertaForMaskedLM, Trainer, TrainingArguments from torch.utils.data.dataset import Dataset from transformers.modeling_auto import AutoModelForMaskedLM from transformers.tokenization_utils import PreTrainedTokenizer from ...
31.588235
119
0.640596
578516c2fae5b00511c223f8a357a7fa3a229e3d
2,475
py
Python
.github/validators/validate-syntax.py
DSOTraining/kics
1b5aff071b3221f03b008eb7d09ae5ce616ce96c
[ "Apache-2.0" ]
null
null
null
.github/validators/validate-syntax.py
DSOTraining/kics
1b5aff071b3221f03b008eb7d09ae5ce616ce96c
[ "Apache-2.0" ]
null
null
null
.github/validators/validate-syntax.py
DSOTraining/kics
1b5aff071b3221f03b008eb7d09ae5ce616ce96c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import glob import os import subprocess from subprocess import CalledProcessError LINTER_PATH = os.getenv('LINTER_PATH') SKIP_LIST = os.getenv('SKIP_LIST_PATH') EXTRA_ARGS = os.getenv('EXTRA_ARGS') NO_PROGRESS = os.getenv('NO_PROGRESS', False) parser = argparse.ArgumentParser(de...
27.5
80
0.569293
91cbd945870ef109116d07e02b1c233f2f5d0870
2,814
py
Python
Testes com Pygame/basic_tutorial.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
Testes com Pygame/basic_tutorial.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
Testes com Pygame/basic_tutorial.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * # Inicializa todos os módulos pygame.init() # Ou inicializa um módulo específico pygame.font.init() screen = [1, 1, 2, 2, 2, 1] print(screen) # [1, 1, 2, 2, 2, 1] screen[3] = 8 print(screen) # Creating a MAP background = [1, 1, 2, 2, 2, 1] screen = [0]*6 #a new blank scr...
25.816514
72
0.603056
008ee961246b37fface2b7624885c21ec27161c5
234
py
Python
setup.py
eswk22/titanicdisaster-challenge-koggle
8384a91a6e221bfb5a9b90d1317fa985eaf34abe
[ "MIT" ]
null
null
null
setup.py
eswk22/titanicdisaster-challenge-koggle
8384a91a6e221bfb5a9b90d1317fa985eaf34abe
[ "MIT" ]
null
null
null
setup.py
eswk22/titanicdisaster-challenge-koggle
8384a91a6e221bfb5a9b90d1317fa985eaf34abe
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.0.1', description='Koggle chanllege for titanic disaster', author='Eswaran Krishnamoorthy', license='MIT', )
21.272727
56
0.692308
07bf2f664f0ab65a9fb47404770737f078e879ae
2,842
py
Python
ScienceCruiseDataManagement/ship_data/utilities.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
6
2017-10-06T09:18:04.000Z
2022-02-10T08:54:56.000Z
ScienceCruiseDataManagement/ship_data/utilities.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
12
2020-02-27T09:24:50.000Z
2021-09-22T17:39:55.000Z
ScienceCruiseDataManagement/ship_data/utilities.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
1
2017-10-16T13:49:33.000Z
2017-10-16T13:49:33.000Z
import unittest import datetime # This file is part of https://github.com/cpina/science-cruise-data-management # # This project was programmed in a hurry without any prior Django experience, # while circumnavigating the Antarctic on the ACE expedition, without proper # Internet access, with 150 scientists using the sy...
32.666667
118
0.657635
4f39d27579162cde41c642afaba007cc92bdd33d
12,119
py
Python
epgrefresh/src/EPGRefreshResource.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
1
2020-01-27T22:53:56.000Z
2020-01-27T22:53:56.000Z
epgrefresh/src/EPGRefreshResource.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
epgrefresh/src/EPGRefreshResource.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
from twisted.web import http, resource from EPGRefresh import epgrefresh from EPGRefreshService import EPGRefreshService from enigma import eServiceReference from Components.config import config from Components.SystemInfo import SystemInfo from time import localtime from OrderedSet import OrderedSet from ServiceReferen...
32.317333
129
0.702286
38d7b6c57d4acd4b162b007912161c2f75df5e4b
14,928
py
Python
modules/eden/doc.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
modules/eden/doc.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
modules/eden/doc.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Document Library @copyright: 2011-2012 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wi...
41.237569
125
0.470056
59edea0cd015d7849aa96dac0684d95e5a2184fb
3,071
py
Python
build-tools/code_generator/function_generator/generate_include_nbla_function_hpp.py
enomotom/nnabla
1947fe16a0a41d19d76cd916f151aa1991ea1b44
[ "Apache-2.0" ]
1
2021-04-08T00:33:23.000Z
2021-04-08T00:33:23.000Z
build-tools/code_generator/function_generator/generate_include_nbla_function_hpp.py
enomotom/nnabla
1947fe16a0a41d19d76cd916f151aa1991ea1b44
[ "Apache-2.0" ]
null
null
null
build-tools/code_generator/function_generator/generate_include_nbla_function_hpp.py
enomotom/nnabla
1947fe16a0a41d19d76cd916f151aa1991ea1b44
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. 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 applic...
52.050847
115
0.596874
6b45eae37df05e31fcd4f361da0d0c026799ea8f
493
py
Python
numba/cuda/simulator/cudadrv/nvvm.py
blair1306/numba
3b9647d17d653abac15363da604eeb804dbdd15a
[ "BSD-2-Clause" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
numba/cuda/simulator/cudadrv/nvvm.py
blair1306/numba
3b9647d17d653abac15363da604eeb804dbdd15a
[ "BSD-2-Clause" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
numba/cuda/simulator/cudadrv/nvvm.py
blair1306/numba
3b9647d17d653abac15363da604eeb804dbdd15a
[ "BSD-2-Clause" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
''' NVVM is not supported in the simulator, but stubs are provided to allow tests to import correctly. ''' class NvvmSupportError(ImportError): pass class NVVM(object): def __init__(self): raise NvvmSupportError('NVVM not supported in the simulator') CompilationUnit = None llvm_to_ptx = None set_cuda...
18.961538
77
0.742394
7d3508373aaa604580dc5ad546f4655943e26c3b
3,373
py
Python
Scrapy/WebData/WebData/spiders/Qidian.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
Scrapy/WebData/WebData/spiders/Qidian.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
Scrapy/WebData/WebData/spiders/Qidian.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from scrapy import Spider from scrapy import Request from urllib.parse import urlencode from WebData.items import BookItem from WebData.items import ChapterItem from WebData.items import ContentItem class QidianSpider(Spider): name = 'Qidian' allowed_domains = ['www.qidian.com', 'book.q...
43.805195
140
0.572191
0fa1ae524dcb8eb637c890f5a7f61ff426e3505b
1,230
py
Python
tests/test_singleton.py
tipofthesowrd/SoCo
56bdc655b323d9178b591cab96b58dd28e5155f2
[ "MIT" ]
1,149
2015-01-02T02:08:34.000Z
2022-03-30T13:58:04.000Z
tests/test_singleton.py
tipofthesowrd/SoCo
56bdc655b323d9178b591cab96b58dd28e5155f2
[ "MIT" ]
630
2015-01-01T10:44:22.000Z
2022-03-17T00:25:55.000Z
tests/test_singleton.py
tipofthesowrd/SoCo
56bdc655b323d9178b591cab96b58dd28e5155f2
[ "MIT" ]
249
2015-01-07T20:11:10.000Z
2022-03-14T05:54:20.000Z
"""Tests for the SoCoSingletonBase and _ArgsSingleton classes in core.""" import pytest from soco.core import _SocoSingletonBase as Base class ASingleton(Base): def __init__(self, arg): pass class AnotherSingleton(ASingleton): pass class ThirdSingleton(Base): _class_group = "somegroup" ...
22.777778
73
0.705691
b82c1daaef4ddcbdd7d2965c6bbb297dfbac3592
665
py
Python
testCurveFit.py
CaptainEven/PyScripts
5852501634e1ff86d2ff6820b33bfffcea7112c9
[ "MIT" ]
5
2020-10-27T06:39:00.000Z
2020-11-01T17:19:03.000Z
testCurveFit.py
CaptainEven/PyScripts
5852501634e1ff86d2ff6820b33bfffcea7112c9
[ "MIT" ]
null
null
null
testCurveFit.py
CaptainEven/PyScripts
5852501634e1ff86d2ff6820b33bfffcea7112c9
[ "MIT" ]
2
2020-10-27T15:30:10.000Z
2020-11-01T17:38:05.000Z
from scipy.optimize import curve_fit import matplotlib.pyplot as plt import numpy as np def func_1(x, a, b, c): return a * np.exp(b * x) + c def func_2(x, a, b): return x**a + b x_data = np.linspace(0, 4, 50) # y = func_1(x_data, 2.5, 1.5, 0.5) y = func_2(x_data, 2.5, 1.3) print('origin a: 2.50, b: 1.30') ...
26.6
61
0.622556
de940a7c2991796eee9fdeb88cfe60e809c8aff9
119
py
Python
src/tuberlin/inventory/emails.py
CircularBerlin/gmit
fbc995f631fa42815deab5cf07e8115a1b964d90
[ "MIT" ]
null
null
null
src/tuberlin/inventory/emails.py
CircularBerlin/gmit
fbc995f631fa42815deab5cf07e8115a1b964d90
[ "MIT" ]
null
null
null
src/tuberlin/inventory/emails.py
CircularBerlin/gmit
fbc995f631fa42815deab5cf07e8115a1b964d90
[ "MIT" ]
null
null
null
from django.conf import settings from django.template.loader import get_template from django.core.mail import send_mail
39.666667
47
0.865546
3491403825aa685bf29e40ea61c30f312c6f0b46
2,489
py
Python
pygameweb/static/views.py
leereilly/pygameweb
c4df39770716bf737f3379da987538fa32f9f3d8
[ "BSD-2-Clause" ]
2
2021-05-11T19:29:03.000Z
2021-05-12T06:08:00.000Z
pygameweb/static/views.py
leereilly/pygameweb
c4df39770716bf737f3379da987538fa32f9f3d8
[ "BSD-2-Clause" ]
null
null
null
pygameweb/static/views.py
leereilly/pygameweb
c4df39770716bf737f3379da987538fa32f9f3d8
[ "BSD-2-Clause" ]
null
null
null
"""Adding static folders. """ from flask import Blueprint, send_from_directory from pathlib import Path static_blueprint = Blueprint('static', __name__, template_folder='../templates/') files = ['lofi.html', 'server.json', 'hifi.html', 'favicon.ico', 'robots...
30.728395
81
0.626758
6ee1c27f2c95ce066a2c361ed768aef48cf51d19
566
py
Python
autojail/utils/__init__.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/utils/__init__.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/utils/__init__.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from .board import start_board, stop_board from .collections import SortedCollection from .connection import connect # noqa from .debug import debug from .deploy import deploy_target from .fs import which from .intervall_arithmetic import get_overlap from .logging import ClikitLoggingHandler from .string import pprint...
23.583333
46
0.736749
b0773ef73a68f1895d06caf86f2630117313dee4
3,145
py
Python
bing_img_collector.py
kita83/bing_image_collector
0f3163c7e7bf52b41400946434f022dc1bc1698d
[ "Apache-2.0" ]
null
null
null
bing_img_collector.py
kita83/bing_image_collector
0f3163c7e7bf52b41400946434f022dc1bc1698d
[ "Apache-2.0" ]
null
null
null
bing_img_collector.py
kita83/bing_image_collector
0f3163c7e7bf52b41400946434f022dc1bc1698d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import requests import os import math import configparser # for Python3 import urllib import re import datetime import bing_util def get_headers(api_key): return {"Ocp-Apim-Subscription-Key": api_key} def get_params(search_term, num_imgs_per_transaction, offset): return urllib.parse.urlenc...
31.767677
107
0.696343
4b6ba6399b3273df6f1270c20f23d2b7e8512a92
284
py
Python
ca_qc_westmount/__init__.py
dcycle/scrapers-ca
4c7a6cd01d603221b5b3b7a400d2e5ca0c6e916f
[ "MIT" ]
19
2015-05-26T03:18:50.000Z
2022-01-31T03:27:41.000Z
ca_qc_westmount/__init__.py
dcycle/scrapers-ca
4c7a6cd01d603221b5b3b7a400d2e5ca0c6e916f
[ "MIT" ]
119
2015-01-09T06:09:35.000Z
2022-01-20T23:05:05.000Z
ca_qc_westmount/__init__.py
dcycle/scrapers-ca
4c7a6cd01d603221b5b3b7a400d2e5ca0c6e916f
[ "MIT" ]
17
2015-11-23T05:00:10.000Z
2021-09-15T16:03:33.000Z
from utils import CanadianJurisdiction class Westmount(CanadianJurisdiction): classification = 'legislature' division_id = 'ocd-division/country:ca/csd:2466032' division_name = 'Westmount' name = 'Conseil municipal de Westmount' url = 'http://www.westmount.org'
28.4
55
0.739437
bed747a7170aaf89c9ff53d9c3da2698b564eaa4
9,470
py
Python
tools/webdriver/webdriver/transport.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
1
2021-12-12T18:13:24.000Z
2021-12-12T18:13:24.000Z
tools/webdriver/webdriver/transport.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
tools/webdriver/webdriver/transport.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
null
null
null
import json import select from http.client import HTTPConnection from typing import Dict, List, Mapping, Sequence, Tuple from urllib import parse as urlparse from . import error """Implements HTTP transport for the WebDriver wire protocol.""" missing = object() class ResponseHeaders(Mapping[str, str]): """Re...
35.601504
96
0.618374
bcf72b5f13a0d174d200e1783f32c66110bd478a
1,926
py
Python
setup.py
sommersoft/Adafruit_CircuitPython_GC_IOT_Core
7e1ab12200d41f13c3561fc13f7eaaca2da86a40
[ "Apache-2.0" ]
null
null
null
setup.py
sommersoft/Adafruit_CircuitPython_GC_IOT_Core
7e1ab12200d41f13c3561fc13f7eaaca2da86a40
[ "Apache-2.0" ]
null
null
null
setup.py
sommersoft/Adafruit_CircuitPython_GC_IOT_Core
7e1ab12200d41f13c3561fc13f7eaaca2da86a40
[ "Apache-2.0" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the lo...
35.018182
87
0.687435
74a99fe25d427a5880e4355c435f83e5b2503dfe
234
py
Python
src/sql/master/stock_trans.py
springmaple/yotimes_sql_bridge
0d1d17c63d867bb2c2ad286851343c1884fdddf8
[ "Apache-2.0" ]
null
null
null
src/sql/master/stock_trans.py
springmaple/yotimes_sql_bridge
0d1d17c63d867bb2c2ad286851343c1884fdddf8
[ "Apache-2.0" ]
4
2020-06-02T14:29:17.000Z
2021-05-16T09:13:52.000Z
src/sql/master/stock_trans.py
springmaple/yotimes_sql_bridge
0d1d17c63d867bb2c2ad286851343c1884fdddf8
[ "Apache-2.0" ]
null
null
null
from sql.entity import Entity class StockTrans(Entity): def __init__(self, data): super().__init__(data) self.trans_no = self._get_int('TransNo') # Primary key self.item_code = self._get_str('ItemCode')
26
63
0.666667
5967cde6a6ba67ca9be59e67309d47239668fbd1
3,668
py
Python
tests/test_scenes.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
1
2018-07-30T15:05:45.000Z
2018-07-30T15:05:45.000Z
tests/test_scenes.py
jamesBrosnahan/pursuedpybear
8e5498b66de71c1fbe62f869d50803e22860b6f8
[ "Artistic-2.0" ]
null
null
null
tests/test_scenes.py
jamesBrosnahan/pursuedpybear
8e5498b66de71c1fbe62f869d50803e22860b6f8
[ "Artistic-2.0" ]
null
null
null
from unittest.mock import Mock from pytest import fixture from pytest import mark from pytest import raises from ppb.scenes import BaseScene from ppb.camera import Camera from ppb.scenes import GameObjectCollection class TestEnemy: pass class TestPlayer: pass class TestSubclassPlayer(TestPlayer): pa...
23.818182
69
0.698473
0106cff2042a26b0a9a8691849dc5f17d184736b
19,924
py
Python
built-in/TensorFlow/Official/nlp/Bert-qa_ID0369_for_TensorFlow/run_pretraining.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/nlp/Bert-qa_ID0369_for_TensorFlow/run_pretraining.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/nlp/Bert-qa_ID0369_for_TensorFlow/run_pretraining.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Apache License # Version 2.0, January 2004 # http://www.apache.org/licenses/ # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fi...
38.38921
103
0.696748
7f95d96d263b208d9663c4a9037679523e9642ad
3,582
py
Python
reportportal_client/core/rp_response.py
Scanters/client-Python
ece2a12ac390d8d66d507c5d61104b695851ff5d
[ "Apache-2.0" ]
null
null
null
reportportal_client/core/rp_response.py
Scanters/client-Python
ece2a12ac390d8d66d507c5d61104b695851ff5d
[ "Apache-2.0" ]
null
null
null
reportportal_client/core/rp_response.py
Scanters/client-Python
ece2a12ac390d8d66d507c5d61104b695851ff5d
[ "Apache-2.0" ]
1
2020-04-10T07:23:15.000Z
2020-04-10T07:23:15.000Z
# -* encoding: utf-8 *- from requests import Response from reportportal_client.static.defines import NOT_FOUND from reportportal_client.static.exception import EntryCreatedError, OperationCompletionError, ResponseError class RPMessage(object): __slots__ = ["message", "error_code"] def __init__(self, data):...
27.984375
107
0.577052
fbbd8e3d5f7ba1c8b1f2cae7c06a71daeba960ea
6,718
py
Python
accounts/views.py
rabiyulfahimhasim786/classbasedview
b09bfcb20e9cd5584a3fef9797251864ff0233a1
[ "MIT" ]
null
null
null
accounts/views.py
rabiyulfahimhasim786/classbasedview
b09bfcb20e9cd5584a3fef9797251864ff0233a1
[ "MIT" ]
null
null
null
accounts/views.py
rabiyulfahimhasim786/classbasedview
b09bfcb20e9cd5584a3fef9797251864ff0233a1
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from rest_framework.response import Response from .serializers import CurrenciesSerializer, StandardsSerializer, CountriesSerializer, TagSerializer from .models import Currencies, Standards, Countries, Tag from django.http import ...
34.27551
102
0.670586
b68fe2e6aae1a445fb0badd6bc2c5d265f57a98b
5,184
py
Python
examples/models/glyphs.py
pyjsdev/googlemap_flask
9d0dd899a9cbf756b3d83c33e3d8a47e7db40cc5
[ "BSD-3-Clause" ]
6
2018-02-13T11:06:40.000Z
2020-10-23T09:30:46.000Z
examples/models/glyphs.py
pyjsdev/googlemap_flask
9d0dd899a9cbf756b3d83c33e3d8a47e7db40cc5
[ "BSD-3-Clause" ]
6
2018-11-29T15:40:20.000Z
2021-05-07T14:59:30.000Z
examples/models/glyphs.py
pyjsdev/googlemap_flask
9d0dd899a9cbf756b3d83c33e3d8a47e7db40cc5
[ "BSD-3-Clause" ]
3
2018-06-20T11:43:40.000Z
2021-12-21T06:51:56.000Z
import numpy as np from bokeh.models import ColumnDataSource, DataRange1d, Plot, LinearAxis, Grid, HoverTool from bokeh.models.widgets import Tabs, Panel, Paragraph from bokeh.models.layouts import Column from bokeh.models.glyphs import ( AnnularWedge, Annulus, Arc, Bezier, Circle, ImageURL, Line, MultiLine, Oval,...
44.689655
154
0.63561
656ba7dcf0a02a597ec93c664469f8d58f0d198f
7,189
py
Python
src/decoder.py
aarora8/VistaOCR
dd8a41e45d4efe49816054c097d06be41937fae1
[ "Apache-2.0" ]
24
2018-06-05T06:38:24.000Z
2021-12-08T12:20:06.000Z
src/decoder.py
aarora8/VistaOCR
dd8a41e45d4efe49816054c097d06be41937fae1
[ "Apache-2.0" ]
3
2018-08-16T23:47:30.000Z
2020-02-13T09:48:53.000Z
src/decoder.py
aarora8/VistaOCR
dd8a41e45d4efe49816054c097d06be41937fae1
[ "Apache-2.0" ]
10
2018-05-07T17:30:45.000Z
2020-01-29T10:34:02.000Z
import sys import os import numpy as np import torch from datetime import datetime from concurrent.futures import ThreadPoolExecutor from textutils import uxxxx_to_utf8 class LmDecoder: # max active 3k - 7k # beam: 11 - 17 # lattice_beam 6-9 def __init__(self, alphabet, lm_file, word_sym_file, lm_uni...
38.650538
135
0.559327
30ef54f0af0c0a8d43905af968d5f90406306d35
19,109
py
Python
gamestonk_terminal/main_helper.py
crsdgzmn/GamestonkTerminal
8cfa224cbb2833496ee4a1199356096a8b824a13
[ "MIT" ]
1
2021-05-04T04:57:13.000Z
2021-05-04T04:57:13.000Z
gamestonk_terminal/main_helper.py
lolrenx/GamestonkTerminal
eb2b0d766bf1b6bb8656d6733083962efb152fe2
[ "MIT" ]
null
null
null
gamestonk_terminal/main_helper.py
lolrenx/GamestonkTerminal
eb2b0d766bf1b6bb8656d6733083962efb152fe2
[ "MIT" ]
null
null
null
import argparse from sys import stdout import random from datetime import datetime, timedelta import matplotlib.pyplot as plt import pandas as pd from alpha_vantage.timeseries import TimeSeries import mplfinance as mpf import yfinance as yf import pytz from gamestonk_terminal.helper_funcs import ( valid_date, ...
33.34904
117
0.550788
a1e4312150f4ab81f7905b4b1833b62393b50863
596
py
Python
theory/2nd_sprint/oop_baes04.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
theory/2nd_sprint/oop_baes04.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
theory/2nd_sprint/oop_baes04.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
import math class Planet: def __init__(self, name, radius, temp_celsius): self.name = name self.surface_area = 4 * math.pi * radius**2 self.average_temp_celcius = temp_celsius self.average_temp_fahrenheit = temp_celsius * 9 / 5 + 32 def show_info(self): print(f"Планет...
33.111111
105
0.696309
543670570d9752d5d2b139b8b8e10443396ab612
10,660
py
Python
website/views.py
hackerspace-ntnu/website
0c296cb39759778aaf0c296027345a658414b397
[ "MIT" ]
25
2016-04-13T20:25:37.000Z
2021-11-26T14:41:00.000Z
website/views.py
hackerspace-ntnu/website
0c296cb39759778aaf0c296027345a658414b397
[ "MIT" ]
358
2016-02-20T21:13:27.000Z
2022-03-31T20:06:03.000Z
website/views.py
hackerspace-ntnu/website
0c296cb39759778aaf0c296027345a658414b397
[ "MIT" ]
7
2016-04-18T14:03:15.000Z
2022-02-04T14:19:47.000Z
from datetime import datetime from random import randint from urllib import parse as urlparse from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from django.shortcuts import get_object_or_404, redirect, render from django.utils import timezone from django.views.generic import DetailView...
34.387097
91
0.627767
f6279995d8ae4ab4661421c6369daffe851796a2
1,114
py
Python
students/k3343/laboratory_works/Andreeva_Ekaterina/laboratory_work_2/hotel/laboratory_work_2/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3343/laboratory_works/Andreeva_Ekaterina/laboratory_work_2/hotel/laboratory_work_2/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3343/laboratory_works/Andreeva_Ekaterina/laboratory_work_2/hotel/laboratory_work_2/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
"""laboratory_work_2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='h...
38.413793
78
0.682226
d7f28a7c63a717e4d287a6f956c5786663ce3386
1,407
py
Python
app/NinePatch.py
JoeyGaojingxing/QtLearn
c6f03c5e3af13d93a622442620584493f792f20f
[ "MIT" ]
null
null
null
app/NinePatch.py
JoeyGaojingxing/QtLearn
c6f03c5e3af13d93a622442620584493f792f20f
[ "MIT" ]
null
null
null
app/NinePatch.py
JoeyGaojingxing/QtLearn
c6f03c5e3af13d93a622442620584493f792f20f
[ "MIT" ]
null
null
null
import os from ctypes import CDLL, c_char_p from utils.utils import convert_byte from UI.ui_nine_patch import Ui_NinePatchFrame from PySide2.QtWidgets import QFrame, QTableWidgetItem from PySide2.QtCore import SIGNAL, Slot path = os.path.join(os.getcwd(), r'build\NinePatch.so') # path = r'D:\Programming\QtLearn\build\...
29.93617
85
0.666667
011c3a09851e9b1925dfff5df2e44ca1c0e7da79
100,790
py
Python
modules/templates/RLPPTM/controllers.py
krypt0x/eden
63679c36d627b5d0be5858759217408e09aa4ef0
[ "MIT" ]
1
2018-06-06T12:11:25.000Z
2018-06-06T12:11:25.000Z
modules/templates/RLPPTM/controllers.py
krypt0x/eden
63679c36d627b5d0be5858759217408e09aa4ef0
[ "MIT" ]
null
null
null
modules/templates/RLPPTM/controllers.py
krypt0x/eden
63679c36d627b5d0be5858759217408e09aa4ef0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from uuid import uuid4 from gluon import Field, HTTP, SQLFORM, URL, current, redirect, \ CRYPT, IS_EMAIL, IS_EMPTY_OR, IS_EXPR, IS_IN_SET, IS_LENGTH, \ IS_LOWER, IS_NOT_EMPTY, IS_NOT_IN_DB, \ A, BR, DIV, FORM, H3, H4, I, INPUT, ...
39.681102
147
0.43676
3390c19a4677efe819b596dadc40b2f2972cdfb7
9,310
py
Python
exporter/opentelemetry-exporter-zipkin-json/src/opentelemetry/exporter/zipkin/encoder/__init__.py
mariojonke/opentelemetry-python
300ce1bc601440e5560523296b426592f54bf7c5
[ "Apache-2.0" ]
1
2021-08-20T04:34:28.000Z
2021-08-20T04:34:28.000Z
exporter/opentelemetry-exporter-zipkin-json/src/opentelemetry/exporter/zipkin/encoder/__init__.py
harshita19244/opentelemetry-python
e2a5b0b7439acfc16d474fdd0adb3fca41308e80
[ "Apache-2.0" ]
null
null
null
exporter/opentelemetry-exporter-zipkin-json/src/opentelemetry/exporter/zipkin/encoder/__init__.py
harshita19244/opentelemetry-python
e2a5b0b7439acfc16d474fdd0adb3fca41308e80
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry 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 ...
33.014184
141
0.627497
0ff81139fa6617afd981b05ff182a2e1f27c1768
2,928
py
Python
dpnp/dpnp_iface_libmath.py
mfkiwl/dpnp
a963646c3082b7ec6fe4b40c4df2a95d3a59fc95
[ "BSD-2-Clause" ]
37
2020-09-08T00:38:52.000Z
2022-03-18T01:44:10.000Z
dpnp/dpnp_iface_libmath.py
mfkiwl/dpnp
a963646c3082b7ec6fe4b40c4df2a95d3a59fc95
[ "BSD-2-Clause" ]
432
2020-09-07T09:48:41.000Z
2022-03-25T17:50:55.000Z
dpnp/dpnp_iface_libmath.py
mfkiwl/dpnp
a963646c3082b7ec6fe4b40c4df2a95d3a59fc95
[ "BSD-2-Clause" ]
17
2020-09-07T10:00:34.000Z
2022-03-25T13:53:43.000Z
# cython: language_level=3 # distutils: language = c++ # -*- coding: utf-8 -*- # ***************************************************************************** # Copyright (c) 2016-2020, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are pe...
32.898876
92
0.677254
2d37b27339dd27c534e2a0daf44ce0129bc8d8a8
11,400
py
Python
pay-api/src/pay_api/models/payment.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/models/payment.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/models/payment.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
51.351351
119
0.69307
f8a9eaafd6d169c227b680d9a44f503018ff7617
8,222
py
Python
reference/train.py
BoChenYS/ROPE
3e50f134259b555cf547e4a3ef8b14cf5cda4e00
[ "BSD-3-Clause" ]
6
2022-01-12T05:59:20.000Z
2022-03-31T02:33:23.000Z
reference/train.py
BoChenYS/ROPE
3e50f134259b555cf547e4a3ef8b14cf5cda4e00
[ "BSD-3-Clause" ]
null
null
null
reference/train.py
BoChenYS/ROPE
3e50f134259b555cf547e4a3ef8b14cf5cda4e00
[ "BSD-3-Clause" ]
null
null
null
r"""PyTorch Detection Training. To run in a multi-gpu environment, use the distributed launcher:: python -m torch.distributed.launch --nproc_per_node=$NGPU --use_env \ train.py ... --world-size $NGPU The default hyperparameters are tuned for training on 8 gpus and 2 images per gpu. --lr 0.02 --batch-...
40.70297
119
0.677816
8d161b72fa47a578395dc5e0b2dde178f56298ac
2,107
py
Python
lib/spack/spack/hooks/monitor.py
HigherOrderMethods/spack
87ed3fcc59fc25ce250042338d082925e3a3610b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
lib/spack/spack/hooks/monitor.py
HigherOrderMethods/spack
87ed3fcc59fc25ce250042338d082925e3a3610b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
15
2021-04-14T12:34:46.000Z
2022-03-02T19:08:00.000Z
lib/spack/spack/hooks/monitor.py
Kerilk/spack
e027942b55407a4a5fe323b93d8e57200c873a43
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import llnl.util.tty as tty import spack.monitor def on_install_start(spec): """On start of an install, we want to p...
28.472973
79
0.68486
5e2b2f0e5c9cdd14dd3e3052e5392fdfa1eb0061
1,115
py
Python
talipp/indicators/CHOP.py
solocarrie/talipp
a35bbc33444c56683d4e26439f4878e92b937d7f
[ "MIT" ]
54
2020-11-19T02:27:04.000Z
2022-02-22T06:31:05.000Z
talipp/indicators/CHOP.py
justin-pierce/talipp
f5296381e3f4270b7743694e2ab5a0da301bdaf3
[ "MIT" ]
24
2020-11-01T17:56:28.000Z
2021-09-15T18:40:04.000Z
talipp/indicators/CHOP.py
justin-pierce/talipp
f5296381e3f4270b7743694e2ab5a0da301bdaf3
[ "MIT" ]
14
2020-12-10T22:43:37.000Z
2022-01-15T22:23:42.000Z
from math import log10 from typing import List, Any from talipp.indicators.Indicator import Indicator from talipp.indicators.ATR import ATR from talipp.ohlcv import OHLCV class CHOP(Indicator): """ Choppiness Index Output: a list of OHLCV objects """ def __init__(self, period: int, input_values...
28.589744
107
0.622422
f20e5ce021f8a4b59cc652737f5aac27463109fa
11,212
py
Python
mezzanine/generic/fields.py
shangzhikeji/mezzanine
4dfd078d64236dfd4a9d67587ad20562801d0932
[ "BSD-2-Clause" ]
2
2019-01-19T09:00:20.000Z
2019-03-13T01:09:36.000Z
mezzanine/generic/fields.py
shangzhikeji/mezzanine
4dfd078d64236dfd4a9d67587ad20562801d0932
[ "BSD-2-Clause" ]
null
null
null
mezzanine/generic/fields.py
shangzhikeji/mezzanine
4dfd078d64236dfd4a9d67587ad20562801d0932
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, unicode_literals from future.builtins import str from copy import copy from django.contrib.contenttypes.fields import GenericRelation from django.core.exceptions import ImproperlyConfigured, AppRegistryNotReady from django.db.models import IntegerField, CharField, FloatField from djan...
41.992509
77
0.635926