hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796c58c4abca9a3ddd6810df584fcdecfb613f90
304
py
Python
jrnl/__init__.py
gregorybodnar/jrnl
1283157d569dfcdc6e536d846bf3abe6e78a794c
[ "MIT" ]
null
null
null
jrnl/__init__.py
gregorybodnar/jrnl
1283157d569dfcdc6e536d846bf3abe6e78a794c
[ "MIT" ]
null
null
null
jrnl/__init__.py
gregorybodnar/jrnl
1283157d569dfcdc6e536d846bf3abe6e78a794c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ jrnl is a simple journal application for your command line. """ from __future__ import absolute_import __title__ = 'jrnl' __version__ = '2.0.0-rc1' __author__ = 'Manuel Ebert' __license__ = 'MIT License' __copyright__ = 'Copyright 2013 - 2015 Manuel Ebert'
20.266667
59
0.736842
796c5bf1dd91f3196a5ef8f5ca3b246345acd926
19,559
py
Python
mass_circular_weighing/routine_classes/results_summary_LaTeX.py
MSLNZ/Mass-Circular-Weighing
f144158b9e2337d7e9446326d6927e1dd606ed38
[ "MIT" ]
1
2020-02-19T09:10:43.000Z
2020-02-19T09:10:43.000Z
mass_circular_weighing/routine_classes/results_summary_LaTeX.py
MSLNZ/Mass-Circular-Weighing
f144158b9e2337d7e9446326d6927e1dd606ed38
[ "MIT" ]
null
null
null
mass_circular_weighing/routine_classes/results_summary_LaTeX.py
MSLNZ/Mass-Circular-Weighing
f144158b9e2337d7e9446326d6927e1dd606ed38
[ "MIT" ]
null
null
null
""" Results summary in LaTeX format Called from routines.report_results.py """ import os import xlwt from tabulate import tabulate from msl.io import read from ..constants import IN_DEGREES_C, MU_STR from ..log import log def greg_format(number): try: before, after = '{:.9f}'.format(number).split('.') ...
39.997955
158
0.509995
796c5c9a424e0b2269beede7a72bc564c483ce95
24,077
py
Python
lib/kb_hmmer/kb_hmmerServer.py
jungbluth/kb_hmmer
6da60e58d621d568a519b83b2810aa8fc5ba5790
[ "MIT" ]
null
null
null
lib/kb_hmmer/kb_hmmerServer.py
jungbluth/kb_hmmer
6da60e58d621d568a519b83b2810aa8fc5ba5790
[ "MIT" ]
null
null
null
lib/kb_hmmer/kb_hmmerServer.py
jungbluth/kb_hmmer
6da60e58d621d568a519b83b2810aa8fc5ba5790
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import json import os import random as _random import sys import traceback from getopt import getopt, GetoptError from multiprocessing import Process from os import environ from wsgiref.simple_server import make_server import requests as _requests from json...
37.270898
151
0.544503
796c5cb630728412b74c7b646940d18cfcfcb198
1,859
py
Python
web/web/domain/decorators.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
web/web/domain/decorators.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
web/web/domain/decorators.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
# web/domain/decorators.py from functools import wraps from flask import abort, jsonify, request from jwt import ExpiredSignatureError, InvalidTokenError from marshmallow import ValidationError from sqlalchemy.orm.exc import NoResultFound from web.domain.helpers import get_authorization_from_request_headers from web....
29.507937
78
0.67886
796c5cba50777abb5e84ac6a12343138a300bc51
3,183
py
Python
mask_genome_variants.py
QGouil/nanopore-scripts
4723bb247aec9acc80828f16ea8eb8ad85a1f0e6
[ "MIT" ]
null
null
null
mask_genome_variants.py
QGouil/nanopore-scripts
4723bb247aec9acc80828f16ea8eb8ad85a1f0e6
[ "MIT" ]
null
null
null
mask_genome_variants.py
QGouil/nanopore-scripts
4723bb247aec9acc80828f16ea8eb8ad85a1f0e6
[ "MIT" ]
null
null
null
# Usage: python mask_genome_variants.py reference.fa reference.masked.fa variants.vcf from __future__ import print_function from Bio import SeqIO from Bio import Seq import sys import csv import argparse def load_vcf(handle): header = next(handle) while header.startswith("##"): header =...
27.921053
174
0.648759
796c5cf9f3151beb03fd7f509ab9e23a4027ebdc
7,587
py
Python
venv/Lib/site-packages/plotnine/tests/conftest.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
venv/Lib/site-packages/plotnine/tests/conftest.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
venv/Lib/site-packages/plotnine/tests/conftest.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
import os import warnings import inspect import shutil import locale import types from copy import deepcopy import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.testing.compare import compare_images from plotnine import ggplot, theme TOLERANCE = 2 # Default tolerance for the tests DPI ...
29.870079
78
0.641756
796c5d0550e701024576a19c5d43d7bde86e7be1
15,881
py
Python
nautobot/utilities/templatetags/helpers.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
384
2021-02-24T01:40:40.000Z
2022-03-30T10:30:59.000Z
nautobot/utilities/templatetags/helpers.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
1,067
2021-02-24T00:58:08.000Z
2022-03-31T23:38:23.000Z
nautobot/utilities/templatetags/helpers.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
128
2021-02-24T02:45:16.000Z
2022-03-20T18:48:36.000Z
import datetime import json import re import yaml from django import template from django.conf import settings from django.templatetags.static import StaticNode from django.urls import NoReverseMatch, reverse from django.utils.html import strip_tags from django.utils.safestring import mark_safe from markdown import ma...
27.959507
133
0.660601
796c5d52a0965b1cb9dd32329aa401981943c54b
3,623
py
Python
mysite/settings.py
awesometime/mysite_login_system
fd51a893ef66b224bf234fb2340946e133ff9c44
[ "Apache-2.0" ]
null
null
null
mysite/settings.py
awesometime/mysite_login_system
fd51a893ef66b224bf234fb2340946e133ff9c44
[ "Apache-2.0" ]
null
null
null
mysite/settings.py
awesometime/mysite_login_system
fd51a893ef66b224bf234fb2340946e133ff9c44
[ "Apache-2.0" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
25.335664
91
0.692244
796c5e14eaca244f9f34153a29da8f60b534f320
3,213
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/mongo_db_collection_dataset.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/mongo_db_collection_dataset.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/mongo_db_collection_dataset.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.418919
94
0.65235
796c5f7e4c821d5ba46dcf2d11ca897602005846
620
py
Python
majiq/psi/count_certain_es.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
1
2021-05-13T15:30:39.000Z
2021-05-13T15:30:39.000Z
majiq/psi/count_certain_es.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
majiq/psi/count_certain_es.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
from collections import defaultdict def convert(str_bool): return str_bool == 'True' es_lines = [] d = defaultdict(lambda: 0) with open('all.psi.tsv') as f: for i, line in enumerate(f): if i == 0: continue geneid, lsvid, lsvtype, epsi, stdev, a5ss, a3ss, es, njunc, nexon, juncoord, ircoord = ...
28.181818
111
0.608065
796c5f85a1bc8105662a2c4f69189809f55ca15c
9,825
py
Python
app/recipe/test/test_recipe_api.py
daryabsb/recipe-app-api
c41f22ebe5856054a0f3b03864ac07ce43a9c549
[ "MIT" ]
null
null
null
app/recipe/test/test_recipe_api.py
daryabsb/recipe-app-api
c41f22ebe5856054a0f3b03864ac07ce43a9c549
[ "MIT" ]
null
null
null
app/recipe/test/test_recipe_api.py
daryabsb/recipe-app-api
c41f22ebe5856054a0f3b03864ac07ce43a9c549
[ "MIT" ]
null
null
null
import tempfile import os from PIL import Image from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Recipe, Tag, Ingredient from recipe.serializers import R...
33.418367
78
0.648346
796c5fea04cd59ef697a03263ac79c9a01b1ecfa
4,841
py
Python
models/claim_breadth/trainer/task.py
rcmckee/patents-public-data
b9b20d6ad6b18d5547be26b267a2c48ee6b5fa34
[ "Apache-2.0" ]
346
2017-10-31T17:48:05.000Z
2022-03-30T23:47:52.000Z
models/claim_breadth/trainer/task.py
rcmckee/patents-public-data
b9b20d6ad6b18d5547be26b267a2c48ee6b5fa34
[ "Apache-2.0" ]
44
2018-05-08T12:32:28.000Z
2022-03-08T02:54:44.000Z
models/claim_breadth/trainer/task.py
rcmckee/patents-public-data
b9b20d6ad6b18d5547be26b267a2c48ee6b5fa34
[ "Apache-2.0" ]
130
2017-11-02T10:20:38.000Z
2022-03-31T04:16:49.000Z
# Copyright 2018 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 agreed to in...
28.476471
79
0.67548
796c60779130901f9ef9f16c7a0679b533eb7e56
1,170
py
Python
nipype/interfaces/mrtrix/tests/test_auto_MedianFilter3D.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2019-01-25T18:20:51.000Z
2019-07-30T20:51:51.000Z
nipype/interfaces/mrtrix/tests/test_auto_MedianFilter3D.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/mrtrix/tests/test_auto_MedianFilter3D.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2018-01-25T19:48:17.000Z
2019-01-25T18:20:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..preprocess import MedianFilter3D def test_MedianFilter3D_inputs(): input_map = dict(args=dict(argstr='%s', ), debug=dict(argstr='-debug', position=1, ), environ=dict(nohash=True, usedefault...
24.893617
67
0.64359
796c610b7a28a0be05a7c90cb8d6fd3eb4a5b941
5,374
py
Python
packages/pyre/externals/PETSc.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
packages/pyre/externals/PETSc.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/externals/PETSc.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # # externals import os, re # access to the framework import pyre # superclass from .Library import Library # the petsc package manager class PETSc(Library, family='pyre.externals.petsc'): """ The package manag...
29.206522
92
0.600484
796c619949186846aab6174aa1884fc8cc473f24
1,567
py
Python
15_Three-Sum.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
15_Three-Sum.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
15_Three-Sum.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Actually, this solution is to be finished because it is out of time limits. # The time complexity is n^2, which is still rejected by Leetcode. # Date: 2018-08-13. class Solution(object): def threeSum(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ if len...
29.018519
77
0.439056
796c61eb1e898a9ee98e905e4ca9dcd5c53b0226
15,730
py
Python
scripts/process.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
93
2015-11-26T14:15:51.000Z
2022-03-10T13:54:21.000Z
scripts/process.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
19
2017-04-06T11:09:21.000Z
2022-03-05T20:12:39.000Z
scripts/process.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
30
2017-06-12T16:08:51.000Z
2022-01-28T17:34:04.000Z
#!/usr/bin/env python3 # This is the master ImageAnalysis processing script. For DJI and # Sentera cameras it should typically be able to run through with # default settings and produce a good result with no further input. # # If something goes wrong, there are usually specific sub-scripts that # can be run to fix th...
37.541766
150
0.665861
796c6231e8b7433606f06e008980f68ce06609f0
60,719
py
Python
configure.py
tantara/tensorflow
9ece18c720f7efb101b1c3c6eb2e8402e6082d6b
[ "Apache-2.0" ]
null
null
null
configure.py
tantara/tensorflow
9ece18c720f7efb101b1c3c6eb2e8402e6082d6b
[ "Apache-2.0" ]
null
null
null
configure.py
tantara/tensorflow
9ece18c720f7efb101b1c3c6eb2e8402e6082d6b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.228081
80
0.689932
796c62377f186789b593a185ce15a5839cceb0c0
10,613
py
Python
homeassistant/components/lock/zwave.py
andiwand/home-assistant
eb584a26e29c3b7998f2ef89a1dcd8bd41e9bb21
[ "Apache-2.0" ]
2
2017-12-30T12:40:59.000Z
2020-07-11T17:23:48.000Z
homeassistant/components/lock/zwave.py
au190/home-assistant
e87ecbd5007acad7468d7118d02b21f6d783c8bc
[ "Apache-2.0" ]
1
2019-12-20T08:24:49.000Z
2019-12-20T08:24:49.000Z
homeassistant/components/lock/zwave.py
au190/home-assistant
e87ecbd5007acad7468d7118d02b21f6d783c8bc
[ "Apache-2.0" ]
3
2018-08-29T19:26:20.000Z
2020-01-19T11:58:22.000Z
""" Z-Wave platform that handles simple door locks. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/lock.zwave/ """ import logging import voluptuous as vol from homeassistant.core import callback from homeassistant.components.lock import DOMAIN, LockDev...
33.062305
79
0.617262
796c6374343538dccc5607b672386fbcee2c285b
62,050
py
Python
pandas/tests/test_algos.py
miradel51/pandas
57c7daa3251e8fed3f3f709ab5bc8e707db99e98
[ "BSD-3-Clause" ]
1
2018-08-01T05:39:55.000Z
2018-08-01T05:39:55.000Z
pandas/tests/test_algos.py
miradel51/pandas
57c7daa3251e8fed3f3f709ab5bc8e707db99e98
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/test_algos.py
miradel51/pandas
57c7daa3251e8fed3f3f709ab5bc8e707db99e98
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pytest from numpy.random import RandomState from numpy import nan from datetime import datetime from itertools import permutations import struct from pandas import (Series, Categorical, CategoricalIndex, Timestamp, DatetimeIndex, Index, IntervalInd...
38.114251
80
0.571491
796c63c4fe905b2197ed24cb2a5e15374375491a
1,492
py
Python
vendor/packages/Werkzeug/examples/httpbasicauth.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2015-12-11T15:27:22.000Z
2016-05-08T13:32:38.000Z
vendor/packages/Werkzeug/examples/httpbasicauth.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/Werkzeug/examples/httpbasicauth.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ HTTP Basic Auth Example ~~~~~~~~~~~~~~~~~~~~~~~ Shows how you can implement HTTP basic auth support without an additional component. :copyright: (c) 2009 by the Werkzeug Team, see AUTHORS for more details. :license: BSD. """ from werkzeug import Request, Response, r...
33.155556
78
0.642761
796c644b1d079d86d6a6a3665525467d174590ac
5,504
py
Python
keggrest/keggrest.py
EnricoGiampieri/keggrest
012c15d6ac591bebec875946d8f9493b000fb1ee
[ "BSD-2-Clause" ]
1
2016-06-30T20:03:48.000Z
2016-06-30T20:03:48.000Z
keggrest/keggrest.py
EnricoGiampieri/keggrest
012c15d6ac591bebec875946d8f9493b000fb1ee
[ "BSD-2-Clause" ]
null
null
null
keggrest/keggrest.py
EnricoGiampieri/keggrest
012c15d6ac591bebec875946d8f9493b000fb1ee
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from itertools import chain, groupby from collections import defaultdict import pickle def print_verbose(verbose, text): if verbose: print text def RESTrequest(*args, **kwargs): """return and save the blob of data that is returned from kegg without caring to the format"""...
32.568047
79
0.623183
796c646d0e057b00c8c1f1b086e1871d1b86bd41
63
py
Python
test/test_init.py
FouziaRaza17/bless
5fc5b4ef129b1dee27e28437b7d102d1c59c66eb
[ "MIT" ]
11
2020-12-15T04:57:51.000Z
2022-03-14T12:39:59.000Z
test/test_init.py
FouziaRaza17/bless
5fc5b4ef129b1dee27e28437b7d102d1c59c66eb
[ "MIT" ]
37
2020-11-20T22:17:42.000Z
2022-03-29T19:33:27.000Z
test/test_init.py
FouziaRaza17/bless
5fc5b4ef129b1dee27e28437b7d102d1c59c66eb
[ "MIT" ]
7
2020-12-01T16:43:38.000Z
2022-02-16T21:26:41.000Z
import bless def test_check(): assert bless.check_test()
10.5
29
0.714286
796c663cc9ed6f3badcd48cf6c2c1f8a553f848c
2,838
py
Python
Configuration/Geometry/python/GeometryExtended2026D49Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
Configuration/Geometry/python/GeometryExtended2026D49Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
Configuration/Geometry/python/GeometryExtended2026D49Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
import FWCore.ParameterSet.Config as cms # This config was generated automatically using generate2026Geometry.py # If you notice a mistake, please update the generating script, not just this config from Configuration.Geometry.GeometryExtended2026D49_cff import * # tracker from Geometry.CommonTopologies.globalTrackin...
45.774194
84
0.806554
796c67dfbd2f6416ace837e4f81f8217fce81a69
1,891
py
Python
poem/Meditation Poetry.py
cserrano-301/creativecode
d524a403e977ca61efa173f1278f35baeec67a8c
[ "MIT" ]
null
null
null
poem/Meditation Poetry.py
cserrano-301/creativecode
d524a403e977ca61efa173f1278f35baeec67a8c
[ "MIT" ]
null
null
null
poem/Meditation Poetry.py
cserrano-301/creativecode
d524a403e977ca61efa173f1278f35baeec67a8c
[ "MIT" ]
null
null
null
with open('Meditation.txt', 'r') as file: text = file.read() import random wordlist = text.replace("\n"," ").split(" ") print( "\n") seed = random.randint(0, len(wordlist)-1) wordlist[seed:seed+80] line1=wordlist[seed:seed+3] print(" ".join(line1) ) seed2 = random.randint(0, len(wordlist)-1) wordlist[seed2:seed...
22.511905
44
0.705976
796c696340c28542e186e818a4800531c12ad66c
2,932
py
Python
automatization_scripts/tools/paasmanager-abstract-catalog.py
hmunfru/fiware-paas
dd808e986f5463dcbb85370b295404f167838ea1
[ "Apache-2.0" ]
null
null
null
automatization_scripts/tools/paasmanager-abstract-catalog.py
hmunfru/fiware-paas
dd808e986f5463dcbb85370b295404f167838ea1
[ "Apache-2.0" ]
null
null
null
automatization_scripts/tools/paasmanager-abstract-catalog.py
hmunfru/fiware-paas
dd808e986f5463dcbb85370b295404f167838ea1
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the ...
29.616162
111
0.637108
796c6a33e17f05ad82c33ef253f221a211f197fb
6,548
py
Python
site/flask/lib/python2.7/site-packages/sqlalchemy/util/queue.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
5
2015-01-06T17:01:59.000Z
2016-08-13T05:29:24.000Z
site/flask/lib/python2.7/site-packages/sqlalchemy/util/queue.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
309
2016-10-27T23:47:06.000Z
2017-04-02T04:40:21.000Z
site/flask/lib/python2.7/site-packages/sqlalchemy/util/queue.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
6
2015-01-06T17:02:01.000Z
2016-11-11T02:50:27.000Z
# util/queue.py # Copyright (C) 2005-2014 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 """An adaptation of Py2.3/2.4's Queue module which supports reentrant behavior, using ...
32.74
77
0.598045
796c6b89636fbe14359d5d8fffda7a0b10672851
3,349
py
Python
datalad/metadata/extractors/audio.py
AKSoo/datalad
dbc34478980c808a86b5531316c986abac953e37
[ "MIT" ]
null
null
null
datalad/metadata/extractors/audio.py
AKSoo/datalad
dbc34478980c808a86b5531316c986abac953e37
[ "MIT" ]
1
2020-12-01T20:13:51.000Z
2020-12-01T20:13:51.000Z
datalad/metadata/extractors/audio.py
jwodder/datalad
2b92a764fdc64b750dad68eb51c817218a1ec153
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
34.525773
107
0.505524
796c6c3870cdec901ab8767182be485e8d8c91e4
6,964
py
Python
distiller/data_loggers/logger.py
amishacorns/dnn-quant-ocs
4bc86281cdb3e04d59db5c8436bec5ddd62fa5f3
[ "Apache-2.0" ]
94
2019-01-30T18:18:12.000Z
2022-03-07T23:47:13.000Z
distiller/data_loggers/logger.py
shami-nisimov/distiller
a43b9f101dbf95e034c404f89162ce0082e12ecf
[ "Apache-2.0" ]
2
2019-08-30T08:02:15.000Z
2020-09-04T02:32:11.000Z
distiller/data_loggers/logger.py
shami-nisimov/distiller
a43b9f101dbf95e034c404f89162ce0082e12ecf
[ "Apache-2.0" ]
23
2019-04-19T09:38:14.000Z
2022-01-24T04:45:23.000Z
# # Copyright (c) 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.688889
128
0.63139
796c6c4da7429f5205f9b21c62a4d12bd75fba71
1,496
py
Python
src/gui.py
adsi7698/Optical-Character-Recognition
636d059d27c536517dd40f183665ba6ecb1fc618
[ "Unlicense" ]
null
null
null
src/gui.py
adsi7698/Optical-Character-Recognition
636d059d27c536517dd40f183665ba6ecb1fc618
[ "Unlicense" ]
null
null
null
src/gui.py
adsi7698/Optical-Character-Recognition
636d059d27c536517dd40f183665ba6ecb1fc618
[ "Unlicense" ]
null
null
null
#import modules import Tkinter from Tkinter import * import os import run_training import run_classify # Designing window for prediction def predict(): global predict_screen print(predict_screen) predict_screen = Toplevel(main_screen) predict_screen.title("Predict The Character") predict_screen.ge...
31.166667
122
0.69385
796c6df073ad0d874e89ab805d7c6286c4ef87da
1,150
py
Python
Day 7/main.py
Zealll/Advent-Of-Code
37b5ec3714ece6ea9b88036e16af746ba00053c6
[ "MIT" ]
2
2020-12-04T17:18:01.000Z
2020-12-05T04:32:41.000Z
Day 7/main.py
Zealll/Advent-Of-Code
37b5ec3714ece6ea9b88036e16af746ba00053c6
[ "MIT" ]
null
null
null
Day 7/main.py
Zealll/Advent-Of-Code
37b5ec3714ece6ea9b88036e16af746ba00053c6
[ "MIT" ]
null
null
null
test = open('test.txt', 'r') arr = [] for group in test: arr.append(group.split()) # Correct Answers: # - Part 1: 268 # - Part 2: 7867 # ======= Part 2 ======= tempBags = [[1, 'shiny gold']] counter = 0 while tempBags: currBag = tempBags[0] for i in arr: firstPart = ' '.join(i[:2]...
22.54902
115
0.524348
796c6e5ca0a0faa83a9618704eb2088d070e5250
100
gyp
Python
gochatai/pachi_py/binding.gyp
spchuang/GoChat
3ccc7c3abb4c74bddf094fdc3c45af875c5aeb76
[ "MIT" ]
null
null
null
gochatai/pachi_py/binding.gyp
spchuang/GoChat
3ccc7c3abb4c74bddf094fdc3c45af875c5aeb76
[ "MIT" ]
null
null
null
gochatai/pachi_py/binding.gyp
spchuang/GoChat
3ccc7c3abb4c74bddf094fdc3c45af875c5aeb76
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "pachi", "sources": [ "pachiapi.cc" ] } ] }
11.111111
34
0.4
796c6ea14eb5a9a1cff2cd956af900bbff244c47
848
py
Python
annofabcli/task_history/subcommand_task_history.py
kurusugawa-computer/annofab-cli
8edad492d439bc8fe64e9471464f545d07aba8b7
[ "MIT" ]
9
2019-07-22T23:54:05.000Z
2020-11-05T06:26:04.000Z
annofabcli/task_history/subcommand_task_history.py
kurusugawa-computer/annofab-cli
8edad492d439bc8fe64e9471464f545d07aba8b7
[ "MIT" ]
389
2019-07-03T04:39:11.000Z
2022-03-28T14:06:11.000Z
annofabcli/task_history/subcommand_task_history.py
kurusugawa-computer/annofab-cli
8edad492d439bc8fe64e9471464f545d07aba8b7
[ "MIT" ]
1
2021-08-30T14:22:04.000Z
2021-08-30T14:22:04.000Z
import argparse from typing import Optional import annofabcli import annofabcli.common.cli import annofabcli.task_history.list_task_history import annofabcli.task_history.list_task_history_with_json def parse_args(parser: argparse.ArgumentParser): subparsers = parser.add_subparsers(dest="subcommand_name") ...
29.241379
86
0.800708
796c6f836039bcfd62d1e302b37b11e04c202987
2,279
py
Python
accounts/views.py
0xft1h/django-api-skeleton
89e082466c5f7e5339b08283fd3c0a0de44013db
[ "MIT" ]
3
2021-05-25T23:24:30.000Z
2021-05-29T16:45:12.000Z
accounts/views.py
analogmanZero/django-api-skeleton
89e082466c5f7e5339b08283fd3c0a0de44013db
[ "MIT" ]
null
null
null
accounts/views.py
analogmanZero/django-api-skeleton
89e082466c5f7e5339b08283fd3c0a0de44013db
[ "MIT" ]
3
2021-05-25T11:50:58.000Z
2021-05-26T07:09:21.000Z
from rest_framework import viewsets from rest_framework import status from .serializers import * from django.contrib.auth import get_user_model from django.contrib.auth.models import Group,Permission from rest_framework.permissions import BasePermission User = get_user_model() def permission_required(permission_name,...
44.686275
95
0.780606
796c6f95e0c70bde69fc66ff6d61caca7a457b45
322
py
Python
solutions/euler15c.py
niryarden/euler_project_solutions
c3e28c1205e0c22f0375041e312cf2889d5887fc
[ "MIT" ]
null
null
null
solutions/euler15c.py
niryarden/euler_project_solutions
c3e28c1205e0c22f0375041e312cf2889d5887fc
[ "MIT" ]
null
null
null
solutions/euler15c.py
niryarden/euler_project_solutions
c3e28c1205e0c22f0375041e312cf2889d5887fc
[ "MIT" ]
null
null
null
# this script doesn't return. too complex lst = [] # 1099511627775 is the value of 40 times 1 in binary (11111...[30 more 1]...11111) for i in range(1099511627775): bina = bin(i)[2:] ll = list(bina) sumi = 0 for z in ll: sumi += int(z) if sumi == 20: lst.append(bina) print(len(lst)...
21.466667
82
0.586957
796c7050c9c662e92471adb92263b57210a94f96
808
py
Python
tortik/util/xml_etree.py
aleks-v-k/tortik
78ed6777080ca1091ada774b17623a130d41f944
[ "MIT" ]
8
2015-09-30T10:29:45.000Z
2020-07-07T07:07:14.000Z
tortik/util/xml_etree.py
aleks-v-k/tortik
78ed6777080ca1091ada774b17623a130d41f944
[ "MIT" ]
5
2015-05-21T10:28:58.000Z
2016-01-15T05:41:07.000Z
tortik/util/xml_etree.py
aleks-v-k/tortik
78ed6777080ca1091ada774b17623a130d41f944
[ "MIT" ]
1
2020-06-08T06:38:53.000Z
2020-06-08T06:38:53.000Z
# -*- coding: utf-8 -*- from tortik.logger import tortik_log native_etree = False try: from lxml import etree except ImportError: tortik_log.info('lxml not installed. Using native etree implementation') native_etree = True import xml.etree.ElementTree as etree def parse(source, parser=None): if ...
23.085714
76
0.669554
796c7084087802a049f8b1e63e1a998f47a61b3e
471
py
Python
tests/master_test.py
danielcompton/mitogen
2813d1a968d6f694514a0053d094c0da9ea4863b
[ "BSD-3-Clause" ]
null
null
null
tests/master_test.py
danielcompton/mitogen
2813d1a968d6f694514a0053d094c0da9ea4863b
[ "BSD-3-Clause" ]
null
null
null
tests/master_test.py
danielcompton/mitogen
2813d1a968d6f694514a0053d094c0da9ea4863b
[ "BSD-3-Clause" ]
null
null
null
import unittest2 import testlib import mitogen.master class ScanCodeImportsTest(unittest2.TestCase): func = staticmethod(mitogen.master.scan_code_imports) def test_simple(self): co = compile(open(__file__).read(), __file__, 'exec') self.assertEquals(list(self.func(co)), [ (-1, '...
21.409091
61
0.598726
796c70cc874ecb503100813ebf99c4c6f12705cd
2,128
py
Python
mibs/pycopia/mibs/SNMPv2_MIB_OID.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
89
2015-03-26T11:25:20.000Z
2022-01-12T06:25:14.000Z
mibs/pycopia/mibs/SNMPv2_MIB_OID.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
1
2015-07-05T03:27:43.000Z
2015-07-11T06:21:20.000Z
mibs/pycopia/mibs/SNMPv2_MIB_OID.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
30
2015-04-30T01:35:54.000Z
2022-01-12T06:19:49.000Z
# python # This file is generated by a program (mib2py). import SNMPv2_MIB OIDMAP = { '1.3.6.1.2.1.1': SNMPv2_MIB.system, '1.3.6.1.2.1.11': SNMPv2_MIB.snmp, '1.3.6.1.6.3.1': SNMPv2_MIB.snmpMIB, '1.3.6.1.6.3.1.1': SNMPv2_MIB.snmpMIBObjects, '1.3.6.1.6.3.1.1.4': SNMPv2_MIB.snmpTrap, '1.3.6.1.6.3.1.1.5': SNMPv2_MIB.snm...
41.72549
66
0.68703
796c71f878020f78a6be9db94a0851bf03ff543b
1,209
py
Python
marcoaurelio/strings/help.py
adeharo9/marco-aurelio-bot
21eb4772a63b6a1543cd37ff473a9403f0046bcb
[ "BSD-3-Clause" ]
null
null
null
marcoaurelio/strings/help.py
adeharo9/marco-aurelio-bot
21eb4772a63b6a1543cd37ff473a9403f0046bcb
[ "BSD-3-Clause" ]
null
null
null
marcoaurelio/strings/help.py
adeharo9/marco-aurelio-bot
21eb4772a63b6a1543cd37ff473a9403f0046bcb
[ "BSD-3-Clause" ]
null
null
null
# Embed parameters TITLE = '' DESCRIPTION = '{:s}, el marco dorado que indica cuándo trabajar y ' \ 'cuándo no a sus súbditos. ¡Ave, César!' URL = 'https://github.com/adeharo9/marco-aurelio-bot' COLOR = 0xffff00 # Footer FOOTER_TEXT = 'marco-aurelio-bot by adeharo9' # Author AUTHOR_NAME = 'Comandos de {...
26.282609
77
0.645988
796c72eec223cac9029c8beaf917a43a295c95ac
9,219
py
Python
python/lib/lib_care/measure/bootstrap.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
python/lib/lib_care/measure/bootstrap.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
python/lib/lib_care/measure/bootstrap.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
import numpy as np, pandas as pd, dask.bag as db from scipy.stats import normaltest import time def test_normality(x,alpha = 0.05): '''performs D'Agostino and Pearson's omnibus test for normality. Returns p, True if significantly different from normal distribution''' _, p = normaltest(x) is_significant...
43.691943
145
0.625664
796c73827abddc8db35f12ffbe9839040125f366
224
py
Python
dumbrepl.py
namin/pycket
e143667d044290277868484c0a9ffe0cc559c688
[ "MIT" ]
129
2016-08-01T11:02:05.000Z
2022-02-14T13:23:55.000Z
dumbrepl.py
namin/pycket
e143667d044290277868484c0a9ffe0cc559c688
[ "MIT" ]
127
2016-07-28T04:19:06.000Z
2021-08-08T17:02:16.000Z
dumbrepl.py
namin/pycket
e143667d044290277868484c0a9ffe0cc559c688
[ "MIT" ]
12
2016-11-10T10:25:06.000Z
2021-08-08T16:00:17.000Z
if __name__ == "__main__": import pycket.values import pycket.config from pycket.env import w_global_config #w_global_config.set_linklet_mode_off() import pycket.test.testhelper as th th.dumb_repl()
24.888889
43
0.732143
796c742315a7f1999c63ce6ce31bdadfb53cfa9b
379
py
Python
sabores/migrations/0002_sabor_no_cardapio.py
borbinhaa/django-pizza-website
0fb5dc087d1443798fc94300a78642e2e170f51e
[ "MIT" ]
null
null
null
sabores/migrations/0002_sabor_no_cardapio.py
borbinhaa/django-pizza-website
0fb5dc087d1443798fc94300a78642e2e170f51e
[ "MIT" ]
null
null
null
sabores/migrations/0002_sabor_no_cardapio.py
borbinhaa/django-pizza-website
0fb5dc087d1443798fc94300a78642e2e170f51e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-07 15:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sabores', '0001_initial'), ] operations = [ migrations.AddField( model_name='sabor', name='no_cardapio', ...
19.947368
52
0.591029
796c74bbce7d0bc579037972d4c1f40f19810e5b
4,210
py
Python
algorithm.py
fzheng/backtester
add76a410ed5215abea07486bd4b0ee57f11cdb5
[ "MIT" ]
null
null
null
algorithm.py
fzheng/backtester
add76a410ed5215abea07486bd4b0ee57f11cdb5
[ "MIT" ]
null
null
null
algorithm.py
fzheng/backtester
add76a410ed5215abea07486bd4b0ee57f11cdb5
[ "MIT" ]
null
null
null
import numpy as np class Algorithm: """ Example algorithm for trading. Must implement a "generate_orders" function which returns a list of orders. Each order is a tuple of the form ( Stock Ticker str, Current Price float, Order Amount in shares float) Algorithm trades for stocks via a rolling...
35.083333
116
0.59715
796c74bc768a3da0238e65094e781ee8c05ad0c6
434
py
Python
ex46/setup.py
leifan89/learn_python_the_hard_way
53cd674914c0b473f5a1c48d3709467bba55791c
[ "MIT" ]
null
null
null
ex46/setup.py
leifan89/learn_python_the_hard_way
53cd674914c0b473f5a1c48d3709467bba55791c
[ "MIT" ]
null
null
null
ex46/setup.py
leifan89/learn_python_the_hard_way
53cd674914c0b473f5a1c48d3709467bba55791c
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'My Project', 'author': 'Lei Fan', 'url': 'http://www.example.com', 'download_url': 'http://www.example.com', 'author_email': 'email@example.com', 'version': '0.1', 'inst...
22.842105
45
0.601382
796c76489c3cbd3890f1978233c420b9441fe15f
2,370
py
Python
pycocosn/defaults.py
RobFirth/pycoco
1c9be662b6dd67f8be5423568bb3ecbff2979492
[ "MIT" ]
1
2018-06-06T06:58:36.000Z
2018-06-06T06:58:36.000Z
pycocosn/defaults.py
RobFirth/pycoco
1c9be662b6dd67f8be5423568bb3ecbff2979492
[ "MIT" ]
7
2017-12-11T20:07:37.000Z
2018-01-21T14:40:29.000Z
pycocosn/defaults.py
RobFirth/pycoco
1c9be662b6dd67f8be5423568bb3ecbff2979492
[ "MIT" ]
null
null
null
""" """ import os import astropy.units as u import matplotlib.pyplot as plt __all__ = ["_default_data_dir_path", "_default_filter_dir_path", "_default_coco_dir_path", "_default_recon_dir_path", "_default_specphase_dir_path", "_default_sn_dist_path", ...
34.347826
112
0.747257
796c76cc47660a092df3b1e1bec669e34ecba014
621
py
Python
demo/utils/print_pt.py
haiyangxue/fairseq
b142ceec20d69130aea823054b193a0d04a780e3
[ "MIT" ]
null
null
null
demo/utils/print_pt.py
haiyangxue/fairseq
b142ceec20d69130aea823054b193a0d04a780e3
[ "MIT" ]
null
null
null
demo/utils/print_pt.py
haiyangxue/fairseq
b142ceec20d69130aea823054b193a0d04a780e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # xuehaiyang: xuehaiyang@sogou-inc.com # """ Convert pt model to npz """ import torch import json import numpy as np import sys if len(sys.argv) != 2: sys.stderr.write('usage: %s + pt_path ' % __file__) print() sys.exit(-1) pt_path = sys.argv[1] only_in_pt ...
18.818182
60
0.618357
796c76f02b8878f4e1db71653069dd65ebadf326
403
py
Python
Python/WebDev/Django/MundusInvicte/MundusInvicte/wsgi.py
michaelg29/Programming
2544a742393c6d94e93879f70246ce17d0997011
[ "MIT" ]
2
2021-04-05T20:44:54.000Z
2022-01-13T05:25:11.000Z
Python/WebDev/Django/MundusInvicte/MundusInvicte/wsgi.py
michaelg29/Programming
2544a742393c6d94e93879f70246ce17d0997011
[ "MIT" ]
12
2020-02-17T05:19:01.000Z
2022-03-17T14:56:38.000Z
Python/WebDev/Django/MundusInvicte/MundusInvicte/wsgi.py
michaelg29/Programming
2544a742393c6d94e93879f70246ce17d0997011
[ "MIT" ]
1
2022-01-25T16:48:21.000Z
2022-01-25T16:48:21.000Z
""" WSGI config for MundusInvicte project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
796c77354d6f8271f83aef0c9a4e48f2095e3fa8
35,154
py
Python
pandas/tests/types/test_inference.py
accessnash/pandas
366241386282272328333256b6e267a68f8133a4
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/types/test_inference.py
accessnash/pandas
366241386282272328333256b6e267a68f8133a4
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/types/test_inference.py
accessnash/pandas
366241386282272328333256b6e267a68f8133a4
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2019-07-24T10:37:42.000Z
2019-07-24T10:37:42.000Z
# -*- coding: utf-8 -*- """ These the test the public routines exposed in types/common.py related to inference and not otherwise tested in types/test_common.py """ import nose import collections import re from datetime import datetime, date, timedelta, time import numpy as np import pytz import pandas as pd from pa...
37.35813
79
0.594897
796c77b4ddcfa14d11ea3b756349643d98b46285
438
py
Python
sdk/python/pulumi_aws/fsx/__init__.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/fsx/__init__.py
wgarcia79/pulumi-aws
c63c224734f1d72ba84986a33f36413c9f9cbe27
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/fsx/__init__.py
wgarcia79/pulumi-aws
c63c224734f1d72ba84986a33f36413c9f9cbe27
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.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! *** from .. import _utilities import typing # Export this package's modules as members: from .backup import * from .lustre_file_system impo...
31.285714
87
0.746575
796c787fb0b33d784a26de8cd6efdb0cb5da6468
3,441
py
Python
app/selenium_ui/bitbucket_ui.py
dima1815/dc-app-performance-toolkit
baaaf825a91bcce8afc5a2ecd4816a563b8eea4a
[ "Apache-2.0" ]
null
null
null
app/selenium_ui/bitbucket_ui.py
dima1815/dc-app-performance-toolkit
baaaf825a91bcce8afc5a2ecd4816a563b8eea4a
[ "Apache-2.0" ]
null
null
null
app/selenium_ui/bitbucket_ui.py
dima1815/dc-app-performance-toolkit
baaaf825a91bcce8afc5a2ecd4816a563b8eea4a
[ "Apache-2.0" ]
null
null
null
from selenium_ui.bitbucket import modules from extension.bitbucket import extension_ui # noqa F401 # this action should be the first one def test_0_selenium_a_login(bitbucket_webdriver, bitbucket_datasets, bitbucket_screen_shots): modules.login(bitbucket_webdriver, bitbucket_datasets) def test_1_selenium_view_...
44.688312
116
0.871258
796c78be73201feb38993c67cd477c64e042a87d
1,016
py
Python
monailabel/interfaces/tasks/strategy.py
jlvahldiek/MONAILabel
93b8c3aa970f93fca6a69fc825e6ba3776884420
[ "Apache-2.0" ]
null
null
null
monailabel/interfaces/tasks/strategy.py
jlvahldiek/MONAILabel
93b8c3aa970f93fca6a69fc825e6ba3776884420
[ "Apache-2.0" ]
1
2022-03-04T13:59:48.000Z
2022-03-04T13:59:48.000Z
monailabel/interfaces/tasks/strategy.py
rAIdiance/MONAILabel
381f42aa4160a12aeb510646b043f696ad7b984f
[ "Apache-2.0" ]
1
2022-02-11T14:21:41.000Z
2022-02-11T14:21:41.000Z
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
30.787879
74
0.720472
796c7954d56f44e3c19f7587c54a0acc491c7265
4,445
py
Python
GerritAPI2/DbQuery.py
Tawkat/Autonomous-Code-Review-Usefulness-Measurement
e709eb4813123b713764ef6be8534dd29724c217
[ "MIT" ]
null
null
null
GerritAPI2/DbQuery.py
Tawkat/Autonomous-Code-Review-Usefulness-Measurement
e709eb4813123b713764ef6be8534dd29724c217
[ "MIT" ]
null
null
null
GerritAPI2/DbQuery.py
Tawkat/Autonomous-Code-Review-Usefulness-Measurement
e709eb4813123b713764ef6be8534dd29724c217
[ "MIT" ]
null
null
null
import sys reload(sys) sys.setdefaultencoding('utf8') import sqlite3 import matplotlib.pyplot as plt import numpy as np import operator connection=sqlite3.connect('Gerrit.db') connection.text_factory=str cursor=connection.cursor() ''' reviewer="George Nash" cursor.execute("Select COUNT(review_id) FROM reviewTable WH...
33.931298
181
0.744432
796c799977635951d76a3c84c4fdcd1c7f75f5b4
8,006
py
Python
lib/galaxy/util/compression_utils.py
bensellak/galaxy
020b145c8c0ee5f61543e87e5d1867ae717a6871
[ "CC-BY-3.0" ]
17
2015-12-23T18:28:55.000Z
2020-12-21T13:01:21.000Z
lib/galaxy/util/compression_utils.py
bensellak/galaxy
020b145c8c0ee5f61543e87e5d1867ae717a6871
[ "CC-BY-3.0" ]
72
2015-12-23T16:58:40.000Z
2020-07-23T18:01:43.000Z
lib/galaxy/util/compression_utils.py
bensellak/galaxy
020b145c8c0ee5f61543e87e5d1867ae717a6871
[ "CC-BY-3.0" ]
24
2015-12-20T22:59:40.000Z
2020-01-10T05:34:50.000Z
from __future__ import absolute_import import gzip import io import logging import os import tarfile import zipfile from galaxy.util.path import safe_relpath from .checkers import ( bz2, is_bz2, is_gzip ) log = logging.getLogger(__name__) def get_fileobj(filename, mode="r", compressed_formats=None): ...
40.03
130
0.630152
796c7a7e130fe2b0d2af3bbc1772f7a66b5a236b
2,051
py
Python
nipype/interfaces/ants/tests/test_auto_JointFusion.py
mfalkiewicz/nipype
775e21b78fb1ffa2ff9cb12e6f052868bd44d052
[ "Apache-2.0" ]
1
2015-01-19T13:12:27.000Z
2015-01-19T13:12:27.000Z
nipype/interfaces/ants/tests/test_auto_JointFusion.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/ants/tests/test_auto_JointFusion.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..segmentation import JointFusion def test_JointFusion_inputs(): input_map = dict(alpha=dict(requires=['method'], usedefault=True, ), args=dict(argstr='%s', ), atlas_group_id=dict(argstr='-gp %d....
24.129412
67
0.618723
796c7b925613b7e5a5ab095390b62ba4d2e6a0d7
31,836
py
Python
test/unit/tools/test_history_imp_exp.py
NordicESMhub/galaxy
ec3ffb7d8ec5dac9b179f4c9d39b8060b69d5492
[ "CC-BY-3.0" ]
1
2018-12-04T10:39:31.000Z
2018-12-04T10:39:31.000Z
test/unit/tools/test_history_imp_exp.py
NordicESMhub/galaxy
ec3ffb7d8ec5dac9b179f4c9d39b8060b69d5492
[ "CC-BY-3.0" ]
78
2019-01-18T08:12:49.000Z
2022-03-13T08:56:41.000Z
test/unit/tools/test_history_imp_exp.py
NordicESMhub/galaxy
ec3ffb7d8ec5dac9b179f4c9d39b8060b69d5492
[ "CC-BY-3.0" ]
9
2019-01-18T07:49:12.000Z
2021-06-26T22:21:09.000Z
import json import os import tarfile import tempfile from shutil import rmtree from galaxy import model from galaxy.exceptions import MalformedContents from galaxy.tools.imp_exp import JobExportHistoryArchiveWrapper, JobImportHistoryArchiveWrapper, unpack_tar_gz_archive from galaxy.tools.imp_exp.export_history import ...
39.844806
828
0.723363
796c7c68e9bbce2665c0ee6fa3be70af1432f80a
11,191
py
Python
fluent_pages/pagetypes/flatpage/south_migrations/0003_move_seo_fields.py
bashu/sigmacms-fluent-pages
04bee029cd581c11012cdb66dbf603218be23e66
[ "Apache-2.0" ]
null
null
null
fluent_pages/pagetypes/flatpage/south_migrations/0003_move_seo_fields.py
bashu/sigmacms-fluent-pages
04bee029cd581c11012cdb66dbf603218be23e66
[ "Apache-2.0" ]
null
null
null
fluent_pages/pagetypes/flatpage/south_migrations/0003_move_seo_fields.py
bashu/sigmacms-fluent-pages
04bee029cd581c11012cdb66dbf603218be23e66
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.exceptions import ObjectDoesNotExist from south.utils import datetime_utils as datetime from south.db import db from south.v2 import DataMigration from django.db import models from fluent_pages import appsettings class Migration(DataMigration): depends_on = ( ("flue...
75.614865
202
0.5911
796c7cd14776941a29b0eafbe0b1aefb8fd3ca3c
655
py
Python
kolibri/plugins/setup_wizard/api_urls.py
mrpau/kolibri
94ed5887ec083398e55ee5a291df6d09c062bfe1
[ "MIT" ]
null
null
null
kolibri/plugins/setup_wizard/api_urls.py
mrpau/kolibri
94ed5887ec083398e55ee5a291df6d09c062bfe1
[ "MIT" ]
null
null
null
kolibri/plugins/setup_wizard/api_urls.py
mrpau/kolibri
94ed5887ec083398e55ee5a291df6d09c062bfe1
[ "MIT" ]
null
null
null
from django.conf.urls import include from django.conf.urls import url from rest_framework import routers from .api import FacilityAdminView from .api import GrantSuperuserPermissionsView from .api import StartFacilityImportTaskView router = routers.DefaultRouter() router.register(r"facilityadmins", FacilityAdminView...
27.291667
81
0.806107
796c7cd7deffd1984d4a8525353bc00d613be6da
671
py
Python
setup.py
dreamplatform/dream-authbackend-opinsys
8668b6aab154908005354937ccfe7de754e65532
[ "BSD-3-Clause" ]
null
null
null
setup.py
dreamplatform/dream-authbackend-opinsys
8668b6aab154908005354937ccfe7de754e65532
[ "BSD-3-Clause" ]
null
null
null
setup.py
dreamplatform/dream-authbackend-opinsys
8668b6aab154908005354937ccfe7de754e65532
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages def get_version(): try: import subprocess p = subprocess.Popen('hg id -t', shell=True, stdout=subprocess.PIPE) tag = p.stdout.read()[1:].strip() return tag except: return 'dev' setup( name = "dream-authbackend-opinsys", ...
23.137931
76
0.61848
796c7de3f04f0fd4205551292d0a2ad5b62a6e7c
554
py
Python
setup.py
drgHannah/Radon-Transformation
68eac9c3c4747b0c1580be83b5967b0c58d028be
[ "MIT" ]
1
2022-03-29T06:19:36.000Z
2022-03-29T06:19:36.000Z
setup.py
drgHannah/Radon-Transformation
68eac9c3c4747b0c1580be83b5967b0c58d028be
[ "MIT" ]
null
null
null
setup.py
drgHannah/Radon-Transformation
68eac9c3c4747b0c1580be83b5967b0c58d028be
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='radon_transformation', version='0.1.1', description='Radon Transformation package', author='Hannah Droege', license='MIT License', packages=['radon_transformation'], install_requires=[ 'numpy', ...
26.380952
51
0.548736
796c7e0cd9252e39657dd35360a9ff40af97c734
6,887
py
Python
contrast/grad_cam.py
lightwisemax/diabetic-retinopathy-pytorch
a0710a00e5e4d5f220de66cb10dc34fd691be4a1
[ "Apache-2.0" ]
null
null
null
contrast/grad_cam.py
lightwisemax/diabetic-retinopathy-pytorch
a0710a00e5e4d5f220de66cb10dc34fd691be4a1
[ "Apache-2.0" ]
null
null
null
contrast/grad_cam.py
lightwisemax/diabetic-retinopathy-pytorch
a0710a00e5e4d5f220de66cb10dc34fd691be4a1
[ "Apache-2.0" ]
1
2019-05-03T02:38:15.000Z
2019-05-03T02:38:15.000Z
import torch import cv2 import os import sys import numpy as np from torch.autograd import Variable sys.path.append('../') from contrast.models import vgg19 from utils.util import add_prefix, remove_prefix, mkdir class FeatureExtractor(): """ Class for extracting activations and registering gradients from t...
34.094059
115
0.626978
796c7e2e3150b6c9894fa6ba5ca76c8c51de9edf
2,810
py
Python
src/rubrix/sdk/api/status/api_status.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/api/status/api_status.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/api/status/api_status.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Optional, Union import httpx from ...client import AuthenticatedClient from ...models.api_status import ApiStatus from ...models.error_message import ErrorMessage from ...types import Response def _get_kwargs( *, client: AuthenticatedClient, ) -> Dict[str, Any]: url = "{}/a...
21.953125
62
0.647331
796c7ed19125dfb0dc5cb86b4f453b0d6e69c0fd
4,798
py
Python
tests/test_default_decision_tree.py
fbenke-pik/aneris
6d81bb17a37b019341056ccd1fdc49ffb0e90962
[ "Apache-2.0" ]
null
null
null
tests/test_default_decision_tree.py
fbenke-pik/aneris
6d81bb17a37b019341056ccd1fdc49ffb0e90962
[ "Apache-2.0" ]
null
null
null
tests/test_default_decision_tree.py
fbenke-pik/aneris
6d81bb17a37b019341056ccd1fdc49ffb0e90962
[ "Apache-2.0" ]
null
null
null
import pandas as pd import pytest from aneris import harmonize import pandas.testing as pdt def make_index(length, gas='CH4', sector='Energy'): return pd.MultiIndex.from_product( [["region_{i}" for i in range(length)], [gas], [sector]], names=["region", "gas", "sector"] ) @pytest.fixture d...
27.734104
78
0.609004
796c7f932c525cbf43a6b59f67a4ed872ac1aec0
8,700
py
Python
analyse.py
SiLab-Bonn/E3BeamMonitor
3a06baf484b567db036b44b80f9d1ed519f0b6fd
[ "MIT" ]
null
null
null
analyse.py
SiLab-Bonn/E3BeamMonitor
3a06baf484b567db036b44b80f9d1ed519f0b6fd
[ "MIT" ]
null
null
null
analyse.py
SiLab-Bonn/E3BeamMonitor
3a06baf484b567db036b44b80f9d1ed519f0b6fd
[ "MIT" ]
null
null
null
''' Replay program to analyze data and test analysing setups. ''' import zmq from pybar.daq.readout_utils import is_data_record, get_col_row_array_from_data_record_array, is_fe_word from pybar.daq import readout_utils as ru from matplotlib import pyplot as plt import numpy as np from pybar_fei4_interpreter import analy...
38.495575
217
0.608736
796c7fc159d7c078d0798916ee67573fb8438dbe
689
py
Python
blog/migrations/0005_auto_20180113_1944.py
rapacheco/blog
1875ac22faf25834ccb8f233470efa96acd06a67
[ "MIT" ]
null
null
null
blog/migrations/0005_auto_20180113_1944.py
rapacheco/blog
1875ac22faf25834ccb8f233470efa96acd06a67
[ "MIT" ]
null
null
null
blog/migrations/0005_auto_20180113_1944.py
rapacheco/blog
1875ac22faf25834ccb8f233470efa96acd06a67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-14 00:44 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blog', '0004_auto_20180113_1908'), ] operations = [ ...
25.518519
74
0.625544
796c7fc1e880c47f7e1d18d6e629d6ce342df601
139
py
Python
Algorithms/Game Theory/Tower_Breakers.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
1
2017-12-02T14:23:44.000Z
2017-12-02T14:23:44.000Z
Algorithms/Game Theory/Tower_Breakers.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
Algorithms/Game Theory/Tower_Breakers.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
T = int(input()) for _ in range(T): N, M = input().split(' ') N, M = int(N), int(M) print (2 if (M == 1 or N % 2 == 0) else 1)
23.166667
46
0.453237
796c80679358e59bb3c16075776dfd17653e23a4
44,589
py
Python
src/genie/libs/parser/ios/cat6k/show_platform.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/ios/cat6k/show_platform.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/ios/cat6k/show_platform.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
""" cat6k implementation of show_platform.py """ import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Any, Optional class ShowVersionSchema(MetaParser): """ Schema for show version """ schema = { 'version': { 'o...
38.773043
193
0.457557
796c806c72f72401c2e9bf96b628d1ff4e8b74d8
361
py
Python
ddtrace/__init__.py
leocabralweb/dd-trace-py
b4a89595ee6a7664af10a9fc5ae703ac30f71685
[ "BSD-3-Clause" ]
null
null
null
ddtrace/__init__.py
leocabralweb/dd-trace-py
b4a89595ee6a7664af10a9fc5ae703ac30f71685
[ "BSD-3-Clause" ]
null
null
null
ddtrace/__init__.py
leocabralweb/dd-trace-py
b4a89595ee6a7664af10a9fc5ae703ac30f71685
[ "BSD-3-Clause" ]
null
null
null
from .monkey import patch, patch_all from .pin import Pin from .span import Span from .tracer import Tracer from .settings import Config __version__ = '0.14.0' # a global tracer instance with integration settings tracer = Tracer() config = Config() __all__ = [ 'patch', 'patch_all', 'Pin', 'Span', ...
16.409091
52
0.66205
796c80c59d39e5624e561f6c7b618f5ddedea905
25,168
py
Python
src/pysonata/sonata/circuit/population.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
35
2018-04-10T13:54:27.000Z
2022-03-12T09:22:31.000Z
src/pysonata/sonata/circuit/population.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
92
2018-03-19T10:14:18.000Z
2022-01-29T15:21:47.000Z
src/pysonata/sonata/circuit/population.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
25
2018-03-16T23:14:42.000Z
2022-02-09T19:37:05.000Z
# Copyright 2017. Allen Institute. 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, this list of conditions and the follow...
39.572327
120
0.64439
796c80e11893f319b088e9e20d59bedf9076007e
12,404
py
Python
thespian/system/utilis.py
kquick/Thespian
942653b226e45efb75a21d9ce0f5a958fee07a19
[ "MIT" ]
180
2017-04-10T21:06:26.000Z
2022-03-25T06:50:25.000Z
thespian/system/utilis.py
kquick/Thespian
942653b226e45efb75a21d9ce0f5a958fee07a19
[ "MIT" ]
85
2017-04-08T19:28:42.000Z
2022-03-23T15:25:49.000Z
thespian/system/utilis.py
kquick/Thespian
942653b226e45efb75a21d9ce0f5a958fee07a19
[ "MIT" ]
30
2017-04-05T11:25:43.000Z
2022-03-21T20:32:25.000Z
from datetime import datetime, timedelta import logging import os import tempfile from thespian.actors import InvalidActorSpecification import inspect import warnings ### ### Logging ### # recognized logging level names for the Thespian internal log. _name_to_level = { "CRITICAL": logging.CRITICAL, "ERROR": ...
36.916667
106
0.61464
796c8131beb5b4c4252ad495eb432fd93e12044b
5,688
py
Python
mingla/bot.py
sveriges-utbildningsradio/mingla
d1c5d165d402426d722172cecd50ca2d4e9c5a16
[ "MIT" ]
null
null
null
mingla/bot.py
sveriges-utbildningsradio/mingla
d1c5d165d402426d722172cecd50ca2d4e9c5a16
[ "MIT" ]
null
null
null
mingla/bot.py
sveriges-utbildningsradio/mingla
d1c5d165d402426d722172cecd50ca2d4e9c5a16
[ "MIT" ]
null
null
null
import random import uuid import time import re from datetime import datetime from slack import WebClient from slack.errors import SlackApiError def n_even_chunks(lst, n): """Yield n as even chunks as possible from lst.""" last = 0 for i in range(1, n + 1): cur = int(round(i * (len(lst) / n))) ...
34.26506
93
0.543073
796c83c3080781ff7747544185ede832b1537100
760
py
Python
setup.py
troolee/tornado-routes
c5a5f8e7d66d2ad76c6d1e7608d09b5776e7af68
[ "MIT" ]
30
2015-02-09T08:53:43.000Z
2022-02-02T06:59:43.000Z
setup.py
troolee/tornado-routes
c5a5f8e7d66d2ad76c6d1e7608d09b5776e7af68
[ "MIT" ]
null
null
null
setup.py
troolee/tornado-routes
c5a5f8e7d66d2ad76c6d1e7608d09b5776e7af68
[ "MIT" ]
12
2015-06-28T03:45:20.000Z
2021-04-25T15:48:54.000Z
# -*- coding: utf-8 -*- # # Author: Pavel Reznikov <pashka.reznikov@gmail.com> # Created: 23/01/13 # # Id: $Id$ """`tornado-routes` lives on `GitHub <https://github.com/troolee/tornado-routes>`_.""" from setuptools import setup setup( name="tornado-routes", version="0.0.3", author="Pavel Reznikov", a...
26.206897
86
0.659211
796c83d03284061905df42babe4fbe7f266e325d
276
py
Python
example/example/urls.py
moshthepitt/django-vega-admin
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
[ "MIT" ]
4
2018-11-24T14:46:45.000Z
2020-12-04T08:49:28.000Z
example/example/urls.py
moshthepitt/django-vega-admin
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
[ "MIT" ]
40
2018-11-17T11:34:35.000Z
2020-06-26T11:27:01.000Z
example/example/urls.py
moshthepitt/django-vega-admin
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
[ "MIT" ]
null
null
null
"""example URL Configuration""" from django.conf.urls import include from django.urls import path from artists import views urlpatterns = [ path('', include('vega_admin.contrib.users.urls')), ] + views.ArtistCRUD().url_patterns() +\ views.SongCRUD().url_patterns()
23
55
0.724638
796c8484b9c24f83b738ef2d98bd82b75b1451a2
943
py
Python
chapter_02/birthday.py
rkneusel9/MathForDeepLearning
8db1a85ce3cef4b48aab01ebe156e3fab2dfa271
[ "MIT" ]
23
2021-10-12T19:53:35.000Z
2022-03-29T12:41:23.000Z
chapter_02/birthday.py
mohit-n-rajput/MathForDeepLearning
8db1a85ce3cef4b48aab01ebe156e3fab2dfa271
[ "MIT" ]
null
null
null
chapter_02/birthday.py
mohit-n-rajput/MathForDeepLearning
8db1a85ce3cef4b48aab01ebe156e3fab2dfa271
[ "MIT" ]
7
2021-06-16T17:21:41.000Z
2022-03-16T09:22:50.000Z
# # file: birthday.py # # Simulate the birthday paradox # # RTK, 04-Jun-2020 # Last update: 04-Jun-2020 # ################################################################ import numpy as np # Simulate picking two people at random, probability of sharing a birthday N = 100000 match = 0 for i in range(N): a =...
23
81
0.512195
796c8534a5b730716232a0f096364bda659f13ea
12,262
py
Python
AyiinXd/modules/pmbot.py
AyiinXd/Ayiin-Userbot
6e2fcbf087c14282eb9f4313954552c06eb52f47
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2022-02-05T09:45:49.000Z
2022-03-25T04:52:11.000Z
AyiinXd/modules/pmbot.py
AyiinXd/Ayiin-Userbot
6e2fcbf087c14282eb9f4313954552c06eb52f47
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2022-03-03T22:35:03.000Z
2022-03-07T02:40:10.000Z
AyiinXd/modules/pmbot.py
AyiinXd/Ayiin-Userbot
6e2fcbf087c14282eb9f4313954552c06eb52f47
[ "Naumen", "Condor-1.1", "MS-PL" ]
20
2022-01-25T05:19:18.000Z
2022-03-31T08:23:23.000Z
# Copyright (C) 2021 Catuserbot <https://github.com/sandy1709/catuserbot> # Ported by @mrismanaziz # FROM Man-Userbot <https://github.com/mrismanaziz/Man-Userbot> # t.me/SharingUserbot & t.me/Lunatic0de import asyncio from datetime import datetime from math import floor from telethon.errors import BadRequestError, Fl...
35.853801
171
0.603327
796c85d8d802045920f61d4c7cb72b91465981b5
3,175
py
Python
ool/users/tests/test_views.py
HeLsEroC/bbr
0dd40bffd05faa777bec3a89dd1712f0f546d60e
[ "MIT" ]
null
null
null
ool/users/tests/test_views.py
HeLsEroC/bbr
0dd40bffd05faa777bec3a89dd1712f0f546d60e
[ "MIT" ]
null
null
null
ool/users/tests/test_views.py
HeLsEroC/bbr
0dd40bffd05faa777bec3a89dd1712f0f546d60e
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.contrib import messages from django.contrib.auth.models import AnonymousUser from django.contrib.messages.middleware import MessageMiddleware from django.contrib.sessions.middleware import SessionMiddleware from django.http import HttpRequest from django.test i...
31.127451
75
0.689764
796c875df50bad84a4be94a56c2039982fc224d3
310
py
Python
fdk_client/application/models/UpdateRefundTransferModeResponse.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/application/models/UpdateRefundTransferModeResponse.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/application/models/UpdateRefundTransferModeResponse.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Application Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class UpdateRefundTransferModeResponse(BaseSchema): # Payment swagger.json success = fields.Boolean(required=False)
17.222222
51
0.751613
796c88e3e55b9247fe210b1777b6173c3dbdf529
9,485
py
Python
backup_and_restore.py
zenotajoli/FOLIO-backup-and-restore
c01634f627b769e0f6be0474b6208864cf11a865
[ "MIT" ]
1
2020-02-03T13:49:01.000Z
2020-02-03T13:49:01.000Z
backup_and_restore.py
zenotajoli/FOLIO-backup-and-restore
c01634f627b769e0f6be0474b6208864cf11a865
[ "MIT" ]
null
null
null
backup_and_restore.py
zenotajoli/FOLIO-backup-and-restore
c01634f627b769e0f6be0474b6208864cf11a865
[ "MIT" ]
null
null
null
import argparse import pathlib import json import requests from folioclient.FolioClient import FolioClient class Purge: def __init__(self, folio_client, path, set_name): self.folio_client = folio_client self.path = path self.set_name = set_name print("initializing Purge") def ...
40.708155
88
0.584607
796c89d8e8c15b868d2e40fdc591d9a84846155a
1,225
py
Python
Section 3/3.3/code/index.py
PacktPublishing/Rapid-Flask
594d53224f3b92a4ae049f6f8ddd9bc05720d150
[ "MIT" ]
null
null
null
Section 3/3.3/code/index.py
PacktPublishing/Rapid-Flask
594d53224f3b92a4ae049f6f8ddd9bc05720d150
[ "MIT" ]
null
null
null
Section 3/3.3/code/index.py
PacktPublishing/Rapid-Flask
594d53224f3b92a4ae049f6f8ddd9bc05720d150
[ "MIT" ]
3
2019-10-20T22:17:30.000Z
2021-05-30T18:05:17.000Z
from flask import Flask from flask import render_template from flask import request import os import json import time import urllib2 app = Flask(__name__) def get_weather(city): url = "http://api.openweathermap.org/data/2.5/forecast/daily?q={}&cnt=10&mode=json&units=metric".format(city) response = urllib2.url...
32.236842
113
0.662857
796c8aaad859653e40313be1abd66f16d1e237d1
97
py
Python
Loops/incrementing_with_while.py
lvolkmann/couch-to-coder-python-exercises
afecb696d93eead9ba50613dc0723f2eca92d11a
[ "MIT" ]
null
null
null
Loops/incrementing_with_while.py
lvolkmann/couch-to-coder-python-exercises
afecb696d93eead9ba50613dc0723f2eca92d11a
[ "MIT" ]
null
null
null
Loops/incrementing_with_while.py
lvolkmann/couch-to-coder-python-exercises
afecb696d93eead9ba50613dc0723f2eca92d11a
[ "MIT" ]
null
null
null
#Loop 1 x = 0 while (x <= 5): x += 1 print(x) #Loop 2 x = 0 while (x <= 5): print(x) x += 1
8.083333
15
0.453608
796c8b0a86363fc87baf8e5eab1b8c534c064704
1,238
py
Python
Lib/site-packages/PyInstaller/hooks/hook-sysconfig.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/PyInstaller/hooks/hook-sysconfig.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/PyInstaller/hooks/hook-sysconfig.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2016, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
36.411765
83
0.688207
796c8c313e5e3c2e3fba90a52da3a14c44c802c4
343
py
Python
src/fitter/__init__.py
fossabot/mfm
16fb084402ad6239a5b4fb913376392ed859f144
[ "MIT" ]
1
2018-08-11T19:04:40.000Z
2018-08-11T19:04:40.000Z
src/fitter/__init__.py
fossabot/mfm
16fb084402ad6239a5b4fb913376392ed859f144
[ "MIT" ]
68
2016-05-22T19:56:59.000Z
2018-08-11T18:40:44.000Z
src/fitter/__init__.py
fossabot/mfm
16fb084402ad6239a5b4fb913376392ed859f144
[ "MIT" ]
2
2016-12-28T17:33:22.000Z
2018-08-11T18:36:35.000Z
from .FittersChain import FittersChain from .ModelFitter import ModelFitter from .BruteForceFitter import BruteForceFitter from .BGDFitter import BGDFitter from .CoordinateDescentFitter import CoordinateDescentFitter __all__ = [ 'FittersChain', 'ModelFitter', 'BruteForceFitter', 'BGDFitter', 'Coord...
24.5
60
0.787172
796c8c51fb76dd30af45785093998b23709ea6f2
4,903
py
Python
calc/lexer.py
asynts/calc
549c249e906a457d4fd4becef9a39c0143c517b4
[ "MIT", "Unlicense" ]
null
null
null
calc/lexer.py
asynts/calc
549c249e906a457d4fd4becef9a39c0143c517b4
[ "MIT", "Unlicense" ]
2
2019-10-15T12:55:33.000Z
2021-03-02T10:21:26.000Z
calc/lexer.py
asynts/calc
549c249e906a457d4fd4becef9a39c0143c517b4
[ "MIT", "Unlicense" ]
null
null
null
''' <expression> ::= WS? <term> WS? (INFIX WS? <term> WS?)* ; <term> :: = PREFIX* WS? <value> ; <value> ::= '(' <expression> ')' / INTEGER / IDENTIFIER WS? '(' <arguments>? ')' / IDENTIFIER ; <arguments> ::= <expression> (',' <expression>)* ; ''' import re, typing from dataclass...
24.272277
80
0.544157
796c8e4833fa6a595e1793890230452667f945c7
1,663
py
Python
test/integration/test_jsonrpc.py
dacash-official/sentinel
badeede3708345331c43bb91eddab4dc657bf1e4
[ "MIT" ]
null
null
null
test/integration/test_jsonrpc.py
dacash-official/sentinel
badeede3708345331c43bb91eddab4dc657bf1e4
[ "MIT" ]
null
null
null
test/integration/test_jsonrpc.py
dacash-official/sentinel
badeede3708345331c43bb91eddab4dc657bf1e4
[ "MIT" ]
null
null
null
import pytest import sys import os import re os.environ['SENTINEL_ENV'] = 'test' os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../test_sentinel.conf')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'lib')) sys.path.append(os.path.join(os.path.dirname(__f...
31.980769
114
0.689717
796c8feaaf5356b7caa4507d050080c659ce66f3
16,524
py
Python
tests/other_tests/v4/test_host_reservation_address_mysql.py
isc-projects/forge
dfec8b41003d6b5a229f69ee93616e0e5cc6d71b
[ "0BSD" ]
22
2015-02-27T11:51:05.000Z
2022-02-28T12:39:29.000Z
tests/other_tests/v4/test_host_reservation_address_mysql.py
isc-projects/forge
dfec8b41003d6b5a229f69ee93616e0e5cc6d71b
[ "0BSD" ]
16
2018-10-30T15:00:12.000Z
2019-01-11T17:55:13.000Z
tests/other_tests/v4/test_host_reservation_address_mysql.py
isc-projects/forge
dfec8b41003d6b5a229f69ee93616e0e5cc6d71b
[ "0BSD" ]
11
2015-02-27T11:51:36.000Z
2021-03-30T08:33:54.000Z
"""Host Reservation DHCPv4 stored in MySQL database.""" # pylint: disable=invalid-name,line-too-long import pytest import srv_msg import misc import srv_control @pytest.mark.disabled @pytest.mark.host_reservation @pytest.mark.kea_only def test_v4_host_reservation_mysql_one_address_inside_pool(): misc.test_setu...
41.939086
95
0.692508
796c90416573fd12df08ae8943982369a9204b2f
6,542
py
Python
cm/app/api_v1/calculation_module.py
HotMaps/gchp_potential
a45e0abad051ab71fe476642d31ab33aac2615b7
[ "Apache-2.0" ]
2
2019-12-12T11:27:23.000Z
2021-06-24T14:14:23.000Z
cm/app/api_v1/calculation_module.py
HotMaps/gchp_potential
a45e0abad051ab71fe476642d31ab33aac2615b7
[ "Apache-2.0" ]
2
2019-12-06T19:23:03.000Z
2019-12-06T19:23:06.000Z
cm/app/api_v1/calculation_module.py
HotMaps/gchp_potential
a45e0abad051ab71fe476642d31ab33aac2615b7
[ "Apache-2.0" ]
null
null
null
from osgeo import gdal from ..helper import generate_output_file_tif, create_zip_shapefiles import logging import time import warnings import os import secrets import shutil import subprocess import pathlib from pprint import pprint import numpy as np from .my_calculation_module_directory.input_data_function import P...
32.068627
117
0.631305
796c906f018c12377d1f0130454e81a7db7c0639
4,755
py
Python
h2o-py/dynamic_tests/testdir_algos/deeplearning/pyunit_PUBDEV_2980_deeplearning_badfields_NOPASS.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/dynamic_tests/testdir_algos/deeplearning/pyunit_PUBDEV_2980_deeplearning_badfields_NOPASS.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/dynamic_tests/testdir_algos/deeplearning/pyunit_PUBDEV_2980_deeplearning_badfields_NOPASS.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
from __future__ import print_function import sys import os from builtins import range sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils from h2o.estimators.deeplearning import H2ODeepLearningEstimator class Test_PUBDEV_2980_deeplearning: """ PUBDEV-2980: deeplearning return the fiel...
42.079646
115
0.675079
796c912e807300529479685d8d9c9dd559496e14
1,477
py
Python
Python/OneLang/One/Transforms/CollectInheritanceInfo.py
onelang/OneLang-CrossCompiled
ed67f2b57e7181712c7d8c2ba85f23b3812d8e3a
[ "MIT" ]
2
2020-11-15T23:38:23.000Z
2020-11-16T00:54:25.000Z
Python/OneLang/One/Transforms/CollectInheritanceInfo.py
onelang/OneLang-CrossCompiled
ed67f2b57e7181712c7d8c2ba85f23b3812d8e3a
[ "MIT" ]
null
null
null
Python/OneLang/One/Transforms/CollectInheritanceInfo.py
onelang/OneLang-CrossCompiled
ed67f2b57e7181712c7d8c2ba85f23b3812d8e3a
[ "MIT" ]
null
null
null
from onelang_core import * import OneLang.One.Ast.Types as types import OneLang.One.ITransformer as iTrans class CollectInheritanceInfo: def __init__(self): self.name = "CollectInheritanceInfo" # C# fix self.name = "CollectInheritanceInfo" def visit_class(self, cls_): all_b...
52.75
169
0.645227
796c92679287d2d73d2c294fba71a2f2c50ba18e
441
py
Python
aiokraken/rest/tests/strats/st_assets.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
aiokraken/rest/tests/strats/st_assets.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
aiokraken/rest/tests/strats/st_assets.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
from aiokraken.model.tests.strats.st_asset import AssetStrategy from aiokraken.rest.assets import Assets import hypothesis.strategies as st @st.composite def st_assets(draw): apl = draw(st.lists(elements=AssetStrategy(), max_size=5, unique_by=lambda x: x.restname)) return Assets(assets_as_dict={ap.restname:...
23.210526
94
0.730159
796c926e9af0dbc5352a52145405245312055892
1,048
py
Python
tests/bento_service_examples/bento_service_with_modified_sys_path.py
co42/BentoML
b14c748c9a2841731c6b7694ccd61125324661ec
[ "Apache-2.0" ]
2
2020-12-15T08:58:59.000Z
2021-09-27T06:12:38.000Z
tests/bento_service_examples/bento_service_with_modified_sys_path.py
co42/BentoML
b14c748c9a2841731c6b7694ccd61125324661ec
[ "Apache-2.0" ]
1
2020-07-15T22:44:13.000Z
2020-07-16T03:42:25.000Z
tests/bento_service_examples/bento_service_with_modified_sys_path.py
co42/BentoML
b14c748c9a2841731c6b7694ccd61125324661ec
[ "Apache-2.0" ]
null
null
null
import sys from os import path import bentoml from bentoml.adapters import DataframeInput from bentoml.artifact import SklearnModelArtifact sys.path.append(path.dirname(path.abspath(__file__))) # noqa # pylint: disable=import-error from local_dependencies.my_test_dependency import dummy_util_func from local_depende...
31.757576
86
0.781489
796c9277ea1316401efc7bab7507e8a3950e580a
11,394
py
Python
opstestfw/host/ServerConfig.py
r-cc-c/ops-ft-framework
06ffd5a292e9bd0398d76b91dc327bf12025f9e2
[ "Apache-2.0" ]
null
null
null
opstestfw/host/ServerConfig.py
r-cc-c/ops-ft-framework
06ffd5a292e9bd0398d76b91dc327bf12025f9e2
[ "Apache-2.0" ]
null
null
null
opstestfw/host/ServerConfig.py
r-cc-c/ops-ft-framework
06ffd5a292e9bd0398d76b91dc327bf12025f9e2
[ "Apache-2.0" ]
1
2021-09-10T08:21:59.000Z
2021-09-10T08:21:59.000Z
# (C) Copyright 2015 Hewlett Packard Enterprise Development LP # 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/LICEN...
42.834586
152
0.582851
796c92ac820c6a1a5d03291f44bf73f47ab20703
4,919
py
Python
AWERA/power_production/kitepower_generator.py
lthUniBonn/AWERA
fa7f210516318bcfcbe1c99abbb5954b0cbaf682
[ "MIT" ]
null
null
null
AWERA/power_production/kitepower_generator.py
lthUniBonn/AWERA
fa7f210516318bcfcbe1c99abbb5954b0cbaf682
[ "MIT" ]
null
null
null
AWERA/power_production/kitepower_generator.py
lthUniBonn/AWERA
fa7f210516318bcfcbe1c99abbb5954b0cbaf682
[ "MIT" ]
null
null
null
import numpy as np from scipy import interpolate # Generator 100kW GS (?) load_steps = [0, 10, 25, 50, 75, 100, 125] # % freq_steps = [0, 10, 20, 30, 40, 50, 80, 100] # Hz efficiency_by_frequency_load = [ # Load / Frequency # 0% 10% 25% 50% 75% 100% 125% [0, 0, 0, 0, 0, 0, 0], # 0Hz [0, 73.1, 85.9, ...
33.236486
166
0.614353
796c961ad2efe08027a4a5f156347604849ca27d
1,527
py
Python
cio/node.py
andreif/content-io
e9d0a394a8abd346d3a90e092d82cd5487c19907
[ "BSD-3-Clause" ]
null
null
null
cio/node.py
andreif/content-io
e9d0a394a8abd346d3a90e092d82cd5487c19907
[ "BSD-3-Clause" ]
null
null
null
cio/node.py
andreif/content-io
e9d0a394a8abd346d3a90e092d82cd5487c19907
[ "BSD-3-Clause" ]
null
null
null
from .environment import env from .utils.uri import URI empty = object() class Node(object): def __init__(self, uri, content=None, **meta): self.env = env.state self._uri = [uri, URI(uri)] self._content = [content] self.meta = meta def __repr__(self): return u'<Node:...
23.136364
62
0.563196
796c972e65945f7d6c8857b87aa860a6423fbd63
19,548
py
Python
contigtax/prepare.py
johnne/tango-rat
cdb51683e34f682b659d61e10087d05da8fca885
[ "MIT" ]
2
2019-10-29T18:35:42.000Z
2019-11-21T07:38:38.000Z
contigtax/prepare.py
johnne/tango-rat
cdb51683e34f682b659d61e10087d05da8fca885
[ "MIT" ]
5
2020-06-07T04:36:46.000Z
2022-02-17T21:52:00.000Z
contigtax/prepare.py
johnne/tango-rat
cdb51683e34f682b659d61e10087d05da8fca885
[ "MIT" ]
2
2020-08-13T11:39:16.000Z
2021-11-15T01:22:02.000Z
from os import makedirs from os.path import exists, basename, expandvars, dirname, join as opj from ete3 import NCBITaxa import urllib.request import sys from Bio.SeqIO import parse import gzip as gz import shutil from pathlib import Path import subprocess import tarfile import time import tqdm from glob import glob ...
34.84492
79
0.586914
796c977ab31c68f76366abcce3ab5de5e540793b
8,720
py
Python
Lib/site-packages/tensorflow_core/_api/v1/ragged/__init__.py
shivammaniharsahu/django_api
6ffb3d9f70f30f5fd3ae06ec00a6dd7c7783a797
[ "bzip2-1.0.6" ]
2
2019-08-04T20:28:14.000Z
2019-10-27T23:26:42.000Z
Lib/site-packages/tensorflow_core/_api/v1/ragged/__init__.py
shivammaniharsahu/django_api
6ffb3d9f70f30f5fd3ae06ec00a6dd7c7783a797
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow_core/_api/v1/ragged/__init__.py
shivammaniharsahu/django_api
6ffb3d9f70f30f5fd3ae06ec00a6dd7c7783a797
[ "bzip2-1.0.6" ]
1
2020-11-04T03:16:29.000Z
2020-11-04T03:16:29.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Ragged Tensors. This package defines ops for manipulating ragged tensors (`tf.RaggedTensor`), which are tensors with non-uniform shapes. In particular, each `RaggedTensor` has one or mo...
52.53012
125
0.644381
796c97b090a6718dc2c65454765388a86886b2d4
65,395
py
Python
ABC_2dose_MPI.py
wasiur/VaccinationInIsrael
fdcdc21b0bd5ba4a194ba75d18f4f19b8389b19c
[ "MIT" ]
null
null
null
ABC_2dose_MPI.py
wasiur/VaccinationInIsrael
fdcdc21b0bd5ba4a194ba75d18f4f19b8389b19c
[ "MIT" ]
null
null
null
ABC_2dose_MPI.py
wasiur/VaccinationInIsrael
fdcdc21b0bd5ba4a194ba75d18f4f19b8389b19c
[ "MIT" ]
null
null
null
from mpi4py import MPI import pickle import math import time from scipy.spatial import distance from tabulate import tabulate from optparse import OptionParser from DSA_Vaccination_library import * from mycolours import * my_plot_configs() assert MPI.COMM_WORLD.Get_size() > 1 comm = MPI.COMM_WORLD rank = comm.Get_ran...
49.354717
305
0.644713
796c99b25f19163b8de665e29bde30252c4f0e55
2,723
py
Python
Air_Drawing/motion_tracker.py
chinmayjog13/Computer-Vision
a89c3a4d12e2290c920f7b7e51e94b640010f7f1
[ "MIT" ]
6
2018-06-14T13:01:36.000Z
2018-09-26T01:41:14.000Z
Air_Drawing/motion_tracker.py
chinmayjog13/Computer-Vision
a89c3a4d12e2290c920f7b7e51e94b640010f7f1
[ "MIT" ]
null
null
null
Air_Drawing/motion_tracker.py
chinmayjog13/Computer-Vision
a89c3a4d12e2290c920f7b7e51e94b640010f7f1
[ "MIT" ]
4
2018-06-15T15:43:56.000Z
2018-06-29T03:19:37.000Z
# -*- coding: utf-8 -*- """ Created on Thu May 24 09:56:26 2018 @author: CJog """ import numpy as np import cv2 import motion_Detection as md import img_proc import pickle #select your laptop webcam for your video stream cap = cv2.VideoCapture(0) #Initialise motion detection class motion = img_proc...
28.663158
89
0.572898
796c9a9a0c012123b18fa2bf88b36a99f89eb247
2,336
py
Python
gains/gym.py
thomasleese/fitbod-analysis
d7443b4272915884639e6475461eee318fd4b6ff
[ "MIT" ]
null
null
null
gains/gym.py
thomasleese/fitbod-analysis
d7443b4272915884639e6475461eee318fd4b6ff
[ "MIT" ]
null
null
null
gains/gym.py
thomasleese/fitbod-analysis
d7443b4272915884639e6475461eee318fd4b6ff
[ "MIT" ]
null
null
null
from collections import namedtuple from enum import Enum from itertools import groupby import plotly.offline as plotly import plotly.graph_objs as go Set = namedtuple('Set', ['reps', 'weight']) _Exercise = namedtuple('Exercise', ['date', 'name', 'muscle', 'sets']) class Muscle(Enum): abs = 'abs' triceps =...
22.037736
70
0.580908
796c9ab2ceeb6dcacaad040d93525b6ae8cfa87c
170
py
Python
tests/logging/capture_logs_test_secondary.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
tests/logging/capture_logs_test_secondary.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
13
2020-05-04T14:14:58.000Z
2020-07-29T16:37:03.000Z
tests/logging/capture_logs_test_secondary.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
import logging def log_in_secondary_module(message: str) -> None: logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) logger.debug(message)
21.25
50
0.747059
796c9b5f14a3389be6d752b71cfdec85cdbbdafe
2,054
py
Python
Scientific Expedition/YAML_more_types.py
piotr-sawicki/CheckIO_Islands
5705eb21bc41ddd0d9d839933bc89322958b1992
[ "MIT" ]
null
null
null
Scientific Expedition/YAML_more_types.py
piotr-sawicki/CheckIO_Islands
5705eb21bc41ddd0d9d839933bc89322958b1992
[ "MIT" ]
null
null
null
Scientific Expedition/YAML_more_types.py
piotr-sawicki/CheckIO_Islands
5705eb21bc41ddd0d9d839933bc89322958b1992
[ "MIT" ]
null
null
null
# https://py.checkio.org/en/mission/yaml-more-types/ def translate(v): replace_dict = { 'null': None, '': None, 'true': True, 'True': True, 'false': False, 'False': False } try: value = int(v) except ValueError: if v in replace_dict: ...
26.675325
76
0.490263
796c9b69d59ee79928a5e9e614f3668c3192d098
21,041
py
Python
tests/components/insteon/test_config_flow.py
jonasjeeliasson/core
0301706fc631ad1f2cd2532667ba9dfe2f856198
[ "Apache-2.0" ]
4
2020-08-10T20:02:24.000Z
2022-01-31T02:14:22.000Z
tests/components/insteon/test_config_flow.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
78
2020-07-23T07:13:08.000Z
2022-03-31T06:02:04.000Z
tests/components/insteon/test_config_flow.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Test the config flow for the Insteon integration.""" from unittest.mock import patch from homeassistant import config_entries, data_entry_flow, setup from homeassistant.components.insteon.config_flow import ( HUB1, HUB2, MODEM_TYPE, PLM, STEP_ADD_OVERRIDE, STEP_ADD_X10, STEP_CHANGE_HUB_...
34.436989
88
0.675776
796c9b84d610902d4470b0b526d547a24de669bd
3,723
py
Python
sdk/python/pulumi_azure_nextgen/insights/v20200301preview/get_component_linked_storage_account.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/insights/v20200301preview/get_component_linked_storage_account.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/insights/v20200301preview/get_component_linked_storage_account.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
39.606383
182
0.687886