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
2b2e57a730c00e789d89a2eeaa6516b7ff3db6ff
626
py
Python
codershq/challenge/management/commands/endhackathon.py
haralali/CodersHQ
530c596d6879877db661396bd50d8ffa6ebba797
[ "MIT" ]
1
2022-02-03T00:57:37.000Z
2022-02-03T00:57:37.000Z
codershq/challenge/management/commands/endhackathon.py
haralali/CodersHQ
530c596d6879877db661396bd50d8ffa6ebba797
[ "MIT" ]
null
null
null
codershq/challenge/management/commands/endhackathon.py
haralali/CodersHQ
530c596d6879877db661396bd50d8ffa6ebba797
[ "MIT" ]
1
2022-02-27T16:08:16.000Z
2022-02-27T16:08:16.000Z
from django.core.management.base import BaseCommand, CommandError from django.utils import timezone from codershq.challenge.models import Challenge class Command(BaseCommand): help = "Ends challenge and updates all users" def handle(self, *args, **options): for challenge in Challenge.objects.all(): ...
32.947368
79
0.678914
8af526f22c881ac291de304a7ec4a7f2c94cac1f
2,259
py
Python
amy/workshops/tests/test_fields.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
53
2015-01-10T17:39:19.000Z
2019-06-12T17:36:34.000Z
amy/workshops/tests/test_fields.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
1,176
2015-01-02T06:32:47.000Z
2019-06-18T11:57:47.000Z
amy/workshops/tests/test_fields.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
44
2015-01-03T15:08:56.000Z
2019-06-09T05:33:08.000Z
from django.core.exceptions import ValidationError from workshops.fields import NullableGithubUsernameField, Select2TagWidget from workshops.tests.base import TestBase class TestNullableGHUsernameField(TestBase): def setUp(self): self.passing = [ "harrypotter", "hp", "...
28.2375
88
0.508632
ac7783e759f00e76dc13955c274d7800dab2272e
1,809
py
Python
tools/veyepar_pull.py
Daniel-at-github/old-data
4880146dd7e5f1eae511bd5e89e743a13f908bf3
[ "CC0-1.0" ]
1
2021-03-01T21:57:15.000Z
2021-03-01T21:57:15.000Z
tools/veyepar_pull.py
Daniel-at-github/old-data
4880146dd7e5f1eae511bd5e89e743a13f908bf3
[ "CC0-1.0" ]
null
null
null
tools/veyepar_pull.py
Daniel-at-github/old-data
4880146dd7e5f1eae511bd5e89e743a13f908bf3
[ "CC0-1.0" ]
2
2016-11-16T05:45:47.000Z
2021-03-01T21:57:27.000Z
import argparse import json import os from urllib.request import urlopen import sys sys.path.insert(0, '.') from pelican.utils import slugify from tools.constants import JSON_FORMAT_KWARGS def make_video_file(videos_dir, video_data): file_data = {} file_data['description'] = video_data['fields']['descriptio...
30.15
81
0.669431
f3896045ebddc41db44ac81ba577b5ed24fcbc9a
61,049
py
Python
src/python/WMCore/Services/Rucio/Rucio.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/Services/Rucio/Rucio.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/Services/Rucio/Rucio.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python # coding=utf-8 """ Rucio Service class developed on top of the native Rucio Client APIs providing custom output and handling as necessary for the CMS Workload Management system (and migration from PhEDEx). """ from __future__ import division, print_function, absolute_import from builtins import s...
48.145899
138
0.624171
f94d4a453edb7c23015b24bd9ea2d6352aaa568e
145
py
Python
src/env/__init__.py
fufuok/PyAgent
f04b0d05e733b9989562934f2cdf1fa7a6af947a
[ "MIT" ]
2
2021-11-19T04:10:18.000Z
2021-12-01T02:39:56.000Z
src/env/__init__.py
huyingjun/PyAgent
ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4
[ "MIT" ]
1
2021-12-22T14:12:42.000Z
2022-02-07T12:44:59.000Z
src/env/__init__.py
huyingjun/PyAgent
ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4
[ "MIT" ]
3
2021-12-04T02:50:07.000Z
2021-12-27T03:49:35.000Z
# -*- coding:utf-8 -*- """ __init__.py ~~~~~~~~ 程序内部的环境变量和常量定义 :author: Fufu, 2021/12/9 """ # 自定义的加密密钥 COMMON_KEY = '自定义的加密密钥'
12.083333
28
0.531034
97cd25f5de2dc654defaf34e91b9536f50fb97c1
7,729
py
Python
lale/lib/autogen/sparse_pca.py
gbdrt/lale
291f824a6b96f088e787979ca768f50d7758424e
[ "Apache-2.0" ]
null
null
null
lale/lib/autogen/sparse_pca.py
gbdrt/lale
291f824a6b96f088e787979ca768f50d7758424e
[ "Apache-2.0" ]
null
null
null
lale/lib/autogen/sparse_pca.py
gbdrt/lale
291f824a6b96f088e787979ca768f50d7758424e
[ "Apache-2.0" ]
null
null
null
from numpy import inf, nan from sklearn.decomposition import SparsePCA as Op from lale.docstrings import set_docstrings from lale.operators import make_operator class SparsePCAImpl: def __init__(self, **hyperparams): self._hyperparams = hyperparams self._wrapped_model = Op(**self._hyperparams) ...
39.035354
263
0.464743
fdd7ebbbee89b7dff3e67677cea4acb3c79c09f5
9,458
py
Python
docs/source/conf.py
agiza/cloud-custodian
9592d0f700970e05e89574280cfe0e1479c95228
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
agiza/cloud-custodian
9592d0f700970e05e89574280cfe0e1479c95228
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
agiza/cloud-custodian
9592d0f700970e05e89574280cfe0e1479c95228
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Cloud Custodian documentation build configuration file, created by # sphinx-quickstart on Mon Dec 21 08:34:24 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 fil...
32.613793
79
0.721717
e57ca1d4a162713efdb8a15d16ddd39228b47b2d
3,881
py
Python
fhir/resources/STU3/operationoutcome.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/STU3/operationoutcome.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/STU3/operationoutcome.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/OperationOutcome Release: STU3 Version: 3.0.2 Revision: 11917 Last updated: 2019-10-24T11:53:00+11:00 """ import sys from . import backboneelement, domainresource class OperationOutcome(domainresource.DomainResource): """ Information ...
30.801587
91
0.578459
87156175c077ab0a288c24e0d8e44ad2d61e0c4b
2,843
py
Python
reporting/PyVulnReport/report.py
anjalispatil/sample-code
a96cff364382f3db3d6539ecbabe2a1a6de2dac1
[ "MIT" ]
null
null
null
reporting/PyVulnReport/report.py
anjalispatil/sample-code
a96cff364382f3db3d6539ecbabe2a1a6de2dac1
[ "MIT" ]
null
null
null
reporting/PyVulnReport/report.py
anjalispatil/sample-code
a96cff364382f3db3d6539ecbabe2a1a6de2dac1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import getpass import argparse import json import os import requests from requests.auth import HTTPBasicAuth from jinja2 import Template class imgRequestError(Exception): pass def parse_args(): """ CLI argument handling """ desc = 'Generate an HTML report of C...
31.588889
117
0.688006
c1089736f6f41111dadce3106135dcd8f9121058
403
py
Python
project_manager/migrations/0010_taskassign_updated.py
Ashikunnabi/bug_tracker
948a5cb5d281616a9e9a9217c19cb252f008e3d4
[ "MIT" ]
null
null
null
project_manager/migrations/0010_taskassign_updated.py
Ashikunnabi/bug_tracker
948a5cb5d281616a9e9a9217c19cb252f008e3d4
[ "MIT" ]
null
null
null
project_manager/migrations/0010_taskassign_updated.py
Ashikunnabi/bug_tracker
948a5cb5d281616a9e9a9217c19cb252f008e3d4
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-20 14:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project_manager', '0009_requestforchange_updated'), ] operations = [ migrations.AddField( model_name='taskassign', n...
21.210526
61
0.615385
62318bd24d7858e3b368217fc0f4ea554eaea957
6,417
py
Python
tools/co2video.py
digital-codes/critical-sensor
bc9da2d28fbcd021d2e5f8c442d990cd02e17d77
[ "CNRI-Python" ]
null
null
null
tools/co2video.py
digital-codes/critical-sensor
bc9da2d28fbcd021d2e5f8c442d990cd02e17d77
[ "CNRI-Python" ]
null
null
null
tools/co2video.py
digital-codes/critical-sensor
bc9da2d28fbcd021d2e5f8c442d990cd02e17d77
[ "CNRI-Python" ]
null
null
null
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import math import sys import os import datetime as dt # set to true if you have the csv's saved already localData = False oldUrl = "ftp://data.iac.ethz.ch/CMIP6/input4MIPs/UoM/GHGConc/CMIP/mon/atmos/UoM-CMIP-1-1-0/GHGConc/...
35.453039
322
0.683341
797b42a1a83c64e5f230d480160ce9198ee70fdf
1,554
py
Python
setup.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
1
2019-04-11T14:51:04.000Z
2019-04-11T14:51:04.000Z
setup.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
null
null
null
setup.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages exec(open('ai2thor/_version.py').read()) VERSION = __version__ setup(name='ai2thor', version=VERSION, description='AI2 Thor framework', long_description="AI2 Thor is a lightweight AI framework that interacts with the Unity3d Game Engine.", classifi...
35.318182
109
0.592021
fadc11a7b70753ec598fe43575e3a48b4c3563c8
6,757
py
Python
Chapter17/eshadoop/lib/python3.6/site-packages/matplotlib/tests/test_quiver.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
v_env/lib/python3.7/site-packages/matplotlib/tests/test_quiver.py
buds-lab/expanded-psychrometric-chart
e7267f57584d8ba645507189ea4a8e474c67e0de
[ "MIT" ]
14
2019-05-19T04:45:23.000Z
2019-07-22T11:28:57.000Z
v_env/lib/python3.7/site-packages/matplotlib/tests/test_quiver.py
buds-lab/expanded-psychrometric-chart
e7267f57584d8ba645507189ea4a8e474c67e0de
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
import warnings import numpy as np import pytest import sys from matplotlib import pyplot as plt from matplotlib.testing.decorators import image_comparison def draw_quiver(ax, **kw): X, Y = np.meshgrid(np.arange(0, 2 * np.pi, 1), np.arange(0, 2 * np.pi, 1)) U = np.cos(X) V = np.sin(...
29.76652
78
0.573331
a88be277b5a31cdf1fa443679368f1ad1ab12d6f
63,008
py
Python
openprocurement/auctions/dgf/tests/document.py
raccoongang/openprocurement.auctions.dgf
ebc2be655de7ce6f25932e8251d10493ec92f203
[ "Apache-2.0" ]
1
2017-08-17T14:05:30.000Z
2017-08-17T14:05:30.000Z
openprocurement/auctions/dgf/tests/document.py
raccoongang/openprocurement.auctions.dgf
ebc2be655de7ce6f25932e8251d10493ec92f203
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/dgf/tests/document.py
raccoongang/openprocurement.auctions.dgf
ebc2be655de7ce6f25932e8251d10493ec92f203
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from email.header import Header from openprocurement.auctions.dgf.tests.base import BaseAuctionWebTest, test_financial_auction_data class AuctionDocumentResourceTest(BaseAuctionWebTest): docservice = False def test_not_found(self): response = self.app.get('/au...
56.357782
202
0.627031
a9de95399001dc1bc50d657814db5954952c7071
7,859
py
Python
docs/conf.py
aabdel-kader/Developers-Survey-Data-Analysis
9e28d17c88114a689b0563aaecb252d9bff951e6
[ "MIT" ]
null
null
null
docs/conf.py
aabdel-kader/Developers-Survey-Data-Analysis
9e28d17c88114a689b0563aaecb252d9bff951e6
[ "MIT" ]
null
null
null
docs/conf.py
aabdel-kader/Developers-Survey-Data-Analysis
9e28d17c88114a689b0563aaecb252d9bff951e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Developers Survey documentation build configuration file, created by # sphinx-quickstart. # # 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. # # All configuration val...
32.077551
84
0.708742
6f13e516a046f55147610bc65e85a7cdbad1d4a5
4,615
py
Python
gcp_devrel/testing/appengine.py
tmatsuo/python-repo-tools
dbc02f5ec965a6672d47a0e8963365970d96db17
[ "Apache-2.0" ]
17
2016-03-28T21:48:36.000Z
2021-10-09T14:32:39.000Z
gcp_devrel/testing/appengine.py
tmatsuo/python-repo-tools
dbc02f5ec965a6672d47a0e8963365970d96db17
[ "Apache-2.0" ]
26
2016-02-18T23:04:51.000Z
2020-04-10T20:49:12.000Z
gcp_devrel/testing/appengine.py
tmatsuo/python-repo-tools
dbc02f5ec965a6672d47a0e8963365970d96db17
[ "Apache-2.0" ]
15
2016-07-12T02:15:49.000Z
2021-03-19T11:47:03.000Z
# Copyright 2015, 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.583333
74
0.688624
926199330a0dcefa6a4d7df05f94cf3a759e33c5
22,572
py
Python
sdk/python/pulumi_azure/lighthouse/definition.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/lighthouse/definition.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/lighthouse/definition.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
46.349076
220
0.664717
6e7aeb21b9da6de7e225fce6f93538f9ed1bdd5e
416
py
Python
Courses/Codeval/Easy/Python/52-JsonMenus.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Codeval/Easy/Python/52-JsonMenus.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Codeval/Easy/Python/52-JsonMenus.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
''' https://www.codeeval.com/open_challenges/102/ ''' import sys import json def main(): with open(sys.argv[1],'r') as word_file: json_list = [] for line in word_file.readlines(): json_list.append(json.loads(line)) for item in json_list: acc = 0 for entry in item["menu"]["items"]: if entry: i...
18.909091
45
0.627404
d768256280ec2d42d1c1964d8d430ffb6e52d17c
101,505
py
Python
test/test_jit_fuser_te.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
1
2022-03-29T00:44:31.000Z
2022-03-29T00:44:31.000Z
test/test_jit_fuser_te.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
null
null
null
test/test_jit_fuser_te.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
1
2022-03-28T21:49:41.000Z
2022-03-28T21:49:41.000Z
# Owner(s): ["NNC"] import operator import os import unittest import contextlib import math import torch import torch.nn.functional as F from torch.testing import FileCheck from typing import List import warnings # these needs to be set before `common_utils` # infers `GRAPH_EXECUTOR`. # this file **requires** these s...
38.102477
123
0.543766
6083a843c986f65eeb6751a3d1df8e56df9448b5
318
py
Python
idact/squeue.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
null
null
null
idact/squeue.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
5
2019-05-11T07:07:14.000Z
2019-12-01T11:54:41.000Z
idact/squeue.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for idact-squeue. How to run:: python -m idact.squeue --help .. click:: idact.squeue:main """ import sys from idact.detail.squeue_app.main import main if __name__ == "__main__": sys.exit( main()) # pragma: no cover, pylint: disable=no-value-for-parameter
17.666667
75
0.657233
0ad201b0c0000e7824080f849065e51e67136810
2,852
py
Python
economyZone/date.py
listenzcc/data_visualize
7f0867e19e3ae88041efb24c79789b1bc4b46f40
[ "MIT" ]
null
null
null
economyZone/date.py
listenzcc/data_visualize
7f0867e19e3ae88041efb24c79789b1bc4b46f40
[ "MIT" ]
null
null
null
economyZone/date.py
listenzcc/data_visualize
7f0867e19e3ae88041efb24c79789b1bc4b46f40
[ "MIT" ]
null
null
null
# File: date.py # Aim: Date manager import calendar from datetime import datetime from dateutil.relativedelta import relativedelta from . import logger class Date(object): # Date object for stamp date string def __init__(self, date='2020-01-01', interval=relativ...
35.65
90
0.512623
861c108c31eb04d96443e356881849e7ca4712ce
11,110
py
Python
daemon/core/emane/linkmonitor.py
b00ga/core
e0842197e389f3f14c73dc5db6cc26f78e665f62
[ "BSD-2-Clause" ]
null
null
null
daemon/core/emane/linkmonitor.py
b00ga/core
e0842197e389f3f14c73dc5db6cc26f78e665f62
[ "BSD-2-Clause" ]
null
null
null
daemon/core/emane/linkmonitor.py
b00ga/core
e0842197e389f3f14c73dc5db6cc26f78e665f62
[ "BSD-2-Clause" ]
null
null
null
import logging import sched import threading import time from typing import TYPE_CHECKING, Dict, List, Tuple import netaddr from lxml import etree from core.emulator.data import LinkData from core.emulator.enumerations import LinkTypes, MessageFlags from core.nodes.network import CtrlNet try: from emane import s...
34.610592
86
0.582178
73a2d9939981250cf94d0dc2b169c94aa20bfad2
578
py
Python
packages/byfire/controlpanel/migrations/0021_auto_20200924_0637.py
rusty-eagle/ByFire
1e127c3629793b2c27b173e649488c0b3332ebb1
[ "MIT" ]
null
null
null
packages/byfire/controlpanel/migrations/0021_auto_20200924_0637.py
rusty-eagle/ByFire
1e127c3629793b2c27b173e649488c0b3332ebb1
[ "MIT" ]
null
null
null
packages/byfire/controlpanel/migrations/0021_auto_20200924_0637.py
rusty-eagle/ByFire
1e127c3629793b2c27b173e649488c0b3332ebb1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-24 06:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('controlpanel', '0020_dhcpsubnet_zone_name'), ] operations = [ migrations.AddField( model_name='system', name='time_s...
24.083333
77
0.589965
72c5c5ecb61e8a92ec2e74b8cc7ca13bb6ace817
4,535
py
Python
research/namignizer/model.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
3,326
2018-01-26T22:42:25.000Z
2022-02-16T13:16:39.000Z
research/namignizer/model.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
research/namignizer/model.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
1,474
2018-02-01T04:33:18.000Z
2022-03-08T07:02:20.000Z
# Copyright 2016 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 required by applicable law or a...
33.10219
76
0.644542
d7e6e523bcac4691ed8f0d4a38b4c7b10ad3342d
444
py
Python
app/blueprints/admin/views.py
AthelasPeru/laborapp
3267b83d8b328d34cfa58d4558c259fe6f205b5a
[ "MIT" ]
null
null
null
app/blueprints/admin/views.py
AthelasPeru/laborapp
3267b83d8b328d34cfa58d4558c259fe6f205b5a
[ "MIT" ]
null
null
null
app/blueprints/admin/views.py
AthelasPeru/laborapp
3267b83d8b328d34cfa58d4558c259fe6f205b5a
[ "MIT" ]
null
null
null
from flask_admin.contrib.sqla import ModelView class AdminUserView(ModelView): """Vista que permite realizar operaciones CRUD sobre el modelo User""" column_list = ("name", "email", "skills", "roles") class AdminRoleView(ModelView): """Vista que permite realizar operaciones CRUD sobre el modelo Role"...
21.142857
74
0.711712
b0c1a091f926fd60356ee6932be067d81e044c12
402
py
Python
hxlm/core/hxl.py
EticaAI/HXL-Data-Science-file-formats
c7c5aa56c452ac1613242ee04cc9ae66f38ec24d
[ "Unlicense" ]
3
2021-01-25T20:44:10.000Z
2021-04-19T22:47:05.000Z
hxlm/core/hxl.py
fititnt/HXL-Data-Science-file-formats
f4fe9866e53280767f9cb4c8c488ef9c8b9d33cd
[ "Unlicense" ]
24
2021-01-26T00:36:39.000Z
2021-11-13T23:59:56.000Z
hxlm/core/hxl.py
fititnt/HXL-Data-Science-file-formats
f4fe9866e53280767f9cb4c8c488ef9c8b9d33cd
[ "Unlicense" ]
1
2021-09-05T03:43:37.000Z
2021-09-05T03:43:37.000Z
"""hxlm.core.hxl See: - https://github.com/HXLStandard/libhxl-python/wiki/Data-loading - https://github.com/HXLStandard/libhxl-python/wiki/Coding-quick-start - https://github.com/HXLStandard/libhxl-python#caching >>> import hxl as HXL >>> import hxlm.core as HXLm >>> print('TODO: implement HXLm returning an file to ...
28.714286
71
0.746269
a1cd032c2e317ff02fbbc8d49c51e963d5221894
5,195
py
Python
src/pymor/gui/jupyter.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
1
2021-07-26T12:58:50.000Z
2021-07-26T12:58:50.000Z
src/pymor/gui/jupyter.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
src/pymor/gui/jupyter.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2017 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) """This module provides plotting support inside the Jupyter notebook. To use these routines you f...
38.481481
111
0.58691
e1ba0f1924132eaf490dc2d5df5051b1e64c2910
305
py
Python
fairy_note/exceptions.py
cyanife/fairy-note
3c0e887405374a2f71474d061e8002f3dbd82561
[ "MIT" ]
null
null
null
fairy_note/exceptions.py
cyanife/fairy-note
3c0e887405374a2f71474d061e8002f3dbd82561
[ "MIT" ]
null
null
null
fairy_note/exceptions.py
cyanife/fairy-note
3c0e887405374a2f71474d061e8002f3dbd82561
[ "MIT" ]
null
null
null
from fastapi.exceptions import HTTPException from starlette.requests import Request from starlette.responses import UJSONResponse async def exception_handler(request: Request, exc: HTTPException): return UJSONResponse( status_code=exc.status_code, content={"msg": exc.detail}, )
27.727273
66
0.763934
363b65b6d650d7acc5b7c6a5b47298158e354342
14,196
py
Python
final_submit.py
adityavaishampayan/ENPM_661_proj3
981486bfb40a9fcb645ac8f0b808f0b9ef883e96
[ "MIT" ]
null
null
null
final_submit.py
adityavaishampayan/ENPM_661_proj3
981486bfb40a9fcb645ac8f0b808f0b9ef883e96
[ "MIT" ]
null
null
null
final_submit.py
adityavaishampayan/ENPM_661_proj3
981486bfb40a9fcb645ac8f0b808f0b9ef883e96
[ "MIT" ]
null
null
null
#!/usr/bin/env ''' ''' MIT License Copyright (c) 2020 ADITYA VAISHAMPAYAN 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, c...
30.529032
129
0.513595
97772b9c10e246307c38eb8fe1d4b203e315dced
4,379
py
Python
contrib/seeds/generate-seeds.py
michelvankessel/payblkv1
b59617f7f2f462882dd5fdbb4f132991ab34d33e
[ "MIT" ]
19
2018-06-05T18:42:02.000Z
2020-10-31T16:18:02.000Z
contrib/seeds/generate-seeds.py
michelvankessel/payblkv1
b59617f7f2f462882dd5fdbb4f132991ab34d33e
[ "MIT" ]
10
2017-06-04T10:42:14.000Z
2018-11-02T12:31:45.000Z
contrib/seeds/generate-seeds.py
michelvankessel/payblkv1
b59617f7f2f462882dd5fdbb4f132991ab34d33e
[ "MIT" ]
18
2017-01-30T22:21:56.000Z
2019-01-29T16:23:31.000Z
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the directory tha...
31.503597
98
0.582553
45b73798baefc720fa477e2cdd71a6e21b12af2a
1,732
py
Python
snoopy/strategy/base.py
easeml/snoopy
bd087cbd512d2f1872fe156a6b0f0223a77c9419
[ "MIT" ]
null
null
null
snoopy/strategy/base.py
easeml/snoopy
bd087cbd512d2f1872fe156a6b0f0223a77c9419
[ "MIT" ]
null
null
null
snoopy/strategy/base.py
easeml/snoopy
bd087cbd512d2f1872fe156a6b0f0223a77c9419
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from dataclasses import dataclass from typing import OrderedDict from ..embedding import EmbeddingDatasetsTuple from ..nn import Arm, KNNAlgorithm, KNNProgression from ..result import Observer def _get_arm(dataset: EmbeddingDatasetsTuple, train_size: int, test_size: int, knn: KNNA...
36.851064
120
0.745381
0e6d1936529a5d2c74e29fc1de004a6836bef475
13,583
py
Python
pkg/workloads/cortex/lib/model/tree.py
lapaniku/cortex
746be852caeff2ad80fcf45dcbaaf1899163ad2e
[ "Apache-2.0" ]
null
null
null
pkg/workloads/cortex/lib/model/tree.py
lapaniku/cortex
746be852caeff2ad80fcf45dcbaaf1899163ad2e
[ "Apache-2.0" ]
null
null
null
pkg/workloads/cortex/lib/model/tree.py
lapaniku/cortex
746be852caeff2ad80fcf45dcbaaf1899163ad2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Cortex Labs, 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 wri...
36.029178
171
0.574174
892eef283e0590f2b18b869205bcb3fedff1a6c5
5,008
py
Python
vcf_adjunct_parser/utils/build_vep.py
fkbyf14/vcf_adjunct_parser
9c0f4dd9a7e3b18c92c1a0dd70b8be4991aefdec
[ "MIT" ]
42
2015-03-19T09:04:39.000Z
2022-02-02T10:38:25.000Z
vcf_adjunct_parser/utils/build_vep.py
fkbyf14/vcf_adjunct_parser
9c0f4dd9a7e3b18c92c1a0dd70b8be4991aefdec
[ "MIT" ]
14
2015-02-06T08:35:05.000Z
2017-08-17T08:27:19.000Z
vcf_adjunct_parser/utils/build_vep.py
fkbyf14/vcf_adjunct_parser
9c0f4dd9a7e3b18c92c1a0dd70b8be4991aefdec
[ "MIT" ]
12
2015-02-12T13:41:13.000Z
2021-11-09T17:23:46.000Z
from logging import getLogger def build_vep_string(vep_info, vep_columns): """ Build a vep string formatted string. Take a list with vep annotations and build a new vep string Args: vep_info (list): A list with vep annotation dictionaries vep_columns (list): A list with the ve...
37.096296
84
0.610823
22e46c5f088738f65cceef1efd9a7dee68621031
52,204
py
Python
tests/schema/test_generate_schema.py
CentryPlan/tortoise-orm
4591ac25b25b487f366664e629909af0aff2054e
[ "Apache-2.0" ]
null
null
null
tests/schema/test_generate_schema.py
CentryPlan/tortoise-orm
4591ac25b25b487f366664e629909af0aff2054e
[ "Apache-2.0" ]
1
2022-01-25T11:39:15.000Z
2022-01-25T11:39:15.000Z
tests/schema/test_generate_schema.py
CentryPlan/tortoise-orm
4591ac25b25b487f366664e629909af0aff2054e
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C0301 import re from unittest.mock import AsyncMock, patch from tortoise import Tortoise from tortoise.contrib import test from tortoise.exceptions import ConfigurationError from tortoise.utils import get_schema_sql class TestGenerateSchema(test.SimpleTestCase): async def asyncSetUp(self): ...
44.618803
134
0.66447
98d985ee4d682577da0ef09564018d8fd0a6a132
6,424
py
Python
DNAmaker.py
Rogers-Lab/lab-programs
a22041417e665833ad11632c65fdb0c8aafd5356
[ "MIT" ]
null
null
null
DNAmaker.py
Rogers-Lab/lab-programs
a22041417e665833ad11632c65fdb0c8aafd5356
[ "MIT" ]
null
null
null
DNAmaker.py
Rogers-Lab/lab-programs
a22041417e665833ad11632c65fdb0c8aafd5356
[ "MIT" ]
null
null
null
##DNAmaker automatically creates DNA strands with given properties. ##The output of this script is a sequence of bases (ex: AACTTAGTC) ##strandSize sets how many bases you want in your DNA. ##wordSize sets how many bases per word you want ##no_gc sets conditions on the g and c bases. ## 0: No restrictions ## ...
38.933333
197
0.578923
5ac35494d3c4eaf77dd55057ab49ef2da165dfc0
2,063
py
Python
python/src/tests/tasks/test_factory.py
biomage-ltd/worker
ddeaa14f7bf6405bdabbc48c671f1f2b4b2d58b0
[ "MIT" ]
11
2021-04-28T09:12:22.000Z
2021-12-19T10:09:18.000Z
python/src/tests/tasks/test_factory.py
biomage-ltd/worker
ddeaa14f7bf6405bdabbc48c671f1f2b4b2d58b0
[ "MIT" ]
68
2020-10-30T10:51:01.000Z
2021-12-13T22:29:44.000Z
python/src/tests/tasks/test_factory.py
biomage-ltd/worker
ddeaa14f7bf6405bdabbc48c671f1f2b4b2d58b0
[ "MIT" ]
1
2021-01-05T13:22:06.000Z
2021-01-05T13:22:06.000Z
import pytest from mock import Mock, patch from worker.result import Result from worker.tasks.factory import TaskFactory class TestTaskFactory: @pytest.fixture(autouse=True) def set_mock_task_factory(self): with patch("worker.tasks.factory.CountMatrix") as MockCountMatrix: instance = MockC...
33.819672
78
0.639845
23d2df549c2c2bff8ee184e8dd08fb37a420fd27
16,798
py
Python
official/nlp/data/create_pretraining_data.py
transformerzhou/models-rc2.2.0
2b564128666ae5d7d1f14e4b3e6e89c6f9df18d2
[ "Apache-2.0" ]
null
null
null
official/nlp/data/create_pretraining_data.py
transformerzhou/models-rc2.2.0
2b564128666ae5d7d1f14e4b3e6e89c6f9df18d2
[ "Apache-2.0" ]
null
null
null
official/nlp/data/create_pretraining_data.py
transformerzhou/models-rc2.2.0
2b564128666ae5d7d1f14e4b3e6e89c6f9df18d2
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.289916
80
0.679724
99e7d6077f829742626d1f3570cb1ab737ba3c05
19,502
py
Python
tests/integration/test_replicated_database/test.py
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
18
2021-05-29T01:12:33.000Z
2021-11-18T12:34:48.000Z
tests/integration/test_replicated_database/test.py
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
13
2019-06-06T09:45:53.000Z
2020-05-15T12:03:45.000Z
tests/integration/test_replicated_database/test.py
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
22
2019-06-14T10:31:51.000Z
2020-10-12T14:57:44.000Z
import time import re import pytest from helpers.cluster import ClickHouseCluster from helpers.test_tools import assert_eq_with_retry, assert_logs_contain from helpers.network import PartitionManager cluster = ClickHouseCluster(__file__) main_node = cluster.add_instance('main_node', main_configs=['configs/config.xml...
69.899642
262
0.693672
bf3d7d61de29c2c58a06acacebcfd262f919b57e
9,212
py
Python
tests/test_utilities_graph.py
rlquinn/landscaper
9328e60499b0ac8ef2a14efa3f5f76a952cd9c84
[ "Apache-2.0" ]
36
2017-11-21T16:06:32.000Z
2022-02-21T09:41:12.000Z
tests/test_utilities_graph.py
rlquinn/landscaper
9328e60499b0ac8ef2a14efa3f5f76a952cd9c84
[ "Apache-2.0" ]
4
2019-04-08T10:27:28.000Z
2019-12-10T08:41:31.000Z
tests/test_utilities_graph.py
rlquinn/landscaper
9328e60499b0ac8ef2a14efa3f5f76a952cd9c84
[ "Apache-2.0" ]
9
2017-11-28T17:28:12.000Z
2020-01-18T09:08:55.000Z
# Copyright (c) 2017, Intel Research and Development Ireland Ltd. # # 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 app...
43.45283
79
0.493704
bbfbbb682db56bf41dbcdbcbd334b44bb7ee053d
1,092
py
Python
app/fields/matrix_operations.py
zengspr/DiSPy-API
3b67dfb8d5a02d66f30bd6a6a50798271ad530ce
[ "MIT" ]
null
null
null
app/fields/matrix_operations.py
zengspr/DiSPy-API
3b67dfb8d5a02d66f30bd6a6a50798271ad530ce
[ "MIT" ]
null
null
null
app/fields/matrix_operations.py
zengspr/DiSPy-API
3b67dfb8d5a02d66f30bd6a6a50798271ad530ce
[ "MIT" ]
null
null
null
from graphene import ObjectType, Int, List, Field, Argument from graphql import GraphQLError from app.services import numpy_service import numpy as np # This variable is defined here so that it's not exposed as a field on the GraphQL type. matrix = List(List(Int)) class MatrixOperations(ObjectType): # Return type...
33.090909
91
0.763736
d1f974affee9cc927583cfac60eb3f71f8eff625
4,523
py
Python
process-language-pages/create-summary.py
MLR-au/olac-visualisation
b400e41d36fd60477c4d9c65fb2a73603b52302c
[ "Apache-2.0" ]
3
2016-01-30T05:56:12.000Z
2017-08-09T05:02:15.000Z
process-language-pages/create-summary.py
MLR-au/pdsc-olac-visualisation
b400e41d36fd60477c4d9c65fb2a73603b52302c
[ "Apache-2.0" ]
21
2016-01-08T23:57:00.000Z
2016-08-12T05:40:00.000Z
process-language-pages/create-summary.py
CoEDL/olac-visualisation-v1
79db36fb3a3bb01dc0af615fe942e5e073cbdc12
[ "Apache-2.0" ]
1
2016-06-09T06:47:54.000Z
2016-06-09T06:47:54.000Z
#!/usr/bin/env python import argparse import logging import os import os.path from lxml import html, etree import json import sys class CreateSummary: def __init__(self, languages): self.languages = languages def process(self): # delete previous summaries if any summary_file = os.path...
34.526718
118
0.533053
f302f88bb15a8d60d083ba6a482231c5326a6bac
3,456
py
Python
boards/views.py
0t3k25/board_site
fcebfdaed831bbba9c2eb149012d406b3cde2e79
[ "MIT" ]
null
null
null
boards/views.py
0t3k25/board_site
fcebfdaed831bbba9c2eb149012d406b3cde2e79
[ "MIT" ]
null
null
null
boards/views.py
0t3k25/board_site
fcebfdaed831bbba9c2eb149012d406b3cde2e79
[ "MIT" ]
null
null
null
from django.shortcuts import redirect, render, get_object_or_404 from boards.models import Comments, Themes from . import forms from django.contrib import messages from django.http import Http404 from django.core.cache import cache from django.http import JsonResponse from django.db.models import Q # 主題作成フォーム def cre...
29.538462
86
0.649306
f7bd5a8dbb688b7a4909a23d0cca886b7bd8e479
735
py
Python
Anaconda-files/Program_18b.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
106
2018-10-10T18:04:02.000Z
2022-03-11T06:32:38.000Z
Anaconda-files/Program_18b.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
null
null
null
Anaconda-files/Program_18b.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
54
2018-02-06T09:47:42.000Z
2022-03-25T15:41:43.000Z
# Programs 18d: Counting white pixels in color picture of a raccoon. # See Figure 18.2. from scipy import misc import matplotlib.pyplot as plt import numpy as np face = misc.face() fig1 = plt.figure() plt.imshow(face) width, height, _ = face.shape print('Image dimensions: {}x{}'.format(width, height)) white_pixels ...
26.25
70
0.718367
5adf86ab7fd78d72ded142236311e9e97d5a0824
200
py
Python
test.py
countywest/progressive_growing_of_points
17a7641cdf73f22e60eaf2ca378ac74e9a4d4572
[ "MIT" ]
12
2021-03-08T02:59:18.000Z
2022-02-24T04:10:22.000Z
test.py
countywest/progressive_growing_of_points
17a7641cdf73f22e60eaf2ca378ac74e9a4d4572
[ "MIT" ]
1
2021-04-23T02:07:10.000Z
2021-05-01T05:06:16.000Z
test.py
countywest/progressive_growing_of_points
17a7641cdf73f22e60eaf2ca378ac74e9a4d4572
[ "MIT" ]
1
2022-01-30T09:59:18.000Z
2022-01-30T09:59:18.000Z
from utils.args import TestArguments from utils import get_test_manager if __name__ == "__main__": config = TestArguments().prepare_config() tester = get_test_manager(config) tester.run()
28.571429
45
0.755
e427cf46a8389cb7bfd44ba0a2ba48538ae5e496
5,576
py
Python
tests/components/hyperion/__init__.py
larsvinc/core
9eb854ef0a6ddb5ecdc4dbe639bedbadab80c90d
[ "Apache-2.0" ]
3
2021-04-27T16:37:48.000Z
2022-02-23T02:47:33.000Z
tests/components/hyperion/__init__.py
larsvinc/core
9eb854ef0a6ddb5ecdc4dbe639bedbadab80c90d
[ "Apache-2.0" ]
29
2021-02-19T07:21:11.000Z
2022-03-04T06:05:06.000Z
tests/components/hyperion/__init__.py
larsvinc/core
9eb854ef0a6ddb5ecdc4dbe639bedbadab80c90d
[ "Apache-2.0" ]
1
2021-08-07T10:08:32.000Z
2021-08-07T10:08:32.000Z
"""Tests for the Hyperion component.""" from __future__ import annotations import logging from types import TracebackType from typing import Any, Dict, Optional, Type from unittest.mock import AsyncMock, Mock, patch from hyperion import const from homeassistant.components.hyperion.const import CONF_PRIORITY, DOMAIN ...
32.045977
85
0.709648
e6bcf4cae9b92020889d372e6356afb3281a9a78
832
py
Python
tests/test_settings.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
tests/test_settings.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
8
2019-05-20T19:26:01.000Z
2019-05-26T13:02:45.000Z
tests/test_settings.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
from importlib import reload from server import conf def test_default_is_invalid(): """Settings are invalid if env vars are not set""" settings = conf.Settings() is_valid, errors = settings.is_valid(raise_exception=False) assert is_valid is False def test_environment_variables(monkeypatch): """...
29.714286
67
0.668269
14a7d112a4347b1ba8f7f214949d9f84c7b6d2b0
36,788
py
Python
foursquare/__init__.py
milind-shakya-sp/foursquare
1df90777f9b86d8247e8d79e7fbe8e88c8cdd467
[ "MIT" ]
null
null
null
foursquare/__init__.py
milind-shakya-sp/foursquare
1df90777f9b86d8247e8d79e7fbe8e88c8cdd467
[ "MIT" ]
null
null
null
foursquare/__init__.py
milind-shakya-sp/foursquare
1df90777f9b86d8247e8d79e7fbe8e88c8cdd467
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # (c) 2019 Mike Lewis import logging; log = logging.getLogger(__name__) # Try to load JSON libraries in this order: # ujson -> simplejson -> json try: import ujson as json except ImportError: try: import simplejson as json except ImportError: im...
40.117775
119
0.611205
b5cb2773d007416709da816bfb8bce684f02cf12
133,691
py
Python
integrated/module_scene_props.py
Eleyvie/wreck
19d6149dc91465865918a706a17e14f5cf3c343d
[ "MIT" ]
1
2019-06-18T02:08:20.000Z
2019-06-18T02:08:20.000Z
integrated/module_scene_props.py
Eleyvie/wreck
19d6149dc91465865918a706a17e14f5cf3c343d
[ "MIT" ]
null
null
null
integrated/module_scene_props.py
Eleyvie/wreck
19d6149dc91465865918a706a17e14f5cf3c343d
[ "MIT" ]
null
null
null
from compiler import * #################################################################################################################### # Each scene prop record contains the following fields: # 1) Scene prop id: used for referencing scene props in other files. The prefix spr_ is automatically added before ea...
44.667892
233
0.62542
15a3550f7e081defd468051340a113871dc28e9d
57,677
py
Python
pymisp/mispevent.py
certbe-trey/PyMISP
73c8d8b87d259cfa3200067f3a1d9d209595c86d
[ "BSD-2-Clause" ]
null
null
null
pymisp/mispevent.py
certbe-trey/PyMISP
73c8d8b87d259cfa3200067f3a1d9d209595c86d
[ "BSD-2-Clause" ]
null
null
null
pymisp/mispevent.py
certbe-trey/PyMISP
73c8d8b87d259cfa3200067f3a1d9d209595c86d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import json import os import base64 from io import BytesIO from zipfile import ZipFile import sys import uuid from collections import defaultdict import logging from deprecated import deprecated from .abstract import AbstractMISP from .exceptions import UnknownMISPObjectTempl...
41.613997
187
0.624582
1fce2710fae6f268e9f15451be97955aa7ebf59f
50,816
py
Python
python/thunder/rdds/series.py
broxtronix/thunder
4dad77721e2c9e225f94a6a5366d51ec83ac4690
[ "Apache-2.0" ]
1
2017-02-02T19:14:42.000Z
2017-02-02T19:14:42.000Z
python/thunder/rdds/series.py
broxtronix/thunder
4dad77721e2c9e225f94a6a5366d51ec83ac4690
[ "Apache-2.0" ]
null
null
null
python/thunder/rdds/series.py
broxtronix/thunder
4dad77721e2c9e225f94a6a5366d51ec83ac4690
[ "Apache-2.0" ]
null
null
null
from numpy import ndarray, array, sum, mean, median, std, size, arange, percentile,\ asarray, maximum, minimum, zeros, corrcoef, where, true_divide, ceil,\ unique, array_equal, concatenate, squeeze, delete, ravel, logical_not, max, min from thunder.rdds.data import Data from thunder.rdds.keys import Dimensions...
39.949686
125
0.600992
6052b8ced06c346a25216617c1be9a0a9030ce44
260
py
Python
src/04_Data_Types/03_float.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
5
2021-05-29T23:30:50.000Z
2022-01-15T16:35:20.000Z
src/04_Data_Types/03_float.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
null
null
null
src/04_Data_Types/03_float.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
4
2021-03-18T17:48:06.000Z
2021-07-22T19:32:36.000Z
# Instructions: The following code example would print the data type of x, what data type would that be? x = 20.5 print(type(x)) ''' Solution: float The inexact numbers are float type. Read more here: https://www.w3schools.com/python/python_datatypes.asp '''
28.888889
105
0.75
55ac57b540fcf7b57841445810572737a11b4f05
3,635
py
Python
core/model/net.py
conghau153/mcan-vqa-master
9c7e0a10afbc5827f9935f761b002db85e7e031f
[ "Apache-2.0" ]
1
2021-06-10T07:30:48.000Z
2021-06-10T07:30:48.000Z
core/model/net.py
conghau153/mcan-vqa-master
9c7e0a10afbc5827f9935f761b002db85e7e031f
[ "Apache-2.0" ]
null
null
null
core/model/net.py
conghau153/mcan-vqa-master
9c7e0a10afbc5827f9935f761b002db85e7e031f
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------- # mcan-vqa (Deep Modular Co-Attention Networks) # Licensed under The MIT License [see LICENSE for details] # Written by Yuhao Cui https://github.com/cuiyuhao1996 # -------------------------------------------------------- from core.model.net_utils import FC, ML...
26.532847
78
0.544979
dcc64421a55190f0f07f7b4c6f36b3c546e764ef
354
py
Python
test.py
jgonsior/reef
8dc539f38b70c10922a8dedce4654e7eaf95b099
[ "Apache-2.0" ]
null
null
null
test.py
jgonsior/reef
8dc539f38b70c10922a8dedce4654e7eaf95b099
[ "Apache-2.0" ]
null
null
null
test.py
jgonsior/reef
8dc539f38b70c10922a8dedce4654e7eaf95b099
[ "Apache-2.0" ]
null
null
null
from sklearn.metrics import f1_score, accuracy_score y_true = [-1, -1, -1, 1, 1, 1] y_pred = [0, -1, -1, 0, 1, -1] y_old = [-1, -1, -1, -1, 1, 1] print("f1:", f1_score(y_true, y_pred, average='weighted')) print("ac:", accuracy_score(y_true, y_pred)) print("f1:", f1_score(y_true, y_old, average='weighted')) print("ac:...
32.181818
58
0.646893
312021dbf299022d5590a91825220fa0a82042ec
18,692
py
Python
src/orion/algo/nomad/_version.py
bouthilx/orion.algo.nomad
409cfd942fb7a4862edd0c4a21d5436099e6a907
[ "BSD-3-Clause" ]
null
null
null
src/orion/algo/nomad/_version.py
bouthilx/orion.algo.nomad
409cfd942fb7a4862edd0c4a21d5436099e6a907
[ "BSD-3-Clause" ]
null
null
null
src/orion/algo/nomad/_version.py
bouthilx/orion.algo.nomad
409cfd942fb7a4862edd0c4a21d5436099e6a907
[ "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.536122
79
0.585812
1cbd61526c2251d50a8d7dfa66b48aa748641fff
10,029
py
Python
heat/tests/clients/test_neutron_client.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
1
2018-07-04T07:59:26.000Z
2018-07-04T07:59:26.000Z
heat/tests/clients/test_neutron_client.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
heat/tests/clients/test_neutron_client.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
3
2018-07-19T17:43:37.000Z
2019-11-15T22:13:30.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
40.768293
78
0.60335
d252a8561bb895b23bdd440fb8a3e34faba4ee0f
10,494
py
Python
official/nlp/tasks/sentence_prediction.py
albertvillanova/tensorflow_models
2bde248588c8388f9d6cd4d48712ff9ca52d6288
[ "Apache-2.0" ]
1
2020-12-17T01:26:22.000Z
2020-12-17T01:26:22.000Z
official/nlp/tasks/sentence_prediction.py
Srinivasaragavan/models
72a31e9e5c06a663a8ee7ff7cc2a41e20557c9e5
[ "Apache-2.0" ]
2
2021-07-17T18:02:27.000Z
2021-07-22T13:26:17.000Z
official/nlp/tasks/sentence_prediction.py
Srinivasaragavan/models
72a31e9e5c06a663a8ee7ff7cc2a41e20557c9e5
[ "Apache-2.0" ]
2
2021-04-02T10:31:47.000Z
2021-09-18T18:40:25.000Z
# Lint as: python3 # Copyright 2020 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 ...
38.021739
80
0.697827
3f6e1e5266392a5832ff1b79be967fbf891c9a8a
5,426
py
Python
python/bin/gecko.py
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
2
2020-03-11T03:53:19.000Z
2020-10-06T03:18:32.000Z
python/bin/gecko.py
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
null
null
null
python/bin/gecko.py
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################## # The MIT License (MIT) # Copyright (c) 2014 Kevin Walchko # see LICENSE for full details ############################################## import argparse from argparse import RawTextHelpFormatter import time import socket from...
35.464052
127
0.529856
acae6e1a3edde99173ce873a786d04cf28ca1275
4,217
py
Python
.circleci/determine_changed_containers.py
NIVANorge/odm2-postgres-api
5f25dcfe9f97465f1641227b8cdbed2543255db5
[ "MIT" ]
null
null
null
.circleci/determine_changed_containers.py
NIVANorge/odm2-postgres-api
5f25dcfe9f97465f1641227b8cdbed2543255db5
[ "MIT" ]
83
2020-04-16T11:35:31.000Z
2022-03-15T13:22:33.000Z
.circleci/determine_changed_containers.py
NIVANorge/odm2-postgres-api
5f25dcfe9f97465f1641227b8cdbed2543255db5
[ "MIT" ]
null
null
null
import os import re import json import logging import subprocess from pathlib import Path GIT_ROOT_DIR = Path(__file__).parent.parent CIRCLE_CI_FILES_DIR = GIT_ROOT_DIR / "circle_ci_files" CIRCLE_CI_FILES_DIR.mkdir(parents=True, exist_ok=True) def get_changed_files(): process = subprocess.run(["git", "diff", "--...
41.343137
116
0.676784
813691d6d0b00c2234851ce276ea0d5cf13e563d
1,308
py
Python
clonest1ck-python3/8dec.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
9
2019-12-01T14:52:40.000Z
2020-12-16T14:24:19.000Z
clonest1ck-python3/8dec.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
null
null
null
clonest1ck-python3/8dec.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
51
2019-11-26T14:49:05.000Z
2021-12-01T20:53:41.000Z
def equalZero(x): return x == 0 def equalOne(x): return x == 1 def equalTwo(x): return x == 2 def countZerosMultiplyOnesAndTwos(data): zeros = len(list(filter(equalZero, data))) ones = len(list(filter(equalOne, data))) twos = len(list(filter(equalTwo, data))) return (zeros, ones * twos) ...
22.551724
63
0.625382
92903bb232ddff31cba411f7c4cfcbf61432b3a2
15,328
py
Python
samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/tests/test_deserialization.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
11,868
2018-05-12T02:58:07.000Z
2022-03-31T21:19:39.000Z
samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/tests/test_deserialization.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
9,672
2018-05-12T14:25:43.000Z
2022-03-31T23:59:30.000Z
samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/tests/test_deserialization.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
4,776
2018-05-12T12:06:08.000Z
2022-03-31T19:52:51.000Z
# coding: utf-8 # flake8: noqa """ Run the tests. $ pip install nose (optional) $ cd OpenAPIPetstore-python $ nosetests -v """ from collections import namedtuple import json import os import time import unittest import datetime import six import petstore_api from petstore_api.exceptions import ( ApiTypeError, ...
34.600451
112
0.565892
270c0dab8db43847f1f415754adac0327c049aca
30,594
py
Python
python/tvm/meta_schedule/tune.py
LEA0317/incubator-tvm
de21c8f2ef507587fdcc99b851404de5aeeb5a16
[ "Apache-2.0" ]
null
null
null
python/tvm/meta_schedule/tune.py
LEA0317/incubator-tvm
de21c8f2ef507587fdcc99b851404de5aeeb5a16
[ "Apache-2.0" ]
null
null
null
python/tvm/meta_schedule/tune.py
LEA0317/incubator-tvm
de21c8f2ef507587fdcc99b851404de5aeeb5a16
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.044674
98
0.612408
f5eb75491cf792f1926a1926c740f0d613c57013
30
py
Python
Client/App/Views/MainMenu/__init__.py
Dragon-KK/ComputerProject2021
669431f3f2d41bda822931e6fffe661c99736dfe
[ "MIT" ]
null
null
null
Client/App/Views/MainMenu/__init__.py
Dragon-KK/ComputerProject2021
669431f3f2d41bda822931e6fffe661c99736dfe
[ "MIT" ]
null
null
null
Client/App/Views/MainMenu/__init__.py
Dragon-KK/ComputerProject2021
669431f3f2d41bda822931e6fffe661c99736dfe
[ "MIT" ]
null
null
null
from .MainMenu import MainMenu
30
30
0.866667
c99a3946f2673223bb2cbfcaa0e68cc7e6d692cb
1,073
py
Python
modules/dru.py
Leonardo767/learning-to-communicate-pytorch
81e8f3ba1e9aa6112aa88b93353873bfe074d332
[ "Apache-2.0" ]
287
2018-10-25T12:28:45.000Z
2022-03-09T10:32:17.000Z
modules/dru.py
Leonardo767/learning-to-communicate-pytorch
81e8f3ba1e9aa6112aa88b93353873bfe074d332
[ "Apache-2.0" ]
2
2018-10-26T16:14:15.000Z
2021-05-10T11:32:31.000Z
modules/dru.py
Leonardo767/learning-to-communicate-pytorch
81e8f3ba1e9aa6112aa88b93353873bfe074d332
[ "Apache-2.0" ]
67
2018-10-26T08:54:32.000Z
2022-03-09T05:27:22.000Z
import numpy as np import torch class DRU: def __init__(self, sigma, comm_narrow=True, hard=False): self.sigma = sigma self.comm_narrow = comm_narrow self.hard = hard def regularize(self, m): m_reg = m + torch.randn(m.size()) * self.sigma if self.comm_narrow: m_reg = torch.sigmoid(m_reg) else: m_...
22.829787
65
0.602982
3ec992d91bb4537b60ae65c0dd6fc1b0411563e0
21,187
py
Python
setup.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
setup.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
setup.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Parts of this file were taken from the pyzmq project (https://github.com/zeromq/pyzmq) which have been permitted for use under the BSD license. Parts are from lxml (https://github.com/lxml/lxml) """ import os import sys import shutil import warnings import re # may need to work around setup...
34.904448
97
0.571247
3dccabd0cb117d4c1b4539d17518135c5da74f77
825
py
Python
galloper/database/models/ui_thresholds.py
hunkom/galloper
e5108d340c111299d7a667c0c0f12bd40a8074ea
[ "Apache-2.0" ]
1
2020-08-17T11:00:53.000Z
2020-08-17T11:00:53.000Z
galloper/database/models/ui_thresholds.py
hunkom/galloper
e5108d340c111299d7a667c0c0f12bd40a8074ea
[ "Apache-2.0" ]
23
2020-08-17T09:31:09.000Z
2022-01-04T09:32:03.000Z
galloper/database/models/ui_thresholds.py
hunkom/galloper
e5108d340c111299d7a667c0c0f12bd40a8074ea
[ "Apache-2.0" ]
14
2019-03-20T10:25:51.000Z
2021-12-20T21:46:54.000Z
from sqlalchemy import Column, Integer, String, JSON from galloper.database.abstract_base import AbstractBaseMixin from galloper.database.db_manager import Base class UIThresholds(AbstractBaseMixin, Base): __tablename__ = "ui_thresholds" id = Column(Integer, primary_key=True) name = Column(String, unique...
43.421053
62
0.758788
0b83531e17f716a94edfb918dcdcd202f6a7963e
6,811
py
Python
napari/utils/settings/_tests/test_settings.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/utils/settings/_tests/test_settings.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/utils/settings/_tests/test_settings.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
"""Tests for the settings manager. """ import pydantic import pytest from yaml import safe_dump, safe_load import napari.utils.settings._manager as _manager from napari.utils.settings._manager import ( CORE_SETTINGS, SettingsManager, _SettingsProxy, ) from napari.utils.theme import get_theme, register_the...
28.738397
76
0.711496
55f158ca90c07715a5f83161c72a8cce4468abd9
7,167
py
Python
meraki/controllers/mxvlan_ports_controller.py
bossypants22/python-sdk-test
37701d62dc18c2abb910eb790ab978913adcaf7b
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki/controllers/mxvlan_ports_controller.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki/controllers/mxvlan_ports_controller.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ from meraki.api_helper import APIHelper from meraki.configuration import Configuration from meraki.controllers.base_controller import BaseController from meraki.http.au...
39.379121
153
0.608902
cf4711def3a2b1eecad8265c6677bbe5b3dcc1c8
2,143
py
Python
regex4ocr/parser/drm_scanner.py
lonly7star/regex4ocr
a140c62e01b378ef9fc334e66eaf3450da70feed
[ "MIT" ]
19
2019-01-05T13:51:49.000Z
2022-02-07T14:46:46.000Z
regex4ocr/parser/drm_scanner.py
lonly7star/regex4ocr
a140c62e01b378ef9fc334e66eaf3450da70feed
[ "MIT" ]
2
2021-08-18T11:12:19.000Z
2021-10-31T03:39:46.000Z
regex4ocr/parser/drm_scanner.py
lonly7star/regex4ocr
a140c62e01b378ef9fc334e66eaf3450da70feed
[ "MIT" ]
9
2019-01-04T16:47:45.000Z
2022-02-07T14:46:46.000Z
""" Module to analyze the Document Regexp Model (DRM) directory in order to load the available DRMs for the document parser. """ import logging import os import re from regex4ocr.parser.validation import is_valid_drm from regex4ocr.parser.yml_parser import parse_yml logger = logging.getLogger(__name__) def has_drm_...
26.134146
80
0.661223
c82a0be3315c1262a694b1edfb3bd0e454f8869b
659
py
Python
polls/urls.py
hieu2102/Django-demo
117145ad1ebd4a1fc5e5c0fffcb8c187313cf2c9
[ "MIT" ]
null
null
null
polls/urls.py
hieu2102/Django-demo
117145ad1ebd4a1fc5e5c0fffcb8c187313cf2c9
[ "MIT" ]
null
null
null
polls/urls.py
hieu2102/Django-demo
117145ad1ebd4a1fc5e5c0fffcb8c187313cf2c9
[ "MIT" ]
null
null
null
from django.urls import path from . import views #namespace app_name = 'polls' #url list urlpatterns = [ #path('',views.index, name = 'index'), #path('details/<int:question_id>',views.detail,name = 'detail'), #path('details/<int:question_id>/result/', views.results,name = 'results'), #path('details/<i...
36.611111
83
0.658574
cb861af4b3967edb66be528da0a78f40390cec29
1,726
py
Python
tests/base.py
CornerCaseTechnologies/graphene-django-plus
124fa022858ba1c9f754cc5bff0475548abdfe23
[ "MIT" ]
null
null
null
tests/base.py
CornerCaseTechnologies/graphene-django-plus
124fa022858ba1c9f754cc5bff0475548abdfe23
[ "MIT" ]
null
null
null
tests/base.py
CornerCaseTechnologies/graphene-django-plus
124fa022858ba1c9f754cc5bff0475548abdfe23
[ "MIT" ]
null
null
null
import datetime from django.contrib.auth.models import User from graphene_django.utils.testing import GraphQLTestCase from guardian.shortcuts import assign_perm from .schema import schema from .models import ( Project, Milestone, Issue, ) class BaseTestCase(GraphQLTestCase): GRAPHQL_SCHEMA = schema ...
29.758621
64
0.560255
a628c5df28ec0b0c5c33ff575a554cf45b1cff62
2,043
py
Python
apps/sso/migrations/0001_initial.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/sso/migrations/0001_initial.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/sso/migrations/0001_initial.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2017-03-30 17:52 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import oauth2_provider.generators from oauth2_provider.validators import URIValidator class Migra...
51.075
253
0.666177
6452f968739edc42da3c9b7099fe0c7b14142753
16,447
py
Python
experiments/audio_user_trials/grid_user_trial.py
singleswitch/ticker
1e793316f2a3252d80339a69672ad81df550875d
[ "MIT" ]
null
null
null
experiments/audio_user_trials/grid_user_trial.py
singleswitch/ticker
1e793316f2a3252d80339a69672ad81df550875d
[ "MIT" ]
1
2018-11-06T09:30:23.000Z
2018-11-06T09:30:23.000Z
experiments/audio_user_trials/grid_user_trial.py
singleswitch/ticker
1e793316f2a3252d80339a69672ad81df550875d
[ "MIT" ]
1
2019-01-23T14:46:11.000Z
2019-01-23T14:46:11.000Z
from PyQt4 import QtCore, QtGui import sys, os, copy sys.path.append("../../") from grid import GridGui from utils import Utils import numpy as np import time, cPickle, shutil from ticker_widgets import InstructionsDisplay from synthetic_noise import SyntheticNoise global phrase_start, user, session, sub_session, s...
41.956633
139
0.587037
6f592b96092e8c6c8c5e8c1493d5c88ab6abb864
3,361
py
Python
tensortrade/rewards/risk_adjusted_returns.py
owodunni/tensortrade
d6d7fb12f926b3c451d7e200cb693d750a35f95a
[ "Apache-2.0" ]
3
2020-05-29T23:40:58.000Z
2021-05-02T06:54:36.000Z
tensortrade/rewards/risk_adjusted_returns.py
owodunni/tensortrade
d6d7fb12f926b3c451d7e200cb693d750a35f95a
[ "Apache-2.0" ]
null
null
null
tensortrade/rewards/risk_adjusted_returns.py
owodunni/tensortrade
d6d7fb12f926b3c451d7e200cb693d750a35f95a
[ "Apache-2.0" ]
2
2020-07-07T16:30:22.000Z
2020-10-05T06:05:51.000Z
# Copyright 2019 The TensorTrade 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...
41.493827
138
0.681345
bdbf8189e2bf541d3a09bb1b414cfdb031e8ccc3
1,315
py
Python
scripts/prob_bedpe_to_bedgraph.py
hepcat72/lumpy-sv
6df60a04fd12049e7d66d68d283ef5d1d811fe06
[ "MIT" ]
1
2020-12-07T15:23:16.000Z
2020-12-07T15:23:16.000Z
scripts/prob_bedpe_to_bedgraph.py
yahan9416/lumpy-sv
8f93887b12026142f993dbfd72615a6d3372cd34
[ "MIT" ]
null
null
null
scripts/prob_bedpe_to_bedgraph.py
yahan9416/lumpy-sv
8f93887b12026142f993dbfd72615a6d3372cd34
[ "MIT" ]
1
2022-01-05T08:55:47.000Z
2022-01-05T08:55:47.000Z
#!/usr/bin/env python import sys import numpy as np from optparse import OptionParser parser = OptionParser() parser.add_option("-i", "--bedpe", dest="bedpe", help="BEDPE file") parser.add_option("-n", "--name", default="LUMPY BedGraph", dest="name", help="Name") (options, args) = pars...
19.338235
56
0.46616
6d429e0d9bb8b7ee6b3a222d79e9ef1e7108c1c8
493
py
Python
Python-Programs/selection_sort.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
71
2021-09-30T11:25:12.000Z
2021-10-03T11:33:22.000Z
Python-Programs/selection_sort.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
186
2021-09-30T12:25:16.000Z
2021-10-03T13:45:04.000Z
Python-Programs/selection_sort.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
385
2021-09-30T11:34:23.000Z
2021-10-03T13:41:00.000Z
def selection_sort(items_list): n = len(items_list) for i in range(n - 1): min_value_index = i for j in range(i + 1, n): if items_list[j] < items_list[min_value_index]: min_value_index = j if min_value_index != i: temp = items_list[i] ...
23.47619
59
0.584178
f4cf3cfc8ad9a6159fe62b075a610c0dfca1c07b
1,855
py
Python
homework1/rungreedygridnavigator4.py
markriedl/gaige
e4984571ae368195b6bc296e69ed707a86b88da3
[ "MIT" ]
100
2018-11-26T17:04:50.000Z
2022-03-26T10:16:23.000Z
homework1/rungreedygridnavigator4.py
markriedl/gaige
e4984571ae368195b6bc296e69ed707a86b88da3
[ "MIT" ]
null
null
null
homework1/rungreedygridnavigator4.py
markriedl/gaige
e4984571ae368195b6bc296e69ed707a86b88da3
[ "MIT" ]
9
2018-12-12T01:10:41.000Z
2020-07-04T18:20:04.000Z
''' * Copyright (c) 2014, 2015 Entertainment Intelligence Lab, Georgia Institute of Technology. * Originally developed by Mark Riedl. * Last edited by Mark Riedl 05/2015 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
36.372549
93
0.681941
cce9e97acb1acbd8ecb433ec9848f53590722ac5
621
py
Python
Itunes/trunk/appscript_3x/sample/appscript/iCal_calendar_to_tab_delimited_table.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
1
2020-09-02T10:41:49.000Z
2020-09-02T10:41:49.000Z
Itunes/trunk/appscript_3x/sample/appscript/iCal_calendar_to_tab_delimited_table.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
null
null
null
Itunes/trunk/appscript_3x/sample/appscript/iCal_calendar_to_tab_delimited_table.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Outputs an iCal calendar to tab-delimited table listing start and end times, # summary and description for each event. from appscript import * calendarname = 'US Holidays' ev = app('iCal').calendars[calendarname].events events = zip( ev.start_date.get(), ev.end_date.get(), ...
28.227273
78
0.642512
3a55c3735d9aeacaa54dde7c3df6ee2671b665b5
3,985
py
Python
test/test_scheduled_plan_api.py
gustavs408650/looker_sdk_30
8b52449f216b2cb3b84f09e2856bcea1ed4a2b0c
[ "MIT" ]
null
null
null
test/test_scheduled_plan_api.py
gustavs408650/looker_sdk_30
8b52449f216b2cb3b84f09e2856bcea1ed4a2b0c
[ "MIT" ]
null
null
null
test/test_scheduled_plan_api.py
gustavs408650/looker_sdk_30
8b52449f216b2cb3b84f09e2856bcea1ed4a2b0c
[ "MIT" ]
1
2019-11-12T10:05:51.000Z
2019-11-12T10:05:51.000Z
# coding: utf-8 """ Looker API 3.0 Reference ### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token....
37.952381
1,639
0.704391
36357d3441294b251dd41461b846df6910198bfb
139
py
Python
test/test_Pass.py
rimvaliulin/PASS
66744a0449e4541772e0330147cc2b1e49bed341
[ "BSD-3-Clause" ]
1
2020-07-04T04:34:20.000Z
2020-07-04T04:34:20.000Z
test/test_Pass.py
rimvaliulin/PASS
66744a0449e4541772e0330147cc2b1e49bed341
[ "BSD-3-Clause" ]
null
null
null
test/test_Pass.py
rimvaliulin/PASS
66744a0449e4541772e0330147cc2b1e49bed341
[ "BSD-3-Clause" ]
null
null
null
import unittest from test_base import TestBase from test_units import TestUnits if __name__ == '__main__': unittest.main(verbosity=2)
19.857143
32
0.791367
5a0f201d48545d00c17832daf34b8e4ef21d86b5
4,882
py
Python
psslib/defaultpssoutputformatter.py
bunyk/pss
d903f187b69ea2282b79b730454a041dd0c5f007
[ "Unlicense" ]
null
null
null
psslib/defaultpssoutputformatter.py
bunyk/pss
d903f187b69ea2282b79b730454a041dd0c5f007
[ "Unlicense" ]
null
null
null
psslib/defaultpssoutputformatter.py
bunyk/pss
d903f187b69ea2282b79b730454a041dd0c5f007
[ "Unlicense" ]
null
null
null
#------------------------------------------------------------------------------- # pss: outputformatter.py # # DefaultPssOutputFormatter - the default output formatter used by pss. # # Eli Bendersky (eliben@gmail.com) # This code is in the public domain #-----------------------------------------------------------------...
37.844961
90
0.619009
29d1adea96ccceb5b7b29570ee1b0fe3cc80fa43
514
py
Python
eva-accession-release-automation/setup.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
3
2018-02-28T17:14:53.000Z
2020-03-17T17:19:45.000Z
eva-accession-release-automation/setup.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
52
2018-03-29T15:44:23.000Z
2022-02-16T00:54:28.000Z
eva-accession-release-automation/setup.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
15
2018-03-02T13:34:19.000Z
2021-06-22T15:54:59.000Z
import os from setuptools import find_packages, setup def get_requires(): requires = [] with open(os.path.join(os.path.dirname(__file__), "run_release_in_embassy", "requirements.txt"), "rt") as req_file: for line in req_file: requires.append(line.rstrip()) return requires setup(name=...
25.7
119
0.68677
40e8874d221c5b4226e7bc7053315dcea9f96122
165
py
Python
gym-ADI/gym_ADI/__init__.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
1
2021-12-17T17:16:52.000Z
2021-12-17T17:16:52.000Z
gym-ADI/gym_ADI/__init__.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
null
null
null
gym-ADI/gym_ADI/__init__.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
null
null
null
import logging from gym.envs.registration import register logger = logging.getLogger(__name__) register( id='ADI-v0', entry_point='gym_ADI.envs:ADIEnv' )
15
42
0.745455
4cd2cd6453b06069082cb4c0ad13ef85d18079d6
3,300
py
Python
tests/gmprocess/metrics/imt/fas_arithmetic_mean_test.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
tests/gmprocess/metrics/imt/fas_arithmetic_mean_test.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
tests/gmprocess/metrics/imt/fas_arithmetic_mean_test.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # stdlib imports import os.path import re # third party imports import numpy as np import pandas as pd import pkg_resources # Local imports from gmprocess.metrics.station_summary import StationSummary from gmprocess.core.stationstream import StationStream from gmprocess....
33
82
0.577273
66b13291ccea07de63e6f52426eab2d9f97c87f8
2,032
py
Python
fiowebviewer/alembic/data/env.py
rclsilver/fiowebviewer
986b9f1b680a71e39be2dd95f1c00479b68ead1e
[ "BSD-3-Clause" ]
4
2020-03-20T14:00:06.000Z
2021-01-13T09:16:10.000Z
fiowebviewer/alembic/data/env.py
rclsilver/fiowebviewer
986b9f1b680a71e39be2dd95f1c00479b68ead1e
[ "BSD-3-Clause" ]
2
2020-12-11T20:14:10.000Z
2021-02-08T11:26:13.000Z
fiowebviewer/alembic/data/env.py
rclsilver/fiowebviewer
986b9f1b680a71e39be2dd95f1c00479b68ead1e
[ "BSD-3-Clause" ]
4
2020-10-19T21:06:58.000Z
2021-02-15T10:01:05.000Z
from __future__ import ( with_statement, ) from logging.config import ( fileConfig, ) from alembic import ( context, ) from sqlalchemy import ( engine_from_config, pool, ) # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.conf...
24.780488
69
0.710138
0017a1a986b053c23a9fd5603bf887953e9091ff
69
py
Python
ts/utils/__init__.py
takp/serve
85dbef426688c5d0fe2a47fc56cad6a79b179718
[ "Apache-2.0" ]
1
2021-06-23T21:11:00.000Z
2021-06-23T21:11:00.000Z
ts/utils/__init__.py
takp/serve
85dbef426688c5d0fe2a47fc56cad6a79b179718
[ "Apache-2.0" ]
null
null
null
ts/utils/__init__.py
takp/serve
85dbef426688c5d0fe2a47fc56cad6a79b179718
[ "Apache-2.0" ]
1
2020-05-19T17:22:44.000Z
2020-05-19T17:22:44.000Z
""" Util files for TorchServe """ from . import timeit_decorator
7.666667
30
0.695652
efbe7229351e3c3db624a84785d956440a6ef221
1,563
py
Python
tests/test_business_admin.py
shimoku-tech/shimoku-api-python
de26e7d80631647e68794277b15397403336f252
[ "MIT" ]
4
2021-12-23T15:51:21.000Z
2022-01-25T08:55:31.000Z
tests/test_business_admin.py
shimoku-tech/shimoku-api-python
de26e7d80631647e68794277b15397403336f252
[ "MIT" ]
null
null
null
tests/test_business_admin.py
shimoku-tech/shimoku-api-python
de26e7d80631647e68794277b15397403336f252
[ "MIT" ]
1
2022-03-02T01:13:04.000Z
2022-03-02T01:13:04.000Z
from os import getenv import datetime as dt import shimoku_api_python as shimoku # Environment variables (credentials): api_key: str = getenv('API_TOKEN') universe_id: str = getenv('UNIVERSE_ID') business_id: str = getenv('BUSINESS_ID') environment: str = getenv('ENVIRONMENT') config = { 'access_token': api_key...
19.5375
52
0.564939
deb039b791ed71607787c0d4ffc9f5bb4edef521
930
py
Python
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
from collections import Counter class Solution: def isNStraightHand(self, hand: List[int], W: int) -> bool: n = len(hand) groups = 0 if n == 0 or n % W != 0: return False groups_num = n // W c = Counter(hand) keys = list(c.keys()) keys.sort() ...
31
63
0.410753
2d137b80e0fe212dc039a689392824e5e162555e
13,469
py
Python
cryptoapis/model/inline_response40032.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/inline_response40032.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/inline_response40032.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
47.259649
484
0.599896
64237a6241964b3c5f91c1bbc7e0b2cd7b7d48e4
180
py
Python
BestStore/Orders/urls.py
yamalik42/BestStore
6ee5e01b4e0c4fa3b86ebf49017c6e5e0b2f9c8f
[ "MIT" ]
null
null
null
BestStore/Orders/urls.py
yamalik42/BestStore
6ee5e01b4e0c4fa3b86ebf49017c6e5e0b2f9c8f
[ "MIT" ]
null
null
null
BestStore/Orders/urls.py
yamalik42/BestStore
6ee5e01b4e0c4fa3b86ebf49017c6e5e0b2f9c8f
[ "MIT" ]
null
null
null
from django.urls import path from .views import checkout, orders urlpatterns = [ path('checkout/', checkout, name="checkout"), path('orders/', orders, name='orders'), ]
18
49
0.677778
bdd68e83b9c2a406f95981b8e328c96eb7a616f5
3,364
py
Python
memsource_cli/models/id_reference.py
unofficial-memsource/memsource-cli-client
a6639506b74e95476da87f4375953448b76ea90c
[ "Apache-2.0" ]
16
2019-09-25T00:20:38.000Z
2021-05-04T05:56:10.000Z
memsource_cli/models/id_reference.py
zerodayz/memsource-cli-client
c2574f1467539a49e6637c874e88d75c7ef789b3
[ "Apache-2.0" ]
26
2019-09-30T14:00:03.000Z
2021-05-12T11:15:18.000Z
memsource_cli/models/id_reference.py
zerodayz/memsource-cli-client
c2574f1467539a49e6637c874e88d75c7ef789b3
[ "Apache-2.0" ]
1
2021-05-24T16:19:14.000Z
2021-05-24T16:19:14.000Z
# coding: utf-8 """ Memsource REST API Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis...
28.752137
421
0.562128
38775f4d297a953ad9c7f57b69033d657822d231
6,464
py
Python
emcee/tests/unit/test_sampler.py
Christopher-Bradshaw/emcee
d2047e867afc8a2b0cce9eb3af4a56b3017aaba9
[ "MIT" ]
null
null
null
emcee/tests/unit/test_sampler.py
Christopher-Bradshaw/emcee
d2047e867afc8a2b0cce9eb3af4a56b3017aaba9
[ "MIT" ]
null
null
null
emcee/tests/unit/test_sampler.py
Christopher-Bradshaw/emcee
d2047e867afc8a2b0cce9eb3af4a56b3017aaba9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function import pickle from itertools import product import pytest import numpy as np from emcee import moves, backends, EnsembleSampler __all__ = ["test_shapes", "test_errors", "test_thin", "test_vectorize"] all_backends = backends.get_test_backends(...
34.566845
77
0.622679
fbcfd682dc8596fdd649914ed4c7a127a8319bad
6,219
py
Python
tests/many_to_one_null/tests.py
indevgr/django
0247c9b08f8da4a2d93b9cede6c615011552b55a
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-02-11T07:07:16.000Z
2017-02-11T07:07:16.000Z
tests/many_to_one_null/tests.py
indevgr/django
0247c9b08f8da4a2d93b9cede6c615011552b55a
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/many_to_one_null/tests.py
indevgr/django
0247c9b08f8da4a2d93b9cede6c615011552b55a
[ "PSF-2.0", "BSD-3-Clause" ]
2
2018-03-30T04:24:48.000Z
2021-05-09T12:39:09.000Z
from __future__ import unicode_literals from django.test import TestCase from .models import Article, Car, Driver, Reporter class ManyToOneNullTests(TestCase): def setUp(self): # Create a Reporter. self.r = Reporter(name='John Smith') self.r.save() # Create an Article. se...
44.741007
109
0.645441
f6a079d49cab2ba9974ac134cbf2a651dc2e1d52
5,718
py
Python
docassemble_base/setup.py
patrickr81/docassemble
651653f6d3ab4c4c95d1defbc547ab8e15e460cc
[ "MIT" ]
null
null
null
docassemble_base/setup.py
patrickr81/docassemble
651653f6d3ab4c4c95d1defbc547ab8e15e460cc
[ "MIT" ]
6
2021-02-08T20:44:14.000Z
2022-01-13T02:42:41.000Z
docassemble_base/setup.py
mkrejpsky/docassemble.pirati.cz
ffce141cad187aa96f477aa42877c5ad185a02e4
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages from fnmatch import fnmatchcase from distutils.util import convert_path def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() standard_exclude = ('*.py', '*.pyc', '*~', '.*', '*.bak', '*.swp*') standard_exclude_director...
29.626943
135
0.521861
6bb50e77c3e5792a1bdb8fb979d9d2e9f3f2b6fa
13,010
py
Python
working/runs/2019_12_19a/main_analysis.py
samuelgarcia/spikeforest2
96150c372ef6a6c99a401a9ed8e341b48f14994b
[ "Apache-2.0" ]
null
null
null
working/runs/2019_12_19a/main_analysis.py
samuelgarcia/spikeforest2
96150c372ef6a6c99a401a9ed8e341b48f14994b
[ "Apache-2.0" ]
null
null
null
working/runs/2019_12_19a/main_analysis.py
samuelgarcia/spikeforest2
96150c372ef6a6c99a401a9ed8e341b48f14994b
[ "Apache-2.0" ]
1
2020-01-15T14:52:57.000Z
2020-01-15T14:52:57.000Z
#!/usr/bin/env python import argparse import json from spikeforest2_utils import aggregate_sorting_results import numpy as np from typing import List, Union, Dict import kachery as ka import hither def main(): from spikeforest2 import sorters from spikeforest2 import processing parser = argparse.Argument...
45.649123
193
0.592698
2b90804ee743d25b8fdd085b0de2a8985168e838
4,933
py
Python
hidrocomp/graphics/polar.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
4
2020-05-14T20:03:49.000Z
2020-05-22T19:56:43.000Z
hidrocomp/graphics/polar.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
19
2019-06-27T18:12:27.000Z
2020-04-28T13:28:03.000Z
hidrocomp/graphics/polar.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
null
null
null
import plotly.graph_objs as go import pandas as pd import colorlover as cl class Polar(object): def __init__(self, df_events): self.df_events = df_events def year_polar(self): date_julian = list(map(int, pd.DatetimeIndex(self.df_events.index.values).strftime("%j"))) date_julian_polar...
36.272059
115
0.481451
5c509bd573bb15e1c70b9d36912eb8507d07496d
49,193
py
Python
discord/channel.py
FMKaiba/discord.py
304b2704e1ceb81e8acdea8af2cd65ed64cd5d1d
[ "MIT" ]
null
null
null
discord/channel.py
FMKaiba/discord.py
304b2704e1ceb81e8acdea8af2cd65ed64cd5d1d
[ "MIT" ]
null
null
null
discord/channel.py
FMKaiba/discord.py
304b2704e1ceb81e8acdea8af2cd65ed64cd5d1d
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
32.993293
122
0.599923
437810d21b8f1928723d77aa0b43f56078f18076
5,187
py
Python
src/proposals/tests/views/test_create.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
46
2018-09-14T15:35:21.000Z
2021-10-03T09:36:39.000Z
src/proposals/tests/views/test_create.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
473
2018-12-01T13:01:48.000Z
2022-03-30T07:10:42.000Z
src/proposals/tests/views/test_create.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
91
2018-07-26T02:38:59.000Z
2022-01-16T02:38:31.000Z
from django.contrib import messages from proposals.models import TalkProposal, TutorialProposal from core.utils import set_registry @set_registry(**{'proposals.creatable': False}) def test_talk_proposal_create_unavailable(user_client): response = user_client.get('/en-us/proposals/talk/submit/') assert respon...
35.772414
83
0.69732
f8d6674d03086ad70c2d424f9d7d21bd433591d0
1,547
py
Python
server/main.py
loudest/Videostream-Face-Biometrics
44c297c59bf14cd0f9a59c68f5718718e14b0c6e
[ "MIT" ]
2
2017-07-13T13:13:33.000Z
2020-03-27T02:06:56.000Z
server/main.py
loudest/Videostream-Face-Biometrics
44c297c59bf14cd0f9a59c68f5718718e14b0c6e
[ "MIT" ]
null
null
null
server/main.py
loudest/Videostream-Face-Biometrics
44c297c59bf14cd0f9a59c68f5718718e14b0c6e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Project: Video Streaming with Flask # Author: Log0 <im [dot] ckieric [at] gmail [dot] com> # Date: 2014/12/21 # Website: http://www.chioka.in/ # Description: # Modified to support streaming out with webcams, and not just raw JPEGs. # Most of the code credits to Miguel Grinberg, except that I m...
28.127273
88
0.681965
83c1fcf6572510f45030884cc26f536909b79dc1
219
py
Python
contrib/wallettools/walletchangepass.py
scificrypto/BottleCapsPlus
ea006ed99390a2cd3694bd9fd1357b0ab4a7c5e1
[ "MIT" ]
2
2018-01-10T12:09:52.000Z
2018-10-07T20:13:44.000Z
contrib/wallettools/walletchangepass.py
scificrypto/BottleCapsPlus
ea006ed99390a2cd3694bd9fd1357b0ab4a7c5e1
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
scificrypto/BottleCapsPlus
ea006ed99390a2cd3694bd9fd1357b0ab4a7c5e1
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:7702") pwd = raw_input("Enter old wallet passphrase: ") pwd2 = raw_input("Enter new wallet passphrase: ") access.walletpassphrasechange(pwd, pwd2)
43.8
49
0.771689
338c4cea1d8e18f1a61ffbd45e988c4a4e42c8b5
267
py
Python
favico/__init__.py
romnn/favico
7560197d1200244cc257aa1ef696c92c08c034f0
[ "MIT" ]
null
null
null
favico/__init__.py
romnn/favico
7560197d1200244cc257aa1ef696c92c08c034f0
[ "MIT" ]
null
null
null
favico/__init__.py
romnn/favico
7560197d1200244cc257aa1ef696c92c08c034f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for favico.""" from favico.favico import generate_from_color, generate_from_image __author__ = """romnn""" __email__ = "contact@romnn.com" __version__ = "0.1.8" __all__ = ["generate_from_image", "generate_from_color"]
22.25
66
0.719101