hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
27c9ba444a34f54768e7b765711b97577ab8187f
2,918
py
Python
other ML algos/ucb.py
amanparmar17/ML-In-Data-Science-using-R
4768abc1eb1f53236526131287eea91cbbd7fd08
[ "MIT" ]
null
null
null
other ML algos/ucb.py
amanparmar17/ML-In-Data-Science-using-R
4768abc1eb1f53236526131287eea91cbbd7fd08
[ "MIT" ]
null
null
null
other ML algos/ucb.py
amanparmar17/ML-In-Data-Science-using-R
4768abc1eb1f53236526131287eea91cbbd7fd08
[ "MIT" ]
null
null
null
import pandas as pa import numpy as np import matplotlib.pyplot as plt datset=pa.read_csv("Ads_CTR_Optimisation.csv") #datset contions a matrix of 0s and 1s, which are nothing but the rewards corresponding to each option at each round #%%implementing the ucb reinforcement method import math N=10000 #no of...
64.844444
189
0.641535
18d7c7bd0296d056f94b37382ee759913d032586
156
py
Python
heimdall/apps.py
M3zZ/heimdall
c5f8eadf4fdf13f7b7853401a2b14d382bf44c46
[ "WTFPL" ]
2
2018-06-08T15:04:39.000Z
2018-08-01T12:26:31.000Z
heimdall/apps.py
M3zZ/heimdall
c5f8eadf4fdf13f7b7853401a2b14d382bf44c46
[ "WTFPL" ]
null
null
null
heimdall/apps.py
M3zZ/heimdall
c5f8eadf4fdf13f7b7853401a2b14d382bf44c46
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class HeimdallConfig(AppConfig): name = 'heimdall'
17.333333
39
0.737179
d2adadbb87a9512c6ff4d4a69d7cac770cc7fc0a
398
py
Python
src/core/migrations/0048_videocollection_show_in_list.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0048_videocollection_show_in_list.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0048_videocollection_show_in_list.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-02-12 05:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0047_auto_20190212_0403'), ] operations = [ migrations.AddField( model_name='videocollection', name='show_in...
20.947368
52
0.610553
9de0cb0b93e8e6decb0e88c97368b9129505386c
3,494
py
Python
deepgraph/functions.py
Wo0dy/deepgraph
b544cbb51f24da93ee0f4069a82f3ee8e5ba88dd
[ "BSD-3-Clause" ]
1
2021-09-02T18:05:21.000Z
2021-09-02T18:05:21.000Z
deepgraph/functions.py
Wo0dy/deepgraph
b544cbb51f24da93ee0f4069a82f3ee8e5ba88dd
[ "BSD-3-Clause" ]
null
null
null
deepgraph/functions.py
Wo0dy/deepgraph
b544cbb51f24da93ee0f4069a82f3ee8e5ba88dd
[ "BSD-3-Clause" ]
null
null
null
"""Auxiliary **connector** and **selector** functions to create edges. This module provides auxiliary **connector** and **selector** functions for the ``dg.DeepGraph.create_edges`` and ``dg.DeepGraph.create_ft_edges`` methods. They are described in their corresponding docstrings. """ from __future__ import print_fu...
25.881481
79
0.60561
5a48202b288c939b955fb296c9a7dd8732e67c93
4,899
py
Python
tests/installation/test_chooser.py
adamandrews1/poetry
17b165bf8c8d989d672417fd4610721df59ae1d0
[ "MIT" ]
null
null
null
tests/installation/test_chooser.py
adamandrews1/poetry
17b165bf8c8d989d672417fd4610721df59ae1d0
[ "MIT" ]
2
2020-09-12T22:53:08.000Z
2021-02-10T14:36:05.000Z
tests/installation/test_chooser.py
adamandrews1/poetry
17b165bf8c8d989d672417fd4610721df59ae1d0
[ "MIT" ]
1
2020-09-12T19:34:33.000Z
2020-09-12T19:34:33.000Z
import re import pytest from packaging.tags import Tag from poetry.core.packages.package import Package from poetry.installation.chooser import Chooser from poetry.repositories.legacy_repository import LegacyRepository from poetry.repositories.pool import Pool from poetry.repositories.pypi_repository import PyPiRepo...
27.835227
94
0.65197
aa4cbbddd1892d40c296b1564ba106fd05f38c20
5,786
py
Python
docs/tools/cmake_in_clickhouse_generator.py
zhongyuankai/ClickHouse
9dddce13a7c94cc46ced326b61f20308869724b4
[ "Apache-2.0" ]
1
2022-01-20T10:43:11.000Z
2022-01-20T10:43:11.000Z
docs/tools/cmake_in_clickhouse_generator.py
zhongyuankai/ClickHouse
9dddce13a7c94cc46ced326b61f20308869724b4
[ "Apache-2.0" ]
1
2022-03-21T07:27:34.000Z
2022-03-21T07:27:34.000Z
docs/tools/cmake_in_clickhouse_generator.py
zhongyuankai/ClickHouse
9dddce13a7c94cc46ced326b61f20308869724b4
[ "Apache-2.0" ]
null
null
null
import re import os from typing import TextIO, List, Tuple, Optional, Dict # name, default value, description Entity = Tuple[str, str, str] # https://regex101.com/r/R6iogw/12 cmake_option_regex: str = r"^\s*option\s*\(([A-Z_0-9${}]+)\s*(?:\"((?:.|\n)*?)\")?\s*(.*)?\).*$" ch_master_url: str = "https://github.com/clic...
36.620253
141
0.610785
c0a791224df2575cc2715983d7cefa49fa3cfda8
5,603
py
Python
init_zk_data.py
kingyueyang/bda-init
50c2baab5c4d07df738f98ba3c4b78e84e8d7adb
[ "MIT" ]
null
null
null
init_zk_data.py
kingyueyang/bda-init
50c2baab5c4d07df738f98ba3c4b78e84e8d7adb
[ "MIT" ]
null
null
null
init_zk_data.py
kingyueyang/bda-init
50c2baab5c4d07df738f98ba3c4b78e84e8d7adb
[ "MIT" ]
null
null
null
#!/bin/env python # -*- coding: utf-8 -*- from kazoo.client import KazooClient import sys import os import json import time reload(sys) sys.setdefaultencoding('utf-8') print "BDA init scripts..." ZK_PROBE_PATH = "/baseline4/input/probes" ZK_APIS_PATH = "/baseline4/input/apis" ZK_CATE_PATH = "/baseline4/input/api_cat...
27.875622
95
0.622524
b540bf4330c524c5261c5b84f51f3dcf870b3684
9,812
py
Python
generatenunit.py
RichieBzzzt/ru-neatest
5a1422489b557b573432d8717eb1d4e633c85d0f
[ "MIT" ]
null
null
null
generatenunit.py
RichieBzzzt/ru-neatest
5a1422489b557b573432d8717eb1d4e633c85d0f
[ "MIT" ]
null
null
null
generatenunit.py
RichieBzzzt/ru-neatest
5a1422489b557b573432d8717eb1d4e633c85d0f
[ "MIT" ]
null
null
null
from runeatest import nunitresults from runeatest import pysparkconnect from runeatest import utils from runeatest import testreporter import pytest import json from datetime import datetime def test_convert_to_nunit_results_format(mocker): x = '{"tags": {"opId": "ServerBackend-f421e441fa310430","browserUserAgent...
56.390805
718
0.700061
211da379f1e6b21f38dfa1724ea1cef7c0d975f0
601
py
Python
crm/inv/urls.py
javvadigithub/apicrm
285e248b33a3f4cfe29522940f1c3a669efa041f
[ "MIT" ]
null
null
null
crm/inv/urls.py
javvadigithub/apicrm
285e248b33a3f4cfe29522940f1c3a669efa041f
[ "MIT" ]
null
null
null
crm/inv/urls.py
javvadigithub/apicrm
285e248b33a3f4cfe29522940f1c3a669efa041f
[ "MIT" ]
null
null
null
"""inv URL Configuration """ from django.urls import path from .import views urlpatterns = [ path('register/', views.registerPage, name="register"), path('login/', views.loginPage, name="login"), path('', views.home, name="home"), path('products/', views.products, name='products'), path('customer/...
35.352941
75
0.675541
0a97da7c02530bffec251f44802e091c42ae6795
15
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Convenience Functions/exp2 $2^x$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Convenience Functions/exp2 $2^x$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Convenience Functions/exp2 $2^x$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
special.exp2(x)
15
15
0.8
074d0c4ea1d339645999b52aa589f1b3265979e7
322
py
Python
locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_trackball_actor_style-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_trackball_actor_style-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_trackball_actor_style-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a simple scene with a plotter that has the Trackball # Actor interactive style: # import pyvista as pv plotter = pv.Plotter() _ = plotter.add_mesh(pv.Cube(center=(1, 0, 0))) _ = plotter.add_mesh(pv.Cube(center=(0, 1, 0))) plotter.show_axes() plotter.enable_trackball_actor_style() plotter.show() # doctest:+SKI...
29.272727
61
0.73913
fd88a08c1132e1cc8b2426693ba28f4f1d3ca056
2,315
py
Python
tests/examples/minlplib/st_e16.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/st_e16.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/st_e16.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# NLP written by GAMS Convert at 04/21/18 13:54:23 # # Equation counts # Total E G L N X C B # 10 10 0 0 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
38.583333
113
0.535205
21c37f48e06a79e3756dbe818caff7d65e737059
551
py
Python
src/libs/django/admin/middlewares.py
tabetaku/roots
8a9f91b8b0e0b64a85db2898a537b12be65de753
[ "MIT" ]
null
null
null
src/libs/django/admin/middlewares.py
tabetaku/roots
8a9f91b8b0e0b64a85db2898a537b12be65de753
[ "MIT" ]
13
2020-06-06T00:21:58.000Z
2022-02-26T19:43:52.000Z
src/libs/django/admin/middlewares.py
tabetaku/roots
8a9f91b8b0e0b64a85db2898a537b12be65de753
[ "MIT" ]
null
null
null
from admin_ip_restrictor.middleware import AdminIPRestrictorMiddleware as BaseAdminIPRestrictorMiddleware from django.conf import settings from ipware import get_client_ip class AdminIPRestrictorMiddleware(BaseAdminIPRestrictorMiddleware): def __init__(self, get_response=None): super().__init__(get_respon...
36.733333
105
0.796733
480aaaeed2b7aaea3e3ed6192e43c1c7c85774da
2,765
py
Python
venv/lib/python3.7/site-packages/captcha/tests/settings/django.py
acdinc/django-blog
7091bae586770cf95956d0f231005c8def360e22
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/captcha/tests/settings/django.py
acdinc/django-blog
7091bae586770cf95956d0f231005c8def360e22
[ "MIT" ]
9
2021-03-19T02:17:08.000Z
2022-03-12T00:01:38.000Z
cvproject/Lib/site-packages/captcha/tests/settings/django.py
MdReyajuddin/Big-Project-Codes
79ab22f2f51e29e2ff17f680306877559c719a56
[ "BSD-3-Clause" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ # SECURITY WARNING: keep the...
25.366972
91
0.685714
ee91d4236dd43c25abd40255b91f56273f6d03e1
6,411
py
Python
sqlalchemy_mate/pkg/timeout_decorator/timeout_decorator.py
MacHu-GWU/sqlalchemy_mate-project
e9f7cf7434c984f391758b9b915dad1e1cc774f9
[ "MIT" ]
2
2019-10-31T17:03:18.000Z
2021-03-26T04:12:03.000Z
sqlalchemy_mate/pkg/timeout_decorator/timeout_decorator.py
MacHu-GWU/sqlalchemy_mate-project
e9f7cf7434c984f391758b9b915dad1e1cc774f9
[ "MIT" ]
1
2020-12-05T23:16:20.000Z
2020-12-05T23:16:20.000Z
sqlalchemy_mate/pkg/timeout_decorator/timeout_decorator.py
MacHu-GWU/sqlalchemy_mate-project
e9f7cf7434c984f391758b9b915dad1e1cc774f9
[ "MIT" ]
1
2021-04-12T07:35:31.000Z
2021-04-12T07:35:31.000Z
""" Timeout decorator. :copyright: (c) 2012-2013 by PN. :license: MIT, see LICENSE for more details. """ from __future__ import print_function from __future__ import unicode_literals from __future__ import division import sys import time import multiprocessing import signal from functools import wraps ######...
38.160714
118
0.64015
2a8aec9f5414be2a20ba5437d71f562d96bfa9f6
385
py
Python
testing/test_python_org.py
SShahabb/notes
6ffdaee4093b113342e8e29ebca74f306ee88a25
[ "BSD-2-Clause" ]
null
null
null
testing/test_python_org.py
SShahabb/notes
6ffdaee4093b113342e8e29ebca74f306ee88a25
[ "BSD-2-Clause" ]
null
null
null
testing/test_python_org.py
SShahabb/notes
6ffdaee4093b113342e8e29ebca74f306ee88a25
[ "BSD-2-Clause" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time browser = webdriver.Chrome() browser.get("http://www.python.org") assert "Python" in browser.title elem = browser.find_element_by_name("q") elem.clear() elem.send_keys("pycon") elem.send_keys(Keys.RETURN) assert "No results fo...
21.388889
53
0.779221
6ccd6d7798386a9652e2e8a49a9ca1b46b8bfe57
476
py
Python
configs/deeplabv3/deeplabv3_r50-d8-selfsup_512x512_20k_sn6_sar_pro.py
yoyoyoohh/spacenet6
57829afb6a642d96c30c42434929080b6d927fb4
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3/deeplabv3_r50-d8-selfsup_512x512_20k_sn6_sar_pro.py
yoyoyoohh/spacenet6
57829afb6a642d96c30c42434929080b6d927fb4
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3/deeplabv3_r50-d8-selfsup_512x512_20k_sn6_sar_pro.py
yoyoyoohh/spacenet6
57829afb6a642d96c30c42434929080b6d927fb4
[ "Apache-2.0" ]
null
null
null
''' Author: Shuailin Chen Created Date: 2021-09-14 Last Modified: 2021-09-29 content: ''' _base_ = [ '../_base_/models/deeplabv3_r50-d8.py', '../_base_/datasets/sn6_sar_pro.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_20k.py' ] model = dict( pretrained='/home/csl/code/PolSAR_Sel...
28
118
0.72479
cf8257e2247363011d33e47e2a9e2d94d9d1fb6c
1,271
py
Python
testproject/testapp/migrations/0001_initial.py
Alir3z4/django-cuser
53689952b24e26247870839876e18c9459bcfc3f
[ "BSD-3-Clause" ]
35
2015-02-20T17:19:52.000Z
2021-11-26T17:46:54.000Z
testproject/testapp/migrations/0001_initial.py
Alir3z4/django-cuser
53689952b24e26247870839876e18c9459bcfc3f
[ "BSD-3-Clause" ]
8
2016-02-24T23:16:52.000Z
2017-10-09T13:07:12.000Z
testproject/testapp/migrations/0001_initial.py
Alir3z4/django-cuser
53689952b24e26247870839876e18c9459bcfc3f
[ "BSD-3-Clause" ]
12
2015-06-06T12:58:43.000Z
2020-12-25T05:51:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-14 17:07 from __future__ import unicode_literals import cuser.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies ...
34.351351
202
0.628639
97320195bc46109efc4887a77d5c8f3b2fc7fc31
3,953
py
Python
dev/local/callback/progress.py
tank671/fastai_dev
aa9ff3f78ac560881f46f7161c0c17a6ca38e87b
[ "Apache-2.0" ]
1
2019-10-22T11:47:38.000Z
2019-10-22T11:47:38.000Z
dev/local/callback/progress.py
tank671/fastai_dev
aa9ff3f78ac560881f46f7161c0c17a6ca38e87b
[ "Apache-2.0" ]
5
2019-10-28T23:03:36.000Z
2019-11-04T23:41:04.000Z
dev/local/callback/progress.py
tank671/fastai_dev
aa9ff3f78ac560881f46f7161c0c17a6ca38e87b
[ "Apache-2.0" ]
null
null
null
#AUTOGENERATED! DO NOT EDIT! File to edit: dev/16_callback_progress.ipynb (unless otherwise specified). __all__ = ['ProgressCallback', 'ShowGraphCallback', 'CSVLogger'] #Cell from ..test import * from ..basics import * #Cell @docs class ProgressCallback(Callback): "A `Callback` to handle the display of progress ...
39.138614
113
0.662282
29ddc61d7e540cf34f3f32eff428f83bdf61e870
445
py
Python
backend_rest/websocket/migrations/0004_alter_callgroup_id.py
ezrankayamba/twiga_sales
78ea9a35db7e75f3492f03559662808cb3ad59f3
[ "MIT" ]
null
null
null
backend_rest/websocket/migrations/0004_alter_callgroup_id.py
ezrankayamba/twiga_sales
78ea9a35db7e75f3492f03559662808cb3ad59f3
[ "MIT" ]
33
2020-03-14T17:29:33.000Z
2022-03-12T00:19:30.000Z
backend_rest/websocket/migrations/0004_alter_callgroup_id.py
ezrankayamba/twiga_sales
78ea9a35db7e75f3492f03559662808cb3ad59f3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-22 11:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('websocket', '0003_alter_callgroup_id'), ] operations = [ migrations.AlterField( model_name='callgroup', name='id', ...
23.421053
108
0.626966
13e7e242ad5f03a4249e26c07960e036de6d6ec0
139,618
py
Python
pycocosn/classes.py
RobFirth/pycoco
1c9be662b6dd67f8be5423568bb3ecbff2979492
[ "MIT" ]
1
2018-06-06T06:58:36.000Z
2018-06-06T06:58:36.000Z
pycocosn/classes.py
RobFirth/pycoco
1c9be662b6dd67f8be5423568bb3ecbff2979492
[ "MIT" ]
7
2017-12-11T20:07:37.000Z
2018-01-21T14:40:29.000Z
pycocosn/classes.py
RobFirth/pycoco
1c9be662b6dd67f8be5423568bb3ecbff2979492
[ "MIT" ]
null
null
null
""" Workhorse classes for interacting/running the CoCo templates. author: Rob Firth; github.com/RobFirth ; University of Southampton SN Group 2017 """ from __future__ import print_function ## Force python3-like printing import os import re import warnings from collections import OrderedDict import astropy....
36.264416
215
0.540124
3e8cb1c7782a4d5f9f2e42df1e1139416f3c46ff
3,756
py
Python
autobahn/twisted/test/test_choosereactor.py
player0k/twisted_websocket_example
cd268e1e2eda3211b19941a227de9842b8ae303a
[ "MIT" ]
11
2016-09-14T21:58:37.000Z
2019-01-28T21:56:14.000Z
autobahn/twisted/test/test_choosereactor.py
gruns/autobahn-python
3dbea62675247a9d15626aebe9cafc4b1182d8d9
[ "MIT" ]
null
null
null
autobahn/twisted/test/test_choosereactor.py
gruns/autobahn-python
3dbea62675247a9d15626aebe9cafc4b1182d8d9
[ "MIT" ]
1
2019-12-26T21:33:12.000Z
2019-12-26T21:33:12.000Z
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
33.535714
79
0.65016
7b238d0912350580de3c75499ed74cceeb4f3383
754
py
Python
crossfit/dictribution/management/commands/start_dictribution_cycle.py
googlewaitme/tg_crossfit_bot
ac9475f4c40648194c5d1c9e5d9c9f7e917b5e0a
[ "MIT" ]
null
null
null
crossfit/dictribution/management/commands/start_dictribution_cycle.py
googlewaitme/tg_crossfit_bot
ac9475f4c40648194c5d1c9e5d9c9f7e917b5e0a
[ "MIT" ]
null
null
null
crossfit/dictribution/management/commands/start_dictribution_cycle.py
googlewaitme/tg_crossfit_bot
ac9475f4c40648194c5d1c9e5d9c9f7e917b5e0a
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand import time from django.utils.timezone import now from dictribution.models import Dictribution from .utils.sendler_messages import send_dictribution import asyncio class Command(BaseCommand): help = 'Запуск цикла ожидания, новой рассылки' def handle(self, *...
34.272727
91
0.685676
89efd528f32faf8af7d3632dc331928f76f87430
7,722
py
Python
kubernetes/client/models/v1_node_config_status.py
fsduser/python
2b20069ebc05283352fbdc95bbdca2b6133a4175
[ "Apache-2.0" ]
1
2021-10-15T13:05:45.000Z
2021-10-15T13:05:45.000Z
kubernetes/client/models/v1_node_config_status.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
10
2020-10-01T03:15:01.000Z
2022-03-01T03:06:31.000Z
kubernetes/client/models/v1_node_config_status.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.19 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
38.41791
1,054
0.656954
9a120b75869322846b93199e4c3316d37b7e7952
2,481
py
Python
kringlecon-2020/dns-resp.py
amirootyet/ctf-solutions
03315cff902a767a34d54bbbf9ff8e05038cb97d
[ "MIT" ]
null
null
null
kringlecon-2020/dns-resp.py
amirootyet/ctf-solutions
03315cff902a767a34d54bbbf9ff8e05038cb97d
[ "MIT" ]
null
null
null
kringlecon-2020/dns-resp.py
amirootyet/ctf-solutions
03315cff902a767a34d54bbbf9ff8e05038cb97d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from scapy.all import * import netifaces as ni import uuid import datetime import time # Our eth0 IP ipaddr = ni.ifaddresses('eth0')[ni.AF_INET][0]['addr'] # Our Mac Addr macaddr = ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1]) # destination ip we arp spoofed...
37.590909
107
0.607013
06d359c103dfebce5cf0170a0de482adaf9165dd
12,278
py
Python
usdmanager/parser.py
VikingScientist/usdmanager
9c1433fdcb570736225c82c5187c0fea7b9fe06f
[ "Apache-2.0" ]
1
2021-04-17T07:24:15.000Z
2021-04-17T07:24:15.000Z
usdmanager/parser.py
VikingScientist/usdmanager
9c1433fdcb570736225c82c5187c0fea7b9fe06f
[ "Apache-2.0" ]
null
null
null
usdmanager/parser.py
VikingScientist/usdmanager
9c1433fdcb570736225c82c5187c0fea7b9fe06f
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 DreamWorks Animation L.L.C. # # 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 agre...
38.731861
305
0.578189
2269e9935e6716f6768c4dcd95ea0b2b3a4cb95a
1,442
py
Python
examples/simplecube_p2p_low_energy.py
abcamiletto/urdf2optcontrol
39b3f761a4685cc7d50b48793b6b2906c89b1694
[ "MIT" ]
null
null
null
examples/simplecube_p2p_low_energy.py
abcamiletto/urdf2optcontrol
39b3f761a4685cc7d50b48793b6b2906c89b1694
[ "MIT" ]
null
null
null
examples/simplecube_p2p_low_energy.py
abcamiletto/urdf2optcontrol
39b3f761a4685cc7d50b48793b6b2906c89b1694
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from urdf2optcontrol import optimizer from matplotlib import pyplot as plt import pathlib # URDF options urdf_path = pathlib.Path(__file__).parent.joinpath('urdf', 'simplecube.urdf').absolute() root = "cube_base" # "world" end = "link" # point to point low energy in_cond = [0, 0] def my...
22.888889
88
0.691401
bbb20c52eafc88c8d79cb68fcbe79f4fd524be08
4,902
py
Python
ScienceDirect/database_create/find_pdf.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
5
2020-03-02T23:38:36.000Z
2021-01-22T04:00:23.000Z
ScienceDirect/database_create/find_pdf.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
ScienceDirect/database_create/find_pdf.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
import htm_saver as ha import pandas as pd import numpy as np import re import requests import htm_saver as ha import find_count as fc import json def find_result_items(soup): ret=[] body=soup items=body.select('li.ResultItem') print(f'[find_result_items]:items-count({len(items)})') for item in items: ...
19.52988
104
0.655651
6c3ea8e4e5607fc0c5f2b3fc81646818425969b2
358
py
Python
testdata/generate_random_data.py
Engin-Boot/environment-case-s1b12
c7687cf9cdd927442ba4bd43cad573ce6f01e98b
[ "MIT" ]
null
null
null
testdata/generate_random_data.py
Engin-Boot/environment-case-s1b12
c7687cf9cdd927442ba4bd43cad573ce6f01e98b
[ "MIT" ]
null
null
null
testdata/generate_random_data.py
Engin-Boot/environment-case-s1b12
c7687cf9cdd927442ba4bd43cad573ce6f01e98b
[ "MIT" ]
null
null
null
import random import csv n_values = 20 with open('temperature-humidity.csv', 'w') as csvfile: fieldnames = ['Temperature', 'Humidity'] writer = csv.DictWriter(csvfile, fieldnames=fieldnames) writer.writeheader() for _ in range(n_values): writer.writerow({'Temperature' : random.randint(0, 50),...
29.833333
101
0.692737
fdff8f117436d5ce84d74ee171801404c36ed9c3
10,324
py
Python
gpt_2/download_docs.py
kwrobert/scarlett
90bad661be1e0f3488c1162cf2a33d49508600db
[ "Apache-2.0", "MIT" ]
null
null
null
gpt_2/download_docs.py
kwrobert/scarlett
90bad661be1e0f3488c1162cf2a33d49508600db
[ "Apache-2.0", "MIT" ]
null
null
null
gpt_2/download_docs.py
kwrobert/scarlett
90bad661be1e0f3488c1162cf2a33d49508600db
[ "Apache-2.0", "MIT" ]
null
null
null
import os.path import pprint import csv import re import argparse import pathlib from googleapiclient import errors from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials # ...
36.352113
134
0.596959
291307b4848fc401df7865968b9cace6b293ab53
463
py
Python
scenarios/Launch-Blackwell-Scenario-4.py
colouryen/SUMO-V2X-Communication-Research-Platooning-and-CIM
9bcf67af2a371324b7553aa51f6ff2fd17214acc
[ "MIT" ]
1
2020-11-05T09:41:42.000Z
2020-11-05T09:41:42.000Z
scenarios/Launch-Blackwell-Scenario-4.py
colouryen/SUMO-V2X-Communication-Research-Platooning-and-CIM
9bcf67af2a371324b7553aa51f6ff2fd17214acc
[ "MIT" ]
null
null
null
scenarios/Launch-Blackwell-Scenario-4.py
colouryen/SUMO-V2X-Communication-Research-Platooning-and-CIM
9bcf67af2a371324b7553aa51f6ff2fd17214acc
[ "MIT" ]
null
null
null
import os import sys import traci sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from src.simulationmanager import SimulationManager from src.simlib import setUpSimulation setUpSimulation("../maps/BlackwellTunnelNorthApproach_no_TLS/BlackwellTunnelNorthApproach_no_TLS.sumocfg", 1) step =...
27.235294
109
0.799136
22695bcb6793b3dc02eac1ebe387160f84c2dd27
688
py
Python
mi-extraction-from-bert-layers/scripts/convert_conll_to_raw.py
singnet/language-modeling
70d78f61115b4df520845820719e5e14c6b40f91
[ "MIT" ]
1
2019-03-21T08:11:49.000Z
2019-03-21T08:11:49.000Z
mi-extraction-from-bert-layers/scripts/convert_conll_to_raw.py
singnet/language-modeling
70d78f61115b4df520845820719e5e14c6b40f91
[ "MIT" ]
null
null
null
mi-extraction-from-bert-layers/scripts/convert_conll_to_raw.py
singnet/language-modeling
70d78f61115b4df520845820719e5e14c6b40f91
[ "MIT" ]
3
2019-03-21T08:08:16.000Z
2019-05-15T07:11:27.000Z
""" Embarassingly simple (should I have written it in bash?) script for turning conll-formatted files to sentence-per-line whitespace-tokenized files. Takes the filepath at sys.argv[1]; writes to stdout """ #en_ewt-ud-train.txt import sys import argparse argp = argparse.ArgumentParser() argp.add_argument('--input_co...
23.724138
101
0.697674
eb416f7703675b8f39845ae65dca7993ef587de2
9,358
py
Python
srModule/Model.py
LXG-Shadow/SongRecogn
e02363db5dc40b6128c46f19249044c94e5ba425
[ "Apache-2.0" ]
22
2019-02-25T20:58:58.000Z
2021-07-15T01:45:00.000Z
srModule/Model.py
aynakeya/SongRecogn
e02363db5dc40b6128c46f19249044c94e5ba425
[ "Apache-2.0" ]
4
2021-04-07T13:27:44.000Z
2021-06-15T17:32:04.000Z
srModule/Model.py
aynakeya/SongRecogn
e02363db5dc40b6128c46f19249044c94e5ba425
[ "Apache-2.0" ]
4
2020-05-16T14:08:24.000Z
2021-06-07T08:59:07.000Z
from . import AudioDecoder,Fingerprint,Database from .Config import srConfig from sqlalchemy.orm import sessionmaker,session,scoped_session import os,threading,time,random,gc,multiprocessing class Audio(object): db,db_enigne = Database.initSession() def __init__(self,filepath,filename,filehash): self....
34.531365
173
0.585916
f7560e6c6f2cffef71f837780bc97501e078a478
18,559
py
Python
sync/sync.py
vaikas/website-2
b57417551e339275d542cd6547daa3f4cae2be30
[ "Apache-2.0" ]
51
2019-03-13T10:56:02.000Z
2021-11-07T14:01:08.000Z
sync/sync.py
vaikas/website-2
b57417551e339275d542cd6547daa3f4cae2be30
[ "Apache-2.0" ]
357
2019-03-12T09:06:30.000Z
2022-03-28T13:37:14.000Z
sync/sync.py
vaikas/website-2
b57417551e339275d542cd6547daa3f4cae2be30
[ "Apache-2.0" ]
89
2019-03-11T18:02:42.000Z
2022-03-21T10:29:15.000Z
#!/usr/bin/env python # Copyright 2020 The Tekton 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 by applicable...
38.030738
114
0.663775
276822e7013813422e93df055536ce95826096f7
739
py
Python
script/feature/edgePacketConcentration.py
hjw95/website-fingerprinting
6b141c2cc7821417bab8367d9c0bcda5f5a1badd
[ "MIT" ]
null
null
null
script/feature/edgePacketConcentration.py
hjw95/website-fingerprinting
6b141c2cc7821417bab8367d9c0bcda5f5a1badd
[ "MIT" ]
null
null
null
script/feature/edgePacketConcentration.py
hjw95/website-fingerprinting
6b141c2cc7821417bab8367d9c0bcda5f5a1badd
[ "MIT" ]
null
null
null
import numpy def generateFeature(data): feature = [] dataLength = len(data["packets"]) chunkSize = 30 firstIncoming = 0 firstOutgoing = 0 lastIncoming = 0 lastOutgoing = 0 for i in range(chunkSize): firstIndex = i lastIndex = dataLength - i -1 if(data["packets"]...
26.392857
70
0.589986
fb26b9da989574c95697567b3f77203ec734add1
608
py
Python
lintcode/0977-base-7.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/0977-base-7.py
runzezhang/Code-NoteBook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
null
null
null
lintcode/0977-base-7.py
runzezhang/Code-NoteBook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
null
null
null
# Description # Given an integer, return its base 7 string representation. # Example # Example 1: # input: num = 100 # outut: 202 # Example 2: # input: num = -7 # outut: -10 class Solution: """ @param num: the given number @return: The base 7 string representation """ def convertToBase7(self, num...
20.965517
60
0.5
32c20dd3699a65a97e91120e793ea4d85d32234b
16,507
py
Python
scalecodec/block.py
OAK-Foundation/py-scale-codec
9c8b3c5cd39e639fad1b5f420d914b5dd6b26ac0
[ "Apache-2.0" ]
null
null
null
scalecodec/block.py
OAK-Foundation/py-scale-codec
9c8b3c5cd39e639fad1b5f420d914b5dd6b26ac0
[ "Apache-2.0" ]
null
null
null
scalecodec/block.py
OAK-Foundation/py-scale-codec
9c8b3c5cd39e639fad1b5f420d914b5dd6b26ac0
[ "Apache-2.0" ]
null
null
null
# Python SCALE Codec Library # # Copyright 2018-2020 Stichting Polkascan (Polkascan Foundation). # # 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...
32.88247
121
0.606288
406fe18a482112d1dc5b2f19308fee223f674dc2
5,875
py
Python
core/scanner/vulnscan.py
skelsec/secop
8e31c730883df3daae317bbdc63e33727d65f5c1
[ "MIT" ]
1
2021-01-21T10:11:48.000Z
2021-01-21T10:11:48.000Z
core/scanner/vulnscan.py
skelsec/secop
8e31c730883df3daae317bbdc63e33727d65f5c1
[ "MIT" ]
null
null
null
core/scanner/vulnscan.py
skelsec/secop
8e31c730883df3daae317bbdc63e33727d65f5c1
[ "MIT" ]
null
null
null
import multiprocessing import queue import threading import json from datetime import datetime import enum import logging from sqlalchemy import MetaData, Table from ..db.datamodel import db, app, project, portscanner, target, vulnLookupTable from ..utils import Ports, PortStatus class WorkerCommand(enum.Enum): STO...
27.58216
115
0.676085
2de18a93fdcacd7641968424fffa6d8aa9c0aef7
4,641
py
Python
pyEX/account/__init__.py
jmailloux/pyEX
2101e8c53a9080ea8b00b28a758be441095d5048
[ "Apache-2.0" ]
null
null
null
pyEX/account/__init__.py
jmailloux/pyEX
2101e8c53a9080ea8b00b28a758be441095d5048
[ "Apache-2.0" ]
null
null
null
pyEX/account/__init__.py
jmailloux/pyEX
2101e8c53a9080ea8b00b28a758be441095d5048
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # # Copyright (c) 2020, the pyEX authors. # # This file is part of the pyEX library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from functools import wraps import pandas a...
33.15
295
0.650722
f6a3dd9a7805214e5b632944280c0541baa1adcc
2,534
py
Python
autosetup/targets/spec-cpu2006/measuremem.py
vusec/dangsan
72b3d813683359f8f3d3a168bca9d7c691340cef
[ "Apache-2.0" ]
53
2017-04-10T18:37:44.000Z
2021-05-21T09:52:31.000Z
autosetup/targets/spec-cpu2006/measuremem.py
vusec/type-after-type
976fc47a3b4e45e5abdd4438d931dce801a11a80
[ "MIT" ]
3
2018-11-20T10:12:04.000Z
2020-03-05T07:45:32.000Z
autosetup/targets/spec-cpu2006/measuremem.py
vusec/dangsan
72b3d813683359f8f3d3a168bca9d7c691340cef
[ "Apache-2.0" ]
17
2017-04-14T19:11:54.000Z
2022-03-16T20:15:49.000Z
#!/usr/bin/python import math import os import re import subprocess import sys def commandNew(argv, stdin, stdout, stderr): return (argv, stdin, stdout, stderr) def getRundir(specdir, instancename, benchmark): return "%s/benchspec/CPU2006/%s/run/run_base_ref_MetAlloc-%s.0000" % (specdir, benchmark, instancename) ...
26.673684
104
0.696527
f844cce3635f22584a5155f213371ba7ca082569
3,313
py
Python
scripts/docker_run.py
USC-CSCI527-Spring2021/LingoRobo
433eb60094d9337b490f758c107e9d27d2e4be37
[ "MIT" ]
24
2020-12-10T12:52:37.000Z
2021-10-04T00:26:41.000Z
scripts/docker_run.py
USC-CSCI527-Spring2021/LingoRobo
433eb60094d9337b490f758c107e9d27d2e4be37
[ "MIT" ]
5
2021-03-17T09:19:50.000Z
2022-03-13T12:28:22.000Z
scripts/docker_run.py
USC-CSCI527-Spring2021/LingoRobo
433eb60094d9337b490f758c107e9d27d2e4be37
[ "MIT" ]
15
2020-12-06T20:30:48.000Z
2022-02-28T04:48:18.000Z
#!/usr/bin/env python from __future__ import print_function ######### # Credit: https://github.com/RobotLocomotion/pytorch-dense-correspondence/blob/master/docker/docker_run.py ######### import argparse import os import socket import getpass import yaml if __name__=="__main__": user_name = getpass.getuser() ...
37.647727
260
0.618775
df10ca7c6338b9d28e63872d7c6bf761b34c17b0
1,045
py
Python
CompareVersionNumbers.py
pauloadaoag/leetcode
6e6078ab237b2c912b9e0806a0bdf731fd2204e9
[ "MIT" ]
null
null
null
CompareVersionNumbers.py
pauloadaoag/leetcode
6e6078ab237b2c912b9e0806a0bdf731fd2204e9
[ "MIT" ]
null
null
null
CompareVersionNumbers.py
pauloadaoag/leetcode
6e6078ab237b2c912b9e0806a0bdf731fd2204e9
[ "MIT" ]
null
null
null
class Solution: # @param version1, a string # @param version2, a string # @return an integer def compareVersion(self, version1, version2): v1_ = version1.split(".") v2_ = version2.split(".") v1_.reverse() v2_.reverse() v1 = [] v2 = [] start = False...
26.125
49
0.41244
40c8441c6822eafbaa0f7ff92cc15e9df9465477
5,366
py
Python
zerver/views/report.py
vabs22/zulip
470d0a481c0a990a81b2facc6dac63364791178a
[ "Apache-2.0" ]
null
null
null
zerver/views/report.py
vabs22/zulip
470d0a481c0a990a81b2facc6dac63364791178a
[ "Apache-2.0" ]
11
2020-06-05T18:43:08.000Z
2022-03-02T14:55:12.000Z
zerver/views/report.py
vabs22/zulip
470d0a481c0a990a81b2facc6dac63364791178a
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from typing import Any, Dict, Optional, Text from django.conf import settings from django.http import HttpRequest, HttpResponse from zerver.decorator import authenticated_json_post_view, has_request_variables, REQ, \ to_non_negative_int from zerver.lib.response import json_s...
44.716667
106
0.676109
9f9e28524bcf804638e5a2d214a5ede4344095bd
807
py
Python
hazelcast/protocol/codec/map_evict_all_codec.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
3
2020-05-01T15:01:54.000Z
2021-01-27T14:51:45.000Z
hazelcast/protocol/codec/map_evict_all_codec.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/map_evict_all_codec.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
1
2020-12-01T20:00:35.000Z
2020-12-01T20:00:35.000Z
from hazelcast.serialization.bits import * from hazelcast.protocol.client_message import ClientMessage from hazelcast.protocol.codec.map_message_type import * REQUEST_TYPE = MAP_EVICTALL RESPONSE_TYPE = 100 RETRYABLE = False def calculate_size(name): """ Calculates the request payload size""" data_size = 0 ...
28.821429
81
0.788104
199b7b08bdf22c62d580494ff92c16fb6bff5478
1,788
py
Python
tests/unit/bokeh/application/test___init___application.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/application/test___init___application.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/application/test___init___application.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
35.76
78
0.213647
c0ea3918e6753a512e0537a2625f56d3759050f4
126
py
Python
unittests/wikipedia_search_test.py
brainsqueeze/toddler-chatbot
3cbe130a2d380006ffe03cc312d91c317e0bb92b
[ "MIT" ]
null
null
null
unittests/wikipedia_search_test.py
brainsqueeze/toddler-chatbot
3cbe130a2d380006ffe03cc312d91c317e0bb92b
[ "MIT" ]
null
null
null
unittests/wikipedia_search_test.py
brainsqueeze/toddler-chatbot
3cbe130a2d380006ffe03cc312d91c317e0bb92b
[ "MIT" ]
null
null
null
import wikipedia hits = wikipedia.search('neutrino') page = wikipedia.page(hits[0], auto_suggest=False) print(page.content)
18
50
0.769841
8931042d023778ef8e37bf872cec615a82633def
470
py
Python
domain_api/migrations/0008_topleveldomain_slug.py
heytrav/drs-project
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
1
2020-07-01T02:35:14.000Z
2020-07-01T02:35:14.000Z
domain_api/migrations/0008_topleveldomain_slug.py
heytrav/drs-api
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
2
2020-06-05T17:25:14.000Z
2021-03-19T21:53:44.000Z
domain_api/migrations/0008_topleveldomain_slug.py
heytrav/drs-api
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-04 22:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('domain_api', '0007_auto_20170330_0850'), ] operations = [ migrations.AddFie...
22.380952
62
0.625532
87d70824b2c503a3a0c24b8a045ef377748c49d2
9,233
py
Python
lantz/drivers/tektronix/awg5000.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
4
2019-05-04T00:10:53.000Z
2020-10-22T18:08:40.000Z
lantz/drivers/tektronix/awg5000.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
3
2019-07-12T13:44:17.000Z
2020-10-22T19:32:08.000Z
lantz/drivers/tektronix/awg5000.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
9
2019-04-03T17:07:03.000Z
2021-02-15T21:53:55.000Z
""" lantz.drivers.tektronix.awg5000 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Drivers for the Tektronix 5000 series AWG Authors: Alexandre Bourassa, Kevin Miao Date: September 14, 2016 """ import ftplib as _ftp import os as _os import re import time as _t from enum import Enum from lantz.core import Action, ...
33.33213
119
0.585075
a894f69ae24e21be03739610b5cff7ebfbd8c9f5
476
py
Python
src/twisted/__init__.py
mmilata/twisted
a24e9345c609f824a813febfc6af7f350812dbc0
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/__init__.py
mmilata/twisted
a24e9345c609f824a813febfc6af7f350812dbc0
[ "Unlicense", "MIT" ]
1
2020-03-30T13:07:04.000Z
2020-03-31T08:11:14.000Z
src/twisted/__init__.py
mmilata/twisted
a24e9345c609f824a813febfc6af7f350812dbc0
[ "Unlicense", "MIT" ]
null
null
null
# -*- test-case-name: twisted -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Twisted: The Framework Of Your Internet. """ # setup version from twisted._version import __version__ as version __version__ = version.short() from incremental import Version from twisted.python.deprecate...
19.833333
62
0.728992
eda9d3e902204eb765c85ab9dd0d36ec594672f2
14,228
py
Python
doc/source/conf.py
josenavas/scikit-bio
5fae6925b2ed0c987d33246b18c285018cef7c0c
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
josenavas/scikit-bio
5fae6925b2ed0c987d33246b18c285018cef7c0c
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
josenavas/scikit-bio
5fae6925b2ed0c987d33246b18c285018cef7c0c
[ "BSD-3-Clause" ]
null
null
null
import glob import sys import os import sphinx_bootstrap_theme import skbio from skbio.util import classproperty # NOTE: parts of this file were taken from scipy's doc/source/conf.py. See # scikit-bio/licenses/scipy.txt for scipy's license. # If extensions (or modules to document with autodoc) are in another direct...
30.997821
80
0.661021
cd26448d83dcc8450e4d6947c117ef2af8cbff1d
601
py
Python
portal/migrations/0004_auto_20180414_1322.py
paulbellmann/placez
4808226a603696ce48bae7ae81b55d9b497b345f
[ "MIT" ]
null
null
null
portal/migrations/0004_auto_20180414_1322.py
paulbellmann/placez
4808226a603696ce48bae7ae81b55d9b497b345f
[ "MIT" ]
null
null
null
portal/migrations/0004_auto_20180414_1322.py
paulbellmann/placez
4808226a603696ce48bae7ae81b55d9b497b345f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-14 13:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portal', '0003_point'), ] operations = [ migrations.AlterField( ...
23.115385
61
0.577371
327cef47585dd36d208061b1f9d68bcc7cb7dd2e
798
py
Python
SoftLayer/CLI/image/export.py
Jorge-Rodriguez/softlayer-python
ecd5d1be75433b84fa9bf3b842dd2336c3bb6993
[ "MIT" ]
1
2020-07-07T12:18:40.000Z
2020-07-07T12:18:40.000Z
SoftLayer/CLI/image/export.py
underscorephil/softlayer-python
567540a328d5258e55594466127cd22b9a04a2ea
[ "MIT" ]
null
null
null
SoftLayer/CLI/image/export.py
underscorephil/softlayer-python
567540a328d5258e55594466127cd22b9a04a2ea
[ "MIT" ]
1
2020-07-07T12:18:26.000Z
2020-07-07T12:18:26.000Z
"""Export an image.""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import exceptions from SoftLayer.CLI import helpers @click.command() @click.argument('identifier') @click.argument('uri') @environment.pass_env def cli(env, id...
27.517241
77
0.734336
4fae050b70e3c2edd87610ed16460c3ac245ed99
426
py
Python
week 6/exercise_3.py
the-mba/progra
b384c1afaee945b55751c09898f2239f9fd1bf98
[ "MIT" ]
null
null
null
week 6/exercise_3.py
the-mba/progra
b384c1afaee945b55751c09898f2239f9fd1bf98
[ "MIT" ]
null
null
null
week 6/exercise_3.py
the-mba/progra
b384c1afaee945b55751c09898f2239f9fd1bf98
[ "MIT" ]
null
null
null
import random list_float = [] valid = False total = 0 while not valid: length_list = int(input("Please, input the desired length for the float list: ")) if length_list > 0: valid = True for i in range(length_list): list_float.append(random.uniform(1, 49)) total += int(list_float[-1]) print("...
25.058824
85
0.671362
2b4f0d9323cc3bc5b2f955254e872b65479eeb27
75,414
py
Python
src/olympia/devhub/views.py
zjzh/addons-server
bbac7ff70f94443336f5fb0543ab8126a6adf76a
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/views.py
zjzh/addons-server
bbac7ff70f94443336f5fb0543ab8126a6adf76a
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/views.py
zjzh/addons-server
bbac7ff70f94443336f5fb0543ab8126a6adf76a
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import time from urllib.parse import quote from uuid import UUID, uuid4 from django import forms as django_forms, http from django.conf import settings from django.core.exceptions import PermissionDenied from django.core.files.storage import default_storage as storage from django.db import t...
35.355837
88
0.630466
8dc998887c54deb8992a423f385b6517e67d8120
2,374
py
Python
BackwardEuler.py
mirianfsilva/heat-diffusion-equation
e0d8fcc78c153ce9b1c90d5ef7b5dcb4ffb2ed4c
[ "MIT" ]
16
2019-11-25T11:20:14.000Z
2022-02-28T19:37:22.000Z
BackwardEuler.py
mirianfsilva/The-Heat-Diffusion-Equation
e0d8fcc78c153ce9b1c90d5ef7b5dcb4ffb2ed4c
[ "MIT" ]
null
null
null
BackwardEuler.py
mirianfsilva/The-Heat-Diffusion-Equation
e0d8fcc78c153ce9b1c90d5ef7b5dcb4ffb2ed4c
[ "MIT" ]
null
null
null
''' Backward method to solve 1D reaction-diffusion equation: u_t = k * u_xx with Neumann boundary conditions at x=0: u_x(0,t) = 0 = sin(2*np.pi) at x=L: u_x(L,t) = 0 = sin(2*np.pi) with L = 1 and initial conditions: u(x,0) = (1.0/2.0)+ np.cos(2.0*np.pi*x) - (1.0/2.0)*np.cos(3*np.pi*x) u_x(x,t) = (-4.0*(...
28.95122
81
0.509267
d170f0454b26f4b3ea823d3fbc4f12a94542e8f7
98
py
Python
tests/camera_test/serial_dump.py
dkkline/CanSat14-15
153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1
[ "MIT" ]
null
null
null
tests/camera_test/serial_dump.py
dkkline/CanSat14-15
153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1
[ "MIT" ]
null
null
null
tests/camera_test/serial_dump.py
dkkline/CanSat14-15
153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1
[ "MIT" ]
null
null
null
from serial import Serial ser = Serial("/dev/ttyACM0", 9600) while True: print(ser.read())
12.25
34
0.673469
229fa26bcbeed9514657ee3aaa98e8ab3b674995
13,829
py
Python
k2/python/tests/fsa_test.py
open-speech/sequeender
7a64e1a7d8a4b05b0b82e17c542f9f7f943a41e0
[ "MIT" ]
5
2020-11-19T15:49:55.000Z
2021-06-10T23:51:52.000Z
k2/python/tests/fsa_test.py
open-speech/sequeender
7a64e1a7d8a4b05b0b82e17c542f9f7f943a41e0
[ "MIT" ]
null
null
null
k2/python/tests/fsa_test.py
open-speech/sequeender
7a64e1a7d8a4b05b0b82e17c542f9f7f943a41e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Guoguo Chen # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R fsa_test_py -E "host|dense" import unittest import torch import k2 from...
29.739785
79
0.451515
5ac9d631eab7386cc7d5e60384a8ebc6cc820f68
980
py
Python
508_most_freq_subtree_sum.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
508_most_freq_subtree_sum.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
508_most_freq_subtree_sum.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 508. Most Frequent Subtree Sum # # Q: https://leetcode.com/problems/most-frequent-subtree-sum/ # A: https://leetcode.com/problems/most-frequent-subtree-sum/discuss/780522/Javascript-Python3-C%2B%2B-solutions # from typing import List class TreeNode: def __init__(self, val = 0, left = None, right = None): ...
29.69697
112
0.555102
535bd6ffffd28e1556fde77a20389a605eac8924
4,127
py
Python
tests/ut/python/train/summary/test_summary.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
null
null
null
tests/ut/python/train/summary/test_summary.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
null
null
null
tests/ut/python/train/summary/test_summary.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 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 agre...
29.269504
92
0.637509
40c70d7f22a03ca90f24e346973455148584dadc
80
py
Python
setup.py
WilliamJamieson/sphinx-asdf
30282f6bba4e60f919db0ea3dbd1ed1701b8be44
[ "BSD-3-Clause" ]
1
2020-09-07T08:19:37.000Z
2020-09-07T08:19:37.000Z
setup.py
WilliamJamieson/sphinx-asdf
30282f6bba4e60f919db0ea3dbd1ed1701b8be44
[ "BSD-3-Clause" ]
9
2020-09-04T14:35:12.000Z
2021-05-28T15:43:45.000Z
setup.py
kmacdonald-stsci/sphinx-asdf
ea3429161f97706f811ecd5a8a4e6abe90997d93
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2020-09-04T14:39:45.000Z
2021-02-01T21:01:23.000Z
#!/usr/bin/env python from setuptools import setup setup(use_scm_version=True)
16
28
0.8
bc5584b62941223f925b635a1a7a5eb18023db37
112,396
py
Python
02-modifs_v2/unfolded/script_inference_demo_new_models.py
QuentinRougemont/DemographicInference
4c75148f065a626275b3cd424663eb02186f5faa
[ "BSD-3-Clause" ]
8
2017-07-21T19:46:51.000Z
2021-07-02T08:59:43.000Z
02-modifs_v2/unfolded/script_inference_demo_new_models.py
QuentinRougemont/DemographicInference
4c75148f065a626275b3cd424663eb02186f5faa
[ "BSD-3-Clause" ]
3
2016-12-21T03:38:20.000Z
2021-07-08T07:56:59.000Z
02-modifs_v2/unfolded/script_inference_demo_new_models.py
QuentinRougemont/DemographicInference
4c75148f065a626275b3cd424663eb02186f5faa
[ "BSD-3-Clause" ]
6
2016-12-10T03:02:43.000Z
2021-12-23T01:12:55.000Z
#! ~/py33/bin # -*- coding: utf-8 -*- # Library importation import os import sys import getopt import time import matplotlib matplotlib.use('Agg') from scipy import stats import pylab import numpy from numpy import array import dadi #from matplotlib import pyplot as plt import modeledemo_new_models ### To do: add ot...
56.141858
521
0.544397
927a9c6810aa99157bf54d0c5541a8aa01caeea9
3,524
py
Python
mvn/models/canonpose.py
sirfoga/learnable-triangulation-pytorch
5fe56e21e95815f6890695bc05d6ed8ea5db0c62
[ "MIT" ]
1
2021-08-12T04:58:19.000Z
2021-08-12T04:58:19.000Z
mvn/models/canonpose.py
sirfoga/learnable-triangulation-pytorch
5fe56e21e95815f6890695bc05d6ed8ea5db0c62
[ "MIT" ]
1
2021-08-13T19:25:41.000Z
2021-08-16T14:56:00.000Z
mvn/models/canonpose.py
sirfoga/learnable-triangulation-pytorch
5fe56e21e95815f6890695bc05d6ed8ea5db0c62
[ "MIT" ]
1
2021-08-13T11:15:37.000Z
2021-08-13T11:15:37.000Z
import torch import torch.nn as nn from mvn.models.layers import RodriguesBlock # https://pytorch3d.readthedocs.io/en/latest/_modules/pytorch3d/transforms/so3.html def hat(v: torch.Tensor) -> torch.Tensor: N, dim = v.shape if dim != 3: raise ValueError("Input vectors have to be 3-dimensional.") ...
30.643478
115
0.616913
964b705299ed02b3d7d02992d6bd9cd8ae97121a
1,092
py
Python
movie/samples.py
ehsanbarkhordar/shilling-attack-detection-for-recommender-systems
5d4cf5bd6790f8a928aae727264d7d8d485cf760
[ "MIT" ]
2
2020-11-26T06:47:34.000Z
2021-04-23T02:24:56.000Z
movie/samples.py
ehsanbarkhordar/shilling-attack-detection-for-recommender-systems
5d4cf5bd6790f8a928aae727264d7d8d485cf760
[ "MIT" ]
null
null
null
movie/samples.py
ehsanbarkhordar/shilling-attack-detection-for-recommender-systems
5d4cf5bd6790f8a928aae727264d7d8d485cf760
[ "MIT" ]
2
2021-05-08T07:47:56.000Z
2021-09-23T11:27:55.000Z
import seaborn as sns from movie.attacks import insert_random_attack from movie.data import df_ratings from movie.utils import get_optimal_chunk_size, get_sample_entropy_list, \ get_sample_average_list, z_score_entropy_plot, optimum_chunk_size df = df_ratings attack_size = 100 target_movie_id = 70 df_target_movie ...
42
107
0.836996
fe13f37b02e7c6e29250c5a5132275be652a3b80
29,434
py
Python
python/ComputerVision/ComputerVisionQuickstart.py
magrefaat/cognitive-services-quickstart-code
9750f8492bfcb931c8985d751bc4651ab2ed2ec5
[ "MIT" ]
null
null
null
python/ComputerVision/ComputerVisionQuickstart.py
magrefaat/cognitive-services-quickstart-code
9750f8492bfcb931c8985d751bc4651ab2ed2ec5
[ "MIT" ]
null
null
null
python/ComputerVision/ComputerVisionQuickstart.py
magrefaat/cognitive-services-quickstart-code
9750f8492bfcb931c8985d751bc4651ab2ed2ec5
[ "MIT" ]
null
null
null
''' Computer Vision Quickstart for Microsoft Azure Cognitive Services. Uses local and remote images in each example. Prerequisites: - Install the Computer Vision SDK: pip install --upgrade azure-cognitiveservices-vision-computervision - Create folder and collect images: Create a folder called "re...
37.352792
164
0.751648
65a48beba2fadf793f9a022e514b9ff28e098db3
12,730
py
Python
20211026/shutDownBoth/solveMDP_poorLow.py
dongxulee/lifeCycleRefine
6ca9670dea50150aabe31f86578323cec0ab018c
[ "MIT" ]
null
null
null
20211026/shutDownBoth/solveMDP_poorLow.py
dongxulee/lifeCycleRefine
6ca9670dea50150aabe31f86578323cec0ab018c
[ "MIT" ]
null
null
null
20211026/shutDownBoth/solveMDP_poorLow.py
dongxulee/lifeCycleRefine
6ca9670dea50150aabe31f86578323cec0ab018c
[ "MIT" ]
null
null
null
import numpy as np import jax.numpy as jnp from jax.numpy import interp from jax import jit, partial, random, vmap from tqdm import tqdm import warnings warnings.filterwarnings("ignore") np.printoptions(precision=2) ''' Constants ''' # time line, starts at 20 ends at 80 T_min = 0 T_max = 60 T_R = 45 # discountin...
30.309524
127
0.551296
2a758c40cb72597b59eb5c0255998601eec4b6d0
3,759
py
Python
hw/code/search/words.py
akanksha1304/msds692
7b33833df982685c2d39983e6c23dddb90680241
[ "MIT" ]
null
null
null
hw/code/search/words.py
akanksha1304/msds692
7b33833df982685c2d39983e6c23dddb90680241
[ "MIT" ]
null
null
null
hw/code/search/words.py
akanksha1304/msds692
7b33833df982685c2d39983e6c23dddb90680241
[ "MIT" ]
null
null
null
import os import re import string import numpy as np import re def filelist(root): """Return a fully-qualified list of filenames under root directory""" file_list = [] for path, subdirs, files in os.walk(root): for name in files: if name.endswith('.txt'): filepath = os.p...
32.686957
104
0.510242
1e8c334958974f2660570be4dd23086136f7efc8
12,931
py
Python
tests/test_memento.py
gomberg5264/ipwb
2ff7b87f45cd263d765368a3cde557755ee23b06
[ "MIT" ]
470
2016-03-12T13:09:51.000Z
2022-03-31T19:25:35.000Z
tests/test_memento.py
gomberg5264/ipwb
2ff7b87f45cd263d765368a3cde557755ee23b06
[ "MIT" ]
665
2016-03-09T21:34:13.000Z
2022-03-30T00:03:44.000Z
tests/test_memento.py
gomberg5264/ipwb
2ff7b87f45cd263d765368a3cde557755ee23b06
[ "MIT" ]
61
2016-10-10T04:23:58.000Z
2022-03-01T07:58:15.000Z
import pytest from . import testUtil as ipwb_test from ipwb import replay from ipwb import indexer from ipwb import __file__ as moduleLocation from time import sleep import os import subprocess from urllib.request import urlopen import requests import random import string import re import sys def get_urims_from_time...
34.574866
78
0.685252
e9b204b1559269d9f2c9c7d87d55257d36f33173
3,012
py
Python
main.py
DSystemz/pype
beb51cb6abf6442015b3ba4470e1abbb9fbb3a46
[ "MIT" ]
null
null
null
main.py
DSystemz/pype
beb51cb6abf6442015b3ba4470e1abbb9fbb3a46
[ "MIT" ]
null
null
null
main.py
DSystemz/pype
beb51cb6abf6442015b3ba4470e1abbb9fbb3a46
[ "MIT" ]
null
null
null
import re import os import socket import sys import time #TODOS OS COMANDOS UTILIZADOS SÃO DO SISTEMA OPERACIONAL WINDOWS. print (""" [ 1 ] Wi-Fi Capter [ 2 ] Web Info Connect [ 3 ] System Cleaner [ 4 ] ChatBot [ 5 ] Exit """) choice = (int(input('Selecione uma das opções: '))) if choice ==...
28.961538
137
0.5166
aa8f2519148e4e7d3e52af6640f0b75428b963a3
10,388
py
Python
models/base_model.py
karanysingh/SIRR-using-IBCLN
b2dc293a95fc377785d213bc0b609ba354d470b4
[ "BSD-2-Clause" ]
81
2020-03-19T04:41:13.000Z
2022-03-26T11:27:27.000Z
models/base_model.py
karanysingh/SIRR-using-IBCLN
b2dc293a95fc377785d213bc0b609ba354d470b4
[ "BSD-2-Clause" ]
12
2020-05-28T10:15:12.000Z
2021-04-22T08:58:14.000Z
models/base_model.py
JHL-HUST/IBCLN
66056ffd83e873536cf26b76fa9532a40cbfa7fa
[ "BSD-2-Clause" ]
21
2020-06-15T16:06:59.000Z
2022-02-15T14:57:22.000Z
import os import torch from collections import OrderedDict from abc import ABC, abstractmethod from . import networks class BaseModel(ABC): """This class is an abstract base class (ABC) for models. To create a subclass, you need to implement the following five functions: -- <__init__>: ...
44.204255
260
0.601078
68f57342dcdb445eb2c1ef5570f18859f227e695
5,814
py
Python
distill/runner.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
distill/runner.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
distill/runner.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse from copy import deepcopy from dataclasses import dataclass from cli import shared_args from foundations.runner import Runner ...
44.723077
117
0.609391
1d68f2bc180945d4f132fac56fdd0d4090553200
839
py
Python
samples/ch09/activation_function.py
bmoretz/Python-Machine-Learning
206e7905cdcade7e322cee7e60a642d55ebc8955
[ "MIT" ]
null
null
null
samples/ch09/activation_function.py
bmoretz/Python-Machine-Learning
206e7905cdcade7e322cee7e60a642d55ebc8955
[ "MIT" ]
null
null
null
samples/ch09/activation_function.py
bmoretz/Python-Machine-Learning
206e7905cdcade7e322cee7e60a642d55ebc8955
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np plt.figure(1) plt.plot([-2, 0],[0, 0]) plt.plot([0, 0],[0, 1]) plt.plot([0, 2],[1, 1]) plt.xlabel("x") plt.ylabel("heaviside(x)") plt.figure(2) x = np.linspace(-2, 2, 100) y = np.tanh(x) plt.plot(x, y) plt.plot([-2, 2],[0, 0]) plt.plot([0, 0],[-1, 1]) plt.xlabel("x...
19.068182
40
0.562574
c56394272c27659359adea9c615a0c2b54d518be
9,944
py
Python
tests/extras/datasets/pickle/test_pickle_dataset.py
vishalbelsare/kedro
ec3a325aab3e4b1a7f62ca2c3fafed1860c1b531
[ "Apache-2.0" ]
null
null
null
tests/extras/datasets/pickle/test_pickle_dataset.py
vishalbelsare/kedro
ec3a325aab3e4b1a7f62ca2c3fafed1860c1b531
[ "Apache-2.0" ]
null
null
null
tests/extras/datasets/pickle/test_pickle_dataset.py
vishalbelsare/kedro
ec3a325aab3e4b1a7f62ca2c3fafed1860c1b531
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS",...
40.754098
88
0.689562
950e93abb2010a9a0c9d2fb5d722b36efaf7807d
14,765
py
Python
flvcopycat.py
kirisetsz/flvcopycat
8c10dbec0abc274bb0a9749fed279f21b7a53e89
[ "Apache-2.0" ]
2
2015-02-05T21:38:20.000Z
2015-09-04T13:55:40.000Z
flvcopycat.py
kirisetsz/flvcopycat
8c10dbec0abc274bb0a9749fed279f21b7a53e89
[ "Apache-2.0" ]
null
null
null
flvcopycat.py
kirisetsz/flvcopycat
8c10dbec0abc274bb0a9749fed279f21b7a53e89
[ "Apache-2.0" ]
null
null
null
#!/bin/env python #-*- coding: utf-8 -*- #Code for Binary Data Read import struct class EndOfFile(Exception): pass # UI32 def get_ui32(f): try: ret = struct.unpack(">I", f.read(4))[0] except struct.error: raise EndOfFile return ret def make_ui32(num): return struct.pack(">I", num...
29.888664
119
0.536133
86b965ed2ca05059a884beb74cf63c56814b9262
2,522
py
Python
plugins/null.py
LaustinSpayce/bank2ynab
fdd826218d74761073fd8b5d916e88ba371f3daf
[ "MIT" ]
null
null
null
plugins/null.py
LaustinSpayce/bank2ynab
fdd826218d74761073fd8b5d916e88ba371f3daf
[ "MIT" ]
null
null
null
plugins/null.py
LaustinSpayce/bank2ynab
fdd826218d74761073fd8b5d916e88ba371f3daf
[ "MIT" ]
1
2022-02-27T09:17:46.000Z
2022-02-27T09:17:46.000Z
# This is a "null" plugin showing how to write your own. # The procedure is as follows: # 1 - Subclass B2YBank overriding the methods you need - typically just # read_data(path_to_file). See docstrings below for explanations. # 2 - provide build_bank(config_dict, is_py2_bool) which should return an # instan...
38.8
78
0.671689
301def3aec9894fb0a4df8829cea1ae58dfd3416
10,795
py
Python
redfish-tests/test_telemetry.py
aahmed-2/telemetry
7e098e93ef0974739459d296f99ddfab54722c23
[ "Apache-2.0" ]
4
2019-11-14T10:41:34.000Z
2021-12-09T23:54:52.000Z
redfish-tests/test_telemetry.py
aahmed-2/telemetry
7e098e93ef0974739459d296f99ddfab54722c23
[ "Apache-2.0" ]
2
2021-10-04T20:12:53.000Z
2021-12-14T18:13:03.000Z
redfish-tests/test_telemetry.py
aahmed-2/telemetry
7e098e93ef0974739459d296f99ddfab54722c23
[ "Apache-2.0" ]
2
2021-09-28T06:45:53.000Z
2021-12-13T15:30:33.000Z
from redfish_requests import RedfishHttpStatus, RedfishRequest, Duration import pytest import time def test_get_telemetry_service(redfish): r = redfish.get(redfish.telemetry_service_path) assert r['Status']['State'] == 'Enabled', 'Invalid status of service' assert Duration.to_seconds(r['MinCollectionInter...
44.607438
80
0.708476
f917c6f54dd32fb734a3640d78699541f8a86baf
22,413
py
Python
mne/io/fiff/raw.py
joewalter/mne-python
b0629bea7f5e8e94d9e2e889f45a35f9657e6dbc
[ "BSD-3-Clause" ]
null
null
null
mne/io/fiff/raw.py
joewalter/mne-python
b0629bea7f5e8e94d9e2e889f45a35f9657e6dbc
[ "BSD-3-Clause" ]
null
null
null
mne/io/fiff/raw.py
joewalter/mne-python
b0629bea7f5e8e94d9e2e889f45a35f9657e6dbc
[ "BSD-3-Clause" ]
null
null
null
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import cop...
43.101923
79
0.529514
a96d71f414ee61b910a8815d4bf766d04ec98b42
2,413
py
Python
guild/commands/runs_export.py
dwolfschlaeger/guildai
f82102ad950d7c89c8f2c2eafe596b2d7109dc57
[ "Apache-2.0" ]
null
null
null
guild/commands/runs_export.py
dwolfschlaeger/guildai
f82102ad950d7c89c8f2c2eafe596b2d7109dc57
[ "Apache-2.0" ]
null
null
null
guild/commands/runs_export.py
dwolfschlaeger/guildai
f82102ad950d7c89c8f2c2eafe596b2d7109dc57
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 TensorHub, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
27.735632
85
0.646084
496d56aac387c598f906ec542bdc8cd25383739b
1,568
py
Python
backend/userApp/datasource.py
thetongz/stock_trading
756a95d17cbbd2e3ea18e8e18d6d9da877cd71db
[ "MIT" ]
null
null
null
backend/userApp/datasource.py
thetongz/stock_trading
756a95d17cbbd2e3ea18e8e18d6d9da877cd71db
[ "MIT" ]
null
null
null
backend/userApp/datasource.py
thetongz/stock_trading
756a95d17cbbd2e3ea18e8e18d6d9da877cd71db
[ "MIT" ]
null
null
null
class Datasource(object): @staticmethod def createUserDetailSerializer(username): return { 'username': username, 'cash': 1000000, 'stepCount': 1 } @staticmethod def createStockValueDict(stockValue): result = { 'stocks': { ...
27.508772
66
0.524235
620634b0fa62b249d6d64dc37ec9932db87e02ea
1,452
py
Python
python/strings/kmp_string_search.py
bkpathak/HackerRank-Problems
03e118b7caf3e1f85046dffd5e7cbeb48c60ee83
[ "MIT" ]
null
null
null
python/strings/kmp_string_search.py
bkpathak/HackerRank-Problems
03e118b7caf3e1f85046dffd5e7cbeb48c60ee83
[ "MIT" ]
null
null
null
python/strings/kmp_string_search.py
bkpathak/HackerRank-Problems
03e118b7caf3e1f85046dffd5e7cbeb48c60ee83
[ "MIT" ]
null
null
null
# https://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm # Do pattern matching using KMP algorithm # Runtime complexity - O(m + n) where m is length of text and n is length of pattern def compute_suffix_array(pattern): """ Compute temporary array to maintain size of suffix which is same as ...
26.888889
84
0.541322
bc985b20b59df2836d7306e9693930d6c458b44c
855
py
Python
examples/ldnsx-dnssec.py
colah/ldnsx
5f7f8fa2ddb94b2db13875ec9dae3ed7549b938a
[ "BSD-3-Clause" ]
6
2015-01-21T16:43:39.000Z
2020-10-15T01:39:30.000Z
examples/ldnsx-dnssec.py
colah/ldnsx
5f7f8fa2ddb94b2db13875ec9dae3ed7549b938a
[ "BSD-3-Clause" ]
null
null
null
examples/ldnsx-dnssec.py
colah/ldnsx
5f7f8fa2ddb94b2db13875ec9dae3ed7549b938a
[ "BSD-3-Clause" ]
4
2016-12-20T15:39:16.000Z
2020-10-15T01:39:33.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import ldnsx import sys debug = True if len(sys.argv) < 2: print "Usage:", sys.argv[0], "domain [resolver_addr]" sys.exit(1) name = sys.argv[1] # Create resolver resolver = ldnsx.resolver(dnssec=True) # Custom resolver if argc > 2: # Clear previous nameservers ...
21.923077
105
0.612865
85c93a3875d3599256632997f07bc840d12629b0
2,247
py
Python
test/test_crawler.py
EliasVansteenkiste/torch-scan
1e4be229ada44c24e0b78b0115a819ffdbfddb0f
[ "MIT" ]
null
null
null
test/test_crawler.py
EliasVansteenkiste/torch-scan
1e4be229ada44c24e0b78b0115a819ffdbfddb0f
[ "MIT" ]
null
null
null
test/test_crawler.py
EliasVansteenkiste/torch-scan
1e4be229ada44c24e0b78b0115a819ffdbfddb0f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import io import sys import unittest import torch.nn as nn from torchscan import crawler class UtilsTester(unittest.TestCase): def test_apply(self): multi_convs = nn.Sequential(nn.Conv2d(16, 32, 3), nn.Conv2d(32, 64, 3)) mod = nn.Sequential(nn.Conv2d(3, 16, 3), multi_con...
33.044118
109
0.615487
92bd6cd2780084175f5bca66b4d32f6768777683
2,270
py
Python
game/board.py
scooler/checkers
90bfe8702c6005c767a8673caed6e7e2f0ce5879
[ "MIT" ]
null
null
null
game/board.py
scooler/checkers
90bfe8702c6005c767a8673caed6e7e2f0ce5879
[ "MIT" ]
null
null
null
game/board.py
scooler/checkers
90bfe8702c6005c767a8673caed6e7e2f0ce5879
[ "MIT" ]
null
null
null
import numpy as np class Board: """ 0 - black 1 - white """ def __init__(self): board = [ [0, 1] * 4, [1, 0] * 4 ] * 4 players_board = [ [0, 1] * 4, # player 1 [1, 0] * 4 ] + [[0] * 8] * 4 + [ # 4 rows of nothing [0, 2] * 4, # player 2 [2, 0] * 4 ] se...
28.024691
93
0.574009
2eac94b2499d313b344068db61ce031c39bd694e
777
py
Python
my_app/migrations/0006_auto_20210418_1400.py
B0und/kotanima_server
01b25531de219d16831d97a76c7e5f6326b6e99d
[ "MIT" ]
1
2021-10-03T20:20:22.000Z
2021-10-03T20:20:22.000Z
my_app/migrations/0006_auto_20210418_1400.py
Kotanima/kotanima_server
01b25531de219d16831d97a76c7e5f6326b6e99d
[ "MIT" ]
null
null
null
my_app/migrations/0006_auto_20210418_1400.py
Kotanima/kotanima_server
01b25531de219d16831d97a76c7e5f6326b6e99d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-04-18 14:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('my_app', '0005_redditpost_mal_id'), ] operations = [ migrations.AlterField( model_name='re...
31.08
140
0.656371
0eb7eb7152b6f1aeaf36007687faaffcb31975b6
2,415
py
Python
Python/FreiStat_GUI/PopUp_Window/Events.py
IMTEK-FreiStat/FreiStat-GUI
ce700462ed048d41d3e212b88aed63f9d969f3ae
[ "MIT" ]
null
null
null
Python/FreiStat_GUI/PopUp_Window/Events.py
IMTEK-FreiStat/FreiStat-GUI
ce700462ed048d41d3e212b88aed63f9d969f3ae
[ "MIT" ]
null
null
null
Python/FreiStat_GUI/PopUp_Window/Events.py
IMTEK-FreiStat/FreiStat-GUI
ce700462ed048d41d3e212b88aed63f9d969f3ae
[ "MIT" ]
null
null
null
""" Sub module of the class FreiStatPopUp, which implements different event handling functions. """ __author__ = "Mark Jasper" __contact__ = "University of Freiburg, IMTEK, Jochen Kieninger" __credits__ = "Mark Jasper" __version__ = "1.0.0" __maintainer__ = "Mark Jasper" __email__ = "mark.jasper@imtek.uni-freiburg.d...
24.15
100
0.643892
168a653b03779282647dd9e3123949cfb8ffcd32
4,767
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/load_balancer_network_interfaces_operations.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/load_balancer_network_interfaces_operations.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/load_balancer_network_interfaces_operations.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.336364
176
0.647158
50801d0cc38360ab3a9a8fc306da01ab8050d929
5,657
py
Python
pypy/jit/tl/tl.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/jit/tl/tl.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/jit/tl/tl.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
'''Toy Language''' import py from pypy.jit.tl.tlopcode import * from pypy.rlib.jit import JitDriver, hint, dont_look_inside, promote def char2int(c): t = ord(c) if t & 128: t = -(-ord(c) & 0xff) return t class Stack(object): _virtualizable2_ = ['stackpos', 'stack[*]'] def __init__(self, ...
29.463542
79
0.447941
ecbf4febf44fc5c85db0a24159447ac12fd04d7d
1,169
py
Python
yo_fluq__tests/test_aggregation/test_all_any.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
16
2019-09-26T09:05:42.000Z
2021-02-04T01:39:09.000Z
yo_fluq__tests/test_aggregation/test_all_any.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-10-23T19:01:23.000Z
2020-06-11T09:08:45.000Z
yo_fluq__tests/test_aggregation/test_all_any.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-09-26T09:05:50.000Z
2019-10-23T18:46:11.000Z
from unittest import TestCase from yo_fluq import * class AllAnyTest(TestCase): def test_all_1(self): self.assertEqual(True, Query.args(1, 2, 3).all(lambda z: z > 0)) def test_all_2(self): self.assertEqual(False, Query.args(1, 2, 3).all(lambda z: z > 1)) def test_all_3(self): sel...
27.186047
73
0.635586
5f45dc0020ed74d04fcddd878011c87ee544d575
80,098
py
Python
test/test_variable_info.py
shiyuangu/censusdata
dfb7c50c56e5d5174571e2cadb1623302cc6f6eb
[ "MIT" ]
null
null
null
test/test_variable_info.py
shiyuangu/censusdata
dfb7c50c56e5d5174571e2cadb1623302cc6f6eb
[ "MIT" ]
null
null
null
test/test_variable_info.py
shiyuangu/censusdata
dfb7c50c56e5d5174571e2cadb1623302cc6f6eb
[ "MIT" ]
null
null
null
"""" Test showing information on variables from Census API. """ from __future__ import absolute_import, division, print_function, unicode_literals import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import censusdata import unittest from collections import OrderedDict import io...
117.791176
223
0.696172
f4f74e645defe4f53bb321e1e7a597ee6d50fb69
9,849
py
Python
cogs/Snipe.py
osam7a/JesterBot
aeaa2e24af54967573c88bacdec4a704755cdcb7
[ "MIT" ]
null
null
null
cogs/Snipe.py
osam7a/JesterBot
aeaa2e24af54967573c88bacdec4a704755cdcb7
[ "MIT" ]
null
null
null
cogs/Snipe.py
osam7a/JesterBot
aeaa2e24af54967573c88bacdec4a704755cdcb7
[ "MIT" ]
null
null
null
import disnake, os, requests, json, asyncio from core.utils.utils import thecolor, Json, thebed from disnake.ext import commands from datetime import datetime class Snipe(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on_message_del...
40.2
251
0.372728
1ec0c8a6f5a97b8593a7a8c5d4af89b03d0780ef
5,318
py
Python
module/item.py
FaberSid/mmo-discord-bot
9004c0194428819c6f3faba547b3fca47d57cfe9
[ "MIT" ]
3
2020-05-20T10:12:55.000Z
2020-11-16T14:58:29.000Z
module/item.py
FaberSid/mmo-discord-bot
9004c0194428819c6f3faba547b3fca47d57cfe9
[ "MIT" ]
4
2021-04-05T06:14:51.000Z
2021-06-14T06:22:05.000Z
module/item.py
FaberSid/mmo-discord-bot
9004c0194428819c6f3faba547b3fca47d57cfe9
[ "MIT" ]
1
2021-05-16T11:55:39.000Z
2021-05-16T11:55:39.000Z
import json import math import random import discord from discord.ext import commands as c from module import battle, db, monsters, status with open('../assets/items.json', encoding='utf-8') as f: items = json.load(f) item_description = """アイテムの説明 エリクサー:チャンネルの全員を全回復させる。 ファイアボールの書:遠隔攻撃する。 祈りの書:仲間一人を復活させる。 """ MO...
40.907692
112
0.635765
5a48ee16f061553c545e604ed290f040f73eac7a
11,284
py
Python
src/transformers/testing_utils.py
nitthapr/transformers
f8bf5713fa61a5009d0b66dfaa4e320b316ab1aa
[ "Apache-2.0" ]
2
2021-02-03T13:55:15.000Z
2021-04-16T09:59:54.000Z
src/transformers/testing_utils.py
nitthapr/transformers
f8bf5713fa61a5009d0b66dfaa4e320b316ab1aa
[ "Apache-2.0" ]
null
null
null
src/transformers/testing_utils.py
nitthapr/transformers
f8bf5713fa61a5009d0b66dfaa4e320b316ab1aa
[ "Apache-2.0" ]
2
2020-07-16T16:20:59.000Z
2021-08-08T20:22:47.000Z
import inspect import os import re import shutil import sys import tempfile import unittest from distutils.util import strtobool from io import StringIO from pathlib import Path from .file_utils import _tf_available, _torch_available, _torch_tpu_available SMALL_MODEL_IDENTIFIER = "julien-c/bert-xsmall-dummy" DUMMY_U...
31.344444
106
0.659872
7c077c7a12b870acfb32a2a877bdc7740e48da1a
2,854
py
Python
UniGrammar/tools/cpp/belr.py
UniGrammar/UniGrammar.py
560152ff5ff3f0651171044f6b5046fd8d895960
[ "Unlicense" ]
2
2020-06-17T16:57:23.000Z
2022-02-24T13:29:01.000Z
UniGrammar/tools/cpp/belr.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
UniGrammar/tools/cpp/belr.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
import typing from pathlib import Path import inflection from UniGrammarRuntime.backends.cpp.belr import BeLRParserFactory, masterBranchURI from UniGrammarRuntime.DSLMetadata import DSLMetadata from UniGrammarRuntime.grammarClasses import PEG from UniGrammarRuntime.ParserBundle import InMemoryGrammarResources from Uni...
33.576471
137
0.770848
04b35b9f3cd401fd29becafea563cdb4cd6bfdc3
1,407
py
Python
Lab6.py
Borvs/OOP-58001
1e9861b413adbfd1609cf904edec00e4d71d960e
[ "Apache-2.0" ]
null
null
null
Lab6.py
Borvs/OOP-58001
1e9861b413adbfd1609cf904edec00e4d71d960e
[ "Apache-2.0" ]
null
null
null
Lab6.py
Borvs/OOP-58001
1e9861b413adbfd1609cf904edec00e4d71d960e
[ "Apache-2.0" ]
null
null
null
from tkinter import * window = Tk() window.title('Semestral Grade') window.geometry("400x300+20+10") class Mywindow: def __init__(self, window): self.lbl1 = Label(window, text="Semestral Grade") self.lbl1.place(relx=0.50, y=50, anchor="center") self.lbl2 = Label(window, text="Preli...
37.026316
79
0.59204
bbdc3bc1ce12ec38935f8b73fe7567dd21ec95e2
1,295
py
Python
pandas_bokeh/__init__.py
zifeo/Pandas-Bokeh
9c99b9193922fd4986e927ab106491ed3292ae83
[ "MIT" ]
null
null
null
pandas_bokeh/__init__.py
zifeo/Pandas-Bokeh
9c99b9193922fd4986e927ab106491ed3292ae83
[ "MIT" ]
null
null
null
pandas_bokeh/__init__.py
zifeo/Pandas-Bokeh
9c99b9193922fd4986e927ab106491ed3292ae83
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .base import output_notebook, output_file, plot_grid, show, embedded_html from .plot import plot, FramePlotMethods from .geoplot import geoplot from bokeh.layouts import column, row, layout from bokeh.io import save import warnings __version__ = "0.2" # Define Bok...
27.553191
193
0.746718
41ffacd0212a8b9613f081c29164be6cabeb00a0
2,015
py
Python
tests/utils.py
Cykooz/cykooz.resizer
856d2e2299abac4c2dcef3828c89fbaa226274d7
[ "Apache-2.0", "MIT" ]
2
2021-10-08T18:54:36.000Z
2021-10-09T15:59:09.000Z
tests/utils.py
Cykooz/cykooz.resizer
856d2e2299abac4c2dcef3828c89fbaa226274d7
[ "Apache-2.0", "MIT" ]
null
null
null
tests/utils.py
Cykooz/cykooz.resizer
856d2e2299abac4c2dcef3828c89fbaa226274d7
[ "Apache-2.0", "MIT" ]
null
null
null
""" :Authors: cykooz :Date: 12.08.2021 """ import dataclasses import os from collections import defaultdict from pathlib import Path from PIL import Image from tabulate import tabulate @dataclasses.dataclass(frozen=True) class Checksum: c1: int = 0 c2: int = 0 c3: int = 0 c4: int = 0 def __repr_...
27.22973
87
0.587097
19632265c75b34b6dfc2ddc6fd220e14d6da35cd
1,464
py
Python
avaxpython/network/tls/Config.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
25
2021-05-16T23:43:47.000Z
2022-03-29T03:08:30.000Z
avaxpython/network/tls/Config.py
zefonseca/ava-python
9c72af7c720edfab9c73379a102cf6a11d864ebd
[ "MIT" ]
2
2021-04-26T11:43:22.000Z
2021-06-04T07:55:22.000Z
avaxpython/network/tls/Config.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
4
2021-08-06T10:55:58.000Z
2022-03-29T08:03:05.000Z
# avax-python : Python tools for the exploration of the Avalanche AVAX network. # # Find tutorials and use cases at https://crypto.bi """ Copyright (C) 2021 - crypto.bi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
45.75
463
0.773224
451f2f361dd27eb51b7b1342fb241652a5e649a7
12,573
py
Python
docs/conf.py
renovate-bot/python-access-context-manager
72a683ac6338ed9b60aa3d78321e97bef4f31699
[ "Apache-2.0" ]
8
2020-06-01T14:06:12.000Z
2021-11-14T18:27:06.000Z
docs/conf.py
renovate-bot/python-access-context-manager
72a683ac6338ed9b60aa3d78321e97bef4f31699
[ "Apache-2.0" ]
44
2020-05-07T20:46:42.000Z
2022-03-07T16:45:53.000Z
docs/conf.py
renovate-bot/python-access-context-manager
72a683ac6338ed9b60aa3d78321e97bef4f31699
[ "Apache-2.0" ]
3
2020-05-07T19:30:27.000Z
2021-03-05T17:05:30.000Z
# -*- coding: utf-8 -*- # Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
32.913613
91
0.706991
3d7a7744185665ac5c9c2579139d6403d0ce8d5f
4,977
py
Python
pomas/settings.py
sohamdigheoss/vesit-pomas
5d6c7e32b44c8f830baddc995df4d2d9faddf2cd
[ "Apache-2.0" ]
null
null
null
pomas/settings.py
sohamdigheoss/vesit-pomas
5d6c7e32b44c8f830baddc995df4d2d9faddf2cd
[ "Apache-2.0" ]
null
null
null
pomas/settings.py
sohamdigheoss/vesit-pomas
5d6c7e32b44c8f830baddc995df4d2d9faddf2cd
[ "Apache-2.0" ]
1
2019-04-20T05:26:27.000Z
2019-04-20T05:26:27.000Z
""" Django settings for pomas project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os from...
28.278409
98
0.65441
b5662eb7d8ff7a41a7261f9f22caf02a263f8a3b
214
py
Python
Text Pre-processing/Morphology.py
Shokr/nltk_tutorial
98de3f445e0634b800125605507f63bdc12ad328
[ "MIT" ]
1
2016-11-08T07:23:47.000Z
2016-11-08T07:23:47.000Z
Text Pre-processing/Morphology.py
Shokr/nltk_tutorial
98de3f445e0634b800125605507f63bdc12ad328
[ "MIT" ]
null
null
null
Text Pre-processing/Morphology.py
Shokr/nltk_tutorial
98de3f445e0634b800125605507f63bdc12ad328
[ "MIT" ]
null
null
null
__author__ = 'Mohammed Shokr <mohammedshokr2014@gmail.com>' # WordNet import nltk from nltk.corpus import wordnet as wn # Input word = "gone" # The root root = wn.morphy(word) print("The Result: ") print(root)
14.266667
59
0.724299
158737100d229ecd03a69cb4563573779445332b
1,168
py
Python
backend/permissions/tables/user.py
kalsolio/Icarus
d8628f62672e40dee6a464c7acf3b9706993bc1d
[ "Zlib" ]
1
2021-04-15T17:06:56.000Z
2021-04-15T17:06:56.000Z
backend/permissions/tables/user.py
kalsolio/Icarus
d8628f62672e40dee6a464c7acf3b9706993bc1d
[ "Zlib" ]
null
null
null
backend/permissions/tables/user.py
kalsolio/Icarus
d8628f62672e40dee6a464c7acf3b9706993bc1d
[ "Zlib" ]
null
null
null
from permissions.roles import * from model._post import POST_STATE, POST_VISIBLE from slim.base.permission import Ability, A, DataRecord from slim.base.sqlquery import SQLQueryInfo, SQL_OP # 如果查询的是自己,附带部分信息 def func(ability: Ability, user, query: 'SQLQueryInfo'): for i in query.conditions.find('id'): if i...
33.371429
86
0.708048