hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3fac10f2bdcd4b7a618ca11ab49572dc143b26f3
2,050
py
Python
hangman/game.py
leonracsis/itp-u4-c2-hangman-game
99b7d225f27f779c9ee114223c719ab569e76075
[ "MIT" ]
null
null
null
hangman/game.py
leonracsis/itp-u4-c2-hangman-game
99b7d225f27f779c9ee114223c719ab569e76075
[ "MIT" ]
null
null
null
hangman/game.py
leonracsis/itp-u4-c2-hangman-game
99b7d225f27f779c9ee114223c719ab569e76075
[ "MIT" ]
null
null
null
from .exceptions import * import random # Complete with your own, just for fun :) LIST_OF_WORDS = [] def _get_random_word(list_of_words): if not list_of_words: raise InvalidListOfWordsException("Invalid List of Words") return random.choice(list_of_words) def _mask_word(word): if not word: ...
28.082192
82
0.662439
a435a0c9f61e09b94da41c9c8e31e6bb65e4f740
873
py
Python
CameraTest.py
pinaxe1/OrangePI-One-Tensorflow
fc5382b168a8007036ec02d63530663ad9f63063
[ "MIT" ]
null
null
null
CameraTest.py
pinaxe1/OrangePI-One-Tensorflow
fc5382b168a8007036ec02d63530663ad9f63063
[ "MIT" ]
null
null
null
CameraTest.py
pinaxe1/OrangePI-One-Tensorflow
fc5382b168a8007036ec02d63530663ad9f63063
[ "MIT" ]
null
null
null
''' The program expect presence of /dev/video1 device which is turn created by v4l2loopback and receiving feed grom vidcopy to activate device next 7 commands should be performed on OrangePi Armbian sudo sunxi-pio -m "PG11<1><0><1><1>" sudo modprobe gc2035 sudo modprobe vfe_v4l2 sleep 5 sudo modprobe v4l2loopback cd ~...
26.454545
119
0.71134
70a42960e3d7d2d8c39b5723e1a04d49e20b347b
91
py
Python
src/pygame-demo/snek/core/colors.py
Adam-Jimenez/python-demo
c1d222d88f62a5b6bfdfa01bbbc9e2fdce5a1d6b
[ "MIT" ]
null
null
null
src/pygame-demo/snek/core/colors.py
Adam-Jimenez/python-demo
c1d222d88f62a5b6bfdfa01bbbc9e2fdce5a1d6b
[ "MIT" ]
null
null
null
src/pygame-demo/snek/core/colors.py
Adam-Jimenez/python-demo
c1d222d88f62a5b6bfdfa01bbbc9e2fdce5a1d6b
[ "MIT" ]
null
null
null
COLORS = { 'white': (255, 255, 255), 'red': (255, 0, 0), 'black': (0, 0, 0), }
15.166667
29
0.395604
6d57dabc71759ad84ce3b23d8ff25205879e7af3
869
py
Python
setup.py
spasche/aiohue
65798ed56f6f123a24a961ac87f604d79a221540
[ "Apache-2.0" ]
null
null
null
setup.py
spasche/aiohue
65798ed56f6f123a24a961ac87f604d79a221540
[ "Apache-2.0" ]
null
null
null
setup.py
spasche/aiohue
65798ed56f6f123a24a961ac87f604d79a221540
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages long_description = open('README.md').read() setup( name='aiohue', version='2.5.1', license='Apache License 2.0', url='https://github.com/home-assistant-libs/aiohue', author='Paulus Schoutsen', author_email='paulus@paulusschoutsen.nl', descriptio...
31.035714
75
0.669735
b5159f160a8cb80cfb425d3198b06cfe05ef8c47
6,483
py
Python
test/functional/tiertwo_governance_invalid_budget.py
PivxLiteDev/PivxLite
648d4a193b61b1996b41e9f6c6c468875c757cdd
[ "MIT" ]
null
null
null
test/functional/tiertwo_governance_invalid_budget.py
PivxLiteDev/PivxLite
648d4a193b61b1996b41e9f6c6c468875c757cdd
[ "MIT" ]
3
2020-02-06T10:15:07.000Z
2022-01-13T00:08:49.000Z
test/functional/tiertwo_governance_invalid_budget.py
PivxLiteDev/PivxLite
648d4a193b61b1996b41e9f6c6c468875c757cdd
[ "MIT" ]
9
2020-03-10T14:14:25.000Z
2022-03-05T13:43:35.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import PivxlTestFramework from test_framework.util import ( assert_equal, ...
45.65493
102
0.660651
393def5cc5f85611b7a3a548753abfd8dc1919ec
2,974
py
Python
var/spack/repos/builtin/packages/emacs/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-07-03T22:53:51.000Z
2021-07-03T22:53:51.000Z
var/spack/repos/builtin/packages/emacs/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-03-23T17:08:14.000Z
2021-04-01T17:18:22.000Z
var/spack/repos/builtin/packages/emacs/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-01-10T18:54:54.000Z
2021-07-03T22:57:16.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import sys class Emacs(AutotoolsPackage, GNUMirrorPackage): """The Emacs programmable text edit...
35.831325
94
0.662744
b88a9d298f7666f29844056e86e393e4c4925d38
21,957
py
Python
acloud-dl.py
affansyed/acloud-dl
dcf350c2e9e22466a128e89b5758bdc2bb982ff1
[ "MIT" ]
null
null
null
acloud-dl.py
affansyed/acloud-dl
dcf350c2e9e22466a128e89b5758bdc2bb982ff1
[ "MIT" ]
null
null
null
acloud-dl.py
affansyed/acloud-dl
dcf350c2e9e22466a128e89b5758bdc2bb982ff1
[ "MIT" ]
1
2021-12-07T15:19:28.000Z
2021-12-07T15:19:28.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # pylint: disable=E,C,W,R import sys import time import acloud import argparse from acloud import __version__ from acloud._colorized import * from acloud._getpass import GetPass from acloud._vtt2srt import WebVtt2Srt from acloud._progress import ProgressBar from acloud._colo...
53.293689
159
0.478799
53b63a008b1f33e803cfd4b04978d5850667f189
27,087
py
Python
kartothek/io/eager.py
jorisvandenbossche/kartothek
18b11e7b060bb778668ffc4e2f468910120e6385
[ "MIT" ]
2
2019-05-29T09:45:20.000Z
2019-06-24T19:06:46.000Z
kartothek/io/eager.py
jorisvandenbossche/kartothek
18b11e7b060bb778668ffc4e2f468910120e6385
[ "MIT" ]
18
2019-11-15T15:33:53.000Z
2022-03-04T02:08:18.000Z
kartothek/io/eager.py
jorisvandenbossche/kartothek
18b11e7b060bb778668ffc4e2f468910120e6385
[ "MIT" ]
null
null
null
import warnings from functools import partial from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union, cast import pandas as pd from kartothek.core.common_metadata import ( empty_dataframe_from_schema, make_meta, store_schema_metadata, ) from kartothek.core.dataset import DatasetMet...
31.754982
193
0.675195
6a275e1ab187a61d2eff4c4d582262ecd8e91629
26,437
py
Python
model/supermodel.py
MAC-AutoML/YOCO-BERT
94e513999524b5d5a9fb19ec93d2c05ce08ee5b7
[ "MIT" ]
41
2021-06-05T02:50:07.000Z
2022-03-17T06:19:05.000Z
model/supermodel.py
MAC-AutoML/YOCO-BERT
94e513999524b5d5a9fb19ec93d2c05ce08ee5b7
[ "MIT" ]
3
2021-07-01T05:36:09.000Z
2021-07-19T04:39:29.000Z
model/supermodel.py
MAC-AutoML/YOCO-BERT
94e513999524b5d5a9fb19ec93d2c05ce08ee5b7
[ "MIT" ]
5
2021-06-07T02:58:40.000Z
2021-09-04T07:14:44.000Z
# -*- coding: utf-8 -*- import sys sys.path.append('./') import math import os import warnings from dataclasses import dataclass from typing import Optional, Tuple import torch import torch.utils.checkpoint from torch import nn from torch.nn import CrossEntropyLoss, MSELoss import transformers from transformers.activ...
35.968707
159
0.689413
c67c5fce4a1db4284c2b998cd9ee1376ba526bde
1,073
py
Python
text_complexity_analyzer_cm/utils/utils.py
seduerr91/persuasiveness-metric
ea1c0cffe5a3fd9d2e423e54b35942127fe94b97
[ "MIT" ]
1
2022-03-08T21:31:23.000Z
2022-03-08T21:31:23.000Z
text_complexity_analyzer_cm/utils/utils.py
seduerr91/persuasiveness-metric
ea1c0cffe5a3fd9d2e423e54b35942127fe94b97
[ "MIT" ]
null
null
null
text_complexity_analyzer_cm/utils/utils.py
seduerr91/persuasiveness-metric
ea1c0cffe5a3fd9d2e423e54b35942127fe94b97
[ "MIT" ]
null
null
null
import spacy from spacy.tokens import Doc from spacy.tokens import Span from spacy.tokens import Token from typing import List from text_complexity_analyzer_cm.constants import ACCEPTED_LANGUAGES def split_text_into_paragraphs(text: str) -> List[str]: text_aux = text.strip() paragraphs = text_aux.split('\n\...
29
87
0.702703
1717adcfa9b8ddee2f36bb1a7e12d032dd9d49ec
4,064
py
Python
test/test_CifFileReader.py
PDBeurope/pdbecif
cd5319b416260b8e13485548f6a40bb9e3856e19
[ "Apache-2.0" ]
15
2020-05-18T22:30:05.000Z
2022-03-28T10:57:25.000Z
test/test_CifFileReader.py
SuperXiang/pdbecif
cd5319b416260b8e13485548f6a40bb9e3856e19
[ "Apache-2.0" ]
1
2021-05-13T03:13:02.000Z
2021-05-13T03:13:02.000Z
test/test_CifFileReader.py
SuperXiang/pdbecif
cd5319b416260b8e13485548f6a40bb9e3856e19
[ "Apache-2.0" ]
1
2022-02-08T08:24:30.000Z
2022-02-08T08:24:30.000Z
import os import unittest import pdbecif.mmcif_io as mmcif_IO from pdbecif.mmcif import CifFile, CIFWrapper class CifFileReaderTestCase(unittest.TestCase): def setUp(self): self.FILE_ROOT = os.path.dirname(os.path.abspath(__file__)) self.TEST_CIF_FILE = os.path.join(self.FILE_ROOT, "test_data/us...
35.33913
88
0.616388
40854b7a7256652d40ce8fbb75bc16713abc5c37
2,145
py
Python
spiral/utils/io.py
acdaniells/spiral
d78344007969d7c991216901b4a9d3ad7d768587
[ "BSD-3-Clause" ]
null
null
null
spiral/utils/io.py
acdaniells/spiral
d78344007969d7c991216901b4a9d3ad7d768587
[ "BSD-3-Clause" ]
1
2020-04-01T18:39:48.000Z
2020-04-01T18:39:48.000Z
spiral/utils/io.py
acdaniells/spiral
d78344007969d7c991216901b4a9d3ad7d768587
[ "BSD-3-Clause" ]
1
2020-04-01T18:36:44.000Z
2020-04-01T18:36:44.000Z
""" Spiral IO utility. """ from spiral.core.exc import SpiralError import pandas as pd import pkg_resources def get_package_name() -> str: """ Get the package name. Returns ------- str The package name. """ return __name__.split(".")[0] def resource_exists(filename: str) -> b...
19.678899
72
0.617249
4cd28db9c92a0decfcc7d935c58b6ed223ee9fb0
30,758
py
Python
search_attention.py
Euphoria16/GMPQ
f93f8428bc025e01ab01c8f8ffd1d551598f716a
[ "MIT" ]
16
2021-08-05T17:12:36.000Z
2022-01-08T11:23:14.000Z
search_attention.py
Euphoria16/GMPQ
f93f8428bc025e01ab01c8f8ffd1d551598f716a
[ "MIT" ]
2
2021-08-17T01:37:38.000Z
2021-11-29T10:34:11.000Z
search_attention.py
Euphoria16/GMPQ
f93f8428bc025e01ab01c8f8ffd1d551598f716a
[ "MIT" ]
2
2021-08-06T03:38:01.000Z
2021-08-21T07:36:01.000Z
import argparse import os import random import shutil import time import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.multiprocessing as mp import torch.utils.data import torch.utils.data.distr...
42.898187
146
0.602412
cbcdf4bf565b42edf1e04e35d5ff79c0fbe5b561
247
py
Python
basic lists more exercises/zero to back.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
basic lists more exercises/zero to back.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
basic lists more exercises/zero to back.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
numbers = input().split(",") zero_list = [] others_list = [] for el in numbers: element = int(el) if element == 0: zero_list.append(element) else: others_list.append(element) others_list += zero_list print(others_list)
20.583333
35
0.643725
fea178a596f5dc1852b2a8f6574b1a05115a0ce9
6,769
py
Python
users/tests/test_views.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
null
null
null
users/tests/test_views.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
null
null
null
users/tests/test_views.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from institution.models import Institution from users.models import CustomUser from users.models import Profile from users.views import RegisterView, CompleteRegistrationView class UserViewTests(TestCase): fixtures = [ 'institution/fixture...
35.814815
98
0.629487
4854572f8c890b136885150d7fe104d9ce061bbb
3,713
py
Python
intcode/cpu.py
codedstructure/aoc2019
62927bce2091e77c3d6c7de3b8ffce3afd2ccb63
[ "MIT" ]
null
null
null
intcode/cpu.py
codedstructure/aoc2019
62927bce2091e77c3d6c7de3b8ffce3afd2ccb63
[ "MIT" ]
null
null
null
intcode/cpu.py
codedstructure/aoc2019
62927bce2091e77c3d6c7de3b8ffce3afd2ccb63
[ "MIT" ]
null
null
null
""" Intcode CPU interpreter """ from queue import Queue class IntcodeCpu: def __init__(self, program): self.ip = 0 self.memory = program self.save_stack = [] self.input_queue = Queue() self.output_queue = Queue() p_count = { 1: 3, 2: 3, 7: 3, 8: 3, 5: ...
28.343511
67
0.496095
32494830dc6d015a3c11faa7b3ac4b00e13961f4
2,591
py
Python
MS17-010/eternalchampion_poc.py
eaneatfruit/ExploitDev
ebe4b61a2b15395c0d389e9ff7cc6a68a1b4e275
[ "MIT" ]
null
null
null
MS17-010/eternalchampion_poc.py
eaneatfruit/ExploitDev
ebe4b61a2b15395c0d389e9ff7cc6a68a1b4e275
[ "MIT" ]
null
null
null
MS17-010/eternalchampion_poc.py
eaneatfruit/ExploitDev
ebe4b61a2b15395c0d389e9ff7cc6a68a1b4e275
[ "MIT" ]
null
null
null
#!/usr/bin/python from impacket import smb from mysmb import MYSMB from struct import pack import sys ''' PoC: demonstrates how NSA eternalchampion controls RIP Note: - this PoC is tested against only Windows 7 x64 with 2 and 4 logical processors ''' USERNAME = '' PASSWORD = '' if len(sys.argv) != 2: print("{} <ip...
30.127907
116
0.719027
73372b2bc7e3e1f4e1a7ab8597aeeb47b414fde2
2,622
py
Python
settings/dev.py
forevergao/loonflow
c21f6a7fa01ec6a4be1dcfc08c3ca40c6c3e42bd
[ "MIT" ]
1
2019-04-24T12:39:07.000Z
2019-04-24T12:39:07.000Z
settings/dev.py
awsay/loonflow
d745f64bfa3d7892fb47e62ed7cec172ddac7c28
[ "MIT" ]
1
2019-04-02T06:32:03.000Z
2019-04-02T06:32:03.000Z
settings/dev.py
awsay/loonflow
d745f64bfa3d7892fb47e62ed7cec172ddac7c28
[ "MIT" ]
null
null
null
from settings.common import * MIDDLEWARE = [ 'service.csrf_service.DisableCSRF', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.aut...
33.615385
131
0.539283
31722da3c39424845250f7d9b1e98eadce8bb293
1,539
py
Python
athena/horovod_main.py
Huang17/athena
9077f57f5b7aa64a28487d8b30f1781783d45a42
[ "Apache-2.0" ]
1
2020-08-26T08:56:49.000Z
2020-08-26T08:56:49.000Z
athena/horovod_main.py
shuaijiang/athena-2
5d4d6d13075b8ee9fd824ce6258cb8f55dd157eb
[ "Apache-2.0" ]
null
null
null
athena/horovod_main.py
shuaijiang/athena-2
5d4d6d13075b8ee9fd824ce6258cb8f55dd157eb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2019 ATHENA AUTHORS; Xiangang Li # 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 # # U...
34.2
80
0.689409
34caa512e3f6fcf93e9b677a158e8ca520ed9ac2
4,876
py
Python
leetcode_python/Tree/print-binary-tree.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Tree/print-binary-tree.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Tree/print-binary-tree.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
""" LeetCode 655. Print Binary Tree Print a binary tree in an m*n 2D string array following these rules: The row number m should be equal to the height of the given binary tree. The column number n should always be an odd number. The root node's value (in string format) should be put in the exactly middle of the firs...
33.861111
699
0.543478
814475d04de916ded03eb4fd29102ec2ed5a8163
6,996
py
Python
homeassistant/components/logi_circle/camera.py
cwilhelm/home-assistant
12d97f0637196c7e19bc655fc82da1a5d2c4888c
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/logi_circle/camera.py
rdbahm/home-assistant
c8048e1aff7063e0301a208783a9fc939d05a100
[ "Apache-2.0" ]
null
null
null
homeassistant/components/logi_circle/camera.py
rdbahm/home-assistant
c8048e1aff7063e0301a208783a9fc939d05a100
[ "Apache-2.0" ]
1
2022-02-20T07:41:14.000Z
2022-02-20T07:41:14.000Z
"""Support to the Logi Circle cameras.""" import asyncio from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.camera import ( ATTR_ENTITY_ID, ATTR_FILENAME, CAMERA_SERVICE_SCHEMA, DOMAIN, PLATFORM_SCHEMA, SUPPORT_ON_OFF, Camera) from homeassistant.const import (...
33.961165
78
0.679245
8195f4d1192c09c5df5f5d1a495fa62e82615fad
2,050
py
Python
rbig/_src/losses.py
IPL-UV/rb
092d78a0ea5f9670c5cd4f70ff054ec58ff309af
[ "MIT" ]
6
2020-10-14T08:35:29.000Z
2022-02-18T23:26:30.000Z
rbig/_src/losses.py
IPL-UV/rb
092d78a0ea5f9670c5cd4f70ff054ec58ff309af
[ "MIT" ]
11
2020-10-08T10:02:38.000Z
2021-03-26T16:00:41.000Z
rbig/_src/losses.py
IPL-UV/rbig
092d78a0ea5f9670c5cd4f70ff054ec58ff309af
[ "MIT" ]
null
null
null
from typing import Union import numpy as np from scipy.stats import norm, gaussian_kde def negative_log_likelihood(X: np.ndarray, X_ldj: np.ndarray) -> np.ndarray: pz = norm.logpdf(X).sum(axis=-1) log_prob = pz + X_ldj return -np.mean(log_prob) def neg_entropy_normal(data, bins: Union[str, int] = "auto"...
25.949367
76
0.550244
a704cdb1063ef628366cc0a3b246068c32d37dc0
7,952
py
Python
test/functional/example_test.py
cdonnachie/Avian
31fbaaa732af33ed50bd9d5b51023d985c7de683
[ "MIT" ]
null
null
null
test/functional/example_test.py
cdonnachie/Avian
31fbaaa732af33ed50bd9d5b51023d985c7de683
[ "MIT" ]
null
null
null
test/functional/example_test.py
cdonnachie/Avian
31fbaaa732af33ed50bd9d5b51023d985c7de683
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Copyright (c) 2017-2020 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ An example functional test The module-level docstring...
40.779487
118
0.68423
6a4951c6b9a861d5d20359dce35485c8945d6801
4,904
py
Python
melati/wallet/wallet_pool_store.py
luzofex/melati-blockchain
bddc95ed3a8c5631488cd44a9e76b764c19b4568
[ "Apache-2.0" ]
null
null
null
melati/wallet/wallet_pool_store.py
luzofex/melati-blockchain
bddc95ed3a8c5631488cd44a9e76b764c19b4568
[ "Apache-2.0" ]
null
null
null
melati/wallet/wallet_pool_store.py
luzofex/melati-blockchain
bddc95ed3a8c5631488cd44a9e76b764c19b4568
[ "Apache-2.0" ]
null
null
null
import logging from typing import List, Tuple, Dict, Optional import aiosqlite from melati.types.coin_solution import CoinSolution from melati.util.db_wrapper import DBWrapper from melati.util.ints import uint32 log = logging.getLogger(__name__) class WalletPoolStore: db_connection: aiosqlite.Connection db...
41.559322
119
0.653956
f431634900d76cde0def851323ef059366643e00
92
py
Python
Pattern/21_pattern.py
manish1822510059/Python-1000-program
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
1
2021-03-06T03:33:42.000Z
2021-03-06T03:33:42.000Z
Pattern/21_pattern.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
Pattern/21_pattern.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
for i in range(1,6): for j in range(5,i-1,-1): print(i,end="") print()
23
30
0.456522
563aeff287da7bfd1444ed33c2f0ac004a4803bb
16,581
py
Python
code/src03_Train_Model_for_Segmentation_Channel/old_code/run01_CNN_Classification_with_Channel_train.py
gakarak/Challenge_Cervical_Cancer_Screening-
7cb7cb308b43de4f85a09053723e50c368c05891
[ "Apache-2.0" ]
null
null
null
code/src03_Train_Model_for_Segmentation_Channel/old_code/run01_CNN_Classification_with_Channel_train.py
gakarak/Challenge_Cervical_Cancer_Screening-
7cb7cb308b43de4f85a09053723e50c368c05891
[ "Apache-2.0" ]
null
null
null
code/src03_Train_Model_for_Segmentation_Channel/old_code/run01_CNN_Classification_with_Channel_train.py
gakarak/Challenge_Cervical_Cancer_Screening-
7cb7cb308b43de4f85a09053723e50c368c05891
[ "Apache-2.0" ]
2
2017-06-27T07:14:06.000Z
2021-07-20T15:21:58.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'ar' import cv2 import time import shutil import os import math from scipy import ndimage import matplotlib.pyplot as plt import skimage.io as skio import skimage.transform as sktf import skimage.morphology as skmorph import skimage.exposure as skexp import numpy ...
41.871212
146
0.581147
ee9fbf910165fc49a236a2cc60bbbd03db9bffc1
3,321
py
Python
python/time.py
3mdeb/bits
19da7046a7303f1de8b53165eea1a6f486757c03
[ "BSD-3-Clause" ]
215
2015-08-05T07:31:35.000Z
2022-03-25T17:34:54.000Z
python/time.py
marcol3786/bits
19da7046a7303f1de8b53165eea1a6f486757c03
[ "BSD-3-Clause" ]
12
2015-09-07T14:09:53.000Z
2021-04-07T05:03:26.000Z
python/time.py
marcol3786/bits
19da7046a7303f1de8b53165eea1a6f486757c03
[ "BSD-3-Clause" ]
71
2015-08-05T02:35:13.000Z
2022-02-11T21:16:39.000Z
# Copyright (c) 2011, Intel Corporation # 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, # this list of condit...
34.59375
121
0.696477
baa149ccc47be68301164ce436ac3fbcd809f2e0
1,523
py
Python
bundle/vim-orgmode/tests/run_tests.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
bundle/vim-orgmode/tests/run_tests.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
bundle/vim-orgmode/tests/run_tests.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import test_vimbuffer import test_libagendafilter import test_libcheckbox import test_libbase import test_libheading import test_liborgdate import test_liborgdate_parsing import test_liborgdatetime import test_liborgtimerange import test_plugin_date import test_plugin_ed...
26.258621
52
0.829941
f3c2b79084395356f9c28fa931aad64fb389a6ea
58,208
py
Python
pysnmp-with-texts/A3COM-HUAWEI-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/A3COM-HUAWEI-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/A3COM-HUAWEI-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module A3COM-HUAWEI-DOT3-EFM-EPON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-DOT3-EFM-EPON-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:04:35 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ...
172.724036
4,940
0.775512
66665090a40521285c420044f6b7070e62249b7b
3,706
py
Python
tests/test_selfies_utils.py
ur-whitelab/selfies
6ee9529493da303f55f91994ca0c28fb04aa7606
[ "Apache-2.0" ]
367
2019-06-03T13:07:17.000Z
2022-03-29T23:28:14.000Z
tests/test_selfies_utils.py
ur-whitelab/selfies
6ee9529493da303f55f91994ca0c28fb04aa7606
[ "Apache-2.0" ]
56
2019-07-03T15:01:18.000Z
2022-02-24T19:10:49.000Z
tests/test_selfies_utils.py
ur-whitelab/selfies
6ee9529493da303f55f91994ca0c28fb04aa7606
[ "Apache-2.0" ]
108
2019-06-02T01:36:31.000Z
2022-03-20T08:15:20.000Z
import pytest import selfies as sf class Entry: def __init__(self, selfies, symbols, label, one_hot): self.selfies = selfies self.symbols = symbols self.label = label self.one_hot = one_hot @pytest.fixture() def dataset(): stoi = {"[nop]": 0, "[O]": 1, ".": 2, "[C]": 3, "[F...
29.887097
75
0.497572
93087e939536e17247d12458f25bfacc5cb78380
4,839
py
Python
scripts/module/analysis/target_site_composition.py
Naoto-Imamachi/MIRAGE
448d7f2b62f0830c0abd3eb1435d16baffc5d3f9
[ "MIT" ]
3
2017-01-16T03:31:38.000Z
2021-01-04T16:00:59.000Z
scripts/module/analysis/target_site_composition.py
Imamachi-n/MIRAGE
448d7f2b62f0830c0abd3eb1435d16baffc5d3f9
[ "MIT" ]
null
null
null
scripts/module/analysis/target_site_composition.py
Imamachi-n/MIRAGE
448d7f2b62f0830c0abd3eb1435d16baffc5d3f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' target_site_composition.py: Calculate target site composition(e.g. AU composition flanking the seed region) -------- miRNA |||||||| ---------------- -------- ---------------- TargetRNA upstream seed downstream (30nt) (8nt) ...
41.715517
218
0.65902
6ba9fb808a4ebd5075f96b0aaaf86e1930c26ef2
387
py
Python
ghost/asgi.py
safia88/GhostPost
5e774ffbefcdb7b8a19f2a59b2ab4bfcf56b728c
[ "MIT" ]
null
null
null
ghost/asgi.py
safia88/GhostPost
5e774ffbefcdb7b8a19f2a59b2ab4bfcf56b728c
[ "MIT" ]
null
null
null
ghost/asgi.py
safia88/GhostPost
5e774ffbefcdb7b8a19f2a59b2ab4bfcf56b728c
[ "MIT" ]
null
null
null
""" ASGI config for ghost project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
03a6142f682e34614a93e0b15e5b0c743802b1c4
277
py
Python
PythonExercicios/ex107/teste.py
Lucas-ns/Python-3-Curso-Em-Video
f6d338fffd7a4606d34fab09634eea0fe4b3dfb3
[ "MIT" ]
null
null
null
PythonExercicios/ex107/teste.py
Lucas-ns/Python-3-Curso-Em-Video
f6d338fffd7a4606d34fab09634eea0fe4b3dfb3
[ "MIT" ]
null
null
null
PythonExercicios/ex107/teste.py
Lucas-ns/Python-3-Curso-Em-Video
f6d338fffd7a4606d34fab09634eea0fe4b3dfb3
[ "MIT" ]
null
null
null
from ex107 import moeda p = float(input('Digite o preço: R$')) print(f'A metade de R${p} é R${moeda.metade(p)}') print(f'O dobro de R${p} é R${moeda.dobro(p)}') print(f'Aumentando 10%, temos R${moeda.aumentar(p, 10)}') print(f'Reduzindo 13%, temos R${moeda.diminuir(p, 13)}')
34.625
57
0.66065
b4ca505f4a1703410cd6a9d76b8634be4ee3c006
1,004
py
Python
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/share/doc/networkx-2.2/examples/drawing/plot_weighted_graph.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/share/doc/networkx-2.2/examples/drawing/plot_weighted_graph.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/share/doc/networkx-2.2/examples/drawing/plot_weighted_graph.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
#! python """ ============== Weighted Graph ============== An example using Graph as a weighted network. """ # Author: Aric Hagberg (hagberg@lanl.gov) import matplotlib.pyplot as plt import networkx as nx G = nx.Graph() G.add_edge('a', 'b', weight=0.6) G.add_edge('a', 'c', weight=0.2) G.add_edge('c', 'd', weight=0.1...
24.487805
75
0.618526
80c74151ecb20f7f6e0f1b242f0304370e857b4e
6,021
py
Python
coldtype/blender/__init__.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
coldtype/blender/__init__.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
coldtype/blender/__init__.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
# to be loaded from within Blender import os, math from coldtype.geometry.rect import Rect from coldtype.pens.datpen import DATPen, DATPens from coldtype.pens.blenderpen import BlenderPen, BPH from coldtype.time import Frame, Timeline from coldtype.renderable import renderable from coldtype.renderable.animation impo...
31.52356
101
0.555057
8e13297e4ab1e532d2d8d742e702fdd96cd24e72
930
py
Python
push_main-pushplus.py
Weidows/AutoMihoyoBBS
62df3ffe306b6be742f75050d854293f4ac10483
[ "MIT" ]
338
2021-05-23T14:06:29.000Z
2022-03-31T13:46:44.000Z
push_main-pushplus.py
Weidows/AutoMihoyoBBS
62df3ffe306b6be742f75050d854293f4ac10483
[ "MIT" ]
59
2021-06-08T10:29:14.000Z
2022-03-30T12:19:11.000Z
push_main-pushplus.py
Weidows/AutoMihoyoBBS
62df3ffe306b6be742f75050d854293f4ac10483
[ "MIT" ]
129
2021-06-19T10:42:36.000Z
2022-03-31T12:58:48.000Z
import sys import time import random import subprocess from request import http SendKey = "" send_Url = "http://www.pushplus.plus/send" python_Path = sys.executable run_ShellCommand = python_Path + " main_multi.py autorun" for i in range(2): opt_id, opt_info = subprocess.getstatusoutput(run_ShellCommand) if...
22.682927
101
0.57957
011d82da4840fcb2683d0d0b66de7d1df52bc644
3,224
py
Python
gcpdiag/lint/command_test.py
eyalzek/gcpdiag
0378898dc407271741de33fb56f59aebf905292b
[ "Apache-2.0" ]
null
null
null
gcpdiag/lint/command_test.py
eyalzek/gcpdiag
0378898dc407271741de33fb56f59aebf905292b
[ "Apache-2.0" ]
null
null
null
gcpdiag/lint/command_test.py
eyalzek/gcpdiag
0378898dc407271741de33fb56f59aebf905292b
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC # # 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, ...
38.380952
80
0.67897
2a679c9754dc54e38dee6cf3f3e0c47c1ae0b64c
567
py
Python
archivable_model/tests/models.py
martinfaucheux/django-archving
9b1cc056c2f6e92fa42e31079a5f87037deef4e0
[ "MIT" ]
1
2022-01-19T19:03:53.000Z
2022-01-19T19:03:53.000Z
archivable_model/tests/models.py
martinfaucheux/django-archiving
9b1cc056c2f6e92fa42e31079a5f87037deef4e0
[ "MIT" ]
null
null
null
archivable_model/tests/models.py
martinfaucheux/django-archiving
9b1cc056c2f6e92fa42e31079a5f87037deef4e0
[ "MIT" ]
null
null
null
from archivable_model.models import ArchivableModel from django.db import models class Author(ArchivableModel): name = models.CharField(max_length=100, blank=True) def __str__(self): return self.name class Category(ArchivableModel): name = models.CharField(max_length=100, blank=True) def _...
22.68
67
0.728395
d620390fa83d9db3fdf5653864b67b076993bb9b
4,964
py
Python
UHACK/summaryKeywords.py
rajatrawataku1/Thiknpad
ae62efde9520c54ab8d2dd9164815609c1abf67c
[ "MIT" ]
null
null
null
UHACK/summaryKeywords.py
rajatrawataku1/Thiknpad
ae62efde9520c54ab8d2dd9164815609c1abf67c
[ "MIT" ]
null
null
null
UHACK/summaryKeywords.py
rajatrawataku1/Thiknpad
ae62efde9520c54ab8d2dd9164815609c1abf67c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: iso-8859-15 -*- # from __future__ import absolute_import # from __future__ import division, unicode_literals import newspaper from newspaper import Article from nltk import word_tokenize, pos_tag, ne_chunk import unicodedata from nltk import word_tokenize, pos_tag, ne_chunk from summy im...
31.417722
94
0.591056
0a7de2a74606abf1a9046300ef1883c3da710358
4,022
py
Python
examples/get_server_boot_once.py
lenovo/lenovo-python-redfish
a2d2608aa33ee5087b62bf46695394571a1aaad9
[ "Apache-2.0" ]
null
null
null
examples/get_server_boot_once.py
lenovo/lenovo-python-redfish
a2d2608aa33ee5087b62bf46695394571a1aaad9
[ "Apache-2.0" ]
null
null
null
examples/get_server_boot_once.py
lenovo/lenovo-python-redfish
a2d2608aa33ee5087b62bf46695394571a1aaad9
[ "Apache-2.0" ]
null
null
null
### # # Lenovo Redfish examples - Get the current System Boot Once target # # Copyright Notice: # # Copyright 2018 Lenovo 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 # # ...
36.563636
122
0.676032
c45099f96c09dc8c07e63762efabe5630df491b7
652
py
Python
ch01/creativity/c_1_14.py
walshification/dsap
85c62ec663fda13283fc0a2ab5c567387cadac02
[ "MIT" ]
null
null
null
ch01/creativity/c_1_14.py
walshification/dsap
85c62ec663fda13283fc0a2ab5c567387cadac02
[ "MIT" ]
null
null
null
ch01/creativity/c_1_14.py
walshification/dsap
85c62ec663fda13283fc0a2ab5c567387cadac02
[ "MIT" ]
null
null
null
""" Write a short Python function that takes a sequence of integer values and determines if there is a distinct pair of numbers in the sequence whose product is odd. """ from typing import List def has_odd_product_pair(data: List[int]) -> bool: """Returns True if data contains a distinct pair of numbers whose ...
31.047619
83
0.656442
c4341227c83a72f5ff783fa3c176dec6d3fcf6cb
1,132
py
Python
tests/test_youtube.py
santosderek/Vitality
cc90d3b561c3b75f000288345d7a1442fb2b3fec
[ "MIT" ]
1
2020-09-18T17:08:53.000Z
2020-09-18T17:08:53.000Z
tests/test_youtube.py
santosderek/Vitality
cc90d3b561c3b75f000288345d7a1442fb2b3fec
[ "MIT" ]
91
2020-09-25T23:12:58.000Z
2020-12-19T04:57:50.000Z
tests/test_youtube.py
santosderek/4155-Team
cc90d3b561c3b75f000288345d7a1442fb2b3fec
[ "MIT" ]
3
2020-09-26T22:35:42.000Z
2020-10-13T18:22:22.000Z
from vitality.youtube import * from os import environ, getenv from os.path import exists from vitality.settings import GOOGLE_MAPS_KEY from dotenv import load_dotenv from time import sleep import pytest @pytest.mark.skip def test_search_topic(): sleep(.5) load_dotenv('.env') youtube = Youtube(getenv("GOO...
33.294118
60
0.772085
67e6e03ea6343564fe83ac2bc7fdb918be00e963
6,818
py
Python
JavHelper/views/scan_directory.py
SteVeNRK/JAVOneStop
eb93339e4250b85cf055c434d8e32941dc404248
[ "MIT" ]
1
2021-12-02T06:44:25.000Z
2021-12-02T06:44:25.000Z
JavHelper/views/scan_directory.py
SteVeNRK/JAVOneStop
eb93339e4250b85cf055c434d8e32941dc404248
[ "MIT" ]
null
null
null
JavHelper/views/scan_directory.py
SteVeNRK/JAVOneStop
eb93339e4250b85cf055c434d8e32941dc404248
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os import json from ast import literal_eval from flask import Blueprint, jsonify, request, Response from JavHelper.core.OOF_downloader import OOFDownloader from JavHelper.core.javlibrary import JavLibraryScraper from JavHelper.core import IniNotFoundException from JavHelper.core.file_scan...
38.089385
121
0.668378
e89f6cf79359ebf18e77c74e8c212a846c3cc711
6,899
py
Python
webrecorder/test/test_app_content_domain.py
gitter-badger/webrecorder
9c4fc3b816a77f312ec864ca8598f7bbc1b41394
[ "Apache-2.0" ]
1
2021-01-01T21:32:53.000Z
2021-01-01T21:32:53.000Z
webrecorder/test/test_app_content_domain.py
n0ncetonic/webrecorder
7459a0f6bc162eec2d383bd908d82d95cdc15940
[ "Apache-2.0" ]
null
null
null
webrecorder/test/test_app_content_domain.py
n0ncetonic/webrecorder
7459a0f6bc162eec2d383bd908d82d95cdc15940
[ "Apache-2.0" ]
null
null
null
from .testutils import FullStackTests import os import re # ============================================================================ class TestAppContentDomain(FullStackTests): """ Tests for separate app/content domain deployment """ runner_env_params = {'TEMP_SLEEP_CHECK': '1', ...
48.584507
140
0.607624
2ce2ea2a9fb4e71b4ed0f2a96142d969e2993b95
136
py
Python
test/test_utils.py
Funk66/ledger
b06f39281b81cebb75a6c5f92fa3b8e47b65800c
[ "MIT" ]
null
null
null
test/test_utils.py
Funk66/ledger
b06f39281b81cebb75a6c5f92fa3b8e47b65800c
[ "MIT" ]
3
2021-11-16T06:38:48.000Z
2021-11-16T06:43:18.000Z
test/test_utils.py
Funk66/ledger
b06f39281b81cebb75a6c5f92fa3b8e47b65800c
[ "MIT" ]
null
null
null
from datetime import date from ledger.utils import isodate def test_isodate(): assert date(2020, 2, 20) == isodate('2020-02-20')
17
53
0.713235
754a84a0e70a4f9a2a165fd48f20861ee8961f3d
14,122
py
Python
pyzoo/zoo/feature/image/imagePreprocessing.py
abdolence/analytics-zoo
364856abcbe9aff7f7b6cf9b9f8648d51e07ca64
[ "Apache-2.0" ]
2
2018-06-08T01:14:48.000Z
2019-08-28T22:24:14.000Z
pyzoo/zoo/feature/image/imagePreprocessing.py
abdolence/analytics-zoo
364856abcbe9aff7f7b6cf9b9f8648d51e07ca64
[ "Apache-2.0" ]
3
2018-10-19T08:30:38.000Z
2018-10-19T08:32:12.000Z
pyzoo/zoo/feature/image/imagePreprocessing.py
abdolence/analytics-zoo
364856abcbe9aff7f7b6cf9b9f8648d51e07ca64
[ "Apache-2.0" ]
1
2018-06-26T08:16:42.000Z
2018-06-26T08:16:42.000Z
# # Copyright 2018 Analytics Zoo Authors. # # 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...
39.227778
100
0.673276
f49ac961339d04644665f2d9828d7db9048de93a
10,668
py
Python
doc/conf.py
bio-phys/cadishi
b44351fcb77737c6a6da5249a0c24ee8e34f72d2
[ "MIT" ]
14
2017-08-22T13:00:42.000Z
2021-11-19T14:07:55.000Z
doc/conf.py
bio-phys/cadishi
b44351fcb77737c6a6da5249a0c24ee8e34f72d2
[ "MIT" ]
1
2021-11-19T14:07:38.000Z
2021-11-19T14:07:38.000Z
doc/conf.py
bio-phys/cadishi
b44351fcb77737c6a6da5249a0c24ee8e34f72d2
[ "MIT" ]
null
null
null
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # CADISHI --- CAlculation of DIStance HIstograms # # Copyright (c) Klaus Reuter, Juergen Koefinger # See the file AUTHORS.rst for the full list of contributors. # # Releas...
29.469613
91
0.706599
ac8fe7d7507974528ee5e54d89288f51fd8d4d33
129
py
Python
things/config.py
kxnes/things
8b97aff8c7e7f80314f99a8974338b96720b2fd6
[ "MIT" ]
null
null
null
things/config.py
kxnes/things
8b97aff8c7e7f80314f99a8974338b96720b2fd6
[ "MIT" ]
null
null
null
things/config.py
kxnes/things
8b97aff8c7e7f80314f99a8974338b96720b2fd6
[ "MIT" ]
1
2020-06-22T17:51:45.000Z
2020-06-22T17:51:45.000Z
# == Auth == # AUTH_TOKEN_HEADER = 'X-Semrush-Test' AUTH_TOKEN_VALUE = 'DSJAKJSAKSKLFLA-LK' # == Pagination == # PER_PAGE = 10
16.125
39
0.666667
f0cb9ff2bf205534312bdaa5fc8546ca5ddc972a
1,317
py
Python
codes/data_scripts/regroup_SDR4K_sub.py
Yangzhen0000/EDVR
388ae869a1b4e2e6399f5feeea1f3acc969a3c75
[ "Apache-2.0" ]
null
null
null
codes/data_scripts/regroup_SDR4K_sub.py
Yangzhen0000/EDVR
388ae869a1b4e2e6399f5feeea1f3acc969a3c75
[ "Apache-2.0" ]
null
null
null
codes/data_scripts/regroup_SDR4K_sub.py
Yangzhen0000/EDVR
388ae869a1b4e2e6399f5feeea1f3acc969a3c75
[ "Apache-2.0" ]
null
null
null
import os import sys import glob import os.path as osp sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__)))) from utils.util import ProgressBar dataset_path = '../../datasets/SDR4k/train/SDR_10BIT_sub/' video_path_list = glob.glob(os.path.join(dataset_path, '*')) pbar = ProgressBar(len(video_path_list)) fo...
42.483871
110
0.690205
7e27bfbcc90c8dc55b8f91c1637844f77b15ebfd
986
py
Python
modulepackage/redisimport/redisloader.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
modulepackage/redisimport/redisloader.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
modulepackage/redisimport/redisloader.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
# redisloader.py import redis import importlib.util class RedisImporter(object): def __init__(self, *args, **kwargs): self.conn = redis.Redis(*args, **kwargs) self.conn...
30.8125
147
0.549696
a06e8cee0ee8437f83ff70a6d36d1512198e8b6a
552
py
Python
src/handlers.py
keetonian/lambda-to-chime
1edaec34d031d6c1a55d1319e8890cd04f277aae
[ "MIT" ]
1
2021-10-05T13:08:26.000Z
2021-10-05T13:08:26.000Z
src/handlers.py
keetonian/lambda-to-chime
1edaec34d031d6c1a55d1319e8890cd04f277aae
[ "MIT" ]
null
null
null
src/handlers.py
keetonian/lambda-to-chime
1edaec34d031d6c1a55d1319e8890cd04f277aae
[ "MIT" ]
null
null
null
"""Lambda function handler.""" # must be the first import in files with lambda function handlers import lambdainit # noqa: F401 import config import lambdalogging import chime from exceptions import InputError LOG = lambdalogging.getLogger(__name__) def post_to_chime(event, context): """Lambda function handle...
24
65
0.728261
aac16d2137cd9b65d825e9a6d7d2b6ea590fd938
13,103
py
Python
test/integration/ocpandacoind_node.py
overcookedpanda/OCPandaCoin
88fdafe2ae9959d41894ca84e5d74d4942b9d72b
[ "MIT" ]
null
null
null
test/integration/ocpandacoind_node.py
overcookedpanda/OCPandaCoin
88fdafe2ae9959d41894ca84e5d74d4942b9d72b
[ "MIT" ]
null
null
null
test/integration/ocpandacoind_node.py
overcookedpanda/OCPandaCoin
88fdafe2ae9959d41894ca84e5d74d4942b9d72b
[ "MIT" ]
null
null
null
import os import time from pathlib import Path from pypoptools.pypoptesting.framework.bin_util import assert_dir_accessible, get_open_port from pypoptools.pypoptesting.framework.entities import * from pypoptools.pypoptesting.framework.json_rpc import JsonRpcApi, JsonRpcException from pypoptools.pypoptesting.framework...
36.600559
142
0.588568
b8f2bd3c240d6a49218abacbbe32b9cc291c69a6
83
py
Python
webhooks_config.py
boyska/python-github-webhooks
570d9cbbcbe99f5d656019749972367b31892ca5
[ "Apache-2.0" ]
null
null
null
webhooks_config.py
boyska/python-github-webhooks
570d9cbbcbe99f5d656019749972367b31892ca5
[ "Apache-2.0" ]
null
null
null
webhooks_config.py
boyska/python-github-webhooks
570d9cbbcbe99f5d656019749972367b31892ca5
[ "Apache-2.0" ]
1
2018-10-24T08:16:56.000Z
2018-10-24T08:16:56.000Z
GITHUB_IPS_ONLY = False ENFORCE_SECRET = "" RETURN_SCRIPTS_INFO = True PORT = 8000
16.6
26
0.783133
421c88024e20a52dd3138ac19c438111f7322468
120
py
Python
vue_ema/users/apps.py
munapaula/vue_ema
5aeaa3da426cc7e9d3c162696b1cacd1acf31211
[ "MIT" ]
null
null
null
vue_ema/users/apps.py
munapaula/vue_ema
5aeaa3da426cc7e9d3c162696b1cacd1acf31211
[ "MIT" ]
null
null
null
vue_ema/users/apps.py
munapaula/vue_ema
5aeaa3da426cc7e9d3c162696b1cacd1acf31211
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'vue_ema.users' verbose_name = 'Users'
17.142857
33
0.725
c7a1876d22a9a4d1dd14c2e59af7b06dfdedfb84
6,465
py
Python
colour/hints/__init__.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
1
2022-02-12T06:28:15.000Z
2022-02-12T06:28:15.000Z
colour/hints/__init__.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
null
null
null
colour/hints/__init__.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
null
null
null
""" Annotation Type Hints ===================== Defines the annotation type hints, the module exposes many aliases from :mod:`typing` and :mod:`numpy.typing` to avoid having to handle multiple imports. """ from __future__ import annotations import numpy as np import numpy.typing as npt import re from types import Mo...
21.694631
78
0.686775
540605e6e74e22300aa6ffe253639560d9ed9564
8,446
py
Python
project/scenarios/merge-stats.py
mfranzil-unitn/unitn-m-lpwniot
2094c5555918cdb2cd4f3cfb18790c53ef93b77a
[ "MIT" ]
1
2022-03-04T13:08:52.000Z
2022-03-04T13:08:52.000Z
project/scenarios/merge-stats.py
mfranzil-unitn/unitn-m-lpwniot
2094c5555918cdb2cd4f3cfb18790c53ef93b77a
[ "MIT" ]
null
null
null
project/scenarios/merge-stats.py
mfranzil-unitn/unitn-m-lpwniot
2094c5555918cdb2cd4f3cfb18790c53ef93b77a
[ "MIT" ]
null
null
null
import json import os import sys mergename = sys.argv[1] folder_name = 'results/' + mergename testbed = False fragments = sorted(os.listdir(folder_name)) # for fragment in fragments: # fragname = fragment.split('.')[0] # print("Analyzing the following files: ") # print("Folder name: " + fragment) # ...
43.989583
101
0.587852
105d813d717779f4f8ff1dc36865aa31970ebc1c
3,279
py
Python
login.py
darshit7/adrenalin-login
d803c5e7be5250afbf8fe70a4eca420e711b041c
[ "MIT" ]
3
2017-01-10T04:31:27.000Z
2018-03-22T09:03:15.000Z
login.py
darshit7/adrenalin-login
d803c5e7be5250afbf8fe70a4eca420e711b041c
[ "MIT" ]
null
null
null
login.py
darshit7/adrenalin-login
d803c5e7be5250afbf8fe70a4eca420e711b041c
[ "MIT" ]
null
null
null
import os import base64 import logging import datetime from cryptography.fernet import Fernet from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException from selenium.web...
43.144737
112
0.603843
ea9d0cb4beaaae55690314ef5399939546097328
7,986
py
Python
xlib/onnxruntime/device.py
kitiv/DeepFaceLive
ca3a005917ae067576b795d8b9fef5a8b3483010
[ "MIT" ]
4
2021-07-23T16:34:24.000Z
2022-03-01T18:31:59.000Z
xlib/onnxruntime/device.py
kitiv/DeepFaceLive
ca3a005917ae067576b795d8b9fef5a8b3483010
[ "MIT" ]
null
null
null
xlib/onnxruntime/device.py
kitiv/DeepFaceLive
ca3a005917ae067576b795d8b9fef5a8b3483010
[ "MIT" ]
1
2021-09-06T15:05:28.000Z
2021-09-06T15:05:28.000Z
import ctypes import os from typing import List class ORTDeviceInfo: """ Represents picklable ONNXRuntime device info """ def __init__(self, index=None, name=None, total_memory=None, free_memory=None, compute_capability=None): self._index : int = index self._name : str = name ...
35.811659
132
0.563862
d06d1563b3de44fa9a1f3e3d7a5df14f7109a9d4
387
py
Python
csp/contradiction_exception.py
abeccaro/csp-solver
a761dee02a4dd12162eb55ef34cc0989c79567cc
[ "MIT" ]
null
null
null
csp/contradiction_exception.py
abeccaro/csp-solver
a761dee02a4dd12162eb55ef34cc0989c79567cc
[ "MIT" ]
null
null
null
csp/contradiction_exception.py
abeccaro/csp-solver
a761dee02a4dd12162eb55ef34cc0989c79567cc
[ "MIT" ]
null
null
null
class ContradictionException(Exception): """Exception raised for any Contradiction (unfeasability) happening during propagation or assignments. :param message: The message to print :type message: str """ def __init__(self, message): self.message = message def __str...
27.642857
107
0.661499
9f549d9c9efa1b21d0b72dd3fb30f00e5f5bbc41
1,219
py
Python
examples/example_inpainting.py
mmunar97/inPYinting
226e7840c0acf0b0fe3cf6db25a1411df6595a02
[ "MIT" ]
1
2020-06-02T14:01:40.000Z
2020-06-02T14:01:40.000Z
examples/example_inpainting.py
mmunar97/inPYinting
226e7840c0acf0b0fe3cf6db25a1411df6595a02
[ "MIT" ]
null
null
null
examples/example_inpainting.py
mmunar97/inPYinting
226e7840c0acf0b0fe3cf6db25a1411df6595a02
[ "MIT" ]
null
null
null
import cv2 from inPYinting.base.inpainting_algorithms import InpaintingAlgorithm from inPYinting.inpainter import Inpainter if __name__ == "__main__": image_path = r"C:\Users\Usuario\Desktop\Inpainting Demo\mumford_shah_clean.png" mask_path = r"C:\Users\Usuario\Desktop\Inpainting Demo\mumford_shah_mask.png"...
45.148148
83
0.803117
4392bb0b1571c7fae21d8c6e03c05aeb90519b50
103,120
py
Python
venv/Lib/site-packages/mpl_toolkits/mplot3d/axes3d.py
adityasagam/azurePy
bf6c61c1d6f52521602bae2ab3f06ffba4e30444
[ "MIT" ]
130
2018-02-03T10:25:54.000Z
2022-03-25T22:27:22.000Z
venv/Lib/site-packages/mpl_toolkits/mplot3d/axes3d.py
uncledragon/CalibrationLibrary
952abcf471b819b6b6dfa23b6d5dd248155f9dbf
[ "MIT" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
venv/Lib/site-packages/mpl_toolkits/mplot3d/axes3d.py
uncledragon/CalibrationLibrary
952abcf471b819b6b6dfa23b6d5dd248155f9dbf
[ "MIT" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
""" axes3d.py, original mplot3d version by John Porter Created: 23 Sep 2005 Parts fixed by Reinier Heeres <reinier@heeres.eu> Minor additions by Ben Axelrod <baxelrod@coroware.com> Significant updates and revisions by Ben Root <ben.v.root@gmail.com> Module containing Axes3D, an object which can plot 3D objects on a 2...
35.694012
85
0.538741
82639ab55b46aae0472e4b4bf095975a5f0e1c0a
4,312
py
Python
neutron_plugin_contrail/plugins/opencontrail/loadbalancer/loadbalancer_healthmonitor.py
Mirantis/contrail-neutron-plugin
1ece1257973d4abcc31a351faad616cffaf631cd
[ "Apache-2.0" ]
null
null
null
neutron_plugin_contrail/plugins/opencontrail/loadbalancer/loadbalancer_healthmonitor.py
Mirantis/contrail-neutron-plugin
1ece1257973d4abcc31a351faad616cffaf631cd
[ "Apache-2.0" ]
null
null
null
neutron_plugin_contrail/plugins/opencontrail/loadbalancer/loadbalancer_healthmonitor.py
Mirantis/contrail-neutron-plugin
1ece1257973d4abcc31a351faad616cffaf631cd
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # import uuid try: from neutron.extensions import loadbalancer except ImportError: from neutron_lbaas.extensions import loadbalancer try: from neutron.openstack.common import uuidutils except ImportError: from oslo_utils import uuidut...
33.952756
80
0.676716
400a70e526d585cca03c0147f2c30a990341b335
418
py
Python
incident_reports/migrations/0002_auto_20200930_1648.py
adarshtri/art-dashboard-server
c6c61147d49aa43b6e2892ce07d8a115c1478b0c
[ "Apache-2.0" ]
1
2020-09-21T06:48:47.000Z
2020-09-21T06:48:47.000Z
incident_reports/migrations/0002_auto_20200930_1648.py
adarshtri/art-dashboard-server
c6c61147d49aa43b6e2892ce07d8a115c1478b0c
[ "Apache-2.0" ]
5
2021-02-05T19:43:08.000Z
2021-06-04T23:23:29.000Z
incident_reports/migrations/0002_auto_20200930_1648.py
adarshtri/art-dashboard-server
c6c61147d49aa43b6e2892ce07d8a115c1478b0c
[ "Apache-2.0" ]
6
2021-02-06T07:21:37.000Z
2021-06-07T12:40:37.000Z
# Generated by Django 3.0.7 on 2020-09-30 16:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('incident_reports', '0001_initial'), ] operations = [ migrations.AlterField( model_name='incident', name='incident_en...
22
76
0.614833
98890b8a24a47b0fd2c429f1ebb00d649e76c145
1,566
py
Python
pirates/effects/PooledEffect.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/effects/PooledEffect.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/effects/PooledEffect.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import * from direct.showbase import Pool from direct.showbase.DirectObject import DirectObject import re class PooledEffect(DirectObject, NodePath): GlobalCount = 0 GlobalLimit = 200 pool = None poolLimit = 30 @classmethod def getEffect(cls, unlimited=False, context='...
29.54717
76
0.59387
b61a573d33b65428338a45722eb22a76500df1bb
9,949
py
Python
lookerapi/models/dialect_info.py
llooker/python_sdk
8364839b1de0519771f2f749e45b4e6cb1c75577
[ "MIT" ]
12
2019-05-17T11:50:45.000Z
2021-11-11T21:37:05.000Z
lookerapi/models/dialect_info.py
meetup/lookerapi
4e4160dbe007eb65ac8f449bead0cdc06090b07b
[ "MIT" ]
4
2019-06-19T20:13:14.000Z
2020-10-13T21:13:47.000Z
lookerapi/models/dialect_info.py
meetup/lookerapi
4e4160dbe007eb65ac8f449bead0cdc06090b07b
[ "MIT" ]
10
2018-10-10T20:45:00.000Z
2022-02-21T03:12:58.000Z
# coding: utf-8 """ Looker API 3.0 Reference ### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token....
33.163333
1,625
0.625691
53cf978cb7e5f7e8399767ed86407565f9b1c692
797
py
Python
hooks/hook-nltk.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
hooks/hook-nltk.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
hooks/hook-nltk.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2018, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
30.653846
78
0.608532
fb5087e2f5125f07a505f937d41644613b158308
1,965
py
Python
day4/d4p1.py
flowgrow/adventofcode2021
b6e316a388726031ff500ce77d1ec5d5b7da0658
[ "MIT" ]
null
null
null
day4/d4p1.py
flowgrow/adventofcode2021
b6e316a388726031ff500ce77d1ec5d5b7da0658
[ "MIT" ]
null
null
null
day4/d4p1.py
flowgrow/adventofcode2021
b6e316a388726031ff500ce77d1ec5d5b7da0658
[ "MIT" ]
null
null
null
draws = [] boards = [] markings = [] def find_number(matrix, number): for r in range(5): for c in range(5): if matrix[r][c] is number: return (True, r, c) return (False, -1, -1) def find_bingo(marking, board): for r, row in enumerate(marking): if sum(row) == 5:...
23.674699
67
0.499237
e783cf60d79f7ebed1128430f6892b74fae05a74
3,262
py
Python
contextmonkey/tracelayer/handlers/model/ModelRequestHandler.py
manojrege/contextmonkey
9974889a726d7f60c6da0d6ccab97113ce635a14
[ "BSD-3-Clause" ]
4
2017-03-17T02:28:12.000Z
2019-04-18T11:25:44.000Z
contextmonkey/tracelayer/handlers/model/ModelRequestHandler.py
manojrege/contextmonkey
9974889a726d7f60c6da0d6ccab97113ce635a14
[ "BSD-3-Clause" ]
null
null
null
contextmonkey/tracelayer/handlers/model/ModelRequestHandler.py
manojrege/contextmonkey
9974889a726d7f60c6da0d6ccab97113ce635a14
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017, Technische Universität Berlin # 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 t...
41.291139
87
0.770999
167cfbbcbe47cc2d4e0286fbe3964defdde43202
170
py
Python
src/cross_validation/__init__.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
1
2021-08-19T14:28:45.000Z
2021-08-19T14:28:45.000Z
src/cross_validation/__init__.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
null
null
null
src/cross_validation/__init__.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
1
2022-03-11T07:20:06.000Z
2022-03-11T07:20:06.000Z
from . import replace_nan from .leave_one_out import leave_one_out, iter_leaveone, partition_by_uid from .k_fold import k_fold from .standard_scale import standard_scale
34
73
0.858824
545e9f42fbdc0123124a1148031c80a17b243223
26,208
py
Python
lib/pyasn1_modules/rfc4210.py
nirzari18/Query-Analysis-Application-on-Google-App-Engine
0b767c27b2ec173ce2fe2cbb39cbf71115eb4aba
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
lib/pyasn1_modules/rfc4210.py
nirzari18/Query-Analysis-Application-on-Google-App-Engine
0b767c27b2ec173ce2fe2cbb39cbf71115eb4aba
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
lib/pyasn1_modules/rfc4210.py
nirzari18/Query-Analysis-Application-on-Google-App-Engine
0b767c27b2ec173ce2fe2cbb39cbf71115eb4aba
[ "Apache-2.0" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# # Certificate Management Protocol structures as per RFC4210 # # Based on Alex Railean's work # from pyasn1.type import tag,namedtype,namedval,univ,constraint,char,useful from pyasn1_modules import rfc2459, rfc2511, rfc2314 MAX = 64 class KeyIdentifier(univ.OctetString): pass class CMPCertificate(rfc2459.Certificat...
37.655172
151
0.603709
5542fa8291e04589457af28826be55906b3e9675
509
py
Python
datastructures/arrays/find_continuous_subsegment_counts.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
datastructures/arrays/find_continuous_subsegment_counts.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
datastructures/arrays/find_continuous_subsegment_counts.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
def find_continuous_subsegment(arr): """ This helps in splitting the array and finding continuous subsegments smartly """ temp = [] n = len(arr) cnt, prev = 1, arr[0] for i in range(n - 1): if arr[i + 1] == prev: cnt += 1 else: temp.append(cnt) ...
22.130435
80
0.522593
3de7b1b88e8bc5fdea27e7fbd09eecf9833a8055
369
py
Python
eventpage/migrations/0027_rename_html_announcement_markdown.py
lukas2511/voctoconf
7c9d05e0bddadfb6e589bf73e2adeb9d83594038
[ "MIT" ]
21
2020-08-24T13:27:03.000Z
2021-10-15T09:17:46.000Z
eventpage/migrations/0027_rename_html_announcement_markdown.py
lukas2511/voctoconf
7c9d05e0bddadfb6e589bf73e2adeb9d83594038
[ "MIT" ]
null
null
null
eventpage/migrations/0027_rename_html_announcement_markdown.py
lukas2511/voctoconf
7c9d05e0bddadfb6e589bf73e2adeb9d83594038
[ "MIT" ]
5
2020-08-25T16:34:51.000Z
2021-02-19T04:48:10.000Z
# Generated by Django 3.2 on 2021-04-24 09:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('eventpage', '0026_auto_20200823_0133'), ] operations = [ migrations.RenameField( model_name='announcement', old_name='html', ...
19.421053
49
0.593496
a40f1135708bbac18df1c9ee386d3a19d00d70dc
1,648
py
Python
laws/vote_choices.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
7
2015-03-05T11:14:23.000Z
2017-02-11T18:06:25.000Z
laws/vote_choices.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
7
2020-02-12T01:09:15.000Z
2022-03-11T23:25:12.000Z
laws/vote_choices.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
11
2015-02-21T09:45:06.000Z
2021-05-05T06:01:24.000Z
from django.utils.translation import ugettext_lazy as _ from django.db.models import Q TYPE_CHOICES = ( ('all', _('All votes')), ('law-approve', _('Law Approvals')), ('second-call', _('Second Call')), ('demurrer', _('Demurrer')), ('no-confidence', _('Motion of no confidence')), ('pass-to-commit...
27.932203
87
0.518204
6359821acb4b9462651368e5fc495b0b7a073109
7,898
py
Python
src/Regression/phys_training.py
mattcwilde/astrokriging
05476a3fd69a66ffa28b16bad5a260a8272c6712
[ "BSD-3-Clause" ]
null
null
null
src/Regression/phys_training.py
mattcwilde/astrokriging
05476a3fd69a66ffa28b16bad5a260a8272c6712
[ "BSD-3-Clause" ]
null
null
null
src/Regression/phys_training.py
mattcwilde/astrokriging
05476a3fd69a66ffa28b16bad5a260a8272c6712
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 30 11:41:38 2016 @author: dflemin3 This script performs model comparison to see which estimator performs the best on VPLANET simulation results. The script then performs a bootstrapping procedure on each fitted module to see where it performs poorly and hence where addi...
32.908333
118
0.651051
31fd6f5429493d2c5793e577a2d076b76c9e52e7
540
py
Python
python/restartNetflix7.py
SheffieldML/collab
463d1cdb5bd0a6b8d39e0046afcacb17653cded8
[ "BSD-3-Clause" ]
27
2015-05-12T13:28:22.000Z
2021-05-09T18:55:07.000Z
python/restartNetflix7.py
afcarl/collab
463d1cdb5bd0a6b8d39e0046afcacb17653cded8
[ "BSD-3-Clause" ]
1
2015-04-11T18:40:31.000Z
2015-06-02T20:04:40.000Z
python/restartNetflix7.py
afcarl/collab
463d1cdb5bd0a6b8d39e0046afcacb17653cded8
[ "BSD-3-Clause" ]
11
2015-04-11T18:38:28.000Z
2020-03-17T02:42:06.000Z
#!/usr/bin/env python # Try collaborative filtering on the netflix data. import collab import ndlml as nl opt = collab.options() opt.resultsBaseDir = "/local/data/results/netflix/" try: collab.restart(loadIter = 5, startCount = 2620000, loadUser = 2190625, ...
23.478261
51
0.548148
7a3764d3ad9643ce717b6614f0ab585bdeee587b
3,620
py
Python
web/datatrace_web/index.py
pensnarik/domains-database
b42d8b6e4e249eba50e3e441fdae98aeedcbeb03
[ "MIT" ]
1
2020-03-24T23:57:59.000Z
2020-03-24T23:57:59.000Z
web/datatrace_web/index.py
pensnarik/domains-database
b42d8b6e4e249eba50e3e441fdae98aeedcbeb03
[ "MIT" ]
3
2020-01-30T13:40:37.000Z
2020-01-31T11:08:52.000Z
web/datatrace_web/index.py
pensnarik/domains-database
b42d8b6e4e249eba50e3e441fdae98aeedcbeb03
[ "MIT" ]
null
null
null
import json import datetime as dt from flask import render_template, g, request from datatrace_web import app, sql import calendar, json, pytz def get_hosts(): query = ''' select distinct hostname from session where end_time is null and instance is not null order by 1 ''' retu...
39.347826
140
0.595856
6ba1b986ec48c5c8dc6e716ac78122c1b97d5173
6,644
py
Python
sahara/tests/unit/service/test_periodic.py
redhat-openstack/sahara
67165c96eceb1ce3b087870934d394602f5dd959
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/service/test_periodic.py
redhat-openstack/sahara
67165c96eceb1ce3b087870934d394602f5dd959
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/service/test_periodic.py
redhat-openstack/sahara
67165c96eceb1ce3b087870934d394602f5dd959
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
39.082353
78
0.642234
7fe8fc96dc1f05826dd15e47e87b19bc8e6af630
2,865
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/show_api_version_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/show_api_version_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/show_api_version_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowApiVersionResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (di...
26.284404
74
0.55288
406e8473f7886aab1e70576ceb1a85774f9aa63b
3,290
py
Python
tasks.py
romnn/lsde2021
6730b50434c320e60b2d7e14e3dfdce25be87323
[ "MIT" ]
null
null
null
tasks.py
romnn/lsde2021
6730b50434c320e60b2d7e14e3dfdce25be87323
[ "MIT" ]
null
null
null
tasks.py
romnn/lsde2021
6730b50434c320e60b2d7e14e3dfdce25be87323
[ "MIT" ]
null
null
null
""" Tasks for maintaining the project. Execute 'invoke --list' for guidance on using Invoke """ import shutil import pprint from invoke import task import webbrowser from pathlib import Path Path().expanduser() ROOT_DIR = Path(__file__).parent SETUP_FILE = ROOT_DIR.joinpath("setup.py") TEST_DIR = ROOT_DIR.joinpath(...
25.503876
84
0.643465
78269c5eb93e6a5af65d2d40098c3aa88911827e
2,025
py
Python
app.py
sambezalel/flask-covid-19
44c6b03874591a32de5f5c2168dcdea227283657
[ "Apache-2.0" ]
null
null
null
app.py
sambezalel/flask-covid-19
44c6b03874591a32de5f5c2168dcdea227283657
[ "Apache-2.0" ]
null
null
null
app.py
sambezalel/flask-covid-19
44c6b03874591a32de5f5c2168dcdea227283657
[ "Apache-2.0" ]
null
null
null
from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing import image import numpy as np from flask import Flask, redirect, templating, url_for, request, render_template import os from werkzeug.utils import HTMLBuilder #from werkzeug import secure_filename app = Flask(__name__) @app.route('...
27.364865
80
0.665185
956265c326e4fffc78aa1e6d5bc1aef4dbff1214
5,924
py
Python
privatekube/privatekube/experiments/utils.py
DelphianCalamity/PrivateKube
14f575e77021ab7baca30f4061140ec83bdc96a7
[ "Apache-2.0" ]
9
2021-06-16T00:22:45.000Z
2021-11-25T07:19:11.000Z
privatekube/privatekube/experiments/utils.py
DelphianCalamity/PrivateKube
14f575e77021ab7baca30f4061140ec83bdc96a7
[ "Apache-2.0" ]
2
2021-11-14T10:42:43.000Z
2022-03-16T03:43:22.000Z
privatekube/privatekube/experiments/utils.py
DelphianCalamity/PrivateKube
14f575e77021ab7baca30f4061140ec83bdc96a7
[ "Apache-2.0" ]
3
2021-04-08T08:08:48.000Z
2021-12-24T01:42:20.000Z
from absl import flags, logging import yaml import json import os import pandas as pd import time import torch import numpy as np import gcsfs FLAGS = flags.FLAGS GCP_PROJECT = "project-id-1234" def build_flags(*arg_dicts): """ Declares Absl flags from a dictionary. Flags are associated with this private...
26.212389
84
0.613606
44016c7d6de76195a2afd8a37d9fd6f464a79e09
2,536
py
Python
blog/migrations/0001_initial.py
deejay001/Deejay-Tech-site
c454c45eadc0662bef2e806984ab7fa85aeae4e7
[ "Apache-2.0" ]
null
null
null
blog/migrations/0001_initial.py
deejay001/Deejay-Tech-site
c454c45eadc0662bef2e806984ab7fa85aeae4e7
[ "Apache-2.0" ]
null
null
null
blog/migrations/0001_initial.py
deejay001/Deejay-Tech-site
c454c45eadc0662bef2e806984ab7fa85aeae4e7
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-19 14:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
40.903226
147
0.558754
8ede36227847590fe8c301158dac36ee1c5368a8
2,726
py
Python
DjangoBlog/admin_site.py
lixiaofeng1993/DjangoBlog
94d062324367b8a30edf8d29e2e661c822bcb7c1
[ "MIT" ]
null
null
null
DjangoBlog/admin_site.py
lixiaofeng1993/DjangoBlog
94d062324367b8a30edf8d29e2e661c822bcb7c1
[ "MIT" ]
6
2020-06-06T00:44:08.000Z
2022-01-13T01:52:46.000Z
DjangoBlog/admin_site.py
lixiaofeng1993/DjangoBlog
94d062324367b8a30edf8d29e2e661c822bcb7c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: ?? @author: liangliangyy @license: MIT Licence @contact: liangliangyy@gmail.com @site: https://www.lylinux.net/ @software: PyCharm @file: admin_site.py @time: 2018/1/7 上午2:21 """ from django.contrib.admin import AdminSite from DjangoBlog.utils import get_current_...
29
105
0.771093
0471659deb1002875ec4f0faf524cab1b2e40136
370
py
Python
ir_axioms/model/__init__.py
webis-de/ir_axioms
9c1b3ed4e47c6c4f3405ebd49fff0ceeb431a753
[ "MIT" ]
11
2022-02-20T12:10:12.000Z
2022-03-11T15:45:19.000Z
ir_axioms/model/__init__.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
3
2022-02-28T15:47:29.000Z
2022-03-02T09:14:59.000Z
ir_axioms/model/__init__.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
1
2022-02-20T15:42:42.000Z
2022-02-20T15:42:42.000Z
from ir_axioms.model import base, context # Re-export sub-modules. Query = base.Query Document = base.Document TextDocument = base.TextDocument RankedDocument = base.RankedDocument RankedTextDocument = base.RankedTextDocument JudgedRankedDocument = base.JudgedRankedDocument JudgedRankedTextDocument = base.JudgedRanked...
28.461538
56
0.848649
1e9df13b3894d87ccfb800e350360daf8d5903eb
6,129
py
Python
csvchk.py
kyclark/csvchk
fee2b14adf6e94b05e8e00f9b1eeb44d19e5fb71
[ "MIT" ]
null
null
null
csvchk.py
kyclark/csvchk
fee2b14adf6e94b05e8e00f9b1eeb44d19e5fb71
[ "MIT" ]
null
null
null
csvchk.py
kyclark/csvchk
fee2b14adf6e94b05e8e00f9b1eeb44d19e5fb71
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Purpose: Check the first/few records of a delimited text file Author : Ken Youens-Clark <kyclark@gmail.com> """ import argparse import csv import os import pyparsing as pp import re import sys from typing import List, TextIO, NamedTuple, Any, Dict VERSION = '0.1.8' class Args(NamedTuple):...
30.044118
76
0.441344
95bbc26cc394befb98b7d7edad885cc2907b0856
1,456
py
Python
{{cookiecutter.project_slug}}/backend/app/app/rest_tests/api/api_v1/token/test_token.py
senseta-os/base-project
2cc977b828ac2204cb9fd014abd7c6ff0ff148d6
[ "MIT" ]
54
2017-12-01T17:28:43.000Z
2022-03-08T11:12:54.000Z
{{cookiecutter.project_slug}}/backend/app/app/rest_tests/api/api_v1/token/test_token.py
senseta-os/base-project
2cc977b828ac2204cb9fd014abd7c6ff0ff148d6
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/backend/app/app/rest_tests/api/api_v1/token/test_token.py
senseta-os/base-project
2cc977b828ac2204cb9fd014abd7c6ff0ff148d6
[ "MIT" ]
9
2017-12-07T13:50:37.000Z
2021-07-11T02:49:47.000Z
# Import installed packages import requests # Import app code from app.core import config def test_get_access_token(server_api): login_data = { 'username': config.FIRST_SUPERUSER, 'password': config.FIRST_SUPERUSER_PASSWORD } r = requests.post( f'{server_api}{config.API_V1_STR}/log...
29.12
79
0.67239
39927ce8584ea654a72016b6c59ba8738a38b2fa
16,851
py
Python
tests/integration/test_stream_transform.py
STARInformatics/kgx
a4b4dd73f866486466c03579f62e0c527ef1af1e
[ "BSD-3-Clause" ]
null
null
null
tests/integration/test_stream_transform.py
STARInformatics/kgx
a4b4dd73f866486466c03579f62e0c527ef1af1e
[ "BSD-3-Clause" ]
null
null
null
tests/integration/test_stream_transform.py
STARInformatics/kgx
a4b4dd73f866486466c03579f62e0c527ef1af1e
[ "BSD-3-Clause" ]
null
null
null
import copy import os import pytest from kgx.transformer import Transformer from tests import TARGET_DIR, RESOURCE_DIR, print_graph from tests.integration import ( clean_slate, DEFAULT_NEO4J_URL, DEFAULT_NEO4J_USERNAME, DEFAULT_NEO4J_PASSWORD, ) def run_transform(query): _transform(copy.deepcopy(...
30.976103
99
0.449588
cfd7e5453a477bbb72a06928cc21ca6efa256267
213
py
Python
update_serve.py
ArtemFomenko/emlid-docs
3c764c2062d9a2fd1be11c1f6763ed308cdc8ce7
[ "BSD-2-Clause" ]
58
2019-02-26T07:42:54.000Z
2021-11-10T13:36:51.000Z
update_serve.py
ArtemFomenko/emlid-docs
3c764c2062d9a2fd1be11c1f6763ed308cdc8ce7
[ "BSD-2-Clause" ]
20
2019-02-28T14:42:32.000Z
2021-04-13T14:10:35.000Z
update_serve.py
ArtemFomenko/emlid-docs
3c764c2062d9a2fd1be11c1f6763ed308cdc8ce7
[ "BSD-2-Clause" ]
54
2019-02-22T15:37:00.000Z
2021-11-24T22:12:07.000Z
from build import Builder import sys, os if __name__ == "__main__": renderer = Builder(sys.argv[1]) renderer.render_all_templates() os.system("mkdocs serve -f" + sys.argv[1])
23.666667
50
0.610329
6645f18308769bc7730b010e43ccbfec19815270
18,979
py
Python
buildscripts/resmokelib/testing/hooks/stepdown.py
norttung/mongo
a5e78c5cac31b22983cf4fc546329a85c0927fe9
[ "Apache-2.0" ]
1
2018-03-07T22:12:35.000Z
2018-03-07T22:12:35.000Z
buildscripts/resmokelib/testing/hooks/stepdown.py
norttung/mongo
a5e78c5cac31b22983cf4fc546329a85c0927fe9
[ "Apache-2.0" ]
null
null
null
buildscripts/resmokelib/testing/hooks/stepdown.py
norttung/mongo
a5e78c5cac31b22983cf4fc546329a85c0927fe9
[ "Apache-2.0" ]
null
null
null
"""Test hook that periodically makes the primary of a replica set step down.""" from __future__ import absolute_import import collections import os.path import random import threading import time import bson import pymongo.errors from buildscripts.resmokelib import errors from buildscripts.resmokelib import utils fr...
45.513189
103
0.625586
2f91cbec1a2fa6a9bac553bde282603a18a18082
28,865
py
Python
pytests/backup/ibr.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pytests/backup/ibr.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pytests/backup/ibr.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
__author__ = 'ashvinder' import re import os import gc import logger import time from TestInput import TestInputSingleton from backup.backup_base import BackupBaseTest from remote.remote_util import RemoteMachineShellConnection from couchbase_helper.documentgenerator import BlobGenerator from couchbase_helper.documentg...
45.528391
165
0.626988
d62050555f82deb3266bfe8e0e3782aaa6ad706f
500
py
Python
util/dataset_util.py
HaveTwoBrush/chatbot
5532604c810e3e0cb94eb53eecfb07ac9e286ea5
[ "Apache-2.0" ]
29
2019-01-15T02:06:55.000Z
2019-11-03T13:39:36.000Z
util/dataset_util.py
kinggreenhall/chatbot
5532604c810e3e0cb94eb53eecfb07ac9e286ea5
[ "Apache-2.0" ]
1
2019-05-01T06:30:41.000Z
2019-05-03T13:59:20.000Z
util/dataset_util.py
kinggreenhall/chatbot
5532604c810e3e0cb94eb53eecfb07ac9e286ea5
[ "Apache-2.0" ]
5
2019-03-27T08:44:07.000Z
2019-11-05T15:49:50.000Z
from torch.utils.data import Dataset import numpy as np from util.data_util import DataUtil class DatasetUtil(Dataset): def __init__(self, conf): self.data_util = DataUtil(conf) self.input_list, self.target_list, self.intent_list = self.data_util.get_train_data() def __getitem__(self, index)...
29.411765
117
0.722
344b9d54c7f9db672d083ac4f06351543535735f
3,575
py
Python
mkdocs_awesome_pages_plugin/tests/e2e/test_order.py
marcovoc/mkdocs-awesome-pages-plugin
8b489024c1a545fead6e7338fffb29b98c657bdc
[ "MIT" ]
null
null
null
mkdocs_awesome_pages_plugin/tests/e2e/test_order.py
marcovoc/mkdocs-awesome-pages-plugin
8b489024c1a545fead6e7338fffb29b98c657bdc
[ "MIT" ]
null
null
null
mkdocs_awesome_pages_plugin/tests/e2e/test_order.py
marcovoc/mkdocs-awesome-pages-plugin
8b489024c1a545fead6e7338fffb29b98c657bdc
[ "MIT" ]
null
null
null
from .base import E2ETestCase class TestOrder(E2ETestCase): def test_asc(self): navigation = self.mkdocs( self.config, [ "1.md", "3.md", ("2", ["1.md", "2.md", self.pagesFile(order="asc")]), self.pagesFile(order="asc")...
26.679104
88
0.272727
a7c11d7903fe334596362791ad0ba48ed9e33119
3,309
py
Python
main.py
k5md/Terminus
101c8d439cf98cc56829cc72e4f8dd9f7773e4e5
[ "MIT" ]
null
null
null
main.py
k5md/Terminus
101c8d439cf98cc56829cc72e4f8dd9f7773e4e5
[ "MIT" ]
null
null
null
main.py
k5md/Terminus
101c8d439cf98cc56829cc72e4f8dd9f7773e4e5
[ "MIT" ]
null
null
null
import sublime import sys import logging try: from .terminus.commands import ( TerminusCommandsEventListener, TerminusOpenCommand, TerminusCloseCommand, TerminusCloseAllCommand, TerminusViewEventListener, TerminusInitializeCommand, TerminusActivateCommand, ...
31.514286
97
0.723179
142e61c3bbb6d8a056fec96649fa1fbd7d3b4e5f
1,668
py
Python
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20180504/GetMaterialsRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20180504/GetMaterialsRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20180504/GetMaterialsRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.040816
83
0.758993
b8f0bb8060ab25aa487d9619535fba08b785d434
3,103
py
Python
programs/gen_buck_info.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
2
2019-09-22T05:33:37.000Z
2019-09-22T06:36:24.000Z
programs/gen_buck_info.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
1
2019-10-22T21:07:17.000Z
2019-10-22T21:07:17.000Z
programs/gen_buck_info.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
1
2019-10-22T20:43:48.000Z
2019-10-22T20:43:48.000Z
# Copyright 2018-present Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
32.663158
83
0.629069
ea48941b0ed9c3c646bb83ca108aa7b8cb7e30c8
8,791
py
Python
yolo.py
chenqianqianxiaoxiannv/yolo
0fa5025490b841cb1a2fd1b6188fb410ed4b2d1e
[ "MIT" ]
null
null
null
yolo.py
chenqianqianxiaoxiannv/yolo
0fa5025490b841cb1a2fd1b6188fb410ed4b2d1e
[ "MIT" ]
null
null
null
yolo.py
chenqianqianxiaoxiannv/yolo
0fa5025490b841cb1a2fd1b6188fb410ed4b2d1e
[ "MIT" ]
1
2019-12-12T12:03:10.000Z
2019-12-12T12:03:10.000Z
# -*- coding: utf-8 -*- """ Class definition of YOLO_v3 style detection model on image and video """ import colorsys import os from timeit import default_timer as timer import numpy as np from keras import backend as K from keras.models import load_model from keras.layers import Input from PIL import Image, ImageFont...
41.079439
112
0.607098
626b61ef79ec3041be73a1d9a0d81a9605515777
82,175
py
Python
gabriel_lego/cv/lego_cv.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
null
null
null
gabriel_lego/cv/lego_cv.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
null
null
null
gabriel_lego/cv/lego_cv.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Cloudlet Infrastructure for Mobile Computing # - Task Assistance # # Author: Zhuo Chen <zhuoc@cs.cmu.edu> # Extended and ported to Python 3 by: Manuel Olguín Muñoz <molguin@kth.se> # # Copyright (C) 2011-2019 Carnegie Mellon University # Licensed under the Apache License, Version 2.0...
45.779944
95
0.558637
872ebf6389b2ee1bfbe7c69fb243d2713fc20463
2,459
py
Python
tests/cpp/tests/arv/timeout_automation_response/test.py
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
88
2017-08-24T07:02:01.000Z
2022-03-18T04:34:17.000Z
tests/cpp/tests/arv/timeout_automation_response/test.py
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
46
2017-06-08T18:18:08.000Z
2022-03-15T18:24:43.000Z
tests/cpp/tests/arv/timeout_automation_response/test.py
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
53
2017-06-22T14:48:05.000Z
2022-02-15T16:59:38.000Z
import time from pylmcp import Object from pylmcp.server import Server from pylmcp.uxas import AutomationRequestValidator, UxASConfig # Create bridge configuration bridge_cfg = UxASConfig() bridge_cfg += AutomationRequestValidator() with Server(bridge_cfg=bridge_cfg) as server: try: # Send messages ...
44.709091
78
0.544937
30875767884fabae94b15daed1f341ec4cf7cbc5
720
py
Python
13 - Lists II/Ex_89.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
4
2021-04-23T18:07:58.000Z
2021-05-12T11:38:14.000Z
13 - Lists II/Ex_89.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
13 - Lists II/Ex_89.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
dados = [] lista = [] n = 0 while True: dados.append(input('Nome: ')) dados.append(float(input('Nota 1: '))) dados.append(float(input('Nota 2: '))) lista.append(dados[:]) dados.clear() resp = input('Quer continuar? [S/N]: ') if resp in 'Nn': break print('=-' * 30) print('No Nome ...
24.827586
90
0.541667
dcd114c8553418d31eedc9ff97bb5e068c810dc9
907
py
Python
config.py
Bryan4real/MyBlog
afab82c6dd0e3cbd39b193d97912be7ef3e1bf60
[ "Unlicense" ]
null
null
null
config.py
Bryan4real/MyBlog
afab82c6dd0e3cbd39b193d97912be7ef3e1bf60
[ "Unlicense" ]
null
null
null
config.py
Bryan4real/MyBlog
afab82c6dd0e3cbd39b193d97912be7ef3e1bf60
[ "Unlicense" ]
1
2020-05-11T19:32:41.000Z
2020-05-11T19:32:41.000Z
import os class Config: ''' Parent configuration class ''' debug = True SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://bryan:Admin@localhost/blog' # email configurations MAIL_SERVER = 'smtp.gmail.com' MAIL_PORT = 465 MAIL_USE_TLS = Fa...
25.914286
80
0.68688