Dataset Viewer
Auto-converted to Parquet Duplicate
hexsha
stringlengths
40
40
size
int64
2
999k
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
sequence
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
sequence
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
sequence
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
2
999k
avg_line_length
float64
1
958k
max_line_length
int64
1
958k
alphanum_fraction
float64
0
1
f70001f658d4dfaa72dd4f0d1b3176492f6658bb
6,442
py
Python
spider/openwrt.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
spider/openwrt.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
spider/openwrt.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # #*** <License> ************************************************************# # This module is part of the repository CNDB. # # This module is licensed under the terms of the BSD 3-Clause License # <http://www.c-tanzer.at/license/bsd_3c.html>. # #*** </License> ***************...
34.449198
78
0.472369
f7000273e22d5a0f2d5b40c38a0ed8511d1b8995
2,250
py
Python
utils/compare.py
adcrn/knest
a274dc9ddb642cc30f837e225f000bf33430eb43
[ "BSD-3-Clause" ]
8
2018-03-15T23:42:51.000Z
2020-03-10T06:21:03.000Z
utils/compare.py
deekerno/knest
a274dc9ddb642cc30f837e225f000bf33430eb43
[ "BSD-3-Clause" ]
12
2018-03-15T19:11:02.000Z
2018-10-30T10:02:45.000Z
utils/compare.py
adcrn/knest
a274dc9ddb642cc30f837e225f000bf33430eb43
[ "BSD-3-Clause" ]
null
null
null
# UCF Senior Design 2017-18 # Group 38 from PIL import Image import cv2 import imagehash import math import numpy as np DIFF_THRES = 20 LIMIT = 2 RESIZE = 1000 def calc_hash(img): """ Calculate the wavelet hash of the image img: (ndarray) image file """ # resize image if height > 1000 im...
24.725275
78
0.646667
f70002926d1d600b4b068459c9dd40ebf3aef47d
757
py
Python
sdk/python/kfp/__main__.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
6
2020-05-19T02:35:11.000Z
2020-05-29T17:58:42.000Z
sdk/python/kfp/__main__.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
1,932
2021-01-25T11:23:37.000Z
2022-03-31T17:10:18.000Z
sdk/python/kfp/__main__.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
11
2020-05-19T22:26:41.000Z
2021-01-25T09:56:21.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.913043
74
0.749009
f7000327daf9ff11a381ce6d5de401ff007d1323
1,094
py
Python
TestProject/app/view/RoomItem.py
ChinSing00/ChatChat
48654e2e125298c00a558449353e38d0cec06d03
[ "MIT" ]
null
null
null
TestProject/app/view/RoomItem.py
ChinSing00/ChatChat
48654e2e125298c00a558449353e38d0cec06d03
[ "MIT" ]
null
null
null
TestProject/app/view/RoomItem.py
ChinSing00/ChatChat
48654e2e125298c00a558449353e38d0cec06d03
[ "MIT" ]
null
null
null
import time from PyQt5 import QtGui, QtCore from ui.room_item import Ui_Form from PyQt5.QtWidgets import QWidget class Room_Item(QWidget,Ui_Form): def __init__(self,parent=None,room_data=None): super(Room_Item,self).__init__(parent) self.setupUi(self) self.data = room_data self.se...
45.583333
138
0.659049
f7000371f0315cd55c0b14b33e7e8e56697cfc2e
10,498
py
Python
src/winforms/toga_winforms/app.py
holg/toga
9dd766e749c6cf29cdb1127c7637150381ac396d
[ "BSD-3-Clause" ]
1
2020-07-16T00:46:24.000Z
2020-07-16T00:46:24.000Z
src/winforms/toga_winforms/app.py
holg/toga
9dd766e749c6cf29cdb1127c7637150381ac396d
[ "BSD-3-Clause" ]
null
null
null
src/winforms/toga_winforms/app.py
holg/toga
9dd766e749c6cf29cdb1127c7637150381ac396d
[ "BSD-3-Clause" ]
null
null
null
import asyncio import re import sys import traceback import toga from toga import Key from .keys import toga_to_winforms_key from .libs import Threading, WinForms, shcore, user32, win_version from .libs.proactor import WinformsProactorEventLoop from .window import Window class MainWindow(Window): def winforms_F...
35.952055
101
0.597638
f7000456815408e3a0899443a0df077b039855c4
1,731
py
Python
__init__.py
luoxiangyong/qgissprp
4698462743e11eac486af4b60046b99ae2abc1b0
[ "BSD-2-Clause" ]
null
null
null
__init__.py
luoxiangyong/qgissprp
4698462743e11eac486af4b60046b99ae2abc1b0
[ "BSD-2-Clause" ]
null
null
null
__init__.py
luoxiangyong/qgissprp
4698462743e11eac486af4b60046b99ae2abc1b0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** SimplePhotogrammetryRoutePlanner A QGIS plugin A imple photogrammetry route planner. Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/ ...
46.783784
94
0.458117
f70004a44b39e2f1be17fb0ebfe7da0897c5e85d
671
py
Python
eslearn/utils/lc_featureSelection_variance.py
dongmengshi/easylearn
df528aaa69c3cf61f5459a04671642eb49421dfb
[ "MIT" ]
19
2020-02-29T06:00:18.000Z
2022-01-24T01:30:14.000Z
eslearn/utils/lc_featureSelection_variance.py
dongmengshi/easylearn
df528aaa69c3cf61f5459a04671642eb49421dfb
[ "MIT" ]
7
2020-04-02T03:05:21.000Z
2020-11-11T11:45:05.000Z
eslearn/utils/lc_featureSelection_variance.py
dongmengshi/easylearn
df528aaa69c3cf61f5459a04671642eb49421dfb
[ "MIT" ]
11
2020-03-03T03:02:15.000Z
2020-11-11T14:09:55.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jul 24 14:38:20 2018 dimension reduction with VarianceThreshold using sklearn. Feature selector that removes all low-variance features. @author: lenovo """ from sklearn.feature_selection import VarianceThreshold import numpy as np # np.random.seed(1) X = np.random.randn(100, 1...
23.964286
57
0.709389
f70004bcd049386ad073e2d45bf8fe56d0639a36
3,382
py
Python
mnist/my_multi_tune3.py
silent567/examples
e9de12549125ecd93a4924f6b8e2bbf66d7635d9
[ "BSD-3-Clause" ]
null
null
null
mnist/my_multi_tune3.py
silent567/examples
e9de12549125ecd93a4924f6b8e2bbf66d7635d9
[ "BSD-3-Clause" ]
null
null
null
mnist/my_multi_tune3.py
silent567/examples
e9de12549125ecd93a4924f6b8e2bbf66d7635d9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from my_multi_main3 import main import numpy as np import argparse import time parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser.add_argument('--batch-size', type=int, default=64, metavar='N', help='input batch size for training (defa...
47.633803
106
0.642815
f70004db8d93803fe1fd484a52ec6add2822ccb6
1,050
py
Python
spiker/data/hdf5.py
duguyue100/spiker
09437be393d7adf132f8ee2682e5b5b009c793a1
[ "MIT" ]
1
2021-01-13T10:46:44.000Z
2021-01-13T10:46:44.000Z
spiker/data/hdf5.py
duguyue100/spiker
09437be393d7adf132f8ee2682e5b5b009c793a1
[ "MIT" ]
null
null
null
spiker/data/hdf5.py
duguyue100/spiker
09437be393d7adf132f8ee2682e5b5b009c793a1
[ "MIT" ]
null
null
null
"""HDF5 related files. This file contains a set of functions that related to read and write HDF5 files. Author: Yuhuang Hu Email : duguyue100@gmail.com """ from __future__ import print_function, absolute_import import h5py from spiker import log logger = log.get_logger("data-hdf5", log.DEBUG) def init_hdf5(file_...
22.826087
68
0.629524
f70006680091e477a9da34fc8c775b99d72def25
951
py
Python
thirdparty/org/apache/arrow/flatbuf/FloatingPoint.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
5
2018-10-17T20:28:42.000Z
2022-02-15T17:33:01.000Z
thirdparty/org/apache/arrow/flatbuf/FloatingPoint.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
19
2018-07-18T07:15:44.000Z
2021-02-22T17:00:18.000Z
thirdparty/org/apache/arrow/flatbuf/FloatingPoint.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
2
2020-05-01T09:54:34.000Z
2021-04-17T10:57:07.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: flatbuf import flatbuffers class FloatingPoint(object): __slots__ = ['_tab'] @classmethod def GetRootAsFloatingPoint(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x ...
30.677419
92
0.698212
f70006c8c5153a3a1bb1f109dc563a53c20f0e43
162
py
Python
.history/Classiles/scynced_lights_20210615191535.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
.history/Classiles/scynced_lights_20210615191535.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
.history/Classiles/scynced_lights_20210615191535.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
"""[Scynced Lights] Class attributes are "shared" Instance attributes are not shared. """ def sub(x, y): f class Light: pass a = Light() b = Ligth()
10.125
35
0.62963
f70006d0df161d84dd7ec30a6d7506b5802d1f0c
9,378
py
Python
pyspider/libs/counter.py
willworks/pyspider
9fc2ffa57324d1a42ef767289faa3a04f4d20f2e
[ "Apache-2.0" ]
1
2015-11-08T07:33:31.000Z
2015-11-08T07:33:31.000Z
pyspider/libs/counter.py
willworks/pyspider
9fc2ffa57324d1a42ef767289faa3a04f4d20f2e
[ "Apache-2.0" ]
null
null
null
pyspider/libs/counter.py
willworks/pyspider
9fc2ffa57324d1a42ef767289faa3a04f4d20f2e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<i@binux.me> # http://binux.me # Created on 2012-11-14 17:09:50 from __future__ import unicode_literals, division, absolute_import import time import logging from collections import deque try: f...
27.341108
92
0.579335
f700088372c0eeaff049211c5fe92cdccb5fa804
6,706
py
Python
src/transformers/models/vit/feature_extraction_vit.py
djroxx2000/transformers
77770ec79883343d32051cfb6a04f64523cd8df1
[ "Apache-2.0" ]
723
2020-07-16T13:02:25.000Z
2022-03-31T21:03:55.000Z
src/transformers/models/vit/feature_extraction_vit.py
4nalog/transformers
76cadb7943c8492ec481f4f3925e9e8793a32c9d
[ "Apache-2.0" ]
170
2020-07-16T14:39:11.000Z
2022-03-31T13:02:11.000Z
src/transformers/models/vit/feature_extraction_vit.py
4nalog/transformers
76cadb7943c8492ec481f4f3925e9e8793a32c9d
[ "Apache-2.0" ]
131
2020-07-16T14:38:16.000Z
2022-03-29T19:43:18.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
45.310811
166
0.646287
f700096cbce5db1538215892bb1dcc76b6c37987
734
py
Python
hier/project-euler/euler-067-hackerrank/euler067.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
hier/project-euler/euler-067-hackerrank/euler067.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
hier/project-euler/euler-067-hackerrank/euler067.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 UNKNOWN = -1 def read_val(): return int(input()) def read_row(): return list(map(int, input().split())) def read_grid(): return [read_row() for _ in range(read_val())] def make_blank_row(i): return [UNKNOWN] * i def make_blank_grid(n): return [make_blank_row(i) for i in ...
20.388889
75
0.564033
f7000a85ea7a735edb59575f149fc6ff7ce4b461
1,866
py
Python
tools/apps/find_blender.py
SeijiEmery/unity_tools
cb401e6979b95c081a2ab3f944fc6e4419ccfd0e
[ "MIT" ]
null
null
null
tools/apps/find_blender.py
SeijiEmery/unity_tools
cb401e6979b95c081a2ab3f944fc6e4419ccfd0e
[ "MIT" ]
null
null
null
tools/apps/find_blender.py
SeijiEmery/unity_tools
cb401e6979b95c081a2ab3f944fc6e4419ccfd0e
[ "MIT" ]
null
null
null
import platform # print(platform.system()) operating_system = platform.system().lower() if operating_system == 'darwin': from .blender_utils_macos import get_installed_blender_versions operating_system_name = 'macos' elif operating_system == 'linux': from .blender_utils_linux import get_installed_blender_...
40.565217
132
0.681136
f7000b2945cb3703ec7fbc7ccf8cd64d39f12e81
8,196
py
Python
codes/data/image_corruptor.py
neonbjb/DL-Art-School
a6f0f854b987ac724e258af8b042ea4459a571bc
[ "Apache-2.0" ]
12
2020-12-13T12:45:03.000Z
2022-03-29T09:58:15.000Z
codes/data/image_corruptor.py
neonbjb/DL-Art-School
a6f0f854b987ac724e258af8b042ea4459a571bc
[ "Apache-2.0" ]
1
2020-12-31T01:12:45.000Z
2021-03-31T11:43:52.000Z
codes/data/image_corruptor.py
neonbjb/DL-Art-School
a6f0f854b987ac724e258af8b042ea4459a571bc
[ "Apache-2.0" ]
3
2020-12-14T06:04:04.000Z
2020-12-26T19:11:41.000Z
import functools import random from math import cos, pi import cv2 import kornia import numpy as np import torch from kornia.augmentation import ColorJitter from data.util import read_img from PIL import Image from io import BytesIO # Get a rough visualization of the above distribution. (Y-axis is meaningless, just...
39.028571
122
0.554173
f7000b6751e6ca87c8cdd1ca6b7921d866ec80c7
159
py
Python
tests/basics/bytes_format_modulo.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
7
2019-10-18T13:41:39.000Z
2022-03-15T17:27:57.000Z
tests/basics/bytes_format_modulo.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
null
null
null
tests/basics/bytes_format_modulo.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
2
2020-06-23T09:10:15.000Z
2020-12-22T06:42:14.000Z
# This test requires CPython3.5 print(b"%%" % ()) print(b"=%d=" % 1) print(b"=%d=%d=" % (1, 2)) print(b"=%s=" % b"str") print(b"=%r=" % b"str") print("PASS")
17.666667
31
0.503145
f7000bbc055be36dc38b5ab214bad87b6d24f064
2,102
py
Python
tests/test_JpegCompression.py
tt195361/TfDataAugmentation
0deb987ae5a37816d88eec302bc42db7479ea8df
[ "MIT" ]
null
null
null
tests/test_JpegCompression.py
tt195361/TfDataAugmentation
0deb987ae5a37816d88eec302bc42db7479ea8df
[ "MIT" ]
null
null
null
tests/test_JpegCompression.py
tt195361/TfDataAugmentation
0deb987ae5a37816d88eec302bc42db7479ea8df
[ "MIT" ]
null
null
null
# # test_JpegCompression.py # import pytest import albumentations as A from .context import TfDataAugmentation as Tfda from . import test_utils from .test_utils import TestResult @pytest.mark.parametrize( "quality_lower, quality_upper, expected, message", [ # quality_lower (-1, 100, TestResult.Er...
28.794521
60
0.621313
f7000bc963cc817a5a5dca6aba86f5ea6dde667e
3,008
py
Python
tests/test_background_swap.py
pclucas14/continuum
3b9b0fc3c2f21dcaeafbccfa29987cefe55f37a0
[ "MIT" ]
4
2020-04-15T14:31:42.000Z
2020-04-24T17:07:34.000Z
tests/test_background_swap.py
pclucas14/continuum
3b9b0fc3c2f21dcaeafbccfa29987cefe55f37a0
[ "MIT" ]
18
2020-04-15T14:57:27.000Z
2020-05-02T14:05:36.000Z
tests/test_background_swap.py
arthurdouillard/continual_loader
09034db1371e9646ca660fd4d4df73e61bf77067
[ "MIT" ]
1
2020-04-15T15:50:28.000Z
2020-04-15T15:50:28.000Z
import os from torch.utils.data import DataLoader from continuum.datasets import CIFAR10, InMemoryDataset from continuum.datasets import MNIST import torchvision from continuum.scenarios import TransformationIncremental import pytest import numpy as np from continuum.transforms.bg_swap import BackgroundSwap DATA_PAT...
31.010309
115
0.657247
f7000c3468a0624d54db99fbbde0ac002173b532
2,025
py
Python
python/communitymanager/lib/const.py
OpenCIOC/communityrepo
63199a7b620f5c08624e534faf771e5dd2243adb
[ "Apache-2.0" ]
2
2016-01-25T14:40:44.000Z
2018-01-31T04:30:23.000Z
python/communitymanager/lib/const.py
OpenCIOC/communityrepo
63199a7b620f5c08624e534faf771e5dd2243adb
[ "Apache-2.0" ]
5
2018-02-07T20:16:49.000Z
2021-12-13T19:41:43.000Z
python/communitymanager/lib/const.py
OpenCIOC/communityrepo
63199a7b620f5c08624e534faf771e5dd2243adb
[ "Apache-2.0" ]
1
2018-02-07T20:37:52.000Z
2018-02-07T20:37:52.000Z
# ========================================================================================= # Copyright 2015 Community Information Online Consortium (CIOC) and KCL Software Solutions # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
32.142857
95
0.640494
f7000d37df1b082b8f943334e45282014877347e
3,280
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2015_08_01/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2015_08_01/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2015_08_01/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
48.235294
134
0.699695
f7000e80dc69165127d93dc9b2a8e5454d07d8ca
852
py
Python
spongeauth/core/tests/test_x_real_ip_middleware.py
felixoi/SpongeAuth
d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26
[ "MIT" ]
10
2016-11-18T12:37:24.000Z
2022-03-04T09:25:25.000Z
spongeauth/core/tests/test_x_real_ip_middleware.py
felixoi/SpongeAuth
d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26
[ "MIT" ]
794
2016-11-19T18:34:37.000Z
2022-03-31T16:49:11.000Z
spongeauth/core/tests/test_x_real_ip_middleware.py
PowerNukkit/OreAuth
96a2926c9601fce6fac471bdb997077f07e8bf9a
[ "MIT" ]
11
2016-11-26T22:30:17.000Z
2022-03-16T17:20:14.000Z
import django.http import unittest.mock from .. import middleware def get_response(req): # dummy get_response, just return an empty response return django.http.HttpResponse() def test_leaves_remote_addr_alone_if_no_real_ip(): remote_addr = object() request = unittest.mock.MagicMock() request.M...
25.058824
76
0.75
f7000f03c62e8b3dcc7083fb8b218b5a6f499aa8
198
py
Python
test-relay.py
rn-santos227/medsys
d72ef3b419bdb84cc21022af7ce43813090ef211
[ "MIT" ]
null
null
null
test-relay.py
rn-santos227/medsys
d72ef3b419bdb84cc21022af7ce43813090ef211
[ "MIT" ]
null
null
null
test-relay.py
rn-santos227/medsys
d72ef3b419bdb84cc21022af7ce43813090ef211
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(21, GPIO.OUT) GPIO.output(21, GPIO.LOW) time.sleep(3.00) GPIO.output(21, GPIO.HIGH) GPIO.cleanup()
11.647059
26
0.717172
f7000f942ae83e6e025768748f579184365a76d4
305
py
Python
server/objects/notifier.py
jaxsenh/the-devil-that-lurks
89fa85c461a8da55a0b7d28e32dd8144d6cac8ca
[ "MIT" ]
1
2020-05-28T03:21:44.000Z
2020-05-28T03:21:44.000Z
server/objects/notifier.py
jaxsenh/the-devil-that-lurks
89fa85c461a8da55a0b7d28e32dd8144d6cac8ca
[ "MIT" ]
null
null
null
server/objects/notifier.py
jaxsenh/the-devil-that-lurks
89fa85c461a8da55a0b7d28e32dd8144d6cac8ca
[ "MIT" ]
null
null
null
from direct.directnotify.DirectNotifyGlobal import directNotify class Notifier: def __init__(self, name): """ @param name: The name of the notifier. Be sure to add it to your config/Config.prc! @type name: str """ self.notify = directNotify.newCategory(name)
27.727273
91
0.659016
f70011c6182da69473e565cf0d8aee9ee61da27a
221
py
Python
packaging/squarer/ml_squarer.py
g-nightingale/tox_examples
d7714375c764580b4b8af9db61332ced4e851def
[ "BSD-3-Clause" ]
10
2020-05-23T15:40:43.000Z
2022-02-06T22:34:10.000Z
packaging/squarer/ml_squarer.py
g-nightingale/tox_examples
d7714375c764580b4b8af9db61332ced4e851def
[ "BSD-3-Clause" ]
null
null
null
packaging/squarer/ml_squarer.py
g-nightingale/tox_examples
d7714375c764580b4b8af9db61332ced4e851def
[ "BSD-3-Clause" ]
12
2020-08-04T11:37:56.000Z
2022-03-31T23:21:13.000Z
import numpy as np def train_ml_squarer() -> None: print("Training!") def square() -> int: """Square a number...maybe""" return np.random.randint(1, 100) if __name__ == '__main__': train_ml_squarer()
15.785714
36
0.633484
f70012b80af6d540ea4880f63579ca63dcbdd2f2
6,034
py
Python
arcade/examples/platform_tutorial/09_load_map.py
yegarti/arcade
1862e61aab9a7dc646265005b0e808d953a9dfe3
[ "MIT" ]
null
null
null
arcade/examples/platform_tutorial/09_load_map.py
yegarti/arcade
1862e61aab9a7dc646265005b0e808d953a9dfe3
[ "MIT" ]
null
null
null
arcade/examples/platform_tutorial/09_load_map.py
yegarti/arcade
1862e61aab9a7dc646265005b0e808d953a9dfe3
[ "MIT" ]
null
null
null
""" Platformer Game """ import arcade # Constants SCREEN_WIDTH = 1000 SCREEN_HEIGHT = 650 SCREEN_TITLE = "Platformer" # Constants used to scale our sprites from their original size CHARACTER_SCALING = 1 TILE_SCALING = 0.5 COIN_SCALING = 0.5 SPRITE_PIXEL_SIZE = 128 GRID_PIXEL_SIZE = SPRITE_PIXEL_SIZE * TILE_SCALING #...
30.474747
106
0.632748
f7001373a7204c33b024b0c7595942d17d82aa97
19,924
py
Python
lib/ycmd/start.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
12
2018-01-24T20:58:10.000Z
2021-12-21T15:02:10.000Z
lib/ycmd/start.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
4
2018-01-13T14:39:45.000Z
2020-11-25T00:05:27.000Z
lib/ycmd/start.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
2
2018-10-23T17:13:44.000Z
2019-05-12T04:10:17.000Z
#!/usr/bin/env python3 ''' lib/ycmd/start.py Server bootstrap logic. Includes a utility class for normalizing parameters and calculating default ones. Also includes a helper to set up the temporary options file. ''' import logging import os import tempfile from ..process import ( FileHandles, Process, ) from...
36.291439
79
0.672656
f700138011862872e2cc9ea8d4b8a3ff7174ef9d
7,359
py
Python
xflash-serial.py
walczakp/xbox360-teensy-flasher
594990e835fa0f9111ced1901f52d2fb80d61b4d
[ "MIT" ]
11
2020-04-05T02:36:43.000Z
2021-11-11T21:56:17.000Z
xflash-serial.py
walczakp/xbox360-flasher
699a9a80c1a2fbfd7663144267dac950becc0405
[ "MIT" ]
1
2021-05-11T22:36:39.000Z
2021-05-13T11:16:01.000Z
xflash-serial.py
walczakp/xbox360-teensy-flasher
594990e835fa0f9111ced1901f52d2fb80d61b4d
[ "MIT" ]
2
2022-02-21T06:42:06.000Z
2022-03-26T19:28:09.000Z
#!/usr/bin/env python import serial import sys import struct import pprint import argparse import code pp = pprint.PrettyPrinter() class ConsoleUI: def opStart(self, name): sys.stdout.write(name.ljust(40)) def opProgress(self, progress, total=-1): if (total >= 0): prstr = "0x%04x...
30.409091
131
0.552792
f70014551e3b05adace4276bbdf12330b4b1aaf7
2,503
py
Python
CIM16/IEC61970/Informative/InfCustomers/ComplianceEvent.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Informative/InfCustomers/ComplianceEvent.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Informative/InfCustomers/ComplianceEvent.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
1
2021-04-02T18:04:49.000Z
2021-04-02T18:04:49.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
56.886364
823
0.75869
f700169f42c4405db98ca51444ca7070b1d5d538
43,726
py
Python
looking_for_group/games/api_views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/games/api_views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/games/api_views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
import logging from django.db.models.query_utils import Q from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from django_filters.rest_framework import DjangoFilterBackend from drf_yasg import openapi from drf_yasg.openapi import Parameter from drf_yasg.utils import no_b...
34.160938
179
0.644353
f700171313ea3cd9aba9f32edd0869bb57ac51e3
2,851
py
Python
test/testsql.py
ckarnell/sqlalchemy-stubs
055c198e26ca700b2d4a365c06bedcfbed0de176
[ "Apache-2.0" ]
null
null
null
test/testsql.py
ckarnell/sqlalchemy-stubs
055c198e26ca700b2d4a365c06bedcfbed0de176
[ "Apache-2.0" ]
1
2019-11-29T16:25:29.000Z
2020-01-23T16:13:05.000Z
test/testsql.py
ckarnell/sqlalchemy-stubs
055c198e26ca700b2d4a365c06bedcfbed0de176
[ "Apache-2.0" ]
1
2019-11-29T16:12:37.000Z
2019-11-29T16:12:37.000Z
"""Mypy style test cases for SQLAlchemy stubs and plugin.""" import os import os.path import sys import pytest # type: ignore # no pytest in typeshed from mypy.test.config import test_temp_dir from mypy.test.data import DataDrivenTestCase, DataSuite from mypy.test.helpers import assert_string_arrays_equal from myp...
39.597222
98
0.58155
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
4