hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
46c97bab1a5647cd9e8e5c40c66bf5f5ac8c36c9
1,089
py
Python
LeetCode/history/Python3/13.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
1
2021-05-11T09:52:38.000Z
2021-05-11T09:52:38.000Z
LeetCode/history/Python3/13.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
null
null
null
LeetCode/history/Python3/13.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
1
2021-05-05T04:13:17.000Z
2021-05-05T04:13:17.000Z
class Solution: def romanToInt(self, s): """ :type s: str :rtype: int """ numlist = [] for x in s: if x == 'I': num = 1 elif x == 'V': num = 5 elif x == 'X': num = 10 elif ...
27.923077
54
0.327824
1,089
1
0
0
0
0
0
0
77
0.070707
46cc8cea14d7417890822055eef4890caa7dc2ab
832
py
Python
scripts/place_random_object.py
ltu-ros/simple_sim_office
20e37b5f7a6d07b7859c3868a3954f0384f7c71a
[ "MIT" ]
null
null
null
scripts/place_random_object.py
ltu-ros/simple_sim_office
20e37b5f7a6d07b7859c3868a3954f0384f7c71a
[ "MIT" ]
null
null
null
scripts/place_random_object.py
ltu-ros/simple_sim_office
20e37b5f7a6d07b7859c3868a3954f0384f7c71a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from random import uniform, choice from math import copysign """ This is a simple pythin script that generates random values for circN parameters read by simple_sim to place objects It places 1, 2 or 3 circles in a +/- 1.5m area around the center of the map """ def randsign(): ...
24.470588
59
0.667067
0
0
0
0
0
0
0
0
425
0.510817
46cd1e657ec4409874672e0022455763ebebbf47
1,868
py
Python
CODES/S18 - Selenium WebDriver -_ Working With Web Elements/10-HiddenElements.py
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
7be863a0a9c8da7e31a413742da92c2fcfd0b38a
[ "MIT" ]
11
2019-05-17T00:54:17.000Z
2021-11-12T22:12:18.000Z
CODES/S18 - Selenium WebDriver -_ Working With Web Elements/10-HiddenElements.py
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
7be863a0a9c8da7e31a413742da92c2fcfd0b38a
[ "MIT" ]
null
null
null
CODES/S18 - Selenium WebDriver -_ Working With Web Elements/10-HiddenElements.py
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
7be863a0a9c8da7e31a413742da92c2fcfd0b38a
[ "MIT" ]
12
2019-06-17T00:56:01.000Z
2021-09-29T11:38:53.000Z
from selenium import webdriver import time class HiddenElements(): def testLetsKodeIt(self): baseUrl = "https://letskodeit.teachable.com/pages/practice" driver = webdriver.Firefox() driver.maximize_window() driver.get(baseUrl) driver.implicitly_wait(2) # Find the ...
33.963636
95
0.654711
1,763
0.94379
0
0
0
0
0
0
622
0.332976
46cd3a5d74191e0c2f0c767df32bfdb8ff7e82a4
1,091
py
Python
WPC_CSV2XLSX.py
ChenKuanSun/WPECCrawler
9b98fe7da96768fe102c1c494281103cf66aa6ff
[ "MIT" ]
null
null
null
WPC_CSV2XLSX.py
ChenKuanSun/WPECCrawler
9b98fe7da96768fe102c1c494281103cf66aa6ff
[ "MIT" ]
null
null
null
WPC_CSV2XLSX.py
ChenKuanSun/WPECCrawler
9b98fe7da96768fe102c1c494281103cf66aa6ff
[ "MIT" ]
null
null
null
#CodeMod from Trinh Nguyen http://www.dangtrinh.com/2013/10/python-convert-csv-to-excel.html import csv import os from openpyxl import Workbook from openpyxl.utils import get_column_letter def csv_to_excel(csv_path, excel_path): csv_file = open(csv_path, encoding = 'utf-8-sig') #ChineseFixUTF8 csv.register_dialect('...
34.09375
92
0.71769
0
0
0
0
0
0
0
0
288
0.263978
46ceb47962207e44fc2ccae2afd955563e900ab2
9,345
py
Python
matlab2cpp/tree/expression.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
28
2017-04-25T10:06:38.000Z
2022-02-09T07:25:34.000Z
matlab2cpp/tree/expression.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
null
null
null
matlab2cpp/tree/expression.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
5
2017-04-25T17:54:53.000Z
2022-03-21T20:15:15.000Z
""" Expression interpretor """ import matlab2cpp as mc import findend import identify import constants as c def create(self, node, start, end=None, start_opr=None): """ Create expression in three steps: 1) In order, split into sub-expressions for each dividing operator 2) Address prefixes, postfixes, pa...
30.639344
93
0.521134
0
0
0
0
0
0
0
0
2,835
0.303371
46d17d184f4c0040c0f1034f4461fae1fd05d6e6
1,103
py
Python
{{cookiecutter.company_name}}-cli/setup.py
farooq-teqniqly/cli-cookiecutter
e9a8262d5f11d6bfc313e906fad4e683950e52c3
[ "MIT" ]
null
null
null
{{cookiecutter.company_name}}-cli/setup.py
farooq-teqniqly/cli-cookiecutter
e9a8262d5f11d6bfc313e906fad4e683950e52c3
[ "MIT" ]
null
null
null
{{cookiecutter.company_name}}-cli/setup.py
farooq-teqniqly/cli-cookiecutter
e9a8262d5f11d6bfc313e906fad4e683950e52c3
[ "MIT" ]
null
null
null
import setuptools import os # Change to the setup.py directory to read files relative to it. cwd = os.getcwd() abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname) with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="{{cookiecutter.company_name...
31.514286
129
0.700816
0
0
0
0
0
0
0
0
508
0.460562
46d19331d95a9aabe8ab0fbdf213f6c043f5d9f4
3,917
py
Python
attributes.py
AmeliaSZK/ffxiv-squadron-planner
d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea
[ "MIT" ]
null
null
null
attributes.py
AmeliaSZK/ffxiv-squadron-planner
d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea
[ "MIT" ]
null
null
null
attributes.py
AmeliaSZK/ffxiv-squadron-planner
d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass(order=True, frozen=True) class Attributes: r""" Immutable object to group attributes, and do operations on them. phy = Physical men = Mental tac = Tactical Attributes are printed as `(phy / men / tac)` So `( 50 / 110 / 170)` means: ...
30.364341
82
0.521062
3,775
0.963748
0
0
3,811
0.972938
0
0
2,303
0.58795
46d1b76cc358cb882e976013873aa0558d4d7221
2,382
py
Python
tests/__init__.py
deniskorobicyn/kozmic-ci
0af754b81891722824c6bea85154590f15931030
[ "BSD-3-Clause" ]
1
2021-06-05T18:36:13.000Z
2021-06-05T18:36:13.000Z
tests/__init__.py
deniskorobicyn/kozmic-ci
0af754b81891722824c6bea85154590f15931030
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
deniskorobicyn/kozmic-ci
0af754b81891722824c6bea85154590f15931030
[ "BSD-3-Clause" ]
null
null
null
import os import collections from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.webtest import TestApp, get_scopefunc from kozmic import create_app, db from . import factories class SQLAlchemyMixin(object): @property def db(self): return self.app.extensions['sqlalchemy'].db def create_d...
29.407407
79
0.617968
2,184
0.916877
0
0
79
0.033165
0
0
137
0.057515
46d2957beb8300483d8b056de5349aadf1799cfd
6,046
py
Python
coding/python/tkinter_canvas_image.py
jujumo/memento
9879c74d7b9c64ba2e2a1d8bae20e2d353ccd7bd
[ "MIT" ]
1
2019-08-05T17:53:33.000Z
2019-08-05T17:53:33.000Z
coding/python/tkinter_canvas_image.py
jujumo/memento
9879c74d7b9c64ba2e2a1d8bae20e2d353ccd7bd
[ "MIT" ]
null
null
null
coding/python/tkinter_canvas_image.py
jujumo/memento
9879c74d7b9c64ba2e2a1d8bae20e2d353ccd7bd
[ "MIT" ]
null
null
null
import argparse import logging import sys import numpy as np from PIL import Image, ImageTk import tkinter as tk logger = logging.getLogger('tkcanvasimage') logger.addHandler(logging.StreamHandler(sys.stdout)) class TkDrawable: def __init__(self, scaling_factor=1.0, position=[0, 0]): self._canvas = None ...
30.846939
100
0.610155
5,822
0.962951
0
0
752
0.12438
0
0
384
0.063513
46d4677b37669cdaf6bf286e4bbbce299572bd25
1,485
py
Python
oddsgym/envs/meta.py
OryJonay/soccer_odds_env
b69401518003099ca355c812f2b26775abc25754
[ "Apache-2.0" ]
11
2020-03-10T10:13:53.000Z
2022-02-06T19:06:27.000Z
oddsgym/envs/meta.py
OryJonay/soccer_odds_env
b69401518003099ca355c812f2b26775abc25754
[ "Apache-2.0" ]
1
2020-04-11T14:14:17.000Z
2020-04-11T14:14:17.000Z
oddsgym/envs/meta.py
OryJonay/soccer_odds_env
b69401518003099ca355c812f2b26775abc25754
[ "Apache-2.0" ]
1
2020-10-05T01:20:28.000Z
2020-10-05T01:20:28.000Z
from .base import BaseOddsEnv from .base_percentage import BasePercentageOddsEnv from .daily_bets import DailyOddsEnv, DailyPercentageOddsEnv class MetaEnvBuilder(type): def __new__(cls, name, bases, attr): def safe_get(attribute): if attribute in attr: return attr[attribute] ...
43.676471
110
0.617508
1,340
0.902357
0
0
0
0
0
0
347
0.23367
46d6deb7ca587b0c1dc12540a32ed1be89712a6d
998
py
Python
tests/pyboard/execScript_adc_son.py
david-therincourt/physique
add85faef564359252da93dca9b7dbb35bd6b4ab
[ "MIT" ]
null
null
null
tests/pyboard/execScript_adc_son.py
david-therincourt/physique
add85faef564359252da93dca9b7dbb35bd6b4ab
[ "MIT" ]
null
null
null
tests/pyboard/execScript_adc_son.py
david-therincourt/physique
add85faef564359252da93dca9b7dbb35bd6b4ab
[ "MIT" ]
null
null
null
from physique import Pyboard import numpy as np import matplotlib.pyplot as plt script = """ from pyb import Pin, ADC, Timer, delay import array f = 20000 # fréquence d'échantillonnage nb = 2000 # nombre de points adc = ADC(Pin('A2')) # Activation du CAN sur la broche A0 buf = array.arra...
22.177778
83
0.650301
0
0
0
0
0
0
0
0
669
0.666335
46d790318dd9872e70883f8227ecbf0ac8affa79
1,663
py
Python
python/test_demo.py
rensir/RapidOCR
2408ec64cd20145e468e08a5469eaa2c042cd1c6
[ "Apache-2.0" ]
null
null
null
python/test_demo.py
rensir/RapidOCR
2408ec64cd20145e468e08a5469eaa2c042cd1c6
[ "Apache-2.0" ]
null
null
null
python/test_demo.py
rensir/RapidOCR
2408ec64cd20145e468e08a5469eaa2c042cd1c6
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # @Author: SWHL # @Contact: liekkaskono@163.com from rapid_ocr_api import TextSystem, visualize det_model_path = 'models/ch_ppocr_mobile_v2.0_det_infer.onnx' cls_model_path = 'models/ch_ppocr_mobile_v2.0_cls_infer.onnx' # 中英文识别 rec_model_path = 'models/ch_ppocr_mobile_v2.0_rec_infer.onnx' ke...
31.980769
62
0.693325
0
0
0
0
0
0
0
0
576
0.338624
46dce8abd822089ad9a46a0110574671f9f528d4
1,133
py
Python
auto/appium/demo.py
wuhongnpm/Gardenia
a07b34ddfff8c058b5bfc9ee5832e59c86e7e276
[ "MIT" ]
1
2019-05-01T08:03:06.000Z
2019-05-01T08:03:06.000Z
basic/auto/appium/demo.py
wuhongnpm/Python
1b0d576c8c04db6214b627bbe5530643b1f85da0
[ "MIT" ]
null
null
null
basic/auto/appium/demo.py
wuhongnpm/Python
1b0d576c8c04db6214b627bbe5530643b1f85da0
[ "MIT" ]
null
null
null
# This sample code uses the Appium python client # pip install Appium-Python-Client # Then you can paste this into a file and simply run with Python #adb shell dumpsys window | findstr mCurrentFocus #adb shell getprop ro.product.model from appium import webdriver caps = {} caps["platformName"] = "Android" caps["devi...
31.472222
119
0.761695
0
0
0
0
0
0
0
0
750
0.652742
46e01dbf680d02bed46b7756ac1cd294cfc51cef
2,589
py
Python
weallcode/forms.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
15
2019-05-04T00:24:00.000Z
2021-08-21T16:34:05.000Z
weallcode/forms.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
73
2019-04-24T15:53:42.000Z
2021-08-06T20:41:41.000Z
weallcode/forms.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
20
2019-04-26T20:13:08.000Z
2021-06-21T14:53:21.000Z
from django import forms from django.conf import settings from captcha.fields import ReCaptchaField from captcha.widgets import ReCaptchaV3 from coderdojochi.util import email class ContactForm(forms.Form): widths = ( ("name", "small-6"), ("email", "small-6"), ("interest", "small-6"), ...
25.89
98
0.499034
2,408
0.930089
0
0
0
0
0
0
738
0.285052
46e0903e5bdf7bf970df5689667d22a05b2773ae
4,411
py
Python
examples/ex4_mathsop/myhdl/construct.py
cfelton/alt.hdl
80cdefd20d4fd46e3a1b6116d4b2090135fe1cdf
[ "MIT" ]
19
2015-01-01T18:37:28.000Z
2021-11-26T14:33:37.000Z
examples/ex4_mathsop/myhdl/construct.py
cfelton/alt.hdl
80cdefd20d4fd46e3a1b6116d4b2090135fe1cdf
[ "MIT" ]
null
null
null
examples/ex4_mathsop/myhdl/construct.py
cfelton/alt.hdl
80cdefd20d4fd46e3a1b6116d4b2090135fe1cdf
[ "MIT" ]
1
2017-07-04T13:15:17.000Z
2017-07-04T13:15:17.000Z
from myhdl import * ggens = [] gclock = None #Signal(bool(0)) greset = None #ResetSignal(0, active=0, async=True) def init(clock=None, reset=None): global ggens,gclock,greset gclock,greset = clock,reset ggens = [] return ggens def end(g=None, dump=False): global ggens if dump: for ...
28.642857
69
0.535706
2,747
0.622761
0
0
276
0.062571
0
0
793
0.179778
46e1a8c21a554419cdff3642d808e34133c9c15c
6,975
py
Python
Notebooks/Text-Summarization/summarize.py
Abhijit2505/Grokking-Machine-Learning-
e088eeecacaa93d0bc87478b20d3401b5699224e
[ "MIT" ]
43
2020-12-18T17:18:22.000Z
2022-03-10T08:09:45.000Z
Notebooks/Text-Summarization/summarize.py
Abhijit2505/Grokking-Machine-Learning-
e088eeecacaa93d0bc87478b20d3401b5699224e
[ "MIT" ]
232
2020-12-24T20:33:30.000Z
2021-05-28T16:03:13.000Z
Notebooks/Text-Summarization/summarize.py
Abhijit2505/Grokking-Machine-Learning-
e088eeecacaa93d0bc87478b20d3401b5699224e
[ "MIT" ]
94
2020-12-21T18:17:36.000Z
2021-12-14T17:37:56.000Z
# importing required modules import argparse stop_words = {'i', 'with', 'he', 'down', 'itself', 'm', 'shan', 'no', 'yourself', 'but', 'the', 'y', 'again', 'more', 'o', "she's", 'theirs', 'my', "isn't", 'are', 're', 'their', 'own', 'during', 'don', 'such', 'me', "you'll", 'have', 'has', 'an', 'isn', 'wouldn', 'between'...
43.867925
1,486
0.600717
944
0.135341
0
0
0
0
0
0
2,758
0.395412
46e21454a078b2e8ade7f2191dc1b15307690c29
5,458
py
Python
torchvision/datasets/cifar.py
felixgwu/vision
d5eab760e60bc662961faa08a3a17deaa65d2c75
[ "BSD-3-Clause" ]
4
2018-07-22T19:20:49.000Z
2019-04-30T01:28:58.000Z
torchvision/datasets/cifar.py
felixgwu/vision
d5eab760e60bc662961faa08a3a17deaa65d2c75
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/cifar.py
felixgwu/vision
d5eab760e60bc662961faa08a3a17deaa65d2c75
[ "BSD-3-Clause" ]
2
2019-04-30T01:29:02.000Z
2019-05-01T07:36:23.000Z
from __future__ import print_function import torch.utils.data as data from PIL import Image import os import os.path import errno import numpy as np import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle class CIFAR10(data.Dataset): base_folder = 'cifar-10-batches-py' url...
32.105882
96
0.563576
5,210
0.954562
0
0
0
0
0
0
1,106
0.202638
46e27dfea306c481f9189b43bf419b95084d4d77
1,780
py
Python
project/modules/modules_helpers.py
MattiaPeiretti/MCDAS
11a12df305949d49201af26c0d71d48be6fcb545
[ "CC0-1.0" ]
null
null
null
project/modules/modules_helpers.py
MattiaPeiretti/MCDAS
11a12df305949d49201af26c0d71d48be6fcb545
[ "CC0-1.0" ]
null
null
null
project/modules/modules_helpers.py
MattiaPeiretti/MCDAS
11a12df305949d49201af26c0d71d48be6fcb545
[ "CC0-1.0" ]
null
null
null
import os import multiprocessing from tqdm import tqdm # Custom Modules import constants import formulas from dataHandler import dataHandler from settingsHandler import SettingsHandler from mcd_interface import MCDInterface settings_handler = SettingsHandler() mcd_interface = MCDInterface(settings_handler.get_setting...
29.180328
87
0.664045
477
0.267978
0
0
364
0.204494
0
0
149
0.083708
46e3fc7bf3794e3fe125f3281b40c8afefb840e4
8,160
py
Python
backend/data/connection.py
jiangyy12/application-tracking-system
6de2d98351df65d43c09a5739c3c3dbdf3bf78d3
[ "MIT" ]
1
2021-10-17T16:00:20.000Z
2021-10-17T16:00:20.000Z
backend/data/connection.py
jiangyy12/application-tracking-system
6de2d98351df65d43c09a5739c3c3dbdf3bf78d3
[ "MIT" ]
14
2021-11-01T17:34:51.000Z
2021-11-16T02:48:03.000Z
backend/data/connection.py
jiangyy12/application-tracking-system
6de2d98351df65d43c09a5739c3c3dbdf3bf78d3
[ "MIT" ]
3
2021-11-01T18:00:49.000Z
2021-11-16T19:57:26.000Z
import mysql.connector as conn from mysql.connector import errorcode Connection = conn.connect( host="localhost", port="3306", user="root", password="", database="applicationtrackingsystem" ) print("Connect to the local database outside method success...
32.771084
136
0.552451
0
0
0
0
0
0
0
0
3,359
0.411642
46e51229bf81d16850dc1c99426ad60797e1a90e
746
py
Python
pointCollection/ATL06/tile.py
tsutterley/pointCollection
04e4359e463ff8a556e0d078373578bd96390151
[ "MIT" ]
null
null
null
pointCollection/ATL06/tile.py
tsutterley/pointCollection
04e4359e463ff8a556e0d078373578bd96390151
[ "MIT" ]
null
null
null
pointCollection/ATL06/tile.py
tsutterley/pointCollection
04e4359e463ff8a556e0d078373578bd96390151
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 18 18:45:18 2019 @author: ben """ import pointCollection as pc class tile(pc.tile): def __default_field_dict__(self): return {None:['delta_time','h_li','h_li_sigma','latitude','longitude','atl06_quality_summary','segment_id','sigma_g...
27.62963
130
0.615282
608
0.815013
0
0
0
0
0
0
429
0.575067
46e55a727f3051ddea52da6c465bbf43323192b6
5,898
py
Python
build/PureCloudPlatformClientV2/models/biography.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/biography.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/biography.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 applica...
25.097872
77
0.553238
5,094
0.863683
0
0
2,397
0.406409
0
0
3,238
0.549
46e677c6196f6b6664b127fcdc9e5b1d74d18be7
1,247
py
Python
src/backend/expungeservice/models/record.py
sico/recordexpungPDX
c2f18322014add7c78b27736bde2d29d1d086aa8
[ "MIT" ]
38
2019-05-09T03:13:43.000Z
2022-03-16T22:59:25.000Z
src/backend/expungeservice/models/record.py
sico/recordexpungPDX
c2f18322014add7c78b27736bde2d29d1d086aa8
[ "MIT" ]
938
2019-05-02T15:13:21.000Z
2022-02-27T20:59:00.000Z
src/backend/expungeservice/models/record.py
kenichi/recordexpungPDX
100d9249473a01953451b83a72ec1b74574acc43
[ "MIT" ]
65
2019-05-09T03:28:12.000Z
2022-03-21T00:06:39.000Z
from __future__ import annotations from dataclasses import dataclass, field from typing import List, Dict, Tuple, Optional, Any from expungeservice.models.case import Case from expungeservice.models.charge import Charge @dataclass(frozen=True) class Alias: first_name: str last_name: str middle_name: str ...
20.112903
54
0.674419
930
0.74579
0
0
1,011
0.810746
0
0
6
0.004812
46e87d0d702a6085e4175544be3a7b236bbac27f
3,329
py
Python
services/dsrp-api/app/api/application/namespace.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
null
null
null
services/dsrp-api/app/api/application/namespace.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
9
2020-05-06T23:29:43.000Z
2022-03-14T22:58:17.000Z
services/dsrp-api/app/api/application/namespace.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
3
2020-05-08T16:54:22.000Z
2021-01-27T17:28:49.000Z
from flask_restplus import Namespace from app.api.application.resources.application import ApplicationResource, ApplicationListResource, ApplicationReviewResource from app.api.application.resources.application_estimated_cost_override import ApplicationEstimatedCostOverride from app.api.application.resources.applicatio...
67.938776
235
0.828477
0
0
0
0
0
0
0
0
1,016
0.305197
46e978e4d8c72a9619d5082735eae010a3835dc0
4,172
py
Python
trabConfeitaria/pycake/migrations/0002_auto_20210908_2214.py
mestrecalendo/trabalho_web
4b6c8c6029e67270146396b8421f4c65a172a52d
[ "MIT" ]
null
null
null
trabConfeitaria/pycake/migrations/0002_auto_20210908_2214.py
mestrecalendo/trabalho_web
4b6c8c6029e67270146396b8421f4c65a172a52d
[ "MIT" ]
null
null
null
trabConfeitaria/pycake/migrations/0002_auto_20210908_2214.py
mestrecalendo/trabalho_web
4b6c8c6029e67270146396b8421f4c65a172a52d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-09 02:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pycake', '0001_initial'), ] operations = [ migrations.AlterField( model_name='pedido', name='cobertura', ...
65.1875
545
0.584372
4,099
0.977815
0
0
0
0
0
0
2,060
0.491412
46ea0df8e2046e5c8f782334316cb99316dcf051
734
py
Python
course_registration/migrations/0002_auto_20191127_0506.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
null
null
null
course_registration/migrations/0002_auto_20191127_0506.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
1
2020-02-11T22:01:10.000Z
2020-02-11T22:01:10.000Z
course_registration/migrations/0002_auto_20191127_0506.py
c3n7/university-portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
3
2019-11-14T08:50:15.000Z
2019-11-15T15:36:45.000Z
# Generated by Django 2.2.7 on 2019-11-27 05:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course_registration', '0001_initial'), ] operations = [ migrations.AlterField( model_name='courseregistration', name...
30.583333
172
0.608992
641
0.873297
0
0
0
0
0
0
248
0.337875
46eb67734142a3e1e31aedcc8ef44301ec624a41
743
py
Python
saliency.py
Desaiakshata/Saliecy-detection-using-opencv
8ebc9e461093bf66652ac55b36f737e9a93df787
[ "MIT" ]
null
null
null
saliency.py
Desaiakshata/Saliecy-detection-using-opencv
8ebc9e461093bf66652ac55b36f737e9a93df787
[ "MIT" ]
null
null
null
saliency.py
Desaiakshata/Saliecy-detection-using-opencv
8ebc9e461093bf66652ac55b36f737e9a93df787
[ "MIT" ]
null
null
null
import cv2 import argparse a=argparse.ArgumentParser() a.add_argument("-i","--image", required=True, help="input image path") args=vars(a.parse_args()) image=cv2.imread(args["image"]) # two methods # Static spectral saliency saliency = cv2.saliency.StaticSaliencySpectralResidual_create() (success, salien...
29.72
71
0.755047
0
0
0
0
0
0
0
0
132
0.177658
46ec761cd98425860c5430fd123aaa948c1d1e0b
248
py
Python
ignoregen/__init__.py
rcook/ignoregen
d702b1fbe3d1b525dde312aa761080e098fc9111
[ "MIT" ]
null
null
null
ignoregen/__init__.py
rcook/ignoregen
d702b1fbe3d1b525dde312aa761080e098fc9111
[ "MIT" ]
1
2018-04-22T04:28:52.000Z
2018-04-22T04:31:24.000Z
ignoregen/__init__.py
rcook/ignoregen
d702b1fbe3d1b525dde312aa761080e098fc9111
[ "MIT" ]
null
null
null
################################################## # Copyright (C) 2017-2020, All rights reserved. ################################################## __project_name__ = "ignoregen" __version__ = "0.6" __description__ = "Generate Git ignore rules"
31
50
0.443548
0
0
0
0
0
0
0
0
190
0.766129
46ee6358447c89093b274edefbf4cb4da8117ae6
9,517
py
Python
website/CubeToaster.py
yuxuibbs/MCC-Competition-Docs
384726c41434c5a07becb6438c3d2409c6ca6eb4
[ "MIT" ]
4
2016-11-13T20:49:33.000Z
2017-12-20T20:03:03.000Z
website/CubeToaster.py
yuxuibbs/MCC-Competition-Docs
384726c41434c5a07becb6438c3d2409c6ca6eb4
[ "MIT" ]
5
2016-12-26T19:14:46.000Z
2022-02-11T03:44:39.000Z
website/CubeToaster.py
yuxuibbs/MCC-Competition-Docs
384726c41434c5a07becb6438c3d2409c6ca6eb4
[ "MIT" ]
2
2016-12-29T12:03:15.000Z
2017-02-16T15:51:02.000Z
from flask import Flask, request, render_template, redirect, url_for, flash, make_response from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, SubmitField, SelectField, widgets from wtforms.validators import Required import os import csv import json import requests # import jellyfish #####...
32.261017
203
0.505201
1,657
0.174109
0
0
1,204
0.12651
0
0
5,859
0.615635
46eea24e59a0c70c504de2c39f8d5f9e4c5fd1f5
6,695
py
Python
booking_sites_parser/models.py
webmalc/booking-sites-parser
992d6a6f3774eeebfbbd535b5de3baa373137150
[ "Apache-2.0" ]
2
2019-03-14T13:08:59.000Z
2019-09-22T08:08:38.000Z
booking_sites_parser/models.py
webmalc/booking-sites-parser
992d6a6f3774eeebfbbd535b5de3baa373137150
[ "Apache-2.0" ]
null
null
null
booking_sites_parser/models.py
webmalc/booking-sites-parser
992d6a6f3774eeebfbbd535b5de3baa373137150
[ "Apache-2.0" ]
null
null
null
""" Package models """ import re from abc import ABC, abstractmethod from decimal import Decimal from typing import Any, List, Optional from bs4 import BeautifulSoup from .http_client import HttpClient, HttpResponse class ParserException(Exception): """ Base parser exception """ class Address(): "...
24.704797
79
0.573861
6,465
0.965646
0
0
1,585
0.236744
0
0
1,658
0.247647
46ef02cf00dc2eef4d91549f2257af29dc55234b
747
py
Python
ex036.py
erikamaylim/Python-CursoemVideo
5a6809818c4c55a02ec52379d95f3d20c833df2e
[ "MIT" ]
null
null
null
ex036.py
erikamaylim/Python-CursoemVideo
5a6809818c4c55a02ec52379d95f3d20c833df2e
[ "MIT" ]
null
null
null
ex036.py
erikamaylim/Python-CursoemVideo
5a6809818c4c55a02ec52379d95f3d20c833df2e
[ "MIT" ]
null
null
null
"""Escreva um programa para aprovar o empréstimo bancário para a compra de uma casa. Pergunte o valor da casa, o salário do comprador e em quantos anos ele vai pagar. A prestação mensal não pode exceder 30% do salário ou então o empréstimo será negado.""" casa = float(input('Qual o valor da casa? R$ ')) salario = floa...
43.941176
93
0.702811
0
0
0
0
0
0
0
0
567
0.740209
46f1607eb413535d97110e501a2e28d97385688e
1,972
py
Python
src/pyconcepticon/commands/citation.py
concepticon/pyconcepticon
bd336df18545b493f59ed8c22b636ded447dede1
[ "Apache-2.0" ]
5
2019-06-04T02:17:03.000Z
2021-12-28T01:59:16.000Z
src/pyconcepticon/commands/citation.py
concepticon/pyconcepticon
bd336df18545b493f59ed8c22b636ded447dede1
[ "Apache-2.0" ]
36
2019-02-06T11:50:21.000Z
2021-12-28T18:43:11.000Z
src/pyconcepticon/commands/citation.py
concepticon/pyconcepticon
bd336df18545b493f59ed8c22b636ded447dede1
[ "Apache-2.0" ]
5
2019-09-18T13:34:19.000Z
2021-12-28T02:01:44.000Z
""" Print a full bibliographic citation for a Concepticon version """ import html import collections from datetime import date from clldutils.path import git_describe from clldutils.jsonlib import dump from nameparser import HumanName def register(parser): parser.add_argument('--version', default=None) parse...
35.854545
98
0.61359
0
0
0
0
0
0
0
0
601
0.304767
46f1a9721dee5956e739c11d736c03c0e3499e4a
848
py
Python
generate_booth.py
kodomomo/dsm-payments-util
592fda1f2578573a8b158403cd30067c0987ce16
[ "MIT" ]
null
null
null
generate_booth.py
kodomomo/dsm-payments-util
592fda1f2578573a8b158403cd30067c0987ce16
[ "MIT" ]
null
null
null
generate_booth.py
kodomomo/dsm-payments-util
592fda1f2578573a8b158403cd30067c0987ce16
[ "MIT" ]
null
null
null
import pymysql from booth_info import booths from generate_random_id import generate_random_id, generate_easy_password from generate_random_password import generate_random_password from sqls import * pay_database = { 'port': 3306, } pay_connection = pymysql.connect(**pay_database) pay_cursor = pay_co...
29.241379
89
0.731132
0
0
0
0
0
0
0
0
38
0.044811
46f20ff3199dbbecb63862c20b9f0fbe6430f66b
1,106
py
Python
get_repos.py
Oyekunle-Mark/alpha-tower
46d2e96553909388432ff28f2caf74a359538f5e
[ "MIT" ]
null
null
null
get_repos.py
Oyekunle-Mark/alpha-tower
46d2e96553909388432ff28f2caf74a359538f5e
[ "MIT" ]
1
2021-06-02T00:28:26.000Z
2021-06-02T00:28:26.000Z
get_repos.py
Oyekunle-Mark/alpha-tower
46d2e96553909388432ff28f2caf74a359538f5e
[ "MIT" ]
null
null
null
from requests import get from parameters import build_parameters GITHUB_API_URL = "https://api.github.com/search/repositories" def get_repos_with_most_stars(languages, sort="stars", order="desc", stars=50000): """Fetches the data from the GitHub API Arguments: languages {list} -- the list of languag...
29.891892
100
0.674503
0
0
0
0
0
0
0
0
649
0.586799
46f2dabd5d215702d44606f19c384a3fe040de66
580
py
Python
media.py
Daniatnuom/Programming_Foundations_with_Python
ec5c5af25c74bdb14e2dbce48b6e25b15b016b24
[ "MIT" ]
null
null
null
media.py
Daniatnuom/Programming_Foundations_with_Python
ec5c5af25c74bdb14e2dbce48b6e25b15b016b24
[ "MIT" ]
null
null
null
media.py
Daniatnuom/Programming_Foundations_with_Python
ec5c5af25c74bdb14e2dbce48b6e25b15b016b24
[ "MIT" ]
null
null
null
import webbrowser class Movie(): """ This class provides a way to store movie related information""" VALID_RATINGS = ['G','PG','PG-13','R'] # Make class variables, guideline recommend make constant variables as upper case def __init__(self, movie_title, movie_storyline, poster_image,trailer_youtube): self.tit...
30.526316
83
0.77069
558
0.962069
0
0
0
0
0
0
217
0.374138
46f32983b778972015b0fe2f9086e189aa4ddb58
3,840
py
Python
hwtLib/xilinx/locallink/axis_conv.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
hwtLib/xilinx/locallink/axis_conv.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
hwtLib/xilinx/locallink/axis_conv.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from hwt.code import Concat, Switch, If from hwt.hdl.typeShortcuts import vec from hwt.interfaces.utils import addClkRstn, propagateClkRstn from hwt.synthesizer.param import Param from hwt.synthesizer.unit import Unit from hwtLib.amba.axis import AxiStream from hwtLib.xil...
25.430464
82
0.58724
3,143
0.81849
159
0.041406
0
0
0
0
800
0.208333
46f492ce8bbd51b82ba43d37275a6e3759094db3
5,763
py
Python
src/bat/renamefiles.py
armijnhemel/binaryanalysis
1d186d1f6b711b83a6f8e0ffbcce37284ffa1c16
[ "Apache-2.0" ]
78
2016-09-29T08:26:50.000Z
2022-02-21T23:41:23.000Z
src/bat/renamefiles.py
armijnhemel/binaryanalysis
1d186d1f6b711b83a6f8e0ffbcce37284ffa1c16
[ "Apache-2.0" ]
7
2016-10-14T14:32:00.000Z
2018-03-17T17:28:42.000Z
src/bat/renamefiles.py
armijnhemel/binaryanalysis
1d186d1f6b711b83a6f8e0ffbcce37284ffa1c16
[ "Apache-2.0" ]
50
2016-10-05T06:22:38.000Z
2022-02-03T16:08:48.000Z
#!/usr/bin/python # Binary Analysis Tool # Copyright 2015-2016 Armijn Hemel for Tjaldur Software Governance Solutions # Licensed under Apache 2.0, see LICENSE file for details import shutil import os.path import copy ''' This aggregate scan traverses the unpackreports an tries to rename certain files based on proper...
48.838983
136
0.495402
0
0
0
0
0
0
0
0
1,401
0.243103
46f529ee223628b6a5b01d5ac087af9e7d7bb5b3
7,863
py
Python
baseline_models/slowvae/train.py
slachapelle/anon_disentanglement_via_mechanism_sparsity
677f7e160f3532e1357a3c7f35f9f8f8529b389a
[ "Apache-2.0" ]
null
null
null
baseline_models/slowvae/train.py
slachapelle/anon_disentanglement_via_mechanism_sparsity
677f7e160f3532e1357a3c7f35f9f8f8529b389a
[ "Apache-2.0" ]
null
null
null
baseline_models/slowvae/train.py
slachapelle/anon_disentanglement_via_mechanism_sparsity
677f7e160f3532e1357a3c7f35f9f8f8529b389a
[ "Apache-2.0" ]
null
null
null
import argparse import shutil import os, json, sys, traceback, time import pathlib try: from comet_ml import Experiment COMET_AVAIL = True except: COMET_AVAIL = False import numpy as np import torch import datetime sys.path.insert(0, str(pathlib.Path(__file__).parent)) from scripts.solver import Solver s...
46.526627
127
0.6336
0
0
0
0
0
0
0
0
2,132
0.271143
46f57addab66e45928b367affb186d84c36a11cb
854
py
Python
Lottery/loterry.py
camicasii/Casino
0534092c1b2746d5561761b65bad1a97982a54f6
[ "MIT" ]
null
null
null
Lottery/loterry.py
camicasii/Casino
0534092c1b2746d5561761b65bad1a97982a54f6
[ "MIT" ]
null
null
null
Lottery/loterry.py
camicasii/Casino
0534092c1b2746d5561761b65bad1a97982a54f6
[ "MIT" ]
null
null
null
from TicketGenerator import TicketGenerator as Tickes import random class Lottery: def __init__(self,seed=18,size=6,maxTickes=10,all=False): self.maxTickes=maxTickes self.tickes =Tickes(seed=seed,size=size,maxTickes=maxTickes,all=all).tickes self.seller=[] self.sell() ...
23.081081
89
0.571429
672
0.786885
0
0
0
0
0
0
35
0.040984
46f6b7548af61ad27d9501b669160abd5dd775c5
704
py
Python
hypernets/tabular/__init__.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
3
2022-03-25T23:27:44.000Z
2022-03-27T01:32:28.000Z
hypernets/tabular/__init__.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
hypernets/tabular/__init__.py
Enpen/Hypernets
5fbf01412ffaef310855d98f52f8cc169e96246b
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ """ from ._base import get_tool_box, register_toolbox, register_transformer, tb_transformer from .toolbox import ToolBox register_toolbox(ToolBox) try: import dask.dataframe as dd import dask_ml from .dask_ex import DaskToolBox register_toolbox(DaskToolBox, 0) is_dask...
19.555556
87
0.715909
0
0
0
0
0
0
0
0
113
0.160511
46f71f98ecaf6509dfb1c8c18122f3a925f3229c
115
py
Python
geophires_simulation/__init__.py
tuw-eeg/GEOPHIRES-simulation
14343cefd7c373f240e610a5a5a1143457a4f8d4
[ "Apache-2.0" ]
null
null
null
geophires_simulation/__init__.py
tuw-eeg/GEOPHIRES-simulation
14343cefd7c373f240e610a5a5a1143457a4f8d4
[ "Apache-2.0" ]
null
null
null
geophires_simulation/__init__.py
tuw-eeg/GEOPHIRES-simulation
14343cefd7c373f240e610a5a5a1143457a4f8d4
[ "Apache-2.0" ]
null
null
null
# Expose the main function to the outside world under the alias "simulate" from .main import main_func as simulate
38.333333
74
0.8
0
0
0
0
0
0
0
0
74
0.643478
46f727d602c8ba9999e35ad52eeeadffe23d46a0
3,086
py
Python
cogs/everestpins.py
leo60228/everestbot
53bbf6a5b42a71889ed3de02cc65f22fedddf313
[ "MIT" ]
1
2020-08-30T22:16:13.000Z
2020-08-30T22:16:13.000Z
cogs/everestpins.py
leo60228/everestbot
53bbf6a5b42a71889ed3de02cc65f22fedddf313
[ "MIT" ]
null
null
null
cogs/everestpins.py
leo60228/everestbot
53bbf6a5b42a71889ed3de02cc65f22fedddf313
[ "MIT" ]
null
null
null
import time import config import discord from discord.ext import commands class EverestPins: def __init__(self, bot): self.bot = bot @commands.command() async def ahorn(self, ctx): embed = discord.Embed(title="Ahorn Downloads", url="https://github.com/Celesti...
56.109091
230
0.642579
2,973
0.958414
0
0
2,867
0.924242
2,723
0.877821
1,711
0.55158
46f79c6995e3596cb2225c315e33d1b7fa73ac8b
291
py
Python
FacialRecognition/Media Manipulation/open_camera.py
markgacoka/micro-projects
e8115c8270a115282e7dfda6e24620b3333f8c6b
[ "MIT" ]
1
2021-03-19T10:42:07.000Z
2021-03-19T10:42:07.000Z
Media Manipulation/open_camera.py
markgacoka/FacialRecognition
af3e4e37f40f7995f2e276c35283bbe3b73a2a27
[ "MIT" ]
null
null
null
Media Manipulation/open_camera.py
markgacoka/FacialRecognition
af3e4e37f40f7995f2e276c35283bbe3b73a2a27
[ "MIT" ]
null
null
null
import numpy as np import cv2 video = cv2.VideoCapture(0) while(True): ret, frame = video.read() resized_video = cv2.resize(frame, (1000, 700)) cv2.imshow('Video Capture', resized_video) if cv2.waitKey(10) == ord('q'): break video.release() cv2.destroyAllWindows()
20.785714
50
0.666667
0
0
0
0
0
0
0
0
18
0.061856
46faddb5936830fe08f886c938c95f1e747a2f63
362
py
Python
test/src/lib/idol/py_mar/codegen/all/target/optional_service.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
test/src/lib/idol/py_mar/codegen/all/target/optional_service.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
2
2020-03-24T18:03:10.000Z
2020-03-31T10:41:56.000Z
test/src/lib/idol/py_mar/codegen/all/target/optional_service.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
# DO NOT EDIT # This file was generated by idol_mar, any changes will be lost when idol_mar is rerun again from marshmallow import Schema from .optional_method import AllTargetOptionalMethodField class AllTargetOptionalServiceSchema(Schema): optional = AllTargetOptionalMethodField( dump_to="optional", loa...
32.909091
92
0.792818
163
0.450276
0
0
0
0
0
0
125
0.345304
46fbd511834efaa0b005f2300675fbcff5d8801c
4,193
py
Python
robot.py
3299/2018
b886b1409d3240ad1e2dad7ecee963e401c7bfec
[ "MIT" ]
null
null
null
robot.py
3299/2018
b886b1409d3240ad1e2dad7ecee963e401c7bfec
[ "MIT" ]
null
null
null
robot.py
3299/2018
b886b1409d3240ad1e2dad7ecee963e401c7bfec
[ "MIT" ]
null
null
null
""" Main logic code """ import wpilib from inits import Component import helpers from components.chassis import Chassis from autonomous import Autonomous from components.lights import Lights from components.metabox import MetaBox from components.winch import Winch from components.pdb import Power from networktables...
35.235294
126
0.589554
3,799
0.906034
0
0
0
0
0
0
898
0.214166
46fc0e73c34a3b1f86eeecfd31ad3ce03445be4e
6,496
py
Python
iotFlaskPro/apis/aep_device_management.py
ChrisLeff/IOT-BUAA_2021
e8220350a156daba93e6baf91c793a81629aa956
[ "MIT" ]
2
2022-02-28T15:07:53.000Z
2022-03-01T06:57:20.000Z
iotFlaskPro/apis/aep_device_management.py
ChrisLeff/IOT-BUAA_2021
e8220350a156daba93e6baf91c793a81629aa956
[ "MIT" ]
null
null
null
iotFlaskPro/apis/aep_device_management.py
ChrisLeff/IOT-BUAA_2021
e8220350a156daba93e6baf91c793a81629aa956
[ "MIT" ]
null
null
null
#!/usr/bin/python # encoding=utf-8 import sys if sys.version_info[0] == 2: # Python2 import core.AepSdkRequestSend as AepSdkRequestSend else: # Python3 from apis.core import AepSdkRequestSend #参数MasterKey: 类型String, 参数不可以为空 # 描述:MasterKey在该设备所属产品的概况中可以查看 #参数productId: 类型long, 参数不可以为空 # 描述: #参数sear...
31.533981
120
0.704895
0
0
0
0
0
0
0
0
3,536
0.456612
46fd902b540497f93d018433534679e3a97042d2
8,933
py
Python
examples/Random/Random.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
examples/Random/Random.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
examples/Random/Random.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Iotic Labs Ltd. 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 # # https://github.com/Iotic-Labs/py-IoticBulkData/blob/master/LICENSE # # Unless...
38.175214
113
0.629912
7,397
0.828053
0
0
0
0
0
0
1,662
0.186052
46fda291ce75700d6c941a1210e9051ba1026be6
400
py
Python
hermione/module_templates/__IMPLEMENTED_BASE__/src/api/myrequests.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
183
2020-06-03T22:43:14.000Z
2022-03-17T22:39:07.000Z
hermione/module_templates/__IMPLEMENTED_BASE__/src/api/myrequests.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
31
2020-06-03T22:55:18.000Z
2022-03-27T20:06:17.000Z
hermione/module_templates/__IMPLEMENTED_BASE__/src/api/myrequests.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
43
2020-06-03T22:45:03.000Z
2021-12-29T19:43:54.000Z
import requests import json url = 'http://localhost:5000/invocations' data = { 'Pclass':[3,3,3], 'Sex': ['male', 'female', 'male'], 'Age':[4, 22, 28] } j_data = json.dumps(data) headers = {'Content-Type': 'application/json'} print("Sending request for model...") print(f"Data: {j_data}") r...
23.529412
52
0.6175
0
0
0
0
0
0
0
0
173
0.4325
46fe9f836dbdd86b3fbfa9bbee4ce5237f317f4d
171
py
Python
tsqr/user2.py
hanwoody/docs-1
55aec2f77f345c2f219ea69f61b919f61e8700f2
[ "Apache-2.0" ]
null
null
null
tsqr/user2.py
hanwoody/docs-1
55aec2f77f345c2f219ea69f61b919f61e8700f2
[ "Apache-2.0" ]
null
null
null
tsqr/user2.py
hanwoody/docs-1
55aec2f77f345c2f219ea69f61b919f61e8700f2
[ "Apache-2.0" ]
null
null
null
import sys import mrutil # NxN matrix def serialLine(matrix): for line in matrix: list_new = [str(x) for x in line] kvstr = ",".join(list_new) mrutil.emit([kvstr])
19
35
0.690058
0
0
0
0
0
0
0
0
15
0.087719
46feb8044826238fc9d8d9d895df1bb66042d882
1,207
py
Python
genindex.py
miguelgrinberg/twilio-openapi-docs
1f92dd1b433037ac1f893572408d3d96750dc831
[ "MIT" ]
3
2021-04-22T18:44:59.000Z
2021-04-27T01:12:28.000Z
genindex.py
miguelgrinberg/twilio-openapi-docs
1f92dd1b433037ac1f893572408d3d96750dc831
[ "MIT" ]
null
null
null
genindex.py
miguelgrinberg/twilio-openapi-docs
1f92dd1b433037ac1f893572408d3d96750dc831
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re import urllib.request template = ''' <!doctype html> <html> <head> <title>Twilio OpenAPI Documentation</title> <style> body { text-align: center; } ul { list-style-type: none; display: flex; flex-wrap: wrap; padding-i...
21.175439
107
0.555924
0
0
0
0
0
0
0
0
923
0.764706
46ff9fba20209668c437a076f4febcd60a6c1518
104,686
py
Python
EnrollmentStation/Binaries/YubikeyManager/pymodules/smartcard/scard/scard.py
dennisrahmen/EnrollmentStation
a145345f9bb91bccb2bd67b349af8cfc4ec9e290
[ "MIT" ]
1
2020-03-16T14:57:15.000Z
2020-03-16T14:57:15.000Z
EnrollmentStation/Binaries/YubikeyManager/pymodules/smartcard/scard/scard.py
dennisrahmen/EnrollmentStation
a145345f9bb91bccb2bd67b349af8cfc4ec9e290
[ "MIT" ]
null
null
null
EnrollmentStation/Binaries/YubikeyManager/pymodules/smartcard/scard/scard.py
dennisrahmen/EnrollmentStation
a145345f9bb91bccb2bd67b349af8cfc4ec9e290
[ "MIT" ]
1
2022-02-04T14:55:45.000Z
2022-02-04T14:55:45.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.0 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """ The smartcard.scard module is a simple wrapper on top of the C language PCSC SCardXXX API. The smartcard.scard m...
33.424649
249
0.675936
194
0.001853
0
0
0
0
0
0
90,708
0.866477
200010fc68a811414b58910a066945d5e6e9b2e8
2,027
py
Python
onlinejudge/_implementation/command/split_input.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
onlinejudge/_implementation/command/split_input.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
onlinejudge/_implementation/command/split_input.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
# Python Version: 3.x import subprocess import sys import time from typing import * from typing.io import * import onlinejudge._implementation.format_utils as format_utils import onlinejudge._implementation.logging as log if TYPE_CHECKING: import argparse def non_block_read(fh: IO[Any]) -> str: # workaround...
31.671875
126
0.556487
0
0
0
0
0
0
0
0
187
0.092255
2000f6bca79b14f3980ef41fb7acabbb4ceb4180
334
py
Python
photographer/views.py
shiv-source/online-photographer-finder
d72089fef03a6ebc30c96a29820a0751f70d5b9a
[ "MIT" ]
1
2020-06-19T22:41:59.000Z
2020-06-19T22:41:59.000Z
photographer/views.py
shiv-source/online-photographer-finder
d72089fef03a6ebc30c96a29820a0751f70d5b9a
[ "MIT" ]
null
null
null
photographer/views.py
shiv-source/online-photographer-finder
d72089fef03a6ebc30c96a29820a0751f70d5b9a
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Photorecorder from django.contrib.auth.decorators import login_required # Create your views here. @login_required(login_url='/account/login/') def user(request): Photorec = Photorecorder.objects.all() return render(request, 'photographer.html',{'Photorec...
33.4
71
0.781437
0
0
0
0
178
0.532934
0
0
71
0.212575
200358a6a93b6e371ca0faec84207e445afd7915
24,656
py
Python
linkwarner/linkwarner.py
jack1142/JackCogs
ad3b5c43e4597f92816db8f0974f8f61d511abc3
[ "Apache-2.0" ]
18
2019-01-18T07:00:26.000Z
2021-09-22T00:12:40.000Z
linkwarner/linkwarner.py
jack1142/JackCogs
ad3b5c43e4597f92816db8f0974f8f61d511abc3
[ "Apache-2.0" ]
43
2019-04-28T01:31:17.000Z
2022-03-08T02:17:55.000Z
linkwarner/linkwarner.py
jack1142/JackCogs
ad3b5c43e4597f92816db8f0974f8f61d511abc3
[ "Apache-2.0" ]
20
2020-01-21T10:49:37.000Z
2022-03-21T02:16:45.000Z
# Copyright 2018-2021 Jakub Kuczys (https://github.com/jack1142) # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
39.4496
88
0.624108
23,447
0.950965
0
0
19,673
0.797899
20,568
0.834199
8,771
0.355735
20037c2305209c3714382f992c3dbf0aa31b9950
384
py
Python
app/commands/base.py
AndersonSMed/DiscordBot
f42bae852b72d486d347416c7594d1631158631a
[ "MIT" ]
2
2021-02-05T18:43:10.000Z
2021-02-09T01:23:27.000Z
app/commands/base.py
AndersonSMed/DiscordBot
f42bae852b72d486d347416c7594d1631158631a
[ "MIT" ]
5
2021-02-05T17:15:21.000Z
2021-06-23T00:39:51.000Z
app/commands/base.py
AndersonSMed/EducaBot
f42bae852b72d486d347416c7594d1631158631a
[ "MIT" ]
null
null
null
import abc class Base(abc.ABC): command_name = None def __init__(self, client, message, payload=None): self.client = client self.message = message self.payload = payload if not self.command_name: raise ValueError('Should have a command name!') @abc.abstractme...
21.333333
59
0.638021
370
0.963542
0
0
78
0.203125
54
0.140625
29
0.075521
2003a339006e0e413215fedb71b8a6d01e840444
2,375
py
Python
src/spaceone/inventory/connector/aws_sqs_connector/connector.py
spaceone-dev/plugin-aws-cloud-service-inven-collector
aa252a41940e0941d4b0f7be7fc05d152da654dd
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/aws_sqs_connector/connector.py
spaceone-dev/plugin-aws-cloud-service-inven-collector
aa252a41940e0941d4b0f7be7fc05d152da654dd
[ "Apache-2.0" ]
1
2022-02-10T04:38:11.000Z
2022-02-10T04:38:11.000Z
src/spaceone/inventory/connector/aws_sqs_connector/connector.py
spaceone-dev/plugin-aws-cloud-service-inven-collector
aa252a41940e0941d4b0f7be7fc05d152da654dd
[ "Apache-2.0" ]
1
2021-11-15T05:19:44.000Z
2021-11-15T05:19:44.000Z
import time import logging from typing import List import json from spaceone.core.utils import * from spaceone.inventory.connector.aws_sqs_connector.schema.data import QueData, RedrivePolicy from spaceone.inventory.connector.aws_sqs_connector.schema.resource import SQSResponse, QueResource from spaceone.inventory.conn...
35.984848
110
0.634526
1,874
0.789053
965
0.406316
0
0
0
0
282
0.118737
20059b820157bb2d0ee1f766dc27bdd85fb8b399
936
py
Python
Code in Place/Assignment2/nimm.py
LuisAdolfoAlves/Stanford
8358d315a4c475359742a70eb862a3ac71abd042
[ "MIT" ]
null
null
null
Code in Place/Assignment2/nimm.py
LuisAdolfoAlves/Stanford
8358d315a4c475359742a70eb862a3ac71abd042
[ "MIT" ]
null
null
null
Code in Place/Assignment2/nimm.py
LuisAdolfoAlves/Stanford
8358d315a4c475359742a70eb862a3ac71abd042
[ "MIT" ]
null
null
null
""" File: nimm.py ------------------------- Add your comments here. """ def main(): stones = 20 while stones > -1: for player in range(1, 3): if stones == 0: print(f'Player {player} wins!') stones -= 1 break print(f'There are {sto...
24.631579
91
0.470085
0
0
0
0
0
0
0
0
342
0.365385
2007d963b430c7008bffb6ba4fc10719f5949ab9
1,842
py
Python
test/validation/test_validation_duration.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
150
2016-10-05T11:09:36.000Z
2022-03-06T16:24:41.000Z
test/validation/test_validation_duration.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
27
2017-03-02T03:37:02.000Z
2022-02-10T04:59:54.000Z
test/validation/test_validation_duration.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
21
2016-11-11T07:51:48.000Z
2020-04-26T21:38:33.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
29.709677
74
0.721498
1,157
0.628122
0
0
0
0
0
0
626
0.339848
200887615ac67e1a7a3968d230b1ee9b68acdafe
1,371
py
Python
ssidstat/ssidstatd/monitor.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
ssidstat/ssidstatd/monitor.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
ssidstat/ssidstatd/monitor.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
import time import daemon from ssidstat.common import db from ssidstat.common import sysutils class MonitorDaemon(daemon.Daemon): def __init__(self, dbfile, pidfile, interval=10, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): daemon.Daemon.__init__(self, pidfile, stdin=stdin, stdout=stdout, stderr=st...
26.882353
109
0.726477
1,273
0.928519
0
0
0
0
0
0
83
0.06054
20090d71a734d2ab4af55b54fdaa56d50241ad80
8,899
py
Python
MHD/FEniCS/MHD/CG/Ex6/3dCavityFlow.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2020-10-25T13:30:20.000Z
2021-08-10T21:27:30.000Z
MHD/FEniCS/MHD/CG/Ex6/3dCavityFlow.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
null
null
null
MHD/FEniCS/MHD/CG/Ex6/3dCavityFlow.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2019-10-28T16:12:13.000Z
2020-01-13T13:59:44.000Z
#!/usr/bin/python import petsc4py import slepc4py import sys petsc4py.init(sys.argv) slepc4py.init(sys.argv) from petsc4py import PETSc from slepc4py import SLEPc Print = PETSc.Sys.Print # from MatrixOperations import * from dolfin import * import numpy as np import matplotlib.pylab as plt import scipy.sparse as sps ...
26.564179
166
0.54759
0
0
0
0
0
0
0
0
1,470
0.165187
200a07a8f6c323cf28ccdef7bc5e7ac20a331280
206
py
Python
src/onegov/winterthur/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.winterthur.forms.mission_report import MissionReportForm from onegov.winterthur.forms.mission_report import MissionReportVehicleForm __all__ = ('MissionReportForm', 'MissionReportVehicleForm')
41.2
75
0.868932
0
0
0
0
0
0
0
0
45
0.218447
200c3ab143b719e01a8471eeab8c7b2a5fb55afb
1,322
py
Python
operating_system/first_in_first_out/Python/FCFS.py
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
operating_system/first_in_first_out/Python/FCFS.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
operating_system/first_in_first_out/Python/FCFS.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
''' Author - Ronak Vadhaiya FCFS ''' import math def FCFS(n_process, data): ttr, ttw = 0, 0 print("="*20 + "FCFS" + "="*20) tr = data[0][1] wt = 0 ttr += tr prev = data[0][0] + data[0][1] print("P1", "Start Time: ", data[0][0], "End Time: ", data[0][0]+data[0][1], "TR : ", tr, "...
26.44
63
0.516641
0
0
0
0
0
0
0
0
247
0.186838
200c3d5ac5bbf2a6efa0995f9b7a1d5bf57885ff
2,418
py
Python
ps1/src/linearclass/gda.py
Ziggareto/cs229
10b03b68b24d252dad3e3437561976d9509ebdd0
[ "MIT" ]
null
null
null
ps1/src/linearclass/gda.py
Ziggareto/cs229
10b03b68b24d252dad3e3437561976d9509ebdd0
[ "MIT" ]
null
null
null
ps1/src/linearclass/gda.py
Ziggareto/cs229
10b03b68b24d252dad3e3437561976d9509ebdd0
[ "MIT" ]
null
null
null
import numpy as np import linearclass.util def main(train_path, valid_path, save_path): """Problem: Gaussian discriminant analysis (GDA) Args: train_path: Path to CSV file containing dataset for training. valid_path: Path to CSV file containing dataset for validation. save_path: Path ...
30.225
75
0.597601
1,486
0.614557
0
0
0
0
0
0
1,655
0.68445
200d4644111b8e6220fee55b1430740b1b5fa0ab
84
py
Python
pws_br/source/user_defined_functions/udf_types.py
stop-it-h2020-project/PublicWarningNotificationSystem
b2d5e80a10dcb40e7638e36613fa0c1a6cb95939
[ "CC-BY-4.0" ]
null
null
null
pws_br/source/user_defined_functions/udf_types.py
stop-it-h2020-project/PublicWarningNotificationSystem
b2d5e80a10dcb40e7638e36613fa0c1a6cb95939
[ "CC-BY-4.0" ]
null
null
null
pws_br/source/user_defined_functions/udf_types.py
stop-it-h2020-project/PublicWarningNotificationSystem
b2d5e80a10dcb40e7638e36613fa0c1a6cb95939
[ "CC-BY-4.0" ]
null
null
null
BOOL = "BOOL" INT = "INT" DOUBLE = "DOUBLE" STRING = "STRING" DURATION = "DURATION"
14
21
0.642857
0
0
0
0
0
0
0
0
37
0.440476
200d540302c3b1b222fe7b8506d0b431a429e984
69
py
Python
serverless/tests/CreateEndpoint_event.py
shobhitsundriyal/space_bandits_deployment
c0f87fb4dfda7b35225cdf3f228920eb64f168ed
[ "MIT" ]
null
null
null
serverless/tests/CreateEndpoint_event.py
shobhitsundriyal/space_bandits_deployment
c0f87fb4dfda7b35225cdf3f228920eb64f168ed
[ "MIT" ]
1
2022-03-26T08:42:55.000Z
2022-03-26T08:42:55.000Z
serverless/tests/CreateEndpoint_event.py
shobhitsundriyal/space_bandits_deployment
c0f87fb4dfda7b35225cdf3f228920eb64f168ed
[ "MIT" ]
1
2020-03-27T19:47:56.000Z
2020-03-27T19:47:56.000Z
# coding: utf-8 # In[ ]: { "MLModelId": "ml-ModelExampleId" }
6.272727
34
0.536232
0
0
0
0
0
0
0
0
53
0.768116
200de3e606ff6ab210f5f66800ffdc8b73b8e1ee
902,000
py
Python
data.py
dskart/perceptron_classifier
936f763d8dcdb11898628cce2be50e68d0259296
[ "MIT" ]
null
null
null
data.py
dskart/perceptron_classifier
936f763d8dcdb11898628cce2be50e68d0259296
[ "MIT" ]
null
null
null
data.py
dskart/perceptron_classifier
936f763d8dcdb11898628cce2be50e68d0259296
[ "MIT" ]
null
null
null
iris = [ ((6.0, 2.2, 4.0, 1.0), "iris-versicolor"), ((6.9, 3.1, 5.4, 2.1), "iris-virginica" ), ((5.5, 2.4, 3.7, 1.0), "iris-versicolor"), ((6.3, 2.8, 5.1, 1.5), "iris-virginica" ), ((6.8, 3.0, 5.5, 2.1), "iris-virginica" ), ((6.3, 2.7, 4.9, 1.8), "iris-virginica" ), ((6.3, 3.4, 5.6, 2...
129.059951
204
0.414328
0
0
0
0
0
0
0
0
2,300
0.00255
200ef42bfef4d6393d9dcce9e1c4825bb9b3de29
7,162
py
Python
sacla/scripts/pv3.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/pv3.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/pv3.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
#PILATUS pilat_file_path = 'BL24I-EA-PILAT-01:cam1:FilePath' pilat_file_name = 'BL24I-EA-PILAT-01:cam1:FileName' pilat_file_temp = 'BL24I-EA-PILAT-01:cam1:FileTemplate' pilat_numb_imgs = 'BL24I-EA-PILAT-01:cam1:NumImages' pilat_file_num = 'BL24I-EA-PILAT-01:cam1:FileNumber' pilat_acquire = 'BL24I-EA-PILAT-01:cam1:Acqui...
34.599034
58
0.740575
0
0
0
0
0
0
0
0
4,504
0.628875
200f1d4b82c58a0465fa2637a27c721e431a980f
2,532
py
Python
tracardi/process_engine/action/v1/flow/property_exists/plugin.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/process_engine/action/v1/flow/property_exists/plugin.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/process_engine/action/v1/flow/property_exists/plugin.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
14
2021-10-17T11:39:04.000Z
2022-03-14T14:44:02.000Z
from tracardi.process_engine.action.v1.flow.property_exists.model.configuration import Configuration from tracardi.service.plugin.domain.register import Plugin, Spec, MetaData, Documentation, PortDoc, Form, FormGroup, \ FormField, FormComponent from tracardi.service.plugin.domain.result import Result from tracardi....
35.661972
119
0.525276
409
0.161532
0
0
0
0
288
0.113744
536
0.21169
200fe5bb13aa8a362c4acb4df1a5ad2b2c8c36a2
8,178
py
Python
experiments/s3dis/train.py
corochann/chainer-pointnet
4b0350122c6a704ebea9bf206896a6f18e1ab4d7
[ "MIT" ]
37
2018-06-01T21:10:58.000Z
2021-11-14T15:42:33.000Z
experiments/s3dis/train.py
KosukeArase/chainer-pointnet
4b0350122c6a704ebea9bf206896a6f18e1ab4d7
[ "MIT" ]
3
2018-07-20T10:16:07.000Z
2019-10-01T01:36:52.000Z
experiments/s3dis/train.py
KosukeArase/chainer-pointnet
4b0350122c6a704ebea9bf206896a6f18e1ab4d7
[ "MIT" ]
11
2018-08-01T07:05:41.000Z
2022-03-23T06:07:00.000Z
#!/usr/bin/env python from __future__ import print_function import argparse from distutils.util import strtobool import os import chainer from chainer import serializers from chainer import iterators from chainer import optimizers from chainer import training from chainer.dataset import to_device, concat_examples fro...
39.892683
94
0.663732
0
0
0
0
0
0
0
0
1,598
0.195402
20105ad6c1b6144c00a1af858c386181e3dcb971
4,617
py
Python
tests/image/test_init.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
111
2015-02-05T15:24:15.000Z
2022-03-31T03:31:22.000Z
tests/image/test_init.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
355
2015-01-01T16:18:46.000Z
2022-03-18T15:41:10.000Z
tests/image/test_init.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
79
2015-02-23T17:07:32.000Z
2022-01-03T09:15:39.000Z
import os import pytest from click.testing import CliRunner from shub.exceptions import BadConfigException from shub.image.init import cli from shub.image.init import _format_system_deps from shub.image.init import _format_system_env from shub.image.init import _format_requirements from shub.image.init import _wrap ...
35.515385
100
0.675114
0
0
0
0
438
0.094867
0
0
1,461
0.316439
2014bfd95f78901caeb13c9daf7444041662fd7c
6,195
py
Python
ufo2otf/compilers.py
debian-janitor/ufo2otf-debian
1203d95f454d918ab74ffef0f7f00addbd410ded
[ "BSD-3-Clause" ]
21
2015-05-04T14:15:01.000Z
2021-11-15T03:17:58.000Z
ufo2otf/compilers.py
debian-janitor/ufo2otf-debian
1203d95f454d918ab74ffef0f7f00addbd410ded
[ "BSD-3-Clause" ]
4
2018-07-31T10:07:29.000Z
2020-09-10T11:13:45.000Z
ufo2otf/compilers.py
fonts/ufo2otf
9025ba292c2a17e7dc8010c4fed79ab1a036403a
[ "BSD-3-Clause" ]
3
2016-01-26T04:01:13.000Z
2017-12-08T13:16:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import mkdir from os.path import splitext, dirname, sep, join, exists, basename from subprocess import Popen from diagnostics import diagnostics, known_compilers, FontError import codecs import re diagnostics = diagnostics() class Compiler: def __init__(self,...
36.875
96
0.504762
5,915
0.954186
0
0
0
0
0
0
2,187
0.352799
2014e723afe7cd6d380a497e7707c33b3a2406d2
1,999
py
Python
model_converter.py
dylancrockett/classical-music-generator-ai
8f8416c022cecd238be80473acbf497d052516c5
[ "MIT" ]
null
null
null
model_converter.py
dylancrockett/classical-music-generator-ai
8f8416c022cecd238be80473acbf497d052516c5
[ "MIT" ]
null
null
null
model_converter.py
dylancrockett/classical-music-generator-ai
8f8416c022cecd238be80473acbf497d052516c5
[ "MIT" ]
null
null
null
from midi_converter import char_to_note, note_to_char import random def load_data(filename): data = [] # load the file with open(filename, "r") as f: file = f.readlines() for line in file: line = line.replace("\n", "") line = line.replace(",", "") data...
18.682243
66
0.511756
468
0.234117
0
0
0
0
0
0
163
0.081541
2015cd2bc695dff119d87cd94a61638c234d79af
2,978
py
Python
src/baseline_main.py
NaiboWang/HFL-CS6203-NaiboShiqi
4bab35a20f1ec1229b0011c952d93c341579c402
[ "MIT" ]
null
null
null
src/baseline_main.py
NaiboWang/HFL-CS6203-NaiboShiqi
4bab35a20f1ec1229b0011c952d93c341579c402
[ "MIT" ]
null
null
null
src/baseline_main.py
NaiboWang/HFL-CS6203-NaiboShiqi
4bab35a20f1ec1229b0011c952d93c341579c402
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.8 """ This script is used to run the baseline experiments by arguments from commandline. Please see readme.md to see the supported arguments. """ import pickle import time from tqdm import tqdm import matplotlib.pyplot as plt from utils import * from o...
36.765432
178
0.659167
0
0
0
0
0
0
0
0
711
0.238751
20162944698b6ab02ecf96bed6303ceed2e3a8ae
498
py
Python
setup.py
GOIT-Course-Project/Module-1-CP
93674b1d65665762debd994e02361fe653c7bad1
[ "MIT" ]
null
null
null
setup.py
GOIT-Course-Project/Module-1-CP
93674b1d65665762debd994e02361fe653c7bad1
[ "MIT" ]
null
null
null
setup.py
GOIT-Course-Project/Module-1-CP
93674b1d65665762debd994e02361fe653c7bad1
[ "MIT" ]
null
null
null
from setuptools import setup, find_namespace_packages setup( name='personal_assistant', version='1.0.0', authors=('Volodymyr Dunkin', 'Andrii Mikhalkin'), description='personal assistant', entry_points={'console_scripts': [ 'assist = personal_assistant.general:main']}, long_des...
33.2
116
0.710843
0
0
0
0
0
0
0
0
248
0.497992
201664b688293c2f210424f82b9dea760c6421c4
2,160
py
Python
openmdao/test_suite/groups/parametric_group.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/test_suite/groups/parametric_group.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/test_suite/groups/parametric_group.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
"""Define the test group classes.""" from __future__ import division, print_function from openmdao.core.group import Group class ParametericTestGroup(Group): """ Test Group expected by `ParametricInstance`. Groups inheriting from this should extend `default_params` to include valid parametric options for...
40.754717
99
0.598611
2,033
0.941204
0
0
0
0
0
0
1,167
0.540278
2016f524e2a1b9db4f8a8bef592b86cb754e2948
2,577
py
Python
CSE4309/assignment 6/knn_classify.py
theoneineed/MLandVision
b9bbef887ed63829e958daee660dd7a900e55f8f
[ "MIT" ]
null
null
null
CSE4309/assignment 6/knn_classify.py
theoneineed/MLandVision
b9bbef887ed63829e958daee660dd7a900e55f8f
[ "MIT" ]
null
null
null
CSE4309/assignment 6/knn_classify.py
theoneineed/MLandVision
b9bbef887ed63829e958daee660dd7a900e55f8f
[ "MIT" ]
null
null
null
#Nabin Chapagain #1001551151 #knn_classify(<training_file>, <test_file>, <k>) # Importing all needed libraries import numpy as np import math import sys import random from scipy import stats from scipy.spatial import distance import statistics as s from statistics import mean, median, mode, stdev fname = sys.argv[1]...
25.019417
112
0.683741
0
0
0
0
0
0
0
0
528
0.204889
2019b9e2d05e4a4a7e89f2421f88750a1ab6eff8
638
py
Python
var/spack/repos/builtin/packages/perl-getopt-tabular/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/perl-getopt-tabular/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/perl-getopt-tabular/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlGetoptTabular(PerlPackage): """Getopt::Tabular is a Perl 5 module for table-driven arg...
39.875
93
0.753918
417
0.653605
0
0
0
0
0
0
512
0.802508
201aafc09a27272df9e65b3abf61a1c4c43849ac
3,218
py
Python
aileen/box/management/commands/monitor_tmux.py
aileenproject/aileen
ea3cee33658e8f0a32edc806b4aad22a75227f26
[ "MIT" ]
11
2018-12-16T10:59:19.000Z
2019-04-13T09:35:25.000Z
aileen/box/management/commands/monitor_tmux.py
aileenproject/aileen-core
ea3cee33658e8f0a32edc806b4aad22a75227f26
[ "MIT" ]
6
2019-07-08T09:21:50.000Z
2019-11-08T08:21:54.000Z
aileen/box/management/commands/monitor_tmux.py
aileenproject/aileen-core
ea3cee33658e8f0a32edc806b4aad22a75227f26
[ "MIT" ]
3
2019-01-17T23:18:27.000Z
2019-04-13T09:55:05.000Z
import logging import os import time from datetime import datetime import pytz from django.conf import settings from django.core.management.base import BaseCommand import libtmux from box.management.commands.run_box import start_sensor_in_tmux from box.models import BoxSettings from box.utils.dir_handling import buil...
33.175258
115
0.686451
957
0.29739
0
0
0
0
0
0
872
0.270976
201ab30fb25e805b4259dacde1a4af4992404af1
8,244
py
Python
pySPM/nanoscan.py
BBarbara-fr/pySPM
6dfd59b0e873173c455b1085e091495cf775f852
[ "Apache-2.0" ]
39
2016-08-23T19:12:29.000Z
2022-02-11T11:36:33.000Z
pySPM/nanoscan.py
BBarbara-fr/pySPM
6dfd59b0e873173c455b1085e091495cf775f852
[ "Apache-2.0" ]
24
2018-04-26T12:05:00.000Z
2022-02-27T12:36:51.000Z
pySPM/nanoscan.py
BBarbara-fr/pySPM
6dfd59b0e873173c455b1085e091495cf775f852
[ "Apache-2.0" ]
40
2018-01-23T07:11:14.000Z
2022-03-11T12:41:49.000Z
# -- coding: utf-8 -- # Copyright 2018 Olivier Scholder <o.scholder@gmail.com> import os import base64 import xml.etree.ElementTree as ET import struct import numpy as np import pySPM.SPM from pySPM.SPM import SPM_image, funit from .utils.misc import aliased, alias, deprecated @deprecated("getCurve") def get_curve(f...
49.071429
198
0.563925
6,517
0.789844
0
0
7,967
0.96558
0
0
3,245
0.393286
201b60efc08461f66b0f374787bf9604d5d7d204
424
py
Python
pset_loops/dict_loops/p1.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_loops/dict_loops/p1.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_loops/dict_loops/p1.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" Contacts """ # You went to a conference and got people to sign up for text updates from your startup. Go through this dict to make the phone numbers readable to a computer. # Hint: It can't include any non-numeric # characters. contacts = { 'Jamie': '1.192.168.0143', 'Kartik': '1.837.209.1121', 'Grant': '1.8...
23.555556
160
0.667453
0
0
0
0
0
0
0
0
372
0.877358
201c3ff46ed39f9d31b9bd6af4988cd2d18f6c06
1,342
py
Python
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
2
2021-05-29T06:57:24.000Z
2021-06-15T09:13:38.000Z
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
null
null
null
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
null
null
null
import os import logging import logging.config def logging_config(log_dir=None, log_file_path=None): config = { "version": 1, "disable_existing_loggers": False, "formatters": { "standard": { "format": "[%(asctime)s][%(name)s][%(funcName)s][%(levelname)s] %(mess...
26.313725
92
0.469449
0
0
0
0
0
0
0
0
438
0.326379
201eb6fa14944b9223d55f400cf800718bfd62d0
481
py
Python
api/handlers/schemahandler.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
13
2016-05-31T14:32:58.000Z
2021-09-17T07:18:11.000Z
api/handlers/schemahandler.py
scitran/core
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
911
2016-02-16T18:40:27.000Z
2018-08-07T17:50:29.000Z
api/handlers/schemahandler.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
16
2016-02-17T15:54:34.000Z
2021-04-07T05:30:34.000Z
import os import json from ..web import base from .. import config class SchemaHandler(base.RequestHandler): def __init__(self, request=None, response=None): super(SchemaHandler, self).__init__(request, response) def get(self, schema): schema_path = os.path.join(config.schema_path, schema) ...
24.05
62
0.632017
410
0.852391
0
0
0
0
0
0
4
0.008316
2020ae402acc11537dc961ac7e378c574b23fb5e
6,794
py
Python
chess_net_v2.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
7
2019-04-05T10:33:28.000Z
2021-06-07T17:14:55.000Z
chess_net_v2.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
null
null
null
chess_net_v2.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
2
2019-03-29T18:57:48.000Z
2020-09-13T10:11:26.000Z
import torch import torch.optim as optim import torch.nn as nn import torchvision import time import progressbar import os from torchvision import transforms, models # Implementation based on resnet18 # Accuracy of 99% after 12 Epochs of training with 31.200 training images and 7.800 validation images # Where to sto...
34.140704
118
0.611422
0
0
0
0
0
0
0
0
2,144
0.315573
2020c4305fe293aa2a86925dccc2971f9a3880bb
961
py
Python
Patent2Net/app/events/to_be_found_change.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
11
2019-08-05T11:49:11.000Z
2022-01-28T15:36:12.000Z
Patent2Net/app/events/to_be_found_change.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
10
2019-07-11T11:26:28.000Z
2022-02-27T13:47:26.000Z
Patent2Net/app/events/to_be_found_change.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
4
2019-04-02T07:11:04.000Z
2022-02-21T12:26:14.000Z
class ToBeFoundChange: """Event used when the number of resources available for a request has been retrieved and recorded""" NAME = "TO_BE_FOUND_CHANGE" def __init__(self, directory, need_spliter, amount): self.directory = directory self.need_spliter = need_spliter self.amount = a...
32.033333
105
0.608741
958
0.996878
0
0
366
0.380853
0
0
238
0.247659
202123a817addffe802bc7038a57cc62474ba2d3
1,187
py
Python
code/ch06-data-structs/friend_map.py
tamnguyenchi93/python-memory-management-course
e858b1a5e4f423fae5b431a7727a9eb953e8b6a0
[ "MIT" ]
30
2020-08-24T14:01:26.000Z
2022-03-26T18:55:55.000Z
code/ch06-data-structs/friend_map.py
danielhao5/python-memory-management-course
89015877d858488e018e07fad52eec7bf3acd394
[ "MIT" ]
null
null
null
code/ch06-data-structs/friend_map.py
danielhao5/python-memory-management-course
89015877d858488e018e07fad52eec7bf3acd394
[ "MIT" ]
17
2020-08-21T01:52:21.000Z
2021-11-28T13:11:11.000Z
import weakref from collections import defaultdict from typing import List, Dict from person import Person __map: Dict[int, List] = defaultdict(list) def add_friend(person: Person, friend: Person): if not person or not friend: return if person.id == friend.id: return if is_friend(person...
22.396226
61
0.628475
0
0
0
0
0
0
0
0
0
0
2021a506098259e1c1e707ac8752765f8b357bc4
3,450
py
Python
buildScripts/Android_build.py
Zhanghuahua/50KEngine
843bb1fbeebaa42029793a28336bac4870554984
[ "Apache-2.0" ]
4
2020-05-06T06:18:15.000Z
2021-11-24T09:27:03.000Z
buildScripts/Android_build.py
Zhanghuahua/50KEngine
843bb1fbeebaa42029793a28336bac4870554984
[ "Apache-2.0" ]
null
null
null
buildScripts/Android_build.py
Zhanghuahua/50KEngine
843bb1fbeebaa42029793a28336bac4870554984
[ "Apache-2.0" ]
null
null
null
import os import sys import shutil ANDROID_NDK = os.getenv("NDK_HOME") if(ANDROID_NDK == None): print("no ndk found") else: print("foud ndk in " + ANDROID_NDK) BUILD_TYPE="Release" BUILD_SHARED_LIBS="OFF" BUILD_HIDDEN_SYMBOL="ON" BUILD_RTTI="ON" BUILD_EXCEPTIONS="ON" ANDROID_STL_32BIT="c++_shared" ANDROID_ST...
31.081081
101
0.713333
0
0
0
0
0
0
0
0
994
0.285961
20250ba40775118058acfaa6b23f44f28eae0339
5,143
py
Python
run_project.py
bleotiu/Mosaics
3ef0fcd9ea37de03c15bc8eac4dd02e80f0cb4f4
[ "MIT" ]
null
null
null
run_project.py
bleotiu/Mosaics
3ef0fcd9ea37de03c15bc8eac4dd02e80f0cb4f4
[ "MIT" ]
null
null
null
run_project.py
bleotiu/Mosaics
3ef0fcd9ea37de03c15bc8eac4dd02e80f0cb4f4
[ "MIT" ]
null
null
null
""" PROIECT MOZAIC """ # Parametrii algoritmului sunt definiti in clasa Parameters. from parameters import * from build_mosaic import * import timeit import numpy as np import os import cv2 as cv dir_path = './..data/imaginiTest/' filenames = [('./../data/imaginiTest/ferrari.jpeg', 'ferrari'), ...
32.967949
102
0.637177
0
0
0
0
0
0
0
0
1,442
0.280381
20255a880a1144e9646a6cba9442f38fbfcf88ba
28,776
py
Python
tests/test_customer.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
tests/test_customer.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
tests/test_customer.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
import json import unittest from datetime import datetime import mock from contacthub.lib.paginated_list import PaginatedList from contacthub.lib.read_only_list import ReadOnlyList from contacthub.models.customer import Customer from contacthub.models.education import Education from contacthub.models.properties impor...
53.387755
120
0.654678
28,122
0.977273
0
0
14,611
0.50775
0
0
5,016
0.174312
20263c0738f5a4bf50cf12ac5dca6b704fb581b7
1,027
py
Python
python3/lib/python3.6/site-packages/tensorflow/_api/v1/lite/constants/__init__.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
3
2020-10-12T15:47:01.000Z
2022-01-14T19:51:26.000Z
python3/lib/python3.6/site-packages/tensorflow/_api/v1/lite/constants/__init__.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
null
null
null
python3/lib/python3.6/site-packages/tensorflow/_api/v1/lite/constants/__init__.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
2
2020-08-03T13:02:06.000Z
2020-11-04T03:15:44.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.lite.constants namespace. """ from __future__ import print_function as _print_function from tensorflow.lite.python.lite_constants import FLOAT from tensorflow.lite.pyt...
41.08
83
0.843233
0
0
0
0
0
0
0
0
194
0.1889
2027748f2846da6b6c70c5892c0dc16fc59d2b8e
461
py
Python
yi/core/dtypes.py
soloist-v/yi
d7c04fe6266441d2629ba35f69c9fc659a52b370
[ "MIT" ]
null
null
null
yi/core/dtypes.py
soloist-v/yi
d7c04fe6266441d2629ba35f69c9fc659a52b370
[ "MIT" ]
null
null
null
yi/core/dtypes.py
soloist-v/yi
d7c04fe6266441d2629ba35f69c9fc659a52b370
[ "MIT" ]
null
null
null
import numpy as np import ctypes as ct char = ct.c_char ubyte = ct.c_ubyte bool = np.bool float = np.float float16 = np.float16 float32 = np.float32 float64 = np.float64 uint8 = np.uint8 byte = np.byte uint = np.uint uint16 = np.uint16 uint32 = np.uint32 uint64 = np.uint64 int = np.int int16 = np.int16 short = np.shor...
17.074074
26
0.73102
0
0
0
0
0
0
0
0
0
0
2027d741875bd17dba0f53e2ec50dbf45c31bd83
1,468
py
Python
tests/algorithms/test_bounded_mean.py
Vishwaak/PyDP
408384534843bd297ec7d59ce820c7099a80d848
[ "Apache-2.0" ]
null
null
null
tests/algorithms/test_bounded_mean.py
Vishwaak/PyDP
408384534843bd297ec7d59ce820c7099a80d848
[ "Apache-2.0" ]
null
null
null
tests/algorithms/test_bounded_mean.py
Vishwaak/PyDP
408384534843bd297ec7d59ce820c7099a80d848
[ "Apache-2.0" ]
null
null
null
import pytest from pydp.algorithms.laplacian import BoundedMean def test_python_api(): a = [2, 4, 6, 8] mean_algorithm = BoundedMean( epsilon=1.0, lower_bound=1, upper_bound=9, dtype="float" ) assert 1.0 <= mean_algorithm.quick_result(a) <= 9.0 def test_bounded_mean(): bm1 = BoundedMean...
28.230769
79
0.638965
0
0
0
0
0
0
0
0
614
0.418256
2028e7f5d5555af7c6f61543cb886074df2a83db
2,688
py
Python
exportegv/main.py
tiger12506/meerk40t-exportegv
e34aab2bd43b33622ef2cc112e40a1988732d6c1
[ "MIT" ]
null
null
null
exportegv/main.py
tiger12506/meerk40t-exportegv
e34aab2bd43b33622ef2cc112e40a1988732d6c1
[ "MIT" ]
null
null
null
exportegv/main.py
tiger12506/meerk40t-exportegv
e34aab2bd43b33622ef2cc112e40a1988732d6c1
[ "MIT" ]
null
null
null
from meerk40t.device.lasercommandconstants import * output_path = "/home/jacob/cut/output.egv" def plugin(kernel, lifecycle): if lifecycle == 'register': """ Register our changes to meerk40t. These should modify the registered values within meerk40t or install different modules and modifie...
40.727273
122
0.607515
0
0
2,590
0.963542
710
0.264137
0
0
1,625
0.604539
2029145c9d4ea9c9155795f998247b31586f13e7
3,769
py
Python
reinforcement_learning/rl_tic_tac_toe_coach_customEnv/tic_tac_toe_game.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
reinforcement_learning/rl_tic_tac_toe_coach_customEnv/tic_tac_toe_game.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
6
2020-01-28T23:08:49.000Z
2022-02-10T00:27:19.000Z
reinforcement_learning/rl_tic_tac_toe_coach_customEnv/tic_tac_toe_game.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
8
2020-12-14T15:49:24.000Z
2022-03-23T18:38:36.000Z
from ipywidgets import widgets, HBox, VBox, Layout from IPython.display import display from functools import partial import numpy as np class TicTacToeGame(object): ''' Tic-tac-toe game within a Jupyter Notebook Opponent is Xs and starts the game. This is assumed to be a predictor object from a ...
30.893443
98
0.477846
3,274
0.868665
0
0
0
0
0
0
387
0.10268
202a5da8266f29b01ac5f81206b1cb497b57c352
2,714
py
Python
src/evaluate.py
buswinka/DetectStereocillia
7205680d9861cb50a447fe730696d2631f8256ba
[ "MIT" ]
null
null
null
src/evaluate.py
buswinka/DetectStereocillia
7205680d9861cb50a447fe730696d2631f8256ba
[ "MIT" ]
null
null
null
src/evaluate.py
buswinka/DetectStereocillia
7205680d9861cb50a447fe730696d2631f8256ba
[ "MIT" ]
1
2022-03-20T03:05:20.000Z
2022-03-20T03:05:20.000Z
from src.model import faster_rcnn_bundle, faster_rcnn_cilia, mask_rcnn, keypoint_rcnn import torch import src.utils import torch.optim import torchvision.ops as ops import src.transforms as t import torchvision.transforms.functional as TF import numpy as np import PIL from typing import Dict, List, Tuple import os.p...
36.675676
161
0.648858
2,388
0.879882
0
0
0
0
0
0
561
0.206706
202b359513f51708d7eb7be95a2b59ab940c8140
36
py
Python
system/protocols/generic/__init__.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
16
2015-01-02T00:16:11.000Z
2019-06-03T06:23:11.000Z
system/protocols/generic/__init__.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
31
2015-01-18T12:14:53.000Z
2018-01-07T13:32:29.000Z
system/protocols/generic/__init__.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
9
2015-02-13T09:38:53.000Z
2020-11-29T19:59:32.000Z
# coding=utf-8 __author__ = 'Sean'
9
19
0.666667
0
0
0
0
0
0
0
0
20
0.555556
202b86ff46d75ae6771b1867dc89ef0af73924b6
4,763
py
Python
src/solver.py
nataboll/ellipsoids
efd6b5d4bf221aa08a657f6265cb8a175289f979
[ "MIT" ]
null
null
null
src/solver.py
nataboll/ellipsoids
efd6b5d4bf221aa08a657f6265cb8a175289f979
[ "MIT" ]
null
null
null
src/solver.py
nataboll/ellipsoids
efd6b5d4bf221aa08a657f6265cb8a175289f979
[ "MIT" ]
null
null
null
from src.data import Data import numpy as np from scipy.optimize import minimize import matplotlib.pyplot as plt # area of ellipse # def f(x): # return np.pi * (x[0] * x[3] - x[1] * x[2]) ** 2 def f(x): return np.pi * (1 / float(x[0] ** 2 * x[1] ** 2)) class Solver: def __init__(self, data): ...
35.281481
117
0.503674
4,488
0.942263
0
0
0
0
0
0
1,939
0.407096
2030a126837212f6f3c802c76c67b2aadd17b523
1,043
py
Python
project2.py
pralhad88/ProjectEluer
f27cf97295d3d3a3a8f1d64d02010c3a00346fa2
[ "MIT" ]
1
2020-04-14T08:31:39.000Z
2020-04-14T08:31:39.000Z
project2.py
pralhad88/ProjectEluer
f27cf97295d3d3a3a8f1d64d02010c3a00346fa2
[ "MIT" ]
null
null
null
project2.py
pralhad88/ProjectEluer
f27cf97295d3d3a3a8f1d64d02010c3a00346fa2
[ "MIT" ]
null
null
null
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: # 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... #By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued term...
23.177778
177
0.711409
0
0
0
0
122
0.11697
0
0
512
0.490892
20319180ed84fbe3b13d01be4d5e3308273c3a54
1,218
py
Python
tests/conftest.py
mzaglia/bdc-db
bce8ba164a336dd8f7638ed4c0a5c1a4ad80e3a5
[ "MIT" ]
null
null
null
tests/conftest.py
mzaglia/bdc-db
bce8ba164a336dd8f7638ed4c0a5c1a4ad80e3a5
[ "MIT" ]
null
null
null
tests/conftest.py
mzaglia/bdc-db
bce8ba164a336dd8f7638ed4c0a5c1a4ad80e3a5
[ "MIT" ]
null
null
null
# # This file is part of Brazil Data Cube Database module. # Copyright (C) 2019-2020 INPE. # # Brazil Data Cube Database moduleis free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Config test fixtures.""" from typing import List impo...
22.981132
92
0.702791
0
0
354
0.29064
724
0.594417
0
0
499
0.409688
203206409e2548bf6472b00d0f31ff2df6928c52
2,805
py
Python
code/ner/evaluate.py
miquelcanalesteve/mtextos2122
e400090575b9f23469cf5a071523b8dafec1c0cf
[ "CC-BY-4.0" ]
null
null
null
code/ner/evaluate.py
miquelcanalesteve/mtextos2122
e400090575b9f23469cf5a071523b8dafec1c0cf
[ "CC-BY-4.0" ]
null
null
null
code/ner/evaluate.py
miquelcanalesteve/mtextos2122
e400090575b9f23469cf5a071523b8dafec1c0cf
[ "CC-BY-4.0" ]
5
2022-02-09T15:13:31.000Z
2022-03-07T20:07:24.000Z
import argparse import logging import os import numpy as np import torch import utils import model.net as net from model.data_loader import DataLoader parser = argparse.ArgumentParser() parser.add_argument('--data_dir', default='data/small', help="Directory containing the dataset") parser.add_argument('--model_dir', ...
33
109
0.685918
0
0
0
0
0
0
0
0
482
0.171836
20324745b49d12b28c5e64b40f7fe8dfb4e906b0
2,051
py
Python
workspace/machine_learning/support_functions.py
Batyi/Website-Fingerprinting-on-Proxy
d2c330fa154cf13c03bd36947e6507debf1ec173
[ "MIT" ]
1
2020-06-26T14:25:41.000Z
2020-06-26T14:25:41.000Z
workspace/machine_learning/support_functions.py
Batyi/Website-Fingerprinting-on-Proxy
d2c330fa154cf13c03bd36947e6507debf1ec173
[ "MIT" ]
null
null
null
workspace/machine_learning/support_functions.py
Batyi/Website-Fingerprinting-on-Proxy
d2c330fa154cf13c03bd36947e6507debf1ec173
[ "MIT" ]
null
null
null
import os import re def multi_files_names(URL): #print(f"URL:{URL}") curr_dir = os.getcwd() # First get the current directory and then add the folder which you want to enter sourcepath = os.listdir(os.path.join(curr_dir, "data_for_ML")) # OR read_file_path() delimiters = "_" #re.escape allows to build the...
32.555556
96
0.712823
0
0
0
0
0
0
0
0
1,089
0.530961
20331abdaf8bf7d676a5d3d8fb00324bcc3c7cde
1,124
py
Python
cynergy/errors/ContainerException.py
LALAYANG/IOCynergy
1821423680f741d8ca06bcc6a02c8b21156f9ba0
[ "MIT" ]
12
2017-12-14T02:02:25.000Z
2019-07-31T10:42:23.000Z
cynergy/errors/ContainerException.py
LALAYANG/IOCynergy
1821423680f741d8ca06bcc6a02c8b21156f9ba0
[ "MIT" ]
1
2019-09-10T07:11:27.000Z
2019-10-22T20:18:19.000Z
cynergy/errors/ContainerException.py
LALAYANG/IOCynergy
1821423680f741d8ca06bcc6a02c8b21156f9ba0
[ "MIT" ]
2
2021-08-15T08:56:13.000Z
2021-11-05T17:06:15.000Z
from typing import Type class ContainerException(Exception): def __init__(self, cls: Type, message): self.cls = cls super(ContainerException, self).__init__(message) class ClassNotFoundException(ContainerException): def __init__(self, cls: Type): super(ClassNotFoundException, self)._...
44.96
120
0.509786
1,091
0.970641
0
0
0
0
0
0
149
0.132562