hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c1080c3a09ec7cf57db7916fe5248f126bb96073
244
py
Python
exercise/app/lib/check_signature.py
assuzzanne/my-sqreen
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
exercise/app/lib/check_signature.py
assuzzanne/my-sqreen
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
1
2021-06-02T00:27:34.000Z
2021-06-02T00:27:34.000Z
exercise/app/lib/check_signature.py
assuzzanne/notifications-dispatcher-api
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
import hmac import hashlib def check_signature(secret_key, request_signature, request_body): hasher = hmac.new(secret_key, request_body, hashlib.sha256) dig = hasher.hexdigest() return hmac.compare_digest(dig, request_signature)
24.4
65
0.778689
b0332c4fd8c30a15c6b236669f5b0119a0a2f7d2
632
py
Python
labelspark/api_key.py
cristobalmitchell/labelspark
39e1df53de7c1da793944c53112d11711778332d
[ "Apache-2.0" ]
6
2021-05-27T00:26:06.000Z
2022-02-03T00:29:00.000Z
labelspark/api_key.py
cristobalmitchell/labelspark
39e1df53de7c1da793944c53112d11711778332d
[ "Apache-2.0" ]
10
2021-07-01T10:24:17.000Z
2022-02-25T20:29:10.000Z
labelspark/api_key.py
cristobalmitchell/labelspark
39e1df53de7c1da793944c53112d11711778332d
[ "Apache-2.0" ]
3
2021-07-01T10:15:53.000Z
2021-12-29T20:24:51.000Z
# Databricks notebook source #We recommend using Databricks Secrets API to create a variable for your Labelbox API Key, but if you do not have access to the Secrets API you can use this notebook template to store your API key in a separate notebook. Be sure to include in gitignore to avoid committing your API key to Gi...
48.615385
293
0.773734
b99a2d8a7c40282c58d0dfcf4c77bdf4e5e8ef0f
273
py
Python
async_dns/core/logger.py
RomaLash/async_dns
badfa5302fe18a230bc9d6754f78a61b375affaa
[ "MIT" ]
24
2020-10-16T16:36:40.000Z
2020-10-16T16:37:01.000Z
async_dns/core/logger.py
RomaLash/async_dns
badfa5302fe18a230bc9d6754f78a61b375affaa
[ "MIT" ]
null
null
null
async_dns/core/logger.py
RomaLash/async_dns
badfa5302fe18a230bc9d6754f78a61b375affaa
[ "MIT" ]
null
null
null
import os import logging logger = logging.getLogger(__package__) logger.setLevel(os.environ.get('LOGLEVEL') or 'INFO') handler = logging.StreamHandler() fmt = logging.Formatter('%(asctime)s %(levelname)s: %(message)s') handler.setFormatter(fmt) logger.addHandler(handler)
27.3
65
0.772894
fddc58d49e1790e88d6b50e4f8169a003517fd3e
2,270
py
Python
tensorflow_datasets/core/features/audio_feature.py
atksh/datasets
814058b31ebd99e418114016d60ab4d6f8f82070
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/features/audio_feature.py
atksh/datasets
814058b31ebd99e418114016d60ab4d6f8f82070
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/features/audio_feature.py
atksh/datasets
814058b31ebd99e418114016d60ab4d6f8f82070
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
36.031746
87
0.693833
48e775a8637e6109dde725e9a1ce4e9206a7130c
1,306
py
Python
app/core/tests/test_admin.py
Brandogs/recipe-app-api
c2878acdc06b3d70f8ba6d2c285bb10f4caf7c79
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
Brandogs/recipe-app-api
c2878acdc06b3d70f8ba6d2c285bb10f4caf7c79
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
Brandogs/recipe-app-api
c2878acdc06b3d70f8ba6d2c285bb10f4caf7c79
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@test.com', ...
31.095238
68
0.637825
94d193ed42d38514b5bbeb731697681ea6ee2db0
13,011
py
Python
atom/proton/python/proton_api/models/financial_health_check_request.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/proton/python/proton_api/models/financial_health_check_request.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/proton/python/proton_api/models/financial_health_check_request.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.7.18 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Fina...
35.54918
264
0.65998
8c362d0ad94d5292fd40b744fe74552c8049b218
863
py
Python
project/utils/ctrl_utils.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
project/utils/ctrl_utils.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
project/utils/ctrl_utils.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
""" Controller utilities. """ from werkzeug import utils from typing import Any from project.models.property_model import PropertyModel def escape_dict(data: dict[str, Any]) -> dict[str, Any]: """ Escape all fields of dict. """ return {k: utils.escape(v) for k, v in data.items()} def escape(value: ...
20.069767
67
0.604867
dc8fa794ae7e24d227f6fc22cd43055cca2ac0a5
20,403
py
Python
utils/00_YOLO_100_attack_10_area.py
zzj403/mmd_dap
14c0dddc822176f4e92b843f1c083512297b3db4
[ "Apache-2.0" ]
null
null
null
utils/00_YOLO_100_attack_10_area.py
zzj403/mmd_dap
14c0dddc822176f4e92b843f1c083512297b3db4
[ "Apache-2.0" ]
null
null
null
utils/00_YOLO_100_attack_10_area.py
zzj403/mmd_dap
14c0dddc822176f4e92b843f1c083512297b3db4
[ "Apache-2.0" ]
null
null
null
""" Training code for Adversarial patch training using Faster RCNN based on mmdetection Redo UPC in PyTorch sp_lr = 0.3 pop = 300 random texture evo_step_num = 40 """ import PIL import cv2 # from load_data import * import copy from tqdm import tqdm from mmdet import __version__ from mmdet.apis import init_detector, in...
37.505515
169
0.570945
4f29b5781123726a60bbcb4b66b599aa0843717a
4,829
py
Python
checks_available/check_hbase_regionserver.py
net-angels/puypuy
23fb56f519989f899a7a3aeee5a6d403afee4809
[ "Apache-2.0" ]
1
2017-05-04T08:43:12.000Z
2017-05-04T08:43:12.000Z
checks_available/check_hbase_regionserver.py
net-angels/puypuy
23fb56f519989f899a7a3aeee5a6d403afee4809
[ "Apache-2.0" ]
null
null
null
checks_available/check_hbase_regionserver.py
net-angels/puypuy
23fb56f519989f899a7a3aeee5a6d403afee4809
[ "Apache-2.0" ]
null
null
null
import lib.record_rate import lib.commonclient import lib.puylogger import lib.getconfig import datetime import json hbase_region_url = lib.getconfig.getparam('HBase-Region', 'jmx') cluster_name = lib.getconfig.getparam('SelfConfig', 'cluster_name') check_type = 'hbase' def runcheck(): local_vars = [] try: ...
61.910256
197
0.601988
d2e0188d0b1cbdba1774f1b56ff44ebc483d53ff
964
py
Python
backend/agenda/models.py
cruznicollas/Medicar
50733191056cffd76b12db804d9aaaea4a5ef8c8
[ "MIT" ]
1
2021-08-16T12:16:07.000Z
2021-08-16T12:16:07.000Z
backend/agenda/models.py
cruznicollas/Medicar
50733191056cffd76b12db804d9aaaea4a5ef8c8
[ "MIT" ]
null
null
null
backend/agenda/models.py
cruznicollas/Medicar
50733191056cffd76b12db804d9aaaea4a5ef8c8
[ "MIT" ]
null
null
null
from django.db import models from medico.models import Medico # Create your models here. class Horario(models.Model): horario = models.TimeField(auto_now=False, auto_now_add=False) def __str__(self): return f'{self.horario}' class Agenda(models.Model): """ classe para a agenda do médico ...
24.717949
66
0.626556
caf132e1f35d0903a18f7899a60dba58308fb9ef
13,445
py
Python
Retinexdip.py
zhaozunjin/RetinexDIP
05ab78b725a5c9a6a014a38bfdb2778c7535718b
[ "MIT" ]
16
2021-06-28T03:18:53.000Z
2022-03-27T11:30:24.000Z
Retinexdip.py
zhaozunjin/RetinexDIP
05ab78b725a5c9a6a014a38bfdb2778c7535718b
[ "MIT" ]
1
2022-03-23T03:33:39.000Z
2022-03-23T03:40:42.000Z
Retinexdip.py
zhaozunjin/RetinexDIP
05ab78b725a5c9a6a014a38bfdb2778c7535718b
[ "MIT" ]
7
2021-09-24T11:02:27.000Z
2022-03-27T11:30:25.000Z
from collections import namedtuple from net import * from net.downsampler import * from net.losses import StdLoss, GradientLoss, ExtendedL1Loss, GrayLoss from net.losses import ExclusionLoss, TVLoss from net.noise import get_noise import matplotlib.pyplot as plt from PIL import Image from skimage import exposure,color ...
40.866261
136
0.635329
3cdb8ba8e3212a27303a856167ddf2d5ac05d6f0
8,620
py
Python
circa/formats/nec.py
marcan/circa
e517a268f2b40b9a1f8f04696982c5c3c80df960
[ "X11" ]
14
2020-11-22T23:34:26.000Z
2022-03-21T21:03:45.000Z
circa/formats/nec.py
marcan/circa
e517a268f2b40b9a1f8f04696982c5c3c80df960
[ "X11" ]
null
null
null
circa/formats/nec.py
marcan/circa
e517a268f2b40b9a1f8f04696982c5c3c80df960
[ "X11" ]
null
null
null
#!/usr/bin/python import statistics from ..core import IRCode, DataError, DecodeError from ..util import to_bits_lsb, from_bits_lsb __all__ = ["NECCode"] class NECCode(IRCode): NAMES = ["nec"] def params(self): yield from (i for i in super().params() if i[0] not in "packet_interval") yield ...
38.828829
123
0.533759
164920c75c621f7ae804a257847c1c32c33740f6
4,887
py
Python
modules/anti_tamper.py
bobombobo/python-obfuscator
c92271a6a482d74d3ac5fc3525261f486914ce16
[ "CC0-1.0" ]
1
2021-05-18T16:04:31.000Z
2021-05-18T16:04:31.000Z
modules/anti_tamper.py
bobombobo/python-obfuscator
c92271a6a482d74d3ac5fc3525261f486914ce16
[ "CC0-1.0" ]
1
2021-05-31T08:09:47.000Z
2021-06-01T16:12:05.000Z
modules/anti_tamper.py
bobombobo/python-obfuscator
c92271a6a482d74d3ac5fc3525261f486914ce16
[ "CC0-1.0" ]
null
null
null
import time import hashlib import requests import random import string import getopt import http.cookiejar import sys import urllib.parse import urllib.request from http.cookies import SimpleCookie from json import loads as json_loads from os import environ def gen_anti_code(code): _headers = {"Referer": 'https://re...
28.248555
153
0.634336
a30d5f1ba5e9257e8b9fb082649db40aa20fe2e2
3,332
py
Python
icp2edd/icpobj/cpmeta/spatialCoverage.py
BjerknesClimateDataCentre/ICOS-CP2ERDDAP
42909fca2654aaf3f8a9c3894f3910ecf07ae0c5
[ "MIT" ]
null
null
null
icp2edd/icpobj/cpmeta/spatialCoverage.py
BjerknesClimateDataCentre/ICOS-CP2ERDDAP
42909fca2654aaf3f8a9c3894f3910ecf07ae0c5
[ "MIT" ]
10
2020-12-04T13:44:21.000Z
2021-05-14T08:46:22.000Z
icp2edd/icpobj/cpmeta/spatialCoverage.py
BjerknesClimateDataCentre/ICOS-CP2ERDDAP
42909fca2654aaf3f8a9c3894f3910ecf07ae0c5
[ "MIT" ]
1
2020-11-30T14:00:05.000Z
2020-11-30T14:00:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # spatialCoverage.py """ The spatialCoverage module is used to explore ICOS CP cpmeta::SpatialCoverages' metadata. Example usage: from cpmeta import SpatialCoverage spatialCoverages = SpatialCoverage() # initialise ICOS CP SpatialCoverage object s...
30.290909
103
0.628752
b95fe5b7a2de6ccddde14d1be80f3dd7bc22f55e
3,890
py
Python
examples/cobalt-preproc/Initial_bio/make_ic_file_bio.py
bilgetutak/pyroms
3b0550f26f4ac181b7812e14a7167cd1ca0797f0
[ "BSD-3-Clause" ]
75
2016-04-05T07:15:57.000Z
2022-03-04T22:49:54.000Z
examples/cobalt-preproc/Initial_bio/make_ic_file_bio.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
27
2017-02-26T04:27:49.000Z
2021-12-01T17:26:56.000Z
examples/cobalt-preproc/Initial_bio/make_ic_file_bio.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
56
2016-05-11T06:19:14.000Z
2022-03-22T19:04:17.000Z
import subprocess import os import sys import subprocess import numpy as np import netCDF4 as nc import pyroms import pyroms_toolbox from remap_bio import remap_bio #build list of date to remap tag = 'y1988-2007m01' data_dir = '/archive/u1/uaf/kate/COBALT/' dst_dir='./' src_grd = pyroms_toolbox.BGrid_GFDL.get_nc_B...
51.866667
774
0.678663
1a9d1cb1d914e69df58b97e0b8ae50683fc16c94
2,661
py
Python
webapi/tct-csp-w3c-tests/csp-py/csp_default-src_cross-origin_font_blocked-manual.py
zhuyongyong/crosswalk-test-suite
24f3f8cfa663a365b0a22685d5bd096a637f72db
[ "BSD-3-Clause" ]
3
2015-08-12T03:39:31.000Z
2019-09-18T04:37:54.000Z
webapi/tct-csp-w3c-tests/csp-py/csp_default-src_cross-origin_font_blocked-manual.py
zhuyongyong/crosswalk-test-suite
24f3f8cfa663a365b0a22685d5bd096a637f72db
[ "BSD-3-Clause" ]
23
2015-01-19T03:10:13.000Z
2016-06-13T03:08:51.000Z
webapi/tct-csp-w3c-tests/csp-py/csp_default-src_cross-origin_font_blocked-manual.py
zhuyongyong/crosswalk-test-suite
24f3f8cfa663a365b0a22685d5bd096a637f72db
[ "BSD-3-Clause" ]
18
2015-02-28T21:29:55.000Z
2022-01-20T10:06:28.000Z
def main(request, response): _URL = request.url _CSSURL = _URL[:_URL.index('/csp') + 1] + "csp/support/w3c/CanvasTest.ttf" response.headers.set( "Content-Security-Policy", "default-src http://www.tizen.com 'unsafe-inline'") response.headers.set( "X-Content-Security-Policy", ...
39.132353
84
0.701992
c7ea440b517e3b2dc9145d4c3644400e58f29b66
11,571
py
Python
vrchatapi/model/player_moderation_type.py
vrchatapi/vrchatapi-python
996b7ddf2914059f1fd4e5def5e3555e678634c0
[ "MIT" ]
8
2021-08-25T02:35:30.000Z
2022-03-28T18:11:58.000Z
vrchatapi/model/player_moderation_type.py
vrchatapi/vrchatapi-python
996b7ddf2914059f1fd4e5def5e3555e678634c0
[ "MIT" ]
1
2022-03-18T20:29:30.000Z
2022-03-18T20:35:05.000Z
vrchatapi/model/player_moderation_type.py
vrchatapi/vrchatapi-python
996b7ddf2914059f1fd4e5def5e3555e678634c0
[ "MIT" ]
1
2022-01-11T10:49:12.000Z
2022-01-11T10:49:12.000Z
""" VRChat API Documentation The version of the OpenAPI document: 1.6.7 Contact: me@ruby.js.org Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from vrchatapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ...
41.473118
161
0.557774
8bb44421ca1fa9a5dd3a2c73a82996603e53de8a
1,220
py
Python
setup.py
StevenCostiou/reflectivipy
750ed93cfb463304958e590d895c76169caa4b98
[ "MIT" ]
10
2019-01-18T17:45:18.000Z
2019-10-05T08:58:17.000Z
setup.py
StevenCostiou/reflectivipy
750ed93cfb463304958e590d895c76169caa4b98
[ "MIT" ]
null
null
null
setup.py
StevenCostiou/reflectivipy
750ed93cfb463304958e590d895c76169caa4b98
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup import reflectivipy packages = ["reflectivipy", "reflectivipy.wrappers"] setup( name="reflectivipy", version=reflectivipy.__version__, description=( "A Python Implementation of the Reflectivity API from " "the Pharo language" ), long_des...
32.972973
84
0.659016
c02314a5949b3c81927cf5790566cc54619685c6
1,832
py
Python
wordrl/a2c/play.py
VictorButoi/WordRL
5a8af7c6f639d6d7eebf16d7859ef25dcf7ae85c
[ "MIT" ]
null
null
null
wordrl/a2c/play.py
VictorButoi/WordRL
5a8af7c6f639d6d7eebf16d7859ef25dcf7ae85c
[ "MIT" ]
2
2022-03-06T15:34:20.000Z
2022-03-06T17:17:24.000Z
wordrl/a2c/play.py
VictorButoi/WordRL
5a8af7c6f639d6d7eebf16d7859ef25dcf7ae85c
[ "MIT" ]
null
null
null
from typing import Tuple, List import wordle.state from a2c.agent import GreedyActorCriticAgent from a2c.module import AdvantageActorCritic from wordle.wordle import WordleEnvBase def load_from_checkpoint( checkpoint: str ) -> Tuple[AdvantageActorCritic, GreedyActorCriticAgent, WordleEnvBase]: """ :p...
25.802817
75
0.628821
ca7c6d9db8e16cf4f393742f067f86691c9844c4
2,277
py
Python
setup.py
Chris-hughes10/func-to-script
d7fc948b498d84863c8816b61c84e88e98d0667b
[ "MIT" ]
1
2022-02-25T12:42:06.000Z
2022-02-25T12:42:06.000Z
setup.py
Chris-hughes10/func-to-script
d7fc948b498d84863c8816b61c84e88e98d0667b
[ "MIT" ]
null
null
null
setup.py
Chris-hughes10/func-to-script
d7fc948b498d84863c8816b61c84e88e98d0667b
[ "MIT" ]
null
null
null
#!/usr/bin/.env python # -*- coding: utf-8 -*- import io import os from pkg_resources import Requirement from setuptools import find_packages, setup import versioneer # Package meta-data. NAME = "func-to-script" DESCRIPTION = """ func-to-script` is a lightweight and convenient tool which can be used to turn a Pytho...
30.36
116
0.693456
0bef9e9ed18b09790984c7de997cacf9347374f2
50
py
Python
first_file.py
tatt0826/test
72e33adbf9e53d57d59c517f8501c83332b4b22c
[ "MIT" ]
null
null
null
first_file.py
tatt0826/test
72e33adbf9e53d57d59c517f8501c83332b4b22c
[ "MIT" ]
null
null
null
first_file.py
tatt0826/test
72e33adbf9e53d57d59c517f8501c83332b4b22c
[ "MIT" ]
null
null
null
hoge aaaaa new line by local new new line remote
8.333333
19
0.78
72d4f47356368c5124d0be9d5b1731532bffd083
691
py
Python
zerver/lib/statistics.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
1
2020-03-19T00:52:48.000Z
2020-03-19T00:52:48.000Z
zerver/lib/statistics.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
null
null
null
zerver/lib/statistics.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
1
2020-04-21T01:26:54.000Z
2020-04-21T01:26:54.000Z
from zerver.models import UserProfile, UserActivityInterval from datetime import datetime, timedelta # Return the amount of Zulip usage for this user between the two # given dates def seconds_usage_between(user_profile: UserProfile, begin: datetime, end: datetime) -> timedelta: intervals = UserActivityInterval.ob...
40.647059
98
0.6411
b0bab2562a68f48c6f8b846efb2377a20fd5eaae
5,658
py
Python
test_scripts/example_inverted_pendulum_1ms.py
forgi86/pyMPC
291db149554767a035fcb01df3fed7a6b3fe60e4
[ "MIT" ]
84
2019-05-28T09:27:37.000Z
2022-03-31T08:38:23.000Z
test_scripts/example_inverted_pendulum_1ms.py
passion4energy/pyMPC
4b004ba707dab49cd36d96a3575b8593c870a904
[ "MIT" ]
2
2020-04-17T00:03:27.000Z
2021-01-30T11:35:58.000Z
test_scripts/example_inverted_pendulum_1ms.py
passion4energy/pyMPC
4b004ba707dab49cd36d96a3575b8593c870a904
[ "MIT" ]
20
2019-10-13T13:50:16.000Z
2022-03-31T08:38:25.000Z
import numpy as np import scipy.sparse as sparse import time import matplotlib.pyplot as plt from scipy.integrate import ode from scipy.interpolate import interp1d from pyMPC.mpc import MPCController if __name__ == '__main__': # Constants # M = 0.5 m = 0.2 b = 0.1 ftheta = 0.1 l = 0.3 g = ...
33.88024
150
0.541534
d28a6f18c75577c6056adf7d2fe55db49f79c152
956
py
Python
.history/my_classes/FirstClassFunctions/callables_20210706010951.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/callables_20210706010951.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/callables_20210706010951.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Callables What are callables? Any object that can be called using the () # operator always return a value -> like functions and methods -> but it goes beyond these two... Many other objects in Python are also callable To see if an object is callable, we can use the builtin function: callable ...
28.969697
153
0.578452
27166786132f3073a85e7129900c176a50c1d021
1,479
py
Python
code/sensors/Thermo_MAX31855.py
uorocketry/Cistern
1f6f8c9319b4e9cddf207be95064153f7deebadc
[ "MIT" ]
1
2022-03-25T04:03:54.000Z
2022-03-25T04:03:54.000Z
code/sensors/Thermo_MAX31855.py
uorocketry/Cistern
1f6f8c9319b4e9cddf207be95064153f7deebadc
[ "MIT" ]
1
2019-10-03T01:14:01.000Z
2019-10-03T01:31:07.000Z
code/sensors/Thermo_MAX31855.py
uorocketry/Cistern
1f6f8c9319b4e9cddf207be95064153f7deebadc
[ "MIT" ]
1
2022-03-25T04:03:55.000Z
2022-03-25T04:03:55.000Z
import time import spidev import gpiozero class Thermo: #def __init__(self, bus, device): def __init__(self, pin, spi): self.spi = spi self.ce = gpiozero.DigitalOutputDevice(pin, active_high=False,initial_value=True) def read(self): self.ce.on() ...
37.923077
104
0.597701
119cfe7f2f001caea8aad166a7004ca9a76ac2b0
4,215
py
Python
pushservice/src/Controller/SendLog.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
1
2020-01-27T22:53:56.000Z
2020-01-27T22:53:56.000Z
pushservice/src/Controller/SendLog.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
pushservice/src/Controller/SendLog.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
####################################################################### # # Push Service for Enigma-2 # Coded by betonme (c) 2012 <glaserfrank(at)gmail.com> # Support: http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=167779 # # This program is free software; you can redistribute it and/or # modi...
36.025641
134
0.666192
e8650f43cea4946966bce8af3fd1e1a52c578c6e
4,931
py
Python
jobfunnel/config/settings.py
marchbnr/JobFunnel
446e9e06790467d6274e7e69cc505e7b3d982e03
[ "MIT" ]
1,652
2019-07-13T14:41:37.000Z
2022-03-29T04:25:06.000Z
jobfunnel/config/settings.py
GlobalOpenSourceSociety/JobFunnel
45b3a8784313f1af1f21536df77c63868ffcdb7d
[ "MIT" ]
124
2019-07-04T16:36:04.000Z
2022-03-22T19:52:58.000Z
jobfunnel/config/settings.py
GlobalOpenSourceSociety/JobFunnel
45b3a8784313f1af1f21536df77c63868ffcdb7d
[ "MIT" ]
215
2019-11-12T01:07:24.000Z
2022-03-15T20:23:10.000Z
"""Settings YAML Schema w/ validator """ import ipaddress from cerberus import Validator from jobfunnel.resources import (LOG_LEVEL_NAMES, DelayAlgorithm, Locale, Provider, Remoteness) from jobfunnel.resources.defaults import * SETTINGS_YAML_SCHEMA = { 'master_csv_file': { ...
29.177515
78
0.446765
e6dfdbaf9b479f43a1ffb394ae244ee0af207de6
1,066
py
Python
examples/NAMD/analysis/FKBP_test/milestone_10/analysis.py
dhimanray/WEMRR
aab019f1d1bb4d6db6dea36f9444167591129322
[ "BSD-3-Clause" ]
null
null
null
examples/NAMD/analysis/FKBP_test/milestone_10/analysis.py
dhimanray/WEMRR
aab019f1d1bb4d6db6dea36f9444167591129322
[ "BSD-3-Clause" ]
null
null
null
examples/NAMD/analysis/FKBP_test/milestone_10/analysis.py
dhimanray/WEMRR
aab019f1d1bb4d6db6dea36f9444167591129322
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #get_ipython().magic(u'matplotlib inline') from matplotlib import pyplot as plt import numpy as np from wemrr import * np.set_printoptions(threshold=np.inf) import w_ipa w = w_ipa.WIPI() # At startup, it will load or run the analysis schemes specified in the configuration file (typically west.cfg...
36.758621
111
0.62758
2ace2bd005703f3a86c19590c1270cedbb48bd72
268
py
Python
mungo/__init__.py
Sniedes722/motorhead
3f53508179a97f04a5ecadb078cc99149be08a7e
[ "MIT" ]
1
2017-11-14T06:44:49.000Z
2017-11-14T06:44:49.000Z
mungo/__init__.py
Sniedes722/motorhead
3f53508179a97f04a5ecadb078cc99149be08a7e
[ "MIT" ]
null
null
null
mungo/__init__.py
Sniedes722/motorhead
3f53508179a97f04a5ecadb078cc99149be08a7e
[ "MIT" ]
null
null
null
from ctypes import cdll lib = cdll.LoadLibrary('./mungo/build/mungo.so') lib. class MungoArray: def __init__(self): self.mgArray = [] def addArray(self,num1,num2): self.arraySum = lib.add(num1,num2) return self.arraySum
19.142857
48
0.619403
fd4961550be9940b56272fd1eac19e9018c0f242
14,039
py
Python
examples/seismic/model.py
rhodrin/devito
cd1ae745272eb0315aa1c36038a3174f1817e0d0
[ "MIT" ]
null
null
null
examples/seismic/model.py
rhodrin/devito
cd1ae745272eb0315aa1c36038a3174f1817e0d0
[ "MIT" ]
null
null
null
examples/seismic/model.py
rhodrin/devito
cd1ae745272eb0315aa1c36038a3174f1817e0d0
[ "MIT" ]
null
null
null
import numpy as np from sympy import sin, Abs from devito import (Grid, SubDomain, Function, Constant, SubDimension, Eq, Inc, Operator) from devito.builtins import initialize_function, gaussian_smooth, mmax from devito.tools import as_tuple __all__ = ['Model', 'ModelElastic', 'ModelViscoelastic']...
35.0975
89
0.593917
a17ef349bae2a8bea09c1d41f071c2f5f98df6d5
1,606
py
Python
.history/my_classes/FunctionParameters/default_values_20210702203211.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FunctionParameters/default_values_20210702203211.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FunctionParameters/default_values_20210702203211.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""[Default values] What happens at run time... When modules are loaded: All the code is executed immediately. Module Code a = 10 the interger object 10 is created and a references it. def func(a): the function object is created, and func references it. print(a) ...
28.678571
195
0.662516
e35f69981ba3366e9e6802d6dbc127b76b9b8a54
3,618
py
Python
vissl/hooks/swav_hooks.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
2,512
2021-01-27T18:44:44.000Z
2022-03-31T19:33:49.000Z
vissl/hooks/swav_hooks.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
361
2021-01-27T20:12:09.000Z
2022-03-31T12:39:34.000Z
vissl/hooks/swav_hooks.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
277
2021-01-29T08:09:02.000Z
2022-03-31T07:57:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import contextlib import torch import torch.nn as nn from classy_vision import tasks from classy_vision.hooks.classy_hook import ClassyHook ...
37.6875
85
0.590934
fd37b121c8ae84c4549baa98f91c37138456f744
2,720
py
Python
venv/Scripts/alpaca.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Scripts/alpaca.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Scripts/alpaca.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
#!C:\Users\rexli\Desktop\Commonly Used\StockTradingBot\venv\Scripts\python.exe """ alpaca.py Alpaca """ import sys from alpacalib.regex import Regex from alpacalib.regex import RegexError from alpacalib.nfa import NFA from alpacalib.dfa import DFA from alpacalib.dot import Dot from alpacalib.options import Options fr...
27.474747
107
0.575
88900cf562896d235651893abbe2336d1dba421d
1,411
py
Python
setup.py
Archstacker/thefuck
ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e
[ "MIT" ]
null
null
null
setup.py
Archstacker/thefuck
ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e
[ "MIT" ]
null
null
null
setup.py
Archstacker/thefuck
ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e
[ "MIT" ]
1
2021-06-21T09:01:08.000Z
2021-06-21T09:01:08.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os if os.environ.get('CONVERT_README'): import pypandoc long_description = pypandoc.convert('README.md', 'rst') else: long_description = '' version = sys.version_info[:2] if version < (2, 7): print('thefuck requires P...
31.355556
81
0.638554
b17759e697e4be2ad2bddf87e04a29ddf00c885f
196
py
Python
nsd1902/devops/day01/zb.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
1
2019-09-19T04:53:22.000Z
2019-09-19T04:53:22.000Z
nsd1902/devops/day01/zb.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
null
null
null
nsd1902/devops/day01/zb.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
1
2021-12-28T04:26:02.000Z
2021-12-28T04:26:02.000Z
import os import time print('starting...') retval = os.fork() if retval: print('父进程') time.sleep(60) else: print('子进程') time.sleep(15) exit() print('done') # watch -n1 ps a
11.529412
20
0.591837
8ae630248a301fed08c2d6515384cbd43f160827
2,986
py
Python
services/simulation/periodictasks.py
rtubio/server
3bb15f4d4dcd543d6f95d1fda2cb737de0bb9a9b
[ "Apache-2.0" ]
4
2015-03-23T16:34:53.000Z
2017-12-12T11:41:54.000Z
services/simulation/periodictasks.py
rtubio/server
3bb15f4d4dcd543d6f95d1fda2cb737de0bb9a9b
[ "Apache-2.0" ]
42
2015-01-08T22:21:04.000Z
2021-12-13T19:48:44.000Z
services/simulation/periodictasks.py
rtubio/server
3bb15f4d4dcd543d6f95d1fda2cb737de0bb9a9b
[ "Apache-2.0" ]
2
2015-04-04T15:23:35.000Z
2017-07-23T23:14:06.000Z
""" Copyright 2013, 2014 Ricardo Tubio-Pardavila 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 ...
28.711538
79
0.679839
9b44732bf8fa8e951bf6b19f0f397080624c2ade
1,064
py
Python
nereid/nereid/api/api_v1/endpoints/reference_data.py
austinorr/nereid
5e4b19d6d1a57f1e514b775ca1b3851ddf8eb7f7
[ "BSD-3-Clause" ]
null
null
null
nereid/nereid/api/api_v1/endpoints/reference_data.py
austinorr/nereid
5e4b19d6d1a57f1e514b775ca1b3851ddf8eb7f7
[ "BSD-3-Clause" ]
3
2020-01-11T21:51:16.000Z
2020-02-18T16:11:34.000Z
nereid/nereid/api/api_v1/endpoints/reference_data.py
austinorr/nereid
5e4b19d6d1a57f1e514b775ca1b3851ddf8eb7f7
[ "BSD-3-Clause" ]
1
2019-04-23T18:25:25.000Z
2019-04-23T18:25:25.000Z
import ujson as json from typing import Dict, Any from fastapi import APIRouter, HTTPException, Depends from nereid.api.api_v1.models.reference_models import ReferenceDataResponse from nereid.api.api_v1.utils import get_valid_context from nereid.core.io import load_json router = APIRouter() @router.get( "/refe...
28.756757
102
0.706767
ca943ddefebda9644f69a01d77596f19e662cec6
83,358
py
Python
zerver/lib/bugdown/__init__.py
shreyanshdwivedi/zulip
fe39ad04e191c4d0d4a4b54fd94529a9df9f72ae
[ "Apache-2.0" ]
null
null
null
zerver/lib/bugdown/__init__.py
shreyanshdwivedi/zulip
fe39ad04e191c4d0d4a4b54fd94529a9df9f72ae
[ "Apache-2.0" ]
null
null
null
zerver/lib/bugdown/__init__.py
shreyanshdwivedi/zulip
fe39ad04e191c4d0d4a4b54fd94529a9df9f72ae
[ "Apache-2.0" ]
null
null
null
# Zulip's main markdown implementation. See docs/subsystems/markdown.md for # detailed documentation on our markdown syntax. from typing import (Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Set, Tuple, TypeVar, Union, cast) from mypy_extensions import TypedDict from typing.re import M...
41.184783
162
0.601142
713593e0365f57179ba46f50240b9e9705609784
1,776
py
Python
TweetNormalizer.py
VinAIResearch/BERTweet
c595d21749591ca43ddcda66de0facd3a14ec23b
[ "MIT" ]
437
2020-05-21T04:42:57.000Z
2022-03-23T09:10:47.000Z
TweetNormalizer.py
VinAIResearch/BERTweet
c595d21749591ca43ddcda66de0facd3a14ec23b
[ "MIT" ]
34
2020-05-22T07:56:22.000Z
2022-03-27T02:42:59.000Z
TweetNormalizer.py
VinAIResearch/BERTweet
c595d21749591ca43ddcda66de0facd3a14ec23b
[ "MIT" ]
48
2020-05-21T12:20:45.000Z
2022-03-31T20:24:04.000Z
from emoji import demojize from nltk.tokenize import TweetTokenizer tokenizer = TweetTokenizer() def normalizeToken(token): lowercased_token = token.lower() if token.startswith("@"): return "@USER" elif lowercased_token.startswith("http") or lowercased_token.startswith("www"): return "HT...
29.6
316
0.548423
dbb5e8844df4afef586cc88635bfe159dc6d3598
6,958
py
Python
training-script/register/register_model.py
mkoivi-ms/MLOps-healthcare
890ea9e20e99fe4f88908e6dd3b645b42768fd6f
[ "MIT" ]
null
null
null
training-script/register/register_model.py
mkoivi-ms/MLOps-healthcare
890ea9e20e99fe4f88908e6dd3b645b42768fd6f
[ "MIT" ]
null
null
null
training-script/register/register_model.py
mkoivi-ms/MLOps-healthcare
890ea9e20e99fe4f88908e6dd3b645b42768fd6f
[ "MIT" ]
null
null
null
""" Copyright (C) Microsoft Corporation. All rights reserved.​ ​ Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, royalty-free right to use, copy, and modify the software code provided by us ("Software Code"). You may not sublicense the Software Code or any use of it (except to your affiliates...
32.362791
79
0.620006
a55dc64852fa3fade509a24b21b3ff6734c90f84
3,282
py
Python
setup.py
mikelolasagasti/insights-core
68fbeba7294a33dd170ac4d1e73715d5bb68b702
[ "Apache-2.0" ]
null
null
null
setup.py
mikelolasagasti/insights-core
68fbeba7294a33dd170ac4d1e73715d5bb68b702
[ "Apache-2.0" ]
null
null
null
setup.py
mikelolasagasti/insights-core
68fbeba7294a33dd170ac4d1e73715d5bb68b702
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup, find_packages __here__ = os.path.dirname(os.path.abspath(__file__)) package_info = dict.fromkeys(["RELEASE", "COMMIT", "VERSION", "NAME"]) for name in package_info: with open(os.path.join(__here__, "insights", name)) as f: package_info[name] = f.read().strip() ent...
25.053435
93
0.574954
1a73443de0e4c3b08a0f319411daf0a4652ce6af
275
py
Python
paddle2onnx/version.py
PaddlePaddle/paddle2onnx
9773ccdfc19ddc0cab2fbdd827145adb21d78b51
[ "Apache-2.0" ]
95
2019-09-27T14:26:59.000Z
2020-12-08T01:20:28.000Z
paddle2onnx/version.py
PaddlePaddle/paddle-onnx
abbbdd606dad8bfcbf30f5d8892f888f6843b069
[ "Apache-2.0" ]
51
2018-04-04T22:39:30.000Z
2019-08-28T20:19:14.000Z
paddle2onnx/version.py
PaddlePaddle/paddle2onnx
9773ccdfc19ddc0cab2fbdd827145adb21d78b51
[ "Apache-2.0" ]
22
2019-09-03T08:50:04.000Z
2020-12-02T11:05:42.000Z
# This file is generated by setup.py. DO NOT EDIT! from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals version = '0.9.5' git_version = '9c50d6d3db74bbd7057b291a53d6da004436740e'
34.375
56
0.84
0610d7c81e524c3b04e6004f7c4e414522fdb1ca
10,705
py
Python
src/python/dart/message/trigger_listener.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
18
2016-03-03T19:10:21.000Z
2021-07-14T22:37:35.000Z
src/python/dart/message/trigger_listener.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
62
2016-04-11T15:17:23.000Z
2017-09-08T17:18:53.000Z
src/python/dart/message/trigger_listener.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
15
2016-03-03T15:38:34.000Z
2019-03-27T19:33:08.000Z
import json import logging import traceback from dart.context.locator import injectable from dart.message.call import TriggerCall from dart.model.action import ActionState, OnFailure as ActionOnFailure, Action from dart.model.datastore import DatastoreState from dart.model.query import Filter, Operator from dart.model...
56.342105
177
0.682765
43da7c2f1fed6ff3087fd9b45988ffb8c9180335
4,767
py
Python
src/deploy/auto_common/constants.py
kamlesh6808/JetPack
54871b307cc7385939dd89f9bb5e9ed9bb3036fe
[ "Apache-2.0" ]
31
2017-11-14T02:21:18.000Z
2022-02-16T07:28:54.000Z
src/deploy/auto_common/constants.py
kamlesh6808/JetPack
54871b307cc7385939dd89f9bb5e9ed9bb3036fe
[ "Apache-2.0" ]
324
2018-01-10T16:52:25.000Z
2021-09-23T19:02:50.000Z
src/deploy/auto_common/constants.py
kamlesh6808/JetPack
54871b307cc7385939dd89f9bb5e9ed9bb3036fe
[ "Apache-2.0" ]
215
2017-11-01T15:50:16.000Z
2022-02-16T07:28:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2021 Dell Inc. or its subsidiaries. # # 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 ...
41.452174
78
0.730019
052acf67cb929d4ad908e7e39fdd76b00366a8f0
6,580
py
Python
plugins/winrm/logic.py
Tikido/tikido_agent
b2ae70614601fe0fcf5df8784f8694aab0b29ece
[ "BSD-3-Clause" ]
null
null
null
plugins/winrm/logic.py
Tikido/tikido_agent
b2ae70614601fe0fcf5df8784f8694aab0b29ece
[ "BSD-3-Clause" ]
null
null
null
plugins/winrm/logic.py
Tikido/tikido_agent
b2ae70614601fe0fcf5df8784f8694aab0b29ece
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import logging log = logging.getLogger(__name__) import winrm from ..agent_core import IAgentCore class Logic(IAgentCore): def __init__(self, options): super().__init__(options) try: self.sess = winrm.Session(self.host + (':' + self.port if self.port else ''...
45.068493
211
0.630091
d6534ce09d5872d6bdea17d3ba1e45d5ba17a501
5,028
py
Python
azfilebak/streamazure.py
chgeuer/python_backup_files
97263643d831ed8664e59c06311e5d6530afb831
[ "MIT" ]
1
2021-07-07T14:59:16.000Z
2021-07-07T14:59:16.000Z
azfilebak/streamazure.py
chgeuer/python_backup_files
97263643d831ed8664e59c06311e5d6530afb831
[ "MIT" ]
1
2021-06-01T22:37:28.000Z
2021-06-01T22:37:28.000Z
azfilebak/streamazure.py
chgeuer/python_backup_files
97263643d831ed8664e59c06311e5d6530afb831
[ "MIT" ]
1
2018-09-05T15:39:06.000Z
2018-09-05T15:39:06.000Z
#!/usr/bin/env python2.7 # # coding=utf-8 # from __future__ import print_function import sys import json import urllib2 import argparse import os import os.path from azure.storage.blob import BlockBlobService def printe(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def lazy_property(fn): '''Decor...
32.43871
176
0.669053
46e5d60bfb226c737fa2ba898fe81e25044d28d2
1,035
py
Python
sa/profiles/Nateks/FlexGainACE16/get_version.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Nateks/FlexGainACE16/get_version.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Nateks/FlexGainACE16/get_version.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Nateks.FlexGainACE16.get_version # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ------------------------------------------------------------------...
33.387097
101
0.467633
6b57703e8f8a88c513f9bb58242eb671e2d276cd
1,405
py
Python
pyrl/config.py
abesto/pyrl
34eb9843217ed5b557bff99ed66ef46b49b5c295
[ "MIT" ]
10
2019-12-03T03:59:41.000Z
2021-04-13T11:52:20.000Z
pyrl/config.py
abesto/pyrl
34eb9843217ed5b557bff99ed66ef46b49b5c295
[ "MIT" ]
1
2021-04-06T03:28:02.000Z
2021-05-31T09:34:48.000Z
pyrl/config.py
abesto/pyrl
34eb9843217ed5b557bff99ed66ef46b49b5c295
[ "MIT" ]
1
2019-12-03T02:50:02.000Z
2019-12-03T02:50:02.000Z
#!/usr/bin/env python import os from dataclasses import dataclass from pathlib import Path from appdirs import user_data_dir from tcod.color import Color SCREEN_WIDTH = 80 SCREEN_HEIGHT = 50 ASSETS_DIR = Path("assets") FONT_PATH = ASSETS_DIR / "arial10x10.png" MAIN_MENU_BACKGROUND_PATH = ASSETS_DIR / "menu_backgrou...
20.661765
67
0.681139
ec7c152fb8356067b46958012d3bb99c02b20c23
31,870
py
Python
cinder/tests/api/v2/test_limits.py
hopem/cinder
7df656ff0be9fef34a4e19f7b83a0cae554db1e7
[ "Apache-2.0" ]
null
null
null
cinder/tests/api/v2/test_limits.py
hopem/cinder
7df656ff0be9fef34a4e19f7b83a0cae554db1e7
[ "Apache-2.0" ]
null
null
null
cinder/tests/api/v2/test_limits.py
hopem/cinder
7df656ff0be9fef34a4e19f7b83a0cae554db1e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.68869
79
0.526953
47912cccae13786cc1704b6e29f58c9528f524d9
690
py
Python
minor_lib.py
CooolWindS/STC-for-python
c8952ec1bdae6408f97b762fdec2c122d6d6f7f0
[ "MIT" ]
null
null
null
minor_lib.py
CooolWindS/STC-for-python
c8952ec1bdae6408f97b762fdec2c122d6d6f7f0
[ "MIT" ]
null
null
null
minor_lib.py
CooolWindS/STC-for-python
c8952ec1bdae6408f97b762fdec2c122d6d6f7f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 29 14:25:10 2021 @author: coolwind """ import os import sys from PIL import Image from tqdm import tqdm import string import random import global_var as gvar def check_dir(path): if not os.path.isdir(path): os.makedirs(path) def read_...
18.157895
70
0.673913
c908775da1c540074b261bee09079d9b0f9c980c
25,228
py
Python
reader/bionlp.py
ninjin/simsem
eb3f45b291226cc50d89a6a06d297d3b9cd36caf
[ "ISC" ]
14
2015-01-30T01:36:25.000Z
2020-03-25T08:53:46.000Z
reader/bionlp.py
afcarl/simsem
eb3f45b291226cc50d89a6a06d297d3b9cd36caf
[ "ISC" ]
null
null
null
reader/bionlp.py
afcarl/simsem
eb3f45b291226cc50d89a6a06d297d3b9cd36caf
[ "ISC" ]
3
2017-01-11T15:42:25.000Z
2020-03-25T07:52:42.000Z
''' XXX: We use fixed random seeds that was generated by: hex(randint(0, 2**32)) This ensures a stable pseudo-random distribution. Author: Pontus Stenetorp <pontus stenetorp se> Version: 2011-03-02 ''' from collections import defaultdict, namedtuple from itertools import chain, tee from os import wal...
36.04
127
0.581457
a36c01d096dcdf59a03d61c1dce0ac045f20f33e
3,312
py
Python
graphql_in_python/settings.py
anirvansen/graphql_in_python
f7ec3709123ce481719147cafac70070c0eb0628
[ "MIT" ]
null
null
null
graphql_in_python/settings.py
anirvansen/graphql_in_python
f7ec3709123ce481719147cafac70070c0eb0628
[ "MIT" ]
null
null
null
graphql_in_python/settings.py
anirvansen/graphql_in_python
f7ec3709123ce481719147cafac70070c0eb0628
[ "MIT" ]
null
null
null
""" Django settings for graphql_in_python project. Generated by 'django-admin startproject' using Django 3.2.9. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ fr...
25.674419
91
0.702597
a93346482c7539963fd90d831bc86a86cd47fb31
799
py
Python
tests/storitch/test_utils.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
null
null
null
tests/storitch/test_utils.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
1
2022-03-03T00:35:08.000Z
2022-03-03T00:35:08.000Z
tests/storitch/test_utils.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
null
null
null
import unittest from storitch.utils import path_from_hash class Test(unittest.TestCase): def test_path_from_hash(self): hash_ = '1b4f0e9851971998e732078544c96b36c3d01cedf7caa332359d6f1d83567014' path = path_from_hash( hash_, levels=1, length=2, ) ...
19.975
82
0.480601
5b593ab728def49147698fc9121ccac5a46e286e
218
py
Python
run_tests.py
rizar/baby-ai-game
7c5f00ed1b9e756068e0b5d3b76c8d03036c5990
[ "BSD-3-Clause" ]
5
2018-03-03T03:14:02.000Z
2019-12-27T21:40:14.000Z
run_tests.py
rizar/baby-ai-game
7c5f00ed1b9e756068e0b5d3b76c8d03036c5990
[ "BSD-3-Clause" ]
null
null
null
run_tests.py
rizar/baby-ai-game
7c5f00ed1b9e756068e0b5d3b76c8d03036c5990
[ "BSD-3-Clause" ]
1
2019-04-15T14:30:14.000Z
2019-04-15T14:30:14.000Z
#!/usr/bin/env python3 import babyai from babyai import levels from babyai import agents # NOTE: please make sure that tests are always deterministic print('Testing levels, mission generation') levels.levels.test()
19.818182
60
0.788991
ac314726f848551e44d05dfd060683bd6c76b47d
5,942
py
Python
dnacentersdk/models/validators/v2_1_2/jsd_50b589fd4c7a930a.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_50b589fd4c7a930a.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_50b589fd4c7a930a.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Create Site data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including w...
27.509259
78
0.368899
5b7900eeacb12380259c549c07bc7d5058422d2d
194
py
Python
bilgisayfam/entry/helpers.py
tayfun/bilgisayfam
f2f9942be53abefc1caf31509553c46957195535
[ "MIT" ]
1
2016-10-03T19:30:04.000Z
2016-10-03T19:30:04.000Z
bilgisayfam/entry/helpers.py
tayfun/bilgisayfam
f2f9942be53abefc1caf31509553c46957195535
[ "MIT" ]
null
null
null
bilgisayfam/entry/helpers.py
tayfun/bilgisayfam
f2f9942be53abefc1caf31509553c46957195535
[ "MIT" ]
null
null
null
def get_json_cache_key(keyword): """ Returns a cache key for the given word and dictionary. """ version = "1.0" return ":".join(["entry:utils", version, "meaning", keyword])
27.714286
65
0.628866
411348ff71dec050a95511732356041f27cd8a39
1,056
py
Python
mlrun/serving/__init__.py
shul/mlrun
d99e08ba8dce9833fca3ab00cdd246d873cf16b6
[ "Apache-2.0" ]
null
null
null
mlrun/serving/__init__.py
shul/mlrun
d99e08ba8dce9833fca3ab00cdd246d873cf16b6
[ "Apache-2.0" ]
null
null
null
mlrun/serving/__init__.py
shul/mlrun
d99e08ba8dce9833fca3ab00cdd246d873cf16b6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Iguazio # # 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, softwa...
34.064516
74
0.750947
53a46af63dfc4bf36929671b3db124e81a3992a7
5,219
py
Python
Tests/test_KeyWList.py
benjaminr/biopython
ad4fe9b0026fd9d4aa417168f4b620f6a681a0ff
[ "BSD-3-Clause" ]
1
2020-02-13T14:32:44.000Z
2020-02-13T14:32:44.000Z
Tests/test_KeyWList.py
benjaminr/biopython
ad4fe9b0026fd9d4aa417168f4b620f6a681a0ff
[ "BSD-3-Clause" ]
null
null
null
Tests/test_KeyWList.py
benjaminr/biopython
ad4fe9b0026fd9d4aa417168f4b620f6a681a0ff
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
# Copyright 1999 by Jeffrey Chang. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for KeyWList.""" import unittest import os.path from Bio.SwissProt import KeyWList ...
52.717172
345
0.65798
b234a4f7a926fedcdf5e694535fae83787daf9b7
2,951
py
Python
xmonitor/tests/unit/test_misc.py
froyobin/xmonitor
092dcaa01f834353ffd8dd3c40edf9e97543bfe8
[ "Apache-2.0" ]
null
null
null
xmonitor/tests/unit/test_misc.py
froyobin/xmonitor
092dcaa01f834353ffd8dd3c40edf9e97543bfe8
[ "Apache-2.0" ]
null
null
null
xmonitor/tests/unit/test_misc.py
froyobin/xmonitor
092dcaa01f834353ffd8dd3c40edf9e97543bfe8
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
36.8875
78
0.627923
dffd61a91c20e5fe02c8cf43f6590e29107c62a5
1,201
py
Python
8_game_controller/utils/tracer.py
ProGabe/teals
7ebf0b6e6f81d8a4c44baa7b5d3a9d95267ec1e3
[ "MIT" ]
null
null
null
8_game_controller/utils/tracer.py
ProGabe/teals
7ebf0b6e6f81d8a4c44baa7b5d3a9d95267ec1e3
[ "MIT" ]
9
2019-11-21T13:12:47.000Z
2021-02-02T14:52:52.000Z
8_game_controller/utils/tracer.py
ProGabe/teals
7ebf0b6e6f81d8a4c44baa7b5d3a9d95267ec1e3
[ "MIT" ]
2
2021-01-25T03:38:30.000Z
2021-03-07T23:54:53.000Z
from utils.logger import Logger from datetime import datetime class TraceDecorator: def __init__(self, function): self.function = function def __call__(self, *args, **kwargs): # Funciton return value return_value = None # Start time function_start = datetime.now() ...
28.595238
75
0.603664
07b74df737ff0dd7ec147338c1b532272be646df
134
py
Python
multivitamin/data/response/config.py
keishinkickback/multivitamin
edc49267fc5a25182da0e7c7c8bba398225437e5
[ "Apache-2.0" ]
8
2019-05-08T20:27:41.000Z
2021-04-19T15:17:22.000Z
multivitamin/data/response/config.py
keishinkickback/multivitamin
edc49267fc5a25182da0e7c7c8bba398225437e5
[ "Apache-2.0" ]
9
2019-05-17T19:16:50.000Z
2022-03-11T23:46:55.000Z
multivitamin/data/response/config.py
keishinkickback/multivitamin
edc49267fc5a25182da0e7c7c8bba398225437e5
[ "Apache-2.0" ]
4
2019-05-07T18:00:51.000Z
2019-06-22T02:35:51.000Z
""" Configuration parameters """ SCHEMA_FILE = "schema.avsc" POINT_EPS = 0.0001 TIME_EPS = 0.016667 # 1/60 SIGFIG = 4 SCHEMA_ID = 68
16.75
28
0.701493
4aa16b3507483f6066cf3b19906d3e9d3998930f
93
py
Python
defines/urls/production.py
jvsouza/ccw
6ad0d3459671893340e5a5cd479bfbfa4219f6d5
[ "MIT" ]
null
null
null
defines/urls/production.py
jvsouza/ccw
6ad0d3459671893340e5a5cd479bfbfa4219f6d5
[ "MIT" ]
null
null
null
defines/urls/production.py
jvsouza/ccw
6ad0d3459671893340e5a5cd479bfbfa4219f6d5
[ "MIT" ]
null
null
null
from .common import * urlpatterns = [ path("@dm1n/", admin.site.urls), ] + urlpatterns
13.285714
36
0.634409
e6db183eb28c72a4a8429f041a7e02f6603afb85
1,835
py
Python
Tests/Benchmark/test.py
MartinPdeS/SuPyMode
8a0a77ccbdae781d878f3d92a2b476774d666fa5
[ "MIT" ]
null
null
null
Tests/Benchmark/test.py
MartinPdeS/SuPyMode
8a0a77ccbdae781d878f3d92a2b476774d666fa5
[ "MIT" ]
null
null
null
Tests/Benchmark/test.py
MartinPdeS/SuPyMode
8a0a77ccbdae781d878f3d92a2b476774d666fa5
[ "MIT" ]
1
2021-07-16T14:20:01.000Z
2021-07-16T14:20:01.000Z
from SuPyMode.Geometry import Geometry, Circle, Fused4, Gradient from SuPyMode.Solver import SuPySolver from SuPyMode.sellmeier import Fused_silica from SuPyMode.fibers import * """ FIGURE 2.5 SBB_____________________________________________________ """ A = Fiber_DCF1300S_20(1...
32.192982
96
0.523706
1c0e365db691146048b2879d7578c5a0337bb088
2,295
py
Python
app/main.py
adamsqi/dockerized-product-rest-api
0d0db91c4c25d5b82df1d6d006cc264ac8add177
[ "MIT" ]
null
null
null
app/main.py
adamsqi/dockerized-product-rest-api
0d0db91c4c25d5b82df1d6d006cc264ac8add177
[ "MIT" ]
null
null
null
app/main.py
adamsqi/dockerized-product-rest-api
0d0db91c4c25d5b82df1d6d006cc264ac8add177
[ "MIT" ]
null
null
null
import os from flask import Flask, request, jsonify from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow app = Flask(__name__) basedir = os.path.abspath(os.path.dirname(__file__)) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'db.sqlite') app.config['SQLALCH...
26.686047
92
0.693682
a5ba7717cab67f9166d4722c456e2ffed14d82d6
264
py
Python
module_02_os/psl_02.01_sys_01.py
CodingGearsCourses/Python-3-Standard-Library-Essentials
8b80bc8b77fa477b6ccbe2886ed9239c2defdfda
[ "Apache-2.0" ]
null
null
null
module_02_os/psl_02.01_sys_01.py
CodingGearsCourses/Python-3-Standard-Library-Essentials
8b80bc8b77fa477b6ccbe2886ed9239c2defdfda
[ "Apache-2.0" ]
null
null
null
module_02_os/psl_02.01_sys_01.py
CodingGearsCourses/Python-3-Standard-Library-Essentials
8b80bc8b77fa477b6ccbe2886ed9239c2defdfda
[ "Apache-2.0" ]
null
null
null
# CodingGears.io # sys module import sys # TODO: version_info print(sys.version_info) # TODO: version print(sys.version) # TODO: path print(sys.path) for p in sys.path: print(p) # TODO: platform print(sys.platform) # TODO: copyright print(sys.copyright)
12
23
0.719697
d67d8994ad03f0147e6cb1870817a216a6344801
11,709
py
Python
modules/pymol/computing.py
markdoerr/pymol-open-source
b891b59ffaea812600648aa131ea2dbecd59a199
[ "CNRI-Python" ]
null
null
null
modules/pymol/computing.py
markdoerr/pymol-open-source
b891b59ffaea812600648aa131ea2dbecd59a199
[ "CNRI-Python" ]
null
null
null
modules/pymol/computing.py
markdoerr/pymol-open-source
b891b59ffaea812600648aa131ea2dbecd59a199
[ "CNRI-Python" ]
null
null
null
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* Copyright (c) Schrodinger, LLC #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* ---------...
41.228873
115
0.505338
555e9cf1e1431075d74c27fda1fe078448def467
15,634
py
Python
examples/pgu/gui/area.py
h-vetinari/pybox2d
b273568a0e57d51ce41d20d012571186a1839620
[ "Zlib" ]
421
2015-01-28T19:53:12.000Z
2022-03-29T19:35:00.000Z
examples/pgu/gui/area.py
h-vetinari/pybox2d
b273568a0e57d51ce41d20d012571186a1839620
[ "Zlib" ]
120
2015-01-24T00:38:48.000Z
2022-03-16T18:47:41.000Z
examples/pgu/gui/area.py
h-vetinari/pybox2d
b273568a0e57d51ce41d20d012571186a1839620
[ "Zlib" ]
124
2015-03-11T02:11:25.000Z
2022-03-25T10:44:06.000Z
""" """ import os from . import pguglobals from .const import * from . import surface from . import container, table from . import group from . import basic, button, slider class SlideBox(container.Container): """A scrollable area with no scrollbars. Example: c = SlideBox(w,100,100) c.off...
35.94023
161
0.564155
ad951d1dff16a339b431e0c043aee09ac66480b9
1,165
py
Python
renku/service/serializers/version.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
renku/service/serializers/version.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
renku/service/serializers/version.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
null
null
null
# Copyright 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 compliance with the License. # Y...
35.30303
75
0.756223
69ebecfe11b68937423829cfb04a20562fd9878a
1,945
py
Python
attic/test/hashdeep.py
jdehaan/Funani
a70b5743c383c0f071cd93585bb41442052d9b38
[ "BSD-2-Clause" ]
null
null
null
attic/test/hashdeep.py
jdehaan/Funani
a70b5743c383c0f071cd93585bb41442052d9b38
[ "BSD-2-Clause" ]
3
2019-01-09T23:18:11.000Z
2020-07-08T10:36:35.000Z
attic/test/hashdeep.py
jdehaan/Funani
a70b5743c383c0f071cd93585bb41442052d9b38
[ "BSD-2-Clause" ]
1
2019-04-27T05:27:16.000Z
2019-04-27T05:27:16.000Z
""" Build recursive hash of files in directory tree in hashdeep format. Hashdeep format description: http://md5deep.sourceforge.net/start-hashdeep.html hashdeep.py differences from original hashdeep: - if called without arguments, automatically starts to build recursive hash starting from the current director...
27.785714
83
0.652956
55aa14e299d3dfa2ac28c1599fe4960feaab860c
3,012
py
Python
exifread/tags/makernote/fujifilm.py
spectralskylight/skydataviewer
ac45fde11fb2cd1daa3f09bc30c2fad9391438df
[ "BSD-3-Clause" ]
22
2020-03-04T07:01:35.000Z
2022-01-02T21:23:48.000Z
exifread/tags/makernote/fujifilm.py
spectralskylight/skydataviewer
ac45fde11fb2cd1daa3f09bc30c2fad9391438df
[ "BSD-3-Clause" ]
5
2020-03-04T07:06:02.000Z
2021-03-09T22:37:28.000Z
exifread/tags/makernote/fujifilm.py
spectralskylight/skydataviewer
ac45fde11fb2cd1daa3f09bc30c2fad9391438df
[ "BSD-3-Clause" ]
8
2020-07-01T06:17:16.000Z
2021-12-12T20:51:09.000Z
""" Makernote (proprietary) tag definitions for FujiFilm. http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/FujiFilm.html """ from ...utils import make_string TAGS = { 0x0000: ('NoteVersion', make_string), 0x0010: ('InternalSerialNumber', ), 0x1000: ('Quality', ), 0x1001: ('Sharpness', { ...
23.169231
67
0.462151
6df4257734cb62e7be2f15f62577a46bf846df6d
7,183
py
Python
Synthesis/model/reflection_synthesis.py
XUHUAKing/Single-Image-Reflection-Removal-Beyond-Linearity
bc3a2ffc56e91f30a594c95c138d074943eac0af
[ "MIT" ]
50
2019-07-31T13:59:46.000Z
2022-03-27T05:23:39.000Z
Synthesis/model/reflection_synthesis.py
XUHUAKing/Single-Image-Reflection-Removal-Beyond-Linearity
bc3a2ffc56e91f30a594c95c138d074943eac0af
[ "MIT" ]
5
2019-10-30T12:57:05.000Z
2021-04-22T22:48:42.000Z
Synthesis/model/reflection_synthesis.py
XUHUAKing/Single-Image-Reflection-Removal-Beyond-Linearity
bc3a2ffc56e91f30a594c95c138d074943eac0af
[ "MIT" ]
19
2019-08-01T00:45:33.000Z
2022-02-05T15:39:39.000Z
import torch from collections import OrderedDict from torch.autograd import Variable import util.util as util from model.image_pool import ImagePool from .base_model import BaseModel from . import networks import numpy as np import torch.nn as nn class ReflectionSynthesisModel(BaseModel): def name(self): ...
37.411458
129
0.59251
189a4234687e145bda60a4f29eedcbb9789951be
2,212
py
Python
tests/test_reading.py
jsreyl/nmrstarlib
e601859760966f853fd5d07af454a9c9cb75dbeb
[ "MIT" ]
5
2017-03-17T17:25:05.000Z
2022-01-19T14:23:30.000Z
tests/test_reading.py
jsreyl/nmrstarlib
e601859760966f853fd5d07af454a9c9cb75dbeb
[ "MIT" ]
8
2016-11-09T07:46:28.000Z
2021-06-21T04:03:31.000Z
tests/test_reading.py
jsreyl/nmrstarlib
e601859760966f853fd5d07af454a9c9cb75dbeb
[ "MIT" ]
2
2016-08-25T17:51:18.000Z
2021-05-21T21:51:39.000Z
import pytest import nmrstarlib @pytest.mark.parametrize("source", [ ("tests/example_data/NMRSTAR3/bmr18569.str", "tests/example_data/NMRSTAR2/bmr18569.str", "tests/example_data/CIF/2rpv.cif") ]) def test_from_local_file(source): starfile_generator = nmrstarlib.read_files(*source) starfiles_list...
37.491525
84
0.737342
6dc36c74f54359a1c1c8d79bafcd69db6bbd6599
1,916
py
Python
testes.py
analytics-ufcg/leggo-trends
85a3cf03a23f7277af4c4ae90a9ba174401f1df7
[ "MIT" ]
null
null
null
testes.py
analytics-ufcg/leggo-trends
85a3cf03a23f7277af4c4ae90a9ba174401f1df7
[ "MIT" ]
10
2020-04-15T11:30:28.000Z
2022-02-18T15:06:11.000Z
testes.py
parlametria/leggoTrends
ac46dde3496bcda6100d3be44412a890e3d27ecf
[ "MIT" ]
1
2019-08-06T13:41:19.000Z
2019-08-06T13:41:19.000Z
# -*- coding: utf-8 -*- from fetch_google_trends import * from datetime import date, datetime from datetime import timedelta import pandas as pd def test_get_data_inicial(): assert get_data_inicial('2019-08-22') == '2019-08-22', 'Deveria ser 2019-08-22' assert get_data_inicial('2015-08-22') == (date.today() ...
47.9
191
0.626827
07d4a95d54dd20cfd50590d3fac411e2686c0df5
840
py
Python
setup.py
bernd-clemenz/aloga
ea932aa1842eb4752408331257d50ab89f20de12
[ "MIT" ]
null
null
null
setup.py
bernd-clemenz/aloga
ea932aa1842eb4752408331257d50ab89f20de12
[ "MIT" ]
null
null
null
setup.py
bernd-clemenz/aloga
ea932aa1842eb4752408331257d50ab89f20de12
[ "MIT" ]
null
null
null
# # Access-Log file analysis. # (c) ISC Clemenz & Weinbrecht GmbH 2018 # import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="aloga", version="0.0.6", author="ISC Clemenz & Weinbrecht GmbH", author_email="info@isc-software.de", description=...
25.454545
50
0.633333
2781fd17d2bdc80ebb0024ee3876a221ea0c8145
24,517
py
Python
lib/ppymilterbase.py
vimmaniac/ppymilter
8e5f6d2cddb14d5e8f870be98ff96623e736033b
[ "Apache-2.0" ]
null
null
null
lib/ppymilterbase.py
vimmaniac/ppymilter
8e5f6d2cddb14d5e8f870be98ff96623e736033b
[ "Apache-2.0" ]
null
null
null
lib/ppymilterbase.py
vimmaniac/ppymilter
8e5f6d2cddb14d5e8f870be98ff96623e736033b
[ "Apache-2.0" ]
null
null
null
# $Id$ # ============================================================================== # Copyright 2008 Google 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...
36.867669
80
0.671942
8bf0f21d0c96e266abc21f3144d7a1ca12440244
3,981
py
Python
validator/sawtooth_validator/networking/future.py
Capco-JayPanicker123/Sawtooth
d22a16a6a82da5627ff113a1a5290f83b3f82c45
[ "Apache-2.0" ]
2
2018-09-27T04:43:33.000Z
2019-10-23T14:32:31.000Z
validator/sawtooth_validator/networking/future.py
Capco-JayPanicker123/Sawtooth
d22a16a6a82da5627ff113a1a5290f83b3f82c45
[ "Apache-2.0" ]
10
2020-05-12T06:58:15.000Z
2022-02-26T23:59:35.000Z
validator/sawtooth_validator/networking/future.py
Capco-JayPanicker123/Sawtooth
d22a16a6a82da5627ff113a1a5290f83b3f82c45
[ "Apache-2.0" ]
1
2021-03-09T03:36:36.000Z
2021-03-09T03:36:36.000Z
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.101563
80
0.63577
3dff6a44a7c954f3fffae69ca65e162f8b40860d
1,423
py
Python
compuG/cargarFondo.py
alejoso76/Computaci-n-gr-fica
474a498a328b8951aa0bfa1db2d0d1f3d8cc914b
[ "MIT" ]
null
null
null
compuG/cargarFondo.py
alejoso76/Computaci-n-gr-fica
474a498a328b8951aa0bfa1db2d0d1f3d8cc914b
[ "MIT" ]
null
null
null
compuG/cargarFondo.py
alejoso76/Computaci-n-gr-fica
474a498a328b8951aa0bfa1db2d0d1f3d8cc914b
[ "MIT" ]
null
null
null
import pygame import math ANCHO=640 ALTO=480 def mostrarPos(): pos=pygame.mouse.get_pos() return pos if __name__ == '__main__': pygame.init() pantalla=pygame.display.set_mode([ANCHO, ALTO]) #Crea la ventana #Carga la imagen a una variable fondo=pygame.image.load('fondo.png') infoFondo=fon...
23.327869
69
0.556571
2ae9dc0bb27a8544b6017e08a831118138a9a54d
7,189
py
Python
library/panos_bgp_redistribute.py
rvichery/ansible-pan
d07839cd5a544a6398646c01e1edac0f0f82cc38
[ "Apache-2.0" ]
null
null
null
library/panos_bgp_redistribute.py
rvichery/ansible-pan
d07839cd5a544a6398646c01e1edac0f0f82cc38
[ "Apache-2.0" ]
null
null
null
library/panos_bgp_redistribute.py
rvichery/ansible-pan
d07839cd5a544a6398646c01e1edac0f0f82cc38
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, division, print_function __metaclass__ = type # Copyright 2018 Palo Alto Networks, 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...
29.584362
96
0.621783
c3d7052b1861c2454a434f77adce55e0266b2cd6
1,964
py
Python
app/modules/core/request.py
JohJohan/silverback
e27bc5d238d2b34955a470a8e8327ae44022b78b
[ "Apache-2.0" ]
null
null
null
app/modules/core/request.py
JohJohan/silverback
e27bc5d238d2b34955a470a8e8327ae44022b78b
[ "Apache-2.0" ]
null
null
null
app/modules/core/request.py
JohJohan/silverback
e27bc5d238d2b34955a470a8e8327ae44022b78b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Silverbackhq # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.056604
117
0.67057
0c6490b499ba4c61305cbdfed871471f52659b84
9,684
py
Python
cogs/tarot.py
andresgsepulveda/Sovereign-of-Chaos
9f362e3eeb31925712f65f94b9db9a4740689dba
[ "MIT" ]
1
2021-08-16T19:10:14.000Z
2021-08-16T19:10:14.000Z
cogs/tarot.py
andresgsepulveda/Sovereign-of-Chaos
9f362e3eeb31925712f65f94b9db9a4740689dba
[ "MIT" ]
28
2021-08-16T15:50:10.000Z
2021-12-24T22:58:10.000Z
cogs/tarot.py
andresgsepulveda/Sovereign-of-Chaos
9f362e3eeb31925712f65f94b9db9a4740689dba
[ "MIT" ]
null
null
null
############################################## # Package Imports ############################################## import asyncio import discord import json import pytz import random from datetime import datetime, timedelta from discord import Embed, Guild, User from discord.ext import commands, tasks from discord.ext.co...
28.994012
186
0.576828
5a78d3002eb03be5be5f4235741d99fd3f68cc89
607
py
Python
spr_1dzial/sygnal.py
virgohi21/school-3
147c01f29bbc62942491e2a7886a4d5d8fb848a3
[ "BSD-2-Clause" ]
null
null
null
spr_1dzial/sygnal.py
virgohi21/school-3
147c01f29bbc62942491e2a7886a4d5d8fb848a3
[ "BSD-2-Clause" ]
null
null
null
spr_1dzial/sygnal.py
virgohi21/school-3
147c01f29bbc62942491e2a7886a4d5d8fb848a3
[ "BSD-2-Clause" ]
null
null
null
tablica = [] wszystkie_linijki = [] with open('sygnaly.txt', 'r') as f: for x in range(1000): slowo = f.readline() if (x+1)%40 == 0: tablica.append(slowo) wszystkie_linijki.append(slowo) for x in range(len(tablica)): slowo = tablica[x] print(slowo[9],end='') ...
20.931034
55
0.61285
bedb54db2d8a6bdb4bbc2bad3998cbe9da87fbd8
2,366
py
Python
pyleecan/GUI/Dialog/DMachineSetup/SPreview/WMachineTable/WMachineTable.py
carbon-drive/pyleecan
e89d4fe97f23f6182c19127d2c6a2133614e169d
[ "Apache-2.0" ]
1
2021-07-08T01:27:24.000Z
2021-07-08T01:27:24.000Z
pyleecan/GUI/Dialog/DMachineSetup/SPreview/WMachineTable/WMachineTable.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
null
null
null
pyleecan/GUI/Dialog/DMachineSetup/SPreview/WMachineTable/WMachineTable.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from PySide2.QtWidgets import QWidget, QTableWidgetItem from ......GUI.Dialog.DMachineSetup.SPreview.WMachineTable.Ui_WMachineTable import ( Ui_WMachineTable, ) import matplotlib.pyplot as plt from ......Functions.Plot.set_plot_gui_icon import set_plot_gui_icon class WMachineTable(Ui_WMac...
31.131579
84
0.590025
f83cb3b6979ab3e034f71fdb7143f7decdcb56d7
8,002
py
Python
plugins/modules/oci_key_management_generated_key.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_key_management_generated_key.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_key_management_generated_key.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
34.196581
151
0.650212
55cbd0a0e7ff4bc65b2d001ceb1471cdc337f438
59
py
Python
padqc/tools/__init__.py
qis-unipr/padqc
94599db20711dc755b53425951fa3cb15b749f64
[ "Apache-2.0" ]
null
null
null
padqc/tools/__init__.py
qis-unipr/padqc
94599db20711dc755b53425951fa3cb15b749f64
[ "Apache-2.0" ]
null
null
null
padqc/tools/__init__.py
qis-unipr/padqc
94599db20711dc755b53425951fa3cb15b749f64
[ "Apache-2.0" ]
1
2021-02-18T22:11:18.000Z
2021-02-18T22:11:18.000Z
from .visualize import circuit_drawer from .depth import *
19.666667
37
0.813559
ff1c299241b7e4be1dd6cbb8849f4cf1f981c8e0
11,708
py
Python
src/osuapi.py
kisunpoke/stk8-bot
2032b2058e59c4b0c3e42e5947622dd114d95cec
[ "Apache-2.0" ]
null
null
null
src/osuapi.py
kisunpoke/stk8-bot
2032b2058e59c4b0c3e42e5947622dd114d95cec
[ "Apache-2.0" ]
null
null
null
src/osuapi.py
kisunpoke/stk8-bot
2032b2058e59c4b0c3e42e5947622dd114d95cec
[ "Apache-2.0" ]
null
null
null
"""Async functions for interacting with the osu! api and prepping its data. This uses the v1 endpoint because it is more stable. Use v2 when available or necessary. """ import aiohttp from enum import IntFlag import os import math import db_manip import db_get api_key = os.getenv("osu_key") class Mod...
40.794425
138
0.571917
00e05fbbced30da30da7c2a476e4e50fc557fc7c
12,148
py
Python
rasa/utils/plotting.py
Next-Trends/rasa
c06dc26b3a57dd1114b60aebcc9ccd3bbb8308d7
[ "Apache-2.0" ]
3,603
2017-05-21T18:34:55.000Z
2019-04-16T11:58:09.000Z
rasa/utils/plotting.py
Next-Trends/rasa
c06dc26b3a57dd1114b60aebcc9ccd3bbb8308d7
[ "Apache-2.0" ]
2,782
2017-05-21T20:36:15.000Z
2019-04-16T14:35:20.000Z
rasa/utils/plotting.py
Next-Trends/rasa
c06dc26b3a57dd1114b60aebcc9ccd3bbb8308d7
[ "Apache-2.0" ]
1,337
2017-05-21T18:10:33.000Z
2019-04-16T09:14:42.000Z
import logging import itertools import os from functools import wraps import numpy as np from typing import Any, Callable, List, Optional, Text, TypeVar, Union, Tuple import matplotlib from matplotlib.ticker import FormatStrFormatter import rasa.shared.utils.io from rasa.constants import RESULTS_FILE logger = loggin...
33.65097
88
0.645127
85f0b04e050370463db88e26b52d0d95d03acc22
4,232
py
Python
src/osd.py
vanzin/folderme
9a29eb0c221c005427bd0f8838d7e3941dbb84d7
[ "BSD-2-Clause" ]
null
null
null
src/osd.py
vanzin/folderme
9a29eb0c221c005427bd0f8838d7e3941dbb84d7
[ "BSD-2-Clause" ]
null
null
null
src/osd.py
vanzin/folderme
9a29eb0c221c005427bd0f8838d7e3941dbb84d7
[ "BSD-2-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-2-Clause import app import util from PyQt5.QtCore import QPoint from PyQt5.QtCore import QSize from PyQt5.QtCore import QTimer from PyQt5.QtCore import Qt from PyQt5.QtGui import QGuiApplication from PyQt5.QtGui import QPixmap def init(): Message.instance() Track.instance() de...
23.511111
68
0.579868
bc0c2f7bfc9110e58a115deb01ceb601c6cbf309
2,166
py
Python
example/app.py
Titotix/Flask-pyoidc
87b8059617304ec634d7b6d3f5f649c40d9cdb4c
[ "Apache-2.0" ]
64
2017-01-31T09:08:15.000Z
2021-12-21T21:05:45.000Z
example/app.py
Titotix/Flask-pyoidc
87b8059617304ec634d7b6d3f5f649c40d9cdb4c
[ "Apache-2.0" ]
99
2017-02-08T22:38:54.000Z
2022-03-31T22:03:27.000Z
example/app.py
Titotix/Flask-pyoidc
87b8059617304ec634d7b6d3f5f649c40d9cdb4c
[ "Apache-2.0" ]
33
2017-02-09T18:19:51.000Z
2021-12-24T17:48:52.000Z
import datetime import flask import logging from flask import Flask, jsonify from flask_pyoidc import OIDCAuthentication from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata from flask_pyoidc.user_session import UserSession app = Flask(__name__) # See http://flask.pocoo.org/docs/0.12/...
34.380952
107
0.703601
6d810a04155c5e9edac46e0b34a275c77de56444
2,064
py
Python
src/beefore/local.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
24
2016-07-14T04:25:31.000Z
2019-02-12T19:37:01.000Z
src/beefore/local.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
17
2016-07-17T10:51:56.000Z
2019-02-02T20:20:43.000Z
src/beefore/local.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
19
2016-07-15T01:05:00.000Z
2018-06-03T17:35:40.000Z
def unified_format(diff): udiff = diff.diff.decode('utf-8').splitlines() a_sha = diff.a_blob.hexsha[:7] if diff.a_blob else '0000000' b_sha = diff.b_blob.hexsha[:7] if diff.b_blob else '0000000' a_path = '{}'.format(diff.a_path) if diff.a_path else '/dev/null' b_path = '{}'.format(diff.b_path) if...
33.836066
84
0.58188
29b0d65b94452d636efb5ec501f89da6e1e9d1c4
4,493
py
Python
tensorwatch/evaler_utils.py
sytelus/longview
686e43cf187eaf55df18949359fd63d57dc337b2
[ "MIT" ]
null
null
null
tensorwatch/evaler_utils.py
sytelus/longview
686e43cf187eaf55df18949359fd63d57dc337b2
[ "MIT" ]
null
null
null
tensorwatch/evaler_utils.py
sytelus/longview
686e43cf187eaf55df18949359fd63d57dc337b2
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch import math import random from . import utils from .lv_types import ImagePlotItem from collections import OrderedDict from itertools import groupby, islice def skip_mod(mod, g): for index, item in enumerate(g): if index ...
40.845455
129
0.60828
7173119a2efce48f3ee3913a4e79f18e38780150
15,891
py
Python
sdk/python/pulumi_azure_native/kusto/database_principal_assignment.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kusto/database_principal_assignment.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kusto/database_principal_assignment.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from .. import _utilities from...
45.402857
929
0.659745
1120c8c67967b5e8c126d1e1a865c0af61443bab
9,663
py
Python
verification/tests/core/do_test.py
hossein1387/pito_riscv
94df6f2201798765984017c82d1fdf0355f68d45
[ "MIT" ]
3
2021-05-25T08:40:55.000Z
2022-01-05T07:05:39.000Z
verification/tests/irq/do_test.py
hossein1387/pito_riscv
94df6f2201798765984017c82d1fdf0355f68d45
[ "MIT" ]
5
2021-07-25T01:12:16.000Z
2022-02-17T20:30:38.000Z
verification/tests/core/do_test.py
hossein1387/pito_riscv
94df6f2201798765984017c82d1fdf0355f68d45
[ "MIT" ]
3
2021-08-11T07:59:07.000Z
2022-01-05T07:05:43.000Z
#!/usr/bin/env python3 #xelab bank64k_tester -L blk_mem_gen_v8_4_3 import os import sys import argparse import subprocess import utility as util #======================================================================= # Globals #======================================================================= simulator = None r...
44.325688
164
0.579634
dd256a0c7c975bd65f8c3aeda6c144dcf5ffa430
125,008
py
Python
tests/system_tests_edge_router.py
nicob87/qpid-dispatch
f62c85f40bbd77776d0bddea66938fe9319deaa5
[ "Apache-2.0" ]
null
null
null
tests/system_tests_edge_router.py
nicob87/qpid-dispatch
f62c85f40bbd77776d0bddea66938fe9319deaa5
[ "Apache-2.0" ]
3
2019-09-30T03:11:04.000Z
2020-03-06T17:15:54.000Z
tests/system_tests_edge_router.py
irinabov/debian-qpid-dispatch
42fb2ffb65f8e8c8d616633c0b4308d6531a281d
[ "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...
43.180656
127
0.538302
ab51374628545012ffa679a7f81ff466cdacf8ab
7,160
py
Python
heron/tools/tracker/src/python/topology.py
huijunwu/heron
4f7f90f2b823dc7e714ee2898b033cfc78f88cb0
[ "Apache-2.0" ]
1
2020-09-07T17:27:56.000Z
2020-09-07T17:27:56.000Z
heron/tools/tracker/src/python/topology.py
windhamwong/incubator-heron
f764d9ad48c323f9980445431788503fe2100812
[ "Apache-2.0" ]
null
null
null
heron/tools/tracker/src/python/topology.py
windhamwong/incubator-heron
f764d9ad48c323f9980445431788503fe2100812
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # 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 Apach...
28.64
77
0.671369
989b3661bd7506b4def6b534b0439e72679ac3be
1,111
py
Python
ndefcdf/config.py
agama-point/ndefcdf
79bc7b30c32e1d8f2ed59f625a4b35be68cace08
[ "Apache-2.0" ]
null
null
null
ndefcdf/config.py
agama-point/ndefcdf
79bc7b30c32e1d8f2ed59f625a4b35be68cace08
[ "Apache-2.0" ]
null
null
null
ndefcdf/config.py
agama-point/ndefcdf
79bc7b30c32e1d8f2ed59f625a4b35be68cace08
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Petr Kracik from ndef.record import Record, GlobalRecord from io import BytesIO import json class CDFConfig(GlobalRecord): _type = 'cdf/cfg' def __init__(self, value=None): self._config = value if not self._config: self._config = {} self._config['...
20.2
109
0.594959
22530598430d96c16e808a7fd43d37607bccbae5
242
py
Python
src/settings.py
carlos-ft/note
dc6b1c860a8dd5c1a4b88bff508a21d6172031e6
[ "MIT" ]
null
null
null
src/settings.py
carlos-ft/note
dc6b1c860a8dd5c1a4b88bff508a21d6172031e6
[ "MIT" ]
null
null
null
src/settings.py
carlos-ft/note
dc6b1c860a8dd5c1a4b88bff508a21d6172031e6
[ "MIT" ]
null
null
null
import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent DEBUG = True # Application definition #REDIS REDIS_HOST = 'note-redis' REDIS_PORT = 6379
18.615385
64
0.760331
a884f2b09d4ff0bbbbd5006457522ffcf5d4e5eb
2,141
py
Python
tests/unit/entities/test_process_entity.py
slyons/pyapacheatlas
48b0239dfc8c5624cf5e86b5dfd29a6e58f70280
[ "MIT" ]
2
2021-01-28T20:31:54.000Z
2021-01-28T20:32:28.000Z
tests/unit/entities/test_process_entity.py
slyons/pyapacheatlas
48b0239dfc8c5624cf5e86b5dfd29a6e58f70280
[ "MIT" ]
null
null
null
tests/unit/entities/test_process_entity.py
slyons/pyapacheatlas
48b0239dfc8c5624cf5e86b5dfd29a6e58f70280
[ "MIT" ]
null
null
null
from pyapacheatlas.core.entity import AtlasEntity, AtlasProcess def test_null_io(): p = AtlasProcess(name="test", typeName="Process", qualified_name="test", inputs=None, outputs=None ) assert(p.attributes["inputs"] is None) assert(p.attributes["outputs"] is None)...
39.648148
76
0.59645
eb1a75a610a79f05b8fb7bbd69dee55534bde777
1,393
py
Python
BingGrabber.py
SuperChamp234/WebSearcher
c3d86ef508742678083a42c166c9c52bcc4e9065
[ "MIT" ]
1
2020-08-03T15:09:13.000Z
2020-08-03T15:09:13.000Z
BingGrabber.py
ZainSiddavatam/WebSearcher
c3d86ef508742678083a42c166c9c52bcc4e9065
[ "MIT" ]
null
null
null
BingGrabber.py
ZainSiddavatam/WebSearcher
c3d86ef508742678083a42c166c9c52bcc4e9065
[ "MIT" ]
null
null
null
from selenium import webdriver import time import csv from itertools import zip_longest description = [] Links = [] searchstring = "Anything you Like HERE" browser = webdriver.Chrome(executable_path="chromedriver") url = "https://www.bing.com" browser.get(url) browser.maximize_window() search_bar = browser.find_ele...
32.395349
136
0.703518
4d6eb1ad582dba2508ce3587e508fb6e600f018e
16,170
py
Python
pydatastructs/trees/heaps.py
RidhimaKohli/pydatastructs
d5df69067ff4bb654237c9321d69eb7a2d35be9b
[ "BSD-3-Clause" ]
1
2020-04-13T11:24:43.000Z
2020-04-13T11:24:43.000Z
pydatastructs/trees/heaps.py
Saptashrungi/pydatastructs
d575846a7bd185b4dc2a6bc929296d4bb1d9c756
[ "BSD-3-Clause" ]
null
null
null
pydatastructs/trees/heaps.py
Saptashrungi/pydatastructs
d575846a7bd185b4dc2a6bc929296d4bb1d9c756
[ "BSD-3-Clause" ]
null
null
null
from pydatastructs.utils.misc_util import _check_type, NoneType, TreeNode, BinomialTreeNode from pydatastructs.linear_data_structures.arrays import (ArrayForTrees, DynamicOneDimensionalArray, Array) from pydatastructs.miscellaneous_data_structures.binomial_trees import BinomialTree __all__ = [ 'BinaryHe...
30.111732
94
0.534199
007ad5fb9cdcb8632b2ea2f1bb7ba2617ae1e387
671
py
Python
SG/pipeline/old/laplacian.py
BiCroLab/WSI-analysis
9f55a7a5296d006f2da8adfb2fe6a22eebe3dc42
[ "MIT" ]
null
null
null
SG/pipeline/old/laplacian.py
BiCroLab/WSI-analysis
9f55a7a5296d006f2da8adfb2fe6a22eebe3dc42
[ "MIT" ]
null
null
null
SG/pipeline/old/laplacian.py
BiCroLab/WSI-analysis
9f55a7a5296d006f2da8adfb2fe6a22eebe3dc42
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import numpy as np import sys import umap import warnings from scipy import sparse import networkx as nx warnings.filterwarnings('ignore') import seaborn as sns;sns.set() import matplotlib.pyplot as plt from sklearn.preprocessing import normalize import pandas as pd ##############...
23.964286
80
0.727273