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
deca8e26bb6a2a9ae53903a22809984f7a74b454
26,490
py
Python
project.py
PetruSicoe/Python101-GameProject
82121a8e110ee484acdf85843725882d60957b25
[ "CC-BY-4.0" ]
null
null
null
project.py
PetruSicoe/Python101-GameProject
82121a8e110ee484acdf85843725882d60957b25
[ "CC-BY-4.0" ]
null
null
null
project.py
PetruSicoe/Python101-GameProject
82121a8e110ee484acdf85843725882d60957b25
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 from random import randrange import random import pygame, sys from pygame.locals import * import string pygame.font.init() MENU_WIDTH = 1000 MENU_HEIGHT = 1000 GUESS_WIDTH = 1000 GUESS_HEIGHT = 650 HANGMAN_WIDTH = 1300 HANGMAN_HEIGHT = 720 BLACK = (0,0,0) WHITE = (25...
40.197269
177
0.555795
25,848
0.975764
0
0
0
0
0
0
2,007
0.075764
decaa14b52fa5524baf2d5d190931296e44de823
2,018
py
Python
Modules/CrossMapLRN.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
52
2020-02-28T20:40:15.000Z
2021-08-25T05:35:17.000Z
Modules/CrossMapLRN.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
2
2021-02-14T15:57:03.000Z
2021-10-05T12:21:34.000Z
Modules/CrossMapLRN.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
8
2020-02-28T20:40:11.000Z
2020-07-09T13:27:23.000Z
import numpy as np from PuzzleLib.Backend import gpuarray from PuzzleLib.Backend.Dnn import crossMapLRN, crossMapLRNBackward from PuzzleLib.Modules.LRN import LRN class CrossMapLRN(LRN): def __init__(self, N=5, alpha=1e-4, beta=0.75, K=2.0, name=None): super().__init__(N, alpha, beta, K, name) self.gradUsesOut...
32.031746
101
0.700198
505
0.250248
0
0
0
0
0
0
10
0.004955
decc19f50e9a41be1bc95cb6e0bf5f4f77162b78
4,802
py
Python
src/metrics.py
enryH/specpride
1bedd87dc8f31a6b86426c6e03dc0c27706bc9aa
[ "Apache-2.0" ]
2
2020-01-14T12:02:52.000Z
2020-01-14T14:03:30.000Z
src/metrics.py
enryH/specpride
1bedd87dc8f31a6b86426c6e03dc0c27706bc9aa
[ "Apache-2.0" ]
5
2019-12-09T10:59:10.000Z
2020-01-16T14:32:00.000Z
src/metrics.py
enryH/specpride
1bedd87dc8f31a6b86426c6e03dc0c27706bc9aa
[ "Apache-2.0" ]
9
2020-01-14T12:26:54.000Z
2020-01-16T08:26:06.000Z
import copy from typing import Iterable import numba as nb import numpy as np import spectrum_utils.spectrum as sus def dot(spectrum1: sus.MsmsSpectrum, spectrum2: sus.MsmsSpectrum, fragment_mz_tolerance: float) -> float: """ Compute the dot product between the given spectra. Parameters ----...
31.592105
79
0.660975
0
0
0
0
1,760
0.366514
0
0
2,598
0.541025
deccbee42c5be781692fc226272ac89e27a4e7a6
797
py
Python
examples/multi-class_neural_network.py
sun1638650145/classicML
7e0c2155bccb6e491a150ee689d3786526b74565
[ "Apache-2.0" ]
12
2020-05-10T12:11:06.000Z
2021-10-31T13:23:55.000Z
examples/multi-class_neural_network.py
sun1638650145/classicML
7e0c2155bccb6e491a150ee689d3786526b74565
[ "Apache-2.0" ]
null
null
null
examples/multi-class_neural_network.py
sun1638650145/classicML
7e0c2155bccb6e491a150ee689d3786526b74565
[ "Apache-2.0" ]
2
2021-01-17T06:22:05.000Z
2021-01-18T14:32:51.000Z
""" 这个例子将展示如何使用BP神经网络构建多分类的神经网络. """ import sys import classicML as cml DATASET_PATH = './datasets/iris_dataset.csv' CALLBACKS = [cml.callbacks.History(loss_name='categorical_crossentropy', metric_name='accuracy')] # 读取数据 ds = cml.data.Dataset(label_mode='one-hot', ...
28.464286
72
0.644918
0
0
0
0
0
0
0
0
378
0.4017
decdd56ee9283490fb231ea62e1de89aa2fa1fee
2,596
py
Python
pool/serializer/PoolSerializer.py
salran40/POAP
9ff2ab68b55aeffe104d127c4beb8b1372b2c8de
[ "Apache-2.0" ]
null
null
null
pool/serializer/PoolSerializer.py
salran40/POAP
9ff2ab68b55aeffe104d127c4beb8b1372b2c8de
[ "Apache-2.0" ]
null
null
null
pool/serializer/PoolSerializer.py
salran40/POAP
9ff2ab68b55aeffe104d127c4beb8b1372b2c8de
[ "Apache-2.0" ]
null
null
null
__author__ = "arunrajms" from rest_framework import serializers from pool.models import Pool from rest_framework.validators import UniqueValidator import re TYPE_CHOICES = ['Integer','IP','IPv6','AutoGenerate','Vlan','MgmtIP'] PUT_TYPE_CHOICES = ['Integer','IP','IPv6','Vlan','MgmtIP'] SCOPE_CHOICES = ['global','fabri...
36.56338
91
0.724961
2,225
0.857088
0
0
0
0
0
0
421
0.162173
dece77460bb0515a4dff433a0f6f8e80d7adc76c
3,735
py
Python
yiffscraper/downloader.py
ScraperT/yiffscraper
49482a544fc7f11e6ea5db2626dbc2404529d656
[ "MIT" ]
42
2019-12-23T23:55:12.000Z
2022-02-07T04:12:59.000Z
yiffscraper/downloader.py
arin17bishwa/yiffscraper
49482a544fc7f11e6ea5db2626dbc2404529d656
[ "MIT" ]
7
2020-01-12T13:04:56.000Z
2020-05-18T07:11:51.000Z
yiffscraper/downloader.py
arin17bishwa/yiffscraper
49482a544fc7f11e6ea5db2626dbc2404529d656
[ "MIT" ]
7
2020-03-12T03:47:53.000Z
2020-07-26T08:05:55.000Z
import os import platform from datetime import datetime import time from pathlib import Path import asyncio from dateutil.parser import parse as parsedate from dateutil import tz import aiohttp def longpath(p): if p is None or platform.system() != "Windows": return Path(p) return Path("\\\\?\\" + str...
31.923077
122
0.626774
2,735
0.732262
537
0.143775
1,191
0.318876
2,081
0.557162
296
0.07925
decfc0841b9274cca97b69d13faf37aa2232005f
58
py
Python
tests/cases/print.py
wisn/py2many
e33871a3e54971407319e9df28dcadcdc3a49140
[ "MIT" ]
1
2021-05-14T00:35:04.000Z
2021-05-14T00:35:04.000Z
tests/cases/print.py
wisn/py2many
e33871a3e54971407319e9df28dcadcdc3a49140
[ "MIT" ]
null
null
null
tests/cases/print.py
wisn/py2many
e33871a3e54971407319e9df28dcadcdc3a49140
[ "MIT" ]
null
null
null
def main(): print(2) print("b") print(2, "b")
11.6
17
0.448276
0
0
0
0
0
0
0
0
6
0.103448
ded08df80894e1241c99188254ecd7f7c259352b
380
py
Python
linked_lists/find_loop.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
linked_lists/find_loop.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
linked_lists/find_loop.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
# O(n) time | O(1) space class LinkedList: def __init__(self, value): self.value = value self.next = None def findLoop(head): slow = head.next fast = head.next.next while fast != slow: slow = slow.next fast = fast.next.next fast = head while fast != slow: ...
20
30
0.560526
100
0.263158
0
0
0
0
0
0
24
0.063158
ded4491d8cef57cccb094e0f83641638968be15a
3,066
py
Python
src/tests/attention_test.py
feperessim/attention_keras
322a16ee147122026b63305aaa5e899d9e5de883
[ "MIT" ]
422
2019-03-17T13:08:59.000Z
2022-03-31T12:08:29.000Z
src/tests/attention_test.py
JKhodadadi/attention_keras
322a16ee147122026b63305aaa5e899d9e5de883
[ "MIT" ]
51
2019-03-17T20:08:11.000Z
2022-03-18T03:51:42.000Z
src/tests/attention_test.py
JKhodadadi/attention_keras
322a16ee147122026b63305aaa5e899d9e5de883
[ "MIT" ]
285
2019-03-17T19:06:22.000Z
2022-03-31T02:29:17.000Z
import pytest from layers.attention import AttentionLayer from tensorflow.keras.layers import Input, GRU, Dense, Concatenate, TimeDistributed from tensorflow.keras.models import Model import tensorflow as tf def test_attention_layer_standalone_fixed_b_fixed_t(): """ Tests fixed batch size and time steps E...
37.390244
101
0.7182
0
0
0
0
0
0
0
0
1,513
0.493477
ded5e7681d684ad45f836b0b523b89035ed45f16
1,572
py
Python
Python/9248_Suffix_Array/9248_suffix_array_lcp_array.py
ire4564/Baekjoon_Solutions
3e6689efa30d6b850cdc29570c76408a1e1b2b49
[ "Apache-2.0" ]
4
2020-11-17T09:52:29.000Z
2020-12-13T11:36:14.000Z
Python/9248_Suffix_Array/9248_suffix_array_lcp_array.py
ire4564/Baekjoon_Solutions
3e6689efa30d6b850cdc29570c76408a1e1b2b49
[ "Apache-2.0" ]
2
2020-11-19T11:21:02.000Z
2020-11-19T22:07:15.000Z
Python/9248_Suffix_Array/9248_suffix_array_lcp_array.py
ire4564/Baekjoon_Solutions
3e6689efa30d6b850cdc29570c76408a1e1b2b49
[ "Apache-2.0" ]
12
2020-11-17T06:55:13.000Z
2021-05-16T14:39:37.000Z
from itertools import zip_longest, islice def to_int_keys_best(l): seen = set() ls = [] for e in l: if not e in seen: ls.append(e) seen.add(e) ls.sort() index = {v: i for i, v in enumerate(ls)} return [index[v] for v in l] def suffix_array_best(...
20.684211
64
0.448473
0
0
0
0
0
0
0
0
19
0.012087
ded667020b68f181edc8b21f22dbb71557c2c7cc
1,329
py
Python
lgr/tools/compare/utils.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
7
2017-07-10T22:39:52.000Z
2021-06-25T20:19:28.000Z
lgr/tools/compare/utils.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
13
2016-10-26T19:42:00.000Z
2021-12-13T19:43:42.000Z
lgr/tools/compare/utils.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
8
2016-11-07T15:40:27.000Z
2020-09-22T13:48:52.000Z
# -*- coding: utf-8 -*- """ utils.py - Definition of utility functions. """ from collections import namedtuple from lgr.utils import format_cp VariantProperties = namedtuple('VariantProperties', ['cp', 'type', 'when', 'not_when', ...
24.611111
77
0.574116
0
0
0
0
0
0
0
0
764
0.574868
ded78378f0da72d7d6e0a021bbb1b4a6004db8f0
2,386
py
Python
tests/test__file_object.py
StateArchivesOfNorthCarolina/tomes_metadata
8b73096c1b16e0db2895a6c01d4fc4fd9621cf55
[ "MIT" ]
null
null
null
tests/test__file_object.py
StateArchivesOfNorthCarolina/tomes_metadata
8b73096c1b16e0db2895a6c01d4fc4fd9621cf55
[ "MIT" ]
2
2018-09-12T20:36:22.000Z
2018-09-13T20:14:50.000Z
tests/test__file_object.py
StateArchivesOfNorthCarolina/tomes-packager
8b73096c1b16e0db2895a6c01d4fc4fd9621cf55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # import modules. import sys; sys.path.append("..") import hashlib import json import logging import os import plac import unittest import warnings from tomes_packager.lib.directory_object import * from tomes_packager.lib.file_object import * # enable logging. logging.basicConfig(level=logging....
27.744186
84
0.642079
1,267
0.531014
0
0
0
0
0
0
712
0.298407
ded98a6b09e99064104171c0327f9f5f8f68c1fa
244
py
Python
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
from unv.web.helpers import url_with_domain, url_for_static def test_url_with_domain(): assert url_with_domain('/path') == 'https://app.local/path' def test_simple_static_url(): assert url_for_static('asd.txt') == '/static/asd.txt'
24.4
63
0.737705
0
0
0
0
0
0
0
0
57
0.233607
deda4206dc73f8dbe4b33d7d756e79510962b4d8
10,829
py
Python
game.py
IliketoTranslate/Pickaxe-clicker
e74ebd66842bd47c4ed1c4460e9f45e30a2ad1d7
[ "MIT" ]
null
null
null
game.py
IliketoTranslate/Pickaxe-clicker
e74ebd66842bd47c4ed1c4460e9f45e30a2ad1d7
[ "MIT" ]
null
null
null
game.py
IliketoTranslate/Pickaxe-clicker
e74ebd66842bd47c4ed1c4460e9f45e30a2ad1d7
[ "MIT" ]
null
null
null
import pygame icon = pygame.image.load("diamond_pickaxe.png") screen_weight = 1750 screen_height = 980 pygame.init() window = pygame.display.set_mode((screen_weight, screen_height)) pygame.display.set_caption('Pickaxe clicker') pygame.display.set_icon(icon) # zmienne wytrzymałość_kilofa = 50 max_wytrzymałość_kilof...
49.447489
296
0.576138
0
0
0
0
0
0
0
0
2,020
0.18527
dedba85b4c2428f8778fd3f7f0d4d19fee14a759
4,383
py
Python
tests/test_predictor.py
WeijieChen2017/pytorch-3dunet
15c782481cb7bc3e2083a80bcc8b114cc8697c20
[ "MIT" ]
1
2021-08-04T04:03:37.000Z
2021-08-04T04:03:37.000Z
tests/test_predictor.py
LalithShiyam/pytorch-3dunet
f6b6c13cb0bb6194e95976b0245b76aaa9e9a496
[ "MIT" ]
null
null
null
tests/test_predictor.py
LalithShiyam/pytorch-3dunet
f6b6c13cb0bb6194e95976b0245b76aaa9e9a496
[ "MIT" ]
1
2022-03-14T04:43:24.000Z
2022-03-14T04:43:24.000Z
import os from tempfile import NamedTemporaryFile import h5py import numpy as np import torch from skimage.metrics import adapted_rand_error from torch.utils.data import DataLoader from pytorch3dunet.datasets.hdf5 import StandardHDF5Dataset from pytorch3dunet.datasets.utils import prediction_collate, get_test_loaders...
35.346774
114
0.62423
3,823
0.872234
0
0
0
0
0
0
524
0.119553
dedbd6180bc5f6b44a69dd4d23b7983f144a3239
2,560
py
Python
catalog/views.py
DigimundoTesca/Tv-Mundo
09904759d1f4f9bf2d5c7c31b97af82c3c963bfd
[ "MIT" ]
null
null
null
catalog/views.py
DigimundoTesca/Tv-Mundo
09904759d1f4f9bf2d5c7c31b97af82c3c963bfd
[ "MIT" ]
6
2017-09-19T07:26:14.000Z
2017-09-27T10:06:49.000Z
catalog/views.py
DigimundoTesca/Tv-Mundo
09904759d1f4f9bf2d5c7c31b97af82c3c963bfd
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.contrib.auth.decorators import login_required from catalog.models import Videos, Category, Docs, Subscriber from django.contrib.auth.decorators import login_required @login_required def home(request): template = 'home.html' category = Category....
24.380952
76
0.622656
0
0
0
0
2,311
0.902734
0
0
279
0.108984
dedc38f09d494832d839db3e999852609e6a45ac
519
py
Python
python/database/get_twitter_predict_by_order.py
visdata/DeepClue
8d80ecd783919c97ba225db67664a0dfe5f3fb37
[ "Apache-2.0" ]
1
2020-12-06T08:04:32.000Z
2020-12-06T08:04:32.000Z
python/database/get_twitter_predict_by_order.py
visdata/DeepClue
8d80ecd783919c97ba225db67664a0dfe5f3fb37
[ "Apache-2.0" ]
null
null
null
python/database/get_twitter_predict_by_order.py
visdata/DeepClue
8d80ecd783919c97ba225db67664a0dfe5f3fb37
[ "Apache-2.0" ]
null
null
null
import MySQLdb db = MySQLdb.connect('localhost', 'root', 'vis_2014', 'FinanceVis') cursor = db.cursor() sql = 'select predict_news_word from all_twitter where symbol=%s order by predict_news_word+0 desc' cursor.execute(sql, ('AAPL', )) results = cursor.fetchall() file_twitter_predict = open('twitter_predict_AAPL.csv...
25.95
99
0.714836
0
0
0
0
0
0
0
0
178
0.342967
dedd33f5b7d0869e4ad454abba7866e56edaacbb
301
py
Python
examples/matplotlib/mpl_plot_dot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,159
2018-04-03T08:50:54.000Z
2022-03-31T18:03:52.000Z
examples/matplotlib/mpl_plot_dot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,656
2018-03-23T14:15:05.000Z
2022-03-31T14:00:28.000Z
examples/matplotlib/mpl_plot_dot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
316
2018-04-03T14:25:52.000Z
2022-03-25T10:41:29.000Z
""" Dot Plot ========= _thumb: .2, .8 _example_title: Plot distribution. """ import matplotlib.pyplot as plt import numpy as np import arviz as az az.style.use("arviz-darkgrid") data = np.random.normal(0, 1, 1000) az.plot_dot(data, dotcolor="C1", point_interval=True, figsize=(12, 6)) plt.show()
15.842105
70
0.69103
0
0
0
0
0
0
0
0
97
0.322259
dedeaccf1b8d4bb294ba8b9e2278d86179d43f0e
405
py
Python
kattis/solutions/alphabetspam.py
yifeng-pan/competitive_programming
c59edb1e08aa2db2158a814e3d34f4302658d98e
[ "Unlicense" ]
null
null
null
kattis/solutions/alphabetspam.py
yifeng-pan/competitive_programming
c59edb1e08aa2db2158a814e3d34f4302658d98e
[ "Unlicense" ]
null
null
null
kattis/solutions/alphabetspam.py
yifeng-pan/competitive_programming
c59edb1e08aa2db2158a814e3d34f4302658d98e
[ "Unlicense" ]
null
null
null
# https://open.kattis.com/problems/alphabetspam import sys import math xs = input() white = 0 lower = 0 higher =0 other = 0 for i in xs: if i == '_': white += 1 elif ('a' <= i) & (i <= 'z'): lower += 1 elif ('A' <= i) & (i <= "Z"): higher += 1 else: other += 1 print(...
15.576923
47
0.511111
0
0
0
0
0
0
0
0
62
0.153086
dee0061d48e6e49cac68657f95ed5ac4927eaa8e
3,813
py
Python
src/chain_orientation_three_vars_symbolic.py
Scriddie/Varsortability
357213d5ceefb6362060c56e12c18b41dc689306
[ "MIT" ]
4
2021-12-08T07:54:00.000Z
2022-03-09T07:55:21.000Z
src/chain_orientation_three_vars_symbolic.py
Scriddie/Varsortability
357213d5ceefb6362060c56e12c18b41dc689306
[ "MIT" ]
null
null
null
src/chain_orientation_three_vars_symbolic.py
Scriddie/Varsortability
357213d5ceefb6362060c56e12c18b41dc689306
[ "MIT" ]
1
2022-03-09T07:55:43.000Z
2022-03-09T07:55:43.000Z
import numpy as np from sympy import simplify, sqrt, symbols from sympy.stats import Normal, covariance as cov, variance as var def regcoeffs(x, y, z): covxy = cov(x, y) covyz = cov(y, z) varx = var(x) vary = var(y) varz = var(z) # forward f1 = simplify(covxy / varx) f2 = simplify(covy...
28.455224
69
0.441385
0
0
0
0
0
0
0
0
713
0.186992
dee00922a67f6dff4732cf526028648896d0fc92
2,290
py
Python
Phototweet.py
sbamueller/RasperryPi_BildFeinstaub
3666db384ead64893b3c548065aa31cef6c126af
[ "Apache-2.0" ]
null
null
null
Phototweet.py
sbamueller/RasperryPi_BildFeinstaub
3666db384ead64893b3c548065aa31cef6c126af
[ "Apache-2.0" ]
null
null
null
Phototweet.py
sbamueller/RasperryPi_BildFeinstaub
3666db384ead64893b3c548065aa31cef6c126af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # coding=<UTF-8> # tweetpic.py take a photo with the Pi camera and tweet it # by Alex Eames http://raspi.tv/?p=5918 import tweepy from subprocess import call from datetime import datetime import requests import json i = datetime.now() #take time and date for filename no...
31.369863
80
0.691266
0
0
0
0
0
0
0
0
1,174
0.512664
dee0dfeab71167aee2a17e14945c71c0e31e66be
1,762
py
Python
jaffalearn/logging.py
tqbl/jaffalearn
a5bb79fcb3e84fd6e17b6356429e5885386a5a58
[ "0BSD" ]
null
null
null
jaffalearn/logging.py
tqbl/jaffalearn
a5bb79fcb3e84fd6e17b6356429e5885386a5a58
[ "0BSD" ]
null
null
null
jaffalearn/logging.py
tqbl/jaffalearn
a5bb79fcb3e84fd6e17b6356429e5885386a5a58
[ "0BSD" ]
null
null
null
from pathlib import Path import pandas as pd from torch.utils.tensorboard import SummaryWriter class Logger: def __init__(self, system, log_dir, overwrite=False): self.log_path = Path(log_dir) / 'history.csv' self.system = system self.tb_writer = None # Remove any previous Tens...
30.37931
70
0.605562
1,662
0.943246
0
0
0
0
0
0
243
0.137911
dee0ea830b4e14533eb75ccbf58b75a95766df8d
3,369
py
Python
python/soma_workflow/constants.py
denisri/soma-workflow
bc6f2f50d34437e86e850cb0d05ff26b041d560d
[ "CECILL-B" ]
null
null
null
python/soma_workflow/constants.py
denisri/soma-workflow
bc6f2f50d34437e86e850cb0d05ff26b041d560d
[ "CECILL-B" ]
44
2018-10-30T16:57:10.000Z
2022-03-15T10:54:57.000Z
python/soma_workflow/constants.py
populse/soma-workflow
e6d3e3c33ad41107ee3c959adc4832e6edd047f4
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ''' author: Soizic Laguitton organization: I2BM, Neurospin, Gif-sur-Yvette, France organization: CATI, France organization: IFR 49 License: `CeCILL version 2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.html>`_ ''' # # Soma-workflow constants # # ''' Job status: ''' NOT_SUBMITTED ...
28.310924
88
0.655091
0
0
0
0
0
0
0
0
1,168
0.34669
dee4241a76fbf19cf565aab66e0521ce2380cc65
250
py
Python
test/tests/global_and_local.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2015-11-06T03:39:51.000Z
2015-11-06T03:39:51.000Z
test/tests/global_and_local.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
test/tests/global_and_local.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
# expected: fail # - this particular check isn't implemented yet # I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global" print "first" x = 1 def f(x): global x print "calling" f(2) print x
16.666667
108
0.696
0
0
0
0
0
0
0
0
187
0.748
dee46fc1a2825aedf140afa6a83cd03a303bce36
1,980
py
Python
lab4_2/helpers/scanner.py
cinnamonbreakfast/flcd
f9168c1965976e9ae9477ee6b163a026f61acb1b
[ "MIT" ]
null
null
null
lab4_2/helpers/scanner.py
cinnamonbreakfast/flcd
f9168c1965976e9ae9477ee6b163a026f61acb1b
[ "MIT" ]
null
null
null
lab4_2/helpers/scanner.py
cinnamonbreakfast/flcd
f9168c1965976e9ae9477ee6b163a026f61acb1b
[ "MIT" ]
null
null
null
res_words = [] seps = [] ops = [] def load_dom(): with open('data/tokens', 'r') as f: for i in range(7): separator = f.readline().strip() if separator == "_": # Special case [SPACE] separator = " " seps.append(separator) for i ...
22.5
74
0.491414
0
0
0
0
0
0
0
0
64
0.032323
dee4deb771683414d1b0181d259bc1acc86fbf9f
1,101
py
Python
fastspider/item/item.py
coco369/fastspider
464ba47176c005ed97005a79c5c4eee0bf0740b6
[ "MIT" ]
6
2021-08-09T01:35:44.000Z
2022-02-15T08:14:29.000Z
fastspider/item/item.py
coco369/fastspider
464ba47176c005ed97005a79c5c4eee0bf0740b6
[ "MIT" ]
null
null
null
fastspider/item/item.py
coco369/fastspider
464ba47176c005ed97005a79c5c4eee0bf0740b6
[ "MIT" ]
4
2021-08-13T06:41:13.000Z
2021-12-07T15:53:56.000Z
# encoding=utf-8 """ Auth: coco369 Email: 779598160@qq.com CreateTime: 2021/07/30 Desc: fastspider核心代码, 实体Item """ class BaseItemMetaClass(type): def __new__(cls, name, bases, attrs): attrs.setdefault("__name__", None) attrs.setdefault("__table_name__", None) attrs.setdefault("__update_key__", None) attrs...
20.018182
84
0.728429
1,018
0.882914
0
0
435
0.377277
0
0
316
0.274068
dee8b0a49fcef498a3468a8ea4df153befa037f5
26,370
py
Python
src/third_party/wiredtiger/test/suite/run.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/run.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/run.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2014-present MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a com...
40.631741
105
0.573834
0
0
0
0
0
0
0
0
11,091
0.420592
dee9227b4b6629ca39d002a84205390a69b06f7b
29,997
py
Python
Code/Minner/SumDialog.py
lizhangjie316/Minner
f6aebd51cef981d726b53db8d62d1b1703fe2649
[ "MIT" ]
1
2020-11-05T07:11:33.000Z
2020-11-05T07:11:33.000Z
Code/Minner0827/ui/SumDialog.py
lizhangjie316/Minner
f6aebd51cef981d726b53db8d62d1b1703fe2649
[ "MIT" ]
null
null
null
Code/Minner0827/ui/SumDialog.py
lizhangjie316/Minner
f6aebd51cef981d726b53db8d62d1b1703fe2649
[ "MIT" ]
1
2020-11-05T07:19:44.000Z
2020-11-05T07:19:44.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'SumDialog.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
43.791241
116
0.657432
29,828
0.987649
0
0
0
0
0
0
6,849
0.226781
deeb28c75145a6bebc3771235fab7a32732db4c0
684
py
Python
models/t_complex_gateway.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_complex_gateway.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_complex_gateway.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from .t_expression import TExpression from .t_gateway import TGateway __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class TComplexGateway(TGateway): class Meta: name = "tComplexGateway" activation_conditi...
24.428571
71
0.622807
468
0.684211
0
0
479
0.700292
0
0
177
0.258772
deebcfc8092fc857d0a9f335ddd1bffc49d0f520
2,371
py
Python
fixture/orm.py
NovikovMA/python_training_mantis
c8de0ec193e2ec644d8053f8e1b7fc1ee8fb1525
[ "Apache-2.0" ]
null
null
null
fixture/orm.py
NovikovMA/python_training_mantis
c8de0ec193e2ec644d8053f8e1b7fc1ee8fb1525
[ "Apache-2.0" ]
null
null
null
fixture/orm.py
NovikovMA/python_training_mantis
c8de0ec193e2ec644d8053f8e1b7fc1ee8fb1525
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'M.Novikov' from model.project import Project # Проекты Mantis from pony.orm import * # Работа с базой данных from pymysql.converters import decoders #...
59.275
186
0.567693
2,601
0.869318
0
0
360
0.120321
0
0
1,568
0.524064
deecfb2ff8809fa583a186388e95973a391ea0c6
3,577
py
Python
volDB/migrations/0001_initial.py
leg2015/CSCapstone19Volunteers
ae0fcf1e8ce4fafe8578edd0a3943574703046fa
[ "MIT" ]
4
2020-01-13T23:30:34.000Z
2021-03-17T21:23:57.000Z
volDB/migrations/0001_initial.py
leg2015/CSCapstone19Volunteers
ae0fcf1e8ce4fafe8578edd0a3943574703046fa
[ "MIT" ]
5
2020-02-12T03:25:17.000Z
2021-06-10T22:29:16.000Z
volDB/migrations/0001_initial.py
leg2015/CSCapstone19Volunteers
ae0fcf1e8ce4fafe8578edd0a3943574703046fa
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-02-23 18:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Address', fields=[ ...
41.593023
137
0.574224
3,451
0.964775
0
0
0
0
0
0
664
0.18563
deedff750596df4bfdfcd2656752ec59911b5e80
2,713
py
Python
crawler/page_fetcher.py
AssisRaphael/PageColector
6753376996f12ee1cced96b89a3e34d6fdf66529
[ "MIT" ]
null
null
null
crawler/page_fetcher.py
AssisRaphael/PageColector
6753376996f12ee1cced96b89a3e34d6fdf66529
[ "MIT" ]
null
null
null
crawler/page_fetcher.py
AssisRaphael/PageColector
6753376996f12ee1cced96b89a3e34d6fdf66529
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from threading import Thread import requests from urllib.parse import urlparse,urljoin from urllib import parse class PageFetcher(Thread): def __init__(self, obj_scheduler): self.obj_scheduler = obj_scheduler def request_url(self,obj_url): """ Faz ...
33.085366
109
0.570586
2,576
0.946711
964
0.354282
0
0
0
0
607
0.22308
def0c98ea1f503e25e5a4f61d70a095d8ff1d77d
141
py
Python
app/celery_worker.py
cjarv/celery_dev
1c0489ccf456249d5bd8d21da40ebe4572842af6
[ "MIT" ]
null
null
null
app/celery_worker.py
cjarv/celery_dev
1c0489ccf456249d5bd8d21da40ebe4572842af6
[ "MIT" ]
null
null
null
app/celery_worker.py
cjarv/celery_dev
1c0489ccf456249d5bd8d21da40ebe4572842af6
[ "MIT" ]
null
null
null
from factories.celery import create_celery from factories.application import create_application celery = create_celery(create_application())
35.25
52
0.87234
0
0
0
0
0
0
0
0
0
0
def0d455f3332a2d6ded90d585855fcbfa88a92a
2,098
py
Python
simublocks/dialog/importCodeDialog.py
bentoavb/simublocks
9d4a5600b8aecd2d188e9191d78789a1bd725ab8
[ "MIT" ]
2
2020-05-14T12:34:43.000Z
2020-06-11T23:48:09.000Z
simublocks/dialog/importCodeDialog.py
bentoavb/simublocks
9d4a5600b8aecd2d188e9191d78789a1bd725ab8
[ "MIT" ]
null
null
null
simublocks/dialog/importCodeDialog.py
bentoavb/simublocks
9d4a5600b8aecd2d188e9191d78789a1bd725ab8
[ "MIT" ]
1
2020-05-12T07:01:28.000Z
2020-05-12T07:01:28.000Z
# MIT License # # Copyright (c) 2020 Anderson Vitor Bento # # 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...
38.851852
98
0.704957
860
0.409914
0
0
0
0
0
0
1,168
0.556721
def0f90a3cae5abac2b0927d079c001b98668c18
1,365
py
Python
python-socket-mult-thread/server.py
Programmer-Edilson/min-projects
62dfa55e8875b3d0d3e6cc9cb504c3f3f7da064e
[ "MIT" ]
1
2021-02-28T17:33:59.000Z
2021-02-28T17:33:59.000Z
python-socket-mult-thread/server.py
Programmer-Edilson/min-projects
62dfa55e8875b3d0d3e6cc9cb504c3f3f7da064e
[ "MIT" ]
null
null
null
python-socket-mult-thread/server.py
Programmer-Edilson/min-projects
62dfa55e8875b3d0d3e6cc9cb504c3f3f7da064e
[ "MIT" ]
null
null
null
import socket import os from _thread import start_new_thread ip = "localhost" port = 1234 global number_of_connections number_of_connections = 0 server = socket.socket() server.bind((ip, port)) server.listen(5) def handle_client(socket_client): global number_of_connections msg = "You are connected!" ...
24.375
74
0.621245
0
0
0
0
0
0
0
0
187
0.136996
def2f40bc3a8f54d1a406e95811076ed0688d708
658
py
Python
delete_unuse_callkit.py
eyolo2021/ios-ui-sdk-set
a8897320c356ddd6dbfe964ef68eb76701759f03
[ "MIT" ]
14
2021-03-06T08:47:30.000Z
2022-02-11T09:42:24.000Z
delete_unuse_callkit.py
eyolo2021/ios-ui-sdk-set
a8897320c356ddd6dbfe964ef68eb76701759f03
[ "MIT" ]
3
2021-03-19T11:12:42.000Z
2021-11-29T14:56:33.000Z
delete_unuse_callkit.py
Zuzi007/ios-ui-sdk-set
2e51added5d697b4d1ab1ba2887ad297b408e7b0
[ "MIT" ]
12
2021-07-02T02:44:52.000Z
2022-03-01T05:15:22.000Z
#coding=utf-8 import os delete_files=["RCCall.mm","RCCXCall.m"] start_key = "RCCallKit_Delete_Start" end_key = "RCCallKit_Delete_end" def delete_used(file_path): print(file_path) f = open(file_path,"r") lines = f.readlines() f.close() # print(lines) result = [] flag = False for l in lines: if start_key...
15.666667
44
0.674772
0
0
0
0
0
0
0
0
129
0.196049
def6b9e9ff86d2545be01b4fc202577ea606b159
525
py
Python
global_setting.py
aixiwang/mqtt_datajs
91091d63f73e64916e6ca3fa5e9279dd361d3c86
[ "BSD-3-Clause" ]
null
null
null
global_setting.py
aixiwang/mqtt_datajs
91091d63f73e64916e6ca3fa5e9279dd361d3c86
[ "BSD-3-Clause" ]
null
null
null
global_setting.py
aixiwang/mqtt_datajs
91091d63f73e64916e6ca3fa5e9279dd361d3c86
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- #--------------------------------------- # # Copyright(c) Aixi Wang 2014-2015 #--------------------------------------- # v1 -- initial version #--------------------------------------- #----------------------- # mail #----------------------- global mail_sender,mail_smtpserver,ma...
23.863636
62
0.493333
0
0
0
0
0
0
0
0
327
0.622857
def712afd23e0562bd689a7a3ab2431ec0fae53a
631
py
Python
Chatbot_Rest/urls.py
chenpocufa/Chatbot_CN
5e13c129c159143610f4dfc99478d401dd5777e6
[ "Apache-2.0" ]
1
2019-08-02T06:09:34.000Z
2019-08-02T06:09:34.000Z
Chatbot_Rest/urls.py
yuxuan2015/Chatbot_CN
1adf1c01d3eced5f0644102bdec9be22705b6f3f
[ "Apache-2.0" ]
null
null
null
Chatbot_Rest/urls.py
yuxuan2015/Chatbot_CN
1adf1c01d3eced5f0644102bdec9be22705b6f3f
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 _*- """ @author:charlesXu @file: urls.py @desc: 接口url @time: 2019/05/10 """ # =============== # # apis 下面的路由 # # =============== from django.urls import path from intent_rest_controller import intent_controller from entity_extraction_controller import entity_ext_controller from bot_controll...
21.033333
62
0.667195
0
0
0
0
0
0
0
0
282
0.409289
def7709b7d7d970c7608ad7be378d822d2e33518
14,334
py
Python
tests/frameworks/test_wsgi.py
tirkarthi/python-sensor
9872d146ac00baff2673fde5ba97fdbe596869a4
[ "MIT" ]
61
2017-09-27T02:50:17.000Z
2022-03-22T12:13:37.000Z
tests/frameworks/test_wsgi.py
tirkarthi/python-sensor
9872d146ac00baff2673fde5ba97fdbe596869a4
[ "MIT" ]
82
2017-07-11T13:47:33.000Z
2022-03-22T10:10:38.000Z
tests/frameworks/test_wsgi.py
takeaway/python-sensor
52d6eaa2d6a8e625201bad36ac2448201c4bd63d
[ "MIT" ]
27
2017-09-11T16:22:32.000Z
2022-03-11T17:21:49.000Z
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2020 from __future__ import absolute_import import time import urllib3 import unittest import tests.apps.flask_app from ..helpers import testenv from instana.singletons import agent, tracer class TestWSGI(unittest.TestCase): def setUp(self): "...
36.943299
102
0.647133
14,078
0.98214
0
0
0
0
0
0
2,584
0.180271
def7ae196a0259e7e64d4dfd6522b1ee72138646
16,178
py
Python
api/yolo_minimal/utils.py
simonsmh/www
1741545e636540b9eb250840347f091082fe301a
[ "MIT" ]
5
2015-12-19T11:18:54.000Z
2016-08-27T02:21:59.000Z
api/yolo_minimal/utils.py
simonsmh/www
1741545e636540b9eb250840347f091082fe301a
[ "MIT" ]
null
null
null
api/yolo_minimal/utils.py
simonsmh/www
1741545e636540b9eb250840347f091082fe301a
[ "MIT" ]
1
2020-10-30T13:25:33.000Z
2020-10-30T13:25:33.000Z
import math import os import random import cv2 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torchvision def xyxy2xywh(x): # Transform box coordinates from [x1, y1, x2, y2] (where xy1=top-left, xy2=bottom-right) to [x, y, w, h] y = torch.zeros_like(x) if isinsta...
34.49467
117
0.52627
0
0
0
0
0
0
0
0
4,764
0.294474
def8727d101b934efb5715bc01f3842eeeee3ee3
4,934
py
Python
ec2stack/__init__.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
13
2015-05-06T13:38:13.000Z
2021-11-09T21:39:01.000Z
ec2stack/__init__.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
3
2015-08-21T17:31:20.000Z
2021-07-07T08:39:11.000Z
ec2stack/__init__.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
17
2015-07-24T06:00:59.000Z
2021-11-09T21:38:52.000Z
#!/usr/bin/env python # encoding: utf-8 # # 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 Licens...
28.356322
88
0.676125
0
0
0
0
0
0
0
0
2,086
0.422781
def8fdb574ef8e8309feae4ee72edbfe9a0a3beb
926
py
Python
schematics_proto3/unset.py
mlga/schematics-proto3
588fe5bc212e203688166638a1c52dfeda931403
[ "MIT" ]
null
null
null
schematics_proto3/unset.py
mlga/schematics-proto3
588fe5bc212e203688166638a1c52dfeda931403
[ "MIT" ]
11
2020-04-09T13:33:54.000Z
2020-08-19T17:38:26.000Z
schematics_proto3/unset.py
mlga/schematics-proto3
588fe5bc212e203688166638a1c52dfeda931403
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ Test module docstring. """ import threading from typing import Type class UnsetType: """ Test docstring. """ __slots__ = [] _instance: 'UnsetType' = None _lock: threading.Lock = threading.Lock() def __str__(self): return 'Unset' def __repr__(self)...
17.807692
56
0.580994
774
0.835853
0
0
0
0
0
0
149
0.160907
def92f706f99835e10af1d0e6310107f2432dbe5
193
py
Python
aws_lambda_powertools/event_handler/__init__.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
1,208
2020-05-20T19:06:29.000Z
2022-03-30T14:17:47.000Z
aws_lambda_powertools/event_handler/__init__.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
859
2020-05-22T09:59:54.000Z
2022-03-31T08:31:30.000Z
aws_lambda_powertools/event_handler/__init__.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
163
2020-05-18T21:08:25.000Z
2022-03-28T12:03:37.000Z
""" Event handler decorators for common Lambda events """ from .api_gateway import ApiGatewayResolver from .appsync import AppSyncResolver __all__ = ["AppSyncResolver", "ApiGatewayResolver"]
21.444444
51
0.797927
0
0
0
0
0
0
0
0
94
0.487047
def98cf0f4126cdcda2bee2e5c8d96a01bc4937b
1,351
py
Python
solutions/5/guillaume/LookAhead.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
9
2020-08-14T23:11:16.000Z
2021-08-09T16:23:43.000Z
solutions/5/guillaume/LookAhead.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
1
2020-11-19T09:29:14.000Z
2020-11-19T09:29:14.000Z
solutions/5/guillaume/LookAhead.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
2
2020-09-09T02:53:57.000Z
2020-12-06T08:20:52.000Z
import itertools as it from torch.optim import Optimizer class LookAhead(Optimizer): def __init__(self, base_optimizer,alpha=0.5, k=6): if not 0.0 <= alpha <= 1.0: raise ValueError(f'Invalid slow update rate: {alpha}') if not 1 <= k: raise ValueError(f'Invalid lookahead steps...
37.527778
75
0.559585
1,293
0.957069
0
0
0
0
0
0
125
0.092524
defcc91baa71d0c94f476ef6cc3d35765b3516a0
2,263
py
Python
addexp.py
Shajm44n/Expense
db3355d4d81d5dd57ceea81b1170724b8893e523
[ "MIT" ]
null
null
null
addexp.py
Shajm44n/Expense
db3355d4d81d5dd57ceea81b1170724b8893e523
[ "MIT" ]
null
null
null
addexp.py
Shajm44n/Expense
db3355d4d81d5dd57ceea81b1170724b8893e523
[ "MIT" ]
null
null
null
from tkinter import * # import expdate import mysql.connector db_connect=mysql.connector.connect(host="localhost",user="root",password="maan",database="expense") db_cursor=db_connect.cursor() def add_expense(day,month,year): print("add exp") window=Tk() window.title("Expense list") l_message=Label(w...
32.797101
236
0.643836
0
0
0
0
0
0
0
0
412
0.182059
defd13835bf657af58b23494bf16c9abcbbae2e8
1,217
py
Python
BlackJack/UserInterface/BlackJackUI.py
Kasyx709/BlackJack
a99cd9327e466ed51dadbf4b5407c2370f998b82
[ "MIT" ]
null
null
null
BlackJack/UserInterface/BlackJackUI.py
Kasyx709/BlackJack
a99cd9327e466ed51dadbf4b5407c2370f998b82
[ "MIT" ]
null
null
null
BlackJack/UserInterface/BlackJackUI.py
Kasyx709/BlackJack
a99cd9327e466ed51dadbf4b5407c2370f998b82
[ "MIT" ]
null
null
null
from __future__ import division from BlackJack.UserInterface import tk from BlackJack.UserInterface import tkFont from BlackJack.UserInterface import BlackJackWindows from BlackJack.UserInterface import SelectGameType from BlackJack.UserInterface import Helpers class BlackJackUI(object): def __init__(self): ...
40.566667
92
0.696795
951
0.78143
0
0
0
0
0
0
151
0.124076
defd4d718f41568b76388eb0230161d0d48bb24e
263
py
Python
winecasino/core/entities/__init__.py
harlov/winecasino
ae29b2c8f75bfd05ad141fd3b596f1db7c103690
[ "MIT" ]
null
null
null
winecasino/core/entities/__init__.py
harlov/winecasino
ae29b2c8f75bfd05ad141fd3b596f1db7c103690
[ "MIT" ]
null
null
null
winecasino/core/entities/__init__.py
harlov/winecasino
ae29b2c8f75bfd05ad141fd3b596f1db7c103690
[ "MIT" ]
null
null
null
from .country import Country from .game import Game from .game import Bid from .user import User from .grape import Grape from .wine import Wine from .base import new_id __all__ = [ "new_id", "Country", "Game", "Grape", "User", "Wine", ]
15.470588
28
0.653992
0
0
0
0
0
0
0
0
42
0.159696
defdbd583ad5f6b3a08353cba72476c7dbaff00c
295
py
Python
download-deveres/para-execicios-curso-em-video/exe019.py
Hugo-Oliveira-RDO11/meus-deveres
b5e41015e2cb95946262678e82197e5f47d56271
[ "MIT" ]
null
null
null
download-deveres/para-execicios-curso-em-video/exe019.py
Hugo-Oliveira-RDO11/meus-deveres
b5e41015e2cb95946262678e82197e5f47d56271
[ "MIT" ]
null
null
null
download-deveres/para-execicios-curso-em-video/exe019.py
Hugo-Oliveira-RDO11/meus-deveres
b5e41015e2cb95946262678e82197e5f47d56271
[ "MIT" ]
null
null
null
import random p = str(input('digite o nome do primeiro aluno :')) s = str(input('o nome do segundo aluno :')) t = str(input('o nome do terceiro aluno :')) q = str(input('o nome do quato aluno :')) lista = [p, s, t, q] aluno = random.choice(lista) print('o aluno sorteado foi {}'.format(aluno))
29.5
51
0.657627
0
0
0
0
0
0
0
0
140
0.474576
defde4b16a7fe68a1c0b7ba26a303a5bb6a695bc
12,389
py
Python
cma-evolve.py
simondlevy/CMA-Gym
ce0056873d42eae2b6769fe22fcf872459694f30
[ "Apache-2.0" ]
null
null
null
cma-evolve.py
simondlevy/CMA-Gym
ce0056873d42eae2b6769fe22fcf872459694f30
[ "Apache-2.0" ]
null
null
null
cma-evolve.py
simondlevy/CMA-Gym
ce0056873d42eae2b6769fe22fcf872459694f30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import gym import torch import numpy as np import multiprocessing as mp import os import pickle import sys import time import logging import cma import argparse from torchmodel import StandardFCNet def _makedir(name): if not os.path.exists(name): os.makedirs(name) def get_logger():...
33.574526
123
0.600291
6,318
0.509969
0
0
0
0
0
0
909
0.073372
defec38e9abb5a9b6de6de6949355eb8f83f8c74
342
py
Python
src/arcclimate/temperature.py
youworks/arcclimate
62a9eece267e42ccddfc5145e8ee50776470f7bf
[ "MIT" ]
null
null
null
src/arcclimate/temperature.py
youworks/arcclimate
62a9eece267e42ccddfc5145e8ee50776470f7bf
[ "MIT" ]
null
null
null
src/arcclimate/temperature.py
youworks/arcclimate
62a9eece267e42ccddfc5145e8ee50776470f7bf
[ "MIT" ]
1
2022-03-08T01:04:47.000Z
2022-03-08T01:04:47.000Z
""" 気温の関するモジュール """ import numpy as np def get_corrected_TMP(TMP: np.ndarray, ele_gap: float) -> np.ndarray: """気温の標高補正 Args: TMP (np.ndarray): 気温 [℃] ele_gap (np.ndarray): 標高差 [m] Returns: np.ndarray: 標高補正後の気温 [C] Notes: 気温減率の平均値を0.0065℃/mとする。 """ return TM...
15.545455
69
0.564327
0
0
0
0
0
0
0
0
301
0.693548
defeff29d76d14fa0aceaad7cd54a55164f7136c
2,386
py
Python
rastervision/data/label_store/default.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
4
2019-03-11T12:38:15.000Z
2021-04-06T14:57:52.000Z
rastervision/data/label_store/default.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/data/label_store/default.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2019-10-29T09:22:09.000Z
2019-10-29T09:22:09.000Z
from abc import (ABC, abstractmethod) import os import rastervision as rv class LabelStoreDefaultProvider(ABC): @staticmethod @abstractmethod def is_default_for(task_type): """Returns True if this label store is the default for this tasks_type""" pass @staticmethod @abstractmetho...
27.425287
86
0.65088
2,299
0.963537
0
0
1,950
0.817267
0
0
264
0.110645
720247461650041909a7ce79fd85da841234a38b
6,425
py
Python
app.py
aniketjana03/TimeSheet
519b3bdad79dedb7210747906bf4b8e24e64691a
[ "Apache-2.0" ]
null
null
null
app.py
aniketjana03/TimeSheet
519b3bdad79dedb7210747906bf4b8e24e64691a
[ "Apache-2.0" ]
null
null
null
app.py
aniketjana03/TimeSheet
519b3bdad79dedb7210747906bf4b8e24e64691a
[ "Apache-2.0" ]
null
null
null
import sys import os from flask import Flask, flash, redirect, render_template, request, url_for, session from flaskext.mysql import MySQL from flask_login import LoginManager from flask_bcrypt import Bcrypt from flask_session import Session from database import Database from makedb import MakeDB from helpers import ge...
32.125
144
0.598599
0
0
0
0
5,525
0.859922
0
0
2,088
0.324981
7202ced44b536e7785d48d42a3fe09355e98fc12
448
py
Python
guestbook/models.py
Bespolezniy/geek-world
8fbaf451b4e87e48e73eb289035ec0ea68ea0e68
[ "MIT" ]
null
null
null
guestbook/models.py
Bespolezniy/geek-world
8fbaf451b4e87e48e73eb289035ec0ea68ea0e68
[ "MIT" ]
null
null
null
guestbook/models.py
Bespolezniy/geek-world
8fbaf451b4e87e48e73eb289035ec0ea68ea0e68
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class GuestBook(models.Model): user = models.CharField(max_length=15, verbose_name="User") date = models.DateTimeField(db_index=True, auto_now_add=True, verbose_name="Published") content = models.TextField(verbose_name="Content") class Me...
37.333333
92
0.694196
386
0.861607
0
0
0
0
0
0
98
0.21875
72043f3633eddba64964dbbdb6f17d84cf1d6267
34,859
py
Python
PA1/PA1_Q2/P21CS007_VGG16.py
aryachiranjeev/Dependable-AI
750570572c1baaa2590a89c0982e2f71b15b48b9
[ "MIT" ]
null
null
null
PA1/PA1_Q2/P21CS007_VGG16.py
aryachiranjeev/Dependable-AI
750570572c1baaa2590a89c0982e2f71b15b48b9
[ "MIT" ]
null
null
null
PA1/PA1_Q2/P21CS007_VGG16.py
aryachiranjeev/Dependable-AI
750570572c1baaa2590a89c0982e2f71b15b48b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: import numpy as np import pandas as pd import random import tensorflow as tf import matplotlib.pyplot as plt from tensorflow.keras.layers import Dense,Flatten,GlobalAveragePooling2D,Input,Lambda from tensorflow.keras.models import Model,load_model import tensorflow.kera...
33.16746
235
0.685304
1,889
0.05419
0
0
0
0
0
0
3,936
0.112912
72045094280bf8b19ef8956f47fe38ea87d738b3
1,027
py
Python
notebooks/general.py
transientlunatic/grasshopper
1d3822427970d200341ff9d2823949fb4b27e001
[ "0BSD" ]
3
2020-09-26T01:27:13.000Z
2020-09-30T05:47:42.000Z
notebooks/general.py
transientlunatic/gravpy
1d3822427970d200341ff9d2823949fb4b27e001
[ "0BSD" ]
null
null
null
notebooks/general.py
transientlunatic/gravpy
1d3822427970d200341ff9d2823949fb4b27e001
[ "0BSD" ]
null
null
null
import numpy as np import astropy.units as u def snr(signal, detector): """ Calculate the SNR of a signal in a given detector, assuming that it has been detected with an optimal filter. See e.g. arxiv.org/abs/1408.0740 Parameters ---------- signal : Source A Source object which ...
30.205882
79
0.635833
0
0
0
0
0
0
0
0
558
0.54333
72082ffdc0eb8ab81095d7d094328792a40cbcea
6,898
py
Python
dlfairness/original_code/FairALM/Experiments-CelebA/results/quantitative_results/plot_celeba.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
dlfairness/original_code/FairALM/Experiments-CelebA/results/quantitative_results/plot_celeba.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
dlfairness/original_code/FairALM/Experiments-CelebA/results/quantitative_results/plot_celeba.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
''' Script to plot the accuracy and the fairness measures for different algorithms from the log files ''' import matplotlib matplotlib.use('agg') from matplotlib import pyplot as plt import os print(os.getcwd()) import numpy as np plt.style.use('ggplot') def create_acc_lists(filepath): train_acc = [] train_d...
36.691489
81
0.621919
0
0
0
0
0
0
0
0
1,634
0.23688
72085eb6f35c638ad1743b5ae7bd6a8de18fc6f3
682
py
Python
conqueror/scraper/base_yandex.py
piotrmaslanka/yandex-conqueror
cd0b50a43e25551f91150e0bee4f9cd307e4adce
[ "MIT" ]
12
2022-03-01T22:45:05.000Z
2022-03-16T05:46:24.000Z
conqueror/scraper/base_yandex.py
piotrmaslanka/yandex-conqueror
cd0b50a43e25551f91150e0bee4f9cd307e4adce
[ "MIT" ]
1
2022-03-02T10:18:05.000Z
2022-03-02T11:03:52.000Z
conqueror/scraper/base_yandex.py
piotrmaslanka/yandex-conqueror
cd0b50a43e25551f91150e0bee4f9cd307e4adce
[ "MIT" ]
1
2022-03-02T10:18:35.000Z
2022-03-02T10:18:35.000Z
import requests from satella.coding.decorators import retry @retry(3, exc_classes=requests.RequestException) def get_yandex_request(url, arguments) -> dict: """ Return a JSON object querying Yandex at provided parameters. Handling CSRF will be done automatically. :param url: URL to ask :param ar...
28.416667
64
0.692082
0
0
0
0
619
0.907625
0
0
279
0.409091
72097fdf43f5937088d329748fec0dc61447255f
6,142
py
Python
engine/azbatchengine.py
asedighi/azure_realtime_batch
c2cf4c8edc2bbded8377842fcad6370fd35af44e
[ "MIT" ]
3
2020-05-08T16:20:07.000Z
2021-10-06T11:16:10.000Z
engine/azbatchengine.py
asedighi/azure_realtime_batch
c2cf4c8edc2bbded8377842fcad6370fd35af44e
[ "MIT" ]
null
null
null
engine/azbatchengine.py
asedighi/azure_realtime_batch
c2cf4c8edc2bbded8377842fcad6370fd35af44e
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation # # All rights reserved. # # MIT License # # 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...
29.38756
137
0.667209
3,986
0.648974
0
0
0
0
0
0
2,214
0.360469
720a41d918f83d5bbf26dfd204b04b9dc1b4ac43
1,090
py
Python
j.py
chirag127/Language-Translator-Using-Tkinter-in-Python
c790a0672c770cf703559d99c74ad581643f4d2f
[ "MIT" ]
null
null
null
j.py
chirag127/Language-Translator-Using-Tkinter-in-Python
c790a0672c770cf703559d99c74ad581643f4d2f
[ "MIT" ]
null
null
null
j.py
chirag127/Language-Translator-Using-Tkinter-in-Python
c790a0672c770cf703559d99c74ad581643f4d2f
[ "MIT" ]
null
null
null
import tkinter as tk import sys class PrintLogger(): # create file like object def __init__(self, textbox): # pass reference to text widget self.textbox = textbox # keep ref def write(self, text): self.textbox.insert(tk.END, text) # write text to textbox # could also scroll to end ...
24.772727
82
0.542202
395
0.362385
0
0
0
0
0
0
411
0.377064
720b01f5be1444386ad583c605e2465546f819c4
2,695
py
Python
byteweiser.py
urbanware-org/byteweiser
fc90d17b51ead44af53401dc9c8ca5f0efc5e72e
[ "MIT" ]
3
2017-11-27T00:35:04.000Z
2017-12-13T22:41:31.000Z
byteweiser.py
urbanware-org/byteweiser
fc90d17b51ead44af53401dc9c8ca5f0efc5e72e
[ "MIT" ]
1
2017-03-08T19:04:49.000Z
2017-03-08T19:04:49.000Z
byteweiser.py
urbanware-org/byteweiser
fc90d17b51ead44af53401dc9c8ca5f0efc5e72e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================ # ByteWeiser - Byte comparison and replacement tool # Main script # Copyright (C) 2021 by Ralf Kilian # Distributed under the MIT License (https://opensource.org/licenses/MIT) # # GitHub: https...
34.551282
78
0.562152
0
0
0
0
0
0
0
0
1,234
0.457885
720b83b3d481df1e875ae4b17eade77f3a7f0679
9,798
py
Python
scripts/st_dashboard.py
rsmith49/simple-budget-pld
1bee5a26f53aa4a5b0aab49ee4c158b5ecb7c743
[ "Apache-2.0" ]
1
2022-01-01T14:44:40.000Z
2022-01-01T14:44:40.000Z
scripts/st_dashboard.py
rsmith49/simple-budget-pld
1bee5a26f53aa4a5b0aab49ee4c158b5ecb7c743
[ "Apache-2.0" ]
null
null
null
scripts/st_dashboard.py
rsmith49/simple-budget-pld
1bee5a26f53aa4a5b0aab49ee4c158b5ecb7c743
[ "Apache-2.0" ]
null
null
null
import altair as alt import os import pandas as pd import streamlit as st import sys from datetime import datetime from dateutil.relativedelta import relativedelta from dotenv import load_dotenv from plaid.api_client import ApiClient from plaid.exceptions import ApiException from pathlib import Path from traceback imp...
33.101351
119
0.610431
0
0
0
0
1,400
0.142813
0
0
3,021
0.308171
720ee96617fe84100cbf9c9517c56d368835bd2c
16,818
py
Python
scripts/devvnet_manager.py
spmckenney/Devv-Core
eb30ae3a092e3fe0f9f756f5f31bdce4f6215b98
[ "MIT" ]
null
null
null
scripts/devvnet_manager.py
spmckenney/Devv-Core
eb30ae3a092e3fe0f9f756f5f31bdce4f6215b98
[ "MIT" ]
null
null
null
scripts/devvnet_manager.py
spmckenney/Devv-Core
eb30ae3a092e3fe0f9f756f5f31bdce4f6215b98
[ "MIT" ]
null
null
null
import yaml import argparse import sys import os import subprocess import time def get_devvnet(filename): with open(filename, "r") as f: buf = ''.join(f.readlines()) conf = yaml.load(buf, Loader=yaml.Loader) # Set bind_port values port = conf['devvnet']['base_port'] for a in conf['devv...
33.171598
276
0.576347
10,288
0.611726
0
0
0
0
0
0
3,179
0.189024
72103568b2899de2bb48ee1f49834b293ab3bb81
5,896
py
Python
run_qasm.py
t-imamichi/qiskit-utility
2e71d0457bba0e6eb91daa9dbb32f52d87fe9f0b
[ "Apache-2.0" ]
6
2019-02-27T11:53:18.000Z
2022-03-02T21:28:05.000Z
run_qasm.py
t-imamichi/qiskit-utility
2e71d0457bba0e6eb91daa9dbb32f52d87fe9f0b
[ "Apache-2.0" ]
null
null
null
run_qasm.py
t-imamichi/qiskit-utility
2e71d0457bba0e6eb91daa9dbb32f52d87fe9f0b
[ "Apache-2.0" ]
2
2019-05-03T23:52:03.000Z
2020-12-22T12:12:38.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. ''' This tool submits a QASM file to any backend and show the result. It requires 'Qconfig.py' to set a token o...
39.046358
116
0.608887
2,503
0.424525
0
0
131
0.022218
0
0
2,064
0.350068
72118299f37a0a55a9f0a207024fcdd8ae01fcd7
445
py
Python
alembic/versions/175f5441bd46_adding_usrname_column.py
thiere18/fastapi-boilerplate
6760e0e49caa915563d44897262d493b012207c0
[ "MIT" ]
5
2021-12-10T17:35:31.000Z
2021-12-30T18:36:23.000Z
alembic/versions/175f5441bd46_adding_usrname_column.py
thiere18/fastapi-boilerplate
6760e0e49caa915563d44897262d493b012207c0
[ "MIT" ]
1
2021-11-21T13:59:03.000Z
2021-11-21T13:59:03.000Z
alembic/versions/175f5441bd46_adding_usrname_column.py
thiere18/fastapi-boilerplate
6760e0e49caa915563d44897262d493b012207c0
[ "MIT" ]
1
2021-12-07T14:08:12.000Z
2021-12-07T14:08:12.000Z
"""adding usrname column Revision ID: 175f5441bd46 Revises: 186abcf43cae Create Date: 2021-11-20 22:54:04.157131 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '175f5441bd46' down_revision = '186abcf43cae' branch_labels = None depends_on = None def upgrade()...
16.481481
79
0.72809
0
0
0
0
0
0
0
0
203
0.45618
7211ad9fb739bb9a8cf35bb0752773293df5ab6b
2,356
py
Python
api/teams/models.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
3
2018-02-15T20:04:23.000Z
2018-09-29T18:13:55.000Z
api/teams/models.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
5
2018-01-31T02:01:15.000Z
2018-05-11T04:07:32.000Z
api/teams/models.py
prattl/wepickheroes
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from nucleus.models import ( AbstractBaseModel, EmailRecord, TeamMember, ) User = get_user_model() class Team(AbstractBaseModel): name = models.CharField(max_length=255) logo_url = models...
29.45
94
0.639219
1,983
0.841681
0
0
0
0
0
0
286
0.121392
7211e7dcde6526670f3ae011a8fd15606f93b81e
1,826
py
Python
tables_io/lazy_modules.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
1
2021-08-13T15:41:58.000Z
2021-08-13T15:41:58.000Z
tables_io/lazy_modules.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
18
2021-08-12T00:09:36.000Z
2022-02-24T21:11:18.000Z
tables_io/lazy_modules.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
null
null
null
""" Lazy loading modules """ import sys import importlib.util class DeferredModuleError: """ Class to throw an error if you try to use a modules that wasn't loaded """ def __init__(self, moduleName): self._moduleName = moduleName @property def moduleName(self): """ Return the name o...
26.852941
82
0.645126
506
0.277108
0
0
135
0.073932
0
0
647
0.354326
721392272e51a8013f6d83d05f9c457dc8ce2f53
4,811
py
Python
print_results.py
MicImbriani/Keras-PRBX
ab9dd8196e6f184336f5b30715635670d3586136
[ "CC0-1.0" ]
1
2021-09-18T12:42:28.000Z
2021-09-18T12:42:28.000Z
print_results.py
MicImbriani/SkinLesion-Segm-Classif-UNet-FocusNet-ResNet50
ab9dd8196e6f184336f5b30715635670d3586136
[ "CC0-1.0" ]
null
null
null
print_results.py
MicImbriani/SkinLesion-Segm-Classif-UNet-FocusNet-ResNet50
ab9dd8196e6f184336f5b30715635670d3586136
[ "CC0-1.0" ]
null
null
null
import numpy as np from keras.optimizers import Adam, SGD from tensorflow.keras.metrics import AUC import metrics from networks.unet_nn import unet from networks.unet_res_se_nn import unet_res_se from networks.focus import get_focusnetAlpha from networks.resnet import get_res from data_processing.generate_new_dataset...
29.335366
129
0.675327
0
0
0
0
0
0
0
0
3,616
0.751611
72140b20f916fb997edbec8a00bb1402df3614ca
9,466
py
Python
game.py
distortedsignal/bohnanza
dfbcfafbdd07cb924cbbc2adc36db7e51673e546
[ "Apache-2.0" ]
null
null
null
game.py
distortedsignal/bohnanza
dfbcfafbdd07cb924cbbc2adc36db7e51673e546
[ "Apache-2.0" ]
null
null
null
game.py
distortedsignal/bohnanza
dfbcfafbdd07cb924cbbc2adc36db7e51673e546
[ "Apache-2.0" ]
null
null
null
""" An implementation of Bohnanza @author: David Kelley, 2018 """ import random from collections import defaultdict class Card: """Card Object Name and point thresholds are the only properties. The point thresholds are organized the way they are on the card - to get 1 point, you need th number of...
34.421818
88
0.555145
9,299
0.982358
0
0
0
0
0
0
2,132
0.225227
72155749ca290c85d0fa365110369fcce2862271
1,872
py
Python
pytype/tests/test_calls.py
JelleZijlstra/pytype
962a0ebc05bd24dea172381b2bedcc547ba53dd5
[ "Apache-2.0" ]
11
2017-02-12T12:19:50.000Z
2022-03-06T08:56:48.000Z
pytype/tests/test_calls.py
JelleZijlstra/pytype
962a0ebc05bd24dea172381b2bedcc547ba53dd5
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_calls.py
JelleZijlstra/pytype
962a0ebc05bd24dea172381b2bedcc547ba53dd5
[ "Apache-2.0" ]
2
2017-06-27T14:41:57.000Z
2021-12-05T11:27:33.000Z
"""Tests for calling other functions, and the corresponding checks.""" from pytype import utils from pytype.tests import test_inference class CallsTest(test_inference.InferenceTest): """Tests for checking function calls.""" def testOptional(self): with utils.Tempdir() as d: d.create_file("mod.pyi", "...
26.742857
73
0.553953
1,678
0.896368
0
0
0
0
0
0
818
0.436966
7216c0aa91d2cb7e990847e2823233ead4e36ab3
724
py
Python
test/test_learning_00.py
autodrive/NAIST_DeepLearning
ac2c0512c43f71ea7df68567c5e24e689ac18aea
[ "Apache-2.0" ]
1
2018-09-26T01:52:35.000Z
2018-09-26T01:52:35.000Z
test/test_learning_00.py
autodrive/NAIST_DeepLearning
ac2c0512c43f71ea7df68567c5e24e689ac18aea
[ "Apache-2.0" ]
5
2015-12-31T10:56:43.000Z
2018-11-16T08:57:12.000Z
test/test_learning_00.py
autodrive/NAIST_DeepLearning
ac2c0512c43f71ea7df68567c5e24e689ac18aea
[ "Apache-2.0" ]
1
2018-09-26T01:52:37.000Z
2018-09-26T01:52:37.000Z
import unittest import lecture1_code00 as dl from sklearn.datasets.samples_generator import make_blobs class TestDeepLearning(unittest.TestCase): def setUp(self): self.X, self.Y = make_blobs(n_samples=50, centers=2, random_state=0, cluster_std=0.60) def tearDown(self): del self.X del ...
27.846154
97
0.585635
618
0.853591
0
0
0
0
0
0
0
0
7217f6133fa71477eb286daa69250fadb04142e7
2,389
py
Python
edumediaitem/views_manage.py
shagun30/djambala-2
06f14e3dd237d7ebf535c62172cfe238c3934f4d
[ "BSD-3-Clause" ]
null
null
null
edumediaitem/views_manage.py
shagun30/djambala-2
06f14e3dd237d7ebf535c62172cfe238c3934f4d
[ "BSD-3-Clause" ]
null
null
null
edumediaitem/views_manage.py
shagun30/djambala-2
06f14e3dd237d7ebf535c62172cfe238c3934f4d
[ "BSD-3-Clause" ]
null
null
null
#-*-coding: utf-8 -*- """ /dms/edumediaitem/views_manage.py .. enthaelt den View fuer die Management-Ansicht des Medienpaketes Django content Management System Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst werden. ...
38.532258
95
0.577648
0
0
0
0
1,654
0.691472
0
0
1,001
0.418478
721813c43ddcb76146e7ed608cacf427665451b5
414
py
Python
crop_yield_prediction/models/deep_gaussian_process/__init__.py
facebookresearch/Context-Aware-Representation-Crop-Yield-Prediction
9c29459e9521303f40d9d6aaa938da0c23ab4ad8
[ "MIT" ]
12
2020-09-17T21:55:18.000Z
2022-01-14T21:05:23.000Z
crop_yield_prediction/models/deep_gaussian_process/__init__.py
hulaba/Context-Aware-Representation-Crop-Yield-Prediction
9c29459e9521303f40d9d6aaa938da0c23ab4ad8
[ "MIT" ]
null
null
null
crop_yield_prediction/models/deep_gaussian_process/__init__.py
hulaba/Context-Aware-Representation-Crop-Yield-Prediction
9c29459e9521303f40d9d6aaa938da0c23ab4ad8
[ "MIT" ]
5
2020-10-10T10:18:14.000Z
2021-12-21T07:36:27.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .feature_engineering import get_features_for_deep_gaussian from .convnet import ConvModel from .rnn import RNNModel...
29.571429
65
0.748792
0
0
0
0
0
0
0
0
247
0.596618
7218bf5a5c0b747c4d1438e666c01d7117d13c58
3,546
py
Python
projector_server/projects/views.py
changyang-liu/Projector
4924400f54e0ce823fd488f9cfd0f7e52d2df55f
[ "MIT" ]
null
null
null
projector_server/projects/views.py
changyang-liu/Projector
4924400f54e0ce823fd488f9cfd0f7e52d2df55f
[ "MIT" ]
2
2021-06-10T19:12:07.000Z
2021-09-22T19:00:50.000Z
projector_server/projects/views.py
CS97-Projector/Projector
4924400f54e0ce823fd488f9cfd0f7e52d2df55f
[ "MIT" ]
null
null
null
from django.http import HttpResponse, JsonResponse, Http404 from django.core.exceptions import PermissionDenied from rest_framework.parsers import JSONParser, FormParser, MultiPartParser from rest_framework.permissions import IsAuthenticatedOrReadOnly from rest_framework import generics from rest_framework.response im...
38.129032
86
0.683305
3,019
0.851382
0
0
0
0
0
0
636
0.179357
721a5ce052e7d21ea063652b0a161c21042f7f06
1,089
py
Python
tests/test_muduapiclient.py
hanqingliu/mudu-api-python-client
92541df27a518dad5312b39749dfbb8bd471a6b8
[ "Apache-2.0" ]
null
null
null
tests/test_muduapiclient.py
hanqingliu/mudu-api-python-client
92541df27a518dad5312b39749dfbb8bd471a6b8
[ "Apache-2.0" ]
null
null
null
tests/test_muduapiclient.py
hanqingliu/mudu-api-python-client
92541df27a518dad5312b39749dfbb8bd471a6b8
[ "Apache-2.0" ]
null
null
null
import ddt import mock from unittest import TestCase from muduapiclient.client import MuduApiClient, gen_signed_params import time @ddt.ddt class MuduApiClientTests(TestCase): @ddt.unpack @ddt.data( ('ACCESS_KEY', 'SECRET_KEY', {'page':1, 'live_status':2}), ) def test_gen_signed_params(self, a...
33
91
0.662994
947
0.869605
0
0
956
0.87787
0
0
253
0.232323
721b25bd54ec37339248810e92f0fd66777d24b1
586
py
Python
Projectreview/Projectreview/urls.py
bestgunman/Gitwaxingproduct
44c5fdd57aaa87765929e12a828d1cd17cfbbc0d
[ "MIT" ]
1
2017-01-30T07:02:51.000Z
2017-01-30T07:02:51.000Z
Projectreview/Projectreview/urls.py
bestgunman/Gitwaxingproduct
44c5fdd57aaa87765929e12a828d1cd17cfbbc0d
[ "MIT" ]
null
null
null
Projectreview/Projectreview/urls.py
bestgunman/Gitwaxingproduct
44c5fdd57aaa87765929e12a828d1cd17cfbbc0d
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from productapp.views import product_list from reviewapp.views import index urlpatterns = [ url(r'^$', index, name='index'), url(r'^admin/', admin.site.urls), ...
30.842105
61
0.711604
0
0
0
0
0
0
0
0
107
0.182594
721e9bba1e7ea66054b20c27b7571b65855aeaa1
5,970
py
Python
ttt.py
YukkuriC/PyTicTacToe
c38b330faeb956d82b401e5863c4982f725e5dab
[ "MIT" ]
null
null
null
ttt.py
YukkuriC/PyTicTacToe
c38b330faeb956d82b401e5863c4982f725e5dab
[ "MIT" ]
null
null
null
ttt.py
YukkuriC/PyTicTacToe
c38b330faeb956d82b401e5863c4982f725e5dab
[ "MIT" ]
null
null
null
__doc__ = ''' 井字棋基础设施 包含棋盘类与单局游戏运行内核 ''' from threading import Thread from time import process_time if 'enums': OK = 0 # 游戏继续 ENDGAME = 1 # 形成三连 DRAW = 2 # 棋盘已满平局 INVALID = -1 # 非法返回值(类型错误/出界) CONFILCT = -2 # 冲突落子(下于已有棋子位置) ERROR = -3 # 代码报错 TIMEOUT = -4 # 代码超时 class Board: ""...
25.512821
78
0.469514
6,440
0.915553
0
0
931
0.132357
0
0
2,595
0.368922
721ec82c86e8517afd6fcd583254496b9ad3500f
400
py
Python
cursoemvideo/ex008.py
rafaelsantosmg/cev_python3
2fa2561b46409bebbd6a2020c60aa8f946fe6244
[ "MIT" ]
1
2021-03-22T03:08:41.000Z
2021-03-22T03:08:41.000Z
cursoemvideo/ex008.py
rafaelsantosmg/cev_python3
2fa2561b46409bebbd6a2020c60aa8f946fe6244
[ "MIT" ]
null
null
null
cursoemvideo/ex008.py
rafaelsantosmg/cev_python3
2fa2561b46409bebbd6a2020c60aa8f946fe6244
[ "MIT" ]
null
null
null
"""Escreva um programa que leia o valor em metros e o exiba convertido em centímetros e milímetros""" from utilidadescev.dado import leia_real n = leia_real('Digite a metragem: ') km = n / 1000 hec = n / 100 dam = n / 10 dec = n * 10 cent = n * 100 mil = n * 1000 print(f'{km:.3f}km') print(f'{hec:.2f}hm') print(f'{da...
22.222222
101
0.6525
0
0
0
0
0
0
0
0
210
0.522388
72207e110b7ba0434449b56ad831fee21813b6dc
1,015
py
Python
Minor Project/Weather GUI/pyowm_helper.py
ComputerScientist-01/Technocolabs-Internship-Project
3675cc6b9a40a885a29b105ec9b29945a1e4620c
[ "MIT" ]
4
2020-07-08T11:32:29.000Z
2021-08-05T02:54:02.000Z
Minor Project/Weather GUI/pyowm_helper.py
ComputerScientist-01/Technocolabs-Internship-Project
3675cc6b9a40a885a29b105ec9b29945a1e4620c
[ "MIT" ]
null
null
null
Minor Project/Weather GUI/pyowm_helper.py
ComputerScientist-01/Technocolabs-Internship-Project
3675cc6b9a40a885a29b105ec9b29945a1e4620c
[ "MIT" ]
null
null
null
import os import pyowm from datetime import datetime from timezone_conversion import gmt_to_eastern #API_KEY = os.environ['API_KEY'] owm=pyowm.OWM('0833f103dc7c2924da06db624f74565c') mgr=owm.weather_manager() def get_temperature(): days = [] dates = [] temp_min = [] temp_max = [] forecaster = mgr...
28.194444
63
0.639409
0
0
0
0
0
0
0
0
112
0.110345
7221d6876591c7703ef947738f8354cdcf1efa5d
82,647
py
Python
MCDR.py
Qltan/MCDR
ad8abfafcbe19dd50f31fc4122faf3eb633be9d5
[ "MIT" ]
null
null
null
MCDR.py
Qltan/MCDR
ad8abfafcbe19dd50f31fc4122faf3eb633be9d5
[ "MIT" ]
null
null
null
MCDR.py
Qltan/MCDR
ad8abfafcbe19dd50f31fc4122faf3eb633be9d5
[ "MIT" ]
null
null
null
import copy import datetime import json import math import multiprocessing import numpy as np import os import pandas as pd import pydotplus import random import re import time from math import * from sklearn import metrics _CLUSTER_DATA = './bike_sharing_data/mydata' RATEDATA = './bike_sharing_data/my...
42.77795
121
0.527799
21,888
0.264837
0
0
0
0
0
0
7,757
0.093857
7222707469c1717bc369a16b35dc8703f4ba96c7
4,692
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Energy/Storages/Batteries/Constant_Mass/Lithium_Ion_LiFePO4_18650.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Energy/Storages/Batteries/Constant_Mass/Lithium_Ion_LiFePO4_18650.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Energy/Storages/Batteries/Constant_Mass/Lithium_Ion_LiFePO4_18650.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Components-Energy-Storages-Batteries-Constant_Mass # Lithium_Ion_LiFePO4_18650.py # # Created: Feb 2020, M. Clarke # Modified: Sep 2021, R. Erhard # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- ...
53.931034
136
0.449915
4,187
0.89142
0
0
0
0
0
0
1,953
0.415797
7222d418de71e1a6408735de5ac964a29e9e3865
83,182
py
Python
motor/__init__.py
globocom/motor
a1c91ab7b223bb1ada742605e2e8d11a39fe5f1e
[ "Apache-2.0" ]
null
null
null
motor/__init__.py
globocom/motor
a1c91ab7b223bb1ada742605e2e8d11a39fe5f1e
[ "Apache-2.0" ]
null
null
null
motor/__init__.py
globocom/motor
a1c91ab7b223bb1ada742605e2e8d11a39fe5f1e
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2012 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.936945
118
0.608112
73,020
0.877834
4,509
0.054206
13,003
0.15632
0
0
36,141
0.434481
72230a4712ff2722d5fd895c22c3d235aabfdf44
3,544
py
Python
del_dupli_in_fasta.py
ba1/BioParsing
8a0257d4765a7bc86fef7688762abbeaaf3cef07
[ "MIT" ]
1
2017-06-19T15:15:26.000Z
2017-06-19T15:15:26.000Z
del_dupli_in_fasta.py
ba1/BioParsing
8a0257d4765a7bc86fef7688762abbeaaf3cef07
[ "MIT" ]
null
null
null
del_dupli_in_fasta.py
ba1/BioParsing
8a0257d4765a7bc86fef7688762abbeaaf3cef07
[ "MIT" ]
null
null
null
''' Created on Oct 20, 2015 @author: bardya ''' import os import argparse from Bio import SeqIO def parse_args(): parser = argparse.ArgumentParser(description='Delete all duplicate entries (header+sequence) in fasta. If only sequence identical, add "| duplicate" to header.') parser.add_argument('-i', des...
35.79798
165
0.615406
0
0
0
0
0
0
0
0
1,285
0.362585
7224268eb003eeb3fc96967b78416eccf0509110
491
py
Python
lclpy/aidfunc/logging.py
nobody1570/lspy
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
[ "MIT" ]
3
2021-11-27T22:11:38.000Z
2022-02-10T11:42:06.000Z
lclpy/aidfunc/logging.py
nobody1570/lspy
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
[ "MIT" ]
null
null
null
lclpy/aidfunc/logging.py
nobody1570/lspy
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
[ "MIT" ]
null
null
null
def log_improvement(value): """function to log improvements to the command line. Parameters ---------- value : int or float The value for the improvement """ print("Improvement : " + str(value)) def log_passed_worse(value): """function to log the passing of worse solutions...
18.185185
74
0.592668
0
0
0
0
0
0
0
0
368
0.749491
72244921b06692f1b6e6b261aabc73be9e8ccb0e
897
py
Python
tests/test_as_class_methods.py
pokidovea/immobilus
42f115a13b4aa060b7ed186e81fe56e1a07c4b2d
[ "Apache-2.0" ]
13
2016-11-26T16:13:11.000Z
2021-12-21T11:10:50.000Z
tests/test_as_class_methods.py
pokidovea/immobilus
42f115a13b4aa060b7ed186e81fe56e1a07c4b2d
[ "Apache-2.0" ]
20
2017-03-06T00:50:22.000Z
2019-08-26T20:12:39.000Z
tests/test_as_class_methods.py
pokidovea/immobilus
42f115a13b4aa060b7ed186e81fe56e1a07c4b2d
[ "Apache-2.0" ]
6
2017-08-28T07:23:54.000Z
2021-12-03T13:03:50.000Z
# https://github.com/pokidovea/immobilus/issues/30 from immobilus import immobilus # noqa from immobilus.logic import fake_time, fake_localtime, fake_gmtime, fake_strftime, fake_mktime from datetime import datetime class SomeClass(object): method = None def test_fake_time(): SomeClass.method = fake_time ...
18.6875
94
0.723523
42
0.046823
0
0
0
0
0
0
63
0.070234
722517ddb7cf57ba0cdaeeaa839501f03c9155b4
322
py
Python
plotter/plotter.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
plotter/plotter.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
plotter/plotter.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
import abc class Plotter(abc.ABC): def __init__(self, ax=None, bokeh_fig=None): if not ax and not bokeh_fig: raise ValueError('ax or bokeh_fig should be provided.') self._ax = ax self._bokeh_fig = bokeh_fig def plot(self, *args, **kwargs): raise NotImplementedErro...
23
67
0.63354
308
0.956522
0
0
0
0
0
0
37
0.114907
72279efb6ba56531335b2f093691a4196e8f4923
2,531
py
Python
ardupilot/Tools/autotest/param_metadata/wikiemit.py
quadrotor-IITKgp/emulate_GPS
3c888d5b27b81fb17e74d995370f64bdb110fb65
[ "MIT" ]
1
2021-07-17T11:37:16.000Z
2021-07-17T11:37:16.000Z
ardupilot/Tools/autotest/param_metadata/wikiemit.py
arl-kgp/emulate_GPS
3c888d5b27b81fb17e74d995370f64bdb110fb65
[ "MIT" ]
null
null
null
ardupilot/Tools/autotest/param_metadata/wikiemit.py
arl-kgp/emulate_GPS
3c888d5b27b81fb17e74d995370f64bdb110fb65
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re from param import * from emit import Emit # Emit docs in a form acceptable to the APM wiki site class WikiEmit(Emit): def __init__(self): wiki_fname = 'Parameters.wiki' self.f = open(wiki_fname, mode='w') preamble = '''#summary Dynamically generated lis...
34.671233
121
0.468589
2,393
0.945476
0
0
0
0
0
0
646
0.255235
722ad974ef9283199399d93bbd17a334c7d31249
1,038
py
Python
master.py
iAzurel/thepicturesorter
21a3aee26adcfca0838db63be1434f7c49cd9548
[ "MIT" ]
null
null
null
master.py
iAzurel/thepicturesorter
21a3aee26adcfca0838db63be1434f7c49cd9548
[ "MIT" ]
null
null
null
master.py
iAzurel/thepicturesorter
21a3aee26adcfca0838db63be1434f7c49cd9548
[ "MIT" ]
null
null
null
#!/usr/bin/env python from PIL import Image import os, os.path import cv2 import sys # Detect faces, then returns number of faces. def detect_face(image_path, face_cascade): img = cv2.imread(image_path) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # Change the values based on needs. faces = face_cascade.detect...
23.590909
76
0.716763
0
0
0
0
0
0
0
0
299
0.288054
722c1e45a1768734b80ecc9c4958f9182d017de1
1,241
py
Python
src/si/supervised/Ensemble.py
pg42862/Sistemas_Inteligentes_para_a_MBIONF
5dd5b487da5b3c6a0989274598c911cc639138a3
[ "Apache-2.0" ]
null
null
null
src/si/supervised/Ensemble.py
pg42862/Sistemas_Inteligentes_para_a_MBIONF
5dd5b487da5b3c6a0989274598c911cc639138a3
[ "Apache-2.0" ]
null
null
null
src/si/supervised/Ensemble.py
pg42862/Sistemas_Inteligentes_para_a_MBIONF
5dd5b487da5b3c6a0989274598c911cc639138a3
[ "Apache-2.0" ]
1
2021-11-15T16:15:50.000Z
2021-11-15T16:15:50.000Z
from.Model import Model import numpy as np def majority(values): return max(set(values), key=values.count)#melhor valor def average(values): return sum(values)/len(values)#ou a media class Ensemble(Model): def __init__(self, models, fvote, score): super(Ensemble, self).__init__() self.m...
32.657895
140
0.65834
1,044
0.841257
0
0
0
0
0
0
292
0.235294
722cd36e985871c8a2f5b1f558365071a7104a73
11,915
py
Python
pygto900.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
1
2021-06-06T15:26:36.000Z
2021-06-06T15:26:36.000Z
pygto900.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
null
null
null
pygto900.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
3
2015-07-29T15:16:35.000Z
2017-12-01T13:02:36.000Z
#!/usr/bin/env python """pygto900 contains commands to interface with a astro-physics gto900 mount """ import serial import io import sys import string import math import time from binutils import * from datetime import datetime from astropy.coordinates import Angle def airmass(a): ang = Angle(90, unit='degree'...
24.56701
130
0.544943
8,531
0.715988
0
0
0
0
0
0
3,834
0.321779
7230fd2e2774f3460096d023d321613a2a314e63
2,850
py
Python
webscripts/plotlygraphs.py
KathrynDH/DataDashboard
1bf61497480f778a1c7cc9ce9fc7fb48b3067606
[ "MIT" ]
null
null
null
webscripts/plotlygraphs.py
KathrynDH/DataDashboard
1bf61497480f778a1c7cc9ce9fc7fb48b3067606
[ "MIT" ]
null
null
null
webscripts/plotlygraphs.py
KathrynDH/DataDashboard
1bf61497480f778a1c7cc9ce9fc7fb48b3067606
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 23 15:56:55 2021 @author: Kathryn Haske Create plotly graphs for webpage """ import pandas as pd import plotly.graph_objs as go def line_graph(x_list, df, name_col, y_cols, chart_title, x_label, y_label): """ Function to create plotly line graph Args: ...
27.403846
76
0.567018
0
0
0
0
0
0
0
0
1,431
0.502105
72314feeba462045a5c4c66db5b70dc7ce89e3a1
2,505
py
Python
jsl/experimental/seql/agents/bfgs_agent.py
AdrienCorenflos/JSL
8a3ba27179a2bd90207214fccb81df884b05c3d0
[ "MIT" ]
null
null
null
jsl/experimental/seql/agents/bfgs_agent.py
AdrienCorenflos/JSL
8a3ba27179a2bd90207214fccb81df884b05c3d0
[ "MIT" ]
null
null
null
jsl/experimental/seql/agents/bfgs_agent.py
AdrienCorenflos/JSL
8a3ba27179a2bd90207214fccb81df884b05c3d0
[ "MIT" ]
null
null
null
import jax.numpy as jnp from jax import vmap from jax.scipy.optimize import minimize import chex import typing_extensions from typing import Any, NamedTuple import warnings from jsl.experimental.seql.agents.agent_utils import Memory from jsl.experimental.seql.agents.base import Agent from jsl.experimental.seql.util...
26.09375
68
0.578842
744
0.297006
0
0
0
0
0
0
259
0.103393
72320fd783db7905693b184e50b586992cf4d02b
2,379
py
Python
abusech/urlhaus.py
threatlead/abusech
6c62f51f773cb17ac6943d87fb697ce1e9dae049
[ "MIT" ]
null
null
null
abusech/urlhaus.py
threatlead/abusech
6c62f51f773cb17ac6943d87fb697ce1e9dae049
[ "MIT" ]
null
null
null
abusech/urlhaus.py
threatlead/abusech
6c62f51f773cb17ac6943d87fb697ce1e9dae049
[ "MIT" ]
null
null
null
from .abusech import AbuseCh from collections import namedtuple from datetime import datetime class UrlHaus(AbuseCh): base_url = 'https://urlhaus.abuse.ch' urls = namedtuple('UrlHaus', ['id', 'date_added', 'url', 'url_status', 'threat', 'tags', 'urlhaus_link', 'reporter']) payloads = namedtuple('Payload',...
43.254545
121
0.584279
2,282
0.959227
0
0
0
0
0
0
317
0.133249
7232736c521560e15f88e41ebeb5b1e597203059
114
py
Python
ufmt/tests/__init__.py
pmeier/ufmt
29385731d3399d065968921b7502d321acf6faef
[ "MIT" ]
null
null
null
ufmt/tests/__init__.py
pmeier/ufmt
29385731d3399d065968921b7502d321acf6faef
[ "MIT" ]
null
null
null
ufmt/tests/__init__.py
pmeier/ufmt
29385731d3399d065968921b7502d321acf6faef
[ "MIT" ]
null
null
null
# Copyright 2021 John Reese # Licensed under the MIT license from .cli import CliTest from .core import CoreTest
19
32
0.789474
0
0
0
0
0
0
0
0
59
0.517544
7233257f2eb3efc2be88861adf3e83bb76f78498
442
py
Python
tests/components/eafm/conftest.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
tests/components/eafm/conftest.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
tests/components/eafm/conftest.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
2
2020-12-25T16:31:22.000Z
2020-12-30T20:53:56.000Z
"""eafm fixtures.""" import pytest from tests.async_mock import patch @pytest.fixture() def mock_get_stations(): """Mock aioeafm.get_stations.""" with patch("homeassistant.components.eafm.config_flow.get_stations") as patched: yield patched @pytest.fixture() def mock_get_station(): """Mock aio...
22.1
84
0.719457
0
0
328
0.742081
364
0.823529
0
0
189
0.427602
7233678cd98a3bf61296f7c1aa2006b01024a6ac
5,894
py
Python
thorbanks/checks.py
Jyrno42/django-thorbanks
a8e2daf20b981aecb0c8ee76b0474b6c8e2baad1
[ "BSD-3-Clause" ]
6
2015-06-15T12:47:05.000Z
2019-04-24T01:32:12.000Z
thorbanks/checks.py
Jyrno42/django-thorbanks
a8e2daf20b981aecb0c8ee76b0474b6c8e2baad1
[ "BSD-3-Clause" ]
13
2015-12-23T14:29:26.000Z
2021-02-18T18:35:56.000Z
thorbanks/checks.py
Jyrno42/django-thorbanks
a8e2daf20b981aecb0c8ee76b0474b6c8e2baad1
[ "BSD-3-Clause" ]
3
2016-08-08T10:35:39.000Z
2020-12-29T23:10:55.000Z
import os from django.conf import settings from django.core.checks import Error, register from thorbanks.settings import configure, parse_banklinks @register def check_model_settings(app_configs, **kwargs): issues = [] manual_models = getattr(settings, "THORBANKS_MANUAL_MODELS", None) if manual_models...
35.293413
119
0.449779
0
0
0
0
5,738
0.973532
0
0
1,868
0.316932
72349a7b999fcd7724c457b5d3ee54f95ec82969
36,028
py
Python
otk/trains.py
draustin/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
7
2020-05-17T14:26:42.000Z
2022-02-14T04:52:54.000Z
otk/trains.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
17
2020-04-10T22:50:00.000Z
2020-06-18T04:54:19.000Z
otk/trains.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
1
2022-02-14T04:52:45.000Z
2022-02-14T04:52:45.000Z
"""Defining and analysing axisymmetric optical systems.""" import itertools from functools import singledispatch from dataclasses import dataclass from abc import ABC, abstractmethod from typing import Sequence, Tuple, Mapping import numpy as np import scipy.optimize from . import abcd, paraxial, functions, ri from .fu...
39.634763
199
0.601865
34,771
0.96511
0
0
26,073
0.723687
0
0
10,545
0.292689
723547959ebc4a91f17440d870c4a23f152e86d1
4,705
py
Python
rm_protection/rm_p.py
https-waldoww90-wadewilson-com/rm-protection
4dcc678fa687373fb4439c5c4409f7649e653084
[ "MIT" ]
490
2017-02-03T14:15:50.000Z
2022-03-31T02:57:20.000Z
rm_protection/rm_p.py
https-waldoww90-wadewilson-com/rm-protection
4dcc678fa687373fb4439c5c4409f7649e653084
[ "MIT" ]
8
2017-02-03T16:13:53.000Z
2017-05-28T05:20:45.000Z
rm_protection/rm_p.py
alanzchen/rm-protection
4dcc678fa687373fb4439c5c4409f7649e653084
[ "MIT" ]
41
2017-02-04T15:13:26.000Z
2021-12-19T08:58:38.000Z
from sys import argv, exit from os.path import expanduser as expu, expandvars as expv from os.path import basename, dirname, abspath, isdir, exists from subprocess import Popen, PIPE from builtins import input from rm_protection.config import Config c = Config() evaledpaths = [] def pprint(msg): global c pr...
30.953947
120
0.530287
0
0
0
0
0
0
0
0
504
0.10712
72381b6de058125b33932e8f4cd988e19b104ff7
6,856
py
Python
src/text_normalizer/tokenization/_tokenize.py
arkataev/text_normalizer
a99326e31012157980d014c9730ac94bd1d18c1d
[ "MIT" ]
null
null
null
src/text_normalizer/tokenization/_tokenize.py
arkataev/text_normalizer
a99326e31012157980d014c9730ac94bd1d18c1d
[ "MIT" ]
null
null
null
src/text_normalizer/tokenization/_tokenize.py
arkataev/text_normalizer
a99326e31012157980d014c9730ac94bd1d18c1d
[ "MIT" ]
null
null
null
"""Модуль для создания и работы с токенами""" import logging import re import string from enum import IntEnum from functools import lru_cache from typing import Tuple, Iterator from nltk.corpus import stopwords from nltk.tokenize import ToktokTokenizer from nltk.tokenize.api import TokenizerI from ..config import Reg...
27.534137
107
0.641774
3,939
0.497411
898
0.113398
165
0.020836
0
0
4,001
0.505241
723871eadc62b9694db68243f51e537122c22e01
299
py
Python
tests/data/test_to_array.py
maki-nage/rxsci
64c9956752cbdd4c65aa9f054b6b28318a056625
[ "MIT" ]
3
2021-05-03T13:40:46.000Z
2022-03-06T07:59:30.000Z
tests/data/test_to_array.py
maki-nage/rxsci
64c9956752cbdd4c65aa9f054b6b28318a056625
[ "MIT" ]
9
2020-10-22T21:08:10.000Z
2021-08-05T09:01:26.000Z
tests/data/test_to_array.py
maki-nage/rxsci
64c9956752cbdd4c65aa9f054b6b28318a056625
[ "MIT" ]
2
2021-01-05T16:48:54.000Z
2021-08-07T12:51:01.000Z
from array import array import rx import rxsci as rs def test_to_array(): actual_result = [] source = [1, 2, 3, 4] rx.from_(source).pipe( rs.data.to_array('d') ).subscribe( on_next=actual_result.append ) assert actual_result == [array('d', [1, 2, 3, 4])]
17.588235
54
0.595318
0
0
0
0
0
0
0
0
6
0.020067
7239365caa1436583482800c75a7cb1d2a4fbe35
18,942
py
Python
pi/los.py
Coding-Badly/Little-Oven
3d1178f495aea1180e25bddbb4f139d8e37e6a65
[ "Apache-2.0" ]
null
null
null
pi/los.py
Coding-Badly/Little-Oven
3d1178f495aea1180e25bddbb4f139d8e37e6a65
[ "Apache-2.0" ]
null
null
null
pi/los.py
Coding-Badly/Little-Oven
3d1178f495aea1180e25bddbb4f139d8e37e6a65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """============================================================================= los for Little-Oven. los (Little Oven Setup) prepares a Raspberry Pi for Little-Oven development. This module does the actual work. los (no extension) is a bash script that creates a service that runs this...
50.244032
184
0.658853
1,208
0.063774
0
0
0
0
0
0
8,598
0.453912