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
a6a31c4462617cfbcd1bf1328dcedfb388cc1b51
375
py
Python
api_discovery/modules/__init__.py
TommyLike/huawei-api-discovery
01409e2d8f3c1942d3cb92dee5f96782d925ab3c
[ "MIT" ]
null
null
null
api_discovery/modules/__init__.py
TommyLike/huawei-api-discovery
01409e2d8f3c1942d3cb92dee5f96782d925ab3c
[ "MIT" ]
null
null
null
api_discovery/modules/__init__.py
TommyLike/huawei-api-discovery
01409e2d8f3c1942d3cb92dee5f96782d925ab3c
[ "MIT" ]
null
null
null
from api_discovery.modules import logging from api_discovery.modules import api from api_discovery.modules import database from api_discovery.modules import task log = logging.Logging() discovery_api = api.DiscoveryAPI() db = database.Database() taskhub = task.TaskHub() def init_app(app): for module in [log, dis...
25
52
0.773333
0
0
0
0
0
0
0
0
0
0
a6a3b9bf76f0958453838d9fe554c384889d8f3d
3,053
py
Python
woomba/robot.py
AnotherKamila/lego-wet-roomba
796403146d068c73ef053fe8db431da6e7a68253
[ "MIT" ]
1
2017-08-20T21:46:40.000Z
2017-08-20T21:46:40.000Z
woomba/robot.py
AnotherKamila/lego-wet-roomba
796403146d068c73ef053fe8db431da6e7a68253
[ "MIT" ]
14
2017-08-20T21:14:29.000Z
2018-02-18T15:31:34.000Z
woomba/robot.py
AnotherKamila/lego-wet-roomba
796403146d068c73ef053fe8db431da6e7a68253
[ "MIT" ]
null
null
null
"""A Controller class for composable things controlling robots, plus utility stuff. An important abstraction here is Command: a function that returns immediately. It may issue sub-Commands to motors and such, and do quick calculations, but it must be fast. It must not block, ever. It will be called often enough to saf...
37.231707
121
0.658041
765
0.250573
0
0
0
0
0
0
2,627
0.860465
a6a3f751ce40c9a7f003cbfe5731b5ed130383b1
437
py
Python
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
import pandas as pd import constants as const data = pd.read_csv('data/data_with_headers.csv') data_class_1 = data[data.diagnosis==1] for name,grouped_data in data[data.diagnosis!=1].groupby(const.LABEL): data_class =grouped_data.append(data_class_1) #print(data_class.head()) #print(data_class.tail()) d...
39.727273
70
0.757437
0
0
0
0
0
0
0
0
102
0.23341
a6a55b219d63b7c395eca9c18373794462505020
662
py
Python
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pprint import pprint # noqa from ..support import TestCase class DirectoryTest(TestCase): def test_normal_directory(self): fixture_path = self.fixture('testdir') result = self.manager.ingest(fixture_path) self.assertEqual(result.status, result.STATUS_SUCCESS...
31.52381
62
0.690332
569
0.859517
0
0
0
0
0
0
60
0.090634
a6a56754f5a359f5f3f898b5f76be76879351729
1,224
py
Python
sorting/k_closest_points_to_origin.py
elenaborisova/A2SV-interview-prep
02b7166a96d22221cd6adaedf14f845537f0752d
[ "MIT" ]
null
null
null
sorting/k_closest_points_to_origin.py
elenaborisova/A2SV-interview-prep
02b7166a96d22221cd6adaedf14f845537f0752d
[ "MIT" ]
null
null
null
sorting/k_closest_points_to_origin.py
elenaborisova/A2SV-interview-prep
02b7166a96d22221cd6adaedf14f845537f0752d
[ "MIT" ]
null
null
null
import math import heapq # Time: O(n * log n); Space: O(n) # MinHeap def k_closest(points, k): distances = {} # O(n) space h = [] # O(n) space for point in points: distance = math.sqrt(point[0] ** 2 + point[1] ** 2) if distance not in distances: distances[distance] = [] ...
23.538462
66
0.535948
0
0
0
0
0
0
0
0
259
0.211601
a6a6da1aacb22fe0b4ee83f5a841d6a9da85c4fa
122
py
Python
schemaless/orm/__init__.py
eklitzke/schemaless
eb2ca453a69e8af36980c53fcc66725116ae7971
[ "0BSD" ]
58
2015-04-30T07:36:45.000Z
2022-01-20T03:37:09.000Z
schemaless/orm/__init__.py
eklitzke/schemaless
eb2ca453a69e8af36980c53fcc66725116ae7971
[ "0BSD" ]
1
2016-01-19T05:28:15.000Z
2016-01-19T05:28:15.000Z
schemaless/orm/__init__.py
eklitzke/schemaless
eb2ca453a69e8af36980c53fcc66725116ae7971
[ "0BSD" ]
14
2015-04-14T09:10:53.000Z
2020-05-09T01:53:17.000Z
from session import Session from index import Index from column import * from document import make_base import converters
20.333333
30
0.844262
0
0
0
0
0
0
0
0
0
0
a6a73500dcaa5434137903d1b0436c04ea1797ad
270
py
Python
src/guarded_suspension/receiver.py
tukeJonny/python_patterns
3e14032030f60ea764ff50e3a5ac1b5dcda4b553
[ "MIT" ]
null
null
null
src/guarded_suspension/receiver.py
tukeJonny/python_patterns
3e14032030f60ea764ff50e3a5ac1b5dcda4b553
[ "MIT" ]
null
null
null
src/guarded_suspension/receiver.py
tukeJonny/python_patterns
3e14032030f60ea764ff50e3a5ac1b5dcda4b553
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from threading import Thread class Receiver(Thread): def __init__(self, queue): super().__init__() self.daemon = True self.queue = queue def run(self): while True: num = self.queue.get() print("[<==] received {0}".format(num))
18
42
0.637037
216
0.8
0
0
0
0
0
0
42
0.155556
a6a7c29743e855724d1e7a6f8b0133acb961084a
263
py
Python
demo/service/test/hello_world_v2.py
RyouZhang/nori
2e87f81582fe51590d115de84dfa25c5d0d52520
[ "MIT" ]
5
2017-03-14T23:36:54.000Z
2021-08-20T09:37:30.000Z
demo/service/test/hello_world_v2.py
RyouZhang/nori
2e87f81582fe51590d115de84dfa25c5d0d52520
[ "MIT" ]
null
null
null
demo/service/test/hello_world_v2.py
RyouZhang/nori
2e87f81582fe51590d115de84dfa25c5d0d52520
[ "MIT" ]
1
2017-08-24T10:01:11.000Z
2017-08-24T10:01:11.000Z
import noir.router as router import noir.rule as rule class HelloWorldV2(router.ServiceHandler): async def process(self, args, context): return 'Hello world V2 from HelloWorldV2', None router.register_service_handler('/api/hello/v2', HelloWorldV2())
29.222222
64
0.764259
141
0.536122
0
0
0
0
95
0.361217
49
0.186312
a6a8339ae7cdc4108489e9be1ac51505ff62d038
260
py
Python
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
7
2020-12-13T13:31:16.000Z
2020-12-31T12:26:07.000Z
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
4
2021-04-06T18:41:34.000Z
2021-09-08T02:52:35.000Z
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # This is to tell python that this is a package __version__ = '1.0' # __path__ = __import__('pkgutil').extend_path(__path__, __name__) __all__ = ['facebook', 'gmail', 'hangouts', 'nlp', 'quora', 'twitter', 'whatsapp', 'youtube', 'instagram']
43.333333
106
0.692308
0
0
0
0
0
0
0
0
213
0.819231
a6a91201d3a0ac40123ae08adfeb0a278ecf3119
819
py
Python
dcp_py/day062/day062.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/day062/day062.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/day062/day062.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # day062.py # By Sebastian Raaphorst, 2019. from math import factorial def num_paths(n: int, m: int) -> int: """ Calculate the number of paths in a rectangle of dimensions n x m from the top left to the bottom right. This is incredibly easy: we have to make n - 1 moves to the righ...
31.5
107
0.656899
0
0
0
0
0
0
0
0
674
0.822955
a6a958c70054d2579b52a859472989d158f49b98
406
py
Python
raspy/tests/test_IO/test_IOException.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/tests/test_IO/test_IOException.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/tests/test_IO/test_IOException.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
"""Tests for IOException.""" from raspy.io.io_exception import IOException class TestIOException(object): """Test methods for IOException.""" def test_io_exception(self): """Test the exception.""" caught = None try: raise IOException("This is a test.") except Exc...
21.368421
48
0.615764
326
0.802956
0
0
0
0
0
0
105
0.258621
a6aa1696a440193088edbc66879e995334f69dc4
1,634
py
Python
languages/admin.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
null
null
null
languages/admin.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
157
2019-10-08T07:58:59.000Z
2022-03-20T23:00:17.000Z
languages/admin.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
3
2019-10-07T12:06:26.000Z
2022-01-25T14:03:14.000Z
from django.contrib import admin from django.db.models import Count from django.utils.translation import gettext_lazy as _ from parler.admin import TranslatableAdmin from parler.utils.context import switch_language from .models import Language @admin.register(Language) class LanguageAdmin(TranslatableAdmin): lis...
29.178571
86
0.653611
1,360
0.832313
0
0
1,386
0.848225
0
0
344
0.210526
a6abc2008f51df97882b2fb02ac278c4faf29ad5
5,507
py
Python
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
36.713333
141
0.650263
3,256
0.591248
373
0.067732
2,800
0.508444
0
0
1,594
0.28945
a6acbe27d3c0f67a17173db25575993280383538
13,656
py
Python
Gearshift.py
TonyWhitley/gearbox
efdba8ecd88600418b39e38cdeccbb1f9a327ceb
[ "MIT" ]
null
null
null
Gearshift.py
TonyWhitley/gearbox
efdba8ecd88600418b39e38cdeccbb1f9a327ceb
[ "MIT" ]
null
null
null
Gearshift.py
TonyWhitley/gearbox
efdba8ecd88600418b39e38cdeccbb1f9a327ceb
[ "MIT" ]
null
null
null
# Gearshift.py - monitors the rFactor 2 shared memory values for the shifter # and clutch and if a gear change is not done properly it repeatedly sends a # "Neutral" key press to prevent the gear being selected. # # Inspired by http://www.richardjackett.com/grindingtranny # I borrowed Grind_default.wav from there to ma...
33.635468
110
0.614162
1,471
0.107718
0
0
0
0
0
0
4,590
0.336116
a6ad0e5039f9621813b9301c9789e70168ed48b1
144
py
Python
lang/Python/concurrent-computing-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/concurrent-computing-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/concurrent-computing-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
from concurrent import futures with futures.ProcessPoolExecutor() as executor: _ = list(executor.map(print, 'Enjoy Rosetta Code'.split()))
24
62
0.756944
0
0
0
0
0
0
0
0
20
0.138889
a6ad7b6a876ff429c200629b8a6d1cb6df41dea0
2,225
py
Python
rooms/management/commands/seed_amenities.py
alstn2468/Django_Airbnb_Clone
eeb61e4a36320a0b269d96f47cc6755dbc4c40f8
[ "MIT" ]
5
2019-11-26T00:34:24.000Z
2021-01-04T06:04:48.000Z
rooms/management/commands/seed_amenities.py
alstn2468/Django_Airbnb_Clone
eeb61e4a36320a0b269d96f47cc6755dbc4c40f8
[ "MIT" ]
3
2021-06-09T19:05:40.000Z
2021-09-08T01:49:01.000Z
rooms/management/commands/seed_amenities.py
alstn2468/Django_Airbnb_Clone
eeb61e4a36320a0b269d96f47cc6755dbc4c40f8
[ "MIT" ]
6
2019-11-24T11:47:09.000Z
2021-08-16T20:21:35.000Z
from core.management.commands.custom_command import CustomCommand from rooms.models import Amenity class Command(CustomCommand): help = "Automatically create amenities" def handle(self, *args, **options): try: amenities = [ "Air conditioning", "Alarm Clock"...
30.902778
84
0.417978
2,133
0.954362
0
0
0
0
0
0
695
0.310962
a6aecdaa9ab63d5c899f2872cb0bfd6fc69bc486
7,898
py
Python
vision/image_classification/mobile/mobilenet_model.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
vision/image_classification/mobile/mobilenet_model.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
vision/image_classification/mobile/mobilenet_model.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
"""MobileNet model for Keras. Related papers - https://arxiv.org/abs/1704.04861 """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.keras import backend from tensorflow.keras import models from tensorflow.keras import layers def _conv_bl...
38.339806
103
0.661433
0
0
0
0
0
0
0
0
3,523
0.446062
a6b08c775b7b2475824f80a8fc46557292ab0d77
506
py
Python
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
2
2020-04-02T02:37:53.000Z
2020-06-11T04:45:06.000Z
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
28
2020-02-11T03:11:25.000Z
2020-06-11T01:49:22.000Z
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
null
null
null
import pytest import securemailbox from securemailbox.models import Message, Mailbox @pytest.fixture def client(): securemailbox.app.config["TESTING"] = True with securemailbox.app.test_client() as client: yield client # Force fixture to be used if not explicitly imported @pytest.fixture(autouse=T...
21.083333
66
0.735178
0
0
314
0.620553
360
0.711462
0
0
146
0.288538
a6b0a6f69b4e8e457b33054cf5afa5f57a1ac191
943
py
Python
tests/test_preprocessing.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
import unittest from hostphot.cutouts import download_images from hostphot.coadd import coadd_images from hostphot.image_masking import create_mask class TestHostPhot(unittest.TestCase): def test_preprocessing(self): coadd_filters = 'riz' survey = 'PS1' name = 'SN2004eo' host_ra, h...
31.433333
81
0.623542
744
0.788971
0
0
0
0
0
0
87
0.092259
a6b264207fe8e823f52476d11d008957908297b6
4,395
py
Python
bluetooth/objects/Device.py
Exus1/alfa-blue-me
4b2f9f549967b44688e753a64b0578ebbfedf430
[ "MIT" ]
null
null
null
bluetooth/objects/Device.py
Exus1/alfa-blue-me
4b2f9f549967b44688e753a64b0578ebbfedf430
[ "MIT" ]
1
2020-07-06T14:36:18.000Z
2021-01-27T09:13:12.000Z
bluetooth/objects/Device.py
Exus1/alfa-blue-me
4b2f9f549967b44688e753a64b0578ebbfedf430
[ "MIT" ]
null
null
null
import dbus from module.EventBus import EventBus, mainEventBus from bluetooth.objects.Player import Player class Device: event_bus: EventBus __path: str __dbus_obj: dbus.proxies.ProxyObject __dbus_iface: dbus.proxies.Interface __dbus_props_iface: dbus.proxies.Interface __player_path: str = No...
31.392857
100
0.619113
4,285
0.974972
0
0
0
0
0
0
583
0.132651
a6b2ccd85fff302304cf6c5368fb0672775dec55
2,213
py
Python
objmap.py
runejuhl/bin
948b246c92540e4d7451538879847513864c0219
[ "MIT" ]
null
null
null
objmap.py
runejuhl/bin
948b246c92540e4d7451538879847513864c0219
[ "MIT" ]
null
null
null
objmap.py
runejuhl/bin
948b246c92540e4d7451538879847513864c0219
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import subprocess import re import os.path def main(): if len(sys.argv) < 2: print('Missing argument') sys.exit(-1) exe = sys.argv[1] if not os.path.isfile(exe): print('Not a file, sir.') exit(-2) o = subprocess.check_output(['objd...
29.118421
199
0.536376
0
0
0
0
0
0
0
0
667
0.301401
a6b55e4c1d8bfa3eac38de71d15f89c1f1da3226
641
py
Python
analysis/cohort_pickle_checks.py
opensafely/covid-vaccine-not-received
5b8c7e4219e654cf2fcf6f5013a5ef6e9256f26d
[ "MIT" ]
null
null
null
analysis/cohort_pickle_checks.py
opensafely/covid-vaccine-not-received
5b8c7e4219e654cf2fcf6f5013a5ef6e9256f26d
[ "MIT" ]
null
null
null
analysis/cohort_pickle_checks.py
opensafely/covid-vaccine-not-received
5b8c7e4219e654cf2fcf6f5013a5ef6e9256f26d
[ "MIT" ]
null
null
null
''' Count number of declines with uncertain dates. ''' import os import pandas as pd import numpy as np input_path="output/cohort.pickle" output_path="output/cohort_pickle_checks.csv" backend = os.getenv("OPENSAFELY_BACKEND", "expectations") cohort = pd.read_pickle(input_path) cohort = cohort.loc[pd.notnull(cohort...
24.653846
90
0.730109
0
0
0
0
0
0
0
0
313
0.4883
a6b562827976bcf0ba147158156584f1789cab95
180
py
Python
tests/run_tests.py
bitlogik/specter-javacard
06555db693bf3ce2314282d2e4555020c87143fb
[ "MIT" ]
11
2020-09-07T20:49:16.000Z
2022-03-29T14:21:14.000Z
tests/run_tests.py
stepansnigirev/shareable-applet
f94510cf80adc1829776ea6a61ce33a926f20126
[ "MIT" ]
1
2020-12-13T12:29:59.000Z
2020-12-16T17:00:27.000Z
tests/run_tests.py
stepansnigirev/shareable-applet
f94510cf80adc1829776ea6a61ce33a926f20126
[ "MIT" ]
5
2020-09-08T06:22:23.000Z
2022-03-29T14:21:16.000Z
#!/usr/bin/env python3 import unittest if __name__ == '__main__': testsuite = unittest.TestLoader().discover('./tests') unittest.TextTestRunner(verbosity=1).run(testsuite)
30
57
0.733333
0
0
0
0
0
0
0
0
41
0.227778
a6b73f047e331caed47c666c6df9c31375f316f1
2,794
py
Python
archive/experiment_4_train.py
marjanin/tendon_stiffness
b1dc379b09bbf9c044410a6bc51afbee0cba2e05
[ "MIT" ]
1
2020-07-20T02:04:46.000Z
2020-07-20T02:04:46.000Z
archive/experiment_4_train.py
marjanin/tendon_stiffness
b1dc379b09bbf9c044410a6bc51afbee0cba2e05
[ "MIT" ]
null
null
null
archive/experiment_4_train.py
marjanin/tendon_stiffness
b1dc379b09bbf9c044410a6bc51afbee0cba2e05
[ "MIT" ]
1
2020-05-11T11:41:39.000Z
2020-05-11T11:41:39.000Z
import gym import numpy as np from stable_baselines.common.policies import MlpPolicy as common_MlpPolicy from stable_baselines.ddpg.policies import MlpPolicy as DDPG_MlpPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines.ddpg.noise import NormalActionNoise, OrnsteinUhlenbeckActionNoise...
39.914286
123
0.764853
0
0
0
0
0
0
0
0
1,369
0.489979
a6b79ef79b7d83120b1edb6b477d255891f80230
1,248
py
Python
tests/test_util.py
Skirmant/electrumx-trump
ce0e4e8c592ea593b2ee9df84126980e54da5053
[ "MIT" ]
null
null
null
tests/test_util.py
Skirmant/electrumx-trump
ce0e4e8c592ea593b2ee9df84126980e54da5053
[ "MIT" ]
null
null
null
tests/test_util.py
Skirmant/electrumx-trump
ce0e4e8c592ea593b2ee9df84126980e54da5053
[ "MIT" ]
null
null
null
from lib import util def test_cachedproperty(): class Target: CALL_COUNT = 0 def __init__(self): self.call_count = 0 @util.cachedproperty def prop(self): self.call_count += 1 return self.call_count @util.cachedproperty def cls...
20.8
73
0.600962
409
0.327724
0
0
225
0.180288
0
0
56
0.044872
a6b874afe3ecfcd5e956781905981e176b3e59f4
605
py
Python
geotrek/settings/env_dev.py
GeotrekCE/Geotrek-admin
efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/settings/env_dev.py
GeotrekCE/Geotrek-admin
efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/settings/env_dev.py
GeotrekCE/Geotrek-admin
efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
# # Django Development # .......................... DEBUG = True EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # # Developper additions # .......................... INSTALLED_APPS = ( 'django_extensions', 'debug_toolbar', 'drf_yasg', ) + INSTALLED_APPS INTERNAL_IPS = type(str('c'), (...
18.90625
70
0.578512
0
0
0
0
0
0
0
0
371
0.613223
a6b88d0c63863ec876ce31f9690f31d086738e0d
1,629
py
Python
parsing/accessDB.py
marquettecomputationalsocialscience/seniordesign1819
cc11c6f46dbcb1c2fb69e1ef2017953f0e6b066f
[ "MIT" ]
5
2018-08-30T19:15:21.000Z
2019-03-25T17:13:39.000Z
parsing/accessDB.py
marquettecomputationalsocialscience/seniordesign1819
cc11c6f46dbcb1c2fb69e1ef2017953f0e6b066f
[ "MIT" ]
15
2018-09-03T18:39:25.000Z
2019-05-15T07:00:43.000Z
parsing/accessDB.py
marquettecomputationalsocialscience/seniordesign1819
cc11c6f46dbcb1c2fb69e1ef2017953f0e6b066f
[ "MIT" ]
8
2018-09-03T19:11:33.000Z
2018-11-14T22:32:22.000Z
import os import pandas as pd from datetime import datetime as dt # Read raw data in root = os.path.expanduser('../data/') files = [root + f for f in os.listdir(root) if f.endswith('.csv') and f != 'addresses.csv'] dfs = [pd.read_csv(f, header=0, index_col='ID', parse_dates=['Date/Time']) for f in files] df = pd.conc...
41.769231
139
0.638428
0
0
0
0
0
0
0
0
395
0.24248
a6bafaafe8f14cec09cda4d47f915c1ddeec002e
738
py
Python
src/pyssistant/models/semaphore_of_speaking.py
Lucasfrota/pyssistant
675e0165ab4dc5021c73b1b99d7179c6b87b8cad
[ "BSD-3-Clause" ]
2
2018-01-16T17:05:03.000Z
2019-02-21T13:25:10.000Z
src/pyssistant/models/semaphore_of_speaking.py
Lucasfrota/pyssistant
675e0165ab4dc5021c73b1b99d7179c6b87b8cad
[ "BSD-3-Clause" ]
null
null
null
src/pyssistant/models/semaphore_of_speaking.py
Lucasfrota/pyssistant
675e0165ab4dc5021c73b1b99d7179c6b87b8cad
[ "BSD-3-Clause" ]
1
2018-11-26T20:12:38.000Z
2018-11-26T20:12:38.000Z
class SemaphoreOfSpeaking(): class __Singleton(): def __init__(self): self._is_instantiated = False self._instance = None self.is_speaking = False def get_instance(self): if(self._is_instantiated == False): self._instance = SemaphoreO...
27.333333
54
0.602981
737
0.998645
0
0
0
0
0
0
0
0
a6bb84f81d229ef9b0b05112770f57fbf3a0daf2
1,007
py
Python
main.py
leandrovrabelo/pico_max7219
16c695908c9e39740406dc60c650168b8b4d7a5d
[ "MIT" ]
3
2021-04-02T09:06:39.000Z
2021-12-22T11:13:43.000Z
main.py
leandrovrabelo/pico_max7219
16c695908c9e39740406dc60c650168b8b4d7a5d
[ "MIT" ]
null
null
null
main.py
leandrovrabelo/pico_max7219
16c695908c9e39740406dc60c650168b8b4d7a5d
[ "MIT" ]
1
2021-11-06T21:01:42.000Z
2021-11-06T21:01:42.000Z
from max7219 import Matrix8x8 from machine import Pin, SPI from utime import sleep if __name__ == '__main__': CS = Pin(5, Pin.OUT) # GPIO5 pin 7 CLK = Pin(6) # GPIO6 pin 9 DIN = Pin(7) # GPIO7 pin 10 BRIGHTNESS = 3 # from 0 to 15 text1 = "Hello World!" text2 = "PICO PI" # C...
27.972222
89
0.571003
0
0
0
0
0
0
0
0
280
0.278054
a6bc42fe55c00a39f6b5dcc77087968fc2014f3d
3,319
py
Python
tests/test_dynamicprinter.py
DerekYu177/Tooling
4b1c0490375659e716be708db254cb4f1b8f2b6b
[ "MIT" ]
2
2018-06-28T20:30:25.000Z
2022-01-03T15:14:39.000Z
tests/test_dynamicprinter.py
DerekYu177/Tooling
4b1c0490375659e716be708db254cb4f1b8f2b6b
[ "MIT" ]
4
2018-06-26T23:33:14.000Z
2018-07-09T00:44:17.000Z
tests/test_dynamicprinter.py
DerekYu177/dynamictableprint
4b1c0490375659e716be708db254cb4f1b8f2b6b
[ "MIT" ]
null
null
null
""" Tests the table print extra module """ import unittest from unittest import mock import pandas as pd from dynamictableprint.dynamicprinter import DynamicTablePrint def mock_terminal_size(_): """ Does what it says """ return [80] class TestDynamicTablePrint(unittest.TestCase): """ Tests t...
31.018692
87
0.602591
3,017
0.909009
0
0
332
0.10003
0
0
904
0.272371
a6c11429802da894fcfc47476b4c7e126e53cb6b
1,778
py
Python
pitfall/helpers/aws/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
33
2019-11-06T03:45:55.000Z
2020-12-15T09:14:42.000Z
pitfall/helpers/aws/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
3
2019-11-19T19:02:44.000Z
2020-03-29T17:52:11.000Z
pitfall/helpers/aws/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
1
2020-07-29T07:33:52.000Z
2020-07-29T07:33:52.000Z
# Copyright 2019 Ali (@bincyber) # # 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, ...
25.4
86
0.669854
0
0
0
0
0
0
0
0
1,142
0.642295
a6c365cf6c521aa3c897c34e14be7483d8cd12a0
1,846
py
Python
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
6
2022-02-24T00:04:24.000Z
2022-03-21T08:46:46.000Z
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
null
null
null
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
8
2022-02-24T00:07:32.000Z
2022-03-21T01:59:46.000Z
# Generated by Django 3.2.11 on 2022-02-06 16:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields import timezone_field.fields import uuid class Migration(migrations.Migration): dependencies = [ ...
45.02439
147
0.621885
1,590
0.861322
0
0
0
0
0
0
288
0.156013
a6c6d6983ffc811129d05e0b916f71312c4f08b8
1,115
py
Python
cmdbox/scaffold_templates/urls.py
vitorfs/cmdbox
97806c02caf5947ec855286212e61db714e3fb02
[ "MIT" ]
1
2019-09-07T11:49:11.000Z
2019-09-07T11:49:11.000Z
cmdbox/scaffold_templates/urls.py
vitorfs/cmdbox
97806c02caf5947ec855286212e61db714e3fb02
[ "MIT" ]
null
null
null
cmdbox/scaffold_templates/urls.py
vitorfs/cmdbox
97806c02caf5947ec855286212e61db714e3fb02
[ "MIT" ]
2
2018-09-04T08:33:17.000Z
2020-09-18T20:26:46.000Z
from django.conf.urls import url from cmdbox.scaffold_templates import views urlpatterns = [ url(r'^$', views.scaffold_templates, name='list'), url(r'^(?P<slug>[^/]+)/$', views.details, name='details'), url(r'^(?P<slug>[^/]+)/add-file/$', views.add_file, name='add_file'), url(r'^(?P<slug>[^/]+)/add-f...
53.095238
108
0.594619
0
0
0
0
0
0
0
0
563
0.504933
a6c957005a98e765219391600b7a9ac65ec97743
2,036
py
Python
new.py
EvanBot/nw
ca65aa90b38074c2dbefe16ad4dabd6d7849b9f6
[ "Apache-2.0" ]
1
2021-08-19T22:24:11.000Z
2021-08-19T22:24:11.000Z
new.py
EvanBot/nw
ca65aa90b38074c2dbefe16ad4dabd6d7849b9f6
[ "Apache-2.0" ]
null
null
null
new.py
EvanBot/nw
ca65aa90b38074c2dbefe16ad4dabd6d7849b9f6
[ "Apache-2.0" ]
3
2021-08-31T08:17:01.000Z
2021-09-26T13:18:32.000Z
import time import socket import random import sys def usage(): print "dP dP dP a88888b. dP 888888ba dP dP" print "88 88 88 d8' `88 88 ...
46.272727
163
0.534872
0
0
0
0
0
0
0
0
1,298
0.637525
a6c9952b1ebee49b75a8c48cec1cb1ca06df5caf
2,653
py
Python
[20]_break_AES_in_CTR_mode_statistically/analyzer_gui_entry.py
lucasg/Cryptopals
095e80d0ab9acdda4e5804b45cdba932231086ff
[ "MIT" ]
19
2016-08-01T03:45:39.000Z
2022-02-01T19:48:52.000Z
[20]_break_AES_in_CTR_mode_statistically/analyzer_gui_entry.py
lucasg/Cryptopals
095e80d0ab9acdda4e5804b45cdba932231086ff
[ "MIT" ]
null
null
null
[20]_break_AES_in_CTR_mode_statistically/analyzer_gui_entry.py
lucasg/Cryptopals
095e80d0ab9acdda4e5804b45cdba932231086ff
[ "MIT" ]
6
2019-04-27T02:09:46.000Z
2021-04-05T15:09:51.000Z
# -*- coding: utf-8 -*- import tkinter as tk from tkinter import ttk # Entry : a tkinter.Entry override which is more practical to use # There is a label to the left and a button to the right (optionnals) : # # ---------------------------------------------- # | | | | # | Label | Entry(redim) | Butto...
24.33945
71
0.591406
2,188
0.824727
0
0
0
0
0
0
1,014
0.382209
a6ca293c9d16753c2a9c1ac455d47a6f3dec1401
392
py
Python
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
# TODO: RENAME MODULE! import logging from miniworld.log import get_logger from miniworld.util import PathUtil _logger = None # TODO: BETTER WAY THAN LOG FUNCTION? def logger(): global _logger if _logger is None: _logger = get_logger("Spatial Backend") _logger.addHandler(logging.FileHandler...
21.777778
98
0.739796
0
0
0
0
0
0
0
0
97
0.247449
a6ca3f09187518fec89422b29515f0f9cc5492c9
4,756
py
Python
slack_janitor/main.py
paraita/slack-janitor
64b3bdf76967276743144d9ef2db7f3fb5deaaea
[ "MIT" ]
null
null
null
slack_janitor/main.py
paraita/slack-janitor
64b3bdf76967276743144d9ef2db7f3fb5deaaea
[ "MIT" ]
null
null
null
slack_janitor/main.py
paraita/slack-janitor
64b3bdf76967276743144d9ef2db7f3fb5deaaea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Bulk deletion of files on your Slack workspace Requires a valid token from: https://api.slack.com/custom-integrations/legacy-tokens """ import os import sys import json import urllib.parse import http.client import calendar import argparse import time from datetime import datetime, t...
35.759398
170
0.626997
0
0
0
0
0
0
0
0
1,429
0.300463
a6ca74bb3ea2418641e9550941a9244aad99e30a
1,982
py
Python
test.py
Nekobitlz/case_converter
cfb9c05207b52201e11f262bbe30692a1b3dcd31
[ "MIT" ]
null
null
null
test.py
Nekobitlz/case_converter
cfb9c05207b52201e11f262bbe30692a1b3dcd31
[ "MIT" ]
8
2021-11-29T00:34:48.000Z
2021-11-29T02:40:55.000Z
test.py
Nekobitlz/new_case_converter
cfb9c05207b52201e11f262bbe30692a1b3dcd31
[ "MIT" ]
null
null
null
import main def test_convert_case_error(): assert main.convert("error case", "error case") == main.validation_error def test_convert_camel_case(): assert main.convert("camelCase", "my own camel case") == "myOwnCamelCase" assert main.convert("camelCase", "camel") == "camel" assert main.convert("camel...
41.291667
90
0.694753
0
0
0
0
0
0
0
0
942
0.475277
a6caf3fe4edf041c7511413b1ca3d3833f7691c2
22,030
py
Python
executors/location.py
thevickypedia/jarvis
4bea623bb9f1618509d4fcd77a696c638011799c
[ "MIT" ]
null
null
null
executors/location.py
thevickypedia/jarvis
4bea623bb9f1618509d4fcd77a696c638011799c
[ "MIT" ]
null
null
null
executors/location.py
thevickypedia/jarvis
4bea623bb9f1618509d4fcd77a696c638011799c
[ "MIT" ]
null
null
null
import json import math import os import pathlib import re import socket import ssl import sys import urllib.error import urllib.request import webbrowser from difflib import SequenceMatcher from typing import NoReturn, Tuple, Union import certifi import yaml from geopy.distance import geodesic from geopy.exc import G...
44.236948
120
0.644303
0
0
0
0
0
0
0
0
7,507
0.340732
a6ce292a4977aea957e48be215ebaa74515a3808
1,713
py
Python
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
null
null
null
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
null
null
null
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
1
2022-02-16T15:25:41.000Z
2022-02-16T15:25:41.000Z
import pytest from vkbottle import CodeException, ErrorHandler, swear def test_code_error(): class CodeError(CodeException): pass try: raise CodeError[1]() except CodeError[2]: assert False except CodeError[3, 4]: # type: ignore assert False except CodeError[1, 2...
23.465753
75
0.671337
156
0.091068
0
0
1,114
0.650321
827
0.482779
66
0.038529
a6ce2c48b405342f875064a4a2f03734f841e78b
1,269
py
Python
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # This file contains a simple testcase, that defines a table and runs a selection query on it. import ibis import os import sys import p...
28.2
101
0.745469
0
0
0
0
0
0
0
0
668
0.526399
a6ce2eb4ccd558a7106ea8591bdedada4526ade7
381
py
Python
RecentCounter.py
couyang24/Leetcode_way2master
fd90012ea6a41da701fbe378ef1b3e7045bb7d90
[ "Apache-2.0" ]
null
null
null
RecentCounter.py
couyang24/Leetcode_way2master
fd90012ea6a41da701fbe378ef1b3e7045bb7d90
[ "Apache-2.0" ]
6
2021-01-18T14:59:04.000Z
2021-02-15T21:34:33.000Z
RecentCounter.py
couyang24/leetcode
fd90012ea6a41da701fbe378ef1b3e7045bb7d90
[ "Apache-2.0" ]
null
null
null
class RecentCounter: def __init__(self): self.record = [] def ping(self, t: int) -> int: self.record.append(t) record = self.record.copy() count = 0 rm_list = [] for i in record: if i in range(t-3000, t+1): count += 1 else...
22.411765
39
0.467192
380
0.997375
0
0
0
0
0
0
0
0
a6ce6749de8cedc773b1ea3833d86f9e1e6d4944
324
py
Python
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" Write a program to solve a classic ancient Chinese puzzle: """ """Question: Write a program to solve a classic ancient Chinese puzzle: We count 35 heads and 94 legs among the chickens and rabbits in a farm. How many rabbits and how many chickens do we have? Hint: Use for loop to iterate all possible solutions. ...
27
122
0.75
0
0
0
0
0
0
0
0
321
0.990741
a6cfb3021f6c8e66e245f2674a8a1b2b84f40f99
1,072
py
Python
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
5
2021-03-21T06:26:02.000Z
2021-08-11T09:58:44.000Z
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
null
null
null
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
1
2020-05-23T09:51:30.000Z
2020-05-23T09:51:30.000Z
from django.test import TestCase from example_app.views import ChatterBotApiView class MockResponse(object): def __init__(self, pk): self.session = {'conversation_id': pk} class ViewTestCase(TestCase): def setUp(self): super(ViewTestCase, self).setUp() self.view = ChatterBotApiView...
28.972973
76
0.714552
985
0.918843
0
0
0
0
0
0
51
0.047575
a6d246359b3c588c6b5be1e5ecf927811dc7f619
121
py
Python
TWITOFF/__init__.py
mvkumar14/twitoff
449d512b117e1ba2c3fc6209c489bb295cbfa75e
[ "MIT" ]
null
null
null
TWITOFF/__init__.py
mvkumar14/twitoff
449d512b117e1ba2c3fc6209c489bb295cbfa75e
[ "MIT" ]
4
2021-06-02T01:03:41.000Z
2022-01-13T02:03:12.000Z
TWITOFF/__init__.py
mvkumar14/twitoff
449d512b117e1ba2c3fc6209c489bb295cbfa75e
[ "MIT" ]
null
null
null
"""Entry point for our twitoff flask app""" from .app import create_app # This is a global variable APP = create_app()
17.285714
43
0.727273
0
0
0
0
0
0
0
0
70
0.578512
a6d292b5151c8e18e798d9878149e438822e3099
160
py
Python
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
import os import turtle import time t = turtle.Pen() t.shape("turtle") t.width(10) t.forward(100) t.left(90) time.sleep(1) t.forward(100) os.system("Pause")
10.666667
18
0.7
0
0
0
0
0
0
0
0
15
0.09375
a6d2975738e714400f26abe4b83b94afadae7e7d
1,746
py
Python
sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
36.375
76
0.63173
1,230
0.704467
0
0
0
0
0
0
1,271
0.72795
a6d3349994031ab7aaeebc772afadeb51c37f1e9
819
py
Python
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
1
2022-03-02T14:56:29.000Z
2022-03-02T14:56:29.000Z
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-09-05 01:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cars', '0028_auto_20210...
30.333333
142
0.655678
659
0.80464
0
0
0
0
0
0
134
0.163614
a6d38ff49f410af36c11e6d1b389bea967667847
372
py
Python
lokalise/endpoints/translation_providers_endpoint.py
carlmanaster/python-lokalise-api
ce4a43c5a7bf14f45a2432e096b1880ff28d6770
[ "BSD-3-Clause" ]
5
2020-09-09T15:22:34.000Z
2021-12-07T12:24:26.000Z
lokalise/endpoints/translation_providers_endpoint.py
carlmanaster/python-lokalise-api
ce4a43c5a7bf14f45a2432e096b1880ff28d6770
[ "BSD-3-Clause" ]
39
2020-12-08T16:56:06.000Z
2022-03-28T15:18:52.000Z
lokalise/endpoints/translation_providers_endpoint.py
carlmanaster/python-lokalise-api
ce4a43c5a7bf14f45a2432e096b1880ff28d6770
[ "BSD-3-Clause" ]
1
2021-03-25T02:55:49.000Z
2021-03-25T02:55:49.000Z
""" lokalise.endpoints.translation_providers_endpoint ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module containing translation providers endpoint. """ from .base_endpoint import BaseEndpoint class TranslationProvidersEndpoint(BaseEndpoint): """Describes translation providers endpoint. """ PATH = "t...
28.615385
64
0.693548
171
0.459677
0
0
0
0
0
0
262
0.704301
a6d52658de85b23a61ea3688d54052bd4719e515
10,597
py
Python
Chapter09/wallet/wallet_widgets/send_widget.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
62
2019-03-18T04:41:41.000Z
2022-03-31T05:03:13.000Z
Chapter09/wallet/wallet_widgets/send_widget.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
2
2020-06-14T21:56:03.000Z
2022-01-07T05:32:01.000Z
Chapter09/wallet/wallet_widgets/send_widget.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
42
2019-02-22T03:10:36.000Z
2022-02-20T04:47:04.000Z
from PySide2.QtWidgets import (QWidget, QGridLayout, QVBoxLayout, QHBoxLayout, QPushButton, QLabel, QInputDialog, ...
42.388
126
0.678116
9,675
0.912994
0
0
0
0
0
0
383
0.036142
a6d5f724d443cbaceedf53aa771224350bbf9d9e
165
py
Python
pyvmomi_restapi/vm_helpers/apps.py
johnedstone/how-to-use-pyvmomi
f2e58ce82f360bac4fe0ca52ae347ebf691430bb
[ "Apache-2.0" ]
null
null
null
pyvmomi_restapi/vm_helpers/apps.py
johnedstone/how-to-use-pyvmomi
f2e58ce82f360bac4fe0ca52ae347ebf691430bb
[ "Apache-2.0" ]
null
null
null
pyvmomi_restapi/vm_helpers/apps.py
johnedstone/how-to-use-pyvmomi
f2e58ce82f360bac4fe0ca52ae347ebf691430bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class HelperEndpointsConfig(AppConfig): name = 'vm_helpers'
18.333333
39
0.751515
63
0.381818
0
0
0
0
0
0
35
0.212121
a6d65973f237ddd3c1bee4a471549249a3f6c1f1
2,556
py
Python
env/Lib/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension EXT.multiview_draw_buffers This module customises the behaviour of the OpenGL.raw.GLES2.EXT.multiview_draw_buffers to provide a more Python-friendly API Overview (from the spec) This extension allows selecting among draw buffers as the rendering target. This may be among multiple primary buf...
43.322034
83
0.823944
0
0
0
0
0
0
0
0
2,016
0.788732
a6d68744f1e709ba14365f28499cedb2613a508d
1,097
py
Python
CodeInterview/python/chapter2.py
espang/books
821c92833968dca8b8a0456464f2e33211601abb
[ "MIT" ]
null
null
null
CodeInterview/python/chapter2.py
espang/books
821c92833968dca8b8a0456464f2e33211601abb
[ "MIT" ]
null
null
null
CodeInterview/python/chapter2.py
espang/books
821c92833968dca8b8a0456464f2e33211601abb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 25 23:08:27 2016 @author: eikes """ class Node(object): def __init__(self, value, next_node=None): self.value = value self.next_node = next_node def has_next(self): return self.next_node is not None def __repr__(self): vals =...
24.377778
61
0.547858
432
0.393801
0
0
0
0
0
0
144
0.131267
a6d73ed12bfaf051625c8c3f40b3c6b7406b513e
1,793
py
Python
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # msh-python/release/api/views.py from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from rest_framework import mixins from rest_framework import ...
23.906667
52
0.711099
1,382
0.770775
0
0
0
0
0
0
549
0.306191
a6d7926ffd9c46e7000b4eeb76ac9fcded9a18e3
2,878
py
Python
dotup/__init__.py
audiolion/dotup
8c7243d5606340288a7968a6ff3f64d331d5d0e0
[ "MIT" ]
4
2019-02-17T01:04:15.000Z
2019-02-20T13:39:25.000Z
dotup/__init__.py
audiolion/dotup
8c7243d5606340288a7968a6ff3f64d331d5d0e0
[ "MIT" ]
4
2019-02-17T00:57:32.000Z
2019-02-17T22:32:11.000Z
dotup/__init__.py
audiolion/dotup
8c7243d5606340288a7968a6ff3f64d331d5d0e0
[ "MIT" ]
null
null
null
__version__ = '0.3.2' import sys import os import pwd from pathlib import Path import click import crayons def update_symlink(directory, filename, force=None): force = False if force is None else force home = str(Path.home()) try: os.symlink(f'{home}/{directory}/{filename}', f'{home}/{filename}'...
29.979167
97
0.59451
0
0
0
0
1,817
0.631341
0
0
1,035
0.359625
a6d89172413387f308d847f46a5ea578e6d4ef31
753
py
Python
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-29 11:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('team', '0078_auto_20180328_1204'), ] operations = [ migrations.RenameModel( ...
26.892857
138
0.608234
603
0.800797
0
0
0
0
0
0
284
0.377158
a6d98fd04b1baa85481c214e43a3e464743dce06
114
py
Python
v6wos/error.py
sfstpala/v6wos
acb4483ab89174529172c3705a4ecbc463c938f5
[ "0BSD" ]
7
2016-10-10T12:25:31.000Z
2021-06-15T23:46:59.000Z
v6wos/error.py
sfstpala/v6wos
acb4483ab89174529172c3705a4ecbc463c938f5
[ "0BSD" ]
3
2017-05-20T05:32:30.000Z
2019-09-29T10:19:21.000Z
v6wos/error.py
sfstpala/v6wos
acb4483ab89174529172c3705a4ecbc463c938f5
[ "0BSD" ]
1
2017-05-20T05:29:10.000Z
2017-05-20T05:29:10.000Z
import v6wos class ErrorHandler(v6wos.ErrorHandler): def initialize(self): super().initialize(404)
14.25
39
0.701754
98
0.859649
0
0
0
0
0
0
0
0
a6d9cb957ff30829049142edec6723b7649061c1
4,312
py
Python
plugins/quetz_tos/quetz_tos/api.py
fcollonval/quetz
6f604a29e13ef80d1b5e7ec48408841d0e4d482a
[ "BSD-3-Clause" ]
108
2020-09-16T16:15:01.000Z
2022-03-29T02:49:31.000Z
plugins/quetz_tos/quetz_tos/api.py
fcollonval/quetz
6f604a29e13ef80d1b5e7ec48408841d0e4d482a
[ "BSD-3-Clause" ]
317
2020-09-07T18:37:33.000Z
2022-03-25T13:10:41.000Z
plugins/quetz_tos/quetz_tos/api.py
janjagusch/quetz
4d88b4695166d310823a48e81e025983846afd05
[ "BSD-3-Clause" ]
36
2020-09-07T22:01:27.000Z
2022-03-26T17:06:07.000Z
import os import uuid from tempfile import SpooledTemporaryFile from fastapi import APIRouter, Depends, File, HTTPException, UploadFile, status from sqlalchemy.orm.session import Session from quetz import authorization, dao from quetz.config import Config from quetz.deps import get_dao, get_db, get_rules from .db_mo...
32.666667
85
0.629174
0
0
0
0
3,198
0.741651
0
0
833
0.193182
a6da277871e2e14767fe369496d352e64e854912
1,546
py
Python
tests/unit/dataactvalidator/test_a26_appropriations.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_a26_appropriations.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_a26_appropriations.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import AppropriationFactory from tests.unit.dataactcore.factories.domain import SF133Factory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'a26_appropriations' _TAS = 'a26_appropriations_tas' def test_column_headers(database): ...
37.707317
103
0.73674
0
0
0
0
0
0
0
0
371
0.239974
a6dba61497cd544b0b3b024aa19484ec4d75797d
5,334
py
Python
mysql.py
alphagov/fabric-scripts
c162a43acdef9dec41acd7b2127f2cdef78be347
[ "MIT" ]
46
2015-03-21T00:45:27.000Z
2021-11-16T04:33:29.000Z
mysql.py
alphagov/fabric-scripts
c162a43acdef9dec41acd7b2127f2cdef78be347
[ "MIT" ]
123
2015-03-02T12:10:31.000Z
2021-11-16T10:29:27.000Z
mysql.py
alphagov/fabric-scripts
c162a43acdef9dec41acd7b2127f2cdef78be347
[ "MIT" ]
19
2015-02-09T11:06:10.000Z
2021-04-22T16:52:28.000Z
from fabric.api import abort, env, hide, run, settings, task from fabric.operations import prompt def run_mysql_command(cmd): run('sudo -i mysql -e "{}"'.format(cmd)) def switch_slow_query_log(value): run_mysql_command('SET GLOBAL slow_query_log = "{}"'.format(value)) @task def stop_slow_query_log(*args):...
35.324503
151
0.691226
0
0
0
0
5,032
0.943382
0
0
3,194
0.5988
a6dc1338864b8a9e2eb892ae7bb5fddbec7266c6
1,158
py
Python
Experiment/stream.py
zainbaq/pyOpenBCI
524d0263502ba5c3360be7a0fb4f1022dfe3108f
[ "MIT" ]
null
null
null
Experiment/stream.py
zainbaq/pyOpenBCI
524d0263502ba5c3360be7a0fb4f1022dfe3108f
[ "MIT" ]
null
null
null
Experiment/stream.py
zainbaq/pyOpenBCI
524d0263502ba5c3360be7a0fb4f1022dfe3108f
[ "MIT" ]
null
null
null
from pyOpenBCI import OpenBCIGanglion from pylsl import StreamInfo, StreamOutlet import numpy as np import argparse import json def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--config_path', type=str, default='config/board_config.json') return parser.parse_args() SCALE_FACTOR_EE...
27.571429
86
0.753022
0
0
0
0
0
0
0
0
312
0.26943
a6dde0a86d21574139da3d1efce4d33ab90853a1
9,486
py
Python
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
import keras # build VGG16 Place365 net based on the weight value and net architecture accessed from https://github.com/CSAILVision/places365 # the weight value is for caffe model and are parsed to npy files, the sequence are kept unchanged (channel first, BGR) def _build_net(): model = keras.Sequential() # ...
39.360996
128
0.462576
0
0
0
0
0
0
0
0
1,995
0.21031
a6de26216871065795b5b7ec53ecb77c0a4e4942
1,313
py
Python
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
import time import yaml from selenium import webdriver def main(): conf = yaml.safe_load(open('config.yml')) USERNAME: str = conf['USERNAME'] PASSWORD: str = conf['PASSWORD'] BROWSER: str = conf['BROWSER'] if USERNAME == 'yourusername' or PASSWORD == 'yourpassword': print('Set y...
36.472222
214
0.668698
0
0
0
0
0
0
0
0
502
0.382331
a6e17278e6e2908941b708144e21a12c3551c371
516
py
Python
Python-programs/solve 2X2 Matrix .py
manavbansalcoder/Hacktoberfest2021
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
[ "CC0-1.0" ]
null
null
null
Python-programs/solve 2X2 Matrix .py
manavbansalcoder/Hacktoberfest2021
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
[ "CC0-1.0" ]
null
null
null
Python-programs/solve 2X2 Matrix .py
manavbansalcoder/Hacktoberfest2021
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
[ "CC0-1.0" ]
null
null
null
print("FINDING Square OF a MATRIX") print(" ") order=int(input("enter order of square matrix=")) if (order==2): a11=int(input("enter a11=")) print(" ") a12=int(input("enter a12=")) print(" ") a21=int(input("enter a21=")) print(" ") a22=int(input("enter a22=")) print(" ") ...
25.8
49
0.515504
0
0
0
0
0
0
0
0
163
0.315891
a6e25d64ccd3e54ed546f5c28015d89901848099
147
py
Python
cplusplus/temp.py
ekdnam/bhasha
c34f2a184d25604656c45e18adb56eac844639a6
[ "Apache-2.0" ]
1
2020-06-11T16:06:22.000Z
2020-06-11T16:06:22.000Z
cplusplus/temp.py
ekdnam/bhasha
c34f2a184d25604656c45e18adb56eac844639a6
[ "Apache-2.0" ]
1
2020-10-31T19:47:50.000Z
2020-10-31T19:47:50.000Z
cplusplus/temp.py
ekdnam/bhasha
c34f2a184d25604656c45e18adb56eac844639a6
[ "Apache-2.0" ]
null
null
null
# This is a working model for converting python scripts to .cpp files print("\nHello World!") # comment 1 print("\nThis is Bhasha") # comment 2
36.75
70
0.714286
0
0
0
0
0
0
0
0
128
0.870748
a6e3c38a31c4479f6488038ae2839813f652c121
17,672
py
Python
source/methods_upload_user_stats.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
source/methods_upload_user_stats.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
source/methods_upload_user_stats.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
from pymongo import MongoClient from pymongo import ReadPreference import json as _json import os import mysql.connector as mysql import requests requests.packages.urllib3.disable_warnings() # NOTE get_user_info_from_auth2 sets up the initial dict. #The following functions update certain fields in the dict. # So get_...
48.416438
139
0.589577
0
0
0
0
0
0
0
0
5,653
0.319885
a6e546530cbad3c2cb944ee543616eb417f98888
681
py
Python
evm/logic/block.py
theresume/py-evm
c7f982e9832ea91312f456cfdd5be7c867853d0b
[ "MIT" ]
null
null
null
evm/logic/block.py
theresume/py-evm
c7f982e9832ea91312f456cfdd5be7c867853d0b
[ "MIT" ]
4
2018-12-07T21:32:48.000Z
2019-02-22T15:25:01.000Z
evm/logic/block.py
theresume/py-evm
c7f982e9832ea91312f456cfdd5be7c867853d0b
[ "MIT" ]
null
null
null
from evm import constants def blockhash(computation): block_number = computation.stack_pop(type_hint=constants.UINT256) block_hash = computation.vm_state.get_ancestor_hash(block_number) computation.stack_push(block_hash) def coinbase(computation): computation.stack_push(computation.vm_state.coinba...
22.7
69
0.807636
0
0
0
0
0
0
0
0
0
0
a6e5807938177f25388fc19a921008773b63bd36
1,096
py
Python
profiles/tests.py
Jokotoye18/Learning_log
7de278e252c9abd23a462cf6d7358e8ed22cb66f
[ "MIT" ]
null
null
null
profiles/tests.py
Jokotoye18/Learning_log
7de278e252c9abd23a462cf6d7358e8ed22cb66f
[ "MIT" ]
4
2021-03-30T13:25:57.000Z
2021-09-22T19:04:09.000Z
profiles/tests.py
Jokotoye18/Learning_log
7de278e252c9abd23a462cf6d7358e8ed22cb66f
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from.models import Profile from allauth.account.forms import SignupForm from django.urls import reverse class ProfileModelTest(TestCase): def setUp(self): self.user = get_user_model().objects.create_user( em...
31.314286
76
0.642336
894
0.815693
0
0
0
0
0
0
257
0.234489
a6e5ad4f3536035649df76c9f5e0929300f042e7
243
py
Python
yui_loader/tests/views.py
papuapost/django-yui-loader
db3ce8197f6295b003d81cf2c55715aa11e22f9c
[ "BSD-3-Clause" ]
1
2016-05-09T10:02:46.000Z
2016-05-09T10:02:46.000Z
yui_loader/tests/views.py
akaihola/django-yui-loader
f5344344279d666f2f29dd7d3366dfce1897eca6
[ "BSD-3-Clause" ]
null
null
null
yui_loader/tests/views.py
akaihola/django-yui-loader
f5344344279d666f2f29dd7d3366dfce1897eca6
[ "BSD-3-Clause" ]
1
2021-01-26T04:13:30.000Z
2021-01-26T04:13:30.000Z
from django.template import RequestContext from django.shortcuts import render_to_response def test_yui_include(request): return render_to_response( 'yui/tests/test-yui-include.html', {}, RequestContext(request))
24.3
47
0.73251
0
0
0
0
0
0
0
0
33
0.135802
a6e5bdb34d091a567adddc14e86bdafd20d04947
53,246
py
Python
karlovaboardzatorMain.py
vincseize/MG
bceae7d11f6e93426f14b6f6596078a3f6104472
[ "MIT" ]
null
null
null
karlovaboardzatorMain.py
vincseize/MG
bceae7d11f6e93426f14b6f6596078a3f6104472
[ "MIT" ]
null
null
null
karlovaboardzatorMain.py
vincseize/MG
bceae7d11f6e93426f14b6f6596078a3f6104472
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ################################################################################## # MG ILLUMINATION # # Author : cPOTTIER # # Date : 07-07-2016 ...
33.7
232
0.602036
48,937
0.919074
0
0
0
0
0
0
21,174
0.397664
a6e7bb7bfc30d3b8e909b178aa21379802d6f3d7
26,013
py
Python
pyro/infer/autoguide/gaussian.py
Jayanth-kumar5566/pyro
a98bb57e1704997a3e01c76a7820c0b1db909ee3
[ "Apache-2.0" ]
4,959
2017-11-03T14:39:17.000Z
2019-02-04T16:14:30.000Z
pyro/infer/autoguide/gaussian.py
Jayanth-kumar5566/pyro
a98bb57e1704997a3e01c76a7820c0b1db909ee3
[ "Apache-2.0" ]
985
2017-11-03T14:27:56.000Z
2019-02-02T18:52:54.000Z
pyro/infer/autoguide/gaussian.py
Jayanth-kumar5566/pyro
a98bb57e1704997a3e01c76a7820c0b1db909ee3
[ "Apache-2.0" ]
564
2017-11-03T15:05:55.000Z
2019-01-31T14:02:29.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import itertools from abc import ABCMeta, abstractmethod from collections import OrderedDict, defaultdict from contextlib import ExitStack from types import SimpleNamespace from typing import Callable, Dict, Optional, Set, Tuple, Union...
41.290476
110
0.615462
22,186
0.852848
0
0
1,444
0.055509
0
0
6,997
0.268971
a6e8956955412477820a530c687884fd65e48d03
2,367
py
Python
excursions/models.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2017-04-06T09:12:45.000Z
2017-04-06T09:12:45.000Z
excursions/models.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
2
2017-09-07T22:09:50.000Z
2020-06-09T14:46:30.000Z
excursions/models.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
from django.contrib import admin from django.core.exceptions import ValidationError from django.db import models class Excursion(models.Model): title = models.CharField(max_length=200) desc = models.TextField('description', blank=True) date = models.DateField() seats = models.PositiveSmallIntegerField...
36.984375
113
0.697507
1,713
0.72309
0
0
121
0.051076
0
0
352
0.148586
a6e9b64ebf89f7747641cac9670f46bce97b86d5
15,989
py
Python
scripts/old/join_compound_prt.py
thorunna/UDConverter
c37bb84fd43c8a19896835909789981c6417cb59
[ "Apache-2.0" ]
2
2021-04-28T15:19:53.000Z
2022-01-10T13:59:22.000Z
scripts/old/join_compound_prt.py
thorunna/UDConverter
c37bb84fd43c8a19896835909789981c6417cb59
[ "Apache-2.0" ]
null
null
null
scripts/old/join_compound_prt.py
thorunna/UDConverter
c37bb84fd43c8a19896835909789981c6417cb59
[ "Apache-2.0" ]
null
null
null
import re import sys import os ''' # TODO: tripartite verbs (verb is third node) in files: 1659.pislarsaga.bio-aut.conllu (3) 1745.klim.nar-fic.conllu (2) 1790.fimmbraedra.nar-sag.conllu (1) 1791.jonsteingrims.bio-aut.conllu (1) 1985.sagan.nar-fic.conllu (1) Hinrik Hafsteinsson 2019 Part of UniTre...
43.685792
135
0.568829
13,911
0.846477
0
0
0
0
0
0
8,036
0.488986
a6eab1523ee5589b73c20527590238599c8dfd16
320
py
Python
ABC/063/c.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/063/c.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/063/c.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
def main(): # input N = int(input()) ss = [int(input()) for _ in range(N)] # compute ans = sum(ss) for s in sorted(ss): if ans%10==0 and s%10!=0: ans -= s # output if ans%10 == 0: print(0) else: print(ans) if __name__ == '__main__': main()
15.238095
41
0.453125
0
0
0
0
0
0
0
0
34
0.10625
a6ec353dafda7b60fa104be1fc709b7c53bfca3e
802
py
Python
compiled/construct/nav_parent_switch_cast.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/nav_parent_switch_cast.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/nav_parent_switch_cast.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * nav_parent_switch_cast__foo__zero = Struct( 'branch' / LazyBound(lambda: nav_parent_switch_cast__foo__common), ) nav_parent_switch_cast__foo__one = Struct( 'branch' / LazyBound(lambda: nav_parent_switch_cast__foo__common), ) nav_parent_switch_cast__foo__common = ...
29.703704
214
0.78803
0
0
0
0
0
0
0
0
49
0.061097
a6ecd6ac96ad20775915e71b1e12991c1fd7b239
4,711
py
Python
ja_timex/timex.py
otokunaga2/ja-timex
4534ecbb3d4e780d4777ed239bb832ce849fa0c1
[ "MIT" ]
null
null
null
ja_timex/timex.py
otokunaga2/ja-timex
4534ecbb3d4e780d4777ed239bb832ce849fa0c1
[ "MIT" ]
null
null
null
ja_timex/timex.py
otokunaga2/ja-timex
4534ecbb3d4e780d4777ed239bb832ce849fa0c1
[ "MIT" ]
null
null
null
import re from collections import defaultdict from typing import DefaultDict, Dict, List from ja_timex.number_normalizer import NumberNormalizer from ja_timex.tag import TIMEX from ja_timex.tagger import AbstimeTagger, DurationTagger, ReltimeTagger, SetTagger from ja_timex.util import is_parial_pattern_of_number_expre...
42.441441
116
0.659733
4,556
0.932651
0
0
0
0
0
0
584
0.11955
a6ee6c5c06774806a22bfd966c8beb3678968a98
1,481
py
Python
pydynamo_brain/pydynamo_brain/ui/tilefigs.py
ubcbraincircuits/pyDynamo
006eb6edb5e54670574dbfdf7d249e9037f01ffc
[ "MIT" ]
4
2021-12-16T22:32:47.000Z
2022-01-03T05:42:12.000Z
pydynamo_brain/pydynamo_brain/ui/tilefigs.py
padster/pyDynamo
006eb6edb5e54670574dbfdf7d249e9037f01ffc
[ "MIT" ]
1
2021-11-15T18:14:20.000Z
2021-11-15T18:14:36.000Z
pydynamo_brain/pydynamo_brain/ui/tilefigs.py
padster/pyDynamo
006eb6edb5e54670574dbfdf7d249e9037f01ffc
[ "MIT" ]
1
2022-01-21T23:03:24.000Z
2022-01-21T23:03:24.000Z
import math from PyQt5.QtCore import QRect from PyQt5.QtWidgets import QDesktopWidget # pyqt5 version of matlab tilefigs function def tileFigs(stackWindows): # Filter out only open windows: stackWindows = [w for w in stackWindows if w is not None] assert len(stackWindows) > 0 hspc = 10 # Horisontal...
35.261905
81
0.609048
0
0
0
0
0
0
0
0
404
0.272789
a6ee8822b04b21b7f73e7ccfc8bbb8838769706d
2,313
py
Python
api_yamdb/api/serializers.py
Xewus/YamDB-Final
70e531d397c2e708416734156b104e4bb32f4895
[ "BSD-2-Clause" ]
null
null
null
api_yamdb/api/serializers.py
Xewus/YamDB-Final
70e531d397c2e708416734156b104e4bb32f4895
[ "BSD-2-Clause" ]
null
null
null
api_yamdb/api/serializers.py
Xewus/YamDB-Final
70e531d397c2e708416734156b104e4bb32f4895
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from django.db.models import Avg from rest_framework.relations import SlugRelatedField from rest_framework.serializers import (CurrentUserDefault, ModelSerializer, SerializerMethodField, ValidationError) from reviews.models import Comment, Rev...
32.125
80
0.61738
1,963
0.82897
0
0
0
0
0
0
383
0.16174
a6f06952cd7645789cd9e5361ca955bdb8ae1570
2,126
py
Python
gmmmml/policies/prediction.py
andycasey/gmmmml
1acfeea14514fb7ed44ccdfadefc87f996fee86f
[ "MIT" ]
3
2021-02-15T05:37:01.000Z
2021-09-22T22:06:12.000Z
gmmmml/policies/prediction.py
andycasey/gmmmml
1acfeea14514fb7ed44ccdfadefc87f996fee86f
[ "MIT" ]
null
null
null
gmmmml/policies/prediction.py
andycasey/gmmmml
1acfeea14514fb7ed44ccdfadefc87f996fee86f
[ "MIT" ]
1
2021-02-15T05:37:06.000Z
2021-02-15T05:37:06.000Z
import logging import numpy as np from .base import Policy logger_name, *_ = __name__.split(".") logger = logging.getLogger(logger_name) class BasePredictionPolicy(Policy): def __init__(self, *args, **kwargs): super(BasePredictionPolicy, self).__init__(*args, **kwargs) def predict(self, ...
26.911392
95
0.623236
1,961
0.922389
0
0
0
0
0
0
548
0.257761
a6f0c204d86ffc44292e3d7658bed03896f0bc41
818
py
Python
binarytree/q16.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
binarytree/q16.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
null
null
null
binarytree/q16.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" 问题描述:给定一个有序数组sortArr,已知其中没有重复值,用这个有序数组生成一棵平衡二叉搜索树,并且该搜索二叉树 中序遍历结果与sortArr一致。 """ from binarytree.toolcls import Node from binarytree.q3 import PrintTree class ReconstructBalancedBST: @classmethod def reconstruct(cls, arr): if len(arr) == 0 or arr is None: return None return ...
23.371429
65
0.643032
524
0.558635
0
0
484
0.515991
0
0
214
0.228145
a6f1580c564937d6e53353810c7dfb2323b8dd6c
1,988
py
Python
tests/settings.py
acv-auctions/manifold
b798b0dd6c2f96395d47f700fd2ed0451b80331b
[ "Apache-2.0" ]
2
2018-06-08T10:14:40.000Z
2018-06-09T10:49:17.000Z
tests/settings.py
acv-auctions/manifold
b798b0dd6c2f96395d47f700fd2ed0451b80331b
[ "Apache-2.0" ]
1
2019-01-15T18:38:51.000Z
2019-01-15T18:38:51.000Z
tests/settings.py
acv-auctions/manifold
b798b0dd6c2f96395d47f700fd2ed0451b80331b
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 ACV Auctions 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 di...
24.243902
72
0.598089
0
0
0
0
0
0
0
0
1,257
0.632294
a6f16c8c9f6389943041ded44b395967b6721d7b
21,562
py
Python
Source/osdr_ml_modeler/optimizer.py
ArqiSoft/ml-services
0c9beacc4a98c3f55ed56969a8b7eb84c4209c21
[ "MIT" ]
null
null
null
Source/osdr_ml_modeler/optimizer.py
ArqiSoft/ml-services
0c9beacc4a98c3f55ed56969a8b7eb84c4209c21
[ "MIT" ]
null
null
null
Source/osdr_ml_modeler/optimizer.py
ArqiSoft/ml-services
0c9beacc4a98c3f55ed56969a8b7eb84c4209c21
[ "MIT" ]
2
2018-12-22T13:46:31.000Z
2019-06-18T16:46:08.000Z
import csv import json import os import shutil from collections import OrderedDict from time import time import numpy import redis from sklearn import model_selection from MLLogger import BaseMLLogger from exception_handler import MLExceptionHandler from general_helper import ( get_oauth, make_stream_from_sdf, ma...
37.240069
85
0.621927
0
0
0
0
2,639
0.122391
0
0
6,617
0.306882
a6f1f913f6a078effa24dda0c369361db5605649
1,415
py
Python
tutorials/preprocessing/plot_extract_gfp_peaks.py
mscheltienne/pycrostates
be87adf69c94b2b179064f337acd8a49d01c305d
[ "BSD-3-Clause" ]
1
2021-12-14T09:58:57.000Z
2021-12-14T09:58:57.000Z
tutorials/preprocessing/plot_extract_gfp_peaks.py
mscheltienne/pycrostates
be87adf69c94b2b179064f337acd8a49d01c305d
[ "BSD-3-Clause" ]
null
null
null
tutorials/preprocessing/plot_extract_gfp_peaks.py
mscheltienne/pycrostates
be87adf69c94b2b179064f337acd8a49d01c305d
[ "BSD-3-Clause" ]
null
null
null
""" Global field power peaks extraction =================================== This example demonstrates how to extract global field power (gfp) peaks for an eeg recording. """ #%% # We start by loading some example data: import mne from mne.io import read_raw_eeglab from pycrostates.datasets import lemon raw_fname =...
28.3
93
0.744876
0
0
0
0
0
0
0
0
882
0.623322
a6f4cd68d6d364156f5fdb3da318997921fa8760
314
py
Python
randomsubgroups/__init__.py
rebelosa/random-subgroups
5fa795d0251e2d5dfac678729d091ddf5c34f82e
[ "MIT" ]
4
2020-10-15T20:30:15.000Z
2021-02-23T16:38:13.000Z
randomsubgroups/__init__.py
rebelosa/random-subgroups
5fa795d0251e2d5dfac678729d091ddf5c34f82e
[ "MIT" ]
2
2021-02-14T07:03:58.000Z
2021-02-21T17:16:57.000Z
randomsubgroups/__init__.py
rebelosa/random-subgroups
5fa795d0251e2d5dfac678729d091ddf5c34f82e
[ "MIT" ]
null
null
null
from ._randomsubgroups import SubgroupPredictorBase from ._randomsubgroups import RandomSubgroupClassifier from ._randomsubgroups import RandomSubgroupRegressor from ._version import __version__ __all__ = ['SubgroupPredictorBase', 'RandomSubgroupClassifier', 'RandomSubgroupRegressor', '__version__']
34.888889
90
0.83121
0
0
0
0
0
0
0
0
87
0.27707
a6f60346a907a00957cfe6749394bef422ba2990
2,643
py
Python
clock/views.py
thiagobrez/Tracker
42dabef578cdf7b15214d0f2868e8ab237807ad6
[ "MIT" ]
null
null
null
clock/views.py
thiagobrez/Tracker
42dabef578cdf7b15214d0f2868e8ab237807ad6
[ "MIT" ]
null
null
null
clock/views.py
thiagobrez/Tracker
42dabef578cdf7b15214d0f2868e8ab237807ad6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.shortcuts import render, redirect from django.utils import timezone from clock.forms import SignUpForm, ProjectForm from clock.models import Project...
29.366667
85
0.669315
0
0
0
0
0
0
0
0
346
0.130912
a6f7fa95396751bf03ddf7fadbef9071a84e83d9
41,794
py
Python
pulsar/core/lens.py
HawkCorrigan/pulsar
1658d4d6428209d4a72811f4d12719586988ea75
[ "BSD-3-Clause" ]
null
null
null
pulsar/core/lens.py
HawkCorrigan/pulsar
1658d4d6428209d4a72811f4d12719586988ea75
[ "BSD-3-Clause" ]
null
null
null
pulsar/core/lens.py
HawkCorrigan/pulsar
1658d4d6428209d4a72811f4d12719586988ea75
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import re import random import urllib import operator from util import scanTokens, scanNgrams from Levenshtein import distance from random import choice LEXER_TOKENS = "TOKENS" LEXER_NGRAMS = "NGRAMS" OFS_TRANSITION = 3 def pickIndex(counts): total = sum(counts) dice = random.randint(1, t...
38.950606
111
0.53979
41,060
0.982438
0
0
0
0
0
0
9,113
0.218046
a6f88450dba4c369ad270f9f92a3a03ba4dfb661
610
py
Python
python/count_distinct_digits.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/count_distinct_digits.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/count_distinct_digits.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
''' Given a non-negative integer n, count all numbers with unique digits, x, where 0 < x < 10^n. Example: Given n = 2, return 91. (The answer should be the total numbers in the range of 0 < x < 100, excluding [11,22,33,44,55,66,77,88,99]) ''' class Solution(object): def countNumbersWithUniqueDigits(self, n): ...
26.521739
132
0.552459
352
0.577049
0
0
0
0
0
0
299
0.490164
a6fa1d12f414932e8c4b3f796cf576788abf842d
2,284
py
Python
setup.py
bluedynamics/souper.plone
64afe8dc1f87f45c2e96e305f5fff2104ac21007
[ "BSD-3-Clause" ]
2
2015-05-05T15:16:44.000Z
2019-07-09T12:53:52.000Z
setup.py
bluedynamics/souper.plone
64afe8dc1f87f45c2e96e305f5fff2104ac21007
[ "BSD-3-Clause" ]
5
2015-06-02T06:42:00.000Z
2021-02-13T15:31:29.000Z
setup.py
bluedynamics/souper.plone
64afe8dc1f87f45c2e96e305f5fff2104ac21007
[ "BSD-3-Clause" ]
3
2015-05-05T15:17:25.000Z
2018-10-12T11:10:55.000Z
from setuptools import setup, find_packages import sys import os version = '1.3.2.dev0' shortdesc = \ "Plone Souper Integration: Container for many lightweight queryable Records" longdesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() longdesc += open(os.path.join(os.path.dirname(__file__), '...
35.138462
83
0.572242
0
0
0
0
0
0
0
0
1,200
0.525394
a6fd44e35db6be0b5eb9450f40d3c49baabc7d7d
949
py
Python
snapshot_queries/testing/pytest_plugin.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
null
null
null
snapshot_queries/testing/pytest_plugin.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
6
2022-03-30T16:19:01.000Z
2022-03-30T16:32:08.000Z
snapshot_queries/testing/pytest_plugin.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
1
2022-03-31T19:22:22.000Z
2022-03-31T19:22:22.000Z
import snapshot_queries.optional_dependencies if snapshot_queries.optional_dependencies.SNAPSHOTTEST_INSTALLED: from contextlib import contextmanager import pytest from snapshottest.pytest import PyTestSnapshotTest from .assert_queries_match_mixin import AssertQueriesMatchMixin class PyTestQuer...
35.148148
81
0.735511
490
0.516333
400
0.421496
444
0.467861
0
0
4
0.004215
a6fe4c3b9aca1308b06f7d6c9535dc836935bf55
174
py
Python
app/clean.py
yuderobot/markov-note
32e2184e16191b8186c57df5eba850435b76d2b2
[ "MIT" ]
1
2021-02-19T14:03:52.000Z
2021-02-19T14:03:52.000Z
app/clean.py
yuderobot/markov-note
32e2184e16191b8186c57df5eba850435b76d2b2
[ "MIT" ]
null
null
null
app/clean.py
yuderobot/markov-note
32e2184e16191b8186c57df5eba850435b76d2b2
[ "MIT" ]
2
2021-10-12T05:13:50.000Z
2021-10-15T08:28:57.000Z
import pandas as pd df = pd.read_csv('data/tweets.csv') df = df[~df['full_text'].str.contains('RT|\@|»|https')] df.to_csv('data/tweets_processed.csv', encoding='utf_8_sig')
29
60
0.701149
0
0
0
0
0
0
0
0
82
0.468571
a6fe7af1e35bd60a25b5666383fcdd62222ce624
1,074
py
Python
boilerplate/urls.py
Promobyte/n
b3cb235c6c245b3b48e8880994cffef8f2971948
[ "MIT" ]
null
null
null
boilerplate/urls.py
Promobyte/n
b3cb235c6c245b3b48e8880994cffef8f2971948
[ "MIT" ]
10
2020-02-11T23:35:56.000Z
2022-02-17T19:11:43.000Z
boilerplate/urls.py
Promobyte/ng
b3cb235c6c245b3b48e8880994cffef8f2971948
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url # noqa from django.contrib import admin from django.views.generic import TemplateView from django.urls import include, path from service.views import ServiceList from service.views import ServiceDetail from django.utils import translation from ...
31.588235
84
0.747672
0
0
0
0
0
0
0
0
169
0.157356
a6ffa89ddaaff36c4e4467a85ca26b7f3d836ded
3,118
py
Python
tests/entities/test_member.py
rennerocha/asociate-old
75e946a1db909299b1442a4bce3b78a2ddf2aafb
[ "MIT" ]
null
null
null
tests/entities/test_member.py
rennerocha/asociate-old
75e946a1db909299b1442a4bce3b78a2ddf2aafb
[ "MIT" ]
null
null
null
tests/entities/test_member.py
rennerocha/asociate-old
75e946a1db909299b1442a4bce3b78a2ddf2aafb
[ "MIT" ]
null
null
null
import uuid import pytest from asociate.entities.association import Association from asociate.entities.member import Member pytestmark = [ pytest.mark.entities, ] def test_member_init(): member = Member( first_name="Arthur", last_name="Dent", email="arthur.dent@deepthought.com", ...
25.349593
78
0.653945
0
0
0
0
0
0
0
0
814
0.261065
470174818a48bf6ce0247816ece5e1ea9f5c8144
4,194
py
Python
Code/resnet.py
arp95/rcnn_object_detection
e0821cdde5753862d6ff738e8b09f5b95ba9ad1f
[ "MIT" ]
2
2020-08-08T07:34:52.000Z
2021-07-29T23:42:05.000Z
Code/resnet.py
arp95/rcnn_object_detection
e0821cdde5753862d6ff738e8b09f5b95ba9ad1f
[ "MIT" ]
null
null
null
Code/resnet.py
arp95/rcnn_object_detection
e0821cdde5753862d6ff738e8b09f5b95ba9ad1f
[ "MIT" ]
1
2020-05-16T18:35:10.000Z
2020-05-16T18:35:10.000Z
import numpy as np import torch import torchvision import torch.nn.functional as F from torch.utils.data import DataLoader from torchvision import transforms, models, datasets import matplotlib.pyplot as plt %matplotlib inline # Implementation of the ResNet-50 Architecture class ResidualBlock(torch.nn.Modu...
34.95
126
0.664521
3,650
0.870291
0
0
0
0
0
0
538
0.128278
4701cb86fa4a2a5e7e7875805246fbc42f864585
2,256
py
Python
manage_data.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
manage_data.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
manage_data.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime class Unit: def __init__(self, element): self.annotations = element['annotationsGroup']['annotations'] self.id = element['id'] self.parentId = element['parentId'] self.title = element['title'] if 'title' in element else '' ...
31.333333
112
0.520833
2,197
0.973848
86
0.038121
0
0
0
0
285
0.12633
47024e2477ee4ebf0940cce361da35002ab9f51a
11,447
py
Python
models/deoldify.py
wangruohui/DeOldify-OpenMMLab
798b1b6675bfbc76d976a3cd6c87915c9b32dcdb
[ "MIT" ]
6
2021-11-02T06:20:22.000Z
2022-02-14T04:08:50.000Z
models/deoldify.py
wangruohui/DeOldify-OpenMMLab
798b1b6675bfbc76d976a3cd6c87915c9b32dcdb
[ "MIT" ]
null
null
null
models/deoldify.py
wangruohui/DeOldify-OpenMMLab
798b1b6675bfbc76d976a3cd6c87915c9b32dcdb
[ "MIT" ]
1
2021-11-03T09:44:00.000Z
2021-11-03T09:44:00.000Z
# Copyright (c) OpenMMLab. All rights reserved. import numbers import os.path as osp import mmcv import numpy as np import torch from mmcv.runner import auto_fp16 from mmedit.core import tensor2img from mmedit.models.base import BaseModel from mmedit.models.builder import build_backbone, build_component, build_loss f...
35.006116
106
0.599983
11,006
0.961475
0
0
11,032
0.963746
0
0
5,256
0.45916
47029060be442baf1023a0a0e23b74ce3ae356e8
8,240
py
Python
aoi_envs/__init__.py
landonbutler/Learning-Connectivity
2ce4c148878e2dab98c53a7cc2bd8d1362c2bf87
[ "MIT" ]
2
2021-04-13T19:50:40.000Z
2021-05-04T09:27:37.000Z
aoi_envs/__init__.py
landonbutler/Learning-Connectivity
2ce4c148878e2dab98c53a7cc2bd8d1362c2bf87
[ "MIT" ]
null
null
null
aoi_envs/__init__.py
landonbutler/Learning-Connectivity
2ce4c148878e2dab98c53a7cc2bd8d1362c2bf87
[ "MIT" ]
2
2021-04-13T19:51:05.000Z
2021-05-12T16:07:41.000Z
from aoi_envs.MultiAgent import MultiAgentEnv from aoi_envs.Mobile import MobileEnv from gym.envs.registration import register MAX_EPISODE_STEPS = 10000 register( id='StationaryEnv-v0', entry_point='aoi_envs:MultiAgentEnv', max_episode_steps=MAX_EPISODE_STEPS, ) ##########################################...
24.744745
76
0.672209
0
0
0
0
0
0
0
0
3,465
0.42051
4702b4bd55352e823ec087a35e72ae44e05776e2
9,631
py
Python
btceapi/trade.py
Queeq/btce-api
b9f1045e604e46d89574a960915c51d8076a5c6d
[ "MIT" ]
1
2018-04-16T09:04:37.000Z
2018-04-16T09:04:37.000Z
btceapi/trade.py
Queeq/btce-api
b9f1045e604e46d89574a960915c51d8076a5c6d
[ "MIT" ]
null
null
null
btceapi/trade.py
Queeq/btce-api
b9f1045e604e46d89574a960915c51d8076a5c6d
[ "MIT" ]
null
null
null
# Copyright (c) 2013 Alan McIntyre import urllib import hashlib import hmac import warnings from datetime import datetime from btceapi import common from btceapi import keyhandler class InvalidNonceException(Exception): def __init__(self, method, expectedNonce, actualNonce): Exception.__init__(self) ...
36.206767
79
0.602326
8,723
0.905721
0
0
0
0
0
0
2,426
0.251895
4702d3ea64c33128158593ce3ec94ea461005ad4
776
py
Python
inventory_management/inventory/inventory.py
gmaher/blog_posts
2db1c0f88adaa76a4bbd188fc3ac230ff9eaefb5
[ "MIT" ]
null
null
null
inventory_management/inventory/inventory.py
gmaher/blog_posts
2db1c0f88adaa76a4bbd188fc3ac230ff9eaefb5
[ "MIT" ]
null
null
null
inventory_management/inventory/inventory.py
gmaher/blog_posts
2db1c0f88adaa76a4bbd188fc3ac230ff9eaefb5
[ "MIT" ]
1
2019-12-15T17:17:10.000Z
2019-12-15T17:17:10.000Z
import numpy as np class Forecaster: def __init__(self, c, m, sigma): self.c = c self.m = m self.sigma = sigma def predict(self, Y0, T): Yhat = np.zeros((T+self.m)) Yhat[:self.m] = Y0 for i in range(self.m,T+self.m): Yhat[i] = self.c + Yhat[...
20.972973
76
0.45232
370
0.476804
0
0
0
0
0
0
0
0
4703b8b3047a8ef94c23101c750894c129122120
1,388
py
Python
chillpill_examples/cloud_hp_tuning_from_train_fn/run_hp_search.py
kevinbache/chillpill_examples
d9c5fac9972f1afbf7bb4e6b6e5388b9f52c73c3
[ "MIT" ]
null
null
null
chillpill_examples/cloud_hp_tuning_from_train_fn/run_hp_search.py
kevinbache/chillpill_examples
d9c5fac9972f1afbf7bb4e6b6e5388b9f52c73c3
[ "MIT" ]
null
null
null
chillpill_examples/cloud_hp_tuning_from_train_fn/run_hp_search.py
kevinbache/chillpill_examples
d9c5fac9972f1afbf7bb4e6b6e5388b9f52c73c3
[ "MIT" ]
null
null
null
"""This module runs a distributed hyperparameter tuning job on Google Cloud AI Platform.""" from pathlib import Path import numpy as np import chillpill from chillpill import packages, params, search from chillpill_examples.cloud_hp_tuning_from_train_fn import train if __name__ == '__main__': # Create a Cloud A...
35.589744
91
0.713977
0
0
0
0
0
0
0
0
311
0.224063
4706c990a64c224b744ada7eefc49fc8bb2c5644
858
py
Python
tests/timing/test_timing_encoding.py
brendanhasz/dsutils
e780e904f7bf0ec5e14aa7ddb337f01f29779143
[ "MIT" ]
1
2019-09-14T16:59:34.000Z
2019-09-14T16:59:34.000Z
tests/timing/test_timing_encoding.py
brendanhasz/dsutils
e780e904f7bf0ec5e14aa7ddb337f01f29779143
[ "MIT" ]
null
null
null
tests/timing/test_timing_encoding.py
brendanhasz/dsutils
e780e904f7bf0ec5e14aa7ddb337f01f29779143
[ "MIT" ]
7
2020-01-19T14:40:08.000Z
2022-01-14T12:50:30.000Z
"""Tests timing of encoding classes """ import time import numpy as np import pandas as pd #import matplotlib.pyplot as plt from dsutils.encoding import MultiTargetEncoderLOO def test_timing_MultiTargetEncoderLOO(): """Tests timing of encoding.MultiTargetEncoderLOO""" # Dummy data N = 10000 Nc = ...
22.578947
61
0.638695
0
0
0
0
0
0
0
0
204
0.237762