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
303d67c6ff0813b9d6fd68be88e83d8ab918ad04
9,018
py
Python
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 21 11:55:27 2021 Snow-Hydrology Repo for Evaluation, Analysis, and Decision-making Dashboard (shread_dash.py) Database Initialization This is part of dashboard loading database and other data into memory. The data for the database relies on a series of retrieval scripts ...
37.732218
118
0.662009
0
0
0
0
0
0
0
0
3,889
0.431201
303f583ef559b4b1aa620758bb07c4e72cd59ab1
730
py
Python
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
import cloudscraper import json from bs4 import BeautifulSoup from dotenv import load_dotenv import os scraper = cloudscraper.create_scraper() load_dotenv('lang_code') language = os.getenv("lang_code") def simsimi(question): ''' Function to make the HTTP request to the Simsimi API already with the message typed b...
28.076923
142
0.712329
0
0
0
0
0
0
0
0
382
0.523288
303f8a39fa8bc76e0faedd216816494e7f0cf74e
357
py
Python
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
import sys def write(): print('Creating new text file') name = 'test.txt' # Name of text file coerced with +.txt try: file = open(name,'a') # Trying to create a new file or open one file.close() except: print('Something went wrong! Can\'t tell what?') ...
22.3125
74
0.560224
0
0
0
0
0
0
0
0
173
0.484594
30410df497a9a784faa007c73a850d77a1646952
523
py
Python
auction_bid_tracker/api/serializers.py
Kelechukwu/auction-service
fac296178b67c6c8a54d37d861787fc523cc30fd
[ "MIT" ]
null
null
null
auction_bid_tracker/api/serializers.py
Kelechukwu/auction-service
fac296178b67c6c8a54d37d861787fc523cc30fd
[ "MIT" ]
5
2020-06-05T20:17:05.000Z
2021-09-22T18:17:53.000Z
auction_bid_tracker/api/serializers.py
Kelechukwu/auction-service
fac296178b67c6c8a54d37d861787fc523cc30fd
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Bid, Item, User class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ('id', 'name', 'product_code', 'description', 'sold') class UserSerializer(serializers.ModelSerializer): class Meta: model =...
26.15
70
0.655832
440
0.8413
0
0
0
0
0
0
102
0.195029
3043145d544f46f022747e55bca435bd3cfd11fa
133
py
Python
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
3
2018-02-28T06:22:39.000Z
2020-05-20T12:39:00.000Z
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
19
2018-02-26T21:13:43.000Z
2018-05-02T16:33:35.000Z
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
6
2018-02-26T18:10:31.000Z
2020-12-30T10:21:31.000Z
import requests from a01.auth import A01Auth session = requests.Session() # pylint: disable=invalid-name session.auth = A01Auth()
19
60
0.766917
0
0
0
0
0
0
0
0
30
0.225564
304744cf40637da26f72f55057da5c765cb35850
27,025
py
Python
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
5
2021-08-19T15:24:08.000Z
2022-03-09T07:11:41.000Z
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
null
null
null
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
1
2021-11-10T07:55:06.000Z
2021-11-10T07:55:06.000Z
""" Construct, train neural-SDE models and simulate trajectories from the learnt models. """ # Copyright 2021 Sheng Wang. # Affiliation: Mathematical Institute, University of Oxford # Email: [email protected] import numpy as np import os import pandas as pd import tensorflow as tf import tensorflow_probabilit...
35.006477
81
0.559704
26,512
0.981018
0
0
26,074
0.96481
0
0
4,439
0.164255
304748bc2e685abf6332deae76ea083ce94212c7
2,641
py
Python
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
import random pedra = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' papel = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' tesoura = ''' _______ ---' ____)____ ______) __________) (____) -...
19.857143
99
0.584248
0
0
0
0
0
0
0
0
1,322
0.496246
304a63e43cefe3d1aae18e577a8dfda944354797
133
py
Python
Python/basic-py/exercise_13.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
1
2020-10-12T18:33:22.000Z
2020-10-12T18:33:22.000Z
Python/basic-py/exercise_13.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
Python/basic-py/exercise_13.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
def even_square_sum(list): even = [x * x for x in list if x % 2 == 0] return sum(even) print(even_square_sum([1, 2, 3, 4, 5]))
26.6
44
0.609023
0
0
0
0
0
0
0
0
0
0
304ae112f3d07172cbbce9d1b6a8739bf5926f0c
1,304
py
Python
generate_datajson/vaccine_data.py
a01sa01to/covid19-ibaraki
83ae6a69bab2fc5d27af520d04820a57d4d93b13
[ "MIT" ]
47
2020-03-22T07:29:18.000Z
2021-12-22T12:26:06.000Z
generate_datajson/vaccine_data.py
a01sa01to/covid19-ibaraki
83ae6a69bab2fc5d27af520d04820a57d4d93b13
[ "MIT" ]
118
2020-03-26T15:32:36.000Z
2021-12-29T12:45:20.000Z
generate_datajson/vaccine_data.py
a01sa01to/covid19-ibaraki
83ae6a69bab2fc5d27af520d04820a57d4d93b13
[ "MIT" ]
24
2020-03-24T11:40:54.000Z
2022-01-17T02:25:08.000Z
import json file_content = [] with open('vaccine_data.ndjson', 'r', encoding="UTF-8") as f: for row in f.readlines(): rowJson = json.loads(row.replace('\n','')) if rowJson['prefecture'] == '08': del rowJson['prefecture'] if not rowJson['medical_worker']: del rowJson['medical_worker'] ...
31.047619
83
0.615798
0
0
0
0
0
0
0
0
277
0.212423
304caab2fd293dcea3ce7502cec96c166db7a553
187
py
Python
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
null
null
null
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
null
null
null
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
1
2020-03-27T02:07:27.000Z
2020-03-27T02:07:27.000Z
from .system import System from logcat import LogCat class Widget(System): def __init__(self): super().__init__() self.on("cmd_render", self._render) # widget.py
14.384615
43
0.663102
117
0.625668
0
0
0
0
0
0
23
0.122995
304dc6dc061f3fd518314469875101efde9ac522
461
py
Python
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
import smtplib user = input('Enter your gmail ') password = input('Enter your password ') receiver = input('Enter the receiver ') msg = input('Enter the message ') #num = input('Enter the number of emails you want to send ') #x = 0 #x = int() #num = int() server = smtplib.SMTP('smtp.gmail.com', 587) server....
25.611111
61
0.672451
0
0
0
0
0
0
0
0
226
0.490239
304e5b0e47fffc531047a55b5185bd8c13cd32b6
820
py
Python
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
''' Created on Feb 4, 2015 @author: nirmal ''' from scheme import current_timestamp from spire.schema import * from spire.mesh import Surrogate __all__ = ('Notification',) schema = Schema('narrative') class Notification(Model): """A notification.""" class meta: schema = schema ...
26.451613
83
0.696341
435
0.530488
0
0
0
0
0
0
160
0.195122
30508657d97ad92eed583819ab3856787d5dae52
1,061
py
Python
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
from entity.message import Message from .databaserepo import DatabaseRepo class MessageDbRepo(DatabaseRepo): def __init__(self): super().__init__("Messages") def all(self, cid): query = "SELECT * FROM " + self.table + " WHERE conversation_id = '" + str(cid) + "'" m_results = self.db.s...
31.205882
93
0.556079
984
0.927427
0
0
0
0
0
0
136
0.128181
3050a2a71fbaa2cae499a5720b624b2e3232480d
8,896
py
Python
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from database import db from client import client from pprint import * import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import Figure import matplotlib.dates as m...
40.807339
165
0.625337
8,409
0.945256
0
0
0
0
0
0
1,331
0.149618
3051b98951c21bd4429d8c08c1c8331434412e69
4,431
py
Python
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
null
null
null
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
1
2019-12-01T10:47:30.000Z
2019-12-01T10:47:30.000Z
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
null
null
null
import torch import numpy as np import os import sys from fairseq.data.data_utils import collate_tokens from fairseq.models.roberta import RobertaModel import time roberta = RobertaModel.from_pretrained('checkpoints/', checkpoint_file='ck.pt', data_name_or_path='data/processed_RACE/') roberta.eval() def eval_one_e...
59.08
1,546
0.672986
0
0
0
0
0
0
0
0
2,416
0.545249
3052b87761414206a80d473cc44e97d3436908e3
5,043
py
Python
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
1
2022-03-15T00:00:57.000Z
2022-03-15T00:00:57.000Z
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
import soundfile as sf from tqdm import tqdm import src.utils.interface_file_io as io import librosa import wave import multiprocessing import src.utils.interface_multiprocessing as mi import torchaudio import numpy as np import torch.nn.functional as F import torch torchaudio.set_audio_backend("sox_io") def audio_lo...
36.810219
114
0.691652
569
0.11283
0
0
0
0
0
0
549
0.108864
3052bcfb77f4439da2dc55fb76a58f27be220c78
6,318
py
Python
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
2
2022-01-16T16:16:52.000Z
2022-03-01T11:51:35.000Z
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
null
null
null
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
null
null
null
import math from typing import MutableSequence, Optional, TypeVar, Union import torch from torch import nn from torch import Tensor from torch.types import Number from einops import repeat T = TypeVar("T") def exists(val: Optional[T]) -> bool: return val is not None def default(val: Optional[T], d: T) -> T: ...
25.893443
80
0.623932
2,306
0.364989
0
0
1,136
0.179804
0
0
445
0.070434
3053b63c3b7a677ef567ccc253454ec06d5b2791
828
py
Python
FB.py/blog.py
attia7/Test
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
null
null
null
FB.py/blog.py
attia7/Test
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
11
2020-03-24T17:40:26.000Z
2022-01-13T01:42:38.000Z
FB.py/blog.py
attia7/AttiaGit
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
null
null
null
class Blog: def __init__(self, title, photo, name,date,content): self.title = title self.photo = photo self.name = name self.date = date self.content = content blog1= Blog(title='python bisics', photo='https://images.pexels.com/photos/837140/pexels-photo-837140.jpeg', name='Yasser',date='10-06-2...
29.571429
109
0.711353
181
0.218599
0
0
0
0
0
0
347
0.419082
3057879143c17360d6498f89a5f3db75d2469ccb
4,075
py
Python
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
4
2019-03-26T15:54:35.000Z
2021-05-27T13:18:43.000Z
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
12
2019-04-23T14:45:04.000Z
2022-03-17T09:40:04.000Z
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
2
2019-06-15T17:21:14.000Z
2021-05-14T18:35:18.000Z
import logging from modules.common.GoogleBucketResource import GoogleBucketResource from modules.common.Utils import Utils from modules.common import create_output_dir, remove_output_dir from yapsy.PluginManager import PluginManager from definitions import PIS_OUTPUT_DIR logger = logging.getLogger(__name__) class Re...
43.351064
117
0.690307
3,762
0.92319
0
0
0
0
0
0
872
0.213988
305a285236c3e11d999251641ede1bf722d4ce33
211
py
Python
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
import importlib import os conf_module = importlib.import_module("conf.%s" % os.environ['CONFIGURATION']) settings = { key: getattr(conf_module, key) for key in dir(conf_module) if key.isupper() }
19.181818
78
0.706161
0
0
0
0
0
0
0
0
24
0.113744
305fb866531bf4803870ee45e5b57b07d815bff0
694
py
Python
swiper/user/models.py
Han-spros/swiper
47590fe930ff22cbdf837b896c767bc42124ff54
[ "MIT" ]
null
null
null
swiper/user/models.py
Han-spros/swiper
47590fe930ff22cbdf837b896c767bc42124ff54
[ "MIT" ]
null
null
null
swiper/user/models.py
Han-spros/swiper
47590fe930ff22cbdf837b896c767bc42124ff54
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class User(models.Model): SEXS = ((0, '未知'), (1, '男'), (2, '女')) LOCATIONS = (('gz', '广州'), ('sz', '深圳'), ('sh', '上海'), ('bj', '北京'), ('cq', '重庆')) phonenum = models.CharField(max_length=11, unique=True) nickname = models.CharField(max_length=16)...
38.555556
86
0.654179
664
0.919668
0
0
0
0
0
0
115
0.15928
30608fa48d5c9db3434a2558d2ebd1e7a3ae3040
1,696
py
Python
probs/discrete/negative_binomial.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
probs/discrete/negative_binomial.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
probs/discrete/negative_binomial.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
from dataclasses import dataclass from scipy.stats import nbinom # type: ignore[import] from probs.discrete.rv import DiscreteRV @dataclass(eq=False) class NegativeBinomial(DiscreteRV): """ The negative binomial distribution is a discrete probability distribution that models the number of failures k in...
30.836364
80
0.646816
1,540
0.908019
0
0
1,561
0.920401
0
0
813
0.479363
3062f03e110c5a790e2aa16881b269fc800f6f09
2,513
py
Python
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
1
2015-04-23T11:43:26.000Z
2015-04-23T11:43:26.000Z
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
#!python3 """ A simple script that uses Baidu Place API to search certain kinds of place in a range of circular space. This API can be called maximum 2000 times per day. """ import requests, json # import psycopg2 class ConvertFailure(Exception): def __str__(self): return "Convertion Failed." mykey = "In...
23.707547
78
0.634302
91
0.0357
588
0.230679
0
0
0
0
1,080
0.423696
3063873cf1d375e656a6b627f5a8d2ac1ba1cb4a
2,293
py
Python
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
null
null
null
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
null
null
null
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
1
2021-06-11T12:38:38.000Z
2021-06-11T12:38:38.000Z
# -*- coding: utf-8 -*- import logging from pathlib import Path import click import torch from classifier import Classifier from torchvision import datasets, transforms @click.command() @click.argument('data_filepath', type=click.Path(), default='data') @click.argument('trained_model_filepath', type=click.Path(), ...
35.276923
78
0.645007
0
0
0
0
1,951
0.85085
0
0
600
0.261666
3066e6439632008223c0fd046661610d442765bc
4,681
py
Python
package/statistics.py
vohoaiviet/PyReID
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
14
2015-11-23T16:26:58.000Z
2019-10-02T07:47:09.000Z
package/statistics.py
Luigolas/PyReid
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
null
null
null
package/statistics.py
Luigolas/PyReid
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
8
2016-08-06T05:45:48.000Z
2022-02-05T06:21:26.000Z
__author__ = 'luigolas' import numpy as np from scipy.stats import cumfreq class Statistics(): """ Position List: for each element in probe, find its same ids in gallery. Format: np.array([[2,14],[1,2],...]) Mean List: Calculate means of position list by axis 0. Format: np.array([1.52, 4.89]) Mode_li...
37.150794
120
0.58919
4,602
0.983123
0
0
576
0.123051
0
0
2,345
0.500961
30679d7bee3f8456ed467600e053b128e8b6036a
49
py
Python
gather_agent/handlers/__init__.py
burmanm/gather_agent
37d9eb80cf717d12a132ff1c98a0c80eeeaa5a66
[ "Apache-2.0" ]
null
null
null
gather_agent/handlers/__init__.py
burmanm/gather_agent
37d9eb80cf717d12a132ff1c98a0c80eeeaa5a66
[ "Apache-2.0" ]
null
null
null
gather_agent/handlers/__init__.py
burmanm/gather_agent
37d9eb80cf717d12a132ff1c98a0c80eeeaa5a66
[ "Apache-2.0" ]
null
null
null
from rhqmetrics_handler import RHQMetricsHandler
24.5
48
0.918367
0
0
0
0
0
0
0
0
0
0
3068043469fb1de1fd2079110d1f76aaf77142ca
3,253
py
Python
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
from tkinter import* #=====importing self created module which will show the registartion form=======# import registrationform #=====importing self created module which will help in deleting student record from data base======# import deletestudent #=============importing selfcreated update student record ========...
61.377358
204
0.670765
0
0
0
0
0
0
0
0
1,330
0.408728
30696989ca682d46c351e2a46bb6af6c82145eb0
3,443
py
Python
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
null
null
null
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
null
null
null
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
3
2021-04-28T07:49:40.000Z
2021-04-28T17:59:13.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Customer, Seller, Product, Order class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=True) last_name = forms.CharField(max_lengt...
40.988095
137
0.639559
3,248
0.943363
0
0
0
0
0
0
1,195
0.347081
3069d018acdd28b4231703721ede5dfa5cd4942f
4,665
py
Python
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
124
2017-11-14T14:42:25.000Z
2022-03-31T08:02:07.000Z
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
65
2017-11-15T07:25:38.000Z
2022-01-31T10:38:45.000Z
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
31
2018-10-18T12:59:47.000Z
2022-02-11T16:54:43.000Z
"""Implementation of AvoidBlastMatches.""" from ..Specification import Specification, SpecEvaluation # from .VoidSpecification import VoidSpecification from ..biotools import blast_sequence from ..Location import Location class AvoidBlastMatches(Specification): """Enforce that the sequence has no BLAST matches ...
30.690789
78
0.609003
4,438
0.95134
0
0
0
0
0
0
1,090
0.233655
3069d773ef41f354c54cc922824a8eac7764671a
8,769
py
Python
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
2
2016-06-25T16:07:09.000Z
2020-01-18T01:56:30.000Z
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
null
null
null
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
null
null
null
from aadict import aadict from cachetools import LRUCache import ujson as json import regex from shortuuid import uuid from functools import wraps from glob import glob from time import time import logging import os import shutil import unicodedata _logger = logging.getLogger(__name__) _basepath = None _serialize =...
30.134021
73
0.655149
49
0.005588
970
0.110617
3,191
0.363896
0
0
3,166
0.361045
306ba668c7b411ccfc244e0a763013d6e68ac1a9
171
py
Python
ex049.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
2
2021-11-04T21:09:11.000Z
2021-11-08T09:42:10.000Z
ex049.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
ex049.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
print("x"*25) print("Bem-Vindo a Tabuada v2.0") print("x"*25) n = int(input("Digite um número para a tabuada: ")) for t in range(1, 11): print(f"{n} x {t:2} = {n*t}")
24.428571
51
0.590643
0
0
0
0
0
0
0
0
90
0.523256
306c66581ea850b95ab997fea6a54ccae480729d
149
py
Python
Term 2/1-5-problem.py
theseana/miniatur
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
[ "MIT" ]
1
2022-01-16T00:30:43.000Z
2022-01-16T00:30:43.000Z
Term 2/1-5-problem.py
theseana/miniatur
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
[ "MIT" ]
null
null
null
Term 2/1-5-problem.py
theseana/miniatur
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
[ "MIT" ]
null
null
null
n1=17 n2=28 if n1>n2: print('n1 bozorgtar az n2') elif n1<n2: print('n2 bozorgtar az n1') elif n1==n2: print('n1 va n2 barabar hastand')
16.555556
37
0.637584
0
0
0
0
0
0
0
0
66
0.442953
306d9087bb69542cb8af6dee2a42b1098927e7a0
1,192
py
Python
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
"""Adds table for scicrunch rrids Revision ID: 39fa67f45cc0 Revises: 3452ca7b13e9 Create Date: 2020-12-15 18:16:03.581479+00:00 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "39fa67f45cc0" down_revision = "3452ca7b13e9" branch_labels = None depends_on = None ...
25.913043
65
0.605705
0
0
0
0
0
0
0
0
503
0.42198
307114b26313aa3265e1bd2c48447893e64378ae
2,541
py
Python
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
import pymysql from tkinter import messagebox class Socios(): def abrir(self): bbdd= pymysql.connect( host= "localhost", user= "root", passwd="", db= "ejemplo1") return bbdd def alta(self,datos): ''' datos[0]: id datos[1]: nombre ''' bbdd=self.abrir() ...
21
104
0.547816
1,968
0.774498
0
0
0
0
0
0
1,580
0.621802
30713a8fbba0af913226f90bffb00ec0ccd49f74
1,420
py
Python
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import sys import json import das_client def dasFileQuery(dataset): query = 'dataset dataset=%s' % dataset host = 'https://cmsweb.cern.ch' # default idx = 0 # default limit = 0 # unlimited debug = 0 # defaul...
39.444444
86
0.554225
0
0
0
0
0
0
0
0
481
0.338732
3071af0749c01686288f8589d2c98b2a1b6a707c
153
py
Python
modules/Export_To_File.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
null
null
null
modules/Export_To_File.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
7
2019-05-09T04:17:51.000Z
2019-05-16T00:38:55.000Z
modules/Export_To_File.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
1
2019-05-07T12:15:55.000Z
2019-05-07T12:15:55.000Z
def append_file(password, file_path): password_file = open(file_path, "a+") password_file.write(password + "\r\n") password_file.close()
17
42
0.679739
0
0
0
0
0
0
0
0
10
0.065359
3073c042c76656cc6f035106fb8e66424b847e5f
477
py
Python
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
import pickle # pickle can serialize python objects data = {1:"hi", 2: "there"} # convert to byte byte_data = pickle.dumps(data) # convert back to python object data2 = pickle.loads(byte_data) # ----------using with files---------- filename = "" # write to a file pickle.dump(data, open(filename, "wb" )) with op...
17.666667
58
0.677149
0
0
0
0
0
0
0
0
181
0.379455
30750377e92de60cf64b84cb659e89e05ec986a3
4,676
py
Python
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
3
2020-10-22T06:18:17.000Z
2021-03-19T16:49:00.000Z
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
11
2019-11-01T23:04:31.000Z
2022-02-10T12:32:11.000Z
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
null
null
null
from os import sys, path from resolver.models import * sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) sys.path.append('/home/app') from client.lib.cactus_client import CactusClient def run(): Organization.objects.all().delete() Inchi.objects.all().delete() Publisher.objects.all().d...
27.833333
111
0.594311
0
0
0
0
0
0
0
0
1,618
0.346022
307806ce04eed5ab7fc2db0bbc77902ec9abf704
180
py
Python
Jarvis/features/launch_app.py
HezyCB/JARVIS-2
aa3ba0aa2f4595c48e0bd18211c65a0569684eb4
[ "MIT" ]
76
2021-02-03T14:44:27.000Z
2022-03-28T04:39:36.000Z
Jarvis/features/launch_app.py
HezyCB/JARVIS-2
aa3ba0aa2f4595c48e0bd18211c65a0569684eb4
[ "MIT" ]
9
2021-03-25T03:17:36.000Z
2022-03-19T19:24:42.000Z
Jarvis/features/launch_app.py
HezyCB/JARVIS-2
aa3ba0aa2f4595c48e0bd18211c65a0569684eb4
[ "MIT" ]
77
2021-03-06T08:10:36.000Z
2022-03-25T16:10:05.000Z
import subprocess def launch_app(path_of_app): try: subprocess.call([path_of_app]) return True except Exception as e: print(e) return False
20
38
0.627778
0
0
0
0
0
0
0
0
0
0
307b3ba6e61f0edd61df95b0af94e845aa5436e7
418
py
Python
django-rest-framework-fast/api/v2/views.py
mervatkheir/kite-python-blog-post-code
9a331e5d327cd27c6ecd72926f3e74afd252efb5
[ "MIT" ]
238
2018-10-10T18:50:40.000Z
2022-02-09T21:26:24.000Z
django-rest-framework-fast/api/v2/views.py
mrrizal/kite-python-blog-post-code
597f2d75b2ad5dda97e9b19f6e9c7195642e1739
[ "MIT" ]
38
2019-12-04T22:42:45.000Z
2022-03-12T00:04:57.000Z
django-rest-framework-fast/api/v2/views.py
mrrizal/kite-python-blog-post-code
597f2d75b2ad5dda97e9b19f6e9c7195642e1739
[ "MIT" ]
154
2018-11-11T22:48:09.000Z
2022-03-22T07:12:18.000Z
from characters.models import Character from characters.serializers import CharacterSerializer from rest_framework import generics class CharacterListView(generics.ListCreateAPIView): queryset = Character.objects.all() serializer_class = CharacterSerializer class CharacterDetailView(generics.RetrieveUpdateD...
29.857143
65
0.832536
281
0.672249
0
0
0
0
0
0
0
0
307b75907e2ef43110ad5b30dc9de4dad44b596b
1,454
py
Python
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ from .views import DeleteRole, EditRole, NewRole, RolesList, RoleUsers class MisagoAdminExtension(object): def register_urlpatterns(self, urlpatterns): # Permissions section urlpatterns.namespace(r'^permissio...
37.282051
79
0.586657
1,290
0.887208
0
0
0
0
0
0
486
0.33425
307c7a8c88bf6ef5840be4d2b400a14178b101d4
5,138
py
Python
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
71
2020-04-06T08:23:30.000Z
2022-03-21T03:40:11.000Z
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
10
2020-04-11T14:45:52.000Z
2021-08-19T04:44:13.000Z
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
8
2020-05-19T12:18:49.000Z
2022-03-22T08:04:27.000Z
from base import * import utils.neuralrenderer_render as nr class Visualizer(object): def __init__(self,high_resolution=False): self.high_resolution = high_resolution self.renderer = nr.get_renderer(high_resolution=self.high_resolution).cuda() def visualize_renderer(self,verts,images):...
49.883495
194
0.571039
5,108
0.987626
0
0
0
0
0
0
724
0.139985
307f461b2850c76795bf48a0896004e467675d49
455
py
Python
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
3
2015-11-26T11:44:57.000Z
2021-12-07T18:08:53.000Z
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
5
2016-04-22T10:06:41.000Z
2022-02-27T02:53:10.000Z
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
null
null
null
import wsgiref.util import flask from proxy import proxy # pylint: disable=W0212 def test_happy_path(): environ = { "REQUEST_METHOD": "GET", "PATH_INFO": "/locationforecast/1.9/", "QUERY_STRING": "lat=59.31895603;lon=18.0517762", "HTTP_REFERER": "https://walles.github.io/weather...
21.666667
64
0.674725
0
0
0
0
0
0
0
0
178
0.391209
307fe557fde0d2f4724e816d89631bf4c19e5543
186
py
Python
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
import sys def main(): for line in sys.stdin: value, group = line.strip().split(',') print(group, 1, sep='\t') if __name__ == '__main__': main()
14.307692
46
0.505376
0
0
0
0
0
0
0
0
17
0.091398
3080c9c3e2fa02a8d02d8a5c53a2bd5e45b99323
6,756
py
Python
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
17
2021-07-26T01:03:59.000Z
2022-01-23T10:31:56.000Z
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
2
2021-12-10T09:53:48.000Z
2022-01-25T17:08:41.000Z
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
3
2021-09-14T11:39:35.000Z
2022-01-23T06:51:48.000Z
import os import numpy as np import argparse import logging import random import pickle from pprint import pformat from exps.data import ParticleNetDataset from settree.set_data import SetDataset, OPERATIONS, merge_init_datasets import exps.eval_utils as eval from exps.eval_utils import create_logger data_root = '/ho...
43.87013
112
0.568532
0
0
0
0
0
0
0
0
1,433
0.212108
061872db87a6479a4c69671bb3e56ad3b315b346
152
py
Python
pyblnet/__init__.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
null
null
null
pyblnet/__init__.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
null
null
null
pyblnet/__init__.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .blnet_web import BLNETWeb, test_blnet from .blnet_conn import BLNETDirect from .blnet import BLNET
21.714286
43
0.743421
0
0
0
0
0
0
0
0
44
0.289474
0618cfbdfa965d703fa909c1b6226865c210caa9
452
py
Python
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
5
2021-06-12T13:03:25.000Z
2022-03-14T11:16:04.000Z
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
null
null
null
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
null
null
null
from psycopg2 import connect import requests import json r = requests.get( "http://localhost:9091/api/getDatabaseContainerByContainerID", params = {"containerID":"Metadatabase"} ) r.json() conn=connect( dbname="metadatabase", user = "postgres", host = r.json()['IpAddress'], password = "postgr...
17.384615
64
0.692478
0
0
0
0
0
0
0
0
189
0.418142
0619dcc1160c6a4dfdbc2934437079b0ef6afaf8
395
py
Python
setup.py
JurgenPalsma/dc-generator
2df92be5d1061864ee654eb413bdd08e599bc3dd
[ "MIT" ]
12
2020-03-26T13:53:27.000Z
2022-03-26T16:26:20.000Z
setup.py
JurgenPalsma/dc-generator
2df92be5d1061864ee654eb413bdd08e599bc3dd
[ "MIT" ]
null
null
null
setup.py
JurgenPalsma/dc-generator
2df92be5d1061864ee654eb413bdd08e599bc3dd
[ "MIT" ]
7
2019-02-23T12:25:10.000Z
2021-12-09T07:20:13.000Z
from setuptools import setup setup(name='dcgenerator', version='0.1', description='Generate dc events from time series', url='https://github.com/JurgenPalsma/dcgenerator', author='Flying Circus', author_email='[email protected]', license='MIT', packages=['dcgenerator'], ...
28.214286
56
0.63038
0
0
0
0
0
0
0
0
166
0.420253
061a89369cd09d094301833ef16484b3a48346f9
2,801
py
Python
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
103
2021-09-25T03:03:32.000Z
2022-03-20T19:13:48.000Z
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
null
null
null
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
6
2021-09-27T17:50:23.000Z
2022-02-15T22:44:12.000Z
"""Manage Wonk's configuration.""" import pathlib from typing import Any, Dict, List import yaml from pydantic import BaseModel from toposort import toposort_flatten # type: ignore from wonk.exceptions import UnknownParentError class PolicySet(BaseModel): """Describes a policy set.""" name: str manag...
30.11828
98
0.672617
942
0.336308
0
0
0
0
0
0
817
0.291682
061be587da4bb712ec3ad5fa16ba9684df1988f9
5,325
py
Python
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
25
2021-11-08T12:48:09.000Z
2022-03-29T02:56:18.000Z
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
12
2021-10-04T05:59:56.000Z
2022-03-29T06:06:17.000Z
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
6
2021-11-26T09:27:18.000Z
2022-02-24T14:52:01.000Z
# Copyright 2021 Arm Inc. 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 applicable law or agree...
40.037594
105
0.637934
1,681
0.315681
0
0
217
0.040751
0
0
1,222
0.229484
061ff9f824e772b63623e52f1ce6ebb062cf98da
3,192
py
Python
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
65
2017-09-24T19:38:34.000Z
2022-01-18T16:07:05.000Z
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
null
null
null
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
22
2017-10-01T12:55:38.000Z
2022-01-13T19:33:15.000Z
# Copyright 2017 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.466667
79
0.635965
0
0
0
0
0
0
0
0
1,247
0.390664
0624b48ea9d4dc4aaa2193d16b26d5a5663fbaf2
1,578
py
Python
tests/cli_test.py
chineseluo/opensourcetest
b0d222c8b29ff8f70a740ac2b1588a437d41b761
[ "Apache-2.0" ]
69
2020-10-20T14:25:49.000Z
2022-02-18T02:50:20.000Z
tests/cli_test.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
6
2020-11-23T06:56:09.000Z
2022-03-16T04:33:53.000Z
tests/cli_test.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
8
2021-02-01T03:23:20.000Z
2022-02-18T02:50:47.000Z
#!/user/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------ @Project : opensourcetest @Time : 2020/11/12 15:01 @Auth : chineseluo @Email : [email protected] @File : cli_test.py @IDE : PyCharm ------------------------------------ """ import os import sys import unittest from op...
27.684211
49
0.591255
1,226
0.776933
0
0
0
0
0
0
379
0.240177
0625d68871943fd8a255cbe675fa3fb3bffccaf0
2,364
py
Python
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
null
null
null
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
2
2021-05-28T10:56:22.000Z
2021-05-28T10:56:35.000Z
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
1
2021-12-31T15:08:27.000Z
2021-12-31T15:08:27.000Z
import socket import struct import config import json import threading import random def multicast_handler(client_port: int): # create the datagram socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(('', client_port)) # set a timeout so the socket does not block indefinitely when...
32.383562
94
0.629019
0
0
0
0
0
0
0
0
808
0.341794
0626ef011bc905ed25a0243ba65749c5fcdfec23
18,567
py
Python
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
import numpy as np import torch from collections import defaultdict, deque, OrderedDict import heapq from data_structures import DoublyLinkedList, UndirectedGraph,Fragment import time import sys loss = torch.nn.GaussianNLLLoss() def _compute_stats(track): t,x,y = track['t'],track['x'],track['y'] ct...
41.817568
149
0.522271
0
0
0
0
0
0
0
0
5,765
0.310497
06274af203a120ff736b3555a30e9a1003120ec1
4,324
py
Python
BlenderAddon/game_gamekit/config.py
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
1
2017-01-16T11:53:44.000Z
2017-01-16T11:53:44.000Z
BlenderAddon/game_gamekit/config.py
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
null
null
null
BlenderAddon/game_gamekit/config.py
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
null
null
null
#Copyright (c) 2010 harkon.kr # # ***** BEGIN MIT LICENSE BLOCK ***** # #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...
30.885714
78
0.563136
3,025
0.699584
0
0
0
0
0
0
1,566
0.362165
06277cec3797e9fe624139a04c8d08693f4a94d7
5,063
py
Python
app/models/__init__.py
LIhDi/python-atendimento-agendamento-back-end
affb722440678415d1d6293e84be3f1743c915b7
[ "MIT" ]
null
null
null
app/models/__init__.py
LIhDi/python-atendimento-agendamento-back-end
affb722440678415d1d6293e84be3f1743c915b7
[ "MIT" ]
null
null
null
app/models/__init__.py
LIhDi/python-atendimento-agendamento-back-end
affb722440678415d1d6293e84be3f1743c915b7
[ "MIT" ]
null
null
null
from enum import Enum class StatusType(Enum): DEFAULT = "dflag updated_at created_at".split() class UnidadesType(Enum): DEFAULT = "dflag updated_at created_at".split() class AssuntoType(Enum): DEFAULT = "dflag updated_at created_at".split() class PersonsType(Enum): DEFAULT = "dflag updated_at create...
35.405594
109
0.635197
5,014
0.990322
0
0
0
0
0
0
673
0.132925
06282a67e7f0b15f67df455cc6ff5d4a87a91f5b
550
py
Python
2018/day01.py
leandrocoding/aoc
8e7d072d2302fcdec3bd441970ccf81d1479f1ef
[ "MIT" ]
1
2020-12-31T13:32:52.000Z
2020-12-31T13:32:52.000Z
2018/day01.py
leandrocoding/aoc
8e7d072d2302fcdec3bd441970ccf81d1479f1ef
[ "MIT" ]
null
null
null
2018/day01.py
leandrocoding/aoc
8e7d072d2302fcdec3bd441970ccf81d1479f1ef
[ "MIT" ]
null
null
null
import os path = os.path.join(os.path.dirname(__file__), 'day01.txt') with open(path) as f: inputdata = f.readlines() def part1(): total = 0 freqlist = {} for line in inputdata: total += int(line) return total def part2(): total = 0 freqlist = set() while True: for lin...
21.153846
59
0.56
0
0
0
0
0
0
0
0
75
0.136364
062887e67ee371cc8403b61489299bbce2f354a5
2,259
py
Python
setup.py
abhijithneilabraham/signs
1ce8f6fe5468ec9a69d2d29646be3b3e400879d2
[ "MIT" ]
13
2018-06-22T21:30:28.000Z
2022-01-26T20:58:24.000Z
setup.py
abhijithneilabraham/signs
1ce8f6fe5468ec9a69d2d29646be3b3e400879d2
[ "MIT" ]
13
2018-07-29T14:41:52.000Z
2022-02-09T08:22:27.000Z
setup.py
abhijithneilabraham/signs
1ce8f6fe5468ec9a69d2d29646be3b3e400879d2
[ "MIT" ]
3
2018-08-06T06:42:39.000Z
2022-02-10T14:53:02.000Z
#! /usr/bin/env python # # Copyright (C) 2018 Mikko Kotila import os DESCRIPTION = "Signs Text Processing for Deep Learning" LONG_DESCRIPTION = """\ Signs is a utility for text preprocessing, vectorizing, and analysis such as semantic similarity, mainly for the purpose of using unstructured data in deep learning mode...
30.945205
78
0.557769
0
0
0
0
0
0
0
0
990
0.438247
0628a172f443d1ff382b41fa545c5c7bebd39e98
139
py
Python
lascli/util.py
LucidtechAI/las-cli
bf9ca7d016141059c543527c6654cebb2e2f1178
[ "Apache-2.0" ]
null
null
null
lascli/util.py
LucidtechAI/las-cli
bf9ca7d016141059c543527c6654cebb2e2f1178
[ "Apache-2.0" ]
10
2021-04-12T06:42:04.000Z
2022-03-30T10:21:33.000Z
lascli/util.py
LucidtechAI/las-cli
bf9ca7d016141059c543527c6654cebb2e2f1178
[ "Apache-2.0" ]
null
null
null
class NotProvided: pass def nullable(value): if isinstance(value, str) and value == 'null': return None return value
15.444444
50
0.640288
27
0.194245
0
0
0
0
0
0
6
0.043165
062a23a5f74a1d166ea135fc95ab88b6338d9bd7
856
py
Python
burstInfer/get_adjusted.py
ManchesterBioinference/burstInfer
933bc76ae8e7fadc36bab1b6bf07ed18e5978a01
[ "Apache-2.0" ]
1
2021-05-05T05:09:53.000Z
2021-05-05T05:09:53.000Z
burstInfer/get_adjusted.py
ManchesterBioinference/burstInfer
933bc76ae8e7fadc36bab1b6bf07ed18e5978a01
[ "Apache-2.0" ]
2
2022-02-08T20:42:30.000Z
2022-02-11T17:57:22.000Z
burstInfer/get_adjusted.py
ManchesterBioinference/burstInfer
933bc76ae8e7fadc36bab1b6bf07ed18e5978a01
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 9 08:46:08 2020 @author: Jon """ from numba import jit import numpy as np @jit(nopython=True) def get_adjusted(state, K, W, ms2_coeff): #ms2_coeff_flipped = np.flip(ms2_coeff_flipped, 1) ms2_coeff_flipped = ms2_coeff one_accumulator = 0 zero_ac...
24.457143
80
0.603972
0
0
0
0
731
0.853972
0
0
203
0.23715
062db264f7e87f340fddb2744772935245986efa
5,542
py
Python
Snow-Cooling/Libraries/HT_thermal_resistance.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
7
2017-06-02T20:31:22.000Z
2021-04-05T13:52:33.000Z
Snow-Cooling/Libraries/HT_thermal_resistance.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
null
null
null
Snow-Cooling/Libraries/HT_thermal_resistance.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
9
2019-01-24T17:43:41.000Z
2021-07-25T18:08:34.000Z
"""Object name: Resistance Function name: serial_sum(R,nori,nend), performs serial sum of a resistance object list from nori to nend Function name: parallel_sum(R,nori,nend), performs parallel sum of a resistance object list from nori to nend """ ### definition of thermal resistance ### from sympy.interactive ...
39.304965
154
0.601227
4,693
0.846806
0
0
0
0
0
0
3,590
0.647781
062fa22aced8965048eae9457b5cdda95f4b8fc2
2,269
py
Python
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
import csv import MySQLdb from datetime import datetime from tabulate import tabulate #should be changed to sys/argv but this is temporary anyway FILENAME = '/tmp/buttons.csv' NUM_ROWS = 2 def tabulate_dataset(table): headers = ["Mode", "Datetime"] print tabulate(table, headers, tablefmt="grid") + '\n' def...
27.011905
79
0.584839
0
0
0
0
0
0
0
0
760
0.334949
0630137217338e4305c7a3e00109299b6cd31cc9
133
py
Python
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
from flask import session class Session(): @staticmethod def set_session(key: str, value): session[key] = value
12.090909
37
0.646617
102
0.766917
0
0
80
0.601504
0
0
0
0
06315d61570f26c6f3e6abf1ddc7df8cd17de830
44
py
Python
20200428/src/doct/addd_test.py
vultar150/Pyprac
72fab30229ff632df8792eae17492f671e1d60e4
[ "Apache-2.0" ]
null
null
null
20200428/src/doct/addd_test.py
vultar150/Pyprac
72fab30229ff632df8792eae17492f671e1d60e4
[ "Apache-2.0" ]
null
null
null
20200428/src/doct/addd_test.py
vultar150/Pyprac
72fab30229ff632df8792eae17492f671e1d60e4
[ "Apache-2.0" ]
null
null
null
import doctest doctest.testfile("addd.rst")
14.666667
28
0.795455
0
0
0
0
0
0
0
0
10
0.227273
0633ac683c3ed56680bcb92fef00c1d243facc3c
3,040
py
Python
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
null
null
null
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
null
null
null
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
1
2021-02-28T21:52:47.000Z
2021-02-28T21:52:47.000Z
from flask import Flask, request, url_for, redirect, session, flash, jsonify, abort import json # from flask_login import LoginManager, UserMixin, login_required, logout_user from flask_login import login_user, logout_user, login_required import os from flask_restful import Resource, Api from passlib.apps import ...
33.406593
108
0.608553
2,506
0.818687
0
0
127
0.04149
0
0
967
0.31591
0636d326475e08bd9d33f6ec4c15e278d333f1e5
4,554
py
Python
tests/core/test_tile_generator.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
199
2017-10-27T12:13:08.000Z
2022-03-24T09:54:48.000Z
tests/core/test_tile_generator.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
4
2018-03-23T03:15:37.000Z
2019-11-06T15:58:24.000Z
tests/core/test_tile_generator.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
20
2017-10-27T14:41:08.000Z
2021-12-28T10:12:59.000Z
from core_tests_base import CoreTestsBase, FakeTessagon, FakeTileSubClass from tessagon.core.tile_generator import TileGenerator class TestTileGenerator(CoreTestsBase): def test_non_cyclic(self): tessagon = FakeTessagon() tile_generator = TileGenerator(tessagon, ...
48.967742
78
0.572244
4,422
0.971014
0
0
0
0
0
0
208
0.045674
0637f6c3c9de8ad36608c3847e85336fe19b3b26
645
py
Python
and/ttp/2017/semana4/walkingAmongMountains.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
1
2017-09-16T04:05:31.000Z
2017-09-16T04:05:31.000Z
and/ttp/2017/semana4/walkingAmongMountains.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
9
2017-01-25T19:34:38.000Z
2020-07-27T17:02:09.000Z
and/ttp/2017/semana4/walkingAmongMountains.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
null
null
null
n = input(); mp = [[int(i) for i in raw_input()] for j in xrange(n)] pnt = [[0 for i in xrange(n)] for j in xrange(n)] x, y = [int(i) for i in raw_input().split()] for i in xrange(1,x): pnt[0][i] = pnt[0][i-1]+mp[0][i]-mp[0][i-1] if mp[0][i]>mp[0][i-1] else pnt[0][i-1] for i in xrange(1,y): pnt[i][0] = pnt[i-1][0]+...
37.941176
85
0.525581
0
0
0
0
0
0
0
0
0
0
0639398dfb32e33d9f80356f092412a5f93dcc65
368
py
Python
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
from . import config as config_module from .resource import resource_config, Resource from .view import ResourceView __all__ = [ "resource_config", "Resource", "ResourceView", ] __version__ = "1.0a2" def includeme(config): for name in config_module.__all__: method = getattr(config_module, n...
19.368421
47
0.709239
0
0
0
0
0
0
0
0
48
0.130435
063b14d87276bf24509b35e8dd89ae6d528821b9
518
py
Python
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def decryped_data(text, key): char_lower = "" for i in range(97, 123): char_lower += chr(i) char_lower *= 2 char_upper = char_lower.upper() decryped = "" for i in text: if i in char_lower: decryped += char_lower[char_lower.index(i, 26) - key] elif i in char_up...
24.666667
65
0.57722
0
0
0
0
0
0
0
0
4
0.007722
063bfcdb61c52f48cebfa7c465fedd55623d891f
621
py
Python
setup.py
OseiasBeu/speaker_ass
b7ec38c131b17c502348873f5c90450752e41b9e
[ "MIT" ]
null
null
null
setup.py
OseiasBeu/speaker_ass
b7ec38c131b17c502348873f5c90450752e41b9e
[ "MIT" ]
null
null
null
setup.py
OseiasBeu/speaker_ass
b7ec38c131b17c502348873f5c90450752e41b9e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from setuptools import setup with open("README.md", "r") as fh: readme = fh.read() setup(name='fala_assis', version='0.0.1', url='https://github.com/OseiasBeu/AssistenteDeFala', license='MIT License', author='Oseias Beu', long_description=readme, long_des...
34.5
110
0.679549
0
0
0
0
0
0
0
0
306
0.491961
063c305a923cd42896c01fbe6e2e8a0cb43f9912
452
py
Python
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
num_int = 5 num_dec = 7.3 val_str = "texto qualquer " print("Primeiro número é:", num_int) print("O poder do Kakaroto é mais de %i mil" %num_dec) print("Olá mundo " + val_str + str(num_int)) print("Concatenando decimal:", num_dec) print("Concatenando decimal: %.10f" %num_dec) print("Concatenando decimal: " + str(num...
30.133333
55
0.721239
0
0
0
0
0
0
0
0
240
0.526316
063ed7c5bac55d0b3c1f5775f5ccbe6840c1974c
3,603
py
Python
download_data/download_data.py
russelljjarvis/readabilityinscience
353d79f11f2380fd4872242397a255a4b1da675c
[ "MIT" ]
14
2017-03-24T16:01:52.000Z
2021-01-22T17:57:48.000Z
download_data/download_data.py
russelljjarvis/readabilityinscience
353d79f11f2380fd4872242397a255a4b1da675c
[ "MIT" ]
3
2021-03-05T07:49:21.000Z
2022-01-09T00:54:51.000Z
download_data/download_data.py
russelljjarvis/readabilityinscience
353d79f11f2380fd4872242397a255a4b1da675c
[ "MIT" ]
7
2017-08-08T09:46:36.000Z
2021-08-23T16:18:12.000Z
#%% #md """ This script downloads the dataset use in the analysis. __It requires 2 inputs to be specified__ repo_directory and email (see first cell block). """ #%% # Where is the main directory of the repo repo_directory = './' # Pubmed requires you to identify with an email addreesss email = '' #%% import os os...
28.595238
154
0.686095
0
0
0
0
0
0
0
0
2,148
0.59617
063efdb8c7270aa4b860492c35df24062791fbc9
297
py
Python
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from sbdc.preprocessing import ContiguousSegmentSet from sbdc.datasets import bbc_load X = bbc_load() cs = ContiguousSegmentSet( min_segment_length=100, small_segment_vanish_strategy="top") cs.fit(X[:, 2]) text_segments = cs.transform() print text_segments[:2]
19.8
51
0.744108
0
0
0
0
0
0
0
0
28
0.094276
063f03923348104f14d70cb5ad60e17ea2bae4f7
1,586
py
Python
scripts/parser_example.py
sync-or-swim/sos-journaler
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
null
null
null
scripts/parser_example.py
sync-or-swim/sos-journaler
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
27
2020-01-29T05:50:52.000Z
2020-12-20T04:53:01.000Z
scripts/parser_example.py
BryceBeagle/sync-or-swim
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from pathlib import Path from argparse import ArgumentParser import dateutil.parser def main(): parser = ArgumentParser( description="An example script demonstrating how to parse a few " "values out of a FIXM XML file.") parser.add_argument("xml_...
32.367347
73
0.551702
0
0
0
0
0
0
0
0
403
0.254098
0640bc1b181bd6fee650f3342edd6931b1ff3c2c
554
py
Python
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
# Base imports from os import environ # Third party imports from graphene import Field, ObjectType, String, Int # Project imports from graphql_api.tenor.schemas.hacker_gif.result import Result from graphql_api.tenor.resolvers.hacker_gif import resolve_hacker_gifs API_KEY = environ.get('TENOR_API_KEY') class Hack...
23.083333
70
0.743682
243
0.438628
0
0
0
0
0
0
75
0.135379
06421c486cf48d8751641e5e70de10c89a4e549d
2,367
py
Python
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
null
null
null
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
null
null
null
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
1
2019-04-09T06:50:06.000Z
2019-04-09T06:50:06.000Z
# coding: latin-1 # Flask example: https://realpython.com/flask-by-example-part-1-project-setup/ from flask import Flask from waitress import serve app = Flask(__name__) from functions.date import get_date from functions.connect import connect header = '<html>\n\t<header>\n\t\t<title>\n\t\t\tHome control panel\n\t\...
35.863636
246
0.6485
0
0
0
0
1,075
0.454161
0
0
1,462
0.617659
0643039f86602184a503cb24840a75bcaf50a6c2
10,371
py
Python
handlers.py
martinslabber/tape-library-robot-control
ce4ca180c6d5a6be81702c252a1a8b4cde848b9b
[ "MIT" ]
null
null
null
handlers.py
martinslabber/tape-library-robot-control
ce4ca180c6d5a6be81702c252a1a8b4cde848b9b
[ "MIT" ]
1
2020-05-05T09:08:20.000Z
2020-06-19T10:15:01.000Z
handlers.py
martinslabber/tape-library-robot-control
ce4ca180c6d5a6be81702c252a1a8b4cde848b9b
[ "MIT" ]
1
2020-06-15T09:02:01.000Z
2020-06-15T09:02:01.000Z
# Handlers import json import logging from aiohttp import web def tape_library_handler_wrapper( request, action_name, required_params=None, optional_params=None, skip_lock_check=False, ): """This wrapper performs error handling for the API calls. Raises ------ Multiple exception...
29.05042
89
0.563687
0
0
0
0
0
0
7,316
0.705429
6,903
0.665606
0643deae65bf97584696f33e80afdf35b197abcf
1,677
py
Python
robit/core/alert.py
stratusadv/robit
7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27
[ "MIT" ]
null
null
null
robit/core/alert.py
stratusadv/robit
7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27
[ "MIT" ]
1
2021-11-01T18:51:04.000Z
2021-11-01T18:51:04.000Z
robit/core/alert.py
stratusadv/robit
7e0414d0ed3d98bb2c9a8785bf36961ac08f1d27
[ "MIT" ]
null
null
null
import logging from datetime import datetime, timedelta from robit.core.health import Health class Alert: def __init__( self, **kwargs, ): if 'alert_method' in kwargs: self.method = kwargs['alert_method'] if 'alert_method_kwargs' in kwargs: se...
37.266667
119
0.627907
1,580
0.942159
0
0
0
0
0
0
328
0.195587
06440df8fe03e6136138c3851bd70beb0db8af44
5,823
py
Python
validate_tags/validate_master.py
asurion/Hibernate
b95c68ba8dba6a43baea288ade231944d1719988
[ "Apache-2.0" ]
9
2017-06-06T17:47:57.000Z
2021-08-06T18:30:11.000Z
validate_tags/validate_master.py
asurion/Hibernate
b95c68ba8dba6a43baea288ade231944d1719988
[ "Apache-2.0" ]
null
null
null
validate_tags/validate_master.py
asurion/Hibernate
b95c68ba8dba6a43baea288ade231944d1719988
[ "Apache-2.0" ]
null
null
null
import datetime import pytz from utils.timezones import time_zones from utils.CalculateHours import calc_hours def validate_schedule(resource, this_tag, customTagName): t = this_tag if t['Key'].lower() == customTagName.lower(): state = resource.state['Name'] stop_instance = False st...
35.290909
117
0.493732
0
0
0
0
0
0
0
0
913
0.156792
064427ba3481c1d9ed4c628c04dbaf55a12eda29
365
py
Python
202-happy-number/202-happy-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
202-happy-number/202-happy-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
202-happy-number/202-happy-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def isHappy(self, n: int) -> bool: pool = set() pool.add(n) result=n while(result>1): strn = str(result) result = 0 for c in strn: result+=int(c)*int(c) if result in pool: return False ...
26.071429
38
0.441096
365
1
0
0
0
0
0
0
0
0
0647d34191beaa453acced9a85d7fac8926ac453
110
py
Python
pre_questionnaire/admin.py
AurelienNioche/ModelingMadeEasyApp
dbb738dda204906c5f4b7aeb9c71feea961a4cce
[ "MIT" ]
null
null
null
pre_questionnaire/admin.py
AurelienNioche/ModelingMadeEasyApp
dbb738dda204906c5f4b7aeb9c71feea961a4cce
[ "MIT" ]
null
null
null
pre_questionnaire/admin.py
AurelienNioche/ModelingMadeEasyApp
dbb738dda204906c5f4b7aeb9c71feea961a4cce
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import PreQuestionnaire admin.site.register(PreQuestionnaire)
18.333333
37
0.845455
0
0
0
0
0
0
0
0
0
0
0648e18f81ac883f3b49a5656d1320a8eddbf0ed
5,014
py
Python
unitorch/score/voc_map.py
fuliucansheng/UniTorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
2
2022-02-05T08:52:00.000Z
2022-03-27T07:01:34.000Z
unitorch/score/voc_map.py
Lixin-Qian/unitorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
null
null
null
unitorch/score/voc_map.py
Lixin-Qian/unitorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
1
2022-03-27T07:01:13.000Z
2022-03-27T07:01:13.000Z
import numpy as np from collections import defaultdict from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union def _voc_ap( rec, prec, use_07_metric=False, ): """Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11-point method (default:False). ...
33.426667
103
0.553849
0
0
0
0
0
0
0
0
1,098
0.218987
06499670b453111a27b20a04dcc90e10b1a775c3
1,418
py
Python
tests/_test_callable_py3.py
youknowone/callable
a31ea23103d7df156c30d990c5c249844ce302f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/_test_callable_py3.py
youknowone/callable
a31ea23103d7df156c30d990c5c249844ce302f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/_test_callable_py3.py
youknowone/callable
a31ea23103d7df156c30d990c5c249844ce302f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import asyncio from callable import Callable from signature import signature import pytest def f1(a: int, b: str = 'x') -> None: pass @asyncio.coroutine def f2(a: int, b: str = 'x') -> None: pass @pytest.mark.parametrize('f,sig', [ (lambda: None, 'lambda'), (lambda a, b: None, 'lambda a, b'), ...
28.938776
85
0.568406
0
0
0
0
1,264
0.891396
0
0
270
0.190409
06499d2a878e935b1bbb4ea1ae0081bd6e6ed4b7
75
py
Python
.metadata/.plugins/org.python.pydev.shared_interactive_console/history.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
null
null
null
.metadata/.plugins/org.python.pydev.shared_interactive_console/history.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
null
null
null
.metadata/.plugins/org.python.pydev.shared_interactive_console/history.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
1
2021-08-01T22:39:18.000Z
2021-08-01T22:39:18.000Z
import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
37.5
74
0.693333
0
0
0
0
0
0
0
0
7
0.093333
064ab2c6467200414b067feed1868bd5e05cfaa4
1,293
py
Python
caravel/loaders/_png.py
neurospin/pycaravel
412d37ae1b06afcc9645e01a096bbe2674cfe47a
[ "CECILL-B" ]
null
null
null
caravel/loaders/_png.py
neurospin/pycaravel
412d37ae1b06afcc9645e01a096bbe2674cfe47a
[ "CECILL-B" ]
null
null
null
caravel/loaders/_png.py
neurospin/pycaravel
412d37ae1b06afcc9645e01a096bbe2674cfe47a
[ "CECILL-B" ]
1
2020-08-27T13:17:00.000Z
2020-08-27T13:17:00.000Z
# coding: utf-8 ########################################################################## # NSAp - Copyright (C) CEA, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for det...
24.865385
74
0.520495
745
0.576179
0
0
0
0
0
0
1,014
0.784223
064ad9d1f980f75038d7cfdfdcbb95549772aa8a
92
py
Python
src/auth/__init__.py
MarkStefanovic/todo-api
fb6198511712df853e693787839533f0c9956178
[ "MIT" ]
null
null
null
src/auth/__init__.py
MarkStefanovic/todo-api
fb6198511712df853e693787839533f0c9956178
[ "MIT" ]
null
null
null
src/auth/__init__.py
MarkStefanovic/todo-api
fb6198511712df853e693787839533f0c9956178
[ "MIT" ]
null
null
null
from src.auth.adapter import * from src.auth.domain import * from src.auth.service import *
23
30
0.771739
0
0
0
0
0
0
0
0
0
0
064b9917350edf24d9d7c74cf51fcf14eb034321
569
py
Python
gameplay/planning.py
ericgreveson/xwing
5760bf9695b5e081b051f29dce1ba1bf2bc94555
[ "MIT" ]
null
null
null
gameplay/planning.py
ericgreveson/xwing
5760bf9695b5e081b051f29dce1ba1bf2bc94555
[ "MIT" ]
null
null
null
gameplay/planning.py
ericgreveson/xwing
5760bf9695b5e081b051f29dce1ba1bf2bc94555
[ "MIT" ]
null
null
null
class Planning: """ This class represents the Planning phase of a turn """ def __init__(self, game): """ Constructor game: The game under way """ self._game = game def execute(self): """ Run the Planning phase """ ...
28.45
88
0.534271
569
1
0
0
0
0
0
0
223
0.391916
064ca7c37993e4810c14d5f7e1d0f4a40a067487
8,098
py
Python
video_utils.py
Domhnall-Liopa/Lip2Wav
236ae24cd7945da8a75ddea1cfdc3da271c3c59f
[ "MIT" ]
null
null
null
video_utils.py
Domhnall-Liopa/Lip2Wav
236ae24cd7945da8a75ddea1cfdc3da271c3c59f
[ "MIT" ]
null
null
null
video_utils.py
Domhnall-Liopa/Lip2Wav
236ae24cd7945da8a75ddea1cfdc3da271c3c59f
[ "MIT" ]
null
null
null
import json import random import re import subprocess import tempfile from datetime import timedelta import cv2 import numpy as np import requests from vidaug import augmentors as va # this is a static build from https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.4.1-i686-static.tar.xz # requires new ffmpeg v...
32.785425
216
0.67918
382
0.047172
0
0
0
0
0
0
1,951
0.240924
064f53cd615575e4bc66f6d26d74337b90be2852
621
py
Python
aflcov/vis.py
axt/afl-cov-vis
7806fa430113732790563b0f15884a087ebd21ea
[ "BSD-2-Clause" ]
29
2017-11-12T09:35:01.000Z
2022-02-17T09:29:54.000Z
aflcov/vis.py
usc-isi-bass/afl-cov
18e305d101443d8a06c46f9ac080dd45ca13d8bb
[ "BSD-2-Clause" ]
2
2017-11-12T09:40:43.000Z
2018-01-19T10:37:17.000Z
aflcov/vis.py
usc-isi-bass/afl-cov
18e305d101443d8a06c46f9ac080dd45ca13d8bb
[ "BSD-2-Clause" ]
6
2017-11-12T09:50:20.000Z
2022-02-22T06:01:17.000Z
from bingraphvis.base import Content class AflCovInfo(Content): def __init__(self, project): super(AflCovInfo, self).__init__('aflcovinfo', ['text']) self.project = project def gen_render(self, n): node = n.obj n.content[self.name] = { 'data': [{ ...
31.05
130
0.481481
582
0.937198
0
0
0
0
0
0
86
0.138486
064faa0fae768ef7598b80938b851b966512e6ab
3,418
py
Python
corehq/couchapps/tests/test_all_docs.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/couchapps/tests/test_all_docs.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/couchapps/tests/test_all_docs.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from corehq.dbaccessors.couchapps.all_docs import \ get_all_doc_ids_for_domain_grouped_by_db, get_doc_count_by_type, \ delete_all_docs_by_doc_type, get_doc_count_by_domain_type from dimagi.utils.couch.database import get_db from djan...
50.264706
104
0.675834
3,071
0.898479
0
0
1,268
0.370977
0
0
547
0.160035
0650fe2b4a8ec05a4f26bd56fccd6338468b7b46
913
py
Python
parc/instruction.py
kevinyuan/pydgin
9e5dea526a17b23929b2a1d24598154b42323073
[ "BSD-3-Clause" ]
159
2015-02-12T03:28:25.000Z
2022-02-24T22:40:35.000Z
parc/instruction.py
kevinyuan/pydgin
9e5dea526a17b23929b2a1d24598154b42323073
[ "BSD-3-Clause" ]
21
2015-01-31T23:47:26.000Z
2020-12-21T12:41:08.000Z
parc/instruction.py
kevinyuan/pydgin
9e5dea526a17b23929b2a1d24598154b42323073
[ "BSD-3-Clause" ]
40
2015-01-28T21:31:30.000Z
2022-01-25T12:50:23.000Z
#======================================================================= # instruction.py #======================================================================= from pydgin.utils import r_uint class Instruction( object ): def __init__( self, bits, str ): self.bits = r_uint( bits ) self.str = str @prop...
19.020833
72
0.496166
714
0.782037
0
0
564
0.617744
0
0
160
0.175246
06517cf6f2e451230d0d6eb3711d313d63aa2c66
564
py
Python
docs/examples/dev/_semantic_text_features.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/examples/dev/_semantic_text_features.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/examples/dev/_semantic_text_features.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
from autogoal.contrib import find_classes from autogoal.kb import * from autogoal.kb import build_pipelines, build_pipeline_graph from autogoal.contrib.spacy import SpacyNLP from autogoal.contrib._wrappers import FlagsMerger import logging logging.basicConfig(level=logging.INFO) pipeline_space = build_pipeline_gra...
22.56
61
0.77305
0
0
0
0
0
0
0
0
54
0.095745
0651ab151a7c92bb5c33655beaba51093024c9dc
341
py
Python
opytimizer/spaces/__init__.py
anukaal/opytimizer
5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9
[ "Apache-2.0" ]
528
2018-10-01T20:00:09.000Z
2022-03-27T11:15:31.000Z
opytimizer/spaces/__init__.py
anukaal/opytimizer
5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9
[ "Apache-2.0" ]
17
2019-10-30T00:47:03.000Z
2022-03-21T11:39:28.000Z
opytimizer/spaces/__init__.py
anukaal/opytimizer
5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9
[ "Apache-2.0" ]
35
2018-10-01T20:03:23.000Z
2022-03-20T03:54:15.000Z
"""Customizable space module that provides different search spaces implementations. """ from opytimizer.spaces.boolean import BooleanSpace from opytimizer.spaces.grid import GridSpace from opytimizer.spaces.hyper_complex import HyperComplexSpace from opytimizer.spaces.search import SearchSpace from opytimizer.spaces.t...
34.1
66
0.859238
0
0
0
0
0
0
0
0
87
0.255132
0652b6080d711fc812aa3a6054f91161bc0d0a8b
16,913
py
Python
lattpy/spatial.py
dylanljones/lattpy
6779ae7755aaf9e844d63a6f63b5036fb64d9f89
[ "MIT" ]
11
2020-10-29T17:23:02.000Z
2022-02-28T12:25:41.000Z
lattpy/spatial.py
dylanljones/lattpy
6779ae7755aaf9e844d63a6f63b5036fb64d9f89
[ "MIT" ]
7
2021-01-12T13:53:42.000Z
2022-03-29T11:21:58.000Z
lattpy/spatial.py
dylanljones/lattpy
6779ae7755aaf9e844d63a6f63b5036fb64d9f89
[ "MIT" ]
1
2021-10-31T11:15:20.000Z
2021-10-31T11:15:20.000Z
# coding: utf-8 # # This code is part of lattpy. # # Copyright (c) 2021, Dylan Jones # # This code is licensed under the MIT License. The copyright notice in the # LICENSE file in the root directory and this permission notice shall # be included in all copies or substantial portions of the Software. """Spatial algorit...
32.840777
98
0.586945
7,007
0.414297
0
0
197
0.011648
0
0
4,865
0.287649
0653906f675760bbd82805e22137ded59d26086f
1,471
py
Python
test/test_io.py
wiktorn/pyosmium
0517eae40da1347523c72a6cb097a5b6158b25a8
[ "BSD-2-Clause" ]
null
null
null
test/test_io.py
wiktorn/pyosmium
0517eae40da1347523c72a6cb097a5b6158b25a8
[ "BSD-2-Clause" ]
null
null
null
test/test_io.py
wiktorn/pyosmium
0517eae40da1347523c72a6cb097a5b6158b25a8
[ "BSD-2-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD # # This file is part of Pyosmium. # # Copyright (C) 2022 Sarah Hoffmann. import pytest import osmium as o def _run_file(fn): rd = o.io.Reader(fn) try: o.apply(rd, o.SimpleHandler()) finally: rd.close() def test_node_only(test_data): _run_file(test_data(...
21.955224
82
0.636302
0
0
0
0
0
0
0
0
418
0.28416
06540074f347487eb56749881c52a1e16c5be40a
6,615
py
Python
Foobar 3.3.py
SambhavG/Google-foobar
f64f1a4a367c0eab5265e4ed6e22f94b7a297cad
[ "MIT" ]
null
null
null
Foobar 3.3.py
SambhavG/Google-foobar
f64f1a4a367c0eab5265e4ed6e22f94b7a297cad
[ "MIT" ]
null
null
null
Foobar 3.3.py
SambhavG/Google-foobar
f64f1a4a367c0eab5265e4ed6e22f94b7a297cad
[ "MIT" ]
null
null
null
def printMatrix(m): for i in range(0, len(m)): print(m[i]) print("\n") def convertInputToReq(data): matrix1 = data width = len(data) terminalStates = [] for i in range(0, width): #are all in the row 0? all0 = True rowSum = sum(data[i]) if (...
28.636364
92
0.521088
0
0
0
0
0
0
0
0
475
0.071807
06556055c40c35a9d717e9e1b378737090b2df39
302
py
Python
tg_gui/_platform_displayio_/shared.py
TG-Techie/tg-gui
11d0eabeffb36fa43fc90f818624053928c37637
[ "MIT" ]
1
2019-03-20T19:49:14.000Z
2019-03-20T19:49:14.000Z
tg_gui/_platform_displayio_/shared.py
TG-Techie/tg_gui
11d0eabeffb36fa43fc90f818624053928c37637
[ "MIT" ]
15
2019-02-09T12:24:05.000Z
2021-12-01T17:21:06.000Z
tg_gui/_platform_displayio_/shared.py
TG-Techie/tg-gui
11d0eabeffb36fa43fc90f818624053928c37637
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING if TYPE_CHECKING: from displayio import Shape, Group, TileGrid, Palette, Bitmap, OnDiskBitmap NativeElement = Group | Shape | TileGrid | Palette | Bitmap | OnDiskBitmap NativeContainer = Group else: NativeElement = object NativeContainer = object
27.454545
79
0.748344
0
0
0
0
0
0
0
0
0
0
0655cb7f1c625d52133699a96d2f35fe1b202f17
13,279
py
Python
pyaccords/pysrc/ec2instanceinfo.py
MarouenMechtri/accords-platform-1
4f950fffd9fbbf911840cc5ad0fe5b5a331edf42
[ "Apache-2.0" ]
1
2015-02-28T21:25:54.000Z
2015-02-28T21:25:54.000Z
pyaccords/pysrc/ec2instanceinfo.py
MarouenMechtri/accords-platform-1
4f950fffd9fbbf911840cc5ad0fe5b5a331edf42
[ "Apache-2.0" ]
null
null
null
pyaccords/pysrc/ec2instanceinfo.py
MarouenMechtri/accords-platform-1
4f950fffd9fbbf911840cc5ad0fe5b5a331edf42
[ "Apache-2.0" ]
null
null
null
############################################################################## #copyright 2013, Hamid MEDJAHED ([email protected]) Prologue # #Licensed under the Apache License, Version 2.0 (the "License"); # #you may not use this file except in compliance with the License. # #You...
48.112319
158
0.524889
352
0.026508
0
0
0
0
0
0
12,885
0.970329
06585c3b0c0000d446eb614d1e5895fa37089822
1,105
py
Python
backend/project_requests/admin.py
mnieber/taskboard
7925342751e2782bd0a0258eb2d43d9ec90ce9d8
[ "MIT" ]
null
null
null
backend/project_requests/admin.py
mnieber/taskboard
7925342751e2782bd0a0258eb2d43d9ec90ce9d8
[ "MIT" ]
null
null
null
backend/project_requests/admin.py
mnieber/taskboard
7925342751e2782bd0a0258eb2d43d9ec90ce9d8
[ "MIT" ]
null
null
null
from django.contrib import admin from django.http import HttpResponseRedirect from django.urls import path from faker import Faker from .models import ProjectRequest from .utils import create_project_request @admin.register(ProjectRequest) class ProjectRequestAdmin(admin.ModelAdmin): change_list_template = "proj...
29.864865
84
0.608145
861
0.779186
0
0
893
0.808145
0
0
85
0.076923
065a10f929ff09c5fb1f252b5c8f9281c467c8ab
13,477
py
Python
reinforcement_learning/tabular_RL/algorithms/td_zero.py
EliorBenYosef/reinforcement-learning
c694d07044e12c92e08ca8c2ef06b073ca1704d4
[ "MIT" ]
16
2019-09-01T14:12:45.000Z
2022-03-07T03:10:38.000Z
reinforcement_learning/tabular_RL/algorithms/td_zero.py
EliorBenYosef/reinforcement-learning
c694d07044e12c92e08ca8c2ef06b073ca1704d4
[ "MIT" ]
5
2020-11-13T19:08:40.000Z
2022-02-10T04:13:29.000Z
reinforcement_learning/tabular_RL/algorithms/td_zero.py
EliorBenYosef/reinforcement-learning
c694d07044e12c92e08ca8c2ef06b073ca1704d4
[ "MIT" ]
1
2022-03-07T03:10:39.000Z
2022-03-07T03:10:39.000Z
import numpy as np from gym import wrappers from reinforcement_learning.utils.utils import decrement_eps, EPS_DEC_LINEAR, pickle_save from reinforcement_learning.tabular_RL.utils import init_v, init_q, init_q1_q2, \ max_action_q, max_action_q1_q2, eps_greedy_q, eps_greedy_q1_q2, print_v class TD0PredictionModel:...
34.205584
119
0.549974
13,178
0.977814
0
0
0
0
0
0
1,068
0.079246