hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
87657d81607a298ec18b2ddd27e36c523d708591
2,069
py
Python
full_mode/rx.py
diegoa314/daphne
dbcb9bb867d2d0a2d0153fd0064997ca406e2e9d
[ "BSD-2-Clause" ]
null
null
null
full_mode/rx.py
diegoa314/daphne
dbcb9bb867d2d0a2d0153fd0064997ca406e2e9d
[ "BSD-2-Clause" ]
null
null
null
full_mode/rx.py
diegoa314/daphne
dbcb9bb867d2d0a2d0153fd0064997ca406e2e9d
[ "BSD-2-Clause" ]
null
null
null
from litex.soc.cores.code_8b10b import Decoder from transmitter32b import Transmitter32b from alignment_corrector import Alignment_Corrector from migen.genlib.fifo import * from migen import * class RX(Module): def __init__(self): self.data_in=Signal(40) self.rx_init_done = rx_init_done = Signal() self.pll_lock ...
28.736111
88
0.702755
1,874
0.905752
0
0
0
0
0
0
141
0.068149
87678f18706219a75f4b57fd79110313c3f75dec
1,232
py
Python
vsts/vsts/work/v4_1/models/parent_child_wIMap.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/work/v4_1/models/parent_child_wIMap.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/work/v4_1/models/parent_child_wIMap.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
36.235294
94
0.507305
635
0.515422
0
0
0
0
0
0
834
0.676948
8767ef401078ac093bf46d8edd93e289989ab422
2,152
py
Python
dash/migrations/0001_initial.py
mohammedaliyu136/degree_pln2
70ac9f8ab774197a49fedcee9951c4b373a59ffd
[ "MIT" ]
null
null
null
dash/migrations/0001_initial.py
mohammedaliyu136/degree_pln2
70ac9f8ab774197a49fedcee9951c4b373a59ffd
[ "MIT" ]
null
null
null
dash/migrations/0001_initial.py
mohammedaliyu136/degree_pln2
70ac9f8ab774197a49fedcee9951c4b373a59ffd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2018-08-03 08:53 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Educat...
39.851852
114
0.555762
1,994
0.92658
0
0
0
0
0
0
364
0.169145
87681dce3beb584df65213d7ac35f6fe63e61aa4
13,141
py
Python
blockchain.py
jdacode/Blockchain_voting_system
7a1217fcc3634139cbb8fdc132dd8fd5211bb3d1
[ "MIT" ]
2
2021-06-23T22:31:55.000Z
2021-11-02T11:51:25.000Z
blockchain.py
jdacode/Blockchain_voting_system
7a1217fcc3634139cbb8fdc132dd8fd5211bb3d1
[ "MIT" ]
null
null
null
blockchain.py
jdacode/Blockchain_voting_system
7a1217fcc3634139cbb8fdc132dd8fd5211bb3d1
[ "MIT" ]
null
null
null
""" ANACONDA: To open anaconda use the command line $ anaconda-navigator ANACONDA: And the in Pycharm you can activate your Environtments, in this case is on terminal: $ source activate pycoin ANACONDA: Now it will change to (pycoin) at the beginning of the user. For instance, (pycoin) w11@w11: path$ """ # I...
43.657807
248
0.597291
12,447
0.947188
0
0
127
0.009664
0
0
3,453
0.262765
876886b10c5d7283b41479e686ebe38301aec6fb
477
py
Python
examples/src/python/example/tensorflow_custom_op/zero_out_custom_op.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
examples/src/python/example/tensorflow_custom_op/zero_out_custom_op.py
wisechengyi/SCL-16273
18ed1fb4212879150ae5b292137d058894051fc6
[ "Apache-2.0" ]
1
2020-01-21T16:34:02.000Z
2020-01-21T16:34:02.000Z
examples/src/python/example/tensorflow_custom_op/zero_out_custom_op.py
wisechengyi/SCL-16273
18ed1fb4212879150ae5b292137d058894051fc6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import tensorflow as tf # TODO: It would be great if we could maintain the example.tensorflow_custom_op package prefix for # this python_dist()! from wrap_lib.wrap_zero_out_op import zero_...
36.692308
98
0.802935
0
0
0
0
0
0
0
0
313
0.656184
8768ed3b565c90b42d728ffd7491d21be706a7a0
7,221
py
Python
frozen_box/frozen_class.py
leavers/frozen-box
d7e389fb2039a1f1781e373e213ea99f474792b4
[ "MIT" ]
null
null
null
frozen_box/frozen_class.py
leavers/frozen-box
d7e389fb2039a1f1781e373e213ea99f474792b4
[ "MIT" ]
null
null
null
frozen_box/frozen_class.py
leavers/frozen-box
d7e389fb2039a1f1781e373e213ea99f474792b4
[ "MIT" ]
null
null
null
from typing import List, Optional, Sequence, Union from abc import abstractmethod, ABC from copy import deepcopy from sys import _getframe as get_stack from frozen_box.exception import FrozenException, FrozenKeyError, FrozenValueError QueryableItem = Union[str, int, slice] Queryable = Union[QueryableItem, Sequence[Qu...
28.654762
82
0.554771
5,779
0.800305
0
0
2,204
0.305221
0
0
376
0.05207
8769770ef83407fc3c538e1058e91191bb513e0f
3,902
py
Python
tools/telemetry/telemetry/unittest/gtest_progress_reporter_unittest.py
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/unittest/gtest_progress_reporter_unittest.py
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/unittest/gtest_progress_reporter_unittest.py
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:23:37.000Z
2020-11-04T07:23:37.000Z
# Copyright 2014 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 sys import unittest from telemetry.core import exceptions from telemetry.unittest import gtest_progress_reporter from telemetry.unittest import simpl...
30.484375
76
0.719375
3,433
0.879805
0
0
72
0.018452
0
0
825
0.21143
876a947ea1b19fe069f293dc368c754e8d9e9711
1,057
py
Python
demo_app_3pages_deep.py
MarijaAP/freezeyt
730a79a0e4bcee38e2d285ead4b9ccd695440516
[ "MIT" ]
null
null
null
demo_app_3pages_deep.py
MarijaAP/freezeyt
730a79a0e4bcee38e2d285ead4b9ccd695440516
[ "MIT" ]
null
null
null
demo_app_3pages_deep.py
MarijaAP/freezeyt
730a79a0e4bcee38e2d285ead4b9ccd695440516
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def index(): """Create the home page of the web app. Link to the second page. """ return """ <html> <head> <title>Hello world</title> </head> <body> Hello world! <br> ...
18.224138
64
0.470199
0
0
0
0
1,001
0.94702
0
0
864
0.817408
876a99e9cc17fc4370d8852ddd46f7f32c7207d3
6,932
py
Python
Main.py
Farhad-Shabani/TSETMC_Dashboard
8279bd9579f02447b9ab70dfe491d56713810f51
[ "MIT" ]
5
2021-04-10T17:04:48.000Z
2021-09-17T11:49:53.000Z
Main.py
Farhad-Shabani/TSETMC_Dashboard
8279bd9579f02447b9ab70dfe491d56713810f51
[ "MIT" ]
null
null
null
Main.py
Farhad-Shabani/TSETMC_Dashboard
8279bd9579f02447b9ab70dfe491d56713810f51
[ "MIT" ]
3
2021-07-04T16:52:10.000Z
2021-08-18T15:17:10.000Z
import re, time, requests from bs4 import BeautifulSoup from openpyxl import workbook from openpyxl import load_workbook from src.Scrape_Index import Scrape_Index from src.Database_Maker import Database_Maker, Sorted_Database def Export_Database(portfolio,Selected_Stocks): StartTime = time.time() In...
41.508982
140
0.493508
0
0
0
0
0
0
0
0
3,004
0.420669
876c1cba6f1447d0c88950330beca198b83d45a2
1,148
py
Python
ace/api/apikey.py
ace-ecosystem/ace2-core
a0de6b90f7437a98b1ee6ebcc693fa14f4b13c53
[ "Apache-2.0" ]
null
null
null
ace/api/apikey.py
ace-ecosystem/ace2-core
a0de6b90f7437a98b1ee6ebcc693fa14f4b13c53
[ "Apache-2.0" ]
11
2020-12-30T03:13:09.000Z
2021-05-02T14:09:32.000Z
ace/api/apikey.py
ace-ecosystem/ace2-core
a0de6b90f7437a98b1ee6ebcc693fa14f4b13c53
[ "Apache-2.0" ]
1
2022-03-16T20:44:16.000Z
2022-03-16T20:44:16.000Z
from dataclasses import dataclass, asdict from typing import Optional from ace.data_model import ApiKeyModel @dataclass class ApiKey: # the api key value api_key: str # the unique name of the api key name: str # optional description of the api key description: Optional[str] = None # is t...
25.511111
68
0.641986
1,024
0.891986
0
0
1,035
0.901568
0
0
200
0.174216
876c428595e50c778e460908d446ae09662058ca
528
py
Python
src/data/1135.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1135.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1135.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from sys import setrecursionlimit setrecursionlimit(10**7) N, Q = [int(x) for x in input().split()] to = [[] for _ in range(N)] for _ in range(N - 1): a, b = [int(x) - 1 for x in input().split()] to[a].append(b) to[b].append(a) depth = [-1] * N def dfs(v, p, d): depth[v] = d for u in to[v]: ...
18.857143
48
0.515152
0
0
0
0
0
0
0
0
12
0.022727
876d3c5c12899518f4cf30525e0379bbda345c36
35,248
py
Python
src/import_dbf/migrations/0001_initial.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/import_dbf/migrations/0001_initial.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/import_dbf/migrations/0001_initial.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.13 on 2019-11-03 14:05 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ] ...
47.06008
154
0.513958
35,091
0.995151
0
0
0
0
0
0
6,271
0.17784
876d942d72496d54026d0821b20f85c55eb1512f
1,966
py
Python
examples/ssh_to_appliance.py
grelleum/SteelConnect
5bf02814361adb3db78ad1dfdaf51dee35c01dd1
[ "MIT" ]
9
2018-03-23T13:52:16.000Z
2020-05-13T03:06:43.000Z
examples/ssh_to_appliance.py
grelleum/SteelConnect
5bf02814361adb3db78ad1dfdaf51dee35c01dd1
[ "MIT" ]
3
2018-05-31T12:45:03.000Z
2020-08-31T12:59:17.000Z
examples/ssh_to_appliance.py
grelleum/SteelConnect
5bf02814361adb3db78ad1dfdaf51dee35c01dd1
[ "MIT" ]
4
2018-11-21T14:02:04.000Z
2021-07-29T17:28:27.000Z
#!/usr/bin/env python3 # coding: utf-8 # ______ __ # / __/ /____ ___ / / # ____\ \/ __/ -_) -_) / __ _ # / _____/\__/\__/\__/_/_ ____/ /_(_)__ ___ # / /__/ _ \/ _ \/ _ \/ -_) __/ __/ / _ \/ _ \ # \___/\___/_//_/_//_/\__/\__/\__/_/\___/_//_/ # # SteelConnection # Simplify access t...
23.97561
70
0.615972
0
0
0
0
0
0
0
0
1,074
0.546287
8770580ce533e32ec2aa655344a49621da5aa45b
1,620
py
Python
habittest.py
Stephenjcl/GalaxyMapGeneration
8285405eff691f43ac548af4ba114d9801804bed
[ "MIT" ]
null
null
null
habittest.py
Stephenjcl/GalaxyMapGeneration
8285405eff691f43ac548af4ba114d9801804bed
[ "MIT" ]
null
null
null
habittest.py
Stephenjcl/GalaxyMapGeneration
8285405eff691f43ac548af4ba114d9801804bed
[ "MIT" ]
null
null
null
#Viability test from garnets import generate_stellar_system, random_star from enviroment import BreathabilityPhrase breathableair = False moon = False attempts = 0 # while breathableair is False or attempts <= 35000: # try: # stellar_system = generate_stellar_system(random_star()) # for i in range...
36
164
0.654938
0
0
0
0
0
0
0
0
1,267
0.782099
87718ba5182046e1eaa2f1525372eec9456c7f7d
625
py
Python
app/account/urls.py
mohit4/BucketCrab
7ff5f120e5a0e103f47c689c723702737c2df3da
[ "Apache-2.0" ]
null
null
null
app/account/urls.py
mohit4/BucketCrab
7ff5f120e5a0e103f47c689c723702737c2df3da
[ "Apache-2.0" ]
null
null
null
app/account/urls.py
mohit4/BucketCrab
7ff5f120e5a0e103f47c689c723702737c2df3da
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.views import LogoutView from django.urls import path from django.contrib.auth.views import LogoutView from .views import UserRegisterView, UserLoginView, ProfileDetailView, ProfileUpdateView app_name = 'account' urlpatterns = [ path('', UserLoginView.as_view(), name='login'), path('a...
41.666667
89
0.7408
0
0
0
0
0
0
0
0
149
0.2384
8772fcb6548267d8d0141e21abb8c45135824111
68
py
Python
premailer/__init__.py
locationlabs/premailer
85b0a65d1e30fa8b3c816a7d65e6efabe7d0a243
[ "BSD-3-Clause" ]
null
null
null
premailer/__init__.py
locationlabs/premailer
85b0a65d1e30fa8b3c816a7d65e6efabe7d0a243
[ "BSD-3-Clause" ]
null
null
null
premailer/__init__.py
locationlabs/premailer
85b0a65d1e30fa8b3c816a7d65e6efabe7d0a243
[ "BSD-3-Clause" ]
1
2021-09-08T09:52:55.000Z
2021-09-08T09:52:55.000Z
__version__ = '1.12.1-LL' __build__ = '' # set by the build server
22.666667
41
0.661765
0
0
0
0
0
0
0
0
38
0.558824
877483323b1e65dff5e273beb50d00ede8221e98
531
py
Python
bootstrap.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
1
2018-04-18T20:39:02.000Z
2018-04-18T20:39:02.000Z
bootstrap.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
null
null
null
bootstrap.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
null
null
null
""" Virtualenv bootstrap script, borrowed from: http://www.caktusgroup.com/blog/2010/04/22/basic-django-deployment-with-virtualenv-fabric-pip-and-rsync/ """ import os import subprocess if "VIRTUAL_ENV" not in os.environ: sys.stderr.write("$VIRTUAL_ENV not found.\n\n") parser.print_usage() sys.exit(-1) virt...
33.1875
104
0.709981
0
0
0
0
0
0
0
0
268
0.504708
87794818e80477062aaa5b45ac62822ed7360eae
10,145
py
Python
owllook/fetcher/cache.py
5665750/owllook
3bf0a3b44abde3fa7ef81375983fd2721574241a
[ "Apache-2.0" ]
1
2018-09-14T11:12:21.000Z
2018-09-14T11:12:21.000Z
owllook/fetcher/cache.py
5665750/owllook
3bf0a3b44abde3fa7ef81375983fd2721574241a
[ "Apache-2.0" ]
null
null
null
owllook/fetcher/cache.py
5665750/owllook
3bf0a3b44abde3fa7ef81375983fd2721574241a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Created by howie.hu. """ import re import aiohttp import async_timeout from bs4 import BeautifulSoup from aiocache.serializers import PickleSerializer,JsonSerializer from urllib.parse import urlparse, parse_qs, urljoin from owllook.database.mongodb import MotorBase from owllook.fetcher.de...
45.493274
166
0.530409
0
0
0
0
2,625
0.254681
9,341
0.906277
1,774
0.172116
5e3e80878441d234675aaeb1a994f2e6b44649b7
278
py
Python
asnets/experiments/actprop_2l_h_add_pe.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
21
2017-12-05T13:27:36.000Z
2021-11-16T20:32:33.000Z
asnets/experiments/actprop_2l_h_add_pe.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
2
2018-07-16T12:15:46.000Z
2020-10-31T00:02:49.000Z
asnets/experiments/actprop_2l_h_add_pe.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
7
2018-03-19T13:45:13.000Z
2022-03-24T07:52:20.000Z
"""A two-layer configuration for the action/proposition network w/ h-add teacher & probabilistic evaluation (hence "_pe" at end of name).""" # use defaults from actprop_2l from .actprop_2l_h_add import * # noqa F401 # stochastic evaluation! DET_EVAL = False EVAL_ROUNDS = 30
27.8
72
0.758993
0
0
0
0
0
0
0
0
205
0.73741
5e3eb530ea0a55916e76380b1a4246e65ea40c26
4,368
py
Python
tests/conftest.py
catalystneuro/HDF5Zarr
ac96afda37e079086f264dcc0d0230b7cf9d3397
[ "MIT" ]
7
2020-06-25T16:49:52.000Z
2022-03-28T21:17:34.000Z
tests/conftest.py
catalystneuro/HDF5Zarr
ac96afda37e079086f264dcc0d0230b7cf9d3397
[ "MIT" ]
16
2020-07-09T20:58:15.000Z
2021-10-04T13:30:39.000Z
tests/conftest.py
catalystneuro/HDF5Zarr
ac96afda37e079086f264dcc0d0230b7cf9d3397
[ "MIT" ]
3
2020-06-24T18:19:37.000Z
2020-11-12T19:04:59.000Z
import pytest import os from shutil import copy from test_hdf5zarr import HDF5ZarrBase def pytest_addoption(parser): parser.addoption( "--hdf5files", action="append", type=str, default=[], help="list of hdf5 files to test", ) parser.addoption( "--numfiles", ...
34.944
111
0.664606
0
0
322
0.073718
867
0.198489
0
0
1,044
0.239011
5e3f985537a9efba4ea48038ce1efeffe50b06d9
218
py
Python
ksj.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
ksj.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
ksj.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
a=list(input().split(',')) st,num=[],[] for i in a: s1,n=i.split(':') st.append(s1) num.append(n) print(st) print(num) for i in range(len(num)): for j in range(i): print(st[j])
16.769231
27
0.495413
0
0
0
0
0
0
0
0
6
0.027523
5e4091a3f85cb6be76f428d3575ec7a731ef06d0
599
py
Python
tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_a0b79725.py
NinelK/course-content
317b4cf153a89afbddbd194e7fbb15c91588b3c5
[ "CC-BY-4.0" ]
26
2020-07-01T20:38:44.000Z
2021-06-20T06:37:27.000Z
tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_a0b79725.py
Andy-Dufrein/course-content
977f4ddaaa4f33746672930ae01d5ea592dbbba0
[ "CC-BY-4.0" ]
3
2020-06-23T03:46:36.000Z
2020-07-07T05:26:01.000Z
tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_a0b79725.py
Andy-Dufrein/course-content
977f4ddaaa4f33746672930ae01d5ea592dbbba0
[ "CC-BY-4.0" ]
16
2020-07-06T06:48:02.000Z
2021-07-30T08:18:52.000Z
""" Discussion: Because we have a facilitatory synapses, as the input rate increases synaptic resources released per spike also increase. Therefore, we expect that the synaptic conductance will increase with input rate. However, total synaptic resources are finite. And they recover in a finite time. Therefore, at...
49.916667
87
0.799666
0
0
0
0
0
0
0
0
597
0.996661
5e41eafa7384a90d2c56bfa80b6e7cf49f5eed89
3,063
py
Python
Gathered CTF writeups/2018-09-01-tokyowesterns/crypto_mixed/MTRecover.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/2018-09-01-tokyowesterns/crypto_mixed/MTRecover.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/2018-09-01-tokyowesterns/crypto_mixed/MTRecover.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
import random class MT19937Recover: """Reverses the Mersenne Twister based on 624 observed outputs. The internal state of a Mersenne Twister can be recovered by observing 624 generated outputs of it. However, if those are not directly observed following a twist, another output is required to restore ...
29.451923
79
0.584721
2,593
0.846556
0
0
0
0
0
0
1,289
0.420829
5e4237ad4f0b1188b4fa0253c5bdb69a364cb5fe
5,134
py
Python
src/oci/ocvp/models/hcx_license_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ocvp/models/hcx_license_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ocvp/models/hcx_license_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.700637
245
0.65485
4,594
0.894819
0
0
4,624
0.900662
0
0
3,480
0.677834
5e424c562fb15f5458ab49e2921617b64a604404
804
py
Python
nlpaug/model/audio/normalization.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
3,121
2019-04-21T07:02:47.000Z
2022-03-31T22:17:36.000Z
nlpaug/model/audio/normalization.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
186
2019-05-31T18:18:13.000Z
2022-03-28T10:11:05.000Z
nlpaug/model/audio/normalization.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
371
2019-03-17T17:59:56.000Z
2022-03-31T01:45:15.000Z
import numpy as np from nlpaug.model.audio import Audio class Normalization(Audio): def manipulate(self, data, method, start_pos, end_pos): aug_data = data.copy() if method == 'minmax': new_data = self._min_max(aug_data[start_pos:end_pos]) elif method == 'max': new_data = self._max(aug_data[start_pos:en...
25.125
57
0.696517
744
0.925373
0
0
0
0
0
0
46
0.057214
5e4276489a16e221d1e19c999e484afe41484509
836
py
Python
most_valuable_features.py
littlepretty/NetLearner
767874c2161a668c10f970ab63337c48ae1fac25
[ "MIT" ]
22
2018-01-25T19:17:13.000Z
2022-03-24T17:22:02.000Z
most_valuable_features.py
JinLabIIT/NetLearner
767874c2161a668c10f970ab63337c48ae1fac25
[ "MIT" ]
4
2018-05-01T20:32:57.000Z
2020-11-17T12:51:21.000Z
most_valuable_features.py
JinLabIIT/NetLearner
767874c2161a668c10f970ab63337c48ae1fac25
[ "MIT" ]
7
2018-01-25T19:17:15.000Z
2021-07-16T11:52:33.000Z
from __future__ import print_function, division import numpy as np weights = np.transpose(np.load('w0.npy')) print(weights.shape) feature_names = ["" for i in range(125)] prev = 0 prev_name = '' for line in open('feature_names.txt'): if line.startswith('#'): continue words = line.split() index = ...
24.588235
66
0.624402
0
0
0
0
0
0
0
0
39
0.046651
5e43bc1d2c1ec7458254bf69c84dd1e4e095081a
11,570
py
Python
auscophub/geomutils.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
4
2020-01-25T02:01:49.000Z
2021-06-21T08:38:18.000Z
auscophub/geomutils.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
null
null
null
auscophub/geomutils.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
null
null
null
""" Some utility functions for handling the geometries given with Sentinel files. ESA have done a fairly minimal job with their footprint geometries. The routines in this file are mostly aimed at providing a bit more support beyond that, mostly for things like crossing the International Date Line. It is assumed tha...
37.687296
114
0.651426
0
0
0
0
0
0
0
0
5,505
0.475799
5e43ed9b4a92075c599548b4b2abcf77cf992e1a
780
py
Python
visualize.py
mac389/semantic-distance
0ae8223e64610de79fdc370c7e44e2cda051c190
[ "MIT" ]
2
2017-03-09T21:42:32.000Z
2018-07-13T02:04:15.000Z
visualize.py
mac389/semantic-distance
0ae8223e64610de79fdc370c7e44e2cda051c190
[ "MIT" ]
null
null
null
visualize.py
mac389/semantic-distance
0ae8223e64610de79fdc370c7e44e2cda051c190
[ "MIT" ]
2
2017-03-09T21:42:35.000Z
2018-07-13T02:04:17.000Z
import os, json, matplotlib matplotlib.use('Agg') import seaborn as sns import matplotlib.pyplot as plt import numpy as np import pandas as pd READ = 'rb' directory = json.load(open('directory.json',READ)) filename = os.path.join(directory['data-prefix'],'test-similarity-matrix.npy') data = np.load(filename).a...
28.888889
80
0.732051
0
0
0
0
0
0
0
0
170
0.217949
5e46f80a0abf6d46a670b3af094045db0fa09d23
188
py
Python
packages/mono-basic.py
bratsche/bockbuild
04d583550aa8e067f84dcc081be61fd1a78d71e3
[ "MIT" ]
null
null
null
packages/mono-basic.py
bratsche/bockbuild
04d583550aa8e067f84dcc081be61fd1a78d71e3
[ "MIT" ]
null
null
null
packages/mono-basic.py
bratsche/bockbuild
04d583550aa8e067f84dcc081be61fd1a78d71e3
[ "MIT" ]
null
null
null
GitHubTarballPackage ('mono', 'mono-basic', '3.0', 'a74642af7f72d1012c87d82d7a12ac04a17858d5', configure = './configure --prefix="%{prefix}"', override_properties = { 'make': 'make' } )
37.6
94
0.702128
0
0
0
0
0
0
0
0
111
0.590426
5e4786a997c2fac7b6fbffb083727c67cb5b124a
628
py
Python
idadesRenovacao/main.py
felipefreitassilva/Smaller-Projects
62b28cad7bcfe71ca2e98151d650bef1bb91c8ef
[ "MIT" ]
null
null
null
idadesRenovacao/main.py
felipefreitassilva/Smaller-Projects
62b28cad7bcfe71ca2e98151d650bef1bb91c8ef
[ "MIT" ]
null
null
null
idadesRenovacao/main.py
felipefreitassilva/Smaller-Projects
62b28cad7bcfe71ca2e98151d650bef1bb91c8ef
[ "MIT" ]
null
null
null
import sys def main(): #idade para abilitação ipa = int(input("Quantos anos você tinha quando se inscreveu para tirar a habilitação? ")) if ipa < 18: print() print("Opa, tem algo errado! Você precisa de pelo menos 18 anos para tirar a carteira") sys.exit() #datas de renovaçao ...
22.428571
95
0.538217
0
0
0
0
0
0
0
0
260
0.408805
5e47a8df66bb852c1c0f2a85665d80d87b1c508c
497
py
Python
volume/src/backend/db_create.py
sunokpa/st-kilda-pier
45d838a9f1dc1132bab858c58e2716028ce9abe5
[ "Apache-2.0" ]
1
2018-08-03T08:17:25.000Z
2018-08-03T08:17:25.000Z
volume/src/backend/db_create.py
sunokpa/st-kilda-pier
45d838a9f1dc1132bab858c58e2716028ce9abe5
[ "Apache-2.0" ]
null
null
null
volume/src/backend/db_create.py
sunokpa/st-kilda-pier
45d838a9f1dc1132bab858c58e2716028ce9abe5
[ "Apache-2.0" ]
null
null
null
from run import db import sqlalchemy import os, uuid, base62 DB_HOST = "mysql-skp" DB_USER = "root" DB_PW = os.environ['MYSQL_ROOT_PASSWORD'] DB_NAME = "flask_skp" DB_ENGINE_URI = "mysql://{}:{}@{}".format(DB_USER, DB_PW, DB_HOST) engine = sqlalchemy.create_engine(DB_ENGINE_URI) try: engine.execute("DROP DATABA...
24.85
84
0.716298
0
0
0
0
0
0
0
0
147
0.295775
5e485cebfd327e1169b516d34ed55b666cfea897
2,007
py
Python
orcid_oauth/tests/views/test_user_complete_account_view.py
betagouv/euphrosyne
a67857a8716b5060cd9a2c6fa5f3d45c3fff435a
[ "MIT" ]
1
2022-02-21T19:46:20.000Z
2022-02-21T19:46:20.000Z
orcid_oauth/tests/views/test_user_complete_account_view.py
lajarre/euphrosyne
14050097774b088e7345f9488ce74b205f7bd338
[ "MIT" ]
37
2021-10-18T18:33:26.000Z
2022-03-31T12:38:38.000Z
orcid_oauth/tests/views/test_user_complete_account_view.py
lajarre/euphrosyne
14050097774b088e7345f9488ce74b205f7bd338
[ "MIT" ]
2
2022-03-03T15:41:30.000Z
2022-03-07T14:20:26.000Z
from http import HTTPStatus from unittest.mock import patch from django.test.testcases import TestCase from django.urls import reverse from euphro_auth.models import User from ...views import UserCompleteAccountView class PartialMock: kwargs = { "user": User( id=1, email="test@t...
28.671429
86
0.54858
1,782
0.887892
0
0
0
0
0
0
514
0.256104
5e48a78ac36086c3921b0385167141ef6a64eaa7
5,255
py
Python
src/conductor/task_types/base.py
geoffxy/conductor
d33c22031674f9f9e09ac34c0083f26c2daa24e5
[ "Apache-2.0" ]
null
null
null
src/conductor/task_types/base.py
geoffxy/conductor
d33c22031674f9f9e09ac34c0083f26c2daa24e5
[ "Apache-2.0" ]
19
2021-03-15T15:31:28.000Z
2022-03-11T15:33:17.000Z
src/conductor/task_types/base.py
geoffxy/conductor
d33c22031674f9f9e09ac34c0083f26c2daa24e5
[ "Apache-2.0" ]
null
null
null
import pathlib from typing import Callable, Dict, Sequence, Optional import conductor.context as c # pylint: disable=unused-import import conductor.filename as f from conductor.task_identifier import TaskIdentifier from conductor.utils.output_handler import OutputHandler class TaskType: def __init__( se...
32.438272
88
0.627022
4,975
0.946717
0
0
848
0.16137
0
0
1,766
0.336061
5e4b8b3b427389c0e078fc9fdbbb5a626515d43d
585
py
Python
blog/migrations/0008_auto_20190107_1755.py
dkowsikpai/librolet
7148670655157ca5f1ad6853039c9ec00e37adef
[ "MIT" ]
null
null
null
blog/migrations/0008_auto_20190107_1755.py
dkowsikpai/librolet
7148670655157ca5f1ad6853039c9ec00e37adef
[ "MIT" ]
null
null
null
blog/migrations/0008_auto_20190107_1755.py
dkowsikpai/librolet
7148670655157ca5f1ad6853039c9ec00e37adef
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-01-07 12:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20190107_1750'), ] operations = [ migrations.RemoveField( model_name='postpick', name='user', ...
22.5
82
0.558974
492
0.841026
0
0
0
0
0
0
141
0.241026
5e4b974cbcc50aa0a16e8a0749457faf0c6c675d
2,624
py
Python
lintcode/0521-remove-duplicate-numbers-in-array.py
runzezhang/Data-Structure-and-Algorithm-Notebook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
1
2020-07-24T03:37:05.000Z
2020-07-24T03:37:05.000Z
lintcode/0521-remove-duplicate-numbers-in-array.py
runzezhang/Code-NoteBook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
null
null
null
lintcode/0521-remove-duplicate-numbers-in-array.py
runzezhang/Code-NoteBook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
null
null
null
# Description # 中文 # English # Given an array of integers, remove the duplicate numbers in it. # You should: # Do it in place in the array. # Move the unique numbers to the front of the array. # Return the total number of the unique numbers. # You don't need to keep the original order of the integers. # Have you met...
24.754717
112
0.58689
1,459
0.496596
0
0
0
0
0
0
1,753
0.596664
5e4d4c75d1c04f3087dc7de35d8f22acd91277a6
16,962
py
Python
GCE/data_generation.py
FloList/GCE_NN
3f6dd059fd366164a6fcda07643a9dae970a6aba
[ "MIT" ]
6
2020-11-24T01:18:01.000Z
2021-12-20T18:34:28.000Z
GCE/data_generation.py
FloList/GCE_NN
3f6dd059fd366164a6fcda07643a9dae970a6aba
[ "MIT" ]
null
null
null
GCE/data_generation.py
FloList/GCE_NN
3f6dd059fd366164a6fcda07643a9dae970a6aba
[ "MIT" ]
null
null
null
""" Generate and save maps for each template. """ import random import numpy as np from scipy import stats import healpy as hp import matplotlib.pyplot as plt import os import pickle from .data_utils import get_fermi_pdf_sampler, masked_to_full from .utils import multipage, auto_garbage_collect import ray import time i...
49.741935
120
0.578116
0
0
0
0
2,040
0.120269
0
0
5,476
0.322839
5e4eb52ef7b6c379dfa8984ef60db75a5c9a0675
305
py
Python
test/test_torch.py
li012589/tf_gpu_manager
ed42d74f40cdc4b2463f3b7535cfe0f43bea85ae
[ "MIT" ]
1
2021-07-15T03:13:10.000Z
2021-07-15T03:13:10.000Z
test/test_torch.py
li012589/tf_gpu_manager
ed42d74f40cdc4b2463f3b7535cfe0f43bea85ae
[ "MIT" ]
null
null
null
test/test_torch.py
li012589/tf_gpu_manager
ed42d74f40cdc4b2463f3b7535cfe0f43bea85ae
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) import torch from manager_torch import torchGPUmanager def test_tf_auto_choice(): t = torchGPUmanager() with t.choice(): x = torch.Tensor(8, 42) x = x.cuda() print(x) if __name__ == "__main__": test_tf_auto_choice()
17.941176
41
0.655738
0
0
0
0
0
0
0
0
10
0.032787
5e50bf0d1bf0fba6774e20e98e7e1b76cebe7261
299
py
Python
100_days_challenge/days_1-5/day2_practice_bmi_calculator.py
AJP-432/python_100days_course
36546da5f25d35b02462f33d0ef1e80aedbc5a31
[ "MIT" ]
null
null
null
100_days_challenge/days_1-5/day2_practice_bmi_calculator.py
AJP-432/python_100days_course
36546da5f25d35b02462f33d0ef1e80aedbc5a31
[ "MIT" ]
null
null
null
100_days_challenge/days_1-5/day2_practice_bmi_calculator.py
AJP-432/python_100days_course
36546da5f25d35b02462f33d0ef1e80aedbc5a31
[ "MIT" ]
null
null
null
# Asking for height and weight input height = float(input("What is your height in meters: ")) weight = float(input("What is your weight in kilograms: ")) # Calculating BMI (formula is weight/height^2) bmi = str(round(weight/(height ** 2), 2)) # Printing BMI print("Your BMI is " + bmi)
27.181818
60
0.672241
0
0
0
0
0
0
0
0
182
0.608696
5e5108f4c55483ab76fee5f283b0faab4f8f05ad
11,068
py
Python
slack-to-lake/function_ingest/main.py
data-learning-guild/slack-data-pipeline
fad9639370f6524f9891c9bf8c201df52700fd87
[ "Apache-2.0" ]
null
null
null
slack-to-lake/function_ingest/main.py
data-learning-guild/slack-data-pipeline
fad9639370f6524f9891c9bf8c201df52700fd87
[ "Apache-2.0" ]
null
null
null
slack-to-lake/function_ingest/main.py
data-learning-guild/slack-data-pipeline
fad9639370f6524f9891c9bf8c201df52700fd87
[ "Apache-2.0" ]
null
null
null
import datetime import io import json import jsonlines import logging import os import pytz import shutil import sys import tempfile from flask import Request from google.cloud import exceptions from google.cloud import storage from google.cloud import pubsub_v1 from google.api_core.exceptions import AlreadyExists from...
36.649007
131
0.641218
0
0
0
0
0
0
0
0
3,517
0.310689
5e5191a2a9158007b076b13f9d3b81913eb8cd64
1,400
py
Python
posthog/settings/overrides.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/settings/overrides.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/settings/overrides.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
# Imported before anything else to overwrite env vars! import os import sys """ There are several options: 1) running in pycharm second argument is "test" 2) running pytest at the CLI first argument is the path to pytest and ends pytest 3) running pytest using the script at /bin/tests first ar...
35.897436
113
0.725
0
0
0
0
0
0
0
0
1,122
0.801429
5e51a18b38b505d030b71b633915de41ef88b7b3
2,295
py
Python
BleVibrationDevice.py
Suitceyes-Project-Code/Vibration-Pattern-Player
44d8bac61eed0ee7712eb0299d0d7029f688fe24
[ "MIT" ]
null
null
null
BleVibrationDevice.py
Suitceyes-Project-Code/Vibration-Pattern-Player
44d8bac61eed0ee7712eb0299d0d7029f688fe24
[ "MIT" ]
null
null
null
BleVibrationDevice.py
Suitceyes-Project-Code/Vibration-Pattern-Player
44d8bac61eed0ee7712eb0299d0d7029f688fe24
[ "MIT" ]
1
2021-10-04T14:26:49.000Z
2021-10-04T14:26:49.000Z
from bluepy.btle import UUID, Peripheral from VestDeviceBase import VestDevice class BleVestDevice(VestDevice): def __init__(self, deviceAddr): try: self._peripheral = Peripheral(deviceAddr) serviceUUID = UUID("713d0000-503e-4c75-ba94-3148f18d941e") characteristicUUID = ...
35.859375
137
0.576035
2,215
0.965142
0
0
0
0
0
0
529
0.230501
5e51afece372e488dfa028f615b0d339a5abdfee
448
py
Python
src/maintenance/pushover.py
dragonee/maintenance
2e922eecbf1fc0f9b9350595739e4176088612b6
[ "MIT" ]
null
null
null
src/maintenance/pushover.py
dragonee/maintenance
2e922eecbf1fc0f9b9350595739e4176088612b6
[ "MIT" ]
15
2020-03-30T21:50:45.000Z
2020-04-13T16:16:46.000Z
src/maintenance/pushover.py
dragonee/maintenance
2e922eecbf1fc0f9b9350595739e4176088612b6
[ "MIT" ]
null
null
null
import requests from .config.pushover import PushoverConfigFile def notify(message, title=None, priority=None): c = PushoverConfigFile() payload = { 'user': c.user, 'token': c.token, 'message': message, } if title: payload['title'] = title if priority: p...
18.666667
51
0.591518
0
0
0
0
0
0
0
0
81
0.180804
5e51e805cf824cf1b86e0fa1bb98ab1249123651
10,667
py
Python
app.py
zalando-incubator/github-user-team-sync
3d62889aeb71224a01b9b5cd7206723c5a9fce7b
[ "Apache-2.0" ]
5
2017-09-22T10:19:50.000Z
2021-07-09T23:43:21.000Z
app.py
zalando-incubator/github-user-team-sync
3d62889aeb71224a01b9b5cd7206723c5a9fce7b
[ "Apache-2.0" ]
2
2017-09-21T19:16:49.000Z
2018-05-15T20:14:48.000Z
app.py
zalando-incubator/github-user-team-sync
3d62889aeb71224a01b9b5cd7206723c5a9fce7b
[ "Apache-2.0" ]
1
2021-07-09T23:43:24.000Z
2021-07-09T23:43:24.000Z
#!/usr/bin/env python3 import collections import itertools import json import logging import os import requests import time import zign.api from unittest.mock import MagicMock ALL_ORGANIZATION_MEMBERS_TEAM = 'All Organization Members' github_base_url = "https://api.github.com/" logger = logging.getLogger('app') s...
37.69258
166
0.628949
0
0
917
0.085966
0
0
0
0
1,872
0.175495
5e52602f9029d86b54653b2b0d08d501fe9bf395
9,964
py
Python
corehq/ex-submodules/casexml/apps/case/xform.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
null
null
null
corehq/ex-submodules/casexml/apps/case/xform.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
null
null
null
corehq/ex-submodules/casexml/apps/case/xform.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple from itertools import groupby import itertools from django.db.models import Q from casexml.apps.case.const import UNOWNED_EXTENSION_OWNER_ID, CASE_INDEX_EXTENSION from casexml.apps.case.signals import cases_received from casexml.apps.case.util import validate_phone_datetime, prune_pr...
35.459075
107
0.659173
272
0.027298
1,416
0.142112
0
0
0
0
1,808
0.181453
5e537b9860dfad50f4d8171a674eee0b9fcad51a
1,715
py
Python
src/adverts/migrations/0002_auto_20150809_2147.py
alekseyr/pyjobs
9ef6dd8edaba7eb568fcc7d7ee6723ac9c5eb0ff
[ "MIT" ]
1
2015-11-21T19:21:23.000Z
2015-11-21T19:21:23.000Z
src/adverts/migrations/0002_auto_20150809_2147.py
pyshop/pyjobs
9ef6dd8edaba7eb568fcc7d7ee6723ac9c5eb0ff
[ "MIT" ]
4
2015-08-15T19:17:16.000Z
2016-03-09T11:46:56.000Z
src/adverts/migrations/0002_auto_20150809_2147.py
pyshop/pyjobs
9ef6dd8edaba7eb568fcc7d7ee6723ac9c5eb0ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('adverts', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name=...
34.3
140
0.601749
1,739
0.924508
0
0
0
0
0
0
563
0.299309
5e53e4790d5e3d2607bf9ed89a38c5fb7cca5a0c
1,999
py
Python
src/data_generators/pricing_generator.py
pasin30055/planning-evaluation-framework
ba5fc3b553fee0b4f5beb50076ecaa7b634dac23
[ "Apache-2.0" ]
null
null
null
src/data_generators/pricing_generator.py
pasin30055/planning-evaluation-framework
ba5fc3b553fee0b4f5beb50076ecaa7b634dac23
[ "Apache-2.0" ]
null
null
null
src/data_generators/pricing_generator.py
pasin30055/planning-evaluation-framework
ba5fc3b553fee0b4f5beb50076ecaa7b634dac23
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Private Cardinality Estimation Framework Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
39.196078
81
0.711356
1,266
0.633317
0
0
0
0
0
0
1,759
0.87994
5e5718c5bb0be8a5d41426bf028865f26babcb55
1,780
py
Python
flow_py_sdk/templates.py
peeksocial/flow-py-sdk
60b8e1f09ad4c28f8d78bebbe6c1480d300b1dc8
[ "MIT" ]
null
null
null
flow_py_sdk/templates.py
peeksocial/flow-py-sdk
60b8e1f09ad4c28f8d78bebbe6c1480d300b1dc8
[ "MIT" ]
null
null
null
flow_py_sdk/templates.py
peeksocial/flow-py-sdk
60b8e1f09ad4c28f8d78bebbe6c1480d300b1dc8
[ "MIT" ]
null
null
null
from typing import Annotated import flow_py_sdk.cadence as cadence from flow_py_sdk.signer import AccountKey from flow_py_sdk.tx import Tx, ProposalKey def create_account_template( *, keys: list[AccountKey], reference_block_id: bytes = None, payer: cadence.Address = None, proposal_key: ProposalKe...
30.689655
102
0.532022
0
0
0
0
0
0
0
0
606
0.340449
5e58113c44f1af95b9f3e79dac6ca323cceed861
6,800
py
Python
base_python/cogment_verse/run/run_sample_producer_session.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
23
2021-10-01T01:33:15.000Z
2022-03-10T18:18:50.000Z
base_python/cogment_verse/run/run_sample_producer_session.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
35
2021-11-06T04:37:07.000Z
2022-03-18T18:05:28.000Z
base_python/cogment_verse/run/run_sample_producer_session.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
4
2021-12-14T15:24:50.000Z
2022-01-17T11:06:34.000Z
# Copyright 2021 AI Redefined Inc. <dev+cogment@ai-r.com> # # 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...
35.051546
117
0.660441
6,125
0.900735
478
0.070294
0
0
1,577
0.231912
1,222
0.179706
5e581b3bc442bf985032c1a6311fd1a8c9e46d12
1,125
py
Python
tests/unit/scalar/test_datetime.py
alexchamberlain/tartiflette
6904b0f47770c348553e907be5f5bdb0929fe149
[ "MIT" ]
null
null
null
tests/unit/scalar/test_datetime.py
alexchamberlain/tartiflette
6904b0f47770c348553e907be5f5bdb0929fe149
[ "MIT" ]
null
null
null
tests/unit/scalar/test_datetime.py
alexchamberlain/tartiflette
6904b0f47770c348553e907be5f5bdb0929fe149
[ "MIT" ]
null
null
null
import datetime import pytest @pytest.mark.parametrize( "val,expected", [ (datetime.datetime(1986, 12, 24, 15, 0, 4), "1986-12-24T15:00:04"), (None, AttributeError), ("A", AttributeError), ], ) def test_scalar_datetime_coerce_output(val, expected): from tartiflette.scalar.buil...
28.125
75
0.663111
0
0
0
0
1,088
0.967111
0
0
78
0.069333
5e5b885b8327be4c56993c7c455ab03ceefa4ca2
1,202
py
Python
mymail.py
metaperl/freegold-focus
49cf86be57c76b265f711e337f85d8ee2b156301
[ "MIT" ]
null
null
null
mymail.py
metaperl/freegold-focus
49cf86be57c76b265f711e337f85d8ee2b156301
[ "MIT" ]
null
null
null
mymail.py
metaperl/freegold-focus
49cf86be57c76b265f711e337f85d8ee2b156301
[ "MIT" ]
null
null
null
import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def send(text, html, email, name, cc): import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText me = "ElDorado@FreeGold.Biz" you = email COMMASPACE =...
28.619048
80
0.683028
0
0
0
0
0
0
0
0
540
0.449251
5e5cfeb015c77e2308db32ee9bf5063eeee0afb3
4,484
py
Python
keras_frcnn/pascal_voc_parser.py
touchylk/fgcnn
db0a2156d21480e37aa5b3b74ca2e71bf2a2d50a
[ "Apache-2.0" ]
null
null
null
keras_frcnn/pascal_voc_parser.py
touchylk/fgcnn
db0a2156d21480e37aa5b3b74ca2e71bf2a2d50a
[ "Apache-2.0" ]
null
null
null
keras_frcnn/pascal_voc_parser.py
touchylk/fgcnn
db0a2156d21480e37aa5b3b74ca2e71bf2a2d50a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import cv2 import xml.etree.ElementTree as ET import config import numpy as np cfg = config.Config() def get_data(input_path): all_imgs = [] classes_count = {} class_mapping = {} bird_classes_count ={} bird_class_mapping = {} visualise = False data_path = '/media/e813/E/dat...
30.712329
128
0.665031
0
0
0
0
0
0
0
0
1,323
0.29141
5e5dc0bccba9bfb6b687c696f0803ac8924850d5
3,342
py
Python
constants.py
granthitson/8ballbot
cc0778b6ce5857b8b39203d53c5e792297ab126f
[ "MIT" ]
1
2019-05-13T00:15:41.000Z
2019-05-13T00:15:41.000Z
constants.py
granthitson/AteBallPool
cc0778b6ce5857b8b39203d53c5e792297ab126f
[ "MIT" ]
null
null
null
constants.py
granthitson/AteBallPool
cc0778b6ce5857b8b39203d53c5e792297ab126f
[ "MIT" ]
null
null
null
# IMAGES # # UI NAVIGATION # img_addFriend = "add_friend.png" img_allow = "allow.png" img_allowFlash = "enableflash_0.png" img_allowFlash1 = "enableflash_1.png" img_allowFlash2 = "enableflash_2.png" img_alreadyStarted = "alreadystarted.png" img_alreadyStarted1 = "alreadystarted1.png" img_backButton = "back_button.png...
29.575221
56
0.781269
0
0
0
0
0
0
0
0
1,628
0.487133
5e5ff7d9f69e16d5c8e955d1ac93518ac90e2cc4
26
py
Python
code/pyto/analysis/test/all_catalogs/catalog_3.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyto/analysis/test/all_catalogs/catalog_3.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyto/analysis/test/all_catalogs/catalog_3.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
../catalogs_a/catalog_3.py
26
26
0.807692
0
0
0
0
0
0
0
0
0
0
5e5ffe2a9f4736427871c3d92473b21c233a6146
2,273
py
Python
tests/contracts/KT1Ki9hCRhWERgvVvXvVnFR3ruwM9sR5eLAN/test_michelson_coding_KT1Ki9.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2021-05-20T16:52:08.000Z
2021-05-20T16:52:08.000Z
tests/contracts/KT1Ki9hCRhWERgvVvXvVnFR3ruwM9sR5eLAN/test_michelson_coding_KT1Ki9.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/contracts/KT1Ki9hCRhWERgvVvXvVnFR3ruwM9sR5eLAN/test_michelson_coding_KT1Ki9.py
tqtezos/pytezos
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.micheline import michelson_to_micheline from pytezos.michelson.formatter import micheline_to_michelson class MichelsonCodingTestKT1Ki9(TestCase): def setUp(self): self.maxDiff = None def test_michelson_parse_code_KT...
42.092593
87
0.736472
2,086
0.91773
0
0
0
0
0
0
657
0.289045
5e605a1900b964942423d9a5492196bf59a46197
12,671
py
Python
data_generation/chatbots/restaurant/state_ordering.py
ivanmkc/helpdesk-assistant
0697d7e2d0dca77dc4c8043ec61e62350dbd4a8a
[ "Apache-2.0" ]
null
null
null
data_generation/chatbots/restaurant/state_ordering.py
ivanmkc/helpdesk-assistant
0697d7e2d0dca77dc4c8043ec61e62350dbd4a8a
[ "Apache-2.0" ]
null
null
null
data_generation/chatbots/restaurant/state_ordering.py
ivanmkc/helpdesk-assistant
0697d7e2d0dca77dc4c8043ec61e62350dbd4a8a
[ "Apache-2.0" ]
null
null
null
from typing import List from rasa.shared.nlu.state_machine.conditions import ( IntentCondition, OnEntryCondition, SlotEqualsCondition, ) from rasa.shared.nlu.state_machine.state_machine_models import ( BooleanSlot, IntentWithExamples, TextSlot, Utterance, ActionName, ) from rasa.shared....
29.128736
148
0.518507
0
0
0
0
0
0
0
0
4,602
0.363192
5e60ae8ac33efc8696666b093c802211b78a31d4
203
py
Python
day10/part1.py
mtn/advent15
b23bcf5761363596336d5361218c52db0b078793
[ "MIT" ]
null
null
null
day10/part1.py
mtn/advent15
b23bcf5761363596336d5361218c52db0b078793
[ "MIT" ]
null
null
null
day10/part1.py
mtn/advent15
b23bcf5761363596336d5361218c52db0b078793
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from itertools import groupby inp = "1113222113" for i in range(40): next_str = "".join(str(len(list(v))) + k for k, v in groupby(inp)) inp = next_str print(len(inp))
15.615385
70
0.64532
0
0
0
0
0
0
0
0
36
0.17734
5e6129d443af9d077d5346eb960b51db01b863f1
1,947
py
Python
nuvolaris/main.py
giusdp/nuvolaris-operator
4243c00e287754436b8adcf81935e67e52e27afc
[ "Apache-2.0" ]
null
null
null
nuvolaris/main.py
giusdp/nuvolaris-operator
4243c00e287754436b8adcf81935e67e52e27afc
[ "Apache-2.0" ]
null
null
null
nuvolaris/main.py
giusdp/nuvolaris-operator
4243c00e287754436b8adcf81935e67e52e27afc
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.176471
86
0.732409
0
0
0
0
948
0.486903
0
0
1,223
0.628146
5e62135edf27d602b721a65c5cc50ec1d021b600
285
py
Python
didcomm/common/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
didcomm/common/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
didcomm/common/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
from typing import Iterable, Callable, Optional, Any # TODO check the same helper in standard lib # TODO test def search_first_in_iterable( it: Iterable, cond: Callable, not_found_default=None ) -> Optional[Any]: return next((el for el in it if cond(el)), not_found_default)
28.5
65
0.747368
0
0
0
0
0
0
0
0
55
0.192982
5e628844bf5aecb08d12d6a5e607b840f94ea6a1
694
py
Python
derbot/names/signals.py
bdunnette/derbot
c860c3e95ee830a5b9202d8343ab64ece2e995e5
[ "MIT" ]
null
null
null
derbot/names/signals.py
bdunnette/derbot
c860c3e95ee830a5b9202d8343ab64ece2e995e5
[ "MIT" ]
2
2022-02-08T00:29:20.000Z
2022-02-08T14:01:07.000Z
derbot/names/signals.py
bdunnette/derbot
c860c3e95ee830a5b9202d8343ab64ece2e995e5
[ "MIT" ]
null
null
null
from django.db.models.signals import pre_save from django.dispatch import receiver import random import fractions import humanize # from derbot.names.tasks import generate_number from derbot.names.models import DerbyName @receiver(pre_save, sender=DerbyName) def generate_number(sender, instance, **kwargs): if in...
33.047619
80
0.708934
0
0
0
0
471
0.676724
0
0
59
0.08477
5e63e77aa89c53de02787efe6617b814f500375d
11,812
py
Python
letalisce_splet.py
kulan89/PyJet
08799cea227ecf7b2ea0491df93d09dd1ccc7069
[ "MIT" ]
null
null
null
letalisce_splet.py
kulan89/PyJet
08799cea227ecf7b2ea0491df93d09dd1ccc7069
[ "MIT" ]
4
2017-12-08T00:10:51.000Z
2018-02-27T12:46:13.000Z
letalisce_splet.py
kulan89/PyJet
08799cea227ecf7b2ea0491df93d09dd1ccc7069
[ "MIT" ]
null
null
null
import modeli as modeli from bottle import * from datetime import datetime from collections import defaultdict import hashlib glavniMenuAktivniGumb="" glavniMenuTemplate = '''<li><a {gumbRezervacija} href="/izbiraDestinacije" >Rezervacija leta</a></li> <li><a {gumbReferencna} href="/referencna">Informacije o r...
41.300699
136
0.62682
0
0
0
0
9,470
0.80071
0
0
1,798
0.152025
5e65fac983e25a40daccdf3d1d633139612934bf
2,544
py
Python
daml_dit_if/main/common.py
digital-asset/daml-dit-if
521d0cd003e6b41b32067709194c957461335018
[ "Apache-2.0" ]
1
2021-01-07T02:21:00.000Z
2021-01-07T02:21:00.000Z
daml_dit_if/main/common.py
digital-asset/daml-dit-if
521d0cd003e6b41b32067709194c957461335018
[ "Apache-2.0" ]
3
2020-11-18T12:30:18.000Z
2021-08-23T19:48:01.000Z
daml_dit_if/main/common.py
digital-asset/daml-dit-if
521d0cd003e6b41b32067709194c957461335018
[ "Apache-2.0" ]
null
null
null
import sys import collections from asyncio import wait_for from dataclasses import dataclass from datetime import datetime from functools import wraps from typing import Optional from dazl import AIOPartyClient from ..api import IntegrationResponse from .log import LOG @dataclass(frozen=True) class IntegrationQu...
24.228571
88
0.653695
319
0.125393
0
0
1,486
0.584119
1,087
0.42728
314
0.123428
5e6b2eaf03f8f827981129c1c8162857a93cd0d2
896
py
Python
setup.py
Kleinrotti/py-senertec
b5cbe4e50c72c14e507bb92477088205fb2c786f
[ "MIT" ]
null
null
null
setup.py
Kleinrotti/py-senertec
b5cbe4e50c72c14e507bb92477088205fb2c786f
[ "MIT" ]
null
null
null
setup.py
Kleinrotti/py-senertec
b5cbe4e50c72c14e507bb92477088205fb2c786f
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="py-senertec", version="0.2.2", author="Kleinrotti", author_email="", package_dir={"": "src"}, packages=setuptools.find_packages("src"), description="Senertec energy system gen2 int...
28.903226
74
0.627232
0
0
0
0
0
0
0
0
404
0.450893
5e6b60bf7c40ec721096fa550cb1fcb5e3e145c6
1,084
py
Python
sunpy-example.py
wtbarnes/rice-hpc-examples
5559c24842fe9ca7d569514a53f287c645157f3c
[ "MIT" ]
null
null
null
sunpy-example.py
wtbarnes/rice-hpc-examples
5559c24842fe9ca7d569514a53f287c645157f3c
[ "MIT" ]
1
2019-02-12T06:29:08.000Z
2019-02-12T06:29:08.000Z
sunpy-example.py
wtbarnes/rice-hpc-examples
5559c24842fe9ca7d569514a53f287c645157f3c
[ "MIT" ]
null
null
null
""" Some simple coordinate transformations with SunPy Adapted from https://github.com/sunpy/sunpy/blob/master/examples/units_and_coordinates/AltAz_Coordinate_transform.py """ from astropy.coordinates import EarthLocation, AltAz, SkyCoord from astropy.time import Time from sunpy.coordinates import frames, get_sunearth_d...
27.1
116
0.744465
0
0
0
0
0
0
0
0
270
0.249077
5e6d782f97c85edb12dff2726544e15db5a78e2a
2,136
py
Python
src/types/program.py
embiem/chia-blockchain
301801993ca3d4cc5bf71952af29effae507b2ea
[ "Apache-2.0" ]
2
2019-12-06T01:03:24.000Z
2020-09-27T00:46:20.000Z
src/types/program.py
yllierop/chia-blockchain
301801993ca3d4cc5bf71952af29effae507b2ea
[ "Apache-2.0" ]
null
null
null
src/types/program.py
yllierop/chia-blockchain
301801993ca3d4cc5bf71952af29effae507b2ea
[ "Apache-2.0" ]
null
null
null
import io from typing import Any, List, Set from src.types.sized_bytes import bytes32 from src.util.clvm import run_program, sexp_from_stream, sexp_to_stream from clvm import SExp from src.util.hash import std_hash from clvm_tools.curry import curry class Program(SExp): # type: ignore # noqa """ A thin wra...
28.48
80
0.595974
1,881
0.880618
0
0
215
0.100655
0
0
396
0.185393
5e6d7885c0f05a895156c536633fe964a95cb1b9
3,813
py
Python
src/extract_image_features.py
Bashkeel/petfinderadoption
259b731d46ebcbe1d62b7ad069d3dd65e2b0a76f
[ "MIT" ]
null
null
null
src/extract_image_features.py
Bashkeel/petfinderadoption
259b731d46ebcbe1d62b7ad069d3dd65e2b0a76f
[ "MIT" ]
null
null
null
src/extract_image_features.py
Bashkeel/petfinderadoption
259b731d46ebcbe1d62b7ad069d3dd65e2b0a76f
[ "MIT" ]
null
null
null
import cv2 import pandas as pd import numpy as np import os from pathlib import Path from keras.applications.densenet import preprocess_input, DenseNet121 from keras.models import Model from keras.layers import GlobalAveragePooling2D, Input, Lambda, AveragePooling1D import keras.backend as K def resize_to_square(im): ...
34.663636
101
0.64385
0
0
0
0
0
0
0
0
453
0.118804
5e6e9f7fa3a6821198e76f443afb1673950bce11
2,250
py
Python
scripts/checkPatterns.py
bbloomf/hyphen-la
68709572d6a786b95fc4c570460129945dd9e087
[ "MIT" ]
18
2016-03-19T21:08:13.000Z
2021-01-07T08:44:39.000Z
scripts/checkPatterns.py
bbloomf/hyphen-la
68709572d6a786b95fc4c570460129945dd9e087
[ "MIT" ]
98
2016-03-18T16:05:55.000Z
2020-12-05T17:34:07.000Z
scripts/checkPatterns.py
bbloomf/hyphen-la
68709572d6a786b95fc4c570460129945dd9e087
[ "MIT" ]
6
2016-03-20T09:22:07.000Z
2020-01-08T18:58:51.000Z
#!/usr/bin/env python3 """ Hyphenation file checker Copyright (C) 2016 Elie Roux Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limit...
36.290323
169
0.687111
0
0
0
0
0
0
0
0
1,436
0.638222
5e6f9cdcd570500478ff5774f1e84de657bce7fd
1,522
py
Python
python/coroutine/operatingSystem/echoServer.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
null
null
null
python/coroutine/operatingSystem/echoServer.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
1
2016-09-15T07:06:15.000Z
2016-09-15T07:06:15.000Z
python/coroutine/operatingSystem/echoServer.py
wjiec/packages
4ccaf8f717265a1f8a9af533f9a998b935efb32a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import scheduler from systemCall import * import threading import socket, time, random def handleClient(client, address): print('>>> client connect[%s:%s]' % address) while True: data = yield sockRecv(client, 1024) if not data: break pr...
33.086957
92
0.629435
0
0
704
0.462549
0
0
0
0
248
0.162943
5e6ffb54b935a3bedbdb9d36bddd3349d6e52b30
2,816
py
Python
benchmarks/Python/towers.py
OvermindDL1/are-we-fast-yet
78b0560c7c3b7a90b22b90c4cb27660e56478d30
[ "BSD-3-Clause" ]
null
null
null
benchmarks/Python/towers.py
OvermindDL1/are-we-fast-yet
78b0560c7c3b7a90b22b90c4cb27660e56478d30
[ "BSD-3-Clause" ]
null
null
null
benchmarks/Python/towers.py
OvermindDL1/are-we-fast-yet
78b0560c7c3b7a90b22b90c4cb27660e56478d30
[ "BSD-3-Clause" ]
null
null
null
# This code is based on the SOM class library. # # Copyright (c) 2001-2021 see AUTHORS.md file # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitat...
35.2
79
0.675426
1,626
0.577415
0
0
0
0
0
0
1,219
0.432884
5e70e30d8acb4ea1ea084ee75398425bc75336ea
2,467
py
Python
src/panoramic/cli/metadata/engines/inspector.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-11-13T17:26:59.000Z
2021-03-19T15:11:26.000Z
src/panoramic/cli/metadata/engines/inspector.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-10-28T10:22:35.000Z
2021-01-27T17:33:58.000Z
src/panoramic/cli/metadata/engines/inspector.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
3
2021-01-26T07:58:03.000Z
2021-03-11T13:28:34.000Z
from datetime import date, datetime, time from typing import cast from sqlalchemy.engine.reflection import Inspector from sqlalchemy.sql.type_api import TypeEngine from tqdm import tqdm from panoramic.cli.connection import Connection from panoramic.cli.husky.core.taxonomy.enums import ValidationType from panoramic.cl...
39.15873
117
0.63032
2,024
0.82043
0
0
0
0
0
0
205
0.083097
5e7142536258ed6641b3e640fe4557a5d215fbf1
1,092
py
Python
pymeasure/virtual/power_test_setup.py
tinix84/pymeasure
09fa6155a2e9305573844cb8d15aca2d1772f1de
[ "MIT" ]
2
2021-07-30T04:22:18.000Z
2022-03-28T19:52:47.000Z
pymeasure/virtual/power_test_setup.py
tinix84/pymeasure
09fa6155a2e9305573844cb8d15aca2d1772f1de
[ "MIT" ]
null
null
null
pymeasure/virtual/power_test_setup.py
tinix84/pymeasure
09fa6155a2e9305573844cb8d15aca2d1772f1de
[ "MIT" ]
null
null
null
class EfficiencyMeasurement(): # input_voltage = None # input_current = None # output_voltage = None # output_current = None # input_power = None # output_power = None # loss_power = None # efficiency = None def __init__(self, input_voltage: float, input_current: float, ...
37.655172
102
0.680403
1,088
0.996337
0
0
0
0
0
0
224
0.205128
5e73a8a490565ce260ea75379fde0ff2412ce415
3,576
py
Python
NeoSparkAnalyzer.py
m4rok97/NeoSparkAnalyzer
eecb9761316b661341dfa8420a579ba70531c031
[ "MIT" ]
1
2021-08-10T14:23:33.000Z
2021-08-10T14:23:33.000Z
NeoSparkAnalyzer.py
m4rok97/NeoSparkAnalyzer
eecb9761316b661341dfa8420a579ba70531c031
[ "MIT" ]
null
null
null
NeoSparkAnalyzer.py
m4rok97/NeoSparkAnalyzer
eecb9761316b661341dfa8420a579ba70531c031
[ "MIT" ]
1
2021-08-10T14:23:38.000Z
2021-08-10T14:23:38.000Z
from pyspark.sql import SparkSession import pyspark.sql.functions as F from pyspark.sql.types import * from AnomalyDetection import * from NeoDatabase import * import pyspark import time as tm import numpy as np # region NeoSaprk Analyzer Class class NeoSparkAnalyzer: """ Class that represent the main Analyz...
36.121212
163
0.701342
2,439
0.682047
0
0
438
0.122483
0
0
1,159
0.324105
5e73fcf644a45cb11ba83ef39dcaa16b594c1c62
2,822
py
Python
scripts/common/parse_spark_logs/taskDuration.py
SobhanOmranian/spark-dca
cd0c5ddbe433a1772442456549e37bf8838f75e3
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
2
2020-02-07T12:09:14.000Z
2020-03-09T21:31:40.000Z
scripts/common/parse_spark_logs/taskDuration.py
SobhanOmranian/spark-dca
cd0c5ddbe433a1772442456549e37bf8838f75e3
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
2
2020-05-15T21:45:35.000Z
2021-01-21T00:21:21.000Z
scripts/common/parse_spark_logs/taskDuration.py
SobhanOmranian/spark-dca
cd0c5ddbe433a1772442456549e37bf8838f75e3
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
3
2019-09-18T22:05:11.000Z
2021-07-10T16:29:09.000Z
import json from pprint import pprint from urllib.request import urlopen import csv class Task: def __init__(self, taskId, duration, gcTime, executorId): self.taskId = int(taskId) self.duration = int(duration) self.gcTime = int(gcTime) self.executorId = int(executorId) def __st...
34.414634
104
0.694543
496
0.175762
0
0
0
0
0
0
1,406
0.498228
5e7990b0943dc117def320f3a1ce0bdf0bbba9d7
4,427
py
Python
heksher/api/v1/settings_metadata.py
biocatchltd/Heksher
b50b3659a606cb188437adb1f95747efb3ba7b59
[ "MIT" ]
3
2021-01-21T11:41:06.000Z
2021-10-20T06:51:53.000Z
heksher/api/v1/settings_metadata.py
biocatchltd/Heksher
b50b3659a606cb188437adb1f95747efb3ba7b59
[ "MIT" ]
18
2021-02-01T06:38:53.000Z
2022-02-14T13:46:33.000Z
heksher/api/v1/settings_metadata.py
biocatchltd/Heksher
b50b3659a606cb188437adb1f95747efb3ba7b59
[ "MIT" ]
null
null
null
from logging import getLogger from typing import Any, Dict, Optional from fastapi import APIRouter, Response from pydantic import Field from starlette import status from starlette.responses import PlainTextResponse from heksher.api.v1.util import ORJSONModel, application from heksher.api.v1.validation import Metadata...
44.27
118
0.737294
535
0.120849
0
0
3,455
0.780438
2,710
0.612153
922
0.208267
5e7a2ea7e1dce82bc6f6c129b495743ed0e175dd
224
py
Python
package/Y.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
16
2019-04-18T13:35:42.000Z
2021-09-05T21:01:06.000Z
package/Y.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
1
2021-02-15T16:26:00.000Z
2021-02-15T16:26:00.000Z
package/Y.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
17
2018-09-30T07:35:00.000Z
2021-08-28T19:15:09.000Z
class Y: def __init__(self, v0): self.v0 = v0 self.g = 9.81 def value(self, t): return self.v0*t - 0.5*self.g*t**2 def formula(self): return "v0*t - 0.5*g*t**2; v0=%g" % self.v0
20.363636
51
0.495536
223
0.995536
0
0
0
0
0
0
26
0.116071
5e7a6b6af87cb5adada613cffcf3ff5831de98c2
108
py
Python
array.py
nkukadiya89/learn-python
d0a8c438dd77b8feeb1e0126ec379873ef4b2978
[ "MIT" ]
1
2021-06-16T16:42:41.000Z
2021-06-16T16:42:41.000Z
array.py
nkukadiya89/learn-python
d0a8c438dd77b8feeb1e0126ec379873ef4b2978
[ "MIT" ]
null
null
null
array.py
nkukadiya89/learn-python
d0a8c438dd77b8feeb1e0126ec379873ef4b2978
[ "MIT" ]
null
null
null
#Array In Python from array import array numbers = array("i",[1,2,3]) numbers[0] = 0 print(list(numbers))
13.5
28
0.685185
0
0
0
0
0
0
0
0
19
0.175926
5e7cb7cc9dfdf57954cac2db60ebc59641cb2b19
344
py
Python
day19/part2.py
mtn/advent16
0df34237485ee1246532e9eda0ef643e6950d13e
[ "MIT" ]
null
null
null
day19/part2.py
mtn/advent16
0df34237485ee1246532e9eda0ef643e6950d13e
[ "MIT" ]
null
null
null
day19/part2.py
mtn/advent16
0df34237485ee1246532e9eda0ef643e6950d13e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import deque inp = 3005290 l = deque() r = deque() for i in range(1, inp+1): if i <= inp // 2: l.append(i) else: r.appendleft(i) while l and r: if len(l) > len(r): l.pop() else: r.pop() r.appendleft(l.popleft()) l.appen...
13.76
29
0.523256
0
0
0
0
0
0
0
0
22
0.063953
5e7d33ee6f25bf7e294ba72a60592d7ecbf6df93
1,479
py
Python
src/figcli/test/cli/config.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
36
2020-07-21T21:22:02.000Z
2021-10-20T06:55:47.000Z
src/figcli/test/cli/config.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
2
2020-10-29T12:49:15.000Z
2021-04-29T01:12:05.000Z
src/figcli/test/cli/config.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
null
null
null
import os ### For PS items stored with this value, we will auto-clean them up from our audit table. Used for automated E2E testing. DELETE_ME_VALUE = 'DELETE_ME' ### <-- use this for ALL VALUES MFA_USER_ENV_KEY = 'MFA_USER' MFA_SECRET_ENV_KEY = 'MFA_SECRET' # Env vars GOOGLE_SSO_USER = 'GOOGLE_SSO_USER' GOOGLE_SSO_P...
29
121
0.772819
0
0
0
0
0
0
0
0
825
0.557809
5e7de8519966e4f83e0e45c0dd354a0fcd275569
7,956
py
Python
SushiCat.py
Carlos-E-Souza/Pyxel_Game
aa72816446041e200ac436d442cedf7d04f7979c
[ "MIT" ]
null
null
null
SushiCat.py
Carlos-E-Souza/Pyxel_Game
aa72816446041e200ac436d442cedf7d04f7979c
[ "MIT" ]
null
null
null
SushiCat.py
Carlos-E-Souza/Pyxel_Game
aa72816446041e200ac436d442cedf7d04f7979c
[ "MIT" ]
null
null
null
from collections import deque, namedtuple from random import randint import pyxel Point = namedtuple("Point", ["x", "y"]) BACKGRD_COL = 3 WIDTH = 200 HEIGHT = 200 UP = Point(0, -3) DOWN = Point(0, 3) RIGHT = Point(3, 0) LEFT = Point(-3, 0) START = Point(125, 125) class Cat: def __init__(self): self.cat ...
31.697211
91
0.51722
7,670
0.964052
0
0
0
0
0
0
516
0.064857
5e7defce2e2ab62233e622a56872ccd1b331951a
632
py
Python
helper_functions.py
dadam1026/Homework1v2
47360f83eff0cff34498827138951afdcb0362b4
[ "MIT" ]
null
null
null
helper_functions.py
dadam1026/Homework1v2
47360f83eff0cff34498827138951afdcb0362b4
[ "MIT" ]
null
null
null
helper_functions.py
dadam1026/Homework1v2
47360f83eff0cff34498827138951afdcb0362b4
[ "MIT" ]
null
null
null
# Contains helper functions for your apps! from os import listdir, remove # If the io following files are in the current directory, remove them! # 1. 'currency_pair.txt' # 2. 'currency_pair_history.csv' # 3. 'trade_order.p' def check_for_and_del_io_files(): # Your code goes here. file_list = ['currency_pair.t...
30.095238
83
0.655063
0
0
0
0
0
0
0
0
397
0.628165
5e7f0c2f4ced84031cd811e035656325a60735b2
884
py
Python
kinesis/serializers.py
graphyteai/async-kinesis
b4ad760e1b084f54b7e78148dbbe6abf00c44b19
[ "Apache-2.0" ]
17
2019-06-20T14:33:51.000Z
2021-12-20T14:28:39.000Z
kinesis/serializers.py
graphyteai/async-kinesis
b4ad760e1b084f54b7e78148dbbe6abf00c44b19
[ "Apache-2.0" ]
15
2020-05-27T03:50:55.000Z
2022-02-14T20:50:39.000Z
kinesis/serializers.py
graphyteai/async-kinesis
b4ad760e1b084f54b7e78148dbbe6abf00c44b19
[ "Apache-2.0" ]
12
2019-09-04T11:16:26.000Z
2022-02-14T17:06:43.000Z
try: import ujson as json except ModuleNotFoundError: # https://github.com/python/mypy/issues/1153 (mypy bug with try/except conditional imports) import json # type: ignore try: import msgpack except ModuleNotFoundError: pass class Serializer: pass class StringSerializer(Serializer): d...
22.1
95
0.680995
624
0.705882
0
0
0
0
0
0
133
0.150452
5e80439d96e678547ee434575b54e563d5881594
939
py
Python
test.py
joders/logging_tqdm
7a4730e531c44872ad31afcd4d1a908e67d0276c
[ "MIT" ]
null
null
null
test.py
joders/logging_tqdm
7a4730e531c44872ad31afcd4d1a908e67d0276c
[ "MIT" ]
null
null
null
test.py
joders/logging_tqdm
7a4730e531c44872ad31afcd4d1a908e67d0276c
[ "MIT" ]
null
null
null
from logging_tqdm import tqdm import time print("Testing tqdm-logging:") for i in tqdm(range(100)): time.sleep(.02) print("\n\n\n") print("Testing tqdm-logging with exception:") try: for i in tqdm(range(100)): if i == 75: raise Exception("Some Exception") time.sleep(.02) except: ...
19.163265
73
0.656017
0
0
0
0
0
0
0
0
263
0.280085
5e80525b9c217eb34d1d6000ccbace3dae72142f
1,448
py
Python
commontail/default_settings.py
einsfr/commontail
a7421b7aac89dead7e4f7e0da0dff317157c3fea
[ "MIT" ]
null
null
null
commontail/default_settings.py
einsfr/commontail
a7421b7aac89dead7e4f7e0da0dff317157c3fea
[ "MIT" ]
null
null
null
commontail/default_settings.py
einsfr/commontail
a7421b7aac89dead7e4f7e0da0dff317157c3fea
[ "MIT" ]
null
null
null
from typing import List, Tuple COMMONTAIL_CONTENT_STREAM_PAGE_BODY_BLOCK: str = 'commontail.blocks.ContentStreamBlock' COMMONTAIL_LINK_ICON_DOCUMENT_DEFAULT = 'far fa-file' COMMONTAIL_LINK_ICON_EXTERNAL = 'fas fa-globe' COMMONTAIL_NAMED_URL_CACHE_KEY_PREFIX: str = 'named_url_' COMMONTAIL_NAMED_URL_CACHE_LIFETIME: in...
42.588235
115
0.799033
0
0
0
0
0
0
0
0
227
0.156768
5e81d9b31c50e8e47fe0403850ae0d0290d47815
618
py
Python
python_basics/4.arithmetic_operators/discount_challenge.py
edilsonmatola/Python_Master
cef88a19e641f6454944bab358841b380c64699e
[ "MIT" ]
2
2022-03-12T07:53:23.000Z
2022-03-14T16:09:06.000Z
python_basics/4.arithmetic_operators/discount_challenge.py
edilsonmatola/Python_Master
cef88a19e641f6454944bab358841b380c64699e
[ "MIT" ]
18
2022-03-13T19:45:48.000Z
2022-03-31T06:04:12.000Z
python_basics/4.arithmetic_operators/discount_challenge.py
edilsonmatola/Python_Master
cef88a19e641f6454944bab358841b380c64699e
[ "MIT" ]
null
null
null
""" * Problem Description *Suppose you are a university student and you need to pay 1536 dollars as a tuition fee. *The college is offering a 10% discount on the early payment. How much money do you have to pay if you make an early payment? *Task *Create a variable named fee and assign 1536 to it. *Create another ...
22.888889
125
0.744337
0
0
0
0
0
0
0
0
523
0.846278
5e851a8b5a5d6342aed8daa70ea488ff9dec6bc6
1,888
py
Python
robogym/envs/rearrange/tests/test_object_creation.py
0xflotus/robogym
5ec2fcbda9828941fe3072792dd25fb5a915bbbb
[ "MIT" ]
288
2020-11-12T21:39:34.000Z
2022-03-19T23:27:50.000Z
robogym/envs/rearrange/tests/test_object_creation.py
0xflotus/robogym
5ec2fcbda9828941fe3072792dd25fb5a915bbbb
[ "MIT" ]
3
2020-12-12T19:19:30.000Z
2022-03-24T05:21:39.000Z
robogym/envs/rearrange/tests/test_object_creation.py
0xflotus/robogym
5ec2fcbda9828941fe3072792dd25fb5a915bbbb
[ "MIT" ]
31
2020-11-12T22:31:01.000Z
2022-02-28T20:34:48.000Z
import numpy as np from numpy.testing import assert_allclose from robogym.envs.rearrange.common.utils import ( get_mesh_bounding_box, make_block, make_blocks_and_targets, ) from robogym.envs.rearrange.simulation.composer import RandomMeshComposer from robogym.mujoco.mujoco_xml import MujocoXML def _get_d...
30.451613
106
0.661017
0
0
0
0
0
0
0
0
210
0.111229
5e864ccf01f6e54ee7967475c32a472181419c97
1,910
py
Python
package/tests/base/test_grid.py
mondas-mania/cipher-py
e1dd287311ab487fd54a8becee444b3d7561b63c
[ "MIT" ]
null
null
null
package/tests/base/test_grid.py
mondas-mania/cipher-py
e1dd287311ab487fd54a8becee444b3d7561b63c
[ "MIT" ]
null
null
null
package/tests/base/test_grid.py
mondas-mania/cipher-py
e1dd287311ab487fd54a8becee444b3d7561b63c
[ "MIT" ]
null
null
null
from cipherpy.base import create_grid, playfair_digram_encode import numpy as np import pytest alphabet = "abcdefghiklmnopqrstuvwxyz" # j has been removed inv_alph = "zyxwvutsrqponmlkihgfedcba" # j has been removed grid = np.array([ ["a","b","c","d","e"], ["f","g","h","i","k"], ["l","m","n","o","p"], [...
36.730769
66
0.630366
0
0
0
0
0
0
0
0
506
0.264921
5e8667c8bd08530e3798b28c3658e7a0a6e72243
258,420
py
Python
instances/passenger_demand/pas-20210422-1717-int1/69.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int1/69.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int1/69.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 19216 passenger_arriving = ( (7, 4, 4, 3, 2, 1, 4, 2, 4, 2, 0, 0, 0, 7, 5, 8, 3, 7, 1, 3, 0, 1, 2, 1, 1, 0), # 0 (4, 7, 2, 3, 3, 1, 2, 5, 2, 1, 1, 0, 0, 6, 4, 4, 3, 2, 1, 5, 1, 1, 1, 0, 1, 0), # 1 (6, 4, 5, 6, 2, 1, 2, 4, 1, 1, 0, 0, 0, 11, 3, 6, 7, 7, 0, 3, 2, 1, 2, 0, 0, 0),...
276.385027
494
0.769662
0
0
0
0
0
0
0
0
5,038
0.019495
5e8766f199a76d5f61165aff99ba7d6c204fcf47
7,675
py
Python
dnppy/landsat/atsat_bright_temp.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
dnppy/landsat/atsat_bright_temp.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
dnppy/landsat/atsat_bright_temp.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
#standard imports import arcpy import os from dnppy import core from landsat_metadata import landsat_metadata if arcpy.CheckExtension('Spatial')=='Available': arcpy.CheckOutExtension('Spatial') arcpy.env.overwriteOutput = True __all__=['atsat_bright_temp_8', # complete 'atsat_bright_temp_457'] ...
41.042781
107
0.658893
0
0
0
0
0
0
0
0
3,788
0.49355
5e892feb5f34a5d8b8dc87bca05b023ae160a368
10,669
py
Python
Scripts/Fig 8 - Compare optimal APs.py
CardiacModelling/Gamma_0
05c7e16088656b343d3aa347df88fd3dd58cea87
[ "BSD-3-Clause" ]
null
null
null
Scripts/Fig 8 - Compare optimal APs.py
CardiacModelling/Gamma_0
05c7e16088656b343d3aa347df88fd3dd58cea87
[ "BSD-3-Clause" ]
null
null
null
Scripts/Fig 8 - Compare optimal APs.py
CardiacModelling/Gamma_0
05c7e16088656b343d3aa347df88fd3dd58cea87
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 9 09:42:00 2021 @author: barraly """ import sabs_pkpd import numpy as np import matplotlib.pyplot as plt import os # Select the folder in which this repo is downloaded in the line below os.chdir('The/location/of/the/root/folder/of/this/repo') # In[Loa...
43.72541
253
0.67907
0
0
0
0
0
0
0
0
2,377
0.222795
5e8965b28a68b221d66bfcaa7bdfd7e41afadc2f
3,973
py
Python
keras_sample.py
JustinFletcher/patterns
606130129406abac6d49689db131ce17619fb521
[ "MIT" ]
null
null
null
keras_sample.py
JustinFletcher/patterns
606130129406abac6d49689db131ce17619fb521
[ "MIT" ]
null
null
null
keras_sample.py
JustinFletcher/patterns
606130129406abac6d49689db131ce17619fb521
[ "MIT" ]
null
null
null
import sys import argparse import numpy as np import tensorflow as tf from tensorflow import keras class SampleModel(keras.Model): def __init__(self, num_classes=10): super(SampleModel, self).__init__(name='my_model') self.num_classes = num_classes # Define your layers here. s...
30.561538
79
0.625975
946
0.238107
0
0
0
0
0
0
1,079
0.271583
5e8a67301e87d6b49ee5b0aa718dbabf712a571d
245
py
Python
main.py
glhrmfrts/instr
ba08fae5149c193ada0003c0f4ca042dca84e457
[ "MIT" ]
null
null
null
main.py
glhrmfrts/instr
ba08fae5149c193ada0003c0f4ca042dca84e457
[ "MIT" ]
null
null
null
main.py
glhrmfrts/instr
ba08fae5149c193ada0003c0f4ca042dca84e457
[ "MIT" ]
null
null
null
from instr.instruments import * from instr.effects import * s = Sqr().bind(tremolo(), echo(0.4, 0.8)).loop(2, [(244, 1), (289, 1), (365, 2)]).loop(4, [(244, 0.1), (289, 0.1), (365, 0.1), (1, 0.1), (237, 0.1), (1, 0.1)]).save('tests/instr.wav')
49
183
0.555102
0
0
0
0
0
0
0
0
17
0.069388
5e8ac33f8ff4015e8025f6ed272c2e9afe57e654
1,593
py
Python
mistral/notifiers/default_notifier.py
Abnerzhao/mistral
55c8d70536c8e9de03376b523e8dfa3c3cf7070f
[ "Apache-2.0" ]
null
null
null
mistral/notifiers/default_notifier.py
Abnerzhao/mistral
55c8d70536c8e9de03376b523e8dfa3c3cf7070f
[ "Apache-2.0" ]
null
null
null
mistral/notifiers/default_notifier.py
Abnerzhao/mistral
55c8d70536c8e9de03376b523e8dfa3c3cf7070f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 - Extreme Networks, 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 l...
33.1875
79
0.652228
813
0.510358
0
0
0
0
0
0
755
0.473949
5e8ac64fbe70fe326a2767fef3d9300d1b292115
2,049
py
Python
class_4/dungeon.py
goosemanjack/python_intro_class
ca4b2390f2b0bb037d94ed4516d98848b7cf97d6
[ "MIT" ]
null
null
null
class_4/dungeon.py
goosemanjack/python_intro_class
ca4b2390f2b0bb037d94ed4516d98848b7cf97d6
[ "MIT" ]
null
null
null
class_4/dungeon.py
goosemanjack/python_intro_class
ca4b2390f2b0bb037d94ed4516d98848b7cf97d6
[ "MIT" ]
null
null
null
# Dungeon Crawler import asciiart import level1 import level2 import time # timer import hero #def test(): # print(asciiart.baby_dragon()) # print(asciiart.big_skull()) # print(asciiart.dragon()) # print(asciiart.samurai()) # print(asciiart.skull_cross()) # print(asciiart.warrior()) # print(as...
19.893204
79
0.570522
0
0
0
0
0
0
0
0
576
0.281113
5e8c140172a68c8d661d38b28158caaeea26abc7
804
py
Python
getTotalCount.py
bdo311/chirpseq-analysis
64a5cdbb1fbac1ef8c5cca844ea743b80641287c
[ "Apache-2.0" ]
3
2016-09-19T21:30:36.000Z
2019-03-14T08:25:32.000Z
getTotalCount.py
bdo311/chirpseq-analysis
64a5cdbb1fbac1ef8c5cca844ea743b80641287c
[ "Apache-2.0" ]
2
2018-03-11T02:21:29.000Z
2021-03-03T11:18:30.000Z
getTotalCount.py
bdo311/chirpseq-analysis
64a5cdbb1fbac1ef8c5cca844ea743b80641287c
[ "Apache-2.0" ]
3
2016-10-28T09:15:16.000Z
2019-06-16T04:38:31.000Z
# getTotalCount.py # 3/1/14 # Gets total count for all ChIP-seq reads import csv, sys, fileinput csv.register_dialect("textdialect", delimiter='\t') if len(sys.argv) > 1: fn = sys.argv[1] ifile = open(fn, 'r') reader = csv.reader(ifile, 'textdialect') total = 0 counter = 0 for row in reader: ...
23.647059
62
0.603234
0
0
0
0
0
0
0
0
288
0.358209
5e8c4416ffb84be6cff77e73bcd07204a060ba9e
4,210
py
Python
heatclient/tests/fakes.py
jasondunsmore/python-heatclient
13b4f82835fcf5dd0f206745ae13378796b4a029
[ "Apache-2.0" ]
null
null
null
heatclient/tests/fakes.py
jasondunsmore/python-heatclient
13b4f82835fcf5dd0f206745ae13378796b4a029
[ "Apache-2.0" ]
null
null
null
heatclient/tests/fakes.py
jasondunsmore/python-heatclient
13b4f82835fcf5dd0f206745ae13378796b4a029
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
30.507246
73
0.574822
963
0.228741
0
0
0
0
0
0
1,358
0.322565
5e8cc6bb55cb6fdfd76cfe20fa9511c12c2abab0
8,499
py
Python
mail/mail.py
Infosecurity-LLC/thehive_responders
de57723a2c958fea49bc8d2e5a3e9619f219bc2b
[ "Apache-2.0" ]
null
null
null
mail/mail.py
Infosecurity-LLC/thehive_responders
de57723a2c958fea49bc8d2e5a3e9619f219bc2b
[ "Apache-2.0" ]
null
null
null
mail/mail.py
Infosecurity-LLC/thehive_responders
de57723a2c958fea49bc8d2e5a3e9619f219bc2b
[ "Apache-2.0" ]
1
2022-02-04T10:00:10.000Z
2022-02-04T10:00:10.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from logging.handlers import TimedRotatingFileHandler from logging import Formatter, getLogger import os from socutils import mail from responder_commons.report_maker import IncidentReportMaker, logger as responder_commons_logger from responder_commons.mailreporter_clien...
50.892216
115
0.627603
7,794
0.917049
0
0
0
0
0
0
1,721
0.202494
5e8cf51246ce6ba4c2091b019716fd40d1fb9fc1
9,787
py
Python
open_alchemy/column_factory/column.py
codingjoe/OpenAlchemy
a899c05b11209d9d23f81c2638f501e5147c90b8
[ "Apache-2.0" ]
null
null
null
open_alchemy/column_factory/column.py
codingjoe/OpenAlchemy
a899c05b11209d9d23f81c2638f501e5147c90b8
[ "Apache-2.0" ]
null
null
null
open_alchemy/column_factory/column.py
codingjoe/OpenAlchemy
a899c05b11209d9d23f81c2638f501e5147c90b8
[ "Apache-2.0" ]
null
null
null
"""Column factory functions relating to columns.""" import typing import sqlalchemy from open_alchemy import exceptions from open_alchemy import helpers from open_alchemy import types def handle_column( *, schema: types.Schema, schemas: typing.Optional[types.Schemas] = None, required: typing.Option...
31.36859
86
0.673036
0
0
0
0
0
0
0
0
4,342
0.44365
5e8def353cd8038d157012651972bf4783cd5467
77
py
Python
planar_ising/lipton_tarjan/__init__.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
8
2019-05-02T20:27:21.000Z
2020-11-01T20:41:38.000Z
planar_ising/lipton_tarjan/__init__.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
1
2019-09-03T18:15:53.000Z
2019-09-06T16:41:12.000Z
planar_ising/lipton_tarjan/__init__.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
3
2019-08-11T23:08:58.000Z
2022-03-19T09:09:50.000Z
from .planar_separator import PlanarSeparator from . import separation_class
25.666667
45
0.87013
0
0
0
0
0
0
0
0
0
0
5e8e88f7806e5de3d7c9a21859d1d8f279695f0c
2,593
py
Python
ecs_infra/ecs-devops-sandbox-cdk/ecs_devops_sandbox_cdk/ecs_devops_sandbox_cdk_stack.py
Covert-Operations/aws_codebuild_test
949c8468f3e35f9df3782ecd71d51aa6e1831e2c
[ "BSD-3-Clause" ]
null
null
null
ecs_infra/ecs-devops-sandbox-cdk/ecs_devops_sandbox_cdk/ecs_devops_sandbox_cdk_stack.py
Covert-Operations/aws_codebuild_test
949c8468f3e35f9df3782ecd71d51aa6e1831e2c
[ "BSD-3-Clause" ]
null
null
null
ecs_infra/ecs-devops-sandbox-cdk/ecs_devops_sandbox_cdk/ecs_devops_sandbox_cdk_stack.py
Covert-Operations/aws_codebuild_test
949c8468f3e35f9df3782ecd71d51aa6e1831e2c
[ "BSD-3-Clause" ]
null
null
null
"""AWS CDK module to create ECS infrastructure""" from aws_cdk import (core, aws_ecs as ecs, aws_ecr as ecr, aws_ec2 as ec2, aws_iam as iam) class EcsDevopsSandboxCdkStack(core.Stack): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) # Cr...
46.303571
103
0.506363
2,441
0.941381
0
0
0
0
0
0
791
0.305052
5e8ecd87d9b6bf3e0c792cf33dd8743654d8794d
970
py
Python
binanceapi/constant.py
ramoslin02/binanceapi
0ae32229da4fb3dcbd4f2276f442d26c83ad3a39
[ "MIT" ]
4
2021-02-12T23:19:50.000Z
2021-12-21T14:45:55.000Z
binanceapi/constant.py
ramoslin02/binanceapi
0ae32229da4fb3dcbd4f2276f442d26c83ad3a39
[ "MIT" ]
null
null
null
binanceapi/constant.py
ramoslin02/binanceapi
0ae32229da4fb3dcbd4f2276f442d26c83ad3a39
[ "MIT" ]
7
2021-02-23T01:02:23.000Z
2022-03-08T12:56:59.000Z
from enum import Enum class OrderStatus(object): """ Order Status """ NEW = "NEW" PARTIALLY_FILLED = "PARTIALLY_FILLED" FILLED = "FILLED" CANCELED = "CANCELED" PENDING_CANCEL = "PENDING_CANCEL" REJECTED = "REJECTED" EXPIRED = "EXPIRED" class OrderType(Enum): """ Order ...
15.396825
41
0.525773
933
0.961856
0
0
0
0
0
0
341
0.351546
5e91844a645304b2fe7b2b0f7bebb343f1693d42
2,780
py
Python
js_services/forms.py
evgeny-dmi3ev/js-services
8d4960ec49a44b0eda537713af9f4976456e0f5e
[ "BSD-3-Clause" ]
null
null
null
js_services/forms.py
evgeny-dmi3ev/js-services
8d4960ec49a44b0eda537713af9f4976456e0f5e
[ "BSD-3-Clause" ]
null
null
null
js_services/forms.py
evgeny-dmi3ev/js-services
8d4960ec49a44b0eda537713af9f4976456e0f5e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.conf import settings from django.contrib.admin.widgets import FilteredSelectMultiple from django.utils.text import slugify from django.utils.safestring import mark_safe try: from sortedm2m_filter_horizontal_widget.f...
40.882353
137
0.738849
1,803
0.648561
0
0
0
0
0
0
324
0.116547