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
27af82c734c9c172d86f1e925df82c41889d2af8
5,388
py
Python
main.py
GuruOfPython/Python-Tkinter-GUI
de17e819cc6008274077d8347d722e779cb9166b
[ "MIT" ]
null
null
null
main.py
GuruOfPython/Python-Tkinter-GUI
de17e819cc6008274077d8347d722e779cb9166b
[ "MIT" ]
null
null
null
main.py
GuruOfPython/Python-Tkinter-GUI
de17e819cc6008274077d8347d722e779cb9166b
[ "MIT" ]
null
null
null
# from binary_tree import * # # root = Node(8) # # root.insert(3) # root.insert(10) # root.insert(1) # root.insert(6) # root.insert(4) # root.insert(7) # root.insert(14) # root.insert(13) # node, parent = root.lookup(6) # print(node, parent) # root.print_tree() # # root.delete(10) # # root.print_tree() import tkinter...
32.853659
103
0.615256
4,669
0.866555
0
0
0
0
0
0
1,484
0.275427
27b12ffdc16386ed1ffaa3ad7820397e93894fcc
4,634
py
Python
cbagent/collectors/sgimport_latency.py
sharujayaram/perfrunner
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
[ "Apache-2.0" ]
null
null
null
cbagent/collectors/sgimport_latency.py
sharujayaram/perfrunner
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
[ "Apache-2.0" ]
null
null
null
cbagent/collectors/sgimport_latency.py
sharujayaram/perfrunner
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
[ "Apache-2.0" ]
1
2019-05-20T13:44:29.000Z
2019-05-20T13:44:29.000Z
import requests import json from concurrent.futures import ProcessPoolExecutor as Executor from concurrent.futures import ThreadPoolExecutor from time import sleep, time from couchbase.bucket import Bucket from cbagent.collectors import Latency, Collector from logger import logger from perfrunner.helpers.misc impor...
30.486842
95
0.594087
3,691
0.796504
0
0
0
0
0
0
430
0.092792
27b2e2a025ad448d149dbcc0d2fb399829c3c2bf
370
py
Python
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
4
2019-08-23T10:55:48.000Z
2021-06-24T01:00:12.000Z
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
null
null
null
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
5
2019-03-25T11:12:00.000Z
2021-12-23T03:01:14.000Z
from jnpr.junos import Device from jnpr.junos.utils.config import Config def clean_routing_table(): device=Device (host='100.123.1.3', user='jcluser', password='Juniper!1') device.open() cfg=Config(device, mode='private') cfg.load(path='junos_configuration/clean_routes.conf', format='text') cfg.com...
24.666667
76
0.716216
0
0
0
0
0
0
0
0
87
0.235135
27b4b4442e8234ce781c98d6ea27cb6fba57c3a9
5,000
py
Python
Tools/renew-navi-npc.py
vakhet/ragnarok-navigation
df7d3ff95a9bd1c0497744113ad664a31d248de6
[ "MIT" ]
3
2017-12-02T16:40:32.000Z
2020-02-11T17:44:02.000Z
Tools/renew-navi-npc.py
vakhet/ragnarok-navigation
df7d3ff95a9bd1c0497744113ad664a31d248de6
[ "MIT" ]
null
null
null
Tools/renew-navi-npc.py
vakhet/ragnarok-navigation
df7d3ff95a9bd1c0497744113ad664a31d248de6
[ "MIT" ]
null
null
null
""" Author : vakhet at gmail.com This script gets all your NPC names from the original rAthena folder and updates their lines in navi_npc_krpri.lub wherever matches the map_name and coords """ import re import os import random import sqlite3 NPC_match = r'^[\w\d_]+,\d+,\d+,\d+\tscript\t[\w\d_ -]+#*[...
28.571429
82
0.523
0
0
0
0
0
0
0
0
1,870
0.374
27b65665bc694cadf63afa04994bea99c68ab2c9
85
py
Python
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
from rpicarserver import ext class Extension(ext.Extension): name = "backlight"
17
31
0.752941
54
0.635294
0
0
0
0
0
0
11
0.129412
27b801a71ed41ab9ae80dc219943a39cdead01b2
712
py
Python
tests/components/rtsp_to_webrtc/test_diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/rtsp_to_webrtc/test_diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/rtsp_to_webrtc/test_diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test nest diagnostics.""" from typing import Any from .conftest import ComponentSetup from tests.common import MockConfigEntry from tests.components.diagnostics import get_diagnostics_for_config_entry THERMOSTAT_TYPE = "sdm.devices.types.THERMOSTAT" async def test_entry_diagnostics( hass, hass_client, ...
25.428571
87
0.716292
0
0
0
0
0
0
452
0.634831
156
0.219101
27b8c7ca0cbfe891ed4189a0d771be178c3ebb62
556
py
Python
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import pandas as pd import numpy as np df = pd.read_csv('poblacion.csv') pd.options.display.float_format = '{:,.1f}'.format df = pd.read_csv('poblacion.csv') df['year'] = pd.Categorical(df['year'].apply(str)) idx_filtro = df['Country'].isin(['Mexico','Panama']) df_filtro_country = df[idx_filtro] df_filtro_country =df...
30.888889
102
0.733813
0
0
0
0
0
0
0
0
133
0.239209
27b8f98dbc5944c52c7fdf99ecb0474a2db0ffed
3,477
py
Python
reachweb/models.py
kamauvick/ReachOutDash
ceb7da731982bc9d1b1bb4185f34822b4dcf6526
[ "MIT" ]
null
null
null
reachweb/models.py
kamauvick/ReachOutDash
ceb7da731982bc9d1b1bb4185f34822b4dcf6526
[ "MIT" ]
9
2020-02-12T02:44:31.000Z
2022-03-12T00:03:57.000Z
reachweb/models.py
kamauvick/ReachOutDash
ceb7da731982bc9d1b1bb4185f34822b4dcf6526
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models class Chv(models.Model): name = models.OneToOneField(User, on_delete=models.PROTECT, related_name='profile') age = models.IntegerField() phonenumber = models.CharField(max_length=255) profile_picture = models.ImageField(upload_to...
30.5
98
0.632442
3,392
0.975554
0
0
416
0.119643
0
0
950
0.273224
27bb547681e27f63805f0e3f2bcfba62a6d181f3
4,876
py
Python
distances/symmetric_amd_distance.py
npielawski/py_alpha_amd_release
6fb5b3cdef65ba8902daea050785dd73970002c2
[ "MIT" ]
14
2019-02-12T20:30:23.000Z
2021-11-04T01:10:34.000Z
distances/symmetric_amd_distance.py
npielawski/py_alpha_amd_release
6fb5b3cdef65ba8902daea050785dd73970002c2
[ "MIT" ]
2
2021-05-12T05:02:59.000Z
2021-10-11T14:40:10.000Z
distances/symmetric_amd_distance.py
npielawski/py_alpha_amd_release
6fb5b3cdef65ba8902daea050785dd73970002c2
[ "MIT" ]
7
2019-02-20T12:19:28.000Z
2021-02-09T10:12:06.000Z
# # Py-Alpha-AMD Registration Framework # Author: Johan Ofverstedt # Reference: Fast and Robust Symmetric Image Registration Based on Distances Combining Intensity and Spatial Information # # Copyright 2019 Johan Ofverstedt # # Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa...
41.322034
179
0.689295
3,502
0.718212
0
0
0
0
0
0
1,467
0.300861
27bbbbc489c4d13faa511e2c2877df5e0ce8a2dd
431
py
Python
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
2
2020-08-27T21:02:54.000Z
2020-08-27T21:03:44.000Z
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
null
null
null
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-28 12:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0004_product_product_image'), ] operations = [ migrations.AddField( model_name='product', name='discounted_p...
21.55
50
0.605568
338
0.784223
0
0
0
0
0
0
108
0.25058
27bc982db629d22f64003fb61afd5dee8511c5de
131
py
Python
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
1
2021-07-08T00:35:57.000Z
2021-07-08T00:35:57.000Z
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
null
null
null
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
null
null
null
from math import factorial n = int(input('Digite um número, para obter seu fatorial: ')) print('{}! é {}'.format(n, factorial(n)))
32.75
61
0.679389
0
0
0
0
0
0
0
0
57
0.428571
27bd073801f417f0a990ea8f8617bbc868baa23e
157
py
Python
setup.py
messa/bloom
ce975471d0fabac436bcbd3040d22c6e5a97e47c
[ "MIT" ]
1
2021-03-14T13:54:42.000Z
2021-03-14T13:54:42.000Z
setup.py
messa/bloom
ce975471d0fabac436bcbd3040d22c6e5a97e47c
[ "MIT" ]
1
2021-03-15T09:02:24.000Z
2021-03-16T07:41:46.000Z
setup.py
messa/bloom
ce975471d0fabac436bcbd3040d22c6e5a97e47c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, Extension setup( ext_modules=[ Extension('bloom._hashc', ['bloom/_hashcmodule.c']) ])
17.444444
59
0.66242
0
0
0
0
0
0
0
0
58
0.369427
27be070f86ae724315deda03de85e57e9b0b008d
5,645
py
Python
misc/util.py
winder/indexer
18f48f026f022cdeef92dcac558d3900d6ea798d
[ "MIT" ]
87
2020-08-20T19:14:02.000Z
2022-03-30T21:31:59.000Z
misc/util.py
hassoon1986/indexer
0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b
[ "MIT" ]
615
2020-06-03T14:13:29.000Z
2022-03-31T12:08:38.000Z
misc/util.py
hassoon1986/indexer
0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b
[ "MIT" ]
58
2020-06-03T21:33:48.000Z
2022-03-26T15:39:50.000Z
#!/usr/bin/env python3 import atexit import logging import os import random import subprocess import sys import time import msgpack logger = logging.getLogger(__name__) def maybedecode(x): if hasattr(x, 'decode'): return x.decode() return x def mloads(x): return msgpack.loads(x, strict_map_key...
34.845679
107
0.589725
0
0
0
0
0
0
0
0
1,055
0.186891
27c0f66f70a59c9a16bcacfd772c973fa3bad2e9
11,093
py
Python
coconut/_pyparsing.py
evhub/coconut
27a4af9dc06667870f736f20c862930001b8cbb2
[ "Apache-2.0" ]
3,624
2015-02-22T07:06:18.000Z
2022-03-31T03:38:00.000Z
coconut/_pyparsing.py
evhub/coconut
27a4af9dc06667870f736f20c862930001b8cbb2
[ "Apache-2.0" ]
627
2015-03-31T01:18:53.000Z
2022-03-28T07:48:31.000Z
coconut/_pyparsing.py
evhub/coconut
27a4af9dc06667870f736f20c862930001b8cbb2
[ "Apache-2.0" ]
162
2016-03-02T05:22:55.000Z
2022-03-31T23:42:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------------------------------------------------- # INFO: # ----------------------------------------------------------------------------------------------------------------------- """ Author: Evan Hub...
35.554487
180
0.554945
40
0.003606
0
0
0
0
0
0
4,251
0.383215
27c1c2dd0bdd326bf942be3440f758392e7db45f
4,948
py
Python
tests/test_explicit_hll.py
aholyoke/python-hll
30793aeb18103600fce0f3ad0b0c9e99e8b756fe
[ "MIT" ]
13
2019-11-19T07:38:46.000Z
2022-02-11T13:23:25.000Z
tests/test_explicit_hll.py
aholyoke/python-hll
30793aeb18103600fce0f3ad0b0c9e99e8b756fe
[ "MIT" ]
4
2019-12-12T04:19:34.000Z
2021-06-09T17:52:52.000Z
tests/test_explicit_hll.py
aholyoke/python-hll
30793aeb18103600fce0f3ad0b0c9e99e8b756fe
[ "MIT" ]
6
2019-11-06T21:33:25.000Z
2022-02-21T14:43:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import random from python_hll.hlltype import HLLType from python_hll.hll import HLL from python_hll.serialization import SerializationUtil """Unit tests for BitVector.""" def test_add_basic(): """ Tests basic set semantics of ``HLL.add_raw()``. """ # Ad...
27.337017
89
0.653597
0
0
0
0
0
0
0
0
1,669
0.337308
27c4d9ac4a8dbf1e90e1e11bbe903ce9523aee39
4,792
py
Python
weixin/HelloMyDear.py
FantasyZsp/py-utils
4ccebd298780508d58400d2d8967f59ca7c6603d
[ "Apache-2.0" ]
null
null
null
weixin/HelloMyDear.py
FantasyZsp/py-utils
4ccebd298780508d58400d2d8967f59ca7c6603d
[ "Apache-2.0" ]
null
null
null
weixin/HelloMyDear.py
FantasyZsp/py-utils
4ccebd298780508d58400d2d8967f59ca7c6603d
[ "Apache-2.0" ]
null
null
null
from weixin.utils.WeiXinUtils import * # 5.主函数main() def hello(wxNames, atHours, atMinutes, cityCode): names = wxNames hours = atHours minutes = atMinutes number = cityCode g = getYMD() g1 = get_iciba_everyday_chicken_soup() # 天气接口的网站 number为城市编号 name = 'http://t.weather.sojson.com/ap...
31.320261
97
0.47788
0
0
0
0
0
0
0
0
1,611
0.302365
27c607ecb317226ea26c46b6beec6b1d9d516ae8
7,892
py
Python
Medicine-manag-django/pharma/views.py
DanielDDHM/my-projects-py
f6c3af7f6cd61c69234d25c956027e8c7e626470
[ "MIT" ]
null
null
null
Medicine-manag-django/pharma/views.py
DanielDDHM/my-projects-py
f6c3af7f6cd61c69234d25c956027e8c7e626470
[ "MIT" ]
null
null
null
Medicine-manag-django/pharma/views.py
DanielDDHM/my-projects-py
f6c3af7f6cd61c69234d25c956027e8c7e626470
[ "MIT" ]
null
null
null
from .models import Dealer from .models import Employee from .models import Customer from .models import Medicine from .models import Purchase from django.shortcuts import render from django.db import IntegrityError def home(request): return render(request, 'pharma/index.html') def dealerform(request): dict...
28.490975
61
0.637988
0
0
0
0
0
0
0
0
1,244
0.157628
27c811e47a423871511471f8e6a47527924900eb
202
py
Python
resume/display/views.py
Varun789/Profile
990818d233ac0279ef4d55641e1e284850bdbfb2
[ "BSD-3-Clause" ]
null
null
null
resume/display/views.py
Varun789/Profile
990818d233ac0279ef4d55641e1e284850bdbfb2
[ "BSD-3-Clause" ]
null
null
null
resume/display/views.py
Varun789/Profile
990818d233ac0279ef4d55641e1e284850bdbfb2
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render from .models import Profile # Create your views here. def home(request): profile=Profile.objects return render(request,'home.html',{'profile' : profile})
22.444444
60
0.737624
0
0
0
0
0
0
0
0
45
0.222772
27c8bd46f163cd7e8d07a019d3a50bfc0ca3baa3
458
py
Python
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2021-03-20 12:41 import phone_field.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('books', '0022_auto_20210215_1053'), ] operations = [ migrations.AlterField( model_name='warehouse', ...
22.9
104
0.637555
347
0.757642
0
0
0
0
0
0
111
0.242358
27c9faa515cbfcb516d2a78da11f8590793a0cac
6,912
py
Python
src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py
Yulv-git/Model_Inference_Deployment
623f9955dfb60fe7af9d17415bfec58fc4c86c1b
[ "MIT" ]
4
2022-02-05T14:16:05.000Z
2022-03-27T13:35:06.000Z
src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py
Yulv-git/Model_Inference_Deployment
623f9955dfb60fe7af9d17415bfec58fc4c86c1b
[ "MIT" ]
null
null
null
src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py
Yulv-git/Model_Inference_Deployment
623f9955dfb60fe7af9d17415bfec58fc4c86c1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ''' Author: Shuangchi He / Yulv Email: yulvchi@qq.com Date: 2022-01-28 14:21:09 Motto: Entities should not be multiplied unnecessarily. LastEditors: Shuangchi He LastEditTime: 2022-04-06 11:40:23 FilePath: /Model_Inference_Deployment/src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME...
41.638554
124
0.684172
1,053
0.1523
0
0
0
0
0
0
2,230
0.322534
27cc788dc3d49e45198c96fa1cec36fea676e304
2,085
py
Python
scripts/dataset.py
MarcGroef/deeplearning
d1ef095fbe0f7e9b56017808d976efe7502e6b81
[ "MIT" ]
null
null
null
scripts/dataset.py
MarcGroef/deeplearning
d1ef095fbe0f7e9b56017808d976efe7502e6b81
[ "MIT" ]
null
null
null
scripts/dataset.py
MarcGroef/deeplearning
d1ef095fbe0f7e9b56017808d976efe7502e6b81
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from sklearn.model_selection import StratifiedKFold # Set dataset seed np.random.seed(seed=842102) class SingletonDecorator: def __init__(self,klass): self.klass = klass self.instance = None def __call__(self,*args,**kwds): if self.instance ==...
35.948276
130
0.659472
1,865
0.894484
0
0
1,621
0.777458
0
0
241
0.115588
27cf1141da0cf1cbeff01d7fcd33d6536ff17b4d
1,962
py
Python
src/python/utils/image.py
Lamzigit/manifold_learning
f699fe4f25dbabdbc2dc9635c4e654b59806e17d
[ "MIT" ]
10
2017-06-14T08:04:44.000Z
2021-07-06T07:13:16.000Z
src/python/utils/image.py
Lamzigit/manifold_learning
f699fe4f25dbabdbc2dc9635c4e654b59806e17d
[ "MIT" ]
1
2020-11-18T13:08:43.000Z
2020-11-18T13:12:39.000Z
src/python/utils/image.py
Lamzigit/manifold_learning
f699fe4f25dbabdbc2dc9635c4e654b59806e17d
[ "MIT" ]
3
2017-06-14T08:04:53.000Z
2019-11-18T13:21:15.000Z
# -*- coding: utf-8 -*- """ Created on Thu Oct 15 14:03:52 2015 @author: jemanjohnson """ import numpy as np import matplotlib.pyplot as plt import os import scipy.io from sklearn import preprocessing from time import time from sklearn.preprocessing import MinMaxScaler # Image Reshape Function def img_as_array(img...
25.480519
73
0.618756
0
0
0
0
0
0
0
0
955
0.486748
27cf8bbca13f1461fc47b01d2bfbcfa734035197
1,767
py
Python
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
1
2016-05-08T21:47:10.000Z
2016-05-08T21:47:10.000Z
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
null
null
null
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
null
null
null
""" Tests for the finsignia.gae.controllers module. """ import os import sys from finsignia.gae import loader import unittest class ApplicationControllerTest(unittest.TestCase): def setUp(self): loader.load() from finsignia.gae import controllers class TestController(controllers.ApplicationController)...
29.949153
97
0.730051
1,508
0.853424
0
0
0
0
0
0
359
0.203169
27d2e55ac297493daba610855afc860802f2e6c9
2,074
py
Python
tests/test_visualize_poll.py
UBC-MDS/tweepypoll
62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6
[ "MIT" ]
null
null
null
tests/test_visualize_poll.py
UBC-MDS/tweepypoll
62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6
[ "MIT" ]
30
2022-01-14T17:10:08.000Z
2022-02-02T21:17:05.000Z
tests/test_visualize_poll.py
UBC-MDS/tweepypoll
62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6
[ "MIT" ]
1
2022-01-14T16:10:11.000Z
2022-01-14T16:10:11.000Z
from tweepypoll.tweepypoll import visualize_poll import pandas as pd import altair as alt def test_visualize_poll(): """Test visualize_poll on a dictionary input""" sample_poll_obj = [ { "text": "Important research!!!", "duration": 1440, "date": "2022-01-22T04:01:0...
35.152542
87
0.590646
0
0
0
0
0
0
0
0
993
0.478785
27d3c4c2fd777115e15bd0efa78ebba378f85ab4
5,629
py
Python
quilt/avahiservice.py
rossdylan/quilt
463e3cfe419410b41ee6945ab96d51692d46b036
[ "MIT" ]
2
2015-07-23T03:49:42.000Z
2015-11-05T18:49:53.000Z
quilt/avahiservice.py
rossdylan/quilt
463e3cfe419410b41ee6945ab96d51692d46b036
[ "MIT" ]
null
null
null
quilt/avahiservice.py
rossdylan/quilt
463e3cfe419410b41ee6945ab96d51692d46b036
[ "MIT" ]
null
null
null
""" Avahi Network Service Scripting """ import Queue import threading import avahi, dbus, gobject from dbus import DBusException from dbus.mainloop.glib import DBusGMainLoop __all__ = ["QuiltAvahiServer", "QuiltAvahiClient"] TYPE = '_quilt._tcp' class QuiltAvahiNode(object): """ Quilt Avahi Connection Nod...
35.626582
105
0.551252
5,340
0.948659
0
0
0
0
0
0
2,460
0.437023
27d5437b9102d270c520f2be5bfb611ac3f22737
612
py
Python
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
from appium import webdriver from .utils import PATH desired_caps = dict( platformName='Android', platformVersion='10', automationName='uiautomator2', deviceName='Android Emulator', app=PATH('app/ApiDemos-debug.apk.zip') ) driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) ...
19.741935
73
0.668301
291
0.47549
0
0
0
0
0
0
112
0.183007
27d5f9dbcf40cc145235b4fffe9387c62c414d60
6,161
py
Python
tests/pte-onPrem-test-package/scripts/create_SCFile.py
gbl1124/hfrd
327d7c1e18704d2e31a2649b40ae1d90353ebe24
[ "Apache-2.0" ]
5
2019-08-02T20:53:57.000Z
2021-06-25T05:16:46.000Z
tests/pte-onPrem-test-package/scripts/create_SCFile.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
null
null
null
tests/pte-onPrem-test-package/scripts/create_SCFile.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
14
2019-07-01T01:40:50.000Z
2020-03-24T06:14:32.000Z
import json import os import argparse HOME = os.environ['HOME']+'/results/' parser = argparse.ArgumentParser(description="Python script generates the SCFiles using MSPIDs") parser.add_argument("-m", "--mspids", nargs="+", required=True, help="1 or more MSPIDs") parser.add_argument("-n", "--networkId", metavar='', req...
50.917355
127
0.603636
5,715
0.927609
0
0
0
0
0
0
2,265
0.367635
27d6cff2a09a34968b82d0b674f282b1d2271a34
9,721
py
Python
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
import re #Regular expression library from django import forms from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.template import RequestContext from django.contrib.auth.forms import AuthenticationForm from catalogue.models import Submitted from models import...
47.419512
110
0.632342
8,887
0.914206
0
0
0
0
0
0
2,926
0.300998
27d78b89ba7b997214a4c7166893ac8b3158ac3f
38,343
py
Python
sgan/models.py
peaceminusones/Group-GAN-GCN
ff0abf90bb830729d082d1fa46e41c749c738895
[ "MIT" ]
2
2021-05-25T09:10:15.000Z
2021-09-25T07:53:35.000Z
sgan/models.py
peaceminusones/Group-GAN-GCN
ff0abf90bb830729d082d1fa46e41c749c738895
[ "MIT" ]
null
null
null
sgan/models.py
peaceminusones/Group-GAN-GCN
ff0abf90bb830729d082d1fa46e41c749c738895
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def make_mlp(dim_list, activation='relu', batch_norm=True, dropout=0): # make_mlp主要是构造多层的全连接网络,并且根据需求决定激活函数的类型,其参数dim_list是全连接网络各层维度的列表 layers = [] for dim_in, dim_out in zip(dim_list[:-1], dim_list[1:]): layers....
38.652218
126
0.586235
31,389
0.802582
0
0
0
0
0
0
15,178
0.388085
27d7ec475999a81872908a78c697615fa5aa0984
4,258
py
Python
netflow/mkipfixtypes/ipfixtypes.py
kohler/click-packages
cec70da7cf460548ef08f1ddad6924db29d5c0c5
[ "MIT" ]
13
2015-02-26T23:12:09.000Z
2021-04-18T04:37:12.000Z
netflow/mkipfixtypes/ipfixtypes.py
kohoumas/click-packages
6bb5c4ba286e5dbc74efd1708921d530425691f6
[ "MIT" ]
null
null
null
netflow/mkipfixtypes/ipfixtypes.py
kohoumas/click-packages
6bb5c4ba286e5dbc74efd1708921d530425691f6
[ "MIT" ]
7
2015-08-25T09:29:41.000Z
2021-04-18T04:37:13.000Z
#!/usr/bin/python # # Generates ipfixtypes.hh from IPFIX spec and schema # # Copyright (c) 2006 Mazu Networks, Inc. # # $Id: ipfixtypes.py,v 1.1 2006/05/12 16:43:44 eddietwo Exp $ # import xml.dom.minidom import sys import time class IPFIXField: """ Represents a <field> element in the IPFIX specification. Acc...
26.447205
106
0.625881
1,423
0.334194
0
0
0
0
0
0
1,846
0.433537
27d8e4bb5627f304929e5b7f3fa1b41d586d410e
694
py
Python
core_lib/web_helpers/constants_media_type.py
shubham-surya/core-lib
543db80706746a937e5ed16bd50f2de8d58b32e4
[ "MIT" ]
null
null
null
core_lib/web_helpers/constants_media_type.py
shubham-surya/core-lib
543db80706746a937e5ed16bd50f2de8d58b32e4
[ "MIT" ]
9
2021-03-11T02:29:17.000Z
2022-03-22T19:01:18.000Z
core_lib/web_helpers/constants_media_type.py
shubham-surya/core-lib
543db80706746a937e5ed16bd50f2de8d58b32e4
[ "MIT" ]
2
2022-01-27T11:19:00.000Z
2022-02-11T11:33:09.000Z
import enum class MediaType(enum.Enum): MEDIA_TYPE_WILDCARD = "*" WILDCARD = "*/*" APPLICATION_XML = "application/xml" APPLICATION_ATOM_XML = "application/atom+xml" APPLICATION_XHTML_XML = "application/xhtml+xml" APPLICATION_SVG_XML = "application/svg+xml" APPLICATION_JSON = "application/j...
34.7
69
0.729107
679
0.978386
0
0
0
0
0
0
272
0.391931
27da1fb06b835a7c7c1c2845d17975f0ff1c9b74
2,940
py
Python
pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py
culturesofknowledge/emlo-server
8a88ca98a5211086195793e4bed5960550638936
[ "MIT" ]
null
null
null
pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py
culturesofknowledge/emlo-server
8a88ca98a5211086195793e4bed5960550638936
[ "MIT" ]
null
null
null
pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py
culturesofknowledge/emlo-server
8a88ca98a5211086195793e4bed5960550638936
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 24 Aug 2010 @author: Matthew Wilcoxson functions convert from one value to another in the form: def conversion(value): #do something return new_value ''' import time def convert_to_rdf_date(value): date_check = value # rdf uses format '1651-12-31T00:00:00...
30
119
0.611905
0
0
0
0
0
0
0
0
1,200
0.408163
27de194719485c100a81b84fd59429f4b32b78e0
992
py
Python
modules/wxpy-index/wxpy_index/version.py
john04047210/mira_wepy_server
385b8561e63f9164102e60681e2704c55fec0577
[ "MIT" ]
1
2018-05-22T11:25:59.000Z
2018-05-22T11:25:59.000Z
modules/wxpy-index/wxpy_index/version.py
john04047210/mira_wepy_server
385b8561e63f9164102e60681e2704c55fec0577
[ "MIT" ]
null
null
null
modules/wxpy-index/wxpy_index/version.py
john04047210/mira_wepy_server
385b8561e63f9164102e60681e2704c55fec0577
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2018 QiaoPeng. # # Invenio is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any l...
33.066667
72
0.746976
0
0
0
0
0
0
0
0
899
0.90625
27dfaf52615924607a73e76ca9bec8a17c8c3880
11,305
py
Python
estimate.py
DS3Lab/feebee
eb210d07a7f9956ca2d0681ccf446330c8427a8b
[ "Apache-2.0" ]
1
2022-03-24T06:15:37.000Z
2022-03-24T06:15:37.000Z
estimate.py
DS3Lab/feebee
eb210d07a7f9956ca2d0681ccf446330c8427a8b
[ "Apache-2.0" ]
null
null
null
estimate.py
DS3Lab/feebee
eb210d07a7f9956ca2d0681ccf446330c8427a8b
[ "Apache-2.0" ]
1
2021-12-20T12:11:55.000Z
2021-12-20T12:11:55.000Z
from absl import app from absl import flags from absl import logging import csv import importlib import numpy as np import os.path as path import random from sklearn.model_selection import train_test_split import time from transformations.reader.matrix import test_argument_and_file, load_and_log import transformations...
51.153846
215
0.665369
0
0
0
0
0
0
0
0
2,638
0.233348
27dfb13b1540ca2ae940981337f040231ef6dd46
2,610
py
Python
allmodels_image.py
GustavZ/Tensorflow-Object-Detection
3aab434b20e510d3953b4265dd73a1c7c315067d
[ "MIT" ]
187
2017-12-26T17:41:09.000Z
2019-03-06T04:44:25.000Z
allmodels_image.py
a554142589/realtime_object_detection
d2bd7e58df9af1848e473fa7627aa2433192903d
[ "MIT" ]
38
2018-02-01T17:05:01.000Z
2019-02-15T21:58:25.000Z
allmodels_image.py
a554142589/realtime_object_detection
d2bd7e58df9af1848e473fa7627aa2433192903d
[ "MIT" ]
65
2018-01-19T06:03:44.000Z
2019-03-06T04:58:31.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jan 10 09:45:23 2018 @author: www.github.com/GustavZ """ import os import sys import numpy as np from rod.config import Config from rod.helper import get_model_list, check_if_optimized_model from rod.model import ObjectDetectionModel, DeepLabModel RO...
32.222222
79
0.668966
649
0.248659
0
0
0
0
0
0
499
0.191188
27e04f3e71ee9ae2490b13c55437303fba48ca2d
5,953
py
Python
train.py
Jing-lun/GPR_3D_Model_Reconstruction
24259bdbdf5e993e286e556ee1bae720892a16b9
[ "Unlicense" ]
1
2021-09-30T10:22:54.000Z
2021-09-30T10:22:54.000Z
train.py
Jing-lun/GPR_3D_Model_Reconstruction
24259bdbdf5e993e286e556ee1bae720892a16b9
[ "Unlicense" ]
1
2021-07-23T13:10:58.000Z
2021-07-23T13:10:58.000Z
train.py
Jing-lun/GPR_3D_Model_Reconstruction
24259bdbdf5e993e286e556ee1bae720892a16b9
[ "Unlicense" ]
null
null
null
# Copyright 2021, Robotics Lab, City College of New York # 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 ...
36.975155
111
0.607425
0
0
0
0
0
0
0
0
1,744
0.292962
27e1b8a412e18403318f1bb9f3adb67ae8c94d10
805
py
Python
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
2
2022-01-19T02:33:11.000Z
2022-01-19T02:33:13.000Z
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
null
null
null
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
null
null
null
import sys def show_balance(balance): balance = '' print(" Has logged in!") print(" The current balance is " + str(balance)) def deposit(balance): print("Your current balance is: " + str(balance)) while True: deposit_amount = float(input("Enter deposit amount: ")) balance = f...
23.676471
70
0.607453
0
0
0
0
0
0
0
0
200
0.248447
27e21695cafe73f0d93a69b097c0c530103f4723
2,098
py
Python
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from ricecooker.classes import nodes class WHOPageScraperBase: def __init__(self, url, file_on_disk): self.url = url self.file_on_disk = file_on_disk def node_for_text_section(self, content): # print("content = {}".format(content.prettify())) pas...
32.78125
86
0.597712
2,024
0.964728
0
0
0
0
0
0
562
0.267874
27e33b028e6c906a2e346f640e4d67536b199914
23,817
py
Python
dxtbx/tests/model/experiment/test_experiment_list.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
dxtbx/tests/model/experiment/test_experiment_list.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
dxtbx/tests/model/experiment/test_experiment_list.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function import six.moves.cPickle as pickle from glob import glob import os import pytest from dxtbx.model import Experiment, ExperimentList from dxtbx.model.experiment_list import ExperimentListFactory, \ ExperimentListDumper, ExperimentListDict def test_ex...
32.715659
89
0.719528
0
0
0
0
924
0.038796
0
0
4,255
0.178654
27e6185cd1321c58ae5c06b94cfd558705c422cd
365
py
Python
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
4
2018-03-26T08:54:50.000Z
2021-07-28T13:34:07.000Z
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
null
null
null
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
4
2017-10-26T12:59:39.000Z
2021-07-12T08:40:56.000Z
from sys import argv def make_new_reference_files(filename, sub1, sub2, divider=">chr9"): genomes = open(filename).read().split(divider) f = open(sub1, "w") f.write(genomes[0]) f.close() f = open(sub2, "w") f.write(">chr9"+genomes[1]) f.close() if __name__=="__main__": make_new_referen...
26.071429
68
0.635616
0
0
0
0
0
0
0
0
30
0.082192
27e766575366ccd5d46f9e7a446bbcc0f07d388e
1,323
py
Python
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
5
2017-03-02T15:57:44.000Z
2020-02-14T05:17:28.000Z
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
null
null
null
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
3
2017-05-20T11:23:07.000Z
2022-01-13T12:00:57.000Z
"""Module which defines collaborating app ids. This module is used by: settings.py scripts/deploy.sh """ import os # List of (playground appid, mimic app id, playground app id alias) _APP_ID_TUPLES = [ # production environment ('try-appengine', 'shared-playground', 'cloud-playground'), # developmen...
25.442308
67
0.708995
0
0
0
0
0
0
0
0
696
0.526077
27e7f431903fe9377416892525c526c246e0ed24
21,183
py
Python
_states/novav21.py
NDPF/salt-formula-nova
265d9e6c2cbd41d564ee389b210441d9f7378433
[ "Apache-2.0" ]
4
2017-04-27T14:27:04.000Z
2017-11-04T18:23:09.000Z
_states/novav21.py
NDPF/salt-formula-nova
265d9e6c2cbd41d564ee389b210441d9f7378433
[ "Apache-2.0" ]
22
2017-02-01T09:04:52.000Z
2019-05-10T09:04:01.000Z
_states/novav21.py
NDPF/salt-formula-nova
265d9e6c2cbd41d564ee389b210441d9f7378433
[ "Apache-2.0" ]
35
2017-02-05T23:11:16.000Z
2019-04-04T17:21:36.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
39.155268
84
0.626729
206
0.009725
0
0
10,182
0.480668
0
0
6,418
0.302979
27ea8174cb81713dd5c70d96704d5a2c63cec32e
325
py
Python
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
from sys import modules from importlib import import_module modules['server'] = import_module('src') from werkzeug.serving import run_simple from server.app import App from server.mode import Mode if __name__=='__main__': app = App(mode=Mode.Development) run_simple('localhost', 8000, app, use_reloader=Tr...
27.083333
55
0.76
0
0
0
0
0
0
0
0
34
0.104615
27ed7774eba9356593529c7a047bb6eafaebca6b
6,891
py
Python
src/pyff/fetch.py
rhoerbe/pyFF
85933ed9cc9f720c9432d5e4c3114895cefd3579
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/pyff/fetch.py
rhoerbe/pyFF
85933ed9cc9f720c9432d5e4c3114895cefd3579
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/pyff/fetch.py
rhoerbe/pyFF
85933ed9cc9f720c9432d5e4c3114895cefd3579
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" An abstraction layer for metadata fetchers. Supports both syncronous and asyncronous fetchers with cache. """ from .logs import get_log import os import requests from .constants import config from datetime import datetime from collections import deque import six from concurrent import futures import traceback fr...
29.702586
108
0.565085
6,181
0.896967
123
0.017849
420
0.060949
0
0
644
0.093455
27effbc79d2bf6543199f4b75da0205988092da4
498
py
Python
pychonet/HomeSolarPower.py
mochipon/pychonet
65ba4189f9a66b6e698646854542cdd506369813
[ "MIT" ]
null
null
null
pychonet/HomeSolarPower.py
mochipon/pychonet
65ba4189f9a66b6e698646854542cdd506369813
[ "MIT" ]
null
null
null
pychonet/HomeSolarPower.py
mochipon/pychonet
65ba4189f9a66b6e698646854542cdd506369813
[ "MIT" ]
null
null
null
from pychonet.EchonetInstance import EchonetInstance class HomeSolarPower(EchonetInstance): def __init__(self, netif, instance = 0x1): self.eojgc = 0x02 self.eojcc = 0x79 EchonetInstance.__init__(self, self.eojgc, self.eojcc, instance, netif) def getMeasuredInstantPower(self): ...
35.571429
79
0.728916
443
0.889558
0
0
0
0
0
0
10
0.02008
27f5b22f4011155a67ce267a26bf5d2d27c8298e
6,955
py
Python
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
6
2018-06-06T08:37:53.000Z
2020-06-01T13:13:13.000Z
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
30
2018-06-08T02:47:18.000Z
2018-07-25T07:07:07.000Z
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
5
2018-06-06T08:37:55.000Z
2021-01-07T09:15:15.000Z
from IPython.core.magic import Magics, magics_class, line_cell_magic from sys import stdout from os import linesep from os.path import join, expanduser from adlmagics.version import adlmagics_version from adlmagics.converters.dataframe_converter import DataFrameConverter from adlmagics.utils.json_file_persister impo...
48.298611
168
0.78404
4,529
0.651186
0
0
4,543
0.653199
0
0
224
0.032207
27f6676280bfbc46f5ea3961bee24ccfef845e05
10,137
py
Python
metadata_service/api/dashboard.py
iiAnderson/metaflow-service
b42391e5ee2187a93259b944c515522d76b1314e
[ "Apache-2.0" ]
null
null
null
metadata_service/api/dashboard.py
iiAnderson/metaflow-service
b42391e5ee2187a93259b944c515522d76b1314e
[ "Apache-2.0" ]
null
null
null
metadata_service/api/dashboard.py
iiAnderson/metaflow-service
b42391e5ee2187a93259b944c515522d76b1314e
[ "Apache-2.0" ]
null
null
null
import asyncio import json from datetime import datetime, timedelta from aiohttp import web from .utils import read_body, get_week_times, get_formatted_time from ..data.models import RunRow from ..data.postgres_async_db import AsyncPostgresDB import logging class DashboardAPI(object): _run_table = None lock = ...
32.805825
111
0.56792
9,876
0.974253
0
0
0
0
8,973
0.885173
3,940
0.388675
27f693df0e7ea237223f8c2bc9de9a57a4f98dac
838
py
Python
tests/test_report.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
tests/test_report.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
tests/test_report.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from setup_teardown import start_db, stop_db from nose.tools import * from pykt import KyotoTycoon, KTException @raises(IOError) def test_err_report(): db = KyotoTycoon() db.report() @with_setup(setup=start_db,teardown=stop_db) def test_report(): db = KyotoTycoon() db = db.open...
21.487179
44
0.643198
0
0
0
0
693
0.826969
0
0
29
0.034606
27f6d38ee1079239114141527da38c16b3c99951
1,024
py
Python
src/Screen.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
1
2022-02-10T04:42:04.000Z
2022-02-10T04:42:04.000Z
src/Screen.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
null
null
null
src/Screen.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
1
2022-01-11T17:11:44.000Z
2022-01-11T17:11:44.000Z
import Resources import Colors import pygame screen = None def init(width, height): global screen screen = pygame.display.set_mode((width, height)) def width(): return screen.get_width() def height(): return screen.get_height() def res(): return (screen.get_width(), screen.get_height()) def ...
21.333333
90
0.640625
405
0.395508
0
0
0
0
0
0
133
0.129883
27f931503927cf87b2047c06d44bfc6dbb23b7c2
5,416
py
Python
manga_db/extractor/toonily.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
3
2021-01-14T16:22:41.000Z
2022-02-21T03:31:22.000Z
manga_db/extractor/toonily.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
13
2021-01-14T10:34:19.000Z
2021-05-20T08:47:54.000Z
manga_db/extractor/toonily.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
1
2022-02-24T03:10:04.000Z
2022-02-24T03:10:04.000Z
import re import datetime import bs4 from typing import Dict, Tuple, Optional, TYPE_CHECKING, ClassVar, Pattern, cast, Match, Any from .base import BaseMangaExtractor, MangaExtractorData from ..constants import STATUS_IDS, CENSOR_IDS if TYPE_CHECKING: from ..ext_info import ExternalInfo class ToonilyExtractor...
37.351724
111
0.605613
5,117
0.944793
0
0
732
0.135155
0
0
1,269
0.234306
27fb6ab9dc39790c3dcbcf43be391bd869cc5d49
10,965
py
Python
blindbackup/providers/blindfs.py
nagylzs/blindbackup
fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9
[ "Apache-2.0" ]
1
2020-01-26T05:46:14.000Z
2020-01-26T05:46:14.000Z
blindbackup/providers/blindfs.py
nagylzs/blindbackup
fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9
[ "Apache-2.0" ]
null
null
null
blindbackup/providers/blindfs.py
nagylzs/blindbackup
fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os.path import threading from .. import cryptfile from ..util import * from ..client import create_client from ..syncdir import FsProvider, FsListener class BlindFsListener(threading.Thread, FsListener): def is_stopping(self): return self.stop_requested.isSet() def __in...
38.882979
121
0.529503
10,777
0.982855
1,625
0.148199
60
0.005472
0
0
2,220
0.202462
27fd6c6f828a7e94f81f249d959e7e48fffdae85
3,587
py
Python
examples/computer_vision/harris.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
420
2015-07-30T00:02:21.000Z
2022-03-28T16:52:28.000Z
examples/computer_vision/harris.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
198
2015-07-29T17:17:36.000Z
2022-01-20T18:31:28.000Z
examples/computer_vision/harris.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
75
2015-07-29T15:17:54.000Z
2022-02-24T06:50:23.000Z
#!/usr/bin/env python ####################################################### # Copyright (c) 2018, ArrayFire # All rights reserved. # # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # http://arrayfire.com/licenses/BSD-3-Clause ###############################...
28.927419
85
0.606078
0
0
0
0
0
0
0
0
1,296
0.361305
7e0022ad51ef52a75fd8fa97ecb5ea7bdfaf493d
4,376
py
Python
tests/generate_data.py
ngounou92/py-glm
83081444e2cbba4d94f9e6b85b6be23e0ff600b8
[ "BSD-3-Clause" ]
127
2017-09-01T13:54:43.000Z
2022-03-12T11:43:32.000Z
tests/generate_data.py
cscherrer/py-glm
d719d29fb5cc71c2cb5e728db36c6230a69292d8
[ "BSD-3-Clause" ]
8
2017-09-01T14:00:55.000Z
2020-11-09T14:42:50.000Z
tests/generate_data.py
cscherrer/py-glm
d719d29fb5cc71c2cb5e728db36c6230a69292d8
[ "BSD-3-Clause" ]
35
2017-09-01T19:23:04.000Z
2022-03-22T13:45:10.000Z
import numpy as np from scipy.linalg import sqrtm from sklearn.preprocessing import StandardScaler def make_linear_regression(n_samples=10000, n_uncorr_features=10, n_corr_features=10, n_drop_features=4, include_intercept=True, ...
41.67619
81
0.658364
0
0
0
0
0
0
0
0
0
0
7e0285965f79d7e3cf86a7275a5d19452f38b750
1,735
py
Python
scripts/http-server.py
jrbenito/SonoffDIY-tasmotizer
1fe9eb9b3b5630102feaf941bd02173d916e81a5
[ "MIT" ]
null
null
null
scripts/http-server.py
jrbenito/SonoffDIY-tasmotizer
1fe9eb9b3b5630102feaf941bd02173d916e81a5
[ "MIT" ]
3
2020-03-30T14:07:54.000Z
2020-03-30T22:59:29.000Z
scripts/http-server.py
jrbenito/SonoffDIY-tasmotizer
1fe9eb9b3b5630102feaf941bd02173d916e81a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """ fake-registration-server.py Created by nano on 2018-11-22. Copyright (c) 2018 VTRUST. All rights reserved. """ import tornado.web import tornado.locks from tornado.options import define, options, parse_command_line define("port", default=80, help="run on the given port", t...
25.144928
101
0.702594
305
0.175793
0
0
0
0
0
0
515
0.29683
7e03585ae9ededa10d0e3ad01e0e054a8d2b1e4e
1,998
py
Python
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
import numpy as np import fast_carpenter.summary.binning_config as mgr from . import dummy_binning_descriptions as binning def test_create_one_region(): cfg = {"_" + k: v for k, v in binning.bins_nmuon.items()} _in, _out, _bins, _index = mgr.create_one_dimension("test_create_one_region", **cfg) assert _in...
33.864407
116
0.68018
0
0
0
0
0
0
0
0
322
0.161161
7e037b73adcc0dc266a78c21e1147b45fea5e505
671
py
Python
create_ITIs.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
1
2019-03-20T15:12:07.000Z
2019-03-20T15:12:07.000Z
create_ITIs.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
null
null
null
create_ITIs.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
null
null
null
from __future__ import division from constants import * import numpy as np import os precueITIs = np.random.exponential(standard_parameters['mean_iti_precue'], standard_parameters['n_targets']) + standard_parameters['min_iti_precue'] np.save('ITIs/precueITIs.npy',precueITIs) postcueITIs = np.random.exponential(standa...
51.615385
162
0.81073
0
0
0
0
0
0
0
0
193
0.28763
7e040cb0e0c724ec734deffc7ed5a19d9e7e9d15
99
py
Python
venv/lib/python3.7/site-packages/kdlearn/myfunctions.py
FillOverFlow/kdlearn
1e57895cb10ca903a33e2774986661b9b64d4071
[ "MIT" ]
1
2021-01-19T03:35:20.000Z
2021-01-19T03:35:20.000Z
venv/lib/python3.7/site-packages/kdlearn/myfunctions.py
FillOverFlow/kdlearn
1e57895cb10ca903a33e2774986661b9b64d4071
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/kdlearn/myfunctions.py
FillOverFlow/kdlearn
1e57895cb10ca903a33e2774986661b9b64d4071
[ "MIT" ]
null
null
null
''' PUT FUNCTION HERE !! Author Davinci ''' def helloworld(name): return "KDlearn :" + name
9.9
29
0.626263
0
0
0
0
0
0
0
0
55
0.555556
7e0480f047709048b68affbe1e229fbea8aaa94b
4,122
py
Python
Set_ADT/linearset.py
jaeheeLee17/DS_and_Algorithms_summary
917500dd768eae8cfbb02cf2838d494cb720f1c0
[ "MIT" ]
null
null
null
Set_ADT/linearset.py
jaeheeLee17/DS_and_Algorithms_summary
917500dd768eae8cfbb02cf2838d494cb720f1c0
[ "MIT" ]
null
null
null
Set_ADT/linearset.py
jaeheeLee17/DS_and_Algorithms_summary
917500dd768eae8cfbb02cf2838d494cb720f1c0
[ "MIT" ]
null
null
null
# Implementation of the Set ADT container using a Python list. class Set: # Creates an empty set instance. def __init__(self): self._theElements = list() # Returns the number of items in the set def __len__(self): return len(self._theElements) # Determines if an element is in the s...
31.707692
71
0.563561
4,025
0.976468
0
0
0
0
0
0
1,160
0.281417
7e0968601bb493a7e6ab7c62ca33e94de63a37f6
123
py
Python
src/apps/buttons/apps.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
null
null
null
src/apps/buttons/apps.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
4
2021-03-19T02:42:10.000Z
2021-09-22T19:08:09.000Z
src/apps/buttons/apps.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ButtonsConfig(AppConfig): name = 'apps.buttons' verbose_name = 'Клавиши'
17.571429
33
0.731707
93
0.715385
0
0
0
0
0
0
30
0.230769
7e09cc367a70ac9496d060fdad8e3eb6e83f2472
141
py
Python
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
input() S=input() dot=S.count(".") ans=dot count=0 for s in S: if s=="#":count+=1 else:dot-=1 ans=(min(ans,count+dot)) print(ans)
14.1
28
0.574468
0
0
0
0
0
0
0
0
6
0.042553
7e0a3148033e56abb61f66e7e257ace62456c980
2,932
py
Python
app/billing/views.py
flaviogf/finance
86a74e1eea6b19d7fe8c311eb77394a267e26432
[ "MIT" ]
null
null
null
app/billing/views.py
flaviogf/finance
86a74e1eea6b19d7fe8c311eb77394a267e26432
[ "MIT" ]
null
null
null
app/billing/views.py
flaviogf/finance
86a74e1eea6b19d7fe8c311eb77394a267e26432
[ "MIT" ]
null
null
null
from flask import (Blueprint, abort, flash, redirect, render_template, request, url_for) from flask_login import current_user, login_required from app import db from app.billing.forms import CreateBillingForm from app.models import Billing from sqlalchemy import desc billing = Blueprint('billing', ...
27.660377
96
0.664734
0
0
0
0
2,587
0.882333
0
0
396
0.135061
7e0b8779363fd91f6026918cffc7f561df56bcf8
9,120
py
Python
flickipedia/mashup.py
rfaulkner/Flickipedia
1b53f30be4027901748a09c411d568c7148f4e4b
[ "BSD-2-Clause" ]
1
2016-03-11T09:40:19.000Z
2016-03-11T09:40:19.000Z
flickipedia/mashup.py
rfaulkner/Flickipedia
1b53f30be4027901748a09c411d568c7148f4e4b
[ "BSD-2-Clause" ]
1
2015-02-27T02:23:19.000Z
2015-02-27T02:23:19.000Z
flickipedia/mashup.py
rfaulkner/Flickipedia
1b53f30be4027901748a09c411d568c7148f4e4b
[ "BSD-2-Clause" ]
null
null
null
""" Author: Ryan Faulkner Date: October 19th, 2014 Container for mashup logic. """ import json import random from sqlalchemy.orm.exc import UnmappedInstanceError from flickipedia.redisio import DataIORedis from flickipedia.model.articles import ArticleModel, ArticleContentModel from flickipedia.config ...
35.076923
78
0.607346
0
0
0
0
0
0
0
0
3,160
0.346491
7e0be21835c15a9296a6ae0c119d0388d9169b45
240
py
Python
docs/examples/slider_dimmer.py
SatoshiIwasada/BlueDot
e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a
[ "MIT" ]
112
2017-03-27T17:23:17.000Z
2022-03-13T09:51:43.000Z
docs/examples/slider_dimmer.py
SatoshiIwasada/BlueDot
e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a
[ "MIT" ]
109
2017-03-29T11:19:54.000Z
2022-02-03T14:18:15.000Z
docs/examples/slider_dimmer.py
SatoshiIwasada/BlueDot
e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a
[ "MIT" ]
40
2017-03-30T23:23:27.000Z
2022-01-21T17:09:11.000Z
from bluedot import BlueDot from gpiozero import PWMLED from signal import pause def set_brightness(pos): brightness = (pos.y + 1) / 2 led.value = brightness led = PWMLED(27) bd = BlueDot() bd.when_moved = set_brightness pause()
17.142857
32
0.725
0
0
0
0
0
0
0
0
0
0
7e0e399837934c037868f72f1f2ece1fe8884d6e
328
py
Python
blog/urls.py
Halo-Developers/Halo-Learn
4c8f9e395c0145df39fa3333fefa23d02a370688
[ "MIT" ]
1
2021-09-23T16:02:51.000Z
2021-09-23T16:02:51.000Z
blog/urls.py
kuyesu/Halo-Learn
abd60d45c191297daedd20b3b308a30a78cba9c7
[ "MIT" ]
null
null
null
blog/urls.py
kuyesu/Halo-Learn
abd60d45c191297daedd20b3b308a30a78cba9c7
[ "MIT" ]
2
2021-09-20T09:50:45.000Z
2022-02-20T06:42:42.000Z
from django.urls import path from . import views app_name = 'blog' urlpatterns = [ path('', views.post_list, name='post_list'), path('<slug:post>/',views.post_detail,name="post_detail"), path('comment/reply/', views.reply_page, name="reply"), path('tag/<slug:tag_slug>/',views.post_list, name='post_tag...
27.333333
68
0.67378
0
0
0
0
0
0
0
0
101
0.307927
7e11a4d77fb343f77a786063eff503d5200a6c2d
1,313
py
Python
126-Word_Ladder_II.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
6
2018-06-13T06:48:42.000Z
2020-11-25T10:48:13.000Z
126-Word_Ladder_II.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
126-Word_Ladder_II.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
class Solution: def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: tree, words, len_w = collections.defaultdict(set), set( wordList ), len(beginWord) if endWord not in words: return [] found, q, nextq = False, {beginWord...
35.486486
96
0.393755
1,312
0.999238
0
0
0
0
0
0
84
0.063976
fd665b1231aab43a664a3eab839a54a833e10f79
3,144
py
Python
web/env/lib/python3.6/site-packages/test/file/test_includer.py
Conbrown100/webfortune
779026d064498d36ddeba07e06cc744fb335ceb6
[ "Apache-2.0" ]
8
2015-07-30T16:19:18.000Z
2021-08-10T21:00:47.000Z
web/env/lib/python3.6/site-packages/test/file/test_includer.py
Conbrown100/webfortune
779026d064498d36ddeba07e06cc744fb335ceb6
[ "Apache-2.0" ]
3
2015-01-09T13:53:55.000Z
2017-06-05T17:39:46.000Z
web/env/lib/python3.6/site-packages/test/file/test_includer.py
Conbrown100/webfortune
779026d064498d36ddeba07e06cc744fb335ceb6
[ "Apache-2.0" ]
6
2015-01-09T13:47:15.000Z
2020-12-25T14:09:41.000Z
import os from tempfile import TemporaryDirectory import codecs import logging from grizzled.file.includer import * from grizzled.os import working_directory from grizzled.text import strip_margin import pytest @pytest.fixture def log(): return logging.getLogger('test') def test_simple(log): outer = '''|Firs...
29.383178
70
0.515585
0
0
0
0
63
0.020038
0
0
1,253
0.398537
fd684e3bf1de0c4b9c2f1d5a15a6a2d42e862075
286
py
Python
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.unsigned_short.schema_instance.nistschema_sv_iv_list_unsigned_short_min_length_2_xsd.nistschema_sv_iv_list_unsigned_short_min_length_2 import NistschemaSvIvListUnsignedShortMinLength2 __all__ = [ "NistschemaSvIvListUnsignedShortMinLength2", ]
47.666667
221
0.905594
0
0
0
0
0
0
0
0
43
0.15035
fd69e06856c7f3a481475985f97cf69bf7d1965f
127
py
Python
satchmo/projects/skeleton/localsite/urls.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
1
2019-10-08T16:19:59.000Z
2019-10-08T16:19:59.000Z
satchmo/projects/skeleton/localsite/urls.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/projects/skeleton/localsite/urls.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from simple.localsite.views import example urlpatterns = [ url(r'example/', example), ]
15.875
42
0.732283
0
0
0
0
0
0
0
0
11
0.086614
fd6a627b6084b5a56d9fe3161a2d00c62052ed2a
8,850
py
Python
tbconnect/tests/test_views.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
null
null
null
tbconnect/tests/test_views.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
23
2020-07-16T15:40:35.000Z
2021-12-13T13:59:30.000Z
tbconnect/tests/test_views.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
1
2021-02-24T04:58:40.000Z
2021-02-24T04:58:40.000Z
from django.test import TestCase from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from tbconnect.models import TBCheck, TBTest from userprofile.models import Hea...
37.184874
84
0.568701
8,390
0.948023
0
0
0
0
0
0
1,988
0.224633
fd6abf4d61e22150256649650adbe262b09e0720
1,350
py
Python
code/runibm1.py
jrod2699/CS159-NLP-Final-Project-
76eea6149ab01d5e72232874398458ec9f35227f
[ "MIT" ]
null
null
null
code/runibm1.py
jrod2699/CS159-NLP-Final-Project-
76eea6149ab01d5e72232874398458ec9f35227f
[ "MIT" ]
null
null
null
code/runibm1.py
jrod2699/CS159-NLP-Final-Project-
76eea6149ab01d5e72232874398458ec9f35227f
[ "MIT" ]
null
null
null
import nltk import random from preprocess import compile_corpus from nltk.translate import IBMModel1, AlignedSent, Alignment def run(filename, iterations): # global variables utilized in the assessment of the IBM Model global ibm1 global corpus # construct and modify corpus by adding the system alignm...
31.395349
115
0.665926
0
0
0
0
0
0
0
0
683
0.505926
fd6ba7ba1979062899ef77a2f2ebee1332127153
374
py
Python
makenew_python_app/server/boot.py
makenew/python-app
5f3c6669efe6e80d356d39afb712d72bf0e69916
[ "MIT" ]
2
2021-01-10T05:54:37.000Z
2021-01-12T01:24:38.000Z
makenew_python_app/server/boot.py
makenew/python-app
5f3c6669efe6e80d356d39afb712d72bf0e69916
[ "MIT" ]
null
null
null
makenew_python_app/server/boot.py
makenew/python-app
5f3c6669efe6e80d356d39afb712d72bf0e69916
[ "MIT" ]
null
null
null
from os import environ, path from .server import Server from .config import configure def boot(create_dependencies): config_path = environ.get("PYAPP_CONFIG_PATH") or path.realpath( path.join(path.dirname(__file__), "..", "..", "config") ) server = Server(create_dependencies, config_path) ser...
26.714286
68
0.716578
0
0
0
0
0
0
0
0
35
0.093583
fd6c34c3adb6f440619a388c9b66cf0b7a99a5e9
1,027
py
Python
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
4
2016-01-10T15:58:48.000Z
2019-08-10T23:12:31.000Z
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
1
2021-03-31T18:46:14.000Z
2021-03-31T18:46:14.000Z
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
5
2016-03-22T00:58:33.000Z
2017-09-14T12:43:54.000Z
# -*- coding: utf-8 -*- from checker.backends import BaseBackend from checker import logger log = logger.getLogger(__name__) class PagureBackend(BaseBackend): """for projects hosted on pagure.io""" name = 'Pagure' domain = 'pagure.io' example = 'https://pagure.io/pagure' def __init__(self, url...
27.756757
77
0.559883
897
0.873418
0
0
155
0.150925
0
0
296
0.288218
fd6d8440e80ddfffc2b7c87e874259a2676fb497
2,184
py
Python
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
5
2015-06-27T09:36:26.000Z
2018-05-05T02:43:43.000Z
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
4
2018-06-07T15:19:33.000Z
2020-02-10T12:15:11.000Z
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
2
2019-08-30T07:27:05.000Z
2020-02-12T08:03:24.000Z
import os import re from time import time from vial import vfunc, vim from vial.fsearch import get_files from vial.utils import get_projects, redraw MAX_FILESIZE = 10 * 1024 * 1024 def grep(query): matcher = re.compile(re.escape(query)) t = time() - 1 result = [] for r in get_projects(): f...
24.818182
61
0.431777
0
0
0
0
0
0
0
0
192
0.087912
fd6ea7420f474f3252a16e6bcdeebb2e566cf6e9
3,619
py
Python
tests/test_models.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
7
2017-08-15T21:51:40.000Z
2020-10-28T00:40:23.000Z
tests/test_models.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
63
2017-08-11T15:12:03.000Z
2020-05-23T19:03:46.000Z
tests/test_models.py
cbertinato/DGP
5bb8a30895365eccdd452970c45e248903fca8af
[ "Apache-2.0" ]
4
2018-03-29T21:30:26.000Z
2020-10-27T20:15:23.000Z
# -*- coding: utf-8 -*- """ Unit tests for new Project/Flight data classes, including JSON serialization/de-serialization """ import time from datetime import datetime from typing import Tuple from uuid import uuid4 from pathlib import Path import pytest import pandas as pd from dgp.core import DataType from dgp.cor...
27.210526
80
0.698812
0
0
0
0
184
0.050843
0
0
461
0.127383
fd6f10a9e5cd95371737b186d651e8e464b2660c
389
py
Python
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
42
2018-01-18T14:50:05.000Z
2022-03-24T18:34:19.000Z
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
14
2018-12-05T21:39:23.000Z
2022-02-27T06:43:48.000Z
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
5
2018-01-18T16:32:20.000Z
2021-06-07T10:15:18.000Z
from django.conf.urls import include, url from rest_framework.documentation import include_docs_urls from examples.rest import router from .views import index urlpatterns = [ url(r'^$', index, name='index'), url(r'^', include(router.urls)), url(r'^dynamicforms/', include('dynamicforms.urls')), url(r'^...
29.923077
77
0.722365
0
0
0
0
0
0
0
0
92
0.236504
fd6f1c1a3069baecfcb5b723cf12a8c76710a022
1,312
py
Python
tests/contract/test_concept.py
Informasjonsforvaltning/fdk-harvester-bff
21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742
[ "Apache-2.0" ]
null
null
null
tests/contract/test_concept.py
Informasjonsforvaltning/fdk-harvester-bff
21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742
[ "Apache-2.0" ]
20
2020-09-23T10:04:48.000Z
2022-03-14T07:47:45.000Z
tests/contract/test_concept.py
Informasjonsforvaltning/fdk-harvester-bff
21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742
[ "Apache-2.0" ]
null
null
null
"""Test cases for concepts.""" from typing import Any import pytest import requests @pytest.mark.contract def test_get_concept_with_id(http_service: Any) -> None: test_id = "a683bc63-2961-46af-9956-8a4a3f991cc6" url = f"{http_service}/concepts/{test_id}" result = requests.get(url=url, headers={"accept": ...
42.322581
289
0.70503
0
0
0
0
1,231
0.933283
0
0
779
0.590599
fd6fc2f8e9fb0cf4963f53e0dd218bc472fd9daa
4,572
py
Python
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
''' Mostly these are internal imports related to django and rest_framework. The os and io imports are for creating files, paths and parsing bytes objects respectively ''' from django.db import models from django.contrib.auth.models import User from rest_framework.renderers import JSONRenderer from rest_framework.par...
41.563636
227
0.649606
3,090
0.675853
0
0
0
0
0
0
1,890
0.413386
fd71a2a6d5b1e71ced9722bf68301238887fd3c8
95,557
py
Python
DexParse.py
liumengdeqq/DexParse
769899e26f01700c690ed82c48790d1000efb5f1
[ "Apache-2.0" ]
16
2015-11-19T01:51:52.000Z
2020-03-10T06:24:28.000Z
DexParse.py
CvvT/DexParse
80c3f4a27e7163536f98584c5e7f7ec35a9451b8
[ "Apache-2.0" ]
null
null
null
DexParse.py
CvvT/DexParse
80c3f4a27e7163536f98584c5e7f7ec35a9451b8
[ "Apache-2.0" ]
22
2015-09-15T02:20:48.000Z
2021-06-24T02:55:09.000Z
#! /usr/bin/python # coding=utf-8 import struct import os import hashlib import Instruction Access_Flag = {'public': 1, 'private': 2, 'protected': 4, 'static': 8, 'final': 0x10, 'synchronized': 0x20, 'volatile': 0x40, 'bridge': 0x40, 'transient': 0x80, 'varargs': 0x80, 'native': ...
40.958851
124
0.551744
84,445
0.883713
0
0
0
0
0
0
9,978
0.104419
fd71ae1315e427ea9c9874263b95024d2ffb8696
1,852
py
Python
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import User, UserProfile, Post, News, Video from datetime import datetime class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfile fields = ('address', 'country', 'city', 'zip', 'photo') class UserSerializer(...
31.389831
83
0.665227
1,710
0.923326
0
0
0
0
0
0
210
0.113391
fd71c4f7dcacba2ce5484fe215f8d27faba98441
6,603
py
Python
src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
33.015
123
0.69741
4,372
0.662123
0
0
0
0
0
0
1,878
0.284416
fd7312c0409e17edc8a594caad14c3eebd8edb1f
5,344
py
Python
cookie.py
cppchriscpp/fortune-cookie
46e433e1ae06a8ad742b252d642f8620bde9e38b
[ "MIT" ]
null
null
null
cookie.py
cppchriscpp/fortune-cookie
46e433e1ae06a8ad742b252d642f8620bde9e38b
[ "MIT" ]
null
null
null
cookie.py
cppchriscpp/fortune-cookie
46e433e1ae06a8ad742b252d642f8620bde9e38b
[ "MIT" ]
null
null
null
import markovify import re import nltk import os import urllib.request from shutil import copyfile # We need a temporary(ish) place to store the data we retrieve. # If you are running this in a docker container you may want to mount a volume and use it. # Also be sure to make a symlink between it and the assets direc...
36.60274
165
0.698915
342
0.063997
0
0
0
0
0
0
2,358
0.441243
fd76b6a6e3bed41850763cc3f44afdab15844d51
427
py
Python
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
1
2020-08-13T05:31:01.000Z
2020-08-13T05:31:01.000Z
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
null
null
null
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
null
null
null
import environs env = environs.Env() env.read_env() from wsgi_microservice_middleware.cors import CORSMiddleware from wsgi_microservice_middleware.request_id import ( RequestIdFilter, RequestIdMiddleware, current_request_id, RequestIdJsonLogFormatter ) __all__ = [ 'CORSMiddleware', 'Re...
17.791667
60
0.744731
0
0
0
0
0
0
0
0
101
0.236534
fd77738934a082ed69675adc328a1ec23a42bd8b
686
py
Python
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
1
2021-03-24T02:21:03.000Z
2021-03-24T02:21:03.000Z
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
null
null
null
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
null
null
null
import turtle as t import random COLORS = ["red", "orange", "yellow", "green", "blue", "purple"] STARTING_MOVE_DISTANCE = 5 MOVE_INCREMENT = 1 def next_level(): global STARTING_MOVE_DISTANCE STARTING_MOVE_DISTANCE += MOVE_INCREMENT class CarManager(t.Turtle): def __init__(self): super().__init...
23.655172
63
0.644315
440
0.641399
0
0
0
0
0
0
50
0.072886
fd78ccdbc7f44ee790bb4e0e5bb66afdadb94039
3,329
py
Python
2021/05_2/solution.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
null
null
null
2021/05_2/solution.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
null
null
null
2021/05_2/solution.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
1
2022-02-11T13:14:50.000Z
2022-02-11T13:14:50.000Z
""" Advent of code 2021 day 05 / 2 """ import math from os import path import re from collections import Counter class Code(object): def __init__(self, lines): self.lines = lines def printmap(self, dim, minx, miny, maxx, maxy): for i in range(miny, maxy + 1): ln = "" ...
31.40566
82
0.393812
2,533
0.760889
0
0
0
0
0
0
431
0.129468
fd7a3d5f8bd77ce667a1424c233439cb51d4d806
2,032
py
Python
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
""" Tissue Corrections ================== """ ################################################################################################### # .. _tutorial_removing_autoflourescence: # # Removing autofluorescence # ========================= # # In addition to the bright spots (signal) that we want to detect, micr...
35.034483
102
0.599902
0
0
0
0
0
0
0
0
1,301
0.640256
fd7a65079d9a251ce00ad45789e94722c4e7ad4e
146
py
Python
cru_alaska_temperature/__init__.py
sc0tts/cruAKtemp
84dbfc424f5f36bb0f0055b5290f0ab2063ae225
[ "MIT" ]
null
null
null
cru_alaska_temperature/__init__.py
sc0tts/cruAKtemp
84dbfc424f5f36bb0f0055b5290f0ab2063ae225
[ "MIT" ]
7
2017-04-25T21:50:47.000Z
2018-03-19T17:39:28.000Z
cru_alaska_temperature/__init__.py
sc0tts/cruAKtemp
84dbfc424f5f36bb0f0055b5290f0ab2063ae225
[ "MIT" ]
2
2019-02-18T22:42:07.000Z
2020-08-31T23:37:17.000Z
from .alaska_temperature import AlaskaTemperature from .bmi import AlaskaTemperatureBMI __all__ = ["AlaskaTemperature", "AlaskaTemperatureBMI"]
24.333333
55
0.835616
0
0
0
0
0
0
0
0
41
0.280822
fd7b422625225dcfe35545919a8429eaaa584545
378
py
Python
Qualification/1-ForegoneSolution/Solution.py
n1try/codejam-2019
3cedc74915eca7384adaf8f6a68eeb21ada1beaf
[ "MIT" ]
null
null
null
Qualification/1-ForegoneSolution/Solution.py
n1try/codejam-2019
3cedc74915eca7384adaf8f6a68eeb21ada1beaf
[ "MIT" ]
null
null
null
Qualification/1-ForegoneSolution/Solution.py
n1try/codejam-2019
3cedc74915eca7384adaf8f6a68eeb21ada1beaf
[ "MIT" ]
null
null
null
import re t = int(input()) for i in range(0, t): chars = input() m1, m2 = [None] * len(chars), [None] * len(chars) for j in range(0, len(chars)): m1[j] = "3" if chars[j] == "4" else chars[j] m2[j] = "1" if chars[j] == "4" else "0" s1 = ''.join(m1) s2 = ''.join(m2) print("C...
29.076923
70
0.457672
0
0
0
0
0
0
0
0
44
0.116402
fd7bd590362f7ad441cb4aaacc481be5a9c4d64c
1,645
py
Python
1.imdbData.py
batucimenn/imdbScraperOnWaybackMachine2
e6d92b5c794a2603a05e986b587a796d2a80fd8d
[ "MIT" ]
null
null
null
1.imdbData.py
batucimenn/imdbScraperOnWaybackMachine2
e6d92b5c794a2603a05e986b587a796d2a80fd8d
[ "MIT" ]
null
null
null
1.imdbData.py
batucimenn/imdbScraperOnWaybackMachine2
e6d92b5c794a2603a05e986b587a796d2a80fd8d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Scraper movies data from Imdb # In[ ]: import csv import pandas as pd # Year range to collect data. # In[ ]: startYear=int(input("startYear: ")) finishYear=int(input("finishYear: ")) # File path to save. Ex: C:\Users\User\Desktop\newFile # In[ ]: filePath = input("F...
26.532258
117
0.570821
0
0
0
0
0
0
0
0
499
0.303343
fd7c26cf48ae51b52e75c459ca5537852b6f4936
2,680
py
Python
effective_python/metaclass_property/descriptor_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:07:56.000Z
2018-12-19T22:07:56.000Z
effective_python/metaclass_property/descriptor_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
12
2020-03-14T05:32:26.000Z
2022-03-12T00:08:49.000Z
effective_python/metaclass_property/descriptor_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:08:00.000Z
2018-12-19T22:08:00.000Z
""" @author: magician @file: descriptor_demo.py @date: 2020/1/14 """ from weakref import WeakKeyDictionary class Homework(object): """ Homework """ def __init__(self): self._grade = 0 @property def grade(self): return self._grade @grade.setter def grade(self, valu...
23.304348
65
0.596642
1,081
0.403358
0
0
225
0.083955
0
0
1,451
0.541418
fd7c5d171d30796fbb3b1df9d4223d6476d4d998
3,584
py
Python
afk-q-babyai/babyai/layers/aggrerator.py
IouJenLiu/AFK
db2b47bb3a5614b61766114b87f143e4a61a4a8d
[ "MIT" ]
1
2022-03-12T03:10:29.000Z
2022-03-12T03:10:29.000Z
afk-q-babyai/babyai/layers/aggrerator.py
IouJenLiu/AFK
db2b47bb3a5614b61766114b87f143e4a61a4a8d
[ "MIT" ]
null
null
null
afk-q-babyai/babyai/layers/aggrerator.py
IouJenLiu/AFK
db2b47bb3a5614b61766114b87f143e4a61a4a8d
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F def masked_softmax(x, m=None, axis=-1): ''' x: batch x time x hid m: batch x time (optional) ''' x = torch.clamp(x, min=-15.0, max=15.0) if m is not None: m = m.float() x = x * m e_x = torch.exp(x - torch.max(x...
41.195402
103
0.624163
3,098
0.864397
0
0
0
0
0
0
457
0.127511
fd816f646c55f1654d9547e1f480c4843279f30e
707
py
Python
analysis_llt/ml/cv/neighbors.py
Tammy-Lee/analysis-llt
ea1bb62d614bb75dac68c010a0cc524a5be185f2
[ "MIT" ]
null
null
null
analysis_llt/ml/cv/neighbors.py
Tammy-Lee/analysis-llt
ea1bb62d614bb75dac68c010a0cc524a5be185f2
[ "MIT" ]
null
null
null
analysis_llt/ml/cv/neighbors.py
Tammy-Lee/analysis-llt
ea1bb62d614bb75dac68c010a0cc524a5be185f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ create on 2019-03-20 04:17 author @lilia """ from sklearn.neighbors import KNeighborsClassifier from analysis_llt.ml.cv.base import BaseCV class KNNCV(BaseCV): fit_predict_proba_ = False def __init__(self, n_neighbors=5, cv=None, random_state=None, verbose=0, **model_params): ...
29.458333
102
0.708628
535
0.756719
0
0
0
0
0
0
129
0.182461
fd8175ceff7997ec372ad498a63c3ba3b5e8e259
1,066
py
Python
tests/test_oas_cache.py
maykinmedia/zgw-consumers
9b0759d9b7c3590b245004afd4c5e5474785bf91
[ "MIT" ]
2
2021-04-25T11:29:33.000Z
2022-03-08T14:06:58.000Z
tests/test_oas_cache.py
maykinmedia/zgw-consumers
9b0759d9b7c3590b245004afd4c5e5474785bf91
[ "MIT" ]
27
2020-04-01T07:33:02.000Z
2022-03-14T09:11:05.000Z
tests/test_oas_cache.py
maykinmedia/zgw-consumers
9b0759d9b7c3590b245004afd4c5e5474785bf91
[ "MIT" ]
2
2020-07-30T15:40:47.000Z
2020-11-30T10:56:29.000Z
import threading from zds_client.oas import schema_fetcher def test_schema_fetch_twice(oas): schema = oas.fetch() assert isinstance(schema, dict) assert oas.mocker.call_count == 1 oas.fetch() # check that the cache is used assert oas.mocker.call_count == 1 def test_clear_caches_in_betwee...
21.755102
82
0.684803
0
0
0
0
0
0
0
0
217
0.203565
fd81f57132ba4b8e36862c9d9eb8179dcba9623a
4,165
py
Python
src/uproot_browser/tree.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
12
2022-03-18T11:47:26.000Z
2022-03-25T13:57:08.000Z
src/uproot_browser/tree.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
7
2022-03-18T11:40:36.000Z
2022-03-29T22:15:01.000Z
src/uproot_browser/tree.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
1
2022-03-21T14:37:07.000Z
2022-03-21T14:37:07.000Z
""" Display tools for TTrees. """ from __future__ import annotations import dataclasses import functools from pathlib import Path from typing import Any, Dict import uproot from rich.console import Console from rich.markup import escape from rich.text import Text from rich.tree import Tree console = Console() __al...
25.090361
90
0.623049
650
0.155391
0
0
3,006
0.718623
0
0
1,253
0.299546
fd83d8e2ff034305d143f2f77d3ed14a017cf93e
5,256
py
Python
backend/apps/tasks/models.py
HerlanAssis/simple-project-manager
800c833ec0cbeba848264753d79c5ecedc54cc39
[ "MIT" ]
1
2019-06-14T20:34:19.000Z
2019-06-14T20:34:19.000Z
backend/apps/tasks/models.py
HerlanAssis/simple-project-manager
800c833ec0cbeba848264753d79c5ecedc54cc39
[ "MIT" ]
3
2020-02-11T23:42:20.000Z
2020-06-25T17:35:48.000Z
backend/apps/tasks/models.py
HerlanAssis/simple-project-manager
800c833ec0cbeba848264753d79c5ecedc54cc39
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from apps.core.models import BaseModel from apps.core.utils import HASH_MAX_LENGTH, create_hash, truncate from django.utils.encoding import python_2_unicode_compat...
30.917647
145
0.68398
4,435
0.843316
0
0
4,654
0.884959
0
0
313
0.059517
fd84a04d43460db0ba028f9e178dd3ce7cffe504
2,650
py
Python
eland/tests/dataframe/test_aggs_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/tests/dataframe/test_aggs_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/tests/dataframe/test_aggs_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Elasticsearch BV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.323944
86
0.672075
1,859
0.701509
0
0
0
0
0
0
988
0.37283
fd8681cae85c92327aba29d9f6d3628698abb698
1,811
py
Python
frootspi_examples/launch/conductor.launch.py
SSL-Roots/FrootsPi
3aff59342a9d3254d8b089b66aeeed59bcb66c7b
[ "Apache-2.0" ]
2
2021-11-27T10:57:01.000Z
2021-11-27T11:25:52.000Z
frootspi_examples/launch/conductor.launch.py
SSL-Roots/FrootsPi
3aff59342a9d3254d8b089b66aeeed59bcb66c7b
[ "Apache-2.0" ]
1
2018-07-31T13:29:57.000Z
2018-07-31T13:36:50.000Z
frootspi_examples/launch/conductor.launch.py
SSL-Roots/FrootsPi
3aff59342a9d3254d8b089b66aeeed59bcb66c7b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Roots # # 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, softwa...
34.826923
81
0.703479
0
0
0
0
0
0
0
0
837
0.461666
fd876869a60981b01094fa1c90ddae1cb851c885
1,639
py
Python
src/vnf/l23filter/controllers/InitializeDbController.py
shield-h2020/vnsfs
864bdd418d3910b86783044be94d2bdb07e95aec
[ "Apache-2.0" ]
2
2018-11-06T17:55:56.000Z
2021-02-09T07:40:17.000Z
src/vnf/l23filter/controllers/InitializeDbController.py
shield-h2020/vnsfs
864bdd418d3910b86783044be94d2bdb07e95aec
[ "Apache-2.0" ]
null
null
null
src/vnf/l23filter/controllers/InitializeDbController.py
shield-h2020/vnsfs
864bdd418d3910b86783044be94d2bdb07e95aec
[ "Apache-2.0" ]
4
2018-03-28T18:06:26.000Z
2021-07-17T00:33:55.000Z
import logging from sqlalchemy import create_engine, event from configuration import config as cnf from helpers.DbHelper import on_connect, db_session, assert_database_type from models import Base, Flow # from models.depreciated import Metric logging.basicConfig() logging.getLogger('sqlalchemy.engine').setLevel(logg...
26.015873
73
0.649786
1,303
0.794997
0
0
0
0
0
0
503
0.306894
fd88ba06d62178ae22d727dfd3879ac3e980173e
166
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_flex_1_1_Npercent.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flexbox_flex_1_1_Npercent.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flexbox_flex_1_1_Npercent.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
1
2020-01-16T01:56:41.000Z
2020-01-16T01:56:41.000Z
from tests.utils import W3CTestCase class TestFlexbox_Flex11Npercent(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_flex-1-1-Npercent'))
27.666667
80
0.807229
127
0.76506
0
0
0
0
0
0
27
0.162651
fd88c78266fc4209a289fbc25268f76bce338838
150
py
Python
frontends/python/tests/analysis/constant_attribute.py
aardwolf-sfl/aardwolf
33bfe3e0649a73aec7efa0fa80bff8077b550bd0
[ "MIT" ]
2
2020-08-15T08:55:39.000Z
2020-11-09T17:31:16.000Z
frontends/python/tests/analysis/constant_attribute.py
aardwolf-sfl/aardwolf
33bfe3e0649a73aec7efa0fa80bff8077b550bd0
[ "MIT" ]
null
null
null
frontends/python/tests/analysis/constant_attribute.py
aardwolf-sfl/aardwolf
33bfe3e0649a73aec7efa0fa80bff8077b550bd0
[ "MIT" ]
null
null
null
# AARD: function: __main__ # AARD: #1:1 -> :: defs: %1 / uses: [@1 4:1-4:22] { call } 'value: {}'.format(3) # AARD: @1 = constant_attribute.py
21.428571
63
0.546667
0
0
0
0
0
0
0
0
134
0.893333
fd88d6da1a9e31351274cdc8c9d06c97bd2fa421
884
py
Python
rl_server/tensorflow/networks/layer_norm.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
9
2019-03-11T11:02:12.000Z
2022-03-10T12:53:25.000Z
rl_server/tensorflow/networks/layer_norm.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
1
2021-01-06T20:18:33.000Z
2021-01-06T20:19:53.000Z
rl_server/tensorflow/networks/layer_norm.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
3
2019-01-19T03:32:26.000Z
2020-11-29T18:15:57.000Z
from tensorflow.python.keras.layers import Layer from tensorflow.python.keras import backend as K class LayerNorm(Layer): def __init__(self, axis=-1, eps=1e-6, **kwargs): self.axis = axis self.eps = eps super(LayerNorm, self).__init__(**kwargs) def build(self, input_shape): i...
34
90
0.645928
783
0.885747
0
0
0
0
0
0
26
0.029412