hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4e5118b4f0a36e975b66fc2a17389df367587909
9,533
py
Python
apps/stock_DVD_HK.py
ohjho/stocklit
b7721ac3a9de07cf406b3ccf77698fcf31a6c4fa
[ "Apache-2.0" ]
null
null
null
apps/stock_DVD_HK.py
ohjho/stocklit
b7721ac3a9de07cf406b3ccf77698fcf31a6c4fa
[ "Apache-2.0" ]
null
null
null
apps/stock_DVD_HK.py
ohjho/stocklit
b7721ac3a9de07cf406b3ccf77698fcf31a6c4fa
[ "Apache-2.0" ]
1
2022-02-16T08:11:35.000Z
2022-02-16T08:11:35.000Z
import os, sys, json, datetime import streamlit as st import pandas as pd import numpy as np import plotly.express as px import plotly.graph_objects as go from businessdate import BusinessDate from stqdm import stqdm #Paths cwdir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(1, os.path.join(cwdir, "../...
40.914163
105
0.573796
def5abc942f1062348e9f230ef3e318d4449e3ac
18,191
py
Python
xarray/tests/test_concat.py
villegar/xarray
90e734a55792f3c19e795df110fc3501c609d191
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/tests/test_concat.py
villegar/xarray
90e734a55792f3c19e795df110fc3501c609d191
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/tests/test_concat.py
villegar/xarray
90e734a55792f3c19e795df110fc3501c609d191
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from copy import deepcopy import numpy as np import pandas as pd import pytest from xarray import DataArray, Dataset, Variable, concat from xarray.core import dtypes, merge from . import ( InaccessibleArray, assert_array_equal, assert_equal, assert_identical, raises_regex, requires_dask, ) fr...
38.056485
88
0.510637
f597ab61bd115a3f35fe101c202cd2a01fac6fd7
981
py
Python
condition.py
sadihem/fMRI-Data-Analysis-using-Amazon-Web-Services
e7a7f939b95715dd4ad630d21c1a1acc73de8cb1
[ "Apache-2.0" ]
2
2020-11-05T21:47:54.000Z
2020-11-09T22:27:23.000Z
condition.py
sadihem/fMRI-Data-Analysis-using-Amazon-Web-Services
e7a7f939b95715dd4ad630d21c1a1acc73de8cb1
[ "Apache-2.0" ]
null
null
null
condition.py
sadihem/fMRI-Data-Analysis-using-Amazon-Web-Services
e7a7f939b95715dd4ad630d21c1a1acc73de8cb1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import logging import sys import csv USAGE = './condition.py demographicFile subcodeQuery' logging.basicConfig( level=logging.INFO ) logger = logging.getLogger( __name__ ) def conditionToInt(condition): condition = str(condition) if condition == "SCZ" or condition == "SCZ-SIB": return 1 ...
23.926829
87
0.66157
476aed9a332d7cec7f1a042ed3667202d758829c
278
py
Python
word_embedding_loader/exceptions.py
Emekaborisama/word_embedding_loader
5b0fd435360d335341dc111bbc52869bb2731422
[ "MIT" ]
4
2017-11-17T22:03:37.000Z
2018-06-26T08:50:27.000Z
word_embedding_loader/exceptions.py
Emekaborisama/word_embedding_loader
5b0fd435360d335341dc111bbc52869bb2731422
[ "MIT" ]
7
2017-08-09T12:51:00.000Z
2018-06-29T19:12:11.000Z
word_embedding_loader/exceptions.py
Emekaborisama/word_embedding_loader
5b0fd435360d335341dc111bbc52869bb2731422
[ "MIT" ]
2
2018-06-26T09:06:31.000Z
2020-06-13T16:05:05.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, \ unicode_literals import warnings class ParseError(Exception): pass class ParseWarning(Warning): pass def parse_warn(message): warnings.warn(message, ParseWarning)
15.444444
67
0.733813
ba8ae1dd9597b24f65f802bc155599b43d1548bf
70,087
py
Python
AceVision/old/AceVision_GUI_EXE_conversion/version_0.1_USB_cam_190216/RivetDetect/RivetDetect.py
lyj911111/OpenCV_Project
9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9
[ "MIT" ]
null
null
null
AceVision/old/AceVision_GUI_EXE_conversion/version_0.1_USB_cam_190216/RivetDetect/RivetDetect.py
lyj911111/OpenCV_Project
9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9
[ "MIT" ]
6
2021-03-18T23:40:12.000Z
2022-03-11T23:44:46.000Z
AceVision/old/AceVision_GUI_EXE_conversion/version_0.1_USB_cam_190216/RivetDetect/RivetDetect.py
lyj911111/OpenCV_Project
9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np # pip install numpy==1.15.4 import cv2 # pip install opencv-python==3.4.4.19 from PIL import Image as Img # pip install image==1.5.27 import pyzbar.pyzbar as pyzbar # pip install pyzbar==0.1....
43.532298
247
0.620372
386e73c9c189df3e1c60893c594dd983f4586540
814
py
Python
app/__init__.py
rkk09c/Brodcast
c768863bf5d10b3a90db2a73bbb44a3b83098c9d
[ "Apache-2.0" ]
3
2020-06-24T19:28:56.000Z
2021-11-12T12:21:41.000Z
app/__init__.py
rkk09c/Brodcast
c768863bf5d10b3a90db2a73bbb44a3b83098c9d
[ "Apache-2.0" ]
null
null
null
app/__init__.py
rkk09c/Brodcast
c768863bf5d10b3a90db2a73bbb44a3b83098c9d
[ "Apache-2.0" ]
1
2019-04-20T20:21:27.000Z
2019-04-20T20:21:27.000Z
import os from configparser import ConfigParser from flask import Flask from flask_restful import Api from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from twilio.rest import TwilioRestClient app = Flask(__name__) # ENV Vars try: ENV = os.environ['ENV'] ENV in ('STAGING', 'PRODUCTION') e...
23.941176
98
0.771499
9fde8172a108c0e4b197ecddf1fdf1aa65207acf
79
py
Python
version.py
ubarkai/clipspy
54e03fbe7762cc2dfe0a4259a1b74d2e9ba7c522
[ "BSD-3-Clause" ]
null
null
null
version.py
ubarkai/clipspy
54e03fbe7762cc2dfe0a4259a1b74d2e9ba7c522
[ "BSD-3-Clause" ]
null
null
null
version.py
ubarkai/clipspy
54e03fbe7762cc2dfe0a4259a1b74d2e9ba7c522
[ "BSD-3-Clause" ]
null
null
null
"""Versioning controlled via Git Tag, check setup.py""" __version__ = "0.3.4"
19.75
55
0.696203
dd64b7f2af8e41e19a51c8f19ae00b85d629da22
345,605
py
Python
google/cloud/aiplatform/training_jobs.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/training_jobs.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/training_jobs.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
52.135315
159
0.629172
cfa42875e94e877e3e963a5cc6d8cf4ee826f459
2,707
py
Python
research.py
gwk/cove
0cdfba60c75b325f64fc33afa72659061333a1a6
[ "CC0-1.0" ]
null
null
null
research.py
gwk/cove
0cdfba60c75b325f64fc33afa72659061333a1a6
[ "CC0-1.0" ]
null
null
null
research.py
gwk/cove
0cdfba60c75b325f64fc33afa72659061333a1a6
[ "CC0-1.0" ]
null
null
null
from dis import opmap, opname, hasjabs, hasjrel from pprint import pprint def main() -> None: for opname in opmap: if opname not in known_opnames: print(f'unknown opname: {opname!r}') print('abs jumps:', [opname[op] for op in hasjabs]) print('rel jumps:', [opname[op] for op in hasjrel]) # Up to date...
18.541096
53
0.670484
7b3ac72f4d52cd10d10de4769f841dab37487077
3,089
py
Python
pollster/pollster/settings.py
kmr-sumit/pollster-app-with-charts
d937109f5453a107deacfd7e226327a24a8a3055
[ "MIT" ]
null
null
null
pollster/pollster/settings.py
kmr-sumit/pollster-app-with-charts
d937109f5453a107deacfd7e226327a24a8a3055
[ "MIT" ]
null
null
null
pollster/pollster/settings.py
kmr-sumit/pollster-app-with-charts
d937109f5453a107deacfd7e226327a24a8a3055
[ "MIT" ]
null
null
null
from pathlib import Path import os import dj_database_url import django_heroku # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployme...
25.528926
91
0.701198
90fc63af45cdb35bd51e5915053264f9ff3e0786
347
py
Python
saleor/product/migrations/0086_product_publication_date.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
3
2019-06-09T18:00:54.000Z
2019-06-18T10:07:39.000Z
saleor/product/migrations/0086_product_publication_date.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
2
2019-07-02T13:39:49.000Z
2019-07-07T09:38:27.000Z
saleor/product/migrations/0086_product_publication_date.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
1
2019-05-02T17:30:49.000Z
2019-05-02T17:30:49.000Z
# Generated by Django 2.1.5 on 2019-02-05 11:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("product", "0085_auto_20190125_0025")] operations = [ migrations.RenameField( model_name="product", old_name="available_on", new_name="publica...
23.133333
86
0.677233
25d0bd7f45087ffc55ad93c8dae4e51f8b3fba34
352
py
Python
network/__init__.py
ykhuang0817/Inflated_3DConvNets
d7e5b6877d61caa08a6a1469ba64d8744452b637
[ "MIT" ]
1
2020-05-29T10:27:53.000Z
2020-05-29T10:27:53.000Z
network/__init__.py
ykhuang0817/Inflated_3DConvNets
d7e5b6877d61caa08a6a1469ba64d8744452b637
[ "MIT" ]
null
null
null
network/__init__.py
ykhuang0817/Inflated_3DConvNets
d7e5b6877d61caa08a6a1469ba64d8744452b637
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # =============================================================== # Copyright (C) 2018 HuangYk. # Licensed under The MIT Lincese. # # Filename : __init__.py # Author : HuangYK # Last Modified: 2018-09-30 22:13 # Description : # ==================================...
23.466667
65
0.392045
d2e812024a7178c288aa45979e98fbf912de62e0
31,650
py
Python
tools/memap.py
lk021x/mbed-os
deb905da1d73e4b7960ce50b15dd937102b598f7
[ "Apache-2.0" ]
null
null
null
tools/memap.py
lk021x/mbed-os
deb905da1d73e4b7960ce50b15dd937102b598f7
[ "Apache-2.0" ]
null
null
null
tools/memap.py
lk021x/mbed-os
deb905da1d73e4b7960ce50b15dd937102b598f7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Memory Map File Analyser for ARM mbed""" from __future__ import print_function, division, absolute_import from abc import abstractmethod, ABCMeta from sys import stdout, exit, argv from os import sep, rename, remove from os.path import (basename, dirname, join, relpath, abspath, commonprefix,...
34.895259
147
0.542243
fe3a221cae9c2c08c2b0f0f44033ae7d022d33f5
2,610
py
Python
rl-rc-car/rccar.py
sourav-roni/rl-rc-car
4833ec6bf40b971caeec9bf0eb85a14138f91de4
[ "MIT" ]
47
2016-07-16T22:37:34.000Z
2021-04-13T12:10:04.000Z
rl-rc-car/rccar.py
harvitronix/rl-rc-car
4833ec6bf40b971caeec9bf0eb85a14138f91de4
[ "MIT" ]
null
null
null
rl-rc-car/rccar.py
harvitronix/rl-rc-car
4833ec6bf40b971caeec9bf0eb85a14138f91de4
[ "MIT" ]
23
2016-07-29T08:18:54.000Z
2022-03-14T20:45:18.000Z
""" This class controls the RC car itself. It's intended to be the real-world version of the carmunk simulation. """ import RPi.GPIO as GPIO import time class RCCar: def __init__(self, left_p=13, right_p=15, forward_p=12, backward_p=11, apply_time=0.3, wait_time=0): self.left_p = left_p ...
29
74
0.551724
9b37857f59e1e67142567fd0aad3ebdd866098d2
2,242
py
Python
examples/football.py
adaptivelab/datasift-python
3cd530866f6929f3f20f0dca3459518df86b6ff9
[ "MIT" ]
null
null
null
examples/football.py
adaptivelab/datasift-python
3cd530866f6929f3f20f0dca3459518df86b6ff9
[ "MIT" ]
null
null
null
examples/football.py
adaptivelab/datasift-python
3cd530866f6929f3f20f0dca3459518df86b6ff9
[ "MIT" ]
null
null
null
# encoding: utf-8 # This example constructs a DataSift_Definition object with CSDL that looks # for anything containing the word "football". It then gets an HTTP # consumer for that definition and displays matching interactions to the # screen as they come in. It will display 10 interactions and then stop. # # NB: Mos...
32.028571
134
0.668153
734d767d631491c06b605c239d6bfc4f650e6841
8,471
py
Python
test/test_interfacesWriter.py
mikeodr/debinterface
9dbb509b1a415cb09bc70afc2ca3a891b2116039
[ "BSD-3-Clause" ]
null
null
null
test/test_interfacesWriter.py
mikeodr/debinterface
9dbb509b1a415cb09bc70afc2ca3a891b2116039
[ "BSD-3-Clause" ]
null
null
null
test/test_interfacesWriter.py
mikeodr/debinterface
9dbb509b1a415cb09bc70afc2ca3a891b2116039
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, with_statement, absolute_import import os import unittest import tempfile from ..debinterface import InterfacesReader, InterfacesWriter, NetworkAdapter INF_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), "interfaces.txt") class TestInterf...
38.504545
92
0.528745
3d3f7d51f78d67f59fd4e8998dd08a6ea3b666ee
1,898
py
Python
ampel/enum/JournalActionCode.py
AmpelProject/Ampel-base
e344e4be31f3c009084cbf285693c77389cafae8
[ "BSD-3-Clause" ]
1
2019-11-21T11:44:04.000Z
2019-11-21T11:44:04.000Z
ampel/enum/JournalActionCode.py
AmpelProject/Ampel-base
e344e4be31f3c009084cbf285693c77389cafae8
[ "BSD-3-Clause" ]
1
2019-03-25T19:24:09.000Z
2019-03-25T19:24:09.000Z
ampel/enum/JournalActionCode.py
AmpelProject/Ampel-base
e344e4be31f3c009084cbf285693c77389cafae8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: Ampel-interface/ampel/enum/JournalActionCode.py # License: BSD-3-Clause # Author: valery brinnel <firstname.lastname@gmail.com> # Date: 01.09.2021 # Last Modified Date: 05.09.2021 # Last Modified By: valery ...
28.757576
121
0.521075
e64bddaaa4d43adb82271824c491bd6030bf0ef8
4,446
py
Python
deepcave/runs/recorder.py
automl/DeepCAVE
62084793e76d6d9e7797163ac1d515d2b2ce56e9
[ "Apache-2.0" ]
11
2021-11-15T09:49:41.000Z
2022-01-18T09:57:43.000Z
deepcave/runs/recorder.py
automl/DeepCAVE
62084793e76d6d9e7797163ac1d515d2b2ce56e9
[ "Apache-2.0" ]
9
2021-12-13T10:20:14.000Z
2022-03-30T15:37:19.000Z
deepcave/runs/recorder.py
automl/DeepCAVE
62084793e76d6d9e7797163ac1d515d2b2ce56e9
[ "Apache-2.0" ]
2
2021-11-19T12:22:11.000Z
2021-12-13T13:01:37.000Z
from typing import Optional, Union import time from pathlib import Path import ConfigSpace import numpy as np from ConfigSpace import Configuration from deepcave.runs import Status from deepcave.runs.converters.deepcave import DeepCAVERun from deepcave.runs.run import Run class Recorder: def __init__( ...
27.109756
85
0.550607
a4d26a273a00303f049b1115258b8ba3c622ab5b
1,699
py
Python
src/programy/storage/stores/sql/store/sqlstore.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
src/programy/storage/stores/sql/store/sqlstore.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
src/programy/storage/stores/sql/store/sqlstore.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
""" Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com 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, m...
41.439024
120
0.749853
2237b643e635ecba4b05cb3d4a43b1a10f72debf
342
py
Python
env/Lib/site-packages/jeepney/integrate/tornado.py
iamswayam/DRF-API-Logger
4acd2ee709df98c2e22d6bd0a97bf9191a0d8e4e
[ "MIT" ]
1
2020-10-20T12:55:21.000Z
2020-10-20T12:55:21.000Z
env/Lib/site-packages/jeepney/integrate/tornado.py
iamswayam/DRF-API-Logger
4acd2ee709df98c2e22d6bd0a97bf9191a0d8e4e
[ "MIT" ]
8
2020-02-17T15:41:42.000Z
2022-03-12T00:15:39.000Z
env/Lib/site-packages/jeepney/integrate/tornado.py
iamswayam/DRF-API-Logger
4acd2ee709df98c2e22d6bd0a97bf9191a0d8e4e
[ "MIT" ]
2
2020-09-10T22:39:34.000Z
2021-06-27T22:21:55.000Z
"""Deprecated: use jeepney.io.tornado instead""" from jeepney.io.tornado import * async def connect_and_authenticate(bus='SESSION'): conn = await open_dbus_connection(bus) return DBusRouter(conn) if __name__ == '__main__': rtr = IOLoop.current().run_sync(connect_and_authenticate) print("Unique name i...
28.5
61
0.739766
98ef3d347e4f2d8d0297e959641e7d328cb5629c
3,756
py
Python
setup.py
ndcolter-mcafee/opendxl-elasticsearch-service-python
b570a376ea60f21e7e91cbfa7bdf7b38f065b4f2
[ "Apache-2.0" ]
null
null
null
setup.py
ndcolter-mcafee/opendxl-elasticsearch-service-python
b570a376ea60f21e7e91cbfa7bdf7b38f065b4f2
[ "Apache-2.0" ]
null
null
null
setup.py
ndcolter-mcafee/opendxl-elasticsearch-service-python
b570a376ea60f21e7e91cbfa7bdf7b38f065b4f2
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-member, no-name-in-module, import-error from __future__ import absolute_import import glob import os import distutils.command.sdist import distutils.log import subprocess from setuptools import Command, setup import setuptools.command.sdist # Patch setuptools' sdist behaviour with distutils' sdis...
28.892308
77
0.625932
17793ddca0ea22af1c18a134eff9c015ff1dca07
6,406
py
Python
salt/states/ansiblegate.py
casselt/salt
d8a2ef4e0cd544656489d23d161928879b1fc1c0
[ "Apache-2.0" ]
null
null
null
salt/states/ansiblegate.py
casselt/salt
d8a2ef4e0cd544656489d23d161928879b1fc1c0
[ "Apache-2.0" ]
1
2019-08-18T07:03:30.000Z
2019-08-18T07:03:30.000Z
salt/states/ansiblegate.py
casselt/salt
d8a2ef4e0cd544656489d23d161928879b1fc1c0
[ "Apache-2.0" ]
2
2020-11-04T06:24:32.000Z
2020-11-06T11:00:57.000Z
# -*- coding: utf-8 -*- # # Author: Bo Maryniuk <bo@suse.de> # # Copyright 2017 SUSE 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 # # Unles...
32.190955
111
0.600062
9e5b0ecc5b36bf23fa61f0327c357b1ccba8979d
2,526
py
Python
lldb/packages/Python/lldbsuite/test/benchmarks/expression/TestExpressionCmd.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lldb/packages/Python/lldbsuite/test/benchmarks/expression/TestExpressionCmd.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/packages/Python/lldbsuite/test/benchmarks/expression/TestExpressionCmd.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
"""Test lldb's expression evaluations and collect statistics.""" from __future__ import print_function import sys import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbbench import * from lldbsuite.test.lldbtest import * from lldbsuite.test import configuration from lldbsuite.test import lldbut...
30.433735
77
0.595408
d505131aa5eb12952efffc23965ef979c0ed419e
977
py
Python
web_config/urls.py
fonslucens/test_django
4e9a274f350536a7eb7dc00c43c9fa261bd6b5ba
[ "Apache-2.0" ]
null
null
null
web_config/urls.py
fonslucens/test_django
4e9a274f350536a7eb7dc00c43c9fa261bd6b5ba
[ "Apache-2.0" ]
null
null
null
web_config/urls.py
fonslucens/test_django
4e9a274f350536a7eb7dc00c43c9fa261bd6b5ba
[ "Apache-2.0" ]
null
null
null
"""web_config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
36.185185
77
0.702149
1560610c57fda18f34eb450acc74d6c1f80e43b4
1,229
py
Python
courses/migrations/0007_rename_unenrolled_status.py
mitodl/mitxonline
adf6084b1f4addd57473153ed6bd08ea09bc4685
[ "BSD-3-Clause" ]
null
null
null
courses/migrations/0007_rename_unenrolled_status.py
mitodl/mitxonline
adf6084b1f4addd57473153ed6bd08ea09bc4685
[ "BSD-3-Clause" ]
420
2021-07-13T14:58:52.000Z
2022-03-31T20:50:10.000Z
courses/migrations/0007_rename_unenrolled_status.py
mitodl/mitx-online
adf6084b1f4addd57473153ed6bd08ea09bc4685
[ "BSD-3-Clause" ]
1
2021-07-25T21:28:32.000Z
2021-07-25T21:28:32.000Z
# Generated by Django 3.1.12 on 2021-10-15 17:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("courses", "0006_enrollments_related"), ] operations = [ migrations.AlterField( model_name="courserunenrollment", na...
27.931818
51
0.44345
c2d20f3c247dee094f49c169d68520f80ceab5a8
2,155
py
Python
File for Lab 5/lab5ex1_3.py
lifeplay2019/ECOR1051-project
fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3
[ "MIT" ]
null
null
null
File for Lab 5/lab5ex1_3.py
lifeplay2019/ECOR1051-project
fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3
[ "MIT" ]
null
null
null
File for Lab 5/lab5ex1_3.py
lifeplay2019/ECOR1051-project
fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3
[ "MIT" ]
null
null
null
#Exercises 1 import math def area_of_disk(radius: float)-> float: """ Return the area of the disk of the radius, which get the result of the area along with the non-negative radius. The dimensions of the area_of_disk in the frame is radius. Preconditions: radius > 0 >>>area_of_dis...
25.352941
88
0.593039
a39875aadf39227bb2dc12026a3b99b8c944e5f4
3,605
py
Python
bentoml/_internal/runner/remote.py
nice03/BentoML
003bf54884c65785bf234aa23f3ff2025cd74121
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/runner/remote.py
nice03/BentoML
003bf54884c65785bf234aa23f3ff2025cd74121
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/runner/remote.py
nice03/BentoML
003bf54884c65785bf234aa23f3ff2025cd74121
[ "Apache-2.0" ]
null
null
null
import json import typing as t import asyncio from typing import TYPE_CHECKING from json.decoder import JSONDecodeError from simple_di import inject from simple_di import Provide from .runner import RunnerImpl from .container import Payload from ..runner.utils import Params from ..runner.utils import PAYLOAD_META_HEA...
33.37963
81
0.626352
807c6377836d39febe3bec01eb468792133bc9eb
1,138
py
Python
committeeoversightapp/migrations/0013_add_committeedetailpage.py
datamade/committee-oversight
a9181d60e5e9e9f122908bc2cbf8777fb2d4a1fc
[ "MIT" ]
null
null
null
committeeoversightapp/migrations/0013_add_committeedetailpage.py
datamade/committee-oversight
a9181d60e5e9e9f122908bc2cbf8777fb2d4a1fc
[ "MIT" ]
129
2018-10-05T14:29:41.000Z
2021-03-01T14:14:08.000Z
committeeoversightapp/migrations/0013_add_committeedetailpage.py
datamade/committee-oversight
a9181d60e5e9e9f122908bc2cbf8777fb2d4a1fc
[ "MIT" ]
null
null
null
# Generated by Django 2.1.12 on 2019-09-23 20:39 from django.db import migrations, models import django.db.models.deletion import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0041_group_collection_per...
36.709677
203
0.659051
278eee4ee0c293e6a124b4ad482af4d41e54869c
10,152
py
Python
15_game_of_life.py
krisrp/game-of-life
80d7216409bff8c477deda2610971b41cd16ab89
[ "Unlicense" ]
null
null
null
15_game_of_life.py
krisrp/game-of-life
80d7216409bff8c477deda2610971b41cd16ab89
[ "Unlicense" ]
null
null
null
15_game_of_life.py
krisrp/game-of-life
80d7216409bff8c477deda2610971b41cd16ab89
[ "Unlicense" ]
null
null
null
""" Tribute to John Conway (26 Dec 1937 - 11 Apr 2020). Game of Life is a simulation with the following rules: Start with a grid of cells (pixels) which are either alive (on) or dead (off). - Any live cell with less than two live neighbours dies (from underpopulation). - Any live cell with two or three li...
32.025237
127
0.532506
a4e0b1f3c94e02a69c9a16e2879c82e862969e86
9,197
py
Python
algos/Catch-Dips-the-fishing-algo-Live-Trade.py
ajayhk/quant
9ffd1de355bd6d0e7c971ec1733da74221358022
[ "Apache-2.0" ]
6
2018-01-10T11:23:19.000Z
2022-03-21T04:18:26.000Z
algos/Catch-Dips-the-fishing-algo-Live-Trade.py
ajayhk/quant
9ffd1de355bd6d0e7c971ec1733da74221358022
[ "Apache-2.0" ]
null
null
null
algos/Catch-Dips-the-fishing-algo-Live-Trade.py
ajayhk/quant
9ffd1de355bd6d0e7c971ec1733da74221358022
[ "Apache-2.0" ]
8
2016-01-03T13:48:30.000Z
2020-10-28T17:54:44.000Z
''' This algorithm buys and keeps stocks when they suddenlly dip below a certain threshold For example, buy only when the stock dips 20% below the moving average (20) Sell happens when it is 2X of what we bought it at Performance: Works pretty well, mostly being higher than the buy and hold strage...
51.668539
134
0.583125
e7ce41598b54a508a70082452f8b6cdb7fb10a8e
509
py
Python
query_strategies/margin_sampling.py
nannullna/deep-active-learning
c54a995640c63ba4679129c5a1fd5cec9a2858e6
[ "MIT" ]
465
2018-05-27T22:04:18.000Z
2022-03-31T05:55:11.000Z
query_strategies/margin_sampling.py
nannullna/deep-active-learning
c54a995640c63ba4679129c5a1fd5cec9a2858e6
[ "MIT" ]
8
2018-10-31T16:25:11.000Z
2022-03-29T13:08:01.000Z
query_strategies/margin_sampling.py
nannullna/deep-active-learning
c54a995640c63ba4679129c5a1fd5cec9a2858e6
[ "MIT" ]
139
2018-08-10T11:00:25.000Z
2022-03-31T14:45:48.000Z
import numpy as np from .strategy import Strategy class MarginSampling(Strategy): def __init__(self, dataset, net): super(MarginSampling, self).__init__(dataset, net) def query(self, n): unlabeled_idxs, unlabeled_data = self.dataset.get_unlabeled_data() probs = self.predict_prob(unlabe...
36.357143
74
0.699411
34266edbbf55119aaab806fb93db858f3dc64f1b
19,222
py
Python
iaso/tests/api/test_forms.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
null
null
null
iaso/tests/api/test_forms.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
null
null
null
iaso/tests/api/test_forms.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
null
null
null
import typing from django.test import tag from django.utils.timezone import now from iaso import models as m from iaso.models import Form from iaso.test import APITestCase class FormsAPITestCase(APITestCase): @classmethod def setUpTestData(cls): cls.now = now() star_wars = m.Account.objects...
41.248927
116
0.64525
a4150b2afd036787c51768ac6ac22f292feab2bd
19,734
py
Python
hypermapper/evolution.py
adelejjeh/hypermapper
02bd83b5b1d3feb9907cf1187864ded66ba2c539
[ "MIT" ]
null
null
null
hypermapper/evolution.py
adelejjeh/hypermapper
02bd83b5b1d3feb9907cf1187864ded66ba2c539
[ "MIT" ]
null
null
null
hypermapper/evolution.py
adelejjeh/hypermapper
02bd83b5b1d3feb9907cf1187864ded66ba2c539
[ "MIT" ]
null
null
null
############################################################################################################################### # This script implements a simplification of the evolutionary process proposed by Real et al.: https://arxiv.org/abs/1802.01548v7# #############################################################...
40.109756
271
0.672342
2fc7bce8d731d0adcad03409501e54dd169cf8b0
7,384
py
Python
lib/TWCManager/Vehicle/TeslaMateVehicle.py
abscroll/TWCManager
b4af3f90ff22bb96218b3a6fc95d287eee91f4bf
[ "Unlicense" ]
null
null
null
lib/TWCManager/Vehicle/TeslaMateVehicle.py
abscroll/TWCManager
b4af3f90ff22bb96218b3a6fc95d287eee91f4bf
[ "Unlicense" ]
null
null
null
lib/TWCManager/Vehicle/TeslaMateVehicle.py
abscroll/TWCManager
b4af3f90ff22bb96218b3a6fc95d287eee91f4bf
[ "Unlicense" ]
null
null
null
import logging import psycopg2 import paho.mqtt.client as mqtt import _thread import threading import time logger = logging.getLogger("\U0001F697 TeslaMate") class TeslaMateVehicle: __db_host = None __db_name = None __db_pass = None __db_user = None __client = None __config = None __conf...
35.671498
93
0.569745
7514a2160d615d50f7cbbe2bad49baf2ea3b4f2b
302
py
Python
src/make_lots_of_ints.py
ssanderson/plotcon-2016
f5bcd29e5fb12f9c16d85ccf30891277076ee4da
[ "MIT" ]
null
null
null
src/make_lots_of_ints.py
ssanderson/plotcon-2016
f5bcd29e5fb12f9c16d85ccf30891277076ee4da
[ "MIT" ]
null
null
null
src/make_lots_of_ints.py
ssanderson/plotcon-2016
f5bcd29e5fb12f9c16d85ccf30891277076ee4da
[ "MIT" ]
1
2018-07-14T16:47:15.000Z
2018-07-14T16:47:15.000Z
#!/usr/bin/env/python import sys from numpy.random import RandomState random = RandomState(1) def main(nlines, perline): random.seed(1) for line in range(nlines): print(*(+random.logistic(50, 3, perline).astype(int))) if __name__ == '__main__': main(*(map(int, sys.argv[1:])))
18.875
62
0.65894
6b87202e5dbc528d2e3b5b21af8ffd1d99c502c1
3,825
py
Python
plugins/master-apuntarse.py
segoitz-guibert/botBasicoGlitch
a32337f4b7a1a929744af7f03fafca3986a36862
[ "MIT" ]
null
null
null
plugins/master-apuntarse.py
segoitz-guibert/botBasicoGlitch
a32337f4b7a1a929744af7f03fafca3986a36862
[ "MIT" ]
null
null
null
plugins/master-apuntarse.py
segoitz-guibert/botBasicoGlitch
a32337f4b7a1a929744af7f03fafca3986a36862
[ "MIT" ]
1
2018-09-14T06:37:57.000Z
2018-09-14T06:37:57.000Z
from config import * yoNuncaKeyboard = types.InlineKeyboardMarkup() yoNuncaKeyboard.add(types.InlineKeyboardButton('Me apunto', callback_data='yo')) propuestaInlineKeyboard = types.InlineKeyboardMarkup() propuestaInlineKeyboard.add(types.InlineKeyboardButton('Me apunto', callback_data='inlineApuntado')) @bot.callba...
28.977273
139
0.671634
ff29bf10d3b422c1e8fdc83e03fc89e38aff8d20
6,239
py
Python
scripts/test_fewshot_imagenet.py
alisure-fork/BF3S
99cfb7ce4696f2585bb7c2502f234e60c55e8007
[ "Apache-2.0" ]
130
2019-10-28T11:18:17.000Z
2022-03-19T12:30:45.000Z
scripts/test_fewshot_imagenet.py
alisure-fork/BF3S
99cfb7ce4696f2585bb7c2502f234e60c55e8007
[ "Apache-2.0" ]
12
2019-11-27T11:30:07.000Z
2020-11-04T14:26:57.000Z
scripts/test_fewshot_imagenet.py
alisure-fork/BF3S
99cfb7ce4696f2585bb7c2502f234e60c55e8007
[ "Apache-2.0" ]
23
2019-12-19T15:16:18.000Z
2021-07-02T02:34:24.000Z
"""Tests a few-shot models on the Imagenet-based few-shot dataset[1,2]. Example of usage: # Test the CC+Rot model on the 1-shot setting. $ python scripts/test_fewshot_imagenet.py --config=ImageNet/ResNet10CosineClassifierRotSelfsupervision_eval --testset --num_train=1 --bias_novel=0.8 # ==> Top 5 Accuracies: [Nov...
41.046053
150
0.688251
7b3743ad558dbbcd079b5729cb79552b4e862761
13,998
py
Python
CLEAR.py
bafnalab/CLEAR
94f4c22fcb69e3c2710d3c488c3ed72cffdeda7b
[ "MIT" ]
1
2017-04-17T13:08:16.000Z
2017-04-17T13:08:16.000Z
CLEAR.py
bafnalab/CLEAR
94f4c22fcb69e3c2710d3c488c3ed72cffdeda7b
[ "MIT" ]
null
null
null
CLEAR.py
bafnalab/CLEAR
94f4c22fcb69e3c2710d3c488c3ed72cffdeda7b
[ "MIT" ]
null
null
null
''' Copyleft Oct 27, 2016 Arya Iranmehr, PhD Student, Bafna Lab, UC San Diego, Email: airanmehr@gmail.com ''' import numpy as np; np.set_printoptions(linewidth=200, precision=5, suppress=True) import pandas as pd; pd.options.display.max_rows = 20; pd.options.display.expand_frame_repr = False import pylab as plt import...
40.69186
144
0.61123
700d624d94472f8250dc3bf09cab53ecccb0deec
1,376
py
Python
userbot/plugins/alive.py
Subibhu/ZeBot
f78998ad1ea981abc8f195292dad206570695fb1
[ "Apache-2.0" ]
null
null
null
userbot/plugins/alive.py
Subibhu/ZeBot
f78998ad1ea981abc8f195292dad206570695fb1
[ "Apache-2.0" ]
null
null
null
userbot/plugins/alive.py
Subibhu/ZeBot
f78998ad1ea981abc8f195292dad206570695fb1
[ "Apache-2.0" ]
null
null
null
import asyncio import random from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from platform import uname from userbot import ALIVE_NAME from userbot.utils import admin_cmd DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "WTF Noob! Couldn't even set ALIVE_NAME into Heroku Con...
52.923077
142
0.525436
12d228fe54353b729f4689dce4937b2fa6a8664e
2,711
py
Python
pyocd/core/exceptions.py
jeromecoutant/pyOCD
304dfa804231dbe1ea9a9a2d5d7c44eaf9531de1
[ "Apache-2.0" ]
null
null
null
pyocd/core/exceptions.py
jeromecoutant/pyOCD
304dfa804231dbe1ea9a9a2d5d7c44eaf9531de1
[ "Apache-2.0" ]
null
null
null
pyocd/core/exceptions.py
jeromecoutant/pyOCD
304dfa804231dbe1ea9a9a2d5d7c44eaf9531de1
[ "Apache-2.0" ]
null
null
null
# pyOCD debugger # Copyright (c) 2018-2019 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # 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...
29.467391
98
0.673552
d4cd4b69598aeb88dc66661e9b882d17c8d83b0d
4,091
py
Python
Dashboard/user_timeseries_app.py
yerachoi/plink-flask-gentelella
9c5e23e66227fd021bf23da25f71ed77512f51f2
[ "MIT" ]
1
2020-11-13T06:04:40.000Z
2020-11-13T06:04:40.000Z
Dashboard/user_timeseries_app.py
yerachoi/plink-flask-gentelella
9c5e23e66227fd021bf23da25f71ed77512f51f2
[ "MIT" ]
null
null
null
Dashboard/user_timeseries_app.py
yerachoi/plink-flask-gentelella
9c5e23e66227fd021bf23da25f71ed77512f51f2
[ "MIT" ]
1
2020-11-01T11:22:02.000Z
2020-11-01T11:22:02.000Z
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from .Dash_fun import apply_layout_with_auth, load_object, save_object import plotly.express as px import pandas as pd from datetime import datetime from jupyter_dash import JupyterDash from ....
35.885965
145
0.69934
ad51079568989dc76cd6b46e5f67b59e3aa4f598
657
py
Python
read_file.py
tkoyama010/posters
d23fd60d1dae24bc30d186726b273a1486b78e9b
[ "CC0-1.0" ]
null
null
null
read_file.py
tkoyama010/posters
d23fd60d1dae24bc30d186726b273a1486b78e9b
[ "CC0-1.0" ]
null
null
null
read_file.py
tkoyama010/posters
d23fd60d1dae24bc30d186726b273a1486b78e9b
[ "CC0-1.0" ]
null
null
null
import pyvista as pv pv.set_plot_theme("document") bunny = pv.read("bunny.ply") cow = pv.read("cow.obj") gears = pv.read("gears.stl") human = pv.read("Human.vtp") p = pv.Plotter(shape=(2, 2), window_size=[1000, 500]) p.subplot(0, 0) p.add_text("Bunny") p.add_mesh(bunny, color="tan") p.subplot(0, 1) p.add_text("Cow")...
21.9
53
0.692542
abe8ed21d158305e9435212393846ba5ede91e49
4,409
py
Python
app/main/views.py
abdirahman-ahmednoor/pitcher
83c9f3caf033e422aafb781afbff186dbf3980f1
[ "MIT" ]
null
null
null
app/main/views.py
abdirahman-ahmednoor/pitcher
83c9f3caf033e422aafb781afbff186dbf3980f1
[ "MIT" ]
null
null
null
app/main/views.py
abdirahman-ahmednoor/pitcher
83c9f3caf033e422aafb781afbff186dbf3980f1
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, abort, request from flask_login import login_required, current_user from . import main from .forms import UpdateProfile, PitchForm, CommentForm from .. import db, photos from ..models import User, Pitch, Comment, Upvote, Downvote @main.route('/') def index(): ...
38.675439
187
0.66523
a10da9e8a58d913eea335fea9ac945c52546babd
8,988
py
Python
chiptunesak/ml64.py
c64cryptoboy/ChiptuneSAK
8759135b5c9c26dc9da155b006c575243ba5304a
[ "MIT" ]
9
2020-08-16T05:06:55.000Z
2021-11-05T06:18:54.000Z
chiptunesak/ml64.py
c64cryptoboy/ChiptuneSAK
8759135b5c9c26dc9da155b006c575243ba5304a
[ "MIT" ]
null
null
null
chiptunesak/ml64.py
c64cryptoboy/ChiptuneSAK
8759135b5c9c26dc9da155b006c575243ba5304a
[ "MIT" ]
null
null
null
from chiptunesak.base import * from chiptunesak import chirp, mchirp from chiptunesak import constants ''' This file contains functions required to export MidiSimple songs to ML64 format. This is the format created by Stirring Dragon Games for music content contributed by those who backed the Unknown Realm kickstarte...
38.741379
114
0.618825
26bbb9973bab388ab35e0373c1959f8efbf3e099
1,791
py
Python
quiz1/test_tuple_utils.py
croethel/Data2-2Q1
efb86ebe6da817383cebe34e19e826ec7dda5879
[ "MIT" ]
null
null
null
quiz1/test_tuple_utils.py
croethel/Data2-2Q1
efb86ebe6da817383cebe34e19e826ec7dda5879
[ "MIT" ]
null
null
null
quiz1/test_tuple_utils.py
croethel/Data2-2Q1
efb86ebe6da817383cebe34e19e826ec7dda5879
[ "MIT" ]
6
2021-11-05T19:52:20.000Z
2021-11-07T18:17:27.000Z
import unittest import unittest.mock from io import StringIO from quiz1.tuple_utils import count_things, produce_tuple, tic_tac_toe_finish class TupleUtilsTest(unittest.TestCase): def test_tic_tac_toe_finish(self): board_in = ( ['O', 'X', ''], ['X', 'X', ''], ['', '', ...
30.355932
90
0.497487
9983a9cee0352e75a2c0098a6d46bfa6a742ac3b
5,070
py
Python
paasta_tools/monkrelaycluster_tools.py
akshaysharma096/paasta
5e504597ea5a2af952a12785808e523b53b7c01d
[ "Apache-2.0" ]
1,711
2015-11-10T18:04:56.000Z
2022-03-23T08:53:16.000Z
paasta_tools/monkrelaycluster_tools.py
akshaysharma096/paasta
5e504597ea5a2af952a12785808e523b53b7c01d
[ "Apache-2.0" ]
1,689
2015-11-10T17:59:04.000Z
2022-03-31T20:46:46.000Z
paasta_tools/monkrelaycluster_tools.py
akshaysharma096/paasta
5e504597ea5a2af952a12785808e523b53b7c01d
[ "Apache-2.0" ]
267
2015-11-10T19:17:16.000Z
2022-02-08T20:59:52.000Z
# Copyright 2015-2019 Yelp Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.208333
104
0.696647
bbfeca0ac5f4dd647a2135b90b7d5cc8dad04cbc
3,601
py
Python
raiden/utils/runnable.py
JamieSlome/raiden
ccd11e59c1259fdd661b31df706e511dd6e6bc9f
[ "MIT" ]
null
null
null
raiden/utils/runnable.py
JamieSlome/raiden
ccd11e59c1259fdd661b31df706e511dd6e6bc9f
[ "MIT" ]
60
2021-06-14T08:32:39.000Z
2022-03-31T23:45:35.000Z
raiden/utils/runnable.py
andrevmatos/raiden
42f13529a2ecd2e2d23e676e8c5978245e2fabed
[ "MIT" ]
null
null
null
from typing import Any, Sequence import structlog from gevent import Greenlet, GreenletExit from raiden.utils.typing import Callable, List log = structlog.get_logger(__name__) class Runnable: """Greenlet-like class, __run() inside one, but can be stopped and restarted Allows subtasks to crash self, and bu...
33.654206
92
0.62927
f2e7969fcb4d52a8958153398245bf688e68ba86
1,600
py
Python
app/airtable/base_school_db/field_categories.py
WildflowerSchools/wf-airtable-api
963021e5108462d33efa222fedb00890e1788ad6
[ "MIT" ]
null
null
null
app/airtable/base_school_db/field_categories.py
WildflowerSchools/wf-airtable-api
963021e5108462d33efa222fedb00890e1788ad6
[ "MIT" ]
null
null
null
app/airtable/base_school_db/field_categories.py
WildflowerSchools/wf-airtable-api
963021e5108462d33efa222fedb00890e1788ad6
[ "MIT" ]
null
null
null
from enum import Enum from typing import Optional from pydantic import BaseModel, Field from app.airtable.response import AirtableResponse, ListAirtableResponse class FieldCategoryType(str, Enum): race_ethnicity = "Race & Ethnicity" gender = "Gender" income_background = "Income Background As Child" ...
38.095238
110
0.775
a11f4b1e564b538c12294a4d491748dd76dc5e12
215
py
Python
Repeticao-while2/ex066.py
Apache0001/Curso-de-Python
5f3870640fcdd56a26dab39b097a0b06a94fc2ee
[ "MIT" ]
null
null
null
Repeticao-while2/ex066.py
Apache0001/Curso-de-Python
5f3870640fcdd56a26dab39b097a0b06a94fc2ee
[ "MIT" ]
1
2021-02-19T19:57:09.000Z
2021-02-19T19:57:09.000Z
Repeticao-while2/ex066.py
Apache0001/Curso-de-Python
5f3870640fcdd56a26dab39b097a0b06a94fc2ee
[ "MIT" ]
null
null
null
n = 0 totn = 0 soma = 0 while n != 999: soma = soma + n n = int(input('Digite um número: ')) if n == 999: break totn = totn + 1 print(f'total de numeros: {totn}') print(f'soma: {soma}')
16.538462
40
0.516279
55a319d202e322b344f96079748821b7162ff6d8
546
py
Python
getpaid/backends/dummy/apps.py
wuuuduu/django-getpaid
d864de53bc947e2d1ab4f2d3879a803cab1216d3
[ "MIT" ]
6
2020-05-26T08:49:10.000Z
2022-01-03T17:44:19.000Z
getpaid/backends/dummy/apps.py
wuuuduu/django-getpaid
d864de53bc947e2d1ab4f2d3879a803cab1216d3
[ "MIT" ]
null
null
null
getpaid/backends/dummy/apps.py
wuuuduu/django-getpaid
d864de53bc947e2d1ab4f2d3879a803cab1216d3
[ "MIT" ]
1
2021-08-23T06:59:05.000Z
2021-08-23T06:59:05.000Z
from django.apps import AppConfig from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext_lazy as _ class DummyPluginAppConfig(AppConfig): name = settings.GETPAID_DUMMY_SLUG label = "getpaid_dummy" verbose_name = _("Dummy paywa...
28.736842
80
0.745421
9a512f3d295ccc29db05d3b1202b3246f63e8dc8
1,731
py
Python
samples/culumn_graph.py
Advik-B/ursina
405c5f4c63ff66c7ab065ad283a0b700e89b0ae7
[ "MIT" ]
1
2022-01-03T12:55:47.000Z
2022-01-03T12:55:47.000Z
samples/culumn_graph.py
Advik-B/ursina
405c5f4c63ff66c7ab065ad283a0b700e89b0ae7
[ "MIT" ]
1
2022-01-03T13:00:11.000Z
2022-01-03T13:00:11.000Z
samples/culumn_graph.py
Advik-B/ursina
405c5f4c63ff66c7ab065ad283a0b700e89b0ae7
[ "MIT" ]
null
null
null
from ursina import * import random app = Ursina() color.text_color = color.dark_text names = ['Amy', 'Ruby', 'Tara', 'Ann', 'Samantha', 'Gary', 'Lee', 'Frank', 'Joe', 'Thomas'] random.seed(0) data = {name: random.randint(0, 100) for name in names} sliders = [] for i, (name, value) in enumerate(data.items()): ...
26.630769
131
0.640092
6807d13c3c4abd99c75fb1e489f02bdd57d17e21
2,835
py
Python
ai_integration/internal_methods.py
LaudateCorpus1/ai_integration
9b2c0f11fc926408e90779ce01e3f420bd8318c0
[ "Apache-2.0" ]
9
2019-04-08T14:33:45.000Z
2021-10-08T17:34:28.000Z
ai_integration/internal_methods.py
LaudateCorpus1/ai_integration
9b2c0f11fc926408e90779ce01e3f420bd8318c0
[ "Apache-2.0" ]
null
null
null
ai_integration/internal_methods.py
LaudateCorpus1/ai_integration
9b2c0f11fc926408e90779ce01e3f420bd8318c0
[ "Apache-2.0" ]
4
2019-04-08T14:33:50.000Z
2022-02-10T22:35:19.000Z
# coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import inspect import os import ai_integration.modes from ai_integration.modes import * DEBUG = False def get_args_supported_by_function(x): if hasattr(inspect, 'getfullargspec'): ...
31.5
163
0.676896
49966e5cddfb99415724c70e02c61c576cc21dbc
1,116
py
Python
matchms/filtering/require_minimum_number_of_peaks.py
efrain2010/matchms
69cedeed5597966619a97c4e4211deaf8610d727
[ "Apache-2.0" ]
null
null
null
matchms/filtering/require_minimum_number_of_peaks.py
efrain2010/matchms
69cedeed5597966619a97c4e4211deaf8610d727
[ "Apache-2.0" ]
null
null
null
matchms/filtering/require_minimum_number_of_peaks.py
efrain2010/matchms
69cedeed5597966619a97c4e4211deaf8610d727
[ "Apache-2.0" ]
null
null
null
from math import ceil from typing import Optional from ..typing import SpectrumType def require_minimum_number_of_peaks(spectrum_in: SpectrumType, n_required: int = 10, ratio_required: Optional[float] = None) -> SpectrumType: """Spectrum will...
28.615385
92
0.644265
8cf18573bce5875f93989142d8f9ce88c10d9aeb
528
py
Python
websauna/tests/test_secrets.py
maikroeder/websauna
fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa
[ "CNRI-Python" ]
null
null
null
websauna/tests/test_secrets.py
maikroeder/websauna
fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa
[ "CNRI-Python" ]
null
null
null
websauna/tests/test_secrets.py
maikroeder/websauna
fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa
[ "CNRI-Python" ]
1
2021-04-15T17:35:57.000Z
2021-04-15T17:35:57.000Z
"""Test secrets reader.""" import os from websauna.utils import secrets def test_read_local_secrets(): """Read file referred by a relative path.""" data = secrets.read_ini_secrets("websauna/conf/test-secrets.ini", strict=False) assert data.get("authomatic.secret") == "xxx" def test_file_secrets(): ...
27.789474
112
0.702652
24d9b6459c19d30fc7ee25f05d7c708a2268bc9c
1,761
py
Python
IQA_BIECON_release/data_load/TID2013.py
ma3252788/IQA_BIECON_release
9b9452681460cbd3b670aff62f18c6661a724997
[ "MIT" ]
96
2017-07-25T07:54:59.000Z
2022-01-09T03:33:07.000Z
IQA_BIECON_release/data_load/TID2013.py
ma3252788/IQA_BIECON_release
9b9452681460cbd3b670aff62f18c6661a724997
[ "MIT" ]
4
2018-04-25T09:46:05.000Z
2019-11-08T12:44:39.000Z
IQA_BIECON_release/data_load/TID2013.py
jongyookim/IQA_BIECON_release
9b9452681460cbd3b670aff62f18c6661a724997
[ "MIT" ]
35
2017-07-25T02:51:22.000Z
2022-02-05T03:05:40.000Z
from __future__ import absolute_import, division, print_function import os import numpy as np # Define DB information BASE_PATH = 'D:/DB/IQA/TID2013' LIST_FILE_NAME = 'TID2013.txt' ALL_SCENES = list(range(24)) # ALL_SCENES = list(range(25)) ALL_DIST_TYPES = list(range(24)) def make_image_list(scenes, dist_types=None...
33.226415
68
0.614424
7f4e9e442e44bfbe0bef6f354dc740e2658b480e
5,061
py
Python
scripts/etl/law/corpus/us_courts/2_extract_text.py
MohamedAteya/Transformers-Domain-Adaptation
1c66addeb63fdc7e3c1ab50441a87b1c2777553a
[ "MIT" ]
45
2021-03-07T08:08:38.000Z
2022-03-12T12:33:36.000Z
scripts/etl/law/corpus/us_courts/2_extract_text.py
MohamedAteya/Transformers-Domain-Adaptation
1c66addeb63fdc7e3c1ab50441a87b1c2777553a
[ "MIT" ]
5
2021-03-03T17:43:32.000Z
2022-01-20T20:13:51.000Z
scripts/etl/law/corpus/us_courts/2_extract_text.py
MohamedAteya/Transformers-Domain-Adaptation
1c66addeb63fdc7e3c1ab50441a87b1c2777553a
[ "MIT" ]
7
2021-04-12T10:20:49.000Z
2022-03-02T01:44:21.000Z
"""Extract text data from US Court Jurisdictions JSON files.""" import json import shutil import psutil import logging import argparse from pathlib import Path from functools import partial from bs4 import BeautifulSoup from pyspark.sql import SparkSession import pyspark.sql.functions as f import pyspark.sql.types as ...
37.488889
79
0.635843
e0d86d123b2f2c22fbcbb29182aaf6111fd72542
313
py
Python
python/valid_palindrome.py
c1m50c/leet-code-solutions
620ab877caf84713575d6f1dad2afeeb9c49c316
[ "MIT" ]
null
null
null
python/valid_palindrome.py
c1m50c/leet-code-solutions
620ab877caf84713575d6f1dad2afeeb9c49c316
[ "MIT" ]
null
null
null
python/valid_palindrome.py
c1m50c/leet-code-solutions
620ab877caf84713575d6f1dad2afeeb9c49c316
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/valid-palindrome/ # from typing import * import re class Solution: @staticmethod def isPalindrome(s: str) -> bool: # Strip String of non-alphanumerics and covert it to lowercase s = "".join(re.split('[^a-zA-Z0-9]+', s)).lower() return s == s[::-1]
28.454545
70
0.623003
33e7481900ca595c6c12978f28941bf57ea8e2b8
2,387
py
Python
tests/test_module_attributes.py
rodrigozhou/python-zstandard
4495cbe2faf0cd20fcd8735f4f519d4eb4c4f7a1
[ "BSD-3-Clause" ]
null
null
null
tests/test_module_attributes.py
rodrigozhou/python-zstandard
4495cbe2faf0cd20fcd8735f4f519d4eb4c4f7a1
[ "BSD-3-Clause" ]
null
null
null
tests/test_module_attributes.py
rodrigozhou/python-zstandard
4495cbe2faf0cd20fcd8735f4f519d4eb4c4f7a1
[ "BSD-3-Clause" ]
3
2021-09-21T10:37:03.000Z
2022-01-31T13:06:51.000Z
import unittest import zstandard as zstd class TestModuleAttributes(unittest.TestCase): def test_version(self): self.assertEqual(zstd.ZSTD_VERSION, (1, 5, 0)) self.assertEqual(zstd.__version__, "0.16.0.dev0") def test_features(self): self.assertIsInstance(zstd.backend_features, set)...
29.109756
64
0.534562
c8b06c30167693bf6a24bc2c88c499c2ee9e5ec3
6,733
py
Python
key5/__init__.py
zgyr/key5
1022d15ac7477a6bcb4d67f510dc6a198cc2cd51
[ "Unlicense" ]
null
null
null
key5/__init__.py
zgyr/key5
1022d15ac7477a6bcb4d67f510dc6a198cc2cd51
[ "Unlicense" ]
null
null
null
key5/__init__.py
zgyr/key5
1022d15ac7477a6bcb4d67f510dc6a198cc2cd51
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- ''' Input method concept for devices with 5 buttons. ## Usage import key5 key5.ternary('Hello, world!') # Use left and right arrow keys for navigation, down arrow for delete previous character, up arrow to enter character input mode. or key5.roll('Hello, world!') # And just select a chara...
34.528205
80
0.459973
7af939d53ffce9dafa8e4143e0851144b6547c8a
386
py
Python
mathematics/algebra/sherlock-and-square.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
mathematics/algebra/sherlock-and-square.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
mathematics/algebra/sherlock-and-square.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Mathematics > Algebra > Sherlock and Square # Help Sherlock in finding the total side lengths of squares. # # https://www.hackerrank.com/challenges/sherlock-and-square/problem # https://www.hackerrank.com/contests/w11/challenges/sherlock-and-square # challenge id: 4429 # MOD = 1000000007 for _ in range(int(input())...
27.571429
72
0.704663
a86ee9b397ea20ee3b84fd418d782b4e93eab0b3
948
py
Python
tests/test_restful.py
odiroot/mofanhu
db4167217bc72435ea0a2ad7ea1de78c7d4fe28e
[ "MIT" ]
4
2020-01-18T20:37:13.000Z
2022-01-05T16:41:22.000Z
tests/test_restful.py
odiroot/mofanhu
db4167217bc72435ea0a2ad7ea1de78c7d4fe28e
[ "MIT" ]
55
2020-01-20T05:03:17.000Z
2022-03-31T04:29:19.000Z
tests/test_restful.py
odiroot/mofanhu
db4167217bc72435ea0a2ad7ea1de78c7d4fe28e
[ "MIT" ]
null
null
null
from flask.helpers import url_for from project.vanilla.models import Example def test_index(client): response = client.get(url_for("restful.index")) assert response.status_code == 200 assert response.is_json assert response.json == {"message": "Hello world"} def test_get_example_list(db_session, cl...
27.085714
75
0.671941
ea657253575e1c6746151160b35b219b7ba9aa44
3,633
py
Python
pypackager/extractor.py
fcurella/python-packager
44d29c784f77195aefc35f54a653d52df779dbb0
[ "MIT" ]
25
2015-03-16T20:41:57.000Z
2020-02-13T21:25:33.000Z
pypackager/extractor.py
fcurella/python-packager
44d29c784f77195aefc35f54a653d52df779dbb0
[ "MIT" ]
null
null
null
pypackager/extractor.py
fcurella/python-packager
44d29c784f77195aefc35f54a653d52df779dbb0
[ "MIT" ]
4
2015-02-15T09:09:35.000Z
2018-10-03T05:41:14.000Z
from fnmatch import fnmatch import os import shutil from tarfile import TarFile from zipfile import ZipFile from .base import BasePackager from .downloader import Downloader # Standard Library is not very standard. class ArchiveFileWrapper(object): blacklist = ('.DS_Store', "*.pyc", "__MACOSX/*") def __init...
32.150442
104
0.624828
6890bb47ed8c3ce7232908971f5ac4f4989bcae2
2,984
py
Python
make_env/__init__.py
smac89/make.env
88ce21f42d1844cb2a5a6fcc70d72ca98e9a88a9
[ "MIT" ]
null
null
null
make_env/__init__.py
smac89/make.env
88ce21f42d1844cb2a5a6fcc70d72ca98e9a88a9
[ "MIT" ]
4
2022-02-24T16:46:21.000Z
2022-03-01T04:08:57.000Z
make_env/__init__.py
smac89/make.env
88ce21f42d1844cb2a5a6fcc70d72ca98e9a88a9
[ "MIT" ]
null
null
null
import os import sys from typing import Optional, List from dotenv import find_dotenv, dotenv_values def normalize_make_env(envs=os.environ) -> Optional[str]: """normalize the environment variables for make `Make` still attempts to expand environment variables in the Makefile, so we need to redeclare th...
31.410526
100
0.594169
f6c7e570baf08a57281b06b72b7c060829c4e737
7,961
py
Python
refinery/bnpy/bnpy-dev/tests/learnalg/TestBirthMove.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
103
2015-01-13T00:48:14.000Z
2021-11-08T10:53:22.000Z
refinery/bnpy/bnpy-dev/tests/learnalg/TestBirthMove.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
7
2015-02-21T04:03:40.000Z
2021-08-23T20:24:54.000Z
refinery/bnpy/bnpy-dev/tests/learnalg/TestBirthMove.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
27
2015-01-23T00:54:31.000Z
2020-12-30T14:30:50.000Z
''' Unit tests for BirthMove.py Verifies that births produce valid models with expected new components. Coverage --------- * learn_fresh_model * reproducible (random seed) * produces viable model and SS (consistent size, etc.) * * run_birth_move * finds correct components on simple toy dataset TODO ---...
37.027907
110
0.6307
299a6753beb70862b5ad256570a896ef87313862
401
py
Python
revolt/__init__.py
MutedByte/revolt.py
be2af590af458e926dd6364f6fc4a16008840e47
[ "MIT" ]
null
null
null
revolt/__init__.py
MutedByte/revolt.py
be2af590af458e926dd6364f6fc4a16008840e47
[ "MIT" ]
null
null
null
revolt/__init__.py
MutedByte/revolt.py
be2af590af458e926dd6364f6fc4a16008840e47
[ "MIT" ]
null
null
null
from . import utils from .asset import * from .category import * from .channel import * from .client import * from .embed import * from .enums import * from .errors import * from .file import * from .flags import * from .member import * from .message import * from .messageable import * from .permissions import * from ....
20.05
26
0.720698
562083fe807b50604b176f3f7c9babd6c63689ab
1,463
py
Python
array/max_pos_array.py
simran2020/py-coding
29cf27667b133185773e78b81f7ddde3b5689386
[ "MIT" ]
null
null
null
array/max_pos_array.py
simran2020/py-coding
29cf27667b133185773e78b81f7ddde3b5689386
[ "MIT" ]
1
2020-09-30T19:49:35.000Z
2020-09-30T19:49:35.000Z
array/max_pos_array.py
simran2020/py-coding
29cf27667b133185773e78b81f7ddde3b5689386
[ "MIT" ]
1
2020-09-30T18:51:09.000Z
2020-09-30T18:51:09.000Z
''' Given an array of integers, A of length N, find out the maximum sum sub-array of non negative numbers from A. The sub-array should be contiguous i.e., a sub-array created by choosing the second and fourth element and skipping the third element is invalid. Maximum sub-array is defined in terms of the sum of the elem...
21.202899
145
0.62201
863ccead4e965642bafa7b0842bccb1eca87f4fa
2,769
py
Python
bindings/python/ensmallen/datasets/networkrepository/sw1000040d1trial3.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/networkrepository/sw1000040d1trial3.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/networkrepository/sw1000040d1trial3.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph SW-10000-4-0d1-trial3. The graph is automatically retrieved from the NetworkRepository repository. References --------------------- Please cite the following if you use the data: ```bib @inproceedings{nr, title = {The Network Data Repository ...
29.147368
94
0.657999
50874a2a266514e39541d775857fadf30fe70d4e
1,381
py
Python
urban_env/envs/multitask_env.py
pinakigupta/BehaviorRL
ab67d155197c46f3e8551af9763e490b781e8eeb
[ "MIT" ]
6
2020-03-09T01:06:37.000Z
2020-09-16T04:51:24.000Z
urban_env/envs/multitask_env.py
pinakigupta/BehaviorRL
ab67d155197c46f3e8551af9763e490b781e8eeb
[ "MIT" ]
null
null
null
urban_env/envs/multitask_env.py
pinakigupta/BehaviorRL
ab67d155197c46f3e8551af9763e490b781e8eeb
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import import numpy as np from gym import logger import gym import numpy as np from urban_env import utils from urban_env.envs.abstract import AbstractEnv from urban_env.envs.two_way_env import TwoWayEnv from urban_env.envs.graphics import EnvViewer import ra...
30.688889
64
0.698045
31fa2149d1c30ae3003e584f7e5468eb1c3d3288
64,927
py
Python
test_autoarray/mask/test_mask_2d.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/mask/test_mask_2d.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/mask/test_mask_2d.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
import os from os import path import numpy as np import pytest import shutil import autoarray as aa from autoarray import exc test_data_dir = path.join( "{}".format(path.dirname(path.realpath(__file__))), "files", "mask" ) class TestMask: def test__manual(self): mask = aa.Mask2D.ma...
35.038856
109
0.498082
d437f15e92588a0cd53df6a7d339aaa64c65106d
3,448
py
Python
sphereface_rfiw_baseline/data_loader.py
duynht/FIW_KRT
0869a0e2ca7335548e0a066b651011158315b14b
[ "MIT" ]
null
null
null
sphereface_rfiw_baseline/data_loader.py
duynht/FIW_KRT
0869a0e2ca7335548e0a066b651011158315b14b
[ "MIT" ]
null
null
null
sphereface_rfiw_baseline/data_loader.py
duynht/FIW_KRT
0869a0e2ca7335548e0a066b651011158315b14b
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset, DataLoader from torchvision import transforms as T from PIL import Image import os import csv class FIW_DBBase(Dataset): def __init__(self, root_dir, labels_path, n_classes=300, transform=None): self.root_dir = root_dir self.labels_path = labels_path s...
33.153846
116
0.570186
efe504829a2616fcc608a7eb4c1d37cdd1da7600
1,166
py
Python
tests/test_slack_notify.py
blurrcat/debot
21f78e8a29e607ccb860fa8d12a0a36afc87bdea
[ "MIT" ]
null
null
null
tests/test_slack_notify.py
blurrcat/debot
21f78e8a29e607ccb860fa8d12a0a36afc87bdea
[ "MIT" ]
null
null
null
tests/test_slack_notify.py
blurrcat/debot
21f78e8a29e607ccb860fa8d12a0a36afc87bdea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from gevent import sleep import pytest from mock import Mock from debot.slack_notify import Notifier @pytest.fixture def notifier(request, app): app.config['SLACK_INCOMING_WEBHOOK'] = 'localhost' instance = Notifier() instance._send = Mock() return instanc...
24.808511
54
0.692967
1440dae43d29b34effa4c1f6ead40c7329450bbb
2,888
py
Python
breathe/finder/factory.py
2bndy5/breathe
d3022c1017ff44575b6cec7f017b68719d3e4480
[ "BSD-3-Clause" ]
null
null
null
breathe/finder/factory.py
2bndy5/breathe
d3022c1017ff44575b6cec7f017b68719d3e4480
[ "BSD-3-Clause" ]
null
null
null
breathe/finder/factory.py
2bndy5/breathe
d3022c1017ff44575b6cec7f017b68719d3e4480
[ "BSD-3-Clause" ]
null
null
null
from breathe.finder import ItemFinder from breathe.finder import index as indexfinder from breathe.finder import compound as compoundfinder from breathe.parser import DoxygenParserFactory from breathe.project import ProjectInfo from breathe.renderer.filter import Filter from sphinx.application import Sphinx from typi...
39.027027
100
0.734418
b23b96632ba6db627e71446251ee70ee0b7ea4b5
57
py
Python
libvirt_vmcfg/common/util/__init__.py
Elizafox/libvirt_vmcfg
6985fafd78cd9f57ce13f3c850cc81ff589e1c4a
[ "CC0-1.0" ]
3
2021-02-21T18:49:12.000Z
2021-12-03T12:11:20.000Z
libvirt_vmcfg/common/util/__init__.py
Elizafox/libvirt_vmcfg
6985fafd78cd9f57ce13f3c850cc81ff589e1c4a
[ "CC0-1.0" ]
null
null
null
libvirt_vmcfg/common/util/__init__.py
Elizafox/libvirt_vmcfg
6985fafd78cd9f57ce13f3c850cc81ff589e1c4a
[ "CC0-1.0" ]
null
null
null
from libvirt_vmcfg.common.util.string import bool_to_str
28.5
56
0.877193
e85190f69fb540943f078593e998ac011bc2bb8a
33,785
py
Python
examples/eidelyur/threeApproachesComparison_v2.py
radiasoft/rsdynfric
0d905e1ef85063ec6fe93df64751f7b8c19da160
[ "Apache-2.0" ]
null
null
null
examples/eidelyur/threeApproachesComparison_v2.py
radiasoft/rsdynfric
0d905e1ef85063ec6fe93df64751f7b8c19da160
[ "Apache-2.0" ]
1
2022-03-23T22:53:10.000Z
2022-03-28T19:02:40.000Z
examples/eidelyur/threeApproachesComparison_v2.py
radiasoft/rsdynfric
0d905e1ef85063ec6fe93df64751f7b8c19da160
[ "Apache-2.0" ]
3
2017-01-06T04:24:29.000Z
2020-02-16T01:17:20.000Z
# from __future__ import division #------------------------------------- # # Started at 07/25/2017 (YuE) # #------------------------------------- import os, sys import numpy as np import math import matplotlib.pyplot as plt import matplotlib.cm as cm from matplotlib.colors import LogNorm import matplotlib as ...
40.80314
130
0.541483
b6b136195b68772672867ffa0a67eb99df8d48b1
2,503
py
Python
tools/update_all.py
smartfish/iTerm2-Color-Schemes
f0a40ddf631185c66a6f6cbfeb1b9724086fa9c3
[ "MIT" ]
2
2021-05-25T18:03:14.000Z
2021-05-29T07:34:09.000Z
tools/update_all.py
studioThirteen/Terminal-Color-Schemes
c9e4b3c7cef87b4b8bc8c10a2ebf7a7870e7902b
[ "MIT" ]
null
null
null
tools/update_all.py
studioThirteen/Terminal-Color-Schemes
c9e4b3c7cef87b4b8bc8c10a2ebf7a7870e7902b
[ "MIT" ]
1
2022-02-05T10:17:35.000Z
2022-02-05T10:17:35.000Z
#!/usr/bin/env python3 import subprocess from glob import glob from os.path import basename, splitext, join import xrdb2konsole import xrdb2terminator import xrdb2Xresources import xrdb2putty import xrdb2xfce_terminal import xrdb2Remmina import xrdb2Termite import xrdb2freebsd_vt import xrdb2kitty import xrdb2moba i...
35.253521
73
0.595685
701bf8c0dd33b9c13064eeb86850989f4c233031
27,620
py
Python
numpy_demo/lib/twodim_base.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/lib/twodim_base.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/lib/twodim_base.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
""" Basic functions for manipulating 2d arrays """ import functools from numpy_demo.core.numeric import ( asanyarray, arange, zeros, greater_equal, multiply, ones, asarray, where, int8, int16, int32, int64, empty, promote_types, diagonal, nonzero ) from numpy_demo.core.overrides import set_module from...
27.185039
83
0.559305
43a66e006cb037b9ab51283b50b0bc6f9939cdf3
1,666
py
Python
test.py
larryTheGeek/TDD
8146c038d646cb834e1979dd01b0f59f82cba790
[ "MIT" ]
null
null
null
test.py
larryTheGeek/TDD
8146c038d646cb834e1979dd01b0f59f82cba790
[ "MIT" ]
null
null
null
test.py
larryTheGeek/TDD
8146c038d646cb834e1979dd01b0f59f82cba790
[ "MIT" ]
null
null
null
import unittest from app import Phonebook class TestPhonebook(unittest.TestCase): def setUp(self): self.contacts = Phonebook() #test for the add class method def test_add_contacts(self): value = self.contacts.add_contacts('larry',123, 'r@gmail.com') results= value["name"] in ...
28.724138
109
0.615846
f9825d4df627e77c0ab23de004cdbb409787e06c
41,794
py
Python
refnx/reflect/_app/treeview_gui_model.py
brotwasme/refnx2019
8b62f7668d196c0ec443b47ea669573417a682e6
[ "BSD-3-Clause" ]
null
null
null
refnx/reflect/_app/treeview_gui_model.py
brotwasme/refnx2019
8b62f7668d196c0ec443b47ea669573417a682e6
[ "BSD-3-Clause" ]
null
null
null
refnx/reflect/_app/treeview_gui_model.py
brotwasme/refnx2019
8b62f7668d196c0ec443b47ea669573417a682e6
[ "BSD-3-Clause" ]
null
null
null
from copy import deepcopy import os.path import pickle from operator import itemgetter import numpy as np from PyQt5 import QtCore, QtGui, QtWidgets, uic from refnx._lib import flatten, unique from refnx.analysis import Parameter, Parameters, possibly_create_parameter from refnx.dataset import ReflectDataset from ref...
33.4352
79
0.587572
a96ead2a05f101ddd23a7c3c18ec40e812aef994
1,661
py
Python
src/morphforgecontrib/data_library/stdmodels.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/data_library/stdmodels.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/data_library/stdmodels.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
40.512195
72
0.695364
4f3c90ac1caf6fe42286b10738cf075bbc013499
8,485
py
Python
apitest/templates/apiauto_testcase3.py
ericsz0/autotest
6010b58a9f8d19644e2b185f24639e0caf81c538
[ "MIT" ]
null
null
null
apitest/templates/apiauto_testcase3.py
ericsz0/autotest
6010b58a9f8d19644e2b185f24639e0caf81c538
[ "MIT" ]
null
null
null
apitest/templates/apiauto_testcase3.py
ericsz0/autotest
6010b58a9f8d19644e2b185f24639e0caf81c538
[ "MIT" ]
null
null
null
#coding:utf-8 import requests,time,sys,re import urllib,zlib import pymysql from trace import CoverageResults import json from idlelib.rpc import response_queue from time import sleep HOSTNAME = '127.0.0.1' def readSQLcase(): sql="SELECT id,`apiname`,apiurl,apimethod,apiparamvalue,apiresult,`apistatus` from apit...
37.879464
146
0.569711
c5c58bf9dfa36fb469d83e1abc4520e3159edaa1
192
py
Python
Debug/__init__.py
thomasf/LiveRemoteScripts
866330653e1561a140e076c9a7ae64dd486e5692
[ "MIT" ]
25
2015-02-02T21:41:51.000Z
2022-02-19T13:08:53.000Z
Debug/__init__.py
thomasf/LiveRemoteScripts
866330653e1561a140e076c9a7ae64dd486e5692
[ "MIT" ]
null
null
null
Debug/__init__.py
thomasf/LiveRemoteScripts
866330653e1561a140e076c9a7ae64dd486e5692
[ "MIT" ]
13
2015-10-25T04:44:09.000Z
2020-03-01T18:02:27.000Z
# by amounra 0613 : http://www.aumhaa.com from aumhaa.v2.base import Debug def create_instance(c_instance): """ Creates and returns the Debug script """ return Debug(c_instance)
16
48
0.708333
7dd696c302594acf1f0a4882561f35ca56a3c9a5
665
py
Python
mpesapy/migrations/0003_auto_20170214_0845.py
wanderijames/django-mpesapy
d304f3ab4c23d9d2f130d78b424196837ca82066
[ "MIT" ]
null
null
null
mpesapy/migrations/0003_auto_20170214_0845.py
wanderijames/django-mpesapy
d304f3ab4c23d9d2f130d78b424196837ca82066
[ "MIT" ]
7
2020-01-06T11:44:17.000Z
2021-09-22T18:20:08.000Z
mpesapy/migrations/0003_auto_20170214_0845.py
wanderijames/django-mpesapy
d304f3ab4c23d9d2f130d78b424196837ca82066
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-02-14 08:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mpesapy', '0002_auto_20170209_0837'), ] operations = [ migrations.AlterField( ...
25.576923
78
0.610526
c50ee9d2719039e76b6067ca807dcf0a8dd2b85f
795
py
Python
pythainlp/__init__.py
pontakornth/pythainlp
26ec714b7fb2a3e9081b1db6d0bcb95f742a45f3
[ "Apache-2.0" ]
null
null
null
pythainlp/__init__.py
pontakornth/pythainlp
26ec714b7fb2a3e9081b1db6d0bcb95f742a45f3
[ "Apache-2.0" ]
null
null
null
pythainlp/__init__.py
pontakornth/pythainlp
26ec714b7fb2a3e9081b1db6d0bcb95f742a45f3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = 1.6 import six if six.PY3: """ ไว้ใส่ความสามารถที่รองรับเฉพาะ Python 3.4+ เท่านั้น """ from pythainlp.sentiment import sentiment from pythainlp.spell import spell from pythainlp.romanization import romanization from pythainlp.tokenize im...
33.125
67
0.825157
e48e4be627152837d0b9e97e222460b1cf1e010c
2,892
py
Python
svm_lab_mohamedadel_1610169.py
Moadell/SVM_ADs_Network_Predication
ea8d09afd4e40f92f986e7a18eb11ecd9ca9c6ee
[ "MIT" ]
null
null
null
svm_lab_mohamedadel_1610169.py
Moadell/SVM_ADs_Network_Predication
ea8d09afd4e40f92f986e7a18eb11ecd9ca9c6ee
[ "MIT" ]
null
null
null
svm_lab_mohamedadel_1610169.py
Moadell/SVM_ADs_Network_Predication
ea8d09afd4e40f92f986e7a18eb11ecd9ca9c6ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """SVM_LAB_MohamedAdel_1610169.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1PRkVSAfnBBUxzknF3YPMambJ7LKOy3Oi # Support Vector Machine (SVM) with 'linear' kernel ##Importing the libraries and dataset """ import numpy ...
34.428571
125
0.674274
18c1e50fe7981f7e058bceccc20ecf8df0caf5f4
2,385
py
Python
game/game.py
MesterLum/tic-tac-toe
026b464ef030163f05b2f7d7c2ebd0436f166206
[ "MIT" ]
null
null
null
game/game.py
MesterLum/tic-tac-toe
026b464ef030163f05b2f7d7c2ebd0436f166206
[ "MIT" ]
null
null
null
game/game.py
MesterLum/tic-tac-toe
026b464ef030163f05b2f7d7c2ebd0436f166206
[ "MIT" ]
null
null
null
class TicTacToe: # SYMBOLS FOR players SYMBOLS = ["O", "X"] # Private variables __table = [ ["_", "_", "_"], ["_", "_", "_"], ["_", "_", "_"] ] def init(self): pass def __draw(self): for i in range(3): for j in range(3): ...
24.84375
77
0.503564
c942f10ed6ba84f9411674b2e224cd4df71d7df4
1,259
py
Python
jobpro/config/jobpro.py
hereabdulla/jobpro
7f55af8538211c2b66180b4d6fdf2fad5827a599
[ "MIT" ]
null
null
null
jobpro/config/jobpro.py
hereabdulla/jobpro
7f55af8538211c2b66180b4d6fdf2fad5827a599
[ "MIT" ]
null
null
null
jobpro/config/jobpro.py
hereabdulla/jobpro
7f55af8538211c2b66180b4d6fdf2fad5827a599
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return [ { "module_name": "jobPRO", "color": "grey", "icon": "fa fa-star", "type": "module", "label": _("jobPRO"), "items": [ { ...
34.027027
67
0.254964
3b5af6dbb7d1b821b6ac1dbda764f9f627f7a1a9
527
py
Python
tests/test_config.py
jschaf/ibolcdb
e890fcf6bdc6219b3464899a99ac0464f6d329fc
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
jschaf/ibolcdb
e890fcf6bdc6219b3464899a99ac0464f6d329fc
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
jschaf/ibolcdb
e890fcf6bdc6219b3464899a99ac0464f6d329fc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from ibolc.app import create_app from ibolc.settings import ProdConfig, DevConfig def test_production_config(): app = create_app(ProdConfig) assert app.config['ENV'] == 'prod' assert app.config['DEBUG'] is False assert app.config['DEBUG_TB_ENABLED'] is False assert app.confi...
29.277778
50
0.70019
212181d53b4fbfbd435aded6a20d6e94514dcbb3
12,881
py
Python
main.py
adrianbg/awd-lstm-lm
1e24cc54eae5031c1cfd15ad84d0c334c579c6f4
[ "BSD-3-Clause" ]
7
2018-04-14T19:03:41.000Z
2022-01-17T09:26:48.000Z
main.py
orbulon/awd-lstm-lm
435f1d7cc35e30c91e4efc22197fc077810600f0
[ "BSD-3-Clause" ]
null
null
null
main.py
orbulon/awd-lstm-lm
435f1d7cc35e30c91e4efc22197fc077810600f0
[ "BSD-3-Clause" ]
5
2018-11-07T06:48:57.000Z
2022-01-17T09:26:53.000Z
import argparse import time import math import numpy as np import torch import torch.nn as nn from torch.autograd import Variable import data import model from utils import batchify, get_batch, repackage_hidden parser = argparse.ArgumentParser(description='PyTorch PennTreeBank RNN/LSTM Language Model') parser.add_ar...
42.79402
169
0.602671
d66eab2df0a689aab7b8d3dcf92641a89e0a492b
1,792
py
Python
app/core/migrations/0001_initial.py
hamraa/recipe-app-api
84f7526ecb5771a5deb33c9ba48b346d1a78783e
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
hamraa/recipe-app-api
84f7526ecb5771a5deb33c9ba48b346d1a78783e
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
hamraa/recipe-app-api
84f7526ecb5771a5deb33c9ba48b346d1a78783e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-10-28 09:05 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
52.705882
266
0.646205
57e7dfe1743b2ae40fcb7a395c29d9527f8bbd1b
3,224
py
Python
tests/operators/ci_gpu/test_fused_bn_update.py
xqdan/akg
e28501611d73d3957a1f3c58eeb6b028f2f2765d
[ "Apache-2.0" ]
null
null
null
tests/operators/ci_gpu/test_fused_bn_update.py
xqdan/akg
e28501611d73d3957a1f3c58eeb6b028f2f2765d
[ "Apache-2.0" ]
null
null
null
tests/operators/ci_gpu/test_fused_bn_update.py
xqdan/akg
e28501611d73d3957a1f3c58eeb6b028f2f2765d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.057471
96
0.638337
f1a83c8155d3142e6e47f7c2075852d90698ad14
4,406
py
Python
src/dataset/brain_dataset.py
HennyJie/BrainGB
96cf6711e2f2e6fa48b699ce3c0d6e318955c4de
[ "MIT" ]
3
2022-03-17T01:34:49.000Z
2022-03-22T07:53:17.000Z
src/dataset/brain_dataset.py
HennyJie/BrainGB
96cf6711e2f2e6fa48b699ce3c0d6e318955c4de
[ "MIT" ]
null
null
null
src/dataset/brain_dataset.py
HennyJie/BrainGB
96cf6711e2f2e6fa48b699ce3c0d6e318955c4de
[ "MIT" ]
null
null
null
import torch import numpy as np import os.path as osp from scipy.io import loadmat from torch_geometric.data import InMemoryDataset, Data from torch_geometric.utils import dense_to_sparse from .base_transform import BaseTransform from .brain_data import BrainData import sys from torch_geometric.data.makedirs import ma...
34.155039
100
0.598502
094525450feacaa019e135ededb7b12abb96836d
1,347
py
Python
main.py
wulfihm/RedditWiper
621723221cf61c1954ed9c2d0343c3d6d1cb6c2b
[ "MIT" ]
null
null
null
main.py
wulfihm/RedditWiper
621723221cf61c1954ed9c2d0343c3d6d1cb6c2b
[ "MIT" ]
null
null
null
main.py
wulfihm/RedditWiper
621723221cf61c1954ed9c2d0343c3d6d1cb6c2b
[ "MIT" ]
null
null
null
import praw import json import random import time config = json.load(open('config.json')) charstring = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz><.-,+!@#$%^&*();:[]~" def get_comments(): reddit = praw.Reddit(client_id=config["reddit"]["clientid"], client_secret=config...
33.675
97
0.642168
13761d357fc445c1ae438c150b772ad6b54fd68f
1,999
py
Python
scripts/neat_external/flappy_bird_external.py
SamuelNLP/nes-ai
54f353b6d238252c2ebb49386fc072e9a75d5b8b
[ "MIT" ]
null
null
null
scripts/neat_external/flappy_bird_external.py
SamuelNLP/nes-ai
54f353b6d238252c2ebb49386fc072e9a75d5b8b
[ "MIT" ]
null
null
null
scripts/neat_external/flappy_bird_external.py
SamuelNLP/nes-ai
54f353b6d238252c2ebb49386fc072e9a75d5b8b
[ "MIT" ]
null
null
null
""" A NEAT run on flappy bird """ import random from datetime import datetime import neat # noqa import numpy as np from ple import PLE from ple.games.flappybird import FlappyBird WIDTH, HEIGHT = 288, 512 def eval_genomes(genomes, config_): play = PLE( FlappyBird(width=WIDTH, height=HEIGHT, pipe_gap=...
24.9875
70
0.61931
0239706da833be4532e17c6ca475359a3eb7df01
3,318
py
Python
qa/rpc-tests/bip65-cltv.py
lurchinms/Auroracoin
59492763afe46f15a2a2d737342e32d46b401c60
[ "MIT" ]
35
2016-03-14T02:24:46.000Z
2021-08-12T16:19:19.000Z
qa/rpc-tests/bip65-cltv.py
lurchinms/Auroracoin
59492763afe46f15a2a2d737342e32d46b401c60
[ "MIT" ]
40
2016-03-11T20:21:12.000Z
2022-03-29T11:07:54.000Z
qa/rpc-tests/bip65-cltv.py
lurchinms/Auroracoin
59492763afe46f15a2a2d737342e32d46b401c60
[ "MIT" ]
34
2016-03-10T13:31:43.000Z
2022-01-01T06:05:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test the CHECKLOCKTIMEVERIFY (BIP65) soft-fork logic # from test_framework.test_framework import Au...
35.677419
98
0.62387
9f7b4cbf93f096ec3ed2a5b43df6ec4501d58592
453
py
Python
bst.py
jillhubbard/cs261-bst-part2
37c691605f07c54f606a9bac55efa0975048c048
[ "FSFAP" ]
null
null
null
bst.py
jillhubbard/cs261-bst-part2
37c691605f07c54f606a9bac55efa0975048c048
[ "FSFAP" ]
null
null
null
bst.py
jillhubbard/cs261-bst-part2
37c691605f07c54f606a9bac55efa0975048c048
[ "FSFAP" ]
null
null
null
# BinarySearchTree: A binary search tree. # Implement as many operations as possible with recursion. # If you can't figure it out recursively, use a loop. (But then refactor # your implementation into a recursive one!) # Your implementation should pass the tests in test_bst.py. # YOUR NAME class BinarySearchTree: ...
37.75
87
0.768212
869c408ff87312c291457e37535c3bd5324daadd
22
py
Python
vim/skel/template.py
peteches/configs
70383e180a243cc3c8b3535a297fc9c991e3025e
[ "MIT" ]
null
null
null
vim/skel/template.py
peteches/configs
70383e180a243cc3c8b3535a297fc9c991e3025e
[ "MIT" ]
null
null
null
vim/skel/template.py
peteches/configs
70383e180a243cc3c8b3535a297fc9c991e3025e
[ "MIT" ]
null
null
null
#! /usr/bin/python3
5.5
19
0.590909
30860b97bc8ece37ea63c382cf2a2ee6614991e9
17,537
py
Python
qtt/utilities/imagetools.py
dpfranke/qtt
f60e812fe8b329e67f7b38d02eef552daf08d7c9
[ "MIT" ]
null
null
null
qtt/utilities/imagetools.py
dpfranke/qtt
f60e812fe8b329e67f7b38d02eef552daf08d7c9
[ "MIT" ]
null
null
null
qtt/utilities/imagetools.py
dpfranke/qtt
f60e812fe8b329e67f7b38d02eef552daf08d7c9
[ "MIT" ]
null
null
null
import math import numpy as np import warnings import scipy import matplotlib import matplotlib.pyplot as plt try: import cv2 except: import qtt.exceptions warnings.warn('could not find opencv, not all functionality available', qtt.exceptions.MissingOptionalPackageWarning) import qtt.pgeometry as pgeometr...
32.475926
167
0.564977
8d64e4ac05afa63b6b3aad5c4f6ee2430f0ced55
1,345
py
Python
award/tests.py
jobkarani/Awards
69648fd416504c924edb498395d371d42724063b
[ "MIT" ]
2
2022-01-02T01:41:53.000Z
2022-02-20T21:20:05.000Z
award/tests.py
jobkarani/Awards
69648fd416504c924edb498395d371d42724063b
[ "MIT" ]
null
null
null
award/tests.py
jobkarani/Awards
69648fd416504c924edb498395d371d42724063b
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from .models import Project, Profile # Create your tests here. class ProjectTestClass(TestCase): # Project class test def setUp(self): # creating a user user = User.objects.create( username="ayub", first_nam...
26.372549
91
0.607435
04207a693d12d213228bbf8475142513e6bf2162
93
py
Python
wowp/actors/__init__.py
coobas/wowp
9d029b1c26ef65f83a5cd0279a45fe0cb4933ad9
[ "MIT" ]
2
2017-12-14T08:10:28.000Z
2017-12-29T13:31:33.000Z
wowp/actors/__init__.py
coobas/wowp
9d029b1c26ef65f83a5cd0279a45fe0cb4933ad9
[ "MIT" ]
4
2019-10-19T08:55:04.000Z
2019-10-22T06:50:18.000Z
wowp/actors/__init__.py
coobas/wowp
9d029b1c26ef65f83a5cd0279a45fe0cb4933ad9
[ "MIT" ]
1
2017-12-15T08:22:30.000Z
2017-12-15T08:22:30.000Z
from .base import * from ..components import Actor __all__ = (base.__all__ + ['Actor'])
18.6
37
0.666667
29759a7d6df7250e741050879631e90a71a43f18
599
py
Python
pattern/tests/tc5.py
ocirne/puzzle-solver
17b4bbb1be267d60977b7baae1b0ec8265ad7576
[ "Unlicense" ]
null
null
null
pattern/tests/tc5.py
ocirne/puzzle-solver
17b4bbb1be267d60977b7baae1b0ec8265ad7576
[ "Unlicense" ]
null
null
null
pattern/tests/tc5.py
ocirne/puzzle-solver
17b4bbb1be267d60977b7baae1b0ec8265ad7576
[ "Unlicense" ]
null
null
null
class TestCase(object): M = 10 rows = [ (2,3), (3,), (2,3), (9,), (3,4), (3,), (3,), (3,3), (3,), (2,4), ] cols = [ (8,1), (8,1), (1,5), (1,), (3,), (3,), (3,1), ...
13.930233
23
0.203673