hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
df2d50b13d6118ebb3209f5087fbc8dc10515a8f
10,949
py
Python
ucsmsdk/mometa/fabric/FabricFcMonDestEp.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/fabric/FabricFcMonDestEp.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/fabric/FabricFcMonDestEp.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for FabricFcMonDestEp ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class FabricFcMonDestEpConsts: ADMIN_SPEED_16GBPS = "16gbps" ADMIN_SPEED_1GBPS = "1gbps" ADMIN_SP...
64.02924
317
0.658782
68fe6fe8560fa7c6e8c7575b43e549d047270ae5
984
py
Python
migrations/versions/f033e26ef177_initial_migration.py
Berthedusabeyezu/Picth
b9c9b3039aa76a40058594f5ce755b8cb56005ff
[ "MIT" ]
null
null
null
migrations/versions/f033e26ef177_initial_migration.py
Berthedusabeyezu/Picth
b9c9b3039aa76a40058594f5ce755b8cb56005ff
[ "MIT" ]
null
null
null
migrations/versions/f033e26ef177_initial_migration.py
Berthedusabeyezu/Picth
b9c9b3039aa76a40058594f5ce755b8cb56005ff
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: f033e26ef177 Revises: 435148246c3d Create Date: 2019-03-05 08:48:13.110813 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f033e26ef177' down_revision = '435148246c3d' branch_labels = None depends_on = None def upgrade(): ...
26.594595
65
0.674797
0d9add65f11590c371222fa054e05a0d2d59022f
68
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/K/kelvin-atomic mass unit relationship.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/K/kelvin-atomic mass unit relationship.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/K/kelvin-atomic mass unit relationship.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
constants.physical_constants["kelvin-atomic mass unit relationship"]
68
68
0.867647
14ee62057d355e6571588805ea5c36b388aabd2f
6,889
py
Python
manim_engine/once_useful_constructs/combinatorics.py
nmamano/sanim
b4b8603bfb86678f7448364135292cde7b02d719
[ "MIT" ]
1
2021-07-05T08:59:57.000Z
2021-07-05T08:59:57.000Z
manim_engine/once_useful_constructs/combinatorics.py
nmamano/sanim
b4b8603bfb86678f7448364135292cde7b02d719
[ "MIT" ]
null
null
null
manim_engine/once_useful_constructs/combinatorics.py
nmamano/sanim
b4b8603bfb86678f7448364135292cde7b02d719
[ "MIT" ]
null
null
null
from manim_engine.constants import * from manim_engine.mobject.svg.tex_mobject import TexMobject from manim_engine.mobject.types.vectorized_mobject import VMobject, VGroup from manim_engine.mobject.numbers import Integer from manim_engine.scene.scene import Scene from manim_engine.utils.simple_functions import choose ...
35.328205
79
0.561765
951dbbf634f5dfcca99c8adbef42067cd82d7d19
4,479
py
Python
doc/source/conf.py
openstack/congress
85243abf63dfc7c086e28e9bdb3fb0b7c9d2ad94
[ "Apache-2.0" ]
50
2015-04-21T14:12:01.000Z
2020-06-01T06:23:13.000Z
doc/source/conf.py
openstack-archive/congress
85243abf63dfc7c086e28e9bdb3fb0b7c9d2ad94
[ "Apache-2.0" ]
4
2015-09-25T04:42:38.000Z
2019-10-12T19:37:46.000Z
doc/source/conf.py
openstack-archive/congress
85243abf63dfc7c086e28e9bdb3fb0b7c9d2ad94
[ "Apache-2.0" ]
25
2015-05-22T04:02:33.000Z
2020-01-14T12:15:12.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 # distributed under the...
31.321678
79
0.697924
b15d753b3a2691f8cedbbacd99255253111f951b
677
py
Python
shiny_sheep/shiny_sheep/users/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
shiny_sheep/shiny_sheep/users/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
shiny_sheep/shiny_sheep/users/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import gettext_lazy as _ class User(AbstractUser): """Default user for Shiny Sheep. """ #: First and last name do not cover name patterns around the glo...
29.434783
74
0.686854
8b0d3a6614e92dd722263a293b8ba3f460a0bfe3
35,348
py
Python
scipy/integrate/_ode.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
1
2018-10-04T15:34:14.000Z
2018-10-04T15:34:14.000Z
scipy/integrate/_ode.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/integrate/_ode.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
# Authors: Pearu Peterson, Pauli Virtanen, John Travers """ First-order ODE integrators. User-friendly interface to various numerical integrators for solving a system of first order ODEs with prescribed initial conditions:: d y(t)[i] --------- = f(t,y(t))[i], d t y(t=0)[i] = y0[i], where:: ...
32.88186
84
0.538361
500eee08da6b630ecbe38700899309b202448910
1,679
py
Python
marmee/abstract_marmee.py
francbartoli/marmee
f971adc84636629b9afbe79c917b74cac81fabf2
[ "MIT" ]
2
2018-05-02T08:11:44.000Z
2020-08-09T23:30:04.000Z
marmee/abstract_marmee.py
francbartoli/marmee
f971adc84636629b9afbe79c917b74cac81fabf2
[ "MIT" ]
215
2018-03-06T03:28:23.000Z
2021-02-08T20:44:08.000Z
marmee/abstract_marmee.py
francbartoli/marmee
f971adc84636629b9afbe79c917b74cac81fabf2
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Francesco Bartoli # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # -*- coding: utf-8 -*- from abc import ABCMeta, abstractmethod, abstractproperty """Marmee module.""" class AbstractMarmee(object): """Give docstring for AbstractMarmee.""" _...
27.080645
65
0.660512
d1ce970636df1655b0a937afcf76e8229e66f622
849
py
Python
dic_data/pdd_pagedata/all/file_gen_sep_head.py
cabbagerice/word-chain
5d2978df61a7136f502b1b601213e97454103e1e
[ "BSD-2-Clause" ]
null
null
null
dic_data/pdd_pagedata/all/file_gen_sep_head.py
cabbagerice/word-chain
5d2978df61a7136f502b1b601213e97454103e1e
[ "BSD-2-Clause" ]
6
2019-07-28T20:34:58.000Z
2021-05-10T06:53:05.000Z
dic_data/pdd_pagedata/all/file_gen_sep_head.py
cabbagerice/word-chain
5d2978df61a7136f502b1b601213e97454103e1e
[ "BSD-2-Clause" ]
null
null
null
import re def fi_le(head,source): pattern = re.compile(r'@%s'%head) print(pattern) data,tmp,flag=[],[],False for l in source: if re.match(pattern,l): tmp.append(f"@{l[1:]}") flag=True elif (not re.match(r"^\n",l)) and flag: tmp.appe...
26.53125
58
0.464075
aba3ddeb69eba08c0e71cbb8238d63d0c26a1af3
1,558
py
Python
src/pages/migrations/0003_filmparameter.py
chairco/dj-realtime-visualization
49cdee124bf7414fde5245f28329f65adb359599
[ "0BSD" ]
null
null
null
src/pages/migrations/0003_filmparameter.py
chairco/dj-realtime-visualization
49cdee124bf7414fde5245f28329f65adb359599
[ "0BSD" ]
7
2018-09-28T03:31:51.000Z
2022-03-11T23:29:00.000Z
src/pages/migrations/0003_filmparameter.py
chairco/dj-realtime-visualization
49cdee124bf7414fde5245f28329f65adb359599
[ "0BSD" ]
null
null
null
# Generated by Django 2.0.7 on 2018-07-06 06:09 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('pages', '0002_auto_20180705_0951'), ] operations = [ migrations.CreateModel( name='FilmParameter', ...
47.212121
114
0.598845
2e9e950cfe4f48b81020e5e4d44c9444ae501136
6,554
py
Python
neo/bin/import_blocks.py
WhisperQFun/neo-python
1790581bfb9c91e92814fe6624997f90c08f989f
[ "MIT" ]
1
2019-06-11T06:03:48.000Z
2019-06-11T06:03:48.000Z
neo/bin/import_blocks.py
WhisperQFun/neo-python
1790581bfb9c91e92814fe6624997f90c08f989f
[ "MIT" ]
null
null
null
neo/bin/import_blocks.py
WhisperQFun/neo-python
1790581bfb9c91e92814fe6624997f90c08f989f
[ "MIT" ]
1
2019-06-16T04:29:49.000Z
2019-06-16T04:29:49.000Z
#!/usr/bin/env python3 from neo.Core.Blockchain import Blockchain from neo.Core.Block import Block from neo.IO.MemoryStream import MemoryStream from neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain import LevelDBBlockchain from neo.Implementations.Blockchains.LevelDB.DBPrefix import DBPrefix from neo.Settings...
35.619565
134
0.668904
0db5a4b1cf91865bdf2e7e2c16bf0079606cea37
2,114
py
Python
trucoGemSite/trucoGemSite/settings.py
emmanuel-santos/GEM
ee04c652a623550581f95579c80bc4f9d084c3cd
[ "MIT" ]
1
2015-10-28T14:11:49.000Z
2015-10-28T14:11:49.000Z
trucoGemSite/trucoGemSite/settings.py
emmanuel-santos/GEM
ee04c652a623550581f95579c80bc4f9d084c3cd
[ "MIT" ]
null
null
null
trucoGemSite/trucoGemSite/settings.py
emmanuel-santos/GEM
ee04c652a623550581f95579c80bc4f9d084c3cd
[ "MIT" ]
null
null
null
""" Django settings for trucoGemSite project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, .....
24.298851
71
0.736518
5c7bef4373980eea1507a2a16d9068a020148737
5,244
py
Python
Edge-Detection/canny_edge.py
HarshShah03325/Image_Processing
f15b7d8d7e2b055de11b1eb94925555852c5c901
[ "MIT" ]
6
2021-09-11T02:53:49.000Z
2021-12-14T18:07:29.000Z
Edge-Detection/canny_edge.py
HarshShah03325/Image_Processing
f15b7d8d7e2b055de11b1eb94925555852c5c901
[ "MIT" ]
null
null
null
Edge-Detection/canny_edge.py
HarshShah03325/Image_Processing
f15b7d8d7e2b055de11b1eb94925555852c5c901
[ "MIT" ]
null
null
null
from PIL import Image from math import sqrt import numpy as np def gaussian_blur(input_image): kernel=[[1 / 256, 4 / 256, 6 / 256, 4 / 256, 1 / 256], [4 / 256, 16 / 256, 24 / 256, 16 / 256, 4 / 256], [6 / 256, 24 / 256, 36 / 256, 24 / 256, 6 / 256], [4 / 256, 16 / 256, 24 / 25...
35.432432
120
0.487414
384769a81083c687eeee744b2add7edef6f89fab
847
py
Python
setup.py
owlint/CookiesNoticeRemover
fe922637cc585f818b41e453847df366fcada2d0
[ "Apache-2.0" ]
null
null
null
setup.py
owlint/CookiesNoticeRemover
fe922637cc585f818b41e453847df366fcada2d0
[ "Apache-2.0" ]
null
null
null
setup.py
owlint/CookiesNoticeRemover
fe922637cc585f818b41e453847df366fcada2d0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import find_packages, setup import removecookiesnotice setup( name="removecookiesnotice", version=removecookiesnotice.__version__, packages=find_packages(), author="Laurent Evrard", author_email="laurent@owlint.fr", description="To...
29.206897
62
0.656434
d8522f8ef1555498e3a9afbec82d931801f6e51d
720
py
Python
babelsubs/generators/dfxp.py
bendk/babelsubs
d2b503338781307b09e4ee40758d1c6c18976d31
[ "BSD-3-Clause" ]
1
2016-12-26T21:09:33.000Z
2016-12-26T21:09:33.000Z
babelsubs/generators/dfxp.py
bendk/babelsubs
d2b503338781307b09e4ee40758d1c6c18976d31
[ "BSD-3-Clause" ]
null
null
null
babelsubs/generators/dfxp.py
bendk/babelsubs
d2b503338781307b09e4ee40758d1c6c18976d31
[ "BSD-3-Clause" ]
null
null
null
from babelsubs.generators.base import register, BaseGenerator class DFXPGenerator(BaseGenerator): """ Since the internal storage is already in dfxp, the generator is just a small shim to keep the public interface between all generators regular. """ file_type = ['dfxp', 'xml' ] def __init_...
28.8
74
0.706944
51df736c314aac79d0f2d101d3bbfbe399decdca
7,010
py
Python
tests/test_transactions.py
ixc/dps-pxpy
27659b2a62022921fa9833b57916e7c985e63871
[ "MIT" ]
1
2017-10-05T03:58:26.000Z
2017-10-05T03:58:26.000Z
tests/test_transactions.py
ixc/dps-pxpy
27659b2a62022921fa9833b57916e7c985e63871
[ "MIT" ]
2
2017-04-20T02:40:17.000Z
2018-08-29T06:00:28.000Z
tests/test_transactions.py
ixc/dps-pxpy
27659b2a62022921fa9833b57916e7c985e63871
[ "MIT" ]
1
2018-08-29T05:37:34.000Z
2018-08-29T05:37:34.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest import decimal from dps import transactions as txn class MockTransaction(txn.BaseTransaction): amount = txn.AmountField(required=True) currency = txn.StringField(max_length=4, choices=txn.CURRENCY_CHOICES, required=True) e...
29.087137
122
0.619829
05d87a983cee72b648895a2541485a669b4b87c7
2,426
py
Python
tests/test_constants.py
eli88fine/nuclease-off-target
2fc1fba942c0f50e51b87c2a596d1666c29a2489
[ "MIT" ]
null
null
null
tests/test_constants.py
eli88fine/nuclease-off-target
2fc1fba942c0f50e51b87c2a596d1666c29a2489
[ "MIT" ]
32
2020-10-07T13:05:40.000Z
2022-03-31T21:04:59.000Z
tests/test_constants.py
eli88fine/nuclease-off-target
2fc1fba942c0f50e51b87c2a596d1666c29a2489
[ "MIT" ]
1
2022-01-16T04:29:08.000Z
2022-01-16T04:29:08.000Z
# -*- coding: utf-8 -*- from nuclease_off_target import ALIGNMENT_GAP_CHARACTER from nuclease_off_target import CAS_VARIETIES from nuclease_off_target import SECONDS_BETWEEN_UCSC_REQUESTS from nuclease_off_target import SEPARATION_BETWEEN_GUIDE_AND_PAM from nuclease_off_target import VERTICAL_ALIGNMENT_DNA_BULGE_CHARAC...
28.880952
70
0.468673
a8e5f97b3878c750a84c33078d8612b678f2f5ba
1,716
py
Python
globe/util/_user.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
globe/util/_user.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
14
2018-04-06T16:19:38.000Z
2018-04-09T18:59:08.000Z
globe/util/_user.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
#used to handle user authentication, registration, and user's folder from globe import app from globe.models import User import uuid def get_id(username): user = User.query.filter_by(username=unicode.title(username)).first() return user.id def password_hash_matches(userid, password): storedPass = User.query.f...
23.506849
94
0.734848
d0a8b53e7dea9b6e09e03c0f5e0e98c3836a1867
914
py
Python
Arrays/longest_increasing_subsequence.py
omk42/a
d996b4407460017321ac63ccc5ed92505d1d459b
[ "Apache-2.0" ]
null
null
null
Arrays/longest_increasing_subsequence.py
omk42/a
d996b4407460017321ac63ccc5ed92505d1d459b
[ "Apache-2.0" ]
null
null
null
Arrays/longest_increasing_subsequence.py
omk42/a
d996b4407460017321ac63ccc5ed92505d1d459b
[ "Apache-2.0" ]
null
null
null
#Longest increasing subsequence # The Longest Increasing Subsequence (LIS) problem is to find the length of the longest subsequence of a given sequence such that all elements of the subsequence are sorted in increasing order. For example, the length of LIS for {10, 22, 9, 33, 21, 50, 41, 60, 80} is 6 and LIS is {10, 2...
30.466667
306
0.611597
1fdd11c4b63bcb2f5f1f3301ab1699a49735b5cc
223
py
Python
torrentsearch/File.py
romanpitak/torrentsearch
ea4723ce40ea0a23fc4969038c01086adc237e8b
[ "MIT" ]
null
null
null
torrentsearch/File.py
romanpitak/torrentsearch
ea4723ce40ea0a23fc4969038c01086adc237e8b
[ "MIT" ]
1
2015-09-01T08:30:06.000Z
2015-09-01T08:30:06.000Z
torrentsearch/File.py
romanpitak/torrentsearch
ea4723ce40ea0a23fc4969038c01086adc237e8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .utils import * class File: def __init__(self): self.name = '' self.size = 0.0 def __str__(self): return '{} ({})'.format(self.name, human_sized(self.size))
15.928571
66
0.538117
685b8e599be2dba96abc7143b76882067052613f
593
py
Python
168.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
168.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
168.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
"""168 · Burst Balloons""" class Solution: """ @param nums: A list of integer @return: An integer, maximum coins """ def maxCoins(self, nums): # write your code here if not nums: return 0 nums = [1, *nums, 1] print(nums) n = len(nums) dp = ...
26.954545
95
0.441821
921dc9486f53c5aff9db96e8023644dbfc0dc0c6
12,674
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_identity_sql_control_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_identity_sql_control_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_identity_sql_control_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
52.589212
231
0.696939
9d519e154166be0615fd1de3bb18a236dfeb67c4
2,905
py
Python
METRIC/extract_wx_data.py
NASA-DEVELOP/METRIC
88071a4368b821bdf2d1ce3fb349bb93a028bd51
[ "NASA-1.3" ]
42
2015-12-28T21:05:58.000Z
2021-07-02T11:48:02.000Z
METRIC/extract_wx_data.py
Surf0618/METRIC
88071a4368b821bdf2d1ce3fb349bb93a028bd51
[ "NASA-1.3" ]
10
2016-02-19T17:38:25.000Z
2020-10-03T08:24:56.000Z
METRIC/extract_wx_data.py
Surf0618/METRIC
88071a4368b821bdf2d1ce3fb349bb93a028bd51
[ "NASA-1.3" ]
34
2015-12-28T23:48:20.000Z
2021-12-29T03:00:59.000Z
__author__ = "jwely" import time_series import textio from datetime import datetime def extract_wx_data(time_obj, wx_path): """ This function was writen to reenstate wx file parsing for tha greed upon NOAA weather data format for any study area within the USA. This is THE function that should be us...
38.223684
129
0.680207
911207b4312a1d21ddf92fea22f914cbcf6b911c
680
py
Python
cms/urls.py
360youlun/django-cms
bc1240fd46de4c04f3b5402be99a81728a4a324c
[ "BSD-3-Clause" ]
1
2019-04-15T10:28:46.000Z
2019-04-15T10:28:46.000Z
cms/urls.py
vstoykov/django-cms
344a62654c5785d8bc6d668e85132e1a79978aa3
[ "BSD-3-Clause" ]
null
null
null
cms/urls.py
vstoykov/django-cms
344a62654c5785d8bc6d668e85132e1a79978aa3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.conf.urls import url from cms.apphook_pool import apphook_pool from cms.appresolver import get_app_patterns from cms.views import details if settings.APPEND_SLASH: regex = r'^(?P<slug>[0-9A-Za-z-_.//]+)/$' else: regex = r'^(?P<slug>[0-9A-Za...
26.153846
63
0.676471
be9989d062f2112916398c46155a5b9ae8b1a54b
38,914
py
Python
tests/loops/test_loops.py
adamviola/pytorch-lightning
9826de21625b162dfef43f30864b5a6d9efab003
[ "Apache-2.0" ]
8
2020-01-15T06:58:15.000Z
2021-11-05T11:36:36.000Z
tests/loops/test_loops.py
adamviola/pytorch-lightning
9826de21625b162dfef43f30864b5a6d9efab003
[ "Apache-2.0" ]
3
2020-02-16T07:58:26.000Z
2020-03-30T09:32:55.000Z
tests/loops/test_loops.py
adamviola/pytorch-lightning
9826de21625b162dfef43f30864b5a6d9efab003
[ "Apache-2.0" ]
3
2020-02-15T21:35:52.000Z
2021-02-06T09:13:49.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
38.490603
120
0.66223
9d2bfa21faea8198d7434edbb6c1febfca82ef78
1,547
py
Python
TerminalCodeVersion.py
PranavEranki/Stocks
9521f195a00b3216ed40283834890a9527138ca1
[ "MIT" ]
null
null
null
TerminalCodeVersion.py
PranavEranki/Stocks
9521f195a00b3216ed40283834890a9527138ca1
[ "MIT" ]
null
null
null
TerminalCodeVersion.py
PranavEranki/Stocks
9521f195a00b3216ed40283834890a9527138ca1
[ "MIT" ]
null
null
null
import quandl import numpy as np from sklearn import preprocessing from sklearn.linear_model import LinearRegression from sklearn.linear_model import Lasso import warnings import plotHelper import printHelper import randomRetrieval warnings.filterwarnings("ignore") def getData(name): data = quandl.get("WIKI/" ...
23.089552
75
0.707822
171a74982a389b78288ff2696dcdf4847b14ee79
1,199
py
Python
server/engines/autodet_engine/model_manager_bus.py
CanboYe/BusEdge
2e53e1d1d82559fc3e9f0029b2f0faf4e356b210
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2021-08-17T14:14:28.000Z
2022-02-02T02:09:33.000Z
server/engines/autodet_engine/model_manager_bus.py
cmusatyalab/gabriel-BusEdge
528a6ee337882c6e709375ecd7ec7e201083c825
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
server/engines/autodet_engine/model_manager_bus.py
cmusatyalab/gabriel-BusEdge
528a6ee337882c6e709375ecd7ec7e201083c825
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-09-01T16:18:29.000Z
2021-09-01T16:18:29.000Z
# SPDX-FileCopyrightText: 2021 Carnegie Mellon University # # SPDX-License-Identifier: Apache-2.0 import argparse import glob import os import time from detector_fbnet import AutoDetector def main(): parser = argparse.ArgumentParser() parser.add_argument( "-t", "--target-name", defa...
26.644444
75
0.662219
f7fc514a52d7fd959e3b80d9c3b97a0d2c8a549c
3,204
py
Python
cinder/db/sqlalchemy/migrate_repo/versions/021_add_default_quota_class.py
yanheven/cinder
89797971f30d547acbf715fea099c52d90966d1f
[ "Apache-2.0" ]
null
null
null
cinder/db/sqlalchemy/migrate_repo/versions/021_add_default_quota_class.py
yanheven/cinder
89797971f30d547acbf715fea099c52d90966d1f
[ "Apache-2.0" ]
null
null
null
cinder/db/sqlalchemy/migrate_repo/versions/021_add_default_quota_class.py
yanheven/cinder
89797971f30d547acbf715fea099c52d90966d1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
36.409091
78
0.645443
100682e1e569dc035da05b799cd1f72d4632de7b
22,339
py
Python
lisa/energy_meter.py
bea-arm/lisa
95b95b302bef76093e8eaad91f291ec2c4e085ec
[ "Apache-2.0" ]
null
null
null
lisa/energy_meter.py
bea-arm/lisa
95b95b302bef76093e8eaad91f291ec2c4e085ec
[ "Apache-2.0" ]
null
null
null
lisa/energy_meter.py
bea-arm/lisa
95b95b302bef76093e8eaad91f291ec2c4e085ec
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, ARM Limited and contributors. # # 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 # # ...
34.687888
151
0.60137
5a8b77cf5e793424d2c73d417ea5473e5b61876a
3,594
py
Python
StockAnalysisSystem/plugin/Collector/index_data_tushare_pro.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
138
2018-01-03T03:32:49.000Z
2022-03-12T02:57:46.000Z
StockAnalysisSystem/plugin/Collector/index_data_tushare_pro.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
9
2018-01-01T03:16:24.000Z
2021-05-27T09:57:24.000Z
StockAnalysisSystem/plugin/Collector/index_data_tushare_pro.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
50
2019-08-05T01:02:30.000Z
2022-03-07T00:52:14.000Z
import pandas as pd import tushare as ts from StockAnalysisSystem.core.config import TS_TOKEN from StockAnalysisSystem.core.Utility.common import * from StockAnalysisSystem.core.Utility.time_utility import * from StockAnalysisSystem.core.Utility.CollectorUtility import * # -------------------------------------------...
31.80531
120
0.46995
d837d738a0b2aced11dfee63ccc0883b35ddfcad
5,428
py
Python
tests/models/test_legacy.py
kyleheyne/mopidy
3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca
[ "Apache-2.0" ]
2
2019-02-13T15:16:55.000Z
2019-02-18T08:47:29.000Z
tests/models/test_legacy.py
kyleheyne/mopidy
3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca
[ "Apache-2.0" ]
40
2019-02-13T09:33:00.000Z
2019-02-19T13:21:12.000Z
tests/models/test_legacy.py
kyleheyne/mopidy
3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca
[ "Apache-2.0" ]
1
2020-03-10T05:11:49.000Z
2020-03-10T05:11:49.000Z
from __future__ import absolute_import, unicode_literals import unittest from mopidy.models import ImmutableObject class Model(ImmutableObject): uri = None name = None models = frozenset() def __init__(self, *args, **kwargs): self.__dict__['models'] = frozenset(kwargs.pop('models', None) or...
32.89697
77
0.629698
f8c7b4f8b150365f75b15a702d4197ead8a6514d
1,203
py
Python
jacdac/light_bulb/client.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-15T21:30:36.000Z
2022-02-15T21:30:36.000Z
jacdac/light_bulb/client.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
null
null
null
jacdac/light_bulb/client.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-08T19:32:45.000Z
2022-02-08T19:32:45.000Z
# Autogenerated file. Do not edit. from jacdac.bus import Bus, Client from .constants import * from typing import Optional class LightBulbClient(Client): """ A light bulb controller. Implements a client for the `Light bulb <https://microsoft.github.io/jacdac-docs/services/lightbulb>`_ service. """ ...
30.846154
115
0.684123
f6504bcad6d9ae92a3dc424b60aef25053b8a442
18,682
py
Python
python/ccxt/bit2c.py
sky1008/ccxt
dc094a17dddb2f5fd703901f0b0a08d3fa2618f4
[ "MIT" ]
1
2022-03-20T07:15:44.000Z
2022-03-20T07:15:44.000Z
python/ccxt/bit2c.py
sky1008/ccxt
dc094a17dddb2f5fd703901f0b0a08d3fa2618f4
[ "MIT" ]
null
null
null
python/ccxt/bit2c.py
sky1008/ccxt
dc094a17dddb2f5fd703901f0b0a08d3fa2618f4
[ "MIT" ]
2
2022-03-08T20:43:26.000Z
2022-03-14T19:28:27.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
41.059341
167
0.488063
06da4846ccd52eaa3b96486cecb589fbdd58c436
2,666
py
Python
daps/test/test_datasets.py
escorciav/deep-action-proposals
c14f512febc1abd0ec40bd3188a83e4ee3913535
[ "MIT" ]
28
2017-03-19T12:02:22.000Z
2021-07-08T13:49:41.000Z
daps/test/test_datasets.py
escorciav/deep-action-proposals
c14f512febc1abd0ec40bd3188a83e4ee3913535
[ "MIT" ]
2
2018-05-07T07:43:15.000Z
2018-12-14T16:06:48.000Z
daps/test/test_datasets.py
escorciav/deep-action-proposals
c14f512febc1abd0ec40bd3188a83e4ee3913535
[ "MIT" ]
7
2017-03-19T11:51:21.000Z
2020-01-07T11:17:48.000Z
import unittest import nose.tools as nt import pandas as pd from daps.datasets import Dataset, DatasetBase, ActivityNet, Thumos14 def test_Dataset(): for i in ['thumos14', 'activitynet']: ds = Dataset(i) nt.assert_is_instance(ds.wrapped_dataset, DatasetBase) # Assert main methods ...
34.623377
78
0.666917
c406ea88672b70b4c306a76d8a96bb253354b8de
6,296
py
Python
ZotCollectionNotes.py
dkiesow/Zotero-Workflows
e4e727a59a8025691cd4ed74a2d19cbc34aa351c
[ "MIT" ]
2
2021-01-27T19:17:09.000Z
2022-02-26T22:27:40.000Z
ZotCollectionNotes.py
dkiesow/Zotero-Workflows
e4e727a59a8025691cd4ed74a2d19cbc34aa351c
[ "MIT" ]
3
2020-12-13T15:13:28.000Z
2020-12-31T02:23:24.000Z
ZotCollectionNotes.py
dkiesow/Zotero-Workflows
e4e727a59a8025691cd4ed74a2d19cbc34aa351c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import config as cfg from pyzotero import zotero import datetime import io import sys import re userID = cfg.zotCollectionNotes["userID"] secretKey = cfg.zotCollectionNotes["secretKey"] filePath = cfg.zotCollectionNotes["filePath"] # collectionQuery = cfg.zotCollectionNotes["collectionQuery"] def...
41.421053
118
0.623888
27bab3c4651428c5a7f4a9944c00d5054c794783
2,849
py
Python
warp/tests/test_all.py
addy1997/warp
1c231e3eda88a39ce8142b9727e918d2a3e4a4b1
[ "MIT", "Unlicense", "Apache-2.0", "0BSD" ]
null
null
null
warp/tests/test_all.py
addy1997/warp
1c231e3eda88a39ce8142b9727e918d2a3e4a4b1
[ "MIT", "Unlicense", "Apache-2.0", "0BSD" ]
null
null
null
warp/tests/test_all.py
addy1997/warp
1c231e3eda88a39ce8142b9727e918d2a3e4a4b1
[ "MIT", "Unlicense", "Apache-2.0", "0BSD" ]
null
null
null
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relate...
47.483333
129
0.824149
e5c258bae2f15b7fe07a9663153e35be60bb1814
6,622
py
Python
setup.py
bsolomon1124/pycld3
af6187d4020eafbe3f8517fa144072a8aa1d9bbc
[ "Apache-2.0" ]
101
2019-10-06T09:52:56.000Z
2022-03-28T16:37:21.000Z
setup.py
bsolomon1124/pycld3
af6187d4020eafbe3f8517fa144072a8aa1d9bbc
[ "Apache-2.0" ]
22
2019-10-10T13:54:04.000Z
2022-02-09T11:17:19.000Z
setup.py
bsolomon1124/pycld3
af6187d4020eafbe3f8517fa144072a8aa1d9bbc
[ "Apache-2.0" ]
10
2019-10-10T10:09:30.000Z
2021-02-26T07:27:45.000Z
#!/usr/bin/env python import os import platform import shutil import subprocess from distutils.command.build import build from os import makedirs, path from setuptools import Extension, setup use_cython_val = os.environ.get("USE_CYTHON") USE_CYTHON = use_cython_val is not None and use_cython_val not in ("0", "false"...
34.310881
117
0.657203
e76346b8c6ea721c292e173ba322d5807875e457
1,849
py
Python
azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.254902
114
0.646836
5fd419241e542812b31ae858b734d687e794fcfb
1,222
py
Python
resources/lib/screensaver.py
drinfernoo/screensaver.arctic.mirage
759d4750fad65a3279d51264e9963214c4a35a92
[ "Apache-2.0" ]
5
2020-03-20T10:43:34.000Z
2022-02-21T18:21:41.000Z
resources/lib/screensaver.py
drinfernoo/screensaver.arctic.mirage
759d4750fad65a3279d51264e9963214c4a35a92
[ "Apache-2.0" ]
2
2020-03-18T02:40:35.000Z
2020-03-23T03:39:04.000Z
resources/lib/screensaver.py
drinfernoo/screensaver.arctic.mirage
759d4750fad65a3279d51264e9963214c4a35a92
[ "Apache-2.0" ]
2
2020-05-06T21:46:04.000Z
2021-09-01T21:53:29.000Z
# -*- coding: utf-8 -*- import xbmc import xbmcgui from resources.lib import utils class Screensaver(xbmcgui.WindowXMLDialog): class ExitMonitor(xbmc.Monitor): def __init__(self, exit_callback): self.exit_callback = exit_callback def onScreensa...
28.418605
79
0.569558
d75380c7f93cf504e36d7b8aad4924bb1e6a7e9d
1,692
py
Python
icarus/test/test_util.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
5
2021-03-20T09:22:55.000Z
2021-12-20T17:01:33.000Z
icarus/test/test_util.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
1
2021-12-13T07:40:46.000Z
2021-12-20T16:59:08.000Z
icarus/test/test_util.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
1
2021-11-25T05:42:20.000Z
2021-11-25T05:42:20.000Z
import unittest import networkx as nx import fnss import icarus.util as util class TestUtil(unittest.TestCase): @classmethod def setUpClass(cls): pass @classmethod def tearDownClass(cls): pass def setUp(self): pass def tearDown(self): pass def test_ti...
32.538462
82
0.615839
1318a4d98850f4d4bba27f17b882c8756b9ede97
1,702
py
Python
text/urls.py
qianwenrock/block
81d09dd4c419cb5487d6d7a9bbcbe214d3428b9c
[ "Apache-2.0" ]
null
null
null
text/urls.py
qianwenrock/block
81d09dd4c419cb5487d6d7a9bbcbe214d3428b9c
[ "Apache-2.0" ]
null
null
null
text/urls.py
qianwenrock/block
81d09dd4c419cb5487d6d7a9bbcbe214d3428b9c
[ "Apache-2.0" ]
null
null
null
"""text URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
30.945455
79
0.681551
271e9761bbe6d1b8b98d0bc695520c9b3a8eef03
4,579
py
Python
pico_vna_adapt/Lib/site-packages/daytime.py
Henriksen-Lab/Simple_DAQ
3bd313df4c80340eb367081400cb6d75ba132623
[ "MIT" ]
null
null
null
pico_vna_adapt/Lib/site-packages/daytime.py
Henriksen-Lab/Simple_DAQ
3bd313df4c80340eb367081400cb6d75ba132623
[ "MIT" ]
null
null
null
pico_vna_adapt/Lib/site-packages/daytime.py
Henriksen-Lab/Simple_DAQ
3bd313df4c80340eb367081400cb6d75ba132623
[ "MIT" ]
null
null
null
import time import datetime class Daytime(datetime.time): """ Compare, add or substract daytimes. This module extends the datetime.time-module and makes it more handy respectivly to comparison, addition and substraction. You can compare, add and substract a daytime-object with other daytime-o...
30.324503
82
0.613016
c025435785000b6ee271a54399a7b124b30aa3c8
628
py
Python
src/PYnative/exercise/Basic Exercise/Q9.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
src/PYnative/exercise/Basic Exercise/Q9.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
src/PYnative/exercise/Basic Exercise/Q9.py
c-w-m/learning_python
8f06aa41faf9195d978a7d21cbb329280b0d3200
[ "CNRI-Python" ]
null
null
null
# Reverse a given number and return true if it is the same as the original number # My Solution def reverse(num): reversed = str(num)[::-1] return num == int(reversed) print("Original and reverse number are equal") print(reverse(121)) # Given Solution def reverseCheck(number): originalNum = number ...
21.655172
81
0.652866
eaeeab89606da65bc0421869f13f4a23a1a1fefe
18,164
py
Python
bin/design_naively.py
broadinstitute/adapt
ae0346dbd8c77fa9bcefbec5358cc750b146474d
[ "MIT" ]
12
2020-11-25T21:19:27.000Z
2022-03-07T10:55:52.000Z
bin/design_naively.py
broadinstitute/adapt
ae0346dbd8c77fa9bcefbec5358cc750b146474d
[ "MIT" ]
17
2020-11-30T15:49:13.000Z
2022-03-17T01:12:45.000Z
bin/design_naively.py
broadinstitute/adapt
ae0346dbd8c77fa9bcefbec5358cc750b146474d
[ "MIT" ]
3
2021-04-28T13:48:07.000Z
2022-01-10T16:51:34.000Z
#!/usr/bin/env python3 """Design guides naively for diagnostics. This can be used as a baseline for the output of design.py. """ import argparse import logging import heapq from adapt import alignment from adapt.utils import log from adapt.utils import seq_io __author__ = 'Hayden Metsky <hmetsky@broadinstitute.org>...
45.98481
120
0.619247
48162f3cc66c64d98e213b60b81d604e4c2f7b8e
9,302
py
Python
tests/test_targetapplication.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
tests/test_targetapplication.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
tests/test_targetapplication.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
import json import validator.testcases.targetapplication as targetapp from validator.constants import * from validator.errorbundler import ErrorBundle from validator.rdf import RDFParser from helper import _do_test targetapp.APPROVED_APPLICATIONS = \ json.load(open("validator/app_versions.json")) def _do_te...
36.622047
79
0.612664
571a864fd235725550c463dedb715c9b3f3b7f05
3,209
py
Python
pop_movies.py
aberdean/movie-trailer-website
bda1523f57af2b051b9686c5479e229a33039b21
[ "MIT" ]
null
null
null
pop_movies.py
aberdean/movie-trailer-website
bda1523f57af2b051b9686c5479e229a33039b21
[ "MIT" ]
null
null
null
pop_movies.py
aberdean/movie-trailer-website
bda1523f57af2b051b9686c5479e229a33039b21
[ "MIT" ]
null
null
null
import requests import json from fresh_tomatoes import open_movies_page # PLEASE, INSERT YOUR API KEY BELOW API_KEY = "" # The base URLs for the TMDb API, the poster image, and the YouTube trailer. BASE_URL = "https://api.themoviedb.org/3/movie/" BASE_POSTER_URL = "https://image.tmdb.org/t/p/w500" BASE_TRAILER_URL = ...
34.880435
77
0.643191
4f75084d7a618a1e516e472892a6169de0d10946
8,639
py
Python
build/scripts/gen_configin.py
HelloAllen8893/AliOS-Things
f3a2904860c3bf87b64d634e6900d980931fac88
[ "Apache-2.0" ]
2
2018-08-20T08:33:55.000Z
2018-11-28T03:19:22.000Z
build/scripts/gen_configin.py
HelloAllen8893/AliOS-Things
f3a2904860c3bf87b64d634e6900d980931fac88
[ "Apache-2.0" ]
null
null
null
build/scripts/gen_configin.py
HelloAllen8893/AliOS-Things
f3a2904860c3bf87b64d634e6900d980931fac88
[ "Apache-2.0" ]
1
2021-06-20T06:43:12.000Z
2021-06-20T06:43:12.000Z
#!/usr/bin/env python import os, sys, re import shutil from aos_parse_components import get_comp_name # Global definitions templatedir = "build/scripts/kconfig_template" top_config_in = "build/Config.in" board_config_in = "board/Config.in" example_config_in = "app/example/Config.in" profile_config_in = "app/profile/...
34.418327
99
0.550179
d0c3fdf097b5c1d74004c2a73eda727ffc5a05b3
4,897
py
Python
dstapi.py
alemartinello/dstapi
100f847e9d93a05eb4c648699b044e1c2bc9f6cb
[ "MIT" ]
13
2021-12-30T23:35:52.000Z
2022-03-25T12:39:36.000Z
dstapi.py
alemartinello/dstapi
100f847e9d93a05eb4c648699b044e1c2bc9f6cb
[ "MIT" ]
null
null
null
dstapi.py
alemartinello/dstapi
100f847e9d93a05eb4c648699b044e1c2bc9f6cb
[ "MIT" ]
1
2022-01-06T09:18:11.000Z
2022-01-06T09:18:11.000Z
""" Helper class to facilitate working with Statistics Denmark's API. See the official API documentation here https://www.dst.dk/da/Statistik/brug-statistikken/muligheder-i-statistikbanken/api Author: Alessandro Tang-Andersen Martinello """ import requests import warnings import pandas as pd from io import StringIO ...
34.978571
94
0.559935
45e51345310104429fdb8a0e5e01e12832e1d036
5,158
py
Python
unifold/model/tf/protein_features.py
nwod-edispu/Uni-Fold
0ebfaf234807523067759d4c300694bb58cfb991
[ "Apache-2.0" ]
null
null
null
unifold/model/tf/protein_features.py
nwod-edispu/Uni-Fold
0ebfaf234807523067759d4c300694bb58cfb991
[ "Apache-2.0" ]
null
null
null
unifold/model/tf/protein_features.py
nwod-edispu/Uni-Fold
0ebfaf234807523067759d4c300694bb58cfb991
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Beijing DP Technology Co., 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 applicable law or a...
39.676923
82
0.686506
3f80457245f047f57a9f3ca8049acfcc65d1b2f8
20,343
py
Python
tflearn/optimizers.py
amongstar/https-github.com-tflearn-tflearn
8af77b5aebcb8aba0f1b855201aed732906c6de8
[ "MIT" ]
2
2019-08-04T04:21:57.000Z
2019-08-05T21:58:52.000Z
tflearn/optimizers.py
amongstar/https-github.com-tflearn-tflearn
8af77b5aebcb8aba0f1b855201aed732906c6de8
[ "MIT" ]
null
null
null
tflearn/optimizers.py
amongstar/https-github.com-tflearn-tflearn
8af77b5aebcb8aba0f1b855201aed732906c6de8
[ "MIT" ]
6
2020-04-13T15:33:30.000Z
2020-06-21T19:26:55.000Z
from __future__ import division, print_function, absolute_import import tensorflow as tf from .utils import get_from_module def get(identifier): return get_from_module(identifier, globals(), 'optimizer') class Optimizer(object): """ Base Optimizer class. A basic class to create optimizers to be used w...
35.752197
105
0.647004
9ee6e98f29e801ad531b8aaad9845325ec4face8
4,888
py
Python
tests/test_decode_attribute_types.py
jnothman/liac-arff
45fc0a87fe31e165fd912ed9973c5de3c345787b
[ "MIT" ]
1
2021-05-04T18:01:51.000Z
2021-05-04T18:01:51.000Z
tests/test_decode_attribute_types.py
jnothman/liac-arff
45fc0a87fe31e165fd912ed9973c5de3c345787b
[ "MIT" ]
null
null
null
tests/test_decode_attribute_types.py
jnothman/liac-arff
45fc0a87fe31e165fd912ed9973c5de3c345787b
[ "MIT" ]
null
null
null
import unittest import arff class TestDecodeAttributeTypes(unittest.TestCase): def get_decoder(self): decoder = arff.ArffDecoder() return decoder def test_numeric(self): '''Numeric attributes.''' decoder = self.get_decoder() # Simple case fixture = u'@ATTRIBUTE...
33.251701
79
0.61027
55ab1662a009a8563438fcc14c34039775db935e
6,729
py
Python
wpkit/web/utils.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/web/utils.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/web/utils.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
from wpkit import piu from wpkit import pkg_info from wpkit.basic import join_path,IterObject,SecureDirPath,PointDict,Path,DirPath,PowerDirPath,Status,StatusSuccess,StatusError from wpkit.basic import render_template as render from flask import request,render_template,redirect,make_response,jsonify import functools,ins...
36.372973
127
0.596671
4bf057b3259a2fa79c7ec42bc14bce97a8adff63
1,502
py
Python
examples/pylab_examples/date_demo1.py
nkoep/matplotlib
6ed04252994443a4cecf95f0da0efedb6d514b38
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
examples/pylab_examples/date_demo1.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/pylab_examples/date_demo1.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
#!/usr/bin/env python """ Show how to make date plots in matplotlib using date tick locators and formatters. See major_minor_demo1.py for more information on controlling major and minor ticks All matplotlib date plotting is done by converting date instances into days since the 0001-01-01 UTC. The conversion, tick lo...
27.814815
70
0.767643
41063e45ec1a2246ffab8aabe339172c2236af90
354
py
Python
demo/settings/settings-prod.py
terrluo/nginx_uwsgi_django
aa86e453316f5f7301f42571c4b9b1cd0b046d4e
[ "MIT" ]
null
null
null
demo/settings/settings-prod.py
terrluo/nginx_uwsgi_django
aa86e453316f5f7301f42571c4b9b1cd0b046d4e
[ "MIT" ]
6
2020-04-23T06:31:27.000Z
2022-02-10T09:56:09.000Z
demo/settings/settings-prod.py
terrluo/nginx_uwsgi_django
aa86e453316f5f7301f42571c4b9b1cd0b046d4e
[ "MIT" ]
1
2019-08-23T09:15:50.000Z
2019-08-23T09:15:50.000Z
#!/usr/bin/python from .settings import * DEBUG = False ALLOWED_HOSTS = ['*'] _env = os.environ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': _env['DB_NAME'], 'USER': _env['DB_USER'], 'PASSWORD': _env['DB_PASS'], 'HOST': _env['DB_HOST'], ...
17.7
45
0.531073
b3e5df86351fbc86d90e12e988c3838846674998
1,573
py
Python
ts.py
concreted/tspy
3cab31833225da7daedc3ef457cd00ea9465f1d5
[ "MIT" ]
1
2016-11-07T01:03:42.000Z
2016-11-07T01:03:42.000Z
ts.py
concreted/tspy
3cab31833225da7daedc3ef457cd00ea9465f1d5
[ "MIT" ]
null
null
null
ts.py
concreted/tspy
3cab31833225da7daedc3ef457cd00ea9465f1d5
[ "MIT" ]
2
2016-06-21T19:25:54.000Z
2018-09-21T01:10:18.000Z
import sys from math import sqrt def distance(a, b): x,y = a z,w = b return sqrt((x-z)**2 + (y-w)**2) def create_graph(count, points): graph = [] for i in range(count): row = [] p1 = points[i] for j in range(count): p2 = points[j] row.append(distan...
22.797101
104
0.51494
fb6c5237abde9abad98c6eccc1072b81a415e24a
3,710
py
Python
contrib/macdeploy/custom_dsstore.py
microftech65/syscoin
f1009e323a153095e1151c3abe173c8fb801b16c
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
microftech65/syscoin
f1009e323a153095e1151c3abe173c8fb801b16c
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
microftech65/syscoin
f1009e323a153095e1151c3abe173c8fb801b16c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018 The Syscoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
61.833333
1,817
0.724259
3977caea49e5441e59605613dab9ae554e8588cd
438
py
Python
server/server.py
cntnboys/410Lab3
f8cbd2fd41cd99ac0e6c1047b5f574df4f3cf437
[ "Apache-2.0" ]
null
null
null
server/server.py
cntnboys/410Lab3
f8cbd2fd41cd99ac0e6c1047b5f574df4f3cf437
[ "Apache-2.0" ]
null
null
null
server/server.py
cntnboys/410Lab3
f8cbd2fd41cd99ac0e6c1047b5f574df4f3cf437
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #got this from https://pointlessprogramming.wordpress.com/2011/02/13/python-cgi-tutorial-2/ import BaseHTTPServer import CGIHTTPServer import cgitb; cgitb.enable() server = BaseHTTPServer.HTTPServer handler = CGIHTTPServer.CGIHTTPRequestHandler server_address = ("", 8888) handler.cgi_direct...
19.909091
91
0.760274
ef0a3cff789384f55c7648ecf1a3ab20b011d274
3,509
py
Python
app.py
zujiancai/AccountAggregator
01827a3382814d2253cef66d0fe63dd685cbf6fc
[ "MIT" ]
null
null
null
app.py
zujiancai/AccountAggregator
01827a3382814d2253cef66d0fe63dd685cbf6fc
[ "MIT" ]
null
null
null
app.py
zujiancai/AccountAggregator
01827a3382814d2253cef66d0fe63dd685cbf6fc
[ "MIT" ]
null
null
null
from decimal import Decimal from flask import Flask, request, render_template import json from banking import Banking from common import ColName, SummarizeName, CategoryName from loader import range_query app = Flask(__name__) def error_response(message: str, error: int): return render_template('error.html', c...
36.936842
148
0.603306
30219bb7e48ff7dff026d7ef060024d72be39012
12,464
py
Python
qa/rpc-tests/util.py
TeamGastroCoin/gastrocoin
dd0c6a5add7a5bec064943aca21a734c49cdd8ad
[ "MIT" ]
null
null
null
qa/rpc-tests/util.py
TeamGastroCoin/gastrocoin
dd0c6a5add7a5bec064943aca21a734c49cdd8ad
[ "MIT" ]
1
2021-11-28T11:22:58.000Z
2021-11-28T11:22:58.000Z
qa/rpc-tests/util.py
TeamGastroCoin/gastrocoin
dd0c6a5add7a5bec064943aca21a734c49cdd8ad
[ "MIT" ]
3
2021-03-25T00:32:22.000Z
2021-05-18T18:56:15.000Z
# Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2014-2015 The Dash developers # Copyright (c) 2021-2021 The GastroCoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regress...
36.023121
110
0.64915
0b36472812eded86549f77477a5d84d896695146
2,076
py
Python
ccbot/scrapy-cluster-1.2.1/docker/redis-monitor/settings.py
avvinci/cccatalog-api
523ce68ace7484cfb338ae81e6bcda3e37f63609
[ "MIT" ]
2
2019-04-22T11:47:57.000Z
2021-01-04T14:59:08.000Z
ccbot/scrapy-cluster-1.2.1/docker/redis-monitor/settings.py
avvinci/cccatalog-api
523ce68ace7484cfb338ae81e6bcda3e37f63609
[ "MIT" ]
32
2021-01-07T23:49:24.000Z
2022-03-02T15:03:41.000Z
ccbot/scrapy-cluster-1.2.1/docker/redis-monitor/settings.py
avvinci/cccatalog-api
523ce68ace7484cfb338ae81e6bcda3e37f63609
[ "MIT" ]
null
null
null
# THIS FILE SHOULD STAY IN SYNC WITH /redis-monitor/settings.py # This file houses all default settings for the Redis Monitor # to override please use a custom localsettings.py file import os def str2bool(v): return str(v).lower() in ('true', '1') if type(v) == str else bool(v) # Redis host configuration REDIS_HO...
29.657143
84
0.743256
529f07f274dc1da176d09f5c4425cfe1c083ad3f
907
py
Python
cx_setup.py
AdvancedPhotonSource/xPlotUtil
99c2d2f35ffda26a5cc13a55dbb0b81d4ee047d4
[ "FSFAP" ]
1
2021-08-07T13:44:26.000Z
2021-08-07T13:44:26.000Z
cx_setup.py
AdvancedPhotonSource/xPlotUtil
99c2d2f35ffda26a5cc13a55dbb0b81d4ee047d4
[ "FSFAP" ]
3
2019-02-26T18:04:29.000Z
2019-04-09T20:14:31.000Z
cx_setup.py
AdvancedPhotonSource/xPlotUtil
99c2d2f35ffda26a5cc13a55dbb0b81d4ee047d4
[ "FSFAP" ]
1
2017-03-23T17:40:05.000Z
2017-03-23T17:40:05.000Z
from cx_Freeze import setup, Executable import os import sys import scipy import matplotlib includefiles_list=[] scipy_path = os.path.dirname(scipy.__file__) includefiles_list.append(scipy_path) matplotlib_path = os.path.dirname(matplotlib.__file__) includefiles_list.append(matplotlib_path) os_path = os.path.dirname(...
34.884615
112
0.737596
0b30ebd7e5145f4c747ebb00da98db4ddd4146cd
13,833
py
Python
homeassistant/components/group/media_player.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
4
2021-07-11T09:11:00.000Z
2022-02-27T14:43:50.000Z
homeassistant/components/group/media_player.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
46
2021-04-21T08:11:44.000Z
2022-03-31T06:10:12.000Z
homeassistant/components/group/media_player.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
1
2021-05-17T17:22:34.000Z
2021-05-17T17:22:34.000Z
"""This platform allows several media players to be grouped into one media player.""" from __future__ import annotations from collections.abc import Callable from typing import Any import voluptuous as vol from homeassistant.components.media_player import ( ATTR_MEDIA_CONTENT_ID, ATTR_MEDIA_CONTENT_TYPE, ...
32.779621
98
0.623437
b89b9d2722d7915128bcecbdf827cb9c5a7116ff
24,987
py
Python
pycqed/analysis_v2/tomography_V2.py
DiCarloLab-Delft/PycQED_py3
0d4457cd5d3d097305c7ecee4dc9541c309dcda9
[ "MIT" ]
60
2016-08-03T10:00:18.000Z
2021-11-10T11:46:16.000Z
pycqed/analysis_v2/tomography_V2.py
DiCarloLab-Delft/PycQED_py3
0d4457cd5d3d097305c7ecee4dc9541c309dcda9
[ "MIT" ]
512
2016-08-03T17:10:02.000Z
2022-03-31T14:03:43.000Z
pycqed/analysis_v2/tomography_V2.py
DiCarloLab-Delft/PycQED_py3
0d4457cd5d3d097305c7ecee4dc9541c309dcda9
[ "MIT" ]
34
2016-10-19T12:00:52.000Z
2022-03-19T04:43:26.000Z
import time import numpy as np import scipy as scipy try: import qutip as qt except ImportError as e: import logging logging.warning('Could not import qutip, tomo code will not work') from pycqed.analysis_v2 import pytomo as csdp_tomo comp_projectors = [qt.ket2dm(qt.tensor(qt.basis(2,0), qt.basis(2,0))), ...
47.867816
159
0.636131
a78386a09fdcaaf01e20b4773cbfbf987adb5507
36,129
py
Python
daemon/core/gui/graph/graph.py
montag451/core
3be162b0b0f54b35520b980023abdfad4ff5e489
[ "BSD-2-Clause" ]
null
null
null
daemon/core/gui/graph/graph.py
montag451/core
3be162b0b0f54b35520b980023abdfad4ff5e489
[ "BSD-2-Clause" ]
null
null
null
daemon/core/gui/graph/graph.py
montag451/core
3be162b0b0f54b35520b980023abdfad4ff5e489
[ "BSD-2-Clause" ]
null
null
null
import logging import tkinter as tk from typing import TYPE_CHECKING, List, Tuple from PIL import Image, ImageTk from core.api.grpc import core_pb2 from core.gui.dialogs.shapemod import ShapeDialog from core.gui.graph import tags from core.gui.graph.edges import EDGE_WIDTH, CanvasEdge, CanvasWirelessEdge from core.gu...
37.439378
94
0.560132
c9b026954258a443ff6e808b33f9267cf33b01c3
1,607
py
Python
tikz/nps/datas_and_predictions.py
wesselb/wesselb.github.io
d3bc6d5566fa40db3873c3b4797c47fbdb81037c
[ "MIT" ]
1
2022-03-08T02:58:21.000Z
2022-03-08T02:58:21.000Z
tikz/nps/datas_and_predictions.py
wesselb/wesselb.github.io
d3bc6d5566fa40db3873c3b4797c47fbdb81037c
[ "MIT" ]
null
null
null
tikz/nps/datas_and_predictions.py
wesselb/wesselb.github.io
d3bc6d5566fa40db3873c3b4797c47fbdb81037c
[ "MIT" ]
1
2017-04-02T14:37:38.000Z
2017-04-02T14:37:38.000Z
from stheno import GP, Matern52 import matplotlib.pyplot as plt import matplotlib from wbml.plot import tweak, pdfcrop import numpy as np np.random.seed(8) x = np.linspace(0, 6, 100) f = GP(Matern52()) prefix = ['', '', '\\tilde'] context_label = ['^{(c)}_1', '^{(c)}_n', ''] target_label = ['^{(t)}_1', '^{(t)}_n',...
28.192982
60
0.614188
7552542137fa8c531b324f417152d1f8d4f90799
670
py
Python
python/AlgoritmosPython/idade.py
jonfisik/Projects
7847f32c9e333cfca31cc127db175d9b4080ed0f
[ "MIT" ]
2
2020-09-05T22:25:37.000Z
2021-06-01T21:34:54.000Z
python/AlgoritmosPython/idade.py
jonfisik/Projects
7847f32c9e333cfca31cc127db175d9b4080ed0f
[ "MIT" ]
null
null
null
python/AlgoritmosPython/idade.py
jonfisik/Projects
7847f32c9e333cfca31cc127db175d9b4080ed0f
[ "MIT" ]
null
null
null
__author__ = 'JPaschoal' __version__ = '1.0.1' __email__ = 'jonfisik@hotmail.com' __date__ = '04/05/2021' def traco(): return print('-----'*10) print('') print("IDADE, QUANDO?") traco() numero = int(input('Digite o número de pessoas: ')) cont = 0 print('') print('Informe') while cont < numero: nome = st...
22.333333
79
0.592537
780535150988b607bc87f81e35c85068c4765e50
915
py
Python
var/spack/repos/builtin/packages/hsf-cmaketools/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/hsf-cmaketools/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/hsf-cmaketools/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class HsfCmaketools(Package): """CMake 'Find' modules for commonly used HEP Packages""" hom...
33.888889
93
0.706011
7107940e1a1939e8db711de1d2e52ab7d1cfac19
19,955
py
Python
examples/nlp/question-answering.py
I-Anirban/keras-io
9fdf6bec8e849471d484576ba81a74c334d8f6f9
[ "Apache-2.0" ]
null
null
null
examples/nlp/question-answering.py
I-Anirban/keras-io
9fdf6bec8e849471d484576ba81a74c334d8f6f9
[ "Apache-2.0" ]
null
null
null
examples/nlp/question-answering.py
I-Anirban/keras-io
9fdf6bec8e849471d484576ba81a74c334d8f6f9
[ "Apache-2.0" ]
null
null
null
""" Title: Question Answering with Hugging Face Transformers Author: Matthew Carrigan and Merve Noyan Date created: 13/01/2022 Last modified: 13/01/2022 Description: Question answering implementation using Keras and Hugging Face Transformers. """ """ ## Introduction to Question Answering Question answering is a common...
46.952941
101
0.754197
7213eb686727f06f566e50a1924291247cc309f8
10,313
py
Python
decavision/model_testing/testing.py
Decathlon/decavision
b79d2b5611025a5f8519b9154acf04844ef8fb91
[ "MIT" ]
3
2020-12-08T19:14:46.000Z
2021-03-30T15:12:44.000Z
decavision/model_testing/testing.py
Decathlon/decavision
b79d2b5611025a5f8519b9154acf04844ef8fb91
[ "MIT" ]
13
2021-03-30T15:12:49.000Z
2022-03-12T00:51:57.000Z
decavision/model_testing/testing.py
Decathlon/decavision
b79d2b5611025a5f8519b9154acf04844ef8fb91
[ "MIT" ]
1
2021-03-30T15:20:56.000Z
2021-03-30T15:20:56.000Z
import glob import math import os import random import matplotlib.pyplot as plt import numpy as np import seaborn as sn from sklearn.metrics import confusion_matrix, classification_report import tensorflow as tf from tensorflow.keras.models import load_model import tensorflow_hub as hub from decavision.utils import d...
40.285156
224
0.591002
8cb8e5407ef24ec617dea6652f08e46426f70974
780
py
Python
src/run_integ_test.py
nsri19/opensearch-build
90ad75b51a08f199981a4a46b7f3e6e49371415a
[ "Apache-2.0" ]
null
null
null
src/run_integ_test.py
nsri19/opensearch-build
90ad75b51a08f199981a4a46b7f3e6e49371415a
[ "Apache-2.0" ]
13
2021-10-02T00:22:47.000Z
2022-02-08T17:49:38.000Z
src/run_integ_test.py
peternied/opensearch-build
4c7c2e5ffc61e8a5ca263d7a2fff2ad3f73fdbe6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import sys from manifests.test_manifest import TestManifest from system import console from test_workflo...
23.636364
80
0.765385
d9cd2a800fc70b766d97731393a2c3ca48a9edbb
5,951
py
Python
mythril/analysis/callgraph.py
yrashk/mythril
0cea8f562726da468ab4761ff1ff3746ab0d747a
[ "MIT" ]
1
2018-09-07T10:17:35.000Z
2018-09-07T10:17:35.000Z
mythril/analysis/callgraph.py
yrashk/mythril
0cea8f562726da468ab4761ff1ff3746ab0d747a
[ "MIT" ]
null
null
null
mythril/analysis/callgraph.py
yrashk/mythril
0cea8f562726da468ab4761ff1ff3746ab0d747a
[ "MIT" ]
1
2018-06-14T08:36:03.000Z
2018-06-14T08:36:03.000Z
import re from jinja2 import Environment, PackageLoader, select_autoescape from mythril.laser.ethereum.svm import NodeFlags import z3 default_opts = { 'autoResize': True, 'height': '100%', 'width': '100%', 'manipulation': False, 'layout': { 'improvedLayout': True, 'hierarchical': {...
35.634731
147
0.532179
e1e342ceb82d5dc530d7d7dafbe8813594f0778e
4,328
py
Python
fdn/fdnlib/utils.py
hobbymarks/ufdn
1864775b060df1aec5e9c115930d0ebdff3bab44
[ "MIT" ]
1
2021-02-16T04:42:10.000Z
2021-02-16T04:42:10.000Z
fdn/fdnlib/utils.py
hobbymarks/ufdn
1864775b060df1aec5e9c115930d0ebdff3bab44
[ "MIT" ]
3
2021-04-28T08:29:14.000Z
2021-05-08T01:34:50.000Z
fdn/fdnlib/utils.py
hobbymarks/UFn
02f18be74b94749effdb9a6a82a0d7e7db8aaccf
[ "MIT" ]
null
null
null
import difflib import hashlib import os from pathlib import Path from typing import Generator, List, Optional, Tuple, Union # From Third Party import click from colorama import Fore from wcwidth import wcswidth def is_hidden(f_path: Path) -> bool: """ Check file is hidden or not :param f_path: string,fil...
30.695035
79
0.51964
9cc9aaec05c45ecd11e7f414b7d1f259efa423ea
6,425
py
Python
attendance_management_bot/common/utils.py
ja3toa/samplebot_attendance_management_bot
aafbc4baa9d95f6485e709c0fd6af003811d0813
[ "Apache-2.0" ]
4
2021-05-07T01:16:04.000Z
2022-03-27T07:15:59.000Z
attendance_management_bot/common/utils.py
ja3toa/samplebot_attendance_management_bot
aafbc4baa9d95f6485e709c0fd6af003811d0813
[ "Apache-2.0" ]
4
2021-04-09T02:11:39.000Z
2021-09-12T08:57:12.000Z
attendance_management_bot/common/utils.py
ja3toa/samplebot_attendance_management_bot
aafbc4baa9d95f6485e709c0fd6af003811d0813
[ "Apache-2.0" ]
108
2020-02-10T01:44:36.000Z
2022-03-07T03:00:19.000Z
#!/bin/env python # -*- coding: utf-8 -*- """ Copyright 2020-present Works Mobile Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requir...
34.358289
83
0.651673
415e46396cea2f65d557776ac7b19710a5e53d81
11,726
py
Python
tests/hardware/dummy_modules.py
zea2/qupulse
49a930bfe95f3f0c878daab5e52fd0c8aa8a4ff6
[ "MIT" ]
null
null
null
tests/hardware/dummy_modules.py
zea2/qupulse
49a930bfe95f3f0c878daab5e52fd0c8aa8a4ff6
[ "MIT" ]
null
null
null
tests/hardware/dummy_modules.py
zea2/qupulse
49a930bfe95f3f0c878daab5e52fd0c8aa8a4ff6
[ "MIT" ]
null
null
null
"""Import dummy modules if actual modules not installed. Sets dummy modules in sys so subsequent imports use the dummies""" import sys from typing import Set import unittest.mock class dummy_package: pass class dummy_pytabor(dummy_package): @staticmethod def open_session(*args, **kwargs): return ...
43.42963
132
0.621098
8461b416e3ec2b1bc20418606020140b44eeba95
2,031
py
Python
test/azure/Expected/AcceptanceTests/AzureResource/azureresource/models/flattened_product_py3.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureResource/azureresource/models/flattened_product_py3.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureResource/azureresource/models/flattened_product_py3.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.295082
139
0.568685
78c8e8eefe210e192eee3bd1a335e5904788560e
9,110
py
Python
fidesctl/src/fidesctl/cli/cli.py
Tannahooks/fides
d4e1b3bdf3490a31ae5a7876b65ce527884d25d8
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesctl/cli/cli.py
Tannahooks/fides
d4e1b3bdf3490a31ae5a7876b65ce527884d25d8
[ "Apache-2.0" ]
7
2022-01-06T21:44:11.000Z
2022-02-01T23:43:59.000Z
fidesctl/src/fidesctl/cli/cli.py
Tannahooks/fides
d4e1b3bdf3490a31ae5a7876b65ce527884d25d8
[ "Apache-2.0" ]
2
2022-01-11T21:14:50.000Z
2022-01-12T17:43:01.000Z
"""Contains all of the CLI commands for Fides.""" import click import requests from fidesctl.cli.options import ( dry_flag, fides_key_argument, manifests_dir_argument, resource_type_argument, yes_flag, verbose_flag, ) from fidesctl.cli.utils import ( handle_cli_response, pretty_echo, ) ...
27.522659
105
0.678156
44f6f088a7fc4d22b3732126985ea57ff8bf8562
1,834
py
Python
module1/s2_sparql_neloial.py
neloial/tac
b4d92629c293a15016fed0ce80a7dfde4bf68b19
[ "MIT" ]
null
null
null
module1/s2_sparql_neloial.py
neloial/tac
b4d92629c293a15016fed0ce80a7dfde4bf68b19
[ "MIT" ]
null
null
null
module1/s2_sparql_neloial.py
neloial/tac
b4d92629c293a15016fed0ce80a7dfde4bf68b19
[ "MIT" ]
null
null
null
"""Query Wikidata for Belgian cities and towns""" import argparse from SPARQLWrapper import SPARQLWrapper, JSON parser = argparse.ArgumentParser() parser.add_argument('-f', '--filter', type=str, help='Filtering on name') parser.add_argument('-n', '--number', type=int, help='Number of rows to display') def get_rows(...
31.62069
96
0.633588
9fff4904b7b636efc637d202816c5ef41995015a
7,956
py
Python
pysnmp/HM2-PLATFORM-MMRP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HM2-PLATFORM-MMRP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HM2-PLATFORM-MMRP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HM2-PLATFORM-MMRP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HM2-PLATFORM-MMRP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:19:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
126.285714
1,494
0.793741
341f7eafc13bf36a748d9e9fa75651c5775c3fbd
368
py
Python
malcolm/modules/ca/parts/calongpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/ca/parts/calongpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/ca/parts/calongpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
from malcolm.modules.builtin.vmetas import NumberMeta from .capart import CAPart class CALongPart(CAPart): """Defines an int32 `Attribute` that talks to a DBR_LONG longout PV""" def create_meta(self, description, tags): return NumberMeta("int32", description=description, tags=tags) def get_datat...
28.307692
74
0.733696
e0ae23b149bca6082c783ed2ec0e8742e7b3e857
796
py
Python
checkov/terraform/checks/resource/azure/RedisCacheMinTLSVersion.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
1
2022-02-20T21:20:39.000Z
2022-02-20T21:20:39.000Z
checkov/terraform/checks/resource/azure/RedisCacheMinTLSVersion.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/azure/RedisCacheMinTLSVersion.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from checkov.common.models.enums import CheckResult, CheckCategories from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck class RedisCacheMinTLSVersion(BaseResourceValueCheck): def __init__(self): name = "Ensure Redis Cache is using the latest version of TLS encry...
36.181818
106
0.738693
92408d34f2d652b6200b47f1d840e3b47254ce41
10,520
py
Python
Lib/site-packages/qutebrowser/mainwindow/statusbar/command.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/qutebrowser/mainwindow/statusbar/command.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qutebrowser/mainwindow/statusbar/command.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
36.527778
79
0.603612
9003999c457416899b2a041f1f30a74d2ef82358
2,155
py
Python
src/signatures/glcm.py
imagexdsearch/imagesearch
7f4d18906d6ebd9f5d7b4e0db4bc6c7e675fbb1d
[ "BSD-2-Clause" ]
null
null
null
src/signatures/glcm.py
imagexdsearch/imagesearch
7f4d18906d6ebd9f5d7b4e0db4bc6c7e675fbb1d
[ "BSD-2-Clause" ]
null
null
null
src/signatures/glcm.py
imagexdsearch/imagesearch
7f4d18906d6ebd9f5d7b4e0db4bc6c7e675fbb1d
[ "BSD-2-Clause" ]
null
null
null
''' Created on 4 de mar de 2016 Compute the GLCM features with or without mask @author: romue ''' import numpy as np from skimage.feature import greycomatrix,greycoprops def glcm(imagem,name,label,d,grayLevels_new, grayLevels_old): if grayLevels_new != grayLevels_old: imagem = categorizar(image...
34.758065
96
0.634803
35d0356f1cdabe73c660d1db99ee4a1b0963ad37
2,638
py
Python
Proj/2048/demo.py
PiscesDream/Ideas
9ba710e62472f183ae4525f35659cd265c71392e
[ "Apache-2.0" ]
null
null
null
Proj/2048/demo.py
PiscesDream/Ideas
9ba710e62472f183ae4525f35659cd265c71392e
[ "Apache-2.0" ]
null
null
null
Proj/2048/demo.py
PiscesDream/Ideas
9ba710e62472f183ae4525f35659cd265c71392e
[ "Apache-2.0" ]
null
null
null
from _2048 import _2048 from numpy.random import choice, randint from numpy import argmax, all def show(game): #visualize the chessboard print game.get_point() #or just game.point print game.get_board() #or just game.board def judge_function(board...
32.170732
138
0.444276
70504d513c93d92e0bfc570769212ad5fb6a335c
4,566
py
Python
qa/rpc-tests/test_framework/netutil.py
weiqitong/LMCOIN
6feed8ba8267d79cd2d4a793ada08ad8de7cf57e
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/netutil.py
weiqitong/LMCOIN
6feed8ba8267d79cd2d4a793ada08ad8de7cf57e
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/netutil.py
weiqitong/LMCOIN
6feed8ba8267d79cd2d4a793ada08ad8de7cf57e
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Lmcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Linux network utilities import sys import socket import fcntl import struct import array import os impor...
32.614286
113
0.599869
9440b45aff2d1d2bdbe6c7eafe228a9613e1ce57
65
py
Python
tests/asl_Map/workflow_map_state_delivery_test/checkAvailability.py
lhoste-bell/knix
8d3f0ed3b8a09e62b7d5098b10851b9fa42d7ce1
[ "Apache-2.0" ]
167
2020-04-20T22:16:29.000Z
2022-03-15T22:53:43.000Z
tests/asl_Map/workflow_map_state_delivery_test/checkAvailability.py
lhoste-bell/knix
8d3f0ed3b8a09e62b7d5098b10851b9fa42d7ce1
[ "Apache-2.0" ]
98
2020-05-07T03:34:44.000Z
2022-01-04T21:30:49.000Z
tests/asl_Map/workflow_map_state_delivery_test/checkAvailability.py
lhoste-bell/knix
8d3f0ed3b8a09e62b7d5098b10851b9fa42d7ce1
[ "Apache-2.0" ]
20
2020-04-29T14:45:29.000Z
2021-09-26T09:51:04.000Z
#!/usr/bin/python def handle(event, context): return event
10.833333
27
0.676923
11fb6b61af559048fcda7138eda2287d0ecd558d
3,781
py
Python
firebase_admin/instance_id.py
kushal12345/firebase-admin-python
14e5dc4721f9908e132f137c87bf0dc6b8709f63
[ "Apache-2.0" ]
4
2019-02-17T17:52:55.000Z
2020-05-06T06:45:56.000Z
firebase_admin/instance_id.py
kushal12345/firebase-admin-python
14e5dc4721f9908e132f137c87bf0dc6b8709f63
[ "Apache-2.0" ]
null
null
null
firebase_admin/instance_id.py
kushal12345/firebase-admin-python
14e5dc4721f9908e132f137c87bf0dc6b8709f63
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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, ...
36.355769
97
0.694525
8f1a34b3326ee64f975e7b3c3f170c4a407f1ec5
18,682
py
Python
NSFW_photo_classification.py
i2cy/lewdity_CNN
f616a040c90069b0bd36501794abf1f6ab6ff55b
[ "MIT" ]
null
null
null
NSFW_photo_classification.py
i2cy/lewdity_CNN
f616a040c90069b0bd36501794abf1f6ab6ff55b
[ "MIT" ]
null
null
null
NSFW_photo_classification.py
i2cy/lewdity_CNN
f616a040c90069b0bd36501794abf1f6ab6ff55b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Author: i2cy(i2cy@outlook.com) # Filename: NSFW_classification # Created on: 2020/8/28 import os, time, psutil import random import pathlib import numpy as np # *屏蔽tensorflow警告信息输出 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf # *RTX硬件兼容性修改配置 tf.config...
36.848126
119
0.555294
e49e6a81cc60492767ccac3a720150ecd2161066
251
py
Python
Examples/put_pdf_request_svg.py
kaferi/aspose-pdf-cloud-python
48f70742fec1e41644ec0b658db3f174ba845304
[ "MIT" ]
7
2018-06-11T17:44:44.000Z
2022-02-08T05:52:48.000Z
Examples/put_pdf_request_svg.py
kaferi/aspose-pdf-cloud-python
48f70742fec1e41644ec0b658db3f174ba845304
[ "MIT" ]
1
2021-03-20T22:16:15.000Z
2021-06-27T15:11:52.000Z
Examples/put_pdf_request_svg.py
kaferi/aspose-pdf-cloud-python
48f70742fec1e41644ec0b658db3f174ba845304
[ "MIT" ]
4
2018-04-18T19:41:12.000Z
2021-06-21T13:12:24.000Z
from configuration import * file_name = '4pages.pdf' result_file_name = "result.svg" opts = { "file": test_data_path + file_name } response = pdf_api.put_pdf_in_request_to_svg( temp_folder + '/' + result_file_name, **opts) pprint(response)
19.307692
49
0.7251
b4c38bd186f4c90defccdd94f1266f1e2440141f
569
py
Python
main.py
parada3desu/foxy-key-broker
fc95de9e9bfd61c506a9a18aa64c5c9cbeac8a9c
[ "Apache-2.0" ]
null
null
null
main.py
parada3desu/foxy-key-broker
fc95de9e9bfd61c506a9a18aa64c5c9cbeac8a9c
[ "Apache-2.0" ]
null
null
null
main.py
parada3desu/foxy-key-broker
fc95de9e9bfd61c506a9a18aa64c5c9cbeac8a9c
[ "Apache-2.0" ]
null
null
null
import argparse from src.apps.kms.backend.boot import boot as boot_kms service_mapping = { 'kms': boot_kms, } if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( '--service', type=str, nargs='?', help='Service to run must be one of ["kms"]', ...
23.708333
54
0.652021
9eb46364e3d60bd9f815cdf3adff46bc5e4a4383
16,220
py
Python
MetaScreener/external_sw/mgltools/MGLToolsPckgs/FlexTree/EssentialDynamics.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/MGLToolsPckgs/FlexTree/EssentialDynamics.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/MGLToolsPckgs/FlexTree/EssentialDynamics.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by ###################################################################### # # Date: Jan 2004 Author: Yong Zhao # # yongzhao@scripps.edu # # The Scripps Research Institute (TSRI) # Molecular Graphics Lab # La Jolla, CA 92037, USA # # Copyr...
34.004193
189
0.523613
e1c8af76079fac1128219f9561bd3983c14b7ea8
3,572
py
Python
py-server/src/config/grib.py
Jonnytoshen/wind-layer
514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5
[ "BSD-3-Clause" ]
285
2017-12-16T13:29:27.000Z
2022-03-28T02:59:08.000Z
py-server/src/config/grib.py
Jonnytoshen/wind-layer
514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5
[ "BSD-3-Clause" ]
104
2018-01-01T01:40:13.000Z
2022-03-26T18:20:45.000Z
py-server/src/config/grib.py
Jonnytoshen/wind-layer
514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5
[ "BSD-3-Clause" ]
97
2017-12-18T08:05:21.000Z
2022-03-28T15:49:38.000Z
import os GFS_DATE = "20200312" # 数据时间 GFS_TIME = "18" # 起报时间 00, 06, 12, 18 RES = "0p25" # 数据分辨率 0p25: 0.25, 0p50:0.5 or 1p00:1 BBOX = "leftlon=0&rightlon=360&toplat=90&bottomlat=-90" # 数据范围 LEVEL = "lev_10_m_above_ground=on" # 数据层次 VARIABLES = "var_UGRD=on&var_VGRD=on&var_TMP=on" # 要素 GRIB_DES = "pgrb2" # 文件说...
25.697842
83
0.646976
09874e8bd58846c90a44ca0c3ebb07d1e53ed795
12,153
py
Python
src/db/dao/subjectdao.py
yuriel-v/Daedalus
ff7ae4090241fab158a8ef9096b1344f6ab8c98b
[ "MIT" ]
null
null
null
src/db/dao/subjectdao.py
yuriel-v/Daedalus
ff7ae4090241fab158a8ef9096b1344f6ab8c98b
[ "MIT" ]
null
null
null
src/db/dao/subjectdao.py
yuriel-v/Daedalus
ff7ae4090241fab158a8ef9096b1344f6ab8c98b
[ "MIT" ]
null
null
null
from core.utils import print_exc from db.dao.genericdao import GenericDao from db.model import Subject from sqlalchemy.orm import Query from typing import Union class SubjectDao(GenericDao): def __init__(self, session=None, autoinit=True): super().__init__(session=session, autoinit=autoinit) ...
44.032609
144
0.539373
e79f94a8b5e1c7c712703872a4050079101f3154
29,081
py
Python
api/api.py
kvokka/tilt.build
b10fe0b6d15d855dd48e6954832a4168d6be8ddc
[ "Apache-2.0" ]
null
null
null
api/api.py
kvokka/tilt.build
b10fe0b6d15d855dd48e6954832a4168d6be8ddc
[ "Apache-2.0" ]
null
null
null
api/api.py
kvokka/tilt.build
b10fe0b6d15d855dd48e6954832a4168d6be8ddc
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Union, List, Callable, Any class Blob: """The result of executing a command on your local system. Under the hood, a `Blob` is just a string, but we wrap it this way so Tilt knows the difference between a string meant to convey content and a string indicating, say, a filepath. To wrap...
48.957912
409
0.720505
7a5ef0d1d60184e8ef2a2b4a6360f59137607317
488
py
Python
tests/conftest.py
odra/kelo
22930954c6a75ba3e60ec07d258d65d13533b5b0
[ "MIT" ]
null
null
null
tests/conftest.py
odra/kelo
22930954c6a75ba3e60ec07d258d65d13533b5b0
[ "MIT" ]
null
null
null
tests/conftest.py
odra/kelo
22930954c6a75ba3e60ec07d258d65d13533b5b0
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def hello_world_fn(): def fn(): return 'hello world' return fn @pytest.fixture def greetings_fn(): def fn(name): return 'hello %s' % name return fn @pytest.fixture def greetings_default_fn(): def fn(name='nobody'): return 'hello %s' % name return fn @pytest.f...
16.266667
95
0.655738
e135cd6b39b52f0b22ce50b63cd173ae37028efc
3,445
py
Python
tensorflow_addons/layers/wrappers_test.py
tzachar/addons
e352207da32e4670a36a295ea477c476118cb0d9
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/layers/wrappers_test.py
tzachar/addons
e352207da32e4670a36a295ea477c476118cb0d9
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/layers/wrappers_test.py
tzachar/addons
e352207da32e4670a36a295ea477c476118cb0d9
[ "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...
36.263158
79
0.643832
556b08bb68385cd7490c54f3ae939835426ba2cd
4,484
py
Python
config/settings/base.py
siauPatrick/ztpd
cacc4510df07ceaf2422c2f87794a9b8df6c2421
[ "BSD-3-Clause" ]
null
null
null
config/settings/base.py
siauPatrick/ztpd
cacc4510df07ceaf2422c2f87794a9b8df6c2421
[ "BSD-3-Clause" ]
null
null
null
config/settings/base.py
siauPatrick/ztpd
cacc4510df07ceaf2422c2f87794a9b8df6c2421
[ "BSD-3-Clause" ]
1
2018-07-24T10:23:32.000Z
2018-07-24T10:23:32.000Z
import environ ROOT_DIR = environ.Path(__file__) - 3 APPS_DIR = ROOT_DIR.path('apps') env = environ.Env() env.read_env(str(ROOT_DIR.path('.env'))) # GENERAL # ------------------------------------------------------------------------------ DEBUG = env.bool('DJANGO_DEBUG', False) # Local time zone. Choices are TIME_ZON...
31.356643
98
0.51182
f94978e07c2c7aaaa6290fec98c797788189cf57
4,214
py
Python
Python3/aoc2020/solutions/day_19.py
maddenvvs/advent-of-code-2020
f0ed187698878102598e53f356ad47c26b5a44e1
[ "MIT" ]
1
2021-01-09T15:29:50.000Z
2021-01-09T15:29:50.000Z
Python3/aoc2020/solutions/day_19.py
maddenvvs/advent-of-code-2020
f0ed187698878102598e53f356ad47c26b5a44e1
[ "MIT" ]
null
null
null
Python3/aoc2020/solutions/day_19.py
maddenvvs/advent-of-code-2020
f0ed187698878102598e53f356ad47c26b5a44e1
[ "MIT" ]
null
null
null
from __future__ import annotations from abc import ABC, abstractmethod from typing import Iterable, Iterator, List, Tuple from .solution import Solution RuleName = int class Rule(ABC): @abstractmethod def try_match(self, message: str, idx: int) -> Iterator[int]: pass class MatchLetter(Rule): ...
28.093333
92
0.637874
3888a5847651fb56006574ea8b2f87679cad5236
485
py
Python
vmraid/tests/test_geo_ip.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/tests/test_geo_ip.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/tests/test_geo_ip.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
# Copyright (c) 2015, VMRaid Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import unittest class TestGeoIP(unittest.TestCase): def test_geo_ip(self): return from vmraid.sessions import get_geo_ip_country self.assertEqual(get_geo_ip_country("223.2...
37.307692
73
0.781443
1b2be6fb33e6e356070214c7b0073c0f57863606
796
py
Python
setup.py
sasjonge/jupyter-knowrob
1df408e86cae7629e57f531a1ca570a705b6ab50
[ "MIT" ]
null
null
null
setup.py
sasjonge/jupyter-knowrob
1df408e86cae7629e57f531a1ca570a705b6ab50
[ "MIT" ]
null
null
null
setup.py
sasjonge/jupyter-knowrob
1df408e86cae7629e57f531a1ca570a705b6ab50
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="jknowrob", version="0.0.1", author="Sascha Jongebloed", author_email="sasjonge@uni-bremen.de", description="A Jupyter Kernel for SWI-Prolog.", long_description=long_description, lo...
27.448276
68
0.646985
2ec7907a050daaddea1428e684528c81dc3c6af5
6,667
py
Python
_modules/jenkins_common.py
fuez/salt-formula-jenkins
89d20172ba5b89bb734c02b99133335172ae406a
[ "Apache-2.0" ]
null
null
null
_modules/jenkins_common.py
fuez/salt-formula-jenkins
89d20172ba5b89bb734c02b99133335172ae406a
[ "Apache-2.0" ]
null
null
null
_modules/jenkins_common.py
fuez/salt-formula-jenkins
89d20172ba5b89bb734c02b99133335172ae406a
[ "Apache-2.0" ]
null
null
null
import logging from salt.exceptions import SaltInvocationError from string import Template try: import bcrypt HAS_BCRYPT = True except ImportError: HAS_BCRYPT = False try: import requests HAS_REQUESTS = True except ImportError: HAS_REQUESTS = False logger = logging.getLogger(__name__) def ...
33.671717
92
0.639268