Dataset Viewer
Auto-converted to Parquet Duplicate
hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 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
sequencelengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
sequencelengths
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
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
on import Interface, Inet4, Inet6, unroutable from spider.common import WLAN_Config from spider.luci import Version_Mixin class Status (Page_Tree, Version_Mixin) : url = 'cgi-bin/luci/freifunk/status/status' retries = 2 timeout = 10 html_charset = 'utf-8' ...
true
true
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
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): img = resize(img) return imagehash.whash(Image.fromarray(img)) def compare(hash1, hash2): return hash1 - hash2 def limit(img, std_hash, count): ...
true
true
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
from .cli.cli import main if __name__ == '__main__': main()
true
true
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
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...
true
true
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
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...
true
true
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
__version__ = "0.4.0" def classFactory(iface): from .SimplePhotogrammetryRoutePlanner import SimplePhotogrammetryRoutePlanner return SimplePhotogrammetryRoutePlanner(iface)
true
true
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
from sklearn.feature_selection import VarianceThreshold import numpy as np np.random.seed(1) X = np.random.randn(100, 10) X = np.hstack([X, np.zeros([100, 5])]) def featureSelection_variance(X, thrd): sel = VarianceThreshold(threshold=thrd) X_selected = sel.fit_transform(X) mask = sel.get_support() ...
true
true
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
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 (default: 64)') parser.add_argument('--t...
true
true
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
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_path, mode="w", cam_type="davis"): if mode == "w": dataset = h5py.File(file_path, mode=mode) dataset.create_group("dvs") dataset.c...
true
true
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
import flatbuffers class FloatingPoint(object): __slots__ = ['_tab'] @classmethod def GetRootAsFloatingPoint(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = FloatingPoint() x.Init(buf, n + offset) return x def Init(se...
true
true
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
def sub(x, y): f class Light: pass a = Light() b = Ligth()
true
true
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
from __future__ import unicode_literals, division, absolute_import import time import logging from collections import deque try: from UserDict import DictMixin except ImportError: from collections import Mapping as DictMixin import six from six import iteritems from six.moves import cPickle class Bas...
true
true
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
from typing import List, Optional, Union import numpy as np from PIL import Image from ...feature_extraction_utils import BatchFeature, FeatureExtractionMixin from ...file_utils import TensorType from ...image_utils import IMAGENET_STANDARD_MEAN, IMAGENET_STANDARD_STD, ImageFeatureExtractionMixin, is_t...
true
true
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
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 range(1, n + 1)] def ...
true
true
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
import platform 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_versions operating_sys...
true
true
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
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 from utils.util import opt_get def kornia_color_jitter_numpy(img, setting): ...
true
true
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
print(b"%%" % ()) print(b"=%d=" % 1) print(b"=%d=%d=" % (1, 2)) print(b"=%s=" % b"str") print(b"=%r=" % b"str") print("PASS")
true
true
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
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", [ (-1, 100, TestResult.Error, "quality_lower < min => Erro...
true
true
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
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...
true
true
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
import os JQUERY_VERSION = "1.6.2" JQUERY_UI_VERSION = "1.8.16" DATE_TEXT_SIZE = 25 TEXT_SIZE = 85 TEXTAREA_COLS = 85 TEXTAREA_ROWS_SHORT = 2 TEXTAREA_ROWS_LONG = 4 TEXTAREA_ROWS_XLONG = 10 MAX_LENGTH_CHECKLIST_NOTES = 255 EMAIL_LENGTH = 60 _app_path = None _config_file = None _app_name = None s...
true
true
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
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy from .._version import VERSION if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential ...
true
true
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
import django.http import unittest.mock from .. import middleware def get_response(req): return django.http.HttpResponse() def test_leaves_remote_addr_alone_if_no_real_ip(): remote_addr = object() request = unittest.mock.MagicMock() request.META = {"REMOTE_ADDR": remote_addr} middleware....
true
true
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
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()
true
true
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
from direct.directnotify.DirectNotifyGlobal import directNotify class Notifier: def __init__(self, name): self.notify = directNotify.newCategory(name)
true
true
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
import numpy as np def train_ml_squarer() -> None: print("Training!") def square() -> int: return np.random.randint(1, 100) if __name__ == '__main__': train_ml_squarer()
true
true
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
import arcade SCREEN_WIDTH = 1000 SCREEN_HEIGHT = 650 SCREEN_TITLE = "Platformer" CHARACTER_SCALING = 1 TILE_SCALING = 0.5 COIN_SCALING = 0.5 SPRITE_PIXEL_SIZE = 128 GRID_PIXEL_SIZE = SPRITE_PIXEL_SIZE * TILE_SCALING PLAYER_MOVEMENT_SPEED = 10 GRAVITY = 1 PLAYER_JUMP_SPEED = 20 class MyGame(arcade.Window): ...
true
true
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4