hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
fd0cc7561e5ac7778913767c61defbd6a48d449c
4,628
py
Python
smarts/core/tests/test_scenario.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
2
2021-12-13T12:41:54.000Z
2021-12-16T03:10:24.000Z
smarts/core/tests/test_scenario.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
null
null
null
smarts/core/tests/test_scenario.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. # # 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 without limitation th...
38.247934
87
0.655575
61ec1bd4269bd9dacf11eaaa2660fcf92a0a71d7
369
py
Python
16/udp_clnt.py
Gridelen/core-python-ex
18b654b42ab29af07549926e722eb07de680b191
[ "MIT" ]
1
2019-03-10T13:03:01.000Z
2019-03-10T13:03:01.000Z
16/udp_clnt.py
Gridelen/core-python-ex
18b654b42ab29af07549926e722eb07de680b191
[ "MIT" ]
null
null
null
16/udp_clnt.py
Gridelen/core-python-ex
18b654b42ab29af07549926e722eb07de680b191
[ "MIT" ]
null
null
null
from socket import * from time import ctime HOST = '192.168.0.98' PORT = 9999 ADDR = (HOST, PORT) BUFFSIZ = 1024 cs = socket(AF_INET, SOCK_DGRAM) while True: data = input('> ') if not data: break cs.sendto(data.encode('utf-8'), ADDR) data, addr = cs.recvfrom(BUFFSIZ) if not data: ...
17.571429
41
0.615176
f3d71850e8969da9917f6108c74655f47a2d7d44
2,411
py
Python
setup.py
kfilipan/noysim
dfec160fecab55c6b6e644278159ab7ae873337e
[ "MIT" ]
null
null
null
setup.py
kfilipan/noysim
dfec160fecab55c6b6e644278159ab7ae873337e
[ "MIT" ]
null
null
null
setup.py
kfilipan/noysim
dfec160fecab55c6b6e644278159ab7ae873337e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Noysim: Noise simulation tools for Aimsun. Noysim is a Python package for estimating road traffic noise levels. It is especially designed for integration with the microscopic traffic simulation tool Aimsun. It implements the Imagine emission model and the ISO 9613 propagation model, and provid...
33.957746
87
0.652426
1ccd03e489fdd0c28165b28ddd9bc968a0497cc0
3,913
py
Python
niphlem/tests/test_filters.py
CoAxLab/brainhack-physio-project
b87cd6c6db486639f271b786ca1cf4aa27a70fad
[ "BSD-3-Clause" ]
1
2022-03-13T14:33:44.000Z
2022-03-13T14:33:44.000Z
niphlem/tests/test_filters.py
CoAxLab/brainhack-physio-project
b87cd6c6db486639f271b786ca1cf4aa27a70fad
[ "BSD-3-Clause" ]
11
2021-07-14T15:11:11.000Z
2021-10-13T14:51:58.000Z
niphlem/tests/test_filters.py
CoAxLab/brainhack-physio-project
b87cd6c6db486639f271b786ca1cf4aa27a70fad
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from niphlem.clean import _transform_filter def test_transform(): rng = np.random.RandomState(1234) n_samples = 200 low_pass = None high_pass = None sampling_rate = None eps = 100*np.finfo(np.float64).eps # Compare output for different options. # single timeseries...
35.252252
69
0.547151
92ee75a4b4a0abeab669daa047363410b9c7dbe4
2,162
py
Python
lib/surface/resource_manager/folders/create.py
kylewuolle/google-cloud-sdk
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
[ "Apache-2.0" ]
null
null
null
lib/surface/resource_manager/folders/create.py
kylewuolle/google-cloud-sdk
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
[ "Apache-2.0" ]
null
null
null
lib/surface/resource_manager/folders/create.py
kylewuolle/google-cloud-sdk
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.442623
76
0.728492
db795fb3d31db1952311af0f594f26634410e1f3
13,264
py
Python
gslib/tests/test_context_config.py
jhughes/gsutil
140cc686abf3a835945b1e7694fc21a6db732be7
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_context_config.py
jhughes/gsutil
140cc686abf3a835945b1e7694fc21a6db732be7
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_context_config.py
jhughes/gsutil
140cc686abf3a835945b1e7694fc21a6db732be7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
40.193939
80
0.723688
82a31c205d5ab1946932a5ae3260f8918126e07b
225
py
Python
birdseye_jobs/chmod.py
NasaAppChallenge/birdseye-server
f2a6a3f4298d1f73e8727c9678faa9f5d377b234
[ "MIT" ]
3
2017-04-23T22:37:03.000Z
2017-04-30T16:52:54.000Z
birdseye_jobs/chmod.py
DramaticLiberty/birdseye-server
f2a6a3f4298d1f73e8727c9678faa9f5d377b234
[ "MIT" ]
1
2017-05-05T21:46:07.000Z
2017-05-06T04:17:52.000Z
birdseye_jobs/chmod.py
DramaticLiberty/birdseye-server
f2a6a3f4298d1f73e8727c9678faa9f5d377b234
[ "MIT" ]
3
2017-04-27T20:30:17.000Z
2017-05-02T04:00:36.000Z
# -*- coding: utf-8 -*- ''' Hack jobs of all sizes ---------------------- ''' import os import stat def chmod_file(file_path): st = os.stat(file_path) os.chmod(file_path, st.st_mode | stat.S_IRGRP) return True
15
50
0.582222
bc25064645d2be368f95eb320df602b4e0906591
7,393
py
Python
conf.py
chaselgrove/HowWouldReproNim
138f99c7931a6503e5762eff773648e44a9cbac1
[ "MIT" ]
7
2020-09-04T07:17:26.000Z
2022-01-14T03:36:32.000Z
conf.py
chaselgrove/HowWouldReproNim
138f99c7931a6503e5762eff773648e44a9cbac1
[ "MIT" ]
12
2020-07-02T17:51:31.000Z
2020-10-02T17:50:20.000Z
conf.py
chaselgrove/HowWouldReproNim
138f99c7931a6503e5762eff773648e44a9cbac1
[ "MIT" ]
1
2020-07-03T08:19:15.000Z
2020-07-03T08:19:15.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.594017
142
0.68105
2785062e7dbb7c57cb703b24e1c207aa7e39ca8a
2,287
py
Python
group_testing/utils.py
isabella232/group_testing
b1023442d3b8ef98c04dd1c406d5cc8349d37da7
[ "Apache-2.0" ]
6
2020-12-01T09:00:20.000Z
2021-11-05T15:55:55.000Z
group_testing/utils.py
google-research/group_testing
b1023442d3b8ef98c04dd1c406d5cc8349d37da7
[ "Apache-2.0" ]
1
2022-01-16T13:00:47.000Z
2022-01-16T13:00:47.000Z
group_testing/utils.py
isabella232/group_testing
b1023442d3b8ef98c04dd1c406d5cc8349d37da7
[ "Apache-2.0" ]
3
2021-10-03T16:34:05.000Z
2022-01-16T11:34:55.000Z
# coding=utf-8 # Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.301587
79
0.72934
a43200a6009175e0cf8d205db89c0c419a2b25ac
687
py
Python
config/train/cifar100/simplenet.py
scott-mao/DenseDepth_Pruning
88bcff70e93dd68058a5cf0dfeac119a57abc6de
[ "MIT" ]
1
2021-11-16T03:35:18.000Z
2021-11-16T03:35:18.000Z
config/train/cifar100/simplenet.py
scott-mao/DenseDepth_Pruning
88bcff70e93dd68058a5cf0dfeac119a57abc6de
[ "MIT" ]
null
null
null
config/train/cifar100/simplenet.py
scott-mao/DenseDepth_Pruning
88bcff70e93dd68058a5cf0dfeac119a57abc6de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Configurations for training as baseline. - Author: Curt-Park - Email: jwpark@jmarple.ai """ import os config = { "SEED": 777, "AUG_TRAIN": "simple_augment_train_mnist", "AUG_TEST": "simple_augment_test_mnist", "DATASET": "MNIST", "MODEL_NAME": "heejung", "MODEL_PARA...
23.689655
64
0.631732
2c2fbe0af212cbb02553051beba48dcfa9fa10ac
603
py
Python
pcdsdevices/sxr_test_absorber.py
cristinasewell/pcdsdevices
8e2963de2b5b3500e8feab94aa8644967d86d253
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/sxr_test_absorber.py
cristinasewell/pcdsdevices
8e2963de2b5b3500e8feab94aa8644967d86d253
[ "BSD-3-Clause-LBNL" ]
1
2019-06-17T19:06:33.000Z
2019-06-17T19:06:33.000Z
pcdsdevices/sxr_test_absorber.py
cristinasewell/pcdsdevices
8e2963de2b5b3500e8feab94aa8644967d86d253
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Module for the SXR Test Absorbers. """ from ophyd.device import Component as Cpt from ophyd.device import Device from .interface import BaseInterface from .epics_motor import BeckhoffAxis class SxrTestAbsorber(BaseInterface, Device): """ SXR Test Absorber: Used for testing the sxr beamline at high pulse ...
25.125
77
0.729685
dd939738ed3887ebdf73f14bdd39f3f92073db84
6,002
py
Python
vnpy/trader/app/ctaStrategy/ctaBase.py
QuantTraderEd/vnpy_crypto
a1142eddaa8a7eb63cc13af30554c05718e151b1
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
vnpy/trader/app/ctaStrategy/ctaBase.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
null
null
null
vnpy/trader/app/ctaStrategy/ctaBase.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
# encoding: UTF-8 ''' 本文件中包含了CTA模块中用到的一些基础设置、类和常量等。 ''' from __future__ import division print('load ctaBase.py') # 常量定义 # CTA引擎中涉及到的交易方向类型 CTAORDER_BUY = u'买入开多' CTAORDER_SELL = u'卖出平多' CTAORDER_SHORT = u'卖出开空' CTAORDER_COVER = u'买入平空' CTAORDER_OPEN_REJECT = u'开单拒绝' CTAORDER_OPEN_FAIL = u'开单失败' CTAORDER_CLOSE_FAIL ...
34.494253
117
0.521826
4331427f30977c2a78150c448fb04ed882622f47
9,794
py
Python
docs/conf.py
morrisalp/kraken
9721a2493eb9fba2d539557c35388f04f2788a92
[ "Apache-2.0" ]
1
2022-02-03T14:41:58.000Z
2022-02-03T14:41:58.000Z
docs/conf.py
morrisalp/kraken
9721a2493eb9fba2d539557c35388f04f2788a92
[ "Apache-2.0" ]
null
null
null
docs/conf.py
morrisalp/kraken
9721a2493eb9fba2d539557c35388f04f2788a92
[ "Apache-2.0" ]
1
2021-04-17T18:36:40.000Z
2021-04-17T18:36:40.000Z
# -*- coding: utf-8 -*- # # kraken documentation build configuration file, created by # sphinx-quickstart on Fri May 22 16:51:45 2015. # # 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 # autogenerated file. # # Al...
31.90228
92
0.715949
65a0b14373bc5662d261655f51c22532ae3aa21d
65,865
py
Python
astroquery/jplhorizons/core.py
IPAC-SW/astroquery
a6806a1aaba4b13902172d1c5952f861c80a08f9
[ "BSD-3-Clause" ]
null
null
null
astroquery/jplhorizons/core.py
IPAC-SW/astroquery
a6806a1aaba4b13902172d1c5952f861c80a08f9
[ "BSD-3-Clause" ]
null
null
null
astroquery/jplhorizons/core.py
IPAC-SW/astroquery
a6806a1aaba4b13902172d1c5952f861c80a08f9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # 1. standard library imports from numpy import nan from numpy import isnan from numpy import ndarray from collections import OrderedDict import warnings # 2. third party imports from astropy.table import Table, Column from astropy.io import ascii from ...
51.376755
135
0.399347
559732de71ae5e87e2e2d83e74fad59682f54673
3,011
py
Python
src/data/environmentalserver/environmental_streamer.py
ECC-BFMC/BFMC_startup
0aca8a95bb9d730913c9edac78f7c147e21221a3
[ "BSD-3-Clause" ]
2
2021-11-16T16:53:33.000Z
2021-11-20T13:55:02.000Z
src/data/environmentalserver/environmental_streamer.py
ECC-BFMC/BFMC_startup
0aca8a95bb9d730913c9edac78f7c147e21221a3
[ "BSD-3-Clause" ]
3
2021-11-15T14:17:06.000Z
2021-12-09T14:43:38.000Z
src/data/environmentalserver/environmental_streamer.py
ECC-BFMC/BFMC_startup
0aca8a95bb9d730913c9edac78f7c147e21221a3
[ "BSD-3-Clause" ]
12
2021-11-16T16:59:10.000Z
2022-03-11T21:31:24.000Z
# Copyright (c) 2019, Bosch Engineering Center Cluj and BFMC organizers # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, ...
36.277108
106
0.7363
5278db83cc62e90a945160d06e0d80dd7ee0557a
1,380
py
Python
tests/v2/test_user_create_data.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v2/test_user_create_data.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v2/test_user_create_data.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
28.163265
108
0.744928
8af9958d5cb651bc942e98f69b24f408a3f24bed
2,524
py
Python
tests/models/validators/v2_2_1/jsd_aa11f09d28165f4ea6c81b8642e59cc4.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_2_1/jsd_aa11f09d28165f4ea6c81b8642e59cc4.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_2_1/jsd_aa11f09d28165f4ea6c81b8642e59cc4.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center updateDeviceRole data model. Copyright (c) 2019-2021 Cisco Systems. 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 with...
34.108108
83
0.632726
bdfc70b9abc221fc8834c9a93dbbdcbbdbd1e2fa
1,622
py
Python
JudgementApply.py
wuzhonglijz/bilibiliJudge
747a31e0d1d7f41e8d90a1505a2e0397bc44efd7
[ "Apache-2.0" ]
null
null
null
JudgementApply.py
wuzhonglijz/bilibiliJudge
747a31e0d1d7f41e8d90a1505a2e0397bc44efd7
[ "Apache-2.0" ]
null
null
null
JudgementApply.py
wuzhonglijz/bilibiliJudge
747a31e0d1d7f41e8d90a1505a2e0397bc44efd7
[ "Apache-2.0" ]
null
null
null
import requests as r import json as js checkurl='http://api.bilibili.com/x/credit/jury/requirement' applyurl='http://api.bilibili.com/x/credit/jury/apply' avaliability=False def Apply(sessdata,csrf): headers={ 'cookie': 'SESSDATA={}'.format(sessdata), 'Host': 'api.bilibili.com', 'User-Agen...
37.72093
152
0.612207
718f2ac30d52309da1fe246b11962c7c7136d83d
2,586
py
Python
secse/run_secse.py
biocheming/SECSE
86d050211b5d67dd93598e3e808fe7a81cbb9a73
[ "Apache-2.0" ]
1
2022-01-24T02:07:52.000Z
2022-01-24T02:07:52.000Z
secse/run_secse.py
biocheming/SECSE
86d050211b5d67dd93598e3e808fe7a81cbb9a73
[ "Apache-2.0" ]
null
null
null
secse/run_secse.py
biocheming/SECSE
86d050211b5d67dd93598e3e808fe7a81cbb9a73
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 _*- """ @author: Lu Chong @file: run_secse.py @time: 2020/11/02/13:35 """ import argparse import time import configparser from grow_processes import Grow from report.grow_path import write_growth def main(): parser = argparse.ArgumentParser(description="SECSE") parse...
34.945946
111
0.5843
1d7c1e2ea239d6f60e608f4e852fab9f10a2983b
7,701
py
Python
idm/objects/events.py
cergey2205/verbose-barnacle
3c61e0b13cf6f14221e1bd80f4aa80302218cf06
[ "MIT" ]
1
2020-07-16T00:16:06.000Z
2020-07-16T00:16:06.000Z
idm/objects/events.py
cergey2205/verbose-barnacle
3c61e0b13cf6f14221e1bd80f4aa80302218cf06
[ "MIT" ]
null
null
null
idm/objects/events.py
cergey2205/verbose-barnacle
3c61e0b13cf6f14221e1bd80f4aa80302218cf06
[ "MIT" ]
null
null
null
import json import re from flask import Request from vkapi import VkApi from .. import utils from . import DB, Methods import logging logger = logging.getLogger(__name__) class Chat: id: int peer_id: int iris_id: str name: str def __init__(self, data: dict, iris_id: str, installed: bool): ...
29.964981
140
0.503571
af9e771b84e0b1d0a6edf9be895fc4cea2813d28
1,658
py
Python
setup.py
troykkt/maldnsbl
e5ddeafcefb60d9e1d4bb32b34687bde56a8964f
[ "MIT" ]
null
null
null
setup.py
troykkt/maldnsbl
e5ddeafcefb60d9e1d4bb32b34687bde56a8964f
[ "MIT" ]
null
null
null
setup.py
troykkt/maldnsbl
e5ddeafcefb60d9e1d4bb32b34687bde56a8964f
[ "MIT" ]
null
null
null
""" Uses DNSBL to lookup reputation on IOCs """ from setuptools import find_packages, setup dependencies = ['click','pyyaml','dnspython',] setup( name='maldnsbl', version='0.0.1', url='https://github.com/troykkt/maldnsbl', license='BSD', author='Troy Kent', author_email='troykkt@gmail.com', ...
33.16
72
0.606152
b3674f2708bb83c2fbf0978e0b52a3a4cd8d283b
3,991
py
Python
1_Crawler/1_newscrawler/commands/CommandGenerator.py
bap-project/SMM
e65e27b985a4aa108fdb5236bc63e70f423661bf
[ "MIT" ]
null
null
null
1_Crawler/1_newscrawler/commands/CommandGenerator.py
bap-project/SMM
e65e27b985a4aa108fdb5236bc63e70f423661bf
[ "MIT" ]
null
null
null
1_Crawler/1_newscrawler/commands/CommandGenerator.py
bap-project/SMM
e65e27b985a4aa108fdb5236bc63e70f423661bf
[ "MIT" ]
null
null
null
from __future__ import division from random import shuffle # Command generator generates commands to be written into terminal. Its example usage is: # cg = HurriyetGenerator() # cg.execute("hurriyet",2005,2005,1) # cg.execute("hurriyet",2006,2006,1) # cg.execute("hurriyet",2007,2007,1) # cg.execute("hurriyet",2008,20...
35.318584
114
0.590579
0cbeae3142b2e800f88a52c39c8635d2e13937fe
1,631
py
Python
models/geometry_utils_test.py
HybridRobotics/cbf
d8a1b376e7e910de71df60cdf3619f68c40ab3ed
[ "Apache-2.0" ]
9
2022-03-07T09:12:29.000Z
2022-03-25T01:41:49.000Z
models/geometry_utils_test.py
HybridRobotics/cbf
d8a1b376e7e910de71df60cdf3619f68c40ab3ed
[ "Apache-2.0" ]
null
null
null
models/geometry_utils_test.py
HybridRobotics/cbf
d8a1b376e7e910de71df60cdf3619f68c40ab3ed
[ "Apache-2.0" ]
null
null
null
from models.geometry_utils import * # # PolytopeRegion test obs_1 = RectangleRegion(0.0, 1.0, 0.90, 1.0) A, b = obs_1.get_convex_rep() obs_2 = PolytopeRegion(A, b) obs_3 = PolytopeRegion.convex_hull(obs_2.points) print(obs_3.mat_A) print(obs_3.vec_b) print(all([all(obs_3.points[:, i] == obs_2.points[:, i]) for i in ra...
31.980392
88
0.699571
afef63e10dcab315e8a8228baa2f5594926db8a5
1,079
py
Python
thp_log.py
alson/dmm-logging
1fa854e6ed6b06ed4d8c273e5396cf1db105ca20
[ "MIT" ]
null
null
null
thp_log.py
alson/dmm-logging
1fa854e6ed6b06ed4d8c273e5396cf1db105ca20
[ "MIT" ]
null
null
null
thp_log.py
alson/dmm-logging
1fa854e6ed6b06ed4d8c273e5396cf1db105ca20
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import time import datetime import csv import os import board import busio import adafruit_bme280 OUTPUT_FILE='thp_log.csv' SAMPLE_INTERVAL=5 i2c = busio.I2C(board.SCL, board.SDA) sensor = adafruit_bme280.Adafruit_BME280_I2C(i2c) sensor.mode = adafruit_bme280.MODE_FORCE sensor.overscan_pressure = ...
29.162162
99
0.706209
a400fc0cb548ebda9927051d4a9f32997d2c219e
9,825
py
Python
pyNastran/bdf/cards/test/test_mass_elements.py
fmamitrotta/pyNastran
6f9592cf3a2ccb8c509918acb735282d6eef75aa
[ "BSD-3-Clause" ]
1
2015-03-13T07:42:34.000Z
2015-03-13T07:42:34.000Z
pyNastran/bdf/cards/test/test_mass_elements.py
fmamitrotta/pyNastran
6f9592cf3a2ccb8c509918acb735282d6eef75aa
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/cards/test/test_mass_elements.py
fmamitrotta/pyNastran
6f9592cf3a2ccb8c509918acb735282d6eef75aa
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from copy import deepcopy import unittest import numpy as np from cpylog import get_logger from pyNastran.bdf.bdf import BDF from pyNastran.bdf.cards.test.utils import save_load_deck from pyNastran.bdf.mesh_utils.mass_properties import mass_properties #from pyNastran.op2.op2 import OP2, read_op2 clas...
33.64726
104
0.576896
4ecb1827aee95ccc9210d2c90d07026b56eaa3c1
2,336
py
Python
src/pymysql/connection.py
rrickgauer/pymysql
d935df4e6f5e5f6a5ba63f2a18f1cd4adc29f964
[ "Apache-2.0" ]
null
null
null
src/pymysql/connection.py
rrickgauer/pymysql
d935df4e6f5e5f6a5ba63f2a18f1cd4adc29f964
[ "Apache-2.0" ]
null
null
null
src/pymysql/connection.py
rrickgauer/pymysql
d935df4e6f5e5f6a5ba63f2a18f1cd4adc29f964
[ "Apache-2.0" ]
null
null
null
import mysql.connector from mysql.connector.cursor import MySQLCursor, MySQLCursorPrepared, MySQLCursorDict from . import credentials as db_credentials class ConnectionBase: """A MySQL database connection""" #---------------------------------------------------------- # Constructor #------------------...
33.855072
84
0.411815
65568059560cb444d04ab283d9e565d8744c1a46
322
py
Python
synchro_shop/users/apps.py
jlfrancisco/Shop-Synchro
c6342fefe5847b706e2b0632c478aa98e5a547db
[ "MIT" ]
null
null
null
synchro_shop/users/apps.py
jlfrancisco/Shop-Synchro
c6342fefe5847b706e2b0632c478aa98e5a547db
[ "MIT" ]
null
null
null
synchro_shop/users/apps.py
jlfrancisco/Shop-Synchro
c6342fefe5847b706e2b0632c478aa98e5a547db
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "synchro_shop.users" verbose_name = _("Users") def ready(self): try: import synchro_shop.users.signals # noqa F401 except ImportError: pas...
23
58
0.664596
4dfeb259b8bd5cf0e9aad6b30f0d193a22059e58
4,420
py
Python
toolregistryclient/exceptions.py
Sage-Bionetworks/tool-registry-client
88abc84a51e3843bff73b4f958571646d4ccc3cd
[ "Apache-2.0" ]
null
null
null
toolregistryclient/exceptions.py
Sage-Bionetworks/tool-registry-client
88abc84a51e3843bff73b4f958571646d4ccc3cd
[ "Apache-2.0" ]
1
2020-12-09T17:55:11.000Z
2021-12-21T18:40:13.000Z
toolregistryclient/exceptions.py
Sage-Bionetworks/tool-registry-client
88abc84a51e3843bff73b4f958571646d4ccc3cd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Tool Registry API The OpenAPI specification implemented by the Tool Registry. # Overview TBA # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech """ import six class OpenApiExc...
31.347518
93
0.579864
764f3bfbbdcae3c8a619cd5717576539a7d7d895
414
py
Python
poetry/console/commands/__init__.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
poetry/console/commands/__init__.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
poetry/console/commands/__init__.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
from .about import AboutCommand from .add import AddCommand from .build import BuildCommand from .check import CheckCommand from .config import ConfigCommand from .install import InstallCommand from .lock import LockCommand from .new import NewCommand from .publish import PublishCommand from .remove import RemoveComman...
29.571429
35
0.842995
2cf02824fc39d8dc7c99d3586bde467ffa043a7a
18,689
py
Python
dask_from_snowflake/_version.py
hayesgb/dask_from_snowflake
848c327b21f62bdec51b04050608297a2a5f239b
[ "BSD-3-Clause" ]
null
null
null
dask_from_snowflake/_version.py
hayesgb/dask_from_snowflake
848c327b21f62bdec51b04050608297a2a5f239b
[ "BSD-3-Clause" ]
null
null
null
dask_from_snowflake/_version.py
hayesgb/dask_from_snowflake
848c327b21f62bdec51b04050608297a2a5f239b
[ "BSD-3-Clause" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.530418
79
0.586067
a09da97f32c7b1b4cd96572d6897d35989ee1d81
1,472
py
Python
tests/test_ARL.py
ZPYin/ARLreader
05db56e0f7dc095bffdb687be3162a73e66f3dca
[ "MIT" ]
2
2019-09-29T14:37:03.000Z
2019-09-29T14:37:31.000Z
tests/test_ARL.py
ZPYin/ARLreader
05db56e0f7dc095bffdb687be3162a73e66f3dca
[ "MIT" ]
null
null
null
tests/test_ARL.py
ZPYin/ARLreader
05db56e0f7dc095bffdb687be3162a73e66f3dca
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # coding=utf-8 import datetime import numpy as np import ARLreader class TestARLreader(): def test_filename(self): #assert assert ARLreader.fname_from_date(datetime.datetime(2014, 3, 15)) == 'gdas1.mar14.w3' assert ARLreader.fname_from_date(datetime.date...
43.294118
115
0.600543
bb688c149284e91a8bba1fdd1b7b018303a78989
278
py
Python
auth/auth/driver/__main__.py
jmaunsell/hail
a1a5e4f7c9912d455bd58e056167b772d9e8bd82
[ "MIT" ]
null
null
null
auth/auth/driver/__main__.py
jmaunsell/hail
a1a5e4f7c9912d455bd58e056167b772d9e8bd82
[ "MIT" ]
null
null
null
auth/auth/driver/__main__.py
jmaunsell/hail
a1a5e4f7c9912d455bd58e056167b772d9e8bd82
[ "MIT" ]
null
null
null
from hailtop.hail_logging import configure_logging # configure logging before importing anything else configure_logging() def main(): import asyncio from .driver import async_main loop = asyncio.get_event_loop() loop.run_until_complete(async_main()) main()
18.533333
50
0.766187
02561889137c2a18124dac3ce1e8ec6b0fb4a0b7
4,903
py
Python
test/functional/interface_http.py
JLBarbie/Auroracoin
56bb9bf3b1ed84c42a4c7213dc43e1daf01bdbf0
[ "MIT" ]
1
2021-04-05T20:07:32.000Z
2021-04-05T20:07:32.000Z
test/functional/interface_http.py
JLBarbie/Auroracoin
56bb9bf3b1ed84c42a4c7213dc43e1daf01bdbf0
[ "MIT" ]
null
null
null
test/functional/interface_http.py
JLBarbie/Auroracoin
56bb9bf3b1ed84c42a4c7213dc43e1daf01bdbf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2009-2019 The Bitcoin Core developers # Copyright (c) 2014-2019 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RPC HTTP basics.""" from test_framewor...
44.572727
117
0.638385
9a825375000bfd30b03919da57e71c7ba777b812
903
py
Python
webapp.py
ayulockin/humAIn_FaceLess
461def57e1002b155c3a03570aa57ca3465cf100
[ "Apache-2.0" ]
2
2019-08-26T06:46:12.000Z
2019-09-08T17:54:27.000Z
webapp.py
ayulockin/humAIn_FaceLess
461def57e1002b155c3a03570aa57ca3465cf100
[ "Apache-2.0" ]
null
null
null
webapp.py
ayulockin/humAIn_FaceLess
461def57e1002b155c3a03570aa57ca3465cf100
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, send_file, jsonify import numpy as np import base64 import json from PIL import Image from io import BytesIO from main import working app = Flask(__name__) @app.route('/') def hello(): return 'TCS humAIn' @app.route('/predict', methods=['POST']) def predict(): input_file = ...
25.083333
75
0.646733
a2f7daf999e39ab981c6c07b27407dbfa47b6bb6
20,440
py
Python
mesonbuild/dependencies/misc.py
LarryIII/meson
4a9fd0e742e0cc9fb1607c182904ea48848ea1ba
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/misc.py
LarryIII/meson
4a9fd0e742e0cc9fb1607c182904ea48848ea1ba
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/misc.py
LarryIII/meson
4a9fd0e742e0cc9fb1607c182904ea48848ea1ba
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2017 The Meson development team # 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 agree...
37.851852
156
0.570646
79a1c027644d2b48f66f1d867e23ee79d175b712
31,176
py
Python
scripts/peep.py
lmorchard/badges.mozilla.org
2f00782eb40f187b9c0cd70763090b8c46ec448e
[ "BSD-3-Clause" ]
21
2015-01-04T22:30:46.000Z
2017-09-12T03:03:27.000Z
scripts/peep.py
lmorchard/badges.mozilla.org
2f00782eb40f187b9c0cd70763090b8c46ec448e
[ "BSD-3-Clause" ]
76
2015-01-04T21:23:35.000Z
2019-03-28T12:36:17.000Z
scripts/peep.py
lmorchard/badges.mozilla.org
2f00782eb40f187b9c0cd70763090b8c46ec448e
[ "BSD-3-Clause" ]
41
2015-01-08T04:47:10.000Z
2019-03-28T04:12:57.000Z
#!/usr/bin/env python """peep ("prudently examine every package") verifies that packages conform to a trusted, locally stored hash and only then installs them:: peep install -r requirements.txt This makes your deployments verifiably repeatable without having to maintain a local PyPI mirror or use a vendor lib. Ju...
36.764151
157
0.624134
8f2c37fcaa227a34c7c8ca959e7715e97c4eb708
5,418
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.529412
135
0.654485
23a1970457dd5c36f8463848ec2a70822d2b8fb2
7,862
py
Python
skhyper/decomposition/_nmf.py
tensor-strings/scikit-hyper
795a0b48d92c644ef3662e9957c04e5a9a6f85b2
[ "BSD-3-Clause" ]
null
null
null
skhyper/decomposition/_nmf.py
tensor-strings/scikit-hyper
795a0b48d92c644ef3662e9957c04e5a9a6f85b2
[ "BSD-3-Clause" ]
null
null
null
skhyper/decomposition/_nmf.py
tensor-strings/scikit-hyper
795a0b48d92c644ef3662e9957c04e5a9a6f85b2
[ "BSD-3-Clause" ]
null
null
null
""" Non-negative matrix factorization """ import numpy as np from sklearn.decomposition import NMF as _sklearn_nmf from skhyper.process import Process class NMF: """Non-negative matrix factorization Find two non-negative matrices (W, H) whose product approximates the non-negative matrix X. This factoriz...
34.787611
110
0.631773
ab956fe9da7cf49fc26190419ffb516054b717b9
3,173
py
Python
homeassistant/components/gios/__init__.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
5
2018-10-23T14:15:05.000Z
2021-11-26T06:38:44.000Z
homeassistant/components/gios/__init__.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/gios/__init__.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""The GIOS component.""" from __future__ import annotations import logging from typing import Any, Dict, cast from aiohttp import ClientSession from aiohttp.client_exceptions import ClientConnectorError from async_timeout import timeout from gios import ApiError, Gios, InvalidSensorsData, NoStationError from homeas...
36.056818
109
0.736212
fd8ec1278d37e049024011be4988b5ae59fb8031
1,471
py
Python
tests/statistical/samplers/configuration/run-tmcmc.py
JonathanLehner/korali
90f97d8e2fed2311f988f39cfe014f23ba7dd6cf
[ "MIT" ]
43
2018-07-26T07:20:42.000Z
2022-03-02T10:23:12.000Z
tests/statistical/samplers/configuration/run-tmcmc.py
JonathanLehner/korali
90f97d8e2fed2311f988f39cfe014f23ba7dd6cf
[ "MIT" ]
212
2018-09-21T10:44:07.000Z
2022-03-22T14:33:05.000Z
tests/statistical/samplers/configuration/run-tmcmc.py
JonathanLehner/korali
90f97d8e2fed2311f988f39cfe014f23ba7dd6cf
[ "MIT" ]
16
2018-07-25T15:00:36.000Z
2022-03-22T14:19:46.000Z
#!/usr/bin/env python3 # Importing computational model import sys import numpy as np def verify(actual, expected, atol=1e-9): assert np.isclose( expected, actual, atol=atol ), "Value {} deviates from expected value {}".format(actual, expected) def lgaussian(s): x0 = s["Parameters"][0] x1 = s["Param...
27.754717
74
0.675731
c2f642cf7eac33c96fb257eb8ad7b2b292fea26c
635
py
Python
ancilla/ancilla/__main__.py
frenzylabs/ancilla
3469272f17e1a5092d033cdc099f86f3052e744f
[ "Apache-2.0" ]
7
2020-03-31T19:52:59.000Z
2021-05-21T08:38:47.000Z
ancilla/ancilla/__main__.py
frenzylabs/ancilla
3469272f17e1a5092d033cdc099f86f3052e744f
[ "Apache-2.0" ]
15
2020-04-01T13:52:07.000Z
2020-04-01T13:52:11.000Z
ancilla/ancilla/__main__.py
frenzylabs/ancilla
3469272f17e1a5092d033cdc099f86f3052e744f
[ "Apache-2.0" ]
null
null
null
''' Ancilla.py ancilla Created by Wess Cope (me@wess.io) on 09/26/19 Copyright 2019 Wess Cope ''' from ancilla.app import Application import sys # from foundation.app import Application # from foundation.api.server import APIServer import tornado if __name__ == "__main__": # APIServer().start() # Applicati...
20.483871
59
0.675591
fd827cee6cebfe4db10c067a36a0f9c87410dc0b
6,226
py
Python
research/gan/cifar/train.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
3,326
2018-01-26T22:42:25.000Z
2022-02-16T13:16:39.000Z
research/gan/cifar/train.py
wzy1510300a28/models
42a3da72313b8814ef0ced8f425af90b57313b9f
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
research/gan/cifar/train.py
wzy1510300a28/models
42a3da72313b8814ef0ced8f425af90b57313b9f
[ "Apache-2.0" ]
1,474
2018-02-01T04:33:18.000Z
2022-03-08T07:02:20.000Z
# 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...
34.782123
80
0.695631
f0fe53e979c73cdec1bca0fe5f40405d22326d8b
438
py
Python
Fundamentos/ejercicio-if.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
Fundamentos/ejercicio-if.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
Fundamentos/ejercicio-if.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
mes = int(input("Ingresar un valor entre 1-12 para el mes: ")) estacion = None if mes == 1 or mes == 2 or mes == 12: estacion = "Invierno" elif mes == 3 or mes == 4 or mes == 5: estacion = "Primavera" elif mes == 6 or mes == 7 or mes == 8: estacion = "Verano" elif mes == 9 or mes == 10 or mes == 11: ...
21.9
62
0.59589
c1ae295d2d2d1dd78eb465ff5bd3fed45c092850
302
py
Python
Date/DateRequest.py
MasoudHeidary/django-telegram-bot-trade
7032428e5e04cb02bb081dcc4d86a585a773ada0
[ "MIT" ]
null
null
null
Date/DateRequest.py
MasoudHeidary/django-telegram-bot-trade
7032428e5e04cb02bb081dcc4d86a585a773ada0
[ "MIT" ]
null
null
null
Date/DateRequest.py
MasoudHeidary/django-telegram-bot-trade
7032428e5e04cb02bb081dcc4d86a585a773ada0
[ "MIT" ]
null
null
null
from persiantools.jdatetime import JalaliDateTime, timedelta import datetime def valid_days(max_day): today = JalaliDateTime.today() + timedelta(hours=2) days = [] for i in range(1, max_day + 1): days += [(today + datetime.timedelta(days=i)).strftime("%Y/%m/%d")] return days
27.454545
75
0.672185
a4088aeabff78dcf44a310438e1fb9850cfb27b3
2,284
py
Python
glasses/utils/ModuleTransfer.py
rentainhe/glasses
34300a76985c7fc643094fa8d617114926a0ee75
[ "MIT" ]
271
2020-10-20T12:30:23.000Z
2022-03-17T03:02:38.000Z
glasses/utils/ModuleTransfer.py
rentainhe/glasses
34300a76985c7fc643094fa8d617114926a0ee75
[ "MIT" ]
212
2020-07-25T13:02:23.000Z
2022-02-20T10:33:32.000Z
glasses/utils/ModuleTransfer.py
rentainhe/glasses
34300a76985c7fc643094fa8d617114926a0ee75
[ "MIT" ]
23
2021-01-03T13:53:36.000Z
2022-03-17T05:40:34.000Z
import torch.nn as nn from torch import Tensor from dataclasses import dataclass, field from .Tracker import Tracker from pprint import pprint from typing import List @dataclass class ModuleTransfer: """This class transfers the weight from one module to another assuming they have the same set of operations bu...
38.066667
151
0.636602
dc864c7347cd9b5c9a714b53935d7eb0df0f4915
111
py
Python
langdetect/__init__.py
Nipunkgoel/langdetect
0a1ec25cd92fc8d0920bd418e4ca142c8850cee5
[ "Apache-2.0" ]
null
null
null
langdetect/__init__.py
Nipunkgoel/langdetect
0a1ec25cd92fc8d0920bd418e4ca142c8850cee5
[ "Apache-2.0" ]
null
null
null
langdetect/__init__.py
Nipunkgoel/langdetect
0a1ec25cd92fc8d0920bd418e4ca142c8850cee5
[ "Apache-2.0" ]
null
null
null
from .detector_factory import DetectorFactory, PROFILES_DIRECTORY, detect, detect_langs, detect_lang_limit_to
37
109
0.873874
311b13fc9bf8fb12239d3f59add753c20937eec9
2,883
py
Python
setup.py
fairfly/pipelinewise
36464dbffa072032b605bd1917383eb19fac3245
[ "Apache-2.0" ]
2
2020-10-05T07:41:36.000Z
2020-10-05T07:41:37.000Z
setup.py
fairfly/pipelinewise
36464dbffa072032b605bd1917383eb19fac3245
[ "Apache-2.0" ]
null
null
null
setup.py
fairfly/pipelinewise
36464dbffa072032b605bd1917383eb19fac3245
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup with open('README.md') as f: LONG_DESCRIPTION = f.read() setup(name='pipelinewise', version='0.27.0', description='PipelineWise', long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', autho...
36.0375
87
0.553937
a7c653cee2bd68d856aa6400b76bd22ed4d90c86
2,452
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class627.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class627.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class627.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=13 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.550562
118
0.635808
8964b2109c4ddb605a770003a166461c28600642
4,925
py
Python
commands/mixins.py
hexagoncode/arxcode
bfdace3c28cc870ad5334d182ad2b47b681f3e4b
[ "MIT" ]
null
null
null
commands/mixins.py
hexagoncode/arxcode
bfdace3c28cc870ad5334d182ad2b47b681f3e4b
[ "MIT" ]
null
null
null
commands/mixins.py
hexagoncode/arxcode
bfdace3c28cc870ad5334d182ad2b47b681f3e4b
[ "MIT" ]
null
null
null
""" Mixins for commands """ from server.utils.exceptions import CommandError from django.db.models import Q class ArxCommmandMixin(object): """Mixin class for Arx commands""" error_class = CommandError help_entry_tags = [] def check_switches(self, switch_set): """Checks if the commands switch...
39.4
112
0.599188
2718677fa5cfef5b4d95d819a513a142d7f5d20a
2,231
py
Python
onnx/backend/test/case/node/onehot.py
rajeevsrao/onnx
355a4954ea4e5836a5e943589509951c44feb6b4
[ "MIT" ]
117
2021-03-10T06:28:15.000Z
2022-03-30T07:16:41.000Z
onnx/backend/test/case/node/onehot.py
rajeevsrao/onnx
355a4954ea4e5836a5e943589509951c44feb6b4
[ "MIT" ]
17
2021-03-23T02:08:31.000Z
2022-03-28T15:31:04.000Z
onnx/backend/test/case/node/onehot.py
rajeevsrao/onnx
355a4954ea4e5836a5e943589509951c44feb6b4
[ "MIT" ]
49
2021-03-05T10:02:54.000Z
2022-03-22T08:51:25.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np # type: ignore import onnx from ..base import Base from . import expect def one_hot(indices, depth, axis=-1, dtype=np.float32): # type: ignore ...
34.323077
99
0.597938
6c486037c7d30539eb7996f836028be2109413fd
6,689
py
Python
python/paddle/vision/models/mobilenetv2.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
2
2022-03-30T09:55:45.000Z
2022-03-30T09:55:49.000Z
python/paddle/vision/models/mobilenetv2.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
null
null
null
python/paddle/vision/models/mobilenetv2.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
30.967593
121
0.551951
ebfc207a51accf30fae0903aedda0f0f8ba35081
428
py
Python
Week 1/id_750/LeetCode_26_750.py
zp245491220/algorithm004-05
c2feec87cdc0cc14cd8a9c6f05976540f83fe370
[ "Apache-2.0" ]
null
null
null
Week 1/id_750/LeetCode_26_750.py
zp245491220/algorithm004-05
c2feec87cdc0cc14cd8a9c6f05976540f83fe370
[ "Apache-2.0" ]
null
null
null
Week 1/id_750/LeetCode_26_750.py
zp245491220/algorithm004-05
c2feec87cdc0cc14cd8a9c6f05976540f83fe370
[ "Apache-2.0" ]
null
null
null
from typing import List # 26.删除排序数组中的重复项 class Solution: def removeDuplicates(self, nums: List[int]) -> int: if not nums: return 0 k = 1 for i in range(1, len(nums)): if nums[i] != nums[i - 1]: nums[k] = nums[i] k += 1 return ...
21.4
56
0.481308
6be074e30aee254f99f57f74b5a4f501c9bc9fba
2,254
py
Python
dirigible/dirigible/settings.py
EnoX1/dirigible-spreadsheet
9a3289c67a93c40190565ad5a555710c50c5f958
[ "MIT" ]
168
2015-01-03T02:09:30.000Z
2022-03-31T22:28:00.000Z
dirigible/dirigible/settings.py
EnoX1/dirigible-spreadsheet
9a3289c67a93c40190565ad5a555710c50c5f958
[ "MIT" ]
4
2017-03-14T20:49:49.000Z
2020-04-02T16:13:00.000Z
dirigible/dirigible/settings.py
EnoX1/dirigible-spreadsheet
9a3289c67a93c40190565ad5a555710c50c5f958
[ "MIT" ]
46
2015-01-18T04:39:24.000Z
2022-02-17T22:33:05.000Z
""" Django settings for dirigible project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) ...
23.479167
71
0.728926
d00e186ad7848b7352f30e6142f68dbf81665dc1
3,613
py
Python
picbackend/views/v2/healthcare_subsidy_eligibility_data_views/views.py
bbcawodu/careadvisors-backend
5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838
[ "MIT" ]
null
null
null
picbackend/views/v2/healthcare_subsidy_eligibility_data_views/views.py
bbcawodu/careadvisors-backend
5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838
[ "MIT" ]
null
null
null
picbackend/views/v2/healthcare_subsidy_eligibility_data_views/views.py
bbcawodu/careadvisors-backend
5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838
[ "MIT" ]
null
null
null
from django.views.generic import View from picbackend.views.utils import JSONGETRspMixin from picbackend.views.utils import JSONPUTRspMixin from picmodels.models import HealthcareSubsidyEligibilityByFamSize from .tools import validate_put_rqst_params # Need to abstract common variables in get and post class method...
43.53012
132
0.672018
6a0e6c92356fca7059e572d2334724dcf9793850
362
py
Python
entries/models.py
Angelheartha/tango
6f523db4fbd8ff6c4bcff7a299b1a6fbda9189cd
[ "Apache-2.0" ]
1
2022-01-03T05:43:43.000Z
2022-01-03T05:43:43.000Z
entries/models.py
Angelheartha/tano
1951082e7bb9f02ef0374154fd3de300e7b673a6
[ "Apache-2.0" ]
null
null
null
entries/models.py
Angelheartha/tano
1951082e7bb9f02ef0374154fd3de300e7b673a6
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.db import models from django.utils import timezone class Entry(models.Model): title = models.CharField(max_length=200) content = models.TextField() date_created = models.DateTimeField(default=timezone.now) def __str__(self): return self.title class Meta...
22.625
61
0.734807
7d7c84828546e09e9fe881ab55d867e8e0688f20
6,236
py
Python
kubric/core/assets.py
fgolemo/kubric
a8b6bc8260add2f516e4805929dcb17f223974ba
[ "Apache-2.0" ]
null
null
null
kubric/core/assets.py
fgolemo/kubric
a8b6bc8260add2f516e4805929dcb17f223974ba
[ "Apache-2.0" ]
null
null
null
kubric/core/assets.py
fgolemo/kubric
a8b6bc8260add2f516e4805929dcb17f223974ba
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubric Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
35.431818
98
0.6695
9066dd4dfd8f58b411b865da3616f102aaa773da
707
py
Python
Starline/__init__.py
Adam-94/dash_demo
65b4080df6473a0826b8ac30a98c0a24fe21d4c6
[ "MIT", "Unlicense" ]
null
null
null
Starline/__init__.py
Adam-94/dash_demo
65b4080df6473a0826b8ac30a98c0a24fe21d4c6
[ "MIT", "Unlicense" ]
null
null
null
Starline/__init__.py
Adam-94/dash_demo
65b4080df6473a0826b8ac30a98c0a24fe21d4c6
[ "MIT", "Unlicense" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_msearch import Search from flask_login import LoginManager from flask_bcrypt import Bcrypt from Starline.config import Config db = SQLAlchemy() search = Search() bcrypt = Bcrypt() login_manager = LoginManager() login_manager.login_view = "main...
22.09375
46
0.768034
4d0dbd46d61ae93b007188ac6bd51eeaa4cadff3
7,134
py
Python
discovery-infra/install_cluster.py
asalkeld/assisted-test-infra
937d1134dbdf89aca7469c566ec95c7384ddbf0a
[ "Apache-2.0" ]
1
2021-02-01T21:26:32.000Z
2021-02-01T21:26:32.000Z
discovery-infra/install_cluster.py
asalkeld/assisted-test-infra
937d1134dbdf89aca7469c566ec95c7384ddbf0a
[ "Apache-2.0" ]
117
2021-01-14T13:31:30.000Z
2022-03-28T07:04:26.000Z
discovery-infra/install_cluster.py
jparrill/assisted-test-infra
1a04fde3da043085c403ac25a32ab169b45741d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import argparse from test_infra import assisted_service_api, consts, utils import oc_utils import waiting from logger import log from test_infra.tools import terraform_utils from test_infra.helper_classes import cluster as helper_cluster # Verify folder to downlo...
33.181395
103
0.666667
44e6f4bc2acbc10f911fb73205719dc385bc8354
1,666
py
Python
src/vqa/csv_creator.py
esteng/vagueness
6c9627575188b325cfb72181931c95b774ca18b0
[ "MIT" ]
null
null
null
src/vqa/csv_creator.py
esteng/vagueness
6c9627575188b325cfb72181931c95b774ca18b0
[ "MIT" ]
null
null
null
src/vqa/csv_creator.py
esteng/vagueness
6c9627575188b325cfb72181931c95b774ca18b0
[ "MIT" ]
null
null
null
import csv import json predicate = "young" with open('/home/jgualla1/vagueness/src/vqa/output_' + predicate + '_wurl_yesno_checked.json') as f: predicate_dict = json.load(f) row_size = 8 row_counter = 0 count = 1 question_count = 0 question_limit = 1000 csv_format_list = [] #dict = {} #csv_format_list.append(di...
32.038462
354
0.704082
667337c321a29c8058310a93d6ba1c8f12334811
15,456
py
Python
hata/discord/interaction/components/debug.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/interaction/components/debug.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-02-08T16:54:39.000Z
2022-02-08T16:54:39.000Z
hata/discord/interaction/components/debug.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
__all__ = () from scarletio import include from ...emoji import Emoji from .constants import ( COMPONENT_CUSTOM_ID_LENGTH_MAX, COMPONENT_LABEL_LENGTH_MAX, COMPONENT_MAX_LENGTH_MAX, COMPONENT_MAX_LENGTH_MIN, COMPONENT_MIN_LENGTH_MAX, COMPONENT_MIN_LENGTH_MIN, COMPONENT_OPTION_LENGTH_MAX, COMPONENT_OPTION_LENG...
29.107345
115
0.594397
8011906dddc62e9c704cf13cba7b1ad4feb22bcd
192
py
Python
raven/scripts/__init__.py
ascan-io/raven-python
5b3f48c66269993a0202cfc988750e5fe66e0c00
[ "BSD-3-Clause" ]
1,108
2015-01-02T01:20:00.000Z
2022-03-09T02:22:40.000Z
raven/scripts/__init__.py
nvllsvm/raven-python
c4403f21973138cd20cf9c005da4fb934836d76e
[ "BSD-3-Clause" ]
698
2015-01-04T11:12:57.000Z
2022-01-22T08:07:51.000Z
venv/lib/python3.7/site-packages/raven/scripts/__init__.py
emreatadl/atadil-personal-blog
88c7be19d6a27b39fd86ff3d9c34b11443291e0e
[ "MIT" ]
486
2015-01-04T09:00:33.000Z
2022-03-09T02:37:18.000Z
""" raven.scripts ~~~~~~~~~~~~~ :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import
21.333333
70
0.697917
efa2d425ec981d69014b607f648c6a1608c22253
4,407
py
Python
cytominer_eval/transform/util.py
hillsbury/cytominer-eval
56bd9e545d4ce5dea8c2d3897024a4eb241d06db
[ "BSD-3-Clause" ]
null
null
null
cytominer_eval/transform/util.py
hillsbury/cytominer-eval
56bd9e545d4ce5dea8c2d3897024a4eb241d06db
[ "BSD-3-Clause" ]
null
null
null
cytominer_eval/transform/util.py
hillsbury/cytominer-eval
56bd9e545d4ce5dea8c2d3897024a4eb241d06db
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd from typing import List, Union import pandas.api.types as ptypes from collections import OrderedDict def get_available_eval_metrics(): return ["percent_strong", "precision_recall", "grit"] def get_available_similarity_metrics(): return ["pearson", "kendall", "spearman"...
30.393103
88
0.666894
f39d9379bd67079e7aa600559e8fff7af726e606
697
py
Python
sdk/python/pulumi_azure_native/cdn/v20200415/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cdn/v20200415/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cdn/v20200415/__init__.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! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .custom_domain import * from .endpoint ...
29.041667
80
0.758967
06373e5bb5a41b312c84a89bc9f0a1b27a9adafa
25,738
py
Python
cloudmesh/common/StopWatch.py
cloudmesh/common
90ed8e77dd303c784fda5844a6c04a22322d67b2
[ "Apache-2.0" ]
null
null
null
cloudmesh/common/StopWatch.py
cloudmesh/common
90ed8e77dd303c784fda5844a6c04a22322d67b2
[ "Apache-2.0" ]
null
null
null
cloudmesh/common/StopWatch.py
cloudmesh/common
90ed8e77dd303c784fda5844a6c04a22322d67b2
[ "Apache-2.0" ]
null
null
null
""" Class for starting and stopping named timers. Here is a simple example. the user and node parameters can be omitted, but they help in case you like to change the system retrieved values. from pprint import pprint from cloudmesh.common.StopWatch import StopWatch import time user="gregor" node="5950x" for t in [...
31.426129
121
0.511928
30fc48cd3586f789ff88534e6e5787ea883e90f5
44,839
py
Python
virtual/lib/python3.6/site-packages/sqlalchemy/orm/util.py
1Dennis-Hosea/opinion
2e38d71c98803c294fea62b9cdc062ff02dee504
[ "MIT" ]
1
2022-03-28T16:37:17.000Z
2022-03-28T16:37:17.000Z
virtual/lib/python3.6/site-packages/sqlalchemy/orm/util.py
1Dennis-Hosea/opinion
2e38d71c98803c294fea62b9cdc062ff02dee504
[ "MIT" ]
3
2020-03-24T17:46:11.000Z
2021-08-23T20:23:16.000Z
virtual/lib/python3.6/site-packages/sqlalchemy/orm/util.py
1Dennis-Hosea/opinion
2e38d71c98803c294fea62b9cdc062ff02dee504
[ "MIT" ]
1
2020-02-20T11:14:48.000Z
2020-02-20T11:14:48.000Z
# orm/util.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import re import types from . import attributes # noqa from .base import _class_to_ma...
33.891912
79
0.62662
13e9b78e84d5968559bb1caecaa5b274d92ccf10
10,596
py
Python
data_loader.py
josephch405/U-2-Net
d90b59b1fb2e5f34cc0e9069d6f132ac23ea17fb
[ "Apache-2.0" ]
null
null
null
data_loader.py
josephch405/U-2-Net
d90b59b1fb2e5f34cc0e9069d6f132ac23ea17fb
[ "Apache-2.0" ]
null
null
null
data_loader.py
josephch405/U-2-Net
d90b59b1fb2e5f34cc0e9069d6f132ac23ea17fb
[ "Apache-2.0" ]
null
null
null
# data loader from __future__ import print_function, division import glob import torch from skimage import io, transform, color import numpy as np import random import math import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader import torchvision from torchvision import transforms, utils from ...
34.07074
115
0.635995
2b7bfd3983d20d966b91a233f13d3899f0dad99e
3,796
py
Python
computerwords/htmlwriter/util.py
irskep/computerwords
8bad47796f3cfc8e17da57f0dd913f2c0ba71ca5
[ "BSD-3-Clause" ]
null
null
null
computerwords/htmlwriter/util.py
irskep/computerwords
8bad47796f3cfc8e17da57f0dd913f2c0ba71ca5
[ "BSD-3-Clause" ]
13
2016-03-03T20:48:10.000Z
2016-05-09T00:26:59.000Z
computerwords/htmlwriter/util.py
irskep/computerwords
8bad47796f3cfc8e17da57f0dd913f2c0ba71ca5
[ "BSD-3-Clause" ]
null
null
null
import html import os import pathlib from collections import namedtuple from pygments.formatters import HtmlFormatter import computerwords HTMLWriterOptions = namedtuple('HTMLWriterOptions', [ 'single_page', 'static_dir', 'files_to_copy', 'stylesheet_tag_strings', 'site_url', 'meta_descripti...
28.977099
82
0.63883
657c8009d1e38914efbf81c1e26fc068397c1e75
20,924
py
Python
coco.py
griffindor123/person-blocker
4215d02e72bb873152dcdeefb7e32d03f9fec8eb
[ "MIT" ]
null
null
null
coco.py
griffindor123/person-blocker
4215d02e72bb873152dcdeefb7e32d03f9fec8eb
[ "MIT" ]
null
null
null
coco.py
griffindor123/person-blocker
4215d02e72bb873152dcdeefb7e32d03f9fec8eb
[ "MIT" ]
null
null
null
""" Mask R-CNN Configurations and data loading code for MS COCO. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for examples), or run fr...
39.703985
124
0.589275
8061da375758fb82228445c34593edd97a615d51
5,392
py
Python
everyday_wechat/main.py
sun2589886503/EverydayWechat
b4cc7b250eaba11bd24bc106482424b723d77297
[ "MIT" ]
9,940
2019-03-12T06:05:45.000Z
2022-03-31T16:09:34.000Z
everyday_wechat/main.py
githan2020/EverydayWechat
f760d47af98be748efe58a7332b7c41d0ecae708
[ "MIT" ]
199
2019-03-13T12:11:37.000Z
2022-02-05T07:51:27.000Z
everyday_wechat/main.py
githan2020/EverydayWechat
f760d47af98be748efe58a7332b7c41d0ecae708
[ "MIT" ]
2,293
2019-03-12T06:42:39.000Z
2022-03-29T13:13:49.000Z
# coding=utf-8 """ 每天定时给多个女友发给微信暖心话 核心代码。 """ import time # import json import platform import os # from apscheduler.schedulers.blocking import BlockingScheduler from apscheduler.schedulers.background import BackgroundScheduler import itchat from itchat.content import ( TEXT ) from everyday_wechat.utils.data_col...
26.825871
117
0.636499
622ed786b592a03cb86b50eea3625c2ed72a49c8
1,663
py
Python
photos/tests.py
adriankiprono/imstragram_project
c4935ad745987fb53b62d116c3bc2faff20927ce
[ "MIT" ]
null
null
null
photos/tests.py
adriankiprono/imstragram_project
c4935ad745987fb53b62d116c3bc2faff20927ce
[ "MIT" ]
4
2020-06-06T00:31:39.000Z
2022-03-12T00:10:52.000Z
photos/tests.py
adriankiprono/instragram_project
c4935ad745987fb53b62d116c3bc2faff20927ce
[ "MIT" ]
null
null
null
from django.test import TestCase from . models import * # Create your tests here. class ImageTestClass(TestCase): ''' This is a class that perform unnittest behaviour on the Image Model. ''' def setUp(self): self.image_one = Image(image='images/lagoon.jpeg',name='bombklat',) def...
26.822581
130
0.622369
1b82928ff4ec7379fcd3b59d9735c0e9d71b11a8
6,563
py
Python
ppdet/utils/voc_eval.py
joey12300/PaddleDetection
bd3c36aaf3d3c728743cd8b7122a35167774c8dd
[ "Apache-2.0" ]
27
2020-12-07T10:46:39.000Z
2021-08-01T08:56:33.000Z
ppdet/utils/voc_eval.py
o20157/PaddleDetection
8102aaad6ff1e0da181cf1db99189c80a0a533d1
[ "Apache-2.0" ]
4
2020-12-18T08:06:15.000Z
2021-08-01T02:54:50.000Z
ppdet/utils/voc_eval.py
o20157/PaddleDetection
8102aaad6ff1e0da181cf1db99189c80a0a533d1
[ "Apache-2.0" ]
4
2020-12-18T04:37:42.000Z
2020-12-31T02:08:33.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.475676
75
0.616486
1c385763e55768956dcf5c96c892d9d54ca34977
31,252
py
Python
libqtile/backend/wayland/window.py
flexagoon/qtile
ecf79a91da058dc9f8dd032a42e13eac9c2a270d
[ "MIT" ]
null
null
null
libqtile/backend/wayland/window.py
flexagoon/qtile
ecf79a91da058dc9f8dd032a42e13eac9c2a270d
[ "MIT" ]
null
null
null
libqtile/backend/wayland/window.py
flexagoon/qtile
ecf79a91da058dc9f8dd032a42e13eac9c2a270d
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Matt Colligan # # 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 without limitation the rights # to use, copy, modify, merge, publish, distr...
34.043573
97
0.615001
aad84ff0172ac954e8587eff2c85d3dbab21acf1
524
py
Python
text/piglatin.py
Walber55/projects
6c3de0797ffbc2dfcb5c4a1fa5a9ddd4580bbb1e
[ "MIT" ]
15
2016-10-09T10:10:16.000Z
2021-06-02T08:52:47.000Z
text/piglatin.py
Walber55/projects
6c3de0797ffbc2dfcb5c4a1fa5a9ddd4580bbb1e
[ "MIT" ]
null
null
null
text/piglatin.py
Walber55/projects
6c3de0797ffbc2dfcb5c4a1fa5a9ddd4580bbb1e
[ "MIT" ]
9
2018-04-26T16:55:36.000Z
2022-02-02T17:25:54.000Z
#!/usr/bin/env python2 # Pig Latin is a game of alterations played on the English language game. # To create the Pig Latin form of an English word the initial consonant sound # is transposed to the end of the word and an ay is affixed (Ex.: "banana" # would yield anana-bay). Read Wikipedia for more information on rule...
32.75
77
0.677481
240531523036424dbbd2647dd62868230a5d809b
1,588
py
Python
src/models/channel.py
aqua-crew-devs/aquarium
16c47adb6609e16c00f994003f819d33a9a07c64
[ "MIT" ]
null
null
null
src/models/channel.py
aqua-crew-devs/aquarium
16c47adb6609e16c00f994003f819d33a9a07c64
[ "MIT" ]
3
2019-12-28T15:15:26.000Z
2021-06-02T00:56:52.000Z
src/models/channel.py
aqua-crew-devs/aquarium
16c47adb6609e16c00f994003f819d33a9a07c64
[ "MIT" ]
null
null
null
from typing import Optional, List import deprecation from datetime import datetime from .database import get_mongo_client class Channel: def __init__( self, id: str, name: str, description: str, thumbnail: str, published_at: datetime, country: str, ...
27.859649
83
0.617128
ec3eb4efc47ce69c1c7d8d1cfb1f13afc71bd669
5,485
py
Python
src/secondaires/navigation/equipage/ordre.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
14
2015-08-21T19:15:21.000Z
2017-11-26T13:59:17.000Z
src/secondaires/navigation/equipage/ordre.py
vincent-lg/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
20
2015-09-29T20:50:45.000Z
2018-06-21T12:58:30.000Z
src/secondaires/navigation/equipage/ordre.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
3
2015-05-02T19:42:03.000Z
2018-09-06T10:55:00.000Z
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # ...
34.496855
84
0.691522
6251e390e30069c6b0ef808c667c4fec86093bf2
223
py
Python
setup.py
arpitkumar1996/mlops
d68ecfadaac6171f12e6d7b6bba57616f329bdf9
[ "MIT" ]
null
null
null
setup.py
arpitkumar1996/mlops
d68ecfadaac6171f12e6d7b6bba57616f329bdf9
[ "MIT" ]
null
null
null
setup.py
arpitkumar1996/mlops
d68ecfadaac6171f12e6d7b6bba57616f329bdf9
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='This is the wafer project using MLOPs', author='Arpit Kumar', license='MIT', )
20.272727
56
0.668161
7ec5cd11f5fb76af6559465932422d15cf8dc7c1
54,698
py
Python
tests/unit/hazmat/test_algebraic_intersection.py
dhermes/bezier
e6925aad702842ae3637dfac9ff0da556ef0d980
[ "Apache-2.0" ]
165
2017-05-27T08:22:12.000Z
2022-03-22T17:31:41.000Z
tests/unit/hazmat/test_algebraic_intersection.py
dhermes/bezier
e6925aad702842ae3637dfac9ff0da556ef0d980
[ "Apache-2.0" ]
254
2016-11-18T02:43:26.000Z
2022-03-07T15:43:07.000Z
tests/unit/hazmat/test_algebraic_intersection.py
dhermes/bezier
e6925aad702842ae3637dfac9ff0da556ef0d980
[ "Apache-2.0" ]
35
2017-06-19T07:14:18.000Z
2022-03-13T15:54:46.000Z
# 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, software # distributed under t...
39.097927
79
0.581173
a571a5c028a43a4065cd2988e16e63222a5a4fea
596
py
Python
tests/__init__.py
sbrugman/histogrammar-python
33cb32a01c2eb1a72d0978c65850e03101548c69
[ "Apache-2.0" ]
30
2016-09-25T16:36:06.000Z
2021-07-20T09:09:09.000Z
tests/__init__.py
sbrugman/histogrammar-python
33cb32a01c2eb1a72d0978c65850e03101548c69
[ "Apache-2.0" ]
15
2016-07-26T19:41:31.000Z
2021-02-07T16:30:11.000Z
tests/__init__.py
sbrugman/histogrammar-python
33cb32a01c2eb1a72d0978c65850e03101548c69
[ "Apache-2.0" ]
8
2016-09-19T20:48:37.000Z
2021-02-07T15:00:24.000Z
#!/usr/bin/env python # Copyright 2016 DIANA-HEP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.25
74
0.758389
0efe49c272314a81ae647ea86b864cd2dc019029
22,776
py
Python
glance_docker/glance/domain/__init__.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
glance_docker/glance/domain/__init__.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
glance_docker/glance/domain/__init__.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # Copyright 2013 IBM Corp. # 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/LIC...
33.298246
79
0.594837
2cd843cd86e36e7d9c7e65a85c78193391df7a20
1,709
py
Python
app/core/migrations/0001_initial.py
cali-hotplate/recipe-app-api
946511f0362ab61dcb23d1a2a9916932e9ca94d3
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
cali-hotplate/recipe-app-api
946511f0362ab61dcb23d1a2a9916932e9ca94d3
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
cali-hotplate/recipe-app-api
946511f0362ab61dcb23d1a2a9916932e9ca94d3
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-02-02 06:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
e20780074779c8fae35a63787355f6b8f1f9e820
1,748
py
Python
Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithSlidesInPresentation/RemoveSlides.py
Aspose/Aspose.Slides-for-Java
c6afa392a708eb23941cad76e96d2fe65531c211
[ "MIT" ]
1
2021-08-12T01:17:00.000Z
2021-08-12T01:17:00.000Z
Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithSlidesInPresentation/RemoveSlides.py
Aspose/Aspose.Slides-for-Java
c6afa392a708eb23941cad76e96d2fe65531c211
[ "MIT" ]
null
null
null
Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithSlidesInPresentation/RemoveSlides.py
Aspose/Aspose.Slides-for-Java
c6afa392a708eb23941cad76e96d2fe65531c211
[ "MIT" ]
1
2021-04-08T13:55:07.000Z
2021-04-08T13:55:07.000Z
from asposeslides import Settings from com.aspose.slides import Presentation from com.aspose.slides import SaveFormat from java.io import FileOutputStream class RemoveSlides: def __init__(self): # Using Slides Collection to Remove Slide by Index self.remove_slide_by_inde...
33.615385
89
0.650458
89a03339d0be5aaeb55f0cccacf63bc9f19952f0
171
py
Python
ultimanager/teams/apps.py
UltiManager/ultimanager-api
4109ef21d187578ae978c9973e7ad11c88258b35
[ "MIT" ]
null
null
null
ultimanager/teams/apps.py
UltiManager/ultimanager-api
4109ef21d187578ae978c9973e7ad11c88258b35
[ "MIT" ]
60
2017-12-24T02:22:09.000Z
2022-02-10T08:20:13.000Z
ultimanager/teams/apps.py
UltiManager/ultimanager-api
4109ef21d187578ae978c9973e7ad11c88258b35
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class TeamsConfig(AppConfig): name = "teams" verbose_name = _("Teams")
21.375
55
0.754386
f2fcca1b15469cf1194a4936ec7b3fb2cb577a08
6,233
py
Python
lib/utils/eval_utils.py
yuminko/TRN.pytorch
f2a8a1ff59679c6af58360066512e3e0b6926880
[ "MIT" ]
1
2021-07-07T08:27:13.000Z
2021-07-07T08:27:13.000Z
lib/utils/eval_utils.py
yuminko/TRN.pytorch
f2a8a1ff59679c6af58360066512e3e0b6926880
[ "MIT" ]
null
null
null
lib/utils/eval_utils.py
yuminko/TRN.pytorch
f2a8a1ff59679c6af58360066512e3e0b6926880
[ "MIT" ]
null
null
null
import os import os.path as osp import json from collections import OrderedDict import numpy as np from sklearn.metrics import average_precision_score from sklearn.metrics import confusion_matrix import functools import sklearn __all__ = [ 'compute_result_multilabel', 'compute_result', ] def calibrated_ap(...
36.881657
119
0.577411
4b279243258729cc229956375ed4ee4ddb454010
28,842
py
Python
contrib/sign-releases.py
sgmua8/electrum-dash
f7e6059fb07994867af3eebd1cd0c9789a0615d3
[ "MIT" ]
null
null
null
contrib/sign-releases.py
sgmua8/electrum-dash
f7e6059fb07994867af3eebd1cd0c9789a0615d3
[ "MIT" ]
null
null
null
contrib/sign-releases.py
sgmua8/electrum-dash
f7e6059fb07994867af3eebd1cd0c9789a0615d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Sign releases on github, make/upload ppa to launchpad.net NOTE on ppa: To build a ppa you may need to install some more packages. On ubuntu: sudo apt-get install devscripts libssl-dev python3-dev \ debhelper python3-setuptools dh-python NOTE on apk sig...
37.800786
89
0.557
5a4b7f0cb0ca5b5f5aa1feb59cd76960872bab9a
1,253
py
Python
BST.py
mimikaan/DSA
f237452941dc4e663277b2c29686aa427e640447
[ "MIT" ]
null
null
null
BST.py
mimikaan/DSA
f237452941dc4e663277b2c29686aa427e640447
[ "MIT" ]
null
null
null
BST.py
mimikaan/DSA
f237452941dc4e663277b2c29686aa427e640447
[ "MIT" ]
null
null
null
class BinarySearchTree: def __init__(self, value, depth=1): self.value = value self.depth = depth self.left = None self.right = None def insert(self, value): if (value < self.value): if (self.left is None): self.left = BinarySearchTree(value, self.depth + 1) print(f'Tree n...
28.477273
96
0.654429
a04dad0c7ff16cdf701a92b5b78ee637d4f727bc
32,956
py
Python
f5/bigip/resource.py
yuanfm/f5-common-python
7d6588d56323e7065fec929ff00020081f9d6ade
[ "Apache-2.0" ]
null
null
null
f5/bigip/resource.py
yuanfm/f5-common-python
7d6588d56323e7065fec929ff00020081f9d6ade
[ "Apache-2.0" ]
null
null
null
f5/bigip/resource.py
yuanfm/f5-common-python
7d6588d56323e7065fec929ff00020081f9d6ade
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 F5 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
41.928753
79
0.655723
bdd1982a16b51b8c0d08895b5a26d4dd24bf507d
4,628
py
Python
code/data_providers/svhn.py
tchittesh/EAS-
b21acfc77f43db8abbda8f0e4029389b779a05fc
[ "MIT" ]
169
2017-10-16T07:22:10.000Z
2022-02-28T05:12:56.000Z
code/data_providers/svhn.py
tchittesh/EAS-
b21acfc77f43db8abbda8f0e4029389b779a05fc
[ "MIT" ]
5
2017-10-04T20:32:58.000Z
2019-10-22T11:29:37.000Z
code/data_providers/svhn.py
tchittesh/EAS-
b21acfc77f43db8abbda8f0e4029389b779a05fc
[ "MIT" ]
41
2017-10-10T04:50:21.000Z
2022-03-16T03:42:07.000Z
import tempfile import os import scipy.io import numpy as np from data_providers.base_provider import ImagesDataSet, DataProvider from data_providers.downloader import download_data_url class SVHNDataSet(ImagesDataSet): n_classes = 10 def __init__(self, images, labels, shuffle, normalization): """ Args: ...
31.27027
92
0.735955
aeb863e974cacd0ce9aacbe12cffa668f23ffa12
1,263
py
Python
apps/04_journal/you_try/program.py
dartmn9/jumpstart
9b5efa4571263a60fbd698b4c1aac3c5acca8226
[ "MIT" ]
null
null
null
apps/04_journal/you_try/program.py
dartmn9/jumpstart
9b5efa4571263a60fbd698b4c1aac3c5acca8226
[ "MIT" ]
null
null
null
apps/04_journal/you_try/program.py
dartmn9/jumpstart
9b5efa4571263a60fbd698b4c1aac3c5acca8226
[ "MIT" ]
null
null
null
import journal # from journal import load, save # from journal import * def main(): run_event_loop() def print_header(): print('------------------------') print(' JOURNAL APP') print('------------------------') print() def run_event_loop(): print('What do you want to do with your jou...
22.553571
64
0.570863
756d3f2dfa20b74ef3fc15666f64234f56e926e7
3,269
py
Python
grep.py
J0hnZMT/pygrep
18507ebb7b4e86104c80b8e9e10f391106cee4b1
[ "MIT" ]
null
null
null
grep.py
J0hnZMT/pygrep
18507ebb7b4e86104c80b8e9e10f391106cee4b1
[ "MIT" ]
null
null
null
grep.py
J0hnZMT/pygrep
18507ebb7b4e86104c80b8e9e10f391106cee4b1
[ "MIT" ]
null
null
null
""" Implementation of grep command using python script """ import os import argparse import re import glob def grep(char, files, dir_name): try: char_to_search = re.compile(r'.*{}.*'.format(char)) os.chdir(dir_name) search_files = glob.glob(files) for file in search_files: ...
34.052083
113
0.588253
2874b23a9693c4677da936c8434e3f6868ec6211
665
py
Python
gearstore/__init__.py
SpamapS/gearstore
ad2639b7de39e29370bf8a9f6db329f0999dfa12
[ "Apache-2.0" ]
null
null
null
gearstore/__init__.py
SpamapS/gearstore
ad2639b7de39e29370bf8a9f6db329f0999dfa12
[ "Apache-2.0" ]
1
2018-11-29T06:37:43.000Z
2018-11-29T06:37:43.000Z
gearstore/__init__.py
SpamapS/gearstore
ad2639b7de39e29370bf8a9f6db329f0999dfa12
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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, softw...
33.25
75
0.747368
43be0d131361fff722a8acefb1c8cdc2814722ce
483
py
Python
home/urls.py
tsriggs1/ApparelWorkshop
c5100d534e95aebf3609d5ca25cb160a169e509f
[ "BSD-3-Clause" ]
1
2017-02-24T11:23:34.000Z
2017-02-24T11:23:34.000Z
home/urls.py
tsriggs1/ApparelWorkshop
c5100d534e95aebf3609d5ca25cb160a169e509f
[ "BSD-3-Clause" ]
null
null
null
home/urls.py
tsriggs1/ApparelWorkshop
c5100d534e95aebf3609d5ca25cb160a169e509f
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from home import views urlpatterns = [ # create URLS here url(r'^$', views.IndustrialView, name='index'), url(r'^IndustrialSewing', views.IndustrialView, name='industrial_sewing'), url(r'^HomeSewing', views.HomeView, name='home_sewing'), url(r'^Materials', views.MaterialsV...
37.153846
76
0.726708
930602a5034d1aa7a3df4fcf224fcb02953281c1
9,949
py
Python
salt/modules/boto_cloudwatch_event.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
5
2018-05-01T20:51:14.000Z
2021-11-09T05:43:00.000Z
salt/modules/boto_cloudwatch_event.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-04-15T22:17:42.000Z
2016-03-22T08:46:27.000Z
salt/modules/boto_cloudwatch_event.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
7
2017-09-29T18:49:53.000Z
2021-11-09T05:42:49.000Z
# -*- coding: utf-8 -*- ''' Connection module for Amazon CloudWatch Events .. versionadded:: 2016.11.0 :configuration: This module accepts explicit credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API an...
30.425076
100
0.623882
d622de1d0f15137723bb3395415b94cff96f349f
437
py
Python
msblog/migrations/0006_auto_20180207_2139.py
designermanjeets/mscreativepixel
8fefa48296c97fc541bc6d4f9ad8fa7048d0e377
[ "Apache-2.0" ]
null
null
null
msblog/migrations/0006_auto_20180207_2139.py
designermanjeets/mscreativepixel
8fefa48296c97fc541bc6d4f9ad8fa7048d0e377
[ "Apache-2.0" ]
null
null
null
msblog/migrations/0006_auto_20180207_2139.py
designermanjeets/mscreativepixel
8fefa48296c97fc541bc6d4f9ad8fa7048d0e377
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-07 16:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msblog', '0005_auto_20180207_2135'), ] operations = [ migrations.AlterField( model_name='blogs', name='avatar', ...
23
103
0.615561
81873db331aed42aed0732af1943e91598c8e9eb
19,911
py
Python
src/jobs/job_creator.py
ZendriXXX/predict-python
fe0360b4888980421f8f91f158d6523729bfc5f7
[ "MIT" ]
null
null
null
src/jobs/job_creator.py
ZendriXXX/predict-python
fe0360b4888980421f8f91f158d6523729bfc5f7
[ "MIT" ]
null
null
null
src/jobs/job_creator.py
ZendriXXX/predict-python
fe0360b4888980421f8f91f158d6523729bfc5f7
[ "MIT" ]
null
null
null
import time from src.clustering.models import Clustering, ClusteringMethods from src.encoding.encoding_container import UP_TO from src.encoding.models import Encoding, ValueEncodings, DataEncodings from src.hyperparameter_optimization.models import HyperparameterOptimization, HyperparameterOptimizationMethods from src...
53.237968
152
0.538597
9d1366defdb87d82053cba8636f797e4fb005878
7,718
py
Python
jwql/instrument_monitors/miri_monitors/data_trending/plots/power_tab.py
cracraft/jwql
030c1663bc433465e01ad803e1578a2bc53035f4
[ "BSD-3-Clause" ]
42
2018-10-03T13:38:18.000Z
2022-03-11T12:19:32.000Z
jwql/instrument_monitors/miri_monitors/data_trending/plots/power_tab.py
cracraft/jwql
030c1663bc433465e01ad803e1578a2bc53035f4
[ "BSD-3-Clause" ]
723
2018-08-29T18:29:49.000Z
2022-03-31T21:09:20.000Z
jwql/instrument_monitors/miri_monitors/data_trending/plots/power_tab.py
cracraft/jwql
030c1663bc433465e01ad803e1578a2bc53035f4
[ "BSD-3-Clause" ]
30
2018-08-29T18:17:32.000Z
2022-03-10T19:43:39.000Z
import jwql.instrument_monitors.miri_monitors.data_trending.plots.plot_functions as pf from bokeh.plotting import figure from bokeh.models.widgets import Panel, Div from bokeh.models import ColumnDataSource, HoverTool from bokeh.layouts import column import pandas as pd from astropy.time import Time def power_ice(c...
31.120968
121
0.611687
80a45666da95bfcaf26315fbc0d1499e2ea631b3
17,479
py
Python
MeatFood_enve/Lib/site-packages/django/contrib/gis/db/models/functions.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
MeatFood_enve/Lib/site-packages/django/contrib/gis/db/models/functions.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
MeatFood_enve/Lib/site-packages/django/contrib/gis/db/models/functions.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
from decimal import Decimal from django.contrib.gis.db.models.fields import BaseSpatialField, GeometryField from django.contrib.gis.db.models.sql import AreaField, DistanceField from django.contrib.gis.geos import GEOSGeometry from django.core.exceptions import FieldError from django.db import NotSupportedError from d...
35.671429
117
0.657475
296a4adb1e0113795daf4dd1c39590318db09a25
35
py
Python
beobench/integration/__init__.py
rdnfn/beobench
c51e9a6d320e3e1db035cb298936ac4dacaca64b
[ "MIT" ]
9
2022-01-10T13:51:38.000Z
2022-03-31T15:08:23.000Z
beobench/integration/__init__.py
rdnfn/beobench
c51e9a6d320e3e1db035cb298936ac4dacaca64b
[ "MIT" ]
25
2022-01-09T16:35:43.000Z
2022-03-31T15:39:15.000Z
beobench/integration/__init__.py
rdnfn/beobench
c51e9a6d320e3e1db035cb298936ac4dacaca64b
[ "MIT" ]
1
2022-03-30T13:24:07.000Z
2022-03-30T13:24:07.000Z
"""Subpackage with integrations"""
17.5
34
0.742857
e8dcdd67268e927ca71033369639c0bb0266b093
269
py
Python
src/_slivertestproject/app/views.py
jarcoal/django-sliver
09a0835ac31f1e8e297e84c594e31fa7cc5474a5
[ "BSD-3-Clause" ]
6
2015-07-12T14:30:04.000Z
2020-05-05T08:30:30.000Z
src/_slivertestproject/app/views.py
jarcoal/django-sliver
09a0835ac31f1e8e297e84c594e31fa7cc5474a5
[ "BSD-3-Clause" ]
3
2019-11-25T19:42:53.000Z
2019-11-26T09:13:54.000Z
src/_slivertestproject/app/views.py
jarcoal/django-sliver
09a0835ac31f1e8e297e84c594e31fa7cc5474a5
[ "BSD-3-Clause" ]
2
2017-02-22T21:56:52.000Z
2017-04-17T00:30:55.000Z
from sliver.views import ModelResource, CollectionResource from sliver.mixins import JSONMixin from .models import Person class PersonCollectionResource(JSONMixin, CollectionResource): model = Person class PersonResource(JSONMixin, ModelResource): model = Person
22.416667
62
0.832714
9df1f4db8bf94981886f3c12b72adf0b7e85c152
13,292
py
Python
tests/test_smart_completion_public_schema_only.py
uptycslabs/usql
3f438f2aa6fbdb45a8dae2cb60608ab465752569
[ "BSD-3-Clause" ]
null
null
null
tests/test_smart_completion_public_schema_only.py
uptycslabs/usql
3f438f2aa6fbdb45a8dae2cb60608ab465752569
[ "BSD-3-Clause" ]
null
null
null
tests/test_smart_completion_public_schema_only.py
uptycslabs/usql
3f438f2aa6fbdb45a8dae2cb60608ab465752569
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import pytest from mock import patch from prompt_toolkit.completion import Completion from prompt_toolkit.document import Document metadata = { "users": ["id", "email", "first_name", "last_name"], "orders": ["id", "ordered_date", "status"], "select": ...
30.626728
88
0.622104
c329c195efeb12030e402aba063175d0ebb4eac5
937
py
Python
SpaDecon/utils.py
kpcoleman/SpaDecon
c0d2733713bdbf594811b57ef49fa31cb142692d
[ "MIT" ]
4
2021-10-04T20:07:44.000Z
2022-02-26T00:53:22.000Z
build/lib/SpaDecon/utils.py
kpcoleman/SpaDecon
c0d2733713bdbf594811b57ef49fa31cb142692d
[ "MIT" ]
null
null
null
build/lib/SpaDecon/utils.py
kpcoleman/SpaDecon
c0d2733713bdbf594811b57ef49fa31cb142692d
[ "MIT" ]
null
null
null
import numpy as np def find_l(p, list_l, adj,sep=0.001, tol=0.01): print('...Finding optimal l for ','p=',p, '...',sep='') p_list = [] for l in list_l: adj_exp=np.exp(-1*adj/(2*(l**2))) #print("l is ",str(l),"Percentage of total expression contributed by neighborhoods:",np.mean(np.sum(adj_e...
34.703704
122
0.531483