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
57c55b3ccdc500623a508207c07880063721a0b5
766
py
Python
nngeometry/utils.py
OtUmm7ojOrv/nngeometry
ce184345258a7eb79ce78c14becce047a1785a48
[ "MIT" ]
7
2020-10-04T22:04:10.000Z
2022-03-05T14:20:18.000Z
nngeometry/utils.py
OtUmm7ojOrv/nngeometry
ce184345258a7eb79ce78c14becce047a1785a48
[ "MIT" ]
null
null
null
nngeometry/utils.py
OtUmm7ojOrv/nngeometry
ce184345258a7eb79ce78c14becce047a1785a48
[ "MIT" ]
3
2020-10-04T22:04:17.000Z
2022-03-05T14:19:48.000Z
import torch import torch.nn.functional as F def get_n_parameters(model): return sum([p.numel() for p in model.parameters()]) def per_example_grad_conv(mod, x, gy): ks = (mod.weight.size(2), mod.weight.size(3)) gy_s = gy.size() bs = gy_s[0] x_unfold = F.unfold(x, kernel_size=ks, stride=mod.strid...
28.37037
75
0.613577
b15d7afc5191535668d5a0a98668cc8b41fdaa5f
1,030
py
Python
system/imports/bd_SQlite3/main.py
ryanprogrammer/Sistema-de-cadastro
de1f1e2332650e7ba1dc43eb7daeafe2e5753b75
[ "MIT" ]
4
2021-12-23T22:56:42.000Z
2022-01-01T06:00:38.000Z
system/imports/bd_SQlite3/main.py
ryanprogrammer/registration-system
de1f1e2332650e7ba1dc43eb7daeafe2e5753b75
[ "MIT" ]
null
null
null
system/imports/bd_SQlite3/main.py
ryanprogrammer/registration-system
de1f1e2332650e7ba1dc43eb7daeafe2e5753b75
[ "MIT" ]
null
null
null
import sqlite3 class BancoDeDados(): def __init__(self, conexao): self._conexao = conexao self._cursor = self._conexao.cursor() def inserir_cadastro(self, nome, email, senha): consulta = 'INSERT INTO clientes (nome, email, senha) VALUES(?,?,?)' self._cursor.execute(consulta, (n...
29.428571
76
0.601942
04a1a24460bbf8ce064e279e392c108bef117796
218
py
Python
nodes/output_node.py
PhillsProgrammingExperiments/flowbasedpython
1e1f1cb3eed0ab1241cc1e2dba5ff4e9151b696e
[ "BSD-3-Clause" ]
1
2021-05-29T07:01:32.000Z
2021-05-29T07:01:32.000Z
nodes/output_node.py
PhillsProgrammingExperiments/flowbasedpython
1e1f1cb3eed0ab1241cc1e2dba5ff4e9151b696e
[ "BSD-3-Clause" ]
null
null
null
nodes/output_node.py
PhillsProgrammingExperiments/flowbasedpython
1e1f1cb3eed0ab1241cc1e2dba5ff4e9151b696e
[ "BSD-3-Clause" ]
null
null
null
from fbpy.node_interface import Node class OutputNode(Node): def pull(self): self.data = self.input[0].get() def body(self): pass def push(self): print("I got number", self.data)
18.166667
40
0.605505
36f6f54d9e4a08d716211c5ad5818162267d470c
974
py
Python
test/test_destination_end_point_destination_list.py
vtpl1/vtpl_api
d289c92254deb040de925205c583de69802a1c6b
[ "MIT" ]
null
null
null
test/test_destination_end_point_destination_list.py
vtpl1/vtpl_api
d289c92254deb040de925205c583de69802a1c6b
[ "MIT" ]
null
null
null
test/test_destination_end_point_destination_list.py
vtpl1/vtpl_api
d289c92254deb040de925205c583de69802a1c6b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Engine api Engine APIs # noqa: E501 The version of the OpenAPI document: 1.0.4 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import vtpl_api from vtpl_api.models.destination_end_point_destination_list import Destinatio...
24.35
123
0.743326
131fd3af49876418c4bbf15a7f329d3f898cc2c0
762
py
Python
morpfw/authn/pas/user/path.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
8
2018-12-08T01:41:58.000Z
2020-12-21T15:30:12.000Z
morpfw/authn/pas/user/path.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
17
2019-02-05T15:01:32.000Z
2020-04-28T16:17:42.000Z
morpfw/authn/pas/user/path.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
2
2018-12-08T05:03:37.000Z
2019-03-20T07:15:21.000Z
import morepath from ..app import App from .model import CurrentUserModel, UserCollection, UserModel, UserSchema def get_user(request: morepath.Request, identifier) -> UserModel: collection = get_user_collection(request) return collection.get(identifier) def get_user_collection(request: morepath.Request) -...
30.48
87
0.788714
537330fd2e9e07d92f06ef636ba55fa6cdd39d72
3,273
py
Python
Final_project/PostBoard/Board/views.py
GregTMJ/django-files
dfd2c8da596522b77fb3dfc8089f0d287a94d53b
[ "MIT" ]
1
2021-05-29T21:17:56.000Z
2021-05-29T21:17:56.000Z
Final_project/PostBoard/Board/views.py
GregTMJ/django-files
dfd2c8da596522b77fb3dfc8089f0d287a94d53b
[ "MIT" ]
null
null
null
Final_project/PostBoard/Board/views.py
GregTMJ/django-files
dfd2c8da596522b77fb3dfc8089f0d287a94d53b
[ "MIT" ]
1
2021-06-30T12:43:39.000Z
2021-06-30T12:43:39.000Z
from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.urls import reverse from .models import Post, Author, Category, Comments, User from django.views.generic import ListView, CreateView, UpdateView, Del...
30.877358
89
0.711885
2a3c1bd67189d73924d6d85bdd1ffda9b7793fd6
3,229
py
Python
data_sources/semantic_scholar/main.py
JDRanpariya/ReScholar
692fb9ee3c82b5abe95a953beaafd1e1b8e19652
[ "BSD-3-Clause" ]
1
2021-03-14T20:55:40.000Z
2021-03-14T20:55:40.000Z
data_sources/semantic_scholar/main.py
pranavAbe/ReScholar
692fb9ee3c82b5abe95a953beaafd1e1b8e19652
[ "BSD-3-Clause" ]
8
2021-03-14T16:54:54.000Z
2021-04-23T03:35:57.000Z
data_sources/semantic_scholar/main.py
pranavAbe/ReScholar
692fb9ee3c82b5abe95a953beaafd1e1b8e19652
[ "BSD-3-Clause" ]
null
null
null
from scrapy import Spider import scrapy from urllib.parse import urlencode from urllib.parse import urlparse from selenium import webdriver from scrapy.contracts import Contract from scrapy_selenium import SeleniumRequest base_uri = "https://www.semanticscholar.org" # class WithSelenium(Contract): # """ Contra...
46.797101
193
0.550635
c84b0c0137cf8c4a971d3cea9572c78989f3519d
1,441
py
Python
algorithms/tree/bst/height.py
zhengli0817/algorithms
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
[ "MIT" ]
22,426
2017-01-17T04:01:44.000Z
2022-03-31T12:06:16.000Z
algorithms/tree/bst/height.py
zhengli0817/algorithms
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
[ "MIT" ]
523
2017-04-18T12:05:11.000Z
2022-03-20T11:10:41.000Z
algorithms/tree/bst/height.py
zhengli0817/algorithms
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
[ "MIT" ]
4,900
2017-01-19T23:47:05.000Z
2022-03-31T10:00:47.000Z
""" Write a function height returns the height of a tree. The height is defined to be the number of levels. The empty tree has height 0, a tree of one node has height 1, a root node with one or two leaves as children has height 2, and so on For example: height of tree is 4 9 / ...
23.622951
80
0.470507
186bb579f96eb1534adcfeb9c2bb02a4030279f2
5,361
py
Python
analyses/seasonality_paper_st/lagged_fapar_only/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/lagged_fapar_only/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/lagged_fapar_only/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import warnings from pathlib import Path PROJECT_DIR = Path(__file__).resolve().parent if str(PROJECT_DIR.parent) not in sys.path: sys.path.insert(0, str(PROJECT_DIR.parent)) warnings.filterwarnings( "ignore", category=FutureWarning, module="sklearn.utils.deprecation" ) from...
29.618785
88
0.697631
731cdb347795195945eaddedf9b9a89fa0ffbd9b
8,675
py
Python
modular.py
yotamitai/AuToPN
e1f8563c2a9ff7abb9079193c6994452a3d57309
[ "MIT" ]
null
null
null
modular.py
yotamitai/AuToPN
e1f8563c2a9ff7abb9079193c6994452a3d57309
[ "MIT" ]
null
null
null
modular.py
yotamitai/AuToPN
e1f8563c2a9ff7abb9079193c6994452a3d57309
[ "MIT" ]
null
null
null
from get_plans import * from pythonpddl.pythonpddl import pddl from facts_actions import * from divesrity_score import * from swappable import * from create_plans import * def parsing(domain_path, problem_path): """Parsing original domain and problem""" parsed = pddl.parseDomainAndProblem(domain_path, problem...
38.727679
130
0.663055
a1d2f404d015d51a33083eb4d41890bd5efa4b3b
335
py
Python
OOP/Exams/Exam_23_august_2021/project/planet/planet.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
2
2022-03-05T13:17:12.000Z
2022-03-05T13:17:16.000Z
OOP/Exams/Exam_23_august_2021/project/planet/planet.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
OOP/Exams/Exam_23_august_2021/project/planet/planet.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
class Planet: def __init__(self,name): self.name = name self.items=[] @property def name(self): return self.__name @name.setter def name(self, value): if value.strip()=="": raise ValueError("Planet name cannot be empty string or whitespace!") sel...
22.333333
81
0.58209
42b6c9927fbdb38d66151159123b6bfe5219abff
7,392
py
Python
nova/tests/virt/test_virt_disk_vfs_guestfs.py
bopopescu/nova-34
b037993984229bb698050f20e8719b8c06ff2be3
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/test_virt_disk_vfs_guestfs.py
bopopescu/nova-34
b037993984229bb698050f20e8719b8c06ff2be3
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/test_virt_disk_vfs_guestfs.py
bopopescu/nova-34
b037993984229bb698050f20e8719b8c06ff2be3
[ "Apache-2.0" ]
1
2020-07-24T08:52:14.000Z
2020-07-24T08:52:14.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2012 Red Hat, 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...
35.710145
78
0.60809
fe56f669ed8e51b8d4946dc85fde58a05828f7b1
7,719
py
Python
tests/test_environment.py
dulacp/pytest-django
b3d7fd66416250f1c333dce49685e96bb89eabc4
[ "BSD-3-Clause" ]
null
null
null
tests/test_environment.py
dulacp/pytest-django
b3d7fd66416250f1c333dce49685e96bb89eabc4
[ "BSD-3-Clause" ]
null
null
null
tests/test_environment.py
dulacp/pytest-django
b3d7fd66416250f1c333dce49685e96bb89eabc4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement import os import pytest from django.contrib.sites.models import Site from django.contrib.sites import models as site_models from django.core import mail from django.db import connection from django.test import TestCase from pytest_django.lazy_django import get_django_version fro...
32.1625
84
0.652805
288a419f92d6a1c6a242bd98badcb6f54f3e4841
325
py
Python
locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-active_normals-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/_autosummary/pyvista-UnstructuredGrid-active_normals-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/_autosummary/pyvista-StructuredGrid-active_normals-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Compute normals on an example sphere mesh and return the # active normals for the dataset. Show that this is the same size # as the number of points. # import pyvista mesh = pyvista.Sphere() mesh = mesh.compute_normals() normals = mesh.active_normals normals.shape # Expected: ## (842, 3) mesh.n_points # Expected: ##...
21.666667
66
0.744615
47932624e5873eca0420770a789482c8c50612ea
2,856
py
Python
tests/test_falconx_sandbox.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
tests/test_falconx_sandbox.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
10
2021-05-31T06:39:18.000Z
2022-03-21T23:04:29.000Z
tests/test_falconx_sandbox.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
# test_falconx_sandbox.py # This class tests the falconx_sandbox service class import os import sys import pytest # Authentication via the test_authorization.py from tests import test_authorization as Authorization # Import our sibling src folder into the path sys.path.append(os.path.abspath('src')) # Classes to test...
34.409639
124
0.627451
91192ead973df835eb449110c41813b4200ca221
2,482
py
Python
esque/validation/yamale_validators.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
29
2019-05-10T21:12:38.000Z
2021-08-24T08:09:49.000Z
esque/validation/yamale_validators.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
103
2019-05-17T07:21:41.000Z
2021-12-02T08:29:00.000Z
esque/validation/yamale_validators.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
2
2019-05-28T06:45:14.000Z
2019-11-21T00:33:15.000Z
import re from functools import wraps from yamale.util import isstr from yamale.validators import Boolean, DefaultValidators, Enum, Integer, Number, Validator def all_validators() -> dict: validators = DefaultValidators.copy() validators[StringBool.tag] = StringBool validators[StringInt.tag] = StringInt ...
26.404255
97
0.63054
f45b8f90b20ad0872d57b676942ed1ba28e73e0b
1,074
py
Python
distribution.py
vlasenkoalexey/tensorflow_serving_benchmark
c8b9c26ab6026cb91bf4a5183e0f4bd182b1888f
[ "MIT" ]
null
null
null
distribution.py
vlasenkoalexey/tensorflow_serving_benchmark
c8b9c26ab6026cb91bf4a5183e0f4bd182b1888f
[ "MIT" ]
null
null
null
distribution.py
vlasenkoalexey/tensorflow_serving_benchmark
c8b9c26ab6026cb91bf4a5183e0f4bd182b1888f
[ "MIT" ]
null
null
null
import numpy as np class Distribution(object): @staticmethod def factory(dist, rate): assert dist in Distribution.distributions() return globals()[dist.capitalize()](rate) @staticmethod def distributions(): return [cls.__name__.lower() for cls in Distribution.__subclasses__()] class Uniform(Di...
18.20339
75
0.643389
e4842efcf7e314be204e745ef48923feb79d1a03
9,113
py
Python
update_cpes.py
dabdine-r7/recog
4ec39a98b72170aeb9c2d89ef0b70ff58aadc41d
[ "BSD-2-Clause" ]
1
2021-01-01T21:32:31.000Z
2021-01-01T21:32:31.000Z
update_cpes.py
dabdine-r7/recog
4ec39a98b72170aeb9c2d89ef0b70ff58aadc41d
[ "BSD-2-Clause" ]
null
null
null
update_cpes.py
dabdine-r7/recog
4ec39a98b72170aeb9c2d89ef0b70ff58aadc41d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import json import logging import re import sys from lxml import etree def parse_r7_remapping(file): remap = {} # r7_vendor => { 'cpe_vendor' => <cpe_vendor>, 'products': { r7_product1 => cpe_product1 }} remappings = None with open(file) as remap_file: remappings = json.load...
44.891626
171
0.548667
00015200c571aeb4f8ff46d65b56febeec9c6a4e
4,463
py
Python
session/speaker-overlap/finetune-speakernet.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
null
null
null
session/speaker-overlap/finetune-speakernet.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
null
null
null
session/speaker-overlap/finetune-speakernet.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
1
2021-08-19T02:34:41.000Z
2021-08-19T02:34:41.000Z
import os os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = '../gcs/mesolitica-storage.json' os.environ['CUDA_VISIBLE_DEVICES'] = '3' import malaya_speech import malaya_speech.train as train import malaya_speech.train.model.speakernet as speakernet import tensorflow as tf import malaya_speech.config config = malaya_spe...
27.549383
90
0.643961
47afacfa05e92549da7145d8fb20f7ba68aedca6
695
py
Python
src/stay_classification/bounding_box_classifier/bounding_box_functions.py
m-salewski/stay_classification
e3f9deadf51c97029a0f9a4bb669a5af68abf7c6
[ "MIT" ]
null
null
null
src/stay_classification/bounding_box_classifier/bounding_box_functions.py
m-salewski/stay_classification
e3f9deadf51c97029a0f9a4bb669a5af68abf7c6
[ "MIT" ]
null
null
null
src/stay_classification/bounding_box_classifier/bounding_box_functions.py
m-salewski/stay_classification
e3f9deadf51c97029a0f9a4bb669a5af68abf7c6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def bbox(t_arr, x_arr): return np.array([t_arr.min(), t_arr.max(), x_arr.min(), x_arr.max()]) def plot_box(bbox, ax=None, plot_dict=None): if plot_dict == None: plot_dict = {"linestyle":'--', "dashes":[4,2,], ...
22.419355
73
0.473381
d4643b07613b74b7bcb73638bfaa5ac4a534b911
136
py
Python
Modules/github/__init__.py
TigerGraph-OSS/DashboardPython
a7b9a3ee7c7f968ece8541d473b09a37484cf31c
[ "MIT" ]
null
null
null
Modules/github/__init__.py
TigerGraph-OSS/DashboardPython
a7b9a3ee7c7f968ece8541d473b09a37484cf31c
[ "MIT" ]
null
null
null
Modules/github/__init__.py
TigerGraph-OSS/DashboardPython
a7b9a3ee7c7f968ece8541d473b09a37484cf31c
[ "MIT" ]
null
null
null
def conf(): return { "id":"github", "description":"this is the github c360 component", "enabled":True, }
22.666667
58
0.522059
d1a101051afb4cc91ee9d387673501478066c84a
238
py
Python
powerline-shell.py
ashwinjv/powerline-shell
6222532f61878a5eb76cbdf6e2eb96037650217f
[ "MIT" ]
null
null
null
powerline-shell.py
ashwinjv/powerline-shell
6222532f61878a5eb76cbdf6e2eb96037650217f
[ "MIT" ]
null
null
null
powerline-shell.py
ashwinjv/powerline-shell
6222532f61878a5eb76cbdf6e2eb96037650217f
[ "MIT" ]
null
null
null
#!/usr/local/opt/python@2/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from powerline_shell import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
21.636364
69
0.621849
2c6083df79039d0d2460e942a2f2e1db38574a9c
14,068
py
Python
libqtile/scratchpad.py
kapilpokhrel/qtile
c9eac5aed41c22d87e22e7bc4b7b7fb64e863c47
[ "MIT" ]
null
null
null
libqtile/scratchpad.py
kapilpokhrel/qtile
c9eac5aed41c22d87e22e7bc4b7b7fb64e863c47
[ "MIT" ]
null
null
null
libqtile/scratchpad.py
kapilpokhrel/qtile
c9eac5aed41c22d87e22e7bc4b7b7fb64e863c47
[ "MIT" ]
null
null
null
# Copyright (c) 2017, Dirk Hartmann # # 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...
40.079772
97
0.621268
64472399dbea5c2fc0477b781032e28abf0f3438
778
py
Python
ringcentral_bot_framework/core/user_oauth.py
zxdong262/ringcentral-chatbot-python
4ca6feb4f686705a75501239c13a1869e617d2a3
[ "MIT" ]
4
2018-11-14T08:10:55.000Z
2019-05-15T10:40:00.000Z
ringcentral_bot_framework/core/user_oauth.py
ringcentral/ringcentral-chatbot-python
4ca6feb4f686705a75501239c13a1869e617d2a3
[ "MIT" ]
52
2018-11-14T08:10:37.000Z
2019-04-19T00:43:59.000Z
ringcentral_bot_framework/core/user_oauth.py
zxdong262/ringcentral-chatbot-python
4ca6feb4f686705a75501239c13a1869e617d2a3
[ "MIT" ]
2
2019-02-11T18:10:06.000Z
2019-04-03T15:12:21.000Z
""" user auth """ import time from .common import result, getQueryParam from pydash import get def initUserAuth( conf, Bot, getBot, User, dbAction ): def userAuth(event): user = User() code = getQueryParam(event, 'code') user.auth(code) state = getQueryParam(event, 'state') or ',' arr =...
20.473684
63
0.609254
8c60f9c94573d6e8101ed953f19a0b2e2f69b1d1
689
py
Python
gen/custom.py
acdiaconu/metagol
e2cd4840a9e4c25c4bef349ae12369c71497ab6e
[ "BSD-3-Clause" ]
null
null
null
gen/custom.py
acdiaconu/metagol
e2cd4840a9e4c25c4bef349ae12369c71497ab6e
[ "BSD-3-Clause" ]
null
null
null
gen/custom.py
acdiaconu/metagol
e2cd4840a9e4c25c4bef349ae12369c71497ab6e
[ "BSD-3-Clause" ]
null
null
null
def create_ex(lines): final = "" for line in lines: if line[0] == '%' or line == '\n': final = final + '\n' + line continue ex = 'f([' i = 0 while line[i] != '=': ex += '\'' + line[i] + '\'' + ',' i += 1 ex = ex...
27.56
78
0.359942
99c155575b4da82b23051691a1be020af5c826e3
5,440
py
Python
xlsxwriter/test/worksheet/test_sparkline03.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/worksheet/test_sparkline03.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/worksheet/test_sparkline03.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ..helperfunctions import _xml_to_list from ...worksheet import Worksheet class TestAss...
42.170543
337
0.419853
514b11ab0d87b8aa43d386322a70afff640d749d
1,956
py
Python
trRosetta/coords6d.py
NatureGeorge/trRosetta2
dba6078ebda9f2429264ace3deaffe50d9899def
[ "MIT" ]
73
2021-05-21T07:03:24.000Z
2022-03-31T14:11:28.000Z
trRosetta/coords6d.py
partrita/trRosetta2
7036f81cdcfac6adcfebdc1ee917f46d8345229a
[ "MIT" ]
14
2021-05-20T21:35:30.000Z
2022-02-05T15:38:55.000Z
trRosetta/coords6d.py
partrita/trRosetta2
7036f81cdcfac6adcfebdc1ee917f46d8345229a
[ "MIT" ]
19
2021-05-24T10:26:13.000Z
2022-03-02T14:11:45.000Z
import numpy as np import scipy import scipy.spatial # calculate dihedral angles defined by 4 sets of points def get_dihedrals(a, b, c, d): b0 = -1.0*(b - a) b1 = c - b b2 = d - c b1 /= np.linalg.norm(b1, axis=-1)[:,None] v = b0 - np.sum(b0*b1, axis=-1)[:,None]*b1 w = b2 - np.sum(b2*b1, axis...
25.076923
88
0.593047
9372530efcdcd679c66b49892accc7018da3c507
2,830
py
Python
setup.py
eserie/optax
28f9627092ffa08f0637422b90d62b83239d728e
[ "Apache-2.0" ]
null
null
null
setup.py
eserie/optax
28f9627092ffa08f0637422b90d62b83239d728e
[ "Apache-2.0" ]
null
null
null
setup.py
eserie/optax
28f9627092ffa08f0637422b90d62b83239d728e
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 DeepMind Technologies Limited. 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 # # ...
37.236842
80
0.668905
34a7f9f909437529acb26ffde6a9a00861e82c0b
123
py
Python
bookscrape/exceptions.py
clemfromspace/pybook
ed16c24a3d1caeab07b5111812c8eb07ba598b8a
[ "WTFPL" ]
12
2018-01-20T06:17:46.000Z
2022-02-01T02:04:07.000Z
bookscrape/exceptions.py
clemfromspace/pybook
ed16c24a3d1caeab07b5111812c8eb07ba598b8a
[ "WTFPL" ]
6
2021-03-18T20:40:35.000Z
2022-03-11T23:26:11.000Z
bookscrape/exceptions.py
clemfromspace/pybook
ed16c24a3d1caeab07b5111812c8eb07ba598b8a
[ "WTFPL" ]
1
2020-06-02T18:16:12.000Z
2020-06-02T18:16:12.000Z
"""This module contains the exceptions for the ``bookscrape`` package""" class BookScrapeException(Exception): pass
17.571429
72
0.739837
c662e946519cecc5af94158fec3dd58c64be35c1
454
py
Python
semantic_release/__init__.py
dialoguemd/python-semantic-release
76123f410180599a19e7c48da413880185bbea20
[ "MIT" ]
null
null
null
semantic_release/__init__.py
dialoguemd/python-semantic-release
76123f410180599a19e7c48da413880185bbea20
[ "MIT" ]
null
null
null
semantic_release/__init__.py
dialoguemd/python-semantic-release
76123f410180599a19e7c48da413880185bbea20
[ "MIT" ]
null
null
null
"""Semantic Release """ __version__ = '4.1.1' from .errors import (SemanticReleaseBaseError, ImproperConfigurationError, # noqa UnknownCommitMessageStyleError) # noqa def setup_hook(argv: list): """ A hook to be used in setup.py to enable `python setup.py publish`. :param argv: s...
23.894737
82
0.625551
695ade895283f30163898e5bffcc6749d0184f5c
1,547
py
Python
user/tasks.py
enjoy-binbin/Django-blog
0fcf3709fabeee49874343b3a4ab80582698c466
[ "MIT" ]
111
2019-06-01T06:40:36.000Z
2021-11-14T19:57:22.000Z
user/tasks.py
enjoy-binbin/binblog-Django
0fcf3709fabeee49874343b3a4ab80582698c466
[ "MIT" ]
19
2019-06-11T00:45:54.000Z
2022-03-11T23:47:53.000Z
user/tasks.py
enjoy-binbin/Django-blog
0fcf3709fabeee49874343b3a4ab80582698c466
[ "MIT" ]
24
2019-06-01T06:40:39.000Z
2020-10-11T14:03:08.000Z
import hashlib import time from celery import shared_task from celery.utils.log import get_task_logger from django.conf import settings from django.core.mail import send_mail logger = get_task_logger(__name__) @shared_task def send_email_task(email, code_str, send_type): """ 使用celery异步发送邮件 @email 邮件收件方 ...
32.914894
120
0.597931
8b03b838354c2ff643fd15af5466aece41c2e822
4,165
py
Python
MAG-related/Tara_Ocean_trace_bins_depth_size_fraction.py
carleton-spacehogs/transposase-deep-ocean
cf782acec39f902c563ff83f6e74c2200bf7f743
[ "MIT" ]
null
null
null
MAG-related/Tara_Ocean_trace_bins_depth_size_fraction.py
carleton-spacehogs/transposase-deep-ocean
cf782acec39f902c563ff83f6e74c2200bf7f743
[ "MIT" ]
null
null
null
MAG-related/Tara_Ocean_trace_bins_depth_size_fraction.py
carleton-spacehogs/transposase-deep-ocean
cf782acec39f902c563ff83f6e74c2200bf7f743
[ "MIT" ]
null
null
null
import csv import sys import pandas as pd bin_coverages = list(csv.reader(open('../Figure Generating/data/TOBG-Combined.RPKM.csv', 'r'))) master_bin = list(csv.reader(open('../Figure Generating/data/bin_taxon.csv', 'r')))[1:] bin_of_interested = [row[0] for row in master_bin] # RPKM (reads per kilobase pair MAG per M...
33.58871
113
0.711405
6a10f21b2d10a0623780d5cf71561e62cfad967f
6,009
py
Python
paxes_cinder/db/api.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/db/api.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/db/api.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
# # # ================================================================= # ================================================================= """P Database API Class for providing access to the Cinder Database""" from cinder.openstack.common.db import api as common_db _BACKEND_MAPPING = {'sqlalchemy': 'paxes_cinder.db...
36.865031
78
0.637544
167f113d7ebdc7a3cbb9c7779028aafff7d042a8
1,074
py
Python
crawlers/italy/italy_crawler.py
hasan-haider/conrad
3e040b73a0cbec0ecee36c397c3bdedf9e439b54
[ "Apache-2.0" ]
244
2019-10-27T22:40:17.000Z
2022-01-11T13:04:50.000Z
crawlers/italy/italy_crawler.py
hasan-haider/conrad
3e040b73a0cbec0ecee36c397c3bdedf9e439b54
[ "Apache-2.0" ]
92
2019-10-27T23:01:34.000Z
2021-08-21T15:19:37.000Z
crawlers/italy/italy_crawler.py
hasan-haider/conrad
3e040b73a0cbec0ecee36c397c3bdedf9e439b54
[ "Apache-2.0" ]
71
2019-10-28T03:05:42.000Z
2022-02-02T13:34:32.000Z
# -*- coding: utf-8 -*- import json import requests from ..base import BaseCrawler class ItalyCrawler(BaseCrawler): def get_events(self): response = requests.get( "https://raw.githubusercontent.com/ildoc/awesome-italy-events/master/data/2020.json" ) for event in json.loads(...
29.027027
96
0.477654
c6bffa832b064858f27fcb96d1971c538514d935
2,188
py
Python
tests/all/common/test_button.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
null
null
null
tests/all/common/test_button.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
1
2021-01-26T16:55:48.000Z
2021-09-03T15:29:14.000Z
tests/all/common/test_button.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # visigoth: A lightweight Python3 library for rendering data visualizations in SVG # Copyright (C) 2020 Visigoth Developers # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal...
43.76
98
0.711152
f6138d9e98fcf4e4350a5464f69ce2b729863ac4
567
py
Python
MultiQubit_PulseGenerator/Custom_sequence/sequence_3rd_level_rev.py
ittnas/Drivers_Antti
2a8d7252ae24b6a6440426202f696f78f6da651b
[ "MIT" ]
null
null
null
MultiQubit_PulseGenerator/Custom_sequence/sequence_3rd_level_rev.py
ittnas/Drivers_Antti
2a8d7252ae24b6a6440426202f696f78f6da651b
[ "MIT" ]
null
null
null
MultiQubit_PulseGenerator/Custom_sequence/sequence_3rd_level_rev.py
ittnas/Drivers_Antti
2a8d7252ae24b6a6440426202f696f78f6da651b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import random as rnd import numpy as np import cliffords import copy import gates from sequence import Sequence log = logging.getLogger('LabberDriver') import os path_currentdir = os.path.dirname(os.path.realpath(__file__)) # curret directory class CustomSequence(Sequence): d...
19.551724
81
0.747795
016ce13eea381ba8cd7fea57408fd2a6e7280fa1
2,576
py
Python
number_converter.py
43061b4a/phone_number_to_words
893b33d4f6f791bbd81ec8c1ab27e6c3c22a73dd
[ "MIT" ]
null
null
null
number_converter.py
43061b4a/phone_number_to_words
893b33d4f6f791bbd81ec8c1ab27e6c3c22a73dd
[ "MIT" ]
null
null
null
number_converter.py
43061b4a/phone_number_to_words
893b33d4f6f791bbd81ec8c1ab27e6c3c22a73dd
[ "MIT" ]
null
null
null
import time from functools import lru_cache from trie import PrefixTree class NumberConverter(object): def __init__(self): self.trie = PrefixTree() with open('words_en.txt') as file: lines = [line.rstrip('\n') for line in file] for line in lines: self.trie...
33.454545
83
0.483696
d1269943300420d6e31aa49110a8d30bbb1b2b0c
1,746
py
Python
nba_api/stats/endpoints/draftcombinenonstationaryshooting.py
adureja/nba_api
2e1f8ee55e513689aea410bf663a09a3d7c34283
[ "MIT" ]
1
2019-02-20T19:19:19.000Z
2019-02-20T19:19:19.000Z
nba_api/stats/endpoints/draftcombinenonstationaryshooting.py
adureja/nba_api
2e1f8ee55e513689aea410bf663a09a3d7c34283
[ "MIT" ]
null
null
null
nba_api/stats/endpoints/draftcombinenonstationaryshooting.py
adureja/nba_api
2e1f8ee55e513689aea410bf663a09a3d7c34283
[ "MIT" ]
2
2020-08-09T06:00:19.000Z
2022-03-04T16:39:30.000Z
from nba_api.stats.endpoints._base import Endpoint from nba_api.stats.library.http import NBAStatsHTTP from nba_api.stats.library.parameters import LeagueID, Season class DraftCombineNonStationaryShooting(Endpoint): endpoint = 'draftcombinenonstationaryshooting' expected_data = {'Results': ['TEMP_PLAYER_ID', ...
75.913043
914
0.766896
99f040b5dda17a1e6b2fc251de30b131639ea277
26,260
py
Python
HandyML_Trainer/python/ml_train.py
masiref/HandyML
b86483f46e0d190b18b20ecf01a3868980c85ef2
[ "MIT" ]
3
2019-10-08T13:45:49.000Z
2020-05-18T16:03:47.000Z
HandyML_Trainer/python/ml_train.py
masiref/HandyML
b86483f46e0d190b18b20ecf01a3868980c85ef2
[ "MIT" ]
null
null
null
HandyML_Trainer/python/ml_train.py
masiref/HandyML
b86483f46e0d190b18b20ecf01a3868980c85ef2
[ "MIT" ]
3
2019-07-09T07:57:12.000Z
2019-10-24T17:41:13.000Z
# Data preprocessing # Importing the libraries import pandas as pd import numpy as np import time import json from joblib import dump from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.compose import ColumnTransformer from sklearn.preprocessing import StandardScaler from sklearn.model_select...
41.289308
158
0.62658
4ea04b0b3f0a816d2b3f5d21064a6d7e33f86ce8
1,575
py
Python
Tools/python/lvlMaya/MayaUtil.py
vitei/Usa
c44f893d5b3d8080529ecf0e227f983fddb829d4
[ "MIT" ]
47
2018-04-27T02:16:26.000Z
2022-02-28T05:21:24.000Z
Tools/python/lvlMaya/MayaUtil.py
vitei/Usa
c44f893d5b3d8080529ecf0e227f983fddb829d4
[ "MIT" ]
2
2018-11-13T18:46:41.000Z
2022-03-12T00:04:44.000Z
Tools/python/lvlMaya/MayaUtil.py
vitei/Usa
c44f893d5b3d8080529ecf0e227f983fddb829d4
[ "MIT" ]
6
2019-08-10T21:56:23.000Z
2020-10-21T11:18:29.000Z
import maya.cmds as cmds # # Maya utility functions # def getCurrentSelection(): return cmds.ls(sl=True) def createChildGroup( newChildGroupName, parentGroupName ): cmds.group( empty=True, name=newChildGroupName ) cmds.parent( newChildGroupName, parentGroupName ) cmds.select( newChildGroupName, r=Tru...
31.5
97
0.676825
a0c95587f54fc1a449a85b3e41e7c5cf287e56fb
3,079
py
Python
install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/hierarchical_search_result_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/hierarchical_search_result_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/hierarchical_search_result_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2017 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
35.390805
102
0.635596
98a19f7317f4841544334f85ebf9310213e15fea
5,342
py
Python
egta/script/innerloop.py
cipherboy/quiesce
f1e25eb00f16a4c8c3547d1b8278f7027845fbef
[ "Apache-2.0" ]
4
2019-01-12T09:02:18.000Z
2021-10-30T12:08:27.000Z
egta/script/innerloop.py
cipherboy/quiesce
f1e25eb00f16a4c8c3547d1b8278f7027845fbef
[ "Apache-2.0" ]
1
2020-09-28T01:15:11.000Z
2020-10-07T06:58:47.000Z
egta/script/innerloop.py
cipherboy/quiesce
f1e25eb00f16a4c8c3547d1b8278f7027845fbef
[ "Apache-2.0" ]
7
2019-03-09T11:45:44.000Z
2022-03-25T12:18:43.000Z
"""Script utility for running inner loop""" import asyncio import json import logging from concurrent import futures from gameanalysis import regret from egta import innerloop from egta import schedgame from egta.script import schedspec from egta.script import utils def add_parser(subparsers): """Create innerlo...
34.688312
82
0.6155
94d60a0da1f206107e0314df0189c4cd50c16141
2,097
py
Python
kmod/mnist/util.py
wittawatj/kernel-mod
147a05888855a15d72b28a734752a91d93018604
[ "MIT" ]
20
2018-10-26T16:18:56.000Z
2020-11-10T01:08:56.000Z
kmod/mnist/util.py
wittawatj/kernel-mod
147a05888855a15d72b28a734752a91d93018604
[ "MIT" ]
null
null
null
kmod/mnist/util.py
wittawatj/kernel-mod
147a05888855a15d72b28a734752a91d93018604
[ "MIT" ]
2
2019-12-08T21:08:53.000Z
2020-11-10T01:08:57.000Z
""" Utility functions for Mnist dataset. """ import numpy as np import torch import kmod.log as log import kmod.plot as plot def pt_sample_by_labels(data, label_counts): """ data: a dataset such that data[i][0] is a point, and data[i][1] is an integer label. label_counts: a list of tuples of two...
31.772727
147
0.639008
9ca20b26188520d6a847043fb3bc4506c0554fa4
1,887
py
Python
code/proc_eeg_3_compute_activation_patterns.py
nschawor/eeg-leadfield-mixing
ffc5ef8138f6620944b84feced174ea6880cbcfa
[ "MIT" ]
3
2022-03-14T12:42:25.000Z
2022-03-16T08:36:53.000Z
code/proc_eeg_3_compute_activation_patterns.py
nschawor/eeg-leadfield-mixing
ffc5ef8138f6620944b84feced174ea6880cbcfa
[ "MIT" ]
null
null
null
code/proc_eeg_3_compute_activation_patterns.py
nschawor/eeg-leadfield-mixing
ffc5ef8138f6620944b84feced174ea6880cbcfa
[ "MIT" ]
null
null
null
""" Data: compute weighted activation pattern for each subject. """ import os import pandas as pd import numpy as np import mne import ssd from helper import print_progress, load_ssd from params import EEG_DATA_FOLDER, SSD_BANDWIDTH, SSD_EEG_DIR, \ SPEC_PARAM_CSV_EEG, PATTERN_EEG_DIR # %% specify ...
34.944444
82
0.689984
ab4a7a48a473b5ca3b78e63c912b4da8f6619c99
194
py
Python
goutdotcom/widgets/widgets.py
Spiewart/goutdotcom
0916155732a72fcb8c8a2fb0f4dd81efef618af8
[ "MIT" ]
null
null
null
goutdotcom/widgets/widgets.py
Spiewart/goutdotcom
0916155732a72fcb8c8a2fb0f4dd81efef618af8
[ "MIT" ]
null
null
null
goutdotcom/widgets/widgets.py
Spiewart/goutdotcom
0916155732a72fcb8c8a2fb0f4dd81efef618af8
[ "MIT" ]
null
null
null
from django.forms import RadioSelect class HorizontalRadioSelect(RadioSelect): template_name = "widgets/horizontal_radios.html" option_template_name = "widgets/horizontal_inputs.html"
27.714286
59
0.814433
d786176687c7e31efa96cc728904362445fd68ac
804
py
Python
scipy/spatial/__init__.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
1
2018-10-04T15:34:14.000Z
2018-10-04T15:34:14.000Z
scipy/spatial/__init__.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/spatial/__init__.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
""" ============================================================= Spatial algorithms and data structures (:mod:`scipy.spatial`) ============================================================= Nearest-neighbor queries: .. autosummary:: :toctree: generated/ KDTree -- class for efficient nearest-neighbor queri...
22.333333
77
0.606965
a9002bc9331488f94b79a5d731a8ec031990b5b3
13,172
py
Python
src/ibfanalytics/__init__.py
lgguzman/ibfanalytics
a65efc08bf451e7b8dae34df5e5ce4bf2e1cea71
[ "MIT" ]
null
null
null
src/ibfanalytics/__init__.py
lgguzman/ibfanalytics
a65efc08bf451e7b8dae34df5e5ce4bf2e1cea71
[ "MIT" ]
null
null
null
src/ibfanalytics/__init__.py
lgguzman/ibfanalytics
a65efc08bf451e7b8dae34df5e5ce4bf2e1cea71
[ "MIT" ]
null
null
null
from itertools import combinations from pyspark.ml.fpm import FPGrowth from pyspark.sql.functions import col, size from sbxpy import SbxCore from functools import reduce import asyncio import os from pyspark.sql import SparkSession from pyspark.sql.functions import mean as _mean, stddev as _stddev, col, to_json, from_...
42.766234
129
0.585484
6c48fb5858fed46322f5359955b023639aa574b8
13,679
py
Python
cosine/core/order_worker.py
oladotunr/cosine
25c37f6a31ef014eff6fd0211fa31193b6055515
[ "MIT" ]
3
2018-10-10T16:44:02.000Z
2022-03-28T15:27:08.000Z
cosine/core/order_worker.py
oladotunr/cosine
25c37f6a31ef014eff6fd0211fa31193b6055515
[ "MIT" ]
1
2021-03-25T22:01:01.000Z
2021-03-25T22:01:01.000Z
cosine/core/order_worker.py
oladotunr/cosine
25c37f6a31ef014eff6fd0211fa31193b6055515
[ "MIT" ]
1
2020-06-08T18:49:46.000Z
2020-06-08T18:49:46.000Z
""" # # 15/08/2018 # Oladotun Rominiyi - Copyright © 2018. all rights reserved. """ __author__ = 'dotun rominiyi' # IMPORTS from datetime import datetime, timedelta from enum import Enum from decimal import Decimal from cosine.core.config import FieldSet as Pos from cosine.core.logger import null_logger from cosine.c...
36.97027
122
0.591052
df0ebb7a0cd4cd007b97758a191529528484f184
691
py
Python
app/core/management/commands/wait_for_db.py
abdulsagheer/recipe-api
6c5f8408705c8ebf7fb1f4c916b898f8bab6ff43
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
abdulsagheer/recipe-api
6c5f8408705c8ebf7fb1f4c916b898f8bab6ff43
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
abdulsagheer/recipe-api
6c5f8408705c8ebf7fb1f4c916b898f8bab6ff43
[ "MIT" ]
null
null
null
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """Django command to pause execution until database is availabe""" def handle(self, *args, **options): self.stdout.write('Wai...
27.64
78
0.632417
6ea77f88371225d16eb05ccf7c1dc75f5ba900af
2,372
py
Python
text.py
SimoneIppoliti/Apocapixel
d1ab05b1704258fec714e66ed3ba9b5f4a7c94f8
[ "MIT" ]
null
null
null
text.py
SimoneIppoliti/Apocapixel
d1ab05b1704258fec714e66ed3ba9b5f4a7c94f8
[ "MIT" ]
null
null
null
text.py
SimoneIppoliti/Apocapixel
d1ab05b1704258fec714e66ed3ba9b5f4a7c94f8
[ "MIT" ]
null
null
null
import game from game_objects import * import managers class Text(GameObject): def __init__(self, font, text, position, pivot): self._position = position self.pivot = pivot self.string = text self.font = font self.color = (255, 255, 255) self.text = self.font.render...
27.905882
88
0.600337
81e98f81d6ae8fef88cd1d6774f8bbf73774a152
10,721
py
Python
synapse/rest/admin/__init__.py
lxndrbnsv/synapse
b2f4594275931a770712ec285a55467772cbfec8
[ "Apache-2.0" ]
null
null
null
synapse/rest/admin/__init__.py
lxndrbnsv/synapse
b2f4594275931a770712ec285a55467772cbfec8
[ "Apache-2.0" ]
null
null
null
synapse/rest/admin/__init__.py
lxndrbnsv/synapse
b2f4594275931a770712ec285a55467772cbfec8
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2018-2019 New Vector Ltd # Copyright 2020, 2021 The Matrix.org Foundation C.I.C. # # 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...
38.153025
88
0.702267
7c731c4002939095d465672d3e36c4bffcec618d
76,736
py
Python
python/paddle/hapi/model.py
LWhite027/PaddleBox
b14bcdf285dd8829e11ab12cc815ac1b1ab62694
[ "Apache-2.0" ]
10
2021-05-12T07:20:32.000Z
2022-03-04T08:21:56.000Z
python/paddle/hapi/model.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
1
2021-01-07T11:00:58.000Z
2021-01-07T11:00:58.000Z
python/paddle/hapi/model.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
18
2021-05-19T08:01:49.000Z
2022-02-11T03:11:32.000Z
# Copyright (c) 2020 PaddlePaddle 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 appli...
39.513903
285
0.561588
34bd926193a5b7aee6b96744d2b5571d1d11cff8
701
py
Python
src/nti/fakestatsd/__init__.py
NextThought/nti.fakestatsd
99bce0f7819af62d0cfa8da4617299c5f41ce7c7
[ "Apache-2.0" ]
2
2018-10-12T21:49:22.000Z
2019-09-03T19:23:54.000Z
src/nti/fakestatsd/__init__.py
NextThought/nti.fakestatsd
99bce0f7819af62d0cfa8da4617299c5f41ce7c7
[ "Apache-2.0" ]
16
2018-10-12T21:56:30.000Z
2019-09-03T18:35:14.000Z
src/nti/fakestatsd/__init__.py
NextThought/nti.fakestatsd
99bce0f7819af62d0cfa8da4617299c5f41ce7c7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, absolute_import, division __docformat__ = "restructuredtext en" __all__ = [ 'FakeStatsDClient', 'Metric', 'METRIC_COUNTER_KIND', 'METRIC_GAUGE_KIND', 'METRIC_SET_KIND', 'METRIC_TIMER_KIND', ] from perfmetric...
29.208333
79
0.805991
8e6e2b1f73e2e8bebd72e6a162ad32ab110a242c
3,091
py
Python
data/p2DJ/New/program/qiskit/simulator/startQiskit181.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/simulator/startQiskit181.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/simulator/startQiskit181.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=13 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.1
82
0.622452
a0940e17cb92ce8e411b43c39ac970b74fa81ba6
11,111
py
Python
core/lnp.py
thurin/python-lnp
6b2ba77940a5d95311e3ac154ebc8c59f4c43866
[ "0BSD" ]
48
2017-11-24T00:30:16.000Z
2022-03-27T20:59:20.000Z
core/lnp.py
thurin/python-lnp
6b2ba77940a5d95311e3ac154ebc8c59f4c43866
[ "0BSD" ]
171
2020-04-04T14:33:06.000Z
2021-05-13T11:06:32.000Z
core/lnp.py
thurin/python-lnp
6b2ba77940a5d95311e3ac154ebc8c59f4c43866
[ "0BSD" ]
8
2020-03-03T06:00:10.000Z
2021-12-16T12:23:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """PyLNP main library.""" from __future__ import print_function, unicode_literals, absolute_import import sys import os from . import log from .json_config import JSONConfiguration VERSION = '0.14a' # pylint:disable=too-many-instance-attributes class UI(object): ""...
35.498403
80
0.570606
55b7967044e4cdb55b59ae705f9ebefdeca00d1c
1,321
py
Python
reversing/cracking8.py
brerodrigues/exploit_drafts
643bca8d13b44f99205fe614beda59c040a431c2
[ "MIT" ]
1
2022-01-01T20:33:44.000Z
2022-01-01T20:33:44.000Z
reversing/cracking8.py
brerodrigues/exploit_drafts
643bca8d13b44f99205fe614beda59c040a431c2
[ "MIT" ]
null
null
null
reversing/cracking8.py
brerodrigues/exploit_drafts
643bca8d13b44f99205fe614beda59c040a431c2
[ "MIT" ]
null
null
null
#8teaching def hex_list_to_str(list_hex): string_key = '' for hex_value in list_hex: string_key = string_key + chr(int(hex_value, 16)) return string_key def crack_key(list_hex): key = [] # magic xor for idx, hex_value in enumerate(list_hex): decisions = (idx -...
30.72093
139
0.606359
184b931c89d12ab44e32d824084ec8049acc4b3d
13,238
py
Python
instauto/api/structs.py
Samu1808/instauto
bbb402d6df9880352643ffef7d2122160a5d8b51
[ "MIT" ]
null
null
null
instauto/api/structs.py
Samu1808/instauto
bbb402d6df9880352643ffef7d2122160a5d8b51
[ "MIT" ]
null
null
null
instauto/api/structs.py
Samu1808/instauto
bbb402d6df9880352643ffef7d2122160a5d8b51
[ "MIT" ]
null
null
null
from typing import Tuple, Union, Callable, List import time import enum import pprint import random from dataclasses import dataclass from .constants import (DEFAULT_SIGNATURE_KEY, DEFAULT_HTTP_ENGINE, DEFAULT_IG_CAPABILITIES, DEFAULT_APP_ID, DEFAULT_IG_VERSION, DEFAULT_BUILD_NUMBER, DEFAULT_A...
42.025397
145
0.684016
d438e4928639ed02665f41f1899ab7b74581df81
146
py
Python
ifitwala_ed/setup/doctype/party_type/test_party_type.py
fderyckel/ifitwala_dev
b3f973463cf81f9a0fbd81801b2fbf900fc86b89
[ "MIT" ]
13
2020-09-02T10:27:57.000Z
2022-03-11T15:28:46.000Z
ifitwala_ed/setup/doctype/party_type/test_party_type.py
fderyckel/ifitwala_ed
f7043b80957ea972a0773d53f19bbada17c3d7fd
[ "MIT" ]
43
2020-09-02T07:00:42.000Z
2021-07-05T13:22:58.000Z
ifitwala_ed/setup/doctype/party_type/test_party_type.py
fderyckel/ifitwala_dev
b3f973463cf81f9a0fbd81801b2fbf900fc86b89
[ "MIT" ]
6
2020-10-19T01:02:18.000Z
2022-03-11T15:28:47.000Z
# Copyright (c) 2021, ifitwala and Contributors # See license.txt # import frappe import unittest class TestPartyType(unittest.TestCase): pass
16.222222
47
0.780822
70c75d50330891948569eae10c849b8fff522b2e
2,957
py
Python
efficientdet/hparams_config_test.py
WannaFIy/automl
287f54af377a177d8c58eef3ac22350a3d8ced64
[ "Apache-2.0" ]
5,277
2020-03-12T23:09:47.000Z
2022-03-30T17:28:35.000Z
efficientdet/hparams_config_test.py
WannaFIy/automl
287f54af377a177d8c58eef3ac22350a3d8ced64
[ "Apache-2.0" ]
988
2020-03-17T02:53:40.000Z
2022-03-17T19:34:10.000Z
efficientdet/hparams_config_test.py
WannaFIy/automl
287f54af377a177d8c58eef3ac22350a3d8ced64
[ "Apache-2.0" ]
1,486
2020-03-14T05:15:22.000Z
2022-03-29T02:28:56.000Z
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
33.602273
79
0.62462
317208d6fb6db0bbb1e9c92a10de8c43480aa821
2,460
py
Python
python/camera.py
lindsayshuo/yolov5_TRT_C-_python_api
29f7a9f1a3eda0c99fb843cfe0689b8e1e1f0bac
[ "Info-ZIP" ]
5
2021-10-09T05:57:57.000Z
2022-03-22T23:11:32.000Z
python/camera.py
lindsayshuo/yolov5_TRT_C-_python_api
29f7a9f1a3eda0c99fb843cfe0689b8e1e1f0bac
[ "Info-ZIP" ]
null
null
null
python/camera.py
lindsayshuo/yolov5_TRT_C-_python_api
29f7a9f1a3eda0c99fb843cfe0689b8e1e1f0bac
[ "Info-ZIP" ]
null
null
null
import cv2 import traceback import threading import queue class JetCamera(): def __init__(self, cap_w, cap_h, cap_fps): #self.cap_orig_w, self.cap_orig_h = 3264, 2464 # 4/3 , 21 fps self.cap_orig_w, self.cap_orig_h = 1920, 1080 # 16/9 , 30 fps #self.cap_orig_w, self.cap_orig_h = 1280, 7...
29.638554
164
0.541463
4f6509acde216569bae5ef42caf50385c567ec65
1,165
py
Python
PythonExercicio/ex062.py
VazMF/Curso-de-Python
9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a
[ "MIT" ]
null
null
null
PythonExercicio/ex062.py
VazMF/Curso-de-Python
9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a
[ "MIT" ]
null
null
null
PythonExercicio/ex062.py
VazMF/Curso-de-Python
9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a
[ "MIT" ]
null
null
null
#melhore o ex061, perguntando ao usuário se ele quer mostrar mais alguns termos. O programa encerra quando ele disser que quer mostrar 0 termos. print('\033[35m-=-=-=-GERADOR-DE-PA=-=--=-\033[m') #titulo primeiro = int(input('Primeiro termo: ')) #input do primeiro termo razao = int(input('Razão da PA: ')) #input da raz...
64.722222
144
0.71073
2e17d42191b40ddd586a3685d06dd1dc28ec5c8e
262
py
Python
Statistics/Randomgen_1.py
Sakthi0722/StatsCalculator
f18b8ddb300ccaba796665829ddf20777ff15ed9
[ "MIT" ]
1
2021-09-20T18:39:53.000Z
2021-09-20T18:39:53.000Z
Statistics/Randomgen_1.py
Sakthi0722/StatsCalculator
f18b8ddb300ccaba796665829ddf20777ff15ed9
[ "MIT" ]
null
null
null
Statistics/Randomgen_1.py
Sakthi0722/StatsCalculator
f18b8ddb300ccaba796665829ddf20777ff15ed9
[ "MIT" ]
2
2021-07-12T18:58:23.000Z
2021-07-14T17:47:40.000Z
import random r1 = random.randint(1, 40) print("Generate a random number without a seed between a range of two numbers - Integer:", r1) r2 = random.uniform(1, 40) print("Generate a random number without a seed between a range of two numbers - Decimal:", r2)
26.2
94
0.732824
7840eeb4a6b127a74f8239cb985e1f87d1b3a2d8
2,478
py
Python
profiles_api/models.py
xpa700/profiles-rest-api
bfb124b408ca21f9d8b9effebc04515b302aa8fe
[ "MIT" ]
null
null
null
profiles_api/models.py
xpa700/profiles-rest-api
bfb124b408ca21f9d8b9effebc04515b302aa8fe
[ "MIT" ]
6
2020-06-06T01:40:42.000Z
2022-02-10T14:49:42.000Z
profiles_api/models.py
xpa700/profiles-rest-api
bfb124b408ca21f9d8b9effebc04515b302aa8fe
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings # Create your models here. # There should be two empty lines between classes/big blocs c...
31.367089
82
0.686441
7ed7ea1369a6078d095878078a37e0e94b13c25c
1,065
py
Python
server/tests/conftest.py
daryllstrauss/prefect
2dd308ec39dc189a85defa216ef15ebec78855f5
[ "Apache-2.0" ]
1
2020-08-01T15:44:32.000Z
2020-08-01T15:44:32.000Z
server/tests/conftest.py
daryllstrauss/prefect
2dd308ec39dc189a85defa216ef15ebec78855f5
[ "Apache-2.0" ]
null
null
null
server/tests/conftest.py
daryllstrauss/prefect
2dd308ec39dc189a85defa216ef15ebec78855f5
[ "Apache-2.0" ]
1
2020-05-04T13:22:11.000Z
2020-05-04T13:22:11.000Z
# Licensed under the Prefect Community License, available at # https://www.prefect.io/legal/prefect-community-license import asyncio import inspect import pytest import prefect import prefect_server from prefect.engine.state import Running, Submitted, Success from prefect_server import api, cli, config from prefect...
27.307692
77
0.749296
bcbd909185d1b1b8fb9e9917c725f9aa9462b246
2,923
py
Python
src/zope/tal/tests/test_sourcepos.py
zopefoundation/zope.tal
a166a730f7aac87f7a8f3c2796e8d4b914930ac9
[ "ZPL-2.1" ]
2
2017-12-15T07:17:24.000Z
2020-03-09T10:05:40.000Z
src/zope/tal/tests/test_sourcepos.py
zopefoundation/zope.tal
a166a730f7aac87f7a8f3c2796e8d4b914930ac9
[ "ZPL-2.1" ]
12
2015-06-05T20:40:00.000Z
2022-01-03T13:51:43.000Z
src/zope/tal/tests/test_sourcepos.py
zopefoundation/zope.tal
a166a730f7aac87f7a8f3c2796e8d4b914930ac9
[ "ZPL-2.1" ]
6
2015-04-03T09:48:20.000Z
2021-05-14T00:59:41.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
31.430108
78
0.648307
eee428181051c616095b3104c978224d12ab8db6
16,910
py
Python
ctapipe/io/hdftableio.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/io/hdftableio.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/io/hdftableio.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
import re from abc import abstractmethod, ABCMeta from collections import defaultdict from functools import partial import numpy as np import tables from astropy.time import Time from astropy.units import Quantity import ctapipe from ctapipe.core import Component __all__ = ['TableWriter', 'TableReader', ...
36.055437
80
0.601715
9d7269283c08fe7768593bbc1c9f272de97e4292
10,599
py
Python
python/ex_draw_bitmap.py
allegrofb/Allegrofb
0f4b29d3b783ccc5bacda98bd2c1c11c716a1d9e
[ "BSD-3-Clause" ]
null
null
null
python/ex_draw_bitmap.py
allegrofb/Allegrofb
0f4b29d3b783ccc5bacda98bd2c1c11c716a1d9e
[ "BSD-3-Clause" ]
null
null
null
python/ex_draw_bitmap.py
allegrofb/Allegrofb
0f4b29d3b783ccc5bacda98bd2c1c11c716a1d9e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division import sys, os, glob from random import * from math import * from ctypes import * # Get path to examples data. p = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "examples")) from allegro import * def abort_example(text): sys.stderr.write(text)...
30.456897
89
0.604397
62db3a502bf53524dc7f6642b60d7bf12c41332f
14,337
py
Python
config_app/config_util/k8saccessor.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
config_app/config_util/k8saccessor.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
config_app/config_util/k8saccessor.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import logging import json import base64 import datetime import os from requests import Request, Session from collections import namedtuple from util.config.validator import EXTRA_CA_DIRECTORY, EXTRA_CA_DIRECTORY_PREFIX from config_app.config_util.k8sconfig import KubernetesConfig logger = logging.getLogger(__name__...
39.279452
137
0.580386
b6e866f9e91c604ababbde2022abc36a02b652e1
10,907
py
Python
nvchecker/core.py
lilydjwg/nvchecker
83286263d265835feb2fe4833e1d801c50ba7f6c
[ "MIT" ]
320
2015-01-11T06:58:09.000Z
2022-03-31T10:26:27.000Z
nvchecker/core.py
lilydjwg/nvchecker
83286263d265835feb2fe4833e1d801c50ba7f6c
[ "MIT" ]
142
2015-06-28T03:09:56.000Z
2022-02-28T06:09:26.000Z
nvchecker/core.py
lilydjwg/nvchecker
83286263d265835feb2fe4833e1d801c50ba7f6c
[ "MIT" ]
68
2015-04-15T05:09:45.000Z
2022-02-23T05:52:47.000Z
# MIT licensed # Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al. from __future__ import annotations import os import sys import asyncio from asyncio import Queue import logging import argparse from typing import ( Tuple, NamedTuple, Optional, List, Union, cast, Dict, Awaitable, Sequence, Any, ) impo...
28.477807
99
0.664711
6c0e40565de3bd87ef4679c52b53e73e1122df6d
6,192
py
Python
src/program_guests.py
AdityaGupta030697/demo_bnb
8f17b7fef77788b0dec6a782f68e9b2382281acf
[ "MIT" ]
null
null
null
src/program_guests.py
AdityaGupta030697/demo_bnb
8f17b7fef77788b0dec6a782f68e9b2382281acf
[ "MIT" ]
null
null
null
src/program_guests.py
AdityaGupta030697/demo_bnb
8f17b7fef77788b0dec6a782f68e9b2382281acf
[ "MIT" ]
null
null
null
from dateutil import parser from datetime import datetime from infra.switchlang import switch import program_hosts as hosts import infra.state as state import services.db_services as db_svc def run(): print(' ****************** Welcome guest ****************\n') show_commands() while True: acti...
34.983051
77
0.561854
1d2692991c57d4a389dcd889b349b0b01ff86806
7,723
py
Python
pyhpecw7/features/errors.py
Sumico/pyhpecw7
d71244e8372536eb091c1af199ad2b925d3d82e1
[ "Apache-2.0" ]
46
2016-08-23T11:49:45.000Z
2021-08-23T18:01:39.000Z
pyhpecw7/features/errors.py
Sumico/pyhpecw7
d71244e8372536eb091c1af199ad2b925d3d82e1
[ "Apache-2.0" ]
20
2016-07-08T17:34:04.000Z
2021-05-28T08:37:54.000Z
pyhpecw7/features/errors.py
Sumico/pyhpecw7
d71244e8372536eb091c1af199ad2b925d3d82e1
[ "Apache-2.0" ]
29
2016-06-10T14:55:55.000Z
2021-03-31T08:10:22.000Z
"""Feature-specific errors. """ from pyhpecw7.errors import PYHPError class FeatureError(PYHPError): def __init__(self): pass class LengthOfStringError(FeatureError): def __init__(self, param_name): # passing in the name of the variable rather than the actual string # but feel free ...
24.134375
88
0.600026
194c1270ccee7051cf0d8c4a19c06c063871f250
808
py
Python
text_renderer/text_renderer/effect/dropout_vertical.py
java-abhinav07/formreader
63aa695eb4b8547bc56c6f070dd8d1fadbdf29b1
[ "RSA-MD" ]
null
null
null
text_renderer/text_renderer/effect/dropout_vertical.py
java-abhinav07/formreader
63aa695eb4b8547bc56c6f070dd8d1fadbdf29b1
[ "RSA-MD" ]
null
null
null
text_renderer/text_renderer/effect/dropout_vertical.py
java-abhinav07/formreader
63aa695eb4b8547bc56c6f070dd8d1fadbdf29b1
[ "RSA-MD" ]
null
null
null
import random from typing import Tuple from text_renderer.utils.bbox import BBox from text_renderer.utils.types import PILImage from .base_effect import Effect class DropoutVertical(Effect): def __init__(self, p=0.5, num_line=10): """ Parameters ---------- p : float ...
24.484848
77
0.596535
d11585ac77969c61eb390c650985ec341dac781f
12,224
py
Python
spec2model/mapping.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
spec2model/mapping.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
spec2model/mapping.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
import requests import gspread from pydrive.auth import GoogleAuth from rdflib import ConjunctiveGraph def __get_class_name(temp_uri): return temp_uri.replace("http://schema.org/","") def __add_property(props_dic, prop_desc): sdo_uri="http://schema.org/" if prop_desc['prop_name'] in props_dic: t...
41.297297
148
0.656577
1d4fdafe7737d3cb10c595905b704ec66acfbbee
544
py
Python
app/recipe/tests/test_tag_api.py
Aalekh-Sajonia/recipe-app-api
f5016354569358667048540a39f5338d686a52da
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_api.py
Aalekh-Sajonia/recipe-app-api
f5016354569358667048540a39f5338d686a52da
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_api.py
Aalekh-Sajonia/recipe-app-api
f5016354569358667048540a39f5338d686a52da
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class PublicTags...
24.727273
71
0.775735
312409e82230206e2a67b0f0a0a285323e104bdf
13,338
py
Python
onnxruntime/python/tools/tensorrt/perf/post.py
jamill/onnxruntime
0565fecf46c4dd711c01a4106641946963bf7ff0
[ "MIT" ]
669
2018-12-03T22:00:31.000Z
2019-05-06T19:42:49.000Z
onnxruntime/python/tools/tensorrt/perf/post.py
jamill/onnxruntime
0565fecf46c4dd711c01a4106641946963bf7ff0
[ "MIT" ]
440
2018-12-03T21:09:56.000Z
2019-05-06T20:47:23.000Z
onnxruntime/python/tools/tensorrt/perf/post.py
jamill/onnxruntime
0565fecf46c4dd711c01a4106641946963bf7ff0
[ "MIT" ]
140
2018-12-03T21:15:28.000Z
2019-05-06T18:02:36.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------- import argparse import datetime import os import sys import pandas as pd...
35.951482
116
0.654971
01273ce11f1d01e1d456726e422ff7f8be6567ad
220
py
Python
dmriprep/config/__init__.py
dPys/dmriprep-1
7e194c35e9d0435b51b355c5234a73876664b862
[ "Apache-2.0" ]
null
null
null
dmriprep/config/__init__.py
dPys/dmriprep-1
7e194c35e9d0435b51b355c5234a73876664b862
[ "Apache-2.0" ]
null
null
null
dmriprep/config/__init__.py
dPys/dmriprep-1
7e194c35e9d0435b51b355c5234a73876664b862
[ "Apache-2.0" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Settings.""" DEFAULT_MEMORY_MIN_GB = 0.01 NONSTANDARD_REFERENCES = ['anat', 'T1w', 'dwi', 'fsnative']
31.428571
73
0.654545
abe29e6ae18d9e756a01bef512c784f3d5093b0f
960
py
Python
sunds/utils/py_utils_test.py
google-research/sunds
751d31cc4017ebf01d79b4f558e4cc046f76d040
[ "Apache-2.0" ]
10
2021-07-30T07:55:18.000Z
2022-03-25T12:37:59.000Z
sunds/utils/py_utils_test.py
google-research/sunds
751d31cc4017ebf01d79b4f558e4cc046f76d040
[ "Apache-2.0" ]
3
2021-07-30T10:20:02.000Z
2021-09-02T09:28:41.000Z
sunds/utils/py_utils_test.py
google-research/sunds
751d31cc4017ebf01d79b4f558e4cc046f76d040
[ "Apache-2.0" ]
3
2021-11-05T14:52:11.000Z
2022-02-05T23:48:58.000Z
# Copyright 2021 The sunds Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
32
112
0.717708
2557017b8f5c9e2995e1023fe6ca2617c290a403
47,585
py
Python
ant/Main_dr.py
Currycurrycurry/Time-in-State-RL
f106d92c3556b955c108bf3e147bb0b12e60259c
[ "BSD-3-Clause" ]
14
2020-11-03T01:46:49.000Z
2022-01-18T06:16:46.000Z
ant/Main_dr.py
Currycurrycurry/Time-in-State-RL
f106d92c3556b955c108bf3e147bb0b12e60259c
[ "BSD-3-Clause" ]
null
null
null
ant/Main_dr.py
Currycurrycurry/Time-in-State-RL
f106d92c3556b955c108bf3e147bb0b12e60259c
[ "BSD-3-Clause" ]
5
2020-11-23T06:29:14.000Z
2022-01-08T18:55:31.000Z
""" Functions to train the DR models for ant where time is handeled. Credits: 1) The PPO functions and classes are from baselines and modified to work for current setting 2) The environment code is taken from the pybullet github with timing characteristic modifications """ checkpoint_path = 'ant_dr_policies' from b...
32.83989
204
0.640055
2c04c17ae12bc64eb7915fb981bbb05e6e57044f
1,317
py
Python
examples/7_extend/extend.py
kzh3ka/japronto
a526277a2f59100388c9f39d4ca22bfb4909955b
[ "MIT" ]
9,472
2017-01-31T13:22:02.000Z
2022-03-31T13:15:46.000Z
examples/7_extend/extend.py
zishenWang/japronto
f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6
[ "MIT" ]
170
2017-01-31T18:50:13.000Z
2022-03-17T13:32:04.000Z
examples/7_extend/extend.py
zishenWang/japronto
f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6
[ "MIT" ]
739
2017-01-31T17:42:03.000Z
2022-02-24T05:10:32.000Z
from japronto import Application # This view accesses custom method host_startswith # and a custom property reversed_agent. Both are registered later. def extended_hello(request): if request.host_startswith('api.'): text = 'Hello ' + request.reversed_agent else: text = 'Hello stranger' re...
25.823529
75
0.744875
a49898a6863ab6d75c15b4f49044633e9e050726
1,833
py
Python
config.env.py
galenguyer/DiscourseOIDC
8cf96be8abffabb3f79891b4d86eb2d6a0a876ce
[ "Apache-2.0" ]
null
null
null
config.env.py
galenguyer/DiscourseOIDC
8cf96be8abffabb3f79891b4d86eb2d6a0a876ce
[ "Apache-2.0" ]
null
null
null
config.env.py
galenguyer/DiscourseOIDC
8cf96be8abffabb3f79891b4d86eb2d6a0a876ce
[ "Apache-2.0" ]
null
null
null
import os, json ####################### # Flask Configuration # ####################### DEBUG = True if os.environ.get('SSO_DEBUG', 'false') == 'true' else False IP = os.environ.get('SSO_IP', '0.0.0.0') PORT = int(os.environ.get('SSO_PORT', '8080')) SERVER_NAME = os.environ.get('SSO_SERVER_NAME', 'discourse-sso.csh.r...
42.627907
113
0.613202
05b22cbe3503e3309079e398e3c6b031c5120521
3,716
py
Python
automox_console_sdk/models/inline_response200.py
AutomoxCommunity/automox-console-sdk-python
9e921b138d63f90750e071d0a40e1d7edfa06733
[ "MIT" ]
1
2021-10-05T22:09:10.000Z
2021-10-05T22:09:10.000Z
automox_console_sdk/models/inline_response200.py
AutomoxCommunity/automox-console-sdk-python
9e921b138d63f90750e071d0a40e1d7edfa06733
[ "MIT" ]
1
2021-09-16T06:00:51.000Z
2021-09-16T06:00:51.000Z
automox_console_sdk/models/inline_response200.py
AutomoxCommunity/automox-console-sdk-python
9e921b138d63f90750e071d0a40e1d7edfa06733
[ "MIT" ]
4
2021-09-16T02:35:32.000Z
2022-02-16T01:09:57.000Z
# coding: utf-8 """ Automox Console API API for use with the Automox Console # noqa: E501 OpenAPI spec version: 2021-11-16 Contact: support@automox.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class InlineResponse200...
27.124088
80
0.555974
45a38c0767104ef87f2770f65f80abdbee07f1de
65,534
py
Python
src/rosegraphics.py
SiweiXu/Exam1Practice
e39c0b327e3fdb3159a508ea3fb98f13e17256bb
[ "MIT" ]
null
null
null
src/rosegraphics.py
SiweiXu/Exam1Practice
e39c0b327e3fdb3159a508ea3fb98f13e17256bb
[ "MIT" ]
null
null
null
src/rosegraphics.py
SiweiXu/Exam1Practice
e39c0b327e3fdb3159a508ea3fb98f13e17256bb
[ "MIT" ]
null
null
null
""" rosegraphics.py - a simple Graphics library for Python. Its key feature is: -- USING this library provides a simple introduction to USING objects. Other key features include: -- It has a rich set of classes, methods and instance variables. -- In addition to classes like Circles that are natural for ...
31.967805
161
0.598117
a88369a8d840ca11750e0301a052d4a26be04ae7
960
py
Python
google-cloud-sdk/lib/surface/compute/https_health_checks/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/lib/surface/compute/https_health_checks/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/https_health_checks/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2014 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 by applicable law or ag...
35.555556
76
0.753125
a74ba4c37582131b3b13a8bcf9ded9e8f7b53969
1,898
py
Python
extensions/value_generators/models/generators_test.py
alexewu/oppia
57c3c660ab7974835ec068d7c7f5ce5b5f1f25ae
[ "Apache-2.0" ]
null
null
null
extensions/value_generators/models/generators_test.py
alexewu/oppia
57c3c660ab7974835ec068d7c7f5ce5b5f1f25ae
[ "Apache-2.0" ]
null
null
null
extensions/value_generators/models/generators_test.py
alexewu/oppia
57c3c660ab7974835ec068d7c7f5ce5b5f1f25ae
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
40.382979
77
0.658588
4963cac16c379d85f8698890416235eabb384ad3
71
py
Python
app/library/algorithm/pathwalk.py
imamsolikhin/Python
f2ed5a848a37925bd9172f1f7484fd40f2e0a8a5
[ "MIT" ]
null
null
null
app/library/algorithm/pathwalk.py
imamsolikhin/Python
f2ed5a848a37925bd9172f1f7484fd40f2e0a8a5
[ "MIT" ]
null
null
null
app/library/algorithm/pathwalk.py
imamsolikhin/Python
f2ed5a848a37925bd9172f1f7484fd40f2e0a8a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # TODO: move PathFind PAthWlak to own modules
17.75
45
0.647887
4aa47ac250e0557e553614986f28a3aa764ffc1a
9,270
py
Python
trello/trelloclient.py
nureineide/py-trello
b9a7366e103316cedfe925ab6150b763e998d37b
[ "BSD-3-Clause" ]
null
null
null
trello/trelloclient.py
nureineide/py-trello
b9a7366e103316cedfe925ab6150b763e998d37b
[ "BSD-3-Clause" ]
null
null
null
trello/trelloclient.py
nureineide/py-trello
b9a7366e103316cedfe925ab6150b763e998d37b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement, print_function, absolute_import import json import requests from requests_oauthlib import OAuth1 from trello.board import Board from trello.card import Card from trello.trellolist import List from trello.organization import Organization from trello.member i...
35.381679
99
0.610032
946add99d10b787bccfec9b524513c8b3a2414c0
21,239
py
Python
stable_baselines/common/base_class.py
ashigirl96/stable-baselines
0c3478eb9917c0357131913215df7abca6c8d566
[ "MIT" ]
null
null
null
stable_baselines/common/base_class.py
ashigirl96/stable-baselines
0c3478eb9917c0357131913215df7abca6c8d566
[ "MIT" ]
null
null
null
stable_baselines/common/base_class.py
ashigirl96/stable-baselines
0c3478eb9917c0357131913215df7abca6c8d566
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod import os import glob import cloudpickle import numpy as np import gym import tensorflow as tf from stable_baselines.common import set_global_seeds from stable_baselines.common.policies import LstmPolicy, get_policy_from_name, ActorCriticPolicy from stable_baselines.common.vec_env ...
40.844231
120
0.622487
2f04b8b23a8c2b67d069f97878e79afdea3a68c5
3,635
py
Python
examples/greetings/receiver.py
holytshirt/Brightside
ef78a46a5d1ee0aaf45594b1b353f6a82e6acf0d
[ "MIT" ]
null
null
null
examples/greetings/receiver.py
holytshirt/Brightside
ef78a46a5d1ee0aaf45594b1b353f6a82e6acf0d
[ "MIT" ]
null
null
null
examples/greetings/receiver.py
holytshirt/Brightside
ef78a46a5d1ee0aaf45594b1b353f6a82e6acf0d
[ "MIT" ]
null
null
null
""" File : sender.py Author : ian Created : 08-04-2017 Last Modified By : ian Last Modified On : 08-05-2017 *********************************************************************** The MIT License (MIT) Copyright 2017 Ian Cooper <ian_hammond_cooper@yahoo.co.uk> Permission is hereby gran...
39.086022
135
0.751857
67222687ef5a1026aca4ea412417e603a1cfd9d9
6,412
py
Python
tests/test_contrib_signaling.py
emcee-ai/aiortc
9678334784be5872af6ede786d3a4404b265f0ae
[ "BSD-3-Clause" ]
null
null
null
tests/test_contrib_signaling.py
emcee-ai/aiortc
9678334784be5872af6ede786d3a4404b265f0ae
[ "BSD-3-Clause" ]
2
2018-12-24T19:18:58.000Z
2018-12-24T20:09:32.000Z
tests/test_contrib_signaling.py
koenvo/aiortc
ac834849b58f852722079436e616562b7d9f787b
[ "BSD-3-Clause" ]
null
null
null
import argparse import asyncio from unittest import TestCase from aiortc import RTCIceCandidate, RTCSessionDescription from aiortc.contrib.signaling import (add_signaling_arguments, create_signaling, object_from_string, object_to_string) from...
34.28877
144
0.640674
89b0300a33607210c803753615e5d44100acc8b0
3,487
py
Python
pygments/lexers/usd.py
KMilhan/pygments
5120e9943d137f7aa1d33499b79d5ebd5c9f775d
[ "BSD-2-Clause" ]
1,198
2015-01-02T12:08:49.000Z
2021-10-07T02:46:59.000Z
pygments/lexers/usd.py
KMilhan/pygments
5120e9943d137f7aa1d33499b79d5ebd5c9f775d
[ "BSD-2-Clause" ]
249
2015-01-22T13:31:12.000Z
2021-05-01T08:01:22.000Z
pygments/lexers/usd.py
KMilhan/pygments
5120e9943d137f7aa1d33499b79d5ebd5c9f775d
[ "BSD-2-Clause" ]
118
2015-01-16T19:13:15.000Z
2021-07-21T15:09:15.000Z
# -*- coding: utf-8 -*- """ pygments.lexers.usd ~~~~~~~~~~~~~~~~~~~ The module that parses Pixar's Universal Scene Description file format. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, bygroup...
38.318681
86
0.52452
8a2a9011224d2b79539235ba87355c8c544e2f3e
16,256
py
Python
lib/model/train_val.py
robtu328/Player_Number
800d73374fff0dc4546930a795ca043c62f121ce
[ "MIT" ]
null
null
null
lib/model/train_val.py
robtu328/Player_Number
800d73374fff0dc4546930a795ca043c62f121ce
[ "MIT" ]
null
null
null
lib/model/train_val.py
robtu328/Player_Number
800d73374fff0dc4546930a795ca043c62f121ce
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen and Zheqi He # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __f...
37.284404
130
0.55967
8b2eb90bbb8c6dc76d93d3e603894085377f482a
1,012
py
Python
exploit/hash_leaking.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
exploit/hash_leaking.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
exploit/hash_leaking.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
import subprocess import hashlib import sys from collections import defaultdict, deque import re host = sys.argv[1] tailf = subprocess.Popen(["ssh", host, "tail", "-f", "/var/log/nginx/access.log"], stdout=subprocess.PIPE) tree = defaultdict(set) def expand(prefix): for nextchar in range(128): x = pre...
20.653061
106
0.565217
67903dd9c4346f7596a684e239be9ce3a219f27d
1,195
py
Python
tests/test_cast_op.py
shjwudp/paddle-onnx
cc80141bc7d1f29da3eef186f6cc0b63da266af2
[ "Apache-2.0" ]
2
2021-07-14T00:43:54.000Z
2021-11-17T11:06:56.000Z
tests/test_cast_op.py
wawltor/paddle-onnx
037b9eab4d3f817aa838f104571d4a72aea24e2d
[ "Apache-2.0" ]
null
null
null
tests/test_cast_op.py
wawltor/paddle-onnx
037b9eab4d3f817aa838f104571d4a72aea24e2d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
31.447368
74
0.688703
5cd47f6a248ede3c5ba73ba4018ee689e08fd3d2
2,385
py
Python
backend/dbutils.py
grzegorzcode/dash-analytics-framework
572fa8d06afd850c5dd1edf11f7c8864cdad7568
[ "MIT" ]
null
null
null
backend/dbutils.py
grzegorzcode/dash-analytics-framework
572fa8d06afd850c5dd1edf11f7c8864cdad7568
[ "MIT" ]
null
null
null
backend/dbutils.py
grzegorzcode/dash-analytics-framework
572fa8d06afd850c5dd1edf11f7c8864cdad7568
[ "MIT" ]
null
null
null
from werkzeug.security import check_password_hash from backend.dbengine import * from datetime import datetime from werkzeug.security import generate_password_hash def check_password(user, password): with session_scope() as s: user = s.query(Users).filter_by(username=user).first() if user: ...
26.797753
139
0.651992
eef64b7b01a7fda56b7c56adfe78675847b05b4d
838
py
Python
res/versioning.py
tableau/tabcmd
a6a44795b2568933505dfc8c443ee16542c9e4c0
[ "MIT" ]
3
2022-02-15T03:07:51.000Z
2022-03-09T13:14:52.000Z
res/versioning.py
tableau/tabcmd
a6a44795b2568933505dfc8c443ee16542c9e4c0
[ "MIT" ]
57
2022-01-31T22:33:17.000Z
2022-03-28T22:05:53.000Z
res/versioning.py
tableau/tabcmd
a6a44795b2568933505dfc8c443ee16542c9e4c0
[ "MIT" ]
2
2022-02-23T23:05:35.000Z
2022-03-03T21:32:53.000Z
# generates a version data file that will be read by pyinstaller import pyinstaller_versionfile import sys import os import re # TODO move this to the do-it scripts # this file contains the actual version, generated by setuptools_scm mymodule_dir = os.path.join(os.path.dirname( __file__ ), '..') sys.path.append(mymod...
32.230769
104
0.78043
1660e53e9326fb11ce4ffc472a9da97bcf230a4d
278
py
Python
tests/asp/cautious/count.example3.cautious.asp.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
tests/asp/cautious/count.example3.cautious.asp.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
tests/asp/cautious/count.example3.cautious.asp.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
input = """ 1 2 0 0 1 3 0 0 1 4 2 1 5 6 1 5 2 1 4 6 1 6 0 0 1 7 2 1 8 9 1 8 2 1 7 9 1 9 0 0 2 11 2 0 1 7 4 2 12 2 0 2 7 4 1 10 2 1 12 11 1 1 1 1 10 1 1 2 0 7 8 1 1 2 0 4 5 0 10 ok 5 -a(1) 8 -a(0) 4 a(1) 7 a(0) 2 i(0) 3 i(1) 0 B+ 0 B- 1 0 1 """ output = """ {i(0), i(1), ok} """
7.942857
16
0.467626
6921c14f43035f706fceb773e9b84c5193e18bed
653
py
Python
dags/gs_list_buckets.py
elifesciences/sciencebeam-airflow
21f6b747115e11f3de80c3a1e501e1e7c07b6253
[ "MIT" ]
4
2020-01-03T14:51:36.000Z
2021-04-06T06:29:30.000Z
dags/gs_list_buckets.py
elifesciences/sciencebeam-airflow
21f6b747115e11f3de80c3a1e501e1e7c07b6253
[ "MIT" ]
62
2019-07-02T11:50:48.000Z
2021-07-15T05:33:12.000Z
dags/gs_list_buckets.py
elifesciences/sciencebeam-airflow
21f6b747115e11f3de80c3a1e501e1e7c07b6253
[ "MIT" ]
null
null
null
import airflow from airflow.operators.python import PythonOperator from airflow.models import DAG from gcloud import storage DEFAULT_ARGS = { 'start_date': airflow.utils.dates.days_ago(2) } def gs_list_buckets(*_, **__): client = storage.Client() items = list(client.list_buckets()) print('buckets:'...
18.657143
60
0.678407
d2c14e8de41fefcee0c22c212b77fc2793d09c59
3,445
py
Python
src/meltano/core/m5o/reports_service.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
122
2021-06-21T17:30:29.000Z
2022-03-25T06:21:38.000Z
src/meltano/core/m5o/reports_service.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
null
null
null
src/meltano/core/m5o/reports_service.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
21
2021-06-22T10:08:15.000Z
2022-03-18T08:57:02.000Z
import json import os from meltano.core.utils import slugify from .dashboards_service import DashboardsService from .m5o_collection_parser import M5oCollectionParser, M5oCollectionParserTypes from .m5o_file_parser import MeltanoAnalysisFileParser class ReportAlreadyExistsError(Exception): """Occurs when a repor...
29.956522
85
0.634253
7363540292f1c9a1f279b2301637e3b9ea985773
151,006
py
Python
red_canary/komand_red_canary/triggers/new_events/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
red_canary/komand_red_canary/triggers/new_events/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
red_canary/komand_red_canary/triggers/new_events/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Check for new events" class Input: DATE_OFFSET = "date_offset" FORCE_OFFSET = "force_offset" FREQUENCY = "frequency" class Output: EVENT = "event" class NewEventsInput(komand.I...
35.749527
167
0.375257
b079950c486b6cc2602034b5fb168c792c98c250
2,851
py
Python
flaskapp/forms.py
dushyantkhosla/flask-4-ds
af7b1543c78a730a45020d1a64e4eb0005f4c11e
[ "MIT" ]
null
null
null
flaskapp/forms.py
dushyantkhosla/flask-4-ds
af7b1543c78a730a45020d1a64e4eb0005f4c11e
[ "MIT" ]
7
2020-03-24T17:35:31.000Z
2022-01-13T01:39:56.000Z
flaskapp/forms.py
dushyantkhosla/flask-4-ds
af7b1543c78a730a45020d1a64e4eb0005f4c11e
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from flask_login import current_user from wtforms import StringField, PasswordField, SubmitField, BooleanField, TextAreaField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flaskapp.models impor...
31.32967
95
0.638022