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
4ff11f80f26c7b2649dc72a51fbbd9bf3ebf5728
6,605
py
Python
ios/Vendor/SDWebImage/Vendors/libwebp/swig/libwebp.py
yue-f/react-native-fast-image
b7112d3872277066f643102530dfdbcb0a9aa0ee
[ "MIT" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
ios/Vendor/SDWebImage/Vendors/libwebp/swig/libwebp.py
yue-f/react-native-fast-image
b7112d3872277066f643102530dfdbcb0a9aa0ee
[ "MIT" ]
1,095
2016-04-10T18:15:33.000Z
2022-03-31T18:21:20.000Z
ios/Vendor/SDWebImage/Vendors/libwebp/swig/libwebp.py
yue-f/react-native-fast-image
b7112d3872277066f643102530dfdbcb0a9aa0ee
[ "MIT" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.4 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import ...
33.190955
106
0.702952
94584c2d7eb4baca47aed40928af5e715132a577
1,700
py
Python
test/votes_test.py
shihab4t/social_media_api.py
7bb4d037032ca92986bc01295625fa368d5e12de
[ "Unlicense" ]
null
null
null
test/votes_test.py
shihab4t/social_media_api.py
7bb4d037032ca92986bc01295625fa368d5e12de
[ "Unlicense" ]
null
null
null
test/votes_test.py
shihab4t/social_media_api.py
7bb4d037032ca92986bc01295625fa368d5e12de
[ "Unlicense" ]
null
null
null
import pytest from app import models @pytest.fixture def test_vote(test_posts, session, test_user): new_vote = models.Vote( post_id=test_posts[-1].id, user_id=test_user.get("id")) session.add(new_vote) session.commit() def test_votes_on_post(authorized_client, test_posts): res = authorized_c...
20.481928
71
0.57
f81ed65ba638257683b3ff0ff439cb1d9a79d639
3,638
py
Python
backprop/main.py
amangour30/BINC
08bdea69108fdb2e5db06d86c195ddec1ef0a71e
[ "BSD-2-Clause" ]
null
null
null
backprop/main.py
amangour30/BINC
08bdea69108fdb2e5db06d86c195ddec1ef0a71e
[ "BSD-2-Clause" ]
null
null
null
backprop/main.py
amangour30/BINC
08bdea69108fdb2e5db06d86c195ddec1ef0a71e
[ "BSD-2-Clause" ]
null
null
null
from activation_functions import sigmoid_function, tanh_function, linear_function,\ LReLU_function, ReLU_function, elliot_function, symmetric_elliot_function, softmax_function from cost_functions import sum_squared_error, cross_entropy_cost, exponential_cost, hellinger_distance, softm...
33.685185
131
0.619571
68ede18589b502388c6b0502fe1ae33acaff92e2
2,657
py
Python
datasets/smart-crop.py
akpun/writer-identification
959c438ddd4cdb19976e0197a78d4f6b616030f5
[ "MIT" ]
3
2020-09-16T01:59:46.000Z
2021-08-12T08:46:14.000Z
datasets/smart-crop.py
ZenPro100/writer-identification
959c438ddd4cdb19976e0197a78d4f6b616030f5
[ "MIT" ]
null
null
null
datasets/smart-crop.py
ZenPro100/writer-identification
959c438ddd4cdb19976e0197a78d4f6b616030f5
[ "MIT" ]
1
2021-02-28T16:07:33.000Z
2021-02-28T16:07:33.000Z
import os import sys from os.path import exists import cv2 import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm path = sys.argv[1] new_path = sys.argv[2] dataset = sys.argv[3] def smart_crop(img): # (1) Convert to gray, and threshold s = img.shape if len(s) > 2: gray = cv2.cv...
30.54023
97
0.637185
dddfe496017440f105c0bcac6154748b9305ed6f
20
py
Python
utils/exporters/blender/modules/msgpack/_version.py
wenluzhizhi/threeEx
82b1795f9f73bb47fd3c49befc6606944f79d639
[ "MIT" ]
88
2015-01-09T02:21:24.000Z
2021-11-11T02:54:08.000Z
utils/exporters/blender/modules/msgpack/_version.py
superguigui/three.js
c18be1eca38a1f3c779e8dcb168edf06ee9441ad
[ "MIT" ]
1,054
2015-09-11T06:51:27.000Z
2022-03-30T09:46:54.000Z
utils/exporters/blender/modules/msgpack/_version.py
superguigui/three.js
c18be1eca38a1f3c779e8dcb168edf06ee9441ad
[ "MIT" ]
80
2015-12-09T12:41:52.000Z
2022-02-16T11:46:42.000Z
version = (0, 4, 2)
10
19
0.5
330b76423b65b11a974c32faa840bdccef99ae87
1,198
py
Python
django/contrib/admindocs/middleware.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
2
2016-09-27T09:30:19.000Z
2016-10-17T01:47:43.000Z
env/lib/python2.7/site-packages/django/contrib/admindocs/middleware.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
env/lib/python2.7/site-packages/django/contrib/admindocs/middleware.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
1
2020-05-25T08:55:19.000Z
2020-05-25T08:55:19.000Z
from django.conf import settings from django import http class XViewMiddleware(object): """ Adds an X-View header to internal HEAD requests -- used by the documentation system. """ def process_view(self, request, view_func, view_args, view_kwargs): """ If the request method is HEAD and...
47.92
100
0.652755
a1f75e536b0c8c9018a2be7251932840f2b6f221
10,443
py
Python
datastage/admin/interactive.py
mkozuharov/DataStage
a61e67c901c2b43afa0fec6a99ef72152391a55f
[ "MIT" ]
null
null
null
datastage/admin/interactive.py
mkozuharov/DataStage
a61e67c901c2b43afa0fec6a99ef72152391a55f
[ "MIT" ]
null
null
null
datastage/admin/interactive.py
mkozuharov/DataStage
a61e67c901c2b43afa0fec6a99ef72152391a55f
[ "MIT" ]
null
null
null
# --------------------------------------------------------------------- # # Copyright (c) 2012 University of Oxford # # 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, incl...
37.564748
139
0.583166
ee8efbd0714b4c5621af06add7bb465c31589944
1,878
py
Python
tests/test_pass1.py
hongquan/python-rapidjson
bc0cd406d4fecde332467ace06cf1aca1947378a
[ "MIT" ]
null
null
null
tests/test_pass1.py
hongquan/python-rapidjson
bc0cd406d4fecde332467ace06cf1aca1947378a
[ "MIT" ]
null
null
null
tests/test_pass1.py
hongquan/python-rapidjson
bc0cd406d4fecde332467ace06cf1aca1947378a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # :Project: python-rapidjson -- Compliance tests # :Author: John Anderson <sontek@gmail.com> # :License: MIT License # :Copyright: © 2015 John Anderson # :Copyright: © 2017 Lele Gaifax # import pytest # from http://json.org/JSON_checker/test/pass1.json JSON = r''' [ "JSON Test Patt...
23.772152
93
0.472311
8f4faa9949db6e2466f7fb85e463b13ecc1419b4
367
py
Python
manage.py
changawa-antony/pitches-one-min
36dc274e6ae893e460f428297472ab829dc17102
[ "MIT" ]
null
null
null
manage.py
changawa-antony/pitches-one-min
36dc274e6ae893e460f428297472ab829dc17102
[ "MIT" ]
null
null
null
manage.py
changawa-antony/pitches-one-min
36dc274e6ae893e460f428297472ab829dc17102
[ "MIT" ]
null
null
null
from app import create_app,db from flask_script import Manager,Server from app.models import User,Role # Creating app instance app = create_app('development') manager = Manager(app) manager.add_command('server',Server) @manager.shell def make_shell_context(): return dict(app = app,db = db,User = User,Role =Role...
21.588235
57
0.746594
7843bdbd186f79caa123b3c633628a3c5d2a4133
7,913
py
Python
test/functional/wallet_hd.py
AgenorCore/Agenor
c022ba2f2d29cea98a6966205f881389707b558b
[ "MIT" ]
46
2021-04-11T20:15:51.000Z
2021-06-02T16:13:11.000Z
test/functional/wallet_hd.py
criptorob/Agenor
38aa56e3b1cb75911bbb3fe63f4dab8fd243a85a
[ "MIT" ]
5
2021-04-24T13:08:45.000Z
2021-11-24T14:28:55.000Z
test/functional/wallet_hd.py
criptorob/Agenor
38aa56e3b1cb75911bbb3fe63f4dab8fd243a85a
[ "MIT" ]
9
2021-04-12T12:28:34.000Z
2021-05-14T14:45:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Hierarchical Deterministic wallet function.""" import os import shutil from test_framework.test_...
47.957576
159
0.654493
14d61518c55b1bbbe3003a34e163df2df5c4e634
1,347
py
Python
myblog/blog/views.py
goodwell42/DjangoTest
ec2c302a1317c2bfc317d74c736d45a3235be434
[ "MIT" ]
1
2019-06-26T11:24:28.000Z
2019-06-26T11:24:28.000Z
myblog/blog/views.py
goodwell42/DjangoTest
ec2c302a1317c2bfc317d74c736d45a3235be434
[ "MIT" ]
null
null
null
myblog/blog/views.py
goodwell42/DjangoTest
ec2c302a1317c2bfc317d74c736d45a3235be434
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect from django.http import HttpResponse # Create your views here. from . import models def index(request): articles = models.Article.objects.all() return render(request, 'blog/index.html', {'articles': articles}) def article_page...
32.071429
75
0.701559
8dca06668c6e0a8c1be15a1ebc7bbf7e5f720310
298
py
Python
python/WorksharingSession.Duration.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
26
2017-11-23T19:30:03.000Z
2022-02-09T10:35:10.000Z
python/WorksharingSession.Duration.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
51
2017-11-16T15:02:32.000Z
2022-03-01T13:51:58.000Z
python/WorksharingSession.Duration.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
9
2017-11-20T09:20:01.000Z
2021-09-15T13:08:30.000Z
import clr def process_input(func, input): if isinstance(input, list): return [func(x) for x in input] else: return func(input) def WSSessionDuration(wssess): if wssess.__repr__() == 'WorksharingSession': return wssess.Duration else: return None OUT = process_input(WSSessionDuration,IN[0])
27.090909
69
0.758389
486605d894e7ad238b696df2ed380f62d04cf338
4,732
py
Python
tests/tests/correctness/EPLAnalytics/Flow_Manipulation/Slicer/Slicer_cor_006/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
3
2019-09-02T18:21:22.000Z
2020-04-17T16:34:57.000Z
tests/tests/correctness/EPLAnalytics/Flow_Manipulation/Slicer/Slicer_cor_006/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
tests/tests/correctness/EPLAnalytics/Flow_Manipulation/Slicer/Slicer_cor_006/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
# $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an...
100.680851
343
0.679417
c4e2260a2c45542cb26e48363ac3c71df6cf0292
2,321
py
Python
ut_plm.py
interstar/python-lookin-mel
2cd648f4311b5dbd6b31130eb69b39acd4580ddc
[ "CNRI-Python" ]
1
2019-10-14T21:55:35.000Z
2019-10-14T21:55:35.000Z
ut_plm.py
interstar/python-lookin-mel
2cd648f4311b5dbd6b31130eb69b39acd4580ddc
[ "CNRI-Python" ]
null
null
null
ut_plm.py
interstar/python-lookin-mel
2cd648f4311b5dbd6b31130eb69b39acd4580ddc
[ "CNRI-Python" ]
null
null
null
from plm import * import unittest class TestPLM(unittest.TestCase) : def testOuterStruct(self): data = """ html: head/ body: hello""" desired = """<!DOCTYPE html> <html> <head/> <body> hello </body> </html> """ self.assertEquals(comp(data)[0],desired) ...
18.717742
57
0.491168
8133f71385edafcc9090887e1da40aecf31b84aa
3,729
py
Python
test/data/telemac2d/confluence/vnv_confluence.py
meracan/meracan-api
aff04f3d9d0dce46fe0b8ce89394ec22823a0ea4
[ "MIT" ]
null
null
null
test/data/telemac2d/confluence/vnv_confluence.py
meracan/meracan-api
aff04f3d9d0dce46fe0b8ce89394ec22823a0ea4
[ "MIT" ]
null
null
null
test/data/telemac2d/confluence/vnv_confluence.py
meracan/meracan-api
aff04f3d9d0dce46fe0b8ce89394ec22823a0ea4
[ "MIT" ]
null
null
null
""" Validation script for confluence """ from vvytel.vnv_study import AbstractVnvStudy from execution.telemac_cas import TelemacCas, get_dico class VnvStudy(AbstractVnvStudy): """ Class for validation """ def _init(self): """ Defines the general parameter """ self.rank...
28.25
83
0.474122
0f57a1a0c6fed2d8b8fb469ee36ed3a0eb531fcf
3,079
py
Python
supports/pyload/src/pyload/plugins/addons/ExpertDecoders.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/addons/ExpertDecoders.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/addons/ExpertDecoders.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import base64 import uuid import pycurl from ...core.network.http.exceptions import BadHeader from ...core.network.request_factory import get_request from ..base.addon import BaseAddon, threaded class ExpertDecoders(BaseAddon): __name__ = "ExpertDecoders" __type__ = "addon" __ver...
29.32381
87
0.53264
3554fc320a0e8ac9c889c5c28bbc0a3ea0065677
1,571
py
Python
leap_year_finder.py
Ronlin1/leap_year_finder
baba75ec69fef40d5564276f222b95cb6edbd2c3
[ "MIT" ]
null
null
null
leap_year_finder.py
Ronlin1/leap_year_finder
baba75ec69fef40d5564276f222b95cb6edbd2c3
[ "MIT" ]
null
null
null
leap_year_finder.py
Ronlin1/leap_year_finder
baba75ec69fef40d5564276f222b95cb6edbd2c3
[ "MIT" ]
null
null
null
# Leap Year Finder in python # TODO Upgrade this using Tkinter GUI in future # Example of leap years from Google 2000, 2004, 2008, 2012, # 2016, 2020, 2024, 2028, 2032, 2036, 2040, 2044, 2096, 2104 etc # Over time, these extra 44+ minutes would also cause the seasons # to drift in our calendar. For this reason, not e...
34.911111
121
0.661999
fed101d5641b2358a6faa90cfb699d37b04d769d
708
py
Python
examples/charts/file/area.py
pyjsdev/googlemap_flask
9d0dd899a9cbf756b3d83c33e3d8a47e7db40cc5
[ "BSD-3-Clause" ]
2
2019-05-24T14:07:33.000Z
2019-05-24T14:36:19.000Z
examples/charts/file/area.py
pyjsdev/googlemap_flask
9d0dd899a9cbf756b3d83c33e3d8a47e7db40cc5
[ "BSD-3-Clause" ]
null
null
null
examples/charts/file/area.py
pyjsdev/googlemap_flask
9d0dd899a9cbf756b3d83c33e3d8a47e7db40cc5
[ "BSD-3-Clause" ]
1
2021-09-09T03:33:04.000Z
2021-09-09T03:33:04.000Z
from bokeh.charts import Area, show, output_file, defaults from bokeh.layouts import row defaults.width = 400 defaults.height = 400 # create some example data data = dict( python=[2, 3, 7, 5, 26, 221, 44, 233, 254, 265, 266, 267, 120, 111], pypy=[12, 33, 47, 15, 126, 121, 144, 233, 254, 225, 226, 267, 110, 13...
30.782609
77
0.641243
e0dfb4e729883488b037f97b23a22c8293580f8f
9,103
py
Python
setup.py
Sanster/onnxruntime
c4e4abce73965ff7819d3183712ce40e2ca13cb4
[ "MIT" ]
null
null
null
setup.py
Sanster/onnxruntime
c4e4abce73965ff7819d3183712ce40e2ca13cb4
[ "MIT" ]
null
null
null
setup.py
Sanster/onnxruntime
c4e4abce73965ff7819d3183712ce40e2ca13cb4
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. #-------------------------------------------------------------------------- from setuptools import setup, find_packages, Extension from distutils impo...
37.615702
153
0.625508
91e0549d3e1e10dabd75c78d2dda78c1a64e7330
4,866
py
Python
dashboard/src/perf_tests.py
cnulenka/fabric8-analytics-common
570bfa69d885543944f90decc23397f546385f69
[ "Apache-2.0" ]
null
null
null
dashboard/src/perf_tests.py
cnulenka/fabric8-analytics-common
570bfa69d885543944f90decc23397f546385f69
[ "Apache-2.0" ]
null
null
null
dashboard/src/perf_tests.py
cnulenka/fabric8-analytics-common
570bfa69d885543944f90decc23397f546385f69
[ "Apache-2.0" ]
null
null
null
"""Module with class that handle performance test results and compute statistic.""" import csv class PerfTests: """Class that handle performance test results.""" INPUT_FILES = { "component analysis": { "sequenced_calls_known_component": "component_analysis_sequenced_calls_...
35.26087
98
0.590834
4a387e1e1860920951efa79124a664b60d7bccf9
4,093
py
Python
sdk/python/pulumi_azure_native/appplatform/v20210303preview/get_deployment.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/appplatform/v20210303preview/get_deployment.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/appplatform/v20210303preview/get_deployment.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
32.744
171
0.636697
603c19d33944ad4c4c9480d2af0f67865616a072
73,424
py
Python
packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py
TitouenDCL/plotly.py
0c98391f575dab0e3f08ede907045cc72b3d40a4
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py
TitouenDCL/plotly.py
0c98391f575dab0e3f08ede907045cc72b3d40a4
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py
TitouenDCL/plotly.py
0c98391f575dab0e3f08ede907045cc72b3d40a4
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scatter3d.line" _path_str = "scatter3d.line.colorbar" _valid_props = { "bgcolor", ...
35.764247
100
0.558836
7ca964ad0ce1d200e945d3e8301d447113cbd3c9
23
py
Python
inaccel/sklearn/cluster/__init__.py
inaccel/scikit-learn
8549d8b70c26b7f5e3b80538b97b91c382a6ae45
[ "Apache-2.0" ]
1
2021-03-23T14:56:06.000Z
2021-03-23T14:56:06.000Z
inaccel/sklearn/cluster/__init__.py
inaccel/scikit-learn
8549d8b70c26b7f5e3b80538b97b91c382a6ae45
[ "Apache-2.0" ]
null
null
null
inaccel/sklearn/cluster/__init__.py
inaccel/scikit-learn
8549d8b70c26b7f5e3b80538b97b91c382a6ae45
[ "Apache-2.0" ]
null
null
null
from ._kmeans import *
11.5
22
0.73913
a8e78e78716e7101c3a26beac99f8681a0e1d12b
395
py
Python
cogs/utils/mal_char_find.py
loomkoom/appuselfbotmain
507e5264a2c63195dd04f439e545a2783424bd21
[ "MIT" ]
null
null
null
cogs/utils/mal_char_find.py
loomkoom/appuselfbotmain
507e5264a2c63195dd04f439e545a2783424bd21
[ "MIT" ]
null
null
null
cogs/utils/mal_char_find.py
loomkoom/appuselfbotmain
507e5264a2c63195dd04f439e545a2783424bd21
[ "MIT" ]
null
null
null
import sys import asyncio import tokage list_of_ids = sys.argv[1:] async def find_chars(all_ids): tok = tokage.Client() for id in all_ids: character = await tok.get_character(id) if character.name: print(character.name + ' | ' + str(character.favorites) + '\n') loop = asyncio.get...
23.235294
75
0.686076
5940bdbb242a0bbd94556eac60c43f723d787215
252
py
Python
docs/source/topics/processes/include/snippets/launch/launch_submit_dictionary.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
docs/source/topics/processes/include/snippets/launch/launch_submit_dictionary.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
docs/source/topics/processes/include/snippets/launch/launch_submit_dictionary.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- from aiida import orm from aiida.engine import submit ArithmeticAddCalculation = CalculationFactory('core.arithmetic.add') inputs = { 'x': orm.Int(1), 'y': orm.Int(2) } node = submit(ArithmeticAddCalculation, **inputs)
22.909091
68
0.698413
f7358ba007f332d22e83dabe5d8ad657102b156a
12,059
py
Python
SegFault/CosmoNet.py
NERSC/CosmoFlow
28937fad012b8bf854916527ebfc74f60de0ac26
[ "BSD-2-Clause" ]
15
2018-09-17T09:51:18.000Z
2021-06-29T16:46:22.000Z
SegFault/CosmoNet.py
NERSC/CosmoFlow
28937fad012b8bf854916527ebfc74f60de0ac26
[ "BSD-2-Clause" ]
null
null
null
SegFault/CosmoNet.py
NERSC/CosmoFlow
28937fad012b8bf854916527ebfc74f60de0ac26
[ "BSD-2-Clause" ]
7
2018-03-07T08:50:13.000Z
2021-05-02T22:10:06.000Z
## for this one, change the order between relu and batch import tensorflow as tf import numpy as np from io_Cosmo import * import hyper_parameters_Cosmo as hp import time from numpy import linalg as LA def weight_variable(shape,name): W = tf.get_variable(name,shape=shape, initializer=tf.contrib.layers.xavier_initia...
49.625514
237
0.657434
2d4083858ad922d2d7ef4872b00f3b939944d7f4
1,265
py
Python
Days/Day 23 - Coprocessor Conflagration/Part 1.py
jamesjiang52/Advent-of-Code-2017
94c85696e1335d7b5b00717a0e5f31c3653ba394
[ "MIT" ]
null
null
null
Days/Day 23 - Coprocessor Conflagration/Part 1.py
jamesjiang52/Advent-of-Code-2017
94c85696e1335d7b5b00717a0e5f31c3653ba394
[ "MIT" ]
null
null
null
Days/Day 23 - Coprocessor Conflagration/Part 1.py
jamesjiang52/Advent-of-Code-2017
94c85696e1335d7b5b00717a0e5f31c3653ba394
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 22 21:15:20 2017 @author: James Jiang """ def is_int(x): try: int(x) return True except ValueError: return False all_lines = [line.rstrip('\n') for line in open('Data.txt')] all_instructions = [] for line in all_lines: components = l...
23.867925
76
0.604743
e0dca093cc996b84adb33f386da443eef12c4665
591
py
Python
news_wall/blog/models.py
chiraag-kakar/news_wall
5f36dee6694125453a7620cf0883c5f5b35b2b36
[ "MIT" ]
1
2022-01-24T13:49:16.000Z
2022-01-24T13:49:16.000Z
news_wall/blog/models.py
chiraag-kakar/news_wall
5f36dee6694125453a7620cf0883c5f5b35b2b36
[ "MIT" ]
null
null
null
news_wall/blog/models.py
chiraag-kakar/news_wall
5f36dee6694125453a7620cf0883c5f5b35b2b36
[ "MIT" ]
1
2021-03-11T19:52:44.000Z
2021-03-11T19:52:44.000Z
from django.db import models from django.utils import timezone from django.urls import reverse from django.contrib.auth.models import User # from tinymce.models import HTMLField # Create your models here. class Post(models.Model): author = models.ForeignKey(User,on_delete=models.CASCADE) title = models.CharFi...
28.142857
67
0.730964
83afc6aa8688ee355f1d94a77ed8bb748b84cfc5
404
py
Python
urlregex.py
biebel24/py43-sample-code
2a252ae6352d93ed395246b2e39fcb93edb98a68
[ "BSD-3-Clause" ]
1
2020-11-09T21:46:25.000Z
2020-11-09T21:46:25.000Z
urlregex.py
biebel24/py43-sample-code
2a252ae6352d93ed395246b2e39fcb93edb98a68
[ "BSD-3-Clause" ]
null
null
null
urlregex.py
biebel24/py43-sample-code
2a252ae6352d93ed395246b2e39fcb93edb98a68
[ "BSD-3-Clause" ]
1
2020-04-18T16:09:04.000Z
2020-04-18T16:09:04.000Z
# Search for link values within URL input import urllib.request, urllib.parse, urllib.error import re import ssl # Ignore SSL certificate errors ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE url = input('Enter - ') html = urllib.request.urlopen(url).read() links = re.fi...
25.25
52
0.727723
8bf0ed39fae91a95280f3c357beba15cd8e4db6c
1,267
py
Python
utils/calculate_weights.py
DesmondLei/pytorch-deeplab-xception
97602b8095da95de46954d8dfa53307da271f565
[ "MIT" ]
null
null
null
utils/calculate_weights.py
DesmondLei/pytorch-deeplab-xception
97602b8095da95de46954d8dfa53307da271f565
[ "MIT" ]
null
null
null
utils/calculate_weights.py
DesmondLei/pytorch-deeplab-xception
97602b8095da95de46954d8dfa53307da271f565
[ "MIT" ]
null
null
null
import os from tqdm import tqdm import numpy as np from mypath import Path def calculate_weigths_labels(dataset, dataloader, num_classes): # Create an instance from the data loader z = np.zeros((num_classes,)) # Initialize tqdm tqdm_batch = tqdm(dataloader) print('Calculating classes weights') ...
36.2
108
0.689029
b551811c0095df32f45f4c9b7434f82bf9cf0bb5
501
py
Python
shared/data/simulators/mixins/graph.py
DougMahoney/metatools
112340102962ff0c3e323564357cc4e848939cf7
[ "Apache-2.0" ]
12
2020-04-10T07:09:24.000Z
2022-03-04T09:22:40.000Z
shared/data/simulators/mixins/graph.py
DougMahoney/metatools
112340102962ff0c3e323564357cc4e848939cf7
[ "Apache-2.0" ]
5
2020-05-16T18:22:23.000Z
2022-03-29T13:19:27.000Z
shared/data/simulators/mixins/graph.py
DougMahoney/metatools
112340102962ff0c3e323564357cc4e848939cf7
[ "Apache-2.0" ]
2
2020-12-10T15:17:40.000Z
2021-12-02T17:34:56.000Z
from transitions.extensions import GraphMachine class GraphMixin(GraphMachine): def _init_graphviz_engine(self, use_pygraphviz): Graph = super(GraphMixin, self)._init_graphviz_engine(use_pygraphviz) class TweakedGraph(Graph): _TRANSITION_CHECK = self._TRANSITION_CHECK def _transition_label(s...
21.782609
71
0.742515
d495a8b3306fce3dc945f3f4d7c4b9264474c30c
1,630
py
Python
6_kyu/A Rule of Divisibility by 13.py
serembon/Codewars-Python-Kata
868f9f5deb991b2c0b7e27dce41a5a20805013dc
[ "MIT" ]
null
null
null
6_kyu/A Rule of Divisibility by 13.py
serembon/Codewars-Python-Kata
868f9f5deb991b2c0b7e27dce41a5a20805013dc
[ "MIT" ]
null
null
null
6_kyu/A Rule of Divisibility by 13.py
serembon/Codewars-Python-Kata
868f9f5deb991b2c0b7e27dce41a5a20805013dc
[ "MIT" ]
null
null
null
""" When you divide the successive powers of `10` by `13` you get the following remainders of the integer divisions: `1, 10, 9, 12, 3, 4`. Then the whole pattern repeats. Hence the following method: Multiply the right most digit of the number with the left most number in the sequence shown above, the second right most ...
37.906977
119
0.609202
bd6a8b4008c750f54b93a619b9b65f2191b7e0a2
7,645
py
Python
plugins/sophos_central/icon_sophos_central/util/api.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/sophos_central/icon_sophos_central/util/api.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/sophos_central/icon_sophos_central/util/api.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import requests from insightconnect_plugin_runtime.exceptions import PluginException import json class SophosCentralAPI: def __init__(self, url, client_id, client_secret, tenant_id, version, logger): self.url = url self.client_id = client_id self.client_secret = client_secret self....
40.882353
118
0.566776
e4d09a51359739a816d0c88e762a34fe4d3d3672
721
py
Python
grr/server/grr_response_server/databases/mysql_blobs.py
dekoder/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
3
2018-09-30T01:31:29.000Z
2019-04-22T11:44:54.000Z
grr/server/grr_response_server/databases/mysql_blobs.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
1
2022-03-02T09:58:05.000Z
2022-03-02T09:58:05.000Z
grr/server/grr_response_server/databases/mysql_blobs.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """The MySQL database methods for blobs handling.""" class MySQLDBBlobsMixin(object): """MySQLDB mixin for blobs related functions.""" def WriteClientPathBlobReferences(self, references_by_path): raise NotImplementedError() def ReadClientPathBlobReferences(self, paths): raise Not...
25.75
62
0.765603
b64640f1f6c9bf3610d4d8057a42787d684fdf18
21,057
py
Python
ironic/common/exception.py
isabella232/ironic
9a0bd8a774143e6f767aaa3031be6b70554bc332
[ "Apache-2.0" ]
2
2019-06-17T21:37:53.000Z
2020-07-11T03:58:39.000Z
ironic/common/exception.py
openshift/ironic
9a0bd8a774143e6f767aaa3031be6b70554bc332
[ "Apache-2.0" ]
1
2019-06-16T22:53:49.000Z
2019-09-16T09:37:35.000Z
ironic/common/exception.py
isabella232/ironic
9a0bd8a774143e6f767aaa3031be6b70554bc332
[ "Apache-2.0" ]
6
2019-06-13T12:49:33.000Z
2021-04-17T16:33:19.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
29.20527
79
0.69953
09c4046ad477474c0c20f7a9d678e9b833b55f12
17,969
py
Python
mindarmour/adv_robustness/attacks/carlini_wagner.py
mindspore-ai/mindarmour
a5db0825fa06e4da870c0a850a18b374e8cdd086
[ "Apache-2.0" ]
139
2020-03-28T02:37:07.000Z
2022-03-24T15:35:39.000Z
mindarmour/adv_robustness/attacks/carlini_wagner.py
mindspore-ai/mindarmour
a5db0825fa06e4da870c0a850a18b374e8cdd086
[ "Apache-2.0" ]
2
2020-04-02T09:50:21.000Z
2020-05-09T06:52:57.000Z
mindarmour/adv_robustness/attacks/carlini_wagner.py
mindspore-ai/mindarmour
a5db0825fa06e4da870c0a850a18b374e8cdd086
[ "Apache-2.0" ]
12
2020-03-28T02:52:42.000Z
2021-07-15T08:05:06.000Z
# Copyright 2019 Huawei Technologies 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 agreed to...
42.783333
87
0.57026
21f10458fa46380c0ae6194c82064d4b6843fc62
440
py
Python
company/migrations/0014_remitamandateactivationdata_mandate_requestid.py
minsystems/minloansng
225f7c553dc1c7180431c5b84250560b74b0e9cc
[ "PostgreSQL", "MIT" ]
null
null
null
company/migrations/0014_remitamandateactivationdata_mandate_requestid.py
minsystems/minloansng
225f7c553dc1c7180431c5b84250560b74b0e9cc
[ "PostgreSQL", "MIT" ]
null
null
null
company/migrations/0014_remitamandateactivationdata_mandate_requestid.py
minsystems/minloansng
225f7c553dc1c7180431c5b84250560b74b0e9cc
[ "PostgreSQL", "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-10-29 06:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('company', '0013_auto_20201028_0939'), ] operations = [ migrations.AddField( model_name='remitamandateactivationdata', ...
23.157895
74
0.634091
0d860a6f7563c01e077a430f9457c94301c4c071
796
py
Python
tests/fixtures/test_supplementary_files_json/content_08_expected.py
elifesciences/elife-tools
ee345bf0e6703ef0f7e718355e85730abbdfd117
[ "MIT" ]
9
2015-04-16T08:13:31.000Z
2020-05-18T14:03:06.000Z
tests/fixtures/test_supplementary_files_json/content_08_expected.py
elifesciences/elife-tools
ee345bf0e6703ef0f7e718355e85730abbdfd117
[ "MIT" ]
310
2015-02-11T00:30:09.000Z
2021-07-14T23:58:50.000Z
tests/fixtures/test_supplementary_files_json/content_08_expected.py
elifesciences/elife-tools
ee345bf0e6703ef0f7e718355e85730abbdfd117
[ "MIT" ]
9
2015-02-04T01:21:28.000Z
2021-06-15T12:50:47.000Z
from collections import OrderedDict expected = [ OrderedDict( [ ("doi", u"10.7554/eLife.26759.018"), ("id", u"supp1"), ("label", u"Supplementary file 1"), ("title", u"All primer sequences used in this study."), ("mediaType", u"application/docx"), ...
30.615385
67
0.496231
f22415c424b6b91485ab55cd7c84b8021042d756
999
py
Python
usaspending_api/references/tests/integration/filter_tree/conftest.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
217
2016-11-03T17:09:53.000Z
2022-03-10T04:17:54.000Z
usaspending_api/references/tests/integration/filter_tree/conftest.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
622
2016-09-02T19:18:23.000Z
2022-03-29T17:11:01.000Z
usaspending_api/references/tests/integration/filter_tree/conftest.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
93
2016-09-07T20:28:57.000Z
2022-02-25T00:25:27.000Z
from usaspending_api.references.tests.integration.filter_tree.tas.tas_data_fixtures import ( basic_agency, cfo_agencies, non_cfo_agencies, unsupported_agencies, multiple_federal_accounts, agency_with_unsupported_fa, multiple_tas, fa_with_multiple_tas, fa_with_unsupported_tas, ) from ...
24.975
92
0.741742
99aecea1aba5a960c5cbfde0ec6f5241e9df977a
5,996
py
Python
tests/forms_tests/widget_tests/test_multiwidget.py
ioinfinity/django
b6a0ab523751c13ae3eaec102de70f58f73a0d94
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/forms_tests/widget_tests/test_multiwidget.py
ioinfinity/django
b6a0ab523751c13ae3eaec102de70f58f73a0d94
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-07-02T21:10:44.000Z
2020-07-02T21:11:21.000Z
tests/forms_tests/widget_tests/test_multiwidget.py
ioinfinity/django
b6a0ab523751c13ae3eaec102de70f58f73a0d94
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-08-11T18:46:32.000Z
2020-08-11T18:46:32.000Z
import copy from datetime import datetime from django.forms import ( CharField, FileInput, MultipleChoiceField, MultiValueField, MultiWidget, RadioSelect, SelectMultiple, SplitDateTimeField, SplitDateTimeWidget, TextInput, ) from .base import WidgetTest class MyMultiWidget(MultiWidget): def decompre...
35.064327
107
0.573716
09b5098af093e181fd49ca082a2f1273158163e6
1,646
py
Python
marrow/mongo/param/common.py
marrow/mongo
1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f
[ "MIT" ]
22
2016-03-22T05:32:26.000Z
2021-06-19T06:23:47.000Z
marrow/mongo/param/common.py
marrow/mongo
1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f
[ "MIT" ]
59
2016-02-19T22:21:33.000Z
2022-01-17T19:40:44.000Z
marrow/mongo/param/common.py
marrow/mongo
1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f
[ "MIT" ]
5
2016-06-24T06:55:44.000Z
2021-07-12T22:33:07.000Z
# encoding: utf-8 """Parameterized support akin to Django's ORM or MongoEngine.""" from __future__ import unicode_literals from ...package.loader import traverse from ...schema.compat import odict def _deferred_method(name, _named=None, **kw): def _deferred_method_inner(self, other): if _named: if not len(_n...
25.323077
105
0.707776
a293076716bbefa051341e9857c15bd101c771e1
5,368
py
Python
dashboard/dashboard/pinpoint/models/change/patch.py
bopopescu/chromium72-third-party-catapult
774e1355b871e13bb858147a136e9cb476f55030
[ "BSD-3-Clause" ]
1
2019-01-04T10:08:58.000Z
2019-01-04T10:08:58.000Z
dashboard/dashboard/pinpoint/models/change/patch.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/pinpoint/models/change/patch.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import re import urlparse from dashboard.services import gerrit_service class GerritPatch(collections.namedtuple( 'GerritPatch', ('...
33.135802
80
0.652571
50c6b2abe3518a35a70df59797b9dbf2054e7f00
319
py
Python
Chapter03/07_gaussian_bilateral_filter.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
Chapter03/07_gaussian_bilateral_filter.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
Chapter03/07_gaussian_bilateral_filter.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('./images/blue_carpet.png') img_gaussian = cv2.GaussianBlur(img, (13,13), 0) img_bilateral = cv2.bilateralFilter(img, 13, 70, 50) cv2.imshow('Input', img) cv2.imshow('Gaussian filter', img_gaussian) cv2.imshow('Bilateral filter', img_bilateral) cv2.waitKey()
24.538462
53
0.721003
fe046d72b6aa2a4b65190ae384317067c1797537
6,291
py
Python
train.py
xindubawukong/LQ-Nets_Pytorch
32f20693be72223021b25473bb80a9936e5917ef
[ "MIT" ]
6
2020-03-25T12:52:48.000Z
2020-07-03T00:18:05.000Z
train.py
xindubawukong/LQ-Nets_Pytorch
32f20693be72223021b25473bb80a9936e5917ef
[ "MIT" ]
null
null
null
train.py
xindubawukong/LQ-Nets_Pytorch
32f20693be72223021b25473bb80a9936e5917ef
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import argparse import time import os from dataset import get_dataset from utils import * import vgg import vgg_quant import resnet import resnet_quant def adjust_learning_rate(optimizer, history): if not hasattr(adjust_learning_rate, 'lr_count'): adjust_learning_rate.l...
41.388158
134
0.621841
2929d3d233cd92a685e94770c5c1caf34e18e171
5,324
py
Python
petastorm/fs_utils.py
VivekPanyam/petastorm
d8dcee4541f26d58195e9cb119ac5acf53d0a58d
[ "Apache-2.0" ]
null
null
null
petastorm/fs_utils.py
VivekPanyam/petastorm
d8dcee4541f26d58195e9cb119ac5acf53d0a58d
[ "Apache-2.0" ]
null
null
null
petastorm/fs_utils.py
VivekPanyam/petastorm
d8dcee4541f26d58195e9cb119ac5acf53d0a58d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2018 Uber Technologies, 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 ...
47.535714
120
0.644065
c7de194184a79683510dd4c302348745371631e2
5,846
py
Python
AP.py
ilyakava/pyfst
7c8daa5493e22a12bf0c37201c0887550036ab25
[ "MIT" ]
3
2021-03-26T12:34:25.000Z
2022-02-23T09:35:44.000Z
AP.py
ilyakava/pyfst
7c8daa5493e22a12bf0c37201c0887550036ab25
[ "MIT" ]
7
2020-02-18T21:26:59.000Z
2020-03-22T12:58:14.000Z
AP.py
ilyakava/pyfst
7c8daa5493e22a12bf0c37201c0887550036ab25
[ "MIT" ]
5
2020-02-17T18:24:42.000Z
2022-02-23T09:34:19.000Z
"""Attribute Profiles https://github.com/andreybicalho/ExtendedMorphologicalProfiles/blob/master/Remote%20Sensed%20Hyperspectral%20Image%20Classification%20with%20the%20Extended%20Morphological%20Profiles%20and%20Support%20Vector%20Machines.ipynb """ import numpy as np import tensorflow as tf # Opening and Closing b...
35.005988
224
0.659938
1a364eb411c7203a99de080728de3b2f5760c115
363
py
Python
src/fosslight_reuse_example/test_run2/test_both_have_2.py
LGE-OSS/example
e0ee00b3bdb3c2b957235f712144402e77297b37
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2021-04-13T02:10:34.000Z
2021-04-13T02:10:34.000Z
src/fosslight_reuse_example/test_run1/test_both_have_2.py
LGE-OSS/example
e0ee00b3bdb3c2b957235f712144402e77297b37
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2021-06-23T03:01:05.000Z
2021-06-23T05:42:55.000Z
src/fosslight_reuse_example/test_run2/test_both_have_2.py
LGE-OSS/example
e0ee00b3bdb3c2b957235f712144402e77297b37
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2021-04-07T09:35:38.000Z
2021-04-07T09:35:38.000Z
# SPDX-FileCopyrightText: Copyright (c) 2011 LG Electronics Inc. # # SPDX-License-Identifier: GPL-3.0-only import os from fosslight_util.set_log import init_log def main(): output_dir = "tests" logger, _result_log = init_log(os.path.join(output_dir, "test_add_log.txt")) logger.warning("TESTING - add mode...
21.352941
80
0.713499
6d59fcb2d7c1c1485a0f6c2080dcd6baeab6ead7
1,897
py
Python
official/vision/beta/configs/backbones.py
gujralsanyam22/models
d96f8f043dbe2b5ca8ea1785f57df8faf68d8875
[ "Apache-2.0" ]
2
2020-12-11T04:07:55.000Z
2020-12-11T04:08:11.000Z
official/vision/beta/configs/backbones.py
gujralsanyam22/models
d96f8f043dbe2b5ca8ea1785f57df8faf68d8875
[ "Apache-2.0" ]
null
null
null
official/vision/beta/configs/backbones.py
gujralsanyam22/models
d96f8f043dbe2b5ca8ea1785f57df8faf68d8875
[ "Apache-2.0" ]
2
2021-01-27T06:39:52.000Z
2021-03-05T06:08:08.000Z
# Lint as: python3 # Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
27.897059
80
0.710069
79e68b1bec7d49cdb2f26c8e41ac48727f692fee
10,442
py
Python
report_generator/partner/sponsor.py
tai271828/pycontw-postevent-report-generator
b0149644bde4929f1a2ca8f94bb7574a6d990354
[ "BSD-3-Clause" ]
1
2020-03-17T13:45:50.000Z
2020-03-17T13:45:50.000Z
report_generator/partner/sponsor.py
tai271828/pycontw-postevent-report-generator
b0149644bde4929f1a2ca8f94bb7574a6d990354
[ "BSD-3-Clause" ]
34
2019-10-25T09:05:36.000Z
2021-11-14T22:00:55.000Z
report_generator/partner/sponsor.py
tai271828/pycontw-postevent-report-generator
b0149644bde4929f1a2ca8f94bb7574a6d990354
[ "BSD-3-Clause" ]
6
2019-10-24T11:23:04.000Z
2021-02-18T13:13:22.000Z
import logging import report_generator.io.yaml as report_generatoryaml logger = logging.getLogger("report_generator") # resource_package = __name__ # resource_path_packages = '/'.join(('../data', 'packages.yaml')) # resource_path_sponsors = '/'.join(('../data', 'sponsors.yaml')) # # template_packages = pkg_resource...
33.683871
79
0.659931
934b301a1a1c738eb40c33f35ed2f04dc250d9bb
391
py
Python
sistemaComercial/mercado/migrations/0003_carrinho_valor_carrinho.py
reglabel/SistemaComercial
ca33ebf84bf3b1961a533a6f852782ad1ee3c65c
[ "MIT" ]
null
null
null
sistemaComercial/mercado/migrations/0003_carrinho_valor_carrinho.py
reglabel/SistemaComercial
ca33ebf84bf3b1961a533a6f852782ad1ee3c65c
[ "MIT" ]
null
null
null
sistemaComercial/mercado/migrations/0003_carrinho_valor_carrinho.py
reglabel/SistemaComercial
ca33ebf84bf3b1961a533a6f852782ad1ee3c65c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-10 20:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mercado', '0002_auto_20210910_1525'), ] operations = [ migrations.AddField( model_name='carrinho', name='valor_carri...
20.578947
47
0.603581
40947bf5f0bd2546637e33c4a11fc658467c0b1b
67
py
Python
spambayes/spambayes/__init__.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
13
2015-07-03T06:53:47.000Z
2021-02-19T13:21:56.000Z
spambayes/spambayes/__init__.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
5
2015-07-16T07:33:46.000Z
2021-04-05T20:27:52.000Z
spambayes/spambayes/__init__.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
20
2015-05-16T22:42:14.000Z
2021-09-18T17:46:40.000Z
# package marker. __version__ = "1.1b3" __date__ = "Nov 23, 2017"
13.4
25
0.671642
3c67eaf286b2cde2519bcb97fa0dd97232f8240c
2,288
py
Python
cloudbio/package/shared.py
pfpjs/cloudbiolinux
60c0dfeba0c18c2eb201f5e7fcc84bf0f43a284d
[ "MIT" ]
null
null
null
cloudbio/package/shared.py
pfpjs/cloudbiolinux
60c0dfeba0c18c2eb201f5e7fcc84bf0f43a284d
[ "MIT" ]
null
null
null
cloudbio/package/shared.py
pfpjs/cloudbiolinux
60c0dfeba0c18c2eb201f5e7fcc84bf0f43a284d
[ "MIT" ]
null
null
null
"""Shared functionality useful for multiple package managers. """ import yaml from fabric.api import * from fabric.contrib.files import * def _yaml_to_packages(yaml_file, to_install=None, subs_yaml_file=None, namesort=True): """Read a list of packages from a nested YAML configuration file. """ env.logger.i...
36.31746
86
0.566434
44486c00c382de0ecb87ffbe56f1b1a615dbcf72
4,361
py
Python
applications/popart/bert/utils/device.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/popart/bert/utils/device.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/popart/bert/utils/device.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Graphcore Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
31.832117
120
0.731254
a265390455d551d099114b7debe00f02b4a0eb01
1,951
py
Python
benchmark/startPyquil882.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil882.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil882.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=40 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=3 pr...
24.3875
64
0.547924
c4404fbde13399d6583c5c0d8877ae512b1fde1f
115
py
Python
everstone/sql/__init__.py
scragly/everstone
a780cb59aaf2401749264d44acc0345b82a045df
[ "MIT" ]
7
2021-03-26T04:42:49.000Z
2021-08-28T16:07:04.000Z
everstone/sql/__init__.py
scragly/everstone
a780cb59aaf2401749264d44acc0345b82a045df
[ "MIT" ]
null
null
null
everstone/sql/__init__.py
scragly/everstone
a780cb59aaf2401749264d44acc0345b82a045df
[ "MIT" ]
null
null
null
from .column import Column from .constraints import Constraint from .schema import Schema from .table import Table
23
35
0.826087
3ec52e6e7a157c8fe378eb0f947798a037a07810
10,792
py
Python
osx/devkit/plug-ins/scripted/pyFootPrintNode.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
10
2018-03-30T16:09:02.000Z
2021-12-07T07:29:19.000Z
osx/devkit/plug-ins/scripted/pyFootPrintNode.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
null
null
null
osx/devkit/plug-ins/scripted/pyFootPrintNode.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
#- # =========================================================================== # Copyright 2015 Autodesk, Inc. All rights reserved. # # Use of this software is subject to the terms of the Autodesk license # agreement provided at the time of installation or download, or which # otherwise accompanies this software in ...
30.922636
146
0.650389
f936c08a15fef5ba5f55e8d918887d0261f7f899
3,223
py
Python
announcer/subscribers/ticket_custom.py
dokipen/trac-announcer-plugin
7ef4123a7508c5395c8008fa2a8478b1888b4f63
[ "BSD-3-Clause" ]
null
null
null
announcer/subscribers/ticket_custom.py
dokipen/trac-announcer-plugin
7ef4123a7508c5395c8008fa2a8478b1888b4f63
[ "BSD-3-Clause" ]
1
2018-06-11T14:48:06.000Z
2018-06-11T14:48:06.000Z
announcer/subscribers/ticket_custom.py
dokipen/trac-announcer-plugin
7ef4123a7508c5395c8008fa2a8478b1888b4f63
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2009, Robert Corsaro # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # ...
44.150685
79
0.653739
ed1918b374d9031ba8897c20bc3ff14fc6135104
672
py
Python
backend/api/core/models.py
jacorea/ismp
81cf55559005753f3055165689889b18aec958ac
[ "CC0-1.0" ]
3
2020-05-08T03:51:43.000Z
2020-06-13T23:12:26.000Z
backend/api/core/models.py
jacorea/ismp
81cf55559005753f3055165689889b18aec958ac
[ "CC0-1.0" ]
15
2020-05-04T05:49:17.000Z
2020-06-01T21:31:03.000Z
backend/api/core/models.py
jacorea/ismp
81cf55559005753f3055165689889b18aec958ac
[ "CC0-1.0" ]
11
2020-05-01T04:35:24.000Z
2020-05-28T17:17:21.000Z
from django.db import models class TimestampedModel(models.Model): # A timestamp representing when this object was created. created_at = models.DateTimeField(auto_now_add=True) # A timestamp representing when this object was last updated. updated_at = models.DateTimeField(auto_now=True) class M...
35.368421
78
0.709821
78cb1f7df3c99047f363527476b7fd6f4a20e952
3,030
py
Python
SRC/Python/module/locistat.py
wenching/CRI-BIO-646-BMB-RKeenan
6dfda3f7f1d3f90b45609bcc656a372a87cc795d
[ "MIT" ]
null
null
null
SRC/Python/module/locistat.py
wenching/CRI-BIO-646-BMB-RKeenan
6dfda3f7f1d3f90b45609bcc656a372a87cc795d
[ "MIT" ]
null
null
null
SRC/Python/module/locistat.py
wenching/CRI-BIO-646-BMB-RKeenan
6dfda3f7f1d3f90b45609bcc656a372a87cc795d
[ "MIT" ]
null
null
null
"""Loci Statistics""" import os import sys import logging import datetime import lib.venn import util.ddictfunc SELF_FILE_PATH = os.path.realpath(__file__) SELF_DIR_PATH = os.path.dirname(SELF_FILE_PATH) SELF_FILE = os.path.basename(SELF_FILE_PATH) def loci_stat(args, sw_cfg, task_cfg): """ Loci Statistics...
38.846154
114
0.587459
a74e61e9a135b059c558ae6cffd2081c54e95290
187
py
Python
setup.py
RaphaelOlivier/deepspeech.pytorch
eb73ef61807ab01fad3662ad03dfea8fd44439aa
[ "MIT" ]
13
2022-01-25T01:26:56.000Z
2022-03-18T00:46:38.000Z
setup.py
RaphaelOlivier/deepspeech.pytorch
eb73ef61807ab01fad3662ad03dfea8fd44439aa
[ "MIT" ]
1
2019-02-07T12:52:46.000Z
2019-02-07T12:52:46.000Z
setup.py
RaphaelOlivier/deepspeech.pytorch
eb73ef61807ab01fad3662ad03dfea8fd44439aa
[ "MIT" ]
6
2020-11-26T07:57:25.000Z
2021-12-07T10:55:11.000Z
from setuptools import setup, find_packages setup(name='deepspeech_pytorch', version='0.1', author='SeanNaren', packages=find_packages(), zip_safe=False, )
20.777778
43
0.657754
6309c3727be6bdb5f5485c5576fad2daf00c20d3
1,953
py
Python
tech_project/lib/python2.7/site-packages/phonenumbers/data/region_CZ.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
27
2019-11-18T05:06:01.000Z
2021-02-28T19:38:09.000Z
tech_project/lib/python2.7/site-packages/phonenumbers/data/region_CZ.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
21
2020-12-29T21:29:31.000Z
2022-03-12T00:53:57.000Z
tech_project/lib/python2.7/site-packages/phonenumbers/data/region_CZ.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
6
2020-01-09T21:55:38.000Z
2021-09-17T01:22:48.000Z
"""Auto-generated file, do not edit by hand. CZ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CZ = PhoneMetadata(id='CZ', country_code=420, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}', pos...
102.789474
149
0.693804
924b43f75fca9b5ac66dd14fbdcbb74f19b4c0c6
46
py
Python
bigquery_dl/__main__.py
ROYALBEFF/bigquery-dl
21147d27d91f59568de0f420f72e32c0810b14a9
[ "MIT" ]
null
null
null
bigquery_dl/__main__.py
ROYALBEFF/bigquery-dl
21147d27d91f59568de0f420f72e32c0810b14a9
[ "MIT" ]
null
null
null
bigquery_dl/__main__.py
ROYALBEFF/bigquery-dl
21147d27d91f59568de0f420f72e32c0810b14a9
[ "MIT" ]
null
null
null
from bigquery_dl.__init__ import main main()
11.5
37
0.804348
12d42408db8b9224ca5e55329a9030c28d1aa9bb
19,215
py
Python
mi/idk/test/test_package.py
cdobs/mi-instrument
99f9322a4afabc5dff9b0fad12166075efce838c
[ "BSD-2-Clause" ]
1
2018-09-14T23:28:29.000Z
2018-09-14T23:28:29.000Z
mi/idk/test/test_package.py
cdobs/mi-instrument
99f9322a4afabc5dff9b0fad12166075efce838c
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/idk/test/test_package.py
cdobs/mi-instrument
99f9322a4afabc5dff9b0fad12166075efce838c
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
# CURRENTLY UNUSED # KEPT IN CASE WE WANT TO RESTORE THE PACKAGE BUILDING CODE # #!/usr/bin/env python # # """ # @package mi.idk.test.test_package # @file mi.idk/test/test_package.py # @author Bill French # @brief test file package process # """ # # __author__ = 'Bill French' # __license__ = 'Apache 2.0' # # import sy...
35.256881
124
0.546448
491b796405d82ca7b8ec9958b006fe35eb6e1cf1
18,347
py
Python
pysmappee/mqtt.py
smappee/pysmappee
d8d8e0025507f89fcbf967ce0a338b4aba612d58
[ "MIT" ]
1
2020-06-30T08:50:10.000Z
2020-06-30T08:50:10.000Z
pysmappee/mqtt.py
smappee/pysmappee
d8d8e0025507f89fcbf967ce0a338b4aba612d58
[ "MIT" ]
6
2020-07-02T13:03:20.000Z
2021-06-09T22:48:00.000Z
pysmappee/mqtt.py
smappee/pysmappee
d8d8e0025507f89fcbf967ce0a338b4aba612d58
[ "MIT" ]
5
2020-09-10T07:37:47.000Z
2022-03-29T04:40:11.000Z
"""Support for cloud and local Smappee MQTT.""" import json import threading import socket import time import traceback import schedule import uuid from functools import wraps import paho.mqtt.client as mqtt from .config import config TRACKING_INTERVAL = 60 * 5 HEARTBEAT_INTERVAL = 60 * 1 def tracking(func): # ...
42.568445
180
0.564942
f48f1ef2dd22f73c7ad678ede68dcca81f4bd544
4,007
py
Python
syn/types/a/sequence.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
1
2021-07-15T08:55:12.000Z
2021-07-15T08:55:12.000Z
syn/types/a/sequence.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
7
2021-01-07T23:51:57.000Z
2021-12-13T19:50:57.000Z
syn/types/a/sequence.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
2
2016-07-11T08:46:31.000Z
2017-12-13T13:30:51.000Z
import collections from syn.five import xrange from syn.base_utils import rand_list, rand_tuple, get_fullname, tuple_prepend, \ get_typename, escape_for_eval from .base import Type, hashable, deserialize, serialize, SER_KEYS, rstr, \ estr, primitive_form, collect from syn.base_utils.rand import SEQ_TYPES, MAX_D...
29.036232
80
0.541802
9b9a86b08dbd6250f139b16f8ae2ab4e80669d2c
2,128
py
Python
nltk/metrics/spearman.py
dmcc/nltk
33c193d2de3876ca89fb08140557e16f01c79c6f
[ "Apache-2.0" ]
1
2015-01-25T19:20:11.000Z
2015-01-25T19:20:11.000Z
nltk/metrics/spearman.py
dmcc/nltk
33c193d2de3876ca89fb08140557e16f01c79c6f
[ "Apache-2.0" ]
1
2018-09-21T22:16:48.000Z
2018-09-21T22:16:48.000Z
nltk/metrics/spearman.py
dmcc/nltk
33c193d2de3876ca89fb08140557e16f01c79c6f
[ "Apache-2.0" ]
1
2018-09-21T22:10:56.000Z
2018-09-21T22:10:56.000Z
# Natural Language Toolkit: Spearman Rank Correlation # # Copyright (C) 2001-2015 NLTK Project # Author: Joel Nothman <jnothman@student.usyd.edu.au> # URL: <http://nltk.org> # For license information, see LICENSE.TXT """ Tools for comparing ranked lists. """ def _rank_dists(ranks1, ranks2): """Finds the differenc...
30.84058
78
0.645207
bbdbaee7b415c6dd410e293838e1e17f568afaf1
884
py
Python
actions.py
srimtech07/rasa-chat
5a0f19bce3d3c9c172a57d5094e52f5ac4ff899c
[ "Apache-2.0" ]
1
2020-05-31T12:35:11.000Z
2020-05-31T12:35:11.000Z
actions.py
srimtech07/rasa-chat
5a0f19bce3d3c9c172a57d5094e52f5ac4ff899c
[ "Apache-2.0" ]
null
null
null
actions.py
srimtech07/rasa-chat
5a0f19bce3d3c9c172a57d5094e52f5ac4ff899c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from rasa_core_sdk.events import SlotSet import logging import requests import json from rasa_core_sdk import Action logger = logging.getLogger(_...
30.482759
86
0.71267
cec00221aaf0f23ce9a14f0c9ee6a0c22494bfa0
5,179
py
Python
homeassistant/components/device_tracker/upc_connect.py
shire210/home-assistant
63cd8bbee6f1b74ae9c6c249ac820119a8a573d8
[ "Apache-2.0" ]
null
null
null
homeassistant/components/device_tracker/upc_connect.py
shire210/home-assistant
63cd8bbee6f1b74ae9c6c249ac820119a8a573d8
[ "Apache-2.0" ]
null
null
null
homeassistant/components/device_tracker/upc_connect.py
shire210/home-assistant
63cd8bbee6f1b74ae9c6c249ac820119a8a573d8
[ "Apache-2.0" ]
null
null
null
""" Support for UPC ConnectBox router. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.upc_connect/ """ import asyncio import logging import xml.etree.ElementTree as ET import aiohttp import async_timeout import voluptuous as vol from hom...
31.969136
76
0.608032
2c98bb622e91eebf3f5d0b97e0110ca81fe4fd18
374
py
Python
src/clean_tablets.py
frc1678/server-2021-public
d61e35f8385bf1debc9daaaed40208f6c783ed77
[ "MIT" ]
null
null
null
src/clean_tablets.py
frc1678/server-2021-public
d61e35f8385bf1debc9daaaed40208f6c783ed77
[ "MIT" ]
null
null
null
src/clean_tablets.py
frc1678/server-2021-public
d61e35f8385bf1debc9daaaed40208f6c783ed77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 FRC Team 1678: Citrus Circuits """Changes font size of tablets for app consistency.""" from data_transfer import adb_communicator import utils FILE_PATH = utils.create_file_path('data/tablets') utils.run_command(f'rm -R {FILE_PATH}', True) utils.run_command(f'mkdir {FILE_PA...
31.166667
55
0.783422
44903edf42db855d8f0b2cb441a562313b1ef1e4
2,452
py
Python
peakdetect.py
antonjan/LSTM_morse
1028af4715c84fc2ff5bacd2e015cecbda2aa9a6
[ "MIT" ]
45
2015-12-28T19:41:22.000Z
2021-11-01T20:09:42.000Z
peakdetect.py
antonjan/LSTM_morse
1028af4715c84fc2ff5bacd2e015cecbda2aa9a6
[ "MIT" ]
13
2019-02-25T05:11:45.000Z
2022-02-09T23:30:11.000Z
peakdetect.py
antonjan/LSTM_morse
1028af4715c84fc2ff5bacd2e015cecbda2aa9a6
[ "MIT" ]
24
2016-12-16T16:31:26.000Z
2021-08-16T03:30:55.000Z
import sys from numpy import NaN, Inf, arange, isscalar, asarray, array def peakdet(v, delta, x = None): """ Converted from MATLAB script at http://billauer.co.il/peakdet.html Returns two arrays function [maxtab, mintab]=peakdet(v, delta, x) %PEAKDET Detect peaks in a vector % ...
29.902439
73
0.53385
58a0079e2b1c33438e8a940607465850b2522edf
963
py
Python
atom/nucleus/python/test/test_account_allocation_mapping.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_account_allocation_mapping.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_account_allocation_mapping.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Atom API The Hydrogen Atom API # noqa: E501 OpenAPI spec version: 1.7.0 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nucleus_...
23.487805
104
0.726895
ff565a9ffb6b560fc15cf8357e24b52f3ea3e21a
460
py
Python
setup.py
mvcisback/magnumSTL
e48d641118bc9c1fb28be2a38a55654441a78701
[ "BSD-3-Clause" ]
1
2016-10-07T20:10:35.000Z
2016-10-07T20:10:35.000Z
setup.py
mvcisback/py-blustl
e48d641118bc9c1fb28be2a38a55654441a78701
[ "BSD-3-Clause" ]
15
2016-07-01T04:46:09.000Z
2017-01-06T22:09:20.000Z
setup.py
mvcisback/py-blustl
e48d641118bc9c1fb28be2a38a55654441a78701
[ "BSD-3-Clause" ]
5
2016-12-23T06:12:40.000Z
2017-01-10T01:58:27.000Z
from setuptools import setup, find_packages setup( name='magnumSTL', version='0.1', description='TODO', url='http://github.com/mvcisback/magnumSTL', author='Marcell Vazquez-Chanlatte', author_email='marcell.vc@eecs.berkeley.edu', license='MIT', install_requires=[ 'bidict', ...
20.909091
48
0.578261
526351f88c896dafb6db0d11bf1f3c0a80187352
2,012
py
Python
src/main/python/testapi/test_fixture.py
photowey/pytest-in-action
e3ce03920cd51b418022cac5aca2b187494054a6
[ "Apache-2.0" ]
null
null
null
src/main/python/testapi/test_fixture.py
photowey/pytest-in-action
e3ce03920cd51b418022cac5aca2b187494054a6
[ "Apache-2.0" ]
null
null
null
src/main/python/testapi/test_fixture.py
photowey/pytest-in-action
e3ce03920cd51b418022cac5aca2b187494054a6
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # --------------------------------------------- # @file test_fixture.py # @description test_fixture # @author WcJun # @date 2021/07/16 # --------------------------------------------- import pytest # --------------------------------------------- # @pytest.fixture(scope='', params='', autouse=''...
25.468354
84
0.518887
b570acc081cb58f82e7bda098df4e08830f2b70b
1,496
py
Python
Proyecto/compilation/utils.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
null
null
null
Proyecto/compilation/utils.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
1
2022-02-11T07:26:54.000Z
2022-02-11T07:26:54.000Z
Proyecto/compilation/utils.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
null
null
null
from enum import Enum from compilation.tokens import Token, TokenType def split_lines(tokens: [Token]) -> [[TokenType]]: t_pointer = 0 current_line = [] lines = [] while t_pointer < len(tokens): if tokens[t_pointer].token_type in [TokenType.T_IF, TokenType.T_ELIF, TokenType.T_ELSE, TokenType....
35.619048
172
0.660428
40e047a2afd9b741dad650f196a58b15b7d27c7e
1,054
py
Python
dialog/__init__.py
audaciouscode/Dialog-Engine-Django
76c9063be1a5bf592142c10ea7d3af4649fa353b
[ "Apache-2.0" ]
null
null
null
dialog/__init__.py
audaciouscode/Dialog-Engine-Django
76c9063be1a5bf592142c10ea7d3af4649fa353b
[ "Apache-2.0" ]
null
null
null
dialog/__init__.py
audaciouscode/Dialog-Engine-Django
76c9063be1a5bf592142c10ea7d3af4649fa353b
[ "Apache-2.0" ]
null
null
null
# pylint: disable=line-too-long from .dialog_machine import DialogMachine, MISSING_NEXT_NODE_KEY from .base_node import DialogError, MissingNextDialogNodeError, BaseNode, fetch_default_logger, DialogTransition from .alert_node import AlertNode from .begin_node import BeginNode from .branching_conditions_node import ...
40.538462
112
0.880455
68b05a76dc2af3d17233a90762edff7dfcde5063
589
py
Python
Easy/Lettercase Percentage Ratio/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Easy/Lettercase Percentage Ratio/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Easy/Lettercase Percentage Ratio/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys import re lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: matchesLower = [match.start() for match in re.finditer('[a-z]', line)] matchesUpper = [match.start() for match in re.finditer('[A-Z]', line)] m...
42.071429
102
0.624788
d08daea1de81f8f48947af9ae1d3e253b3c34998
43,185
py
Python
azurelinuxagent/common/osutil/default.py
sundaxi/WALinuxAgent
416b8b10b27a4cb0d4988834d26af7aae6836d84
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/osutil/default.py
sundaxi/WALinuxAgent
416b8b10b27a4cb0d4988834d26af7aae6836d84
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/osutil/default.py
sundaxi/WALinuxAgent
416b8b10b27a4cb0d4988834d26af7aae6836d84
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
39.116848
130
0.576195
70e97f0d378e46d2991cc6a4dcbe92406a86f86b
3,298
py
Python
benchmarks/f3_wrong_hints/scaling_software_termination/1-2Nested_false-termination_9.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_software_termination/1-2Nested_false-termination_9.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_software_termination/1-2Nested_false-termination_9.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
28.188034
77
0.557004
92c12a48b58663c93d9c8c38ba4153c231784199
10,920
py
Python
src/uproot/models/TBasket.py
klieret/uproot4
0cce6990b89db0ef7d47fc2857616ab2933c5d03
[ "BSD-3-Clause" ]
null
null
null
src/uproot/models/TBasket.py
klieret/uproot4
0cce6990b89db0ef7d47fc2857616ab2933c5d03
[ "BSD-3-Clause" ]
null
null
null
src/uproot/models/TBasket.py
klieret/uproot4
0cce6990b89db0ef7d47fc2857616ab2933c5d03
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE """ This module defines a versionless model for ``TBasket``, including much of the functionality of basket-reading. Includes both "embedded" ``TBaskets`` (as a member of TBranch) and "free" ``TBaskets`` (top-level objects, located by ...
33.913043
128
0.593315
d6b1e84e2cb90eb1df32e3cb33e2567e267e39e8
9,889
py
Python
speaker_id.py
huda-irs/Project3
8700cafd145425c5ca0080ca79e7020078b8d8f9
[ "MIT" ]
null
null
null
speaker_id.py
huda-irs/Project3
8700cafd145425c5ca0080ca79e7020078b8d8f9
[ "MIT" ]
null
null
null
speaker_id.py
huda-irs/Project3
8700cafd145425c5ca0080ca79e7020078b8d8f9
[ "MIT" ]
null
null
null
# speaker_id.py # Mirco Ravanelli # Mila - University of Montreal # July 2018 # Description: # This code performs a speaker_id experiments with SincNet. # How to run it: # python speaker_id.py --cfg=cfg/SincNet_TIMIT.cfg import os #import scipy.io.wavfile import soundfile as sf import torch import torch.nn as n...
28.09375
161
0.708262
3aa2e5746464ebb3591c70453d026b81a96c36dc
1,923
py
Python
tasks/tv_raffle_handler.py
paipaitou/bili2.0
73dbe4738706b05fce57106544e4a784ccb52760
[ "MIT" ]
null
null
null
tasks/tv_raffle_handler.py
paipaitou/bili2.0
73dbe4738706b05fce57106544e4a784ccb52760
[ "MIT" ]
null
null
null
tasks/tv_raffle_handler.py
paipaitou/bili2.0
73dbe4738706b05fce57106544e4a784ccb52760
[ "MIT" ]
null
null
null
import bili_statistics from reqs.tv_raffle_handler import TvRaffleHandlerReq from tasks.utils import UtilsTask from .task_func_decorator import normal from .base_class import ForcedTask class TvRaffleJoinTask(ForcedTask): TASK_NAME = 'join_tv_raffle' # 这是superuser做的,做完之后就broadcast @staticmethod async ...
40.914894
110
0.643786
5ad9fd5958626a6c413522211822fee96b688c75
2,221
py
Python
virtual/lib/python3.6/site-packages/alembic/templates/pylons/env.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
virtual/lib/python3.6/site-packages/alembic/templates/pylons/env.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/alembic/templates/pylons/env.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
53
2019-03-12T16:50:21.000Z
2022-03-15T23:16:18.000Z
"""Pylons bootstrap environment. Place 'pylons_config_file' into alembic.ini, and the application will be loaded from there. """ from alembic import context from paste.deploy import loadapp from logging.config import fileConfig from sqlalchemy.engine.base import Engine try: # if pylons app already in, don't cre...
28.113924
81
0.717244
6894b705cec8bc726dffebb450d66c1eb9ba98fb
914
py
Python
gcloud_dataproc/v02/run_script_GRCh38.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
gcloud_dataproc/v02/run_script_GRCh38.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
gcloud_dataproc/v02/run_script_GRCh38.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import random import sys from kubernetes.shell_utils import simple_run as run unique_id = random.randint(10**5, 10**6 - 1) random_cluster_name = "vep-grch38-%s" % unique_id p = argparse.ArgumentParser() p.add_argument("-c", "--cluster", default=random_cluster_name) p...
24.702703
91
0.689278
4d3720041c316a3b4a763f8342d8c13dfb03b0d2
204
py
Python
Module05/debug.py
geiyer/cis189-python
2b85ff66277b337aab9f6a7a6fa1c86dccf0178c
[ "MIT" ]
2
2021-02-24T00:32:36.000Z
2021-04-21T00:09:36.000Z
Module05/debug.py
geiyer/cis189-python
2b85ff66277b337aab9f6a7a6fa1c86dccf0178c
[ "MIT" ]
null
null
null
Module05/debug.py
geiyer/cis189-python
2b85ff66277b337aab9f6a7a6fa1c86dccf0178c
[ "MIT" ]
2
2021-03-30T23:37:49.000Z
2021-04-21T00:08:32.000Z
def print_to_number(number): """ Prints to the number value passed in, beginning at 1""" for counter in range(1,number): print (counter) if __name__ == "__main__": print_to_number(5)
25.5
63
0.666667
12ee15dcf7ae3ee454aabc308ad18944c68650be
5,908
py
Python
nnclicker/preprocess.py
wbwvos/IRNeuralClickModels
942ccc23f1615473a30d18e2ee55381f7bcea170
[ "MIT" ]
null
null
null
nnclicker/preprocess.py
wbwvos/IRNeuralClickModels
942ccc23f1615473a30d18e2ee55381f7bcea170
[ "MIT" ]
null
null
null
nnclicker/preprocess.py
wbwvos/IRNeuralClickModels
942ccc23f1615473a30d18e2ee55381f7bcea170
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os.path import cPickle as pickle from utils import get_index_from_click_pattern from utils import dict_batch_writer __author__ = 'Wolf Vos, Casper Thuis, Alexander van Someren, Jeroen Rooijmans' class NNclickParser(object): """ A Parser for the Yandex database, available from th...
37.157233
90
0.593433
6aa8ce37b53e338abf62ecdfddbf79639858690e
4,296
py
Python
research/delf/delf/python/examples/match_images.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
79
2019-03-02T17:40:25.000Z
2021-08-17T13:22:03.000Z
research/delf/delf/python/examples/match_images.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
7
2019-01-07T16:49:27.000Z
2020-04-28T16:48:52.000Z
research/delf/delf/python/examples/match_images.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
43
2018-12-28T15:01:44.000Z
2022-02-15T06:23:05.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 applicab...
29.627586
80
0.693901
d3f0c293287a3c90c4544793259b31067c455599
19,425
py
Python
pyuavcan/transport/udp/_udp.py
WshgL/pyuavcan
f2b8d2d743f09ad4af8d62fc96d8f0b013aeb8b0
[ "MIT" ]
null
null
null
pyuavcan/transport/udp/_udp.py
WshgL/pyuavcan
f2b8d2d743f09ad4af8d62fc96d8f0b013aeb8b0
[ "MIT" ]
null
null
null
pyuavcan/transport/udp/_udp.py
WshgL/pyuavcan
f2b8d2d743f09ad4af8d62fc96d8f0b013aeb8b0
[ "MIT" ]
null
null
null
# Copyright (c) 2019 UAVCAN Consortium # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <pavel@uavcan.org> import copy import typing import asyncio import logging import warnings import ipaddress import dataclasses import pyuavcan from ._session import UDPInputSession, Select...
49.553571
120
0.639794
b82e94cfcec7a71d4366d98e0676ac1744960d21
1,005
py
Python
GeneticAlgorithm/StringChromosome.py
Bastianleaf/TravellingSalesman
fafd7bb2e2ac79abc23bc261899e7d89cd0d8e9e
[ "Apache-2.0" ]
null
null
null
GeneticAlgorithm/StringChromosome.py
Bastianleaf/TravellingSalesman
fafd7bb2e2ac79abc23bc261899e7d89cd0d8e9e
[ "Apache-2.0" ]
null
null
null
GeneticAlgorithm/StringChromosome.py
Bastianleaf/TravellingSalesman
fafd7bb2e2ac79abc23bc261899e7d89cd0d8e9e
[ "Apache-2.0" ]
null
null
null
import random class StringChromosome: def __init__(self, value): self.value = value self.mutation_rate = 0.01 self.score = 0 def evaluate_fitness(self, solution): score = 0 for a, b in zip(self.value, solution): if a.value == b: score += 1 self.score = score def set_mutation_rate(self, r...
22.840909
81
0.674627
1b987f84fc9b243958a35404cb6f88bd5094434f
724
py
Python
Python-Programs/vowel_consonant_detection/vowel_consonant_detection.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
71
2021-09-30T11:25:12.000Z
2021-10-03T11:33:22.000Z
Python-Programs/vowel_consonant_detection/vowel_consonant_detection.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
186
2021-09-30T12:25:16.000Z
2021-10-03T13:45:04.000Z
Python-Programs/vowel_consonant_detection/vowel_consonant_detection.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
385
2021-09-30T11:34:23.000Z
2021-10-03T13:41:00.000Z
# This code is used to find consonant and fowel in a string string = input("Please insert a string : ").lower() vowel_counts = {} consonant_counts = {} # Define vowels and consonants vowels = ["a", "e", "i", "o", "u"] consonants = [ "b", "c", "d", "f", "g", "h", "j", "k", "l", ...
16.837209
59
0.517956
b05b2fbf1c7a48fba6b9123ded939059b7615e60
549
py
Python
web/election/context_processors.py
mhamzaerol/kisaweb
6852bbfb018f14df6caeaf75c4087553df6a1357
[ "MIT" ]
2
2020-11-06T10:32:52.000Z
2021-11-05T06:56:08.000Z
web/election/context_processors.py
mhamzaerol/kisaweb
6852bbfb018f14df6caeaf75c4087553df6a1357
[ "MIT" ]
29
2020-10-09T18:29:11.000Z
2022-03-12T14:23:36.000Z
web/election/context_processors.py
mhamzaerol/kisaweb
6852bbfb018f14df6caeaf75c4087553df6a1357
[ "MIT" ]
11
2020-10-26T03:59:47.000Z
2021-10-04T07:03:44.000Z
from django.shortcuts import HttpResponse from django.utils import timezone from election.models import Election # def navbar_election_link_visible(request): # latest_election = Election.objects.latest('start_datetime') # semyear = str(latest_election).replace(' ', '-') # now = timezone.now() # # visi...
32.294118
95
0.695811
d819a53c0e15b68b43e26894d70ac6acdf0591e4
3,861
py
Python
tests/generic_relations/models.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
166
2015-01-07T08:23:17.000Z
2022-02-23T00:09:44.000Z
tests/generic_relations/models.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
107
2015-01-19T22:11:09.000Z
2021-09-18T19:29:44.000Z
tests/generic_relations/models.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
89
2015-01-08T19:52:16.000Z
2021-12-17T11:26:53.000Z
""" 34. Generic relations Generic relations let an object have a foreign key to any object through a content-type/object-id field. A ``GenericForeignKey`` field can point to any object, be it animal, vegetable, or mineral. The canonical example is tags (although this example implementation is *far* from complete). ""...
31.137097
90
0.741518
3b60d324ffe318f2d5281c809daf880640025ab1
38
py
Python
UNET_GM_DATASET/UNET_Quant_6_0_0_4/gmchallenge_unet.py
hossein1387/U-Net-Fixed-Point-Quantization-for-Medical-Image-Segmentation
f919935b975461052d5196372a837356379f973a
[ "MIT" ]
69
2019-07-28T06:53:55.000Z
2022-03-22T01:07:28.000Z
UNET_GM_DATASET/UNET_Quant_Ternary/gmchallenge_unet.py
hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation
4835a3d08b38617b952023f19bf59679126f5f59
[ "MIT" ]
6
2019-08-02T07:47:09.000Z
2021-06-11T14:35:53.000Z
UNET_GM_DATASET/UNET_Quant_Ternary/gmchallenge_unet.py
hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation
4835a3d08b38617b952023f19bf59679126f5f59
[ "MIT" ]
20
2019-08-10T07:08:56.000Z
2021-10-09T17:02:30.000Z
../UNET_Quant_Base/gmchallenge_unet.py
38
38
0.868421
a96f6f01fa7d44e9ccbc35c2874f120a46bcb855
916
py
Python
src/ss_sys.py
BardiaMojra/dip
201bd14c13052b81967e051444f4e5c08c72631a
[ "MIT" ]
null
null
null
src/ss_sys.py
BardiaMojra/dip
201bd14c13052b81967e051444f4e5c08c72631a
[ "MIT" ]
null
null
null
src/ss_sys.py
BardiaMojra/dip
201bd14c13052b81967e051444f4e5c08c72631a
[ "MIT" ]
null
null
null
''' control systems - ode simulation @link https://www.youtube.com/watch?v=yp5x8RMNi7o ''' import numpy as np from matplotlib import pyplot as plt import control def ss_sys(x, t): # compute state first derivative dx1 = x[1] dx2 = (F - c*x[1] - k*x[0])/m return [dx1, dx2] def sim(): # set constants ...
19.489362
61
0.617904
fa15f34cfaeea349a0ecd0ba78adf370dd141c1b
929
py
Python
paystack/views/webhook.py
Nyior/django-rest-paystack
fd74dd26703fe4ce63664736c2063ace7020f71a
[ "MIT" ]
9
2021-12-12T17:59:15.000Z
2022-02-05T17:13:46.000Z
paystack/views/webhook.py
Nyior/django-rest-paystack
fd74dd26703fe4ce63664736c2063ace7020f71a
[ "MIT" ]
null
null
null
paystack/views/webhook.py
Nyior/django-rest-paystack
fd74dd26703fe4ce63664736c2063ace7020f71a
[ "MIT" ]
1
2021-12-21T18:57:03.000Z
2021-12-21T18:57:03.000Z
from rest_framework.views import APIView from paystack.services import WebhookService from paystack.utils import return_okay_response class WebhookFacadeView(APIView): """ Exsits for extensibility reasons. Users might want to capture the data returned from Paystack and do some stuff with it. E.g ret...
29.967742
77
0.7169
c89d68af1a1f477a7708d6b72be14ec554c38cb6
4,602
py
Python
examples/remarketing/add_conversion_based_user_list.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
examples/remarketing/add_conversion_based_user_list.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
examples/remarketing/add_conversion_based_user_list.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
#!/usr/bin/env python # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.672269
80
0.707084
675bc06d1ca04dbcfb3d3cda0d7e919795b51d37
3,472
py
Python
lega/ingest.py
jbygdell/LocalEGA
e0e5f9ee5c7e18cd4fbb1c8e89a77832c7c122b9
[ "Apache-2.0" ]
null
null
null
lega/ingest.py
jbygdell/LocalEGA
e0e5f9ee5c7e18cd4fbb1c8e89a77832c7c122b9
[ "Apache-2.0" ]
null
null
null
lega/ingest.py
jbygdell/LocalEGA
e0e5f9ee5c7e18cd4fbb1c8e89a77832c7c122b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Worker reading messages from the ``files`` queue, splitting the Crypt4GH header from the remainder of the file. The header is stored in the database and the remainder is sent to the backend storage: either a regular file system or an S3 object store. It is possible t...
31.279279
114
0.686636
0daae2ec7275e9b450ace9255cf5b71391e0df3a
642
py
Python
deepshift/kernels/cuda/setup.py
poppin-mice/ShiftAddNet
a17369a50da5bba6250fdeac7c065bd00f293f3c
[ "MIT" ]
55
2020-10-04T17:17:46.000Z
2022-03-31T02:56:51.000Z
deepshift/kernels/cuda/setup.py
poppin-mice/ShiftAddNet
a17369a50da5bba6250fdeac7c065bd00f293f3c
[ "MIT" ]
8
2020-12-07T03:37:48.000Z
2021-07-21T09:26:45.000Z
deepshift/kernels/cuda/setup.py
poppin-mice/ShiftAddNet
a17369a50da5bba6250fdeac7c065bd00f293f3c
[ "MIT" ]
14
2020-10-29T16:51:41.000Z
2021-11-16T01:36:43.000Z
from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CUDAExtension setup( name='deepshift_cuda', ext_modules=[ CUDAExtension('deepshift_cuda', [ 'shift_cuda.cpp', 'shift.cu', ],extra_compile_args=['-O3']) ], cmdclass={ 'build...
24.692308
67
0.609034
0cde37c7f7da75f4fe6da67f0368d0044c30acb4
1,201
py
Python
xlsxwriter/test/comparison/test_hyperlink20.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_hyperlink20.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_hyperlink20.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
29.292683
110
0.632806
ac07792a20a3659277d8a1854bb8209d426f2088
570
py
Python
blockkit/__init__.py
ddnomad/blockkit-slack
886598d73acc4e545bc5fca4e36902997b00168a
[ "MIT" ]
null
null
null
blockkit/__init__.py
ddnomad/blockkit-slack
886598d73acc4e545bc5fca4e36902997b00168a
[ "MIT" ]
null
null
null
blockkit/__init__.py
ddnomad/blockkit-slack
886598d73acc4e545bc5fca4e36902997b00168a
[ "MIT" ]
null
null
null
from .objects import Confirm, MarkdownText, Option, OptionGroup, PlainText, Text, Filter from .elements import ( Button, DatePicker, Image, MultiExternalSelect, MultiStaticSelect, MultiUsersSelect, MultiConversationsSelect, MultiChannelsSelect, StaticSelect, ExternalSelect, U...
24.782609
88
0.731579
973c18b24c5da3b031d3ad895b09efe440ce5b04
179
py
Python
notebooks/01.Basics/solutions/intro/widgets-in-a-box.py
jupytercon/2020-mwcraig
0fd6cf2acc1498d148bcda1f274a0aa5cb0c9085
[ "BSD-3-Clause" ]
342
2017-08-23T18:36:58.000Z
2022-03-11T18:47:31.000Z
notebooks/01.Basics/solutions/intro/widgets-in-a-box.py
jupytercon/2020-mwcraig
0fd6cf2acc1498d148bcda1f274a0aa5cb0c9085
[ "BSD-3-Clause" ]
118
2017-08-23T01:42:45.000Z
2022-02-14T18:11:47.000Z
notebooks/01.Basics/solutions/intro/widgets-in-a-box.py
jupytercon/2020-mwcraig
0fd6cf2acc1498d148bcda1f274a0aa5cb0c9085
[ "BSD-3-Clause" ]
152
2017-08-22T22:24:28.000Z
2022-03-31T12:45:37.000Z
import ipywidgets as widgets a = widgets.Play(description='Value A', min=1, max=10, value=5) b = widgets.IntText(description='Value B') vbox = widgets.HBox(children=[a, b]) vbox
25.571429
63
0.726257