hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5fd71b33c6e9e77c0be46887a506da419e458766
22,917
py
Python
kornia/filters/kernels.py
gianscarpe/kornia
766bd71d6cca7313988b02784be6d56834e8c744
[ "ECL-2.0", "Apache-2.0" ]
1
2021-04-09T21:24:47.000Z
2021-04-09T21:24:47.000Z
kornia/filters/kernels.py
wyli/kornia
53e417eae7c296a0d0b57ad2b1ba8cd11f24c40d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/filters/kernels.py
wyli/kornia
53e417eae7c296a0d0b57ad2b1ba8cd11f24c40d
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-20T06:57:07.000Z
2020-10-20T06:57:07.000Z
from typing import Tuple, List, Union, cast import torch import torch.nn as nn from kornia.geometry.transform.affwarp import rotate, rotate3d def normalize_kernel2d(input: torch.Tensor) -> torch.Tensor: r"""Normalizes both derivative and smoothing kernel. """ if len(input.size()) < 2: raise Type...
39.241438
120
0.482
0028eb78f09feda552f70771438374983e479555
1,621
py
Python
amharict_TfIdf_Vectorizer.py
1Mathias/PublicNLPA
e1b7e94210528fe3bced86305dbbe1336bdd72ab
[ "MIT" ]
null
null
null
amharict_TfIdf_Vectorizer.py
1Mathias/PublicNLPA
e1b7e94210528fe3bced86305dbbe1336bdd72ab
[ "MIT" ]
null
null
null
amharict_TfIdf_Vectorizer.py
1Mathias/PublicNLPA
e1b7e94210528fe3bced86305dbbe1336bdd72ab
[ "MIT" ]
null
null
null
from sklearn.feature_extraction.text import TfidfVectorizer import pandas as pd # importing the modules from IPython.display import display from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import CountVectorizer docs = ["የኢትዮጵያ ቤት ኪንግ ፕሪሚዬር ሊግ አሸናፊው ፋሲል ከነማ ትናንት በአዲስ አበባ...
62.346154
213
0.766811
3e70db8a79541d7afea528eeda9f6e1e3c856d2d
79
py
Python
manage.py
wuyue92tree/service_runner
ac6cf1ecd231dbefa431d4d858d7340414279e0a
[ "Apache-2.0" ]
null
null
null
manage.py
wuyue92tree/service_runner
ac6cf1ecd231dbefa431d4d858d7340414279e0a
[ "Apache-2.0" ]
10
2020-06-06T00:02:49.000Z
2022-02-10T11:15:40.000Z
manage.py
wuyue92tree/service_runner
ac6cf1ecd231dbefa431d4d858d7340414279e0a
[ "Apache-2.0" ]
null
null
null
from service_runner.manage import main if __name__ == "__main__": main()
13.166667
38
0.708861
8e88ebeacc883606dc1cd9473bd4eac5fa845202
764
py
Python
pacote-download/coursera4/week3.py
JoaoP-Rodrigues/CursoPython3-Aulas
24d884eaa67485a12c8c3629c7f0fa5b8606a798
[ "MIT" ]
null
null
null
pacote-download/coursera4/week3.py
JoaoP-Rodrigues/CursoPython3-Aulas
24d884eaa67485a12c8c3629c7f0fa5b8606a798
[ "MIT" ]
null
null
null
pacote-download/coursera4/week3.py
JoaoP-Rodrigues/CursoPython3-Aulas
24d884eaa67485a12c8c3629c7f0fa5b8606a798
[ "MIT" ]
null
null
null
class Student(): def __init__(self, name, s_time=1): self.name = name self.years_UM = s_time self.knowledge = 0 def study(self): self.knowledge += 1 def getKnowledge(self): return self.knowledge def year_at_umich(self): return self.years_...
15.591837
39
0.527487
16acd06eae4f5cf423a5d409978d743ff3cd7ccf
935
py
Python
ex084A18.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
ex084A18.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
ex084A18.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
print(f"\n{'Exemple 01':=^40}\n") dados = ["Pedro",25] dados1 = ["Maria",19] pessoas = list() pessoas.append(dados[:]) pessoas.append(dados1[:]) print(pessoas) print(len(pessoas)) print(pessoas[0][0]) print(pessoas[1][1]) print(f"\n{'Exemple 02':=^40}\n") print("O fatimanento '[:]' da lista permite realizar uma cópi...
23.375
118
0.594652
1e99d7efab81f203889cfd3bc198a91603f97d4d
4,769
py
Python
pywikibot/tools/_logging.py
notconfusing/pywikibot-fr-welcome-bot
6e07b7e74166a47c9425816e79786308df369ac2
[ "MIT" ]
1
2020-01-03T11:52:01.000Z
2020-01-03T11:52:01.000Z
pywikibot/tools/_logging.py
notconfusing/pywikibot-fr-welcome-bot
6e07b7e74166a47c9425816e79786308df369ac2
[ "MIT" ]
2
2019-11-07T13:46:32.000Z
2019-11-07T14:20:53.000Z
pywikibot/tools/_logging.py
notconfusing/pywikibot-fr-welcome-bot
6e07b7e74166a47c9425816e79786308df369ac2
[ "MIT" ]
1
2020-04-14T14:52:24.000Z
2020-04-14T14:52:24.000Z
# -*- coding: utf-8 -*- """Logging tools.""" # # (C) Pywikibot team, 2009-2018 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, division, unicode_literals import logging import os from pywikibot.tools import PY2 # Logging module configuration class RotatingFileHandler(lo...
39.090164
79
0.617111
93e7b5759aa758adb68f78514e91365dcabf0d2a
14,673
py
Python
gxpm.py
nandun/gxp
8dd9d396102e254cb4712fe572b64e398a5f069b
[ "BSD-3-Clause" ]
2
2020-03-16T11:37:13.000Z
2020-05-15T10:10:56.000Z
gxpm.py
nandun/gxp
8dd9d396102e254cb4712fe572b64e398a5f069b
[ "BSD-3-Clause" ]
null
null
null
gxpm.py
nandun/gxp
8dd9d396102e254cb4712fe572b64e398a5f069b
[ "BSD-3-Clause" ]
1
2017-05-12T02:42:35.000Z
2017-05-12T02:42:35.000Z
# Copyright (c) 2009 by Kenjiro Taura. All rights reserved. # Copyright (c) 2008 by Kenjiro Taura. All rights reserved. # Copyright (c) 2007 by Kenjiro Taura. All rights reserved. # Copyright (c) 2006 by Kenjiro Taura. All rights reserved. # Copyright (c) 2005 by Kenjiro Taura. All rights reserved. # # THIS MATERIAL IS...
27.632768
172
0.614735
57f38f4179516f8470fdac9984a67a86bd348b74
329
py
Python
optuna/multi_objective/__init__.py
nzw0301/optuna
0875fd7d307c6f0bafccdb8691ae6bbb5cb7837c
[ "MIT" ]
4,950
2019-11-15T07:35:51.000Z
2022-03-31T10:32:42.000Z
optuna/multi_objective/__init__.py
nzw0301/optuna
0875fd7d307c6f0bafccdb8691ae6bbb5cb7837c
[ "MIT" ]
2,490
2019-11-15T07:06:20.000Z
2022-03-31T23:52:45.000Z
optuna/multi_objective/__init__.py
sile/optuna
52f585c3281b84db0df4f2a621e15e4848ecad82
[ "MIT" ]
621
2019-11-15T11:26:57.000Z
2022-03-28T11:46:34.000Z
from optuna.multi_objective import samplers # NOQA from optuna.multi_objective import study # NOQA from optuna.multi_objective import trial # NOQA from optuna.multi_objective import visualization # NOQA from optuna.multi_objective.study import create_study # NOQA from optuna.multi_objective.study import load_study...
47
61
0.829787
624b2292355be6da314c7a1ac3f0ce3bad4e557e
4,517
py
Python
wagtailvideos/views/chooser.py
mariocesar/wagtailvideos
e085cb4fc9e57b46fefa29447b860ef4d286ef15
[ "BSD-3-Clause" ]
null
null
null
wagtailvideos/views/chooser.py
mariocesar/wagtailvideos
e085cb4fc9e57b46fefa29447b860ef4d286ef15
[ "BSD-3-Clause" ]
null
null
null
wagtailvideos/views/chooser.py
mariocesar/wagtailvideos
e085cb4fc9e57b46fefa29447b860ef4d286ef15
[ "BSD-3-Clause" ]
null
null
null
import wagtail from django.core.paginator import Paginator from django.shortcuts import get_object_or_404, render from django.urls import reverse from wagtail.admin.forms.search import SearchForm from wagtail.admin.modal_workflow import render_modal_workflow from wagtail.core.models import Collection from wagtail.image...
31.151724
87
0.651317
f4f1611d9e53743d40cfb4ec0e5c6e0c15eb5534
19,503
py
Python
src/capsule.py
CTinRay/ADL-Final
111029d66ddf5beba175efd5569cd986f4cea827
[ "MIT" ]
null
null
null
src/capsule.py
CTinRay/ADL-Final
111029d66ddf5beba175efd5569cd986f4cea827
[ "MIT" ]
null
null
null
src/capsule.py
CTinRay/ADL-Final
111029d66ddf5beba175efd5569cd986f4cea827
[ "MIT" ]
null
null
null
import pdb import math import tensorflow as tf EPSILON = 1e-5 def conv_capsule(inputs, activation, kernel_size, stride, channels_out, routing_iters=3): """Build capsule convolution layer. Args: inputs (tensor): Pose of lower layer. Shape: [batch, input_height, input_wid...
36.454206
82
0.546583
e956a90d034b86994f287a940622414df02a3494
142
py
Python
group.py
OlenaRudnytska/python_tests
ffa964f93401865bd75edf9a9c437b1006e2d211
[ "Apache-2.0" ]
null
null
null
group.py
OlenaRudnytska/python_tests
ffa964f93401865bd75edf9a9c437b1006e2d211
[ "Apache-2.0" ]
null
null
null
group.py
OlenaRudnytska/python_tests
ffa964f93401865bd75edf9a9c437b1006e2d211
[ "Apache-2.0" ]
null
null
null
class Group: def __init__(self,name,header,footer): self.name = name self.header = header self.footer = footer
15.777778
42
0.598592
41b1aad85cd00a3bc34a74ebe2476b2a92b6d78b
738
py
Python
Abbreviation.py
see-why/HackerRank-Solutions
5f3ab61235dc07209664e064292754942f5d41e4
[ "MIT" ]
5
2022-02-22T08:48:52.000Z
2022-03-03T22:31:16.000Z
Abbreviation.py
see-why/HackerRank-Solutions
5f3ab61235dc07209664e064292754942f5d41e4
[ "MIT" ]
null
null
null
Abbreviation.py
see-why/HackerRank-Solutions
5f3ab61235dc07209664e064292754942f5d41e4
[ "MIT" ]
null
null
null
https://www.hackerrank.com/challenges/abbr/problem?isFullScreen=true def abbreviation(a, b): # Write your code here bpos = {} for i in range(len(b)): bpos[b[i]] = (bpos[b[i]] | set([i])) if b[i] in bpos else set([i]) possibilities = set([0]) for i in range(len(a)): if a[i].upper() i...
36.9
74
0.575881
cf008a9863a8b6819354b4e93d35c7d856b5752a
1,409
py
Python
Packs/PingCastle/Integrations/PingCastle/PingCastle_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PingCastle/Integrations/PingCastle/PingCastle_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PingCastle/Integrations/PingCastle/PingCastle_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
""" PingCastle Integration for Cortex XSOAR - Unit Tests file This file contains the Pytest Tests for the PingCastle Integration This file tests the get_report command but not the long running integration command because in order to do that I'd need to mock socket itself. """ import CommonServerPython import demistomo...
38.081081
111
0.760114
11c13bef354ba47188318b92d7eb266c3468d282
3,718
py
Python
PPOCRLabel/libs/stringBundle.py
tp655998/PaddleOCR_Chinese_Cht
d9b2b7ada9c7fd2c4b78c3863fc06601947badc2
[ "Apache-2.0" ]
3
2020-11-25T07:51:40.000Z
2021-12-22T09:32:51.000Z
PPOCRLabel/libs/stringBundle.py
tenDay22/PaddleOCR
ca44e5766919b61b0e88513d62b551397703be2c
[ "Apache-2.0" ]
1
2020-12-21T06:06:45.000Z
2020-12-21T06:06:45.000Z
PPOCRLabel/libs/stringBundle.py
tenDay22/PaddleOCR
ca44e5766919b61b0e88513d62b551397703be2c
[ "Apache-2.0" ]
1
2022-03-29T07:09:25.000Z
2022-03-29T07:09:25.000Z
# Copyright (c) <2015-Present> Tzutalin # Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba, # William T. Freeman. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Soft...
40.857143
119
0.656267
031a46689062860a2b0037a813fc762a0bca063e
1,643
py
Python
baselines/common/vec_env/vec_normalize.py
williamd4112/baselines
d9af95518e41e6e58feba9d70529e1dcabb044c8
[ "MIT" ]
null
null
null
baselines/common/vec_env/vec_normalize.py
williamd4112/baselines
d9af95518e41e6e58feba9d70529e1dcabb044c8
[ "MIT" ]
null
null
null
baselines/common/vec_env/vec_normalize.py
williamd4112/baselines
d9af95518e41e6e58feba9d70529e1dcabb044c8
[ "MIT" ]
null
null
null
from . import VecEnvWrapper from baselines.common.running_mean_std import RunningMeanStd import numpy as np class VecNormalize(VecEnvWrapper): """ A vectorized wrapper that normalizes the observations and returns from an environment. """ def __init__(self, venv, ob=True, ret=True, clipob=10., cli...
33.530612
120
0.619598
a7b6f67f126310ec44a38b7d53cd3e05316d54bb
131
py
Python
external/AR/ltr/__init__.py
tzhhhh123/Stark
eaf7df3baf27ac064938f831211ae64659bc6808
[ "MIT" ]
376
2021-03-27T12:29:17.000Z
2022-03-29T01:22:15.000Z
external/AR/ltr/__init__.py
wp8733684/Stark
ba59f9596b06bc687d726f991e1e7fce8af6b5a5
[ "MIT" ]
75
2021-03-31T12:44:45.000Z
2022-03-28T09:02:57.000Z
external/AR/ltr/__init__.py
wp8733684/Stark
ba59f9596b06bc687d726f991e1e7fce8af6b5a5
[ "MIT" ]
82
2021-03-26T10:07:57.000Z
2022-03-29T11:08:27.000Z
from .admin.loading import load_network from .admin.model_constructor import model_constructor from .admin.multigpu import MultiGPU
43.666667
54
0.870229
65f4b653e592ed52234ee2c1c9b131adfdd180db
7,776
py
Python
docs/source/conf.py
alchemy-fr/GeonamesServer
8d509773571527ebea941d9b4daf8e35386898ec
[ "MIT" ]
17
2015-01-19T07:52:30.000Z
2018-09-23T12:17:50.000Z
docs/source/conf.py
alchemy-fr/GeonamesServer
8d509773571527ebea941d9b4daf8e35386898ec
[ "MIT" ]
2
2016-03-16T12:07:08.000Z
2016-03-17T10:10:38.000Z
docs/source/conf.py
alchemy-fr/GeonamesServer
8d509773571527ebea941d9b4daf8e35386898ec
[ "MIT" ]
10
2015-01-11T13:17:10.000Z
2020-07-06T04:42:10.000Z
# -*- coding: utf-8 -*- # # l10n-server documentation build configuration file, created by # sphinx-quickstart on Wed Oct 24 12:08:55 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
32
80
0.714763
b8b132fc5ac58a191d3d2abe267b5d648d1e311b
2,930
bzl
Python
bindings/python/build_defs.oss.bzl
ikrima/iree
6d0978e2baa2ba7d618097a46eccfde06483ed60
[ "Apache-2.0" ]
null
null
null
bindings/python/build_defs.oss.bzl
ikrima/iree
6d0978e2baa2ba7d618097a46eccfde06483ed60
[ "Apache-2.0" ]
null
null
null
bindings/python/build_defs.oss.bzl
ikrima/iree
6d0978e2baa2ba7d618097a46eccfde06483ed60
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.505376
81
0.695563
197fdcb19c1e812ef033e73aa297461b91f71b6c
2,106
py
Python
utilitybelt/dicts.py
pedroysb/python-utilitybelt
13d3502aa1a486c9d775ad2c551fb8e7e48b0d96
[ "MIT" ]
11
2016-06-12T04:38:20.000Z
2021-03-15T12:27:54.000Z
utilitybelt/dicts.py
blockstack/utilitybelt
13d3502aa1a486c9d775ad2c551fb8e7e48b0d96
[ "MIT" ]
1
2020-01-13T07:08:42.000Z
2020-03-08T06:20:10.000Z
utilitybelt/dicts.py
blockstack/utilitybelt
13d3502aa1a486c9d775ad2c551fb8e7e48b0d96
[ "MIT" ]
14
2016-06-12T04:38:20.000Z
2021-03-16T15:51:57.000Z
# -*- coding: utf-8 -*- """ Utilitybelt ~~~~~ :copyright: (c) 2015 by Halfmoon Labs :license: MIT, see LICENSE for more details. """ from collections import defaultdict """ A recursive dictionary based on the collections lib defaultdict class. """ recursive_dict = lambda: defaultdict(recursive_dict) ...
27
79
0.591643
4f42606d59e765512d5470b0522454607ec3b30d
1,937
py
Python
Node_Classification/2.GraphSN_GIN/citeseer/layers.py
wokas36/GraphSNN
dcc36cad4d015b3c6aeae4e27fb595e35e1168a3
[ "MIT" ]
11
2022-03-15T08:51:51.000Z
2022-03-27T14:43:39.000Z
Node_Classification/2.GraphSN_GIN/citeseer/layers.py
wokas36/GraphSNN
dcc36cad4d015b3c6aeae4e27fb595e35e1168a3
[ "MIT" ]
null
null
null
Node_Classification/2.GraphSN_GIN/citeseer/layers.py
wokas36/GraphSNN
dcc36cad4d015b3c6aeae4e27fb595e35e1168a3
[ "MIT" ]
3
2022-03-27T14:43:41.000Z
2022-03-28T12:08:53.000Z
import math import torch from torch.nn.parameter import Parameter from torch.nn.modules.module import Module import torch.nn as nn import numpy as np from IPython.core.debugger import Tracer class Graphsn_GCN(Module): def __init__(self, in_features, out_features, bias=True): super(Graphsn_GCN, self).__ini...
33.396552
84
0.588023
2b78a8464ed1f34e6966149d3e6f7cb88677548c
1,910
py
Python
test/hummingbot/connector/exchange/btcturk/test_btcturk_auth.py
orhanb/hummingbot
2a24fb63173725fa1690c0191a3487c5c79bb508
[ "Apache-2.0" ]
null
null
null
test/hummingbot/connector/exchange/btcturk/test_btcturk_auth.py
orhanb/hummingbot
2a24fb63173725fa1690c0191a3487c5c79bb508
[ "Apache-2.0" ]
null
null
null
test/hummingbot/connector/exchange/btcturk/test_btcturk_auth.py
orhanb/hummingbot
2a24fb63173725fa1690c0191a3487c5c79bb508
[ "Apache-2.0" ]
null
null
null
import asyncio import hashlib import hmac from copy import copy from unittest import TestCase from unittest.mock import MagicMock from typing_extensions import Awaitable from hummingbot.connector.exchange.btcturk.btcturk_auth import BtcturkAuth from hummingbot.core.web_assistant.connections.data_types import RESTMeth...
38.2
108
0.687435
37dc173392e0bc1503ccc84e1afcada043a821cc
1,367
py
Python
sdk/eventhub/azure-eventhub/azure/eventhub/__init__.py
sammiee5311/azure-sdk-for-python
bc99c220bcada3aa7187e915f9df65f4fa0669c5
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhub/azure/eventhub/__init__.py
sammiee5311/azure-sdk-for-python
bc99c220bcada3aa7187e915f9df65f4fa0669c5
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhub/azure/eventhub/__init__.py
sammiee5311/azure-sdk-for-python
bc99c220bcada3aa7187e915f9df65f4fa0669c5
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
34.175
94
0.692758
17c378f0d3835707d080d326b8022d5f79504a5e
1,643
py
Python
src/comments/migrations/0001_initial.py
jsmesami/naovoce
235c6e05ef37be23d3b9bd0b76d80080c58617a0
[ "BSD-3-Clause" ]
18
2016-02-23T15:34:58.000Z
2022-02-28T08:15:30.000Z
src/comments/migrations/0001_initial.py
jsmesami/naovoce
235c6e05ef37be23d3b9bd0b76d80080c58617a0
[ "BSD-3-Clause" ]
66
2016-03-15T19:59:09.000Z
2022-03-11T23:25:41.000Z
src/comments/migrations/0001_initial.py
jsmesami/naovoce
235c6e05ef37be23d3b9bd0b76d80080c58617a0
[ "BSD-3-Clause" ]
7
2016-03-24T09:13:07.000Z
2018-09-16T17:04:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone import utils.fields from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), mi...
43.236842
137
0.631771
d28ea41e33bb3d66da9104867be2713ef6918a29
11,350
py
Python
src/orion/algo/asha.py
mnoukhov/orion
7849d77344e84ec805207cf4148aecf6f7d6b3d7
[ "BSD-3-Clause" ]
3
2019-12-13T03:41:19.000Z
2021-06-15T20:14:33.000Z
src/orion/algo/asha.py
mnoukhov/orion
7849d77344e84ec805207cf4148aecf6f7d6b3d7
[ "BSD-3-Clause" ]
null
null
null
src/orion/algo/asha.py
mnoukhov/orion
7849d77344e84ec805207cf4148aecf6f7d6b3d7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :mod:`orion.algo.asha` -- Asynchronous Successive Halving Algorithm =================================================================== .. module:: asha :platform: Unix :synopsis: Asynchronous Successive Halving Algorithm """ import copy import hashlib import logging import numpy f...
38.087248
99
0.61815
fd359ff256b9837cd01b40090b51a2ab93d36f11
486
py
Python
long_pool_events/module_start_typing_c.py
ihydrogen/hydrogen-chat-bot-py
b21ece5cf2532c0f0d31b5db75fe6b91229f5d59
[ "Apache-2.0" ]
9
2017-02-19T16:09:53.000Z
2021-01-05T12:18:22.000Z
long_pool_events/module_start_typing_c.py
ihydrogen/hydrogen-chat-bot-py
b21ece5cf2532c0f0d31b5db75fe6b91229f5d59
[ "Apache-2.0" ]
1
2017-11-28T04:37:33.000Z
2017-11-28T04:37:33.000Z
long_pool_events/module_start_typing_c.py
ihydrogen/hydrogen-chat-bot-py
b21ece5cf2532c0f0d31b5db75fe6b91229f5d59
[ "Apache-2.0" ]
null
null
null
import bot_header from vk_api.api import User from vk_api.api import api_request from vk_api.api import get_api # execute when user started typing. def main(message, lpt): # get id of user typing_id = message[1] # get user from VK API by id user = User.from_json(api_request(get_api(lpt=lpt), "users.ge...
32.4
99
0.713992
73b8b01aad5023e21c02e3221377540e95aaac1e
422
py
Python
projects/golem_integration/tests/actions/alerts/verify_alert_text.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_integration/tests/actions/alerts/verify_alert_text.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_integration/tests/actions/alerts/verify_alert_text.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
from golem import actions description = 'Verify verify_alert_text action' def test(data): actions.navigate(data.env.url+'alert/') actions.click('#alert-button') actions.verify_alert_text('an alert') try: actions.verify_alert_text('incorrect text') except Exception as e: assert "Ex...
28.133333
91
0.701422
3f892a4e1031123c5c5ac6832c46ebe2b5b122df
6,237
py
Python
configs/custom/testmodel_attention_multi_conv_2x.py
SeHwanJoo/mmdetection_vinbig
9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3
[ "Apache-2.0" ]
2
2021-04-01T08:17:08.000Z
2021-07-12T11:53:53.000Z
configs/custom/testmodel_attention_multi_conv_2x.py
SeHwanJoo/mmdetection_vinbig
9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3
[ "Apache-2.0" ]
null
null
null
configs/custom/testmodel_attention_multi_conv_2x.py
SeHwanJoo/mmdetection_vinbig
9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3
[ "Apache-2.0" ]
null
null
null
model = dict( type='RetinaNet', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), norm_eval=True, style='pytorch')...
33.713514
77
0.526215
35060d9d3929d6bf783dfdd451240702a414ee49
26,289
py
Python
intellipush/client.py
Intellipush/intellipush-python-sdk
ddc322b64b3063dcc5d7d6e91b4eb9286aa12fb8
[ "MIT" ]
null
null
null
intellipush/client.py
Intellipush/intellipush-python-sdk
ddc322b64b3063dcc5d7d6e91b4eb9286aa12fb8
[ "MIT" ]
null
null
null
intellipush/client.py
Intellipush/intellipush-python-sdk
ddc322b64b3063dcc5d7d6e91b4eb9286aa12fb8
[ "MIT" ]
null
null
null
import json as jsonlib import requests import time import datetime from .utils import php_encode from .messages import SMS from .contacts import Target class Intellipush: def __init__(self, key, secret, base_url='https://www.intellipush.com/api', version='4.0'): """ Creat a client instance for co...
37.078984
187
0.619575
06ee731fb0f0935054b34e8b868a15a7621bc1b7
3,159
py
Python
apps/server/reMac_server.py
jetedonner/ch.kimhauser.python.remac
22bc09455c54a0a3c099e58d6e1bad055a8bb2fe
[ "MIT" ]
null
null
null
apps/server/reMac_server.py
jetedonner/ch.kimhauser.python.remac
22bc09455c54a0a3c099e58d6e1bad055a8bb2fe
[ "MIT" ]
null
null
null
apps/server/reMac_server.py
jetedonner/ch.kimhauser.python.remac
22bc09455c54a0a3c099e58d6e1bad055a8bb2fe
[ "MIT" ]
null
null
null
import socket import selectors import traceback import sys # import keyboard from pynput import keyboard from apps.server.libs import reMac_libserver # conHost = "192.168.0.49" conHost = "127.0.0.1" conPort = "6890" sel = selectors.DefaultSelector() class reMac_server(): global doExit doExit = False d...
31.277228
80
0.518519
d6f4fce6ffc6a36adb9c5cdb1508649d4d862594
534
py
Python
invenio_vocabularies/contrib/subjects/__init__.py
mb-wali/invenio-vocabularies
c159d5bd0ca3e7b857ff1b6764835751e4f446ea
[ "MIT" ]
null
null
null
invenio_vocabularies/contrib/subjects/__init__.py
mb-wali/invenio-vocabularies
c159d5bd0ca3e7b857ff1b6764835751e4f446ea
[ "MIT" ]
null
null
null
invenio_vocabularies/contrib/subjects/__init__.py
mb-wali/invenio-vocabularies
c159d5bd0ca3e7b857ff1b6764835751e4f446ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2021 Northwestern University. # # Invenio-Vocabularies is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Subjects module.""" from .resources import SubjectsR...
25.428571
73
0.741573
590ef28f1f2f79e4eac63456e16d1519a99fe022
1,049
py
Python
common/@PulseCalibration/PiCal.py
silky/Qlab
ce4085d3ad5bac7f6056c6b71e4cdfad2d70820c
[ "Apache-2.0" ]
1
2019-06-27T11:33:05.000Z
2019-06-27T11:33:05.000Z
common/@PulseCalibration/PiCal.py
silky/Qlab
ce4085d3ad5bac7f6056c6b71e4cdfad2d70820c
[ "Apache-2.0" ]
null
null
null
common/@PulseCalibration/PiCal.py
silky/Qlab
ce4085d3ad5bac7f6056c6b71e4cdfad2d70820c
[ "Apache-2.0" ]
null
null
null
import argparse import sys, os parser = argparse.ArgumentParser() parser.add_argument('pyqlabpath', help='path to PyQLab directory') parser.add_argument('qubit', help='qubit name') parser.add_argument('direction', help='direction (X or Y)') parser.add_argument('numPulses', type=int, help='maximum number of 180s') parse...
40.346154
100
0.665396
e2f2e0442b615bf4bc72398658855ee28e32dfb6
7,831
py
Python
pyam/_aggregate.py
gidden/pyam
c08da618ad9c9b3866326f58562a4a69b165cc79
[ "Apache-2.0" ]
2
2018-09-04T03:26:39.000Z
2019-01-14T21:05:08.000Z
pyam/_aggregate.py
gidden/pyam
c08da618ad9c9b3866326f58562a4a69b165cc79
[ "Apache-2.0" ]
6
2018-11-01T11:02:41.000Z
2019-04-23T09:06:59.000Z
pyam/_aggregate.py
gidden/pyam
c08da618ad9c9b3866326f58562a4a69b165cc79
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import logging from pyam.logging import adjust_log_level from pyam.utils import ( islistable, isstr, find_depth, reduce_hierarchy, KNOWN_FUNCS ) logger = logging.getLogger(__name__) def _aggregate(df, variable, components=None, method=np.sum): """Intern...
35.922018
78
0.652918
6059d21a7c25d8bae279132031bb1b2fcae1fe68
17,249
py
Python
ingestion/src/metadata/ingestion/sink/metadata_rest.py
spauldurai/OpenMetadata
a8d2fa42ed2d7740ef9e6a14d79a0ad7e0462ece
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/sink/metadata_rest.py
spauldurai/OpenMetadata
a8d2fa42ed2d7740ef9e6a14d79a0ad7e0462ece
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/sink/metadata_rest.py
spauldurai/OpenMetadata
a8d2fa42ed2d7740ef9e6a14d79a0ad7e0462ece
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # 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...
42.173594
93
0.639341
37b35a63fc847dab9075e507f335c25fa3e4c42a
1,808
py
Python
examples/graphics/fractal.py
miketrumpis/arrayfire-python
aead0394ffda9bd820279f59a84a9dcba6e3691f
[ "BSD-3-Clause" ]
420
2015-07-30T00:02:21.000Z
2022-03-28T16:52:28.000Z
examples/graphics/fractal.py
miketrumpis/arrayfire-python
aead0394ffda9bd820279f59a84a9dcba6e3691f
[ "BSD-3-Clause" ]
198
2015-07-29T17:17:36.000Z
2022-01-20T18:31:28.000Z
examples/graphics/fractal.py
miketrumpis/arrayfire-python
aead0394ffda9bd820279f59a84a9dcba6e3691f
[ "BSD-3-Clause" ]
75
2015-07-29T15:17:54.000Z
2022-02-24T06:50:23.000Z
#!/usr/bin/python ####################################################### # Copyright (c) 2015, ArrayFire # All rights reserved. # # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # http://arrayfire.com/licenses/BSD-3-Clause ###################################...
24.106667
78
0.524336
78f34f9460c07a4b23c28125eb8928d4297ad241
3,204
py
Python
tests/test_tools.py
lchojnacki/master
582553e6fa262a310511304f66cf94753308246c
[ "BSD-3-Clause" ]
1
2021-06-11T12:32:12.000Z
2021-06-11T12:32:12.000Z
tests/test_tools.py
lchojnacki/master
582553e6fa262a310511304f66cf94753308246c
[ "BSD-3-Clause" ]
null
null
null
tests/test_tools.py
lchojnacki/master
582553e6fa262a310511304f66cf94753308246c
[ "BSD-3-Clause" ]
2
2020-08-20T16:13:27.000Z
2022-03-01T13:49:07.000Z
# -*- coding: UTF-8 -*- from unittest import TestCase as UnitTest from django_mail_template.tools import (replace_context_variable, clean_address_list) class TestReplaceContextVariable(UnitTest): """ There are 6 test for almost 5 lines code. """ def test_secon...
39.555556
77
0.672285
99d062d4c3ed3163735c802163b7b73bb209cd77
3,018
py
Python
homeassistant/components/zha/core/channels/measurement.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
5
2018-10-23T14:15:05.000Z
2021-11-26T06:38:44.000Z
homeassistant/components/zha/core/channels/measurement.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/zha/core/channels/measurement.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Measurement channels module for Zigbee Home Automation.""" import zigpy.zcl.clusters.measurement as measurement from .. import registries from ..const import ( REPORT_CONFIG_DEFAULT, REPORT_CONFIG_IMMEDIATE, REPORT_CONFIG_MAX_INT, REPORT_CONFIG_MIN_INT, ) from .base import ZigbeeChannel @registrie...
28.742857
88
0.732273
3fd58512545b8f538157871fe0fd6eddb73cd183
131
py
Python
spidy/__init__.py
imohitawasthi/spidy
4ae0a180c8e07503d0481f664f9e8014fc413e96
[ "MIT" ]
null
null
null
spidy/__init__.py
imohitawasthi/spidy
4ae0a180c8e07503d0481f664f9e8014fc413e96
[ "MIT" ]
null
null
null
spidy/__init__.py
imohitawasthi/spidy
4ae0a180c8e07503d0481f664f9e8014fc413e96
[ "MIT" ]
null
null
null
"""spidy - Spider who crawls the web""" __version__ = '0.1.0' __author__ = 'Mohit Awasthi <imohitawasthi@gmail.com>' __all__ = []
21.833333
54
0.687023
f81f53f5d296868715ce1aaedc76f5024987b22c
88,106
py
Python
test/integration/component/test_vpc.py
hymmm/cl
fd808963c8ee3753b72bfe38eddfbd5d56d56ee0
[ "Apache-2.0" ]
1
2018-05-23T06:13:51.000Z
2018-05-23T06:13:51.000Z
test/integration/component/test_vpc.py
hymmm/cl
fd808963c8ee3753b72bfe38eddfbd5d56d56ee0
[ "Apache-2.0" ]
null
null
null
test/integration/component/test_vpc.py
hymmm/cl
fd808963c8ee3753b72bfe38eddfbd5d56d56ee0
[ "Apache-2.0" ]
1
2018-05-15T08:58:32.000Z
2018-05-15T08:58:32.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...
35.341356
110
0.553946
380d8f4508bb28382677c3a6cbf5a25e3b2710a6
3,260
py
Python
obniz/obniz/libs/io_peripherals/io.py
obniz/obniz-python-sdk
da72848ac2a3eeeef238847d86a3f8cbd90d4ce3
[ "MIT" ]
11
2019-03-22T12:02:11.000Z
2021-01-21T04:57:18.000Z
obniz/obniz/libs/io_peripherals/io.py
obniz/obniz-python-sdk
da72848ac2a3eeeef238847d86a3f8cbd90d4ce3
[ "MIT" ]
5
2019-03-02T08:28:25.000Z
2021-02-02T22:06:37.000Z
obniz/obniz/libs/io_peripherals/io.py
obniz/obniz-python-sdk
da72848ac2a3eeeef238847d86a3f8cbd90d4ce3
[ "MIT" ]
3
2019-07-20T06:55:09.000Z
2019-12-04T05:05:00.000Z
import asyncio class PeripheralIO: def __init__(self, obniz, id): self.obniz = obniz self.id = id self.onchange = None self._reset() def _reset(self): self.value = 0 self.observers = [] def add_observer(self, callback): if callback: self...
28.849558
89
0.483129
3ddcdf352668b19437e995a215a08be798bbd1d9
4,272
py
Python
src/notification.py
mikefeneley/secure-cloud
f19d66ecf0ae18c4c0402edfaa298ac946d70aeb
[ "MIT" ]
2
2017-01-04T07:58:27.000Z
2017-01-06T20:55:20.000Z
src/notification.py
mikefeneley/secure-cloud
f19d66ecf0ae18c4c0402edfaa298ac946d70aeb
[ "MIT" ]
11
2017-01-04T17:57:25.000Z
2017-01-13T13:04:11.000Z
src/notification.py
mikefeneley/secure-cloud
f19d66ecf0ae18c4c0402edfaa298ac946d70aeb
[ "MIT" ]
2
2016-12-27T17:33:51.000Z
2017-01-16T01:18:16.000Z
import os import smtplib from validate_email import validate_email from logger import Logger class Notification: """ Interface that allows user to send notifications using email protocols. """ def __init__(self, email_server="127.0.0.1", email_port=587, email_username="", email_pwd...
32.363636
98
0.618212
93f02a840b4a77d9a3824ed9421b52bc350691ce
537
py
Python
DS&Algo Programs in Python/shellSort.py
prathimacode-hub/HacktoberFest-2020
c18bbb42a5e78f6a7dbfc15fbafd127e738f53f7
[ "MIT" ]
386
2020-05-08T16:05:16.000Z
2021-10-05T17:39:14.000Z
DS&Algo Programs in Python/shellSort.py
prathimacode-hub/HacktoberFest-2020
c18bbb42a5e78f6a7dbfc15fbafd127e738f53f7
[ "MIT" ]
830
2020-08-31T17:16:45.000Z
2021-10-06T14:14:23.000Z
DS&Algo Programs in Python/shellSort.py
prathimacode-hub/HacktoberFest-2020
c18bbb42a5e78f6a7dbfc15fbafd127e738f53f7
[ "MIT" ]
923
2020-05-29T15:04:29.000Z
2021-10-06T15:18:01.000Z
def shellSort(array, n): # Rearrange elements at each n/2, n/4, n/8, ... intervals interval = n // 2 while interval > 0: for i in range(interval, n): temp = array[i] j = i while j >= interval and array[j - interval] > temp: array[j] = array[j - in...
24.409091
63
0.513966
0b62b9bc7b0272c955257b34f78451dda2ea26e7
19,563
py
Python
projects-management/gitlaber/controllers.py
fgouteroux/flask-puppet-projects
deea0abadf5a306f41bef073fa722f7e17f644fb
[ "Apache-2.0" ]
5
2015-12-10T17:09:51.000Z
2015-12-11T14:13:50.000Z
projects-management/gitlaber/controllers.py
fgouteroux/flask-puppet-projects
deea0abadf5a306f41bef073fa722f7e17f644fb
[ "Apache-2.0" ]
null
null
null
projects-management/gitlaber/controllers.py
fgouteroux/flask-puppet-projects
deea0abadf5a306f41bef073fa722f7e17f644fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Flask controller ''' from __future__ import absolute_import import os import json from flask_oauthlib.client import OAuth from gitlaber import config os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' def _raise_error_from_response(response): """ Tries to parse e...
38.815476
100
0.490825
3e6c1ddc77941d7f430a3d03c41daf26c6675393
15,405
py
Python
superset/tasks/schedules.py
AshishKapoor/incubator-superset
394a888e96b404e34b0ddf3cd2d099721dd2235a
[ "Apache-2.0" ]
null
null
null
superset/tasks/schedules.py
AshishKapoor/incubator-superset
394a888e96b404e34b0ddf3cd2d099721dd2235a
[ "Apache-2.0" ]
8
2020-08-02T03:31:21.000Z
2022-03-29T22:27:56.000Z
superset/tasks/schedules.py
AshishKapoor/incubator-superset
394a888e96b404e34b0ddf3cd2d099721dd2235a
[ "Apache-2.0" ]
null
null
null
# 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...
31.828512
87
0.68322
d9b923ca29caf77ceeeb8c0a0221b26e1fa6990d
1,303
py
Python
bitmovin_api_sdk/encoding/filters/audio_mix/customdata/customdata_api.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/encoding/filters/audio_mix/customdata/customdata_api.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/encoding/filters/audio_mix/customdata/customdata_api.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
# coding: utf-8 from __future__ import absolute_import from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase from bitmovin_api_sdk.common.poscheck import poscheck_except from bitmovin_api_sdk.models.custom_data import CustomData from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope from ...
32.575
80
0.681504
68ea9a2952cd5a6ebc323f954b0c362f4f6d1a7a
129
py
Python
weunion/apps.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
weunion/apps.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
weunion/apps.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class WeunionConfig(AppConfig): name = 'weunion' verbose_name = 'Системі налаштування'
25.8
41
0.75969
2b7748d2b06af2149507c3d9f97214b53fc1362d
9,527
py
Python
covid-19.py
pimajor/py-simulitis
6e0f2d419c28c47dcb5f9b6ee90c6b466e47204a
[ "MIT" ]
2
2020-03-21T15:50:02.000Z
2021-04-10T01:07:06.000Z
covid-19.py
pimajor/py-simulitis
6e0f2d419c28c47dcb5f9b6ee90c6b466e47204a
[ "MIT" ]
null
null
null
covid-19.py
pimajor/py-simulitis
6e0f2d419c28c47dcb5f9b6ee90c6b466e47204a
[ "MIT" ]
null
null
null
import numpy as np import csv import matplotlib.pyplot as plt from matplotlib.dates import DateFormatter import matplotlib.dates as mdates import datetime as dt import pandas as pd word_pop_file = "C:\\work\\py-simulitis\\data\\world_population_2020.csv" countries = [] confirmed = [] confirmed_file = "C:\\work\\COV...
29.495356
152
0.603758
319b48691ae2b35b7bdfe23afd70ad42e6a68fb5
237
py
Python
project/tstyaml.py
cybertraining-dsc/fa19-516-147
767e9e2e27ef48a3e8405093b9f105f334bd67d3
[ "Apache-2.0" ]
null
null
null
project/tstyaml.py
cybertraining-dsc/fa19-516-147
767e9e2e27ef48a3e8405093b9f105f334bd67d3
[ "Apache-2.0" ]
2
2019-09-25T00:58:50.000Z
2019-09-25T01:10:35.000Z
project/tstyaml.py
cybertraining-dsc/fa19-516-147
767e9e2e27ef48a3e8405093b9f105f334bd67d3
[ "Apache-2.0" ]
1
2019-09-06T17:44:28.000Z
2019-09-06T17:44:28.000Z
import os import sys import yaml try: yamlFilename = os.sys.argv[1] yamlFile = open( yamlfilename ,"r") except: print("file does not exist") sys.exit() try: yaml.load(yamlFile.read()) except: print("valid file")
15.8
39
0.649789
381c3b70b01b5a0c40dda473bb42ec602d1483ff
3,889
py
Python
libs/eb/lib/aws/exception.py
coen-hyde/dotfiles
87a48b5e005d2764a1c72fc605f03b02741e526c
[ "MIT" ]
null
null
null
libs/eb/lib/aws/exception.py
coen-hyde/dotfiles
87a48b5e005d2764a1c72fc605f03b02741e526c
[ "MIT" ]
null
null
null
libs/eb/lib/aws/exception.py
coen-hyde/dotfiles
87a48b5e005d2764a1c72fc605f03b02741e526c
[ "MIT" ]
null
null
null
#!/usr/bin/env python #============================================================================== # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use # this file except in compliance with the License. A copy of the...
41.817204
99
0.686809
86dec428f39fc7297796ec617c06325f66455aa2
4,740
py
Python
tests/rados/pool_tests.py
vivekanandan-k-rh/cephci
4d9b89685d3c9b8f9b612f40b58cbded4762b7cc
[ "MIT" ]
1
2019-10-07T09:25:07.000Z
2019-10-07T09:25:07.000Z
tests/rados/pool_tests.py
vivekanandan-k-rh/cephci
4d9b89685d3c9b8f9b612f40b58cbded4762b7cc
[ "MIT" ]
1
2020-06-16T06:14:39.000Z
2020-06-16T06:14:39.000Z
tests/rados/pool_tests.py
tintumathew10/cephci
558207a4327c30cad0ecc4496f12b4b0548a8311
[ "MIT" ]
null
null
null
import datetime import logging import time from ceph.ceph_admin import CephAdmin from ceph.rados.core_workflows import RadosOrchestrator log = logging.getLogger(__name__) def run(ceph_cluster, **kw): """ Performs various pool related validation tests Returns: 1 -> Fail, 0 -> Pass """ log...
39.831933
105
0.592194
8e9f78656c73ca7461c723c9f35d7b83294763e1
3,059
py
Python
cloudmarker/test/test_azstorageaccountallowtrustedservicesevent.py
TinLe/cloudmarker
29698420457a86d5d8a0bac156bc98bd656198e1
[ "MIT" ]
208
2019-04-10T05:15:11.000Z
2022-03-16T17:41:29.000Z
cloudmarker/test/test_azstorageaccountallowtrustedservicesevent.py
TinLe/cloudmarker
29698420457a86d5d8a0bac156bc98bd656198e1
[ "MIT" ]
88
2018-12-17T18:24:13.000Z
2021-05-15T04:19:53.000Z
cloudmarker/test/test_azstorageaccountallowtrustedservicesevent.py
TinLe/cloudmarker
29698420457a86d5d8a0bac156bc98bd656198e1
[ "MIT" ]
15
2019-01-03T04:18:33.000Z
2021-06-03T09:24:31.000Z
"""Tests for AzStorageAccountAllowTrustedServicesEvent plugin.""" import copy import unittest from cloudmarker.events import azstorageaccountallowtrustedservicesevent base_record = { 'com': { 'cloud_type': 'azure', 'record_type': 'storage_account_properties', }, 'ext': { 'record...
38.721519
72
0.675711
791a5b6d363910f23487f57acb69001c7ddd0a4c
1,994
py
Python
zigbear/custom_protocol/coordinatorcli.py
philippnormann/zigbear
3cfdb4c9b13adf1e785f27109194b575edf241af
[ "BSD-3-Clause" ]
14
2020-04-15T09:43:20.000Z
2022-01-29T19:36:27.000Z
zigbear/custom_protocol/coordinatorcli.py
philippnormann1337/zigbear
3cfdb4c9b13adf1e785f27109194b575edf241af
[ "BSD-3-Clause" ]
null
null
null
zigbear/custom_protocol/coordinatorcli.py
philippnormann1337/zigbear
3cfdb4c9b13adf1e785f27109194b575edf241af
[ "BSD-3-Clause" ]
1
2020-06-06T21:41:10.000Z
2020-06-06T21:41:10.000Z
from cmd import Cmd from zigbear.custom_protocol.Coordinator import Coordinator class CoordinatorCli(Cmd): def __init__(self, connector): self.prompt = 'Zigbear/coordinator> ' super().__init__() self.coordinator = Coordinator(connector) def do_devices(self, _): pass # TODO p...
29.761194
90
0.597793
780fd07fa13fe13b44f354aa8c65d1719d514512
6,730
py
Python
test/util/bitcoin-util-test.py
mrmikeo/GAU-Core
6f56bb73d0736a4245c22391314d6ba55de0e0d8
[ "MIT" ]
2
2020-08-25T18:02:32.000Z
2021-08-23T09:40:41.000Z
test/util/bitcoin-util-test.py
mrmikeo/GAU-Core
6f56bb73d0736a4245c22391314d6ba55de0e0d8
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
mrmikeo/GAU-Core
6f56bb73d0736a4245c22391314d6ba55de0e0d8
[ "MIT" ]
2
2020-08-06T20:56:42.000Z
2020-11-23T03:11:17.000Z
#!/usr/bin/env python3 # Copyright 2014 BitPay Inc. # Copyright 2016-2017 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 framework for gauntlet utils. Runs automatically during `make check`. C...
37.18232
125
0.637296
9a9b2ed81f9c428f856780f2b6f1381c1d6f74ea
457
py
Python
blueprint/unit_tests/test_functional.py
andrey-mishchenko/blueprint-oss
3bad9258571a0e08c53a9a05061e8461a1e62567
[ "MIT" ]
7
2021-08-16T09:17:31.000Z
2022-02-16T01:27:08.000Z
blueprint/unit_tests/test_functional.py
andrey-mishchenko/blueprint-oss
3bad9258571a0e08c53a9a05061e8461a1e62567
[ "MIT" ]
null
null
null
blueprint/unit_tests/test_functional.py
andrey-mishchenko/blueprint-oss
3bad9258571a0e08c53a9a05061e8461a1e62567
[ "MIT" ]
1
2021-08-11T20:17:06.000Z
2021-08-11T20:17:06.000Z
from unittest import TestCase from bp.functional import * class TestFunctional(TestCase): def test_all_equal(self) -> None: self.assertTrue( all_equal([1, 1, 1, 1])) self.assertFalse( all_equal([1, 2, 3])) self.assertTrue( all_equal([])) def explode() -> int: raise Excep...
17.576923
35
0.601751
5a79d0973b6a317ab8987c4de5ca4bc680af0bed
1,668
py
Python
var/spack/repos/builtin/packages/r-iranges/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/r-iranges/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/r-iranges/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 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 * class RIranges(RPackage): """Provides efficient low-level and highly reusable S4 classes for...
46.333333
80
0.685851
a6ae3499b0eb5f9cb5b6a03aa9d41577e085848b
59
py
Python
eda/nlp/__init__.py
alexklapheke/eda
027b3b94fe7d308cdb7cf3637551f4db75142f24
[ "MIT" ]
null
null
null
eda/nlp/__init__.py
alexklapheke/eda
027b3b94fe7d308cdb7cf3637551f4db75142f24
[ "MIT" ]
null
null
null
eda/nlp/__init__.py
alexklapheke/eda
027b3b94fe7d308cdb7cf3637551f4db75142f24
[ "MIT" ]
null
null
null
from .nlp import tf_idf from .nlp import logodds_dirichlet
19.666667
34
0.830508
54aee6cede04f1134f49f69ae03bdc0a7a8c29e4
2,050
py
Python
examples/adwords/v201601/account_management/create_account.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
1
2020-05-23T11:32:32.000Z
2020-05-23T11:32:32.000Z
examples/adwords/v201601/account_management/create_account.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
null
null
null
examples/adwords/v201601/account_management/create_account.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
2
2018-04-20T02:16:33.000Z
2020-11-12T20:58:54.000Z
#!/usr/bin/python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
32.03125
78
0.727805
545be5cef84ada878aacc720b8ca2babde041a5c
17,176
py
Python
ALS_DR_benchmark_twitter.py
HanbaekLyu/BCD-DR
0c4d65cb247073545507a6168ee7bd75a418177e
[ "MIT" ]
1
2021-03-26T03:12:26.000Z
2021-03-26T03:12:26.000Z
ALS_DR_benchmark_twitter.py
HanbaekLyu/BCD-DR
0c4d65cb247073545507a6168ee7bd75a418177e
[ "MIT" ]
null
null
null
ALS_DR_benchmark_twitter.py
HanbaekLyu/BCD-DR
0c4d65cb247073545507a6168ee7bd75a418177e
[ "MIT" ]
null
null
null
from utils.BCD_DR import ALS_DR from utils.ocpdl import Online_CPDL import numpy as np import matplotlib.pyplot as plt import pickle from scipy.interpolate import interp1d plt.rcParams['font.family'] = 'serif' plt.rcParams['font.serif'] = ['Times New Roman'] + plt.rcParams['font.serif'] def Out_tensor(loa...
44.154242
136
0.554495
dcc0fa3e0ba5493334b29e9b4f3e52267a00a303
2,662
py
Python
tracker_project/tracker/models.py
abarto/tracker_project
d7e1a6cb34a3b1d48a3aff16ca119f9c670b357d
[ "MIT" ]
64
2015-03-17T15:54:59.000Z
2021-02-21T16:39:49.000Z
tracker_project/tracker/models.py
Bakley/tracker_project
d7e1a6cb34a3b1d48a3aff16ca119f9c670b357d
[ "MIT" ]
3
2016-02-24T13:31:19.000Z
2019-02-08T04:06:23.000Z
tracker_project/tracker/models.py
Bakley/tracker_project
d7e1a6cb34a3b1d48a3aff16ca119f9c670b357d
[ "MIT" ]
25
2015-04-03T10:12:47.000Z
2020-08-01T20:47:16.000Z
from __future__ import absolute_import, unicode_literals from django.core.urlresolvers import reverse from django.contrib.gis.db import models from geojson import Feature, loads class Incident(models.Model): objects = models.GeoManager() URGENT = 'UR' HIGH = 'HI' MEDIUM = 'ME' LOW = 'LO' INF...
30.953488
105
0.582645
e8f794861f3cc91233fe681105886dc69e0ed268
8,655
py
Python
tensormate/graph/base.py
songgc/tensormate
3d7f3cb8dbca4bb346cc7525e247ccefd18ab80b
[ "Apache-2.0" ]
1
2018-08-29T04:17:06.000Z
2018-08-29T04:17:06.000Z
tensormate/graph/base.py
songgc/tensormate
3d7f3cb8dbca4bb346cc7525e247ccefd18ab80b
[ "Apache-2.0" ]
null
null
null
tensormate/graph/base.py
songgc/tensormate
3d7f3cb8dbca4bb346cc7525e247ccefd18ab80b
[ "Apache-2.0" ]
null
null
null
import copy from collections import Counter import numpy as np import six import tensorflow as tf from tensorflow.core.framework import graph_pb2, node_def_pb2 from tensorflow.python.util import compat from tensorflow.python.util.deprecation import deprecated class TfGgraphBuilder(object): def __init__(self, sc...
34.074803
110
0.58937
f2450712fd105b047d6b0f2a040acae2ee99bbe6
881
py
Python
policykit/policyengine/migrations/0004_webhooktriggeraction.py
mashton/policyk
623523d76d63c06b6d559ad7b477d80512fbd2e7
[ "MIT" ]
78
2020-05-08T17:25:38.000Z
2022-01-13T05:44:50.000Z
policykit/policyengine/migrations/0004_webhooktriggeraction.py
mashton/policyk
623523d76d63c06b6d559ad7b477d80512fbd2e7
[ "MIT" ]
302
2020-02-20T07:04:30.000Z
2022-02-25T17:44:23.000Z
policykit/policyengine/migrations/0004_webhooktriggeraction.py
mashton/policyk
623523d76d63c06b6d559ad7b477d80512fbd2e7
[ "MIT" ]
13
2020-04-17T19:44:26.000Z
2022-02-25T17:18:04.000Z
# Generated by Django 3.2.2 on 2021-11-10 14:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('policyengine', '0003_choicevote'), ] operations = [ migrations.CreateModel( name='WebhookTrigge...
32.62963
204
0.609535
ab6087cd01c336cf5a9d52051d411daa6cb0cfb0
356
py
Python
setup.py
vtmoreau/google_trans_new
1f4fecf17461107a27148896a87a26a565e9049a
[ "MIT" ]
null
null
null
setup.py
vtmoreau/google_trans_new
1f4fecf17461107a27148896a87a26a565e9049a
[ "MIT" ]
null
null
null
setup.py
vtmoreau/google_trans_new
1f4fecf17461107a27148896a87a26a565e9049a
[ "MIT" ]
null
null
null
from setuptools import find_packages from setuptools import setup setup(name='google_trans_new', version="1.0", description="Project Description", packages=find_packages(), # include_package_data: to install data from MANIFEST.in include_package_data=True, # scripts=['scripts/OpenFa...
29.666667
62
0.716292
d44dd8e87c0cdb86fe9188bdae7130f07e554be3
111,315
py
Python
theano/gpuarray/elemwise.py
sebastien-j/Theano
ad628f1f388931ba04a46a179c0eaa9a1d90ec2a
[ "BSD-3-Clause" ]
1
2017-06-30T21:37:52.000Z
2017-06-30T21:37:52.000Z
theano/gpuarray/elemwise.py
sebastien-j/Theano
ad628f1f388931ba04a46a179c0eaa9a1d90ec2a
[ "BSD-3-Clause" ]
null
null
null
theano/gpuarray/elemwise.py
sebastien-j/Theano
ad628f1f388931ba04a46a179c0eaa9a1d90ec2a
[ "BSD-3-Clause" ]
1
2020-01-06T20:28:42.000Z
2020-01-06T20:28:42.000Z
from __future__ import absolute_import, print_function, division import copy import numpy as np import theano from theano import Apply, scalar, Op from six.moves import StringIO, xrange from theano.gof.utils import MethodNotDefined from theano.scalar import Scalar, Composite from theano.tensor.elemwise import (Elemwis...
40.744876
156
0.480843
501c06c7ba0990f65237272f1df91e10553de33e
1,690
py
Python
tests/test_ingestion.py
VestiDev/ml-powered-applications-2020-book
4dcfdeb42cdce47406985dcbf8a0533cc086cd20
[ "MIT" ]
542
2019-06-11T20:15:11.000Z
2022-03-30T00:30:05.000Z
tests/test_ingestion.py
VestiDev/ml-powered-applications-2020-book
4dcfdeb42cdce47406985dcbf8a0533cc086cd20
[ "MIT" ]
84
2020-06-18T13:32:05.000Z
2021-08-02T13:18:27.000Z
tests/test_ingestion.py
VestiDev/ml-powered-applications-2020-book
4dcfdeb42cdce47406985dcbf8a0533cc086cd20
[ "MIT" ]
180
2019-04-15T01:47:32.000Z
2022-03-13T13:58:04.000Z
import sys import os from pathlib import Path import pandas as pd # Needed for pytest to resolve imports properly myPath = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, myPath + "/../") from ml_editor.data_ingestion import parse_xml_to_csv TEXT_LENGTH_FIELD = "text_len" # We defined the features re...
22.837838
71
0.689349
c3ae4f9c7794950ee8f6161b20744301d7104261
8,879
py
Python
main/Formalization.py
Vul4Vendetta/Vul_Tech
5d532442e6938a4ace8c30b526b477a41352f455
[ "MIT" ]
5
2019-10-12T06:37:31.000Z
2019-10-28T05:24:15.000Z
main/Formalization.py
RosenZhu/Vul_Tech
5ae99c2fe606143929dfe3669af17b6a871b1a18
[ "MIT" ]
1
2019-10-17T03:41:37.000Z
2019-10-17T03:41:37.000Z
main/Formalization.py
RosenZhu/Vul_Tech
5ae99c2fe606143929dfe3669af17b6a871b1a18
[ "MIT" ]
2
2018-12-08T10:04:54.000Z
2019-06-26T02:52:20.000Z
import os from xml.dom.minidom import parse import xml.dom.minidom #======================== checksum claims and definition ======================= # switch for checksum # parameters: # checkusm_type -> the checksum_type def switchForChecksum(checksum_type): switch = { 1 : [remainder_check_claim,remai...
38.107296
124
0.59804
6d398497b636ee8ec0839af13b3b4412143c3125
1,118
py
Python
hexdata.py
ManualDoCodigo/pyhexeditor
211cc360d468de98367cfd5b4972e7fa3da46712
[ "MIT" ]
null
null
null
hexdata.py
ManualDoCodigo/pyhexeditor
211cc360d468de98367cfd5b4972e7fa3da46712
[ "MIT" ]
null
null
null
hexdata.py
ManualDoCodigo/pyhexeditor
211cc360d468de98367cfd5b4972e7fa3da46712
[ "MIT" ]
null
null
null
from PyQt5 import QtCore class HexData: def __init__(self): self.data = None def __len__(self): if self.data: return self.data.size() return 0 def __getitem__(self, index): return int.from_bytes(self.data[index], "little") def __setitem__(self, index, dat...
27.95
98
0.611807
027ed41dfcd1bd1d349d714d18db285890228f1b
682
py
Python
tests/rootfinders/test_newton.py
timofeymukha/wallriori
a24961da70f79fd51cd0ab70a9bbeac2d939103b
[ "MIT" ]
null
null
null
tests/rootfinders/test_newton.py
timofeymukha/wallriori
a24961da70f79fd51cd0ab70a9bbeac2d939103b
[ "MIT" ]
null
null
null
tests/rootfinders/test_newton.py
timofeymukha/wallriori
a24961da70f79fd51cd0ab70a9bbeac2d939103b
[ "MIT" ]
1
2019-03-20T22:41:47.000Z
2019-03-20T22:41:47.000Z
# This file is part of wallriori # (c) Timofey Mukha # The code is released under the MIT Licence. # See LICENCE.txt and the Legal section in the README for more information from __future__ import absolute_import from __future__ import division from __future__ import print_function from wallriori.rootfinders import Ne...
20.666667
74
0.727273
7b8e21664e98f16e906db09e24eb7c920227f0fd
1,510
py
Python
src/sentry/api/endpoints/organization_incident_details.py
overquota/sentry
2cb3a3e40ca0b7ca3308deb0d1d9c436ce8aaeb8
[ "BSD-3-Clause" ]
1
2019-08-28T11:03:13.000Z
2019-08-28T11:03:13.000Z
src/sentry/api/endpoints/organization_incident_details.py
overquota/sentry
2cb3a3e40ca0b7ca3308deb0d1d9c436ce8aaeb8
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/endpoints/organization_incident_details.py
overquota/sentry
2cb3a3e40ca0b7ca3308deb0d1d9c436ce8aaeb8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from rest_framework.response import Response from sentry import features from sentry.api.bases.incident import IncidentPermission from sentry.api.bases.organization import OrganizationEndpoint from sentry.api.exceptions import ResourceDoesNotExist from sentry.api.serializers imp...
32.12766
89
0.686093
c65caa9666386a45cb8bc3a43eaeecdf3b97cb3b
4,173
py
Python
cumulusci/tasks/salesforce/tests/test_CreateCommunity.py
bethbrains/CumulusCI
933d305f1a0b580aaaded9254611fbc0141f4bed
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/salesforce/tests/test_CreateCommunity.py
bethbrains/CumulusCI
933d305f1a0b580aaaded9254611fbc0141f4bed
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/salesforce/tests/test_CreateCommunity.py
bethbrains/CumulusCI
933d305f1a0b580aaaded9254611fbc0141f4bed
[ "BSD-3-Clause" ]
null
null
null
import json import mock import responses import unittest from datetime import datetime from cumulusci.tasks.salesforce import CreateCommunity from cumulusci.core.exceptions import SalesforceException from .util import create_task task_options = { "name": "Test Community", "description": "Community Details", ...
33.926829
88
0.638869
ce0636145b4d4686024edc940ebd5b05d56a5907
3,216
py
Python
aspire/app/domain/rater.py
nemmons/aspire
59237f9f0890a92e710484aec037bddde811a4a4
[ "MIT" ]
2
2021-09-18T05:22:30.000Z
2021-11-10T17:57:49.000Z
aspire/app/domain/rater.py
nemmons/flask-rater
59237f9f0890a92e710484aec037bddde811a4a4
[ "MIT" ]
2
2021-01-10T04:58:45.000Z
2021-03-01T15:38:24.000Z
aspire/app/domain/rater.py
nemmons/aspire
59237f9f0890a92e710484aec037bddde811a4a4
[ "MIT" ]
null
null
null
from .rating_manual import RatingManual from .rating_step import Loop, AbstractRatingStep import copy from typing import List class Rater: rating_manual: RatingManual = None rating_variables: dict = None detailed_results: list = None def __init__(self, rating_manual: RatingManual): self.ratin...
40.2
127
0.658893
7c2c23ae9777b1ad5f952495c805ec47ad33e1dc
646
py
Python
setup.py
cartertemm/tformat
5a81361ab18d9badf24eb3d15c60f59860403afb
[ "Unlicense" ]
null
null
null
setup.py
cartertemm/tformat
5a81361ab18d9badf24eb3d15c60f59860403afb
[ "Unlicense" ]
1
2021-09-30T02:43:48.000Z
2021-09-30T02:43:48.000Z
setup.py
cartertemm/tformat
5a81361ab18d9badf24eb3d15c60f59860403afb
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages setup( name="tformat", version="0.1", packages=find_packages(), author="Carter Temm", author_email="cartertemm@gmail.com", description="Efficient conversion of timestamps to human-readable equivalents", long_description=open("readme.md", "r").read(), long_descriptio...
29.363636
80
0.718266
77358464023fa39c4718524899032725a224e66c
1,647
py
Python
var/spack/repos/builtin/packages/vpfft/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/vpfft/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/vpfft/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 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.package import * class Vpfft(MakefilePackage): """Proxy Application. VPFFT is an implementation of a meso...
32.94
73
0.629022
0c8a421a5d4da9c5fa3336e502a6be5f1c99d8e0
1,549
py
Python
bio_embeddings/extract/bindEmbed21DL/binding_residues_cnn.py
kvetab/bio_embeddings
97309f73c964861f6e4e3d4510f4b5711d3b6b32
[ "MIT" ]
219
2020-01-19T16:39:09.000Z
2022-03-21T16:02:04.000Z
bio_embeddings/extract/bindEmbed21DL/binding_residues_cnn.py
kvetab/bio_embeddings
97309f73c964861f6e4e3d4510f4b5711d3b6b32
[ "MIT" ]
175
2019-12-05T13:27:14.000Z
2022-03-30T16:58:32.000Z
bio_embeddings/extract/bindEmbed21DL/binding_residues_cnn.py
kvetab/bio_embeddings
97309f73c964861f6e4e3d4510f4b5711d3b6b32
[ "MIT" ]
33
2019-12-16T09:59:44.000Z
2022-03-05T06:35:16.000Z
import torch.nn as nn class BindingResiduesCNN(nn.Module): """Convolutional neural network for prediction of 3 different types of binding residues (metal, nucleic acids, small molecules. Final output is determined by taking the average output probability from 5 different models from 5 cross-validation run...
29.788462
117
0.518399
d0e1499f3b70ff5a1a25a0ecf2cf91502cc87b18
714
py
Python
quantifiedcode/backend/test/api/helpers.py
marcinguy/quantifiedcode
cafc8b99d56a5e51820421af5d77be8b736ab03d
[ "BSD-3-Clause" ]
138
2022-02-02T15:38:29.000Z
2022-03-30T21:23:33.000Z
quantifiedcode/backend/test/api/helpers.py
bbbfkl/scanmycode-ce
786ae9a83a0839b70ac773a673a3ac69a0484ee4
[ "BSD-3-Clause" ]
14
2016-12-21T11:26:48.000Z
2022-03-02T10:32:24.000Z
quantifiedcode/backend/test/api/helpers.py
bbbfkl/scanmycode-ce
786ae9a83a0839b70ac773a673a3ac69a0484ee4
[ "BSD-3-Clause" ]
26
2017-08-01T10:00:16.000Z
2022-02-06T15:31:55.000Z
from quantifiedcode.backend.app import get_app from quantifiedcode.test.helpers import ApplicationTest class ApiTest(ApplicationTest): """ An API test setups up the database (using the DatabaseTest) and launches a process that provides a fully functional API server on the local host. This process ...
25.5
86
0.705882
0701eaed68bf3bf3f79624d5431d5897a67fc67c
4,404
py
Python
Remoter.py
DeemOnSecurity/RePy
b2ceefd7ea5f7cf84dbfb373e62ab180da2b4220
[ "MIT" ]
null
null
null
Remoter.py
DeemOnSecurity/RePy
b2ceefd7ea5f7cf84dbfb373e62ab180da2b4220
[ "MIT" ]
null
null
null
Remoter.py
DeemOnSecurity/RePy
b2ceefd7ea5f7cf84dbfb373e62ab180da2b4220
[ "MIT" ]
null
null
null
from getpass import getpass from typing import List from paramiko import SSHClient, AutoAddPolicy from paramiko.hostkeys import HostKeys class _RePyError(Exception): pass class _RePyClient(object): def __init__(self, user, host, pswd, port, sudo, sudopass): self.user: str = user self.host: ...
40.036364
143
0.600136
f2aedd1905d4edddb8ef6c0c7afa325268e0752b
9,983
py
Python
tests/python/relay/test_pass_partial_eval.py
gyshi/tvm
264660471193cf7b062dbf945678e0bbd06a5144
[ "Apache-2.0" ]
null
null
null
tests/python/relay/test_pass_partial_eval.py
gyshi/tvm
264660471193cf7b062dbf945678e0bbd06a5144
[ "Apache-2.0" ]
null
null
null
tests/python/relay/test_pass_partial_eval.py
gyshi/tvm
264660471193cf7b062dbf945678e0bbd06a5144
[ "Apache-2.0" ]
null
null
null
# 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...
31.393082
100
0.619253
808bca6a856e3c12ecfc92e85128141783fed5c7
1,005
py
Python
django_jwt/server/admin.py
Casassarnau/django-jwt-oidc
0c047c060ff08736b56f408432fbff9ad5799ad3
[ "MIT" ]
5
2022-02-21T10:19:19.000Z
2022-03-29T19:05:44.000Z
django_jwt/server/admin.py
Casassarnau/django-jwt-oidc
0c047c060ff08736b56f408432fbff9ad5799ad3
[ "MIT" ]
null
null
null
django_jwt/server/admin.py
Casassarnau/django-jwt-oidc
0c047c060ff08736b56f408432fbff9ad5799ad3
[ "MIT" ]
1
2022-03-27T08:39:47.000Z
2022-03-27T08:39:47.000Z
from django.contrib import admin from django_jwt.server.forms import IdTokenExtraClaimAdminForm, RestrictUsersAdminForm, WebPageAdminForm from django_jwt.server.models import WebPage, AttributeWebPage class WebPagesAttributesAdmin(admin.StackedInline): verbose_name = 'ID Token extra claim' model = AttributeW...
30.454545
104
0.768159
d81d49b0144a138b86fbd8f1e8f9db75b2584d59
3,292
py
Python
.history/profiles_project/settings_20191230001517.py
chanakanissanka/Python-REST-API
78a6b25ed9403c8ac075f4b8df35f5ff7159b0df
[ "MIT" ]
null
null
null
.history/profiles_project/settings_20191230001517.py
chanakanissanka/Python-REST-API
78a6b25ed9403c8ac075f4b8df35f5ff7159b0df
[ "MIT" ]
12
2020-02-12T03:17:15.000Z
2022-02-10T12:49:58.000Z
.history/profiles_project/settings_20191230001517.py
chanakanissanka/Python-REST-API
78a6b25ed9403c8ac075f4b8df35f5ff7159b0df
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.92126
91
0.699878
9dc919889973acb4ff49d43f99e4f6e3222eb127
2,331
py
Python
inclearn/lib/callbacks.py
Zotkin/incremental_learning.pytorch
6a0d7385d209abcd40a402dcad42293dd4e8b362
[ "MIT" ]
277
2019-04-19T08:19:57.000Z
2022-03-28T12:44:54.000Z
inclearn/lib/callbacks.py
Zotkin/incremental_learning.pytorch
6a0d7385d209abcd40a402dcad42293dd4e8b362
[ "MIT" ]
55
2019-05-07T08:38:30.000Z
2022-03-28T06:35:53.000Z
inclearn/lib/callbacks.py
Zotkin/incremental_learning.pytorch
6a0d7385d209abcd40a402dcad42293dd4e8b362
[ "MIT" ]
48
2019-05-10T06:35:38.000Z
2022-03-24T13:39:55.000Z
import copy import torch class Callback: def __init__(self): self._iteration = 0 self._in_training = True @property def in_training(self): return self._in_training def on_epoch_begin(self): pass def on_epoch_end(self, metric=None): self._iteration += 1 ...
26.488636
86
0.604033
2c0c77dfc4e3b96576d4d6cd84809c3939e14079
4,486
py
Python
purity_fb/purity_fb_1dot5/models/hardware_response.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot5/models/hardware_response.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot5/models/hardware_response.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.5 Python SDK Pure Storage FlashBlade REST 1.5 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.5 Contact: i...
29.708609
204
0.596745
5ea5299ab73a1f206a3a340eedb6d53105efa470
2,135
py
Python
views/view_calender.py
hanzala123/Flask_calendar
c6c32a22fa1b11bedd7780bb951769671c0e7451
[ "MIT" ]
1
2021-10-31T14:09:15.000Z
2021-10-31T14:09:15.000Z
views/view_calender.py
hanzala123/Flask_calendar
c6c32a22fa1b11bedd7780bb951769671c0e7451
[ "MIT" ]
null
null
null
views/view_calender.py
hanzala123/Flask_calendar
c6c32a22fa1b11bedd7780bb951769671c0e7451
[ "MIT" ]
null
null
null
from core.security import session_required from flask import ( Blueprint, request, redirect, make_response, render_template, jsonify ) from datetime import datetime from core.redis import rds classes = {'Normal':'event-info','Low': 'event-success','Medium':'event-warning','Important':'event-important', ...
22.712766
139
0.693677
c19ff76f0b999911e5c7761ea04e28f32b2a7ea5
3,014
py
Python
sleepens/io/interfaces/smrMAT.py
paradoxysm/sleepens
9ee4bd8fc8fe2a901e8c16e778daabd31cc5d793
[ "BSD-3-Clause" ]
2
2020-07-24T02:35:43.000Z
2021-09-01T11:27:48.000Z
sleepens/io/interfaces/smrMAT.py
paradoxysm/sleepens
9ee4bd8fc8fe2a901e8c16e778daabd31cc5d793
[ "BSD-3-Clause" ]
null
null
null
sleepens/io/interfaces/smrMAT.py
paradoxysm/sleepens
9ee4bd8fc8fe2a901e8c16e778daabd31cc5d793
[ "BSD-3-Clause" ]
null
null
null
"""smrMAT I/O Interface""" # Authors: Jeffrey Wang # License: BSD 3 clause import numpy as np from scipy.io import loadmat from sleepens.io import DataObject, Dataset name = "smrMAT" standard = ".mat files exported by CED Spike2" filetypes = [("MAT-files", "*.mat")] type = "RAW" tags = {'r'} def read_data(filepath...
24.504065
101
0.687127
a0a4fbac30758d2b498bed687a6351da51d4c02a
15,351
py
Python
tests/scanner/audit/data/test_rules.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
tests/scanner/audit/data/test_rules.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
tests/scanner/audit/data/test_rules.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
31.782609
81
0.419452
d371beeab344ce023faa99c703b58d2b4e18d4b1
4,809
py
Python
tic_tac_toe_tk.py
vinuvirat/tic_tac_toe_tk
8fa2092539c270852c152caee365434cff3b60ae
[ "MIT" ]
null
null
null
tic_tac_toe_tk.py
vinuvirat/tic_tac_toe_tk
8fa2092539c270852c152caee365434cff3b60ae
[ "MIT" ]
null
null
null
tic_tac_toe_tk.py
vinuvirat/tic_tac_toe_tk
8fa2092539c270852c152caee365434cff3b60ae
[ "MIT" ]
null
null
null
from tkinter import * window = Tk() window.geometry("130x150") window.title('Tic Tac Toe') player = 'x' print('x starts the game') def click(num): global player, window if num == 1: print(text_1.get(), not text_1) if text_1.get() == ' ': text_1.set(player) print('here...
30.05625
97
0.49948
82a9d4cbca03e2fcb51af64c6c7c1da4bbd2bc32
1,038
py
Python
test/unit/test_rules.py
ozzyx149/contessa
4dd22b880299d2a2079c752ae4cf02a66e078ac6
[ "MIT" ]
null
null
null
test/unit/test_rules.py
ozzyx149/contessa
4dd22b880299d2a2079c752ae4cf02a66e078ac6
[ "MIT" ]
null
null
null
test/unit/test_rules.py
ozzyx149/contessa
4dd22b880299d2a2079c752ae4cf02a66e078ac6
[ "MIT" ]
null
null
null
from contessa import ContessaRunner from contessa.executor import refresh_executors from contessa.models import Table from test.utils import normalize_str from contessa.rules import SqlRule def test_rule_context_formatted_in_where(): class TestRule(SqlRule): @property def sql(self): re...
32.4375
87
0.697495
8d07e3c8bd23a711ce2911a2030d0f6f6378f5a8
18,265
py
Python
python/dev/logic.py
Shail-Shouryya/yt-videos-list
d8b85552804ef2e7bcc828bca15632eeeb46aaa2
[ "Apache-2.0" ]
26
2021-01-31T11:52:10.000Z
2021-08-01T17:24:55.000Z
python/dev/logic.py
Shail-Shouryya/yt_videos_list
d8b85552804ef2e7bcc828bca15632eeeb46aaa2
[ "Apache-2.0" ]
7
2020-06-01T13:14:15.000Z
2021-01-09T20:58:17.000Z
python/dev/logic.py
Shail-Shouryya/yt-videos-list
d8b85552804ef2e7bcc828bca15632eeeb46aaa2
[ "Apache-2.0" ]
6
2021-03-18T05:46:51.000Z
2021-07-19T07:40:37.000Z
import sys import time import traceback import contextlib import selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from . import program from .download.selenium_webdriver_dependencies import download_all from .downloa...
60.480132
577
0.644073
2726de33b6f452ef9c7d71b9b6b70e9c351d8a76
51,542
py
Python
tests/unit/client_tests.py
app63/python-cloudant
cbc6cfb554aa88660c9c80f3bb4d1df170fc8131
[ "Apache-2.0" ]
null
null
null
tests/unit/client_tests.py
app63/python-cloudant
cbc6cfb554aa88660c9c80f3bb4d1df170fc8131
[ "Apache-2.0" ]
null
null
null
tests/unit/client_tests.py
app63/python-cloudant
cbc6cfb554aa88660c9c80f3bb4d1df170fc8131
[ "Apache-2.0" ]
1
2021-09-19T23:52:53.000Z
2021-09-19T23:52:53.000Z
#!/usr/bin/env python # Copyright (C) 2015, 2020 IBM Corp. 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 r...
36.399718
118
0.584145
64572ed78858acb0028ff40cf8d8cfe382de1adc
7,173
py
Python
tensorflow/contrib/distributions/python/ops/categorical.py
returncode13/tensorflow
c5f94b10bbb30e525fa3ca313e7ccb173040c90a
[ "Apache-2.0" ]
1
2016-11-23T17:44:04.000Z
2016-11-23T17:44:04.000Z
tensorflow/contrib/distributions/python/ops/categorical.py
returncode13/tensorflow
c5f94b10bbb30e525fa3ca313e7ccb173040c90a
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/categorical.py
returncode13/tensorflow
c5f94b10bbb30e525fa3ca313e7ccb173040c90a
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.320574
80
0.678238
4d5432e63152da12602ee6bd309046657c0548bb
15,617
py
Python
tests/examples/image/classification/test_pokemon_classification_data_processor.py
kostaleonard/mlops
236d3499535d6294768c15336180217829fb2ee3
[ "MIT" ]
1
2021-11-26T21:41:00.000Z
2021-11-26T21:41:00.000Z
tests/examples/image/classification/test_pokemon_classification_data_processor.py
kostaleonard/mlops
236d3499535d6294768c15336180217829fb2ee3
[ "MIT" ]
39
2021-11-18T20:01:34.000Z
2022-03-26T17:59:07.000Z
tests/examples/image/classification/test_pokemon_classification_data_processor.py
kostaleonard/mlops
236d3499535d6294768c15336180217829fb2ee3
[ "MIT" ]
null
null
null
"""Tests pokemon_classification_data_processor.py.""" import pytest import numpy as np from mlops.examples.image.classification.pokemon_classification_data_processor import ( PokemonClassificationDataProcessor, DEFAULT_DATASET_TRAINVALTEST_PATH, DEFAULT_DATASET_PRED_PATH, HEIGHT, WIDTH, CHANNEL...
38.751861
87
0.711788
0ca38f0191b2ea6d19bfd3a4a5266188f0fb0264
6,057
py
Python
guillotina/api/search.py
vinissimus/guillotina
4240adfa5607c022ff6dc5f7335e2c59c1f2217d
[ "BSD-2-Clause" ]
null
null
null
guillotina/api/search.py
vinissimus/guillotina
4240adfa5607c022ff6dc5f7335e2c59c1f2217d
[ "BSD-2-Clause" ]
null
null
null
guillotina/api/search.py
vinissimus/guillotina
4240adfa5607c022ff6dc5f7335e2c59c1f2217d
[ "BSD-2-Clause" ]
null
null
null
from guillotina import configure from guillotina.api.service import Service from guillotina.catalog.utils import reindex_in_future from guillotina.component import query_utility from guillotina.interfaces import ICatalogUtility from guillotina.interfaces import IResource from guillotina.response import HTTPServiceUnava...
30.746193
94
0.608882
214ab4d32ac798dd5c1b7b3d29dd41816de8a826
2,179
py
Python
extensions/on_start_screen.py
Lucestra-Studios/DiscordChannelSpammer
ee104b4fb0b820bf3b991153d0bb8c28404dcb14
[ "MIT" ]
2
2021-08-13T20:36:57.000Z
2021-08-14T17:46:36.000Z
extensions/on_start_screen.py
lucaso60/DiscordChannelSpammer
98e50a50cbc877a09e5fbe72cdf4ad8ccdde10f0
[ "MIT" ]
1
2021-09-14T15:25:38.000Z
2021-09-14T15:26:37.000Z
extensions/on_start_screen.py
Lucestra-Studios/DiscordChannelSpammer
ee104b4fb0b820bf3b991153d0bb8c28404dcb14
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 lucaso60 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
45.395833
78
0.525011
e28b779dcc50cf0e44cf7eac42348d0171a1cacc
109
py
Python
src/domain/errors/invalid_image_path_failure.py
OzielFilho/ProjetoFinalPdi
c9e6fe415f1a985d6eeac204580d3ab623026665
[ "MIT" ]
null
null
null
src/domain/errors/invalid_image_path_failure.py
OzielFilho/ProjetoFinalPdi
c9e6fe415f1a985d6eeac204580d3ab623026665
[ "MIT" ]
null
null
null
src/domain/errors/invalid_image_path_failure.py
OzielFilho/ProjetoFinalPdi
c9e6fe415f1a985d6eeac204580d3ab623026665
[ "MIT" ]
null
null
null
from domain.errors.image_failure import ImageFailure class InvalidImagePathFailure(ImageFailure): pass
18.166667
52
0.834862
7eea2a6a55cbfbff67c5dd6dbf2c16764339357c
5,297
py
Python
google/devtools/clouddebugger/v2/devtools-clouddebugger-v2-py/google/cloud/debugger_v2/types/controller.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/devtools/clouddebugger/v2/devtools-clouddebugger-v2-py/google/cloud/debugger_v2/types/controller.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/devtools/clouddebugger/v2/devtools-clouddebugger-v2-py/google/cloud/debugger_v2/types/controller.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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...
30.618497
74
0.639985
7dd9997f333285847f1148a66a4952b9e990c521
5,396
py
Python
sugaroid/brain/dis.py
vardaan-raj/sugaroid
d0476fb9c44a73fee2e0de45162f2b1ac86452aa
[ "MIT" ]
4
2020-09-28T13:52:40.000Z
2020-10-30T15:24:50.000Z
sugaroid/brain/dis.py
sreyasaju/sugaroid
d58e06fb664daa16fda1bf23cc73068efcd5634c
[ "MIT" ]
null
null
null
sugaroid/brain/dis.py
sreyasaju/sugaroid
d58e06fb664daa16fda1bf23cc73068efcd5634c
[ "MIT" ]
null
null
null
""" MIT License Sugaroid Artificial Intelligence Chatbot Core Copyright (c) 2020-2021 Srevin Saju Copyright (c) 2021 The Sugaroid Project 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 r...
35.973333
91
0.596553
04e7a3a10c3263f30a19de49a902356501a65648
5,838
py
Python
tests/test_remote.py
LianaGrieken/cblaster
a05923976e86a3edc08cece675d34cf8fdafd11e
[ "MIT" ]
null
null
null
tests/test_remote.py
LianaGrieken/cblaster
a05923976e86a3edc08cece675d34cf8fdafd11e
[ "MIT" ]
null
null
null
tests/test_remote.py
LianaGrieken/cblaster
a05923976e86a3edc08cece675d34cf8fdafd11e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Test suite for remote module """ import pytest import requests_mock from pathlib import Path from cblaster import remote, helpers TEST_DIR = Path(__file__).resolve().parent def test_start_no_input(): with pytest.raises(ValueError): # No query_file/ids remote.start...
28.067308
89
0.624872
a05dee4d5e0ece98724b932c60c23471f3ebfbe7
16,152
py
Python
scripts/train_vq_code_predictor.py
tomhosking/torchseq
1b08c16822a553ecb77b96289fb21eb0a13d9c6b
[ "Apache-2.0" ]
17
2021-02-25T14:24:06.000Z
2021-12-12T07:12:26.000Z
scripts/train_vq_code_predictor.py
tomhosking/torchseq
1b08c16822a553ecb77b96289fb21eb0a13d9c6b
[ "Apache-2.0" ]
null
null
null
scripts/train_vq_code_predictor.py
tomhosking/torchseq
1b08c16822a553ecb77b96289fb21eb0a13d9c6b
[ "Apache-2.0" ]
null
null
null
# MLP code prediction import argparse, json, os parser = argparse.ArgumentParser( description="MLP code prediction trainer", ) parser.add_argument( "--data_dir", type=str, default='./data/', help="Path to data folder" ) parser.add_argument( "--model_path", type=str, default='./runs/sep_ae/20201230_132811_vae_...
33.234568
225
0.614289
ec05ec150f19b102d715046d734476e3b288e407
387
py
Python
bmark/asgi.py
gravedigger0/LinearDoc
7e35f86091a64829faaff644cd5e8de28e869dfa
[ "MIT" ]
1
2021-10-20T10:18:01.000Z
2021-10-20T10:18:01.000Z
bmark/asgi.py
gravedigger0/LinearDoc
7e35f86091a64829faaff644cd5e8de28e869dfa
[ "MIT" ]
null
null
null
bmark/asgi.py
gravedigger0/LinearDoc
7e35f86091a64829faaff644cd5e8de28e869dfa
[ "MIT" ]
null
null
null
""" ASGI config for bmark 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.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
acf5e33b0f7cf419bcb9d2d8fa7d26e002937a8b
3,803
py
Python
event/event/settings.py
JuroOravec/knwldg
33235f78ae1ea6409883f312adcf8679c5bf2401
[ "MIT" ]
null
null
null
event/event/settings.py
JuroOravec/knwldg
33235f78ae1ea6409883f312adcf8679c5bf2401
[ "MIT" ]
null
null
null
event/event/settings.py
JuroOravec/knwldg
33235f78ae1ea6409883f312adcf8679c5bf2401
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for event project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topic...
35.542056
103
0.747568
d5f0a74f5bc08813af2989b4b6a8d35c926a175c
245
py
Python
hood_app/admin.py
Tajeu2001/hood
727e6709f5619e2421fb02ce487235e75af1b2b0
[ "MIT" ]
1
2022-01-09T05:10:51.000Z
2022-01-09T05:10:51.000Z
neighbor/admin.py
mwendaB/neighboorhood
d7607e816890369a486e7e7971ce78c2354cbd1b
[ "MIT" ]
null
null
null
neighbor/admin.py
mwendaB/neighboorhood
d7607e816890369a486e7e7971ce78c2354cbd1b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Neighbourhood, Profile, Business, Post # Register your models here. admin.site.register(Profile) admin.site.register(Neighbourhood) admin.site.register(Post) admin.site.register(Business)
30.625
58
0.808163
24e48fdb0b4a27132959ca18d7ee5471703f70f8
10,404
py
Python
lpbm/module_loader.py
fmichea/lpbm
172772d562e2f1aa4aba72599150f95f89bdf6ce
[ "BSD-3-Clause" ]
1
2015-11-09T11:30:41.000Z
2015-11-09T11:30:41.000Z
lpbm/module_loader.py
fmichea/lpbm
172772d562e2f1aa4aba72599150f95f89bdf6ce
[ "BSD-3-Clause" ]
1
2015-04-28T07:02:21.000Z
2016-01-23T19:12:11.000Z
lpbm/module_loader.py
fmichea/lpbm
172772d562e2f1aa4aba72599150f95f89bdf6ce
[ "BSD-3-Clause" ]
2
2016-01-11T17:55:42.000Z
2018-03-19T19:03:15.000Z
# module_loader.py - Loads every module in tools directory. # Author: Franck Michea < franck.michea@gmail.com > # License: New BSD License (See LICENSE) ''' This module dynamically loads all the command line modules in `modules` directory. ''' import abc import imp import inspect import os import sys import lpbm.log...
35.630137
90
0.589581
59fb080d5d358a57df5fe5d8a611d394e63ed66e
743
py
Python
netdevice/migrations/0003_create_network_os.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
5
2016-10-31T17:46:17.000Z
2022-02-02T00:40:49.000Z
netdevice/migrations/0003_create_network_os.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
33
2018-05-09T06:07:50.000Z
2021-09-22T17:39:56.000Z
netdevice/migrations/0003_create_network_os.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
1
2020-05-14T21:44:25.000Z
2020-05-14T21:44:25.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-14 14:10 from __future__ import unicode_literals from django.db import migrations def create_network_os(apps, schema_editor): db_alias = schema_editor.connection.alias network_os = apps.get_model('netdevice', 'network_os') network_os.objects...
29.72
58
0.726783