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
8b31ef4de81790112ce464c5e4351de81b31c2e8
2,889
py
Python
src/MemeEngine/meme_generator.py
svd-007/Meme-Generator
09b3073bce11eb655d888a7ee789ba79a6f41862
[ "BSD-3-Clause" ]
1
2021-07-03T07:56:22.000Z
2021-07-03T07:56:22.000Z
src/MemeEngine/meme_generator.py
svd-007/Meme-Generator
09b3073bce11eb655d888a7ee789ba79a6f41862
[ "BSD-3-Clause" ]
null
null
null
src/MemeEngine/meme_generator.py
svd-007/Meme-Generator
09b3073bce11eb655d888a7ee789ba79a6f41862
[ "BSD-3-Clause" ]
null
null
null
"""Represent a class to generate a meme.""" from PIL import Image, ImageDraw, ImageFont from os import makedirs from random import randint from textwrap import fill class MemeGenerator: """ A class to generate a meme. The following responsibilities are defined under this class: - Loading of an image...
28.323529
79
0.564209
2,721
0.941848
0
0
0
0
0
0
1,553
0.537556
8b328370d1cf93b389aef2ac7b2ff633d0f7663a
519
py
Python
rotait/workload.py
stevecshanks/rota-it
09a48b3e8c863557968258f9083bb69e4188e5b3
[ "MIT" ]
null
null
null
rotait/workload.py
stevecshanks/rota-it
09a48b3e8c863557968258f9083bb69e4188e5b3
[ "MIT" ]
null
null
null
rotait/workload.py
stevecshanks/rota-it
09a48b3e8c863557968258f9083bb69e4188e5b3
[ "MIT" ]
null
null
null
from collections import Counter class Workload: def __init__(self, tasks): self.per_person = Counter(task.assignee for task in tasks) def assign(self, task, person): task.assignee = person self.per_person[person] += 1 return task def assigned_to(self, person): re...
25.95
77
0.655106
485
0.934489
0
0
0
0
0
0
0
0
8b3302b5c0dc0c3439e25e39f6c077dcd923e1ca
11,386
py
Python
onsset/updated_summaries.py
AndreasSahlberg/onsset-Ethiopia
b18759f1ad65079d500cbd12f55e5ea9a7c35119
[ "MIT" ]
null
null
null
onsset/updated_summaries.py
AndreasSahlberg/onsset-Ethiopia
b18759f1ad65079d500cbd12f55e5ea9a7c35119
[ "MIT" ]
null
null
null
onsset/updated_summaries.py
AndreasSahlberg/onsset-Ethiopia
b18759f1ad65079d500cbd12f55e5ea9a7c35119
[ "MIT" ]
null
null
null
""" This script produces the summary analysis required to provide input data for the OSeMOSYS soft-link """ SET_TOTAL_ENERGY_PER_CELL = "TotalEnergyPerCell" SET_ELEC_FINAL_CODE = "FinalElecCode" SET_ELEC_CURRENT = 'ElecStart' SET_POP = 'Pop' SET_NEW_CONNECTIONS = 'NewConnections' SET_NEW_CAPACITY = 'NewCapacity' SET_I...
50.830357
199
0.620675
0
0
0
0
0
0
0
0
1,650
0.144915
8b3374c6ece3f73fe69ec41666cc9030414c8a9c
13,575
py
Python
2021/python/day-14.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
1
2021-12-04T18:09:44.000Z
2021-12-04T18:09:44.000Z
2021/python/day-14.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
2021/python/day-14.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
from collections import Counter from functools import cache, partial, reduce from math import prod import pdb import aoc import networkx as nx from toolz import keyfilter, sliding_window from aoc import Point, adjacent_transforms, generate_bounded_coords from tadhg_utils import ( lcompact, lconcat, lfilter...
26.722441
79
0.550645
0
0
0
0
1,479
0.10895
0
0
6,722
0.495175
8b34d879c3ac60c77eb7443da1cbae23ffb3e2f1
3,169
py
Python
mmrelay.py
AlexandrVLopatin/mmrelay
3b98a9d3b583cf4962417aa0dd8d7667bf191025
[ "MIT" ]
null
null
null
mmrelay.py
AlexandrVLopatin/mmrelay
3b98a9d3b583cf4962417aa0dd8d7667bf191025
[ "MIT" ]
null
null
null
mmrelay.py
AlexandrVLopatin/mmrelay
3b98a9d3b583cf4962417aa0dd8d7667bf191025
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import sys import asyncio import aiohttp from aiohttp.resolver import AsyncResolver import requests import websockets MM_URL = 'http://127.0.0.1:8065/api/v4' MM_WSURL = 'ws://127.0.0.1:8065/api/v4/websocket' MM_LOGIN = 'bot@localhost.local' MM_PASSWORD = '12345678' CALLBACK_URL = ...
27.798246
84
0.64847
0
0
0
0
0
0
1,519
0.479331
434
0.136952
8b3580c4950933eb2102191174644d25a3e5c264
1,165
py
Python
legacy/ABC_110/D1.py
mo-mo-666/AtCoder
99556f5ed98510850aaa8ab2b845da6a9359f5a5
[ "MIT" ]
null
null
null
legacy/ABC_110/D1.py
mo-mo-666/AtCoder
99556f5ed98510850aaa8ab2b845da6a9359f5a5
[ "MIT" ]
null
null
null
legacy/ABC_110/D1.py
mo-mo-666/AtCoder
99556f5ed98510850aaa8ab2b845da6a9359f5a5
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: mo-mo- # # Created: 23/09/2018 # Copyright: (c) mo-mo- 2018 # Licence: <your licence> #------------------------------------------------------------------------------- ...
21.574074
81
0.345923
0
0
0
0
0
0
0
0
309
0.265236
8b35a7c3678ed712b3ff354ea5d271f206795d53
221
py
Python
UVa 11332 - Summing Digits/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 11332 - Summing Digits/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 11332 - Summing Digits/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
import sys sys.stdin = open('input.txt') while True: N = int(input()) if not N: break strN = str(N) while len(strN) > 1: N = sum(int(i) for i in strN) strN = str(N) print strN
17
37
0.515837
0
0
0
0
0
0
0
0
11
0.049774
8b35d9982525705ce805c06ded1df966dff59ab7
3,057
py
Python
backend/app/api/users.py
vacuumlabs/cowork-reservation
5b4d275f6e2d1b1877b3b57f5550f27ed2b3f641
[ "MIT" ]
null
null
null
backend/app/api/users.py
vacuumlabs/cowork-reservation
5b4d275f6e2d1b1877b3b57f5550f27ed2b3f641
[ "MIT" ]
21
2021-10-11T11:43:19.000Z
2022-02-27T19:18:56.000Z
backend/app/api/users.py
vacuumlabs/cowork-reservation
5b4d275f6e2d1b1877b3b57f5550f27ed2b3f641
[ "MIT" ]
2
2021-10-16T11:52:43.000Z
2021-11-15T16:25:08.000Z
import json from flask import jsonify, request, make_response, render_template from flask.blueprints import Blueprint from app.daos import tenant_dao from app.firebase_utils import * from app.services import user_service from app.user_dao import user_dao users_bp = Blueprint("users_bp", __name__) @users_bp....
42.458333
105
0.690546
0
0
0
0
2,733
0.894014
0
0
541
0.176971
8b364fcc96d5ff47ae2f83f96ec7196a4d269a7f
657
py
Python
test_credentials.py
kuya-ui/Password-Locker
17d281d878d2de31d33eba1c17657e18820ac36b
[ "MIT" ]
null
null
null
test_credentials.py
kuya-ui/Password-Locker
17d281d878d2de31d33eba1c17657e18820ac36b
[ "MIT" ]
null
null
null
test_credentials.py
kuya-ui/Password-Locker
17d281d878d2de31d33eba1c17657e18820ac36b
[ "MIT" ]
null
null
null
import unittest from credentials import Credential class TestCredential(unittest.TestCase): """ Test class that defines test cases for the credential class behaviours, the arguments help in creating test cases. """ def setUp(self): """ this method runs before each test case, carri...
22.655172
94
0.657534
556
0.846271
0
0
0
0
0
0
346
0.526636
8b368cfa92000ef0ac1532c8bf52270153786cd6
6,810
py
Python
awslambda/python_requirements/_python_project.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
1
2021-09-09T14:59:53.000Z
2021-09-09T14:59:53.000Z
awslambda/python_requirements/_python_project.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
68
2021-07-26T15:58:22.000Z
2022-01-10T13:09:25.000Z
awslambda/python_requirements/_python_project.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
null
null
null
"""Python project.""" from __future__ import annotations import logging import shutil from typing import TYPE_CHECKING, ClassVar, Optional, Set, Tuple from runway.compat import cached_property from typing_extensions import Literal from ..base_classes import Project from ..constants import BASE_WORK_DIR from ..models...
33.880597
87
0.63304
6,115
0.897944
0
0
4,511
0.662408
0
0
2,000
0.293686
8b382e46c0e90f425bd94344439c40971ea15436
1,435
py
Python
instrbuilder/examples/oscilloscope.py
nopeppermint/instrbuilder
8c8c7a94b28f95b4b8ef5374d11b5c17395be045
[ "MIT" ]
5
2019-01-22T15:41:41.000Z
2021-07-26T05:42:07.000Z
instrbuilder/examples/oscilloscope.py
nopeppermint/instrbuilder
8c8c7a94b28f95b4b8ef5374d11b5c17395be045
[ "MIT" ]
22
2018-06-06T16:09:12.000Z
2019-02-07T03:05:02.000Z
instrbuilder/examples/oscilloscope.py
nopeppermint/instrbuilder
8c8c7a94b28f95b4b8ef5374d11b5c17395be045
[ "MIT" ]
5
2019-03-08T22:34:06.000Z
2021-08-16T18:28:15.000Z
# Lucas J. Koerner # 05/2018 # koerner.lucas@stthomas.edu # University of St. Thomas from instrbuilder.instrument_opening import open_by_name import time KEYSIGHT = False RIGOL = True if KEYSIGHT: osc = open_by_name(name='msox_scope') # name within the configuration file (config.yaml) osc.set('time_range', 1e-3)...
23.52459
90
0.677352
0
0
0
0
0
0
0
0
719
0.501045
8b396b91eb6bc48d22e9f3f5fe3a7d100a012e72
1,668
py
Python
setup.py
pcaro/django-redator
53edd0f6d10a1577cd2a1eef2d6cbab30ea656e4
[ "BSD-3-Clause" ]
1
2017-05-31T07:23:07.000Z
2017-05-31T07:23:07.000Z
setup.py
pcaro/django-redator
53edd0f6d10a1577cd2a1eef2d6cbab30ea656e4
[ "BSD-3-Clause" ]
null
null
null
setup.py
pcaro/django-redator
53edd0f6d10a1577cd2a1eef2d6cbab30ea656e4
[ "BSD-3-Clause" ]
null
null
null
#/usr/bin/env python import codecs import os import sys from setuptools import setup, find_packages if 'publish' in sys.argv: os.system('python setup.py sdist upload') sys.exit() read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read() # Dynamically calculate the version based on redator.VERSIO...
32.705882
81
0.681655
0
0
0
0
0
0
0
0
956
0.573141
8b3a84c2a16392cfb5f300789bb38d4d26b81c9c
1,185
py
Python
desktop/core/ext-py/docutils-0.14/test/test_parsers/test_parser.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/docutils-0.14/test/test_parsers/test_parser.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/docutils-0.14/test/test_parsers/test_parser.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#! /usr/bin/env python # $Id: test_parser.py 7463 2012-06-22 19:49:51Z milde $ # Author: Stefan Rank <strank(AT)strank(DOT)info> # Copyright: This module has been placed in the public domain. """ Tests for basic functionality of parser classes. """ import sys import unittest import DocutilsTestSupport #...
31.184211
78
0.664979
686
0.578903
0
0
0
0
0
0
418
0.352743
8b3b6823cfef19d1d56f714c0f6996299375bb5f
41,975
py
Python
aloha/aloha_object.py
TDHTTTT/MadGraph_Windows
8a0be5befed650b6adcb9825c1b57af907c0167a
[ "NCSA" ]
null
null
null
aloha/aloha_object.py
TDHTTTT/MadGraph_Windows
8a0be5befed650b6adcb9825c1b57af907c0167a
[ "NCSA" ]
null
null
null
aloha/aloha_object.py
TDHTTTT/MadGraph_Windows
8a0be5befed650b6adcb9825c1b57af907c0167a
[ "NCSA" ]
null
null
null
################################################################################ # # Copyright (c) 2010 The MadGraph5_aMC@NLO Development team and Contributors # # This file is a part of the MadGraph5_aMC@NLO project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # h...
40.555556
123
0.445289
32,628
0.77732
0
0
2,473
0.058916
0
0
9,939
0.236784
8b3b69c06ca69440a093771d31274d985a796b16
27,516
py
Python
sp_experiment/define_instructions.py
sappelhoff/sp_psychopy
79cae80eb920b35fb27a52acfde0eda38b9124b1
[ "BSD-3-Clause" ]
1
2022-03-11T14:05:31.000Z
2022-03-11T14:05:31.000Z
sp_experiment/define_instructions.py
sappelhoff/sp_psychopy
79cae80eb920b35fb27a52acfde0eda38b9124b1
[ "BSD-3-Clause" ]
8
2019-02-12T07:47:47.000Z
2021-01-25T14:05:05.000Z
sp_experiment/define_instructions.py
sappelhoff/sp_psychopy
79cae80eb920b35fb27a52acfde0eda38b9124b1
[ "BSD-3-Clause" ]
2
2019-02-19T17:10:43.000Z
2022-03-11T14:05:32.000Z
"""Functions that either provide an instruction flow or a string to display.""" import os import os.path as op import numpy as np import pandas as pd import sp_experiment from sp_experiment.utils import get_final_choice_outcomes from sp_experiment.define_settings import (txt_color, ...
54.812749
825
0.626763
0
0
0
0
0
0
0
0
14,838
0.536714
8b3ba7884b7496d3798a67dd03266681d387fa73
2,435
py
Python
bareml/machinelearning/supervised/perceptron.py
shotahorii/ml-from-scratch
10fe8c9d5811bfcb9ee303aba2087524574681e6
[ "MIT" ]
3
2021-03-21T21:16:42.000Z
2021-06-27T03:20:04.000Z
bareml/machinelearning/supervised/perceptron.py
shotahorii/ml-from-scratch
10fe8c9d5811bfcb9ee303aba2087524574681e6
[ "MIT" ]
null
null
null
bareml/machinelearning/supervised/perceptron.py
shotahorii/ml-from-scratch
10fe8c9d5811bfcb9ee303aba2087524574681e6
[ "MIT" ]
null
null
null
""" Perceptron. A simple implementation of Perceptron classifier algorithm described in Bishop(2006). Author: Shota Horii <sh.sinker@gmail.com> Test: tests/test_perceptron.py References: C.M. Bishop (2006). Pattern Recognition and Machine Learning. Springer. 192-196. """ import numpy as np from ..base import Binar...
24.59596
80
0.526899
2,056
0.844353
0
0
0
0
0
0
1,306
0.536345
8b3bf724c24c7b68522d09b8f7f0a72b85989feb
283,339
py
Python
src/service/picture_rc.py
NoOneXXX/magic-wormhole-client
6b8bebebdf058d66fa4e519092558e8d95090c58
[ "MIT" ]
null
null
null
src/service/picture_rc.py
NoOneXXX/magic-wormhole-client
6b8bebebdf058d66fa4e519092558e8d95090c58
[ "MIT" ]
null
null
null
src/service/picture_rc.py
NoOneXXX/magic-wormhole-client
6b8bebebdf058d66fa4e519092558e8d95090c58
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x6c\x19\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x02\x00\x...
65.135402
129
0.727154
0
0
0
0
0
0
0
0
282,714
0.997794
8b3cdb0b30dd4dc0f7e827dc6970c3aa9e5b43da
1,116
py
Python
dags/hello_world_dag.py
garanin-se/airflow
1e9b08435be76e3d565b2973809e434243651273
[ "Apache-2.0" ]
null
null
null
dags/hello_world_dag.py
garanin-se/airflow
1e9b08435be76e3d565b2973809e434243651273
[ "Apache-2.0" ]
null
null
null
dags/hello_world_dag.py
garanin-se/airflow
1e9b08435be76e3d565b2973809e434243651273
[ "Apache-2.0" ]
null
null
null
from airflow import DAG from airflow.operators.bash_operator import BashOperator from datetime import datetime, timedelta args = { 'owner': 'garanin', 'start_date': datetime(2018, 11, 1), 'provide_context': True} # настройки дага, которые перадаем каждому дагу через дефолтный аргумент with DAG("Hello_wor...
31
102
0.642473
0
0
0
0
0
0
0
0
648
0.514286
8b3ead7d345c8a9ce988d7523c2f9c1577220134
2,159
py
Python
nudging/evaluate_outcome.py
UtrechtUniversity/nudging
9eb1b77749f36059d0c03e60338308ed2e1ebe3d
[ "MIT" ]
1
2021-11-08T15:14:07.000Z
2021-11-08T15:14:07.000Z
nudging/evaluate_outcome.py
UtrechtUniversity/nudging
9eb1b77749f36059d0c03e60338308ed2e1ebe3d
[ "MIT" ]
6
2021-12-07T11:05:19.000Z
2022-03-21T09:05:52.000Z
nudging/evaluate_outcome.py
UtrechtUniversity/nudging
9eb1b77749f36059d0c03e60338308ed2e1ebe3d
[ "MIT" ]
null
null
null
"""Evaluate outcome (+CATE) of datasets""" from scipy.stats import spearmanr import numpy as np def safe_spearmanr(arr_a, arr_b): "Compute the spearman-R correlation, but 0 if all equal" if np.all(arr_a[0] == arr_a) or np.all(arr_b[0] == arr_b): return 0 return spearmanr(arr_a, arr_b).correlation...
31.75
78
0.63409
0
0
0
0
0
0
0
0
767
0.355257
8b403af101b328ab8619171f6a6659dd0ae3aee5
2,671
py
Python
htdocs/json/goes.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
htdocs/json/goes.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
htdocs/json/goes.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Return JSON metadata for GOES Imagery """ import cgi import json import os import glob import datetime from pyiem.util import ssw BIRDS = ['EAST', 'WEST'] PRODUCTS = ['WV', 'VIS', 'IR'] def parse_time(text): """ Convert ISO something into a datetime """ try: if len(...
28.72043
79
0.562336
0
0
0
0
0
0
0
0
661
0.247473
8b409e98d4bcafd53946a98c26955761614abc97
216
py
Python
js/jquery_scrolltofixed/__init__.py
davidjb/js.jquery_scrolltofixed
f5a8606ce8c240334504e43f218c2e8d11d09551
[ "BSD-3-Clause" ]
1
2016-08-31T19:19:16.000Z
2016-08-31T19:19:16.000Z
js/jquery_scrolltofixed/__init__.py
davidjb/js.jquery_scrolltofixed
f5a8606ce8c240334504e43f218c2e8d11d09551
[ "BSD-3-Clause" ]
null
null
null
js/jquery_scrolltofixed/__init__.py
davidjb/js.jquery_scrolltofixed
f5a8606ce8c240334504e43f218c2e8d11d09551
[ "BSD-3-Clause" ]
null
null
null
from fanstatic import Library, Resource library = Library('scrolltofixed', 'resources') scrolltofixed = Resource(library, 'jquery-scrolltofixed.js', minified='jquery-scrolltofixed-min.js')
30.857143
64
0.699074
0
0
0
0
0
0
0
0
80
0.37037
8b412c78f87a3d4e29fbf54573c78a95f9cd0cfd
3,114
py
Python
python/ray/serve/scripts.py
dsctt/ray
29d94a22114b02adfd3745c4991a3ce70592dd16
[ "Apache-2.0" ]
1
2022-03-22T11:17:22.000Z
2022-03-22T11:17:22.000Z
python/ray/serve/scripts.py
dsctt/ray
29d94a22114b02adfd3745c4991a3ce70592dd16
[ "Apache-2.0" ]
32
2021-11-06T07:11:42.000Z
2022-03-19T07:14:00.000Z
python/ray/serve/scripts.py
dsctt/ray
29d94a22114b02adfd3745c4991a3ce70592dd16
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import os import click import ray from ray.serve.api import Deployment from ray.serve.config import DeploymentMode from ray._private.utils import import_attr from ray import serve from ray.serve.constants import ( DEFAULT_CHECKPOINT_PATH, DEFAULT_HTTP_HOST, DEFAULT_HTTP_P...
25.317073
86
0.679512
0
0
0
0
2,775
0.891137
0
0
1,051
0.337508
8b42031cc6e298b0e942547748c79b85ecffd293
562
py
Python
Alpha & Beta/Algorithms/wootwoot.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/Algorithms/wootwoot.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/Algorithms/wootwoot.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
def naive(a, b): c = 0 while a > 0: c = c + b a = a - 1 return c def russian(a, b): """ The Russian Peasant Algorithm: Multiply one integer by the other integer. Input: a, b: integers Returns: a*b """ c = 0 while a > 0: if a % 2 == 1: ...
17.5625
50
0.428826
0
0
0
0
0
0
0
0
140
0.24911
8b438e05322fd68c73974bbc580bd7c882aa4fa3
2,314
py
Python
tuples.py
sumon-dey/PythonConcepts
a014656232ff97161f995bf0124f6ce9daf42496
[ "Apache-2.0" ]
6
2019-07-21T13:07:31.000Z
2021-02-24T10:36:06.000Z
tuples.py
sumon-dey/PythonConcepts
a014656232ff97161f995bf0124f6ce9daf42496
[ "Apache-2.0" ]
null
null
null
tuples.py
sumon-dey/PythonConcepts
a014656232ff97161f995bf0124f6ce9daf42496
[ "Apache-2.0" ]
3
2021-02-20T11:01:27.000Z
2021-07-22T10:58:34.000Z
# Python Tuples # Ordered, Immutable collection of items which allows Duplicate Members # We can put the data, which will not change throughout the program, in a Tuple # Tuples can be called as "Immutable Python Lists" or "Constant Python Lists" employeeTuple = ("Sam", "Sam" "Mike", "John", "Harry", "Tom", "Sean", "Ju...
33.536232
90
0.609767
0
0
0
0
0
0
0
0
1,441
0.622731
8b4494f9af64d71ff00c8c9896f66e6b5599aac3
296
py
Python
dht22_sensor.py
mikrogravitation/humiditemp5000
7e5e837b18142333c90eab82a5b46d702654a436
[ "MIT" ]
null
null
null
dht22_sensor.py
mikrogravitation/humiditemp5000
7e5e837b18142333c90eab82a5b46d702654a436
[ "MIT" ]
null
null
null
dht22_sensor.py
mikrogravitation/humiditemp5000
7e5e837b18142333c90eab82a5b46d702654a436
[ "MIT" ]
null
null
null
import dht class DHT22Sensor: provides = ["temperature", "humidity"] def __init__(self, port): self._sensor = dht.DHT22(port) def readout(self): self._sensor.measure() return {"temperature": self._sensor.temperature(), "humidity": self._sensor.humidity()}
22.769231
95
0.648649
283
0.956081
0
0
0
0
0
0
46
0.155405
8b4884373a3f5043f3c410286a97ab3db710a67f
26,757
py
Python
oauth_api/tests/test_authorization_code.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
oauth_api/tests/test_authorization_code.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
oauth_api/tests/test_authorization_code.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
from datetime import timedelta from django.contrib.auth import get_user_model from django.utils import timezone from oauthlib.oauth2 import (InvalidClientIdError, MissingClientIdError, InvalidRedirectURIError, MismatchingRedirectURIError) from rest_framework import status from oauth_api...
38.443966
120
0.633554
26,108
0.975745
0
0
0
0
0
0
7,240
0.270583
8b49f147c9e56f5dd5097370cc523d4cf407906f
42,174
py
Python
example/sockeye/source/sockeye/decoder.py
rah9eu/p3
530628be7b7a8dd3e6199c3bebebdbf104005e5f
[ "Apache-2.0" ]
22
2019-02-20T12:42:20.000Z
2021-12-25T06:09:46.000Z
example/sockeye/source/sockeye/decoder.py
rah9eu/p3
530628be7b7a8dd3e6199c3bebebdbf104005e5f
[ "Apache-2.0" ]
4
2019-04-01T07:36:04.000Z
2022-03-24T03:11:26.000Z
example/sockeye/source/sockeye/decoder.py
rah9eu/p3
530628be7b7a8dd3e6199c3bebebdbf104005e5f
[ "Apache-2.0" ]
7
2019-03-20T16:04:37.000Z
2021-04-28T18:40:11.000Z
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
49.558167
121
0.628136
40,126
0.951439
0
0
4,505
0.106819
0
0
16,612
0.393892
8b4b9a54a9e446db94f72c72dbf48b6d43df54c8
3,595
py
Python
dev-language/python/DataWhale/plane_sprite.py
marxlee/dev-record-doc
197b1ae1c8b692eeb86b8494915840d630414d3a
[ "Apache-2.0" ]
null
null
null
dev-language/python/DataWhale/plane_sprite.py
marxlee/dev-record-doc
197b1ae1c8b692eeb86b8494915840d630414d3a
[ "Apache-2.0" ]
1
2020-05-14T13:02:24.000Z
2020-05-14T13:02:24.000Z
dev-language/python/DataWhale/plane_sprite.py
marxlee/dev-record-doc
197b1ae1c8b692eeb86b8494915840d630414d3a
[ "Apache-2.0" ]
null
null
null
import random import pygame # 刷新帧率 FRAME_PER_SEC = 60 # 屏幕属性 SCREEN_RECT = pygame.Rect(0, 0, 480, 700) # 创建敌军事件 CREATE_ENEMY_EVENT = pygame.USEREVENT # 创建英雄发射子弹事件 HERO_FIRE_EVENT = pygame.USEREVENT + 1 class GameSprite(pygame.sprite.Sprite): """飞机大战游戏精灵""" def __init__(self, image_name_load, speed=1): ...
23.966667
64
0.551878
4,027
0.932392
0
0
0
0
0
0
1,568
0.363047
8c663c96b9101af26692648dfb0ca8488e020977
332
py
Python
stPlus/__init__.py
qiaochen/stPlus
06294c6cf63d6d81555ffdd4d19c571c49805ff2
[ "MIT" ]
7
2021-01-23T07:13:21.000Z
2022-02-19T09:15:20.000Z
stPlus/__init__.py
qiaochen/stPlus
06294c6cf63d6d81555ffdd4d19c571c49805ff2
[ "MIT" ]
1
2021-08-22T00:59:03.000Z
2021-08-22T00:59:03.000Z
stPlus/__init__.py
qiaochen/stPlus
06294c6cf63d6d81555ffdd4d19c571c49805ff2
[ "MIT" ]
6
2020-11-29T02:01:01.000Z
2022-03-26T08:56:50.000Z
#!/usr/bin/env python """ # Authors: Shengquan Chen, Boheng Zhang, Xiaoyang Chen # Created Time : Sat 28 Nov 2020 08:31:29 PM CST # File Name: utils.py # Description: stPlus: reference-based enhancement of spatial transcriptomics """ __author__ = "Xiaoyang Chen" __email__ = "xychen20@mails.tsinghua.edu.cn" from .mod...
23.714286
77
0.737952
0
0
0
0
0
0
0
0
280
0.843373
8c677c928edef3da87db9d94101df11d9b713928
4,961
py
Python
PJ/11_liste_registri.py
vedgar/ip
5ed0773eea4243077f5defb77fb1839661308c83
[ "Unlicense" ]
5
2017-03-15T11:34:55.000Z
2021-03-10T13:05:02.000Z
PJ/11_liste_registri.py
vedgar/ip
5ed0773eea4243077f5defb77fb1839661308c83
[ "Unlicense" ]
null
null
null
PJ/11_liste_registri.py
vedgar/ip
5ed0773eea4243077f5defb77fb1839661308c83
[ "Unlicense" ]
14
2017-01-11T19:11:01.000Z
2021-05-09T18:42:19.000Z
"""Virtualna mašina za rad s listama; kolokvij 31. siječnja 2011. (Puljić). 9 registara (L1 do L9) koji drže liste cijelih brojeva (počinju od prazne), 2 naredbe (ubacivanje i izbacivanje elementa po indeksu), 3 upita (duljina i praznost liste, dohvaćanje elementa po indeksu).""" from vepar import * class T(...
36.211679
81
0.626083
2,498
0.4995
860
0.171966
0
0
0
0
1,914
0.382723
8c6a4e21298bd22ee6accce6dcffb362757cd105
746
py
Python
devops-console/apps/applications/migrations/0002_auto_20190130_1757.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
4
2019-12-06T06:19:33.000Z
2021-12-23T13:05:06.000Z
devops-console/apps/applications/migrations/0002_auto_20190130_1757.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
8
2020-03-15T03:40:38.000Z
2022-03-12T00:50:27.000Z
devops-console/apps/applications/migrations/0002_auto_20190130_1757.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-30 09:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('applications', '0001_initial'), ] operations = [ migrations.AlterField( model_name='repository', name='auth_pwd', ...
26.642857
62
0.580429
653
0.875335
0
0
0
0
0
0
148
0.198391
8c6abb2cc48a060bc29fbb9ab48584013b7a0a33
121
py
Python
trinity/components/builtin/upnp/events.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
trinity/components/builtin/upnp/events.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
trinity/components/builtin/upnp/events.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
from dataclasses import dataclass from lahja import BaseEvent @dataclass class NewUPnPMapping(BaseEvent): ip: str
13.444444
33
0.793388
44
0.363636
0
0
55
0.454545
0
0
0
0
8c6b08f46e1c028699dbaa4278859f6a3882f74c
6,125
py
Python
autobreadcrumbs/resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
autobreadcrumbs/resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
autobreadcrumbs/resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Breadcrumb resolving ==================== """ try: from django.core.urlresolvers import Resolver404, get_resolver except ImportError: from django.urls import Resolver404, get_resolver from autobreadcrumbs.registry import breadcrumbs_registry class BreadcrumbRessource(object): ...
29.878049
89
0.563755
5,839
0.953306
0
0
0
0
0
0
3,304
0.539429
8c6cfc38e57f86eab7797d375f99dd296d63319a
1,276
py
Python
wrappers/SpellbookWrapper.py
WouterGlorieux/BitcoinSpellbook-v0.2
93b5480f87f4dc41c2d71093aa98d1fbdd83625c
[ "MIT" ]
null
null
null
wrappers/SpellbookWrapper.py
WouterGlorieux/BitcoinSpellbook-v0.2
93b5480f87f4dc41c2d71093aa98d1fbdd83625c
[ "MIT" ]
null
null
null
wrappers/SpellbookWrapper.py
WouterGlorieux/BitcoinSpellbook-v0.2
93b5480f87f4dc41c2d71093aa98d1fbdd83625c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from BlockDataWrapper import BlockDataWrapper from BlockInputsWrapper import BlockInputsWrapper from BlockLinkerWrapper import BlockLinkerWrapper from BlockRandomWrapper import BlockRandomWrapper from BlockVoterWrapper import BlockVoterWrapper from BlockForwardWrapper imp...
27.73913
66
0.760972
770
0.603448
0
0
0
0
0
0
81
0.06348
8c6d9af9d7f87aa9ba388d3e1cf15c31ce4fbd09
2,958
py
Python
tests/test_encode.py
gruber-sciencelab/SMEAGOL
966e18a9869e992537605f93e5ee2af1c9e257f2
[ "MIT" ]
null
null
null
tests/test_encode.py
gruber-sciencelab/SMEAGOL
966e18a9869e992537605f93e5ee2af1c9e257f2
[ "MIT" ]
null
null
null
tests/test_encode.py
gruber-sciencelab/SMEAGOL
966e18a9869e992537605f93e5ee2af1c9e257f2
[ "MIT" ]
null
null
null
from smeagol.encode import * import os import pytest script_dir = os.path.dirname(__file__) rel_path = "data" data_path = os.path.join(script_dir, rel_path) def test_integer_encode(): record = SeqRecord(Seq('ACGTNWSMKRYBDHVZ'), id='id', name='name') result = integer_encode(record, rc=False) assert np.all...
44.149254
220
0.612576
0
0
0
0
0
0
0
0
374
0.126437
8c6dfa8e7650cca218f10ad2519c965b351b6e94
688
py
Python
tflite/BuiltinOperator.py
erezinman/tflite-flatbuffer-explorer
0fe1828b80108de3b6b7075de6a66162dfd0d322
[ "MIT" ]
null
null
null
tflite/BuiltinOperator.py
erezinman/tflite-flatbuffer-explorer
0fe1828b80108de3b6b7075de6a66162dfd0d322
[ "MIT" ]
null
null
null
tflite/BuiltinOperator.py
erezinman/tflite-flatbuffer-explorer
0fe1828b80108de3b6b7075de6a66162dfd0d322
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite class BuiltinOperator(object): ADD = 0 AVERAGE_POOL_2D = 1 CONCATENATION = 2 CONV_2D = 3 DEPTHWISE_CONV_2D = 4 EMBEDDING_LOOKUP = 7 FULLY_CONNECTED = 9 HASHTABLE_LOOKUP = 10 L2_NORMALIZATION = ...
19.657143
68
0.638081
595
0.864826
0
0
0
0
0
0
87
0.126453
8c6f69222a4482ea76dc30bd7f2276db4ce44dd7
1,080
py
Python
StegoEncrypt.py
ExaByt3s/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
3
2021-01-22T19:32:23.000Z
2022-01-03T01:06:44.000Z
StegoEncrypt.py
a04512/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
null
null
null
StegoEncrypt.py
a04512/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
1
2021-12-10T13:18:16.000Z
2021-12-10T13:18:16.000Z
#!/usr/bin/python __author__ = 'kilroy' # (c) 2014, WasHere Consulting, Inc. # Written for Infinite Skills # need pycrypto package from Crypto.Cipher import AES # need PIL and stepic packages import Image, stepic import binascii # key has to be 16, 24 or 32 bytes long cryptObj = AES.new("This is my key42", AES.MODE...
30
78
0.735185
0
0
0
0
0
0
0
0
566
0.524074
8c7091d977c72cdc7883602372339dbcde6de489
256
py
Python
lib/extensions/navigation_buttons_delayed_popup/startup.py
neurodiverseEsoteric/nimbus
a79a37d6001d84116831c9f3f99f5d9acfa7fd19
[ "CC-BY-3.0" ]
3
2015-11-04T10:48:12.000Z
2020-07-12T06:46:27.000Z
lib/extensions/navigation_buttons_delayed_popup/startup.py
esotericDisciple/nimbus
a79a37d6001d84116831c9f3f99f5d9acfa7fd19
[ "CC-BY-3.0" ]
null
null
null
lib/extensions/navigation_buttons_delayed_popup/startup.py
esotericDisciple/nimbus
a79a37d6001d84116831c9f3f99f5d9acfa7fd19
[ "CC-BY-3.0" ]
1
2021-05-05T13:56:49.000Z
2021-05-05T13:56:49.000Z
self.toolBar.widgetForAction(self.backAction).setPopupMode(QToolButton.DelayedPopup) self.toolBar.widgetForAction(self.forwardAction).setPopupMode(QToolButton.DelayedPopup) self.toolBar.widgetForAction(self.upAction).setPopupMode(QToolButton.DelayedPopup)
64
87
0.882813
0
0
0
0
0
0
0
0
0
0
8c71904ebd9c63564cf8de7ecdb8f509752b6a40
703
py
Python
parser/team27/G-27/execution/symbol/table.py
Lenin201/tytus
cace7587b0274ceb26327b583201493bd1048b96
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team27/G-27/execution/symbol/table.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team27/G-27/execution/symbol/table.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
class Table(object): def __init__(self, name): self.name = name self.columns = [] def createColumn(self, column): self.columns.append(column) def readColumn(self, name): for value in self.columns: if value.name == name: return value ...
28.12
45
0.519203
702
0.998578
0
0
0
0
0
0
0
0
8c733c8dc3e476d059bcd63aa89a02b021245600
107
py
Python
frameioclient/config.py
Frameio/python-frameio-client
005020fd369245627e376fb8a5eaa3064a33438e
[ "MIT" ]
33
2018-07-29T14:04:54.000Z
2022-03-18T16:22:10.000Z
frameioclient/config.py
Frameio/python-frameio-client
005020fd369245627e376fb8a5eaa3064a33438e
[ "MIT" ]
31
2019-07-23T16:11:45.000Z
2021-08-03T01:32:41.000Z
frameioclient/config.py
Frameio/python-frameio-client
005020fd369245627e376fb8a5eaa3064a33438e
[ "MIT" ]
16
2018-10-04T10:53:20.000Z
2022-03-04T09:11:15.000Z
class Config: api_host = "https://api.frame.io" default_page_size = 50 default_concurrency = 5
21.4
37
0.682243
106
0.990654
0
0
0
0
0
0
22
0.205607
8c73ebefbe371ef44942ff7124e0d58fc2510cfb
13,342
py
Python
source/rttov_test/profile-datasets-py/div83/073.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/073.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/073.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/073.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/073.py" self["Q"] = numpy.array([ 1.956946, 2.801132, 4.230252, 5.419981, 6.087733, 6.419039, 6.547807, 6.548787, 6.504738, 6.4...
57.508621
92
0.559886
0
0
0
0
0
0
0
0
462
0.034627
8c73f2845c9cfc01b2f456edbd27fcd02dab01c0
3,204
py
Python
conf.py
jwustrack/climon
0fca00a727c39de01c42162d42b193f326705892
[ "MIT" ]
3
2018-12-22T06:30:46.000Z
2021-05-05T04:51:22.000Z
conf.py
jwustrack/climon
0fca00a727c39de01c42162d42b193f326705892
[ "MIT" ]
null
null
null
conf.py
jwustrack/climon
0fca00a727c39de01c42162d42b193f326705892
[ "MIT" ]
null
null
null
''' >>> c = Conf('climon.conf.test') >>> list(c.iter_ids('sensor')) ['sine', 'web'] >>> list(c.iter_ids('toggle')) ['fake'] >>> c.get_element('sensor', 'sine') # doctest: +ELLIPSIS <function sine.<locals>.sine_sensor at ...> >>> c.get_element('toggle', 'fake') # doctest: +ELLIPSIS <toggles.FakeToggle object at ...> ...
33.375
88
0.650437
2,120
0.661673
1,096
0.342072
360
0.11236
0
0
666
0.207865
8c74049dd346defb252e9addc649cada9bb156ac
1,058
py
Python
talosblockchain/talosdht/test/protocol_test.py
chunchuan-wang/droplet-engine
5c2dbac90aa3bde837ed4989ecd78235e5d9ef8e
[ "Apache-2.0" ]
10
2020-10-14T14:22:20.000Z
2022-03-16T11:33:14.000Z
talosblockchain/talosdht/test/protocol_test.py
chunchuan-wang/droplet-engine
5c2dbac90aa3bde837ed4989ecd78235e5d9ef8e
[ "Apache-2.0" ]
null
null
null
talosblockchain/talosdht/test/protocol_test.py
chunchuan-wang/droplet-engine
5c2dbac90aa3bde837ed4989ecd78235e5d9ef8e
[ "Apache-2.0" ]
4
2020-08-30T12:40:40.000Z
2021-08-03T15:27:12.000Z
#© 2017-2020, ETH Zurich, D-INFK, lubu@inf.ethz.ch import random import unittest from kademlia.node import Node from kademlia.utils import digest from talosdht.protocolsecurity import generate_secret_key from talosdht.talosprotocol import TalosSKademliaProtocol from talosvc.talosclient.restapiclient import TalosVCRe...
29.388889
93
0.708885
720
0.679887
0
0
0
0
0
0
82
0.077432
8c7565fa05e188eaf9fcca6bca1db9405321a1a7
2,275
py
Python
tmp_mail/__init__.py
KMikeeU/temp-mail
257155b60baee8ed8e24776db3e5492f42e2c10b
[ "MIT" ]
2
2018-12-09T18:36:03.000Z
2019-05-01T12:54:41.000Z
tmp_mail/__init__.py
KMikeeU/temp-mail
257155b60baee8ed8e24776db3e5492f42e2c10b
[ "MIT" ]
null
null
null
tmp_mail/__init__.py
KMikeeU/temp-mail
257155b60baee8ed8e24776db3e5492f42e2c10b
[ "MIT" ]
3
2018-12-09T18:36:07.000Z
2019-10-22T11:35:09.000Z
import requests from bs4 import BeautifulSoup import re import time import _thread class Client(): base = "https://temp-mail.org/en" def __init__(self, address: str = None): self.address = address self.session = requests.Session() realisticBrowser = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x6...
27.743902
134
0.670769
2,188
0.960913
0
0
0
0
0
0
424
0.18621
8c761a408113359da777a62cae459343ebc003d1
187
py
Python
ros/genpy/src/genpy/msg/__init__.py
numberen/apollo-platform
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
[ "Apache-2.0" ]
742
2017-07-05T02:49:36.000Z
2022-03-30T12:55:43.000Z
ros/genpy/src/genpy/msg/__init__.py
numberen/apollo-platform
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
[ "Apache-2.0" ]
73
2017-07-06T12:50:51.000Z
2022-03-07T08:07:07.000Z
ros/genpy/src/genpy/msg/__init__.py
numberen/apollo-platform
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
[ "Apache-2.0" ]
425
2017-07-04T22:03:29.000Z
2022-03-29T06:59:06.000Z
from ._TestFillEmbedTime import * from ._TestFillSimple import * from ._TestManyFields import * from ._TestMsgArray import * from ._TestPrimitiveArray import * from ._TestString import *
26.714286
34
0.807487
0
0
0
0
0
0
0
0
0
0
8c7623c8e92992a9d432cf1310ca2b7d13d8b1c3
1,355
py
Python
code/chapter_04/listing_04_11.py
guinslym/python_earth_science_book
f4dd0115dbbce140c6713989f630a71238daa72c
[ "MIT" ]
80
2021-04-19T10:03:57.000Z
2022-03-30T15:34:47.000Z
code/chapter_04/listing_04_11.py
guinslym/python_earth_science_book
f4dd0115dbbce140c6713989f630a71238daa72c
[ "MIT" ]
null
null
null
code/chapter_04/listing_04_11.py
guinslym/python_earth_science_book
f4dd0115dbbce140c6713989f630a71238daa72c
[ "MIT" ]
23
2021-04-25T03:50:07.000Z
2022-03-22T03:06:19.000Z
# Introductory examples name = 'Maurizio' surname = 'Petrelli' print('-------------------------------------------------') print('My name is {}'.format(name)) print('-------------------------------------------------') print('My name is {} and my surname is {}'.format(name, surname)) print('------------------------------...
43.709677
71
0.451661
0
0
0
0
0
0
0
0
1,137
0.839114
8c76ebd85af1120266012ad23762034711833042
4,405
py
Python
gamestonk_terminal/etf/financedatabase_view.py
i2infinity/GamestonkTerminal
abf79a5249930e5a9f5d2a1c4ba64590888ecef5
[ "MIT" ]
1
2021-12-31T04:10:42.000Z
2021-12-31T04:10:42.000Z
gamestonk_terminal/etf/financedatabase_view.py
greggorrell/GamestonkTerminal
caa2c88c1259967b55a7565c7ce5fb1014f39e68
[ "MIT" ]
1
2022-03-29T13:45:05.000Z
2022-03-29T13:45:05.000Z
gamestonk_terminal/etf/financedatabase_view.py
greggorrell/GamestonkTerminal
caa2c88c1259967b55a7565c7ce5fb1014f39e68
[ "MIT" ]
1
2021-06-20T02:42:40.000Z
2021-06-20T02:42:40.000Z
"""Finance Database view""" __docformat__ = "numpy" import os import pandas as pd from tabulate import tabulate from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.etf import financedatabase_model from gamestonk_terminal.helper_funcs import export_data def display_etf_by_name( name: str,...
29.965986
108
0.613167
0
0
0
0
0
0
0
0
1,613
0.366175
8c771cbba76c700d1db7d0599ef23c47728f8fc7
803
py
Python
socialnetworks/moves/views.py
gGonz/django-socialnetworks
3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d
[ "Apache-2.0" ]
5
2015-06-18T03:30:28.000Z
2017-11-04T21:34:20.000Z
socialnetworks/moves/views.py
gGonz/django-socialnetworks
3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d
[ "Apache-2.0" ]
2
2015-04-25T00:06:19.000Z
2015-04-30T22:42:40.000Z
socialnetworks/moves/views.py
gGonz/django-socialnetworks
3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d
[ "Apache-2.0" ]
4
2015-06-11T18:28:04.000Z
2016-09-07T15:08:09.000Z
from .clients import MovesAppClient from .settings import SETUP_URL_NAME from ..core import views class MovesAppDialogRedirect(views.OAuthDialogRedirectView): """ View that handles the redirects for the Moves app authorization dialog. """ client_class = MovesAppClient class MovesAppCallback(views.OA...
24.333333
75
0.73599
693
0.863014
0
0
0
0
0
0
299
0.372354
8c7744c90b62e69c9da414a6c169a072df76f52e
5,638
py
Python
train.py
JiazeWang/Luna16
5ef7f4b539cc1ca72291e93d17cc18f408a3119d
[ "MIT" ]
null
null
null
train.py
JiazeWang/Luna16
5ef7f4b539cc1ca72291e93d17cc18f408a3119d
[ "MIT" ]
null
null
null
train.py
JiazeWang/Luna16
5ef7f4b539cc1ca72291e93d17cc18f408a3119d
[ "MIT" ]
null
null
null
import random import torch import numpy as np import time import os from model.net import Net from model.loss import Loss from torch.autograd import Variable import itertools import pandas as pd from main.dataset import LunaDataSet from torch.utils.data import DataLoader from configs import VAL_PCT, TOTAL_EPOCHS, DEFA...
36.849673
110
0.632671
0
0
0
0
0
0
0
0
1,257
0.222951
8c782d841174638d4e67981a99536a71f3cb70d3
11,765
py
Python
models/treebased/data/data_generator.py
ziyoujiyi/PaddleRec
bcddcf46e5cd8d4e6b2c5ee8d0d5521e292a2a81
[ "Apache-2.0" ]
2,739
2020-04-28T05:12:48.000Z
2022-03-31T16:01:49.000Z
models/treebased/data/data_generator.py
ziyoujiyi/PaddleRec
bcddcf46e5cd8d4e6b2c5ee8d0d5521e292a2a81
[ "Apache-2.0" ]
205
2020-05-14T13:29:14.000Z
2022-03-31T13:01:50.000Z
models/treebased/data/data_generator.py
ziyoujiyi/PaddleRec
bcddcf46e5cd8d4e6b2c5ee8d0d5521e292a2a81
[ "Apache-2.0" ]
545
2020-05-14T13:19:13.000Z
2022-03-24T07:53:05.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.00289
79
0.553931
0
0
0
0
0
0
0
0
1,877
0.159541
8c7850f57aeb0d4dce81c92635baf2b4cf6c6a0c
530
py
Python
api/runtime/lambda_function.py
alexpulver/aws-cdk-project-structure-python-simple
2397b9bc8762b294c26a85913007b139fb656a92
[ "MIT" ]
6
2021-08-03T06:44:41.000Z
2022-03-21T05:26:19.000Z
api/runtime/lambda_function.py
alexpulver/aws-cdk-project-structure-python-simple
2397b9bc8762b294c26a85913007b139fb656a92
[ "MIT" ]
null
null
null
api/runtime/lambda_function.py
alexpulver/aws-cdk-project-structure-python-simple
2397b9bc8762b294c26a85913007b139fb656a92
[ "MIT" ]
null
null
null
import json from typing import Any, Dict import requests def lambda_handler(event: Dict[str, Any], context: Dict[str, Any]) -> Dict[str, Any]: print(f"request: {json.dumps(event)}") uuid_message = get_uuid_message() return { "statusCode": 200, "headers": {"Content-Type": "text/plain"}, ...
25.238095
85
0.633962
0
0
0
0
0
0
0
0
156
0.29434
8c7898329039aa091b78f7b5d1f4171853653e37
4,685
py
Python
dwi/tools/histogram.py
jupito/dwilib
6655eea21037977ed528b992b3a8471393127b77
[ "MIT" ]
9
2018-02-02T07:26:06.000Z
2021-07-28T11:27:38.000Z
dwi/tools/histogram.py
jupito/dwilib
6655eea21037977ed528b992b3a8471393127b77
[ "MIT" ]
null
null
null
dwi/tools/histogram.py
jupito/dwilib
6655eea21037977ed528b992b3a8471393127b77
[ "MIT" ]
4
2017-02-22T03:23:44.000Z
2021-12-10T10:32:08.000Z
#!/usr/bin/python3 """Plot histograms of images. Possible nans and infinities are ignored.""" import argparse from collections import OrderedDict import logging import numpy as np import pylab as pl from scipy import interpolate import dwi.files import dwi.util def parse_args(): """Parse command-line argument...
34.19708
75
0.56158
0
0
0
0
0
0
0
0
1,273
0.271718
8c78b4076ac285387691eaefdc4b2dc0c790be8d
1,191
py
Python
app/core/models.py
108806/drf_adv_test
fe4363e47e65de883fabd551aaf18ca5ff7bee1d
[ "BSD-2-Clause" ]
null
null
null
app/core/models.py
108806/drf_adv_test
fe4363e47e65de883fabd551aaf18ca5ff7bee1d
[ "BSD-2-Clause" ]
null
null
null
app/core/models.py
108806/drf_adv_test
fe4363e47e65de883fabd551aaf18ca5ff7bee1d
[ "BSD-2-Clause" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and saves a new user""" if not email: raise ValueError('No valid email provided') ...
29.775
75
0.739715
1,060
0.890008
0
0
0
0
0
0
190
0.15953
8c7d9e66bf164cf5c44aa06085606f155fa78844
13,739
py
Python
paleocirc/circolari.py
xFranciB/PaleoCirc
bb95abf973342c004c4f84516092a686072bc12e
[ "MIT" ]
7
2021-02-16T15:41:59.000Z
2021-12-22T19:56:23.000Z
paleocirc/circolari.py
xFranciB/PaleoCirc
bb95abf973342c004c4f84516092a686072bc12e
[ "MIT" ]
5
2021-04-16T13:36:31.000Z
2021-12-12T17:43:13.000Z
paleocirc/circolari.py
xFranciB/paleocirc
bb95abf973342c004c4f84516092a686072bc12e
[ "MIT" ]
null
null
null
import requests import bs4 import pdf2image import os import glob import json import platform if platform.system() == 'Windows': import win32com.client #pywin32 class Circolari: def __init__(self, archiveDir=None): self.__pageTemplate__ = 'https://www.itispaleocapa.edu.it/circolari/page...
37.641096
341
0.483441
13,559
0.986899
0
0
0
0
0
0
1,102
0.08021
8c7dbd2d6be5f59ac7452dec291f7f34b860f29f
596
py
Python
cuisine/interface/recipe_io.py
j3kstrum/recipe-tweaker
941d2fed87fc2c568b29d3b3baee3f8ebfe4daca
[ "MIT" ]
null
null
null
cuisine/interface/recipe_io.py
j3kstrum/recipe-tweaker
941d2fed87fc2c568b29d3b3baee3f8ebfe4daca
[ "MIT" ]
null
null
null
cuisine/interface/recipe_io.py
j3kstrum/recipe-tweaker
941d2fed87fc2c568b29d3b3baee3f8ebfe4daca
[ "MIT" ]
null
null
null
from data.recipe import Recipe from data import RecipeGroup from typing import List class RecipeIO: """ Controls saving and loading of recipes from the filesystem. """ @staticmethod def save(recipe: Recipe) -> bool: raise NotImplementedError() @staticmethod def save_completed(rec...
22.923077
63
0.687919
509
0.854027
0
0
390
0.654362
0
0
75
0.125839
8c7fa7533fc54f258e0b5114a55c0d8281434b5f
5,847
py
Python
Inventationery/apps/SalesOrder/models.py
alexharmenta/Inventationery
1bf9ee2c56492ab66947886590b7ec17fa3a6195
[ "BSD-3-Clause" ]
null
null
null
Inventationery/apps/SalesOrder/models.py
alexharmenta/Inventationery
1bf9ee2c56492ab66947886590b7ec17fa3a6195
[ "BSD-3-Clause" ]
null
null
null
Inventationery/apps/SalesOrder/models.py
alexharmenta/Inventationery
1bf9ee2c56492ab66947886590b7ec17fa3a6195
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Alex # @Date: 2015-11-16 19:15:59 # @Last Modified by: Alex # @Last Modified time: 2015-12-28 22:28:23 from django.db import models from Inventationery.core.models import TimeStampedModel from Inventationery.apps.Customer.models import CustomerModel from Inve...
33.411429
78
0.632461
4,507
0.770823
0
0
0
0
0
0
1,155
0.197537
8c801a155d630ce0c04e5998293ea5519ef48632
444
py
Python
bookorbooks/account/migrations/0003_alter_customuser_identity_number.py
talhakoylu/SummerInternshipBackend
4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3
[ "MIT" ]
1
2021-08-10T22:24:17.000Z
2021-08-10T22:24:17.000Z
bookorbooks/account/migrations/0003_alter_customuser_identity_number.py
talhakoylu/SummerInternshipBackend
4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3
[ "MIT" ]
null
null
null
bookorbooks/account/migrations/0003_alter_customuser_identity_number.py
talhakoylu/SummerInternshipBackend
4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-13 09:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20210712_1851'), ] operations = [ migrations.AlterField( model_name='customuser', name='identit...
23.368421
95
0.630631
352
0.791011
0
0
0
0
0
0
128
0.28764
8c805e1adcc6b31a87a479f4115ffa71c7a3bbab
8,678
py
Python
Code/Python/ImageProcessing/StereoDepth/featureMatchStereo.py
Nailim/shuttler
a12ea89a1c6b289079ce61ebf8bf3361696f10b2
[ "MIT" ]
null
null
null
Code/Python/ImageProcessing/StereoDepth/featureMatchStereo.py
Nailim/shuttler
a12ea89a1c6b289079ce61ebf8bf3361696f10b2
[ "MIT" ]
null
null
null
Code/Python/ImageProcessing/StereoDepth/featureMatchStereo.py
Nailim/shuttler
a12ea89a1c6b289079ce61ebf8bf3361696f10b2
[ "MIT" ]
null
null
null
# for new opencv #import os,sys #os.chdir(os.path.expanduser('~/opencv-2.4.6.1/lib')) #sys.path.append(os.path.expanduser('~/opencv-2.4.6.1/lib/python2.7/dist-packages')) # before starting #export PYTHONPATH=~/opencv-2.4.6.1/lib/python2.7/dist-packages import os #import cv import cv2 import math import argparse impor...
35.276423
212
0.659484
0
0
0
0
0
0
0
0
2,474
0.285089
8c80f15de2f13a257021c58138cdb9e639d87869
10,472
py
Python
parser.py
alexkyllo/pycc
76670dae42274c90f620d9e2bbbdba1deb8ed6bf
[ "MIT" ]
null
null
null
parser.py
alexkyllo/pycc
76670dae42274c90f620d9e2bbbdba1deb8ed6bf
[ "MIT" ]
null
null
null
parser.py
alexkyllo/pycc
76670dae42274c90f620d9e2bbbdba1deb8ed6bf
[ "MIT" ]
1
2020-11-10T08:05:44.000Z
2020-11-10T08:05:44.000Z
from lexer import ( TokenKeyword, TokenOpenBrace, TokenCloseBrace, TokenOpenParen, TokenCloseParen, TokenSemicolon, TokenAssignmentOperator, TokenAdditionOperator, TokenMultiplicationOperator, TokenIncrementOperator, TokenEqualityOperator, TokenInequalityOperator, Tok...
29.498592
92
0.652406
3,216
0.307105
0
0
0
0
0
0
1,201
0.114687
8c811e483e4d1935487f1175baf6f5786632c952
5,983
py
Python
official/benchmark/unet3d_benchmark.py
gitlost-murali/models
e3135c03429c462f16d298b92315213647e36190
[ "Apache-2.0" ]
2
2020-07-31T06:02:09.000Z
2020-07-31T06:05:36.000Z
official/benchmark/unet3d_benchmark.py
gitlost-murali/models
e3135c03429c462f16d298b92315213647e36190
[ "Apache-2.0" ]
1
2020-07-24T10:47:58.000Z
2020-07-24T10:47:58.000Z
official/benchmark/unet3d_benchmark.py
gitlost-murali/models
e3135c03429c462f16d298b92315213647e36190
[ "Apache-2.0" ]
5
2020-10-07T06:11:08.000Z
2021-12-02T21:24:38.000Z
# Lint as: python3 # Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
39.361842
80
0.694802
4,391
0.733913
0
0
2,791
0.466488
0
0
1,966
0.328598
8c8302aacd848814b28c80f3cb7d246d2c41919a
222
py
Python
pysge/utils.py
shane-breeze/pysge
7c8d7f8df5ca7c09c529b01134a0e789a2ba2cbe
[ "MIT" ]
null
null
null
pysge/utils.py
shane-breeze/pysge
7c8d7f8df5ca7c09c529b01134a0e789a2ba2cbe
[ "MIT" ]
null
null
null
pysge/utils.py
shane-breeze/pysge
7c8d7f8df5ca7c09c529b01134a0e789a2ba2cbe
[ "MIT" ]
null
null
null
try: import subprocess32 as sp except ModuleNotFoundError: import subprocess as sp import shlex def run_command(cmd): p = sp.run(shlex.split(cmd), stdout=sp.PIPE, stderr=sp.PIPE) return p.stdout, p.stderr
22.2
64
0.725225
0
0
0
0
0
0
0
0
0
0
8c842d4db1d85094e333bc85fbb4d227c59d5b6a
3,556
py
Python
src/pygerber/API2D.py
Argmaster/pygerber
4761a5aa60ff1d11512fb44aabd103246d9a3019
[ "MIT" ]
3
2021-08-30T07:07:59.000Z
2021-09-29T22:14:43.000Z
src/pygerber/API2D.py
Argmaster/pygerber
4761a5aa60ff1d11512fb44aabd103246d9a3019
[ "MIT" ]
1
2021-09-26T13:28:49.000Z
2021-09-26T13:28:49.000Z
src/pygerber/API2D.py
Argmaster/pygerber
4761a5aa60ff1d11512fb44aabd103246d9a3019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Any, Dict from PIL import Image from pygerber.parser.pillow.parser import DEFAULT_COLOR_SET_GREEN, ColorSet from .parser.pillow.api import PillowProjectSpec, _render_file def render_from_spec(spec: Dict[str, Any]) -> Image.Image: """Render 2D image from specfile alik...
29.38843
114
0.692913
0
0
0
0
0
0
0
0
2,151
0.604893
8c84673cd4c815a8dd356f023b667ff78319d314
868
py
Python
job-orchestrator/tests/transformers/test_model_paths.py
anaai/anaai
fa49ba107e7c6d32aef46796452308334517a224
[ "MIT" ]
31
2022-01-26T21:47:31.000Z
2022-03-21T12:22:39.000Z
job-orchestrator/tests/transformers/test_model_paths.py
anaai/anaai
fa49ba107e7c6d32aef46796452308334517a224
[ "MIT" ]
3
2022-01-24T11:16:05.000Z
2022-01-28T15:11:19.000Z
job-orchestrator/tests/transformers/test_model_paths.py
anaai/anaai
fa49ba107e7c6d32aef46796452308334517a224
[ "MIT" ]
2
2022-02-08T12:07:55.000Z
2022-02-08T19:45:40.000Z
from transformers import model_paths def test_candy_model(): assert model_paths.CANDY_FAST_NEURAL_TRANSFER_MODEL == "models/candy.t7" def test_feathers_model(): assert model_paths.FEATHERS_FAST_NEURAL_TRANSFER_MODEL == "models/feathers.t7" def test_mosaic_model(): assert model_paths.MOSAIC_FAST_NEURAL_TRANSFER...
33.384615
84
0.820276
0
0
0
0
0
0
0
0
168
0.193548
8c8512a0da331af189d40b5652379f72c53f2f93
9,244
py
Python
Omr.py
marlingod/Computer-Vision
dcba53b2437b02186ccff1c748c96880888bef81
[ "MIT" ]
null
null
null
Omr.py
marlingod/Computer-Vision
dcba53b2437b02186ccff1c748c96880888bef81
[ "MIT" ]
null
null
null
Omr.py
marlingod/Computer-Vision
dcba53b2437b02186ccff1c748c96880888bef81
[ "MIT" ]
null
null
null
from imutils.perspective import four_point_transform from imutils import contours import numpy as np import argparse import imutils import cv2 import matplotlib as plt import os from itertools import groupby def angleCos(p0, p1, p2): d1, d2 = (p0-p1).astype('float'), (p2-p1).astype('float') return abs( np.do...
35.69112
161
0.535591
0
0
0
0
0
0
0
0
2,169
0.234639
8c8584e4a637146aa64ba5592088fa5de2ab6771
7,747
py
Python
examples/scripts/shapelet_transform.py
wilsonify/sktime
68395d44bd3f46b0801c506e23e889dd54999d29
[ "BSD-3-Clause" ]
null
null
null
examples/scripts/shapelet_transform.py
wilsonify/sktime
68395d44bd3f46b0801c506e23e889dd54999d29
[ "BSD-3-Clause" ]
null
null
null
examples/scripts/shapelet_transform.py
wilsonify/sktime
68395d44bd3f46b0801c506e23e889dd54999d29
[ "BSD-3-Clause" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Shapelets and the Shapelet Transform with sktime #...
46.668675
1,192
0.741448
0
0
0
0
0
0
0
0
5,603
0.723248
8c860bdb685621ac68461a5e8c8c00340c6b1c45
435
py
Python
tests/test_inchi.py
ginkgobioworks/pychemy
e2da05ff5815aae1465407b4d434afb66117e8da
[ "MIT" ]
3
2016-12-18T20:19:51.000Z
2020-10-20T01:49:39.000Z
tests/test_inchi.py
ginkgobioworks/pychemy
e2da05ff5815aae1465407b4d434afb66117e8da
[ "MIT" ]
null
null
null
tests/test_inchi.py
ginkgobioworks/pychemy
e2da05ff5815aae1465407b4d434afb66117e8da
[ "MIT" ]
1
2020-03-29T22:55:46.000Z
2020-03-29T22:55:46.000Z
from __future__ import print_function import unittest import six from pychemy.inchi import InChI class InchiTest(unittest.TestCase): def test_unicode_inchi(self): inchi_str = six.u('InChI=1S/C14H18O8/c1-20-9-4-7(5-15)2-3-8(9)21-14-13(19)12(18)11(17)10(6-16)22-14/h2-5,10-14,16-19H,6H2,1H3/t10-,11-,12+,13-,14-/...
29
158
0.721839
334
0.767816
0
0
0
0
0
0
145
0.333333
8c869595b9f045f630a39964a2bc1bfe046186d9
6,332
py
Python
artap/individual.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
5
2021-06-13T17:04:37.000Z
2022-03-04T17:16:06.000Z
artap/individual.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
null
null
null
artap/individual.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
8
2021-03-11T18:23:47.000Z
2022-02-22T11:13:23.000Z
from abc import * from collections.abc import Iterable from enum import Enum class Individual(metaclass=ABCMeta): """ Collects information about one point in design space. """ class State(Enum): EMPTY = 0 IN_PROGRESS = 1 EVALUATED = 2 FAILED = 3 @classmethod def to_st...
32.471795
121
0.543114
6,251
0.987208
0
0
1,353
0.213677
0
0
1,273
0.201042
8c8709cfcc5d97ba4e268291c8caca0e75939b99
343
py
Python
taskhawk/backends/exceptions.py
pdeblanc/taskhawk-python
b820bcc966744c199c002ce977e15a3ef63dab91
[ "Apache-2.0" ]
null
null
null
taskhawk/backends/exceptions.py
pdeblanc/taskhawk-python
b820bcc966744c199c002ce977e15a3ef63dab91
[ "Apache-2.0" ]
3
2021-06-25T20:52:50.000Z
2021-11-30T16:22:30.000Z
hedwig/backends/exceptions.py
cloudchacho/hedwig-python
1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b
[ "Apache-2.0" ]
1
2022-03-14T03:15:01.000Z
2022-03-14T03:15:01.000Z
class PartialFailure(Exception): """ Error indicating either send_messages or delete_messages API call failed partially """ def __init__(self, result, *args): self.success_count = len(result['Successful']) self.failure_count = len(result['Failed']) self.result = result s...
31.181818
86
0.661808
342
0.997085
0
0
0
0
0
0
118
0.344023
8c87624e21c73678a29e1978808c53598ef78647
471
py
Python
blox/duplicates_query__1_0/b_duplicates_query.py
mpi-sws-rse/datablox
93af071e5f8a68dc83df1700ed657bd64aca8849
[ "Apache-2.0" ]
null
null
null
blox/duplicates_query__1_0/b_duplicates_query.py
mpi-sws-rse/datablox
93af071e5f8a68dc83df1700ed657bd64aca8849
[ "Apache-2.0" ]
null
null
null
blox/duplicates_query__1_0/b_duplicates_query.py
mpi-sws-rse/datablox
93af071e5f8a68dc83df1700ed657bd64aca8849
[ "Apache-2.0" ]
null
null
null
from block import * from logging import ERROR, WARN, INFO, DEBUG class duplicates_query(Block): def on_load(self, config): self.add_port("query", Port.QUERY, Port.UNNAMED, []) self.log(INFO, "Duplicate-query block loaded") def do_task(self): yield log = Log() res = self.query("query", log).log...
29.4375
56
0.609342
405
0.859873
234
0.496815
0
0
0
0
75
0.159236
8c87ba42d9c4fcf728e4c4af9e88b377f8f22da4
3,405
py
Python
nodepool/tests/test_shade_integration.py
Juniper/nodepool
3de0b20faa6f90437eb62c56ec23c59c6e15b5fa
[ "Apache-2.0" ]
null
null
null
nodepool/tests/test_shade_integration.py
Juniper/nodepool
3de0b20faa6f90437eb62c56ec23c59c6e15b5fa
[ "Apache-2.0" ]
null
null
null
nodepool/tests/test_shade_integration.py
Juniper/nodepool
3de0b20faa6f90437eb62c56ec23c59c6e15b5fa
[ "Apache-2.0" ]
2
2019-03-19T12:34:13.000Z
2020-02-05T10:31:48.000Z
# Copyright (C) 2015 Hewlett-Packard Development Company, L.P. # # 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 appli...
37.833333
75
0.669016
2,621
0.76975
0
0
0
0
0
0
1,167
0.342731
8c89c45428c0846d584df54eae048d3cd2046b39
1,944
py
Python
src/pybbox/bboxApiURL.py
BrunoMalard/pybbox
08a4437fcaa5ab6034cdad2822abf2b7e812ab6e
[ "MIT" ]
null
null
null
src/pybbox/bboxApiURL.py
BrunoMalard/pybbox
08a4437fcaa5ab6034cdad2822abf2b7e812ab6e
[ "MIT" ]
null
null
null
src/pybbox/bboxApiURL.py
BrunoMalard/pybbox
08a4437fcaa5ab6034cdad2822abf2b7e812ab6e
[ "MIT" ]
null
null
null
from .bboxConstant import BboxConstant import netaddr as net import socket class BboxAPIUrl: """ Used to handle API url """ API_PREFIX = "api/v1" def __init__(self, api_class, api_method, ip=BboxConstant.DEFAULT_LOCAL_IP): """ :param api_class: string :param api_method: st...
27.771429
80
0.596708
1,867
0.960391
0
0
0
0
0
0
347
0.178498
8c8a4300c28e34f4930ae2443042159fc3f83514
753
py
Python
experimental_code/integratedAltAz/keplerianToCartesianOrbital.py
rex-mcall/EST_Internship_2021
e2281925c0410e10cf779f8da37d2cf0b58c893a
[ "MIT" ]
null
null
null
experimental_code/integratedAltAz/keplerianToCartesianOrbital.py
rex-mcall/EST_Internship_2021
e2281925c0410e10cf779f8da37d2cf0b58c893a
[ "MIT" ]
null
null
null
experimental_code/integratedAltAz/keplerianToCartesianOrbital.py
rex-mcall/EST_Internship_2021
e2281925c0410e10cf779f8da37d2cf0b58c893a
[ "MIT" ]
null
null
null
from tletools import TLE import matplotlib.pyplot as plt import numpy as np import math from math import * import sys import datetime as dt import tleToKeplerianElements as ttke # uses TLE to return the current distance of the satellite to the focus def distanceToCentralBody(tle, curr_trueA): lan, argp, inc, ecc,...
31.375
77
0.706507
0
0
0
0
0
0
0
0
145
0.192563
8c9004e838a951adb521cb483768cf5772d3c5c5
4,091
py
Python
duovoice.py
dreamingdust/Duolingo
b0aa52d4e2ed5d53ed7a6a12b40f7427df80dd8a
[ "MIT" ]
null
null
null
duovoice.py
dreamingdust/Duolingo
b0aa52d4e2ed5d53ed7a6a12b40f7427df80dd8a
[ "MIT" ]
null
null
null
duovoice.py
dreamingdust/Duolingo
b0aa52d4e2ed5d53ed7a6a12b40f7427df80dd8a
[ "MIT" ]
null
null
null
import re import json import random from duorequest import DuoRequest class DuoVoice(): def __init__(self, session, langData): self._lang_data = langData self._user_session = session self._tts_voices = None self._cloudfront_server_url = None self._homepage_text = None ...
38.59434
118
0.599853
4,019
0.9824
0
0
637
0.155708
0
0
737
0.180152
8c9056fd477bcf10e7708737270959a98f48acf4
9,120
py
Python
vlab_onefs_api/lib/worker/tasks.py
willnx/vlab_onefs
df90738806a5a4800b91e62f79090a11a0b01088
[ "Apache-2.0" ]
1
2019-04-10T16:17:18.000Z
2019-04-10T16:17:18.000Z
vlab_onefs_api/lib/worker/tasks.py
willnx/vlab_onefs
df90738806a5a4800b91e62f79090a11a0b01088
[ "Apache-2.0" ]
2
2018-11-16T19:35:14.000Z
2019-05-22T19:00:38.000Z
vlab_onefs_api/lib/worker/tasks.py
willnx/vlab_onefs
df90738806a5a4800b91e62f79090a11a0b01088
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Entry point logic for available backend worker tasks """ from celery import Celery from vlab_api_common import get_task_logger from vlab_onefs_api.lib import const from vlab_onefs_api.lib.worker import vmware, setup_onefs app = Celery('onefs', backend='rpc://', broker=const.VLAB_MESSAGE_BR...
37.842324
121
0.641228
0
0
0
0
8,776
0.962281
0
0
4,426
0.485307
8c90ef4aca469d1ecba0f7580c5b99291072342e
1,878
py
Python
HIN&PairWise/create_dict.py
feast-research/PPGCN
cbc91bb0557f8f1c0beb4cb61804ca86e71d45f3
[ "MIT" ]
15
2019-05-20T08:34:58.000Z
2022-03-30T16:43:40.000Z
HIN&PairWise/create_dict.py
feast-research/PPGCN
cbc91bb0557f8f1c0beb4cb61804ca86e71d45f3
[ "MIT" ]
1
2021-03-04T09:16:41.000Z
2021-03-04T09:16:41.000Z
HIN&PairWise/create_dict.py
feast-research/PPGCN
cbc91bb0557f8f1c0beb4cb61804ca86e71d45f3
[ "MIT" ]
11
2019-05-20T08:35:03.000Z
2022-03-30T16:43:41.000Z
# coding: utf-8 # In[1]: import json import os import time def events_dict(events, num_files): for i in range(num_files): events['event'+str(i+1000000)] = ['event'+str(i+1000000)] with open('events.json', 'w') as json_file: json.dump(events, json_file) return events def keywords_dict(...
25.04
95
0.56869
0
0
0
0
0
0
0
0
656
0.349308
8c91071f0ddeb89b2d1a133336badc4c01678885
2,550
py
Python
azure-keyvault/azure/keyvault/key_vault_authentication.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:16:34.000Z
2018-11-09T06:16:34.000Z
azure-keyvault/azure/keyvault/key_vault_authentication.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-keyvault/azure/keyvault/key_vault_authentication.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:17:41.000Z
2018-11-09T06:17:41.000Z
#--------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. #---------------------------------------------------------------------...
43.220339
95
0.620784
1,993
0.781569
0
0
0
0
0
0
642
0.251765
8c93bd1c8da21f9f225cc04ad9c6cafa560fe192
326
py
Python
circumcircle.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
1
2019-12-28T12:31:28.000Z
2019-12-28T12:31:28.000Z
circumcircle.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
null
null
null
circumcircle.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
null
null
null
from math import sqrt side_a = 4 side_b = 6 side_c = 3 semiperimiter = (side_a + side_b + side_c)/2 diameter = (side_a* side_b* side_c)/ 2*sqrt(semiperimiter * (semiperimiter - side_a) * (semiperimiter - side_b) * (semiperimiter - side_c)) print ('The radius of a circle with sides of length 4, 6 and 3 is', diamet...
23.285714
139
0.702454
0
0
0
0
0
0
0
0
59
0.180982
8c9484692f2019ce785b1899db7a88a0eaef612f
5,757
py
Python
kl_modes.py
aasensio/unsupervisedMFBD
b83de1d7bd0d00bada5e61a97eff67acc8377432
[ "MIT" ]
5
2020-06-03T15:00:04.000Z
2021-05-24T06:37:47.000Z
kl_modes.py
aasensio/unsupervisedMFBD
b83de1d7bd0d00bada5e61a97eff67acc8377432
[ "MIT" ]
4
2021-01-31T12:06:39.000Z
2021-06-13T12:00:50.000Z
kl_modes.py
aasensio/unsupervisedMFBD
b83de1d7bd0d00bada5e61a97eff67acc8377432
[ "MIT" ]
2
2021-03-10T12:00:18.000Z
2022-01-06T16:28:32.000Z
import numpy as np import zern import matplotlib.pyplot as pl from tqdm import tqdm import scipy.special as sp def _even(x): return x%2 == 0 def _zernike_parity( j, jp): return _even(j-jp) class KL(object): def __init__(self): pass # tmp = np.load('kl/kl_data.npy') # self.noll_KL = t...
31.983333
124
0.505472
5,108
0.887268
0
0
0
0
0
0
1,699
0.295119
8c96804536bf1086747100c71b2281dc17414142
677
py
Python
tf_models/train.py
edding/socal-2019-nlp-complete
d3b5c2d57da06b6682dd6aeec3d4070bf9c1f257
[ "MIT" ]
2
2020-05-11T21:51:37.000Z
2021-04-28T16:08:59.000Z
tf_models/train.py
edding/socal-2019-nlp-complete
d3b5c2d57da06b6682dd6aeec3d4070bf9c1f257
[ "MIT" ]
1
2021-08-25T14:49:12.000Z
2021-08-25T14:49:12.000Z
tf_models/train.py
edding/socal-2019-nlp-complete
d3b5c2d57da06b6682dd6aeec3d4070bf9c1f257
[ "MIT" ]
1
2020-04-04T14:25:09.000Z
2020-04-04T14:25:09.000Z
from tf_models.utils import train, save_model def train_and_save(name: str, corpus: str, pos_label: str, root: str = ""): print("Start training {}...".format(name)) mlp_model, _, vec = train(corpus, pos_label, root) save_model(mlp_model, vec, name, root) if __name__ == "__main__": # Train intent mo...
23.344828
75
0.612999
0
0
0
0
0
0
0
0
206
0.304284
8c977c91bd1defaf564c46979a1e981f2c71b7b9
5,641
py
Python
docs/conf.py
j-i-l/SoSpCATpy
9e96a74ab24a727102eb80e1d85ed71ecb11ed76
[ "BSD-3-Clause" ]
2
2020-12-10T00:08:58.000Z
2020-12-11T09:37:06.000Z
docs/conf.py
j-i-l/SoSpCAT
9e96a74ab24a727102eb80e1d85ed71ecb11ed76
[ "BSD-3-Clause" ]
1
2020-12-10T21:59:53.000Z
2020-12-19T17:37:14.000Z
docs/conf.py
j-i-l/SoSpCATpy
9e96a74ab24a727102eb80e1d85ed71ecb11ed76
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
39.173611
79
0.479348
0
0
0
0
0
0
0
0
4,377
0.775926
8c98128aba9bae2c2828d02f0514de7ab9d43713
1,039
py
Python
migrations/versions/f1896d92dddc_.py
akelshareif/fiscally
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
[ "MIT" ]
1
2020-09-18T04:18:58.000Z
2020-09-18T04:18:58.000Z
migrations/versions/f1896d92dddc_.py
akelshareif/fiscally
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
[ "MIT" ]
null
null
null
migrations/versions/f1896d92dddc_.py
akelshareif/fiscally
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
[ "MIT" ]
null
null
null
"""empty message Revision ID: f1896d92dddc Revises: bdd283763bd2 Create Date: 2020-08-21 22:08:42.863607 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f1896d92dddc' down_revision = 'bdd283763bd2' branch_labels = None depends_on = None def upgrade(): # ...
29.685714
86
0.692974
0
0
0
0
0
0
0
0
536
0.515881
8c99299cba6a52cf3dabace97db1a9fc2ccbe36e
1,969
py
Python
test/territories_test.py
AColocho/us-states
1b97d9d4d1784ad6e297ffe1df2927eab3e86546
[ "BSL-1.0" ]
3
2020-12-31T02:08:01.000Z
2022-01-11T07:21:22.000Z
test/territories_test.py
AColocho/us-states
1b97d9d4d1784ad6e297ffe1df2927eab3e86546
[ "BSL-1.0" ]
14
2020-12-23T00:06:20.000Z
2022-01-10T16:43:43.000Z
test/territories_test.py
AColocho/us-states
1b97d9d4d1784ad6e297ffe1df2927eab3e86546
[ "BSL-1.0" ]
3
2020-12-28T08:47:00.000Z
2022-01-10T15:27:01.000Z
from states import Territories_Abbreviated from states import Territories_Full_Name from states import Uninhabited_Territories from states import Associated_States from states import Territories import unittest class Abbreviated_Test(unittest.TestCase): def check_lenght(self): """ Checks there is o...
39.38
133
0.705942
1,685
0.855764
0
0
0
0
0
0
689
0.349924
8c9c1a5711b123bddf619f7dedc40d8269640efe
714
py
Python
DataStructures/BinarySerachTree_def/Program.py
luiscarm9/Data-Structures-in-Python
e7eb7e7ece8f3223b8017d25acc76bea3e93e3f6
[ "MIT" ]
null
null
null
DataStructures/BinarySerachTree_def/Program.py
luiscarm9/Data-Structures-in-Python
e7eb7e7ece8f3223b8017d25acc76bea3e93e3f6
[ "MIT" ]
null
null
null
DataStructures/BinarySerachTree_def/Program.py
luiscarm9/Data-Structures-in-Python
e7eb7e7ece8f3223b8017d25acc76bea3e93e3f6
[ "MIT" ]
null
null
null
from BinarySerachTree_def.BinaryTree import BinaryTreeS binarytree=BinaryTreeS() #create a binary tree with fibonnaci binarytree.insert(0) binarytree.insert(1) binarytree.insert(1) binarytree.insert(2) binarytree.insert(3) binarytree.insert(5) binarytree.insert(8) binarytree.insert(13) binarytree.getTraverseInOrder...
22.3125
55
0.696078
0
0
0
0
0
0
0
0
224
0.313725
8c9fb6efe06b9d7eacf5c439d3879b402a99796e
3,469
py
Python
generative_model/generator_test.py
LamUong/Generate-novel-molecules-with-LSTM
a145a70ecd8719681e52b17a21d269c56873bcc3
[ "CC0-1.0" ]
19
2018-02-17T22:42:38.000Z
2021-07-16T07:21:46.000Z
generative_model/generator_test.py
LamUong/Generate-novel-molecules-with-LSTM
a145a70ecd8719681e52b17a21d269c56873bcc3
[ "CC0-1.0" ]
1
2018-11-18T15:05:17.000Z
2018-11-18T15:05:17.000Z
generative_model/generator_test.py
LamUong/Generate-novel-molecules-with-LSTM
a145a70ecd8719681e52b17a21d269c56873bcc3
[ "CC0-1.0" ]
9
2018-01-06T11:13:18.000Z
2021-06-22T12:32:55.000Z
import torch import torch.nn as nn from torch.autograd import Variable from data_loading import * from rdkit import Chem ''' the model ''' class generative_model(nn.Module): def __init__(self, vocabs_size, hidden_size, output_size, embedding_dimension, n_layers): super(generative_model, self).__init__() ...
32.12037
93
0.677717
1,106
0.318824
0
0
0
0
0
0
224
0.064572
8ca1def1e3fb9c5420539abd418d03fb101d97fb
16,206
py
Python
lib/jnpr/healthbot/swagger/models/hb_graphs_query.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
10
2019-10-23T12:54:37.000Z
2022-02-07T19:24:30.000Z
docs/jnpr_healthbot_swagger/swagger_client/models/hb_graphs_query.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
5
2019-09-30T04:29:25.000Z
2022-02-16T12:21:06.000Z
docs/jnpr_healthbot_swagger/swagger_client/models/hb_graphs_query.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
4
2019-09-30T01:17:48.000Z
2020-08-25T07:27:54.000Z
# coding: utf-8 """ Paragon Insights APIs API interface for PI application # noqa: E501 OpenAPI spec version: 4.0.0 Contact: healthbot-feedback@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class HbGraphsQue...
31.776471
316
0.614217
15,902
0.981242
0
0
10,607
0.654511
0
0
8,453
0.521597
8ca1fdcd06877b59b70ea045ebbc727545e90abc
3,564
py
Python
unn/models/attentions/factorized_attention.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
2
2021-08-08T11:23:14.000Z
2021-09-16T04:05:23.000Z
unn/models/attentions/factorized_attention.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
1
2021-08-08T11:25:47.000Z
2021-08-08T11:26:15.000Z
unn/models/attentions/factorized_attention.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .position import LearnedEmbedding class FactorizedAttentionBlock(nn.Module): def __init__(self, inplanes, feat_planes, out_planes=None, kernel_size=1, stride=1, position_embedding=None, **kwargs): super(FactorizedAt...
29.7
112
0.563692
3,452
0.968575
0
0
0
0
0
0
228
0.063973
8ca2ffe299e03e4ecdafdc64f945211899c0df0b
1,029
py
Python
scripts/py_shell.py
sjl3110/TF-M
100fa00239e4ddaf895865bdbbeb904a1973cb4a
[ "BSD-3-Clause" ]
null
null
null
scripts/py_shell.py
sjl3110/TF-M
100fa00239e4ddaf895865bdbbeb904a1973cb4a
[ "BSD-3-Clause" ]
null
null
null
scripts/py_shell.py
sjl3110/TF-M
100fa00239e4ddaf895865bdbbeb904a1973cb4a
[ "BSD-3-Clause" ]
null
null
null
import subprocess commit_sha_base = 'c855573fd1acadf2dd3b1cdc1e4581cd49c77f05' cmake_command = 'cmake -S . -B cmake_build -DTFM_PLATFORM=arm/mps2/an521 \ -DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake \ -DCMAKE_BUILD_TYPE=Release \ -DTFM_PROFILE=profile_small'...
31.181818
74
0.655005
0
0
0
0
0
0
0
0
621
0.603499
8ca37f78c357746a315b182aadc2bf8f1ad9a051
3,557
py
Python
Python 2 & 3/class example/sparse_matrix.py
sasasagagaga/Code-examples
084db5bca241b164a670e303f73048fe4e6dad79
[ "MIT" ]
null
null
null
Python 2 & 3/class example/sparse_matrix.py
sasasagagaga/Code-examples
084db5bca241b164a670e303f73048fe4e6dad79
[ "MIT" ]
null
null
null
Python 2 & 3/class example/sparse_matrix.py
sasasagagaga/Code-examples
084db5bca241b164a670e303f73048fe4e6dad79
[ "MIT" ]
null
null
null
from collections import defaultdict import copy class CooSparseMatrix: def _prepare_coords(self, coords): i, j = tuple(map(int, coords)) if 0 > i or i >= self.Shape[0] or 0 > j or j >= self.Shape[1]: raise TypeError return i, j def __get_copy(self): return copy.dee...
32.045045
89
0.490863
3,506
0.985662
0
0
0
0
0
0
20
0.005623
8ca571729a1d490bef3f077d7c0408ec944e7fe6
24,209
py
Python
src/stitcher.py
ahelsing/geni-tools
0799f715ad88a1a11b069e8208f012abef23cbd8
[ "MIT" ]
3
2015-05-05T13:03:27.000Z
2021-11-17T11:16:38.000Z
src/stitcher.py
ahelsing/geni-tools
0799f715ad88a1a11b069e8208f012abef23cbd8
[ "MIT" ]
null
null
null
src/stitcher.py
ahelsing/geni-tools
0799f715ad88a1a11b069e8208f012abef23cbd8
[ "MIT" ]
null
null
null
#!/usr/bin/env python #---------------------------------------------------------------------- # Copyright (c) 2013-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without ...
50.646444
221
0.638399
0
0
0
0
0
0
0
0
12,567
0.519104
8ca7949e5600af676c35fbf996b6b49821a26ed0
320
py
Python
check_db_connection.py
sernote/python_training
2e2fa1f71b551d12bb303a0abc31bd86a0a7b81d
[ "Apache-2.0" ]
null
null
null
check_db_connection.py
sernote/python_training
2e2fa1f71b551d12bb303a0abc31bd86a0a7b81d
[ "Apache-2.0" ]
null
null
null
check_db_connection.py
sernote/python_training
2e2fa1f71b551d12bb303a0abc31bd86a0a7b81d
[ "Apache-2.0" ]
null
null
null
from fixture.orm import ORMFixture from model.group import Group from fixture.contact import Contacthelper db = ORMFixture(host='localhost', name='addressbook', user='root', password='') try: l = db.get_contact_list() for item in l: print(item.all_phones_from_page) print(len(l)) finally: pass
22.857143
79
0.715625
0
0
0
0
0
0
0
0
32
0.1
8ca80fec6941295983f63bed7954d4de64aa4bfb
208
py
Python
csrf/api/v1/urls.py
CredoEducation/edx-drf-extensions
853fb5ec6392d57693008e1a1c1620b79cb8343b
[ "Apache-2.0" ]
13
2016-08-26T15:33:05.000Z
2020-12-20T19:12:34.000Z
csrf/api/v1/urls.py
CredoEducation/edx-drf-extensions
853fb5ec6392d57693008e1a1c1620b79cb8343b
[ "Apache-2.0" ]
74
2016-03-11T21:42:14.000Z
2021-10-04T05:41:12.000Z
csrf/api/v1/urls.py
CredoEducation/edx-drf-extensions
853fb5ec6392d57693008e1a1c1620b79cb8343b
[ "Apache-2.0" ]
13
2016-11-21T06:34:17.000Z
2021-09-07T08:34:28.000Z
""" URL definitions for version 1 of the CSRF API. """ from django.conf.urls import url from .views import CsrfTokenView urlpatterns = [ url(r'^token$', CsrfTokenView.as_view(), name='csrf_token'), ]
16
64
0.701923
0
0
0
0
0
0
0
0
76
0.365385
8ca834043d6aeb573ae8c09f0baf4e1123118c35
1,158
py
Python
src/zenmake/zm/buildconf/types.py
pustotnik/raven
adb75d04a1ce719266eb34c29b35151dfaf91a8a
[ "BSD-3-Clause" ]
null
null
null
src/zenmake/zm/buildconf/types.py
pustotnik/raven
adb75d04a1ce719266eb34c29b35151dfaf91a8a
[ "BSD-3-Clause" ]
null
null
null
src/zenmake/zm/buildconf/types.py
pustotnik/raven
adb75d04a1ce719266eb34c29b35151dfaf91a8a
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # """ Copyright (c) 2020, Alexander Magola. All rights reserved. license: BSD 3-Clause License, see LICENSE for more details. """ from zm.pyutils import struct class AnyStrKey(object): """ Any amount of string keys""" __slots__ = () def __eq__(self, other): if not isinstance(oth...
24.638298
69
0.578584
422
0.364421
0
0
0
0
0
0
531
0.458549
8ca83fa54e7394d645fa820ab6dd850bff3aac1f
832
py
Python
bokeh/protocol/messages/ok.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
4
2018-06-03T14:08:15.000Z
2020-09-09T01:56:29.000Z
bokeh/protocol/messages/ok.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/protocol/messages/ok.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
3
2020-04-28T17:47:50.000Z
2021-04-05T06:11:46.000Z
from __future__ import absolute_import import logging log = logging.getLogger(__name__) from ..message import Message from . import register @register class ok_1(Message): ''' Define the ``OK`` message (revision 1) for acknowledging successful handling of a previous message. The ``content`` fragment of ...
23.771429
75
0.644231
677
0.813702
0
0
687
0.825721
0
0
447
0.53726
8ca9b54baa338723ba065c5a2b4ac0c863288e7a
973
py
Python
ranking-jaccardian.py
bharathbs93/Article-Similarity-Search
32835dbf3e62b93e369b2596d41ad6359c8f1601
[ "MIT" ]
null
null
null
ranking-jaccardian.py
bharathbs93/Article-Similarity-Search
32835dbf3e62b93e369b2596d41ad6359c8f1601
[ "MIT" ]
null
null
null
ranking-jaccardian.py
bharathbs93/Article-Similarity-Search
32835dbf3e62b93e369b2596d41ad6359c8f1601
[ "MIT" ]
null
null
null
#Importing libraries that are needed for processing import pandas as pd from sklearn import preprocessing import numpy as np from sklearn.metrics.pairwise import pairwise_distances # Reading the csv file of term document frequency generated in R input_data = pd.read_csv("finamatrix.csv",index_col=0, header =0 ) # N...
27.027778
77
0.798561
0
0
0
0
0
0
0
0
341
0.350462
8cab73ff990877e4575d295bcf8d9f79d2c7d6bf
1,858
py
Python
1-Machine-Learning/1-Generative-Models/2D Representation & Reconstruction/2-Encoder-Decoder/Auto-Encoder/AE.py
yzy1996/Artificial-Intelligence
30a9a2ce1602b9fa9be5981e98885c1c4244cbbd
[ "MIT" ]
7
2019-11-09T02:55:35.000Z
2021-08-16T12:43:44.000Z
1-Machine-Learning/1-Generative-Models/2D Representation & Reconstruction/2-Encoder-Decoder/Auto-Encoder/AE.py
yzy1996/Artificial-Intelligence
30a9a2ce1602b9fa9be5981e98885c1c4244cbbd
[ "MIT" ]
3
2020-10-13T03:12:03.000Z
2021-03-21T09:03:02.000Z
1-Machine-Learning/1-Generative-Models/2D Representation & Reconstruction/2-Encoder-Decoder/Auto-Encoder/AE.py
yzy1996/Artificial-Intelligence
30a9a2ce1602b9fa9be5981e98885c1c4244cbbd
[ "MIT" ]
6
2020-06-07T08:14:15.000Z
2021-08-02T09:04:31.000Z
import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers import matplotlib.pyplot as plt # load data (x_train, _), _ = keras.datasets.mnist.load_data() x_train = x_train.astype('float32').reshape((-1, 28, 28, 1)) / 255. # build with tf encoder_input = keras.Input...
29.967742
76
0.681378
0
0
0
0
0
0
0
0
185
0.099569
8cab92e3b65b518844070c4affd32adef9b4c6b0
2,327
py
Python
third_party/liblouis/copy_tables.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/liblouis/copy_tables.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/liblouis/copy_tables.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Copies the liblouis braille translation tables to a destination.''' import liblouis_list_tables import optparse import os import sh...
34.220588
79
0.653631
0
0
0
0
0
0
0
0
810
0.348088
8cace4ddecdda2eaa7e084fcbbb6b086d90d5173
3,199
py
Python
tools/embed_resource.py
hunamizawa/ESP8266Clock
4366bac9308b5f13d08300f11a72780bea374091
[ "MIT" ]
1
2020-09-21T10:57:13.000Z
2020-09-21T10:57:13.000Z
tools/embed_resource.py
hunamizawa/ESP8266Clock
4366bac9308b5f13d08300f11a72780bea374091
[ "MIT" ]
9
2020-07-10T07:05:10.000Z
2020-10-28T09:06:38.000Z
tools/embed_resource.py
hunamizawa/ESP8266Clock
4366bac9308b5f13d08300f11a72780bea374091
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ data_dir ディレクトリ内のすべてのファイルを、PGM_P ( = const char * ) として埋め込むスクリプト。 Build/Upload の前に、自動的に実行される。 """ Import("env", "projenv") import os, glob, re, hashlib header_file_header = """// auto-generated by script tools/embed_resource.py // DO NOT EDIT BY HAND #ifndef ESP826...
28.061404
100
0.668646
0
0
0
0
0
0
0
0
1,634
0.468329
8cad26aa5c9bb0b79790bafff44921d3d31e5198
389
py
Python
rest/migrations/0032_auto_20200819_2057.py
narcotis/Welbot-V2
7525216b61036f62d0be0b5ebb6d3476b73323c8
[ "MIT" ]
1
2021-06-04T03:28:06.000Z
2021-06-04T03:28:06.000Z
rest/migrations/0032_auto_20200819_2057.py
narcotis/Welbot-V2
7525216b61036f62d0be0b5ebb6d3476b73323c8
[ "MIT" ]
2
2020-09-09T14:19:10.000Z
2020-09-09T14:20:21.000Z
rest/migrations/0032_auto_20200819_2057.py
narcotis/Welbot-V2
7525216b61036f62d0be0b5ebb6d3476b73323c8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-19 11:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rest', '0031_auto_20200819_2056'), ] operations = [ migrations.AlterField( model_name='culture_event', name='fare', ...
20.473684
51
0.601542
296
0.760925
0
0
0
0
0
0
99
0.254499
8cadc9a1ef987de2247466e14b6dcd5f4aa056a1
220
py
Python
src/utils/pythonSrc/watchFaceParser/elements/weatherElements/icon.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
49
2019-12-18T11:24:56.000Z
2022-03-28T09:56:27.000Z
src/utils/pythonSrc/watchFaceParser/elements/weatherElements/icon.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2020-01-08T21:31:15.000Z
2022-03-25T19:13:26.000Z
src/utils/pythonSrc/watchFaceParser/elements/weatherElements/icon.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2019-12-27T17:30:24.000Z
2021-09-30T08:11:01.000Z
from watchFaceParser.elements.basicElements.imageSet import ImageSet class Icon: definitions = { 1: { 'Name': 'Images', 'Type': ImageSet}, 2: { 'Name': 'NoWeatherImageIndex', 'Type': 'long'}, }
24.444444
68
0.622727
148
0.672727
0
0
0
0
0
0
59
0.268182
8cae7ac8e5d8109409bea3d890ec721d39341abb
905
py
Python
netbox/dcim/migrations/0133_port_colors.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
4,994
2019-07-01T13:15:44.000Z
2022-03-31T19:55:45.000Z
netbox/dcim/migrations/0133_port_colors.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
4,045
2019-07-01T14:24:09.000Z
2022-03-31T16:07:39.000Z
netbox/dcim/migrations/0133_port_colors.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
1,225
2019-07-01T15:34:03.000Z
2022-03-31T16:47:09.000Z
from django.db import migrations import utilities.fields class Migration(migrations.Migration): dependencies = [ ('dcim', '0132_cable_length'), ] operations = [ migrations.AddField( model_name='frontport', name='color', field=utilities.fields.ColorFiel...
27.424242
72
0.577901
845
0.933702
0
0
0
0
0
0
111
0.122652