hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f74f3e2acfb6c0edfa7d56a5f979c0140e068fd3
2,534
py
Python
ping-pong.py
LOX-hu/ping-pong
dc65199eb26efcda1163793026d3cce1b80776c5
[ "CC0-1.0" ]
null
null
null
ping-pong.py
LOX-hu/ping-pong
dc65199eb26efcda1163793026d3cce1b80776c5
[ "CC0-1.0" ]
null
null
null
ping-pong.py
LOX-hu/ping-pong
dc65199eb26efcda1163793026d3cce1b80776c5
[ "CC0-1.0" ]
null
null
null
from pygame import * from random import randint, uniform from time import time as timer class GameSprite(sprite.Sprite): def __init__(self, player_image, player_x, player_y, w, h, player_speed): super().__init__() self.image = transform.scale(image.load(player_image), (w, h)) self.spe...
29.811765
81
0.569061
from pygame import * from random import randint, uniform from time import time as timer class GameSprite(sprite.Sprite): def __init__(self, player_image, player_x, player_y, w, h, player_speed): super().__init__() self.image = transform.scale(image.load(player_image), (w, h)) self.spe...
true
true
f74f3e37a60dad70ad23f5276fe15b8a10fb9add
1,884
py
Python
scrapers/Spacebattles/Spacebattles/middlewares.py
NovelTorpedo/noveltorpedo
5440b3a67b9f3bbaf61d019644286d152ba96d4f
[ "MIT" ]
2
2017-01-28T00:34:27.000Z
2017-09-08T22:03:38.000Z
scrapers/Spacebattles/Spacebattles/middlewares.py
NovelTorpedo/noveltorpedo
5440b3a67b9f3bbaf61d019644286d152ba96d4f
[ "MIT" ]
1
2020-06-05T17:40:13.000Z
2020-06-05T17:40:13.000Z
scrapers/Spacebattles/Spacebattles/middlewares.py
NovelTorpedo/noveltorpedo
5440b3a67b9f3bbaf61d019644286d152ba96d4f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class SpacebattlesSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scr...
33.052632
78
0.674098
from scrapy import signals class SpacebattlesSpiderMiddleware(object): @classmethod def from_crawler(cls, crawler): s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_spider_input(response, spider):...
true
true
f74f3e450f5c0eec714ebe61251dedd622ee9d15
59,291
py
Python
pysnmp-with-texts/RADLAN-IpRouter.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RADLAN-IpRouter.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RADLAN-IpRouter.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RADLAN-IpRouter (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-IpRouter # Produced by pysmi-0.3.4 at Wed May 1 14:47:13 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
139.180751
5,347
0.793409
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuild...
true
true
f74f3f35c7e1eb0ba630ef0c1fd5d20c296a983d
16,177
py
Python
mypy/server/astdiff.py
evinism/mypy
d87d468ee80908a865c388a7743c84c1f5c917d7
[ "PSF-2.0" ]
2
2020-02-13T06:41:07.000Z
2022-02-14T09:28:02.000Z
mypy/server/astdiff.py
evinism/mypy
d87d468ee80908a865c388a7743c84c1f5c917d7
[ "PSF-2.0" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
mypy/server/astdiff.py
evinism/mypy
d87d468ee80908a865c388a7743c84c1f5c917d7
[ "PSF-2.0" ]
null
null
null
"""Utilities for comparing two versions of a module symbol table. The goal is to find which AST nodes have externally visible changes, so that we can fire triggers and re-process other parts of the program that are stale because of the changes. Only look at detail at definitions at the current module -- don't recurse...
42.683377
99
0.654448
from typing import Set, Dict, Tuple, Optional, Sequence, Union from mypy.nodes import ( SymbolTable, TypeInfo, Var, SymbolNode, Decorator, TypeVarExpr, TypeAlias, FuncBase, OverloadedFuncDef, FuncItem, MypyFile, UNBOUND_IMPORTED ) from mypy.types import ( Type, TypeGuardType, TypeVisitor, UnboundType, Any...
true
true
f74f4086d930dcda84d48351807de0cadf1177b8
1,050
py
Python
.github/settings_test.py
fsr-itse/1327
51da4006cb6b8b57fddbf30b793fafa07bb18a2b
[ "MIT" ]
10
2015-04-13T18:54:46.000Z
2018-11-07T10:42:03.000Z
.github/settings_test.py
fsr-itse/1327
51da4006cb6b8b57fddbf30b793fafa07bb18a2b
[ "MIT" ]
530
2015-02-16T19:26:44.000Z
2018-12-03T18:45:44.000Z
.github/settings_test.py
fsr-itse/1327
51da4006cb6b8b57fddbf30b793fafa07bb18a2b
[ "MIT" ]
15
2015-03-24T16:05:33.000Z
2018-07-23T15:15:43.000Z
SECRET_KEY = "1327-github-actions-secret-key" DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", "NAME": "1327", "USER": "1327", "PASSWORD": "1327", "HOST": "postgres", "PORT": "5432", } } CACHES = { "default": { "BACKEND": "django_...
26.25
64
0.513333
SECRET_KEY = "1327-github-actions-secret-key" DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", "NAME": "1327", "USER": "1327", "PASSWORD": "1327", "HOST": "postgres", "PORT": "5432", } } CACHES = { "default": { "BACKEND": "django_...
true
true
f74f41969add06fa7c7ad6b881988db48d22c600
155
py
Python
1_weights_bias_input.py
codeclassifiers/nnfs
8583c1ccf3d155779057cb5041d52a3002282b04
[ "MIT" ]
1
2021-09-18T05:00:05.000Z
2021-09-18T05:00:05.000Z
1_weights_bias_input.py
codeclassifiers/nnfs
8583c1ccf3d155779057cb5041d52a3002282b04
[ "MIT" ]
null
null
null
1_weights_bias_input.py
codeclassifiers/nnfs
8583c1ccf3d155779057cb5041d52a3002282b04
[ "MIT" ]
1
2021-09-18T05:00:06.000Z
2021-09-18T05:00:06.000Z
inputs = [1.5,2.3,5.4] weights = [3.1,2.1,8.7] bias = 3 output = inputs[0]*weights[0] + inputs[1]*weights[1] +inputs[2]*weights[2] + bias print(output)
17.222222
81
0.619355
inputs = [1.5,2.3,5.4] weights = [3.1,2.1,8.7] bias = 3 output = inputs[0]*weights[0] + inputs[1]*weights[1] +inputs[2]*weights[2] + bias print(output)
true
true
f74f41ee57f1134141d0bc7c1b11291d289e9ab3
7,580
py
Python
lib/nets/VGG16.py
zhangyiwen5512/pytorch-faster-rcnn
64b15d3ee4bc2ec62eaab4af63e978a31a0ddbfe
[ "MIT" ]
2
2018-12-16T09:52:47.000Z
2019-01-10T06:55:08.000Z
lib/nets/VGG16.py
zhangyiwen5512/pytorch-faster-rcnn
64b15d3ee4bc2ec62eaab4af63e978a31a0ddbfe
[ "MIT" ]
null
null
null
lib/nets/VGG16.py
zhangyiwen5512/pytorch-faster-rcnn
64b15d3ee4bc2ec62eaab4af63e978a31a0ddbfe
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.utils.model_zoo as model_zoo import math import numpy as np __all__ = [ 'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn', 'vgg19_bn', 'vgg19', ] model_urls = { 'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth', 'vgg13': 'https://d...
32.532189
113
0.591293
import torch.nn as nn import torch.utils.model_zoo as model_zoo import math import numpy as np __all__ = [ 'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn', 'vgg19_bn', 'vgg19', ] model_urls = { 'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth', 'vgg13': 'https://d...
true
true
f74f42219c37efca6a8302f1b73fad4269be554a
2,079
py
Python
salt/sdb/etcd_db.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
salt/sdb/etcd_db.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
salt/sdb/etcd_db.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' etcd Database Module :maintainer: SaltStack :maturity: New :depends: python-etcd :platform: all .. versionadded:: 2015.5.0 This module allows access to the etcd database using an ``sdb://`` URI. This package is located at ``https://pypi.python.org/pypi/python-etcd``. L...
21.214286
79
0.665224
from __future__ import absolute_import import logging try: import salt.utils.etcd_util HAS_LIBS = True except ImportError: HAS_LIBS = False log = logging.getLogger(__name__) __func_alias__ = { 'set_': 'set' } __virtualname__ = 'etcd' def __virtual__(): if HAS_LIBS: return __virtualn...
true
true
f74f4379cf8dbb1da6bc16ea02cf63aa565a5125
4,319
py
Python
tests/cmdline/commands/test_group_ls.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
tests/cmdline/commands/test_group_ls.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
tests/cmdline/commands/test_group_ls.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.742188
86
0.514239
true
true
f74f43d5a10d92354ce02ca2c1dd111804c85836
273
py
Python
django_ltree/migrations/0001_create_extension.py
boryszef/django-ltree
be62be25b321f601700a1f10e14f6fd5eabbfef3
[ "MIT" ]
42
2018-10-06T15:29:25.000Z
2021-12-25T22:18:34.000Z
django_ltree/migrations/0001_create_extension.py
boryszef/django-ltree
be62be25b321f601700a1f10e14f6fd5eabbfef3
[ "MIT" ]
8
2019-05-03T13:28:29.000Z
2021-05-28T14:12:47.000Z
django_ltree/migrations/0001_create_extension.py
boryszef/django-ltree
be62be25b321f601700a1f10e14f6fd5eabbfef3
[ "MIT" ]
16
2019-04-06T11:50:54.000Z
2022-03-16T16:27:28.000Z
from django.db import migrations class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.RunSQL( "CREATE EXTENSION IF NOT EXISTS ltree;", "DROP EXTENSION ltree;" ) ]
17.0625
52
0.582418
from django.db import migrations class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.RunSQL( "CREATE EXTENSION IF NOT EXISTS ltree;", "DROP EXTENSION ltree;" ) ]
true
true
f74f43f2a6e98a29e4863fcee80c7c08cf249d00
12,041
py
Python
build/lib/GUI/GuiTabDetectLeads.py
dpedrosac/cDBS
75ddb6a37a6f3b25f428005afc4e882bf31b09bf
[ "MIT" ]
null
null
null
build/lib/GUI/GuiTabDetectLeads.py
dpedrosac/cDBS
75ddb6a37a6f3b25f428005afc4e882bf31b09bf
[ "MIT" ]
6
2020-09-04T23:35:01.000Z
2021-05-16T00:09:38.000Z
build/lib/GUI/GuiTabDetectLeads.py
dpedrosac/cDBS
75ddb6a37a6f3b25f428005afc4e882bf31b09bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import yaml from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QGroupBox, QVBoxLayout, QHBoxLayout, QMessageBox, \ QFileDialog, QPushButton, QListWidget, QAbstractItemView import utils.HelperFunctions as HF from GUI.GuiTwoLists_generic import TwoListG...
51.238298
135
0.648866
import os import yaml from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QGroupBox, QVBoxLayout, QHBoxLayout, QMessageBox, \ QFileDialog, QPushButton, QListWidget, QAbstractItemView import utils.HelperFunctions as HF from GUI.GuiTwoLists_generic import TwoListGUI from utils.settingsLeadDetection import G...
true
true
f74f43fe29018e231c17bd93b3b5b79d55ba410c
1,221
py
Python
onnx/backend/test/case/node/mean.py
justinchuby/onnx
805ae1e634697e37b43701e585c9c253a29ce076
[ "Apache-2.0" ]
1
2022-03-04T03:29:37.000Z
2022-03-04T03:29:37.000Z
onnx/backend/test/case/node/mean.py
justinchuby/onnx
805ae1e634697e37b43701e585c9c253a29ce076
[ "Apache-2.0" ]
null
null
null
onnx/backend/test/case/node/mean.py
justinchuby/onnx
805ae1e634697e37b43701e585c9c253a29ce076
[ "Apache-2.0" ]
1
2022-03-27T19:17:02.000Z
2022-03-27T19:17:02.000Z
# SPDX-License-Identifier: Apache-2.0 import numpy as np # type: ignore import onnx from ..base import Base from . import expect class Mean(Base): @staticmethod def export() -> None: data_0 = np.array([3, 0, 2]).astype(np.float32) data_1 = np.array([1, 3, 4]).astype(np.float32) dat...
29.071429
71
0.538084
import numpy as np import onnx from ..base import Base from . import expect class Mean(Base): @staticmethod def export() -> None: data_0 = np.array([3, 0, 2]).astype(np.float32) data_1 = np.array([1, 3, 4]).astype(np.float32) data_2 = np.array([2, 6, 6]).astype(np.float32) ...
true
true
f74f442cdf7bab5dbd3f953799d52f58d5a96867
951
py
Python
pyclesperanto_prototype/_tier1/_mean_y_projection.py
cavenel/pyclesperanto_prototype
701f8b6741833d1943b4b78a28b1f0b06a5519b4
[ "BSD-3-Clause" ]
2
2020-07-01T06:20:44.000Z
2020-07-01T09:36:48.000Z
pyclesperanto_prototype/_tier1/_mean_y_projection.py
cavenel/pyclesperanto_prototype
701f8b6741833d1943b4b78a28b1f0b06a5519b4
[ "BSD-3-Clause" ]
null
null
null
pyclesperanto_prototype/_tier1/_mean_y_projection.py
cavenel/pyclesperanto_prototype
701f8b6741833d1943b4b78a28b1f0b06a5519b4
[ "BSD-3-Clause" ]
1
2020-06-29T18:40:54.000Z
2020-06-29T18:40:54.000Z
from .._tier0 import execute from .._tier0 import plugin_function from .._tier0 import Image from .._tier0 import create_2d_zx @plugin_function(output_creator=create_2d_zx, categories=['projection']) def mean_y_projection(source : Image, destination : Image = None) -> Image: """Determines the mean average intensit...
25.702703
130
0.659306
from .._tier0 import execute from .._tier0 import plugin_function from .._tier0 import Image from .._tier0 import create_2d_zx @plugin_function(output_creator=create_2d_zx, categories=['projection']) def mean_y_projection(source : Image, destination : Image = None) -> Image: parameters = { "dst":destinat...
true
true
f74f442f8a8539ca9d7302fa625db30470e394c4
833
py
Python
1679. Max Number of K-Sum Pairs.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
4
2020-11-17T05:24:24.000Z
2021-06-14T21:01:45.000Z
1679. Max Number of K-Sum Pairs.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
1679. Max Number of K-Sum Pairs.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
# Space - O(1) ; Time - O(n logn) class Solution: def maxOperations(self, nums: List[int], k: int) -> int: nums.sort() i = 0 j = len(nums)-1 op = 0 while i<j: val = nums[i] + nums[j] if val == k: op += 1 i += 1 ...
23.8
60
0.35054
class Solution: def maxOperations(self, nums: List[int], k: int) -> int: nums.sort() i = 0 j = len(nums)-1 op = 0 while i<j: val = nums[i] + nums[j] if val == k: op += 1 i += 1 j -= 1 eli...
true
true
f74f46963b2662ac811648d8eebfc6dbbac43bdb
364
py
Python
ChemE/ml/PID.py
ConciseVerbosity18/ChemE_CV
410e3ccabeffc1a6497fa2950267ea7863ff2015
[ "MIT" ]
null
null
null
ChemE/ml/PID.py
ConciseVerbosity18/ChemE_CV
410e3ccabeffc1a6497fa2950267ea7863ff2015
[ "MIT" ]
null
null
null
ChemE/ml/PID.py
ConciseVerbosity18/ChemE_CV
410e3ccabeffc1a6497fa2950267ea7863ff2015
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt class PID(): def __init__(self, P,I,D, bias): self.P = P self.I = I self.D = D self.bias = bias def adjust(self,data:np.array): output = self.P*self.prop(data) + self.I*self.inte(data) + self.D*self....
24.266667
100
0.598901
import numpy as np import pandas as pd import matplotlib.pyplot as plt class PID(): def __init__(self, P,I,D, bias): self.P = P self.I = I self.D = D self.bias = bias def adjust(self,data:np.array): output = self.P*self.prop(data) + self.I*self.inte(data) + self.D*self....
true
true
f74f46c997948f85d85eb42bbdf633c3514700c7
185
py
Python
benchmark/import_test.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
benchmark/import_test.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
2
2020-04-28T07:59:30.000Z
2020-05-17T15:36:04.000Z
benchmark/import_test.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
import sys import os import pathlib fbrd = os.getenv('fbrd') exp_path = pathlib.Path(f'{fbrd}/experiments') [sys.path.insert(1,str(exp)) for exp in exp_path.iterdir() if exp.is_dir()]
23.125
75
0.72973
import sys import os import pathlib fbrd = os.getenv('fbrd') exp_path = pathlib.Path(f'{fbrd}/experiments') [sys.path.insert(1,str(exp)) for exp in exp_path.iterdir() if exp.is_dir()]
true
true
f74f48e0abec1b6c6074a537b1133019caa472fa
2,339
py
Python
setup.py
ruslan287/django-autofixture
d4cece432eef7183f28396c6711d3906b0b0a00e
[ "BSD-3-Clause" ]
null
null
null
setup.py
ruslan287/django-autofixture
d4cece432eef7183f28396c6711d3906b0b0a00e
[ "BSD-3-Clause" ]
null
null
null
setup.py
ruslan287/django-autofixture
d4cece432eef7183f28396c6711d3906b0b0a00e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import os from setuptools import setup def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = open(os.path.join(package, '__init__.py')).read() return re.search("__version__ = ['\"]([^'\"]+...
29.2375
102
0.595981
import re import os from setuptools import setup def get_version(package): init_py = open(os.path.join(package, '__init__.py')).read() return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) class UltraMagicString(object): def __init__(self, value): self.value = value def ...
true
true
f74f4af4639d9fd41fb289d4a6000644046dab05
8,735
py
Python
RabbitMqUdn/client/ConsumerManager.py
allensanborn/ChaosTestingCode
36682e9ec70659f8e6a684e53fff6968bb5d15a2
[ "MIT" ]
73
2018-10-17T19:48:44.000Z
2022-03-24T10:28:32.000Z
RabbitMqUdn/client/ConsumerManager.py
allensanborn/ChaosTestingCode
36682e9ec70659f8e6a684e53fff6968bb5d15a2
[ "MIT" ]
1
2019-03-04T07:15:29.000Z
2019-03-04T07:31:49.000Z
RabbitMqUdn/client/ConsumerManager.py
allensanborn/ChaosTestingCode
36682e9ec70659f8e6a684e53fff6968bb5d15a2
[ "MIT" ]
35
2018-10-20T23:37:57.000Z
2022-03-30T13:48:57.000Z
from BrokerManager import BrokerManager from MessageMonitor import MessageMonitor from MultiTopicConsumer import MultiTopicConsumer from printer import console_out import random from random import shuffle import time import threading from printer import console_out_exception class ConsumerManager: def __init__(sel...
44.116162
129
0.620149
from BrokerManager import BrokerManager from MessageMonitor import MessageMonitor from MultiTopicConsumer import MultiTopicConsumer from printer import console_out import random from random import shuffle import time import threading from printer import console_out_exception class ConsumerManager: def __init__(sel...
true
true
f74f4c0a58e73a7078c47dfb11c0b084599cfb41
5,196
py
Python
fhir/resources/DSTU2/devicemetric.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/DSTU2/devicemetric.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/DSTU2/devicemetric.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/DeviceMetric) on 2019-05-14. # 2019, SMART Health IT. from . import (backboneelement, codeableconcept, domainresource, fhirdate, fhirreference, identifier, timing) class DeviceM...
36.083333
103
0.580446
from . import (backboneelement, codeableconcept, domainresource, fhirdate, fhirreference, identifier, timing) class DeviceMetric(domainresource.DomainResource): resource_name = "DeviceMetric" def __init__(self, jsondict=None, strict=True): self.calibration = None self...
true
true
f74f4c9114ef451a120ac564d06ec58fd768c39b
1,596
py
Python
geo_search/tests/test_permissions.py
City-of-Helsinki/geo-search
d200e06223938e456d13ae9ab94e9dad149216d0
[ "MIT" ]
null
null
null
geo_search/tests/test_permissions.py
City-of-Helsinki/geo-search
d200e06223938e456d13ae9ab94e9dad149216d0
[ "MIT" ]
11
2021-09-13T11:46:17.000Z
2022-03-11T08:40:02.000Z
geo_search/tests/test_permissions.py
City-of-Helsinki/geo-search
d200e06223938e456d13ae9ab94e9dad149216d0
[ "MIT" ]
1
2021-10-04T09:15:44.000Z
2021-10-04T09:15:44.000Z
from django.contrib.auth.models import User from pytest import mark from rest_framework.test import APIClient from rest_framework_api_key.models import APIKey @mark.usefixtures("authorization_required") def test_anonymous_client_cannot_access_api_without_api_key(): api_client = APIClient() response = api_clie...
33.957447
78
0.778822
from django.contrib.auth.models import User from pytest import mark from rest_framework.test import APIClient from rest_framework_api_key.models import APIKey @mark.usefixtures("authorization_required") def test_anonymous_client_cannot_access_api_without_api_key(): api_client = APIClient() response = api_clie...
true
true
f74f4ca161c51b7c2ff78a0d976da64cb7c134e6
873
py
Python
tests/unit/objects/test_preferences.py
divipayhq/python-quickbooks
7578f788629da241df8743505c28425203ee7e95
[ "MIT" ]
null
null
null
tests/unit/objects/test_preferences.py
divipayhq/python-quickbooks
7578f788629da241df8743505c28425203ee7e95
[ "MIT" ]
null
null
null
tests/unit/objects/test_preferences.py
divipayhq/python-quickbooks
7578f788629da241df8743505c28425203ee7e95
[ "MIT" ]
null
null
null
import datetime import pytest import unittest from quickbooks import QuickBooks from quickbooks.objects.preferences import Preferences def check_valid_date(date_text): try: datetime.datetime.strptime(date_text, '%Y-%m-%d') return True except ValueError: raise ValueError("Incorrect data form...
22.384615
69
0.72394
import datetime import pytest import unittest from quickbooks import QuickBooks from quickbooks.objects.preferences import Preferences def check_valid_date(date_text): try: datetime.datetime.strptime(date_text, '%Y-%m-%d') return True except ValueError: raise ValueError("Incorrect data form...
true
true
f74f4e22075d18ee1392aefa900d7d7a46cd0e96
31,557
py
Python
pxr/usd/usdShade/testenv/testUsdShadeMaterialBinding.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
2
2016-08-03T09:41:39.000Z
2022-02-27T09:30:23.000Z
pxr/usd/usdShade/testenv/testUsdShadeMaterialBinding.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1
2016-09-12T16:50:59.000Z
2016-09-12T16:50:59.000Z
pxr/usd/usdShade/testenv/testUsdShadeMaterialBinding.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
2
2021-08-04T22:05:52.000Z
2021-08-06T20:09:50.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
47.241018
88
0.656336
from pxr import Sdf, Usd, UsdShade import unittest class TestUsdShadeMaterialBinding(unittest.TestCase): def test_DirectBindingMultiRef(self): s = Usd.Stage.CreateInMemory() rl = s.GetRootLayer() mw1 = UsdShade.Material.Define(s, "/weaker/m...
true
true
f74f4f44cd75d82c3db894619837ee16bd8365f9
4,387
py
Python
scann/configure.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
scann/configure.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
scann/configure.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
30.678322
80
0.721678
from __future__ import print_function import argparse import logging import os import subprocess import sys _BAZELRC = ".bazelrc" _BAZEL_QUERY = ".bazel-query.sh" # Writes variables to bazelrc file def write_to_bazelrc(line): with open(_BAZELRC, "a") as f: f.write(line + "\n...
true
true
f74f4f538724251f6c5da459c46c44257caae99f
3,653
py
Python
setup.py
DMickens/vertica-python
71c51f362d02d4c72a0b0887c78aba42c1e73b8c
[ "Apache-2.0" ]
null
null
null
setup.py
DMickens/vertica-python
71c51f362d02d4c72a0b0887c78aba42c1e73b8c
[ "Apache-2.0" ]
null
null
null
setup.py
DMickens/vertica-python
71c51f362d02d4c72a0b0887c78aba42c1e73b8c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018-2022 Micro Focus or one of its affiliates. # Copyright (c) 2018 Uber Technologies, 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/licen...
44.54878
211
0.70928
import collections from setuptools import setup, find_packages ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') setup( name='vertica-python', version='1.0.2', description='Official native Python clien...
true
true
f74f5030eec3ff5ffe47663e64a5376bba372d47
21
py
Python
fastdist/__init__.py
saskra/fastdist
41d44ddda3fecb1dbf8be6f686e5f7ab187f3bab
[ "MIT" ]
1,621
2021-01-25T23:22:35.000Z
2022-03-31T14:23:37.000Z
fastdist/__init__.py
saskra/fastdist
41d44ddda3fecb1dbf8be6f686e5f7ab187f3bab
[ "MIT" ]
38
2021-01-26T07:43:44.000Z
2022-03-25T03:15:46.000Z
fastdist/__init__.py
saskra/fastdist
41d44ddda3fecb1dbf8be6f686e5f7ab187f3bab
[ "MIT" ]
112
2021-01-26T02:22:06.000Z
2022-03-13T06:16:14.000Z
__version__ = "1.1.3"
21
21
0.666667
__version__ = "1.1.3"
true
true
f74f50b43009ff69aab899bcc90d468e9e42c13d
11,626
py
Python
google/oauth2/_reauth_async.py
renovate-bot/google-auth-library-python
a4cf9b1bf461a3fb35432e42f4d8bc1a8ff7bc97
[ "Apache-2.0" ]
4
2021-10-20T12:39:09.000Z
2022-02-26T15:02:08.000Z
google/oauth2/_reauth_async.py
renovate-bot/google-auth-library-python
a4cf9b1bf461a3fb35432e42f4d8bc1a8ff7bc97
[ "Apache-2.0" ]
null
null
null
google/oauth2/_reauth_async.py
renovate-bot/google-auth-library-python
a4cf9b1bf461a3fb35432e42f4d8bc1a8ff7bc97
[ "Apache-2.0" ]
1
2021-10-18T21:49:09.000Z
2021-10-18T21:49:09.000Z
# Copyright 2021 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 agreed to in writing, ...
35.445122
108
0.660932
import sys from google.auth import exceptions from google.oauth2 import _client from google.oauth2 import _client_async from google.oauth2 import challenges from google.oauth2 import reauth async def _get_challenges( request, supported_challenge_types, access_token, requested_scopes=None ): bo...
true
true
f74f5199b19b43d3c8e00c0e4d5befc95d2c0fa2
13,702
py
Python
main.py
DivyaKumarBaid/Live_Discord_music_bot
5bda803978a5140acf82ea14a6478c677b1f2793
[ "MIT" ]
3
2021-03-15T20:08:20.000Z
2021-05-17T08:49:36.000Z
main.py
DivyaKumarBaid/Live_Discord_music_bot
5bda803978a5140acf82ea14a6478c677b1f2793
[ "MIT" ]
1
2021-10-16T10:42:00.000Z
2021-10-16T10:42:00.000Z
main.py
DivyaKumarBaid/Live_Discord_music_bot
5bda803978a5140acf82ea14a6478c677b1f2793
[ "MIT" ]
3
2021-07-08T07:00:15.000Z
2021-10-11T19:20:10.000Z
import os from keep_alive import keep_alive import discord import nacl from discord import FFmpegPCMAudio import youtube_dl import discord.utils from discord.utils import find from discord.ext import commands, tasks from itertools import cycle from youtubesearchpython import VideosSearch import numpy as np #initializi...
30.930023
259
0.688586
import os from keep_alive import keep_alive import discord import nacl from discord import FFmpegPCMAudio import youtube_dl import discord.utils from discord.utils import find from discord.ext import commands, tasks from itertools import cycle from youtubesearchpython import VideosSearch import numpy as np my_secret...
true
true
f74f51e5c4860feb63bb2b69e31d383b2832c451
526
py
Python
anon_scriber/posts/forms.py
TheNavyInfantry/Anon-Scriber
8267d7c972de5169bdf90f92aaa67c7d5b97829d
[ "MIT" ]
null
null
null
anon_scriber/posts/forms.py
TheNavyInfantry/Anon-Scriber
8267d7c972de5169bdf90f92aaa67c7d5b97829d
[ "MIT" ]
null
null
null
anon_scriber/posts/forms.py
TheNavyInfantry/Anon-Scriber
8267d7c972de5169bdf90f92aaa67c7d5b97829d
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import Length, DataRequired from anon_scriber import datetime class PostForm(FlaskForm): title = StringField(label='Title: ', validators=[Length(min=1, max=60), DataRequired()]) post_text = TextA...
52.6
104
0.768061
from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import Length, DataRequired from anon_scriber import datetime class PostForm(FlaskForm): title = StringField(label='Title: ', validators=[Length(min=1, max=60), DataRequired()]) post_text = TextA...
true
true
f74f523d1fb9c7b091880b488b1de55716c79d95
1,989
py
Python
hlapipeline/utils/catalog_utils.py
mcara/hlapipeline
13fe3a5c16e71a34b5fc29b967763171330cec75
[ "BSD-3-Clause" ]
null
null
null
hlapipeline/utils/catalog_utils.py
mcara/hlapipeline
13fe3a5c16e71a34b5fc29b967763171330cec75
[ "BSD-3-Clause" ]
null
null
null
hlapipeline/utils/catalog_utils.py
mcara/hlapipeline
13fe3a5c16e71a34b5fc29b967763171330cec75
[ "BSD-3-Clause" ]
null
null
null
"""Function to extract random entries (lines) from a CSV file The function, randomSelectFromCSV, allows the user to specify the desired number of entries to obtain from a comma-separated values (CSV) file which contains data extracted from the STScI archive for ACS, WFC3, and WFPC2 instruments. The data are comprise...
33.15
73
0.724987
from random import seed from random import sample from astropy.table import Table __all__ =['randomSelectFromCSV'] def randomSelectFromCSV(tableName, numEntries, seedValue): seed(seedValue) dataTable = Table.read(tableName, format='ascii.csv') numRows = len(dataTable) sequen...
true
true
f74f53313ecec0a23e79e95705298393fa01f581
3,009
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripContentPanelRenderEventHandler.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripContentPanelRenderEventHandler.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripContentPanelRenderEventHandler.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class ToolStripContentPanelRenderEventHandler(MulticastDelegate,ICloneable,ISerializable): """ Represents the method that will handle the System.Windows.Forms.ToolStripContentPanel.RendererChanged event of a System.Windows.Forms.ToolStripContentPanel. ToolStripContentPanelRenderEventHandler(object: object,...
31.673684
215
0.732137
class ToolStripContentPanelRenderEventHandler(MulticastDelegate,ICloneable,ISerializable): def BeginInvoke(self,sender,e,callback,object): pass def CombineImpl(self,*args): pass def DynamicInvokeImpl(self,*args): pass def EndInvoke(self,result): pass def GetMethodImpl(self,*args): pass def In...
true
true
f74f5397180f895a91052cd98736399f921b2346
5,145
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_snmp_community.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/modules/network/netvisor/pn_snmp_community.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/network/netvisor/pn_snmp_community.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
#!/usr/bin/python # Copyright: (c) 2018, Pluribus Networks # 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['...
28.743017
92
0.65345
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = """ --- module: pn_snmp_community author: "Pluribus Networks (@rajaspac...
true
true
f74f54563fc48a9761a17b6d0c1741c16d82c910
962
py
Python
kubernetes/test/test_v1_daemon_endpoint.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_daemon_endpoint.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_daemon_endpoint.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.377778
105
0.70894
from __future__ import absolute_import import os import sys import unittest import kubernetes.client from kubernetes.client.rest import ApiException from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint class TestV1DaemonEndpoint(unittest.TestCase): def setUp(self): pass def...
true
true
f74f550feb2d1dd61d665ffa106fe1d7219fe12a
2,282
py
Python
convlab2/e2e/rnn_rollout/engines/selection_engine.py
ljw23/ConvLab-2
13d48ea0e441701bd66100689b6c25b561f15525
[ "Apache-2.0" ]
339
2020-03-04T09:43:22.000Z
2022-03-26T17:27:38.000Z
convlab2/e2e/rnn_rollout/engines/selection_engine.py
ljw23/ConvLab-2
13d48ea0e441701bd66100689b6c25b561f15525
[ "Apache-2.0" ]
122
2020-04-12T04:19:06.000Z
2022-03-23T14:20:57.000Z
convlab2/e2e/rnn_rollout/engines/selection_engine.py
ljw23/ConvLab-2
13d48ea0e441701bd66100689b6c25b561f15525
[ "Apache-2.0" ]
138
2020-02-18T16:48:04.000Z
2022-03-26T17:27:43.000Z
# Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import torch from torch.autograd import Variable from convlab2.e2e.rnn_rollout.engines import EngineBase, Criterion class Selectio...
33.072464
81
0.603856
import torch from torch.autograd import Variable from convlab2.e2e.rnn_rollout.engines import EngineBase, Criterion class SelectionEngine(EngineBase): def __init__(self, model, args, verbose=False): super(SelectionEngine, self).__init__(model, args, verbose) self.sel_crit = Criterion( ...
true
true
f74f555a058cb06d9ac963950d51f7517be684c3
5,062
py
Python
venv/Lib/site-packages/selenium/webdriver/common/devtools/v85/log.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
2
2022-02-25T09:12:07.000Z
2022-03-22T19:45:43.000Z
venv/Lib/site-packages/selenium/webdriver/common/devtools/v85/log.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
null
null
null
venv/Lib/site-packages/selenium/webdriver/common/devtools/v85/log.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: Log from __future__ import annotations from .util import event_class, T_JSON_DICT from dataclasses import dataclass import enum import typi...
27.51087
125
0.629791
from __future__ import annotations from .util import event_class, T_JSON_DICT from dataclasses import dataclass import enum import typing from . import network from . import runtime @dataclass class LogEntry: source: str level: str text: str timestamp: runtime.Timestamp ...
true
true
f74f55b8b9c43bcf0af1de1d6619a5def1018294
3,571
py
Python
tflib/inception_score.py
SAP-samples/security-research-differentially-private-generative-models
c0eced81da3bc0064beb538557f042732cda459f
[ "Apache-2.0" ]
19
2019-08-23T08:08:38.000Z
2022-03-24T01:31:32.000Z
tflib/inception_score.py
SAP-samples/security-research-differentially-private-generative-models
c0eced81da3bc0064beb538557f042732cda459f
[ "Apache-2.0" ]
2
2020-04-23T15:12:48.000Z
2020-09-29T13:44:15.000Z
tflib/inception_score.py
SAP-samples/security-research-differentially-private-generative-models
c0eced81da3bc0064beb538557f042732cda459f
[ "Apache-2.0" ]
5
2019-12-03T17:24:38.000Z
2022-03-24T11:35:40.000Z
# SPDX-FileCopyrightText: 2020 SAP SE # # SPDX-License-Identifier: Apache-2.0 # From https://github.com/openai/improved-gan/blob/master/inception_score/model.py # Code derived from tensorflow/tensorflow/models/image/imagenet/classify_image.py from __future__ import absolute_import from __future__ import division from ...
34.669903
90
0.654158
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path import sys import tarfile import numpy as np from six.moves import urllib import tensorflow as tf import glob import scipy.misc import math import sys MODEL_DIR = '/tmp/imagenet' DATA_URL...
true
true
f74f560d2f3254c082a35b5ac268dac1a9ecb2fd
6,377
py
Python
renku/cli/update.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
renku/cli/update.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
renku/cli/update.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018-2020- Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in co...
31.726368
106
0.696879
import sys import uuid import click from git import Actor from renku.core.commands.client import pass_local_client from renku.core.commands.cwl_runner import execute from renku.core.commands.graph import Graph, _safe_path from renku.core.commands.options import option_siblings from renku.core.errors...
true
true
f74f57612a1fe4d19cabe3755aa17a30725f2604
29,669
py
Python
src/robot/libraries/String.py
noklek/Robotframework
7bbf8f09a011b96d92a63041dfe1d1470e671030
[ "ECL-2.0", "Apache-2.0" ]
11
2017-09-30T05:47:28.000Z
2019-04-15T11:58:40.000Z
src/robot/libraries/String.py
noklek/Robotframework
7bbf8f09a011b96d92a63041dfe1d1470e671030
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/libraries/String.py
noklek/Robotframework
7bbf8f09a011b96d92a63041dfe1d1470e671030
[ "ECL-2.0", "Apache-2.0" ]
7
2018-02-13T10:22:39.000Z
2019-07-04T07:39:28.000Z
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
43.312409
125
0.607031
import re from fnmatch import fnmatchcase from random import randint from string import ascii_lowercase, ascii_uppercase, digits from robot.api import logger from robot.utils import (is_bytes, is_string, is_truthy, is_unicode, lower, unic, PY3) from robot.version import get_vers...
true
true
f74f5822c0300aed1e291eb49337ea10c51fdf3e
9,319
py
Python
pytree/models/n_ary/modeling_n_ary.py
AntoineSimoulin/pytree
9408799c4b8d4d59b1103e2205ffe7b250614f92
[ "Apache-2.0" ]
18
2021-11-10T13:34:02.000Z
2021-12-17T13:28:00.000Z
pytree/models/n_ary/modeling_n_ary.py
AntoineSimoulin/pytree
9408799c4b8d4d59b1103e2205ffe7b250614f92
[ "Apache-2.0" ]
null
null
null
pytree/models/n_ary/modeling_n_ary.py
AntoineSimoulin/pytree
9408799c4b8d4d59b1103e2205ffe7b250614f92
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch from typing import List, Tuple, Optional, overload, Union, cast from torch import Tensor from transformers import BertModel from pytree.data.packed_tree import PackedTree class TreeEmbeddings(nn.Module): def __init__(self, config): super(TreeEmbeddings, self).__init__()...
43.344186
163
0.593841
import torch.nn as nn import torch from typing import List, Tuple, Optional, overload, Union, cast from torch import Tensor from transformers import BertModel from pytree.data.packed_tree import PackedTree class TreeEmbeddings(nn.Module): def __init__(self, config): super(TreeEmbeddings, self).__init__()...
true
true
f74f58a8eb20baae977e81480a039c7dc7ce796f
350
py
Python
apartment/apps/users/admin.py
Hardy7/CS465_Final
a38ccc1ebd988ed5ded9acc05ad6c8dd1cc2d1bd
[ "MIT" ]
1
2020-03-15T22:45:42.000Z
2020-03-15T22:45:42.000Z
apartment/apps/users/admin.py
Hardy7/CS465_Final
a38ccc1ebd988ed5ded9acc05ad6c8dd1cc2d1bd
[ "MIT" ]
null
null
null
apartment/apps/users/admin.py
Hardy7/CS465_Final
a38ccc1ebd988ed5ded9acc05ad6c8dd1cc2d1bd
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import UserProfile # Register your models here. class UserProfileAdmin(admin.AdminSite): list_display = ('username', 'email', 'mobile', 'is_superuser', 'date_joined') search_fields = ('username', 'email', 'mobile',) list_filter = ('date_joined',) admi...
31.818182
82
0.708571
from django.contrib import admin from .models import UserProfile class UserProfileAdmin(admin.AdminSite): list_display = ('username', 'email', 'mobile', 'is_superuser', 'date_joined') search_fields = ('username', 'email', 'mobile',) list_filter = ('date_joined',) admin.site.register(UserProfile) ...
true
true
f74f58cf332f76fb4e898e898713418547a80c0d
3,638
py
Python
intera_interface/scripts/send_urdf_fragment.py
bostoncleek/intera_sdk
8334bec54d557aa752b3fdbc3d3c6d9645ae3000
[ "Apache-2.0" ]
null
null
null
intera_interface/scripts/send_urdf_fragment.py
bostoncleek/intera_sdk
8334bec54d557aa752b3fdbc3d3c6d9645ae3000
[ "Apache-2.0" ]
null
null
null
intera_interface/scripts/send_urdf_fragment.py
bostoncleek/intera_sdk
8334bec54d557aa752b3fdbc3d3c6d9645ae3000
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018, Rethink Robotics 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...
36.019802
83
0.681693
import os import sys import argparse import rospy import xacro from intera_core_msgs.msg import ( URDFConfiguration, ) def xacro_parse(filename): doc = xacro.parse(None, filename) xacro.process_doc(doc, in_order=True) return doc.toprettyxml(indent=' ') def send_urdf(parent_link, roo...
true
true
f74f593f3db9803178b4f09b9994a290072c3d1c
8,884
py
Python
demo/demo_skeleton.py
quynhkhanh96/mmaction2
3bca76ac45ba9f28cc4c4d0565515e02bbd4d059
[ "Apache-2.0" ]
null
null
null
demo/demo_skeleton.py
quynhkhanh96/mmaction2
3bca76ac45ba9f28cc4c4d0565515e02bbd4d059
[ "Apache-2.0" ]
null
null
null
demo/demo_skeleton.py
quynhkhanh96/mmaction2
3bca76ac45ba9f28cc4c4d0565515e02bbd4d059
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import argparse import os import os.path as osp import shutil import cv2 import mmcv import numpy as np import torch from mmcv import DictAction from mmaction.apis import inference_recognizer, init_recognizer try: from mmdet.apis import inference_detector, init_det...
34.976378
79
0.639464
import argparse import os import os.path as osp import shutil import cv2 import mmcv import numpy as np import torch from mmcv import DictAction from mmaction.apis import inference_recognizer, init_recognizer try: from mmdet.apis import inference_detector, init_detector except (ImportError, ModuleNotFoundError)...
true
true
f74f5aefcc5817037ddcd5c4e1f68206420349a7
292
py
Python
paper_spider/paper_spider/pipelines.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
paper_spider/paper_spider/pipelines.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
paper_spider/paper_spider/pipelines.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class PaperSpiderPipeline(object): def process_item(self, item, spider): return item
24.333333
65
0.715753
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class PaperSpiderPipeline(object): def process_item(self, item, spider): return item
true
true
f74f5bf42949325b16278a11cf69ed50d467aa7f
996
py
Python
scale/data/data/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/data/data/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/data/data/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
"""Defines exceptions that can occur when interacting with interface data values""" from util.exceptions import ValidationException class InvalidData(ValidationException): """Exception indicating that the data is invalid""" def __init__(self, name, description): """Constructor :param name: T...
31.125
83
0.688755
from util.exceptions import ValidationException class InvalidData(ValidationException): def __init__(self, name, description): super(InvalidData, self).__init__(name, description) class InvalidDataFilter(ValidationException): def __init__(self, name, description): super(InvalidDataFilter...
true
true
f74f5d796e6b0d21f5a2639395650c50c9578539
363
py
Python
tests/rules/test_ls_all.py
WorkInProgress-Development/theplease
9b9a2dcee3efa0e1b4f197fc55904c9327dc13ba
[ "MIT" ]
null
null
null
tests/rules/test_ls_all.py
WorkInProgress-Development/theplease
9b9a2dcee3efa0e1b4f197fc55904c9327dc13ba
[ "MIT" ]
null
null
null
tests/rules/test_ls_all.py
WorkInProgress-Development/theplease
9b9a2dcee3efa0e1b4f197fc55904c9327dc13ba
[ "MIT" ]
null
null
null
from theplease.rules.ls_all import match, get_new_command from theplease.types import Command def test_match(): assert match(Command('ls', '')) assert not match(Command('ls', 'file.py\n')) def test_get_new_command(): assert get_new_command(Command('ls empty_dir', '')) == 'ls -A empty_dir' assert get...
27.923077
76
0.69146
from theplease.rules.ls_all import match, get_new_command from theplease.types import Command def test_match(): assert match(Command('ls', '')) assert not match(Command('ls', 'file.py\n')) def test_get_new_command(): assert get_new_command(Command('ls empty_dir', '')) == 'ls -A empty_dir' assert get...
true
true
f74f5df1c1719aeb789b373dcb8e714b822f3b7c
699
py
Python
runtests.py
apache/openwhisk-tutorial
f3d4e1ef8eb41462cff525df02dbbdd4998e471a
[ "Apache-2.0" ]
2
2019-12-23T19:11:48.000Z
2021-11-10T15:53:41.000Z
runtests.py
tspannhw/incubator-openwhisk-tutorial
f3d4e1ef8eb41462cff525df02dbbdd4998e471a
[ "Apache-2.0" ]
5
2019-08-15T15:31:21.000Z
2019-08-15T15:32:00.000Z
runtests.py
tspannhw/incubator-openwhisk-tutorial
f3d4e1ef8eb41462cff525df02dbbdd4998e471a
[ "Apache-2.0" ]
2
2021-11-04T12:32:33.000Z
2021-11-10T15:53:32.000Z
import sys from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, ROOT_URLCONF='whisk_tutorial.urls', INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.content...
24.103448
63
0.65093
import sys from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, ROOT_URLCONF='whisk_tutorial.urls', INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.content...
true
true
f74f5e64a8e1f1d83e78239fd1030d5ae267ece9
21,465
py
Python
tensorflow/python/distribute/strategy_combinations.py
AdaAlarm/tensorflow
e0db063159751276a92d88a4ad6d481b1199318c
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/distribute/strategy_combinations.py
AdaAlarm/tensorflow
e0db063159751276a92d88a4ad6d481b1199318c
[ "Apache-2.0" ]
6
2021-11-10T20:16:36.000Z
2022-02-10T05:52:17.000Z
tensorflow/python/distribute/strategy_combinations.py
AdaAlarm/tensorflow
e0db063159751276a92d88a4ad6d481b1199318c
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2018 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...
38.330357
111
0.769299
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python import tf2 from tensorflow.python.distribute import central_storage_strategy from tensorflow.python.distribute import cluster_resolver from tensorflow.python.distribute imp...
true
true
f74f5ed8d5af835e92f013d24dc76c371f16505f
2,185
py
Python
learning_journal/views/default.py
Loaye/pyramid-learning-journal
8ad4299e6b0c9f30e4cef229f7f2fd94bfb5363a
[ "MIT" ]
null
null
null
learning_journal/views/default.py
Loaye/pyramid-learning-journal
8ad4299e6b0c9f30e4cef229f7f2fd94bfb5363a
[ "MIT" ]
3
2019-12-26T16:40:00.000Z
2021-06-01T21:59:37.000Z
learning_journal/views/default.py
Loaye/pyramid-learning-journal
8ad4299e6b0c9f30e4cef229f7f2fd94bfb5363a
[ "MIT" ]
null
null
null
"""Set the default for the app.""" from pyramid.view import view_config from learning_journal.data.entry_data import ENTRIES from datetime import datetime from pyramid.httpexceptions import HTTPNotFound, HTTPFound, HTTPBadRequest from learning_journal.models.mymodel import Journal @view_config(route_name="home", rend...
31.214286
74
0.632037
from pyramid.view import view_config from learning_journal.data.entry_data import ENTRIES from datetime import datetime from pyramid.httpexceptions import HTTPNotFound, HTTPFound, HTTPBadRequest from learning_journal.models.mymodel import Journal @view_config(route_name="home", renderer="../templates/list.jinja2") de...
true
true
f74f5f25166f6246d541ff10d746c921a11b3796
15,838
py
Python
sunpy/physics/tests/test_differential_rotation.py
mridullpandey/sunpy
65bf70731a8147899b8c0fca8b3b1a386e47c010
[ "BSD-2-Clause" ]
null
null
null
sunpy/physics/tests/test_differential_rotation.py
mridullpandey/sunpy
65bf70731a8147899b8c0fca8b3b1a386e47c010
[ "BSD-2-Clause" ]
null
null
null
sunpy/physics/tests/test_differential_rotation.py
mridullpandey/sunpy
65bf70731a8147899b8c0fca8b3b1a386e47c010
[ "BSD-2-Clause" ]
1
2019-02-19T07:49:14.000Z
2019-02-19T07:49:14.000Z
import os import pytest import numpy as np import astropy.units as u from astropy.coordinates import SkyCoord from astropy.coordinates import Longitude from astropy.tests.helper import assert_quantity_allclose from astropy.time import TimeDelta from sunpy.coordinates import frames from sunpy.coordinates.ephemeris imp...
46.040698
125
0.717199
import os import pytest import numpy as np import astropy.units as u from astropy.coordinates import SkyCoord from astropy.coordinates import Longitude from astropy.tests.helper import assert_quantity_allclose from astropy.time import TimeDelta from sunpy.coordinates import frames from sunpy.coordinates.ephemeris imp...
true
true
f74f5fa1c640ae8e1613052e2bb79e1fe66fea54
6,408
py
Python
doc/conf.py
mathurinm/pactools
2ad08061c69378368137a26e0519ce3ce6e5c7bd
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
mathurinm/pactools
2ad08061c69378368137a26e0519ce3ce6e5c7bd
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
mathurinm/pactools
2ad08061c69378368137a26e0519ce3ce6e5c7bd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # pactools documentation build configuration file, created by # sphinx-quickstart on Thu Mar 23 10:56:51 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
30.807692
79
0.678371
'sphinx.ext.autosummary', 'numpydoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', 'sphinx_gallery.gen_gallery', ] embers = False autosummary_generate = True templates_path = ['_templates'] source_suffix = '.r...
true
true
f74f5fe7685011a10e177215c0213bd78142d9ac
53,240
py
Python
src/sage/topology/simplicial_set_morphism.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/topology/simplicial_set_morphism.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/topology/simplicial_set_morphism.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
r""" Morphisms and homsets for simplicial sets .. NOTE:: Morphisms with infinite domain are not implemented in general: only constant maps and identity maps are currently implemented. AUTHORS: - John H. Palmieri (2016-07) This module implements morphisms and homsets of simplicial sets. """ # *************...
36.717241
117
0.529677
import itertools from sage.categories.homset import Hom, Homset from sage.categories.morphism import Morphism from sage.categories.simplicial_sets import SimplicialSets from sage.matrix.constructor import matrix, zero_matrix from sage.misc.latex import latex from sage.rings.integer_ring import ZZ fr...
true
true
f74f60988c43e58262fef37514f9c5222c1ce248
367
py
Python
feedo/applications/base/views_mixins.py
washwash/django-feedo
29f515bdb05b56e1bf44f5d3d9049982914d996f
[ "MIT" ]
null
null
null
feedo/applications/base/views_mixins.py
washwash/django-feedo
29f515bdb05b56e1bf44f5d3d9049982914d996f
[ "MIT" ]
null
null
null
feedo/applications/base/views_mixins.py
washwash/django-feedo
29f515bdb05b56e1bf44f5d3d9049982914d996f
[ "MIT" ]
null
null
null
class FilterBackendViewMixin: filter_backends = None def get_queryset(self): result = super(FilterBackendViewMixin, self).get_queryset() for filter_backend in self.filter_backends: filter_instance = filter_backend(request=self.request, view=self) result = filter_instance...
36.7
77
0.711172
class FilterBackendViewMixin: filter_backends = None def get_queryset(self): result = super(FilterBackendViewMixin, self).get_queryset() for filter_backend in self.filter_backends: filter_instance = filter_backend(request=self.request, view=self) result = filter_instance...
true
true
f74f61b0ec6b1c02885c2145b0b80215fa4a1971
572
py
Python
chinese_calendar/__init__.py
Pandaas-cn/chinese-calendar
6b8893822a69adf82c62f9ba8338983986aa0d62
[ "MIT" ]
null
null
null
chinese_calendar/__init__.py
Pandaas-cn/chinese-calendar
6b8893822a69adf82c62f9ba8338983986aa0d62
[ "MIT" ]
null
null
null
chinese_calendar/__init__.py
Pandaas-cn/chinese-calendar
6b8893822a69adf82c62f9ba8338983986aa0d62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from .constants import Holiday, holidays, in_lieu_days, workdays from .utils import ( find_workday, get_dates, get_holiday_detail, get_holidays, get_workdays, is_holiday, is_in_lieu, is_workday, ) __versio...
18.451613
64
0.65035
from __future__ import absolute_import, unicode_literals from .constants import Holiday, holidays, in_lieu_days, workdays from .utils import ( find_workday, get_dates, get_holiday_detail, get_holidays, get_workdays, is_holiday, is_in_lieu, is_workday, ) __version__ = "1.6.1" __all__ =...
true
true
f74f61bfd8e8bb10f286ef40a0dcd1b4b27a2ad2
2,452
py
Python
env/lib/python2.7/site-packages/nose_cov.py
juliengo/StudyBuddy
cd563e915a915aae2adbf44ac9c41280b507f00b
[ "Apache-2.0", "MIT" ]
1
2017-02-20T04:16:31.000Z
2017-02-20T04:16:31.000Z
env/lib/python2.7/site-packages/nose_cov.py
juliengo/StudyBuddy
cd563e915a915aae2adbf44ac9c41280b507f00b
[ "Apache-2.0", "MIT" ]
null
null
null
env/lib/python2.7/site-packages/nose_cov.py
juliengo/StudyBuddy
cd563e915a915aae2adbf44ac9c41280b507f00b
[ "Apache-2.0", "MIT" ]
null
null
null
"""Coverage plugin for nose.""" import logging from nose.plugins.base import Plugin log = logging.getLogger(__name__) class Cov(Plugin): """Activate cov plugin to generate coverage reports""" score = 200 status = {} def options(self, parser, env): """Add options to control coverage.""" ...
34.535211
124
0.565661
import logging from nose.plugins.base import Plugin log = logging.getLogger(__name__) class Cov(Plugin): score = 200 status = {} def options(self, parser, env): log.debug('nose-cov options') Plugin.options(self, parser, env) parser.add_option('--cov', action='append', defaul...
true
true
f74f61d14a983f98041a75f55d2e73794486e0df
1,057
py
Python
nets/molecules_graph_regression/load_net.py
MrRyschkov/LGP-GNN
3eb7a54016423abad30c1e30bf4df96fdd0851b4
[ "MIT" ]
2
2021-12-16T14:23:43.000Z
2022-03-01T14:36:45.000Z
nets/molecules_graph_regression/load_net.py
MrRyschkov/LGP-GNN
3eb7a54016423abad30c1e30bf4df96fdd0851b4
[ "MIT" ]
null
null
null
nets/molecules_graph_regression/load_net.py
MrRyschkov/LGP-GNN
3eb7a54016423abad30c1e30bf4df96fdd0851b4
[ "MIT" ]
null
null
null
""" Utility file to select GraphNN model as selected by the user """ from nets.molecules_graph_regression.gated_gcn_net import GatedGCNNet from nets.molecules_graph_regression.gcn_net import GCNNet from nets.molecules_graph_regression.gat_net import GATNet from nets.molecules_graph_regression.graphsage_net imp...
24.581395
70
0.738884
from nets.molecules_graph_regression.gated_gcn_net import GatedGCNNet from nets.molecules_graph_regression.gcn_net import GCNNet from nets.molecules_graph_regression.gat_net import GATNet from nets.molecules_graph_regression.graphsage_net import GraphSageNet from nets.molecules_graph_regression.mo_net import MoNet as ...
true
true
f74f6267201c6c0e1f8a283299d04674f1a631f9
13,557
py
Python
gui/pywapi.py
thejonty/sensoRaspi
66e384c8067b8112dc2c51e7276a67768c915f11
[ "Apache-2.0" ]
null
null
null
gui/pywapi.py
thejonty/sensoRaspi
66e384c8067b8112dc2c51e7276a67768c915f11
[ "Apache-2.0" ]
null
null
null
gui/pywapi.py
thejonty/sensoRaspi
66e384c8067b8112dc2c51e7276a67768c915f11
[ "Apache-2.0" ]
null
null
null
import sys from PyQt4 import QtGui, QtCore from PyQt4.QtCore import Qt import pywapi class Main(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) self.initUI() def initUI(self): self.line = QtGui.QLineEdit(self) self.line.move(90,35) self....
31.381944
233
0.582504
import sys from PyQt4 import QtGui, QtCore from PyQt4.QtCore import Qt import pywapi class Main(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) self.initUI() def initUI(self): self.line = QtGui.QLineEdit(self) self.line.move(90,35) self....
true
true
f74f646e689343fee76dd253f444c25b3fff0cef
5,102
py
Python
tests/engine.py
sydhenry/cookiecutter-django
e6abe2c48a91b080440bcdd388739d804bb4d7b6
[ "BSD-3-Clause" ]
null
null
null
tests/engine.py
sydhenry/cookiecutter-django
e6abe2c48a91b080440bcdd388739d804bb4d7b6
[ "BSD-3-Clause" ]
null
null
null
tests/engine.py
sydhenry/cookiecutter-django
e6abe2c48a91b080440bcdd388739d804bb4d7b6
[ "BSD-3-Clause" ]
null
null
null
from subprocess import call from os import path import hitchpostgres import hitchselenium import hitchpython import hitchserve import hitchredis import hitchtest import hitchsmtp # Get directory above this file PROJECT_DIRECTORY = path.abspath(path.join(path.dirname(__file__), '..')) class ExecutionEngine(hitchtest...
34.241611
114
0.628577
from subprocess import call from os import path import hitchpostgres import hitchselenium import hitchpython import hitchserve import hitchredis import hitchtest import hitchsmtp PROJECT_DIRECTORY = path.abspath(path.join(path.dirname(__file__), '..')) class ExecutionEngine(hitchtest.ExecutionEngine): def set...
true
true
f74f649acff4e2a540c7f45b6d2d6cb2a1fb6ffe
6,316
py
Python
myscripts/analyze_interference.py
pawelzell/cbtool
8557cca276ccc2d975c66dfd8f0d0e5e7c368d68
[ "Apache-2.0" ]
1
2020-04-02T12:56:22.000Z
2020-04-02T12:56:22.000Z
myscripts/analyze_interference.py
pawelzell/cbtool
8557cca276ccc2d975c66dfd8f0d0e5e7c368d68
[ "Apache-2.0" ]
null
null
null
myscripts/analyze_interference.py
pawelzell/cbtool
8557cca276ccc2d975c66dfd8f0d0e5e7c368d68
[ "Apache-2.0" ]
null
null
null
import datetime import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import linear_model from sklearn.metrics import mean_squared_error from exp_data import * from exp_data_utils import RegressionRecord from read_data.utils import dfTypePair, toSingleRowDF import global_config def compu...
40.229299
115
0.638379
import datetime import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import linear_model from sklearn.metrics import mean_squared_error from exp_data import * from exp_data_utils import RegressionRecord from read_data.utils import dfTypePair, toSingleRowDF import global_config def compu...
true
true
f74f64e2038474d06b4cd9204280b4759bbb98c4
2,496
py
Python
tests/test_tmp.py
r4fek/pysubs2
20281be6902e1a817f1b9537409cef732224684c
[ "MIT" ]
null
null
null
tests/test_tmp.py
r4fek/pysubs2
20281be6902e1a817f1b9537409cef732224684c
[ "MIT" ]
null
null
null
tests/test_tmp.py
r4fek/pysubs2
20281be6902e1a817f1b9537409cef732224684c
[ "MIT" ]
null
null
null
""" pysubs2.formats.tmp tests """ from __future__ import unicode_literals from textwrap import dedent from pysubs2 import SSAFile, SSAEvent, make_time def test_simple_write(): subs = SSAFile() e1 = SSAEvent() e1.start = 0 e1.end = 60000 e1.text = "ten--chars" e2 = SSAEvent() e2.start = ...
25.212121
113
0.603365
from __future__ import unicode_literals from textwrap import dedent from pysubs2 import SSAFile, SSAEvent, make_time def test_simple_write(): subs = SSAFile() e1 = SSAEvent() e1.start = 0 e1.end = 60000 e1.text = "ten--chars" e2 = SSAEvent() e2.start = 60000 e2.end = 120000 e2.te...
true
true
f74f670b60d0166b13e22d76de5c694b62cf10fc
3,847
py
Python
pl_bolts/models/rl/double_dqn_model.py
pawelkobojek/pytorch-lightning-bolts
2f3f58045a44ffb32103a3644c2ee2be920a508b
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/rl/double_dqn_model.py
pawelkobojek/pytorch-lightning-bolts
2f3f58045a44ffb32103a3644c2ee2be920a508b
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/rl/double_dqn_model.py
pawelkobojek/pytorch-lightning-bolts
2f3f58045a44ffb32103a3644c2ee2be920a508b
[ "Apache-2.0" ]
null
null
null
""" Double DQN """ import argparse from collections import OrderedDict from typing import Tuple import pytorch_lightning as pl import torch from pl_bolts.losses.rl import double_dqn_loss from pl_bolts.models.rl.dqn_model import DQN class DoubleDQN(DQN): """ Double Deep Q-network (DDQN) PyTorch Lightning...
30.531746
133
0.643358
import argparse from collections import OrderedDict from typing import Tuple import pytorch_lightning as pl import torch from pl_bolts.losses.rl import double_dqn_loss from pl_bolts.models.rl.dqn_model import DQN class DoubleDQN(DQN): def training_step(self, batch: Tuple[torch.Tensor, torch.Tensor], _) -> Orde...
true
true
f74f678e59d3fd99524823d5b45a151847eaa5e1
439
py
Python
Calculadora.py
dalthviz/kataSimple
e608d7d5b8a2895be85b08235069be6b825241bb
[ "MIT" ]
null
null
null
Calculadora.py
dalthviz/kataSimple
e608d7d5b8a2895be85b08235069be6b825241bb
[ "MIT" ]
null
null
null
Calculadora.py
dalthviz/kataSimple
e608d7d5b8a2895be85b08235069be6b825241bb
[ "MIT" ]
null
null
null
class Calculadora: def sumar(self, cadena): if cadena == "": return 0 elif "," in cadena or "&" in cadena or ":" in cadena: cadena=cadena.replace("&",",") cadena=cadena.replace(":",",") numeros = cadena.split(",") suma = 0 for ...
31.357143
62
0.455581
class Calculadora: def sumar(self, cadena): if cadena == "": return 0 elif "," in cadena or "&" in cadena or ":" in cadena: cadena=cadena.replace("&",",") cadena=cadena.replace(":",",") numeros = cadena.split(",") suma = 0 for ...
true
true
f74f67c4eab92e1b6c0e82bf7ae468fbd28f8461
7,078
py
Python
python/GafferUI/CompoundNumericPlugValueWidget.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/CompoundNumericPlugValueWidget.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/CompoundNumericPlugValueWidget.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2013, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
35.928934
130
0.719412
true
true
f74f68c44c7233d44317d76600e48a861d7a773e
5,327
py
Python
userbot/plugins/create.py
RiderFA/Dark_Userbot
480df539bfeae994d59649a54d2478ed24b445bb
[ "MIT" ]
null
null
null
userbot/plugins/create.py
RiderFA/Dark_Userbot
480df539bfeae994d59649a54d2478ed24b445bb
[ "MIT" ]
null
null
null
userbot/plugins/create.py
RiderFA/Dark_Userbot
480df539bfeae994d59649a54d2478ed24b445bb
[ "MIT" ]
null
null
null
# Made By @Kraken_The_BadASS # Keep Credits else gay.... """Create Private Groups Available Commands: .create (b|g) GroupName""" from telethon.tl import functions from telethon.tl.types import MessageEntityMentionName from userbot import CMD_HELP from mafiabot.utils import admin_cmd, edit_or_reply, sudo_cmd from user...
35.046053
100
0.583255
from telethon.tl import functions from telethon.tl.types import MessageEntityMentionName from userbot import CMD_HELP from mafiabot.utils import admin_cmd, edit_or_reply, sudo_cmd from userbot.cmdhelp import CmdHelp @bot.on(admin_cmd(pattern="create (b|g|c) (.*)")) @bot.on(sudo_cmd(pattern="create (b|g|c) (.*)",...
true
true
f74f68e9b12b2c688e4cd23224c5c8a4cebb6016
1,464
py
Python
sast_controller/drivers/connect_utils.py
dovbiyi/reapsaw
9b86c51e73de6d540468d6ed88e964c2811ba666
[ "Apache-2.0" ]
41
2019-08-07T12:45:42.000Z
2021-08-31T18:22:00.000Z
sast_controller/drivers/connect_utils.py
dovbiyi/reapsaw
9b86c51e73de6d540468d6ed88e964c2811ba666
[ "Apache-2.0" ]
null
null
null
sast_controller/drivers/connect_utils.py
dovbiyi/reapsaw
9b86c51e73de6d540468d6ed88e964c2811ba666
[ "Apache-2.0" ]
13
2019-08-06T23:08:22.000Z
2022-02-16T12:55:39.000Z
# Copyright (c) 2018 Dow Jones & Company, 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 law or...
32.533333
75
0.719262
import contextlib import requests import urllib3 import warnings urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) try: from functools import partialmethod except ImportError: from functools import partial class partialmethod(partial): def __get__(self, instance, o...
true
true
f74f6a231166ce7ba36ced57a855a7bda01fa0e8
4,532
py
Python
ign_migration_scripts/scripts/remove_urdf_namespaces.py
leggedrobotics/subt
7dd2c0a466e7ef466e418647728552d924812250
[ "ECL-2.0", "Apache-2.0" ]
173
2020-04-09T18:39:39.000Z
2022-03-15T06:15:07.000Z
ign_migration_scripts/scripts/remove_urdf_namespaces.py
leggedrobotics/subt
7dd2c0a466e7ef466e418647728552d924812250
[ "ECL-2.0", "Apache-2.0" ]
538
2020-04-09T18:34:04.000Z
2022-02-20T09:53:17.000Z
ign_migration_scripts/scripts/remove_urdf_namespaces.py
leggedrobotics/subt
7dd2c0a466e7ef466e418647728552d924812250
[ "ECL-2.0", "Apache-2.0" ]
89
2020-04-14T20:46:48.000Z
2022-03-14T16:45:30.000Z
#!/usr/bin/env python # # Copyright 2019 Open Source Robotics Foundation, 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 re...
29.051282
79
0.598191
from __future__ import print_function from lxml import etree import argparse import sys from sets import Set def remove_namespace(inp): ind = inp.find('/') if ind != -1: return inp[ind+1:] return inp def get_namespace(links): namespaces = Set() for link in links: ...
true
true
f74f6a57de8bc7e27b64f39c65733ec850c0dd6b
12,671
py
Python
geohunter/osm.py
adaj/geohunter
fbbb7492f79fa838c2080c90d5e8ac2066d29568
[ "MIT" ]
7
2019-04-30T14:35:04.000Z
2021-11-30T21:05:01.000Z
geohunter/osm.py
adaj/geohunter
fbbb7492f79fa838c2080c90d5e8ac2066d29568
[ "MIT" ]
3
2019-05-07T19:30:21.000Z
2021-12-01T13:44:56.000Z
geohunter/osm.py
adaj/geohunter
fbbb7492f79fa838c2080c90d5e8ac2066d29568
[ "MIT" ]
null
null
null
"""geohunter.osm This module wraps requests to OpenStreetMap's Overpass API with an interface for the GeoPandas data structures. The OpenStreetMap has a data model based on nodes, ways and relations. The geometric data structures available in geopandas are points, lines and polygons (but also multipoints, multilines a...
41.818482
103
0.605004
from time import time, sleep from pandas import DataFrame, json_normalize from geopandas import GeoDataFrame, sjoin from shapely.ops import polygonize, linemerge from shapely.geometry import Point, Polygon, LineString from shapely.geometry import MultiPolygon, MultiPoint from requests import Session from requests.adap...
true
true
f74f6a5f736a9f8c06a1afa115a190b03a1928cf
3,250
py
Python
pocovidnet/pocovidnet/evaluate_covid19.py
sbaktha/covid19_pocus_ultrasound
876558a118c7afbe7a520efcc07581af6f8ffbb2
[ "MIT" ]
null
null
null
pocovidnet/pocovidnet/evaluate_covid19.py
sbaktha/covid19_pocus_ultrasound
876558a118c7afbe7a520efcc07581af6f8ffbb2
[ "MIT" ]
null
null
null
pocovidnet/pocovidnet/evaluate_covid19.py
sbaktha/covid19_pocus_ultrasound
876558a118c7afbe7a520efcc07581af6f8ffbb2
[ "MIT" ]
null
null
null
""" Evaluation class that performs forward pass through trained models """ import os import cv2 import numpy as np from pocovidnet import MODEL_FACTORY DIR_PATH = os.path.dirname(os.path.realpath(__file__)) NUM_FOLDS = 5 class Evaluator(object): def __init__(self, ensemble=True, split=None, model_id=None): ...
31.553398
79
0.559385
import os import cv2 import numpy as np from pocovidnet import MODEL_FACTORY DIR_PATH = os.path.dirname(os.path.realpath(__file__)) NUM_FOLDS = 5 class Evaluator(object): def __init__(self, ensemble=True, split=None, model_id=None): self.root = os.path.join('/', *DIR_PATH.split('/')[:-1]) self...
true
true
f74f6a7caa9800fbb060c7249fd74ac8e168c327
2,562
py
Python
tf2_gans/core.py
Quartenia/tf2_gans
87937b79242599b8c50bd3da9972958851ab3a15
[ "Apache-2.0" ]
null
null
null
tf2_gans/core.py
Quartenia/tf2_gans
87937b79242599b8c50bd3da9972958851ab3a15
[ "Apache-2.0" ]
1
2021-09-28T04:14:32.000Z
2021-09-28T04:14:32.000Z
tf2_gans/core.py
Quartenia/tf2_gans
87937b79242599b8c50bd3da9972958851ab3a15
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/core.ipynb (unless otherwise specified). __all__ = ['TrainerBase'] # Cell class TrainerBase(object): "Base class for GANs trainer" def __init__(self): self.has_trained = False def set_training_parameters(self, epochs=...
27.255319
88
0.564403
__all__ = ['TrainerBase'] class TrainerBase(object): def __init__(self): self.has_trained = False def set_training_parameters(self, epochs=10, continue_training=False, save_fq=0, ...
true
true
f74f6ab2ce51aa966a6a84719efd8beb881ca545
3,201
py
Python
blog/views.py
felipecerinzasick/leichtgemacht
7becfe1500a659a88133623071cef65a16d38ea0
[ "MIT" ]
null
null
null
blog/views.py
felipecerinzasick/leichtgemacht
7becfe1500a659a88133623071cef65a16d38ea0
[ "MIT" ]
null
null
null
blog/views.py
felipecerinzasick/leichtgemacht
7becfe1500a659a88133623071cef65a16d38ea0
[ "MIT" ]
null
null
null
from .models import Post, Comment from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import User from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.db.models import Q from django.contrib.auth.decorators import login_required from djan...
27.834783
78
0.669791
from .models import Post, Comment from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.models import User from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.db.models import Q from django.contrib.auth.decorators import login_required from djan...
true
true
f74f6c91f81786ef006dc5f71cb22e241705de7a
236
py
Python
templates/py/main.plugin.py
composo/composo-python-plugin
b199d296afaf8d23b291626d3d9cbce9c9d511e3
[ "MIT" ]
null
null
null
templates/py/main.plugin.py
composo/composo-python-plugin
b199d296afaf8d23b291626d3d9cbce9c9d511e3
[ "MIT" ]
null
null
null
templates/py/main.plugin.py
composo/composo-python-plugin
b199d296afaf8d23b291626d3d9cbce9c9d511e3
[ "MIT" ]
null
null
null
from composo_py import ioc def init(config): ioc.Config.config.from_dict(config) app = ioc.Plugin.plugin() return app def test(): app = ioc.Plugin.plugin() app.run("test") if __name__ == "__main__": test()
13.882353
39
0.635593
from composo_py import ioc def init(config): ioc.Config.config.from_dict(config) app = ioc.Plugin.plugin() return app def test(): app = ioc.Plugin.plugin() app.run("test") if __name__ == "__main__": test()
true
true
f74f6ca5567b1b98d6c1137dfd90f89126c992a3
964
py
Python
codejam/13/0q/a-tic-tac-toe-tomek.py
neizod/problems
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
[ "MIT" ]
1
2015-10-17T11:15:42.000Z
2015-10-17T11:15:42.000Z
codejam/13/0q/a-tic-tac-toe-tomek.py
neizod/problems
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
[ "MIT" ]
null
null
null
codejam/13/0q/a-tic-tac-toe-tomek.py
neizod/problems
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
[ "MIT" ]
null
null
null
def transpose(grid): return [''.join(line) for line in zip(*grid)] def chk_hori(grid): for line in grid: if all(c in 'XT' for c in line): return 'X won' if all(c in 'OT' for c in line): return 'O won' def chk_diag(grid): if all(grid[i][i] in 'XT' for i in range(len(...
27.542857
71
0.558091
def transpose(grid): return [''.join(line) for line in zip(*grid)] def chk_hori(grid): for line in grid: if all(c in 'XT' for c in line): return 'X won' if all(c in 'OT' for c in line): return 'O won' def chk_diag(grid): if all(grid[i][i] in 'XT' for i in range(len(...
true
true
f74f6d0b04e79ef210b894d175471104fe9ee31b
2,346
py
Python
tests/test_data_utils_filetree.py
turing4ever/flask_jsondash
3d26e0afa7550734a6357069841a4dce810f6a6c
[ "MIT" ]
3,503
2016-08-25T19:57:33.000Z
2022-03-31T20:04:37.000Z
tests/test_data_utils_filetree.py
turing4ever/flask_jsondash
3d26e0afa7550734a6357069841a4dce810f6a6c
[ "MIT" ]
203
2016-05-06T18:01:12.000Z
2022-03-23T09:05:28.000Z
tests/test_data_utils_filetree.py
turing4ever/flask_jsondash
3d26e0afa7550734a6357069841a4dce810f6a6c
[ "MIT" ]
350
2016-08-30T10:29:57.000Z
2022-02-02T17:59:41.000Z
import json from uuid import uuid1 import pytest from click.testing import CliRunner from flask_jsondash.data_utils import filetree def test_path_hierarchy(tmpdir): uid = uuid1() tmp = tmpdir.mkdir('{}'.format(uid)) data = filetree.path_hierarchy(tmp.strpath) assert json.dumps(data) for key in...
27.6
76
0.683717
import json from uuid import uuid1 import pytest from click.testing import CliRunner from flask_jsondash.data_utils import filetree def test_path_hierarchy(tmpdir): uid = uuid1() tmp = tmpdir.mkdir('{}'.format(uid)) data = filetree.path_hierarchy(tmp.strpath) assert json.dumps(data) for key in...
true
true
f74f6da9f41d43a66563743a32ced1d488bcc92c
3,354
py
Python
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_key_detail_request.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_key_detail_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_key_detail_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class ListKeyDetailRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the val...
25.218045
74
0.549493
import pprint import re import six class ListKeyDetailRequest: sensitive_list = [] openapi_types = { 'version_id': 'str', 'body': 'OperateKeyRequestBody' } attribute_map = { 'version_id': 'version_id', 'body': 'body' } def __init__(self, version_id=N...
true
true
f74f6ddfba4bbd9a46763621ff843cbc4223c5de
7,179
py
Python
sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py
hazsetata/pulumi-kubernetes
e3aa3027fa3bb268c496af174b59a9913ae8094e
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py
hazsetata/pulumi-kubernetes
e3aa3027fa3bb268c496af174b59a9913ae8094e
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py
hazsetata/pulumi-kubernetes
e3aa3027fa3bb268c496af174b59a9913ae8094e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables from . imp...
53.574627
335
0.689929
import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * __all__ = ['ClusterRole'] class ClusterRole(pulumi.CustomResource): def __init...
true
true
f74f6e3564c3dfcd928265dc89fb04319d53cedd
610
py
Python
setup.py
NicholasMerrill/avwx
d5a9a1179e0634e94f40d446b89ceecbd1e61e13
[ "MIT" ]
3
2015-12-05T07:30:04.000Z
2020-11-16T21:15:15.000Z
setup.py
NicholasMerrill/avwx
d5a9a1179e0634e94f40d446b89ceecbd1e61e13
[ "MIT" ]
null
null
null
setup.py
NicholasMerrill/avwx
d5a9a1179e0634e94f40d446b89ceecbd1e61e13
[ "MIT" ]
3
2016-01-17T09:59:59.000Z
2018-02-24T20:22:40.000Z
from setuptools import setup setup( name='avwx', version='1.0.0', description="A tool to grab aviation-related weather", url="https://github.com/cloudrave/avwx", author="Nick Merrill", author_email="public@nickmerrill.co", license='MIT', packages=['avwx'], install_requires=[ ...
25.416667
58
0.609836
from setuptools import setup setup( name='avwx', version='1.0.0', description="A tool to grab aviation-related weather", url="https://github.com/cloudrave/avwx", author="Nick Merrill", author_email="public@nickmerrill.co", license='MIT', packages=['avwx'], install_requires=[ ...
true
true
f74f6e85ff1adfa802c85d09c65620fc5a81728f
12,170
py
Python
research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
48.293651
91
0.520624
import tensorflow as tf from object_detection.meta_architectures import faster_rcnn_meta_arch from nets import inception_v2 slim = tf.contrib.slim def _batch_norm_arg_scope(list_ops, use_batch_norm=True, batch_norm_decay=0.9997, ...
true
true
f74f6f5d25dc05f2cfa7cd53dbbf743417eb0920
664
py
Python
mygoogle.py
yuriy-logosha/myutils
61f07f4eab32782122afdbd434ec6d500886b89f
[ "BSD-3-Clause" ]
null
null
null
mygoogle.py
yuriy-logosha/myutils
61f07f4eab32782122afdbd434ec6d500886b89f
[ "BSD-3-Clause" ]
null
null
null
mygoogle.py
yuriy-logosha/myutils
61f07f4eab32782122afdbd434ec6d500886b89f
[ "BSD-3-Clause" ]
null
null
null
import myrequests class GoogleError(myrequests.RequestError): pass def google_geocode(address, components='locality:riga|country:LV', language='ru', key=''): response = myrequests.requests.get( f'https://maps.googleapis.com/maps/api/geocode/json?address={address}&components={components}&language={la...
33.2
133
0.637048
import myrequests class GoogleError(myrequests.RequestError): pass def google_geocode(address, components='locality:riga|country:LV', language='ru', key=''): response = myrequests.requests.get( f'https://maps.googleapis.com/maps/api/geocode/json?address={address}&components={components}&language={la...
true
true
f74f6faeb121b5589712aa0797c10f8ff3b34c06
46
py
Python
cogeo_mosaic/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
cogeo_mosaic/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
cogeo_mosaic/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
"""Cogeo_mosaic.""" __version__ = "3.0.0rc2"
11.5
24
0.630435
__version__ = "3.0.0rc2"
true
true
f74f7013807295154817f3a9b6dda4bf7628d058
4,134
py
Python
readee/images.py
gaoyunzhi/readee
fc1be745869a52b9e6e48f9e00245dd15819e706
[ "MIT" ]
null
null
null
readee/images.py
gaoyunzhi/readee
fc1be745869a52b9e6e48f9e00245dd15819e706
[ "MIT" ]
null
null
null
readee/images.py
gaoyunzhi/readee
fc1be745869a52b9e6e48f9e00245dd15819e706
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re from .common import fact, _copyB from telegram_util import matchKey def isCaption(item): if not item: return False return 'caption' in str(item.attrs).lower() and item.name != 'img' def _getCaption(item): if isCaption(item.find_next()): return item.find...
26.164557
94
0.681906
import re from .common import fact, _copyB from telegram_util import matchKey def isCaption(item): if not item: return False return 'caption' in str(item.attrs).lower() and item.name != 'img' def _getCaption(item): if isCaption(item.find_next()): return item.find_next() parent = item.parent if not parent:...
true
true
f74f708b2e24158406787d50edf2095594e9def4
6,063
py
Python
tests/dwd/observations/test_api_sites_geo.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
null
null
null
tests/dwd/observations/test_api_sites_geo.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
null
null
null
tests/dwd/observations/test_api_sites_geo.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
1
2022-03-21T14:28:45.000Z
2022-03-21T14:28:45.000Z
from pathlib import Path import pytest import numpy as np from datetime import datetime from unittest.mock import patch, MagicMock import pandas as pd from wetterdienst.dwd.metadata.column_map import METADATA_DTYPE_MAPPING from wetterdienst.util.geo import derive_nearest_neighbours from wetterdienst.util.geo import C...
28.331776
87
0.562263
from pathlib import Path import pytest import numpy as np from datetime import datetime from unittest.mock import patch, MagicMock import pandas as pd from wetterdienst.dwd.metadata.column_map import METADATA_DTYPE_MAPPING from wetterdienst.util.geo import derive_nearest_neighbours from wetterdienst.util.geo import C...
true
true
f74f70f2d731daeaf74eb9fd9117f951d2c75db4
919
py
Python
muranodashboard/categories/urls.py
sbrf-clouddev/murano-dashboard
f98e08d827a006db5fd054ac4fb6abba786bb414
[ "Apache-2.0" ]
37
2015-04-26T16:05:03.000Z
2021-05-19T15:37:46.000Z
muranodashboard/categories/urls.py
sbrf-clouddev/murano-dashboard
f98e08d827a006db5fd054ac4fb6abba786bb414
[ "Apache-2.0" ]
1
2018-01-24T14:53:01.000Z
2018-01-24T14:53:01.000Z
muranodashboard/categories/urls.py
sbrf-clouddev/murano-dashboard
f98e08d827a006db5fd054ac4fb6abba786bb414
[ "Apache-2.0" ]
23
2015-07-20T18:53:02.000Z
2019-04-23T09:54:23.000Z
# Copyright (c) 2015 Mirantis, 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 law...
36.76
78
0.711643
from django.conf import urls from muranodashboard.categories import views urlpatterns = [ urls.url(r'^$', views.CategoriesView.as_view(), name='index'), urls.url(r'^add$', views.AddCategoryView.as_view(), name='add'), urls.url(r'^delete$', views.CategoriesView.as_view(), name='delete'), ]
true
true
f74f70fbb438c840e2178a6729553b34d51cd805
6,629
py
Python
sdk/python/pulumi_azure_native/management/v20191101/get_management_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/management/v20191101/get_management_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/management/v20191101/get_management_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.451977
220
0.645045
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetManagementGroupResult', 'AwaitableGetManagementGroupResult', 'get_management_group', ] @pulumi.output_type class GetM...
true
true
f74f71224b83654973c01857d4d5ddf2feb5702c
1,844
py
Python
__init__.py
tlareywi/BrewfatherTelemetry
97fc05a06ae23c03090d87ef8caebf37b1d219c5
[ "MIT" ]
null
null
null
__init__.py
tlareywi/BrewfatherTelemetry
97fc05a06ae23c03090d87ef8caebf37b1d219c5
[ "MIT" ]
null
null
null
__init__.py
tlareywi/BrewfatherTelemetry
97fc05a06ae23c03090d87ef8caebf37b1d219c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import requests # import json from modules import cbpi from thread import start_new_thread headers = {'content-type': '"application/json; charset=utf-8"'} unit = "F" @cbpi.initalizer(order=999) def init(cbpi): # Setup BrewFather telemetry (optional) global unit unit = ...
38.416667
157
0.643709
import logging import requests from modules import cbpi from thread import start_new_thread headers = {'content-type': '"application/json; charset=utf-8"'} unit = "F" @cbpi.initalizer(order=999) def init(cbpi): global unit unit = cbpi.get_config_parameter("unit", "F") brew_father_url = cbpi.get_confi...
true
true
f74f71459a1486fbfade1957f3ee84e7f32294fa
22,815
py
Python
zproject/prod_settings_template.py
riddhi22/zulip
ac4aa169620dae333fd1005096be36eff2fcf845
[ "Apache-2.0" ]
null
null
null
zproject/prod_settings_template.py
riddhi22/zulip
ac4aa169620dae333fd1005096be36eff2fcf845
[ "Apache-2.0" ]
null
null
null
zproject/prod_settings_template.py
riddhi22/zulip
ac4aa169620dae333fd1005096be36eff2fcf845
[ "Apache-2.0" ]
null
null
null
from typing import Optional ################################################################ # Zulip Server settings. # # This file controls settings that affect the whole Zulip server. # See our documentation at: # https://zulip.readthedocs.io/en/latest/production/settings.html # # For developer documentation on th...
42.016575
102
0.758974
from typing import Optional ip automatically adds to this list 'localhost', '127.0.0.1', and # patterns representing EXTERNAL_HOST and subdomains of it. If you are # accessing your server by other hostnames, list them here. # # Note that these should just be hostnames, without port numbers. #ALLOWED_HOSTS = ['zulip-a...
true
true
f74f724c1abb07c3e23cd3419dd06b57718cd4c7
36,579
py
Python
airflow/executors/kubernetes_executor.py
dyna-dot/airflow
02ef974e4b7c2a91b3074ddd8abcf4cd31d09e6f
[ "Apache-2.0" ]
null
null
null
airflow/executors/kubernetes_executor.py
dyna-dot/airflow
02ef974e4b7c2a91b3074ddd8abcf4cd31d09e6f
[ "Apache-2.0" ]
null
null
null
airflow/executors/kubernetes_executor.py
dyna-dot/airflow
02ef974e4b7c2a91b3074ddd8abcf4cd31d09e6f
[ "Apache-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...
45.27104
106
0.628557
import base64 import hashlib from queue import Empty import re import json import multiprocessing from dateutil import parser from uuid import uuid4 import kubernetes from kubernetes import watch, client from kubernetes.client.rest import ApiException from airflow.configuration import conf from airflo...
true
true
f74f72881d619cbaa276608a425d642a580befec
1,333
py
Python
7_Model_Explainability/2_Creating_explanation.py
aditagrawal/Azure_ML
30d7021c19aef8f56b05580cba25d38a5bc0b24e
[ "Unlicense" ]
null
null
null
7_Model_Explainability/2_Creating_explanation.py
aditagrawal/Azure_ML
30d7021c19aef8f56b05580cba25d38a5bc0b24e
[ "Unlicense" ]
null
null
null
7_Model_Explainability/2_Creating_explanation.py
aditagrawal/Azure_ML
30d7021c19aef8f56b05580cba25d38a5bc0b24e
[ "Unlicense" ]
null
null
null
### following code example shows how code to generate and upload a model explanation can be incorporated into an experiment script. Thisi explanation can be viewed in ### terms of graphs and charts in AML studio. # Import Azure ML run library from azureml.core.run import Run from azureml.contrib.interpret.explanatio...
37.027778
167
0.778695
anation(explanation, comment='Tabular Explanation') run.complete() client import ExplanationClient client = ExplanationClient.from_run_id(workspace=ws, experiment_name=experiment.experiment_name, run_id=run.id) explanation = client.downl...
true
true
f74f72a3a04b600fe3d458c18243a572385739e7
2,069
py
Python
src-py/AudioGenerator.py
Sherlockcxk/Rick-Lang
8a6ae773a49baa79f7e4c902eec2fad9db5bda29
[ "MIT" ]
28
2021-05-16T17:48:10.000Z
2021-07-06T13:03:45.000Z
src-py/AudioGenerator.py
Sherlockcxk/Rick-Lang
8a6ae773a49baa79f7e4c902eec2fad9db5bda29
[ "MIT" ]
null
null
null
src-py/AudioGenerator.py
Sherlockcxk/Rick-Lang
8a6ae773a49baa79f7e4c902eec2fad9db5bda29
[ "MIT" ]
1
2021-07-18T19:17:30.000Z
2021-07-18T19:17:30.000Z
from os.path import exists from os import remove as delete_file from pyttsx3 import init import wave import soundfile au_print = wave.open("print.wav", "rb") au_let = wave.open("let.wav", "rb") au_main = wave.open("main.wav", "rb") au_if = wave.open("if.wav", "rb") au_end = wave.open("end.wav", "rb") au_bre...
30.880597
113
0.619623
from os.path import exists from os import remove as delete_file from pyttsx3 import init import wave import soundfile au_print = wave.open("print.wav", "rb") au_let = wave.open("let.wav", "rb") au_main = wave.open("main.wav", "rb") au_if = wave.open("if.wav", "rb") au_end = wave.open("end.wav", "rb") au_bre...
true
true
f74f73fd5a267c81abcbd42327f9a7fb52bef246
130
py
Python
{{ cookiecutter.project_slug }}/{{ cookiecutter.application_module }}/__init__.py
uisautomation/django-boilerplate
62a1162e38fba263021dc39d872cb071533d9cc1
[ "MIT" ]
null
null
null
{{ cookiecutter.project_slug }}/{{ cookiecutter.application_module }}/__init__.py
uisautomation/django-boilerplate
62a1162e38fba263021dc39d872cb071533d9cc1
[ "MIT" ]
26
2018-01-18T11:20:34.000Z
2019-03-10T13:46:52.000Z
{{ cookiecutter.project_slug }}/{{ cookiecutter.application_module }}/__init__.py
uisautomation/django-boilerplate
62a1162e38fba263021dc39d872cb071533d9cc1
[ "MIT" ]
2
2018-01-11T20:55:44.000Z
2019-03-11T16:51:23.000Z
""" {{ cookiecutter.application_name }} Application """ default_app_config = '{{ cookiecutter.application_module }}.apps.Config'
21.666667
72
0.746154
default_app_config = '{{ cookiecutter.application_module }}.apps.Config'
true
true
f74f75d730f35402f49c0c1679c59eff8058579d
1,802
py
Python
misc/seqan_instrumentation/bin/classes/simplejson/tests/test_bigint_as_string.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
23
2015-02-17T18:34:15.000Z
2017-08-25T17:11:52.000Z
misc/seqan_instrumentation/bin/classes/simplejson/tests/test_bigint_as_string.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
34
2015-05-12T17:54:27.000Z
2019-01-28T14:30:46.000Z
misc/seqan_instrumentation/bin/classes/simplejson/tests/test_bigint_as_string.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
16
2015-02-06T20:43:39.000Z
2021-02-14T10:05:12.000Z
from unittest import TestCase import simplejson as json class TestBigintAsString(TestCase): values = [(200, 200), ((2 ** 53) - 1, 9007199254740991), ((2 ** 53), '9007199254740992'), ((2 ** 53) + 1, '9007199254740993'), (-100, -100), ((-2 ** 53)...
32.178571
67
0.481132
from unittest import TestCase import simplejson as json class TestBigintAsString(TestCase): values = [(200, 200), ((2 ** 53) - 1, 9007199254740991), ((2 ** 53), '9007199254740992'), ((2 ** 53) + 1, '9007199254740993'), (-100, -100), ((-2 ** 53)...
true
true
f74f76e775df89c1dde733e64f69faa662039738
4,728
py
Python
paapi5_python_sdk/get_browse_nodes_response.py
sergioabadarca/python-amazon-paapi
5ce054f5b2bd3a60b9ef5b3e00548198f58df48d
[ "MIT" ]
null
null
null
paapi5_python_sdk/get_browse_nodes_response.py
sergioabadarca/python-amazon-paapi
5ce054f5b2bd3a60b9ef5b3e00548198f58df48d
[ "MIT" ]
null
null
null
paapi5_python_sdk/get_browse_nodes_response.py
sergioabadarca/python-amazon-paapi
5ce054f5b2bd3a60b9ef5b3e00548198f58df48d
[ "MIT" ]
1
2019-11-08T11:31:58.000Z
2019-11-08T11:31:58.000Z
# coding: utf-8 """ Copyright 2019 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 or in ...
30.307692
105
0.623308
import pprint import re import six from paapi5_python_sdk.browse_nodes_result import BrowseNodesResult from paapi5_python_sdk.error_data import ErrorData class GetBrowseNodesResponse(object): swagger_types = { 'browse_nodes_result': 'BrowseNodesResult', 'errors': 'list[ErrorData]' ...
true
true
f74f783ea0569308cbe669687c14489074216777
10,246
py
Python
tests/test_util.py
kschu91/pyoidc
ae5702a8b2f13d5e7af173a58355cd738ec79a31
[ "Apache-2.0" ]
373
2017-03-08T21:37:03.000Z
2022-03-24T13:37:23.000Z
tests/test_util.py
kschu91/pyoidc
ae5702a8b2f13d5e7af173a58355cd738ec79a31
[ "Apache-2.0" ]
523
2017-03-02T17:03:12.000Z
2022-03-24T18:34:51.000Z
tests/test_util.py
kschu91/pyoidc
ae5702a8b2f13d5e7af173a58355cd738ec79a31
[ "Apache-2.0" ]
165
2017-03-02T16:54:42.000Z
2022-02-26T18:34:00.000Z
from http.cookiejar import FileCookieJar from http.cookiejar import http2time # type: ignore from http.cookies import SimpleCookie from urllib.parse import parse_qs from urllib.parse import urlparse import pytest from oic.exception import UnSupported from oic.oauth2 import util from oic.oic import AuthorizationReque...
34.498316
104
0.662112
from http.cookiejar import FileCookieJar from http.cookiejar import http2time from http.cookies import SimpleCookie from urllib.parse import parse_qs from urllib.parse import urlparse import pytest from oic.exception import UnSupported from oic.oauth2 import util from oic.oic import AuthorizationRequest from oic.oi...
true
true
f74f78874eaa25bbee352b98dc479c063932c5c4
13,044
py
Python
tradenity/rest.py
tradenity/python-sdk
d13fbe23f4d6ff22554c6d8d2deaf209371adaf1
[ "Apache-2.0" ]
1
2020-03-19T04:09:17.000Z
2020-03-19T04:09:17.000Z
tradenity/rest.py
tradenity/python-sdk
d13fbe23f4d6ff22554c6d8d2deaf209371adaf1
[ "Apache-2.0" ]
null
null
null
tradenity/rest.py
tradenity/python-sdk
d13fbe23f4d6ff22554c6d8d2deaf209371adaf1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Tradenity API Tradenity eCommerce Rest API Contact: support@tradenity.com """ from __future__ import absolute_import import io import json import logging import re import ssl import certifi # python 2 and python 3 compatibility library import six from six.moves.urllib.parse impor...
40.383901
134
0.539635
from __future__ import absolute_import import io import json import logging import re import ssl import certifi import six from six.moves.urllib.parse import urlencode try: import urllib3 except ImportError: raise ImportError('Swagger python client requires urllib3.') logger = logging.getLogger(__name...
true
true
f74f790ae6d66821894106c1c10364e97fd70cfc
1,207
py
Python
src/djpmp/migrations/0003_auto_20200402_0105.py
daimon99/djpmp
c479b9a173b75be0ba90a9b3954b6f88f6a01efc
[ "MIT" ]
2
2020-05-13T03:56:00.000Z
2020-10-14T12:11:54.000Z
src/djpmp/migrations/0003_auto_20200402_0105.py
daimon99/djpmp
c479b9a173b75be0ba90a9b3954b6f88f6a01efc
[ "MIT" ]
null
null
null
src/djpmp/migrations/0003_auto_20200402_0105.py
daimon99/djpmp
c479b9a173b75be0ba90a9b3954b6f88f6a01efc
[ "MIT" ]
1
2021-02-24T08:26:32.000Z
2021-02-24T08:26:32.000Z
# Generated by Django 2.2.11 on 2020-04-01 17:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('djpmp', '0002_auto_20200401_1607'), ] operations = [ migrations.AlterModelOptions( name='hrcalendar', options={'ver...
30.948718
106
0.565866
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('djpmp', '0002_auto_20200401_1607'), ] operations = [ migrations.AlterModelOptions( name='hrcalendar', options={'verbose_name': '资源日历', 'verbose_name_plural': '资源日历...
true
true
f74f795acbfa340cb08e173886285cf14fefe74d
49,935
py
Python
fnc/pipeline.py
UKPLab/coling2018-fake-news-challenge-
6446c4459b520b7f7713bc66117917e341d899dc
[ "Apache-2.0" ]
27
2018-07-29T12:57:45.000Z
2021-11-20T06:19:31.000Z
fnc/pipeline.py
UKPLab/coling2018-fake-news-challenge-
6446c4459b520b7f7713bc66117917e341d899dc
[ "Apache-2.0" ]
18
2020-01-28T22:17:34.000Z
2022-03-11T23:57:22.000Z
fnc/pipeline.py
UKPLab/coling2018-fake-news-challenge-
6446c4459b520b7f7713bc66117917e341d899dc
[ "Apache-2.0" ]
15
2018-08-12T18:00:47.000Z
2022-02-15T10:53:56.000Z
import sys import datetime import argparse import os import csv import numpy as np import os.path as path from builtins import isinstance sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) import fnc.refs.fnc1.scorer as scorer import fnc.utils.score_calculation as score_calculation import fnc.utils.est...
51.799793
185
0.683008
import sys import datetime import argparse import os import csv import numpy as np import os.path as path from builtins import isinstance sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) import fnc.refs.fnc1.scorer as scorer import fnc.utils.score_calculation as score_calculation import fnc.utils.est...
true
true
f74f7a3c96dac7cc089014822c2ab0101f9917b1
2,183
py
Python
datomic.py
rapha-opensource/pydatomic
ab4ed85bd3a599f3f85f8b8782eb6d055a6f1ee5
[ "MIT" ]
null
null
null
datomic.py
rapha-opensource/pydatomic
ab4ed85bd3a599f3f85f8b8782eb6d055a6f1ee5
[ "MIT" ]
null
null
null
datomic.py
rapha-opensource/pydatomic
ab4ed85bd3a599f3f85f8b8782eb6d055a6f1ee5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from urllib.parse import urljoin from edn import loads import requests class Database(object): def __init__(self, name, conn): self.name = name self.conn = conn def __getattr__(self, name): def f(*args, **kwargs): return getattr(self.conn, name)(self.name, *args, **kwargs) return ...
31.185714
88
0.644984
from urllib.parse import urljoin from edn import loads import requests class Database(object): def __init__(self, name, conn): self.name = name self.conn = conn def __getattr__(self, name): def f(*args, **kwargs): return getattr(self.conn, name)(self.name, *args, **kwargs) return f class Datomic(object...
true
true
f74f7dc171235c36532e8f3ba33378576f0e9669
3,992
py
Python
asp_lite/transpile.py
lorenzleutgeb/asp-lite
b9a00af610fb33538b898966a4aa55f67ebc6ffd
[ "MIT" ]
null
null
null
asp_lite/transpile.py
lorenzleutgeb/asp-lite
b9a00af610fb33538b898966a4aa55f67ebc6ffd
[ "MIT" ]
5
2018-06-10T19:35:48.000Z
2021-11-17T13:09:14.000Z
asp_lite/transpile.py
lorenzleutgeb/asp-lite
b9a00af610fb33538b898966a4aa55f67ebc6ffd
[ "MIT" ]
null
null
null
from functools import reduce from sys import stdin, stdout from itertools import combinations from .constants import * from .parse import * def transpile(src, dst): w = dst.write def unindent(previously, now): if previously == now and now == 0: return if previously < no...
29.57037
117
0.498497
from functools import reduce from sys import stdin, stdout from itertools import combinations from .constants import * from .parse import * def transpile(src, dst): w = dst.write def unindent(previously, now): if previously == now and now == 0: return if previously < no...
true
true
f74f7de33ab9af20337f2003cb4adaa62f74966b
8,205
py
Python
tensorflow/python/__init__.py
PaullMP/TensorFlowT
b9b3b5b19971671fe24868273ca5274c1ec7169f
[ "Apache-2.0" ]
1
2017-08-23T09:51:25.000Z
2017-08-23T09:51:25.000Z
tensorflow/python/__init__.py
PaullMP/TensorFlowT
b9b3b5b19971671fe24868273ca5274c1ec7169f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/__init__.py
PaullMP/TensorFlowT
b9b3b5b19971671fe24868273ca5274c1ec7169f
[ "Apache-2.0" ]
null
null
null
# 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...
30.501859
80
0.73504
import ctypes import importlib import inspect import sys import traceback import numpy as np try: if hasattr(sys, 'getdlopenflags') and hasattr(sys, 'setdlopenflags'): _default_dlopen_flags = sys.getdlopenflags() sys.setdlopenflags(_default_dlopen_flags | ctypes.RTLD_GLOBAL) from...
true
true
f74f7e1dc2dc7d99b5afeae0feffb0087d48e16d
3,003
py
Python
engine/AgentBase.py
JohannSuarez/tokenspice
d791d8821078fe1156c62632c4bbe533c15b3d96
[ "Apache-2.0" ]
26
2020-11-20T15:28:09.000Z
2021-07-25T20:24:55.000Z
engine/AgentBase.py
JohannSuarez/tokenspice
d791d8821078fe1156c62632c4bbe533c15b3d96
[ "Apache-2.0" ]
13
2021-06-16T14:06:08.000Z
2021-07-27T17:25:54.000Z
engine/AgentBase.py
JohannSuarez/tokenspice
d791d8821078fe1156c62632c4bbe533c15b3d96
[ "Apache-2.0" ]
7
2021-02-19T01:04:16.000Z
2021-07-22T11:50:18.000Z
import logging log = logging.getLogger('baseagent') from abc import ABC, abstractmethod from enforce_typing import enforce_types import typing from engine import AgentWallet from web3engine import bpool, datatoken, globaltokens from util.constants import SAFETY from util.strutil import StrMixin from web3tools.web3uti...
35.329412
86
0.576424
import logging log = logging.getLogger('baseagent') from abc import ABC, abstractmethod from enforce_typing import enforce_types import typing from engine import AgentWallet from web3engine import bpool, datatoken, globaltokens from util.constants import SAFETY from util.strutil import StrMixin from web3tools.web3uti...
true
true
f74f7f0d5b0d151f982709e5b2bc32ef5b9aabc6
19,356
py
Python
corpus/event.py
LeMyst/ConferenceCorpus
727afb6f5c9b2e3807260a6161a27531b2f77dd2
[ "Apache-2.0" ]
null
null
null
corpus/event.py
LeMyst/ConferenceCorpus
727afb6f5c9b2e3807260a6161a27531b2f77dd2
[ "Apache-2.0" ]
null
null
null
corpus/event.py
LeMyst/ConferenceCorpus
727afb6f5c9b2e3807260a6161a27531b2f77dd2
[ "Apache-2.0" ]
null
null
null
''' Created on 2021-07-26 @author: wf ''' from typing import Callable from corpus.config import EventDataSourceConfig from lodstorage.csv import CSV from lodstorage.entity import EntityManager from lodstorage.jsonable import JSONAble from lodstorage.lod import LOD from lodstorage.sql import SQLDB from lodstorage.stora...
37.584466
274
0.60622
from typing import Callable from corpus.config import EventDataSourceConfig from lodstorage.csv import CSV from lodstorage.entity import EntityManager from lodstorage.jsonable import JSONAble from lodstorage.lod import LOD from lodstorage.sql import SQLDB from lodstorage.storageconfig import StorageConfig from corpus.q...
true
true
f74f7f5933c8eac5fdbc4a67520e5d824af306c0
12,439
py
Python
tests/test_rbfopt_degree0_models.py
KOLANICH-ML/rbfopt
4149dc2cb241eacb4b1bfc028e8c2a9ee67ddee1
[ "BSD-3-Clause" ]
163
2015-09-29T05:50:00.000Z
2022-03-22T07:12:33.000Z
tests/test_rbfopt_degree0_models.py
gnannicini/rbfopt
2243135f7307b4cb9a99292220e2381a1e776fbf
[ "BSD-3-Clause" ]
29
2017-05-29T23:06:49.000Z
2022-03-17T00:33:06.000Z
tests/test_rbfopt_degree0_models.py
gnannicini/rbfopt
2243135f7307b4cb9a99292220e2381a1e776fbf
[ "BSD-3-Clause" ]
37
2016-02-26T06:36:35.000Z
2022-03-05T09:55:42.000Z
"""Test the successful creation of Pyomo 0-degree models in RBFOpt. This module contains unit tests for the module rbfopt_degree0_models. Licensed under Revised BSD license, see LICENSE. (C) Copyright International Business Machines Corporation 2016. """ from __future__ import print_function from __future__ import ...
46.763158
79
0.556395
from __future__ import print_function from __future__ import division from __future__ import absolute_import import unittest import numpy as np import pyomo.environ import rbfopt import rbfopt.rbfopt_utils as ru import rbfopt.rbfopt_degree0_models as d0 from rbfopt.rbfopt_settings import RbfoptSettings class TestMul...
true
true
f74f811d4e66e21788e119e20afbcb1d02b5dfcc
800
py
Python
checkov/cloudformation/checks/resource/aws/SQSQueueEncryption.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
1
2022-02-20T21:20:39.000Z
2022-02-20T21:20:39.000Z
checkov/cloudformation/checks/resource/aws/SQSQueueEncryption.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
3
2022-03-07T20:37:31.000Z
2022-03-21T20:20:14.000Z
checkov/cloudformation/checks/resource/aws/SQSQueueEncryption.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from typing import Any from checkov.common.models.enums import CheckCategories from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.consts import ANY_VALUE class SQSQueueEncryption(BaseResourceValueCheck): def __init__(self) -> None: ...
33.333333
106
0.7475
from typing import Any from checkov.common.models.enums import CheckCategories from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.consts import ANY_VALUE class SQSQueueEncryption(BaseResourceValueCheck): def __init__(self) -> None: ...
true
true