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
0d2fbfa96bb0ce534111ac7e21349a1c716d99fa
637
py
Python
PyOpenWorm/quantity.py
nheffelman/pyopdata
5cc3042b004f167dbf18acc119474ea48b47810d
[ "MIT" ]
null
null
null
PyOpenWorm/quantity.py
nheffelman/pyopdata
5cc3042b004f167dbf18acc119474ea48b47810d
[ "MIT" ]
null
null
null
PyOpenWorm/quantity.py
nheffelman/pyopdata
5cc3042b004f167dbf18acc119474ea48b47810d
[ "MIT" ]
null
null
null
import pint as Q class Quantity: """ Enables the use of measurement units in our statements """ ur = Q.UnitRegistry() @classmethod def parse(self, s): q = self.ur.Quantity(s) my_q = Quantity(0,"mL") my_q._quant = q return my_q def __init__(self, value, unit): ...
21.233333
62
0.601256
618
0.970173
0
0
278
0.436421
0
0
91
0.142857
0d3113fefbcc2c8c41ba544c0d489f999a22dfe6
4,752
py
Python
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
null
null
null
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
12
2018-03-21T02:26:45.000Z
2018-05-09T07:12:55.000Z
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
null
null
null
from itertools import chain from django.db import models from random import choices class Node(object): def neighbors(self): raise NotImplementedError def graph(self, depth=1): if not depth: return {self: set()} elif depth == 1: return {self: set(self.neighbors...
31.058824
77
0.666877
4,632
0.974747
179
0.037668
0
0
0
0
736
0.154882
0d315a6eab2cc3aa2454ad8e379488130a26267e
1,076
py
Python
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
1
2021-03-07T15:29:48.000Z
2021-03-07T15:29:48.000Z
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
null
null
null
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
3
2015-03-17T20:22:48.000Z
2019-11-20T06:25:55.000Z
#!/usr/bin/env ipy import clr clr.AddReference("MyMediaLite.dll") clr.AddReference("MyMediaLiteExperimental.dll") from MyMediaLite import * train_file = "trainIdx1.firstLines.txt" validation_file = "validationIdx1.firstLines.txt" test_file = "testIdx1.firstLines.txt" # load the data training_data = IO.K...
29.888889
118
0.77974
0
0
0
0
0
0
0
0
382
0.355019
0d315c941d5c258d24b3ce3f264e4496447f3b10
754
py
Python
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
"""KB mapping resource.""" from __future__ import absolute_import, division, print_function, unicode_literals from ..base import BaseResource class Mapping(BaseResource): """Knowledge base Mapping resource.""" endpoint = 'kb.mapping.admin' query_endpoint = 'kb.mapping.search' query_method = 'POST' ...
32.782609
98
0.676393
608
0.806366
0
0
0
0
0
0
304
0.403183
0d330685451bd90d18d6890bfb83c6bc7d79a1c5
1,293
py
Python
wavshape.py
IngoKl/wavlength
700b1f14dabd552b2ccf63a1651c469def023468
[ "MIT" ]
null
null
null
wavshape.py
IngoKl/wavlength
700b1f14dabd552b2ccf63a1651c469def023468
[ "MIT" ]
null
null
null
wavshape.py
IngoKl/wavlength
700b1f14dabd552b2ccf63a1651c469def023468
[ "MIT" ]
null
null
null
"""Scans a given path (folder) for .wav files recursively and plots them all into files.""" from pathlib import Path, PurePath import matplotlib.pyplot as plt import numpy as np from numpy import fft as fft import click import scipy.io.wavfile from wavlength import get_files, plot_wav def analyze_and_plot(wavfile, ou...
34.026316
91
0.673627
0
0
0
0
535
0.413766
0
0
352
0.272235
0d3413bac5a6aea2f9f7fe0d6f905b5180d47e91
456
py
Python
lib/ocr.py
jabbalaci/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
73
2015-03-31T01:12:26.000Z
2021-07-10T19:45:04.000Z
lib/ocr.py
doc22940/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
2
2017-01-06T17:17:42.000Z
2017-08-23T18:35:55.000Z
lib/ocr.py
doc22940/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
27
2015-01-03T18:51:23.000Z
2020-11-15T11:49:51.000Z
#!/usr/bin/env python3 """ OCR with the Tesseract engine from Google this is a wrapper around pytesser (http://code.google.com/p/pytesser/) """ import config as cfg from lib.process import get_simple_cmd_output def image_file_to_string(fname): """Convert an image file to text using OCR.""" cmd = "{tesseract...
24
70
0.701754
0
0
0
0
0
0
0
0
220
0.482456
0d34f19c13621e0ed06e9108be40f56911d2c61d
4,848
py
Python
geiger-counter/remote-logging.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
2
2018-07-03T12:34:25.000Z
2019-02-22T14:44:59.000Z
geiger-counter/remote-logging.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
geiger-counter/remote-logging.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import gimpbbio.gpio as gpio import serial import re import http.client import urllib import threading import queue import sys import datetime import time import socket import logging import logging.handlers import argparse import Adafruit_BMP.BMP085 as BMP085 class MyLogger(object): def __ini...
27.862069
184
0.72731
310
0.063944
0
0
0
0
0
0
1,122
0.231436
0d34f30b476694738f42f03846398937a9cf92fc
852
py
Python
migrations/versions/0e26a2d71475_.py
Toluwalemi/flask-audiofile-server
548d90aa8f25a58cd3647f08975e9ac6a679087d
[ "Unlicense" ]
null
null
null
migrations/versions/0e26a2d71475_.py
Toluwalemi/flask-audiofile-server
548d90aa8f25a58cd3647f08975e9ac6a679087d
[ "Unlicense" ]
null
null
null
migrations/versions/0e26a2d71475_.py
Toluwalemi/flask-audiofile-server
548d90aa8f25a58cd3647f08975e9ac6a679087d
[ "Unlicense" ]
1
2021-04-07T13:46:22.000Z
2021-04-07T13:46:22.000Z
"""empty message Revision ID: 0e26a2d71475 Revises: Create Date: 2021-03-19 00:13:23.019330 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0e26a2d71475' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
25.818182
65
0.687793
0
0
0
0
0
0
0
0
424
0.497653
0d350e50046900dd997c091b0cd94feb9afe2441
9,510
py
Python
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
# Functions print("************* Function ***********") # Simple function without any arguments/parameters def say_welocme(): return print('Welocme') # Simple function with arguments/parameters def say_helo(name, age): print('Helo', name, age) # this function returns None say_helo('Nayeem', 18) #...
35.222222
161
0.674238
0
0
252
0.026498
162
0.017035
0
0
7,141
0.750894
0d35cf0c049dbda0c7224db51ed6f0b36f88de1d
3,763
py
Python
Learning Scripts/helper.py
n3urovirtual/EyeTracking_Experiment
00a534540a524db8606d54e33ebc43de49a959ac
[ "MIT" ]
2
2021-11-18T16:59:43.000Z
2022-02-11T18:25:03.000Z
Learning Scripts/helper.py
n3urovirtual/EyeTracking_Experiment
00a534540a524db8606d54e33ebc43de49a959ac
[ "MIT" ]
null
null
null
Learning Scripts/helper.py
n3urovirtual/EyeTracking_Experiment
00a534540a524db8606d54e33ebc43de49a959ac
[ "MIT" ]
null
null
null
screen_resX=1920 screen_resY=1080 img_id=['1.JPG_HIGH_', '2.JPG_HIGH_', '7.JPG_HIGH_', '12.JPG_HIGH_', '13.JPG_HIGH_', '15.JPG_HIGH_', '19.JPG_HIGH_', '25.JPG_HIGH_', '27.JPG_HIGH_', '29.JPG_HIGH_', '41.JPG_HIGH_', '42.JPG_HIGH_',...
25.773973
83
0.545841
0
0
0
0
0
0
0
0
2,338
0.621313
0d365cc37f818437b854ee723afc0abb9a2d8fa4
3,219
py
Python
twython_auth/views.py
tsaylor/nepal
452669dc8f301cbfab5cdf804292246ff91ed65f
[ "MIT" ]
null
null
null
twython_auth/views.py
tsaylor/nepal
452669dc8f301cbfab5cdf804292246ff91ed65f
[ "MIT" ]
2
2021-03-19T21:47:22.000Z
2021-06-10T17:44:44.000Z
twython_auth/views.py
tsaylor/nepal
452669dc8f301cbfab5cdf804292246ff91ed65f
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout as django_logout from django.contrib.auth import get_user_model from django.http import HttpResponseRedirect from django.conf import settings from django.core.urlresolvers import reverse from twython import Twython from profiles.models import Profile def log...
38.321429
100
0.720721
0
0
0
0
0
0
0
0
1,180
0.366573
0d37e90dca95e3985986b6fc950f40dc1aa89c2b
140
py
Python
hello.py
alee8542/cs3240-labdemo
f80a8f1dae79167cb13c3e176e14e3942852d04e
[ "MIT" ]
null
null
null
hello.py
alee8542/cs3240-labdemo
f80a8f1dae79167cb13c3e176e14e3942852d04e
[ "MIT" ]
null
null
null
hello.py
alee8542/cs3240-labdemo
f80a8f1dae79167cb13c3e176e14e3942852d04e
[ "MIT" ]
null
null
null
import helper from helper import greeting def main(): #print("called hello") helper.greeting("hello") if __name__ == '__main__': main()
15.555556
27
0.714286
0
0
0
0
0
0
0
0
39
0.278571
0d38684afecb14d8b612ceb8af67630b80b4ff71
989
py
Python
Multidimensional_Lists/05_square_with_maximum_sum.py
MihailMarkovski/Python-Advanced-2020
8edea78cbe5588a409ba9bc3767861250f58c1a6
[ "MIT" ]
4
2020-09-19T13:53:19.000Z
2020-11-01T18:34:53.000Z
Multidimensional_Lists/05_square_with_maximum_sum.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
Multidimensional_Lists/05_square_with_maximum_sum.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
def create_matrix(rows_count): matrix = [] for _ in range(rows_count): matrix.append([int(x) for x in input().split(', ')]) return matrix def get_square_sum(row, col, matrix): square_sum = 0 for r in range(row, row + 2): for c in range(col, col + 2): square_sum += matri...
26.026316
62
0.604651
0
0
0
0
0
0
0
0
11
0.011122
0d394051cbe789e0a2cdb86b79de18a4fdfcc0a4
756
py
Python
algorithms/Python/sorting/selection_sort.py
Tanmoy07tech/DSA
f88c9cbf58bedb006e4401502507982cf4f52260
[ "MIT" ]
247
2020-12-24T05:06:41.000Z
2022-03-30T19:32:17.000Z
algorithms/Python/sorting/selection_sort.py
k2491p/DSA
ea01662f90a6913ca6b7faa88319afefb5f8d296
[ "MIT" ]
518
2020-12-23T14:19:19.000Z
2022-03-31T17:45:08.000Z
algorithms/Python/sorting/selection_sort.py
k2491p/DSA
ea01662f90a6913ca6b7faa88319afefb5f8d296
[ "MIT" ]
356
2020-12-24T08:12:31.000Z
2022-03-28T11:28:09.000Z
''' Find the largest element and place that element at the bottom of the list. Repeat for each sub-array. O(n^2) time complexity. ''' from string import ascii_letters arrays = ( [12, 3, 7, 22, -12, 100, 1], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], [4, 1, 3, 9, 7], [0, -1.5, 1.5, 1.3, -1.3, -1.01, 1.01], list(revers...
20.432432
69
0.579365
0
0
0
0
0
0
0
0
276
0.365079
0d3f74b53d1976c4b1197848cb8716e04cb65c67
2,535
py
Python
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
null
null
null
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
2
2019-02-17T22:15:40.000Z
2019-02-20T22:40:21.000Z
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
2
2019-02-01T09:03:52.000Z
2020-01-14T12:56:52.000Z
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ from djangocms_html_tags.forms import HTMLTextInputForm, HTMLFormForm, HTMLTextareaForm from djangocms_html_tags.models import HTMLTag, HTMLText from djangocms_html_tags.utils impor...
26.40625
89
0.740039
1,735
0.684418
0
0
0
0
0
0
279
0.110059
0d4067eb03baa5149bcc67a886187a2fa8a7e860
4,659
py
Python
handlers/rights_users.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/rights_users.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/rights_users.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
# команда меню "права пользователей" from aiogram.types import Message, CallbackQuery, ReplyKeyboardRemove from filters import IsAdmin from loader import dp, db, bot from keyboards.inline.callback_data import change_button_data from keyboards.inline.callback_data import set_status_data from keyboards.inline.callback_...
37.272
166
0.691994
0
0
0
0
4,630
0.922311
4,291
0.854781
2,051
0.408566
0d40d5a5294c9c8290f11ed2656dfcbf8016ab4e
12,878
py
Python
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
null
null
null
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
39
2020-10-11T02:31:14.000Z
2020-12-15T20:18:56.000Z
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
1
2020-10-17T02:44:43.000Z
2020-10-17T02:44:43.000Z
import helpers import exceptions import datetime as dt ''' This is the sessions module: ''' ''' Base class with the basic structure of all frontend sessions. ''' class Session: # username is None when no one logged in. def __init__(self, username = None): self.username = username # return with t...
38.100592
218
0.650101
12,318
0.956515
0
0
0
0
0
0
2,857
0.221851
0d426d8765e77fea1c98581ceb39c83d5c0fb5f4
215
py
Python
parts/edag_diodes.py
baryluk/edag
675107e2078bcecb30768a5e96c7431104352024
[ "BSL-1.0" ]
null
null
null
parts/edag_diodes.py
baryluk/edag
675107e2078bcecb30768a5e96c7431104352024
[ "BSL-1.0" ]
null
null
null
parts/edag_diodes.py
baryluk/edag
675107e2078bcecb30768a5e96c7431104352024
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python3 # Diodes "1N4148" "1N5817G" "BAT43" # Zener "1N457" # bc junction of many transistors can also be used as dioded, i.e. 2SC1815, 2SA9012, etc. with very small leakage current (~1pA at -4V).
21.5
136
0.702326
0
0
0
0
0
0
0
0
204
0.948837
0d42aee94bc382588eed7920090962df76b33a83
1,574
py
Python
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
from pageobject import PageObject from homepage import HomePage from locatormap import LocatorMap from robot.api import logger class LoginPage(): PAGE_TITLE = "Login - PageObjectLibrary Demo" PAGE_URL = "/login.html" # these are accessible via dot notaton with self.locator # (eg: self.locator.usernam...
32.122449
70
0.65629
1,446
0.918679
0
0
0
0
0
0
442
0.280813
0d442d2358091616d21b759e490009907755740d
2,569
py
Python
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
'''Maps buttons for the Reefbot control.''' import roslib; roslib.load_manifest('reefbot-controller') import rospy class JoystickButtons: DPAD_LR = 4 DPAD_UD = 5 ALOG_LEFT_UD = 1 ALOG_LEFT_LR = 0 ALOG_RIGHT_UD = 3 ALOG_RIGHT_LR = 2 BUTTON_1 = 0 BUTTON_2 = 1 BUTTON_3 = 2 BUTTON_4 = 3 BUTTON_...
32.935897
78
0.651615
2,449
0.953289
0
0
0
0
0
0
460
0.179058
0d44e5e6d9f36901e93c880a5e517173d618c59a
159
py
Python
env.py
Code-Institute-Submissions/Lordph8-Project3
fdefe7ffb7c53e8cb2d70b8c760e4efd27bb4517
[ "MIT" ]
null
null
null
env.py
Code-Institute-Submissions/Lordph8-Project3
fdefe7ffb7c53e8cb2d70b8c760e4efd27bb4517
[ "MIT" ]
null
null
null
env.py
Code-Institute-Submissions/Lordph8-Project3
fdefe7ffb7c53e8cb2d70b8c760e4efd27bb4517
[ "MIT" ]
null
null
null
import os os.environ.setdefault("MONGO_URI", "mongodb+srv://root:Thisisarandompassword@myfirstcluster-qpzww.mongodb.net/theRecipe?retryWrites=true&w=majority")
79.5
149
0.836478
0
0
0
0
0
0
0
0
124
0.779874
0d451f62800e63abede99f96599f3535638b9e60
1,482
py
Python
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
30.244898
108
0.762483
399
0.269231
0
0
0
0
0
0
604
0.407557
0d45995076dc8988bcc58b7a91a3417a1a1f526d
1,803
py
Python
parlai/tasks/saferdialogues/agents.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-03-13T21:02:22.000Z
2022-03-13T21:02:22.000Z
parlai/tasks/saferdialogues/agents.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-01-18T09:14:27.000Z
2022-01-18T09:14:27.000Z
parlai/tasks/saferdialogues/agents.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-03-30T14:05:29.000Z
2022-03-30T14:05:29.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional from parlai.core.params import ParlaiParser from parlai.core.opt import Opt import os impo...
31.631579
80
0.645591
1,165
0.646145
0
0
456
0.252912
0
0
518
0.287299
0d475beab3b1cd6b2f3e149dfdb979b4179e340d
614
py
Python
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
# Listing_7-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Using comparison operators num1 = float(raw_input("Enter the first number: ")) num2 = float(raw_input("Enter the second ...
34.111111
82
0.63355
0
0
0
0
0
0
0
0
374
0.609121
0d48928ed6b737fd788b3269ad8bbc5084f62d61
6,658
py
Python
landmark.py
Ank221199/cnn-facial-landmark
5b6db58c59e36a4851917c86a5d252230d228b2c
[ "MIT" ]
null
null
null
landmark.py
Ank221199/cnn-facial-landmark
5b6db58c59e36a4851917c86a5d252230d228b2c
[ "MIT" ]
null
null
null
landmark.py
Ank221199/cnn-facial-landmark
5b6db58c59e36a4851917c86a5d252230d228b2c
[ "MIT" ]
1
2019-07-20T01:37:29.000Z
2019-07-20T01:37:29.000Z
""" Convolutional Neural Network for facial landmarks detection. """ import argparse import cv2 import numpy as np import tensorflow as tf from model import LandmarkModel # Add arguments parser to accept user specified arguments. parser = argparse.ArgumentParser() parser.add_argument('--train_record', default='train...
34.14359
79
0.658306
0
0
0
0
0
0
0
0
1,876
0.281766
0d492d307402409cd402271070306ff0cee7ae12
2,593
py
Python
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
import skimage.io # bug. need to import this before tensorflow import skimage.transform # bug. need to import this before tensorflow from resnet_train import train from resnet import inference import tensorflow as tf import time import os import sys import re import numpy as np from image_processing import image_pre...
22.745614
74
0.600463
0
0
0
0
0
0
0
0
617
0.237948
0d4e4c53bfb40749ea8ec2131b648151af59d377
2,305
py
Python
userbot/plugins/thordp.py
indianSammy07/Wolf
aba9ecce1860f86f81a52722062531590521ad7f
[ "MIT" ]
null
null
null
userbot/plugins/thordp.py
indianSammy07/Wolf
aba9ecce1860f86f81a52722062531590521ad7f
[ "MIT" ]
null
null
null
userbot/plugins/thordp.py
indianSammy07/Wolf
aba9ecce1860f86f81a52722062531590521ad7f
[ "MIT" ]
null
null
null
import os from datetime import datetime from PIL import Image, ImageDraw, ImageFont from pySmartDL import SmartDL from telethon.tl import functions from uniborg.util import admin_cmd import asyncio import shutil import random, re FONT_FILE_TO_USE = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" #Add telegraph ...
40.438596
122
0.633839
0
0
0
0
1,365
0.592191
1,321
0.573102
619
0.268547
0d4e981d336496f51c5ebd89178a51218846e23a
514
py
Python
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
import os, sys class Preprocesser(): def __init__(self): self.data = { "X": [], "Y": [] } def process(self, input): if not os.path.isfile(input): print(input + " is not exists.") sys.exit(-1) with open(input) as in_file: ...
25.7
65
0.478599
496
0.964981
0
0
0
0
0
0
37
0.071984
0d51a39dc3763222336d58785130ec15857fbfe1
34,938
py
Python
cogs/information.py
BioKZM/Colonist
ab3872c01b1bdc235e80065530fbed9953952919
[ "MIT" ]
5
2021-11-20T12:30:55.000Z
2022-02-02T15:34:23.000Z
cogs/information.py
BioKZM/Colonist
ab3872c01b1bdc235e80065530fbed9953952919
[ "MIT" ]
null
null
null
cogs/information.py
BioKZM/Colonist
ab3872c01b1bdc235e80065530fbed9953952919
[ "MIT" ]
null
null
null
# import discord # import asyncio # import json # from discord.ext import commands # from discord.utils import get # # from cogs.personalPoint import PersonalPoint # from main import client # from discord_ui import UI,Button # from functions.userClass import User,experiences,levelNames # from cogs.rank import getSorted...
41.642431
373
0.382563
0
0
0
0
0
0
0
0
34,170
0.967112
0d51ae17ec18a17c3026a04979a7cfd4797e2e95
1,680
py
Python
infoblox_netmri/api/remote/models/wireless_hot_standby_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/wireless_hot_standby_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/wireless_hot_standby_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class WirelessHotStandbyGridRemote(RemoteModel): """ | ``id:`` none | ``attribute type:`` string | ``WlsHotSbTimestamp:`` none | ``attribute type:`` string | ``MonitoredIPD...
21.265823
62
0.491071
1,511
0.899405
0
0
0
0
0
0
1,177
0.700595
0d52e3e144e777e66888716d6fd11de6d57fc9e0
11,717
py
Python
tests/test_geometric_tests.py
mxrie-eve/Pyrr
34802ba0393a6e7752cf55fadecd0d7824042dc0
[ "Unlicense" ]
null
null
null
tests/test_geometric_tests.py
mxrie-eve/Pyrr
34802ba0393a6e7752cf55fadecd0d7824042dc0
[ "Unlicense" ]
null
null
null
tests/test_geometric_tests.py
mxrie-eve/Pyrr
34802ba0393a6e7752cf55fadecd0d7824042dc0
[ "Unlicense" ]
null
null
null
from pyrr.geometric_tests import ray_intersect_sphere try: import unittest2 as unittest except: import unittest import numpy as np from pyrr import geometric_tests as gt from pyrr import line, plane, ray, sphere class test_geometric_tests(unittest.TestCase): def test_import(self): import pyrr ...
36.962145
104
0.581804
11,443
0.976615
0
0
0
0
0
0
10
0.000853
0d530a1783161928697682724069d35b73f59b12
6,462
py
Python
python/tvm/micro/base.py
uwsampl/tvm
29a85eb8f75dbd3a338db0b28c2121ca997eb2a4
[ "Apache-2.0" ]
2
2019-12-27T04:50:01.000Z
2021-02-04T09:54:21.000Z
python/tvm/micro/base.py
uwsampl/tvm
29a85eb8f75dbd3a338db0b28c2121ca997eb2a4
[ "Apache-2.0" ]
null
null
null
python/tvm/micro/base.py
uwsampl/tvm
29a85eb8f75dbd3a338db0b28c2121ca997eb2a4
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.100559
93
0.630919
5,278
0.816775
0
0
0
0
0
0
3,437
0.531879
0d5399e828d26c68b909576d4808a3578d5cec48
1,807
py
Python
tests/test_connect_nets.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
1
2021-11-18T10:45:26.000Z
2021-11-18T10:45:26.000Z
tests/test_connect_nets.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
null
null
null
tests/test_connect_nets.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 EnICS Labs, Bar-Ilan University. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import sys, os sys.path.append(os.path.abspath('..')) from salamandra import * def main(): test(is_metatest=False) def test(is_metatest): inv = ...
26.970149
74
0.624792
0
0
0
0
0
0
0
0
486
0.268954
0d539b5ac601361cf9fe4062ce887af4d40cacd7
4,109
py
Python
rl_dobot/algos/learn.py
sandipan1/rl_dobot
2317c171f73ae6714c13a6e85cff3d894b242687
[ "MIT" ]
2
2018-11-09T19:31:46.000Z
2020-01-28T11:20:08.000Z
rl_dobot/algos/learn.py
sandipan1/rl_dobot
2317c171f73ae6714c13a6e85cff3d894b242687
[ "MIT" ]
null
null
null
rl_dobot/algos/learn.py
sandipan1/rl_dobot
2317c171f73ae6714c13a6e85cff3d894b242687
[ "MIT" ]
null
null
null
''' update rule for the DQN model is defined ''' ''' Preprocessing : give only hsv value or masked end efforctor image Downsample pixel and convert RGB to grayscale Use nn.functional where there is no trainable parameter like relu or maxpool Try pooling vs not pooling In Atari they consider multiple frames to find dir...
36.6875
120
0.696276
2,872
0.698954
0
0
0
0
0
0
1,408
0.342662
0d53c344e253ec5b2dbe3d8a0ac3fa6d4a976325
923
py
Python
backend/app/utils.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
2
2020-11-23T13:38:49.000Z
2021-08-17T15:37:04.000Z
backend/app/utils.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
backend/app/utils.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
from .protocol import Resp from flask import make_response import pandas as pd class Utils: @staticmethod def build_resp(error_no: int, msg: str, data: dict): return make_response(Resp(error_no, msg, data).to_json()) @staticmethod def treat_bar(data: pd.DataFrame) -> dict: # data = da...
31.827586
79
0.619718
841
0.911159
0
0
818
0.886241
0
0
121
0.131094
0d55391048b46c947199f64898343316208f90a7
2,626
py
Python
app/recipe/views.py
juancarestre/recipe-app-api2
7f93a2a01ebe811cba84526f0c1202dca7800b7a
[ "MIT" ]
null
null
null
app/recipe/views.py
juancarestre/recipe-app-api2
7f93a2a01ebe811cba84526f0c1202dca7800b7a
[ "MIT" ]
null
null
null
app/recipe/views.py
juancarestre/recipe-app-api2
7f93a2a01ebe811cba84526f0c1202dca7800b7a
[ "MIT" ]
null
null
null
from rest_framework import viewsets, mixins from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated import redis import os import json from core.models import Tag, Ingredient from recipe import serializers # Connect to our Redis instance redis_instance = r...
35.972603
79
0.653085
2,172
0.827113
0
0
0
0
0
0
556
0.211729
0d55d639ae3cbd3fbf923acfe2653d7ccc5a7c72
2,468
py
Python
torchbenchmark/models/mlp_larger/__init__.py
VectorInstitute/benchmark
1cd8ff536aeddf3ebcafd4837d91684a1d9e58d2
[ "BSD-3-Clause" ]
1
2022-01-19T15:46:20.000Z
2022-01-19T15:46:20.000Z
torchbenchmark/models/mlp_larger/__init__.py
VectorInstitute/benchmark
1cd8ff536aeddf3ebcafd4837d91684a1d9e58d2
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/mlp_larger/__init__.py
VectorInstitute/benchmark
1cd8ff536aeddf3ebcafd4837d91684a1d9e58d2
[ "BSD-3-Clause" ]
null
null
null
import random import numpy as np import torch from torch import nn from torchbenchmark.tasks import OTHER from ...util.model import BenchmarkModel torch.manual_seed(1337) random.seed(1337) np.random.seed(1337) # pretend we are using MLP to predict CIFAR images class MLP(nn.Module): def __init__(self): ...
26.826087
77
0.547407
1,990
0.806321
0
0
0
0
0
0
129
0.052269
b48fbff20842d5dc1be80ae2543317f479252cd3
99
py
Python
args.py
NiranjanVRam/spotify-downloader
f20580dbb6fa6ebc00e7935f233f5a87e9762d18
[ "MIT" ]
7
2020-12-27T13:38:38.000Z
2022-03-06T16:34:18.000Z
args.py
NiranjanVRam/spotify-downloader
f20580dbb6fa6ebc00e7935f233f5a87e9762d18
[ "MIT" ]
2
2021-10-03T10:56:12.000Z
2021-10-10T23:43:14.000Z
args.py
NiranjanVRam/spotify-downloader
f20580dbb6fa6ebc00e7935f233f5a87e9762d18
[ "MIT" ]
5
2021-03-31T11:38:59.000Z
2021-12-30T02:36:40.000Z
clientId = 'CLIENT_ID' clientSecret = 'CLIENT_SECRET' geniusToken = 'GENIUS_TOKEN' bitrate = '320'
19.8
30
0.757576
0
0
0
0
0
0
0
0
45
0.454545
b4903e0e49fe00b8a065406698071247bb86a02d
654
py
Python
experiments/experiments_2/bs3_exp11_2_runner.py
petrroll/msc-neuro
cdfb5f0ad1a6974fdde6ac9760364d5545d70690
[ "MIT" ]
1
2019-10-26T19:38:42.000Z
2019-10-26T19:38:42.000Z
experiments/experiments_2/bs3_exp11_2_runner.py
petrroll/msc-neuro
cdfb5f0ad1a6974fdde6ac9760364d5545d70690
[ "MIT" ]
null
null
null
experiments/experiments_2/bs3_exp11_2_runner.py
petrroll/msc-neuro
cdfb5f0ad1a6974fdde6ac9760364d5545d70690
[ "MIT" ]
1
2021-03-23T14:54:04.000Z
2021-03-23T14:54:04.000Z
import os import sys sys.path.append(os.getcwd()) import utils.runners as urun # # Dropout is `keep_prob` probability not `dropout rate` (as in TF2.x) # if __name__ == "__main__": exp_folder = "experiments_2" exp = "bs3_exp11" exp_rev = "2" runner = urun.get_runner(sys.argv[1]) run = 0 for h...
25.153846
124
0.544343
0
0
0
0
0
0
0
0
234
0.357798
b495cef87e530613f2c8277610c653f49cd1a833
2,003
py
Python
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
2
2020-10-06T15:55:26.000Z
2021-04-01T04:09:01.000Z
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
null
null
null
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
null
null
null
""" AQ6315E DATA EXTRACTOR Extracts all visible traces from Ando AQ-6315E Optical Spectrum Analyser Usage: ./aq6315.py [filename] If specified, extracted data is saved to CSV called "filename" Relevant list of commands available at http://support.us.yokogawa.com/downloads/TMI/COMM/AQ6317B/AQ6317B%20R0101.pdf ...
32.306452
81
0.6665
0
0
0
0
0
0
0
0
1,149
0.57364
b49746c535ff505d70174da7005a75abdaab6aa0
1,707
py
Python
src/test_uint8.py
disconnect3d/PicoBlade-asm
f4c1c5966f71ac9b11118dc0df1a6dd93699b4a2
[ "MIT" ]
4
2018-07-26T21:16:06.000Z
2021-07-02T17:07:01.000Z
src/test_uint8.py
disconnect3d/PicoBlade-asm
f4c1c5966f71ac9b11118dc0df1a6dd93699b4a2
[ "MIT" ]
1
2016-11-09T22:47:05.000Z
2017-01-19T23:34:50.000Z
src/test_uint8.py
disconnect3d/PicoBlade-asm
f4c1c5966f71ac9b11118dc0df1a6dd93699b4a2
[ "MIT" ]
null
null
null
from src.uint8 import uint8 def test_constructor1(): assert int(uint8(20)) == 20 def test_constructor2(): assert uint8(256) == uint8(0) assert uint8(260) == uint8(4) assert uint8(-1) == uint8(255) assert uint8(-5) == uint8(251) assert uint8(-5) != uint8(252) def test_add_other(): asser...
22.168831
52
0.565319
0
0
0
0
0
0
0
0
0
0
b497aee10348953dd46616dc98824f2c3d70953e
1,042
py
Python
tests/lid_driven_cavity/test.py
nazmas/SNaC
e928adc142df5bbe1a7941907c35add6ea6f1ff0
[ "MIT" ]
null
null
null
tests/lid_driven_cavity/test.py
nazmas/SNaC
e928adc142df5bbe1a7941907c35add6ea6f1ff0
[ "MIT" ]
null
null
null
tests/lid_driven_cavity/test.py
nazmas/SNaC
e928adc142df5bbe1a7941907c35add6ea6f1ff0
[ "MIT" ]
null
null
null
#!/usr/bin/env python def test_ldc(): import numpy as np import os from read_single_field_binary import read_single_field_binary data_ref = np.loadtxt("data_ldc_re1000.txt") if "data_x" in os.getcwd(): data,xp,yp,zp,xu,yv,zw = read_single_field_binary("vey_fld_0001500.bin",np.array([1,1,1]))...
47.363636
98
0.643954
0
0
0
0
0
0
0
0
148
0.142035
b4987682eaca1ee3d36ee754283c8f4e42d74219
638
py
Python
zoom/_assets/standard_apps/icons/index.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
8
2017-04-10T09:53:15.000Z
2020-08-16T09:53:14.000Z
zoom/_assets/standard_apps/icons/index.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
49
2017-04-13T22:51:48.000Z
2019-08-15T22:53:25.000Z
zoom/_assets/standard_apps/icons/index.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
12
2017-04-11T04:16:47.000Z
2019-08-10T21:41:54.000Z
""" icons index """ import zoom class MyView(zoom.View): """Index View""" def index(self): """Index page""" zoom.requires('fontawesome4') content = zoom.tools.load('icons.html') subtitle = 'Icons available as part of FontAwesome 4<br><br>' return zoom.page(content,...
23.62963
73
0.589342
568
0.890282
0
0
0
0
0
0
192
0.30094
b4992dbe930e0e9eeb52ad731345b2e5829711bc
1,096
py
Python
python/AI/data/zero_mean.py
Vahegian/GiantTrader
67a1acd8c52e2277ae8919834563775e59b6e6ce
[ "MIT" ]
10
2020-05-12T13:41:42.000Z
2022-03-24T17:32:09.000Z
python/AI/data/zero_mean.py
Vahegian/GiantTrader
67a1acd8c52e2277ae8919834563775e59b6e6ce
[ "MIT" ]
18
2020-09-26T00:57:28.000Z
2021-06-02T01:31:35.000Z
python/AI/data/zero_mean.py
Vahegian/GiantTrader
67a1acd8c52e2277ae8919834563775e59b6e6ce
[ "MIT" ]
3
2021-01-03T07:44:09.000Z
2021-11-20T18:44:24.000Z
''' This script takes one 'npy' file that contains market data of multiple markets and produces 3 files "train.npy", "test.npy", "val.npy". The script calculates the mean image of the dataset and substracts it from each image. ''' import numpy as np def save_file(dir, data): np.save(dir, data) print(f"save...
28.102564
107
0.696168
0
0
0
0
0
0
0
0
605
0.552007
b49a302baad4a4b82d1403cf60a8484fa3cbece9
8,352
py
Python
src/JobManager/Tasks.py
ROOSTER-fleet-management/rooster_fleet_manager
93a41ea1ec0af2eda57957dde7d996929bfc057a
[ "Apache-2.0" ]
6
2020-10-30T11:24:34.000Z
2022-01-11T18:52:06.000Z
src/JobManager/Tasks.py
ROOSTER-fleet-management/rooster_fleet_manager
93a41ea1ec0af2eda57957dde7d996929bfc057a
[ "Apache-2.0" ]
null
null
null
src/JobManager/Tasks.py
ROOSTER-fleet-management/rooster_fleet_manager
93a41ea1ec0af2eda57957dde7d996929bfc057a
[ "Apache-2.0" ]
8
2020-10-30T11:25:03.000Z
2021-09-07T12:54:27.000Z
#! /usr/bin/env python import rospy import actionlib from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from tf.transformations import quaternion_from_euler from std_msgs.msg import UInt8 from enum import Enum #region ################## TODOLIST ######################## # DONE 1. Add Task class and make othe...
43.274611
181
0.637452
7,927
0.949114
0
0
0
0
0
0
3,708
0.443966
b49a5576e004df9c62a3ab2a288cc819b3c00b9c
1,426
py
Python
user.py
sdress/dojo-users
13f10f0efcd0e9e5ad7ed8c20d991524636cf37f
[ "MIT" ]
null
null
null
user.py
sdress/dojo-users
13f10f0efcd0e9e5ad7ed8c20d991524636cf37f
[ "MIT" ]
null
null
null
user.py
sdress/dojo-users
13f10f0efcd0e9e5ad7ed8c20d991524636cf37f
[ "MIT" ]
null
null
null
# import the function that will return an instance of a connection from mysqlconnection import connectToMySQL # model the class after the friend table from our database class User: def __init__( self , data ): self.id = data['id'] self.first_name = data['first_name'] self.last_name = data['l...
44.5625
157
0.648668
1,256
0.880785
0
0
835
0.585554
0
0
758
0.531557
b49af5e43de48fcf3cf24608acee75fdd5d449fb
21,488
py
Python
tiktokpy/client/user.py
returnWOW/tiktokpy
14e1fb2ef0c4f2f0abe2bdfa7c156a33f6cd92d2
[ "MIT" ]
1
2021-11-15T15:35:14.000Z
2021-11-15T15:35:14.000Z
tiktokpy/client/user.py
returnWOW/tiktokpy
14e1fb2ef0c4f2f0abe2bdfa7c156a33f6cd92d2
[ "MIT" ]
1
2022-03-12T13:12:37.000Z
2022-03-12T13:12:37.000Z
tiktokpy/client/user.py
returnWOW/tiktokpy
14e1fb2ef0c4f2f0abe2bdfa7c156a33f6cd92d2
[ "MIT" ]
null
null
null
import os import asyncio from typing import List import traceback import pyppeteer from pyppeteer.page import Page from tqdm import tqdm import pdb import time from tiktokpy.client import Client from tiktokpy.utils.client import catch_response_and_store, catch_response_info, get_dt_str, trans_char from t...
36.114286
180
0.526526
20,557
0.949252
0
0
0
0
20,396
0.941818
7,449
0.343969
b49b84a57a5a0d4b3d8673371b1ea49d228a6368
2,927
py
Python
amazon-top-results.py
dlameter/amazon-top-results
f4437512f872a4f8c427042770a76cd51eba2f5c
[ "MIT" ]
null
null
null
amazon-top-results.py
dlameter/amazon-top-results
f4437512f872a4f8c427042770a76cd51eba2f5c
[ "MIT" ]
null
null
null
amazon-top-results.py
dlameter/amazon-top-results
f4437512f872a4f8c427042770a76cd51eba2f5c
[ "MIT" ]
null
null
null
import json import time import sys from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_con...
28.980198
98
0.688077
0
0
0
0
0
0
0
0
762
0.260335
b49ba128005050a703dec74a0221d62f301b5b8c
1,656
py
Python
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
import os import plugin import pluginconf util = plugin.get("util") FILE_COUNTER = "~/.vpn_counter" FILE_VPN_SH = "~/.vpn_sh" EXPECT_SCRIPT = """#!/usr/bin/expect spawn {cmd} expect -exact "Enter Auth Username:" send -- "{user}\\n" expect -exact "Enter Auth Password:" send -- "{password}\\n" interact """ class V...
24.352941
84
0.577899
1,342
0.810386
0
0
0
0
0
0
455
0.274758
b49bc707c55e530402f7bf7501d6b84e68f26a0e
7,321
py
Python
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
7
2018-04-04T02:56:48.000Z
2021-09-23T01:34:57.000Z
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
3
2018-07-31T08:56:56.000Z
2022-03-04T01:03:03.000Z
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
4
2018-07-31T08:04:01.000Z
2021-07-07T01:55:34.000Z
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) from abc import ABCMeta, abstractmethod from Crypto import Random from jasypt4py.exceptions import ArgumentError class PBEParameterGenerator(object): __metaclass__ = ABCMeta @staticmethod def adjust(a, a_o...
30.377593
106
0.584483
7,093
0.968857
0
0
1,218
0.166371
0
0
2,298
0.313892
b49c1ea0938a5f26e07c3b56e99b431ee0d681c5
2,862
py
Python
__init__.py
zznop/bn-kconfig-recover
3e30cc6b3e5e273674a3ce6bca6c3bc60ac22f11
[ "MIT" ]
18
2022-01-02T16:48:25.000Z
2022-03-16T12:52:39.000Z
__init__.py
zznop/bn-kconfig-recover
3e30cc6b3e5e273674a3ce6bca6c3bc60ac22f11
[ "MIT" ]
null
null
null
__init__.py
zznop/bn-kconfig-recover
3e30cc6b3e5e273674a3ce6bca6c3bc60ac22f11
[ "MIT" ]
3
2022-01-02T16:48:43.000Z
2022-01-04T17:08:11.000Z
""" Binary Ninja plugin for recovering kernel build configuration settings using BNIL """ import argparse import logging from binaryninja import (BinaryViewType, BinaryView, PluginCommand, SaveFileNameField, get_form_input, BackgroundTaskThread) class RecoverKConfigBackground(BackgroundTaskTh...
29.8125
91
0.667016
631
0.220475
0
0
0
0
0
0
892
0.31167
b49d1896b18fa3dac7c56c26e4f2b64e748d5ed2
182
py
Python
openapi_core/schema/operations/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/operations/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/operations/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
from openapi_core.schema.exceptions import OpenAPIMappingError class OpenAPIOperationError(OpenAPIMappingError): pass class InvalidOperation(OpenAPIOperationError): pass
18.2
62
0.835165
113
0.620879
0
0
0
0
0
0
0
0
b49f409da0defa952f5265984dc68c10a3ae4ba5
1,811
py
Python
rlkit/envs/non_mujoco_half_cheetah_vel.py
hammer-wang/FOCAL-ICLR
4d19149f86acc1d6b987c93cdd3a9d957535c5e3
[ "MIT" ]
24
2021-03-24T07:14:52.000Z
2022-03-17T08:15:44.000Z
rlkit/envs/non_mujoco_half_cheetah_vel.py
hammer-wang/FOCAL-ICLR
4d19149f86acc1d6b987c93cdd3a9d957535c5e3
[ "MIT" ]
4
2021-06-18T16:38:38.000Z
2022-03-18T11:04:45.000Z
rlkit/envs/non_mujoco_half_cheetah_vel.py
hammer-wang/FOCAL-ICLR
4d19149f86acc1d6b987c93cdd3a9d957535c5e3
[ "MIT" ]
6
2021-04-12T18:49:47.000Z
2021-09-07T05:33:22.000Z
import numpy as np from gym import spaces from gym import Env #from rlkit.envs.mujoco.half_cheetah import HalfCheetahEnv from rlkit.envs import register_env @register_env('cheetah-vel') class HalfCheetahVelEnv(Env): def __init__(self, task={}, n_tasks=2, randomize_tasks=True, max_episode_steps=200): ...
28.746032
89
0.605191
1,611
0.889564
0
0
1,641
0.906129
0
0
201
0.110988
b49f48a21b3b551b45af59b6469d669944ac7823
6,812
py
Python
src/openprocurement/planning/api/validation.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
3
2020-03-13T06:44:23.000Z
2020-11-05T18:25:29.000Z
src/openprocurement/planning/api/validation.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
2
2021-03-25T23:29:58.000Z
2022-03-21T22:18:37.000Z
src/openprocurement/planning/api/validation.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
3
2020-10-16T16:25:14.000Z
2021-05-22T12:26:20.000Z
# -*- coding: utf-8 -*- from openprocurement.api.validation import ( validate_json_data, validate_data, validate_accreditation_level, validate_accreditation_level_mode, ) from openprocurement.api.utils import update_logging_context, error_handler, upload_objects_documents from openprocurement.planning.a...
39.375723
112
0.708456
0
0
0
0
0
0
0
0
1,117
0.163975
b4a04bd98861d4add44fe78a70e2497100399370
1,176
py
Python
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
# Importando librerías from numpy import array # Listas y arreglos a = array(['h', 101, 'l', 'l', 'o']) x = ['h', 101, 'l', 'l', 'o'] print(a) print(x) print("Tamaño: ", len(x)) # Condicionales if isinstance(x[1], int): x[1] = chr(x[1]) elif isinstance(x[1], str): pass else: raise TypeError("Tipo no sop...
17.294118
73
0.593537
0
0
0
0
0
0
0
0
279
0.236641
b4a0c7230303a692bcc4f7d71deebfb17b27263a
3,751
py
Python
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
import math SCREEN_WIDTH = 1400 SCREEN_HEIGHT = 800 TEXT = (5, 5) FPS = 60 BASE_SIZE = 10 EYE_SIZE = 4 PUPIL_SIZE = EYE_SIZE - 2 BASE_SPEED = 2 MIN_DISTANCE = 1 MAX_DISTANCE = MIN_DISTANCE + 3 SIZE_INC = 15 EYE_INC = SIZE_INC * 4 PUPIL_INC = SIZE_INC * 8 GROWTH_INC = SIZE_INC * 20 BOOST_MIN = 10 BOOST_FACTOR = 2 BOO...
22.327381
94
0.564916
2,926
0.780059
0
0
76
0.020261
0
0
102
0.027193
b4a0edc51d50de306ea838cb4bc96583019d8526
831
py
Python
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
from fastapi import APIRouter, Depends, status from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from app.controllers.authControllers import login_user, register_user from app.schemas.users import UserCreate from app.schemas.tokens import Token from app.config.database import get...
24.441176
69
0.749699
0
0
0
0
478
0.575211
248
0.298436
31
0.037304
b4a48258b4b4da01eee0072c9a89c865191a602a
2,222
py
Python
clib/links/model/recognition/vggnet.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
1
2017-08-27T00:01:27.000Z
2017-08-27T00:01:27.000Z
clib/links/model/recognition/vggnet.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
49
2017-08-20T02:09:26.000Z
2017-12-31T11:58:27.000Z
clib/links/model/recognition/vggnet.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
1
2017-12-08T08:31:38.000Z
2017-12-08T08:31:38.000Z
import chainer import chainer.functions as F import chainer.links as L class VGGNet(chainer.Chain): """ VGGNet - It takes (224, 224, 3) sized image as imput """ def __init__(self, n_class=1000): super(VGGNet, self).__init__() with self.init_scope(): self.conv1_1 = L.C...
35.83871
72
0.559406
2,148
0.966697
0
0
0
0
0
0
72
0.032403
b4a6dc56ed919c7cf17e22c60123ac3000343e48
2,147
py
Python
scraper.py
TheLady/say_what
22b187e000b0ab13606c73804db0af89b945751d
[ "MIT" ]
null
null
null
scraper.py
TheLady/say_what
22b187e000b0ab13606c73804db0af89b945751d
[ "MIT" ]
null
null
null
scraper.py
TheLady/say_what
22b187e000b0ab13606c73804db0af89b945751d
[ "MIT" ]
null
null
null
import sqlite3 import requests from bs4 import BeautifulSoup from login import keys import config ARTICLE_SEARCH_URL = 'http://api.nytimes.com/svc/search/v2/articlesearch.json?api-key={key}' SUNLIGHT_CONGRESS_URL = 'http://congress.api.sunlightfoundation.com/{method}?{query}&apikey={key}' def get_json(url): ret...
31.573529
98
0.566372
0
0
357
0.166279
0
0
0
0
548
0.25524
b4a6ed73413c10935d4c8fa52b9e4361216bd892
850
py
Python
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
# load modules from dataclasses import dataclass from typing import Union from ...beatsaver.entity import UserDetail # definition class @dataclass(frozen=True) class MapTestplay: createdAt: str feedback: str feedbackAt: str user: Union[UserDetail.UserDetail, None] video: str # definition funct...
21.25
54
0.628235
136
0.16
0
0
160
0.188235
0
0
99
0.116471
b4a997475aae508c6542885c908cb30034b6fc05
1,425
py
Python
django_settings_diff/cli.py
GreenBankObservatory/django-settings-diff
7940ddb6dd42e1464ae58814b8acd504b3824aaf
[ "MIT" ]
null
null
null
django_settings_diff/cli.py
GreenBankObservatory/django-settings-diff
7940ddb6dd42e1464ae58814b8acd504b3824aaf
[ "MIT" ]
null
null
null
django_settings_diff/cli.py
GreenBankObservatory/django-settings-diff
7940ddb6dd42e1464ae58814b8acd504b3824aaf
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """docstring""" from __future__ import print_function, unicode_literals import argparse import sys from .settingsdiff import dump_settings, diff_settings def main(): parser = argparse.ArgumentParser() parser.add_argument( "settings_path_1", nar...
26.886792
86
0.605614
0
0
0
0
0
0
0
0
479
0.33614
b4a9a2a19510f8c534dd1f30edf649c69077292a
5,283
py
Python
Project 1-1/evaluate.py
marridG/2020-EI339_Team_Project
013cd1bf596f8079886809caee65757ecc870dfe
[ "MIT" ]
null
null
null
Project 1-1/evaluate.py
marridG/2020-EI339_Team_Project
013cd1bf596f8079886809caee65757ecc870dfe
[ "MIT" ]
null
null
null
Project 1-1/evaluate.py
marridG/2020-EI339_Team_Project
013cd1bf596f8079886809caee65757ecc870dfe
[ "MIT" ]
null
null
null
import os import types import typing import numpy as np import constants import environment import policy import update class EvaluateEnv: def __init__(self, show_details: bool = True): self.env_obj = environment.Easy21Env() self.show_details = show_details def reset(self): self.env_...
38.562044
115
0.571266
3,336
0.631459
0
0
0
0
0
0
1,632
0.308915
b4abd48fdafccf895445255273d39c4cebef4513
502
py
Python
axelrod/tests/unit/test_mock_player.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_mock_player.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_mock_player.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
import unittest from axelrod import Action, MockPlayer, Player C, D = Action.C, Action.D class TestMockPlayer(unittest.TestCase): def test_strategy(self): for action in [C, D]: m = MockPlayer(actions=[action]) p2 = Player() self.assertEqual(action, m.strategy(p2)) ...
23.904762
52
0.591633
407
0.810757
0
0
0
0
0
0
0
0
b4ac8299434ea398cb53c3d22c8f3e7ec3f42e87
10,870
py
Python
covidtracker/writer_flatcurve.py
mfkasim91/covid19-gradient-tracker
a25d245ef35782052d5ab179d431c6079074b047
[ "MIT" ]
2
2020-05-25T16:06:31.000Z
2020-07-22T06:42:38.000Z
covidtracker/writer_flatcurve.py
mfkasim91/covid19-gradient-tracker
a25d245ef35782052d5ab179d431c6079074b047
[ "MIT" ]
null
null
null
covidtracker/writer_flatcurve.py
mfkasim91/covid19-gradient-tracker
a25d245ef35782052d5ab179d431c6079074b047
[ "MIT" ]
1
2020-07-22T06:47:11.000Z
2020-07-22T06:47:11.000Z
import os import datetime import numpy as np from jinja2 import Template from scipy.stats import hypergeom import matplotlib.pyplot as plt import covidtracker as ct from covidtracker.dataloader import DataLoader from covidtracker.models import update_samples from covidtracker.plotter import plot_interval def plot_grad...
35.639344
233
0.626127
0
0
0
0
0
0
0
0
2,603
0.239466
b4acdc0ec67a2e7b7290b7d91f3ae5eb0dcf9fcf
359
py
Python
SNDG/BioMongo/Model/exceptions.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
null
null
null
SNDG/BioMongo/Model/exceptions.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
null
null
null
SNDG/BioMongo/Model/exceptions.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
1
2020-09-01T15:57:54.000Z
2020-09-01T15:57:54.000Z
''' Created on Jun 15, 2016 @author: eze ''' class NotFoundException(Exception): ''' classdocs ''' def __init__(self, element): ''' Constructor ''' self.elementNotFound = element def __str__(self, *args, **kwargs): return "NotFoundException(%s)" %...
16.318182
61
0.537604
294
0.818942
0
0
0
0
0
0
128
0.356546
b4ae5a006f917cb0bbbc0e033064a28351e9c257
782
py
Python
Strings/tablePrinter.py
shoalcellos/AutomateTheBoringStuff
76d4ead2d41caaa96943cc64000da88c34bef75e
[ "MIT" ]
null
null
null
Strings/tablePrinter.py
shoalcellos/AutomateTheBoringStuff
76d4ead2d41caaa96943cc64000da88c34bef75e
[ "MIT" ]
null
null
null
Strings/tablePrinter.py
shoalcellos/AutomateTheBoringStuff
76d4ead2d41caaa96943cc64000da88c34bef75e
[ "MIT" ]
null
null
null
# Solution to the practise problem # https://automatetheboringstuff.com/chapter6/ # Table Printer def printTable(tableList): """Prints the list of list of strings with each column right justified""" colWidth = 0 for row in tableList: colWidth = max(colWidth, max([len(x) for x in row])) col...
30.076923
81
0.602302
0
0
0
0
0
0
0
0
264
0.337596
b4af056b2e6592ec3909fe81f77a486c195eff3f
4,727
py
Python
src/layers/layers.py
jabalazs/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
10
2019-04-08T02:09:37.000Z
2021-05-04T10:30:44.000Z
src/layers/layers.py
lizezhonglaile/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
null
null
null
src/layers/layers.py
lizezhonglaile/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
4
2019-09-24T14:24:25.000Z
2021-09-02T14:41:38.000Z
import torch import torch.nn as nn from ..utils.torch import pack_forward from .pooling import GatherLastLayer class CharEncoder(nn.Module): FORWARD_BACKWARD_AGGREGATION_METHODS = ["cat", "linear_sum"] def __init__( self, char_embedding_dim, hidden_size, char_fw_bw_agg_method...
33.524823
84
0.635287
4,609
0.975037
0
0
0
0
0
0
1,628
0.344404
b4af1aab669bbf7ec4facbb4437773d39076d0e0
7,458
py
Python
backend/handlers/graphql/mutation_utils/mutationmethod.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
null
null
null
backend/handlers/graphql/mutation_utils/mutationmethod.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
8
2017-10-11T13:26:10.000Z
2021-12-13T20:27:52.000Z
backend/handlers/graphql/mutation_utils/mutationmethod.py
ispras/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
4
2017-07-27T12:25:42.000Z
2018-01-28T02:06:26.000Z
import json import uuid from dataclasses import dataclass from typing import Callable, Sequence, Any, Optional, Tuple, Union, List, Generic, TypeVar from serflag import SerFlag from handlers.graphql.graphql_handler import ContextProtocol from handlers.graphql.utils.string import camelcase from xenadapter.task import ge...
42.375
181
0.622017
6,464
0.86672
0
0
6,486
0.86967
0
0
2,635
0.353312
b4af6bcde4fcd433d18c5597fca9f5e7a83c63f7
3,383
py
Python
infra/utils.py
BrandoZhang/alis
9699eba112eda2ea27d6023221df2df9dc270b7f
[ "CC-BY-2.0" ]
176
2021-04-15T05:28:59.000Z
2022-03-30T07:06:00.000Z
infra/utils.py
BrandoZhang/alis
9699eba112eda2ea27d6023221df2df9dc270b7f
[ "CC-BY-2.0" ]
12
2021-04-17T20:20:53.000Z
2022-03-19T07:04:58.000Z
infra/utils.py
BrandoZhang/alis
9699eba112eda2ea27d6023221df2df9dc270b7f
[ "CC-BY-2.0" ]
22
2021-04-16T02:05:41.000Z
2022-03-03T12:23:10.000Z
import os import shutil import subprocess from distutils.dir_util import copy_tree from shutil import copyfile from typing import List, Optional import click import git from omegaconf import DictConfig def copy_objects(target_dir: os.PathLike, objects_to_copy: List[os.PathLike]): for src_path in objects_to_copy:...
32.528846
124
0.670706
0
0
0
0
0
0
0
0
694
0.205143
b4b34142fa2eee3e44e12513d4714643f5cc5f2d
2,011
py
Python
App/templatetags/app_extras.py
kholdarbekov/Petrol
7d683def3ade380b0323e42a1d9ef8190bcc68ba
[ "MIT" ]
null
null
null
App/templatetags/app_extras.py
kholdarbekov/Petrol
7d683def3ade380b0323e42a1d9ef8190bcc68ba
[ "MIT" ]
null
null
null
App/templatetags/app_extras.py
kholdarbekov/Petrol
7d683def3ade380b0323e42a1d9ef8190bcc68ba
[ "MIT" ]
null
null
null
from django import template from django.utils import timezone register = template.Library() @register.filter def sold(oil, delta_months='12'): total = 0 curTime = timezone.localtime(timezone.now()) from_time = curTime - timezone.timedelta(days=int(delta_months)*30) for t in oil.trades.filter(dateTime...
21.623656
93
0.625062
0
0
0
0
1,891
0.940328
0
0
39
0.019393
b4b539761e3c4833580192978074b62223577348
393
py
Python
tests/sdk/test_util.py
unparalleled-js/py42
8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1
[ "MIT" ]
1
2020-08-18T22:00:22.000Z
2020-08-18T22:00:22.000Z
tests/sdk/test_util.py
unparalleled-js/py42
8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1
[ "MIT" ]
null
null
null
tests/sdk/test_util.py
unparalleled-js/py42
8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1
[ "MIT" ]
1
2021-05-10T23:33:34.000Z
2021-05-10T23:33:34.000Z
from datetime import datetime import py42.util as util def test_convert_timestamp_to_str_returns_expected_str(): assert util.convert_timestamp_to_str(235123656) == "1977-06-14T08:07:36.000Z" def test_convert_datetime_to_timestamp_str_returns_expected_str(): d = datetime(2020, 4, 19, 13, 3, 2, 3) assert...
30.230769
82
0.78117
0
0
0
0
0
0
0
0
52
0.132316
b4bc1366086824966b1d4039b3e9d25839830694
849
py
Python
heartrate.py
mtimkovich/python-fitbit
d6b11b31a716e2fcf4617cf31e0fb5b1da2b86e3
[ "Apache-2.0" ]
null
null
null
heartrate.py
mtimkovich/python-fitbit
d6b11b31a716e2fcf4617cf31e0fb5b1da2b86e3
[ "Apache-2.0" ]
null
null
null
heartrate.py
mtimkovich/python-fitbit
d6b11b31a716e2fcf4617cf31e0fb5b1da2b86e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Script for fetching my min and max heart rate over the past 15 minutes.""" import time from config import * from gather_keys_oauth2 import OAuth2Server if __name__ == '__main__': server = OAuth2Server(client_id, client_secret) server.browser_authorize() fb = server.fitbit det...
30.321429
100
0.63722
0
0
0
0
0
0
0
0
308
0.361927
b4bc63d3ed1e43a273b9651b0e35d83b769d5ccc
11,891
py
Python
wienerschnitzelgemeinschaft/src/Dmytro/src/train_triplet.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/train_triplet.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/train_triplet.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import argparse import collections import os import cv2 import numpy as np import pandas as pd import pretrainedmodels import torch import torch.optim as optim import torchsummary from torch.optim import lr_scheduler from torch.utils.data import DataLoader from torchvision import datasets, models, transforms from tqdm...
34.466667
113
0.604827
1,065
0.089564
0
0
0
0
0
0
1,768
0.148684
b4c02e731c5a64ce720cceaeac6970bdb4974960
47,312
py
Python
tools/armature.py
kayteh/cats-blender-plugin
7fe6cc67aa754f4885f03d7801ba7745e1a6cf12
[ "MIT" ]
3
2018-10-12T05:32:16.000Z
2020-05-16T16:24:34.000Z
tools/armature.py
kayteh/cats-blender-plugin
7fe6cc67aa754f4885f03d7801ba7745e1a6cf12
[ "MIT" ]
null
null
null
tools/armature.py
kayteh/cats-blender-plugin
7fe6cc67aa754f4885f03d7801ba7745e1a6cf12
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2017 GiveMeAllYourCats # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
41.611258
145
0.521622
43,581
0.921141
0
0
218
0.004608
0
0
12,506
0.26433
b4c089a9dff52456f55324f47ec3da262a9da232
8,392
py
Python
lentil/fourier.py
andykee/lentil
28b3e449336ec4a405144b302d7c0d92d308f052
[ "BSD-3-Clause" ]
6
2020-07-30T19:33:22.000Z
2022-01-19T19:17:13.000Z
lentil/fourier.py
andykee/lentil
28b3e449336ec4a405144b302d7c0d92d308f052
[ "BSD-3-Clause" ]
42
2020-06-19T06:02:10.000Z
2022-03-05T00:06:46.000Z
lentil/fourier.py
andykee/lentil
28b3e449336ec4a405144b302d7c0d92d308f052
[ "BSD-3-Clause" ]
2
2021-08-05T18:27:08.000Z
2022-01-18T19:42:40.000Z
import functools import numpy as np def dft2(f, alpha, npix=None, shift=(0, 0), offset=(0, 0), unitary=True, out=None): """Compute the 2-dimensional discrete Fourier Transform. This function allows independent control over input shape, output shape, and output sampling by implementing the matrix triple p...
38.319635
164
0.636916
0
0
0
0
715
0.0852
0
0
6,267
0.746783
b4c0a42efb0c3bbdc0fcf9baf9ae460765b29cd0
999
py
Python
setup.py
db48x/flask-digest
6a3138aef4baa1c1a129eb655c2644bf61387af1
[ "MIT" ]
8
2015-07-18T10:34:38.000Z
2019-11-04T01:50:15.000Z
setup.py
db48x/flask-digest
6a3138aef4baa1c1a129eb655c2644bf61387af1
[ "MIT" ]
1
2019-07-22T14:08:12.000Z
2020-05-10T16:36:36.000Z
setup.py
db48x/flask-digest
6a3138aef4baa1c1a129eb655c2644bf61387af1
[ "MIT" ]
3
2016-05-02T19:04:34.000Z
2021-07-01T10:58:31.000Z
from setuptools import setup, find_packages setup( name = 'Flask-Digest', version = '0.2.1', author = 'Victor Andrade de Almeida', author_email = 'vct.a.almeida@gmail.com', url = 'https://github.com/vctandrade/flask-digest', description = 'A RESTful authentication service for Flask applicatio...
31.21875
76
0.618619
0
0
0
0
0
0
0
0
573
0.573574
b4c114322a503517ae099af3c79f2d917b2231a7
210
py
Python
model/contact.py
tarsic99/Python-training-
96da2df5f249f39370295504748b218247f2935c
[ "Apache-2.0" ]
null
null
null
model/contact.py
tarsic99/Python-training-
96da2df5f249f39370295504748b218247f2935c
[ "Apache-2.0" ]
null
null
null
model/contact.py
tarsic99/Python-training-
96da2df5f249f39370295504748b218247f2935c
[ "Apache-2.0" ]
null
null
null
class Contact: def __init__(self, first_name = None, last_name = None, mobile_phone = None): self.first_name = first_name self.last_name = last_name self.mobile_phone = mobile_phone
35
81
0.685714
210
1
0
0
0
0
0
0
0
0
b4c2782a03a0c1f00a31c56a2d167a1098a5ec9d
42,143
py
Python
src/mrnet/stochastic/kmc.py
kamronald/mrnet
1d0bd6c8ac38deb913a77fce3d6ebc007529993f
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/mrnet/stochastic/kmc.py
kamronald/mrnet
1d0bd6c8ac38deb913a77fce3d6ebc007529993f
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/mrnet/stochastic/kmc.py
kamronald/mrnet
1d0bd6c8ac38deb913a77fce3d6ebc007529993f
[ "BSD-3-Clause-LBNL" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import math import random import numpy as np import matplotlib.pyplot as plt from scipy.constants import N_A from numba import jit import copy __author__ = "Ronald Kam, Evan Spotte-Smith, Xiaowei Xie" __email_...
43.312436
120
0.578008
28,787
0.683079
0
0
7,061
0.167549
0
0
12,836
0.304582
b4c286e145a31477357b61710d97854704934bc6
7,816
py
Python
Testing/Python/TestLinearOrthotropicMaterial.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
3
2017-04-04T04:59:22.000Z
2022-03-13T11:22:40.000Z
Testing/Python/TestLinearOrthotropicMaterial.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
5
2017-04-06T19:46:39.000Z
2019-12-11T23:41:41.000Z
Testing/Python/TestLinearOrthotropicMaterial.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
2
2017-04-29T20:54:57.000Z
2017-04-29T22:28:10.000Z
from __future__ import division import sys import numpy from numpy.core import * import vtk from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk import vtkbone import traceback import unittest class TestLinearOrthotropicMaterial (unittest.TestCase): def test_isotropic (self): material = vtkbone...
51.084967
195
0.714304
7,562
0.967503
0
0
0
0
0
0
145
0.018552
b4c29b196e85ffde60d81fb206a0e333c3a97d09
3,376
py
Python
hailo_model_zoo/datasets/create_kitti_depth_tfrecord.py
markgrobman/hailo_model_zoo
2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf
[ "MIT" ]
2
2021-07-20T15:09:51.000Z
2021-11-17T11:05:02.000Z
hailo_model_zoo/datasets/create_kitti_depth_tfrecord.py
markgrobman/hailo_model_zoo
2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf
[ "MIT" ]
null
null
null
hailo_model_zoo/datasets/create_kitti_depth_tfrecord.py
markgrobman/hailo_model_zoo
2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import argparse import tensorflow as tf import numpy as np from PIL import Image def _int64_feature(values): if not isinstance(values, (tuple, list)): values = [values] return tf.train.Feature(int64_list=tf.train.Int64List(value=values)) def _bytes_feature(values): ...
37.932584
97
0.616706
0
0
0
0
0
0
0
0
470
0.139218
b4c33445657935893d39d91a0309206fd2cd458e
391
py
Python
tellurium/notebooks/__init__.py
kirichoi/tellurium
77cf6e794600587741ebe209644a78051e0db1d5
[ "Apache-2.0" ]
73
2016-06-13T12:44:28.000Z
2021-12-31T14:44:39.000Z
tellurium/notebooks/__init__.py
kirichoi/tellurium
77cf6e794600587741ebe209644a78051e0db1d5
[ "Apache-2.0" ]
461
2015-03-26T00:05:16.000Z
2022-03-16T17:24:35.000Z
tellurium/notebooks/__init__.py
kirichoi/tellurium
77cf6e794600587741ebe209644a78051e0db1d5
[ "Apache-2.0" ]
30
2016-01-18T16:50:54.000Z
2021-07-06T09:29:53.000Z
""" notebook imports """ from __future__ import absolute_import import warnings import ipywidgets import IPython from .notebooktools import * from .ontologysearch import OntologySearch from .parameterslider import ParameterSlider from .speciessearch import SearchBySpeciesForm # except ImportError: # warnings.war...
17.772727
83
0.808184
0
0
0
0
0
0
0
0
128
0.327366
b4c33dadc7de5b116b0004a7e5d4f5eac3a9ab0a
2,297
py
Python
fashion/warehouse/fashion.core/xform/generateJinja2.py
braddillman/fashion
2588f3712a72e81f3cb7733e40b6c3751aa5ece2
[ "Apache-2.0" ]
1
2021-05-23T09:01:39.000Z
2021-05-23T09:01:39.000Z
fashion/warehouse/fashion.core/xform/generateJinja2.py
braddillman/fashion
2588f3712a72e81f3cb7733e40b6c3751aa5ece2
[ "Apache-2.0" ]
null
null
null
fashion/warehouse/fashion.core/xform/generateJinja2.py
braddillman/fashion
2588f3712a72e81f3cb7733e40b6c3751aa5ece2
[ "Apache-2.0" ]
null
null
null
''' Created on 2018-12-21 Copyright (c) 2018 Bradford Dillman Generate code from a model and a jinja2 template. ''' import logging from pathlib import Path from jinja2 import FileSystemLoader, Environment from jinja2.exceptions import TemplateNotFound from munch import munchify from fashion.mirror import Mirror ...
33.779412
94
0.62734
1,715
0.746626
0
0
0
0
0
0
611
0.265999
b4c387f472a346519c5c008b90b4db7667d0b481
622
py
Python
algorithm/821.py
ChuangbinWang/leetcode
79c4ea82dc2f4105ed40ec2f4d3d9ee797c81d3b
[ "MIT" ]
null
null
null
algorithm/821.py
ChuangbinWang/leetcode
79c4ea82dc2f4105ed40ec2f4d3d9ee797c81d3b
[ "MIT" ]
null
null
null
algorithm/821.py
ChuangbinWang/leetcode
79c4ea82dc2f4105ed40ec2f4d3d9ee797c81d3b
[ "MIT" ]
null
null
null
class Solution(object): def shortestToChar(self, S, C): """ :type S: str :type C: str :rtype: List[int] """ pl = [] ret = [0] * len(S) for i in range(0, len(S)): if S[i] == C: pl.append(i) for i in range(...
27.043478
49
0.414791
498
0.800643
0
0
0
0
0
0
114
0.18328
b4c44cb204c3826e5c1e00d10a308dfe64d24ddf
386
py
Python
_solved/_solutions/visualization_02_seaborn14.py
jorisvandenbossche/ICES-python-data
63864947657f37cb26cb4e2dcd67ff106dffe9cd
[ "BSD-3-Clause" ]
1
2022-03-02T17:41:46.000Z
2022-03-02T17:41:46.000Z
notebooks/_solutions/visualization_02_seaborn14.py
jorisvandenbossche/ICES-python-data
63864947657f37cb26cb4e2dcd67ff106dffe9cd
[ "BSD-3-Clause" ]
1
2022-03-14T15:15:53.000Z
2022-03-14T15:15:53.000Z
notebooks/_solutions/visualization_02_seaborn14.py
jorisvandenbossche/ICES-python-data
63864947657f37cb26cb4e2dcd67ff106dffe9cd
[ "BSD-3-Clause" ]
null
null
null
# Optional solution with tidy data representation (providing x and y) monthly_victim_counts_melt = monthly_victim_counts.reset_index().melt( id_vars="datetime", var_name="victim_type", value_name="count" ) sns.relplot( data=monthly_victim_counts_melt, x="datetime", y="count", hue="victim_type", ...
27.571429
70
0.712435
0
0
0
0
0
0
0
0
147
0.380829
b4c4c46e92d0cc32c81af417d80cbffbc1577999
488
py
Python
Grokking-Algorithms/Selection_Sort.py
AzuLiu/Algorithms-by-Python
4c907725e3c55222642990827ca0aba302ab2a8c
[ "MIT" ]
1
2018-03-17T19:51:46.000Z
2018-03-17T19:51:46.000Z
Grokking-Algorithms/Selection_Sort.py
AzuLiu/Algorithms-by-Python
4c907725e3c55222642990827ca0aba302ab2a8c
[ "MIT" ]
null
null
null
Grokking-Algorithms/Selection_Sort.py
AzuLiu/Algorithms-by-Python
4c907725e3c55222642990827ca0aba302ab2a8c
[ "MIT" ]
null
null
null
def findSmallest(arr): smallest = arr[0] smallest_index = 0 for i in range(1, len(arr)): if arr[i] < smallest: smallest = arr[i] smallest_index = i return smallest_index def selection_sort(arr): newarr = [] for i in range(len(arr)): smallest...
24.4
47
0.581967
0
0
0
0
0
0
0
0
0
0
b4c61c8f7d576e30bc60c8fc8b5200df83eec589
73
py
Python
library/source1/mdl/structs/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
library/source1/mdl/structs/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
library/source1/mdl/structs/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from ....utils.byte_io_mdl import ByteIO from ....shared.base import Base
36.5
40
0.767123
0
0
0
0
0
0
0
0
0
0
b4c6b2e3ba90e086aba9fcd3f0c69b5fe6016f3e
71
py
Python
web2py-appliances-master/VideoLibrary/languages/it.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
4
2015-05-28T04:37:28.000Z
2017-12-03T11:11:27.000Z
languages/it.py
sungchi/feed9
25aafce5a47fef6133ac7fef42401cbe62003d81
[ "MIT" ]
null
null
null
languages/it.py
sungchi/feed9
25aafce5a47fef6133ac7fef42401cbe62003d81
[ "MIT" ]
null
null
null
{ 'Hello World':'Salve Mondo', 'Welcome to web2py':'Ciao da wek2py', }
14.2
37
0.661972
0
0
0
0
0
0
0
0
61
0.859155
b4c7bce749ccc33db70d2dbdefc0de7260a71e74
190
py
Python
rtmBot/izyrtm_prop.py
izyrtm/izyrtm-server
c1bf0a6c3734decb7cff8266706060791479d46b
[ "Apache-2.0" ]
1
2019-10-05T14:41:02.000Z
2019-10-05T14:41:02.000Z
rtmBot/izyrtm_prop.py
izyrtm/izyrtm-server
c1bf0a6c3734decb7cff8266706060791479d46b
[ "Apache-2.0" ]
null
null
null
rtmBot/izyrtm_prop.py
izyrtm/izyrtm-server
c1bf0a6c3734decb7cff8266706060791479d46b
[ "Apache-2.0" ]
null
null
null
domain='https://monbot.hopto.org' apm_id='admin' apm_pw='New1234!' apm_url='https://monbot.hopto.org:3000' db_host='monbot.hopto.org' db_user='izyrtm' db_pw='new1234!' db_datadbase='monbot'
21.111111
39
0.752632
0
0
0
0
0
0
0
0
118
0.621053
b4c80401758b4e5dc91c46566ed5b6f3d9d37ae4
721
py
Python
get_pos_data.py
chinnadhurai/lm-context-analysis
826a4eb96738777c3a5ce4dc4300f5b5fc29ea8a
[ "Apache-2.0" ]
42
2018-05-14T15:40:45.000Z
2022-01-21T13:31:42.000Z
get_pos_data.py
chinnadhurai/lm-context-analysis
826a4eb96738777c3a5ce4dc4300f5b5fc29ea8a
[ "Apache-2.0" ]
null
null
null
get_pos_data.py
chinnadhurai/lm-context-analysis
826a4eb96738777c3a5ce4dc4300f5b5fc29ea8a
[ "Apache-2.0" ]
11
2018-05-25T07:03:53.000Z
2020-03-15T15:52:01.000Z
import sys if len(sys.argv) < 2: print('Need the dataset name!') exit(0) for split in ['train', 'valid', 'test']: with open('data/'+sys.argv[1]+'/'+split+'.txt', 'r') as f1, open( 'data/'+sys.argv[1]+'_pos_only/'+split+'.txt', 'r') as f2, open( 'data/'+sys.argv[1]+'_pos/'+split...
32.772727
78
0.481276
0
0
0
0
0
0
0
0
157
0.217753
b4c97a273a81770eaaca18c88e6e3fb3e5d16e27
1,307
py
Python
cupy/linalg/norm.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/linalg/norm.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/linalg/norm.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
def norm(x, ord=None, axis=None): # TODO(beam2d): Implement it raise NotImplementedError def cond(x, p=None): # TODO(beam2d): Implement it raise NotImplementedError def det(a): # TODO(beam2d): Implement it raise NotImplementedError def matrix_rank(M, tol=None): # TODO(beam2d): Implemen...
26.673469
77
0.646519
0
0
0
0
0
0
0
0
859
0.65723
b4cc3ae61af4ef20bae2801cc4f46d491ccbd240
2,771
py
Python
examples/optical_elements/examples_refractive_interface.py
srio/minishadow
019bf46106f09f89297e01c273784e8059e02014
[ "MIT" ]
1
2019-10-30T10:04:43.000Z
2019-10-30T10:04:43.000Z
examples/optical_elements/examples_refractive_interface.py
srio/minishadow
019bf46106f09f89297e01c273784e8059e02014
[ "MIT" ]
9
2020-09-02T16:13:01.000Z
2020-09-30T15:09:44.000Z
examples/optical_elements/examples_refractive_interface.py
srio/shadow4
019bf46106f09f89297e01c273784e8059e02014
[ "MIT" ]
null
null
null
import numpy from shadow4.sources.source_geometrical.source_geometrical import SourceGeometrical from shadow4.beamline.optical_elements.refractors.s4_conic_interface import S4ConicInterface, S4ConicInterfaceElement from shadow4.tools.graphics import plotxy from shadow4.syned.element_coordinates import ElementCoord...
32.6
117
0.611693
0
0
0
0
0
0
0
0
286
0.103212
b4cc52d37e832307c2b993281014ae5693bca403
281
py
Python
recipes/transabyss/setup.py
ieguinoa/bioconda-recipes
da8a66ec30d36273a8cdf8783a26604f23c45534
[ "MIT" ]
null
null
null
recipes/transabyss/setup.py
ieguinoa/bioconda-recipes
da8a66ec30d36273a8cdf8783a26604f23c45534
[ "MIT" ]
null
null
null
recipes/transabyss/setup.py
ieguinoa/bioconda-recipes
da8a66ec30d36273a8cdf8783a26604f23c45534
[ "MIT" ]
null
null
null
import subprocess from setuptools import setup, find_packages, Extension setup( name='transabyss', version='1.54', author='transabyss', license='Free Software License', packages=['transabyss'], scripts=['scripts/transabyss', 'scripts/transabyss-merge'], )
23.416667
63
0.704626
0
0
0
0
0
0
0
0
111
0.395018
b4ccff062a09f477b0fda915a3727e153ff816cf
252
py
Python
ffs/__init__.py
clbarnes/ffs
bc67692178232d3a77c05cefd1139461cf17882a
[ "MIT" ]
null
null
null
ffs/__init__.py
clbarnes/ffs
bc67692178232d3a77c05cefd1139461cf17882a
[ "MIT" ]
null
null
null
ffs/__init__.py
clbarnes/ffs
bc67692178232d3a77c05cefd1139461cf17882a
[ "MIT" ]
null
null
null
from .classes import Entry, EntryJso from .spec_version import SPEC_VERSION from .version import version as __version__ # noqa: F401 from .version import version_tuple as __version_info__ # noqa: F401 __all__ = ["Entry", "EntryJso", "SPEC_VERSION"]
36
68
0.781746
0
0
0
0
0
0
0
0
55
0.218254
b4cd953c3638b37bbb67c63ed55c3b95b4493e2d
1,816
py
Python
src/main/gui/core/functions.py
UntactOrder/UntactOrder.PosServer
c05094fe70fadeeb1ba1a8605606a6002730a699
[ "MIT" ]
null
null
null
src/main/gui/core/functions.py
UntactOrder/UntactOrder.PosServer
c05094fe70fadeeb1ba1a8605606a6002730a699
[ "MIT" ]
null
null
null
src/main/gui/core/functions.py
UntactOrder/UntactOrder.PosServer
c05094fe70fadeeb1ba1a8605606a6002730a699
[ "MIT" ]
null
null
null
# /////////////////////////////////////////////////////////////// # # BY: WANDERSON M.PIMENTA # PROJECT MADE WITH: Qt Designer and PySide6 # V: 1.0.0 # # This project can be used freely for all uses, as long as they maintain the # respective credits only in the Python scripts, any information in the visual # interface ...
34.264151
78
0.507709
0
0
0
0
0
0
0
0
1,159
0.638216
b4cdd7ecf5ad286a184af28a0d07e8a49f6ad38d
9,939
py
Python
DeepJH/agents/actor_critic_agents/explorer.py
microsoft/Dr-Jekyll-and-Mr-Hyde-The-Strange-Case-of-Off-Policy-Policy-Updates
e085b10156787838a342037e6042af00f5262d5a
[ "MIT" ]
2
2021-12-22T18:18:30.000Z
2022-02-25T17:57:33.000Z
DeepJH/agents/actor_critic_agents/explorer.py
microsoft/Dr-Jekyll-and-Mr-Hyde-The-Strange-Case-of-Off-Policy-Policy-Updates
e085b10156787838a342037e6042af00f5262d5a
[ "MIT" ]
null
null
null
DeepJH/agents/actor_critic_agents/explorer.py
microsoft/Dr-Jekyll-and-Mr-Hyde-The-Strange-Case-of-Off-Policy-Policy-Updates
e085b10156787838a342037e6042af00f5262d5a
[ "MIT" ]
null
null
null
from multiprocessing.dummy import Value from agents.Base_Agent import Base_Agent import copy import numpy as np import torch import torch.nn.functional as F from torch.optim import Adam class RunningMeanStd(object): # https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm def _...
46.227907
130
0.642922
9,745
0.980481
0
0
160
0.016098
0
0
549
0.055237
b4ce4ceb63dbb6f1fc462df7aa6a104fb75ec08a
6,079
py
Python
python/nlusvc/spacy/svc/perform_pos_parse.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlusvc/spacy/svc/perform_pos_parse.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlusvc/spacy/svc/perform_pos_parse.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import pandas as pd from pandas import DataFrame from spacy.lang.en import English from tabulate import tabulate from base import BaseObject class PerformPosParse(BaseObject): """ Perform POS (Part-of-Speech) Parse with spaCy Sample Input: Amoebozoa is...
51.516949
106
0.406317
5,888
0.968262
0
0
0
0
0
0
4,870
0.800855
b4cefef49f2369f3f8e23dfe6b70e513930b24a7
2,229
py
Python
causal_world/intervention_actors/visual_actor.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
2
2021-09-22T08:20:12.000Z
2021-11-16T14:20:45.000Z
causal_world/intervention_actors/visual_actor.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
causal_world/intervention_actors/visual_actor.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
from causal_world.intervention_actors.base_actor import \ BaseInterventionActorPolicy import numpy as np class VisualInterventionActorPolicy(BaseInterventionActorPolicy): def __init__(self, **kwargs): """ This intervention actor intervenes on all visual components of the robot, (i.e: ...
35.951613
87
0.599372
2,117
0.949753
0
0
0
0
0
0
918
0.411844
b4cf1ec1bfea538a87dc03baa5a20d0eebb02913
3,259
py
Python
app/utils.py
AnthonyBloomer/covid-cli
733ab3678614368dd0010559bec9cbe5ec460670
[ "MIT" ]
3
2020-03-31T14:28:21.000Z
2022-03-15T00:28:26.000Z
app/utils.py
AnthonyBloomer/covid-cli
733ab3678614368dd0010559bec9cbe5ec460670
[ "MIT" ]
2
2020-11-01T14:01:53.000Z
2020-11-02T21:32:08.000Z
app/utils.py
AnthonyBloomer/covid-cli
733ab3678614368dd0010559bec9cbe5ec460670
[ "MIT" ]
2
2020-11-01T13:59:50.000Z
2022-03-15T00:28:29.000Z
import csv import time from datetime import datetime from prettytable import PrettyTable from .api import countries, country, totals, us_states def to_csv(data): fieldnames = set() for event in data: fieldnames |= event.keys() with open("%s.csv" % int(time.time()), "w", newline="") as c: ...
25.069231
83
0.438785
0
0
0
0
0
0
0
0
488
0.149739
b4d1f22a627dce69c863deac50b2db6d2d2229f8
2,879
py
Python
yann/utils/timer.py
michalwols/yann
b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf
[ "MIT" ]
32
2019-04-13T11:03:38.000Z
2022-01-24T03:00:56.000Z
yann/utils/timer.py
michalwols/yann
b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf
[ "MIT" ]
13
2019-09-29T00:51:24.000Z
2021-12-12T15:06:00.000Z
yann/utils/timer.py
michalwols/yann
b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf
[ "MIT" ]
5
2020-01-01T10:27:26.000Z
2021-12-20T18:33:08.000Z
from collections import OrderedDict, defaultdict from contextlib import contextmanager from datetime import datetime import torch.cuda from ..viz.plot import plot_timeline def time(name=None, sync=False): return Task(name=name, sync=sync, log=True) class Task: __slots__ = ('name', 'start_time', 'end_time', 'met...
27.160377
102
0.661688
2,622
0.910733
0
0
301
0.10455
0
0
384
0.13338
b4d23f41582bbbee77cde2520e06f0addf9b2c8b
6,731
py
Python
conans/client/client_cache.py
jbaruch/conan
263722b5284828c49774ffe18d314b24ee11e178
[ "MIT" ]
null
null
null
conans/client/client_cache.py
jbaruch/conan
263722b5284828c49774ffe18d314b24ee11e178
[ "MIT" ]
null
null
null
conans/client/client_cache.py
jbaruch/conan
263722b5284828c49774ffe18d314b24ee11e178
[ "MIT" ]
1
2021-03-03T17:15:46.000Z
2021-03-03T17:15:46.000Z
import os from conans.errors import ConanException from conans.util.files import save, load, normalize from conans.model.settings import Settings from conans.client.conf import ConanClientConfigParser, default_client_conf, default_settings_yml from conans.model.values import Values from conans.client.detect import det...
38.462857
97
0.655326
6,019
0.894221
0
0
1,867
0.277373
0
0
755
0.112168