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
d988d405237128f65932e6288926e8c840426f13
381
py
Python
lego/apps/polls/migrations/0002_poll_results_hidden.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/polls/migrations/0002_poll_results_hidden.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/polls/migrations/0002_poll_results_hidden.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
# Generated by Django 2.2.20 on 2021-05-22 18:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("polls", "0001_initial"), ] operations = [ migrations.AddField( model_name="poll", name="results_hidden", ...
20.052632
53
0.593176
e3c73c3e6a0d427fed7493175cdcdb51a131d629
10,471
py
Python
pix2pix/util/visualizer.py
Maidbot/pytorch-CycleGAN-and-pix2pix
3af6654580613a4bca26a1748ccc547173c3e150
[ "BSD-3-Clause" ]
1
2020-07-30T16:33:25.000Z
2020-07-30T16:33:25.000Z
pix2pix/util/visualizer.py
Maidbot/pytorch-CycleGAN-and-pix2pix
3af6654580613a4bca26a1748ccc547173c3e150
[ "BSD-3-Clause" ]
null
null
null
pix2pix/util/visualizer.py
Maidbot/pytorch-CycleGAN-and-pix2pix
3af6654580613a4bca26a1748ccc547173c3e150
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import os import sys import ntpath import time from pix2pix.util import util, html from subprocess import Popen, PIPE if sys.version_info[0] == 2: VisdomExceptionBase = Exception else: VisdomExceptionBase = ConnectionError def save_images(webpage, visuals, image_path, aspect_ratio=1.0, wi...
47.166667
139
0.569287
3b9dca22d3bda409c3c38fa96d93e6b9eb5aa328
4,095
py
Python
custom_components/tts_wrapper/tts.py
grzgrzgrz3/tts_wrapper
b3774f53a4d388a1240faae730f9a534a2bd4a34
[ "MIT" ]
null
null
null
custom_components/tts_wrapper/tts.py
grzgrzgrz3/tts_wrapper
b3774f53a4d388a1240faae730f9a534a2bd4a34
[ "MIT" ]
null
null
null
custom_components/tts_wrapper/tts.py
grzgrzgrz3/tts_wrapper
b3774f53a4d388a1240faae730f9a534a2bd4a34
[ "MIT" ]
null
null
null
import logging import os from homeassistant.components.tts import Provider, DOMAIN import voluptuous as vol from homeassistant.components.tts import PLATFORM_SCHEMA from homeassistant.config import async_process_component_config, async_hass_config_yaml from homeassistant.const import CONF_PLATFORM import homeassista...
36.891892
116
0.747985
3be1dd160ed59fc3885239955fb9e204b1dd9b08
2,442
py
Python
botmodules/converters.py
Nightmare23h/discordbot
071d3f1bcd7fbd7f63bcffa39e32c57297b243b6
[ "MIT" ]
null
null
null
botmodules/converters.py
Nightmare23h/discordbot
071d3f1bcd7fbd7f63bcffa39e32c57297b243b6
[ "MIT" ]
16
2020-09-14T04:20:49.000Z
2021-01-11T16:55:16.000Z
botmodules/converters.py
Nightmare23h/discordbot
071d3f1bcd7fbd7f63bcffa39e32c57297b243b6
[ "MIT" ]
1
2020-04-29T07:52:46.000Z
2020-04-29T07:52:46.000Z
from discord.ext.commands import BadArgument MORSE_CODE_DICT = { 'A':'.-', 'B':'-...', 'C':'-.-.', 'D':'-..', 'E':'.', 'F':'..-.', 'G':'--.', 'H':'....', 'I':'..', 'J':'.---', 'K':'-.-', 'L':'.-..', 'M...
39.387097
104
0.321458
e4ff4ed8e4314900599631000e8a647b74727546
2,208
py
Python
RecoTracker/IterativeTracking/python/iterativeTk_cff.py
WilliamKorcari/cmssw
c9e2d2d6575971954ce80966542cc5e95e4a8a77
[ "Apache-2.0" ]
1
2019-12-19T13:43:44.000Z
2019-12-19T13:43:44.000Z
RecoTracker/IterativeTracking/python/iterativeTk_cff.py
WilliamKorcari/cmssw
c9e2d2d6575971954ce80966542cc5e95e4a8a77
[ "Apache-2.0" ]
7
2020-02-10T18:55:34.000Z
2022-01-16T20:08:44.000Z
RecoTracker/IterativeTracking/python/iterativeTk_cff.py
WilliamKorcari/cmssw
c9e2d2d6575971954ce80966542cc5e95e4a8a77
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms from RecoTracker.TkSeedGenerator.trackerClusterCheck_cfi import * from RecoTracker.IterativeTracking.InitialStepPreSplitting_cff import * from RecoTracker.IterativeTracking.InitialStep_cff import * from RecoTracker.IterativeTracking.DetachedTripletStep_cff import * from RecoTra...
50.181818
98
0.776268
71b8843d3a26d3612c48e025a5a46df458d38d48
4,598
py
Python
ust-booking/booking.py
KellyHwong/ust-booking
08c891a058bde09f05ccda7421cd7911cfe4c050
[ "MIT" ]
1
2021-10-15T06:00:02.000Z
2021-10-15T06:00:02.000Z
ust-booking/booking.py
KellyHwong/ust-booking
08c891a058bde09f05ccda7421cd7911cfe4c050
[ "MIT" ]
null
null
null
ust-booking/booking.py
KellyHwong/ust-booking
08c891a058bde09f05ccda7421cd7911cfe4c050
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Kelly Hwong # Date: April 8th, 2019 import os import json import requests import random from bs4 import BeautifulSoup from urllib import parse from captcha.ruokuai import RClient from settings import HEADERS, SHAPE_MAP, TARGET_MAP TEST = 1 if TEST: config_f...
35.099237
117
0.590474
e69bb7a9437901aef239034281416142b7c73006
440
py
Python
LDDMM_Python/lddmm_python/modules/math_utils/points_clouds.py
tt6746690/lddmm-ot
98e45d44969221b0fc8206560d9b7a655ef7e137
[ "MIT" ]
48
2017-08-04T03:30:22.000Z
2022-03-09T03:24:11.000Z
LDDMM_Python/lddmm_python/modules/math_utils/points_clouds.py
hushunbo/lddmm-ot
5af26fe32ae440c598ed403ce2876e98d6e1c692
[ "MIT" ]
null
null
null
LDDMM_Python/lddmm_python/modules/math_utils/points_clouds.py
hushunbo/lddmm-ot
5af26fe32ae440c598ed403ce2876e98d6e1c692
[ "MIT" ]
15
2017-09-30T18:55:48.000Z
2021-04-27T18:27:55.000Z
import numpy as np def decimate_indices(q, r) : def rec(l) : if l == [] : return [] else : new_index = l.pop() new_point = q[new_index] s = [] for i in l : curr_point = q[i] if sum((curr_point - new_point)**2) > r**2 : s.append(i) m = rec(s) m.append(new_index) return m ret...
18.333333
55
0.570455
8d71fc108e9bbce9c53d7b92f8382535c0a0a604
3,773
py
Python
bio-utils/alignment.py
dominikstanojevic/python-bio-utils
b7bd6f36d2fe21ea54538c8922b3f9cbfb8a8c16
[ "MIT" ]
null
null
null
bio-utils/alignment.py
dominikstanojevic/python-bio-utils
b7bd6f36d2fe21ea54538c8922b3f9cbfb8a8c16
[ "MIT" ]
null
null
null
bio-utils/alignment.py
dominikstanojevic/python-bio-utils
b7bd6f36d2fe21ea54538c8922b3f9cbfb8a8c16
[ "MIT" ]
null
null
null
from mappy import Aligner, Alignment import numpy as np from enum import Enum from pathlib import Path from typing import * class Strand(str, Enum): FORWARD = '+', REVERSE = '-' def get_aligner(reference: Union[Path, str], preset: str='map-ont', **kwargs) -> Optional[Align...
33.990991
87
0.649616
536a806c03b9c1b9f9bb76aa41845419f434c441
18,321
py
Python
neutron/scheduler/l3_agent_scheduler.py
acdc-cloud/neutron
2510836886555179f9e9e39b1fdbf94296befc51
[ "Apache-2.0" ]
null
null
null
neutron/scheduler/l3_agent_scheduler.py
acdc-cloud/neutron
2510836886555179f9e9e39b1fdbf94296befc51
[ "Apache-2.0" ]
null
null
null
neutron/scheduler/l3_agent_scheduler.py
acdc-cloud/neutron
2510836886555179f9e9e39b1fdbf94296befc51
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation. # 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...
43.830144
79
0.628677
b8995bd1963da2adf1ffc0bdaedd53563d3f636d
4,974
py
Python
python/pyspark/mllib/common.py
kyoty/spark
4a4f207f4215d56f126c2474fd7a94f427937a2f
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
35,083
2015-01-01T03:05:13.000Z
2022-03-31T21:57:40.000Z
python/pyspark/mllib/common.py
kyoty/spark
4a4f207f4215d56f126c2474fd7a94f427937a2f
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
32,117
2015-01-01T00:00:24.000Z
2022-03-31T23:54:58.000Z
python/pyspark/mllib/common.py
kyoty/spark
4a4f207f4215d56f126c2474fd7a94f427937a2f
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
29,687
2015-01-01T02:40:43.000Z
2022-03-31T16:49:33.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 us...
31.283019
93
0.664053
33488273e47870b6e5abfcce08011482c08c0d94
747
py
Python
rial/ir/metadata/FunctionDefinition.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
2
2020-06-02T20:00:28.000Z
2020-06-06T02:15:49.000Z
rial/ir/metadata/FunctionDefinition.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
51
2020-04-13T13:27:10.000Z
2020-06-12T11:38:36.000Z
rial/ir/metadata/FunctionDefinition.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
2
2020-06-24T14:44:01.000Z
2020-11-29T04:08:54.000Z
from typing import List from rial.ir.RIALVariable import RIALVariable from rial.ir.modifier.AccessModifier import AccessModifier class FunctionDefinition: rial_return_type: str access_modifier: AccessModifier rial_args: List[RIALVariable] struct: str unsafe: bool def __init__(self, rial_retu...
31.125
108
0.700134
1d863a2ea2286ab6af13fbb9ae5f9628e8e3cf2b
247
py
Python
dad_torch/__init__.py
trendscenter/easytorch
0faf6c7f09701c8f73ed4061214ca724c83d82aa
[ "MIT" ]
1
2021-07-04T15:37:24.000Z
2021-07-04T15:37:24.000Z
dad_torch/__init__.py
trendscenter/easytorch
0faf6c7f09701c8f73ed4061214ca724c83d82aa
[ "MIT" ]
null
null
null
dad_torch/__init__.py
trendscenter/easytorch
0faf6c7f09701c8f73ed4061214ca724c83d82aa
[ "MIT" ]
1
2021-09-29T18:17:25.000Z
2021-09-29T18:17:25.000Z
from dad_torch.config import default_ap, default_args from dad_torch.data import DTDataset, DTDataHandle from dad_torch.metrics import DADMetrics, DADAverages, Prf1a, ConfusionMatrix from .dad_torch import DADTorch from .trainer import NNTrainer
35.285714
77
0.854251
7f9c6031dbce08ee5d6ccb5ad6433ab487a7085b
173
py
Python
Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex050.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex050.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex050.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
soma = 0 for c in range(1, 7): num = int(input("Digite um número: ")) if num % 2 == 0: soma = soma + num print("A soma dos números pares é: {}".format(soma))
28.833333
52
0.560694
9b679fc52a35f706f1b60588d3027a52f85cdb51
2,879
py
Python
.modules/.sqlmap/lib/request/direct.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.sqlmap/lib/request/direct.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.sqlmap/lib/request/direct.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
161
2018-04-20T15:57:12.000Z
2022-03-15T19:16:16.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ import time from extra.safe2bin.safe2bin import safecharencode from lib.core.agent import agent from lib.core.common import Backend from lib.core.common import calculateDeltaSeco...
35.9875
115
0.708579
9b3169f7f592b5a30835c86079f87f885bf2f590
104,708
py
Python
env/lib/python3.6/site-packages/pkg_resources/__init__.py
franklinmatheus/sistema-gerenciamento-economico
6e2565eedd644469d22da3ea58141bcedb46da97
[ "Apache-2.0" ]
null
null
null
env/lib/python3.6/site-packages/pkg_resources/__init__.py
franklinmatheus/sistema-gerenciamento-economico
6e2565eedd644469d22da3ea58141bcedb46da97
[ "Apache-2.0" ]
1
2019-06-10T23:49:34.000Z
2020-09-23T01:10:06.000Z
env/lib/python3.6/site-packages/pkg_resources/__init__.py
franklinmatheus/sistema-gerenciamento-economico
6e2565eedd644469d22da3ea58141bcedb46da97
[ "Apache-2.0" ]
1
2020-07-20T07:20:15.000Z
2020-07-20T07:20:15.000Z
# coding: utf-8 """ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path opera...
33.010088
88
0.623076
adab4b6e5e3a0c68d0364e6360c8e05da47df063
2,948
py
Python
src/corpus/make_messy_dataset.py
rkechols/post-OCR-corrector
552e4a2baf6fd7289396edae2c54fd83987b6d19
[ "MIT" ]
1
2021-11-15T22:44:15.000Z
2021-11-15T22:44:15.000Z
src/corpus/make_messy_dataset.py
rkechols/post-OCR-corrector
552e4a2baf6fd7289396edae2c54fd83987b6d19
[ "MIT" ]
null
null
null
src/corpus/make_messy_dataset.py
rkechols/post-OCR-corrector
552e4a2baf6fd7289396edae2c54fd83987b6d19
[ "MIT" ]
null
null
null
import argparse import os import random from enum import auto, Enum from tqdm import tqdm from corpus import CORPUS_MESSY_FILE_NAME, CORPUS_PLAIN_FILE_NAME from util import DEFAULT_ENCODING from util.data_functions import get_alphabet class EditType(Enum): DELETE = auto() CHANGE = auto() INSERT = auto()...
34.27907
136
0.62483
01ab4b58f33a8220f2e287a3ffd9c37922569981
4,422
py
Python
test/dungeons/TestSkullWoods.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
42
2019-08-22T16:19:51.000Z
2022-03-30T17:39:39.000Z
test/dungeons/TestSkullWoods.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
48
2019-09-04T22:47:03.000Z
2022-01-13T22:16:13.000Z
test/dungeons/TestSkullWoods.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
35
2020-01-10T09:12:53.000Z
2022-03-23T08:22:25.000Z
from test.dungeons.TestDungeon import TestDungeon class TestSkullWoods(TestDungeon): def testSkullWoodsFrontAllEntrances(self): self.starting_regions = ['Skull Woods First Section', 'Skull Woods First Section (Left)', 'Skull Woods First Section (Top)'] self.run_tests([ ["Skull Woods -...
46.0625
157
0.541836
9b2944bb60604b81a96e62545859b3352cf17fa9
488
py
Python
python/python_backup/PRAC_PYTHON/fy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/fy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/fy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class palindrome: def __init__(self): self.a="" def input(self,k1): self.a=k1 def calculate(self): f=i=0 j=len(self.a)-1 while i<len(self.a)/2: if self.a[i]!=self.a[j]: f=1 break i=i+1 j=j-1 ...
22.181818
47
0.467213
eaa6464ec90dc32532e0a3f9625ef0e375ef2c18
1,848
py
Python
mord/datasets/base.py
thomas-haslwanter/mord
a91645b8bdf3ba7311cff8cfb694e29d7abf89d8
[ "BSD-3-Clause" ]
237
2015-06-19T04:30:13.000Z
2022-03-10T15:37:47.000Z
mord/datasets/base.py
Moyookc/mord
ef578a79bf8374d84b77f246454b06d81a620630
[ "BSD-3-Clause" ]
24
2015-12-09T17:22:22.000Z
2021-04-02T16:45:52.000Z
mord/datasets/base.py
Moyookc/mord
ef578a79bf8374d84b77f246454b06d81a620630
[ "BSD-3-Clause" ]
67
2015-06-26T05:15:59.000Z
2022-03-09T09:32:03.000Z
from os.path import dirname, join import numpy as np from sklearn.datasets.base import Bunch def load_housing(): from pandas import read_csv """Load and return the Copenhagen housing survey dataset (ordinal classification). ============== ============== Samples total 1681 ...
30.8
79
0.605519
767920a4b987e5298e220bf349f292fb14d68695
723
py
Python
Master/Python/project_configuration.py
Chiburator/master-scheduler
857ad6a7dd4d6413517d0191e23883c3938a15e4
[ "BSD-3-Clause" ]
null
null
null
Master/Python/project_configuration.py
Chiburator/master-scheduler
857ad6a7dd4d6413517d0191e23883c3938a15e4
[ "BSD-3-Clause" ]
null
null
null
Master/Python/project_configuration.py
Chiburator/master-scheduler
857ad6a7dd4d6413517d0191e23883c3938a15e4
[ "BSD-3-Clause" ]
1
2021-09-14T15:47:35.000Z
2021-09-14T15:47:35.000Z
#!/usr/local/bin/python3 from enum import Enum class Testbed(Enum): cooja = 0 flocklab = 1 kiel = 2 class Platform(Enum): zoul = 0 sky = 1 cooja = 2 def get_valid_node_ids(testbed, cooja_node_count=5): if testbed == Testbed.flocklab: valid_node_ids = [ 1, 2, 3, 4, 6, 7, 8, 10, ...
27.807692
62
0.536653
16d46b9b20885111fd2fc2096c16469ed3305db6
8,769
py
Python
sdk/python/pulumi_azure_native/storsimple/v20161001/manager_extended_info.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storsimple/v20161001/manager_extended_info.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storsimple/v20161001/manager_extended_info.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
45.201031
570
0.658684
4787b20bfb80933b0c671f787e595c482c5573a4
14,077
py
Python
Hero.py
caleb-austin/PyRPG_Mini
25ed531e1c97322dad21cf59aff4c377a3e6f121
[ "MIT" ]
2
2020-02-12T00:19:59.000Z
2020-02-18T23:36:35.000Z
Hero.py
caleb-austin/PyRPG_Mini
25ed531e1c97322dad21cf59aff4c377a3e6f121
[ "MIT" ]
11
2020-02-13T23:38:50.000Z
2020-04-20T00:10:36.000Z
Hero.py
caleb-austin/PyRPG_Mini
25ed531e1c97322dad21cf59aff4c377a3e6f121
[ "MIT" ]
4
2020-02-12T00:18:21.000Z
2020-04-15T02:28:28.000Z
import random import Armor import Game import Item import Shield import Weapon import dbsetup from texttools import * class Hero: def __init__(self, heroclass, herolevel, herohp, heroatk, herodefn, heronextlevel, herododge): # name self.name = '' # instance vars self.ourclass = h...
33.516667
120
0.547347
93ba9711a7ce007eabe51e00983ef2547218eedf
3,515
py
Python
search/services/tests/test_fulltext.py
katsby-skye/arxiv-search
e5c714b474a2ac5e54452642428cee35e2a0c8b9
[ "MIT" ]
2
2019-03-11T21:06:35.000Z
2019-03-11T21:22:31.000Z
search/services/tests/test_fulltext.py
Acidburn0zzz/arxiv-search
e0d91dadc6533ff25f521e37977c4e690a505531
[ "MIT" ]
1
2019-04-18T07:33:00.000Z
2019-04-18T07:33:00.000Z
search/services/tests/test_fulltext.py
Acidburn0zzz/arxiv-search
e0d91dadc6533ff25f521e37977c4e690a505531
[ "MIT" ]
1
2019-03-11T21:07:51.000Z
2019-03-11T21:07:51.000Z
"""Tests for :mod:`search.services.fulltext`.""" import unittest from unittest import mock from search.services import fulltext class TestRetrieveExistantContent(unittest.TestCase): """Fulltext content is available for a paper.""" @mock.patch('search.services.fulltext.requests.get') def test_calls_fullt...
38.626374
77
0.657468
dc028e24fef4e4bcff11b3b370feb6e2f9232fd2
1,920
py
Python
textclassifier/gensim/models/__init__.py
amitmohapatra/GenericTextClassifier
c77237ff0a34f089b2a7a3ccf6ece4b91779215c
[ "MIT" ]
null
null
null
textclassifier/gensim/models/__init__.py
amitmohapatra/GenericTextClassifier
c77237ff0a34f089b2a7a3ccf6ece4b91779215c
[ "MIT" ]
null
null
null
textclassifier/gensim/models/__init__.py
amitmohapatra/GenericTextClassifier
c77237ff0a34f089b2a7a3ccf6ece4b91779215c
[ "MIT" ]
null
null
null
""" This package contains algorithms for extracting document representations from their raw bag-of-word counts. """ # bring model classes directly into package namespace, to save some typing from .hdpmodel import HdpModel from .ldamodel import LdaModel from .lsimodel import LsiModel from .tfidfmodel import TfidfModel ...
33.684211
102
0.719271
0b4cdf15fb526d960514d25824698ef5a5bfa431
4,921
py
Python
homeassistant/components/homekit/const.py
MattyBoy4444/home-assistant
b7b8296c73b28634bb9c60efe1ad976b1092fce8
[ "Apache-2.0" ]
null
null
null
homeassistant/components/homekit/const.py
MattyBoy4444/home-assistant
b7b8296c73b28634bb9c60efe1ad976b1092fce8
[ "Apache-2.0" ]
null
null
null
homeassistant/components/homekit/const.py
MattyBoy4444/home-assistant
b7b8296c73b28634bb9c60efe1ad976b1092fce8
[ "Apache-2.0" ]
null
null
null
"""Constants used be the HomeKit component.""" # #### Misc #### DEBOUNCE_TIMEOUT = 0.5 DOMAIN = 'homekit' HOMEKIT_FILE = '.homekit.state' HOMEKIT_NOTIFY_ID = 4663548 # #### Attributes #### ATTR_DISPLAY_NAME = 'display_name' ATTR_VALUE = 'value' # #### Config #### CONF_AUTO_START = 'auto_start' CONF_ENTITY_CONFIG = 'e...
31.954545
66
0.80065
14675a3edee0a45a5cd2b160ab38574975c33b59
954
py
Python
Python/test/test_bqs/test_dijkstra_two_stack.py
chatterjeem-nu/INFO6206_Assignment3
d2d065a11a9a3f384500c15b7430f1343e47e42b
[ "Apache-2.0" ]
3
2021-04-20T05:06:16.000Z
2022-03-26T23:55:11.000Z
Python/test/test_bqs/test_dijkstra_two_stack.py
chatterjeem-nu/INFO6206_Assignment3
d2d065a11a9a3f384500c15b7430f1343e47e42b
[ "Apache-2.0" ]
null
null
null
Python/test/test_bqs/test_dijkstra_two_stack.py
chatterjeem-nu/INFO6206_Assignment3
d2d065a11a9a3f384500c15b7430f1343e47e42b
[ "Apache-2.0" ]
1
2021-03-02T01:19:42.000Z
2021-03-02T01:19:42.000Z
import unittest from bqs.dijkstra_two_stack import DijkstraTwoStack from bqs.bqs_exception import BqsException class TestDijkstraTwoStack(unittest.TestCase): def testTwoStack(self): self.assertEqual(1, DijkstraTwoStack("1").evaluate()) self.assertEqual(3, DijkstraTwoStack("1 + 2").evaluate()) ...
35.333333
91
0.681342
bef3831d569d901686da537dfa674f901a0235e3
4,958
py
Python
noip-renew.py
lorenzoracca/noip-renew
c35173f3251a187d79401ec9ed0ca7a340740d9d
[ "Apache-2.0" ]
3
2021-05-19T10:42:44.000Z
2022-01-02T02:47:58.000Z
noip-renew.py
gioxx/rpi-noip-renew
a518e11f6373961f8b2fb3481ef61c1ed8e2f5fd
[ "Apache-2.0" ]
null
null
null
noip-renew.py
gioxx/rpi-noip-renew
a518e11f6373961f8b2fb3481ef61c1ed8e2f5fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 loblab # # 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 agr...
35.414286
102
0.617386
7e89758c9972c6bf6652028724285f8f6c378361
4,232
py
Python
onnxruntime/test/python/quantization/test_op_gavgpool.py
toothache/onnxruntime
217b2c9f931b5b0f704df0c8336def47025d2148
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/test/python/quantization/test_op_gavgpool.py
toothache/onnxruntime
217b2c9f931b5b0f704df0c8336def47025d2148
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/test/python/quantization/test_op_gavgpool.py
toothache/onnxruntime
217b2c9f931b5b0f704df0c8336def47025d2148
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
#!/usr/bin/env python # coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -----------------------------------------------...
42.32
120
0.602079
8bed1f203a7092cf4e06e8189355e5aaeaa8c89e
31,764
py
Python
production_apps/ESPRESO/src/python/myModul.py
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
2
2020-11-25T13:10:11.000Z
2021-03-15T20:26:35.000Z
production_apps/ESPRESO/src/python/myModul.py
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
null
null
null
production_apps/ESPRESO/src/python/myModul.py
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
1
2018-09-30T19:04:38.000Z
2018-09-30T19:04:38.000Z
import numpy as np from scipy import sparse import scipy.sparse.linalg as spla import config_espreso_python as conf import pylab as plt import os.path #import multiprocessing #import sys # # def load_matrix(path,str0,i,j,makeSparse,makeSymmetric): pathToFile = path+'/'+str(i)+'/'+str0+str(j)+'.txt' print...
35.17608
105
0.455988
88ecb78733f42184fecd04511aaced0834ba9ced
1,260
py
Python
test/test_v1_payment_surcharge_type.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
53
2016-08-06T17:12:16.000Z
2020-08-02T19:43:58.000Z
test/test_v1_payment_surcharge_type.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
32
2016-08-19T16:32:30.000Z
2020-01-14T18:01:37.000Z
test/test_v1_payment_surcharge_type.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
45
2016-09-05T11:58:09.000Z
2020-11-15T16:26:41.000Z
# coding: utf-8 """ Copyright 2017 Square, 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 la...
25.714286
87
0.734127
92b04b336a11c5681688d85dfc6075e96f04f970
6,582
py
Python
tests/web/test_add.py
AndrewLorente/catsnap
57427b8f61ef5185a41e49d55ffd7dd328777834
[ "MIT" ]
5
2015-11-23T18:40:00.000Z
2019-03-22T06:54:04.000Z
tests/web/test_add.py
AndrewLorente/catsnap
57427b8f61ef5185a41e49d55ffd7dd328777834
[ "MIT" ]
5
2016-04-07T15:35:53.000Z
2019-02-10T23:00:32.000Z
tests/web/test_add.py
AndrewLorente/catsnap
57427b8f61ef5185a41e49d55ffd7dd328777834
[ "MIT" ]
2
2015-12-02T16:44:05.000Z
2017-09-29T23:17:33.000Z
from __future__ import unicode_literals import json import uuid from StringIO import StringIO from mock import patch, Mock, call from tests import TestCase, logged_in from nose.tools import eq_ from catsnap import Client from catsnap.table.image import Image, ImageContents from catsnap.table.album import Album from ca...
33.927835
73
0.582346
4803c793566c9e9b9979f30c97ea780f7462f168
18,622
py
Python
Contrastive_Supervision_Synthesis/contrastqg/transformers/__init__.py
vishalbelsare/OpenMatch
84b25502bf52c58b9e71bd0754b2fc192d9b448f
[ "MIT" ]
403
2020-01-17T06:54:46.000Z
2022-03-30T05:47:42.000Z
Contrastive_Supervision_Synthesis/contrastqg/transformers/__init__.py
vishalbelsare/OpenMatch
84b25502bf52c58b9e71bd0754b2fc192d9b448f
[ "MIT" ]
30
2020-06-07T12:28:07.000Z
2022-03-20T05:26:03.000Z
Contrastive_Supervision_Synthesis/contrastqg/transformers/__init__.py
vishalbelsare/OpenMatch
84b25502bf52c58b9e71bd0754b2fc192d9b448f
[ "MIT" ]
48
2020-07-15T09:45:46.000Z
2022-03-01T07:27:59.000Z
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. __version__ = "2.11.0" # Work around to update TensorFlow's absl.logging threshold which alters the # default Python logging output behavior when pr...
33.553153
164
0.754645
088f5b6628475812de1f807ec667d96921f8552a
1,540
py
Python
test/functional/wallet_disable.py
MyagCat/xpchain
12b64c4b60fcce7b7e2dea5eddf94c19ab3ea103
[ "MIT" ]
11
2018-06-04T10:51:01.000Z
2021-05-10T07:47:52.000Z
test/functional/wallet_disable.py
MyagCat/xpchain
12b64c4b60fcce7b7e2dea5eddf94c19ab3ea103
[ "MIT" ]
46
2018-06-10T16:34:54.000Z
2021-06-30T05:49:10.000Z
test/functional/wallet_disable.py
MyagCat/xpchain
12b64c4b60fcce7b7e2dea5eddf94c19ab3ea103
[ "MIT" ]
19
2018-05-22T15:37:45.000Z
2022-02-13T16:58:02.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test a node with the -disablewallet option. - Test that validateaddress RPC works when running with -d...
44
128
0.734416
f24f30105f79fe3421fb5eb2c4f94e535bae164a
506
py
Python
paradrop/daemon/paradrop/lib/utils/uhttp.py
lhartung/paradrop-test
22a491bf3198bf61bcabaedfaecde5b9be97e76f
[ "Apache-2.0" ]
1
2018-03-22T13:04:19.000Z
2018-03-22T13:04:19.000Z
paradrop/daemon/paradrop/lib/utils/uhttp.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
7
2021-03-18T20:54:50.000Z
2022-03-11T23:27:40.000Z
paradrop/daemon/paradrop/lib/utils/uhttp.py
lhartung/paradrop-test
22a491bf3198bf61bcabaedfaecde5b9be97e76f
[ "Apache-2.0" ]
null
null
null
import httplib import socket class UHTTPConnection(httplib.HTTPConnection): """ Subclass of Python library HTTPConnection that uses a unix-domain socket. Source: http://7bits.nl/blog/posts/http-on-unix-sockets-with-python """ def __init__(self, path): httplib.HTTPConnection.__init__(self...
25.3
77
0.681818
e80297b9b87b1ed84676ab64fdee7d0aac47473e
689
py
Python
lib/feature_impact.py
janged/explainx
73d106134473ac5c3f2d9c16f9391f33a63b8929
[ "MIT" ]
310
2020-06-17T07:39:44.000Z
2022-03-31T06:16:49.000Z
lib/feature_impact.py
janged/explainx
73d106134473ac5c3f2d9c16f9391f33a63b8929
[ "MIT" ]
25
2020-06-18T18:47:07.000Z
2022-01-12T01:20:13.000Z
lib/feature_impact.py
janged/explainx
73d106134473ac5c3f2d9c16f9391f33a63b8929
[ "MIT" ]
43
2020-06-16T22:31:30.000Z
2022-03-13T02:46:09.000Z
from imports import * class feature_impact(): def __init__(self): super(feature_impact, self).__init__() self.param= None def find(self, df): df = pd.DataFrame(df) print(df) variables = [col for col in df.columns if '_impact' in col] y = [] for i in r...
27.56
79
0.550073
ad1e19227b0d4600f1a27c340aba0c0e39f0bf5a
84
py
Python
face_cropper/__init__.py
bagxi/idrnd-anti-spoofing-challenge-solution
c4e1f561725a635b85c5eb7f1de85c4ff57a066c
[ "MIT" ]
12
2019-06-21T09:24:42.000Z
2021-12-13T20:10:22.000Z
face_cropper/__init__.py
bagxi/idrnd-anti-spoofing-challenge-solution
c4e1f561725a635b85c5eb7f1de85c4ff57a066c
[ "MIT" ]
1
2019-08-23T18:07:59.000Z
2020-10-29T12:10:30.000Z
face_cropper/__init__.py
bagxi/idrnd-anti-spoofing-challenge-solution
c4e1f561725a635b85c5eb7f1de85c4ff57a066c
[ "MIT" ]
4
2019-06-27T02:06:59.000Z
2021-09-22T01:45:57.000Z
from .detect_engine import FaceDetectionEngine from .face_cropper import crop_faces
28
46
0.880952
f9e3b7a7f8fd48113e8ddeecb01e87164720b601
741
py
Python
drf2/tutorial/snippets/migrations/0002_auto_20210508_0524.py
xzhou/lang
66a058b0bcf81d938e666c1270f06f6fe9c0e5a4
[ "MIT" ]
null
null
null
drf2/tutorial/snippets/migrations/0002_auto_20210508_0524.py
xzhou/lang
66a058b0bcf81d938e666c1270f06f6fe9c0e5a4
[ "MIT" ]
null
null
null
drf2/tutorial/snippets/migrations/0002_auto_20210508_0524.py
xzhou/lang
66a058b0bcf81d938e666c1270f06f6fe9c0e5a4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.1 on 2021-05-08 05:24 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('snippets', '0001_initial...
27.444444
135
0.642375
e2f053b40d9b16ece4305b9440f7d3d34261d5ee
6,591
py
Python
externals/cmsis/CMSIS_5/CMSIS/NN/Examples/ARM/arm_nn_examples/gru/para_gen.py
zenglongGH/spresense
b17578aac9faa417b6f1a6d7ebf8f37c57c5ea68
[ "Apache-2.0" ]
110
2018-07-12T16:04:50.000Z
2022-02-26T12:27:56.000Z
externals/cmsis/CMSIS_5/CMSIS/NN/Examples/ARM/arm_nn_examples/gru/para_gen.py
zenglongGH/spresense
b17578aac9faa417b6f1a6d7ebf8f37c57c5ea68
[ "Apache-2.0" ]
54
2020-06-09T06:10:57.000Z
2022-03-10T18:11:50.000Z
externals/cmsis/CMSIS_5/CMSIS/NN/Examples/ARM/arm_nn_examples/gru/para_gen.py
zenglongGH/spresense
b17578aac9faa417b6f1a6d7ebf8f37c57c5ea68
[ "Apache-2.0" ]
94
2018-07-13T03:48:34.000Z
2022-03-19T07:32:08.000Z
#!/usr/bin/env python # # This is a simple script to generate and convert weights # from regular ordering to specific ordering used by # q7_x4 or q7_q15_x4 # import numpy as np def convert_to_x4_weights(weights): [r, h, w, c] = weights.shape weights = np.reshape(weights, (r, h*w*c)) num_of_rows = r ...
35.820652
73
0.683963
c678ccb074e166e572d3447302348586d767564c
840
py
Python
Claire/002n Cheque Book/main.py
eMUQI/MakePythonProject
b70646ab2318c4b9828bc0186c92d725c6b0b136
[ "MIT" ]
8
2020-08-28T13:17:59.000Z
2020-12-27T01:47:34.000Z
Claire/002n Cheque Book/main.py
eMUQI/MakePythonProject
b70646ab2318c4b9828bc0186c92d725c6b0b136
[ "MIT" ]
1
2021-03-13T16:08:04.000Z
2021-03-13T16:08:04.000Z
Claire/002n Cheque Book/main.py
eMUQI/MakePythonProject
b70646ab2318c4b9828bc0186c92d725c6b0b136
[ "MIT" ]
5
2020-08-25T14:02:03.000Z
2020-09-07T07:51:34.000Z
NumberToNineteen = ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fiveteen", "Sixteen", "Seventeen", "Egihteen", "Nighteen"] WholeTen = ["Twenty", "Thirty", "Fourty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"] Singles = ["One", "Two",...
32.307692
202
0.565476
ee62108b17d42c736856b8733f3ae4635f8dc080
596
py
Python
qctests/EN_range_check.py
BillMills/AutoQC
cb56fa5bb2115170ec204edd84e2d69ce84be820
[ "MIT" ]
17
2015-01-31T00:35:58.000Z
2020-10-26T19:01:46.000Z
qctests/EN_range_check.py
castelao/AutoQC
eb85422c1a6a5ff965a1ef96b3cb29240a66b506
[ "MIT" ]
163
2015-01-21T03:44:42.000Z
2022-01-09T22:03:12.000Z
qctests/EN_range_check.py
BillMills/AutoQC
cb56fa5bb2115170ec204edd84e2d69ce84be820
[ "MIT" ]
11
2015-06-04T14:32:22.000Z
2021-04-11T05:18:09.000Z
""" Implements the global range check used in the EN quality control system. """ def test(p, parameters): """ Runs the quality control check on profile p and returns a numpy array of quality control decisions with False where the data value has passed the check and True where it failed. """ ...
24.833333
74
0.644295
5f07ff2c5bb6b9c813a1a2cd05cf670d03b9ab71
46,739
py
Python
returns/context/requires_context_future_result.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
returns/context/requires_context_future_result.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
returns/context/requires_context_future_result.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
from typing import ( TYPE_CHECKING, Any, Awaitable, Callable, ClassVar, Iterable, Sequence, Type, TypeVar, ) from typing_extensions import final from returns._internal.futures import _reader_future_result from returns._internal.iterable import iterable_kind from returns.context imp...
33.456693
80
0.574103
85187f76e40ee1cb934ce9359f12e6faab901750
156
py
Python
viberio/types/requests/unsubscribed_request.py
vorlov-bash/viberio
8bea3bb4f39f68e9b83f1d1876d293b641ee6a06
[ "MIT" ]
18
2019-02-20T15:24:21.000Z
2022-03-24T12:48:30.000Z
viberio/types/requests/unsubscribed_request.py
vorlov-bash/viberio
8bea3bb4f39f68e9b83f1d1876d293b641ee6a06
[ "MIT" ]
null
null
null
viberio/types/requests/unsubscribed_request.py
vorlov-bash/viberio
8bea3bb4f39f68e9b83f1d1876d293b641ee6a06
[ "MIT" ]
10
2019-04-05T17:09:03.000Z
2021-09-17T17:17:08.000Z
import attr from viberio.types.requests import ViberReqestObject @attr.s class ViberUnsubscribedRequest(ViberReqestObject): user_id: str = attr.ib()
17.333333
52
0.794872
3f4142c11809c515859b18b9ff793ae626cd0f90
3,509
py
Python
tests/integration/stationsapi30/test_integration_stationsapi30.py
jpelaezClub/pyowm
ed8185fb6f1e3b0dcd1adc18d7082a76993ff762
[ "MIT" ]
null
null
null
tests/integration/stationsapi30/test_integration_stationsapi30.py
jpelaezClub/pyowm
ed8185fb6f1e3b0dcd1adc18d7082a76993ff762
[ "MIT" ]
162
2019-08-25T19:14:18.000Z
2021-05-10T19:16:30.000Z
tests/integration/stationsapi30/test_integration_stationsapi30.py
jpelaezClub/pyowm
ed8185fb6f1e3b0dcd1adc18d7082a76993ff762
[ "MIT" ]
null
null
null
import unittest import os import copy from pyowm.constants import DEFAULT_API_KEY from pyowm.webapi25.configuration25 import parsers from pyowm.webapi25.owm25 import OWM25 from pyowm.stationsapi30.buffer import Buffer class IntegrationTestsStationsAPI30(unittest.TestCase): __owm = OWM25(parsers, os.getenv('OWM_A...
38.988889
76
0.650613
8511c02f311682e7f11c4fd1a20ac1f3e3a02d67
3,521
py
Python
source/python-vsmclient/vsmclient/openstack/common/version.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
172
2015-01-07T08:40:17.000Z
2019-02-18T07:01:11.000Z
source/python-vsmclient/vsmclient/openstack/common/version.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
83
2015-03-06T07:47:03.000Z
2018-07-05T15:10:19.000Z
source/python-vsmclient/vsmclient/openstack/common/version.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
125
2015-01-05T12:22:15.000Z
2019-02-18T07:01:39.000Z
# Copyright 2012 OpenStack Foundation # Copyright 2012-2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apa...
37.860215
79
0.643567
519ce8fe419376dda921d58b31e8afa1e1089f2f
15,724
py
Python
airflow/providers/microsoft/azure/operators/container_instances.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
airflow/providers/microsoft/azure/operators/container_instances.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
airflow/providers/microsoft/azure/operators/container_instances.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.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...
41.819149
110
0.608115
2dd98899d9abb2578b24a809560b33ddb781bd32
7,283
py
Python
basicNLTK.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
1
2017-12-31T18:09:06.000Z
2017-12-31T18:09:06.000Z
basicNLTK.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
null
null
null
basicNLTK.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- ###################################################### # ESTE PEDAZO CONTROLA LA SALIDA UTF-8 Y LA AYUDA import argparse parser = argparse.ArgumentParser(description=u'NLTK Básico en español') parser.add_argument("-u", "--utf8", help=u"Codificar la salida como UTF-8.", action...
38.739362
373
0.659344
c0bc7bd73be4d67191a33b8a364c77004fc05099
3,909
py
Python
DaemonCerts/VOConfigWriter.py
timostrunk/UNICOREDaemonCerts
0dd3c78c48d3384a5ecb55464fc46af5c8c3e03e
[ "BSD-3-Clause" ]
null
null
null
DaemonCerts/VOConfigWriter.py
timostrunk/UNICOREDaemonCerts
0dd3c78c48d3384a5ecb55464fc46af5c8c3e03e
[ "BSD-3-Clause" ]
null
null
null
DaemonCerts/VOConfigWriter.py
timostrunk/UNICOREDaemonCerts
0dd3c78c48d3384a5ecb55464fc46af5c8c3e03e
[ "BSD-3-Clause" ]
1
2021-02-02T12:48:36.000Z
2021-02-02T12:48:36.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals def write_vo_config(UNITY_PEM_LOCATION,COMPONENT,UNITY_FQDN,GATEWAY_FQDN,GATEWAY_PORT): template = """# ########################## # General configuration # ################...
44.931034
96
0.773855
ac216ae810eb75c420e521486f2f4bde3d740daf
147
py
Python
dsm/ss_threaded.py
enorenio/test
dfba0b6c6de796ff6a94194c9a3fc68655eb77ec
[ "MIT" ]
null
null
null
dsm/ss_threaded.py
enorenio/test
dfba0b6c6de796ff6a94194c9a3fc68655eb77ec
[ "MIT" ]
null
null
null
dsm/ss_threaded.py
enorenio/test
dfba0b6c6de796ff6a94194c9a3fc68655eb77ec
[ "MIT" ]
null
null
null
import socket import json import configparser Config = configparser.ConfigParser() Config.read("config.ini") port = Config.get("Settings", "Port")
21
37
0.77551
9baca7a856408693277d65a3719880acef81fb95
123
py
Python
749A Bachgold Problem..py
YasirAhmad-EccentriX/CodeForces
d004b4d1b52a360ac6c06870e0a237345771e32c
[ "MIT" ]
1
2021-01-29T16:30:09.000Z
2021-01-29T16:30:09.000Z
749A Bachgold Problem..py
YasirAhmad-EccentriX/CodeForces
d004b4d1b52a360ac6c06870e0a237345771e32c
[ "MIT" ]
null
null
null
749A Bachgold Problem..py
YasirAhmad-EccentriX/CodeForces
d004b4d1b52a360ac6c06870e0a237345771e32c
[ "MIT" ]
null
null
null
n=int(input()) print(n//2) if n%2 == 0: print((n//2*'2 ').rstrip()) else: print((n//2 -1)*'2 ','3',sep='')
15.375
37
0.422764
29c8a268300394d84966d0043621e0a808a6121d
2,444
py
Python
examples/run_multi_functions_and_times.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
162
2020-08-31T10:13:06.000Z
2022-03-31T09:38:19.000Z
examples/run_multi_functions_and_times.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
51
2020-09-13T10:46:31.000Z
2022-03-30T06:12:08.000Z
examples/run_multi_functions_and_times.py
JokerHB/mealpy
4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f
[ "MIT" ]
58
2020-09-12T13:29:18.000Z
2022-03-31T09:38:21.000Z
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 20:28, 16/03/2020 % # ...
40.065574
137
0.527823
3d72bce1d677bfeb8d922627c3870b27552b8afa
4,363
py
Python
saleor/core/permissions/__init__.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
1,392
2021-10-06T15:54:28.000Z
2022-03-31T20:50:55.000Z
saleor/core/permissions/__init__.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
888
2021-10-06T10:48:54.000Z
2022-03-31T11:00:30.000Z
saleor/core/permissions/__init__.py
gustavoarmoa/saleor
f81b2f347e4c7a624cd68a1eca3b0a5611498f6e
[ "CC-BY-4.0" ]
538
2021-10-07T16:21:27.000Z
2022-03-31T22:58:57.000Z
from typing import TYPE_CHECKING, Collection, Union from .auth_filters import ( AuthorizationFilters, is_app, is_staff_user, is_user, resolve_authorization_filter_fn, ) from .enums import ( PERMISSIONS_ENUMS, AccountPermissions, AppPermission, BasePermissionEnum, ChannelPermissi...
29.281879
87
0.705707
bef0a7b3b89ec53cc73c2b39e7424b14e7eb0359
7,956
py
Python
pynetbox/core/api.py
markkuleinio/pynetbox
bee2ae9219ca78f3e587fcf0d2cc36c6533146ff
[ "Apache-2.0" ]
null
null
null
pynetbox/core/api.py
markkuleinio/pynetbox
bee2ae9219ca78f3e587fcf0d2cc36c6533146ff
[ "Apache-2.0" ]
null
null
null
pynetbox/core/api.py
markkuleinio/pynetbox
bee2ae9219ca78f3e587fcf0d2cc36c6533146ff
[ "Apache-2.0" ]
null
null
null
""" (c) 2017 DigitalOcean 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, software distribut...
34.591304
88
0.574786
6b1309c768e6b80b106000660991eb5a61b4568d
16,990
py
Python
counterfactualms/arch/thirdparty/utils.py
jcreinhold/counterfactualms
9be5919c8885354fe1ac91c852d196969cfe16be
[ "Apache-2.0" ]
14
2021-03-08T11:51:34.000Z
2022-03-21T03:30:21.000Z
counterfactualms/arch/thirdparty/utils.py
jcreinhold/counterfactualms
9be5919c8885354fe1ac91c852d196969cfe16be
[ "Apache-2.0" ]
1
2021-10-03T15:20:30.000Z
2021-10-03T15:20:30.000Z
counterfactualms/arch/thirdparty/utils.py
jcreinhold/counterfactualms
9be5919c8885354fe1ac91c852d196969cfe16be
[ "Apache-2.0" ]
4
2021-04-03T15:23:24.000Z
2021-09-30T04:14:28.000Z
# --------------------------------------------------------------- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # This work is licensed under the NVIDIA Source Code License # for NVAE. To view a copy of this license, see the LICENSE file. # ------------------------------------------------------------...
35.030928
120
0.606357
c1549bd92964ad4095929484222d7faf1d966b61
1,117
py
Python
test/functional_requirements/fault_tolerance/REBUILD_WITH_IO.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
38
2021-04-06T03:20:55.000Z
2022-03-02T09:33:28.000Z
test/functional_requirements/fault_tolerance/REBUILD_WITH_IO.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
19
2021-04-08T02:27:44.000Z
2022-03-23T00:59:04.000Z
test/functional_requirements/fault_tolerance/REBUILD_WITH_IO.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
28
2021-04-08T04:39:18.000Z
2022-03-24T05:56:00.000Z
#!/usr/bin/env python3 import subprocess import os import sys sys.path.append("../") sys.path.append("../../system/lib/") sys.path.append("../volume/") sys.path.append("../array/") import json_parser import pos import pos_util import cli import api import json import MOUNT_VOL_BASIC_1 import fio import time DETACH_TAR...
24.822222
78
0.716204
3c382fa48abfdfabe36f371d3af6bf73e0e40a40
3,453
py
Python
src/main/pyros_stats.py
Abstract-Horizon/PyROS
9942be36d7462dffffd4fc5ed0691f272d801c2c
[ "Apache-2.0" ]
null
null
null
src/main/pyros_stats.py
Abstract-Horizon/PyROS
9942be36d7462dffffd4fc5ed0691f272d801c2c
[ "Apache-2.0" ]
null
null
null
src/main/pyros_stats.py
Abstract-Horizon/PyROS
9942be36d7462dffffd4fc5ed0691f272d801c2c
[ "Apache-2.0" ]
null
null
null
################################################################################ # Copyright (C) 2016-2020 Abstract Horizon # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License v2.0 # which accompanies this distribution, and is available at # http...
34.53
106
0.515783
435afef4656a200e7a29148fa981e1a077dfa78a
1,633
py
Python
src/phoenix/batch_systems/SGEBatchSystem.py
stjude/phoenix
08559d8886b23be25bae804792e533c92c68a61b
[ "Apache-2.0" ]
null
null
null
src/phoenix/batch_systems/SGEBatchSystem.py
stjude/phoenix
08559d8886b23be25bae804792e533c92c68a61b
[ "Apache-2.0" ]
null
null
null
src/phoenix/batch_systems/SGEBatchSystem.py
stjude/phoenix
08559d8886b23be25bae804792e533c92c68a61b
[ "Apache-2.0" ]
1
2021-02-20T17:03:24.000Z
2021-02-20T17:03:24.000Z
#!/usr/bin/env python3 """ Module for the SGE batch system +--------------------------------------------------------------------------+ | Copyright 2019 St. Jude Children's Research Hospital | | | | Licensed under a modified v...
45.361111
76
0.519902
96e006840fbf57dcd328d9d04899c1a8f17e0aec
5,625
py
Python
keystone/cmd/doctor/ldap.py
lostmap/keystone
9a9022600e01ea09131cf194ffa5c1757ffeb24f
[ "Apache-2.0" ]
null
null
null
keystone/cmd/doctor/ldap.py
lostmap/keystone
9a9022600e01ea09131cf194ffa5c1757ffeb24f
[ "Apache-2.0" ]
null
null
null
keystone/cmd/doctor/ldap.py
lostmap/keystone
9a9022600e01ea09131cf194ffa5c1757ffeb24f
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
38.006757
78
0.713067
c0343ae54501498fa51905969a65d145add51706
392
py
Python
bluebottle/bb_projects/migrations/0002_remove_projecttheme_name_nl.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/bb_projects/migrations/0002_remove_projecttheme_name_nl.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/bb_projects/migrations/0002_remove_projecttheme_name_nl.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-05 07:19 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bb_projects', '0001_initial'), ] operations = [ migrations.RemoveField( ...
19.6
47
0.612245
07a17347c9d21e9f86fd4c56455e8f5785feb3de
118
py
Python
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/extensions.py
khwiri/cookiecutter-flask
4a8d937a38e3d157dfc982a3aca9e15c926951d3
[ "MIT" ]
null
null
null
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/extensions.py
khwiri/cookiecutter-flask
4a8d937a38e3d157dfc982a3aca9e15c926951d3
[ "MIT" ]
15
2020-01-11T20:42:42.000Z
2022-02-19T19:53:22.000Z
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/extensions.py
khwiri/cookiecutter-flask
4a8d937a38e3d157dfc982a3aca9e15c926951d3
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() from flask_migrate import Migrate migrate = Migrate(db=db)
19.666667
39
0.813559
1c147865c966898935ed29530af52f54b6566cba
1,199
py
Python
.github/check_version.py
nanotech-empa/aiida-nanotech-empa
4aeb5133c5c1367a09f195e9283333aa2d49e269
[ "MIT" ]
null
null
null
.github/check_version.py
nanotech-empa/aiida-nanotech-empa
4aeb5133c5c1367a09f195e9283333aa2d49e269
[ "MIT" ]
10
2020-09-05T11:04:34.000Z
2022-02-01T11:14:36.000Z
.github/check_version.py
nanotech-empa/aiida-nanotech-empa
4aeb5133c5c1367a09f195e9283333aa2d49e269
[ "MIT" ]
null
null
null
"""Check that version numbers match. Check version number in setup.json and aiida_nanotech_empa/__init__.py and make sure they match. """ from __future__ import absolute_import from __future__ import print_function import os import json import sys this_path = os.path.split(os.path.realpath(__file__))[0] # Get conten...
32.405405
84
0.718932
384bb317e66edd32ff5f2e0da1e283d59f7b3c7c
27,886
py
Python
tests/test_workbench.py
hashtagcyber/pyexclient
6921fc3f294daa0704e7035ba7b324cfea79d934
[ "BSD-2-Clause" ]
null
null
null
tests/test_workbench.py
hashtagcyber/pyexclient
6921fc3f294daa0704e7035ba7b324cfea79d934
[ "BSD-2-Clause" ]
null
null
null
tests/test_workbench.py
hashtagcyber/pyexclient
6921fc3f294daa0704e7035ba7b324cfea79d934
[ "BSD-2-Clause" ]
null
null
null
import copy import datetime import uuid from unittest.mock import MagicMock from unittest.mock import Mock from unittest.mock import patch from urllib.parse import unquote import pytest from pyexclient.workbench import contains from pyexclient.workbench import flag from pyexclient.workbench import gt from pyexclient....
45.940692
367
0.688589
233f59a3704a6da473876794d00ca076a8f09be4
2,242
py
Python
maml_rl/envs/navigation.py
MoritzTaylor/maml-rl-tf2
1c9237e7f18d688027a1db56b3cbb27c059a7ff1
[ "MIT" ]
19
2020-04-14T10:55:12.000Z
2022-01-30T13:32:59.000Z
maml_rl/envs/navigation.py
MoritzTaylor/maml-rl-tf2
1c9237e7f18d688027a1db56b3cbb27c059a7ff1
[ "MIT" ]
3
2019-12-10T01:16:52.000Z
2021-07-23T05:56:17.000Z
maml_rl/envs/navigation.py
MoritzTaylor/maml-rl-tf2
1c9237e7f18d688027a1db56b3cbb27c059a7ff1
[ "MIT" ]
5
2020-04-23T06:11:49.000Z
2021-05-04T07:08:41.000Z
import gym import numpy as np from gym import spaces from gym.utils import seeding class Navigation2DEnv(gym.Env): """2D navigation problems, as described in [1]. The code is adapted from https://github.com/cbfinn/maml_rl/blob/9c8e2ebd741cb0c7b8bf2d040c4caeeb8e06cc95/maml_examples/point_env_randgoal.py ...
36.16129
119
0.630687
66e1b82966d37f4a844056c9ea67f5242e41b572
8,020
py
Python
enaml/tests/old/components/date_edit.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
11
2015-01-04T14:29:23.000Z
2019-12-25T05:38:37.000Z
enaml/tests/old/components/date_edit.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
36
2015-02-20T00:56:53.000Z
2020-12-04T10:02:14.000Z
enaml/tests/old/components/date_edit.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
3
2015-11-19T15:11:37.000Z
2019-03-11T23:45:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2011, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from datetime import date from traits.api import TraitError from .enaml_test_case import EnamlT...
31.574803
81
0.589526
b43fdc185001a7fd0e6514d2db73ded171022f79
3,752
py
Python
crawler/modelling/topicmodelling.py
JeetThakare/goodread
c4ee8d29a8d4836fa8e6d5dfbd3eceb4d7e7ea48
[ "MIT" ]
1
2020-06-14T09:19:04.000Z
2020-06-14T09:19:04.000Z
crawler/modelling/topicmodelling.py
JeetThakare/goodread
c4ee8d29a8d4836fa8e6d5dfbd3eceb4d7e7ea48
[ "MIT" ]
6
2021-03-18T21:12:37.000Z
2022-02-10T06:55:11.000Z
crawler/modelling/topicmodelling.py
JeetThakare/goodread
c4ee8d29a8d4836fa8e6d5dfbd3eceb4d7e7ea48
[ "MIT" ]
3
2018-11-21T03:38:32.000Z
2019-02-26T22:02:59.000Z
import logging import pickle import re import string import gensim import nltk import pandas as pd from nltk.tokenize import sent_tokenize # from crawler.modelling.summarizer import summarize from crawler.modelling.summerizer_new import summarize from crawler.models import Article, ArticleTopic, Topic from nltk.stem i...
34.740741
109
0.647388
cda3a6f4662f0dde55ed41b13f12f235b57c66ba
6,664
py
Python
alibi/explainers/tests/test_cfproto.py
rogerioluizsi/alibi
c7f2cb0fe9bbddf80192041484b89ed0ce2fc0e6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
alibi/explainers/tests/test_cfproto.py
rogerioluizsi/alibi
c7f2cb0fe9bbddf80192041484b89ed0ce2fc0e6
[ "ECL-2.0", "Apache-2.0" ]
35
2021-03-12T16:31:24.000Z
2022-03-31T16:08:31.000Z
alibi/explainers/tests/test_cfproto.py
gipster/alibi-1
88883f0178026e057f738ba3a56c174d327a1d8d
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-21T15:28:51.000Z
2021-07-21T15:28:51.000Z
import numpy as np import pytest import tensorflow as tf from alibi.api.defaults import DEFAULT_META_CFP, DEFAULT_DATA_CFP from alibi.explainers import CounterFactualProto from alibi.utils.mapping import ohe_to_ord, ord_to_num @pytest.fixture def tf_keras_iris_explainer(request, models, iris_data): X_train = iris...
44.13245
110
0.596939
ce1f880e4e72391ce10f3fe70f47c0e816c2c4b9
307
py
Python
sendmedia.py
Alireza-Hajizadeh/WhatsAppmsg
34f559e11592fca58084b86b1cf7db26a12ede02
[ "CC0-1.0" ]
1
2022-03-06T22:16:11.000Z
2022-03-06T22:16:11.000Z
sendmedia.py
Alireza-Hajizadeh/WhatsAppmsg
34f559e11592fca58084b86b1cf7db26a12ede02
[ "CC0-1.0" ]
null
null
null
sendmedia.py
Alireza-Hajizadeh/WhatsAppmsg
34f559e11592fca58084b86b1cf7db26a12ede02
[ "CC0-1.0" ]
null
null
null
#Alireza-Hajizadeh #send whatsapp msg instantly in python from WhatsAppmsg import sendwhats_image from WhatsAppmsg import pg number = input("Enter your number (+989999999999) : ") media = input("send Media Images/Hello.png : ") sendwhats_image("+910123456789", "") wait_time: int = 1500 pg.press("enter")
27.909091
54
0.758958
98ec083d6d109bf21a80a345185399e354c536a9
7,068
py
Python
backend/coronastats/db.py
ChuckBorris33/koronaslovakia
c6d599dbb9b67c8b4ef1ef76b615bf9f796bad9c
[ "MIT" ]
3
2020-05-07T07:35:34.000Z
2021-03-17T13:13:28.000Z
backend/coronastats/db.py
ChuckBorris33/koronaslovakia
c6d599dbb9b67c8b4ef1ef76b615bf9f796bad9c
[ "MIT" ]
5
2020-03-27T21:50:39.000Z
2022-02-13T09:20:34.000Z
backend/coronastats/db.py
ChuckBorris33/koronaslovakia
c6d599dbb9b67c8b4ef1ef76b615bf9f796bad9c
[ "MIT" ]
1
2020-11-24T21:50:34.000Z
2020-11-24T21:50:34.000Z
import datetime import typing from coronastats import db_wrapper from peewee import ( DateField, AutoField, IntegerField, JOIN, fn, Value, CharField, ForeignKeyField, ) from playhouse.shortcuts import model_to_dict, update_model_from_dict class CoronaLog(db_wrapper.Model): # type: ig...
32.422018
88
0.639926
f0743230358e24a54ce466bf3a1528a3a30b6a48
12,673
py
Python
parlai/core/dialog_teacher.py
lifelongeek/KBKAIST_Chatbot
4766e6ee61a10e3719b7608c5777430ddfd277f9
[ "BSD-3-Clause" ]
2
2017-10-06T09:56:49.000Z
2017-10-06T09:57:03.000Z
parlai/core/dialog_teacher.py
gmkim90/KBKAIST_Chatbot
4766e6ee61a10e3719b7608c5777430ddfd277f9
[ "BSD-3-Clause" ]
null
null
null
parlai/core/dialog_teacher.py
gmkim90/KBKAIST_Chatbot
4766e6ee61a10e3719b7608c5777430ddfd277f9
[ "BSD-3-Clause" ]
2
2017-10-06T09:57:04.000Z
2018-11-08T13:45:47.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from .agents import Teache...
39.114198
167
0.564507
08ca55cffa13ec8b502dd50d03ce801fd4ae4b15
860
py
Python
DQMServices/Core/python/test/check_harvesting.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQMServices/Core/python/test/check_harvesting.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQMServices/Core/python/test/check_harvesting.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
#!/bin/env python from ROOT import * import sys import re RXOFFLINE = re.compile(r"^(?:.*/)?DQM_V(\d+)_R(\d+)((?:__[-A-Za-z0-9_]+){3})\.root$") numEntries=50 histo_to_check = ['DQMData/Run %s/A_Folder/Run summary/Module/MyHisto', 'DQMData/Run %s/B_Folder/Run summary/Module/MyHisto'] means = [2.0, 3....
26.060606
85
0.639535
fb1dc80eaa08709e88f5f8a5e0776bffdc2a9970
574
py
Python
setup.py
yueyericardo/pkbar
10806b1b39d1db4dbbdad6be3d38e45d76d5555c
[ "Apache-2.0" ]
26
2019-08-09T16:37:31.000Z
2022-03-07T22:45:47.000Z
setup.py
iridiumblue/pkbar
d5c1408c14df8f4882a4a032d3cddff879eccecb
[ "Apache-2.0" ]
2
2020-05-07T02:27:58.000Z
2020-09-08T15:39:23.000Z
setup.py
iridiumblue/pkbar
d5c1408c14df8f4882a4a032d3cddff879eccecb
[ "Apache-2.0" ]
1
2020-05-06T06:04:48.000Z
2020-05-06T06:04:48.000Z
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='pkbar', description='Keras Progress Bar for PyTorch', long_description=long_description, long_description_content_type="text/markdown", url='https://github.com/yueyericardo/...
26.090909
50
0.69338
7f22080703255dbe03191e002b096240581cc2ee
16,420
py
Python
indico/modules/events/registration/controllers/display.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
null
null
null
indico/modules/events/registration/controllers/display.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/modules/events/registration/controllers/display.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from operator import attrgetter from uuid import UUID from flask...
48.294118
120
0.656029
542645f59d43ed4eadc368096c5385ee60f48810
12,480
py
Python
typer/models.py
gmelodie/typer
c4e3e460db89073a9b06c1ec90733ad732956e8e
[ "MIT" ]
null
null
null
typer/models.py
gmelodie/typer
c4e3e460db89073a9b06c1ec90733ad732956e8e
[ "MIT" ]
null
null
null
typer/models.py
gmelodie/typer
c4e3e460db89073a9b06c1ec90733ad732956e8e
[ "MIT" ]
null
null
null
import inspect import io from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Optional, Sequence, Type, TypeVar, Union, ) import click if TYPE_CHECKING: # pragma: no cover from .main import Typer # noqa NoneType = type(None) AnyType = Type[Any] Required = .....
28.888889
85
0.573077
697c628b0ffbea1e4fd09ff428147e8686cc1eb0
5,045
py
Python
battleship/ai.py
XargsUK/FlameCogs
f4f3368a9816fa7a7af19ee59ea4c3307f72fa93
[ "MIT" ]
26
2019-02-11T09:00:01.000Z
2022-03-03T07:33:08.000Z
battleship/ai.py
XargsUK/FlameCogs
f4f3368a9816fa7a7af19ee59ea4c3307f72fa93
[ "MIT" ]
15
2019-04-19T14:19:52.000Z
2022-03-15T17:20:38.000Z
battleship/ai.py
XargsUK/FlameCogs
f4f3368a9816fa7a7af19ee59ea4c3307f72fa93
[ "MIT" ]
34
2018-12-05T22:37:44.000Z
2022-01-16T05:02:20.000Z
import random class BattleshipAI(): """ AI opponent for Battleship. Params: Optional[name] = str, The name for this AI. """ def __init__(self, name=None): if name is None: name = '[AI]' self.display_name = name self.mention = self.display_name self.id = None async def send(self, *args, **kwargs)...
32.548387
106
0.622993
018747f1c75914af4533fb89df11b571672a8204
4,999
py
Python
FrequencyList.py
MJ10/DSA-Project
e947ab1f96c9dcc3c0734a2ba400d5aec6c14083
[ "MIT" ]
2
2020-08-26T14:17:03.000Z
2021-05-02T21:10:47.000Z
FrequencyList.py
MJ10/DSA-Project
e947ab1f96c9dcc3c0734a2ba400d5aec6c14083
[ "MIT" ]
null
null
null
FrequencyList.py
MJ10/DSA-Project
e947ab1f96c9dcc3c0734a2ba400d5aec6c14083
[ "MIT" ]
4
2017-10-31T18:40:38.000Z
2018-06-13T17:52:51.000Z
class FrequencyNode: """ New frequency node which contains all nodes having similar access frequency """ def __init__(self): """ Initializes Frequency Node object """ self.value = 0 self.next = None self.prev = None self.children = ListNode() ...
32.044872
115
0.563113
63410fc7d51be37908e0d7ba2b8d038442267091
4,955
py
Python
pyscf/tddft/rks.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
pyscf/tddft/rks.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
pyscf/tddft/rks.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
1
2018-12-06T03:10:50.000Z
2018-12-06T03:10:50.000Z
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # # Ref: # Chem Phys Lett, 256, 454 # J. Mol. Struct. THEOCHEM, 914, 3 # from functools import reduce import numpy from pyscf import lib from pyscf.dft import numint from pyscf import dft from pyscf.tddft import rhf from pyscf.ao2mo import _ao2mo from...
29.849398
88
0.543693
4dc7bf01cc0f523a742d89842473bf0a652e09e7
1,626
py
Python
ax/modelbridge/transforms/cap_parameter.py
gbmarc1/Ax
9428fa64a621cf4562c7e2c63881a0ca2fa2780b
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/cap_parameter.py
gbmarc1/Ax
9428fa64a621cf4562c7e2c63881a0ca2fa2780b
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/cap_parameter.py
gbmarc1/Ax
9428fa64a621cf4562c7e2c63881a0ca2fa2780b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from typing import List, Optional from ax.core.observation import ObservationData, ObservationFeatures from ax.core.parameter import RangeParameter from ax.core.search_space import SearchSpace from ax.core.types import TCon...
36.954545
81
0.674662
abd5880187da02edc22f483f92e1c2c0025974c7
281
py
Python
filter_plugins/sanitize.py
mageops/ansible-workflow
3880ef7a3c6fb59c2406ab0d714e2bebbf13ee14
[ "MIT" ]
20
2020-02-04T19:42:45.000Z
2022-03-29T20:10:15.000Z
filter_plugins/sanitize.py
mageops/ansible-workflow
3880ef7a3c6fb59c2406ab0d714e2bebbf13ee14
[ "MIT" ]
41
2020-02-04T22:56:40.000Z
2022-03-07T16:23:51.000Z
filter_plugins/sanitize.py
mageops/ansible-workflow
3880ef7a3c6fb59c2406ab0d714e2bebbf13ee14
[ "MIT" ]
12
2020-02-04T23:24:26.000Z
2022-03-07T16:59:18.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.inventory import to_safe_group_name class FilterModule(object): def filters(self): return { 'to_safe_group_name': to_safe_group_name, }
21.615385
66
0.725979
b99775cf3f53b33c528d30818de5b2149c0b41c3
2,004
py
Python
lesson11/colab_gpu.py
hadifar/tensorflow-starter
187b6956e3a0cc45a065e753240eced93bc4c592
[ "MIT" ]
10
2018-09-16T16:18:21.000Z
2019-11-05T22:13:24.000Z
lesson11/colab_gpu.py
Ehsan-Yaghoubi/tensorflow-starter
187b6956e3a0cc45a065e753240eced93bc4c592
[ "MIT" ]
null
null
null
lesson11/colab_gpu.py
Ehsan-Yaghoubi/tensorflow-starter
187b6956e3a0cc45a065e753240eced93bc4c592
[ "MIT" ]
5
2018-12-22T10:08:09.000Z
2019-12-22T07:14:32.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Amir Hadifar. 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 req...
32.322581
85
0.66517
8bebe84df6f2085109bbd55befaf00bff5e46b28
7,774
py
Python
python/GafferSceneUI/SetUI.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SetUI.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SetUI.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2015, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
30.606299
116
0.668896
c64fa089e1f47dfd981bb9667e7d602f6041bab2
364
py
Python
oauthenticator/_version.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
4
2019-09-17T08:10:57.000Z
2020-09-03T21:27:21.000Z
oauthenticator/_version.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
null
null
null
oauthenticator/_version.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
4
2019-09-27T03:22:44.000Z
2021-01-20T08:47:34.000Z
"""oauthenticator version info""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. version_info = ( 0, 10, 0, 'dev', # comment-out this line for a release ) __version__ = '.'.join(map(str, version_info[:3])) if len(version_info) > 3: __version_...
22.75
58
0.662088
21d8d463aee06f0563069c59f2490ff1671d5b91
3,709
py
Python
main/FolderInfos.py
Rob174/GenerationTerrain
332620cf6bb4d3feb4e08012b5c6af8b8843d177
[ "MIT" ]
null
null
null
main/FolderInfos.py
Rob174/GenerationTerrain
332620cf6bb4d3feb4e08012b5c6af8b8843d177
[ "MIT" ]
null
null
null
main/FolderInfos.py
Rob174/GenerationTerrain
332620cf6bb4d3feb4e08012b5c6af8b8843d177
[ "MIT" ]
1
2021-10-29T23:26:29.000Z
2021-10-29T23:26:29.000Z
"""Static class containing interesting folder of the project with a separator adapted for the operating system (windows or linux)""" import time from time import strftime, gmtime, localtime import os from platform import system from pathlib import Path class NotInitializedException(Exception): def __str__(self): ...
38.237113
138
0.641952
9bee1cec739644b00d6cee65f65ce185637dc0ef
110
py
Python
app/graphql/__init__.py
saltastro/salt-api-server
8cf9c7c7ae6b7ff9031e85d0baba22e80b2d0579
[ "MIT" ]
null
null
null
app/graphql/__init__.py
saltastro/salt-api-server
8cf9c7c7ae6b7ff9031e85d0baba22e80b2d0579
[ "MIT" ]
null
null
null
app/graphql/__init__.py
saltastro/salt-api-server
8cf9c7c7ae6b7ff9031e85d0baba22e80b2d0579
[ "MIT" ]
null
null
null
from flask import Blueprint graphql = Blueprint("graphql", __name__) from . import views # noqa E402, F401
18.333333
40
0.745455
81f8388f19aac07cc24fc7d5ceb8dfb1ebf1ec33
2,659
py
Python
agents/pg/ppo1.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
1
2018-09-07T10:10:29.000Z
2018-09-07T10:10:29.000Z
agents/pg/ppo1.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
agents/pg/ppo1.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Modified from OpenAI baseline ppo1/run_mujoco.py # Need OpenAI baseline. # Need mpi4py. # IMPORTANT: Need flatten input of the policy network in # OpenAI baslines/ppo1/mlp_policy.py. # last_out = tf.contrib.layers.flatten(obz) # when the env observation length > 1. from baselines.co...
35.932432
93
0.639714
704192c85fbc1a4f59e8fef8260470a8d5c3c5fe
585
py
Python
product_price_factor_online/__manifest__.py
marcel1981/website-addons
b276b41c8f97ac9614cf54e1783ef3fc3adc8470
[ "MIT" ]
1
2020-03-01T03:04:21.000Z
2020-03-01T03:04:21.000Z
product_price_factor_online/__manifest__.py
marcel1981/website-addons
b276b41c8f97ac9614cf54e1783ef3fc3adc8470
[ "MIT" ]
null
null
null
product_price_factor_online/__manifest__.py
marcel1981/website-addons
b276b41c8f97ac9614cf54e1783ef3fc3adc8470
[ "MIT" ]
null
null
null
{ "name": "Product price factor for web shop", "summary": """Multiplies price depending on product attributes""", "category": "Website", "license": "Other OSI approved licence", # MIT "author": "IT-Projects LLC, Ildar Nasyrov", "price": 10.00, "currency": "EUR", "images": ["images/1.png...
32.5
70
0.606838
10fd30e77ebc57c1673a1219c96f972cf1a3b00c
242
py
Python
filter_plugins/custom.py
oscaromeu/k3s-playground
3790cde94050ae336f0469bbac9ce21285b8e123
[ "Apache-2.0" ]
1
2021-03-17T08:44:57.000Z
2021-03-17T08:44:57.000Z
filter_plugins/custom.py
oscaromeu/k3s-ansible-deploy-monitoring-playground
a7086a590ee4be28cc812154812b29a8b8d44aa9
[ "Apache-2.0" ]
1
2022-03-24T06:28:43.000Z
2022-03-24T06:28:43.000Z
filter_plugins/custom.py
oscaromeu/k3s-ansible-deploy-monitoring-playground
a7086a590ee4be28cc812154812b29a8b8d44aa9
[ "Apache-2.0" ]
null
null
null
__author__ = "oscar romeu" from ansible import errors class FilterModule(object): def filters(self): return { "is_list": self.is_list, } def is_list(self, value): return isinstance(value, list)
17.285714
38
0.61157
76433ecc1c98ef6f32234291157377c072cfc82d
4,573
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/segment_properties.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/segment_properties.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/segment_properties.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
# segment_properties.py # # Created: Apr 2019, T. MacDonald # Mar 2020, M. Clarke # Jun 2020, E. Botero # Oct 2021, E. Botero # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- imp...
38.108333
128
0.496173
257ec15fdce62230ac415b45bac78f7c8d6230ff
6,259
py
Python
deep transfer learning/DSAN/ResNet.py
cqh6666/transfer_learning_code
93225814b8225d9cd8e4addffba6a7d52203443b
[ "MIT" ]
78
2019-11-21T06:38:44.000Z
2022-03-26T12:45:00.000Z
deep transfer learning/DSAN/ResNet.py
cqh6666/transfer_learning_code
93225814b8225d9cd8e4addffba6a7d52203443b
[ "MIT" ]
2
2019-12-17T10:20:50.000Z
2021-09-05T20:41:08.000Z
deep transfer learning/DSAN/ResNet.py
cqh6666/transfer_learning_code
93225814b8225d9cd8e4addffba6a7d52203443b
[ "MIT" ]
33
2019-11-27T10:00:51.000Z
2022-03-01T02:39:53.000Z
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import mmd import torch import numpy as np from Config import bottle_neck __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resn...
31.933673
99
0.595303
a8aa54ffc5357487086022c92971164910f3591f
1,017
py
Python
Lessons/source/recursion.py
salvadb23/CS1.3
b5d01b74c391f55e2cbd2f885899514726fadaa1
[ "MIT" ]
null
null
null
Lessons/source/recursion.py
salvadb23/CS1.3
b5d01b74c391f55e2cbd2f885899514726fadaa1
[ "MIT" ]
5
2019-06-16T20:47:16.000Z
2019-07-04T21:45:55.000Z
Lessons/source/recursion.py
salvadb23/CS1.3
b5d01b74c391f55e2cbd2f885899514726fadaa1
[ "MIT" ]
null
null
null
#!python def factorial(n): """factorial(n) returns the product of the integers 1 through n for n >= 0, otherwise raises ValueError for n < 0 or non-integer n""" if not isinstance(n, int) or n < 0: raise ValueError('factorial is undefined for n = {}'.format(n)) return factorial_recursive(20) ...
24.214286
79
0.59587
dbcda1d80368b9166f2598f78e747313a1abc8cd
488
py
Python
meilisearch/tests/test_sys_info_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
meilisearch/tests/test_sys_info_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
meilisearch/tests/test_sys_info_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
import meilisearch from meilisearch.tests import BASE_URL, MASTER_KEY class TestSysInfo: client = meilisearch.Client(BASE_URL, MASTER_KEY) """ sys-info route """ def test_get_sys_info(self): """Tests an API call to check the system information of MeiliSearch""" response = self.client.get_s...
32.533333
78
0.696721
f6f14e06a2c047cff702b34ba0d4970bc5badef8
14,826
py
Python
atm/checks/poi_based_cuda.py
gina-alaska/arctic_thermokarst_model
7a3dbedb72b133670bb6e476fc3f5788bbcdbca4
[ "MIT" ]
null
null
null
atm/checks/poi_based_cuda.py
gina-alaska/arctic_thermokarst_model
7a3dbedb72b133670bb6e476fc3f5788bbcdbca4
[ "MIT" ]
null
null
null
atm/checks/poi_based_cuda.py
gina-alaska/arctic_thermokarst_model
7a3dbedb72b133670bb6e476fc3f5788bbcdbca4
[ "MIT" ]
null
null
null
""" CUDA POI Based transition ------------------------- Transition functions for POI based changes in area with CUDA """ import numpy as np import functions # import matplotlib.pyplot as plt import math from numba import cuda @cuda.jit def calc_x(x, ALD,PL): ## jit works """CUDA version of the calc X function ...
33.316854
96
0.575273
c3cc5e750f7190606972ccae7289597d3ea8b47e
2,638
py
Python
tests/rbac/common/user/propose_manager_helper_test.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
1
2019-04-14T20:16:59.000Z
2019-04-14T20:16:59.000Z
tests/rbac/common/user/propose_manager_helper_test.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/user/propose_manager_helper_test.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
38.231884
85
0.690675
89d0623b89e824f4b56c8e561ac466eb458c012a
4,356
py
Python
deployment/confStorage/download.py
luxius-luminus/pai
b9e16c78ab2d902d9c546e18e9a280d962d0eb94
[ "MIT" ]
1,417
2019-05-07T00:51:36.000Z
2022-03-31T10:15:31.000Z
deployment/confStorage/download.py
luxius-luminus/pai
b9e16c78ab2d902d9c546e18e9a280d962d0eb94
[ "MIT" ]
2,447
2019-05-07T01:36:32.000Z
2022-03-30T08:47:43.000Z
deployment/confStorage/download.py
luxius-luminus/pai
b9e16c78ab2d902d9c546e18e9a280d962d0eb94
[ "MIT" ]
329
2019-05-07T02:28:06.000Z
2022-03-29T06:12:49.000Z
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights to ...
47.347826
157
0.727043
391454e6b406276d20d0a18d28a8a1e593d8bb02
1,652
py
Python
Labs/ConformalMaps/solutions.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
10
2016-10-18T19:54:25.000Z
2021-10-09T20:12:38.000Z
Labs/ConformalMaps/solutions.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
null
null
null
Labs/ConformalMaps/solutions.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
2
2017-05-14T16:07:59.000Z
2020-06-20T09:05:06.000Z
import numpy as np import scipy as sp from matplotlib import pyplot as plt import shapes #Prob 1 def polarZ(z): if(z == 0): return (0,0) else : a = z.real b = z.imag return( sp.hypot(a,b), sp.arctan(b/a)) #Prob 2 def fFunc(z): return (3*z - 4)/(z-2) def gFunc(z): return z**2 - 2 def confMap(shape,ma...
22.630137
90
0.670097
166c90c37ea373093f8cd445f569ddcc995287fc
1,299
py
Python
torchtext/data/batch.py
xiaoduozhou/Text
7a2e4420ecdad958e352ff629d0576f7c9bb8048
[ "BSD-3-Clause" ]
4
2018-11-27T20:05:38.000Z
2018-11-29T17:12:30.000Z
torchtext/data/batch.py
xiaoduozhou/Text
7a2e4420ecdad958e352ff629d0576f7c9bb8048
[ "BSD-3-Clause" ]
null
null
null
torchtext/data/batch.py
xiaoduozhou/Text
7a2e4420ecdad958e352ff629d0576f7c9bb8048
[ "BSD-3-Clause" ]
1
2021-04-17T17:12:22.000Z
2021-04-17T17:12:22.000Z
class Batch(object): """Defines a batch of examples along with its Fields. Attributes: batch_size: Number of examples in the batch. dataset: A reference to the dataset object the examples come from (which itself contains the dataset's Field objects). train: Whether the batch...
38.205882
89
0.604311
4d5aaacab6224bba63ed9c9038e043d761a2d5ea
15,462
py
Python
generator/nanopb_generator.py
metormote/nanopb
b3de6f4f5308f57fcd3de6362e45ab4bb0dfff98
[ "Zlib" ]
3
2015-03-11T19:41:15.000Z
2022-01-14T09:52:48.000Z
generator/nanopb_generator.py
metormote/nanopb
b3de6f4f5308f57fcd3de6362e45ab4bb0dfff98
[ "Zlib" ]
null
null
null
generator/nanopb_generator.py
metormote/nanopb
b3de6f4f5308f57fcd3de6362e45ab4bb0dfff98
[ "Zlib" ]
2
2015-03-05T01:09:56.000Z
2018-08-13T08:12:41.000Z
'''Generate header file for nanopb from a ProtoBuf FileDescriptorSet.''' import google.protobuf.descriptor_pb2 as descriptor import nanopb_pb2 import os.path # Values are tuple (c type, pb ltype) FieldD = descriptor.FieldDescriptorProto datatypes = { FieldD.TYPE_BOOL: ('bool', 'PB_LTYPE_VARINT'), FieldD.TYPE_...
35.95814
109
0.577868
ea521107f69f875c1404472c7aefca88d081138f
1,726
py
Python
models/vgg.py
daemon/pytorch-cifar
d8aea78499e97186fa2c66138c5cf4d6336c17bc
[ "MIT" ]
null
null
null
models/vgg.py
daemon/pytorch-cifar
d8aea78499e97186fa2c66138c5cf4d6336c17bc
[ "MIT" ]
null
null
null
models/vgg.py
daemon/pytorch-cifar
d8aea78499e97186fa2c66138c5cf4d6336c17bc
[ "MIT" ]
null
null
null
'''VGG11/13/16/19 in Pytorch.''' import torch import torch.nn as nn from torch.autograd import Variable import candle cfg = { 'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG16': [64, 64, 'M'...
35.958333
117
0.540556
af4604a4f9cfb68864cd032e29776002f9e56c56
680
py
Python
bot/cogs/logging/internal.py
vcokltfre/Raptor
540d5584a1d91addc018978e0ecbea6b2537ba83
[ "MIT" ]
3
2021-09-09T14:41:07.000Z
2021-12-24T14:26:53.000Z
bot/cogs/logging/internal.py
vcokltfre/Raptor
540d5584a1d91addc018978e0ecbea6b2537ba83
[ "MIT" ]
null
null
null
bot/cogs/logging/internal.py
vcokltfre/Raptor
540d5584a1d91addc018978e0ecbea6b2537ba83
[ "MIT" ]
null
null
null
from datetime import datetime from os import getenv from discord.ext.commands import Cog from loguru import logger from bot.components.bot import Raptor CHANNEL_ID = getenv("BOT_LOGS_CHANNEL") class InternalLogging(Cog): def __init__(self, bot: Raptor) -> None: self.bot = bot @Cog.listener() a...
23.448276
103
0.657353
a386aee22e9b66e2e67814b5782201c855de70fc
12,574
py
Python
app/core/views.py
eduranm/kernel_to_website
f31979d9f87ade3b8a0e9ce2333a8db7fcc813ce
[ "BSD-2-Clause" ]
null
null
null
app/core/views.py
eduranm/kernel_to_website
f31979d9f87ade3b8a0e9ce2333a8db7fcc813ce
[ "BSD-2-Clause" ]
null
null
null
app/core/views.py
eduranm/kernel_to_website
f31979d9f87ade3b8a0e9ce2333a8db7fcc813ce
[ "BSD-2-Clause" ]
null
null
null
from celery.result import AsyncResult from django.contrib import messages from django.contrib.auth import authenticate, login, logout, update_session_auth_hash from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import PasswordChangeForm from django.core.files.storage import FileSys...
36.8739
137
0.629871
4227ee09f857a0ac9cc3178bff368bbdd67a196b
850
py
Python
sieve/tests/test_xml_compare.py
ralphbean/sieve
3c2786a1663d7237d9d673fd13ef8e66e4a388ef
[ "MIT" ]
1
2018-06-24T19:38:26.000Z
2018-06-24T19:38:26.000Z
sieve/tests/test_xml_compare.py
ralphbean/sieve
3c2786a1663d7237d9d673fd13ef8e66e4a388ef
[ "MIT" ]
null
null
null
sieve/tests/test_xml_compare.py
ralphbean/sieve
3c2786a1663d7237d9d673fd13ef8e66e4a388ef
[ "MIT" ]
null
null
null
import sieve.xml_compare as c import six def test_basic(): xml1 = six.u(""" <?xml version='1.0' encoding='utf-8' standalone='yes'?> <Stats start="1275955200" end="1276041599"></Stats>""").encode('utf-8') xml2 = six.u(""" <?xml version='1.0' encoding='utf-8' standalone='yes'?> <Stats star...
38.636364
80
0.632941
58d57a1f4d772f8f09430c511e2f401777b3e585
3,731
py
Python
cli/polyaxon/proxies/schemas/gateway/api.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/proxies/schemas/gateway/api.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
1
2022-01-24T11:26:47.000Z
2022-03-18T23:17:58.000Z
cli/polyaxon/proxies/schemas/gateway/api.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
27.637037
74
0.624497