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
96dfa54a34805b28aa784f5dcbeedd7e9af8d2dd
5,189
py
Python
conf.py
ForstMaple/BeautifulSoup4_Documentation_CN
aa02ef03638c002d5035f5f81fa533fbe4ac80de
[ "MIT" ]
null
null
null
conf.py
ForstMaple/BeautifulSoup4_Documentation_CN
aa02ef03638c002d5035f5f81fa533fbe4ac80de
[ "MIT" ]
null
null
null
conf.py
ForstMaple/BeautifulSoup4_Documentation_CN
aa02ef03638c002d5035f5f81fa533fbe4ac80de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # beautifulsoup documentation build configuration file, created by # sphinx-quickstart on Sat Jan 6 22:28:06 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in thi...
29.99422
79
0.683947
57990bfa918af2605c63bd2fd93ca9915b258da6
2,436
py
Python
bluesky_mpl/artists/line.py
jklynch/bluesky-mpl
0f7bc68c7d886e54f87d6a30e83ceeb7c7d120a7
[ "BSD-3-Clause" ]
1
2019-05-07T19:21:11.000Z
2019-05-07T19:21:11.000Z
bluesky_mpl/artists/line.py
jklynch/bluesky-mpl
0f7bc68c7d886e54f87d6a30e83ceeb7c7d120a7
[ "BSD-3-Clause" ]
52
2019-05-13T18:00:41.000Z
2019-12-04T16:24:02.000Z
bluesky_mpl/artists/line.py
jklynch/bluesky-mpl
0f7bc68c7d886e54f87d6a30e83ceeb7c7d120a7
[ "BSD-3-Clause" ]
9
2019-05-15T00:41:03.000Z
2019-11-05T20:41:13.000Z
import collections from event_model import DocumentRouter import matplotlib.pyplot as plt class Line(DocumentRouter): """ Draw a matplotlib Line Arist update it for each Event. Parameters ---------- func : callable This must accept an EventPage and return two lists of floats (x p...
34.8
90
0.582923
7a0a143d448c2dcd7bfd831e8cc3af2318cd9b80
2,011
py
Python
bot.py
Sibirli/python-telegram-bot-heroku
9c5a5122ac8ff36ee1d6fe384fd9d740e3d8279f
[ "MIT" ]
null
null
null
bot.py
Sibirli/python-telegram-bot-heroku
9c5a5122ac8ff36ee1d6fe384fd9d740e3d8279f
[ "MIT" ]
null
null
null
bot.py
Sibirli/python-telegram-bot-heroku
9c5a5122ac8ff36ee1d6fe384fd9d740e3d8279f
[ "MIT" ]
null
null
null
import logging from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import os PORT = int(os.environ.get('PORT', 5000)) # Enable logging logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__...
32.967213
83
0.658876
2c15a78e225d3ed44f3190477a48c4f5cd08fbca
33,103
py
Python
dateutil/tz.py
javrasya/python-dateutil
1c88b28f4e06d7276f3b97405436722fa306a059
[ "PSF-2.0" ]
1
2015-06-30T11:59:33.000Z
2015-06-30T11:59:33.000Z
dateutil/tz.py
javrasya/python-dateutil
1c88b28f4e06d7276f3b97405436722fa306a059
[ "PSF-2.0" ]
null
null
null
dateutil/tz.py
javrasya/python-dateutil
1c88b28f4e06d7276f3b97405436722fa306a059
[ "PSF-2.0" ]
null
null
null
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" import datetime import struct import time import sys import os relativedelta = None pa...
34.518248
77
0.509621
10748f1c7a65b93dcead597532c9954f41b815c3
716
py
Python
data_s.py
AJAkimana/math-playground
dd8e91d59aee5b5bc3efd07710701e54af4098c9
[ "MIT" ]
null
null
null
data_s.py
AJAkimana/math-playground
dd8e91d59aee5b5bc3efd07710701e54af4098c9
[ "MIT" ]
null
null
null
data_s.py
AJAkimana/math-playground
dd8e91d59aee5b5bc3efd07710701e54af4098c9
[ "MIT" ]
null
null
null
from utils import algorithm welcome_msg = """ Welcome to data structure """ print(welcome_msg) is_go = True while is_go: try: intro_msg = """ 1. Array manipulation 2. Data manipulation """ choice = int(input(intro_msg)) if choice == 1: print("Manipulation of array") print(algorithm.list_sum()) eli...
23.096774
60
0.645251
8445d80682efd5edde291e5dde26e929afd2ff27
433
py
Python
django_rest_framework/quickstart_tutorial/tutorial/quickstart/serializers.py
amirongit/notecode
3ce453531eaf4674d9a15e59510fa8dea77704fd
[ "Unlicense" ]
null
null
null
django_rest_framework/quickstart_tutorial/tutorial/quickstart/serializers.py
amirongit/notecode
3ce453531eaf4674d9a15e59510fa8dea77704fd
[ "Unlicense" ]
null
null
null
django_rest_framework/quickstart_tutorial/tutorial/quickstart/serializers.py
amirongit/notecode
3ce453531eaf4674d9a15e59510fa8dea77704fd
[ "Unlicense" ]
null
null
null
from django.contrib.auth.models import Group, User from rest_framework import serializers # Serializers are used for data representation. class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ['url', 'username', 'email', 'groups'] class GroupSerializer...
24.055556
62
0.709007
1dbd27c96937e924256e0dbce7d94c54ec38a37d
531
py
Python
tests/const.py
markjgardner/icloudpy
044debe47415f341f79014a7eaf6c46221710f27
[ "BSD-3-Clause" ]
1,630
2015-01-02T21:38:18.000Z
2022-03-30T19:05:55.000Z
tests/const.py
markjgardner/icloudpy
044debe47415f341f79014a7eaf6c46221710f27
[ "BSD-3-Clause" ]
294
2015-01-10T19:23:42.000Z
2022-03-19T09:35:43.000Z
tests/const.py
markjgardner/icloudpy
044debe47415f341f79014a7eaf6c46221710f27
[ "BSD-3-Clause" ]
395
2015-01-08T04:28:59.000Z
2022-03-28T03:18:08.000Z
# -*- coding: utf-8 -*- """Test constants.""" from .const_account_family import PRIMARY_EMAIL, APPLE_ID_EMAIL, ICLOUD_ID_EMAIL # Base AUTHENTICATED_USER = PRIMARY_EMAIL REQUIRES_2FA_TOKEN = "requires_2fa_token" REQUIRES_2FA_USER = "requires_2fa_user" VALID_USERS = [AUTHENTICATED_USER, REQUIRES_2FA_USER, APPLE_ID_EMAIL...
31.235294
86
0.806026
e84167861b89a4632ff6a4a819d7b9c113a5ae8e
12,641
py
Python
cum/scrapers/base.py
lochlainn/comic-updater
8c2baa3b490a9492ff15c4cbd2fea9b6a8b347aa
[ "Apache-2.0" ]
null
null
null
cum/scrapers/base.py
lochlainn/comic-updater
8c2baa3b490a9492ff15c4cbd2fea9b6a8b347aa
[ "Apache-2.0" ]
null
null
null
cum/scrapers/base.py
lochlainn/comic-updater
8c2baa3b490a9492ff15c4cbd2fea9b6a8b347aa
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod from concurrent.futures import ThreadPoolExecutor from cum import config, db, output from mimetypes import guess_extension from re import match, sub from sqlalchemy.exc import IntegrityError, SQLAlchemyError from sqlalchemy.orm.exc import NoResultFound from tempfile import NamedT...
36.429395
79
0.586109
7aaa882e94f29b83bd5a1be0c9e0afc1261e1e3f
1,466
py
Python
meta_learning_without_memorization/pose_data/create_fake_data.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
7
2020-03-15T12:14:07.000Z
2021-12-01T07:01:09.000Z
meta_learning_without_memorization/pose_data/create_fake_data.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
25
2020-07-25T08:53:09.000Z
2022-03-12T00:43:02.000Z
meta_learning_without_memorization/pose_data/create_fake_data.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2020-06-15T03:06:53.000Z
2021-08-06T16:38:33.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
26.654545
74
0.716917
5f55484677a61f89ed93fd69f75345616e1b24ac
322
py
Python
PROG1_python/PRG1 Common Test 1/PRG1 Common Test 1 revision/2017/QUESTION 2B.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
null
null
null
PROG1_python/PRG1 Common Test 1/PRG1 Common Test 1 revision/2017/QUESTION 2B.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
null
null
null
PROG1_python/PRG1 Common Test 1/PRG1 Common Test 1 revision/2017/QUESTION 2B.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
2
2021-03-30T00:46:58.000Z
2021-12-12T23:41:12.000Z
weight = float(input('Total weiht of baggage (kg): ')) if weight <= 30: print('You do not have to pay for your baggage.') else: overweight = weight - 30 pay = overweight * 12 print('Your baggage is {}kg more than the limit of 30kg.'.format(overweight)) print('You will have to pay ${:.2f}'.format(pay...
40.25
81
0.652174
8ffcb18fbfbacb267465f33fa107421f563febd7
3,287
py
Python
commands.py
Hpmanen-dev/Pig-Game
748f881df0a70d412230d6d2a9e018317fd6fa8e
[ "MIT" ]
null
null
null
commands.py
Hpmanen-dev/Pig-Game
748f881df0a70d412230d6d2a9e018317fd6fa8e
[ "MIT" ]
null
null
null
commands.py
Hpmanen-dev/Pig-Game
748f881df0a70d412230d6d2a9e018317fd6fa8e
[ "MIT" ]
1
2021-03-19T13:15:39.000Z
2021-03-19T13:15:39.000Z
"""Commands used in the game.""" import sys import cmd import game import leaderboard class Commands(cmd.Cmd): """This is the commands class, which includes all the commands.""" prompt = "(Game)" intro = 'Please type ? or help for a list of all the commands.' def __init__(self): """Init the...
29.088496
76
0.543048
cab2e260626b9f6039da99eb97e00245d440bd80
6,256
py
Python
nn.py
EY4L/MNIST-MLP-SVM
e2f078e3cb3e6992d78e3165de0a6a164b26caff
[ "MIT" ]
null
null
null
nn.py
EY4L/MNIST-MLP-SVM
e2f078e3cb3e6992d78e3165de0a6a164b26caff
[ "MIT" ]
null
null
null
nn.py
EY4L/MNIST-MLP-SVM
e2f078e3cb3e6992d78e3165de0a6a164b26caff
[ "MIT" ]
null
null
null
# %% Imports from pathlib import Path import joblib import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data import torchvision import torchvision.transforms as transf...
19.428571
89
0.66704
d5bb7f63514f5d356df46cf9b03efbe196fa3dbd
630
py
Python
examples/management/delete_user.py
ZygusPatryk/amqpstorm
0f3ad84a529f12769d34638a88c38f3055cb05cd
[ "MIT" ]
140
2016-06-07T18:53:57.000Z
2022-03-23T01:50:15.000Z
examples/management/delete_user.py
ZygusPatryk/amqpstorm
0f3ad84a529f12769d34638a88c38f3055cb05cd
[ "MIT" ]
85
2016-04-11T23:32:32.000Z
2022-03-19T07:21:21.000Z
examples/management/delete_user.py
ZygusPatryk/amqpstorm
0f3ad84a529f12769d34638a88c38f3055cb05cd
[ "MIT" ]
38
2016-04-20T20:21:13.000Z
2022-03-23T05:31:58.000Z
from amqpstorm import management if __name__ == '__main__': # If using a self-signed certificate, change verify=True to point at your CA bundle. # You can disable certificate verification for testing by passing in verify=False. API = management.ManagementApi('https://rmq.amqpstorm.io:15671', 'guest', ...
42
88
0.649206
cc22459dc7bdd6db5b84deb2ab22f6e5be090241
3,682
py
Python
test/integration/ggrc/models/test_query_api_queries.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/integration/ggrc/models/test_query_api_queries.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/models/test_query_api_queries.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for making sure eager queries are working on all mixins.""" import ddt from ggrc.utils import QueryCounter from integration.ggrc import TestCase from integration.ggrc.models import factories as g...
30.429752
78
0.653178
272cdc018dc7c73b21da90208503061f74d24efe
136
py
Python
app.py
guangie88/codefresh-python
5aa509836e0207d3477a3b85d46ff8140cdf31d1
[ "MIT" ]
null
null
null
app.py
guangie88/codefresh-python
5aa509836e0207d3477a3b85d46ff8140cdf31d1
[ "MIT" ]
1
2019-03-12T12:51:29.000Z
2019-03-12T12:51:29.000Z
app.py
guangie88/codefresh-python
5aa509836e0207d3477a3b85d46ff8140cdf31d1
[ "MIT" ]
1
2019-12-10T12:44:05.000Z
2019-12-10T12:44:05.000Z
# flask run from flask import Flask from lib.foo import foo app = Flask(__name__) @app.route("/") def index(): return foo("ping")
13.6
23
0.676471
90b551b606bf53dcf3f4b1d8fa0b1e29bbfb6e7a
17,114
py
Python
ATL/norm_ir.py
gilbo/atl
d8cb8f9b9e4f596fc9d3e4628ec69cecf623d0e8
[ "BSD-4-Clause" ]
45
2020-07-27T15:33:31.000Z
2022-03-09T19:38:48.000Z
ATL/norm_ir.py
gilbo/atl
d8cb8f9b9e4f596fc9d3e4628ec69cecf623d0e8
[ "BSD-4-Clause" ]
null
null
null
ATL/norm_ir.py
gilbo/atl
d8cb8f9b9e4f596fc9d3e4628ec69cecf623d0e8
[ "BSD-4-Clause" ]
2
2022-02-12T17:29:51.000Z
2022-02-15T04:01:20.000Z
from .adt import ADT from .adt import memo as ADTmemo from .prelude import * from . import atl_types as T from fractions import Fraction from functools import lru_cache from collections import namedtuple import math from .frontend import AST # --------------------------------------------------------------------...
31.929104
79
0.498773
f69da12a6e5a756ba6dba9ed4d4e3ae5ea28acd9
1,238
py
Python
pkg/codegen/internal/test/testdata/azure-sa.pp.py
CDMiXer/Woolloomooloo
62272b869dbc0190fd20540607b33f3edeba9dce
[ "Apache-2.0", "MIT" ]
null
null
null
pkg/codegen/internal/test/testdata/azure-sa.pp.py
CDMiXer/Woolloomooloo
62272b869dbc0190fd20540607b33f3edeba9dce
[ "Apache-2.0", "MIT" ]
null
null
null
pkg/codegen/internal/test/testdata/azure-sa.pp.py
CDMiXer/Woolloomooloo
62272b869dbc0190fd20540607b33f3edeba9dce
[ "Apache-2.0", "MIT" ]
null
null
null
import pulumi import pulumi_azure as azure config = pulumi.Config()/* Release of eeacms/www:18.12.19 */ storage_account_name_param = config.require("storageAccountNameParam") resource_group_name_param = config.require("resourceGroupNameParam") resource_group_var = azure.core.get_resource_group(name=resource_group_name...
49.52
89
0.836026
46296aeeff242165dfe5280a9e96675c8d053190
11,707
py
Python
manim/mobject/svg/brace.py
pradyunsg/manim
1cd24892e58e76486c40a7130baed0eff889d93d
[ "MIT" ]
5
2019-02-22T14:10:08.000Z
2022-03-13T01:03:49.000Z
manim/mobject/svg/brace.py
pradyunsg/manim
1cd24892e58e76486c40a7130baed0eff889d93d
[ "MIT" ]
17
2021-04-10T13:47:17.000Z
2021-05-17T21:25:30.000Z
manim/mobject/svg/brace.py
pradyunsg/manim
1cd24892e58e76486c40a7130baed0eff889d93d
[ "MIT" ]
1
2019-03-22T14:33:25.000Z
2019-03-22T14:33:25.000Z
"""Mobject representing curly braces.""" __all__ = ["Brace", "BraceLabel", "ArcBrace", "BraceText", "BraceBetweenPoints"] from typing import Optional, Sequence import numpy as np from manim._config import config from manim.mobject.opengl_compatibility import ConvertToOpenGL from ...animation.composition import Ani...
34.230994
100
0.599129
e3fa86bbe7ca9e7100ccefbe7f48f61d72d30948
2,343
py
Python
基础教程/A2-神经网络基本原理/第9步 - 循环神经网络/src/ch20-RNNModel/MiniFramework/GRUCell.py
microsoft/ai-edu
2f59fa4d3cf19f14e0b291e907d89664bcdc8df3
[ "Apache-2.0" ]
11,094
2019-05-07T02:48:50.000Z
2022-03-31T08:49:42.000Z
基础教程/A2-神经网络基本原理/第9步 - 循环神经网络/src/ch20-RNNModel/MiniFramework/GRUCell.py
microsoft/ai-edu
2f59fa4d3cf19f14e0b291e907d89664bcdc8df3
[ "Apache-2.0" ]
157
2019-05-13T15:07:19.000Z
2022-03-23T08:52:32.000Z
基础教程/A2-神经网络基本原理/第9步 - 循环神经网络/src/ch20-RNNModel/MiniFramework/GRUCell.py
microsoft/ai-edu
2f59fa4d3cf19f14e0b291e907d89664bcdc8df3
[ "Apache-2.0" ]
2,412
2019-05-07T02:55:15.000Z
2022-03-30T06:56:52.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. import numpy as np from MiniFramework.Layer import * from MiniFramework.ActivationLayer import * from MiniFramework.ClassificationLayer import * class GRUCell(object): ...
42.6
139
0.599232
6d24359ebb25b50b5754fd9152e1786f001d73b8
6,637
py
Python
qa/rpc-tests/name_wallet.py
40thoughts/Coin-QualCoin
ee84e65c6fe141113049d8a6a46f91370b0c25f2
[ "MIT" ]
1
2017-03-05T03:12:01.000Z
2017-03-05T03:12:01.000Z
qa/rpc-tests/name_wallet.py
40thoughts/Coin-QualCoin
ee84e65c6fe141113049d8a6a46f91370b0c25f2
[ "MIT" ]
null
null
null
qa/rpc-tests/name_wallet.py
40thoughts/Coin-QualCoin
ee84e65c6fe141113049d8a6a46f91370b0c25f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014 Daniel Kraft # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # RPC tests for the handling of names in the wallet. from test_framework.names import NameTestFramework from test_framewo...
33.351759
78
0.636432
95b71ce0160d2308e762d1c70e866eaa5cbdc8db
6,503
py
Python
nevergrad/optimization/test_utils.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
nevergrad/optimization/test_utils.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
nevergrad/optimization/test_utils.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import pickle import pytest import numpy as np import nevergrad as ng from nevergrad.common import testing from nevergrad...
36.948864
109
0.666308
6cf2e4901ef27d68479eaa6d486aa8274e35f3a5
357
py
Python
net-shortest-path.py
RachidStat/PyCX
a1a597e61d03b25cf138dd11ab136db8202e1243
[ "BSD-2-Clause-FreeBSD" ]
176
2019-12-18T11:44:28.000Z
2022-03-27T09:09:33.000Z
net-shortest-path.py
RachidStat/PyCX
a1a597e61d03b25cf138dd11ab136db8202e1243
[ "BSD-2-Clause-FreeBSD" ]
2
2020-03-29T00:51:25.000Z
2020-07-19T11:08:32.000Z
net-shortest-path.py
RachidStat/PyCX
a1a597e61d03b25cf138dd11ab136db8202e1243
[ "BSD-2-Clause-FreeBSD" ]
56
2019-12-18T19:04:12.000Z
2022-03-22T09:35:33.000Z
from pylab import * import networkx as nx g = nx.karate_club_graph() positions = nx.spring_layout(g) path = nx.shortest_path(g, 16, 25) edges = [(path[i], path[i+1]) for i in range(len(path) - 1)] nx.draw_networkx_edges(g, positions, edgelist = edges, edge_color = 'r', width = 10) nx.draw(g, p...
25.5
60
0.655462
36e07e533e52fe2bba198f724f8a75c51d2cb013
11,082
py
Python
collective/teamwork/user/groups.py
upiq/collective.teamwork
3751eeafa7f585a3ed2ff1e06f610e64145ac4d7
[ "BSD-4-Clause-UC" ]
null
null
null
collective/teamwork/user/groups.py
upiq/collective.teamwork
3751eeafa7f585a3ed2ff1e06f610e64145ac4d7
[ "BSD-4-Clause-UC" ]
null
null
null
collective/teamwork/user/groups.py
upiq/collective.teamwork
3751eeafa7f585a3ed2ff1e06f610e64145ac4d7
[ "BSD-4-Clause-UC" ]
1
2015-06-25T14:36:21.000Z
2015-06-25T14:36:21.000Z
from collections import OrderedDict import itertools import threading import weakref from zope.component import adapts from zope.component.hooks import getSite from zope.interface import implements from Products.CMFCore.interfaces import ISiteRoot from collective.teamwork.user.interfaces import IGroup, IGroups from c...
32.594118
78
0.622812
339ce69ee399bcb3d75b9f5da30c7b225afd9f1c
105,535
py
Python
main.py
zx1340/frick
b50b2265bde7428674ab275b0f539661178bda9a
[ "MIT" ]
3
2018-07-26T14:32:33.000Z
2018-07-27T02:48:36.000Z
main.py
zx1340/frick
b50b2265bde7428674ab275b0f539661178bda9a
[ "MIT" ]
null
null
null
main.py
zx1340/frick
b50b2265bde7428674ab275b0f539661178bda9a
[ "MIT" ]
1
2018-07-26T14:52:23.000Z
2018-07-26T14:52:23.000Z
####################################################################################### # # frick is distributed under the MIT License (MIT) # Copyright (c) 2018 Giovanni - iGio90 - Rocca # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fil...
35.295987
141
0.47515
a7f80f9526fed6b2b53718bc1451c67022d62c9e
3,931
py
Python
alipay/aop/api/request/AlipayOpenMiniPoiQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenMiniPoiQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenMiniPoiQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenMiniPoiQueryModel import AlipayOpenMiniPoiQueryModel class AlipayOpenMiniPoiQueryRequest(object): def __init__(self, ...
27.110345
148
0.641058
07279d3beaf281b735ec971471d5129cb79a4d2b
2,837
py
Python
L1Trigger/Phase2L1ParticleFlow/python/pfClustersFromHGC3DClusters_cfi.py
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
L1Trigger/Phase2L1ParticleFlow/python/pfClustersFromHGC3DClusters_cfi.py
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
L1Trigger/Phase2L1ParticleFlow/python/pfClustersFromHGC3DClusters_cfi.py
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms pfClustersFromHGC3DClusters = cms.EDProducer("PFClusterProducerFromHGC3DClusters", src = cms.InputTag("hgcalBackEndLayer2Producer","HGCalBackendLayer2Processor3DClustering"), corrector = cms.string("L1Trigger/Phase2L1ParticleFlow/data/hadcorr_HGCal3D_TC.root"), corr...
50.660714
125
0.620726
47233d52176b49fe302e1ea9159c6ca9f2c6faaa
956
py
Python
ros/build/styx_msgs/cmake/styx_msgs-genmsg-context.py
wolf-zchen/CarND-capstone-project
9961e1ca8124124c56812265d85170b49b5868b0
[ "MIT" ]
null
null
null
ros/build/styx_msgs/cmake/styx_msgs-genmsg-context.py
wolf-zchen/CarND-capstone-project
9961e1ca8124124c56812265d85170b49b5868b0
[ "MIT" ]
null
null
null
ros/build/styx_msgs/cmake/styx_msgs-genmsg-context.py
wolf-zchen/CarND-capstone-project
9961e1ca8124124c56812265d85170b49b5868b0
[ "MIT" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/zchen61/carnd-capstone-test/ros/src/styx_msgs/msg/TrafficLight.msg;/home/zchen61/carnd-capstone-test/ros/src/styx_msgs/msg/TrafficLightArray.msg;/home/zchen61/carnd-capstone-test/ros/src/styx_msgs/msg/Waypoint.msg;/home/zchen61/carnd-capstone-te...
79.666667
301
0.799163
501170e4b3a36167d3afd2a9744ef32d76116f24
87
py
Python
lankuai/lankuai/lkitsm/web2/lkweb2/apps.py
abiner/lankuai
55a3631528acf1c46a471cb0616e28a5396faab5
[ "MIT" ]
null
null
null
lankuai/lankuai/lkitsm/web2/lkweb2/apps.py
abiner/lankuai
55a3631528acf1c46a471cb0616e28a5396faab5
[ "MIT" ]
null
null
null
lankuai/lankuai/lkitsm/web2/lkweb2/apps.py
abiner/lankuai
55a3631528acf1c46a471cb0616e28a5396faab5
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Lkweb2Config(AppConfig): name = 'lkweb2'
14.5
33
0.747126
e272662a1234ace53750a09f5893bb9038fb1358
348
py
Python
testcore/__init__.py
OpenHisiIpCam/OpenHisiIpCam
30a46d3c004d760fa6493399afb10dc7b593f377
[ "Unlicense" ]
26
2018-10-10T16:05:57.000Z
2020-03-14T00:06:34.000Z
testcore/__init__.py
OpenHisiIpCam/OpenHisiIpCam
30a46d3c004d760fa6493399afb10dc7b593f377
[ "Unlicense" ]
2
2019-02-08T22:32:12.000Z
2020-02-05T15:08:28.000Z
testcore/__init__.py
OpenHisiIpCam/OpenHisiIpCam
30a46d3c004d760fa6493399afb10dc7b593f377
[ "Unlicense" ]
null
null
null
import os import json from .vars import * from .brhisicam import BrHisiCam from .make import Make from .hiburn import Hiburn def list_boards(): return Make(BR_HISICAM_ROOT).get_output_lines(["list-configs"]) hiburn = Hiburn( app_path=HIBURN_APP, device_list=DEVICE_LIST, power_app_path=POWER_APP, ...
19.333333
67
0.761494
e7ffe51fd436a7b0b78ac56ef1c55d9f184bfd44
317
py
Python
web-scraping/using-proxies/using-crawlera.py
caesarcc/python-code-tutorials
aa48ebe695e86440b206b641501ad55d021309bf
[ "MIT" ]
1,059
2019-08-04T17:51:43.000Z
2022-03-31T10:13:37.000Z
web-scraping/using-proxies/using-crawlera.py
kylearrigoni/pythoncode-tutorials
6fd30ed854d1ea7573351ddb10c1eaae55ca5717
[ "MIT" ]
56
2019-12-10T16:46:40.000Z
2022-03-29T01:36:50.000Z
web-scraping/using-proxies/using-crawlera.py
kylearrigoni/pythoncode-tutorials
6fd30ed854d1ea7573351ddb10c1eaae55ca5717
[ "MIT" ]
1,330
2019-08-16T01:36:18.000Z
2022-03-31T16:57:22.000Z
import requests url = "http://icanhazip.com" proxy_host = "proxy.crawlera.com" proxy_port = "8010" proxy_auth = ":" proxies = { "https": f"https://{proxy_auth}@{proxy_host}:{proxy_port}/", "http": f"http://{proxy_auth}@{proxy_host}:{proxy_port}/" } r = requests.get(url, proxies=proxies, verify=False)
26.416667
67
0.662461
d5c72dec6506ab5ddcf7be735f056854e7797446
8,993
py
Python
src/python/zensols/dlqaclass/lsa.py
plandes/deep-qa-rank
0c218e7e3196c54b8643e1a757251a0b7e6c1adb
[ "MIT" ]
1
2019-07-14T02:56:21.000Z
2019-07-14T02:56:21.000Z
src/python/zensols/dlqaclass/lsa.py
plandes/deep-qa-rank
0c218e7e3196c54b8643e1a757251a0b7e6c1adb
[ "MIT" ]
null
null
null
src/python/zensols/dlqaclass/lsa.py
plandes/deep-qa-rank
0c218e7e3196c54b8643e1a757251a0b7e6c1adb
[ "MIT" ]
1
2020-04-09T03:24:53.000Z
2020-04-09T03:24:53.000Z
import logging import itertools as it import sys from multiprocessing import Pool import numpy as np from sklearn.decomposition import TruncatedSVD from sklearn.pipeline import make_pipeline from sklearn.preprocessing import Normalizer from sklearn.neighbors import KNeighborsClassifier from sklearn.feature_extraction.t...
35.828685
95
0.599021
fec1a505cf216c3ad8127a6300faced3a17d7cba
4,982
py
Python
wrt/wrt-packertool-android-tests/inst.apk.py
Acidburn0zzz/crosswalk-test-suite
0399ae7a6c413f9d8435a2b70864c350ff76beb0
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-packertool-android-tests/inst.apk.py
Acidburn0zzz/crosswalk-test-suite
0399ae7a6c413f9d8435a2b70864c350ff76beb0
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-packertool-android-tests/inst.apk.py
Acidburn0zzz/crosswalk-test-suite
0399ae7a6c413f9d8435a2b70864c350ff76beb0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import shutil import glob import time import sys import subprocess from optparse import OptionParser, make_option SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) PKG_NAME = os.path.basename(SCRIPT_DIR) PARAMETERS = None ADB_CMD = "adb" def doCMD(cmd): # Do not need handl...
31.1375
96
0.565034
498f1a162ebdc8b2877dfb23d0f9bc2781c28272
999
py
Python
leetcode/three_sum_closest.py
dantin/leetcode-py
a0536eb37aa6ad6e2682f543407b5a45012173b4
[ "BSD-3-Clause" ]
null
null
null
leetcode/three_sum_closest.py
dantin/leetcode-py
a0536eb37aa6ad6e2682f543407b5a45012173b4
[ "BSD-3-Clause" ]
null
null
null
leetcode/three_sum_closest.py
dantin/leetcode-py
a0536eb37aa6ad6e2682f543407b5a45012173b4
[ "BSD-3-Clause" ]
null
null
null
# -*- code: utf-8 -*- from typing import List class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: nums.sort() n = len(nums) best = 10 ** 7 def update(val): nonlocal best if abs(val - target) < abs(best - target): ...
27.75
67
0.349349
bbc61b1c05bb2e1a98ad5b96c73203f57f96ea1a
10,117
py
Python
shaker/__init__.py
codysoyland/shaker
426738df9577c4b34658701dfaf222637e263180
[ "BSD-2-Clause" ]
1
2020-12-27T19:41:20.000Z
2020-12-27T19:41:20.000Z
shaker/__init__.py
codysoyland/shaker
426738df9577c4b34658701dfaf222637e263180
[ "BSD-2-Clause" ]
null
null
null
shaker/__init__.py
codysoyland/shaker
426738df9577c4b34658701dfaf222637e263180
[ "BSD-2-Clause" ]
null
null
null
""" Build and launch EBS instances as salt minions. """ from shaker.version import __version__ import os import time import optparse import email.mime import boto import boto.ec2 from boto.ec2.blockdevicemapping import EBSBlockDeviceType, BlockDeviceMapping, BlockDeviceType import shaker.log import shaker.config impor...
38.762452
113
0.564792
5016da549f7fa751986bccefc3efb9f24b58bf3e
7,070
py
Python
backend/control.py
johnche/troll-simulator
d554403dc73e8de43e723c08994b3dae08ac0c1c
[ "BSD-2-Clause" ]
null
null
null
backend/control.py
johnche/troll-simulator
d554403dc73e8de43e723c08994b3dae08ac0c1c
[ "BSD-2-Clause" ]
8
2020-03-24T17:10:38.000Z
2022-03-11T23:48:46.000Z
backend/control.py
trolllabs/trollsim
d554403dc73e8de43e723c08994b3dae08ac0c1c
[ "BSD-2-Clause" ]
null
null
null
""" .. module:: control TrollSim control module. TrollSim modules and processors are started and closed upon HTTP requests through ControlAPI from this module. """ import logging from misc import DataWriter from processors import Tunnel from datastructures import TrollPacket from http.server import BaseHTTPRequestHan...
31.5625
88
0.723055
3fac766c25bce7c2a47fb8ac94b1438d66ef0f27
261
py
Python
Basic Progrom python/all_primr_number_between_1_to_n.py
manish1822510059/Python-1000-program
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
1
2021-03-06T03:33:42.000Z
2021-03-06T03:33:42.000Z
Basic Progrom python/all_primr_number_between_1_to_n.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
Basic Progrom python/all_primr_number_between_1_to_n.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
n = int(input("Enter a number: \t")) print("list of prime number between 1 to",n) for i in range(1,n+1): cn = i #current no count =0 for j in range(1,cn+1): if cn%j==0: count+=1 if count==2: print(cn)
23.727273
45
0.494253
9910d05a0a056e70e5b403c6a67b28872b6f59a9
4,526
py
Python
tests/test_models.py
yjt2018/change_detection.pytorch
cbd6150708eeddbd66e30e311f2482d43334b738
[ "MIT" ]
99
2021-07-08T01:01:58.000Z
2022-03-31T14:20:52.000Z
tests/test_models.py
yjt2018/change_detection.pytorch
cbd6150708eeddbd66e30e311f2482d43334b738
[ "MIT" ]
11
2021-08-18T07:14:57.000Z
2022-03-16T05:23:52.000Z
tests/test_models.py
yjt2018/change_detection.pytorch
cbd6150708eeddbd66e30e311f2482d43334b738
[ "MIT" ]
32
2021-08-03T07:00:28.000Z
2022-03-19T11:15:59.000Z
import os import sys import mock import pytest import torch # mock detection module sys.modules["torchvision._C"] = mock.Mock() import change_detection_pytorch as smp def get_encoders(): exclude_encoders = [ "senet154", "resnext101_32x16d", "resnext101_32x32d", "resnext101_32x48d"...
32.099291
123
0.694432
3ef097146b60e841146cf1a9554bd16aee3803b0
3,965
py
Python
check_consul_key.py
adolci/nagios-plugins
0d8cee0376467922b3315e9b0e08b98454eb9853
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
check_consul_key.py
adolci/nagios-plugins
0d8cee0376467922b3315e9b0e08b98454eb9853
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
check_consul_key.py
adolci/nagios-plugins
0d8cee0376467922b3315e9b0e08b98454eb9853
[ "IBM-pibs", "Apache-1.1" ]
3
2019-07-25T11:46:32.000Z
2019-12-17T05:01:03.000Z
#!/usr/bin/env python # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2016-01-16 00:46:07 +0000 (Sat, 16 Jan 2016) # # https://github.com/harisekhon/nagios-plugins # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optional...
35.401786
109
0.640353
043d81d48ce85b0fd935e72de586d1c37b7c671f
376
py
Python
pyxelrest/version.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
7
2018-12-07T10:08:53.000Z
2021-03-24T07:52:36.000Z
pyxelrest/version.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
76
2018-12-07T10:29:48.000Z
2021-11-17T00:54:24.000Z
pyxelrest/version.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
null
null
null
# Version number as Major.Minor.Patch # The version modification must respect the following rules: # Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0) # Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0) # Patch should be incremented in case there is a b...
53.714286
86
0.712766
63706da74fb8b6be1063b9a5988bf15856d809be
1,600
py
Python
mypy_boto3_builder/logger.py
jbpratt78/mypy_boto3_builder
be4020782369b34e35f3b6a2117f00d947f3ae24
[ "MIT" ]
44
2019-11-09T04:29:31.000Z
2022-02-11T10:51:41.000Z
mypy_boto3_builder/logger.py
jbpratt78/mypy_boto3_builder
be4020782369b34e35f3b6a2117f00d947f3ae24
[ "MIT" ]
28
2019-11-26T23:50:19.000Z
2021-05-31T18:52:46.000Z
mypy_boto3_builder/logger.py
jbpratt78/mypy_boto3_builder
be4020782369b34e35f3b6a2117f00d947f3ae24
[ "MIT" ]
3
2019-11-09T16:43:04.000Z
2019-12-20T15:05:33.000Z
""" Logging utils. """ import logging from typing import Any __all__ = ("get_logger",) class Logger(logging.Logger): """ Standard Logger with optional panic mode. """ # Set to true to raise RuntimeError on warning panic = False def warning(self, msg: Any, *args: Any, **kwargs: Any) -> None...
22.222222
83
0.588125
a105ba2655300716c0170d571d43127bff851303
12,860
py
Python
tests/components/broadlink/test_device.py
vickvu/home-assistant-core
02bfc688428d094b6b3104434ac987251491b4d8
[ "Apache-2.0" ]
1
2020-05-21T06:54:05.000Z
2020-05-21T06:54:05.000Z
tests/components/broadlink/test_device.py
vickvu/home-assistant-core
02bfc688428d094b6b3104434ac987251491b4d8
[ "Apache-2.0" ]
48
2020-10-11T08:00:05.000Z
2022-03-31T06:02:23.000Z
tests/components/broadlink/test_device.py
vickvu/home-assistant-core
02bfc688428d094b6b3104434ac987251491b4d8
[ "Apache-2.0" ]
1
2021-02-05T00:18:31.000Z
2021-02-05T00:18:31.000Z
"""Tests for Broadlink devices.""" from unittest.mock import patch import broadlink.exceptions as blke from homeassistant.components.broadlink.const import DOMAIN from homeassistant.components.broadlink.device import get_domains from homeassistant.config_entries import ( ENTRY_STATE_LOADED, ENTRY_STATE_NOT_LO...
36.954023
88
0.731104
b6c706bc27bb7bf13f53c20be0731590130580ef
2,797
py
Python
examples/simple/clump_finding.py
egpbos/amuse
64b3bc5b7fef9496012b023578c4d71cecef92b7
[ "Apache-2.0" ]
null
null
null
examples/simple/clump_finding.py
egpbos/amuse
64b3bc5b7fef9496012b023578c4d71cecef92b7
[ "Apache-2.0" ]
null
null
null
examples/simple/clump_finding.py
egpbos/amuse
64b3bc5b7fef9496012b023578c4d71cecef92b7
[ "Apache-2.0" ]
2
2021-11-19T04:41:37.000Z
2021-11-20T02:11:17.000Z
""" Generates a random distribution of particles and uses Hop to determine clumps in the particle set. """ from __future__ import print_function import numpy from numpy import random from matplotlib import pyplot from amuse.units import units from amuse.units import nbody_system from amuse.community.hop.interface im...
27.693069
77
0.671791
0001a83284201642571d45ad4f4bd0a1211785de
4,355
py
Python
server_data_tmp/app/HMM_server.py
maximzubkov/Python_Project
3e8295b2c2ee6e8c6a32a54037ea3ded2ce7efcf
[ "MIT" ]
2
2019-03-01T13:02:06.000Z
2019-03-02T09:09:09.000Z
server_data_tmp/app/HMM_server.py
maximzubkov/Python_Project
3e8295b2c2ee6e8c6a32a54037ea3ded2ce7efcf
[ "MIT" ]
null
null
null
server_data_tmp/app/HMM_server.py
maximzubkov/Python_Project
3e8295b2c2ee6e8c6a32a54037ea3ded2ce7efcf
[ "MIT" ]
2
2019-03-01T07:53:44.000Z
2019-03-28T19:05:29.000Z
import json import math as m import psycopg2 import sys import numpy as np from urllib.parse import urlparse import socket import asyncio import ast import config from __init__ import app paths = config.Path('max') sys.path.insert(0, paths.markov_chain()) sys.path.insert(0, paths.personal_info()) from hmm import * f...
28.279221
244
0.663835
0ed066da03da124a330185cd40f5a047b5b0164b
4,999
py
Python
JumpscaleLibs/tools/markdowndocs/macros/slideshow_v2.py
grimpy/jumpscaleX_libs
4cd8a8b69dd3aa7a1a558c81befc97894ab2ec39
[ "Apache-2.0" ]
null
null
null
JumpscaleLibs/tools/markdowndocs/macros/slideshow_v2.py
grimpy/jumpscaleX_libs
4cd8a8b69dd3aa7a1a558c81befc97894ab2ec39
[ "Apache-2.0" ]
117
2019-09-01T11:59:19.000Z
2020-07-14T11:10:08.000Z
JumpscaleLibs/tools/markdowndocs/macros/slideshow_v2.py
grimpy/jumpscaleX_libs
4cd8a8b69dd3aa7a1a558c81befc97894ab2ec39
[ "Apache-2.0" ]
2
2020-04-06T15:21:23.000Z
2020-05-07T04:29:53.000Z
from Jumpscale import j class SlideShow: def __init__(self): self.slides = [] def slide_add(self, name, presentation_guid, footer, order): self.slides.append(Slide(name, presentation_guid, footer, order)) def add_range(self, name, presentation_guid, range_start, range_end): for i...
34.239726
107
0.631326
4b32dc59d931edc670517198cd7b6047aa3b16e7
1,716
py
Python
rasa_nlu/utils/response_utils.py
jinxueyu/rasa_nlu
2b64742d72f2f09c5686170973966d9f70d86e44
[ "Apache-2.0" ]
null
null
null
rasa_nlu/utils/response_utils.py
jinxueyu/rasa_nlu
2b64742d72f2f09c5686170973966d9f70d86e44
[ "Apache-2.0" ]
null
null
null
rasa_nlu/utils/response_utils.py
jinxueyu/rasa_nlu
2b64742d72f2f09c5686170973966d9f70d86e44
[ "Apache-2.0" ]
null
null
null
__author__ = 'xueyu' import logging from rasa_nlu.components import Component from rasa_nlu.training_data import Message logger = logging.getLogger(__name__) class ResponseComponent(Component): name = "response_component" def process(self, message, **kwargs): print(message.as_dict()) int...
28.131148
68
0.497086
40f66e0e9cc49db5a650028b677160be3ad13053
6,239
py
Python
support/dmg-license.py
aonez/create-dmg
5f5b04d706af597d2becd0a39f7dc260c3c97987
[ "MIT" ]
null
null
null
support/dmg-license.py
aonez/create-dmg
5f5b04d706af597d2becd0a39f7dc260c3c97987
[ "MIT" ]
null
null
null
support/dmg-license.py
aonez/create-dmg
5f5b04d706af597d2becd0a39f7dc260c3c97987
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ This script adds a license file to a DMG. Requires Xcode and a plain ascii text license file. Obviously only runs on a Mac. Copyright (C) 2011-2013 Jared Hobbs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
38.276074
96
0.606027
87a87a0aedc72ef089c89a1c81589416af5063bd
4,227
py
Python
demo/ip_crawler.py
AngusWG/crawler_set
45eaa18d15ad84e7cc88828846682f225150f945
[ "MIT" ]
null
null
null
demo/ip_crawler.py
AngusWG/crawler_set
45eaa18d15ad84e7cc88828846682f225150f945
[ "MIT" ]
null
null
null
demo/ip_crawler.py
AngusWG/crawler_set
45eaa18d15ad84e7cc88828846682f225150f945
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # encoding: utf-8 # @Time : 2019/7/1 21:58 # @author : zza # @Email : 740713651@qq.com # @File : ip_crawler.py import json import logging import os import re import pandas import yaml from flask import Flask, current_app import requests from flask.json import jsonify from lxml import etree ...
31.080882
120
0.649633
5c4a20a6d9b6c7282b05aa7423e02cae38240a94
27,955
py
Python
eggs/zope.interface-4.1.2-py2.7-linux-x86_64.egg/zope/interface/declarations.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
eggs/zope.interface-4.1.2-py2.7-linux-x86_64.egg/zope/interface/declarations.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
eggs/zope.interface-4.1.2-py2.7-linux-x86_64.egg/zope/interface/declarations.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
############################################################################## # Copyright (c) 2003 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. # THIS SOFTW...
32.619603
78
0.660884
690d94f72b7b855301d7230f4b61325c4fa1a146
1,544
py
Python
primed/__init__.py
eyb1/primed
f9a1a17f74785d6e82a6e5f93fd6b08f3b9dc3e0
[ "Apache-2.0" ]
null
null
null
primed/__init__.py
eyb1/primed
f9a1a17f74785d6e82a6e5f93fd6b08f3b9dc3e0
[ "Apache-2.0" ]
null
null
null
primed/__init__.py
eyb1/primed
f9a1a17f74785d6e82a6e5f93fd6b08f3b9dc3e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' MMMMMMMMMNh MMMMMMMMMNd MMMM MMMMm MMMM MMMMMMMMd MMMMMMMMMN MMMMdhhMMMM MMMMdhhMMMM MMMM MMMMMs /MMMM MMMMNmmmm MMMMdhhMMMM MMMM mMMM MMMM MMMM MMMM MMMMMM-.mMMMMM MMMM MMMM MMMM MMMM mMMM MMMM MMMM MMMM MMMMMMdsMMMMMM M...
35.090909
72
0.534326
ffdbc4c254c5cef6fd6607314446d5b09908a3ac
56
py
Python
env.py
biogui/royal-flush-telegram-bot
6b6605f13d9add17949d2abb4764265204e6c595
[ "MIT" ]
null
null
null
env.py
biogui/royal-flush-telegram-bot
6b6605f13d9add17949d2abb4764265204e6c595
[ "MIT" ]
null
null
null
env.py
biogui/royal-flush-telegram-bot
6b6605f13d9add17949d2abb4764265204e6c595
[ "MIT" ]
null
null
null
TOKEN = "1322795267:AAEbZcdLeuFdDc_mlk3jNLijcQy_yV9CBrI"
56
56
0.892857
fc42da948c5a07353cf0b06274774eb7f9a89523
7,077
py
Python
scripts/meanAP_VOC.py
imoisture/caffe
4d6892afeff234c57ce470056939101e0ae71369
[ "BSD-2-Clause" ]
null
null
null
scripts/meanAP_VOC.py
imoisture/caffe
4d6892afeff234c57ce470056939101e0ae71369
[ "BSD-2-Clause" ]
null
null
null
scripts/meanAP_VOC.py
imoisture/caffe
4d6892afeff234c57ce470056939101e0ae71369
[ "BSD-2-Clause" ]
null
null
null
import xml.etree.ElementTree as ET import sys import os import numpy as np import json def parse_rec(filename): tree = ET.parse(filename) root = tree.getroot() width = 0 height = 0 objects = [] for elem in root.iterfind('size/width'): width = int(elem.text) for elem in root.iterfi...
35.923858
100
0.53582
60a7acfa470b87cc5c7881ad545f6fcf613922b2
5,273
py
Python
src/olympia/api/models.py
covariant/addons-server
41e6ee9e426facb19a1e1ca8d40277cb6f94a7da
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/api/models.py
covariant/addons-server
41e6ee9e426facb19a1e1ca8d40277cb6f94a7da
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/api/models.py
covariant/addons-server
41e6ee9e426facb19a1e1ca8d40277cb6f94a7da
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
import binascii import os import random from django.conf import settings from django.db import models from django.urls import reverse from django.utils.crypto import constant_time_compare, get_random_string from django.utils.encoding import force_str from django.utils.translation import gettext from aesfield.field im...
32.95625
88
0.645553
46eb7a09eda2136d15ed4f06cb3bf81167afe3f5
1,649
py
Python
app/validation/date_range_check.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
app/validation/date_range_check.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
app/validation/date_range_check.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
import logging from datetime import datetime from app.validation.abstract_validator import AbstractValidator from app.validation.validation_result import ValidationResult logger = logging.getLogger(__name__) class DateRangeCheck(AbstractValidator): def validate(self, user_answers): """ Validat...
35.847826
93
0.646452
2fe7208fad5c48a39e113f14638507ca00219e7d
17,859
py
Python
sdk/python/pulumi_gcp/projects/service.py
la3mmchen/pulumi-gcp
0e3c6fecd062dff78a4fd95b7ebd5ce4492ad1ea
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/projects/service.py
la3mmchen/pulumi-gcp
0e3c6fecd062dff78a4fd95b7ebd5ce4492ad1ea
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/projects/service.py
la3mmchen/pulumi-gcp
0e3c6fecd062dff78a4fd95b7ebd5ce4492ad1ea
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
46.266839
364
0.663363
627eac5f9aee6fe9d957f9746b63dd0b8642862c
3,603
py
Python
src/Player.py
rafaeldcampbell/CheckersWithAI
8427a53e1f0608a2cf01e7f2399d85eb46674039
[ "Apache-2.0" ]
null
null
null
src/Player.py
rafaeldcampbell/CheckersWithAI
8427a53e1f0608a2cf01e7f2399d85eb46674039
[ "Apache-2.0" ]
null
null
null
src/Player.py
rafaeldcampbell/CheckersWithAI
8427a53e1f0608a2cf01e7f2399d85eb46674039
[ "Apache-2.0" ]
null
null
null
from itertools import starmap from Position import Position from Moves import Moves from RuleEngine import RuleEngine from MoveGenerator import MoveGenerator from Board import Board class Player (object): def __init__(self, type): self.type = type self.lastMoveHasCaptured = False self.mg =...
39.163043
108
0.497086
d7ff952d71ec395c3155bd754b648af4e6104c82
242
py
Python
example/ex_tqueue.py
zoumingzhe/PyTools
7202268fca71db5e5b35fccc4031002e6ebbc023
[ "MIT" ]
3
2019-05-02T07:08:15.000Z
2021-03-10T04:55:03.000Z
example/ex_tqueue.py
zoumingzhe/PyTools
7202268fca71db5e5b35fccc4031002e6ebbc023
[ "MIT" ]
null
null
null
example/ex_tqueue.py
zoumingzhe/PyTools
7202268fca71db5e5b35fccc4031002e6ebbc023
[ "MIT" ]
1
2019-05-13T07:26:33.000Z
2019-05-13T07:26:33.000Z
from ztools import tqueue q = tqueue() #q.Version(isShow = True) print(q.get()) q.put(1) print(q.get()) q.put(2) q.put(3) q.put(4) print(q.get()) q.put(5) print(q.get()) print(q.get()) print(q.get()) print(q.get()) print(q.get()) input()
11
25
0.615702
a703a5942183df24f1bfc0fc8d6dd347c1c5a641
269
py
Python
terrascript/external/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/external/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/external/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/external/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class external(terrascript.Provider): pass
17.933333
79
0.773234
5e39360f9b9403b43dc32503c61b56be1a2a0bae
2,437
py
Python
backend/app/db/migrations/env.py
alex-evans/learn-fastapi
6838d1e3a4e90b5b54d7bcc0d4372bfc8158f893
[ "MIT" ]
null
null
null
backend/app/db/migrations/env.py
alex-evans/learn-fastapi
6838d1e3a4e90b5b54d7bcc0d4372bfc8158f893
[ "MIT" ]
null
null
null
backend/app/db/migrations/env.py
alex-evans/learn-fastapi
6838d1e3a4e90b5b54d7bcc0d4372bfc8158f893
[ "MIT" ]
null
null
null
import pathlib import sys import os import alembic from sqlalchemy import engine_from_config, create_engine, pool from psycopg2 import DatabaseError from logging.config import fileConfig import logging # we're appending the app directory to our path here so that we can import config easily sys.path.append(str(pathl...
30.08642
90
0.711531
b6fa7ebcb37913a828538245a0502dd4ff51ab34
11,400
py
Python
dbaas/account/admin/team.py
amintasvrp/database-as-a-service
8221df604f9252ddf877cd2216bdf1e3f76220ba
[ "BSD-3-Clause" ]
303
2015-01-08T10:35:54.000Z
2022-02-28T08:54:06.000Z
dbaas/account/admin/team.py
nouraellm/database-as-a-service
5e655c9347bea991b7218a01549f5e44f161d7be
[ "BSD-3-Clause" ]
124
2015-01-14T12:56:15.000Z
2022-03-22T20:45:11.000Z
dbaas/account/admin/team.py
nouraellm/database-as-a-service
5e655c9347bea991b7218a01549f5e44f161d7be
[ "BSD-3-Clause" ]
110
2015-01-02T11:59:48.000Z
2022-02-28T08:54:06.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django_services import admin from django.utils.translation import ugettext_lazy as _ from django.contrib import messages from django.contrib.admin import SimpleListFilter, helpers from account.templatetags import team as team_template...
41.304348
105
0.586228
54fd52e41d0a836d5d27b3129443537da99aebab
1,672
py
Python
tests/test_compound_losses.py
by-liu/SegLossBia
9cc639c04084cda9d5fb20ea34699db7e0beaf5c
[ "MIT" ]
18
2021-04-20T17:03:20.000Z
2022-03-12T05:56:24.000Z
tests/test_compound_losses.py
by-liu/SegLossBia
9cc639c04084cda9d5fb20ea34699db7e0beaf5c
[ "MIT" ]
null
null
null
tests/test_compound_losses.py
by-liu/SegLossBia
9cc639c04084cda9d5fb20ea34699db7e0beaf5c
[ "MIT" ]
1
2021-07-08T17:44:15.000Z
2021-07-08T17:44:15.000Z
import unittest import os.path as osp import torch from seglossbias.modeling.compound_losses import CrossEntropyWithL1, CrossEntropyWithKL torch.manual_seed(101) batch_size = 8 num_classes = 10 width, height = 512, 512 rand_max, rand_min = 2.5, -2.5 class TestCompoundLoss(unittest.TestCase): def test_ce_l1(sel...
34.122449
104
0.669258
825cb8efcd00c9cec8052bac3a1d3996ffac195f
2,963
py
Python
magweaver/utilities.py
reillyowencooper/camag
8025198769832b896c874aeb2d83d3a42629255d
[ "MIT" ]
null
null
null
magweaver/utilities.py
reillyowencooper/camag
8025198769832b896c874aeb2d83d3a42629255d
[ "MIT" ]
null
null
null
magweaver/utilities.py
reillyowencooper/camag
8025198769832b896c874aeb2d83d3a42629255d
[ "MIT" ]
null
null
null
import os, subprocess, shutil def download_file(file_url, output_loc = None, verbose = True): '''Downloads a file, prints to stdout if no output_loc specified''' url_str = str(file_url) if verbose: print(f'Downloading file from {url_str}') if output_loc is not None: run_external() ...
36.580247
128
0.596355
374f3a2be25b622b122500612a360b26938b59c4
11,568
py
Python
eval_bio.py
bamtercelboo/pytorch_POS_NER_Chunking
3450d6fdf9fd761f535cb164262ad8752cf529ff
[ "Apache-2.0" ]
3
2018-03-28T02:25:08.000Z
2019-01-30T13:43:18.000Z
eval_bio.py
bamtercelboo/pytorch_POS_NER_Chunking
3450d6fdf9fd761f535cb164262ad8752cf529ff
[ "Apache-2.0" ]
null
null
null
eval_bio.py
bamtercelboo/pytorch_POS_NER_Chunking
3450d6fdf9fd761f535cb164262ad8752cf529ff
[ "Apache-2.0" ]
null
null
null
class Entity(): def __init__(self, start, end, category): super(Entity, self).__init__() self.start = start self.end = end self.category = category def equal(self, entity): return self.start == entity.start and self.end == entity.end and self.category == entity.category ...
37.076923
269
0.580999
0d6d74db6f18cb4b58f552642049958f5037b164
7,640
py
Python
pandas/tseries/timedeltas.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
22
2015-03-05T17:23:34.000Z
2021-12-30T02:52:22.000Z
pandas/tseries/timedeltas.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/timedeltas.py
silveto/pandas
0568ed74792152b2e928e25b611074ad0e90a478
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
22
2015-01-02T12:14:20.000Z
2021-10-13T09:22:30.000Z
""" timedelta support tools """ import re from datetime import timedelta import numpy as np import pandas.tslib as tslib from pandas import compat, _np_version_under1p7 from pandas.core.common import (ABCSeries, is_integer, is_integer_dtype, is_timedelta64_dtype, _values_from_object, i...
30.31746
122
0.559948
8879f352db60294f6d7653b5ba11c3b9df4467d8
7,044
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # Copyright 2013 New Dream Network, LLC (DreamHost) # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
35.938776
78
0.666667
dcdff8022d404203e49d85e49f79987bc25c45d4
2,577
py
Python
tests/srdf_parser.py
florent-lamiraux/agimus-sot
b150e9dca59c2d19888a48ebf28cbe5ae9cbcdee
[ "BSD-2-Clause" ]
null
null
null
tests/srdf_parser.py
florent-lamiraux/agimus-sot
b150e9dca59c2d19888a48ebf28cbe5ae9cbcdee
[ "BSD-2-Clause" ]
9
2019-10-21T18:15:47.000Z
2021-06-30T15:14:13.000Z
tests/srdf_parser.py
florent-lamiraux/agimus-sot
b150e9dca59c2d19888a48ebf28cbe5ae9cbcdee
[ "BSD-2-Clause" ]
4
2018-07-31T07:27:58.000Z
2020-07-02T12:40:38.000Z
from __future__ import print_function import unittest from agimus_sot.srdf_parser import parse_srdf_string class TestAgimusParser(unittest.TestCase): def test_parser(self): srdf="""<?xml version="1.0" ?> <!-- =================================================================================== --> <!-- | ...
33.467532
96
0.525417
9e75aa3fe804a8b930ef3aca14e3410f5cda2422
2,751
py
Python
uranus_middleware/resources/check_in.py
project-uranus/uranus-middleware
852d121c3dd946dc0f9cacf77040258adc3577ac
[ "MIT" ]
null
null
null
uranus_middleware/resources/check_in.py
project-uranus/uranus-middleware
852d121c3dd946dc0f9cacf77040258adc3577ac
[ "MIT" ]
1
2020-07-09T10:04:41.000Z
2020-07-09T10:04:41.000Z
uranus_middleware/resources/check_in.py
project-uranus/uranus-middleware
852d121c3dd946dc0f9cacf77040258adc3577ac
[ "MIT" ]
1
2019-12-12T12:56:27.000Z
2019-12-12T12:56:27.000Z
from flask import Blueprint from flask_restful import Api, Resource, reqparse from uranus_middleware.auth_utils import get_user_id, passenger_required from uranus_middleware.endpoints.counter import counter from uranus_middleware.models.boarding_pass import Pass as BoardingPassModel from uranus_middleware.models.coun...
41.059701
139
0.641221
ad70f9d071e41db3539a326ecd0ab132dc7d3302
157
py
Python
IF e ELSE.py
AlexandreCMoraes/exercicios-python
c42c41d829291eefa63e5616539ac9b8d5062bd7
[ "MIT" ]
null
null
null
IF e ELSE.py
AlexandreCMoraes/exercicios-python
c42c41d829291eefa63e5616539ac9b8d5062bd7
[ "MIT" ]
null
null
null
IF e ELSE.py
AlexandreCMoraes/exercicios-python
c42c41d829291eefa63e5616539ac9b8d5062bd7
[ "MIT" ]
null
null
null
a = -2 b = -1 if b > a: if b > 0: print("b é maior que a\nb é positivo") else: print("b não é maior que a nem positivo") else: print("b menor que a")
15.7
43
0.585987
be3b7107bbd5c7cd6268a249577917b99285a4c5
4,586
py
Python
RMA_Ciclovia_atu.py
viniciuspgng/Herbie
9dd022804fa9ea5fc9fd249e4eda7909f6ae6fa3
[ "MIT" ]
null
null
null
RMA_Ciclovia_atu.py
viniciuspgng/Herbie
9dd022804fa9ea5fc9fd249e4eda7909f6ae6fa3
[ "MIT" ]
null
null
null
RMA_Ciclovia_atu.py
viniciuspgng/Herbie
9dd022804fa9ea5fc9fd249e4eda7909f6ae6fa3
[ "MIT" ]
null
null
null
import numpy as np import cv2 import time import Motor import sys NAO_ENCONTROU = 1 FINALIZOU = 2 FATOR_MOTOR = 80 lower_red1 = np.array([0,100,80])#np.array([30,150,50]) upper_red1 = np.array([10,256,256])#np.array([255,255,180]) lower_red2 = np.array([170,100,80])#np.array([30,150,50]) upper_red2 = np.array([180,25...
29.210191
344
0.561273
395df3a9feffb8747f87861acac3028ffc7d2d72
4,276
py
Python
py_src/yolov4/tflite/__init__.py
paradigmn/tensorflow-yolov4
44d8aa41a0cdf0b26896995ccdcf4b1043cca8ea
[ "MIT" ]
null
null
null
py_src/yolov4/tflite/__init__.py
paradigmn/tensorflow-yolov4
44d8aa41a0cdf0b26896995ccdcf4b1043cca8ea
[ "MIT" ]
null
null
null
py_src/yolov4/tflite/__init__.py
paradigmn/tensorflow-yolov4
44d8aa41a0cdf0b26896995ccdcf4b1043cca8ea
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Hyeonki Hong <hhk7734@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 without restriction, including without limitation the rights to use, copy, modi...
35.04918
80
0.637746
950c47a27b2ac97755af808597c143f4c8b2f5c8
1,259
py
Python
tests/test_core/test_definitions.py
MartinWohlan/floodlight
add8325725fba9169bec40726e6e949da7a8fc2f
[ "MIT" ]
26
2022-01-25T22:15:22.000Z
2022-03-02T11:06:29.000Z
tests/test_core/test_definitions.py
MartinWohlan/floodlight
add8325725fba9169bec40726e6e949da7a8fc2f
[ "MIT" ]
12
2021-11-17T15:42:28.000Z
2022-03-28T19:59:24.000Z
tests/test_core/test_definitions.py
MartinWohlan/floodlight
add8325725fba9169bec40726e6e949da7a8fc2f
[ "MIT" ]
8
2021-11-03T09:01:22.000Z
2022-03-23T10:43:14.000Z
import pytest from floodlight.core.definitions import essential_events_columns, protected_columns # Test for column specifications - tests only dictionary syntax, so that new added # columns dont' break existing methods @pytest.mark.unit def test_essential_events_columns() -> None: # Arrange for key in esse...
32.282051
83
0.643368
b41340f8ce9a14791df072a64c98c0e4124945cb
19,624
py
Python
angr/analyses/decompiler/region_simplifier.py
fmagin/angr
c41563b0f82a3d031c3aa482ebe2973c87ec4adb
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/analyses/decompiler/region_simplifier.py
fmagin/angr
c41563b0f82a3d031c3aa482ebe2973c87ec4adb
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/analyses/decompiler/region_simplifier.py
fmagin/angr
c41563b0f82a3d031c3aa482ebe2973c87ec4adb
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
# pylint:disable=unused-argument,arguments-differ import logging from typing import Dict, List, Set from collections import defaultdict import ailment from ..analysis import Analysis from .sequence_walker import SequenceWalker from .structurer_nodes import SequenceNode, CodeNode, MultiNode, LoopNode, ConditionNode, E...
37.379048
141
0.621637
17b00280d31e0aea67cd88c82249ef44f3e08b03
12,460
py
Python
chat/messaging/api/views.py
VsevolodOkhrimenko/enchad
eca2790b374d336dfc5e109657d25ab0616196ee
[ "MIT" ]
null
null
null
chat/messaging/api/views.py
VsevolodOkhrimenko/enchad
eca2790b374d336dfc5e109657d25ab0616196ee
[ "MIT" ]
null
null
null
chat/messaging/api/views.py
VsevolodOkhrimenko/enchad
eca2790b374d336dfc5e109657d25ab0616196ee
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.db.models import Q from django.utils import timezone from django.shortcuts import get_object_or_404 from asgiref.sync import async_to_sync from channels.layers import get_channel_layer from rest_framework import status, viewsets, mixins from rest_framework.deco...
38.45679
79
0.61236
ae35a992bf84e4db6ecb20bdee173306f67f32b2
519
py
Python
beanstalk_worker/views.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
beanstalk_worker/views.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
beanstalk_worker/views.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from . import task_service @csrf_exempt def task(request): task_service.run_task(request.body) return HttpResponse() @csrf_exempt def cron(request): module, method = request.META["HTTP_X_AWS_SQSD_TASKNAME"].rsplit...
20.76
76
0.736031
20edd0a7cddafca7e557581b8c32d582dc01d343
2,203
py
Python
make-list.py
wikimedia/CommonsNotifier
677779475a1c737d69e0fa90eb43339db1d8fb62
[ "MIT" ]
3
2018-11-21T23:21:22.000Z
2020-09-15T20:33:36.000Z
make-list.py
wikimedia/CommonsNotifier
677779475a1c737d69e0fa90eb43339db1d8fb62
[ "MIT" ]
3
2018-12-14T19:20:19.000Z
2020-10-01T19:34:33.000Z
make-list.py
MaxSem/CommonsNotifier
fa2e4c2771cd5b05233e27d2a4739ae47d9a336b
[ "MIT" ]
7
2018-12-14T16:31:52.000Z
2022-01-13T06:39:11.000Z
#!/usr/bin/python3 from commonsbot import mysql from commonsbot.state import DeletionStateStore, DeletionState from pywikibot import Site, Category from pywikibot.pagegenerators import CategorizedPageGenerator from pywikibot.site import Namespace from pprint import pprint commons = Site('commons', 'commons') userdb =...
31.028169
90
0.640944
b343cc9818943bd5ed760a32bfae4d5d630e4a41
3,559
py
Python
core/dbt/parser/search.py
hdeshev/dbt
13a7d96d841add99939fd64ffc3ff4321bd2766f
[ "Apache-2.0" ]
null
null
null
core/dbt/parser/search.py
hdeshev/dbt
13a7d96d841add99939fd64ffc3ff4321bd2766f
[ "Apache-2.0" ]
null
null
null
core/dbt/parser/search.py
hdeshev/dbt
13a7d96d841add99939fd64ffc3ff4321bd2766f
[ "Apache-2.0" ]
null
null
null
import os from dataclasses import dataclass from typing import ( List, Callable, Iterable, Set, Union, Iterator, TypeVar, Generic ) from dbt.clients.jinja import extract_toplevel_blocks, BlockTag from dbt.clients.system import find_matching from dbt.config import Project from dbt.contracts.graph.manifest import So...
28.472
78
0.649621
43e41e053035edd99484bf1ed009ddcaad7a1ce2
7,007
py
Python
deploy_python/openem/FindRuler.py
bryan-flywire/openem
1510ecbbb6b4a43b9f1f9503c87ec66216200677
[ "MIT" ]
null
null
null
deploy_python/openem/FindRuler.py
bryan-flywire/openem
1510ecbbb6b4a43b9f1f9503c87ec66216200677
[ "MIT" ]
null
null
null
deploy_python/openem/FindRuler.py
bryan-flywire/openem
1510ecbbb6b4a43b9f1f9503c87ec66216200677
[ "MIT" ]
null
null
null
""" Module for finding ruler masks in raw images """ import numpy as np import cv2 from openem.models import ImageModel from openem.models import Preprocessor from openem.image import crop class RulerMaskFinder(ImageModel): """ Class for finding ruler masks from raw images """ preprocessor=Preprocessor(1.0/12...
37.074074
78
0.602398
94c443662ad65e8413a76ce22a8df91a9d4e5192
17,849
py
Python
kivy/loader.py
Maillol/kivy
4befeb7ab275fcdccf43fee5a7edd9d3c452c4e9
[ "MIT" ]
2
2018-09-15T15:02:30.000Z
2019-07-19T13:49:01.000Z
kivy/loader.py
Macodom/kivy
bf8869f84453ab5e0cc54d5f2ea0fa3a3c8a0fba
[ "MIT" ]
null
null
null
kivy/loader.py
Macodom/kivy
bf8869f84453ab5e0cc54d5f2ea0fa3a3c8a0fba
[ "MIT" ]
null
null
null
''' Asynchronous data loader ======================== This is the Asynchronous Loader. You can use it to load an image and use it, even if data are not yet available. You must specify a default loading image when using the loader:: from kivy.loader import Loader image = Loader.image('mysprite.png') You can a...
32.218412
79
0.579808
3797a10da3cff75daa7db0210ec7df1384a4ff13
26,955
py
Python
videos-master/_2017/256.py
samsmusa/My-manim-master
a79266ea21fbb7e84d0133030146549f381c31cb
[ "MIT" ]
5
2021-03-18T02:28:07.000Z
2021-04-10T03:40:24.000Z
videos-master/_2017/256.py
samsmusa/My-manim-master
a79266ea21fbb7e84d0133030146549f381c31cb
[ "MIT" ]
null
null
null
videos-master/_2017/256.py
samsmusa/My-manim-master
a79266ea21fbb7e84d0133030146549f381c31cb
[ "MIT" ]
1
2022-02-16T03:22:47.000Z
2022-02-16T03:22:47.000Z
from manim_imports_ext import * from _2017.crypto import sha256_tex_mob, bit_string_to_mobject, BitcoinLogo def get_google_logo(): result = SVGMobject( file_name = "google_logo", height = 0.75 ) blue, red, yellow, green = [ "#4885ed", "#db3236", "#f4c20d", "#3cba54" ] color...
29.523549
109
0.541977
76dc6b01482dbfef5510bebfa95513824960882b
5,272
py
Python
crafter/recorder.py
kachayev/crafter
9ba8a62674b2c5e28d8bf9e7466e5201c94ce3d1
[ "MIT" ]
161
2021-03-11T03:25:28.000Z
2022-03-24T12:52:20.000Z
crafter/recorder.py
andreanvictor6374/crafter
8d1f04a9a2513eaeb9ac853fec4d13c275d9ed4d
[ "MIT" ]
7
2021-05-02T09:15:12.000Z
2022-02-14T00:21:33.000Z
crafter/recorder.py
andreanvictor6374/crafter
8d1f04a9a2513eaeb9ac853fec4d13c275d9ed4d
[ "MIT" ]
19
2021-03-12T09:26:54.000Z
2022-03-28T18:52:55.000Z
import datetime import json import pathlib import imageio import numpy as np class Recorder: def __init__( self, env, directory, save_stats=True, save_video=True, save_episode=True, video_size=(512, 512)): if directory and save_stats: env = StatsRecorder(env, directory) if directory and ...
28.344086
78
0.658194
9ea5ad6264d8793d8c62a674eb8b39967aad4797
13,832
py
Python
network/main.py
williamhowardsnyder/dl_img_rep
5d68d3b152767217a92e74e54d8c84b8eb1d6ace
[ "MIT" ]
null
null
null
network/main.py
williamhowardsnyder/dl_img_rep
5d68d3b152767217a92e74e54d8c84b8eb1d6ace
[ "MIT" ]
null
null
null
network/main.py
williamhowardsnyder/dl_img_rep
5d68d3b152767217a92e74e54d8c84b8eb1d6ace
[ "MIT" ]
null
null
null
import os import pathlib import random import time from torch.utils.tensorboard import SummaryWriter import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils.data.distributed from utils.conv_type import FixedSubnetCo...
30.534216
154
0.591744
83b5eb6fbc9d367380f75c630b409955e69bbddf
2,842
py
Python
scripts/benchmark-scripts/scwrl-tetrahedron-comparison.py
skoppula/statium
3f466ac86309150bb1939e7d2bc75839a62a38aa
[ "MIT" ]
3
2016-01-27T15:21:58.000Z
2021-07-19T14:47:45.000Z
scripts/benchmark-scripts/scwrl-tetrahedron-comparison.py
hardhary/statium
3f466ac86309150bb1939e7d2bc75839a62a38aa
[ "MIT" ]
null
null
null
scripts/benchmark-scripts/scwrl-tetrahedron-comparison.py
hardhary/statium
3f466ac86309150bb1939e7d2bc75839a62a38aa
[ "MIT" ]
2
2021-07-19T14:47:46.000Z
2021-12-01T00:29:36.000Z
import os import time from util import * in_dir = 'data/culled_90' lib_pdbs = [os.path.join(in_dir, pdb) for pdb in os.listdir(in_dir)][0:100] tetra_errors = list() scwrl_errors = list() inter_errors = list() tetra_times = list() scwrl_times = list() for (i, lib_pdb_path) in enumerate(lib_pdbs): print i, lib_pdb_pat...
28.138614
135
0.676988
8afb4ea9b4a7ad1b4dc6de8ad03ee8ce44886491
224
py
Python
packs/hue/actions/color_temp_mired.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/hue/actions/color_temp_mired.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/hue/actions/color_temp_mired.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from lib import action class ColorTempMiredAction(action.BaseAction): def run(self, light_id, temperature, transition_time): light = self.hue.lights.get(light_id) light.ct(temperature, transition_time)
28
58
0.741071
b1f61483b0e887489245c123e31f894f1b373e70
1,575
py
Python
app/request_parsers/video_settings.py
djclueless/tinypilot
16b477d811f886b1e2b1c9ccf4a3dd330348b418
[ "MIT" ]
1,334
2020-07-14T01:53:02.000Z
2021-06-08T09:48:28.000Z
app/request_parsers/video_settings.py
djclueless/tinypilot
16b477d811f886b1e2b1c9ccf4a3dd330348b418
[ "MIT" ]
320
2020-07-07T20:18:05.000Z
2021-06-07T21:18:42.000Z
app/request_parsers/video_settings.py
djclueless/tinypilot
16b477d811f886b1e2b1c9ccf4a3dd330348b418
[ "MIT" ]
124
2020-07-23T16:39:06.000Z
2021-06-04T10:22:53.000Z
from request_parsers import errors from request_parsers import message as message_parser def parse_fps(request): message = message_parser.parse_message(request, required_fields=['videoFps']) try: # Note: We need to cast the value to a string first otherwise t...
41.447368
80
0.650794
322826c07718d76cb001caae9488364e1c24233e
1,358
py
Python
libs/backendThread.py
yangjjie94/labelSeries
620372b7d21e410efb009500fdd6cdc668e92106
[ "MIT" ]
null
null
null
libs/backendThread.py
yangjjie94/labelSeries
620372b7d21e410efb009500fdd6cdc668e92106
[ "MIT" ]
null
null
null
libs/backendThread.py
yangjjie94/labelSeries
620372b7d21e410efb009500fdd6cdc668e92106
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2018 Tzutalin # Create by Jerry Yang <yangjjie94@gmail.com> from PyQt5.QtCore import QThread, pyqtSignal from libs.cache import Cache from libs.labelsCache import LabelsCache class BackendThread(QThread): def __init__(self, imgList): supe...
27.16
68
0.606038
dfc9dfcafa280a868b55f93e166a53c665489488
3,360
py
Python
scripts/us_epa/util/superfund_helper.py
rbhoot/data
b30bc0da302b9ce01fd88592d0a74a9ad65bdbab
[ "Apache-2.0" ]
null
null
null
scripts/us_epa/util/superfund_helper.py
rbhoot/data
b30bc0da302b9ce01fd88592d0a74a9ad65bdbab
[ "Apache-2.0" ]
null
null
null
scripts/us_epa/util/superfund_helper.py
rbhoot/data
b30bc0da302b9ce01fd88592d0a74a9ad65bdbab
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.069767
109
0.619643
2288cd1e38ee631aa7b0b97b36c13e12c5583f84
1,635
py
Python
MarcinZ.py
CodingDojoSilesia/golf-results-2019
ca122ef64061fff210aa0a38687458cdf089092b
[ "MIT" ]
1
2019-04-30T16:15:08.000Z
2019-04-30T16:15:08.000Z
MarcinZ.py
firemark/golf-results-2019
ca122ef64061fff210aa0a38687458cdf089092b
[ "MIT" ]
1
2019-05-06T09:02:24.000Z
2019-05-06T09:59:17.000Z
MarcinZ.py
firemark/golf-results-2019
ca122ef64061fff210aa0a38687458cdf089092b
[ "MIT" ]
5
2019-05-01T20:34:06.000Z
2019-05-08T14:43:51.000Z
import math,sys def rep(s,c,st,stop): for x in range(st,stop):s=s[:x]+c+s[x+1:] return s def egg(): r,d='',[(22,30),(19,22),(17,19),(15,17),(13,15),12,11,10,9,8,7,6,5,4,4,3,2,2,2,1,1]+[0]*13+[1,2,2,(3,5),5,(6,8),(8,10),(10,12),(12, 15),(15, 19),(19,30)] l=[eval(f'rep("{" "*30}","@",{v[0]},{v[1]})'...
41.923077
162
0.476453
2ef7ba8d2a7794fd73bb461426928fe18aa6afb2
2,039
py
Python
lib/galaxy/webapps/galaxy/api/page_revisions.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/galaxy/webapps/galaxy/api/page_revisions.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/galaxy/webapps/galaxy/api/page_revisions.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
""" API for updating Galaxy Pages """ import logging from galaxy.managers.base import get_object from galaxy.managers.pages import PageManager from galaxy.web import expose_api from . import BaseGalaxyAPIController, depends log = logging.getLogger(__name__) class PageRevisionsController(BaseGalaxyAPIController): ...
35.77193
102
0.662089
0c1516c528c42e9559e1cc76eb726420f3c771c9
1,018
py
Python
project/project/urls.py
samuraii/otus_python_backend
1bc7c8953a03008c94dd4b0ca89a7c830772f79a
[ "MIT" ]
null
null
null
project/project/urls.py
samuraii/otus_python_backend
1bc7c8953a03008c94dd4b0ca89a7c830772f79a
[ "MIT" ]
null
null
null
project/project/urls.py
samuraii/otus_python_backend
1bc7c8953a03008c94dd4b0ca89a7c830772f79a
[ "MIT" ]
null
null
null
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
36.357143
77
0.694499
b63b73ff1a3869eedca88ffe0eb09206508f4880
1,846
py
Python
rest/middleware/database.py
jbalooka/falcon-rest
eafffe6dc6709f8f48b3b3d5afec903b6a3c366d
[ "Apache-2.0" ]
null
null
null
rest/middleware/database.py
jbalooka/falcon-rest
eafffe6dc6709f8f48b3b3d5afec903b6a3c366d
[ "Apache-2.0" ]
null
null
null
rest/middleware/database.py
jbalooka/falcon-rest
eafffe6dc6709f8f48b3b3d5afec903b6a3c366d
[ "Apache-2.0" ]
null
null
null
import peewee db = peewee.SqliteDatabase("my_app.db") class DatabaseRouter(object): def process_request(self, req, resp): """Process the request before routing it. Args: req: Request object that will eventually be routed to an on_* responder method. resp:...
33.563636
68
0.57909
4bf36c664ccce39c125c499e0bc4cc35b7dbe7d5
3,207
py
Python
dist/weewx-4.6.2/examples/seven_day.py
Zilched/docker-weewx
406b32c3b40563a99a09a76b9b091700c7e46910
[ "Apache-2.0" ]
1
2016-03-17T11:39:45.000Z
2016-03-17T11:39:45.000Z
dist/weewx-4.6.2/examples/seven_day.py
mitct02/docker-weewx
76f4e3dd9af88ba521f431b07a3762ecb2820464
[ "Apache-2.0" ]
null
null
null
dist/weewx-4.6.2/examples/seven_day.py
mitct02/docker-weewx
76f4e3dd9af88ba521f431b07a3762ecb2820464
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2009-2021 Tom Keffer <tkeffer@gmail.com> # See the file LICENSE.txt for your rights. """Implementation of a $seven_day search list extension. ******************************************************************************* This search list extension offers an extra tag: 'seven_day': Statist...
41.115385
91
0.542251
cd142dc6571164917125d3894445732e8fffe3bd
32,368
py
Python
python/ccxt/async_support/gatecoin.py
BenjaminLu/ccxt
117da958882d8055d2ac0a9759944ee372bb2475
[ "MIT" ]
26
2018-12-10T07:16:35.000Z
2022-03-15T03:15:54.000Z
python/ccxt/async_support/gatecoin.py
BenjaminLu/ccxt
117da958882d8055d2ac0a9759944ee372bb2475
[ "MIT" ]
2
2019-04-05T04:18:01.000Z
2019-10-22T14:11:13.000Z
python/ccxt/async_support/gatecoin.py
BenjaminLu/ccxt
117da958882d8055d2ac0a9759944ee372bb2475
[ "MIT" ]
13
2019-03-13T14:54:30.000Z
2021-10-14T10:11:49.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
48.166667
187
0.530462
b9ea66d1bc8245e731235e52e0a7b97ea942871e
789
py
Python
scripts/dev/__init__.py
seburke/pulsar-io-sqs
e8eefd37d8568d442728d5b53e0385f11b2f5056
[ "Apache-2.0" ]
4
2021-03-17T18:49:39.000Z
2021-11-23T08:01:45.000Z
scripts/dev/__init__.py
seburke/pulsar-io-sqs
e8eefd37d8568d442728d5b53e0385f11b2f5056
[ "Apache-2.0" ]
19
2021-02-20T03:56:59.000Z
2022-03-08T06:01:29.000Z
scripts/dev/__init__.py
seburke/pulsar-io-sqs
e8eefd37d8568d442728d5b53e0385f11b2f5056
[ "Apache-2.0" ]
4
2021-02-20T03:18:28.000Z
2021-10-05T18:33:59.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...
43.833333
62
0.769328
499fd8243cac179ebb2e9c707e6aaa4dded12007
45,684
py
Python
addons/odoo/addons/product/tests/test_variants.py
apadanagroup/parOdoo
8c6f67848e0689b76fb780feca08d819fd3c1847
[ "Apache-2.0" ]
12
2021-03-26T08:39:40.000Z
2022-03-16T02:20:10.000Z
addons/odoo/addons/product/tests/test_variants.py
apadanagroup/parOdoo
8c6f67848e0689b76fb780feca08d819fd3c1847
[ "Apache-2.0" ]
13
2020-12-20T16:00:21.000Z
2022-03-14T14:55:30.000Z
addons/odoo/addons/product/tests/test_variants.py
apadanagroup/parOdoo
8c6f67848e0689b76fb780feca08d819fd3c1847
[ "Apache-2.0" ]
17
2020-08-31T11:18:49.000Z
2022-02-09T05:57:31.000Z
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from collections import OrderedDict import io from PIL import Image from . import common from odoo.exceptions import UserError from odoo.tests.common import TransactionCase class TestVariantsSearch(Trans...
44.569756
168
0.632563
f902a92dabe01a1f7d53c24a34dcaa1a50347460
1,569
py
Python
util/flops_from_tput.py
msr-fiddle/folded-cnns
c87ac633b0b700f6085018f1aeb2c3ca615d73bf
[ "MIT" ]
2
2021-08-30T05:55:39.000Z
2021-10-04T17:31:06.000Z
util/flops_from_tput.py
msr-fiddle/folded-cnns
c87ac633b0b700f6085018f1aeb2c3ca615d73bf
[ "MIT" ]
null
null
null
util/flops_from_tput.py
msr-fiddle/folded-cnns
c87ac633b0b700f6085018f1aeb2c3ca615d73bf
[ "MIT" ]
null
null
null
""" Script for computing FLOPs/sec from throughput """ import argparse import json import os if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( "tput", type=float, help="Throughput in images/sec") parser.add_argument( "model", type=str, ...
34.866667
79
0.615041
262707a26ca4cbbd778bb3324fad3e5ae72491f9
390
py
Python
wafw00f/plugins/wzb360.py
nofunofunofunofun/wafw00f
a1c3f3a045077d893cd9ed970f5d687b590abfa5
[ "BSD-3-Clause" ]
1
2022-03-22T09:15:04.000Z
2022-03-22T09:15:04.000Z
wafw00f/plugins/wzb360.py
nofunofunofunofun/wafw00f
a1c3f3a045077d893cd9ed970f5d687b590abfa5
[ "BSD-3-Clause" ]
null
null
null
wafw00f/plugins/wzb360.py
nofunofunofunofun/wafw00f
a1c3f3a045077d893cd9ed970f5d687b590abfa5
[ "BSD-3-Clause" ]
1
2021-02-25T19:53:35.000Z
2021-02-25T19:53:35.000Z
#!/usr/bin/env python NAME = '360WangZhanBao' def is_waf(self): if self.matchheader(('X-Powered-By-360WZB', '.+')): return True for attack in self.attacks: r = attack(self) if r is None: return response, responsepage = r if response.status == 493 and b'/wz...
22.941176
72
0.579487
4ca203a6af22a20af02c462db4bb4454fea5bbb6
3,159
py
Python
distributors/urlobject/query_string.py
fish2000/django-signalqueue
2d98b8e6b7bf2bd131c4d7c18d54d7fb008ed989
[ "BSD-3-Clause" ]
12
2015-02-27T19:26:13.000Z
2019-04-21T12:16:01.000Z
distributors/urlobject/query_string.py
Steckelfisch/django-signalqueue
851bf3641bd940a49b7a2da74c9809bdfcac8fd3
[ "BSD-3-Clause" ]
1
2017-08-25T10:11:47.000Z
2017-08-25T10:11:47.000Z
distributors/urlobject/query_string.py
Steckelfisch/django-signalqueue
851bf3641bd940a49b7a2da74c9809bdfcac8fd3
[ "BSD-3-Clause" ]
null
null
null
import collections import re import urllib import urlparse class QueryString(unicode): def __repr__(self): return 'QueryString(%r)' % (unicode(self),) @property def list(self): result = [] if not self: # Empty string => empty list. return result n...
28.718182
78
0.548591
d44f29720cab30bd8a1d90c56156532463f438c9
4,379
py
Python
FSDAMGromacs/top_files.py
MauriceKarrenbrock/FSDAMGromacs
7da70a5fa8f31e93f283a4c7ffc31911b2b143aa
[ "BSD-3-Clause" ]
null
null
null
FSDAMGromacs/top_files.py
MauriceKarrenbrock/FSDAMGromacs
7da70a5fa8f31e93f283a4c7ffc31911b2b143aa
[ "BSD-3-Clause" ]
null
null
null
FSDAMGromacs/top_files.py
MauriceKarrenbrock/FSDAMGromacs
7da70a5fa8f31e93f283a4c7ffc31911b2b143aa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################# # Copyright (c) 2020-2021 Maurice Karrenbrock # # # # This software is open-source and is distributed under the # # BSD 3-Clause "New" or "Revised" License ...
30.838028
94
0.578671
69fd5edbb4d51617cc66130b7b3909437aa45ca3
14,153
py
Python
Meta/lint-ports.py
xspager/serenity
39b7fbfeb9e469b4089f5424dc61aa074023bb5a
[ "BSD-2-Clause" ]
1
2022-03-25T21:33:51.000Z
2022-03-25T21:33:51.000Z
Meta/lint-ports.py
xspager/serenity
39b7fbfeb9e469b4089f5424dc61aa074023bb5a
[ "BSD-2-Clause" ]
null
null
null
Meta/lint-ports.py
xspager/serenity
39b7fbfeb9e469b4089f5424dc61aa074023bb5a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import re import sys import subprocess from pathlib import Path from tempfile import NamedTemporaryFile # Matches e.g. "| [`bash`](bash/) | GNU Bash | 5.0 | https://www.gnu.org/software/bash/ |" # and captures "bash" in group 1, "bash/" in group 2, "<spaces>" in group 3, "GNU Bash" in...
28.707911
116
0.589345
4912c5a6e760fc23c601832b9728b7a2ab383b75
3,214
py
Python
vendor/google/cloud/Kms/synth.py
codewithkyle/dnd-website
9d30d58732b2e56d0bbd777d701759ff12dba265
[ "MIT" ]
null
null
null
vendor/google/cloud/Kms/synth.py
codewithkyle/dnd-website
9d30d58732b2e56d0bbd777d701759ff12dba265
[ "MIT" ]
null
null
null
vendor/google/cloud/Kms/synth.py
codewithkyle/dnd-website
9d30d58732b2e56d0bbd777d701759ff12dba265
[ "MIT" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.486239
94
0.671749
1985c7bc5e1f86893e35e7bfce717d553d32fbb9
2,174
py
Python
docs/source/conf.py
cGIfl300/pyBible
338e0b74b2fa6e2f5ca00e792c34137a5dac37a3
[ "MIT" ]
null
null
null
docs/source/conf.py
cGIfl300/pyBible
338e0b74b2fa6e2f5ca00e792c34137a5dac37a3
[ "MIT" ]
null
null
null
docs/source/conf.py
cGIfl300/pyBible
338e0b74b2fa6e2f5ca00e792c34137a5dac37a3
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.064516
79
0.676633