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
941d6dd3633da037ca8a317502b87d93b1342dd7
3,722
py
Python
test/models/test_raw_logs.py
Stranger6667/py-offers
73ef00e7b02ddfa5adc6df282009aea7670e465f
[ "MIT" ]
17
2016-08-26T10:50:44.000Z
2021-07-08T17:39:34.000Z
test/models/test_raw_logs.py
Stranger6667/py-offers
73ef00e7b02ddfa5adc6df282009aea7670e465f
[ "MIT" ]
80
2016-08-26T08:45:20.000Z
2020-08-31T15:47:10.000Z
test/models/test_raw_logs.py
Stranger6667/py-offers
73ef00e7b02ddfa5adc6df282009aea7670e465f
[ "MIT" ]
7
2017-04-03T08:19:06.000Z
2020-10-16T19:02:21.000Z
from pyoffers.models.raw_log import DateDir, LogFile, LogRecord CASSETTE_NAME = "raw_log" def test_list_date_dirs(date_dirs): assert len(date_dirs) == 3 assert all(isinstance(item, DateDir) for item in date_dirs) assert str(date_dirs[0]) == "DateDir: Sep 9, 2016 (20160909)" def assert_log_files(log_fil...
46.525
116
0.679205
cd17c3f371cb590737e0dd8f36920f541dd4287c
1,438
py
Python
python/anyascii/_data/_0c1.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
python/anyascii/_data/_0c1.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
python/anyascii/_data/_0c1.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
b='Syae Syaeg Syaekk Syaegs Syaen Syaenj Syaenh Syaed Syael Syaelg Syaelm Syaelb Syaels Syaelt Syaelp Syaelh Syaem Syaeb Syaebs Syaes Syaess Syaeng Syaej Syaech Syaek Syaet Syaep Syaeh Seo Seog Seokk Seogs Seon Seonj Seonh Seod Seol Seolg Seolm Seolb Seols Seolt Seolp Seolh Seom Seob Seobs Seos Seoss Seong Seoj Seoch S...
1,438
1,438
0.820584
a611793e897e32113f80fea9891bd9cd8e239f0b
3,614
py
Python
flypy/support/numpy_support.py
filmackay/flypy
d64e70959c5c8af9e914dcc3ce1068fb99859c3a
[ "BSD-2-Clause" ]
null
null
null
flypy/support/numpy_support.py
filmackay/flypy
d64e70959c5c8af9e914dcc3ce1068fb99859c3a
[ "BSD-2-Clause" ]
null
null
null
flypy/support/numpy_support.py
filmackay/flypy
d64e70959c5c8af9e914dcc3ce1068fb99859c3a
[ "BSD-2-Clause" ]
1
2020-01-01T00:43:24.000Z
2020-01-01T00:43:24.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import math import struct import numpy as np from flypy.types import * if struct.pack('i', 1)[0] == '\1': nbo = '<' # little endian else: nbo = '>' # big endian def from_dtype(dtype): """ Map a NumPy dtype to ...
29.867769
75
0.549806
26e843e5ef89cf8193b43398e97ce6d85d4f507f
395
py
Python
plugin/fiftyone/conf/configs.py
fenrir-z/ymir
ec6047323d3b914efb56252295589711973169e1
[ "Apache-2.0" ]
null
null
null
plugin/fiftyone/conf/configs.py
fenrir-z/ymir
ec6047323d3b914efb56252295589711973169e1
[ "Apache-2.0" ]
null
null
null
plugin/fiftyone/conf/configs.py
fenrir-z/ymir
ec6047323d3b914efb56252295589711973169e1
[ "Apache-2.0" ]
null
null
null
from typing import List from environs import Env env = Env() class Config: mongo_uri: str = env.str("FIFTYONE_DATABASE_URI", "mongodb://localhost:27017/") redis_host: str = env.str("FIFTYONE_REDIS_HOST", "localhost") redis_port: int = env.int("FIFTYONE_REDIS_PORT", 6379) redis_db: int = env.int("FIF...
23.235294
83
0.688608
dc59acb703cdcc54983c4aa3ee04fc75ad50fb31
367
py
Python
Greedy/1333.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
Greedy/1333.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
Greedy/1333.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
import sys N, L, D = map(int,sys.stdin.readline().split()) for i in range(L,(L+5)*N,L+5): key = False for j in range(0,(L+5)*N + D,D): if i <= j < i + 5: print(j) key = True break if key: break else: for i in range(0,(L+5)*N*1001,D): if i >= ...
20.388889
47
0.425068
1cfc8d5d02b67bc3c801a4fb74f4558d0092b967
7,020
py
Python
python/hk_utils/hk_print.py
HeekangPark/hk_utils
271c95c77df72ca8c70ab10ae5077e223c630145
[ "MIT" ]
null
null
null
python/hk_utils/hk_print.py
HeekangPark/hk_utils
271c95c77df72ca8c70ab10ae5077e223c630145
[ "MIT" ]
null
null
null
python/hk_utils/hk_print.py
HeekangPark/hk_utils
271c95c77df72ca8c70ab10ae5077e223c630145
[ "MIT" ]
null
null
null
import builtins _decoration = { 'bold': '1', 'underline': '4', 'blink': '5', 'reverse': '7', } _color = { 'black': '30', 'red': '31', 'green': '32', 'yellow': '33', 'blue': '34', 'magenta': '35', 'cyan': '36', 'white': '37', } _background = { 'black': '40', 'red'...
32.35023
155
0.522365
544bfc1577f76e964586209240931398ef179d1c
550
py
Python
blockwise_descent.py
rtavenar/SparseGroupLasso
e9c6855d92891173e78791837e0431f342ade90c
[ "BSD-2-Clause" ]
37
2016-11-23T14:47:01.000Z
2021-09-27T07:21:33.000Z
blockwise_descent.py
candleinwindsteve/SparseGroupLasso
dc7ae8687236b12d53aa7779afb6505fbaf060ff
[ "BSD-2-Clause" ]
5
2018-01-18T19:41:18.000Z
2019-08-26T13:16:01.000Z
blockwise_descent.py
candleinwindsteve/SparseGroupLasso
dc7ae8687236b12d53aa7779afb6505fbaf060ff
[ "BSD-2-Clause" ]
17
2017-11-28T21:50:00.000Z
2021-09-27T07:21:35.000Z
import numpy import blockwise_descent_semisparse __author__ = 'Romain Tavenard romain.tavenard[at]univ-rennes2.fr' class SGL(blockwise_descent_semisparse.SGL): def __init__(self, groups, alpha, lbda, max_iter_outer=10000, max_iter_inner=100, rtol=1e-6): self.ind_sparse = numpy.ones((len(groups), )) ...
32.352941
97
0.696364
e86c2a00355f83c122fec78f23219f90534b4351
11,284
py
Python
integration_tests/src/main/python/asserts.py
petro-rudenko/spark-rapids
0d49b5818db0add9b9ce54de07a67ae9b89c5f74
[ "Apache-2.0" ]
1
2020-08-26T22:47:34.000Z
2020-08-26T22:47:34.000Z
integration_tests/src/main/python/asserts.py
petro-rudenko/spark-rapids
0d49b5818db0add9b9ce54de07a67ae9b89c5f74
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/asserts.py
petro-rudenko/spark-rapids
0d49b5818db0add9b9ce54de07a67ae9b89c5f74
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.364238
129
0.6433
789d875211aee54b7ced00fe09778535c6b58ef1
1,824
py
Python
domains/explore/problems/training/problem116_EE.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2021-09-28T12:56:56.000Z
2021-09-28T12:56:56.000Z
domains/explore/problems/training/problem116_EE.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
null
null
null
domains/explore/problems/training/problem116_EE.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2022-03-31T16:30:39.000Z
2022-03-31T16:30:39.000Z
__author__ = 'patras' from domain_exploreEnv import * from timer import DURATION from state import state, rv DURATION.TIME = { 'survey': 5, 'monitor': 5, 'screen': 5, 'sample': 5, 'process': 5, 'fly': 3, 'deposit': 1, 'transferData': 1, 'take': 2, 'put': 2, 'move': 10, '...
29.901639
247
0.481908
1ef9af35f4505473472bff9ee7020ba4448f1f9b
10,178
py
Python
prompt_toolkit/input/vt100.py
scoennz/python-prompt-toolkit
27e4a79ee13f4473a7a29a3b12036576606755b0
[ "BSD-3-Clause" ]
1
2021-09-07T05:26:21.000Z
2021-09-07T05:26:21.000Z
prompt_toolkit/input/vt100.py
scoennz/python-prompt-toolkit
27e4a79ee13f4473a7a29a3b12036576606755b0
[ "BSD-3-Clause" ]
1
2020-08-11T19:53:13.000Z
2020-08-11T19:53:13.000Z
prompt_toolkit/input/vt100.py
scoennz/python-prompt-toolkit
27e4a79ee13f4473a7a29a3b12036576606755b0
[ "BSD-3-Clause" ]
1
2016-10-20T11:54:20.000Z
2016-10-20T11:54:20.000Z
import contextlib import io import os import sys import termios import tty from asyncio import AbstractEventLoop, get_event_loop from typing import ( Callable, ContextManager, Dict, Generator, List, Optional, Set, TextIO, Tuple, Union, ) from prompt_toolkit.utils import is_dumb_...
32.414013
87
0.618098
c22326c3549be9e6f47a2b3e46d096ebe6b86357
6,010
py
Python
BeesEtAl/BA_Patch.py
FJFranklin/BeesEtAl
3fd21d044e77b4a1df56ac2f405e2084bebd54e1
[ "MIT" ]
1
2020-08-04T00:13:54.000Z
2020-08-04T00:13:54.000Z
BeesEtAl/BA_Patch.py
FJFranklin/BeesEtAl
3fd21d044e77b4a1df56ac2f405e2084bebd54e1
[ "MIT" ]
null
null
null
BeesEtAl/BA_Patch.py
FJFranklin/BeesEtAl
3fd21d044e77b4a1df56ac2f405e2084bebd54e1
[ "MIT" ]
null
null
null
import numpy as np class BA_Patch(object): def __init__(self, garden, id_no): self.G = garden # the BA_Garden object self.id_no = id_no # a reference number to identify this patch self.Nfails = 0 # total number of local failures to find better position sel...
35.77381
158
0.49817
6a3ceff35e6660db262c9e5c22e105bacb86c4b0
1,472
py
Python
tests/distributed/testFilter_distributed.py
noahyonack/Parallelogram
eb5e3d0f587434ba51116f65595ef97b6e8df19a
[ "Apache-2.0" ]
null
null
null
tests/distributed/testFilter_distributed.py
noahyonack/Parallelogram
eb5e3d0f587434ba51116f65595ef97b6e8df19a
[ "Apache-2.0" ]
null
null
null
tests/distributed/testFilter_distributed.py
noahyonack/Parallelogram
eb5e3d0f587434ba51116f65595ef97b6e8df19a
[ "Apache-2.0" ]
null
null
null
''' Ensures correctness for p_filter() using the PyUnit (unittest) package ''' import unittest # our test package from parallelogram.config import PORT # PORT on which the server should listen from parallelogram import parallelogram # library methods from parallelogram.parallelogram_server import Server # server api ...
26.285714
78
0.705842
d22bae1f454917d45855fed939421877eedd9d2e
918
py
Python
isi_sdk_8_1_0/test/test_namespace_metadata.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_0/test/test_namespace_metadata.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_0/test/test_namespace_metadata.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 5 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_0 from i...
22.390244
91
0.71024
dbad50797b3f945740f40027e3833cceff96200b
5,023
py
Python
tests/pools/test_wallet_pool_store.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
tests/pools/test_wallet_pool_store.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
tests/pools/test_wallet_pool_store.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
import asyncio from pathlib import Path from secrets import token_bytes from typing import Optional import aiosqlite import pytest from clvm_tools import binutils from bytecash.types.blockchain_format.coin import Coin from bytecash.types.blockchain_format.program import Program, SerializedProgram from bytecash.types....
37.485075
110
0.643241
d4083cd09a43f35986a1b9acc4afc072f2b6d005
5,786
py
Python
L01/code/helper.py
dumpmemory/stat453-deep-learning-ss21
2202699c5fd38af398e2682f289a0868b1b91f0e
[ "MIT" ]
175
2021-01-28T03:46:43.000Z
2022-03-29T14:22:14.000Z
L01/code/helper.py
dumpmemory/stat453-deep-learning-ss21
2202699c5fd38af398e2682f289a0868b1b91f0e
[ "MIT" ]
3
2021-04-25T16:06:50.000Z
2021-12-27T17:31:19.000Z
L01/code/helper.py
dumpmemory/stat453-deep-learning-ss21
2202699c5fd38af398e2682f289a0868b1b91f0e
[ "MIT" ]
83
2021-02-02T23:39:21.000Z
2022-03-30T02:16:26.000Z
# imports from installed libraries import os import matplotlib.pyplot as plt import numpy as np import random import torch from torch.utils.data import sampler from torch.utils.data import DataLoader from torchvision import datasets from torchvision import transforms def set_all_seeds(seed): os.environ["PL_GLOBA...
30.941176
77
0.595576
baf81f73c108ce4eee28234676426750f4ba7c47
1,271
py
Python
tests/hls_kernel.py
sharm294/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
1
2021-04-12T06:41:33.000Z
2021-04-12T06:41:33.000Z
tests/hls_kernel.py
UofT-HPRC/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
null
null
null
tests/hls_kernel.py
UofT-HPRC/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
null
null
null
import os from sonar.testbench import Testbench, Module, TestVector, Thread from sonar.interfaces import AXIS, SAXILite hls_kernel = Testbench.default('hls_kernel') filepath = os.path.join(os.path.dirname(__file__), 'build/hls_kernel/') dut = Module.default("DUT") dut.add_clock_port('ap_clk', '20ns') dut.add_reset_p...
27.630435
80
0.568057
d352772ab5422d4c3566d9e4a2975fc6ddc6ca8d
508
py
Python
meiduo_mall/meiduo_mall/apps/payment/models.py
HOXI818/meiduomail
8f398ac8ac0414fd23c60314db4f27dd9e68b2cd
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/payment/models.py
HOXI818/meiduomail
8f398ac8ac0414fd23c60314db4f27dd9e68b2cd
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/payment/models.py
HOXI818/meiduomail
8f398ac8ac0414fd23c60314db4f27dd9e68b2cd
[ "MIT" ]
null
null
null
from django.db import models from meiduo_mall.utils.models import BaseModel from orders.models import OrderInfo # Create your models here. class Payment(BaseModel): """ 支付信息 """ order = models.ForeignKey(OrderInfo, on_delete=models.CASCADE, verbose_name='订单') trade_id = models.CharField(max_leng...
24.190476
104
0.708661
b87041c7addfc95dea971b047e7984adced06c78
10,784
py
Python
Source/Oyooni/Text Recognition/test.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/test.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/test.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
""" Copyright (c) 2019-present NAVER Corp. MIT License """ from collections import OrderedDict import config from craft import CRAFT import codecs import imgproc import craft_utils import cv2 import numpy as np import pytesseract from torch.autograd import Variable import torch.backends.cudnn as cudnn import torch ...
30.811429
151
0.618323
51dc91f20a1a71ce1538486d184a96f40fb680e0
1,811
py
Python
evalml/pipelines/components/estimators/classifiers/decision_tree_classifier.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
null
null
null
evalml/pipelines/components/estimators/classifiers/decision_tree_classifier.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:09.000Z
2022-03-07T01:00:43.000Z
evalml/pipelines/components/estimators/classifiers/decision_tree_classifier.py
RG4421/evalml
33c62abe6d107d1da2f54e9e44a90f18aaf916a9
[ "BSD-3-Clause" ]
null
null
null
from sklearn.tree import DecisionTreeClassifier as SKDecisionTreeClassifier from skopt.space import Integer from evalml.model_family import ModelFamily from evalml.pipelines.components.estimators import Estimator from evalml.problem_types import ProblemTypes from evalml.utils import deprecate_arg class DecisionTreeC...
42.116279
100
0.619547
12b803e1443ab6aa0e375a66c5b03d21055d25b4
5,167
py
Python
rlgraph/tests/agent_learning/short_tasks/test_impala_agent_short_task_learning.py
RLGraph/RLGraph
428fc136a9a075f29a397495b4226a491a287be2
[ "Apache-2.0" ]
290
2018-07-29T15:30:57.000Z
2022-03-19T02:46:53.000Z
rlgraph/tests/agent_learning/short_tasks/test_impala_agent_short_task_learning.py
RLGraph/RLGraph
428fc136a9a075f29a397495b4226a491a287be2
[ "Apache-2.0" ]
76
2018-10-19T08:42:01.000Z
2020-05-03T08:34:21.000Z
rlgraph/tests/agent_learning/short_tasks/test_impala_agent_short_task_learning.py
RLGraph/RLGraph
428fc136a9a075f29a397495b4226a491a287be2
[ "Apache-2.0" ]
41
2018-10-30T07:05:05.000Z
2022-03-01T08:28:24.000Z
# Copyright 2018/2019 The RLgraph 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.746154
110
0.632669
3437d00ed5f7105beec81a5e1cf23d8df60d4ef6
405
py
Python
src/recipe_project/asgi.py
mho85/recipe-app-api
f08759e0fe15d11ecb18298ece6b2b458fdc68c5
[ "MIT" ]
1
2021-03-29T16:51:49.000Z
2021-03-29T16:51:49.000Z
src/recipe_project/asgi.py
mho85/recipe-app-api
f08759e0fe15d11ecb18298ece6b2b458fdc68c5
[ "MIT" ]
null
null
null
src/recipe_project/asgi.py
mho85/recipe-app-api
f08759e0fe15d11ecb18298ece6b2b458fdc68c5
[ "MIT" ]
null
null
null
""" ASGI config for recipe_project 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.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
23.823529
78
0.792593
f82946dc5e207fb118e6d027b7db989cdfd81762
8,076
py
Python
frappe/contacts/doctype/contact/contact.py
Vishalcse/frappev13beta
6ef0b68d4203cd859db85417818c5889b4359008
[ "MIT" ]
null
null
null
frappe/contacts/doctype/contact/contact.py
Vishalcse/frappev13beta
6ef0b68d4203cd859db85417818c5889b4359008
[ "MIT" ]
null
null
null
frappe/contacts/doctype/contact/contact.py
Vishalcse/frappev13beta
6ef0b68d4203cd859db85417818c5889b4359008
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import cstr, has_gravatar, cint from frappe import _ from frappe.model.document import Document from frappe.core.doctype...
31.181467
110
0.712729
24ab857265db694610154b44c5ada9c2fca1ff39
24
py
Python
Code/MQTT/main.py
ykzzyk/SmartHomeRemoteControl_STM32
509417c94eac491182cd074039b773848c30421b
[ "MIT" ]
null
null
null
Code/MQTT/main.py
ykzzyk/SmartHomeRemoteControl_STM32
509417c94eac491182cd074039b773848c30421b
[ "MIT" ]
null
null
null
Code/MQTT/main.py
ykzzyk/SmartHomeRemoteControl_STM32
509417c94eac491182cd074039b773848c30421b
[ "MIT" ]
null
null
null
import mqtt mqtt.main()
8
11
0.75
b13d960843aa133057117eb40b6cc5f5871cb112
37,754
py
Python
hail/python/hailtop/batch/job.py
jkgoodrich/hail
95ce1d792b553a5e97b390d349237a7ed86fbf98
[ "MIT" ]
null
null
null
hail/python/hailtop/batch/job.py
jkgoodrich/hail
95ce1d792b553a5e97b390d349237a7ed86fbf98
[ "MIT" ]
null
null
null
hail/python/hailtop/batch/job.py
jkgoodrich/hail
95ce1d792b553a5e97b390d349237a7ed86fbf98
[ "MIT" ]
null
null
null
import re import warnings import dill import os import functools import inspect import textwrap from shlex import quote as shq from io import BytesIO from typing import Union, Optional, Dict, List, Set, Tuple, Callable, Any, cast from . import backend, resource as _resource, batch # pylint: disable=cyclic-import fro...
33.499556
186
0.561636
6bc58139794c6f0fcfe21586590c3dc0c27adc22
44,427
py
Python
include/configobj/src/tests/test_configobj.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
include/configobj/src/tests/test_configobj.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
include/configobj/src/tests/test_configobj.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
# *- coding: utf-8 -*- # pylint: disable=wildcard-import, missing-docstring, no-self-use, bad-continuation # pylint: disable=invalid-name, redefined-outer-name, too-few-public-methods from __future__ import unicode_literals import os import re import warnings from codecs import BOM_UTF8 from warnings import catch_warn...
31.397173
144
0.545749
14451d01b4ed22ca8f47fa846b6b8f31623169db
1,688
py
Python
config/wsgi.py
nxxc/nxxcgram
bad344d92f75ee46bfadf3b5dacbe99668c9e9ca
[ "MIT" ]
null
null
null
config/wsgi.py
nxxc/nxxcgram
bad344d92f75ee46bfadf3b5dacbe99668c9e9ca
[ "MIT" ]
8
2020-06-05T19:40:44.000Z
2022-02-26T13:25:34.000Z
config/wsgi.py
nxxc/nxxcgram
bad344d92f75ee46bfadf3b5dacbe99668c9e9ca
[ "MIT" ]
null
null
null
""" WSGI config for nxxcgram project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION``...
41.170732
79
0.796801
72705a102cdb744e97607dc473f2ab0883771e53
1,839
py
Python
cloudhands/web/test/test_indexer.py
cedadev/cloudhands-web
2e83df3111c286a54ef3957e873c9ea29c523366
[ "BSD-3-Clause" ]
null
null
null
cloudhands/web/test/test_indexer.py
cedadev/cloudhands-web
2e83df3111c286a54ef3957e873c9ea29c523366
[ "BSD-3-Clause" ]
null
null
null
cloudhands/web/test/test_indexer.py
cedadev/cloudhands-web
2e83df3111c286a54ef3957e873c9ea29c523366
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # encoding: UTF-8 import tempfile import unittest import whoosh.fields from whoosh.query import Or from whoosh.query import FuzzyTerm from whoosh.query import Term from cloudhands.web.indexer import create as create_index from cloudhands.web.indexer import indexer from cloudhands.web.indexer i...
29.66129
72
0.610114
089f98dbb0b31e145b7bbffe33efde16a8c56e9b
12,822
py
Python
crowdstrike/src/crowdstrike/rule/yara_master_importer.py
djds/connectors
5fcbeb447345f2cbda1cfdbd0f9471ec60de4f7f
[ "Apache-2.0" ]
null
null
null
crowdstrike/src/crowdstrike/rule/yara_master_importer.py
djds/connectors
5fcbeb447345f2cbda1cfdbd0f9471ec60de4f7f
[ "Apache-2.0" ]
2
2021-04-29T11:32:29.000Z
2021-05-31T14:23:52.000Z
crowdstrike/src/crowdstrike/rule/yara_master_importer.py
0snap/connectors
a2ee3328504fd89a634fe57844d91c6be1c48dd4
[ "Apache-2.0" ]
1
2021-11-01T16:05:15.000Z
2021-11-01T16:05:15.000Z
# -*- coding: utf-8 -*- """OpenCTI CrowdStrike YARA master importer module.""" import itertools import zipfile from datetime import datetime from io import BytesIO from typing import Any, Dict, List, Mapping, NamedTuple, Optional, Tuple from crowdstrike_client.api.intel import Reports, Rules from crowdstrike_client.a...
33.131783
119
0.624942
3c4c64c8c646f246e6b591bddf54d2c637de0ef3
8,820
py
Python
core/jobs/types/model_property_test.py
nbaddam/oppia
e58b81e57007f25537ba8ed71b42bfd9ae661799
[ "Apache-2.0" ]
5,422
2015-08-14T01:56:44.000Z
2022-03-31T23:31:56.000Z
core/jobs/types/model_property_test.py
nbaddam/oppia
e58b81e57007f25537ba8ed71b42bfd9ae661799
[ "Apache-2.0" ]
14,178
2015-08-14T05:21:45.000Z
2022-03-31T23:54:10.000Z
core/jobs/types/model_property_test.py
nbaddam/oppia
e58b81e57007f25537ba8ed71b42bfd9ae661799
[ "Apache-2.0" ]
3,574
2015-08-14T04:20:06.000Z
2022-03-29T01:52:37.000Z
# coding: utf-8 # # Copyright 2021 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...
38.017241
80
0.723356
f2cf509e92d5dded6662c3872dc7fa69db779453
9,266
py
Python
src/greengrassHelloWorld.py
rdando/deeplens-cropped-face-detection
8151cf04e0d765ca343a13ba548278640dfb81ae
[ "MIT" ]
1
2019-06-29T10:13:54.000Z
2019-06-29T10:13:54.000Z
src/greengrassHelloWorld.py
rdando/deeplens-cropped-face-detection
8151cf04e0d765ca343a13ba548278640dfb81ae
[ "MIT" ]
null
null
null
src/greengrassHelloWorld.py
rdando/deeplens-cropped-face-detection
8151cf04e0d765ca343a13ba548278640dfb81ae
[ "MIT" ]
null
null
null
# ***************************************************** # * # Copyright 2018 Amazon.com, Inc. or its affiliates. * # All Rights Reserved. * # * # ******************************************...
43.502347
114
0.593136
67a7613cd5994d30092e4f0caf3675998f5d14d1
11,979
py
Python
conans/model/conan_file.py
ninjayash/conan
00fbc925fde93a148abfbcebf236c6b4f2da0572
[ "MIT" ]
1
2020-11-07T21:25:57.000Z
2020-11-07T21:25:57.000Z
conans/model/conan_file.py
ninjayash/conan
00fbc925fde93a148abfbcebf236c6b4f2da0572
[ "MIT" ]
null
null
null
conans/model/conan_file.py
ninjayash/conan
00fbc925fde93a148abfbcebf236c6b4f2da0572
[ "MIT" ]
null
null
null
import os from contextlib import contextmanager import six from six import string_types from conans.client import tools from conans.client.output import ScopedOutput from conans.client.tools.env import environment_append, no_op, pythonpath from conans.client.tools.oss import OSInfo from conans.errors import ConanExce...
39.019544
106
0.656065
f5b1fff7abdcadeabda4a261234062241206f3a7
2,359
py
Python
yardstick/benchmark/scenarios/lib/create_keypair.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/scenarios/lib/create_keypair.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/scenarios/lib/create_keypair.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, ...
32.763889
78
0.598559
5ad53ab119ec94240a7a76b5e6ae96e61655679b
2,969
py
Python
devutils/run_other_pylint.py
braewoods/ungoogled-chromium
fecd436a5793ecc94879dc4eef340ab44dc5c35f
[ "BSD-3-Clause" ]
15,642
2015-06-13T19:55:52.000Z
2022-03-31T22:21:23.000Z
devutils/run_other_pylint.py
braewoods/ungoogled-chromium
fecd436a5793ecc94879dc4eef340ab44dc5c35f
[ "BSD-3-Clause" ]
1,579
2015-12-13T18:55:01.000Z
2022-03-31T18:55:11.000Z
devutils/run_other_pylint.py
braewoods/ungoogled-chromium
fecd436a5793ecc94879dc4eef340ab44dc5c35f
[ "BSD-3-Clause" ]
890
2016-01-06T01:01:51.000Z
2022-03-31T17:18:30.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Run Pylint over any module""" import argparse import os import shutil from pathlib import Path from pylint import l...
28.009434
98
0.629505
ad0266b8eec5ec067bd4765c6e6f4c46f690599a
1,992
py
Python
safr-mass-delete/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
1
2020-09-15T15:36:07.000Z
2020-09-15T15:36:07.000Z
safr-mass-delete/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
12
2020-03-03T17:48:22.000Z
2022-03-12T00:02:51.000Z
safr-mass-delete/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
2
2019-08-16T13:01:05.000Z
2020-06-14T15:04:57.000Z
#!/usr/bin/python3 import requests import base64 import pandas as pd from datetime import datetime import logging from concurrent.futures import ThreadPoolExecutor import threading logging.basicConfig(filename='app.log', filemode='w',level=logging.DEBUG, format='"%(asctime)s"; "%(levelname)s"; "%(message)s"')...
32.655738
168
0.698293
65a91249a90d5888435b4aacbef157645e0c3f22
227
py
Python
lib/starbound_dashboard/core.py
NateScarlet/StarboundDashboard
14ec581a559446a67fc07cf709074c9dfee7f533
[ "MIT" ]
1
2018-06-19T02:34:31.000Z
2018-06-19T02:34:31.000Z
lib/starbound_dashboard/core.py
NateScarlet/StarboundDashboard
14ec581a559446a67fc07cf709074c9dfee7f533
[ "MIT" ]
1
2019-04-19T06:16:08.000Z
2019-04-19T06:16:08.000Z
lib/starbound_dashboard/core.py
NateScarlet/StarboundDashboard
14ec581a559446a67fc07cf709074c9dfee7f533
[ "MIT" ]
null
null
null
"""App core.""" from quart import Quart, websocket from . import config, filetools APP = Quart(__name__, root_path=filetools.dist_path()) APP.config.from_object(config) APP.config.from_pyfile(config.CONFIG_FILE, silent=True)
25.222222
55
0.779736
59a51abc94c1df12a8a65ee40d02ba3e1d6ce321
594
py
Python
userbot/modules/misc/restart.py
ZJRDroid/PaperplaneRemix
b41dffad17cce076f174a3fb36f0aeba1177cefa
[ "MIT" ]
null
null
null
userbot/modules/misc/restart.py
ZJRDroid/PaperplaneRemix
b41dffad17cce076f174a3fb36f0aeba1177cefa
[ "MIT" ]
null
null
null
userbot/modules/misc/restart.py
ZJRDroid/PaperplaneRemix
b41dffad17cce076f174a3fb36f0aeba1177cefa
[ "MIT" ]
1
2019-12-21T03:44:42.000Z
2019-12-21T03:44:42.000Z
import sys from os import execl from userbot import BOTLOG, BOTLOG_CHATID from userbot.events import register @register(outgoing=True, pattern=r"^\.restart$") async def knocksomesense(event): await event.edit("`Hold tight! I just need a second to be back up....`") if BOTLOG: await event.client.send_m...
31.263158
76
0.646465
1f4de03d3cf29ff14f3bc20fea119fefc8043fff
49,188
py
Python
mindspore/ops/operations/_quant_ops.py
wudenggang/mindspore
95e75c3119909cc5c7c3098232851d1d7bc4ef8c
[ "Apache-2.0" ]
2
2020-08-12T16:14:40.000Z
2020-12-04T03:05:57.000Z
mindspore/ops/operations/_quant_ops.py
wudenggang/mindspore
95e75c3119909cc5c7c3098232851d1d7bc4ef8c
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/_quant_ops.py
wudenggang/mindspore
95e75c3119909cc5c7c3098232851d1d7bc4ef8c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0(the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
50.81405
120
0.641356
e468a1e90ac113a11395795ea2aad364ddc10b59
1,918
py
Python
src_py/hat/syslog/server/common.py
hat-open/hat-syslog
c4e8bf31d49214adc4319235124b29a8fab4f27d
[ "Apache-2.0" ]
1
2022-02-01T13:42:53.000Z
2022-02-01T13:42:53.000Z
src_py/hat/syslog/server/common.py
hat-open/hat-syslog
c4e8bf31d49214adc4319235124b29a8fab4f27d
[ "Apache-2.0" ]
null
null
null
src_py/hat/syslog/server/common.py
hat-open/hat-syslog
c4e8bf31d49214adc4319235124b29a8fab4f27d
[ "Apache-2.0" ]
null
null
null
"""Common data structures and functions""" import typing from hat import json from hat.syslog.common import (Facility, Msg, Severity, msg_from_json, msg_to_json) from hat.syslog.common import * ...
30.935484
75
0.629301
ac10dac94ce2282f9e1a9ced29ac6a5e820bf53a
3,603
py
Python
src/lib/Bcfg2/version.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/version.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/version.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
import re __version__ = "1.3.0" class Bcfg2VersionInfo(tuple): v_re = re.compile(r'(\d+)(\w+)(\d+)') def __new__(cls, vstr): (major, minor, rest) = vstr.split(".") match = cls.v_re.match(rest) if match: micro, releaselevel, serial = match.groups() else: ...
31.060345
79
0.493478
f3a12d9eadb9dd7bb950a91319642d37a5ce1350
634
py
Python
backend/manage.py
crowdbotics-apps/arvitech-29145
4e4eb8e3ba446841620f820b310ee859f3914fe5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/arvitech-29145
4e4eb8e3ba446841620f820b310ee859f3914fe5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/arvitech-29145
4e4eb8e3ba446841620f820b310ee859f3914fe5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'arvitech_29145.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise...
28.818182
78
0.68612
025052b61f49455b40bf9e453e1ae34757415248
829
py
Python
xitorch/_impls/integrate/fixed_quad.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_impls/integrate/fixed_quad.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_impls/integrate/fixed_quad.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
import numpy as np import torch # no gradient flowing in the following functions def leggauss(fcn, xl, xu, params, n=100, **unused): """ Performing 1D integration using Legendre-Gaussian quadrature Keyword arguments ----------------- n: int The number of integration points. ...
31.884615
99
0.54041
8cd049ee06fdc6be010122ce17da2ee562959987
30,328
py
Python
libs/canvas.py
Harshwardhan619/labelImg-modified
421b3bd69150040102e8a5067fd726261bdae689
[ "MIT" ]
null
null
null
libs/canvas.py
Harshwardhan619/labelImg-modified
421b3bd69150040102e8a5067fd726261bdae689
[ "MIT" ]
2
2021-03-31T19:21:04.000Z
2021-12-13T20:28:48.000Z
libs/canvas.py
Harshwardhan619/labelImg-modified
421b3bd69150040102e8a5067fd726261bdae689
[ "MIT" ]
null
null
null
try: from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * except ImportError: from PyQt4.QtGui import * from PyQt4.QtCore import * #from PyQt4.QtOpenGL import * from libs.shape import Shape from libs.utils import distance CURSOR_DEFAULT = Qt.ArrowCursor CURSOR_POINT ...
36.716707
122
0.552658
3e573fa4a269fc325e13eb70e635681ebbffe53b
6,101
py
Python
base.py
mgrabovsky/cryptoverif-py-lib
d1b58e7c74edb95e4b3c526ffc48c751a142ab69
[ "MIT" ]
1
2017-05-22T18:39:42.000Z
2017-05-22T18:39:42.000Z
base.py
mgrabovsky/cryptoverif-py-lib
d1b58e7c74edb95e4b3c526ffc48c751a142ab69
[ "MIT" ]
null
null
null
base.py
mgrabovsky/cryptoverif-py-lib
d1b58e7c74edb95e4b3c526ffc48c751a142ab69
[ "MIT" ]
1
2015-11-04T14:28:23.000Z
2015-11-04T14:28:23.000Z
import crypto import io, math, os, random, struct, sys import functools import socket from cryptography import utils from cryptography.hazmat.primitives.asymmetric import rsa class BadCall(Exception): pass class MatchFail(Exception): pass class Abort(Exception): pass class BadFile(Exception): pass ...
24.902041
85
0.473037
ba5357a2ca52f0f48536865e3b2e6d9a9441af04
8,175
py
Python
tensorforce/core/networks/network.py
CAVED123/Tensorforce
823177f77f9047b1e71eccfffc08315ed1636878
[ "Apache-2.0" ]
null
null
null
tensorforce/core/networks/network.py
CAVED123/Tensorforce
823177f77f9047b1e71eccfffc08315ed1636878
[ "Apache-2.0" ]
null
null
null
tensorforce/core/networks/network.py
CAVED123/Tensorforce
823177f77f9047b1e71eccfffc08315ed1636878
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Tensorforce Team. 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 la...
39.302885
96
0.620306
ae940ba287bb380135ece64c07967d4b1bba107e
1,695
py
Python
cirq/study/compute_displays_result.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
2
2019-04-02T10:22:21.000Z
2019-06-19T04:54:04.000Z
cirq/study/compute_displays_result.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
36
2019-04-03T23:03:51.000Z
2019-05-15T23:49:01.000Z
cirq/study/compute_displays_result.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
2
2019-04-03T22:55:05.000Z
2019-04-24T23:24:53.000Z
# Copyright 2018 The Cirq Developers # # 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 ...
32.596154
74
0.662537
e344f574bbd3d27509a27c429ae2e04c3ceac57a
4,653
py
Python
graph_objs/isosurface/caps/_z.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/isosurface/caps/_z.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/isosurface/caps/_z.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "isosurface.caps" _path_str = "isosurface.caps.z" _valid_props = {"fill", "show"} # fill ...
31.02
82
0.546099
c9e9a030f2f046705c651ce45f41e539c2aaee18
525
py
Python
apps/amo/tests/test_pfs.py
muffinresearch/addons-server
66613e9262a5e9475254091552de28a53b5b4072
[ "BSD-3-Clause" ]
1
2015-10-29T06:55:20.000Z
2015-10-29T06:55:20.000Z
apps/amo/tests/test_pfs.py
magopian/olympia
70cad15111a89e3d5c715cbade8925b12d1b98dc
[ "BSD-3-Clause" ]
5
2021-02-02T23:09:35.000Z
2021-09-08T02:47:20.000Z
apps/amo/tests/test_pfs.py
Acidburn0zzz/olympia
7f766a5fdff255b827333d4fb01aa77546ed8c70
[ "BSD-3-Clause" ]
null
null
null
import amo import amo.tests from services.pfs import get_output from pyquery import PyQuery as pq class TestPfs(amo.tests.TestCase): def test_xss(self): for k in ['name', 'mimetype', 'guid', 'version', 'iconUrl', 'InstallerLocation', 'InstallerHash', 'XPILocation', 'I...
30.882353
71
0.607619
f26a841684194eaed06215111aded147c61d3cc5
2,189
py
Python
aiida/backends/sqlalchemy/models/authinfo.py
janssenhenning/aiida-core
a80812c30ebb0de12f0429954508f9ceb6120d34
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/backends/sqlalchemy/models/authinfo.py
janssenhenning/aiida-core
a80812c30ebb0de12f0429954508f9ceb6120d34
[ "MIT", "BSD-3-Clause" ]
1
2022-02-18T16:09:53.000Z
2022-02-18T16:09:53.000Z
aiida/backends/sqlalchemy/models/authinfo.py
unkcpz/aiida_core
bb92dd56cc1bba142df2c48f1a73ca6b809568dc
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.537037
106
0.613065
e5ca3e98dc4df0fafa25d668bf0c1996a4cad8e3
9,889
py
Python
bc/inlineindex/migrations/0006_image_block.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/inlineindex/migrations/0006_image_block.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/inlineindex/migrations/0006_image_block.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
# Generated by Django 2.2.10 on 2020-03-24 16:00 from django.db import migrations import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.embeds.blocks import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ("inlineind...
43.756637
151
0.249469
fcc9b146aa2ba31fc7990ee1111a2cfd5e3e2bf0
4,869
py
Python
opensearch/serializer.py
rushiagr/opensearch-py-1
497468f254cacfb998c102bafce9607d0f6d0452
[ "Apache-2.0" ]
null
null
null
opensearch/serializer.py
rushiagr/opensearch-py-1
497468f254cacfb998c102bafce9607d0f6d0452
[ "Apache-2.0" ]
null
null
null
opensearch/serializer.py
rushiagr/opensearch-py-1
497468f254cacfb998c102bafce9607d0f6d0452
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # # Licensed to Elasticsearch B.V. under...
27.664773
85
0.624153
dc5335dc8fade150ac0c0e9e7ed2e769b0a581ef
7,993
py
Python
python/cudf/cudf/utils/cudautils.py
hafixo/cudf
7f91a17a967b0e0b502d56d37818aa0461d38c67
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/utils/cudautils.py
hafixo/cudf
7f91a17a967b0e0b502d56d37818aa0461d38c67
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/utils/cudautils.py
hafixo/cudf
7f91a17a967b0e0b502d56d37818aa0461d38c67
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. from functools import lru_cache import cupy import numpy as np from numba import cuda from cudf.utils.utils import ( check_equals_float, check_equals_int, mask_bitsize, mask_get, rint, ) try: # Numba >= 0.49 from numba.np import numpy_support exc...
25.951299
78
0.602277
c789ba1dbed3ab090d19b25ec3c1ead583d5ca37
468
py
Python
tbot/migrations/20190505_01_HmBmL-twitch-discord-live-notification.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
null
null
null
tbot/migrations/20190505_01_HmBmL-twitch-discord-live-notification.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
10
2022-02-14T11:40:20.000Z
2022-03-09T22:44:03.000Z
tbot/migrations/20190505_01_HmBmL-twitch-discord-live-notification.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
1
2020-09-19T16:38:24.000Z
2020-09-19T16:38:24.000Z
""" twitch_discord_live_notification """ from yoyo import step __depends__ = {'20190504_02_ZJgxR-discord-commands'} steps = [ step(''' CREATE TABLE `twitch_discord_live_notification` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `channel_id` VARCHAR(36) NOT NULL, `webhook_url` VARC...
22.285714
54
0.632479
fb1866283b550131113aa54391627e43e19c0e1e
557
py
Python
setup.py
udit-saxena/sumologic-python-sdk
4731badc675226efd75fd996a8f93fa8f51e041f
[ "Apache-2.0" ]
null
null
null
setup.py
udit-saxena/sumologic-python-sdk
4731badc675226efd75fd996a8f93fa8f51e041f
[ "Apache-2.0" ]
null
null
null
setup.py
udit-saxena/sumologic-python-sdk
4731badc675226efd75fd996a8f93fa8f51e041f
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name="sumologic-sdk", version="0.1.8", packages=find_packages(), install_requires=['requests>=2.2.1'], # PyPI metadata author="Yoway Buorn, Melchi Salins", author_email="it@sumologic.com, melchisalins@icloud.com", description="Sumo Logi...
32.764706
121
0.716338
4614e0602febc0abe013475ed8d46a6ea1c19a8c
3,383
py
Python
pycomm3/cip/pccc.py
SISAutomationIMA/pycomm3
e98917ba0e9ad06e6cadc15b4d2c9735fd029ec1
[ "MIT" ]
185
2019-07-09T11:59:47.000Z
2022-03-31T13:22:13.000Z
pycomm3/cip/pccc.py
SISAutomationIMA/pycomm3
e98917ba0e9ad06e6cadc15b4d2c9735fd029ec1
[ "MIT" ]
92
2020-01-27T02:16:42.000Z
2022-03-09T02:10:50.000Z
pycomm3/cip/pccc.py
SISAutomationIMA/pycomm3
e98917ba0e9ad06e6cadc15b4d2c9735fd029ec1
[ "MIT" ]
63
2019-11-25T13:45:08.000Z
2022-03-31T06:08:42.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2021 Ian Ottoway <ian@ottoway.dev> # Copyright (c) 2014 Agostino Ruscito <ruscito@gmail.com> # # 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 withou...
24.693431
88
0.608927
450b041812a428b027242845ba41855c5a686512
16,747
py
Python
step/utils/Quaternions.py
1suancaiyu/take_an_emotion_walk
693704b48757a45750dea528811a09a18afdf1b1
[ "MIT" ]
23
2020-07-10T07:24:31.000Z
2021-11-01T02:10:44.000Z
step/utils/Quaternions.py
fanyuuuu/take_an_emotion_walk
881b90611ca6a964794997f15e9721eade502803
[ "MIT" ]
6
2020-07-23T09:38:14.000Z
2021-11-02T05:19:02.000Z
step/utils/Quaternions.py
fanyuuuu/take_an_emotion_walk
881b90611ca6a964794997f15e9721eade502803
[ "MIT" ]
7
2020-09-17T02:24:16.000Z
2021-07-21T07:01:52.000Z
import numpy as np class Quaternions: """ Quaternions is a wrapper around a numpy ndarray that allows it to act as if it were an narray of a quaternion data type. Therefore addition, subtraction, multiplication, division, negation, absolute, are all defined in terms of quaternion operatio...
33.427146
120
0.49794
4a3606e044b1937aee1d7ea5605783dd6db49c9f
186
py
Python
pywps/response/status.py
geotom/pywps
7f228ff17594912664073a629b2c2ed9d4f5f615
[ "MIT" ]
117
2015-12-30T22:28:46.000Z
2022-03-18T09:18:58.000Z
pywps/response/status.py
geotom/pywps
7f228ff17594912664073a629b2c2ed9d4f5f615
[ "MIT" ]
533
2015-12-20T12:06:13.000Z
2022-03-30T11:11:31.000Z
pywps/response/status.py
geotom/pywps
7f228ff17594912664073a629b2c2ed9d4f5f615
[ "MIT" ]
123
2016-01-25T17:32:39.000Z
2022-03-23T12:52:59.000Z
from collections import namedtuple _WPS_STATUS = namedtuple('WPSStatus', ['UNKNOWN', 'ACCEPTED', 'STARTED', 'PAUSED', 'SUCCEEDED', 'FAILED']) WPS_STATUS = _WPS_STATUS(0, 1, 2, 3, 4, 5)
37.2
106
0.704301
a0cbaa34e910a1e528eadd278f4af70ae17a3a07
3,400
py
Python
Syllabus.py
anderson-github-classroom/syllabus-assignment-lightwell64646
cc7bdafe35b58429dd2d51eb2f052703bb9de96c
[ "MIT" ]
null
null
null
Syllabus.py
anderson-github-classroom/syllabus-assignment-lightwell64646
cc7bdafe35b58429dd2d51eb2f052703bb9de96c
[ "MIT" ]
null
null
null
Syllabus.py
anderson-github-classroom/syllabus-assignment-lightwell64646
cc7bdafe35b58429dd2d51eb2f052703bb9de96c
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,md,py # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Name(s) # Nathan Pestes ...
24.817518
382
0.654706
f24c68d932ca1cb4b039dd4e8bb8f33fda5d32c6
42,453
py
Python
smCounter.py
xuchang116/DeepCall
8abecb43b6163af8b0b9c026492c9fc79260e82a
[ "MIT" ]
24
2017-01-04T02:08:25.000Z
2022-01-04T08:31:30.000Z
smCounter.py
xuchang116/DeepCall
8abecb43b6163af8b0b9c026492c9fc79260e82a
[ "MIT" ]
3
2018-02-13T08:32:09.000Z
2022-02-28T11:58:28.000Z
smCounter.py
xuchang116/DeepCall
8abecb43b6163af8b0b9c026492c9fc79260e82a
[ "MIT" ]
8
2017-07-03T07:30:56.000Z
2022-01-05T10:26:15.000Z
# smCounter: barcode-aware variant caller # Chang Xu. 23May2016; online version of 10APR2017 import os import datetime import subprocess import math import operator import argparse import random import multiprocessing import traceback from collections import defaultdict # 3rd party modules import pysam import scipy.s...
45.796117
399
0.589546
a25fe2928329cd1bc55c19e7127af63a005ae581
343
py
Python
heartbeat_demo/ipfs_connect.py
drbh/nucypher-ipfs
c285f21dc10fb9b61f0112267e438ad59dc6e4ed
[ "MIT" ]
3
2019-03-18T13:55:17.000Z
2019-03-24T09:15:24.000Z
heartbeat_demo/ipfs_connect.py
drbh/nucypher-ipfs
c285f21dc10fb9b61f0112267e438ad59dc6e4ed
[ "MIT" ]
null
null
null
heartbeat_demo/ipfs_connect.py
drbh/nucypher-ipfs
c285f21dc10fb9b61f0112267e438ad59dc6e4ed
[ "MIT" ]
null
null
null
import ipfsapi try: ipfs_gateway_api = ipfsapi.connect('127.0.0.1', 5001) except Exception as e: # should be more specific ConnectionRefusedError, NewConnectionError, MaxRetryError not sure print("Automatic Mode A Public Gateway will be used as a fallback") ipfs_gateway_api = ipfsapi.connect('https://i...
38.111111
115
0.752187
8f8c153ee9d14c38b96edf9c61bcc81fd3200285
7,366
py
Python
docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/etl/vcf2delta.py
heuermh/glow
4a414c62a28fddce6f4428ecdb746a2a58251fc1
[ "Apache-2.0" ]
null
null
null
docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/etl/vcf2delta.py
heuermh/glow
4a414c62a28fddce6f4428ecdb746a2a58251fc1
[ "Apache-2.0" ]
null
null
null
docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/etl/vcf2delta.py
heuermh/glow
4a414c62a28fddce6f4428ecdb746a2a58251fc1
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # MAGIC ### Write VCF files into <img width="175px" src="https://docs.delta.io/latest/_static/delta-lake-logo.png"> # MAGIC # MAGIC ### using Glow <img src="https://databricks-knowledge-repo-images.s3.us-east-2.amazonaws.com/HLS/glow/project_glow_logo.png" alt="logo"...
30.188525
357
0.675944
633900aea75cfb5ea59eba9ee23221bceeb4f9b6
906
py
Python
tests/test_ptrello.py
Ibistylus/ptrello
b68ac54ee0fa92051b45b6b2dc116ee01189868d
[ "MIT" ]
null
null
null
tests/test_ptrello.py
Ibistylus/ptrello
b68ac54ee0fa92051b45b6b2dc116ee01189868d
[ "MIT" ]
null
null
null
tests/test_ptrello.py
Ibistylus/ptrello
b68ac54ee0fa92051b45b6b2dc116ee01189868d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `ptrello` package.""" import unittest from click.testing import CliRunner from ptrello import api from ptrello import cli class TestPtrello(unittest.TestCase): """Tests for `ptrello` package.""" def setUp(self): """Set up...
25.885714
75
0.607064
fb9c946c53949ec9b3f3de5a8eeac27150ab16d3
1,209
py
Python
build_gcc_i386.py
SydOS/toolchains
bb09e4a929813b9b305182c596192d22f89e290d
[ "MIT" ]
null
null
null
build_gcc_i386.py
SydOS/toolchains
bb09e4a929813b9b305182c596192d22f89e290d
[ "MIT" ]
null
null
null
build_gcc_i386.py
SydOS/toolchains
bb09e4a929813b9b305182c596192d22f89e290d
[ "MIT" ]
null
null
null
# File: build_gcc_i686.py # # Copyright (c) 2018 The SydOS Team # # 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...
44.777778
80
0.779156
97251eaa801eb4ad81c4ddf52350c9001029e1bc
95
py
Python
src/vicode/lsp/__init__.py
ousttrue/vicode
ebcd68eaa8239553960d6ff9048299f0c2650aca
[ "MIT" ]
null
null
null
src/vicode/lsp/__init__.py
ousttrue/vicode
ebcd68eaa8239553960d6ff9048299f0c2650aca
[ "MIT" ]
null
null
null
src/vicode/lsp/__init__.py
ousttrue/vicode
ebcd68eaa8239553960d6ff9048299f0c2650aca
[ "MIT" ]
null
null
null
from . import client from .import protocol __all__ = [ 'client', 'protocol', ]
11.875
22
0.578947
0f45fceb5fda710e5db150d9c8b4dc3d81ee917c
3,099
py
Python
src/train_siamese.py
hou-yz/FairMOT
207ad7ba6bd0807de0333d2e423132772a1f2968
[ "MIT" ]
null
null
null
src/train_siamese.py
hou-yz/FairMOT
207ad7ba6bd0807de0333d2e423132772a1f2968
[ "MIT" ]
null
null
null
src/train_siamese.py
hou-yz/FairMOT
207ad7ba6bd0807de0333d2e423132772a1f2968
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import torch import torch.utils.data from torchvision.transforms import transforms as T from lib.opts import opts, update_dataset_info_and_set_heads from lib.models.model import create_model, load_mo...
36.034884
98
0.645692
8393ff33679552b8c6081a3e3d0246c297622f98
221
py
Python
script/statsd_script_before.py
jonathanyeh0723/graphite-and-grafana
f0a946b0a1f42df708ab07d4087806dee07cc874
[ "Apache-2.0" ]
null
null
null
script/statsd_script_before.py
jonathanyeh0723/graphite-and-grafana
f0a946b0a1f42df708ab07d4087806dee07cc874
[ "Apache-2.0" ]
null
null
null
script/statsd_script_before.py
jonathanyeh0723/graphite-and-grafana
f0a946b0a1f42df708ab07d4087806dee07cc874
[ "Apache-2.0" ]
null
null
null
import random import time while True: random.seed() random_sleep_interval = random.randint(5, 15) print('Got random interval to sleep: {}'.format(random_sleep_interval)) time.sleep(random_sleep_interval)
24.555556
75
0.742081
1043284b8581d32d4583435e78c962e1668bc794
7,765
py
Python
tests/unit/test_csv.py
treatortrick/apiritif
4a81dbff1e3c97062b7cc4917ce96dd8d792abbd
[ "Apache-2.0" ]
null
null
null
tests/unit/test_csv.py
treatortrick/apiritif
4a81dbff1e3c97062b7cc4917ce96dd8d792abbd
[ "Apache-2.0" ]
null
null
null
tests/unit/test_csv.py
treatortrick/apiritif
4a81dbff1e3c97062b7cc4917ce96dd8d792abbd
[ "Apache-2.0" ]
null
null
null
import os import tempfile from unittest import TestCase from apiritif.loadgen import Params, Supervisor, ApiritifPlugin from apiritif.csv import CSVReaderPerThread, thread_data from apiritif.utils import NormalShutdown from tests.unit import RESOURCES_DIR class TestCSV(TestCase): def setUp(self): thread_...
36.285047
109
0.572183
3aa9d24ed76235dd40a592e7f844bcab2b81800e
285
py
Python
labml_nn/activations/__init__.py
Study-Repos-Forks/annotated_deep_learning_paper_implementations
6a41c82b30157fb146ac4d7f455e57a8e7aa7565
[ "MIT" ]
1
2020-08-26T03:55:42.000Z
2020-08-26T03:55:42.000Z
labml_nn/activations/__init__.py
Study-Repos-Forks/annotated_deep_learning_paper_implementations
6a41c82b30157fb146ac4d7f455e57a8e7aa7565
[ "MIT" ]
null
null
null
labml_nn/activations/__init__.py
Study-Repos-Forks/annotated_deep_learning_paper_implementations
6a41c82b30157fb146ac4d7f455e57a8e7aa7565
[ "MIT" ]
null
null
null
""" --- title: Neural Network Activation Functions summary: > A set of PyTorch implementations/tutorials related to neural network activations --- # Neural Networks Activations * [Fuzzy Tiling Activations](fta/index.html) * 🚧 [Swish](swish/index.html) """ from .swish import Swish
19
81
0.74386
d1512fa42290d059ca6cf44c9ba9934dcead5feb
2,190
py
Python
userbot/plugins/alive.py
Kishoth-45/TamilUserBot-1
b85ac3bf68e65dd3803cf77fb0a1a40b0e312b4d
[ "MIT" ]
null
null
null
userbot/plugins/alive.py
Kishoth-45/TamilUserBot-1
b85ac3bf68e65dd3803cf77fb0a1a40b0e312b4d
[ "MIT" ]
null
null
null
userbot/plugins/alive.py
Kishoth-45/TamilUserBot-1
b85ac3bf68e65dd3803cf77fb0a1a40b0e312b4d
[ "MIT" ]
null
null
null
"""Check if tamilBot alive. If you change these, you become the gayest gay such that even the gay world will disown you.""" # CREDITS: @WhySooSerious, @Sur_vivor # modified by @saravanakrish # Re-written by @iMvEtRi from userbot.utils import admin_cmd from userbot.uniborgConfig import Config from userbot import ALIVE_...
35.901639
123
0.640639
4e7ee2b2c6c0f86eb92039290aafe46e9d60443e
413
py
Python
blog/migrations/0019_auto_20190922_0713.py
notme20n/semicoloncs
b9cf0cf075eec76c6dd15c2973d2e4e8eab1f699
[ "bzip2-1.0.6" ]
null
null
null
blog/migrations/0019_auto_20190922_0713.py
notme20n/semicoloncs
b9cf0cf075eec76c6dd15c2973d2e4e8eab1f699
[ "bzip2-1.0.6" ]
8
2020-02-12T03:21:37.000Z
2022-02-10T11:56:24.000Z
blog/migrations/0019_auto_20190922_0713.py
notme20n/semicoloncs
b9cf0cf075eec76c6dd15c2973d2e4e8eab1f699
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2 on 2019-09-22 04:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0018_auto_20190920_0707'), ] operations = [ migrations.AlterField( model_name='post', name='image', ...
21.736842
85
0.605327
3b4b51634fc680b287f9ef6a0dd52fe836e35c58
84,949
py
Python
geopandas/geodataframe.py
latot/geopandas
cb0c8b5ee4cf6da8e1fc70ffbd23e486f1919724
[ "BSD-3-Clause" ]
null
null
null
geopandas/geodataframe.py
latot/geopandas
cb0c8b5ee4cf6da8e1fc70ffbd23e486f1919724
[ "BSD-3-Clause" ]
null
null
null
geopandas/geodataframe.py
latot/geopandas
cb0c8b5ee4cf6da8e1fc70ffbd23e486f1919724
[ "BSD-3-Clause" ]
null
null
null
import json import warnings import numpy as np import pandas as pd from pandas import DataFrame, Series from pandas.core.accessor import CachedAccessor from shapely.geometry import mapping, shape from shapely.geometry.base import BaseGeometry from pyproj import CRS from geopandas.array import GeometryArray, Geometr...
37.839198
88
0.572614
c52bdd0c1f8edda5e974ded2c451c4092f8b68b5
660
py
Python
data_registry/process_manager/utils.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
data_registry/process_manager/utils.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
170
2021-02-12T12:52:37.000Z
2022-03-28T14:37:05.000Z
data_registry/process_manager/utils.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
import logging import requests from requests.exceptions import RequestException from data_registry.process_manager.task.exceptions import RecoverableException logger = logging.getLogger(__name__) def request(method, url, **kwargs): error_msg = kwargs.pop("error_msg", f"Request on {url} failed") consume_exc...
27.5
78
0.712121
a72055db0eb8f7327335aacb5c4c4b0184b51f7f
28,969
py
Python
tests/pyfunc/test_model_export_with_class_and_artifacts.py
margaret-databricks/mlflow
25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
[ "Apache-2.0" ]
null
null
null
tests/pyfunc/test_model_export_with_class_and_artifacts.py
margaret-databricks/mlflow
25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
[ "Apache-2.0" ]
null
null
null
tests/pyfunc/test_model_export_with_class_and_artifacts.py
margaret-databricks/mlflow
25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import json import mock from subprocess import Popen, STDOUT import numpy as np import pandas as pd import pandas.testing import pytest import sklearn.datasets import sklearn.linear_model import sklearn.neighbors import yaml import mlflow import mlflow.pyfunc import ml...
43.108631
100
0.673858
aad4c6fecc3b533efb1cdabeba8bf3651523aa70
941
py
Python
Python/2.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/2.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/2.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ ...
23.525
37
0.411265
43134c6276ef1bc547fa4b7b2a59a66188e900d5
930
py
Python
Semester II/Compiler Programming/3. RegEX DFA/regex dfa.py
STreK7/MSc.-CS
78484f5bbce9f5149da680b19626eb139cc5ca90
[ "Apache-2.0" ]
null
null
null
Semester II/Compiler Programming/3. RegEX DFA/regex dfa.py
STreK7/MSc.-CS
78484f5bbce9f5149da680b19626eb139cc5ca90
[ "Apache-2.0" ]
null
null
null
Semester II/Compiler Programming/3. RegEX DFA/regex dfa.py
STreK7/MSc.-CS
78484f5bbce9f5149da680b19626eb139cc5ca90
[ "Apache-2.0" ]
2
2021-10-12T14:01:39.000Z
2022-01-23T14:28:55.000Z
# Function to find whether the given # is Accepted by the DFA def DFA(str, N): # If n <= 1, then prNo if (N <= 1): print("No") return # To count the matched characters count = 0 # Check if the first character is C if (str[0] == 'C'): count += 1 ...
21.627907
49
0.448387
a2e8f6bbe0ee9d8f2d3a3759ad1f08bb7c69b357
2,510
py
Python
fixture/group.py
Sazulira/python_training
795d8b0f575dc61af989832b951a70dc96069842
[ "Apache-2.0" ]
null
null
null
fixture/group.py
Sazulira/python_training
795d8b0f575dc61af989832b951a70dc96069842
[ "Apache-2.0" ]
null
null
null
fixture/group.py
Sazulira/python_training
795d8b0f575dc61af989832b951a70dc96069842
[ "Apache-2.0" ]
null
null
null
from model.group import Group class GroupHelper: def __init__(self, app): self.app = app def open_groups_page(self): wd = self.app.wd if not (wd.current_url.endswith("/group.php") and len(wd.find_elements_by_name("new")) > 0): wd.find_element_by_link_text("groups"). click(...
32.179487
100
0.632669
402d144492f7ee85243f360a30bf9d4bda754ba4
1,465
py
Python
app/database/database_functions/messages.py
tayron1/Starboard-2
ff83e33e026107d94c306250827373ff2c32aa7d
[ "MIT" ]
16
2021-01-19T19:12:00.000Z
2021-12-21T12:00:04.000Z
app/database/database_functions/messages.py
Davi-the-Mudkip/Starboard-2
4de3c689ffef007e4f4a279251d107d890b69b15
[ "MIT" ]
15
2021-04-02T16:58:48.000Z
2022-03-28T06:09:49.000Z
app/database/database_functions/messages.py
Davi-the-Mudkip/Starboard-2
4de3c689ffef007e4f4a279251d107d890b69b15
[ "MIT" ]
13
2021-01-21T14:26:00.000Z
2021-09-29T18:55:17.000Z
import asyncpg from app import errors class Messages: def __init__(self, db) -> None: self.db = db async def get(self, message_id: int) -> dict: return await self.db.fetchrow( """SELECT * FROM messages WHERE id=$1""", message_id, ) async def c...
26.160714
65
0.509898
0b479eaf50e195aa824202c76c5cc45f34927641
7,243
py
Python
src/models/helpers/helpers_training.py
elbuco1/AttentionMechanismsTrajectoryPrediction
653f3f4cea55e284a68c8ab01325d8e8307d4ae1
[ "MIT" ]
35
2019-10-20T11:43:58.000Z
2022-03-10T10:49:14.000Z
src/models/helpers/helpers_training.py
elbuco1/trajectory
653f3f4cea55e284a68c8ab01325d8e8307d4ae1
[ "MIT" ]
null
null
null
src/models/helpers/helpers_training.py
elbuco1/trajectory
653f3f4cea55e284a68c8ab01325d8e8307d4ae1
[ "MIT" ]
9
2020-05-22T13:16:16.000Z
2021-04-26T19:11:29.000Z
import torch import time import matplotlib.pyplot as plt import torch import torch.nn as nn import numpy as np from joblib import load import matplotlib.cm as cm import json from datasets.datasets import Hdf5Dataset,CustomDataLoader from matplotlib.lines import Line2D import random def load_data_loaders(parameters_p...
30.179167
163
0.629711
3c148da18717e9e927e4eb7d5c981aecd4edb663
7,575
py
Python
src/modlog.py
DiscordLiz/salamander
87e8dbddacd4d55672491685007237493295cf5a
[ "Apache-2.0" ]
null
null
null
src/modlog.py
DiscordLiz/salamander
87e8dbddacd4d55672491685007237493295cf5a
[ "Apache-2.0" ]
1
2021-03-23T05:13:57.000Z
2021-03-23T05:41:41.000Z
src/modlog.py
DiscordLiz/salamander
87e8dbddacd4d55672491685007237493295cf5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present Michael Hall # # 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 a...
31.5625
87
0.520132
1b906d1f80396450dfaf4a1766b02312c4805981
1,515
py
Python
ADT_LL.py
kamwithak/competitiveProgramming
ab4433568081900212a8a987d7bf8cb78d2698d1
[ "MIT" ]
null
null
null
ADT_LL.py
kamwithak/competitiveProgramming
ab4433568081900212a8a987d7bf8cb78d2698d1
[ "MIT" ]
1
2020-07-19T15:40:25.000Z
2020-07-19T15:40:25.000Z
ADT_LL.py
kamwithak/competitiveProgramming
ab4433568081900212a8a987d7bf8cb78d2698d1
[ "MIT" ]
null
null
null
class Node: def __init__(self, value, next=None): self.value = str(value) self.next = next class LinkedList: def __init__(self, size=1, head=Node(1)): self.head = head self.tail = self.head self.curNumberOfNodes = 1 self.loadLinkedList(size) def loadLinkedList(self, tailValue): if tailV...
21.642857
60
0.632343
dc45162a1706d510fa6f927d59af4cdbe56b585f
2,232
py
Python
aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/DescribeRuleAttributeRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/DescribeRuleAttributeRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/DescribeRuleAttributeRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.818182
80
0.767921
2ae3c3c9af97183b392b4faf18954b9f7643efca
582
py
Python
tests/test_config.py
greck2908/beyond
334a37202a7138050e46d97f719f81a4350987b5
[ "MIT" ]
33
2017-08-23T06:21:29.000Z
2022-03-14T07:39:45.000Z
tests/test_config.py
greck2908/beyond
334a37202a7138050e46d97f719f81a4350987b5
[ "MIT" ]
22
2017-03-12T17:22:40.000Z
2022-02-04T11:25:46.000Z
tests/test_config.py
galactics/space-api
334a37202a7138050e46d97f719f81a4350987b5
[ "MIT" ]
7
2018-11-18T16:53:34.000Z
2021-12-01T08:12:59.000Z
from pytest import raises from beyond.config import config, ConfigError def test_get(): assert config.get("eop", "missing_policy") == "pass" assert config.get("dummy1", "dummy2") is None assert config.get("dummy1", "dummy2", fallback=False) == False assert config.get("dummy1", "dummy2", fallback="hel...
27.714286
70
0.649485
0700f85540ea0395046d0280360d525a85de616e
3,356
py
Python
dataloaders/utils.py
ixhorse/pytorch-deeplab-xception
568be707c2fb4852ce84fa2ec019c44e305681a8
[ "MIT" ]
null
null
null
dataloaders/utils.py
ixhorse/pytorch-deeplab-xception
568be707c2fb4852ce84fa2ec019c44e305681a8
[ "MIT" ]
null
null
null
dataloaders/utils.py
ixhorse/pytorch-deeplab-xception
568be707c2fb4852ce84fa2ec019c44e305681a8
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import torch def decode_seg_map_sequence(label_masks, dataset='pascal'): rgb_masks = [] for label_mask in label_masks: rgb_mask = decode_segmap(label_mask, dataset) rgb_masks.append(rgb_mask) rgb_masks = torch.from_numpy(np.array(rgb_masks)...
33.227723
84
0.554529
a44d152db1b477575a58bbae418b9ab26fca25b8
122
py
Python
test/dataset/cutprotocol.py
J4CKVVH173/yaml-config
4366769e5af818ecfa362db9e3e343f2b3b08012
[ "MIT" ]
null
null
null
test/dataset/cutprotocol.py
J4CKVVH173/yaml-config
4366769e5af818ecfa362db9e3e343f2b3b08012
[ "MIT" ]
null
null
null
test/dataset/cutprotocol.py
J4CKVVH173/yaml-config
4366769e5af818ecfa362db9e3e343f2b3b08012
[ "MIT" ]
null
null
null
ARGS = ['http://test', 'ftp://test', 'test', 'some_random//test'] RESULT = ['test', 'test', 'test', 'some_random//test']
30.5
65
0.581967
2e3645904ed4d5b175f4eae2b5819c4a131422ad
315
py
Python
Practice/hulk.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/hulk.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/hulk.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
def notfunc(num): if(num == 0): return 1 else: return 0 n = int(input()) case = 0 cases = ["I hate that ", "I love that ","I hate it","I love it"] for i in range(n,0,-1): if(i == 1): print(cases[case+2] + "") else: print(cases[case], end="") case = notfunc(case)
21
64
0.498413
8c9d349f34c44c605b01fbee6c6cac4b74245b7b
571
py
Python
ui/maintenance_protocols/zip.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
33
2017-03-12T16:26:45.000Z
2021-04-30T05:37:35.000Z
ui/maintenance_protocols/zip.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
6
2017-04-21T08:44:47.000Z
2018-11-11T16:20:22.000Z
ui/maintenance_protocols/zip.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
13
2017-03-12T16:26:56.000Z
2020-04-20T05:35:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 02/12/2017 11:40 PM # @Project : BioQueue # @Author : Li Yao # @File : zip.py def get_sub_protocol(db_obj, protocol_parent, step_order_start=1): steps = list() steps.append(db_obj(software='unzip', parameter='{{LastOutput}}...
31.722222
66
0.558669
1e95da933bab84547542280ae8751bf3fecd1527
702
py
Python
dscribe/dscribe/kernels/__init__.py
rartino/hands-on-2
8f31b978f295a761dc0a7ae093184b3dbfa7e199
[ "MIT" ]
265
2018-12-10T21:36:30.000Z
2022-03-24T12:58:21.000Z
dscribe/dscribe/kernels/__init__.py
rartino/hands-on-2
8f31b978f295a761dc0a7ae093184b3dbfa7e199
[ "MIT" ]
71
2018-12-10T22:00:39.000Z
2022-03-30T19:38:23.000Z
dscribe/dscribe/kernels/__init__.py
rartino/hands-on-2
8f31b978f295a761dc0a7ae093184b3dbfa7e199
[ "MIT" ]
66
2018-11-29T13:33:05.000Z
2022-03-21T15:15:00.000Z
# -*- coding: utf-8 -*- """Copyright 2019 DScribe developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
39
72
0.792023
5e6f7e1f9f8359df4ffe0f61556e2ff7bd392c3d
5,694
py
Python
UNP/IO.py
lizard1998myx/UNP
4b6c77f081863bee654d38e9e938e8e7c581593e
[ "Apache-2.0" ]
null
null
null
UNP/IO.py
lizard1998myx/UNP
4b6c77f081863bee654d38e9e938e8e7c581593e
[ "Apache-2.0" ]
null
null
null
UNP/IO.py
lizard1998myx/UNP
4b6c77f081863bee654d38e9e938e8e7c581593e
[ "Apache-2.0" ]
null
null
null
import datetime from UNP.Core import Account, ActTable from UNP.Engineering import Searcher from UNP.Application import Loginer class SearcherIO(Searcher): @staticmethod def info(): return "[SearcherIO]" @staticmethod def version(): version = "V4.0 - 20190808" re...
33.494118
92
0.465402
9b20db0ab92d2955a311f32cacdae706b42c1989
8,347
py
Python
pyparsing/__init__.py
jgrey4296/pyparsing
69a8ab77ce673066b82171d1952e3b2b581f0c0c
[ "MIT" ]
null
null
null
pyparsing/__init__.py
jgrey4296/pyparsing
69a8ab77ce673066b82171d1952e3b2b581f0c0c
[ "MIT" ]
null
null
null
pyparsing/__init__.py
jgrey4296/pyparsing
69a8ab77ce673066b82171d1952e3b2b581f0c0c
[ "MIT" ]
null
null
null
# module pyparsing.py # # Copyright (c) 2003-2021 Paul T. McGuire # # 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, cop...
28.010067
86
0.680724
2363c5aa5ccedc8d298ad8ff2a335c9aed5c895b
1,578
py
Python
isolateparser/tableformat.py
cdeitrick/isolate_parsers
1b6725d086b1ccd53d985d7e010b23a811dbcf20
[ "MIT" ]
null
null
null
isolateparser/tableformat.py
cdeitrick/isolate_parsers
1b6725d086b1ccd53d985d7e010b23a811dbcf20
[ "MIT" ]
1
2021-06-12T12:22:04.000Z
2021-06-12T12:22:04.000Z
isolateparser/tableformat.py
cdeitrick/isolate_parsers
1b6725d086b1ccd53d985d7e010b23a811dbcf20
[ "MIT" ]
null
null
null
""" Implements the classes which indicate which columns are available from each table. These should be consolidated into a single file instead of beings spread theoughout the codebase. """ from typing import NamedTuple class IsolateTableColumns(NamedTuple): # Defines the column names for the isolate table. # Mainly...
30.346154
98
0.724968
eb766f72e2a4f770af16b31cfd2d3976a4bb2753
1,737
py
Python
indra/tests/test_cag_assembler.py
min-yin-sri/indra
93d4cb8b23764a2775f9dbdf5eb73b6053006d73
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/tests/test_cag_assembler.py
min-yin-sri/indra
93d4cb8b23764a2775f9dbdf5eb73b6053006d73
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_cag_assembler.py
min-yin-sri/indra
93d4cb8b23764a2775f9dbdf5eb73b6053006d73
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str from indra.statements import * from indra.assemblers import CAGAssembler eg1 = {'UN': [('a/b/c', 0.123)]} eg2 = {'UN': [('a/b/c', 0.234)]} # An example provenance from Eidos prov = [{ "@type" : "Provenance", ...
29.948276
78
0.53483
c5973ced7683b8f9d3a359ea945ceb5aa7b33aca
3,022
py
Python
tests/test_utils.py
csadorf/aiidalab-optimade
5c09750a66109a67edb08771f44960d051b9aead
[ "MIT" ]
null
null
null
tests/test_utils.py
csadorf/aiidalab-optimade
5c09750a66109a67edb08771f44960d051b9aead
[ "MIT" ]
null
null
null
tests/test_utils.py
csadorf/aiidalab-optimade
5c09750a66109a67edb08771f44960d051b9aead
[ "MIT" ]
null
null
null
from aiidalab_optimade import utils def test_fetch_providers_wrong_url(): """Test when fetch_providers is provided a wrong URL It should now return at the very least the cached list of providers """ import json wrong_url = "https://this.is.a.wrong.url" providers = utils.fetch_providers(prov...
33.955056
99
0.587028
81b1ce87098bde19cc335b91cecaf5582a0892fe
107,809
py
Python
Lib/inspect.py
SimplyAhmazing/python-with-arabic-keywords
dfea9d0a225eadcd6845961e5829830ec2784105
[ "PSF-2.0" ]
1
2021-09-18T20:14:03.000Z
2021-09-18T20:14:03.000Z
Lib/inspect.py
SimplyAhmazing/python-with-arabic-keywords
dfea9d0a225eadcd6845961e5829830ec2784105
[ "PSF-2.0" ]
null
null
null
Lib/inspect.py
SimplyAhmazing/python-with-arabic-keywords
dfea9d0a225eadcd6845961e5829830ec2784105
[ "PSF-2.0" ]
null
null
null
"""Get useful information from live Python objects. This module encapsulates the interface provided by the internal special attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. It also provides some help for examining source code and class layout. Here are some of the useful functions provided by this module:...
37.265468
84
0.602232
e62dbdc3e5e9f84577b0c3d93f861ef3ded376e3
6,341
py
Python
google/cloud/aiplatform_v1/services/migration_service/pagers.py
dizcology/python-aiplatform
1a135775966c8a2303ded529eba514dcf9db7205
[ "Apache-2.0" ]
2
2021-10-02T02:25:44.000Z
2021-11-17T10:35:01.000Z
google/cloud/aiplatform_v1/services/migration_service/pagers.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
1
2021-03-02T18:25:00.000Z
2021-03-02T18:25:00.000Z
google/cloud/aiplatform_v1/services/migration_service/pagers.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
null
null
null
# -*- 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...
39.385093
93
0.69642
b5955adfa00e438d8f28a200af7320151f6fcba2
9,805
py
Python
ml-agents/mlagents/trainers/learn.py
symbiote-research/ml-agents
37ac2062e13b9a4371d25db56cef423371975ea7
[ "Apache-2.0" ]
1
2020-12-23T06:38:13.000Z
2020-12-23T06:38:13.000Z
ml-agents/mlagents/trainers/learn.py
symbiote-research/ml-agents
37ac2062e13b9a4371d25db56cef423371975ea7
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/learn.py
symbiote-research/ml-agents
37ac2062e13b9a4371d25db56cef423371975ea7
[ "Apache-2.0" ]
null
null
null
# # Unity ML-Agents Toolkit from mlagents import torch_utils import yaml import os import numpy as np import json from typing import Callable, Optional, List import mlagents.trainers import mlagents_envs from mlagents.trainers.trainer_controller import TrainerController from mlagents.trainers.environment_parameter_m...
34.893238
97
0.63641
6ae927e2f5cba6fcb30e0a3a14383dad807a96bc
8,236
py
Python
lib/rucio/api/request.py
faluchet/rucio
b8f3ebdc0748aeed022d8b789e7ef6e0f36e6dae
[ "Apache-2.0" ]
null
null
null
lib/rucio/api/request.py
faluchet/rucio
b8f3ebdc0748aeed022d8b789e7ef6e0f36e6dae
[ "Apache-2.0" ]
null
null
null
lib/rucio/api/request.py
faluchet/rucio
b8f3ebdc0748aeed022d8b789e7ef6e0f36e6dae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # 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-...
41.386935
134
0.705682
4df90e02d7e6deb0ce92eadf2415dc5a8b1726c5
9,804
py
Python
synapse/federation/federation_base.py
Fr3shTea/synapse
cbd82d0b2db069400b5d43373838817d8a0209e7
[ "Apache-2.0" ]
null
null
null
synapse/federation/federation_base.py
Fr3shTea/synapse
cbd82d0b2db069400b5d43373838817d8a0209e7
[ "Apache-2.0" ]
null
null
null
synapse/federation/federation_base.py
Fr3shTea/synapse
cbd82d0b2db069400b5d43373838817d8a0209e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, 2016 OpenMarket Ltd # Copyright 2020 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://www.apache.org/licenses/LICENSE-2.0 # # ...
38.750988
90
0.637291
eff8e05d89b9b55cad3224b2378d4d8bde86e0be
522
py
Python
Pr_2.py
EndMad/L6
a17d9a859b4659e40df390576f566277809161e9
[ "MIT" ]
null
null
null
Pr_2.py
EndMad/L6
a17d9a859b4659e40df390576f566277809161e9
[ "MIT" ]
null
null
null
Pr_2.py
EndMad/L6
a17d9a859b4659e40df390576f566277809161e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # создайте словарь, где ключами являются числа, а значениями – строки. # Примените к нему метод items(), c с помощью полученного объекта dict_items создайте # новый словарь, "обратный" исходному, т. е. ключами являются строки, а значениями – # числа. from datetime ...
30.705882
86
0.672414
4a28639b1ebbd1d4fceb93a8d6d7ad651e4204f8
363
py
Python
fdk_client/platform/models/EventSubscriptionTemplateEmail.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/EventSubscriptionTemplateEmail.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/EventSubscriptionTemplateEmail.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class EventSubscriptionTemplateEmail(BaseSchema): # Communication swagger.json subscribed = fields.Boolean(required=False) t...
16.5
49
0.735537
b801350fdb686c85c408a15f7dc5e21a0facccc9
86
py
Python
fNb-end/src/backend/main.py
kauereblin/ifc
071103c4b87a158754f1fe6751984ed0b1760fed
[ "MIT" ]
4
2020-07-23T18:20:00.000Z
2020-11-17T02:38:31.000Z
fNb-end/src/backend/main.py
kauereblin/ifc
071103c4b87a158754f1fe6751984ed0b1760fed
[ "MIT" ]
null
null
null
fNb-end/src/backend/main.py
kauereblin/ifc
071103c4b87a158754f1fe6751984ed0b1760fed
[ "MIT" ]
null
null
null
from routes import app if __name__ == "__main__": app.run(port=5000, debug=True)
17.2
34
0.697674
d724a4a3ccb822832934b18fdcad7492717b8223
1,317
py
Python
app/main/forms.py
Brayooh/pitches
8b1b6abd7b966097cc0ac97fe4439e75dc0401d6
[ "MIT" ]
null
null
null
app/main/forms.py
Brayooh/pitches
8b1b6abd7b966097cc0ac97fe4439e75dc0401d6
[ "MIT" ]
null
null
null
app/main/forms.py
Brayooh/pitches
8b1b6abd7b966097cc0ac97fe4439e75dc0401d6
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SelectField, TextAreaField, SubmitField from wtforms.validators import Required class PostForm(FlaskForm): title = StringField('Title', validators=[Required()]) post = TextAreaField('Pitch', validators=[Required()]) category = SelectField(...
29.266667
116
0.667426