hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
bd930b12d4ab4abc3820681ffbbccb5846b362ff
2,993
py
Python
djed/templates/renderer.py
djedproject/djed.templates
c8f14127b793821009acf2569bfebbeaa048778f
[ "0BSD" ]
null
null
null
djed/templates/renderer.py
djedproject/djed.templates
c8f14127b793821009acf2569bfebbeaa048778f
[ "0BSD" ]
null
null
null
djed/templates/renderer.py
djedproject/djed.templates
c8f14127b793821009acf2569bfebbeaa048778f
[ "0BSD" ]
null
null
null
import os from pyramid.interfaces import IRendererFactory from pyramid.renderers import RendererHelper from .layer import ID_LAYER ID_TEMPLATE = 'djed.templates:template' ID_TEMPLATE_EXT = 'djed.templates:template-ext' class RendererNotFound(ValueError): """ Renderer is not found """ def render(request, asset...
26.486726
79
0.614434
d28a6800104babc44734bf4b75f4f94785178bae
3,647
py
Python
Lib/email/errors.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
Lib/email/errors.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
Lib/email/errors.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
1,933
2018-01-15T13:08:40.000Z
2022-03-31T11:28:59.000Z
# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """email package exception classes.""" class MessageError(Exception): """Base class for errors in the email package.""" class MessageParseError(MessageError): """Base class for message parsing errors...
32.855856
79
0.743351
5cbd510f7e6132df68c729d2e70ecb70da0d7d5b
93,957
py
Python
keras/backend/tensorflow_backend.py
mokaruu/moka
72f1ce4ed4396a308f831c717d8c2856a7a4e86b
[ "MIT" ]
null
null
null
keras/backend/tensorflow_backend.py
mokaruu/moka
72f1ce4ed4396a308f831c717d8c2856a7a4e86b
[ "MIT" ]
null
null
null
keras/backend/tensorflow_backend.py
mokaruu/moka
72f1ce4ed4396a308f831c717d8c2856a7a4e86b
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.python.training import moving_averages from tensorflow.python.ops import tensor_array_ops from tensorflow.python.ops import control_flow_ops try: from tensorflow.python.ops import ctc_ops as ctc except ImportError: import tensorflow.contrib.ctc as ctc import numpy as np...
30.785387
110
0.592973
6cf332a0761fe2621667c0addef8bcc9c03c1c89
1,526
py
Python
bireme/application/models.py
bireme/feedback
118018a846afcb373451593cea1c2200e44e2057
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
bireme/application/models.py
bireme/feedback
118018a846afcb373451593cea1c2200e44e2057
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
bireme/application/models.py
bireme/feedback
118018a846afcb373451593cea1c2200e44e2057
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#! coding: utf-8 from django_tools.middlewares.ThreadLocal import get_current_user, get_current_request from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from django.db import models from datetime import datetime from django.db.models import signals from django.template...
37.219512
122
0.733945
06e8bf04c0adb41a93f28c6cc533642681e4321a
918
py
Python
migrations/versions/8256dd5f90a_ref.py
Norah-coder/personalpitches
ef1d56eda152f20b696e8711fe28449fce1c935a
[ "MIT" ]
null
null
null
migrations/versions/8256dd5f90a_ref.py
Norah-coder/personalpitches
ef1d56eda152f20b696e8711fe28449fce1c935a
[ "MIT" ]
null
null
null
migrations/versions/8256dd5f90a_ref.py
Norah-coder/personalpitches
ef1d56eda152f20b696e8711fe28449fce1c935a
[ "MIT" ]
null
null
null
"""ref Revision ID: 8256dd5f9f0a Revises: 190acffb7f2a Create Date: 2018-11-20 10:02:05.335001 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8256dd5f9f0a' down_revision = '190acffb7f2a' branch_labels = None depends_on = None def upgrade(): # ### comman...
27
67
0.676471
24b63a62f14b03c78c487a1d488ad9f73441091b
27,097
py
Python
test/integration/component/test_assign_vm.py
ke4qqq/cloudstack
7e0f1cf4571f9c3f6c26b8d744d2ed102fa7a511
[ "Apache-2.0" ]
2
2015-02-10T07:21:58.000Z
2021-05-07T08:52:17.000Z
test/integration/component/test_assign_vm.py
ke4qqq/cloudstack
7e0f1cf4571f9c3f6c26b8d744d2ed102fa7a511
[ "Apache-2.0" ]
6
2020-11-16T20:46:02.000Z
2022-02-01T01:06:41.000Z
test/integration/component/test_assign_vm.py
ke4qqq/cloudstack
7e0f1cf4571f9c3f6c26b8d744d2ed102fa7a511
[ "Apache-2.0" ]
15
2017-01-12T11:17:48.000Z
2019-04-19T10:09:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
56.334719
182
0.571761
9ca0523bb0831af2be8cc574c1344b9ee4a0815f
2,280
py
Python
panda/config.py
eads/panda
3e343b9e30288abfe39a4a4bff72277d7635dc77
[ "MIT" ]
1
2017-04-11T07:26:06.000Z
2017-04-11T07:26:06.000Z
panda/config.py
eads/panda
3e343b9e30288abfe39a4a4bff72277d7635dc77
[ "MIT" ]
null
null
null
panda/config.py
eads/panda
3e343b9e30288abfe39a4a4bff72277d7635dc77
[ "MIT" ]
null
null
null
#!/usr/bin/env python from livesettings import config_register, BooleanValue, ConfigurationGroup, FloatValue, PositiveIntegerValue, StringValue # Site domain settings DOMAIN_GROUP = ConfigurationGroup( 'DOMAIN', 'Site domain', ordering=0 ) config_register(StringValue( DOMAIN_GROUP, 'SITE_DOMAIN',...
21.509434
132
0.709211
49d7b18fa5552f62b7d9ed8f964285de7652afb3
732
py
Python
examples/color_palettes.py
yarikoptic/seaborn
ed4baa32267cc4a44abb40dc243ae75a1d180e85
[ "MIT", "BSD-3-Clause" ]
3
2016-01-25T16:54:25.000Z
2020-05-01T15:15:30.000Z
examples/color_palettes.py
PureW/seaborn
f400d86002c6d4b2d67eb9740adad908e84f8328
[ "MIT", "BSD-3-Clause" ]
1
2021-06-23T16:40:53.000Z
2021-06-23T16:40:53.000Z
examples/color_palettes.py
PureW/seaborn
f400d86002c6d4b2d67eb9740adad908e84f8328
[ "MIT", "BSD-3-Clause" ]
2
2019-04-02T19:52:25.000Z
2021-07-06T21:17:27.000Z
""" Color palette choices ===================== """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="white", context="talk") rs = np.random.RandomState(7) x = np.array(list("ABCDEFGHI")) f, (ax1, ax2, ax3) = plt.subplots(3, 1, figsize=(8, 6), sharex=True) y1 = np.arange(1, 10)...
23.612903
68
0.673497
f78fc73ad16077dee0667791237644b2b5fc7a09
41,854
py
Python
sklearn/manifold/tests/test_t_sne.py
Dev514/scikit-learn
392151b63491d60daabc4a8fa9b43a71b8df811d
[ "BSD-3-Clause" ]
1
2022-01-26T21:02:42.000Z
2022-01-26T21:02:42.000Z
sklearn/manifold/tests/test_t_sne.py
reneetsai88/scikit-learn
a13bad38182cab956b073dd1a48821e32180fd6c
[ "BSD-3-Clause" ]
1
2022-03-06T15:13:18.000Z
2022-03-06T15:13:18.000Z
sklearn/manifold/tests/test_t_sne.py
reneetsai88/scikit-learn
a13bad38182cab956b073dd1a48821e32180fd6c
[ "BSD-3-Clause" ]
null
null
null
import sys from io import StringIO import numpy as np from numpy.testing import assert_allclose import scipy.sparse as sp import pytest from sklearn.neighbors import NearestNeighbors from sklearn.neighbors import kneighbors_graph from sklearn.exceptions import EfficiencyWarning from sklearn.utils._testing import ignor...
33.780468
88
0.653295
507deb0d050f3571ef532a2eb673d76cfbd37974
859
py
Python
my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210726155633.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210726155633.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210726155633.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
import os.path import types import sys module_name = 'module1' module_file = 'module_source.py' module_path = '.' module_rel_file_path = os.path.join(module_path, module_file) module_abs_file_path = os.path.abspath(module_rel_file_path) # read source code from file with open(module_rel_file_path, 'r') as code_file...
18.673913
71
0.50291
e300d0127f2215045987db70c1f28f251687706f
1,613
py
Python
math/approxes/lagrange.py
dasfex/Algorithms
21d6d32816c997bf5d4c2a99f61a79f8e97a653e
[ "Unlicense" ]
1
2022-03-03T14:12:25.000Z
2022-03-03T14:12:25.000Z
math/approxes/lagrange.py
dasfex/Algorithms
21d6d32816c997bf5d4c2a99f61a79f8e97a653e
[ "Unlicense" ]
2
2021-11-17T16:36:18.000Z
2021-12-18T11:03:03.000Z
math/approxes/lagrange.py
dasfex/practice
21d6d32816c997bf5d4c2a99f61a79f8e97a653e
[ "Unlicense" ]
1
2020-12-27T11:24:54.000Z
2020-12-27T11:24:54.000Z
#! /usr/bin/env python3 import sympy as sp import numpy as np from datetime import datetime as dt def F(x): return np.exp(-x * x) def getEquallySpacedPoints(l, r, count): X, Y = [], [] sh = (r - l) / (count - 1) for i in np.arange(l, r + 0.0000001, sh): X.append(i) Y.append(F(i)) ...
24.074627
69
0.49473
e323937ce21776a7f966a268fb59e9182ee8f136
25,850
py
Python
setup.py
arocchi/bullet3
5183ee51b1bf0fa5c3c3636299bbae0d85bb5c5a
[ "Zlib" ]
null
null
null
setup.py
arocchi/bullet3
5183ee51b1bf0fa5c3c3636299bbae0d85bb5c5a
[ "Zlib" ]
null
null
null
setup.py
arocchi/bullet3
5183ee51b1bf0fa5c3c3636299bbae0d85bb5c5a
[ "Zlib" ]
null
null
null
from setuptools import find_packages from sys import platform as _platform import sys import glob from distutils.core import setup from distutils.extension import Extension from distutils.util import get_platform from glob import glob #see http://stackoverflow.com/a/8719066/295157 import os platform = get_platform...
53.1893
556
0.784139
76837834066523b5af23924c8fdfb855269f0df3
13,234
py
Python
testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzPublicWiFi_SetApInterworkingServiceEnable.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzPublicWiFi_SetApInterworkingServiceEnable.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzPublicWiFi_SetApInterworkingServiceEnable.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
51.494163
176
0.661176
09c054a86567f8754417a3364c43be3627b4df58
3,343
py
Python
branches/bitle-0.4/bitle/unix/EspeakPipe.py
marnold/hephaestus
9dcf91fe2b174d1b94d87542914902a9d51b2441
[ "ISC" ]
null
null
null
branches/bitle-0.4/bitle/unix/EspeakPipe.py
marnold/hephaestus
9dcf91fe2b174d1b94d87542914902a9d51b2441
[ "ISC" ]
null
null
null
branches/bitle-0.4/bitle/unix/EspeakPipe.py
marnold/hephaestus
9dcf91fe2b174d1b94d87542914902a9d51b2441
[ "ISC" ]
null
null
null
## File: EspeakControler.py: BitleSpeak Client Driver for espeak ## Author: Matt Arnold <matt@thegnuguru.org> ## This file is part of BitleSpeak ## BitleSpeak 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 Software Foundation...
30.390909
92
0.605145
31c2c8064355391bdc9ad2a488110457b53b2159
82,668
py
Python
boto/s3/key.py
DataDog/boto
080654d68a6b5d61208f00f8573d1ffda42acc03
[ "MIT" ]
null
null
null
boto/s3/key.py
DataDog/boto
080654d68a6b5d61208f00f8573d1ffda42acc03
[ "MIT" ]
2
2015-10-24T12:24:50.000Z
2016-01-08T19:13:10.000Z
boto/s3/key.py
DataDog/boto
080654d68a6b5d61208f00f8573d1ffda42acc03
[ "MIT" ]
null
null
null
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2011, Nexenta Systems Inc. # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the...
42.922118
89
0.593095
c3508f820d98e24f2e3ceb1bfd575e0da82631e2
88
py
Python
script/1F-AizuSpiderSS.py
s-nakaoka/rtf-test-plant
51fa4ed6da95b6f0232da07d643be3ac28bded9b
[ "MIT" ]
2
2019-01-24T15:27:05.000Z
2020-06-11T12:51:15.000Z
script/1F-AizuSpiderSS.py
RyodoTanaka/rtf-test-plant
51fa4ed6da95b6f0232da07d643be3ac28bded9b
[ "MIT" ]
null
null
null
script/1F-AizuSpiderSS.py
RyodoTanaka/rtf-test-plant
51fa4ed6da95b6f0232da07d643be3ac28bded9b
[ "MIT" ]
1
2020-03-12T01:20:37.000Z
2020-03-12T01:20:37.000Z
import TestPlantUtil TestPlantUtil.loadProject("1F", ["AISTSimulator"], "AizuSpiderSS")
29.333333
66
0.795455
eab88282b5a21c2f5ec88560ae15c570ff8fb84a
41,832
py
Python
src/myweatherindicator.py
val-kulkov/my-weather-indicator
9cf392b8442dcff656fb94a6761ca4c29492becd
[ "MIT" ]
null
null
null
src/myweatherindicator.py
val-kulkov/my-weather-indicator
9cf392b8442dcff656fb94a6761ca4c29492becd
[ "MIT" ]
null
null
null
src/myweatherindicator.py
val-kulkov/my-weather-indicator
9cf392b8442dcff656fb94a6761ca4c29492becd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # This file is part of my-weather-indicator # # Copyright (c) 2012 Lorenzo Carbonell Cerezo <a.k.a. atareao> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
43.439252
79
0.581421
ab04c7924b73d5f103754dda66c0ca3289251ba8
9,776
py
Python
dist/ba_root/mods/games/baDarkFields.py
pranav-1711/Bombsquad-Ballistica-Modded-Server
645b41d9a47616da096fd8de582fc20ba3b3a179
[ "MIT" ]
null
null
null
dist/ba_root/mods/games/baDarkFields.py
pranav-1711/Bombsquad-Ballistica-Modded-Server
645b41d9a47616da096fd8de582fc20ba3b3a179
[ "MIT" ]
null
null
null
dist/ba_root/mods/games/baDarkFields.py
pranav-1711/Bombsquad-Ballistica-Modded-Server
645b41d9a47616da096fd8de582fc20ba3b3a179
[ "MIT" ]
null
null
null
"""Dark fields mini-game.""" # Minigame by Froshlee14 # ba_meta require api 6 # (see https://ballistica.net/wiki/meta-tag-system) from __future__ import annotations import random from typing import TYPE_CHECKING import _ba, ba from bastd.actor import bomb from ba._music import setmusic from bastd.actor....
35.165468
106
0.546338
a075dfd8b56079c7b2509bb5795521b8b9eb3127
8,017
py
Python
tensorflow/contrib/data/python/kernel_tests/map_dataset_op_test.py
oldgeeksguide/tensorflow
519487fb313a31701fd31e67c0ceb6eae8ea9225
[ "Apache-2.0" ]
5
2017-08-28T11:27:19.000Z
2021-08-03T17:40:00.000Z
tensorflow/contrib/data/python/kernel_tests/map_dataset_op_test.py
rrubo/tensorflow
ff83809afa9062e77809d2b65ffbaee3c0045241
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/data/python/kernel_tests/map_dataset_op_test.py
rrubo/tensorflow
ff83809afa9062e77809d2b65ffbaee3c0045241
[ "Apache-2.0" ]
2
2018-01-12T00:32:59.000Z
2021-08-03T17:40:12.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.112613
80
0.65885
4fed0d25ada9e4cadc5d6e6c5b8ce2e7c852e12e
1,128
py
Python
tools/subpackage/copy_small_files.py
Geequlim/mini-game-kit
701ebfba2b16c70b8e6453fd8d1f8198659a6748
[ "BSD-2-Clause" ]
16
2019-08-11T09:17:50.000Z
2020-11-28T08:39:37.000Z
tools/subpackage/copy_small_files.py
Geequlim/mini-game-kit
701ebfba2b16c70b8e6453fd8d1f8198659a6748
[ "BSD-2-Clause" ]
null
null
null
tools/subpackage/copy_small_files.py
Geequlim/mini-game-kit
701ebfba2b16c70b8e6453fd8d1f8198659a6748
[ "BSD-2-Clause" ]
5
2020-03-12T03:57:17.000Z
2020-05-27T16:05:29.000Z
import os, sys, shutil, json import re import fnmatch import os import sys cache = [] SRC_DIR = '' PKG_DIR = os.path.join('release', sys.argv[len(sys.argv) -1 ]) def glob_path(path, pattern): result = [] for root, _, files in os.walk(path): for filename in files: if fnmatch.fnmatch(filename, pattern): res...
22.56
62
0.669326
8ecd3832d3bd5a19ded11caa99cf1e143dd0d814
66,035
py
Python
old_projects/mug.py
ianyhx/manim
9df81ef2526025a699053e409e9543a345e670ba
[ "MIT" ]
null
null
null
old_projects/mug.py
ianyhx/manim
9df81ef2526025a699053e409e9543a345e670ba
[ "MIT" ]
null
null
null
old_projects/mug.py
ianyhx/manim
9df81ef2526025a699053e409e9543a345e670ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from big_ol_pile_of_manim_imports import * from old_projects.efvgt import ConfettiSpiril #revert_to_original_skipping_status class HappyHolidays(TeacherStudentsScene): def construct(self): hats = VGroup(*map( self.get_hat, self.pi_creatures ...
31.565488
91
0.532763
c1e1d984453944d00cc2c4a9370ad3aa6fe70ce2
836
py
Python
movie-App4/env/Scripts/rst2odt.py
DIXINB/MovieApp
2467bdc430d1de240aae24e921990af6cb7ca144
[ "MIT" ]
null
null
null
movie-App4/env/Scripts/rst2odt.py
DIXINB/MovieApp
2467bdc430d1de240aae24e921990af6cb7ca144
[ "MIT" ]
null
null
null
movie-App4/env/Scripts/rst2odt.py
DIXINB/MovieApp
2467bdc430d1de240aae24e921990af6cb7ca144
[ "MIT" ]
null
null
null
#!c:\users\вадим\appdata\local\programs\python\myscripts\movie-app4\env\scripts\python.exe # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice do...
26.967742
90
0.758373
083b7cb394f4bc9fb8ff10196ba1b69be3c7e0a6
3,863
py
Python
ITmeetups_back/ITmeetups_back/settings.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
3
2019-02-28T15:20:24.000Z
2019-03-02T18:33:23.000Z
ITmeetups_back/ITmeetups_back/settings.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
7
2020-07-17T01:18:53.000Z
2022-02-17T22:49:16.000Z
ITmeetups_back/ITmeetups_back/settings.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
1
2019-03-03T02:45:55.000Z
2019-03-03T02:45:55.000Z
""" Django settings for ITmeetups_back project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
26.101351
91
0.682889
7775f3296d3e73a0e804deb19557e41f44c2a1a6
2,775
py
Python
Player.py
BAaboe/flappygoin
0b7d0b3c5161be3903f6f957b2ddc3cf811e7e81
[ "MIT" ]
1
2022-01-07T08:44:36.000Z
2022-01-07T08:44:36.000Z
Player.py
BAaboe/flappygoin
0b7d0b3c5161be3903f6f957b2ddc3cf811e7e81
[ "MIT" ]
null
null
null
Player.py
BAaboe/flappygoin
0b7d0b3c5161be3903f6f957b2ddc3cf811e7e81
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * import Window class Player(pygame.sprite.Sprite): def __init__(self, wd: Window.Window(), main): super().__init__() self.wd = wd self.width = 50 self.heigth = 100 self.x = self.wd.width/4 self.y = self.wd.heigth/2-(self.he...
23.319328
102
0.523604
dc878ecfa73e541454be1ed705943e39d4674316
53
py
Python
src/lesson_runtime_features/os_spawn_example.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_runtime_features/os_spawn_example.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_runtime_features/os_spawn_example.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import os os.spawnlp(os.P_WAIT, 'pwd', 'pwd', '-P')
13.25
41
0.603774
be805704173144877b6e206961e45caf655123e0
57,633
py
Python
paddlenlp/transformers/transformer/modeling.py
tanhanzhuo/PaddleNLP
d0d20678f2bec820570b4f09ca49cd402d20c3b6
[ "Apache-2.0" ]
1
2022-01-28T06:32:26.000Z
2022-01-28T06:32:26.000Z
paddlenlp/transformers/transformer/modeling.py
tanhanzhuo/PaddleNLP
d0d20678f2bec820570b4f09ca49cd402d20c3b6
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/transformer/modeling.py
tanhanzhuo/PaddleNLP
d0d20678f2bec820570b4f09ca49cd402d20c3b6
[ "Apache-2.0" ]
1
2022-03-30T03:05:52.000Z
2022-03-30T03:05:52.000Z
import numpy as np import paddle import paddle.nn as nn import paddle.nn.functional as F from paddle.fluid.framework import in_dygraph_mode from paddle.fluid.layers.utils import map_structure __all__ = [ "position_encoding_init", "WordEmbedding", "PositionalEmbedding", "CrossEntropyCriterion", "TransformerDec...
42.067883
133
0.578662
1ce5a4016e0c5b25c9b328051af76b2eed71aa17
73
py
Python
src/mapper.py
paolorechia/dynaborn
64932b8632b0c953cf7b6ddd308624a9db9aa7ce
[ "MIT" ]
null
null
null
src/mapper.py
paolorechia/dynaborn
64932b8632b0c953cf7b6ddd308624a9db9aa7ce
[ "MIT" ]
null
null
null
src/mapper.py
paolorechia/dynaborn
64932b8632b0c953cf7b6ddd308624a9db9aa7ce
[ "MIT" ]
null
null
null
from .table import Table def mapper(table: Table, cls: type): pass
12.166667
36
0.684932
fb528619471eb5bf099a87433bf19ae0e906c8f3
6,361
py
Python
bdsg_project-master/donations/admin.py
imadarshj/covaid
9b12be9805979058202cec0e2205ceb7bf4a5b53
[ "MIT" ]
null
null
null
bdsg_project-master/donations/admin.py
imadarshj/covaid
9b12be9805979058202cec0e2205ceb7bf4a5b53
[ "MIT" ]
null
null
null
bdsg_project-master/donations/admin.py
imadarshj/covaid
9b12be9805979058202cec0e2205ceb7bf4a5b53
[ "MIT" ]
null
null
null
import csv import json from datetime import datetime from django.contrib import admin from django.core.mail import send_mail, EmailMessage from django_google_maps import widgets as map_widgets from django_google_maps import fields as map_fields from .models import ( DonationCenter, DonationRequest, DonationRequestApp...
54.367521
273
0.756328
af1ecdccf100ae30a10d956f87bad5871049dc5e
4,733
py
Python
fteikpy/_solver.py
keurfonluu/fteikpy
39e50b1772642b9c5cdda4d1b8171f6d5abaa5e2
[ "BSD-3-Clause" ]
15
2020-11-11T21:42:46.000Z
2022-03-20T10:21:47.000Z
fteikpy/_solver.py
keurfonluu/fteikpy
39e50b1772642b9c5cdda4d1b8171f6d5abaa5e2
[ "BSD-3-Clause" ]
10
2020-11-12T08:39:25.000Z
2022-03-30T10:56:51.000Z
fteikpy/_solver.py
keurfonluu/fteikpy
39e50b1772642b9c5cdda4d1b8171f6d5abaa5e2
[ "BSD-3-Clause" ]
5
2020-12-23T01:19:27.000Z
2022-02-24T14:16:56.000Z
import numpy from ._base import BaseGrid2D, BaseGrid3D from ._fteik import solve2d, solve3d from ._grid import TraveltimeGrid2D, TraveltimeGrid3D class Eikonal2D(BaseGrid2D): def __init__(self, grid, gridsize, origin=None): """ 2D Eikonal solver. Parameters ---------- gri...
30.733766
197
0.52715
3f17b41a8e8819f3b9292b5f7d401704d110cced
16,550
py
Python
tensorflow/python/kernel_tests/diag_op_test.py
topsun888/tensorflow
bad7c50b9dc9789ad7dd0a62daca40b7269841ed
[ "Apache-2.0" ]
1
2021-06-10T23:59:44.000Z
2021-06-10T23:59:44.000Z
tensorflow/python/kernel_tests/diag_op_test.py
luyahan/tensorflow
a5f8f42cb29d890650c4ca5fac6654884856a8e1
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/diag_op_test.py
luyahan/tensorflow
a5f8f42cb29d890650c4ca5fac6654884856a8e1
[ "Apache-2.0" ]
1
2020-07-09T22:02:23.000Z
2020-07-09T22:02:23.000Z
# Copyright 2015 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.274775
80
0.547674
bd1f643cefe3b178bc88eec9a2694bc3abca1d86
1,856
py
Python
hoods/views.py
MuthangaShem/hoodwatch
ed7e9562676e03e528da1dc8b756514c16847f28
[ "MIT" ]
null
null
null
hoods/views.py
MuthangaShem/hoodwatch
ed7e9562676e03e528da1dc8b756514c16847f28
[ "MIT" ]
null
null
null
hoods/views.py
MuthangaShem/hoodwatch
ed7e9562676e03e528da1dc8b756514c16847f28
[ "MIT" ]
null
null
null
from django.contrib import messages from django.db import IntegrityError from django.shortcuts import get_object_or_404 from django.contrib.auth.mixins import LoginRequiredMixin from django.core.urlresolvers import reverse from django.views import generic from hoods.models import Hood, HoodMember # Create your views h...
33.745455
116
0.6875
eb23d2538b9a8438ed52fce329a214ebd6067d72
3,004
py
Python
grafana_dashboards/components/targets.py
manueligno78/grafana-dashboard-builder
929a9b04d5830d33e44fcce063e874b5a83c472b
[ "Apache-2.0" ]
1
2019-11-29T13:11:09.000Z
2019-11-29T13:11:09.000Z
grafana_dashboards/components/targets.py
manueligno78/grafana-dashboard-builder
929a9b04d5830d33e44fcce063e874b5a83c472b
[ "Apache-2.0" ]
null
null
null
grafana_dashboards/components/targets.py
manueligno78/grafana-dashboard-builder
929a9b04d5830d33e44fcce063e874b5a83c472b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015-2019 grafana-dashboard-builder 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 # # Unless ...
35.761905
118
0.718708
35008a5925ea1b4242dad54fc10f68b9bf996485
226
py
Python
tamr_toolbox/project/_common/__init__.py
clint-richardson/tamr-toolbox
d99109fa4f871efce9f2f681a1e8febbd6f5ff73
[ "Apache-2.0" ]
6
2021-02-09T22:27:55.000Z
2022-01-14T18:15:17.000Z
tamr_toolbox/project/_common/__init__.py
clint-richardson/tamr-toolbox
d99109fa4f871efce9f2f681a1e8febbd6f5ff73
[ "Apache-2.0" ]
34
2021-02-09T22:23:33.000Z
2022-03-31T16:22:51.000Z
tamr_toolbox/project/_common/__init__.py
clint-richardson/tamr-toolbox
d99109fa4f871efce9f2f681a1e8febbd6f5ff73
[ "Apache-2.0" ]
12
2021-02-09T21:17:10.000Z
2022-02-09T16:35:39.000Z
"""Tasks related to Tamr projects""" from . import schema from . import transformations from .movement import export_artifacts, import_artifacts __all__ = ["schema", "transformations", "export_artifacts", "import_artifacts"]
32.285714
79
0.783186
fd39a231e234d8f5913c12c99ee8e6f2300af77a
1,012
py
Python
tests/test_minimal.py
razvnane/OpenQL
2726e1b3e13fe1fd07173c7d9ac735134ac050e0
[ "Apache-2.0" ]
null
null
null
tests/test_minimal.py
razvnane/OpenQL
2726e1b3e13fe1fd07173c7d9ac735134ac050e0
[ "Apache-2.0" ]
null
null
null
tests/test_minimal.py
razvnane/OpenQL
2726e1b3e13fe1fd07173c7d9ac735134ac050e0
[ "Apache-2.0" ]
null
null
null
import os import unittest from openql import openql as ql curdir = os.path.dirname(os.path.realpath(__file__)) config_fn = os.path.join(curdir, 'hardware_config_cc_light.json') platf = ql.Platform("starmon", config_fn) output_dir = os.path.join(curdir, 'test_output') class Test_kernel(unittest.TestCase): @clas...
22.488889
65
0.62747
ce477f19b91cb5993076493661eacd3d225ad3b2
517
py
Python
Utilities.py
Uriegas/UNO-game-agent
9898ba1e5f282eb6af8af6f17c1ddc1faf20052c
[ "MIT" ]
null
null
null
Utilities.py
Uriegas/UNO-game-agent
9898ba1e5f282eb6af8af6f17c1ddc1faf20052c
[ "MIT" ]
null
null
null
Utilities.py
Uriegas/UNO-game-agent
9898ba1e5f282eb6af8af6f17c1ddc1faf20052c
[ "MIT" ]
null
null
null
import enum # Colors of the cards class Color(enum.Enum): red = 1 blue = 2 green = 3 yellow = 4 # Special powers in the game of UNO # Plus Two = add 2 cards to next player # Plus Four = add 4 cards to next player and change color # Color Change = change the next card color # Reverse = change the direc...
24.619048
57
0.680851
7df3234a399b0a9e06803a07e2384f74f17c03d1
309
py
Python
tests/tools/test_xmath.py
a5kin/xentica
ca08fac9f85af71c9d6d98545a33d50323f851b3
[ "MIT" ]
23
2018-02-24T23:38:54.000Z
2022-02-16T15:20:46.000Z
tests/tools/test_xmath.py
a5kin/xentica
ca08fac9f85af71c9d6d98545a33d50323f851b3
[ "MIT" ]
39
2017-11-20T21:54:30.000Z
2020-09-01T12:43:57.000Z
tests/tools/test_xmath.py
a5kin/xentica
ca08fac9f85af71c9d6d98545a33d50323f851b3
[ "MIT" ]
4
2019-04-23T03:56:44.000Z
2021-05-14T11:12:54.000Z
"""Tests for ``xentica.tools.xmath`` module.""" import unittest from xentica.tools import xmath class TestXmath(unittest.TestCase): """Tests for xmath functions.""" def test_popc(self): """Test popc function.""" expr = xmath.popc("x") self.assertEqual(expr, "(__popc(x))")
22.071429
47
0.634304
68a725c3898d9f35fe8bd0690f84cf33613bd6b8
3,230
py
Python
zeg/http.py
strets123/zegami-cli
a6f3dd5cca43ca49c1da0ced9c9f1d36d9bceaf7
[ "Apache-2.0" ]
null
null
null
zeg/http.py
strets123/zegami-cli
a6f3dd5cca43ca49c1da0ced9c9f1d36d9bceaf7
[ "Apache-2.0" ]
null
null
null
zeg/http.py
strets123/zegami-cli
a6f3dd5cca43ca49c1da0ced9c9f1d36d9bceaf7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Zegami Ltd """Tools for making http requests.""" import requests.auth API_START_FORMAT = "{prefix}/api/v0/project/{project_id}/" # Max number of api requests to make at once. CONCURRENCY = 16 class ClientError(Exception): """Failure when using http api.""" def __init__(self, response, tr...
27.844828
77
0.65418
b947f8c41e6627cb62ce5e7b6038ac2971c42c99
1,545
py
Python
exercises/basic/udp_receive.py
maxholli/Plain_P4
566a3fec75b3c28dfefd65257ba2ee9c12e26414
[ "Apache-2.0" ]
null
null
null
exercises/basic/udp_receive.py
maxholli/Plain_P4
566a3fec75b3c28dfefd65257ba2ee9c12e26414
[ "Apache-2.0" ]
null
null
null
exercises/basic/udp_receive.py
maxholli/Plain_P4
566a3fec75b3c28dfefd65257ba2ee9c12e26414
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import struct import os from scapy.all import sniff, sendp, hexdump, get_if_list, get_if_hwaddr from scapy.all import Packet, IPOption from scapy.all import ShortField, IntField, LongField, BitField, FieldListField, FieldLenField from scapy.all import IP, TCP, UDP, Raw from scapy.layer...
28.611111
94
0.549515
cae2607a064d70b658fe667fd9c500cb91a77b2c
794
py
Python
setup.py
bastidest/FotoKilof
22cc5c3b7acf32dbf076cc2ccdb1e22e061facb7
[ "MIT" ]
null
null
null
setup.py
bastidest/FotoKilof
22cc5c3b7acf32dbf076cc2ccdb1e22e061facb7
[ "MIT" ]
null
null
null
setup.py
bastidest/FotoKilof
22cc5c3b7acf32dbf076cc2ccdb1e22e061facb7
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="FotoKilof", version="3.4.0", author="Tomasz Łuczak", author_email="tlu@team-tl.pl", description="Nice gui for ImageMagick", keywords='GUI ImageMagick', long_description=long_descri...
29.407407
54
0.65869
b313ea3e06ea542847fe6a03e16390d0053abc40
2,410
py
Python
fretboard.py
scgorman/fretboard
941b70d67f5efc9f4f0ecceb88c64ef957915448
[ "MIT" ]
null
null
null
fretboard.py
scgorman/fretboard
941b70d67f5efc9f4f0ecceb88c64ef957915448
[ "MIT" ]
null
null
null
fretboard.py
scgorman/fretboard
941b70d67f5efc9f4f0ecceb88c64ef957915448
[ "MIT" ]
null
null
null
def main(): note_circle = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'] # # initial input # # set amount of guitar strings to 6 rather than use an input for convenient testing guitar_string_amount = 6 guitar_string_tunes = [] # # set tunings to E standard tuning for convenient testing # pr...
32.567568
117
0.714523
05213a596db96e7ceabefd30cf5f29b268b1b840
2,148
py
Python
dvc/scm/git/stash.py
lucasalavapena/dvc
230eb7087df7f063ded7422af7ae45bd04eb794a
[ "Apache-2.0" ]
11
2021-08-28T14:24:18.000Z
2022-01-09T06:54:06.000Z
dvc/scm/git/stash.py
4nalog/dvc
13c1314099df131f526177b2a75bda02dfc0cdbf
[ "Apache-2.0" ]
99
2021-03-29T08:59:15.000Z
2022-03-31T04:10:23.000Z
dvc/scm/git/stash.py
4nalog/dvc
13c1314099df131f526177b2a75bda02dfc0cdbf
[ "Apache-2.0" ]
1
2021-08-05T07:15:30.000Z
2021-08-05T07:15:30.000Z
"""git stash convenience wrapper.""" import logging from typing import Optional from dvc.scm.base import SCMError logger = logging.getLogger(__name__) class Stash: """Wrapper for representing any arbitrary Git stash ref.""" DEFAULT_STASH = "refs/stash" def __init__(self, scm, ref: Optional[str] = Non...
29.027027
78
0.599628
af307fdf61f2f40b3b6d4af4d542304ee76c949d
7,237
py
Python
codes/data_m/data_lol_ps_pair_3.py
mengdongwei/ai4khdr_mmsr
5f16b667f5735b530e2c88c05b125e57a3cd2aa2
[ "Apache-2.0" ]
null
null
null
codes/data_m/data_lol_ps_pair_3.py
mengdongwei/ai4khdr_mmsr
5f16b667f5735b530e2c88c05b125e57a3cd2aa2
[ "Apache-2.0" ]
null
null
null
codes/data_m/data_lol_ps_pair_3.py
mengdongwei/ai4khdr_mmsr
5f16b667f5735b530e2c88c05b125e57a3cd2aa2
[ "Apache-2.0" ]
1
2019-12-15T02:56:49.000Z
2019-12-15T02:56:49.000Z
import os, sys sys.path.insert(0, './') import random import numpy as np from skimage.util import random_noise from PIL import Image, ImageFilter import cv2 from data.dataloader import Dataset from data.dataloader import DataLoader import copy from tools import crash_on_ipy ''' this is superresolution data loader with ...
35.131068
113
0.622634
3247503172b1d9b998eecf5cef4c98dd9e68127d
8,233
py
Python
code/data_generator.py
ozym4nd145/SURA
dcbca612e9055b75c9301d3d8af33dddd29ffaa2
[ "Unlicense" ]
4
2018-01-29T19:00:19.000Z
2019-11-13T06:32:27.000Z
code/data_generator.py
Ayush21298/SURA-1
dcbca612e9055b75c9301d3d8af33dddd29ffaa2
[ "Unlicense" ]
null
null
null
code/data_generator.py
Ayush21298/SURA-1
dcbca612e9055b75c9301d3d8af33dddd29ffaa2
[ "Unlicense" ]
3
2018-02-22T16:37:10.000Z
2019-11-13T06:32:28.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import numpy as np import os import json import collections import string import re import pickle class Data_Generator(object): def __init__ (self,processed_video_dir,caption_file,unique_freq_cutoff=2,max_...
50.20122
148
0.622738
6fc8916f74b8793a8543476ce9e5f367bf070ee7
2,058
py
Python
tensorflow_addons/layers/netvlad_test.py
autoih/addons
82cc77e42195a985419142744ae178d835d15971
[ "Apache-2.0" ]
1
2019-09-08T21:58:07.000Z
2019-09-08T21:58:07.000Z
tensorflow_addons/layers/netvlad_test.py
autoih/addons
82cc77e42195a985419142744ae178d835d15971
[ "Apache-2.0" ]
1
2020-07-08T13:38:45.000Z
2020-07-08T13:52:04.000Z
tensorflow_addons/layers/netvlad_test.py
autoih/addons
82cc77e42195a985419142744ae178d835d15971
[ "Apache-2.0" ]
4
2020-06-03T07:09:59.000Z
2020-12-18T14:51:56.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
31.661538
80
0.672012
9e531ea59d6adeaf782ca833f77bd0fa49638eee
2,388
py
Python
yjxt/selenium1.py
wodzys/BuptScript
460d554078f0bdd6ce845476213120952c71cccf
[ "MIT" ]
2
2021-08-29T09:17:37.000Z
2021-08-29T11:46:37.000Z
yjxt/selenium1.py
wodzys/BuptScript
460d554078f0bdd6ce845476213120952c71cccf
[ "MIT" ]
null
null
null
yjxt/selenium1.py
wodzys/BuptScript
460d554078f0bdd6ce845476213120952c71cccf
[ "MIT" ]
1
2021-08-29T09:18:49.000Z
2021-08-29T09:18:49.000Z
import itchat import time import re from selenium import webdriver from bs4 import BeautifulSoup username = '20180000000' password = '0000000' lessonid = '3131100598' itchat.auto_login() def sendMsg(msg): itchat.send(u"[选课监视系统]"+msg+'\n'+time.strftime('%H:%M:%S',time.localtime(time.time())),toUserName='filehelpe...
31.84
115
0.60804
9c6003652f41a890763a49230264f16c60146d4e
3,961
py
Python
noticias/tests/test_views.py
STEFANOVIVAS/News-Hub
68b74fa7dbc0c5bf51d3ff88e23f622a4155b1c3
[ "PostgreSQL", "MIT" ]
null
null
null
noticias/tests/test_views.py
STEFANOVIVAS/News-Hub
68b74fa7dbc0c5bf51d3ff88e23f622a4155b1c3
[ "PostgreSQL", "MIT" ]
null
null
null
noticias/tests/test_views.py
STEFANOVIVAS/News-Hub
68b74fa7dbc0c5bf51d3ff88e23f622a4155b1c3
[ "PostgreSQL", "MIT" ]
null
null
null
import json from rest_framework import status from django.test import TestCase, Client from django.urls import reverse from noticias.models import Noticia from api.serializers import NoticiaSerializer from users.models import NewUser from rest_framework.test import force_authenticate from rest_framework.test import API...
42.591398
203
0.703105
162fe82661fc55f7756f8d3e646ac8e68c4cdcfe
431
py
Python
maps/migrations/0010_auto_20170821_0158.py
agilman/django_maps2
b7eb0d4e74d049922898ebc23833be522a16b07d
[ "MIT" ]
null
null
null
maps/migrations/0010_auto_20170821_0158.py
agilman/django_maps2
b7eb0d4e74d049922898ebc23833be522a16b07d
[ "MIT" ]
null
null
null
maps/migrations/0010_auto_20170821_0158.py
agilman/django_maps2
b7eb0d4e74d049922898ebc23833be522a16b07d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-08-21 01:58 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('maps', '0009_auto_20170821_0125'), ] operations = [ migrations.RenameField( ...
20.52381
48
0.607889
c0caae61972465cdacbe86abecd090e68be752d0
953
py
Python
tests/test_complex_number.py
herdigiorgi/jsons
2237c1f1ba4841c0597b0f34437626847d86ef30
[ "MIT" ]
null
null
null
tests/test_complex_number.py
herdigiorgi/jsons
2237c1f1ba4841c0597b0f34437626847d86ef30
[ "MIT" ]
null
null
null
tests/test_complex_number.py
herdigiorgi/jsons
2237c1f1ba4841c0597b0f34437626847d86ef30
[ "MIT" ]
null
null
null
from unittest import TestCase import jsons from jsons import DeserializationError class TestComplexNumber(TestCase): def test_dump_complex_number(self): a = 5 + 3j dumped = jsons.dump(a) self.assertDictEqual(dumped, {'real': 5.0, 'imag': 3.0}) def test_dump_complex_number_property(sel...
30.741935
71
0.621196
6c69b289373a31e781349f98ca27aa5499310fe9
1,326
py
Python
setup.py
jmmshn/mongogrant
1fa5e3d0e628b768921cab188619f15f7c029aab
[ "BSD-3-Clause-LBNL" ]
null
null
null
setup.py
jmmshn/mongogrant
1fa5e3d0e628b768921cab188619f15f7c029aab
[ "BSD-3-Clause-LBNL" ]
null
null
null
setup.py
jmmshn/mongogrant
1fa5e3d0e628b768921cab188619f15f7c029aab
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os from setuptools import setup, find_packages module_dir = os.path.dirname(os.path.abspath(__file__)) setup( name='mongogrant', version="0.3.0", packages=find_packages(), include_package_data=True, url='https://github.com/materialsproject/mongogrant/', license='modified BSD', auth...
31.571429
72
0.638009
c9ae9baa9e8585fef627fe1b579867498a8706cb
467
py
Python
zzgui/qt5/widgets/zzspace.py
AndreiPuchko/zzgui
294cb9ed14a52dc5a30e098613ad7aa72ce88d02
[ "Apache-2.0" ]
1
2021-11-25T09:52:28.000Z
2021-11-25T09:52:28.000Z
zzgui/qt5/widgets/zzspace.py
AndreiPuchko/zzgui
294cb9ed14a52dc5a30e098613ad7aa72ce88d02
[ "Apache-2.0" ]
null
null
null
zzgui/qt5/widgets/zzspace.py
AndreiPuchko/zzgui
294cb9ed14a52dc5a30e098613ad7aa72ce88d02
[ "Apache-2.0" ]
null
null
null
import sys if __name__ == "__main__": sys.path.insert(0, ".") from demo.demo import demo demo() from PyQt5.QtWidgets import QFrame, QHBoxLayout, QSizePolicy from zzgui.qt5.zzwidget import ZzWidget class zzspace(QFrame, ZzWidget): def __init__(self, meta): super().__init__(meta) s...
21.227273
82
0.69379
f2ff9e076a5cb3b88938a3d8d8ed83169aa655f1
1,795
py
Python
solver/build.py
aioz-ai/CVPRW21_GPS
97f7d41644d74b0ed7cbe822b42b04d8cfaef5e7
[ "MIT" ]
9
2021-04-18T16:11:22.000Z
2022-03-02T11:59:26.000Z
solver/build.py
aioz-ai/CVPRW21_GPS
97f7d41644d74b0ed7cbe822b42b04d8cfaef5e7
[ "MIT" ]
5
2021-06-02T11:10:18.000Z
2021-12-17T02:25:34.000Z
solver/build.py
aioz-ai/CVPRW21_GPS
97f7d41644d74b0ed7cbe822b42b04d8cfaef5e7
[ "MIT" ]
4
2021-06-23T04:38:43.000Z
2022-03-31T13:37:47.000Z
# encoding: utf-8 """ This code is modified from Hao Luo's repository. Paper: Bag of Tricks and A Strong Baseline for Deep Person Re-identification https://github.com/michuanhaohao/reid-strong-baseline """ import torch def make_optimizer(cfg, model): params = [] for key, value in model.named_parameters(): ...
39.021739
105
0.677994
ecb6b5641f2dc8e804519960458ac65725d410f3
164
py
Python
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_PolyTrend_Seasonal_WeekOfYear_ARX.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_PolyTrend_Seasonal_WeekOfYear_ARX.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_PolyTrend_Seasonal_WeekOfYear_ARX.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['PolyTrend'] , ['Seasonal_WeekOfYear'] , ['ARX'] );
41
86
0.756098
a85000c7316a4775df9d08241fe380e4dc6978a8
504
py
Python
pythondesafios/desafio066.py
matheus-rosario/curso-python
ac9ccf7fc4b3f708821e44787a1bdc231d9426ac
[ "MIT" ]
null
null
null
pythondesafios/desafio066.py
matheus-rosario/curso-python
ac9ccf7fc4b3f708821e44787a1bdc231d9426ac
[ "MIT" ]
null
null
null
pythondesafios/desafio066.py
matheus-rosario/curso-python
ac9ccf7fc4b3f708821e44787a1bdc231d9426ac
[ "MIT" ]
null
null
null
#Crie um programa que leia números inteiros pelo teclado. O programa só vai parar quando o usuário digitar o valor 999, que é a condição de parada. No final, mostre quantos números foram digitados e qual foi a soma entre elas (desconsiderando o flag). número = contador = soma = 0 while número != 999: número = int(inp...
56
251
0.724206
2640535cd61c30dcc6f1e33b19a1bedf552eddc6
6,251
py
Python
pyclicker/lib/python3.7/site-packages/Xlib/keysymdef/xf86.py
JayRovacsek/pyautoclick
e136a58c129332933eb8455dd7c8e16222d54fb2
[ "MIT" ]
1
2019-03-20T17:42:11.000Z
2019-03-20T17:42:11.000Z
Xlib/keysymdef/xf86.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
Xlib/keysymdef/xf86.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
XK_XF86_MonBrightnessUp = 0x1008FF02 XK_XF86_MonBrightnessDown = 0x1008FF03 XK_XF86_KbdLightOnOff = 0x1008FF04 XK_XF86_KbdBrightnessUp = 0x1008FF05 XK_XF86_KbdBrightnessDown = 0x1008FF06 XK_XF86_Standby = 0x1008FF10 XK_XF86_AudioLowerVolume = 0x1008FF11 XK_XF86_AudioMute = 0x1008FF12 XK_XF86_Au...
34.921788
38
0.698288
5156a3a918a01fc6fa4b6a375b677d9a97305a62
407
py
Python
main_app/migrations/0030_auto_20190611_2036.py
Franciscosencion/AutoNetWebPublic
3cec24d43330de082ca4e9f45165d5c3daa4e798
[ "MIT" ]
null
null
null
main_app/migrations/0030_auto_20190611_2036.py
Franciscosencion/AutoNetWebPublic
3cec24d43330de082ca4e9f45165d5c3daa4e798
[ "MIT" ]
4
2020-02-12T00:52:53.000Z
2021-06-10T21:42:44.000Z
main_app/migrations/0030_auto_20190611_2036.py
Franciscosencion/AutoNetWebPublic
3cec24d43330de082ca4e9f45165d5c3daa4e798
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2019-06-12 00:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_app', '0029_auto_20190611_1612'), ] operations = [ migrations.AlterField( model_name='deviceinterfaces', name='in...
21.421053
58
0.614251
2368cf87286ade6ab9ac29b504f55b76675accf4
396
py
Python
CursoPython/dia 2/Ejemplos_Ficheros/EjemploFicheros2.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
CursoPython/dia 2/Ejemplos_Ficheros/EjemploFicheros2.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
CursoPython/dia 2/Ejemplos_Ficheros/EjemploFicheros2.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # pylint: disable=E1601 # # Se abre un fichero en modo escritura y se le añaden varias líneas generadas por la cadena # "Hola" y un número de la lista [5,5,4,5,0,8] en cada línea. # def sobreescribirFichero(): fw = open('fichero2.txt','a') for i in [5,5,4,5,0,8]: fw.write('...
26.4
91
0.669192
f24cb6b3dd1710574d781a4faf7676f6fa3e142f
2,571
py
Python
phonenumbers/data/region_KG.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
2
2019-02-22T05:27:22.000Z
2020-12-30T19:33:18.000Z
phonenumbers/data/region_KG.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
phonenumbers/data/region_KG.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. KG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_KG = PhoneMetadata(id='KG', country_code=996, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[35-8]\\d{8,9}', possible_number_pattern...
102.84
345
0.719564
e6076dca5a6f31c550c06b700dbdc33b65a9200a
743
py
Python
test/test_modify_group.py
svirgibs/python_training
73ec0c3f0a78213088fdbfef38b894ec56f79167
[ "Apache-2.0" ]
null
null
null
test/test_modify_group.py
svirgibs/python_training
73ec0c3f0a78213088fdbfef38b894ec56f79167
[ "Apache-2.0" ]
null
null
null
test/test_modify_group.py
svirgibs/python_training
73ec0c3f0a78213088fdbfef38b894ec56f79167
[ "Apache-2.0" ]
null
null
null
import random from model.group import Group def test_modify_some_group_name(app, db, check_ui): if app.group.count() == 0: app.group.create(Group(name="test")) old_groups = db.get_group_list() group = random.choice(old_groups) mod_group = Group(name="New group") mod_group.id = group.id ...
37.15
113
0.716016
4c04c66d1511697710d81702d7b4b84952ef474f
482
py
Python
examples/matmul_perftest.py
heeryerate/pysparse
24e9cdae16f1348094386abbfb7924329eee62de
[ "BSD-2-Clause-FreeBSD" ]
6
2016-07-28T22:38:42.000Z
2022-02-06T18:41:27.000Z
examples/matmul_perftest.py
heeryerate/pysparse
24e9cdae16f1348094386abbfb7924329eee62de
[ "BSD-2-Clause-FreeBSD" ]
4
2016-06-25T23:16:58.000Z
2020-08-12T16:28:05.000Z
examples/matmul_perftest.py
heeryerate/pysparse
24e9cdae16f1348094386abbfb7924329eee62de
[ "BSD-2-Clause-FreeBSD" ]
10
2017-01-31T23:58:44.000Z
2022-03-05T11:36:31.000Z
import time from pysparse.sparse import spmatrix n = 1000000 # create 2 nxn tridiag matrices A = spmatrix.ll_mat(n, n) B = spmatrix.ll_mat(n, n) for i in xrange(n): A[i,i] = i B[i,i] = i if i > 0: A[i,i-1] = 1 B[i,i-1] = 1 if i < n-1: A[i,i+1] = 1 B[i,i-1] = 1 t1 = ...
17.851852
70
0.558091
5e0f10047c044c64e00fc35fce996010eb8a4384
30,974
py
Python
dexbot/basestrategy.py
coari/DEXBot
094cd2b6cfa4642db28c5860e421391de8e970da
[ "MIT" ]
null
null
null
dexbot/basestrategy.py
coari/DEXBot
094cd2b6cfa4642db28c5860e421391de8e970da
[ "MIT" ]
null
null
null
dexbot/basestrategy.py
coari/DEXBot
094cd2b6cfa4642db28c5860e421391de8e970da
[ "MIT" ]
null
null
null
import datetime import logging import collections import time import math import copy from .storage import Storage from .statemachine import StateMachine from .config import Config from .helper import truncate from events import Events import bitsharesapi import bitsharesapi.exceptions import bitshares.exceptions fro...
36.917759
120
0.588106
b6cfe534472e065cb5da9c6efba024c1d6d071f8
242
py
Python
tests/loop/for15.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
tests/loop/for15.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
tests/loop/for15.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
from polyphony import testbench def for15(x): sum = 0 for i in range(0, x): sum += i x = 5 return sum @testbench def test(): assert 0 == for15(0) assert 6 == for15(4) assert 10 == for15(5) test()
12.1
31
0.533058
23a66e03bf353bfc8f1dde546748ebb5e33e7d70
3,444
py
Python
ixnetwork_restpy/pytest_tests/tests/conftest.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/pytest_tests/tests/conftest.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/pytest_tests/tests/conftest.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
import pytest from collections import namedtuple from ixnetwork_restpy.testplatform.testplatform import TestPlatform def pytest_addoption(parser): parser.addoption('--server',default=[],action='append',help='''server: <server_ip>:<server_port>:<server_platform> example--> --server 10.39.37.24:443:connect...
29.689655
118
0.67741
250fdc903a5eb500710d93a30ce568f513942c0a
2,368
py
Python
04-Data-Structures-Linked-Lists/28-LL-Set/src/LL-Set.py
covuworie/data-structures-and-algorithms
beeb9686300c7498d87c201b71fa39d560b0deee
[ "MIT" ]
null
null
null
04-Data-Structures-Linked-Lists/28-LL-Set/src/LL-Set.py
covuworie/data-structures-and-algorithms
beeb9686300c7498d87c201b71fa39d560b0deee
[ "MIT" ]
null
null
null
04-Data-Structures-Linked-Lists/28-LL-Set/src/LL-Set.py
covuworie/data-structures-and-algorithms
beeb9686300c7498d87c201b71fa39d560b0deee
[ "MIT" ]
null
null
null
from typing import Optional, Union class Node: def __init__(self, value: int) -> None: self.value = value self.next = None class LinkedList: def __init__(self, value: int) -> None: new_node = Node(value) self.head = new_node self.tail = new_node self.le...
24.412371
51
0.523226
d8f3d3c2c43d5c7eede956aef243d01cec57cee1
823
py
Python
ablator/core/migrations/0003_auto_20180816_1225.py
ablator/ablator
514635f6b3c34da590ea9f9824152a74cdf3dec9
[ "BSD-3-Clause" ]
65
2017-08-16T14:33:40.000Z
2022-02-17T14:39:36.000Z
ablator/core/migrations/0003_auto_20180816_1225.py
ablator/ablator
514635f6b3c34da590ea9f9824152a74cdf3dec9
[ "BSD-3-Clause" ]
71
2017-08-13T13:35:04.000Z
2019-10-31T03:23:18.000Z
ablator/core/migrations/0003_auto_20180816_1225.py
ablator/ablator
514635f6b3c34da590ea9f9824152a74cdf3dec9
[ "BSD-3-Clause" ]
3
2017-09-10T04:30:34.000Z
2019-10-25T09:50:00.000Z
# Generated by Django 2.1 on 2018-08-16 12:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0002_auto_20180816_1218"), ] operations = [ migrations.RemoveField(model_name="functionality", name="rollout_strategy",), migr...
28.37931
85
0.526124
54554e23dc265ca2b8fce7fd765430e85d3f764a
1,453
py
Python
rock_paper_scissior_game.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
215
2021-10-01T08:18:16.000Z
2022-03-29T04:12:03.000Z
rock_paper_scissior_game.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
51
2021-10-01T08:16:42.000Z
2021-10-31T13:51:51.000Z
rock_paper_scissior_game.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
807
2021-10-01T08:11:45.000Z
2021-11-21T18:57:09.000Z
import random # Defining the rules for the game #p = paper , s = stone , x = scissiors rule1 = "p" > "s" rule2 = "s" > "x" rule3 = "x" > "p" i = 0 #using random no generator for single player mode no_of_players = input("Press 'a' for single player mode and press 'd' for double player mode") if no_of_...
27.942308
101
0.533379
b7d4d9ba0bfb6e55a5d5f2ab25ff2313bd4e046f
36
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_Negative_Indexing.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_Negative_Indexing.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_Negative_Indexing.txt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
b = "Hello, World!" print(b[-5:-2])
12
19
0.527778
0dacfad385290c37cfc9da59e580a7eb174f55e8
906
py
Python
cloud_auto/wol.py
longlg88/renewAutomation
52c3a1529766d5fe24fd6979816796353e471693
[ "Apache-2.0" ]
null
null
null
cloud_auto/wol.py
longlg88/renewAutomation
52c3a1529766d5fe24fd6979816796353e471693
[ "Apache-2.0" ]
null
null
null
cloud_auto/wol.py
longlg88/renewAutomation
52c3a1529766d5fe24fd6979816796353e471693
[ "Apache-2.0" ]
null
null
null
import socket, struct import utils class EtherWaker(): def validateMacChk(self, mac_address): #to do : write mac address chk regx if len(mac_address) == 12: self.mac_address = mac_address elif len(mac_address) == 17: delimeter = mac_address[2] self.mac...
29.225806
66
0.622517
bfa0a4fd5d08b2c8de0c204f973e15de0ca5db2a
15,512
py
Python
deeppavlov/models/ner/NER_model.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
1
2020-09-16T14:30:00.000Z
2020-09-16T14:30:00.000Z
deeppavlov/models/ner/NER_model.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
null
null
null
deeppavlov/models/ner/NER_model.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
1
2020-08-14T05:01:50.000Z
2020-08-14T05:01:50.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
49.088608
118
0.544353
b445ec48480b1e1630c40e24e2290ed539ea3489
477
py
Python
tests/test_vowel_remover.py
tylorschafer/code-katas
831fb6f37c1fa3ddb85f939b25ab4cea873ec6c6
[ "MIT" ]
5
2019-03-31T16:28:19.000Z
2021-02-19T09:33:04.000Z
tests/test_vowel_remover.py
tylorschafer/code-katas
831fb6f37c1fa3ddb85f939b25ab4cea873ec6c6
[ "MIT" ]
2
2017-06-14T23:57:48.000Z
2017-06-22T20:21:32.000Z
tests/test_vowel_remover.py
tylorschafer/code-katas
831fb6f37c1fa3ddb85f939b25ab4cea873ec6c6
[ "MIT" ]
6
2020-02-02T02:10:27.000Z
2022-01-27T16:34:13.000Z
"""Test vowel remover function.""" import pytest STRING = [ ['hello', 'hll'], ['claire', 'clr'], ['borriquito como tu', 'brrqt cm t'], ['We are the Knights who say ni!', 'W r th Knghts wh sy n!'], ["It's just a flesh wound.", "It's jst flsh wnd."] ] @pytest.mark.parametrize("n, result", STRING...
23.85
65
0.622642
687eed8aeeb5c52a65e4c752bfad614f7c80627e
414
py
Python
apps/sample.py
debussy-net/debussy
0cd4df123eee8a17aab40592758d69c004affa20
[ "Apache-2.0" ]
1
2020-06-17T01:49:59.000Z
2020-06-17T01:49:59.000Z
apps/sample.py
debussy-net/debussy
0cd4df123eee8a17aab40592758d69c004affa20
[ "Apache-2.0" ]
null
null
null
apps/sample.py
debussy-net/debussy
0cd4df123eee8a17aab40592758d69c004affa20
[ "Apache-2.0" ]
null
null
null
""" Sample (dummy) sub-shell application """ from debussy.app import AppConsole class SampleConsole(AppConsole): def do_echo(self, line): "Test command, echo arguments" print self.__class__.__name__, "says:", line def do_sql(self, line): "Execute a sql statement" self.db.curso...
21.789474
52
0.683575
6c990b5cff917809b4df692a126cfca32c1e676c
86,400
py
Python
gensrc/script/doris_builtins_functions.py
ChPi/incubator-doris
599ecb1f30d062199dfab270c116de0325df2e55
[ "Apache-2.0" ]
1
2021-09-10T16:59:03.000Z
2021-09-10T16:59:03.000Z
gensrc/script/doris_builtins_functions.py
ChPi/incubator-doris
599ecb1f30d062199dfab270c116de0325df2e55
[ "Apache-2.0" ]
10
2021-10-10T15:03:24.000Z
2021-12-18T18:37:49.000Z
gensrc/script/doris_builtins_functions.py
ChPi/incubator-doris
599ecb1f30d062199dfab270c116de0325df2e55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Ver...
61.189802
129
0.656829
218437516fce54f16bd42b24000ea247c2c4578d
906
py
Python
onebuild/init_command.py
AdeshAtole/1build
da89642e417c2004bda375f4a819dda4f9c6a203
[ "MIT" ]
null
null
null
onebuild/init_command.py
AdeshAtole/1build
da89642e417c2004bda375f4a819dda4f9c6a203
[ "MIT" ]
null
null
null
onebuild/init_command.py
AdeshAtole/1build
da89642e417c2004bda375f4a819dda4f9c6a203
[ "MIT" ]
null
null
null
import os from onebuild.command import Command from onebuild.file_writer import write def default_yaml_file(project_name): return "project: " + project_name + "\n" + \ "commands:" + "\n" + \ " - build: echo 'Running build'" class InitCommand(Command): def execute(self, arg_parser, a...
29.225806
76
0.675497
427851b06c42d8f14443fec77ee846244d0f3541
12,657
py
Python
vice/core/outputs/output.py
rcooke-ast/VICE
762911eb4192c7206ce2ae36b645d120ed889cb7
[ "MIT" ]
22
2018-09-26T21:02:51.000Z
2022-03-24T18:07:03.000Z
vice/core/outputs/output.py
rcooke-ast/VICE
762911eb4192c7206ce2ae36b645d120ed889cb7
[ "MIT" ]
2
2019-05-03T13:08:27.000Z
2021-02-17T20:11:37.000Z
vice/core/outputs/output.py
rcooke-ast/VICE
762911eb4192c7206ce2ae36b645d120ed889cb7
[ "MIT" ]
3
2019-05-10T19:26:31.000Z
2021-11-10T08:13:42.000Z
from __future__ import absolute_import from ..._globals import _VERSION_ERROR_ from ._output import c_output from . import _output_utils import zipfile import sys import os if sys.version_info[:2] == (2, 7): strcomp = basestring elif sys.version_info[:2] >= (3, 5): strcomp = str else: _VERSION_ERROR_() class outpu...
25.314
74
0.606226
e2792fc2529cdd8b0b0586e77183dd358b5e3036
525
py
Python
foc_pay_web/users/forms.py
ollema/foc_pay_web
9ff082ee0f6d7109d938638e1cc32ce25f28bdc1
[ "MIT" ]
2
2021-09-14T07:14:27.000Z
2022-01-06T12:21:34.000Z
foc_pay_web/users/forms.py
ollema/foc_pay_web
9ff082ee0f6d7109d938638e1cc32ce25f28bdc1
[ "MIT" ]
5
2021-11-07T11:01:13.000Z
2022-03-29T08:33:28.000Z
take_home/users/forms.py
SUPERVISA-AI/take-home-backend
d71025b533619de3f6f1611dc18ef29a762b8cf0
[ "MIT" ]
2
2022-03-12T13:25:09.000Z
2022-03-21T08:44:33.000Z
from django.contrib.auth import forms as admin_forms from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ User = get_user_model() class UserChangeForm(admin_forms.UserChangeForm): class Meta(admin_forms.UserChangeForm.Meta): model = User class UserCreati...
29.166667
93
0.76
de4c697c62f1fe05195b3f185e3e6e80c6a1fd3c
1,223
py
Python
zerver/migrations/0121_realm_signup_notifications_stream.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
1
2020-04-09T18:34:44.000Z
2020-04-09T18:34:44.000Z
zerver/migrations/0121_realm_signup_notifications_stream.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
null
null
null
zerver/migrations/0121_realm_signup_notifications_stream.py
pranayshahxyz/zulip
3da483487af79fde9dce2d21124dfa39b94936a5
[ "Apache-2.0" ]
null
null
null
# Generated by Django 1.11.5 on 2017-10-19 22:01 import django.db.models.deletion from django.db import migrations, models from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps def set_initial_value_for_signup_notifications_stream( app...
38.21875
142
0.722813
569c294b0bebae0a11245846a17d1ba29ea01ef5
2,376
py
Python
manaba/models/ManabaCourse.py
book000/get-manaba
e877f1ddd2cb6866e7493c8d2364f92e8cf8eb02
[ "MIT" ]
3
2021-08-12T19:55:36.000Z
2021-11-14T17:16:57.000Z
manaba/models/ManabaCourse.py
book000/get-manaba
e877f1ddd2cb6866e7493c8d2364f92e8cf8eb02
[ "MIT" ]
6
2021-07-15T04:05:10.000Z
2022-03-30T17:10:35.000Z
manaba/models/ManabaCourse.py
book000/get-manaba
e877f1ddd2cb6866e7493c8d2364f92e8cf8eb02
[ "MIT" ]
null
null
null
""" manaba コース情報 """ from typing import Optional from manaba.models.ManabaCourseLamps import ManabaCourseLamps from manaba.models.ManabaModel import ManabaModel class ManabaCourse(ManabaModel): """ manaba コース情報 """ def __init__(self, name: str, course_id: int, ...
21.405405
74
0.529461
05227f924093a552670eeb453a61ead3eacc0cdf
31
py
Python
nameko_stripe/__init__.py
juliotrigo/nameko-stripe
ff378296c4fcd4c7d3fc47d8f9841a6b977415b8
[ "MIT" ]
4
2018-08-14T15:19:26.000Z
2019-03-23T12:35:00.000Z
nameko_stripe/__init__.py
juliotrigo/nameko-stripe
ff378296c4fcd4c7d3fc47d8f9841a6b977415b8
[ "MIT" ]
2
2019-03-23T20:38:58.000Z
2019-09-30T14:19:10.000Z
nameko_stripe/__init__.py
juliotrigo/nameko-stripe
ff378296c4fcd4c7d3fc47d8f9841a6b977415b8
[ "MIT" ]
2
2018-12-07T12:10:24.000Z
2019-02-07T10:42:38.000Z
from .stripe_dep import Stripe
15.5
30
0.83871
9ef88ab143a62e2837f8206b6be7d491738030fd
388
py
Python
152. Maximum product subbarray.py
bogdan824/LeetCode-Problems_02
b5ffd0b0bbb8f63fde2f89c672ca1976c2855b09
[ "MIT" ]
null
null
null
152. Maximum product subbarray.py
bogdan824/LeetCode-Problems_02
b5ffd0b0bbb8f63fde2f89c672ca1976c2855b09
[ "MIT" ]
null
null
null
152. Maximum product subbarray.py
bogdan824/LeetCode-Problems_02
b5ffd0b0bbb8f63fde2f89c672ca1976c2855b09
[ "MIT" ]
null
null
null
def maxProd(nums): maxi = nums[0] curr_max = nums[0] curr_min = nums[0] for i in range (1,len(nums)): if nums[i]==0: curr_max = 1 curr_min = 1 curr_max = max(nums[i]*curr_max, nums[i]*curr_min, nums[i]) curr_min = min(curr_max * nums[i], nums[i]*curr_min, nums[i]) maxi = max(maxi,curr...
20.421053
64
0.595361
ce73cef03d811e2a4d671f4170d4576417bddc40
7,406
py
Python
src/zipline/pipeline/loaders/equity_pricing_loader.py
daground/zipline-reloaded
0aaf5410f58cf950fb95e06e406fda76fde963de
[ "Apache-2.0" ]
null
null
null
src/zipline/pipeline/loaders/equity_pricing_loader.py
daground/zipline-reloaded
0aaf5410f58cf950fb95e06e406fda76fde963de
[ "Apache-2.0" ]
null
null
null
src/zipline/pipeline/loaders/equity_pricing_loader.py
daground/zipline-reloaded
0aaf5410f58cf950fb95e06e406fda76fde963de
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Quantopian, 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 writ...
34.607477
79
0.636241
cf4e457750a2206da030e84e590b61f7cdcb721b
12,738
py
Python
zulipterminal/cli/run.py
myii/zulip-terminal
63156539d7373fefe329f5afc9e2e5c484e467df
[ "Apache-2.0" ]
null
null
null
zulipterminal/cli/run.py
myii/zulip-terminal
63156539d7373fefe329f5afc9e2e5c484e467df
[ "Apache-2.0" ]
null
null
null
zulipterminal/cli/run.py
myii/zulip-terminal
63156539d7373fefe329f5afc9e2e5c484e467df
[ "Apache-2.0" ]
null
null
null
import argparse import configparser import logging import sys import traceback from os import path, remove from typing import Any, Dict, List, Optional, Tuple import requests from urwid import display_common, set_encoding from zulipterminal.config.themes import ( THEMES, aliased_themes, all_themes, complete_and_i...
36.084986
79
0.56304
cddc70c08b6bd860d0b1e04bedccf0df10139730
60,926
py
Python
sdk/python/pulumi_aws/dynamodb/table.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/dynamodb/table.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/dynamodb/table.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
51.45777
411
0.664413
d50c634ebe990ef080362afc4eb6f06be8b96680
10,046
py
Python
reverse_fasta.py
pwilmart/fasta_utilities
05d5e344c168d3ae3fcb5a2022b5e50a773db576
[ "MIT" ]
7
2019-04-15T15:59:57.000Z
2021-08-16T12:50:53.000Z
reverse_fasta.py
pwilmart/fasta_utilities
05d5e344c168d3ae3fcb5a2022b5e50a773db576
[ "MIT" ]
1
2019-01-08T01:58:41.000Z
2019-01-08T01:58:41.000Z
reverse_fasta.py
pwilmart/fasta_utilities
05d5e344c168d3ae3fcb5a2022b5e50a773db576
[ "MIT" ]
6
2018-11-09T09:03:19.000Z
2020-12-04T16:26:56.000Z
"""'reverse_fasta.py' Written by Phil Wilmarth, OHSU. The MIT License (MIT) Copyright (c) 2017 Phillip A. Wilmarth and OHSU Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, i...
42.748936
119
0.624428
6e06ab3808be4dc5e95e2891e2942f765ee01b25
36,157
py
Python
venv/Lib/site-packages/pandas/core/arrays/timedeltas.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/arrays/timedeltas.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/arrays/timedeltas.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
from datetime import timedelta from typing import List import numpy as np from pandas._libs import lib, tslibs from pandas._libs.tslibs import NaT, Period, Tick, Timedelta, Timestamp, iNaT, to_offset from pandas._libs.tslibs.conversion import precision_from_unit from pandas._libs.tslibs.fields import get_time...
34.304554
89
0.569765
ce341c986235dc7721029ba9e149ee2acaa192a9
2,784
py
Python
utils/metrics.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
null
null
null
utils/metrics.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
null
null
null
utils/metrics.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
null
null
null
import numpy as np import sys import time, logging logger = logging.getLogger() logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stdout) handler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) if (logger.h...
35.240506
122
0.628592
ff835eb32f6df00cdde08d0706faf8340fd2cfea
89,089
py
Python
pandas/core/arrays/categorical.py
punitvara/pandas
dec7d213fb27e9eafb61201f173c241d7105f772
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-13T17:34:58.000Z
2021-05-13T17:34:58.000Z
pandas/core/arrays/categorical.py
punitvara/pandas
dec7d213fb27e9eafb61201f173c241d7105f772
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/categorical.py
punitvara/pandas
dec7d213fb27e9eafb61201f173c241d7105f772
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from csv import QUOTE_NONNUMERIC from functools import partial import operator from shutil import get_terminal_size from typing import ( TYPE_CHECKING, Dict, Hashable, List, Optional, Sequence, Type, TypeVar, Union, cast, ) from warnings import...
32.825718
88
0.581755
27df30af3622745eebd7410db6c30d8b49472586
532
py
Python
Leetcode/535-encode_decode.py
EdwaRen/Competitve-Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2021-05-03T21:48:25.000Z
2021-05-03T21:48:25.000Z
Leetcode/535-encode_decode.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/535-encode_decode.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
import random class Codec: mappings = {} count = 0; def randomURL(self): url="" for x in range(6): url+= str(random.randint(0, 9)) return str(url) def encode(self, longUrl): my_url = self.randomURL() while my_url in self.mappings: my_url ...
21.28
43
0.580827
5ee5f437e1fec8d7bdd0b439cc3ea92df2af0866
303
py
Python
code/blinky.py
satirebird/raspberry-pi-2022
1b36cad425a1ba5e0cd444b96526a146067f8b8e
[ "MIT" ]
null
null
null
code/blinky.py
satirebird/raspberry-pi-2022
1b36cad425a1ba5e0cd444b96526a146067f8b8e
[ "MIT" ]
null
null
null
code/blinky.py
satirebird/raspberry-pi-2022
1b36cad425a1ba5e0cd444b96526a146067f8b8e
[ "MIT" ]
null
null
null
import time import RPi.GPIO as GPIO led_pin = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(led_pin, GPIO.OUT) try: while True: GPIO.output(led_pin, GPIO.HIGH) time.sleep(0.5) GPIO.output(led_pin, GPIO.LOW) time.sleep(0.5) except KeyboardInterrupt: pass GPIO.cleanup()
16.833333
39
0.660066
9ea4130f008be3f0616c35193a6a3ed92064d80a
228
py
Python
kitti_settings.py
ZdenekStraka/precnet
f804346616c7a14da9b0f3c227c4ca17095bcd03
[ "MIT" ]
8
2020-05-30T03:56:44.000Z
2021-11-24T08:16:18.000Z
kitti_settings.py
ZdenekStraka/precnet
f804346616c7a14da9b0f3c227c4ca17095bcd03
[ "MIT" ]
null
null
null
kitti_settings.py
ZdenekStraka/precnet
f804346616c7a14da9b0f3c227c4ca17095bcd03
[ "MIT" ]
2
2020-07-31T17:06:23.000Z
2021-05-12T14:57:04.000Z
# Where the dataset is saved DATA_DIR = './datasets/' # Where the model is saved WEIGHTS_DIR = './model_data_kitti/' # Where results (prediction plots and evaluation file) will be saved. RESULTS_SAVE_DIR = './kitti_results/'
25.333333
69
0.741228
d48c3c43a25cdc014e39d66dc57d1c22ee4dbdab
5,741
py
Python
tests/components/owntracks/test_config_flow.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
tests/components/owntracks/test_config_flow.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
6
2021-02-08T20:59:36.000Z
2022-03-12T00:52:11.000Z
tests/components/owntracks/test_config_flow.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Tests for OwnTracks config flow.""" from unittest.mock import Mock, patch import pytest from homeassistant import data_entry_flow from homeassistant.components.owntracks import config_flow from homeassistant.components.owntracks.config_flow import CONF_CLOUDHOOK, CONF_SECRET from homeassistant.components.owntracks...
33.184971
86
0.711374
fd6c97f06060e4e829add17f36d19ab825f4cd3b
10,263
py
Python
password_generator/routes.py
CoderSsVartak/password_generator
85c5a655b13645f6c6a46d2c6f8e8a3eae1a707f
[ "MIT" ]
null
null
null
password_generator/routes.py
CoderSsVartak/password_generator
85c5a655b13645f6c6a46d2c6f8e8a3eae1a707f
[ "MIT" ]
null
null
null
password_generator/routes.py
CoderSsVartak/password_generator
85c5a655b13645f6c6a46d2c6f8e8a3eae1a707f
[ "MIT" ]
1
2021-05-04T11:57:20.000Z
2021-05-04T11:57:20.000Z
from flask import redirect, render_template, url_for, flash, request, jsonify from password_generator import app, db, db_session, space, e from password_generator.forms import LoginForm, RegistrationForm from flask_login import login_user, current_user, login_required, logout_user from password_generator.models imp...
32.684713
141
0.629835
92612a25a175872ec2ee17c0d1251ea8af963b2c
2,572
py
Python
bactopia/parsers/mapping.py
kinow/bactopia
17b3cbafadc5de2eb8a9a6dcafd68d4b7daf6746
[ "MIT" ]
1
2021-02-23T15:40:29.000Z
2021-02-23T15:40:29.000Z
bactopia/parsers/mapping.py
kinow/bactopia
17b3cbafadc5de2eb8a9a6dcafd68d4b7daf6746
[ "MIT" ]
9
2019-05-20T17:05:09.000Z
2019-08-29T12:59:57.000Z
bactopia/parsers/mapping.py
bactopia/bactopia-ap
f87c55f3c9f8c7aca230d7a6146db078acd6d141
[ "MIT" ]
null
null
null
""" Parsers for Mapping related results. """ from .generic import get_file_type RESULT_TYPE = 'mapping' ACCEPTED_FILES = [".txt"] def parse(filename: str) -> list: """ Check input file is an accepted file, then select the appropriate parsing method. Args: filename (str): input file to be parsed ...
27.073684
94
0.5486
fa66867ca6f920afd935740c37c67566872e3f0a
443
py
Python
src/pyrin/task_queues/celery/cli/component.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/task_queues/celery/cli/component.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/task_queues/celery/cli/component.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ celery cli component module. """ from pyrin.application.decorators import component from pyrin.application.structs import Component from pyrin.task_queues.celery.cli import CeleryCLIPackage from pyrin.task_queues.celery.cli.manager import CeleryCLIManager @component(CeleryCLIPackage.COMPO...
24.611111
65
0.776524
40137b5ef1f59935bb58881dd92e43362ee8adbf
4,568
py
Python
liquidator/settings.py
dagolap/liquidator-backend
542470db6a0169533f402c9f82ae4d9dd7f47b23
[ "MIT" ]
null
null
null
liquidator/settings.py
dagolap/liquidator-backend
542470db6a0169533f402c9f82ae4d9dd7f47b23
[ "MIT" ]
null
null
null
liquidator/settings.py
dagolap/liquidator-backend
542470db6a0169533f402c9f82ae4d9dd7f47b23
[ "MIT" ]
null
null
null
""" Django settings for liquidator project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os...
24.961749
91
0.693739
e3ef9b02b33d06c366eebd429770f70b255fd673
924
py
Python
lib/models/__init__.py
XuJiacong/test2
79b21b3eea1a402d4f401b771f78242411855524
[ "MIT" ]
null
null
null
lib/models/__init__.py
XuJiacong/test2
79b21b3eea1a402d4f401b771f78242411855524
[ "MIT" ]
null
null
null
lib/models/__init__.py
XuJiacong/test2
79b21b3eea1a402d4f401b771f78242411855524
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __future_...
28.875
80
0.695887
c4163e4a151630bc4a1f3d5b092f7a9a0ea7faf5
2,374
py
Python
authlib/integrations/starlette_client/integration.py
bobh66/authlib
e3e18da74d689b61a8dc8db46775ff77a57c6c2a
[ "BSD-3-Clause" ]
1
2021-12-09T07:11:05.000Z
2021-12-09T07:11:05.000Z
authlib/integrations/starlette_client/integration.py
bobh66/authlib
e3e18da74d689b61a8dc8db46775ff77a57c6c2a
[ "BSD-3-Clause" ]
null
null
null
authlib/integrations/starlette_client/integration.py
bobh66/authlib
e3e18da74d689b61a8dc8db46775ff77a57c6c2a
[ "BSD-3-Clause" ]
2
2021-05-24T20:34:12.000Z
2022-03-26T07:46:17.000Z
from starlette.responses import RedirectResponse from ..httpx_client import AsyncOAuth1Client, AsyncOAuth2Client from ..base_client import FrameworkIntegration from ..base_client.async_app import AsyncRemoteApp class StartletteIntegration(FrameworkIntegration): oauth1_client_cls = AsyncOAuth1Client oauth2_cli...
35.432836
77
0.668071
5bac586ef392914e26802cb7f42a8707c8a12dfe
2,145
py
Python
ldt/bv/scripts/drostest.py
neurodata/j1c-experiments
21357acb0d6e64dd4c96a9722dddbf83573c3cae
[ "Apache-2.0" ]
null
null
null
ldt/bv/scripts/drostest.py
neurodata/j1c-experiments
21357acb0d6e64dd4c96a9722dddbf83573c3cae
[ "Apache-2.0" ]
null
null
null
ldt/bv/scripts/drostest.py
neurodata/j1c-experiments
21357acb0d6e64dd4c96a9722dddbf83573c3cae
[ "Apache-2.0" ]
null
null
null
import _pickle as pkl import numpy as np import matplotlib.pyplot as plt from graspy.utils import pass_to_ranks as ptr from graspy.embed import AdjacencySpectralEmbed, select_dimension from graspy.plot import heatmap, pairplot from graspy.inference import LatentDistributionTest from scipy.stats import gaussian_kde as g...
33.515625
86
0.663403
faa9aed1f8a20b01287367ece027a8148540bffa
1,861
py
Python
sentence_transformers/models/Dense.py
fhaase2/sentence-transformers
40f994e5e3ce3e2819833773117d788dfa0c7e7f
[ "Apache-2.0" ]
79
2020-05-07T21:25:29.000Z
2022-03-19T20:25:34.000Z
sentence_transformers/models/Dense.py
fhaase2/sentence-transformers
40f994e5e3ce3e2819833773117d788dfa0c7e7f
[ "Apache-2.0" ]
6
2021-04-06T18:22:56.000Z
2022-03-12T00:52:25.000Z
sentence_transformers/models/Dense.py
fhaase2/sentence-transformers
40f994e5e3ce3e2819833773117d788dfa0c7e7f
[ "Apache-2.0" ]
12
2020-05-12T05:40:48.000Z
2021-10-02T04:40:47.000Z
import torch from torch import Tensor from torch import nn from torch import functional as F from typing import Union, Tuple, List, Iterable, Dict import os import json from ..util import fullname, import_from_string class Dense(nn.Module): """Feed-forward function with activiation function. This layer take...
40.456522
175
0.706609
28c407362f4dbc3c994052afc67ea269c1cf907e
15,653
py
Python
autotest/ogr/ogr_cad.py
joa-quim/gdal
4864590da00e0ff439159e378bdfeb25b4be48d4
[ "MIT" ]
null
null
null
autotest/ogr/ogr_cad.py
joa-quim/gdal
4864590da00e0ff439159e378bdfeb25b4be48d4
[ "MIT" ]
null
null
null
autotest/ogr/ogr_cad.py
joa-quim/gdal
4864590da00e0ff439159e378bdfeb25b4be48d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # Project: OGR CAD Driver # Purpose: Tests OGR CAD Driver capabilities # Author: Alexandr Borzykh, mush3d at gmail.com # Author: Dmitry Baryshnikov, polimax@mail.ru # Language: Python ####...
32.54262
98
0.605443
7b64c8ea8d70b56a8b3a35efdafe29f318479830
1,537
py
Python
ifbookbackend/models.py
bcc-dw-20212/ifbook-backend
87d9f1ec6f9e8c90ea79298b0a36b5c1a7bf8661
[ "Apache-2.0" ]
null
null
null
ifbookbackend/models.py
bcc-dw-20212/ifbook-backend
87d9f1ec6f9e8c90ea79298b0a36b5c1a7bf8661
[ "Apache-2.0" ]
9
2022-03-09T19:31:43.000Z
2022-03-28T16:37:57.000Z
ifbookbackend/models.py
bcc-dw-20212/ifbook-backend
87d9f1ec6f9e8c90ea79298b0a36b5c1a7bf8661
[ "Apache-2.0" ]
null
null
null
from ifbookbackend.ext.database import db class Curso(db.Model): id = db.Column(db.Integer, primary_key=True) nome = db.Column(db.String(30), unique=True, nullable=False) sigla = db.Column(db.String(4), unique=True) cursos_alunos = db.Table( "cursos_alunos", db.Column("aluno", db.Integer, db.For...
32.020833
84
0.668185
a7d5fa7581021130913481d08cd69e2245056f5b
1,023
py
Python
scripts/survey.py
cbshiles/AmeriWeb
eaddfff42a775e53a7f0c1568957f7fca926e264
[ "MIT" ]
null
null
null
scripts/survey.py
cbshiles/AmeriWeb
eaddfff42a775e53a7f0c1568957f7fca926e264
[ "MIT" ]
null
null
null
scripts/survey.py
cbshiles/AmeriWeb
eaddfff42a775e53a7f0c1568957f7fca926e264
[ "MIT" ]
null
null
null
class Leaf: def __init__(self, di): self.di = di self.lzt = [] self.hits = 0 def add(self, trail): self.hits += 1 if len(trail) < 1: return for x in self.lzt: if (x.di == trail[0]): x.add(trail[1:]) ...
19.673077
55
0.459433