hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7950ccf0237b0c5403a45b351cd7e235a59d5cd8
1,356
py
Python
stl_dsa/users/tests/test_views.py
renodubois/site
028caa79cbb6d116aeb57aaf12a693cda6382072
[ "MIT" ]
null
null
null
stl_dsa/users/tests/test_views.py
renodubois/site
028caa79cbb6d116aeb57aaf12a693cda6382072
[ "MIT" ]
null
null
null
stl_dsa/users/tests/test_views.py
renodubois/site
028caa79cbb6d116aeb57aaf12a693cda6382072
[ "MIT" ]
null
null
null
import pytest from stl_dsa.users.models import User from stl_dsa.users.views import UserRedirectView, UserUpdateView pytestmark = pytest.mark.django_db class TestUserUpdateView: """ TODO: extracting view initialization code as class-scoped fixture would be great if only pytest-django supporte...
28.851064
74
0.652655
7950cd2c66eb54c7c1ac32dc6ed3e18f07417dcc
10,250
py
Python
ikbtleaves/sub_transform.py
uw-biorobotics/IKBT
be1923b441e5bac6662baf64b186cd69f7e31e31
[ "BSD-3-Clause" ]
129
2017-11-17T15:59:31.000Z
2022-03-19T14:37:56.000Z
ikbtleaves/sub_transform.py
uw-biorobotics/IKBT
be1923b441e5bac6662baf64b186cd69f7e31e31
[ "BSD-3-Clause" ]
36
2018-03-07T01:18:45.000Z
2021-11-17T02:59:05.000Z
ikbtleaves/sub_transform.py
uw-biorobotics/IKBT
be1923b441e5bac6662baf64b186cd69f7e31e31
[ "BSD-3-Clause" ]
33
2017-09-22T22:42:37.000Z
2022-03-16T22:52:07.000Z
#!/usr/bin/python # # Implement a transform in which we identify # RHS elements which can be substituted into # another RHS to elminiate unknowns. # # This is a new approach rather than making it a SOLVER # it is just a transform which allows other solvers to work. # # Copyright 2017 University of...
44.372294
757
0.532878
7950cd9b5c0c000e6cc2c25a267c3e4e6a56b4e3
14,259
py
Python
Old-Bots/TAG/main.py
CDFalcon/Discord-Bots
10baa0b883cbf57b2c5f0719ac3df9797ad50520
[ "MIT" ]
3
2018-09-14T18:38:46.000Z
2018-09-15T16:26:46.000Z
Old-Bots/TAG/main.py
CDFalcon/Discord-Bots
10baa0b883cbf57b2c5f0719ac3df9797ad50520
[ "MIT" ]
null
null
null
Old-Bots/TAG/main.py
CDFalcon/Discord-Bots
10baa0b883cbf57b2c5f0719ac3df9797ad50520
[ "MIT" ]
null
null
null
# # main.py # # Created by CDFalcon on 4/18/18. # Copyright (c) 2018 CDFalcon. All rights reserved. # #Imports# #-----------------------------------------------------------------------------# import discord from discord.ext import commands from discord.ext.commands import Bot from discord.ext import commands from d...
37.622691
187
0.644786
7950cdad367d74e03220a993eb68d992fd97d49d
207
py
Python
agent/model/AgentModel.py
aaitor/agent
835ddf5037b1b6254eda57f056f54195670c17ff
[ "Apache-2.0" ]
null
null
null
agent/model/AgentModel.py
aaitor/agent
835ddf5037b1b6254eda57f056f54195670c17ff
[ "Apache-2.0" ]
null
null
null
agent/model/AgentModel.py
aaitor/agent
835ddf5037b1b6254eda57f056f54195670c17ff
[ "Apache-2.0" ]
1
2019-08-28T09:19:05.000Z
2019-08-28T09:19:05.000Z
import json class AgentModel: def __init__(self): pass def toJson(self): return json.dumps(self, default=lambda o: o.__dict__, sort_keys=True, indent=4)
17.25
61
0.574879
7950ce977d4c3dffa699bfa53e41f5a52a0b5dea
6,015
py
Python
recovery/redisUsersRecovery.py
SlavomirMazurPantheon/backend
f2e3e6e3a70a0038f706fffec411cc627a480969
[ "Apache-2.0" ]
2
2020-08-19T16:44:48.000Z
2021-04-30T06:48:16.000Z
recovery/redisUsersRecovery.py
SlavomirMazurPantheon/backend
f2e3e6e3a70a0038f706fffec411cc627a480969
[ "Apache-2.0" ]
243
2018-08-21T09:12:57.000Z
2022-03-31T12:31:48.000Z
recovery/redisUsersRecovery.py
SlavomirMazurPantheon/backend
f2e3e6e3a70a0038f706fffec411cc627a480969
[ "Apache-2.0" ]
25
2018-08-21T08:45:43.000Z
2021-12-12T13:51:47.000Z
# Copyright The IETF Trust 2021, All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
40.641892
112
0.622943
7950cf0237bff15f997ec676e381060a44dd2735
5,448
py
Python
aiida/cmdline/commands/cmd_comment.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/cmd_comment.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/cmd_comment.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
1
2018-12-21T11:10:09.000Z
2018-12-21T11:10:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.219512
120
0.598201
7950cf5396b543953cb295e0133641d75bd4d635
1,541
py
Python
CMU/hand_labels/normdat.py
naoc-1861355/Public_Handpose_datasets
a0119226859ffad64bd7ceac8f8b4b67d2aebf8b
[ "MIT" ]
1
2022-01-11T03:43:17.000Z
2022-01-11T03:43:17.000Z
CMU/hand_labels/normdat.py
naoc-1861355/Public_Handpose_datasets
a0119226859ffad64bd7ceac8f8b4b67d2aebf8b
[ "MIT" ]
null
null
null
CMU/hand_labels/normdat.py
naoc-1861355/Public_Handpose_datasets
a0119226859ffad64bd7ceac8f8b4b67d2aebf8b
[ "MIT" ]
null
null
null
import json import os.path import cv2 import numpy as np from utils import generate_json_2d def normdat(outpath): """ normdat is a function that convert this dataset to standard ezxr format output Args: :param outpath : root output path of the formatted files Returns: :return: None...
25.683333
82
0.579494
7950d0557725ab94ef9754a4d635e1267072ebc8
825
py
Python
research/attention_ocr/python/datasets/__init__.py
udaylunawat/models
a07de068e5fe56d0b2bd3c155844b35954c180a3
[ "Apache-2.0" ]
null
null
null
research/attention_ocr/python/datasets/__init__.py
udaylunawat/models
a07de068e5fe56d0b2bd3c155844b35954c180a3
[ "Apache-2.0" ]
null
null
null
research/attention_ocr/python/datasets/__init__.py
udaylunawat/models
a07de068e5fe56d0b2bd3c155844b35954c180a3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
39.285714
80
0.701818
7950d08eb03fa8769a6f5ab780ffdfeae10cffb9
1,521
py
Python
app/auth/views.py
01king-ori/Kingsblog
624a0e738f5ff8728bbcc327c5e6dd4144901e3f
[ "MIT" ]
null
null
null
app/auth/views.py
01king-ori/Kingsblog
624a0e738f5ff8728bbcc327c5e6dd4144901e3f
[ "MIT" ]
null
null
null
app/auth/views.py
01king-ori/Kingsblog
624a0e738f5ff8728bbcc327c5e6dd4144901e3f
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, flash, request from flask_login import login_user,logout_user,login_required from . import auth from ..models import User from .forms import LoginForm, RegistrationForm from .. import db from ..email import mail_message @auth.route('/login', methods=['GET', 'POST'...
31.040816
100
0.692965
7950d0bcd2bbd793375dfb268d3ce08907f6e4bd
8,701
py
Python
pdns_auth_tsigkey.py
massonpj/ansible-pdns-auth-api
7cd6389e28a4eb359998669a92f075ee402ccced
[ "Apache-2.0" ]
null
null
null
pdns_auth_tsigkey.py
massonpj/ansible-pdns-auth-api
7cd6389e28a4eb359998669a92f075ee402ccced
[ "Apache-2.0" ]
null
null
null
pdns_auth_tsigkey.py
massonpj/ansible-pdns-auth-api
7cd6389e28a4eb359998669a92f075ee402ccced
[ "Apache-2.0" ]
1
2020-08-24T11:07:46.000Z
2020-08-24T11:07:46.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2020, Kevin P. Fleming <kevin@km6g.us> # Apache License 2.0 (see LICENSE) ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ %YAML 1.2 --- module: pdns_auth_tsigkey short_des...
27.710191
101
0.604643
7950d15e58f29bc7fd9a2365bf7ea9e1c0bf291f
3,495
py
Python
tests/test_repr.py
interrogator/loguru
892ca5ef415af000a5fe77f3632f3903da46b39f
[ "MIT" ]
null
null
null
tests/test_repr.py
interrogator/loguru
892ca5ef415af000a5fe77f3632f3903da46b39f
[ "MIT" ]
null
null
null
tests/test_repr.py
interrogator/loguru
892ca5ef415af000a5fe77f3632f3903da46b39f
[ "MIT" ]
null
null
null
from loguru import logger import logging import sys import pathlib import re def test_no_handler(): assert repr(logger) == "<loguru.logger handlers=[]>" def test_stderr(): logger.add(sys.__stderr__) assert repr(logger) == "<loguru.logger handlers=[(id=0, level=10, sink=<stderr>)]>" def test_stdout(): ...
27.519685
101
0.629757
7950d1e65a20728de269d38416a20a07bda70281
11,425
py
Python
aiida/tools/data/array/kpoints/__init__.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
null
null
null
aiida/tools/data/array/kpoints/__init__.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
null
null
null
aiida/tools/data/array/kpoints/__init__.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
44.803922
119
0.698818
7950d29a64dbb28b60bf8229788687f93a122298
11
py
Python
src/test/resources/expressions/enclosure/display/list.py
oxisto/reticulated-python
a38c8bd9c842be4f4c8ddc73c61c70aeceb07248
[ "Apache-2.0" ]
3
2019-11-23T10:19:43.000Z
2021-03-19T03:18:30.000Z
src/test/resources/expressions/enclosure/display/list.py
oxisto/reticulated-python
a38c8bd9c842be4f4c8ddc73c61c70aeceb07248
[ "Apache-2.0" ]
46
2019-11-23T12:11:52.000Z
2022-03-07T13:39:12.000Z
src/test/resources/expressions/enclosure/display/list.py
oxisto/reticulated-python
a38c8bd9c842be4f4c8ddc73c61c70aeceb07248
[ "Apache-2.0" ]
3
2020-03-02T13:48:45.000Z
2020-03-06T09:33:25.000Z
[1, ['a']]
5.5
10
0.181818
7950d36494c5876ecc143027629021ed60c36553
4,913
py
Python
tilt/wlt/wallet.py
inc/tilt
2d5e9040cc28e325ae3365f04d3c89c402ebba0f
[ "BSD-1-Clause" ]
1
2021-04-13T11:08:42.000Z
2021-04-13T11:08:42.000Z
tilt/wlt/wallet.py
inc/tilt
2d5e9040cc28e325ae3365f04d3c89c402ebba0f
[ "BSD-1-Clause" ]
null
null
null
tilt/wlt/wallet.py
inc/tilt
2d5e9040cc28e325ae3365f04d3c89c402ebba0f
[ "BSD-1-Clause" ]
2
2021-04-13T11:09:00.000Z
2021-04-25T14:09:06.000Z
#!/bin/python3 # # Tilt - Wallet Manager # Copyright (c) 2021 Lone Dynamics Corporation. All rights reserved. # import json import os import time import glob import logging import sys import pprint import zipfile import bitcoinlib from bitcoinlib.keys import Key from cryptography.fernet import Fernet import tilt.uti...
30.515528
79
0.549766
7950d391f7996ef25b858ff1e5ca9cbc483d6071
16,337
py
Python
testing/scripts/run_android_wpt.py
mduclehcm/react-native-skia
de1ede5332ed66f731be4389cd625f95c32e2733
[ "MIT" ]
643
2021-08-02T05:04:20.000Z
2022-03-27T22:56:02.000Z
testing/scripts/run_android_wpt.py
mduclehcm/react-native-skia
de1ede5332ed66f731be4389cd625f95c32e2733
[ "MIT" ]
18
2021-05-13T05:53:06.000Z
2022-03-31T21:24:25.000Z
testing/scripts/run_android_wpt.py
mduclehcm/react-native-skia
de1ede5332ed66f731be4389cd625f95c32e2733
[ "MIT" ]
16
2021-08-31T07:08:45.000Z
2022-02-14T12:36:15.000Z
#!/usr/bin/env vpython # Copyright 2019 The 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. """Runs Web Platform Tests (WPT) on Android browsers. This script supports running tests on the Chromium Waterfall by mapping isolate...
35.984581
80
0.689294
7950d5102694d907493bb089b21903d6788ede4b
1,205
py
Python
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/file/cmd/move/data/dsz/__init__.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/file/cmd/move/data/dsz/__init__.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
null
null
null
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/file/cmd/move/data/dsz/__init__.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: __init__.py import dsz import dsz.cmd import dsz.data import dsz.lp class Move(dsz.data.Task): def __init__(self, cmd=None): dsz.data.T...
25.638298
100
0.580913
7950d5690cb9cdf85abbba0ca2ddaf60421183b3
3,099
py
Python
projDir/uw/scripts/ftpCSapr2Images.py
NCAR/lrose-projects-relampago
8208e4bd83ac8007a04987c0531fb60cc629a05a
[ "BSD-2-Clause" ]
1
2018-12-03T19:51:14.000Z
2018-12-03T19:51:14.000Z
projDir/uw/scripts/ftpCSapr2Images.py
NCAR/lrose-projects-relampago
8208e4bd83ac8007a04987c0531fb60cc629a05a
[ "BSD-2-Clause" ]
null
null
null
projDir/uw/scripts/ftpCSapr2Images.py
NCAR/lrose-projects-relampago
8208e4bd83ac8007a04987c0531fb60cc629a05a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import sys import os import time import datetime from datetime import timedelta import requests from bs4 import BeautifulSoup from ftplib import FTP #if len(sys.argv) != 2: # print >>sys.stderr, "Useage: ",sys.argv[0]," [YYYY_MM_DD]" # quit() #date = sys.argv[1] # get current date and time mi...
28.694444
106
0.622136
7950d5c597bdfe185bc2350c8cec2863843cc600
7,531
py
Python
lib/googlecloudsdk/command_lib/interactive/parser.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/interactive/parser.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/interactive/parser.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
31.776371
80
0.656354
7950d5d7433ed236942c163a5b774ce167c380ba
5,011
py
Python
paddle/ds2.py
tensor-tang/DeepSpeech2
6ea38aa2a47a1045770d387c0474b266dc5aa311
[ "Apache-2.0" ]
null
null
null
paddle/ds2.py
tensor-tang/DeepSpeech2
6ea38aa2a47a1045770d387c0474b266dc5aa311
[ "Apache-2.0" ]
1
2017-06-05T14:05:35.000Z
2017-06-05T14:05:35.000Z
paddle/ds2.py
tensor-tang/DeepSpeech2
6ea38aa2a47a1045770d387c0474b266dc5aa311
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from paddle.trainer_config_helpers import * use_dummy = get_config_arg("use_dummy", bool, True) batch_size = get_config_arg('batch_size', int, 1) is_predict = get_config_arg("is_predict", bool, False) is_test = get_config_arg("is_test", bool, False) layer_num = get_config_arg('layer_num', int, 6)...
31.71519
116
0.564558
7950d647ae6c25dc76dfceebbd1d4b4f40951066
566
py
Python
pirates/flag/DistributedFlagShop.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/flag/DistributedFlagShop.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/flag/DistributedFlagShop.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.flag.DistributedFlagShop from pandac.PandaModules import * from direct.distributed.DistributedObject import DistributedObject im...
37.733333
104
0.773852
7950d6fe5019e5f5a01c5b4808ca9d15b68b8aa8
2,296
py
Python
alipay/aop/api/domain/AlipayUserMpointPreconsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserMpointPreconsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserMpointPreconsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayUserMpointPreconsultModel(object): def __init__(self): self._biz_sub_type = None self._biz_type = None self._point = None self._user_id = None @property...
26.697674
75
0.570557
7950d793ebe8d0398dd4ae9be65b1d289c8b5d04
27,383
py
Python
onnx/helper.py
vinitra/onnx
531e6dd459003fc8d13b8abb66b29a72a571c865
[ "MIT" ]
null
null
null
onnx/helper.py
vinitra/onnx
531e6dd459003fc8d13b8abb66b29a72a571c865
[ "MIT" ]
null
null
null
onnx/helper.py
vinitra/onnx
531e6dd459003fc8d13b8abb66b29a72a571c865
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import collections import numbers from six import text_type, integer_types, binary_type import google.protobuf.message from onnx import TensorProto, SparseTensorProto, A...
36.220899
217
0.635577
7950d7dbad68be4cd56f2630ba48da83d18298e2
1,481
py
Python
sillygamble/wallet/admin.py
bitcoinuprising/silly-gamble
d6c7e92d90b4f3e06ab2ceda0f0f1ea7acec72f7
[ "MIT" ]
2
2018-01-18T13:07:03.000Z
2020-03-05T07:30:45.000Z
sillygamble/wallet/admin.py
bitcoinuprising/silly-gamble
d6c7e92d90b4f3e06ab2ceda0f0f1ea7acec72f7
[ "MIT" ]
1
2018-10-02T09:06:05.000Z
2018-10-05T14:12:19.000Z
sillygamble/wallet/admin.py
bitcoinuprising/silly-gamble
d6c7e92d90b4f3e06ab2ceda0f0f1ea7acec72f7
[ "MIT" ]
7
2018-01-18T13:10:52.000Z
2019-12-02T02:58:04.000Z
from django.contrib import admin # Register your models here. from .models import Wallet, Transaction from .services.wallet import WalletImportTransaction # Register your models here. # class DepositInline(admin.TabularInline): # model = Deposit # extra = 0 class TransactionInline(admin.TabularInline): m...
33.659091
102
0.731938
7950d7edd6c4fb9665b7adf742ec344ca02cfbb6
1,268
py
Python
setup.py
itsbenweeks/python-lsp-jsonrpc
8aee0038336e83d649b59813a31b5b75b2c81074
[ "MIT" ]
2
2021-02-21T17:21:27.000Z
2021-03-05T11:22:13.000Z
setup.py
itsbenweeks/python-lsp-jsonrpc
8aee0038336e83d649b59813a31b5b75b2c81074
[ "MIT" ]
null
null
null
setup.py
itsbenweeks/python-lsp-jsonrpc
8aee0038336e83d649b59813a31b5b75b2c81074
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2017-2020 Palantir Technologies, Inc. # Copyright 2021- Python Language Server Contributors. import ast import os from setuptools import find_packages, setup HERE = os.path.abspath(os.path.dirname(__file__)) def get_version(module='pylsp_jsonrpc'): """Get version.""" with ...
27.565217
73
0.638801
7950d7fe353371ee126bd46c09a8ba594b469841
78
py
Python
pastycake/notifier.py
9b/pastycake
f02363d822dae7111ecc70a1ad435d88d57be939
[ "BSD-3-Clause" ]
18
2015-02-02T16:12:44.000Z
2021-01-22T01:04:23.000Z
pastycake/notifier.py
5l1v3r1/pastycake
f02363d822dae7111ecc70a1ad435d88d57be939
[ "BSD-3-Clause" ]
null
null
null
pastycake/notifier.py
5l1v3r1/pastycake
f02363d822dae7111ecc70a1ad435d88d57be939
[ "BSD-3-Clause" ]
2
2020-05-11T15:15:24.000Z
2021-06-21T12:21:06.000Z
import abc class Notifier(object): __metaclass__ = abc.ABCMeta pass
11.142857
31
0.705128
7950d82dd9afba67bda6e05db43e6520ffa748c1
957
py
Python
python/dgl/backend/set_default_backend.py
yuanqing-wang/dgl
434f9542b5a95c4700020d07d6622a5dd45a6465
[ "Apache-2.0" ]
null
null
null
python/dgl/backend/set_default_backend.py
yuanqing-wang/dgl
434f9542b5a95c4700020d07d6622a5dd45a6465
[ "Apache-2.0" ]
null
null
null
python/dgl/backend/set_default_backend.py
yuanqing-wang/dgl
434f9542b5a95c4700020d07d6622a5dd45a6465
[ "Apache-2.0" ]
null
null
null
import argparse import os import json def set_default_backend(backend_name): default_dir = os.path.join(os.path.expanduser('~'), '.dgl') if not os.path.exists(default_dir): os.makedirs(default_dir) config_path = os.path.join(default_dir, 'config.json') with open(config_path, "w") as config_file...
41.608696
93
0.663532
7950d95b757684445173875002354fa0118a81c3
431
py
Python
app/core/migrations/0006_recipe_image.py
guma44/recipe-app-api
715a0b6a0dce05756c72f93e25c7fa88efbdc6a1
[ "MIT" ]
null
null
null
app/core/migrations/0006_recipe_image.py
guma44/recipe-app-api
715a0b6a0dce05756c72f93e25c7fa88efbdc6a1
[ "MIT" ]
null
null
null
app/core/migrations/0006_recipe_image.py
guma44/recipe-app-api
715a0b6a0dce05756c72f93e25c7fa88efbdc6a1
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-02-15 11:41 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0005_recipe'), ] operations = [ migrations.AddField( model_name='recipe', name='image', ...
21.55
93
0.62181
7950dc0852c9a6990a68a4ef14e017efc8e20fef
11,341
py
Python
ote_sdk/ote_sdk/usecases/exportable_code/streamer/streamer.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/usecases/exportable_code/streamer/streamer.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/usecases/exportable_code/streamer/streamer.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
1
2020-12-13T22:13:51.000Z
2020-12-13T22:13:51.000Z
""" Streamer for reading input """ # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # import abc import multiprocessing import queue import sys from enum import Enum from pathlib import Path from typing import Iterable, Iterator, List, NamedTuple, Optional, Tuple, Union import cv2 im...
29.610966
106
0.638127
7950ddaf3f54e0fd5a71728e8fd2d8f0da0b959f
3,775
py
Python
examples/opencv_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
1
2018-03-30T16:57:49.000Z
2018-03-30T16:57:49.000Z
examples/opencv_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
null
null
null
examples/opencv_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
null
null
null
""" Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed ...
34.633028
138
0.615629
7950de24fdc3f3cedd834064297305bb42a59917
10,871
py
Python
tests/tasks/prefect/test_flow_run.py
knockrentals/prefect_core
d1e4413f1fa18baef0db6dba0c053b04ce593577
[ "Apache-2.0" ]
null
null
null
tests/tasks/prefect/test_flow_run.py
knockrentals/prefect_core
d1e4413f1fa18baef0db6dba0c053b04ce593577
[ "Apache-2.0" ]
null
null
null
tests/tasks/prefect/test_flow_run.py
knockrentals/prefect_core
d1e4413f1fa18baef0db6dba0c053b04ce593577
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta import pendulum import pytest from unittest.mock import MagicMock import prefect from prefect.client.client import FlowRunInfoResult, ProjectInfo from prefect.engine import signals, state from prefect.run_configs import UniversalRun from prefect.tasks.prefect.flow_run import StartFlowRu...
38.14386
85
0.615123
7950de6f095226cc19c10921e1c58a21c9dad234
2,185
py
Python
src/main/resources/redmine/Server.py
xebialabs-community/xlr-redmine-plugin
8257bb050ce6a0fa40b98dfae074d0802365f818
[ "MIT" ]
null
null
null
src/main/resources/redmine/Server.py
xebialabs-community/xlr-redmine-plugin
8257bb050ce6a0fa40b98dfae074d0802365f818
[ "MIT" ]
null
null
null
src/main/resources/redmine/Server.py
xebialabs-community/xlr-redmine-plugin
8257bb050ce6a0fa40b98dfae074d0802365f818
[ "MIT" ]
null
null
null
# # Copyright 2019 XEBIALABS # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
62.428571
462
0.747368
7950df4d9487228feba7ed00fb1b4690ba7b89c5
7,461
py
Python
eth2/beacon/types/states.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
eth2/beacon/types/states.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
eth2/beacon/types/states.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
from typing import Sequence, Type, TypeVar from eth.constants import ZERO_HASH32 from eth_typing import Hash32 from eth_utils import humanize_hash from ssz.hashable_container import HashableContainer from ssz.sedes import Bitvector, List, Vector, bytes32, uint64 from eth2.beacon.constants import JUSTIFICATION_BITS_LE...
40.548913
106
0.667873
7950e128e74649ab0a837e8ededf4cdf3faf0b64
5,495
py
Python
deprecated/matrix.py
s-geronimoanderson/compat-id
3ae52dd3d3e92285de425304ccde02f87d2ae880
[ "Apache-2.0" ]
null
null
null
deprecated/matrix.py
s-geronimoanderson/compat-id
3ae52dd3d3e92285de425304ccde02f87d2ae880
[ "Apache-2.0" ]
null
null
null
deprecated/matrix.py
s-geronimoanderson/compat-id
3ae52dd3d3e92285de425304ccde02f87d2ae880
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from scipy.sparse import coo_matrix class Matrix: """A sparse matrix class (indexed from zero). Replace with NumPy arrays.""" def __init__(self, matrix=None, size=None): """Size is a tuple (m,n) representing m rows and n columns.""" if matrix is None: self.dat...
36.879195
79
0.571611
7950e187cab9539ccfb7de350c2196fd7a3a9a64
43,521
py
Python
tensorflow/python/framework/type_spec.py
kim-com/tensorflow
4301e3f34b8da528c58bdafe05cd66c8a55fce9e
[ "Apache-2.0" ]
1
2022-03-29T23:09:34.000Z
2022-03-29T23:09:34.000Z
tensorflow/python/framework/type_spec.py
kim-com/tensorflow
4301e3f34b8da528c58bdafe05cd66c8a55fce9e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/type_spec.py
kim-com/tensorflow
4301e3f34b8da528c58bdafe05cd66c8a55fce9e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.34991
114
0.691505
7950e31c6c57cdca61de8e44feaba28cdb00dc0a
10,409
py
Python
vspk/v4_0/nuvcentereamconfig.py
cldelcourt/vspk-python
cdea810cd220e6ddc131407735941b9a26b2edda
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nuvcentereamconfig.py
cldelcourt/vspk-python
cdea810cd220e6ddc131407735941b9a26b2edda
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nuvcentereamconfig.py
cldelcourt/vspk-python
cdea810cd220e6ddc131407735941b9a26b2edda
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
29.571023
175
0.596311
7950e4f9722b8b2924e216c80cad1587fcfc60d2
7,691
py
Python
docs/conf.py
julienmendes/corona
25b085090df1c0a6f415be96fb21bcf1373c230d
[ "MIT" ]
null
null
null
docs/conf.py
julienmendes/corona
25b085090df1c0a6f415be96fb21bcf1373c230d
[ "MIT" ]
null
null
null
docs/conf.py
julienmendes/corona
25b085090df1c0a6f415be96fb21bcf1373c230d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # corona documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a ...
31.391837
80
0.70472
7950e50045c40383a6db8405526dcd960304ab3f
598
py
Python
Application/ReclamaCaicoProject/ReclamaCaicoApp/migrations/0010_comentario_user.py
WesleyVitor/ReclamaCaico
df67997821fc00236f1d9c77e8685ed8e4a6934b
[ "MIT" ]
null
null
null
Application/ReclamaCaicoProject/ReclamaCaicoApp/migrations/0010_comentario_user.py
WesleyVitor/ReclamaCaico
df67997821fc00236f1d9c77e8685ed8e4a6934b
[ "MIT" ]
null
null
null
Application/ReclamaCaicoProject/ReclamaCaicoApp/migrations/0010_comentario_user.py
WesleyVitor/ReclamaCaico
df67997821fc00236f1d9c77e8685ed8e4a6934b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-09-07 14:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ReclamaCaicoApp', '0009_...
27.181818
121
0.682274
7950e5a8ce8111b5af259667b7e8d572addd1c07
1,485
py
Python
Incident-Response/Tools/Loki/loki-package-builder.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/Loki/loki-package-builder.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/Loki/loki-package-builder.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
import sys import argparse import io from lib.privrules import * def parse_arguments(): parser = argparse.ArgumentParser(description='Package builder for Loki') parser.add_argument('--ruledir', help='directory containing the rules to build into Loki', required=True) parser.add_argument('--target', help='t...
31.595745
109
0.713805
7950e5b8306e665c63e9ed17dec883e394ece72b
234,804
py
Python
venv/Lib/site-packages/matplotlib/tests/test_axes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
7
2021-09-20T19:23:05.000Z
2022-01-22T13:28:01.000Z
venv/Lib/site-packages/matplotlib/tests/test_axes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/matplotlib/tests/test_axes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
20
2021-11-07T13:55:56.000Z
2021-12-02T10:54:01.000Z
from collections import namedtuple import datetime from decimal import Decimal import io from itertools import product import platform from types import SimpleNamespace try: from contextlib import nullcontext except ImportError: from contextlib import ExitStack as nullcontext # Py3.6. import dateutil.tz impo...
33.11763
89
0.596016
7950e61f996e5d8be1560adeccfb2e045356dd7e
1,309
py
Python
tests/test_transaction.py
nikola-kocic/sqlalchemy-continuum
45b8ada3162435670dbe844b3d630823fa50f6fc
[ "BSD-3-Clause" ]
1
2015-04-25T18:42:22.000Z
2015-04-25T18:42:22.000Z
tests/test_transaction.py
nikola-kocic/sqlalchemy-continuum
45b8ada3162435670dbe844b3d630823fa50f6fc
[ "BSD-3-Clause" ]
null
null
null
tests/test_transaction.py
nikola-kocic/sqlalchemy-continuum
45b8ada3162435670dbe844b3d630823fa50f6fc
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy_continuum import versioning_manager from tests import TestCase class TestTransaction(TestCase): def setup_method(self, method): TestCase.setup_method(self, method) self.article = self.Article() self.article.name = u'Some article' self.article.content = u'Some conten...
32.725
66
0.625668
7950e6322810b6d2c32bb03365b23aa9091e390d
389
py
Python
oo/pessoa.py
Francisco-Mario/pythonbirds
a2aeec8821481d740d208462c620a542e761b2c6
[ "MIT" ]
null
null
null
oo/pessoa.py
Francisco-Mario/pythonbirds
a2aeec8821481d740d208462c620a542e761b2c6
[ "MIT" ]
null
null
null
oo/pessoa.py
Francisco-Mario/pythonbirds
a2aeec8821481d740d208462c620a542e761b2c6
[ "MIT" ]
null
null
null
class Pessoa: def __init__(self, nome=None, idade=57): self.idade = idade self.nome = nome def cumprimentar(self): return f'Olá! {id(self)}' if __name__ == '__main__': p = Pessoa('Francisco') print(Pessoa.cumprimentar(p)) print(id(p)) print(p.cumprimentar()) print(...
17.681818
44
0.583548
7950e648c001033379e1384ba37cc9b6354835e1
3,882
py
Python
venv/Lib/site-packages/wand/compat.py
18813684097/new_di
cb8f117dee65bdf2cb8d8db5d3a585e23e73cb86
[ "MIT" ]
null
null
null
venv/Lib/site-packages/wand/compat.py
18813684097/new_di
cb8f117dee65bdf2cb8d8db5d3a585e23e73cb86
[ "MIT" ]
null
null
null
venv/Lib/site-packages/wand/compat.py
18813684097/new_di
cb8f117dee65bdf2cb8d8db5d3a585e23e73cb86
[ "MIT" ]
null
null
null
""":mod:`wand.compat` --- Compatibility layer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides several subtle things to support multiple Python versions (2.6, 2.7, 3.3+) and VM implementations (CPython, PyPy). """ import collections try: import collections.abc except ImportError: pass import...
29.861538
79
0.592478
7950ea522362ceb79971dd8de968586eea9b62b1
1,888
py
Python
Utils/createBenchmark.py
Azoy/swift-experimental-string-processing
93b569d0b32be4fc666fec0b2ffe903b4c40eb20
[ "Apache-2.0" ]
null
null
null
Utils/createBenchmark.py
Azoy/swift-experimental-string-processing
93b569d0b32be4fc666fec0b2ffe903b4c40eb20
[ "Apache-2.0" ]
null
null
null
Utils/createBenchmark.py
Azoy/swift-experimental-string-processing
93b569d0b32be4fc666fec0b2ffe903b4c40eb20
[ "Apache-2.0" ]
null
null
null
# python3 createBenchmark.py MyRegexBenchmark # reference: https://github.com/apple/swift/blob/main/benchmark/scripts/create_benchmark.py import argparse import os template = """import _StringProcessing extension BenchmarkRunner {{ mutating func add{name}() {{ }} }} """ def main(): p = argparse.ArgumentPars...
30.451613
97
0.684322
7950eaecf262415712d4b25140aaeb9dd30ffc5d
10,352
py
Python
Detection/ImageTaggingTool/helpers.py
mohabouje/cntk-hotel-pictures-classificator
a5b37dd90f5e7abf0c752b55b9b06951e4ffc4d1
[ "MIT" ]
28
2018-09-02T09:01:20.000Z
2022-01-20T12:55:49.000Z
Detection/ImageTaggingTool/helpers.py
mohabouje/cntk-hotel-pictures-classificator
a5b37dd90f5e7abf0c752b55b9b06951e4ffc4d1
[ "MIT" ]
6
2018-01-24T10:21:00.000Z
2018-04-17T17:39:17.000Z
Detection/ImageTaggingTool/helpers.py
karolzak/cntk-hotel-pictures-classificator
a5b37dd90f5e7abf0c752b55b9b06951e4ffc4d1
[ "MIT" ]
13
2018-09-02T09:01:23.000Z
2020-11-20T23:00:29.000Z
from __future__ import print_function from builtins import str import os import numpy as np import copy import cv2 from PIL import Image, ImageFont, ImageDraw from PIL.ExifTags import TAGS available_font = "arial.ttf" try: dummy = ImageFont.truetype(available_font, 16) except: available_font = "FreeMono.ttf"...
32.656151
157
0.629927
7950ec0299238aa8c62f5331485aa0412e1170bb
935
py
Python
countries_field/bitfield/query.py
egosko/django-countries-field
0710f6d148dfefd5c56767bc5203081e96b8dee4
[ "Unlicense" ]
3
2016-02-18T15:06:41.000Z
2019-12-25T15:34:28.000Z
countries_field/bitfield/query.py
egosko/django-countries-field
0710f6d148dfefd5c56767bc5203081e96b8dee4
[ "Unlicense" ]
2
2016-02-19T07:54:56.000Z
2018-05-15T14:46:31.000Z
countries_field/bitfield/query.py
egosko/django-countries-field
0710f6d148dfefd5c56767bc5203081e96b8dee4
[ "Unlicense" ]
8
2015-03-24T10:27:28.000Z
2020-11-30T09:56:19.000Z
class BitQueryLookupWrapper(object): def __init__(self, alias, column, bit): self.table_alias = alias self.column = column self.bit = bit def as_sql(self, qn, connection=None): """ Create the proper SQL fragment. This inserts something like "(T0.flags & value) !=...
31.166667
81
0.57754
7950ec16c31dbe0b4ad2c84949152dd1363122f4
502
py
Python
setup.py
sebastien-boulle/changelog-generator
97ee0037f904c133b8182a894dc8ce45d2cb4faa
[ "Unlicense", "MIT" ]
null
null
null
setup.py
sebastien-boulle/changelog-generator
97ee0037f904c133b8182a894dc8ce45d2cb4faa
[ "Unlicense", "MIT" ]
null
null
null
setup.py
sebastien-boulle/changelog-generator
97ee0037f904c133b8182a894dc8ce45d2cb4faa
[ "Unlicense", "MIT" ]
null
null
null
from setuptools import setup, find_namespace_packages setup( name="changelog-generator", version="0.1.0dev", packages=find_namespace_packages(include=["changelog_generator.*"]), maintainer="LumApps core team", maintainer_email="core@lumapps.com", url="https://github.com/lumapps/changelog-gener...
27.888889
72
0.697211
7950ec43598cb8155eec12a93e8e4d0f0990fcb9
699
py
Python
eap/sitecustomize.py
destexheteam/neuroneap
4dc4ab20c4ff6729718ad3e9abdb85d28299c433
[ "CC-BY-4.0", "MIT" ]
2
2016-11-25T22:32:05.000Z
2021-09-02T10:46:59.000Z
eap/sitecustomize.py
destexheteam/neuroneap
4dc4ab20c4ff6729718ad3e9abdb85d28299c433
[ "CC-BY-4.0", "MIT" ]
1
2016-02-04T22:26:08.000Z
2016-02-04T22:54:54.000Z
eap/sitecustomize.py
btel/neuroneap
f8846bb8a7487a1e252a2a6359142530f21b424f
[ "CC-BY-4.0", "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 ## {{{ http://code.activestate.com/recipes/65287/ (r5) # code snippet, to be included in 'sitecustomize.py' import sys def info(type, value, tb): if hasattr(sys, 'ps1') or not sys.stderr.isatty(): # we are in interactive mode or we don't have a tty-like # device, so ...
30.391304
62
0.660944
7950ec473265b9c2f1844e9a00a864f7ca8355dc
5,927
py
Python
captioning/models/m2/m2transformer/models/transformer/decoders.py
linzhlalala/self-critical.pytorch
b856250ac52ba63656b1b03cdc3d7e830ed43f68
[ "MIT" ]
1
2020-11-19T11:11:01.000Z
2020-11-19T11:11:01.000Z
captioning/models/m2/m2transformer/models/transformer/decoders.py
linzhlalala/self-critical.pytorch
b856250ac52ba63656b1b03cdc3d7e830ed43f68
[ "MIT" ]
null
null
null
captioning/models/m2/m2transformer/models/transformer/decoders.py
linzhlalala/self-critical.pytorch
b856250ac52ba63656b1b03cdc3d7e830ed43f68
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F import numpy as np from .attention import MultiHeadAttention from .utils import sinusoid_encoding_table, PositionWiseFeedForward from ..containers import Module, ModuleList class MeshedDecoderLayer(Module): def __init__(self, d_model=512, d_k...
53.396396
124
0.655644
7950ed055f94a76a8d92f95d3161bda9657bd049
820
py
Python
histograms/histogram_equalization_clahe.py
vibinash/vision
7d775d6a877412c963965ecca2eea71ee2def007
[ "MIT" ]
null
null
null
histograms/histogram_equalization_clahe.py
vibinash/vision
7d775d6a877412c963965ecca2eea71ee2def007
[ "MIT" ]
null
null
null
histograms/histogram_equalization_clahe.py
vibinash/vision
7d775d6a877412c963965ecca2eea71ee2def007
[ "MIT" ]
null
null
null
import cv2 import numpy as np # CLAHE: contrast Limited Adaptive histogram equalization # Sometimes global contrast of the image is not a good idea # since certain parts of the image can face over-brightness # Adaptive histogram equalization is where the image is divided into small # blocks called 'tiles'. Contrast L...
34.166667
76
0.776829
7950eead1d5a259f62f77862fcc45f86ba7eb684
3,590
py
Python
tensorflow/contrib/slim/python/slim/nets/inception_v4_resnet_v2.py
alikewater/tensorflow
697929b163102db63fcf0599eb718e49d5ecd2c2
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/slim/python/slim/nets/inception_v4_resnet_v2.py
alikewater/tensorflow
697929b163102db63fcf0599eb718e49d5ecd2c2
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/slim/python/slim/nets/inception_v4_resnet_v2.py
alikewater/tensorflow
697929b163102db63fcf0599eb718e49d5ecd2c2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import tensorflow as tf import tensorflow.contrib.slim as slim #v4.default_image_size = 229 def v4(inputs, sc='Inception-ResNet-v2'): ''' Inception-V4 Inception-ResNet-v2 结构 net structs -------------------------------------- input | 229 x 229 x 3 3x3 co...
46.025641
104
0.477437
7950efb9dad19789ca07c1c2b8d7c9c6f6d68f40
918
py
Python
themis/modules/collecting/collector.py
addam128/themis
113b818d593342f94f9c6c438bbfb0cc7c4f705b
[ "MIT" ]
null
null
null
themis/modules/collecting/collector.py
addam128/themis
113b818d593342f94f9c6c438bbfb0cc7c4f705b
[ "MIT" ]
null
null
null
themis/modules/collecting/collector.py
addam128/themis
113b818d593342f94f9c6c438bbfb0cc7c4f705b
[ "MIT" ]
null
null
null
import lddwrap as ldd import uuid from pathlib import Path from zipfile import ZipFile from themis.modules.common.config import Config class Collector: def __init__( self, config: Config, path: str, name: str ) -> None: self._path = path self._config = config...
18.36
99
0.508715
7950f1284e644b7560f75d5f8af07e8146821db0
292
py
Python
artist/views.py
rijkerd/music_stream
ff0d7c629c89a07f08a10ed700e703b54704f500
[ "MIT", "Unlicense" ]
1
2020-06-10T23:26:39.000Z
2020-06-10T23:26:39.000Z
artist/views.py
rijkerd/music_stream
ff0d7c629c89a07f08a10ed700e703b54704f500
[ "MIT", "Unlicense" ]
8
2021-03-30T18:05:18.000Z
2022-03-12T00:16:55.000Z
artist/views.py
rijkerd/music_stream
ff0d7c629c89a07f08a10ed700e703b54704f500
[ "MIT", "Unlicense" ]
null
null
null
from django.shortcuts import render from rest_framework.viewsets import ModelViewSet from .models import Artist from .serializers import ArtistSerializer class ArtistViewSet(ModelViewSet): lookup_field = "id" queryset = Artist.objects.all() serializer_class = ArtistSerializer
24.333333
48
0.80137
7950f15e69fb5f86ad00af93252871a9b0551928
597
py
Python
src/lib/Server/Plugins/Packages/PackagesConfig.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
src/lib/Server/Plugins/Packages/PackagesConfig.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
src/lib/Server/Plugins/Packages/PackagesConfig.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
import Bcfg2.Server.Plugin class PackagesConfig(Bcfg2.Server.Plugin.SimpleConfig): _required = False def Index(self): """ Build local data structures """ Bcfg2.Server.Plugin.SimpleConfig.Index(self) if hasattr(self.plugin, "sources") and self.plugin.sources.loaded: # o...
37.3125
74
0.654941
7950f160d55695a961111d226a1accb377e7a5b9
1,233
py
Python
tools/skp/page_sets/skia_ynevsvg_desktop.py
pospx/external_skia
7a135275c9fc2a4b3cbdcf9a96e7102724752234
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/skp/page_sets/skia_ynevsvg_desktop.py
pospx/external_skia
7a135275c9fc2a4b3cbdcf9a96e7102724752234
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/skp/page_sets/skia_ynevsvg_desktop.py
pospx/external_skia
7a135275c9fc2a4b3cbdcf9a96e7102724752234
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2015 The 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. # pylint: disable=W0401,W0614 from telemetry import story from telemetry.page import page as page_module from telemetry.page import shared_page_state clas...
29.357143
74
0.74777
7950f1db64fe206fcc5ecf3419dcfb6889c94d05
8,702
py
Python
salt/modules/incron.py
casselt/salt
d8a2ef4e0cd544656489d23d161928879b1fc1c0
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/modules/incron.py
casselt/salt
d8a2ef4e0cd544656489d23d161928879b1fc1c0
[ "Apache-2.0" ]
2
2019-03-06T20:43:44.000Z
2019-04-10T23:56:02.000Z
salt/modules/incron.py
casselt/salt
d8a2ef4e0cd544656489d23d161928879b1fc1c0
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Work with incron ''' from __future__ import absolute_import, print_function, unicode_literals # Import python libs import logging import os # Import salt libs from salt.ext import six from salt.ext.six.moves import range import salt.utils.data import salt.utils.files import salt.utils.func...
27.109034
97
0.565502
7950f4be74d9af708627bb7450f83dbc913266df
830
py
Python
src/main/strategy_context.py
BMW-InnovationLab/BMW-Anonymization-API
6acc59fa18f1e668e6e80a7990aebbf2ab4ade5e
[ "Apache-2.0" ]
108
2021-04-08T13:23:03.000Z
2022-03-30T14:22:13.000Z
src/main/strategy_context.py
Elio-hanna/BMW-Anonymization-API
c8707bb8cae6524a8c46a6aaadac24fef051c1db
[ "Apache-2.0" ]
1
2021-10-06T08:25:51.000Z
2021-10-11T08:07:08.000Z
src/main/strategy_context.py
Elio-hanna/BMW-Anonymization-API
c8707bb8cae6524a8c46a6aaadac24fef051c1db
[ "Apache-2.0" ]
12
2021-04-10T07:17:56.000Z
2022-03-26T17:48:12.000Z
from anonymization.base_anonymization import BaseAnonymization class StrategyContext: def __init__(self): pass def anonymize(self, detection_type: BaseAnonymization, technique: str, image, response, degree,label_id, mask): """ :param detection_type: Either it is semantic segmentation ...
41.5
115
0.704819
7950f50c97ccc84243f6b35582bf0bfd56475fb1
4,053
py
Python
test/python/transpiler/test_decompose.py
TanveshT/qiskit-terra
dc3a2a667b8dc22512ca409ecae347d8dbdd944c
[ "Apache-2.0" ]
1
2021-07-11T18:17:38.000Z
2021-07-11T18:17:38.000Z
test/python/transpiler/test_decompose.py
TanveshT/qiskit-terra
dc3a2a667b8dc22512ca409ecae347d8dbdd944c
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_decompose.py
TanveshT/qiskit-terra
dc3a2a667b8dc22512ca409ecae347d8dbdd944c
[ "Apache-2.0" ]
1
2020-10-31T09:26:39.000Z
2020-10-31T09:26:39.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
33.495868
77
0.631878
7950f51d516fd9bcae861542d0961d7b7300447e
20,695
py
Python
train_cls.py
mhwasil/3DmFV-Net
9cf8fe5f3875e97dd34997182c5087193a9c15bc
[ "MIT" ]
102
2018-07-06T13:39:33.000Z
2022-03-27T10:13:58.000Z
train_cls.py
mhwasil/3DmFV-Net
9cf8fe5f3875e97dd34997182c5087193a9c15bc
[ "MIT" ]
7
2018-11-08T00:31:48.000Z
2021-10-06T08:51:10.000Z
train_cls.py
mhwasil/3DmFV-Net
9cf8fe5f3875e97dd34997182c5087193a9c15bc
[ "MIT" ]
38
2018-07-07T12:57:28.000Z
2021-09-28T02:04:00.000Z
import os import sys import numpy as np import matplotlib matplotlib.use('pdf') # import matplotlib.pyplot as plt import importlib import argparse import tensorflow as tf import pickle BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_DIR, 'models')) sys...
44.89154
287
0.636482
7950f6088d314f0ad41e46e38621d8f687d515b6
89,392
py
Python
scipy/optimize/tests/test_optimize.py
jcharlong/scipy
153467a9174b0c6f4b90ffeed5871e5018658108
[ "BSD-3-Clause" ]
11
2020-06-28T04:30:26.000Z
2022-03-26T08:40:47.000Z
scipy/optimize/tests/test_optimize.py
jcharlong/scipy
153467a9174b0c6f4b90ffeed5871e5018658108
[ "BSD-3-Clause" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
scipy/optimize/tests/test_optimize.py
jcharlong/scipy
153467a9174b0c6f4b90ffeed5871e5018658108
[ "BSD-3-Clause" ]
20
2021-11-07T13:55:56.000Z
2021-12-02T10:54:01.000Z
""" Unit tests for optimization routines from optimize.py Authors: Ed Schofield, Nov 2005 Andrew Straw, April 2008 To run it in its simplest form:: nosetests test_optimize.py """ import itertools import numpy as np from numpy.testing import (assert_allclose, assert_equal, assert_, ...
39.087014
79
0.525506
7950f6320393a5974a5c16dba6523991a0aa7159
707
py
Python
Code/PasswordFromString/StringFunctions.py
dealom/Package-Project
1feb1c2fc6f12e812a0f732debd2bfdb76588954
[ "MIT" ]
null
null
null
Code/PasswordFromString/StringFunctions.py
dealom/Package-Project
1feb1c2fc6f12e812a0f732debd2bfdb76588954
[ "MIT" ]
null
null
null
Code/PasswordFromString/StringFunctions.py
dealom/Package-Project
1feb1c2fc6f12e812a0f732debd2bfdb76588954
[ "MIT" ]
null
null
null
def alpharight(pw,n=1): newpw = "" alpha = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ" for l in pw: if l in alpha: l = alpha[alpha.index(l)+n] elif l in ALPHA: l = ALPHA[ALPHA.index(l)+n] ...
29.458333
66
0.61669
7950f6e458b64342634585205c22e732a2c9e2ea
2,114
py
Python
Data-Structures/Trees/BinaryTreeIteration.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
3
2022-01-09T04:33:04.000Z
2022-02-04T17:40:43.000Z
Data-Structures/Trees/BinaryTreeIteration.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
null
null
null
Data-Structures/Trees/BinaryTreeIteration.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
null
null
null
from collections import deque # Same BinaryTree, but the print methods are implemented using iterations class BinaryTree: def __init__(self, data, left = None, right = None): self.data = data self.left = left self.right = right def preOrderPrint(self): s = deque([self]) ...
29.774648
103
0.497635
7950f8b5eb70c4f20082a5323c5618258b677bb9
5,070
py
Python
optimize_gan_bo.py
miyamotononno/airfoil-opt-gan
997c1060dd3dd22572c16101e703e0bf93a316f1
[ "MIT" ]
null
null
null
optimize_gan_bo.py
miyamotononno/airfoil-opt-gan
997c1060dd3dd22572c16101e703e0bf93a316f1
[ "MIT" ]
null
null
null
optimize_gan_bo.py
miyamotononno/airfoil-opt-gan
997c1060dd3dd22572c16101e703e0bf93a316f1
[ "MIT" ]
null
null
null
""" Optimize the airfoil shape in the latent space using Bayesian optimization, constrained on the running time Author(s): Wei Chen (wchen459@umd.edu) """ from __future__ import division import time import argparse import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from impor...
35.704225
124
0.64497
7950fa30a66be88652713ca49d525d8f474d2650
327
py
Python
app/Connection/socket.py
alexanderscpo/UCi_Desktop
a923dd78d2f4df95fdd56c0afc52fc3557b8d4a7
[ "MIT" ]
null
null
null
app/Connection/socket.py
alexanderscpo/UCi_Desktop
a923dd78d2f4df95fdd56c0afc52fc3557b8d4a7
[ "MIT" ]
null
null
null
app/Connection/socket.py
alexanderscpo/UCi_Desktop
a923dd78d2f4df95fdd56c0afc52fc3557b8d4a7
[ "MIT" ]
null
null
null
import socket import os import struct import threading def enviar_archivos(url: str, host: str, port: int): # Creamos el objeto para la conexión usando (ip4 y TCP) sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Conectamos con el Host with sck.connect((host, port)) as conexion: ...
20.4375
59
0.69419
7950faaf8969b4bfd67614a72bff42f402a632e6
357
py
Python
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
270
2020-01-27T06:06:07.000Z
2020-06-21T00:28:18.000Z
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
158
2020-02-10T20:36:54.000Z
2020-06-26T17:12:54.000Z
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
15
2020-02-13T21:53:33.000Z
2020-06-17T16:52:46.000Z
""" an image, nothing fancy """ from dataclasses import dataclass from .base_activity import ActivityObject @dataclass(init=False) class Document(ActivityObject): """a document""" url: str name: str = "" type: str = "Document" id: str = None @dataclass(init=False) class Image(Document): """...
17
41
0.64986
7950fcbd2f6ab009ee65cce62d72ff7f54f81ced
2,454
py
Python
config/settings/local.py
black-redoc/django_crud_example
143ef8edfd5346087d1c577491460507c87e8e22
[ "MIT" ]
null
null
null
config/settings/local.py
black-redoc/django_crud_example
143ef8edfd5346087d1c577491460507c87e8e22
[ "MIT" ]
null
null
null
config/settings/local.py
black-redoc/django_crud_example
143ef8edfd5346087d1c577491460507c87e8e22
[ "MIT" ]
null
null
null
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY...
40.229508
97
0.579462
7950fff4e7c74a6a68098f27ded64d477358dec9
424
py
Python
ch05-a-realistic-api/api/weather_api.py
hedrickbt/talkpython-fastapi
633ee7b6ebfa78933b14fceed0c62884382363a1
[ "MIT" ]
null
null
null
ch05-a-realistic-api/api/weather_api.py
hedrickbt/talkpython-fastapi
633ee7b6ebfa78933b14fceed0c62884382363a1
[ "MIT" ]
null
null
null
ch05-a-realistic-api/api/weather_api.py
hedrickbt/talkpython-fastapi
633ee7b6ebfa78933b14fceed0c62884382363a1
[ "MIT" ]
null
null
null
from typing import Optional import fastapi from fastapi import Depends from models.location import Location from services import openweather_service router = fastapi.APIRouter() @router.get('/api/weather/{city}') async def weather(loc: Location = Depends(), units: Optional[str] = 'metric'): report ...
24.941176
96
0.75
79510010034adafaaddb52db78bf489e225e8c97
1,401
py
Python
chapter2/problem1.py
hahnicity/ace
60e934304b94614c435c7f3da60e3ea13622173e
[ "Unlicense" ]
5
2017-07-06T07:08:03.000Z
2020-03-11T17:48:02.000Z
chapter2/problem1.py
lnsongxf/ace
60e934304b94614c435c7f3da60e3ea13622173e
[ "Unlicense" ]
null
null
null
chapter2/problem1.py
lnsongxf/ace
60e934304b94614c435c7f3da60e3ea13622173e
[ "Unlicense" ]
5
2017-07-06T07:08:15.000Z
2020-12-19T21:52:07.000Z
""" Solve some matrix operations """ from numpy import array from ace.solvers import gauss_jacobi, gauss_seidel, lu_decomposition def part_a(a, b): """ Solve using LU decomposition """ x = lu_decomposition(a, b) print x return x def part_b(a, b, x_exact): """ Solve using Gauss-Jacob...
23.35
68
0.576017
79510022ea5cd314612fe677a6fb15092158876e
8,196
py
Python
docs/conf.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
null
null
null
docs/conf.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
2
2016-06-16T14:12:48.000Z
2018-07-22T12:44:21.000Z
docs/conf.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Distutilazy documentation build configuration file, created by # sphinx-quickstart on Tue Oct 13 14:17:16 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
31.644788
79
0.719253
795104180d5390d7bdc3dbd6b7961610117cffa4
1,825
py
Python
moltres-thermal-fluids/full-assembly/auxiliary.py
arfc/mhtgr350-benchmark
18f7b3fe5742dabb1114c3bf7760b84590d16062
[ "BSD-3-Clause" ]
null
null
null
moltres-thermal-fluids/full-assembly/auxiliary.py
arfc/mhtgr350-benchmark
18f7b3fe5742dabb1114c3bf7760b84590d16062
[ "BSD-3-Clause" ]
51
2020-05-26T16:17:57.000Z
2021-02-22T20:08:59.000Z
moltres-thermal-fluids/full-assembly/auxiliary.py
arfc/mhtgr350-benchmark
18f7b3fe5742dabb1114c3bf7760b84590d16062
[ "BSD-3-Clause" ]
2
2020-01-02T19:22:59.000Z
2020-01-11T15:42:36.000Z
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib.cbook import get_sample_data import matplotlib.patches as mpatches def add_legends_full_assembly(): ''' This function adds legends to 'full-assem-mesh'. ''' figure = 'full-assem-mesh' save = 'full-asse...
30.416667
74
0.648767
795104c125f710fb199a77f6e793117d15f0886e
30,760
py
Python
genres_holder/Homans_3_a.py
mmehrani/homans_project
37bddd6ed0686739674373264526873f92640346
[ "MIT" ]
null
null
null
genres_holder/Homans_3_a.py
mmehrani/homans_project
37bddd6ed0686739674373264526873f92640346
[ "MIT" ]
30
2019-10-14T15:40:31.000Z
2020-09-20T06:34:51.000Z
genres_holder/Homans_3_a.py
mmehrani/homans_project
37bddd6ed0686739674373264526873f92640346
[ "MIT" ]
null
null
null
""" Created on Mon Aug 12 10:12:03 2019 @author: Taha Enayat, Mohsen Mehrani Main file Model's engine """ import numpy as np import matplotlib.pyplot as plt from datetime import datetime #import winsound import pickle import Analysis_Tools_Homans import os import sys from decimal import * """Platform Detection""" pd =...
44.195402
150
0.604421
795104fd451102ab74a6f058c4e2dc425a73fbc9
17,466
py
Python
owslib/fes2.py
pmav99/OWSLib
414375413c9e2bab33a2d09608ab209875ce6daf
[ "BSD-3-Clause" ]
218
2015-01-09T12:55:09.000Z
2022-03-29T12:22:54.000Z
owslib/fes2.py
pmav99/OWSLib
414375413c9e2bab33a2d09608ab209875ce6daf
[ "BSD-3-Clause" ]
512
2015-01-01T09:52:58.000Z
2022-03-30T11:57:07.000Z
owslib/fes2.py
pmav99/OWSLib
414375413c9e2bab33a2d09608ab209875ce6daf
[ "BSD-3-Clause" ]
218
2015-01-01T09:44:06.000Z
2022-03-31T14:09:13.000Z
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2021 Tom Kralidis # # Authors : Tom Kralidis <tomkralidis@gmail.com> # # Contact email: tomkralidis@gmail.com # ============================================================================= """...
35.072289
119
0.64262
795105870929ac55e13dc4859ab6ef5980891470
1,239
py
Python
mnelab/dialogs/filterdialog.py
yop0/mnelab
12b62d0611ebc63bc23f7c9101d7eabdc1175055
[ "BSD-3-Clause" ]
null
null
null
mnelab/dialogs/filterdialog.py
yop0/mnelab
12b62d0611ebc63bc23f7c9101d7eabdc1175055
[ "BSD-3-Clause" ]
null
null
null
mnelab/dialogs/filterdialog.py
yop0/mnelab
12b62d0611ebc63bc23f7c9101d7eabdc1175055
[ "BSD-3-Clause" ]
null
null
null
# Authors: Clemens Brunner <clemens.brunner@gmail.com> # # License: BSD (3-clause) from PySide6.QtWidgets import (QDialog, QDialogButtonBox, QGridLayout, QLabel, QLineEdit, QVBoxLayout) class FilterDialog(QDialog): def __init__(self, parent): super().__init__(parent) ...
33.486486
89
0.642454
7951060aa182d017c73ec27e51125688668499de
11,062
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200601/get_load_balancer.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20200601/get_load_balancer.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20200601/get_load_balancer.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
41.743396
572
0.6742
79510663a0962d73b9a7337e1963c47edb3c462c
520
py
Python
app.py
andrewst93/strava_snooper_dashboard
c7ed786a88e8f7116ce8a24a570752ffb84688ba
[ "MIT" ]
null
null
null
app.py
andrewst93/strava_snooper_dashboard
c7ed786a88e8f7116ce8a24a570752ffb84688ba
[ "MIT" ]
null
null
null
app.py
andrewst93/strava_snooper_dashboard
c7ed786a88e8f7116ce8a24a570752ffb84688ba
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc # used for debugging GCP app engine deployment issues try: import googleclouddebugger googleclouddebugger.enable(breakpoint_enable_canary=True) except ImportError: pass app = dash.Dash( __name__, external_stylesheets=[dbc.themes.UNITED], met...
26
87
0.759615
795106b0d72a2830f09c77655f36b0673c2d6017
1,606
py
Python
sources/model/finetuning/model_loaders/mobilenetv2.py
lthamm/concept-embeddings-and-ilp
27592c6424147a2fbb54d7daebc92cd72b3f4a0c
[ "MIT" ]
3
2020-11-02T12:21:29.000Z
2021-08-02T14:01:37.000Z
sources/model/finetuning/model_loaders/mobilenetv2.py
lthamm/concept-embeddings-and-ilp
27592c6424147a2fbb54d7daebc92cd72b3f4a0c
[ "MIT" ]
2
2020-11-06T07:58:13.000Z
2022-03-13T16:11:30.000Z
sources/model/finetuning/model_loaders/mobilenetv2.py
lthamm/concept-embeddings-and-ilp
27592c6424147a2fbb54d7daebc92cd72b3f4a0c
[ "MIT" ]
1
2020-11-03T14:54:16.000Z
2020-11-03T14:54:16.000Z
"""Loader of modified MobileNetV2 for finetuning on picasso dataset.""" from typing import Sequence, Dict import torch from torchvision.models import MobileNetV2, mobilenet_v2 from ..defaults import NUM_CLASSES MOBILENETV2_FINETUNE_LAYERS: Sequence[str] = ( 'features.17', 'features.18', 'classifier', ) ...
42.263158
100
0.733499
79510739c44972099a6d333af0af3b24386c65b9
17,382
py
Python
bot/cogs/bot.py
ScarletKing001/bot
b27c286f2ce648d021eed0c8e07476066b86dd98
[ "MIT" ]
null
null
null
bot/cogs/bot.py
ScarletKing001/bot
b27c286f2ce648d021eed0c8e07476066b86dd98
[ "MIT" ]
null
null
null
bot/cogs/bot.py
ScarletKing001/bot
b27c286f2ce648d021eed0c8e07476066b86dd98
[ "MIT" ]
null
null
null
import ast import logging import re import time from typing import Optional, Tuple from discord import Embed, Message, RawMessageUpdateEvent, TextChannel from discord.ext.commands import Cog, Context, command, group from bot.bot import Bot from bot.cogs.token_remover import TokenRemover from bot.constants import Cate...
45.031088
117
0.532562
7951076e110e17f2b5c45264d7c7e1a8114f5963
6,305
py
Python
postgresqleu/confreg/campaigns.py
dlangille/pgeu-system
3f1910010063bab118e94a55ed757b23f1d36bf5
[ "MIT" ]
null
null
null
postgresqleu/confreg/campaigns.py
dlangille/pgeu-system
3f1910010063bab118e94a55ed757b23f1d36bf5
[ "MIT" ]
null
null
null
postgresqleu/confreg/campaigns.py
dlangille/pgeu-system
3f1910010063bab118e94a55ed757b23f1d36bf5
[ "MIT" ]
null
null
null
from django import forms from django.core.exceptions import ValidationError from django.http import Http404, HttpResponse from django.utils.dateparse import parse_datetime, parse_duration from postgresqleu.confreg.jinjafunc import JinjaTemplateValidator, render_sandboxed_template from postgresqleu.util.widgets import ...
44.716312
215
0.644409
79510915e3a84e62793522fc762dfb767a3322dd
3,256
py
Python
recipe_server/settings.py
Shouyin/Recipe
dffaafdebefd7c39a1438444db910f5d7943cf1f
[ "MIT" ]
null
null
null
recipe_server/settings.py
Shouyin/Recipe
dffaafdebefd7c39a1438444db910f5d7943cf1f
[ "MIT" ]
null
null
null
recipe_server/settings.py
Shouyin/Recipe
dffaafdebefd7c39a1438444db910f5d7943cf1f
[ "MIT" ]
null
null
null
""" Django settings for recipe_server project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
26.258065
91
0.698403
795109620dee96ad8eef48181ff1ae3077d016d2
477
py
Python
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
164
2017-11-24T13:07:04.000Z
2022-03-10T04:54:46.000Z
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
21
2018-09-29T10:27:10.000Z
2019-06-12T07:01:58.000Z
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
49
2018-05-09T17:28:52.000Z
2022-02-27T04:50:45.000Z
from .catch_errors import check_for_period_error from .exponential_moving_average import exponential_moving_average as ema def moving_average_convergence_divergence(data, short_period, long_period): """ Moving Average Convergence Divergence. Formula: EMA(DATA, P1) - EMA(DATA, P2) """ check_for...
29.8125
75
0.761006
795109640595dd9efe5b95216067e6fd4053d037
2,795
py
Python
model/bisenet/cityscapes.bisenet.X39.speed/config.py
akinoriosamura/TorchSeg-mirror
34033fe85fc24015bcef7a92aad39d2a25a001a5
[ "MIT" ]
null
null
null
model/bisenet/cityscapes.bisenet.X39.speed/config.py
akinoriosamura/TorchSeg-mirror
34033fe85fc24015bcef7a92aad39d2a25a001a5
[ "MIT" ]
1
2021-06-08T20:36:43.000Z
2021-06-08T20:36:43.000Z
model/bisenet/cityscapes.bisenet.X39.speed/config.py
akinoriosamura/TorchSeg-mirror
34033fe85fc24015bcef7a92aad39d2a25a001a5
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path as osp import sys import time import numpy as np from easydict import EasyDict as edict import argparse import torch.utils.model_zoo as model_zoo C = edict() config = C cfg =...
24.517544
75
0.705903
79510a132a03ad52247d6225179f22e115a72115
44
py
Python
template_globals.py
d7d4af8/2047
bd6781b9502c6fdbd4745be5084977f679fa3fc5
[ "MIT" ]
35
2020-09-01T00:34:50.000Z
2022-03-29T13:14:15.000Z
template_globals.py
d7d4af8/2047
bd6781b9502c6fdbd4745be5084977f679fa3fc5
[ "MIT" ]
3
2020-08-19T20:47:19.000Z
2021-09-06T23:55:49.000Z
template_globals.py
d7d4af8/2047
bd6781b9502c6fdbd4745be5084977f679fa3fc5
[ "MIT" ]
10
2020-08-07T02:20:09.000Z
2022-01-30T06:43:45.000Z
# ugh tgr = template_globals_registry = {}
11
36
0.704545
79510a13d24ba241a9d15975500dc74c0c44de73
1,184
py
Python
octavia/amphorae/backends/agent/api_server/certificate_update.py
zhangi/octavia
e68c851fecf55e1b5ffe7d5b849f729626af28a3
[ "Apache-2.0" ]
129
2015-06-23T08:06:23.000Z
2022-03-31T12:38:20.000Z
octavia/amphorae/backends/agent/api_server/certificate_update.py
zhangi/octavia
e68c851fecf55e1b5ffe7d5b849f729626af28a3
[ "Apache-2.0" ]
10
2020-09-18T12:17:59.000Z
2022-03-14T15:45:38.000Z
octavia/amphorae/backends/agent/api_server/certificate_update.py
zhangi/octavia
e68c851fecf55e1b5ffe7d5b849f729626af28a3
[ "Apache-2.0" ]
166
2015-07-15T16:24:05.000Z
2022-03-02T20:54:36.000Z
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
29.6
75
0.715372
79510a60ecc896e04e7a1aee05ef5fd4c130061f
6,164
py
Python
ask-sdk-dynamodb-persistence-adapter/tests/unit/test_partition_keygen.py
P2707951/alexa-skills-kit-sdk-for-python
dd16873682ecb8061eec66835c1dbddbb121467d
[ "Apache-2.0" ]
1
2020-06-13T14:14:26.000Z
2020-06-13T14:14:26.000Z
ask-sdk-dynamodb-persistence-adapter/tests/unit/test_partition_keygen.py
P2707951/alexa-skills-kit-sdk-for-python
dd16873682ecb8061eec66835c1dbddbb121467d
[ "Apache-2.0" ]
null
null
null
ask-sdk-dynamodb-persistence-adapter/tests/unit/test_partition_keygen.py
P2707951/alexa-skills-kit-sdk-for-python
dd16873682ecb8061eec66835c1dbddbb121467d
[ "Apache-2.0" ]
2
2019-11-22T14:52:47.000Z
2021-06-18T13:46:15.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or i...
41.931973
85
0.701979
79510a77e47c0d173f9641b524ceef32d4c5a3a2
3,940
py
Python
apps/article/dashboard/views.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/article/dashboard/views.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/article/dashboard/views.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from collections import Counter from logging import getLogger from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404, redirect, render from guardian.decorators import permission_required from taggit.models...
36.146789
113
0.702284
79510be763eb0609efcba32abd9bcc49040f3f65
6,951
py
Python
tempest/tests/cmd/test_tempest_init.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
1
2021-05-21T08:24:02.000Z
2021-05-21T08:24:02.000Z
tempest/tests/cmd/test_tempest_init.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
null
null
null
tempest/tests/cmd/test_tempest_init.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
5
2016-06-24T20:03:52.000Z
2020-02-05T10:14:54.000Z
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
44.845161
79
0.670983
79510c133ad4c43a88f58ebb297137fca5dbc14c
664
py
Python
05.py
DarkMio/AOC2016
e3ca794a9deffcc6a4be629ba593147e622ce648
[ "MIT" ]
null
null
null
05.py
DarkMio/AOC2016
e3ca794a9deffcc6a4be629ba593147e622ce648
[ "MIT" ]
null
null
null
05.py
DarkMio/AOC2016
e3ca794a9deffcc6a4be629ba593147e622ce648
[ "MIT" ]
null
null
null
import hashlib def find_code(door_id): first = [] second = [None] * 8 i = 0 while None in second: m = hashlib.md5(door_id + str(i).encode('utf-8')).hexdigest() if m.startswith('00000'): print("{}: {}".format(door_id + str(i).encode('utf-8'), m)) location = int(m[...
31.619048
73
0.546687
79510cea1f28fb3fd3f65f82b2226f9c7d6b6fcb
10,821
py
Python
tests/integration/shell/test_key.py
guoxiaod/salt
2cd6c03b40932be137e6e8a672967b59025a2d34
[ "Apache-2.0" ]
null
null
null
tests/integration/shell/test_key.py
guoxiaod/salt
2cd6c03b40932be137e6e8a672967b59025a2d34
[ "Apache-2.0" ]
1
2019-08-18T07:03:30.000Z
2019-08-18T07:03:30.000Z
tests/integration/shell/test_key.py
guoxiaod/salt
2cd6c03b40932be137e6e8a672967b59025a2d34
[ "Apache-2.0" ]
2
2020-11-04T06:24:32.000Z
2020-11-06T11:00:57.000Z
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import os import shutil import tempfile import textwrap # Import Salt Testing libs from tests.support.case import ShellCase from tests.support.paths import TMP from tests.support.mixins import ShellCa...
34.906452
130
0.541355
79510e08a1ee4a653959189a5b449906796e6997
2,129
py
Python
DiscardIrregularFieldNumberLines.py
neil92/MiscScripts2
b65444d99c057c305c1bebb437402004c5345b7b
[ "MIT" ]
null
null
null
DiscardIrregularFieldNumberLines.py
neil92/MiscScripts2
b65444d99c057c305c1bebb437402004c5345b7b
[ "MIT" ]
null
null
null
DiscardIrregularFieldNumberLines.py
neil92/MiscScripts2
b65444d99c057c305c1bebb437402004c5345b7b
[ "MIT" ]
null
null
null
#!/usr/local/miniconda3/bin/python import argparse def parse_file(irregular_file, output_file, delimiter, number_of_fields): total_lines = 0 removed_lines = 0 with open(irregular_file, "r") as irregular_file_object, open(output_file, "w") as output_file_object: line = irregular_file_object.readline() ...
38.709091
117
0.708314
79510eddd055dd2ddc17dac656a2016026065919
16,067
py
Python
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/event/converter.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
2
2018-11-07T20:52:53.000Z
2019-10-20T15:57:01.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/event/converter.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
3
2021-12-14T20:57:54.000Z
2022-01-21T23:50:36.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/event/converter.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
2
2018-11-16T04:20:06.000Z
2019-03-28T23:49:13.000Z
# # Copyright 2013 Rackspace Hosting. # # Author: Monsyne Dragon <mdragon@rackspace.com> # # 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/LICEN...
40.1675
79
0.594759
79510f532e108c2302f5d7535d5a431f4d3ea1e7
3,060
py
Python
smpp_client/settings.py
m4rtinpf/smpp-client
58f3b891121050861176e7c1ad9b4198d757d1f6
[ "MIT" ]
null
null
null
smpp_client/settings.py
m4rtinpf/smpp-client
58f3b891121050861176e7c1ad9b4198d757d1f6
[ "MIT" ]
1
2022-02-23T20:04:03.000Z
2022-02-23T20:04:03.000Z
smpp_client/settings.py
m4rtinpf/smpp-client
58f3b891121050861176e7c1ad9b4198d757d1f6
[ "MIT" ]
null
null
null
""" Django settings for smpp_client project. Generated by 'django-admin startproject' using Django 3.2.11. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pa...
26.153846
93
0.678105
795110179f342684a0c8eede7312c8c870ed189e
14,935
py
Python
conrad/cli.py
ashikjm/conrad
df9b99479c29906498c046724558222949439f1c
[ "Apache-2.0" ]
null
null
null
conrad/cli.py
ashikjm/conrad
df9b99479c29906498c046724558222949439f1c
[ "Apache-2.0" ]
null
null
null
conrad/cli.py
ashikjm/conrad
df9b99479c29906498c046724558222949439f1c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import re import json import hashlib import datetime as dt import click import requests import sqlalchemy import textdistance from colorama import Fore, Style from cli_helpers import tabular_output from . import __version__, CONRAD_HOME from .db import engine, Session from .models i...
31.179541
137
0.550318
795110eaf93dc3b5ca004c203631c279010872ec
34,839
py
Python
var/spack/repos/builtin/packages/rust/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rust/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rust/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from six import iteritems class Rust(Package): """The Rust programming language toolchain This package can boots...
57.872093
148
0.686472
7951121c0e28cb94ce2d862a2f81545ccdf04f04
1,063
py
Python
migrations/versions/b1983f13bd19_.py
lmontero88/Backend_FinalProject4Geek
36a7452723c250bd5fa2b3cd1d1f43b24b4db836
[ "MIT" ]
null
null
null
migrations/versions/b1983f13bd19_.py
lmontero88/Backend_FinalProject4Geek
36a7452723c250bd5fa2b3cd1d1f43b24b4db836
[ "MIT" ]
null
null
null
migrations/versions/b1983f13bd19_.py
lmontero88/Backend_FinalProject4Geek
36a7452723c250bd5fa2b3cd1d1f43b24b4db836
[ "MIT" ]
2
2020-12-07T12:20:40.000Z
2020-12-10T18:52:50.000Z
"""empty message Revision ID: b1983f13bd19 Revises: 0d697c545a40 Create Date: 2020-12-10 01:37:03.316289 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b1983f13bd19' down_revision = '0d697c545a40' branch_labels = None depends_on = None def upgrade(): # ...
27.973684
84
0.678269
795112f83a5eed89af4c656dc5bbaa66a10380a2
946
py
Python
UrlChecker.py
evanRubinsteinIT/URLChecker
65f24c504a0885c6758753287512398590ecde9b
[ "MIT" ]
2
2021-04-07T10:06:13.000Z
2021-04-07T14:42:42.000Z
UrlChecker.py
evanRubinsteinIT/URLChecker
65f24c504a0885c6758753287512398590ecde9b
[ "MIT" ]
null
null
null
UrlChecker.py
evanRubinsteinIT/URLChecker
65f24c504a0885c6758753287512398590ecde9b
[ "MIT" ]
null
null
null
import requests def fileRead(): filePath = input("Please type in the path to the file you would like to use: ") subdomainArray = [] with open(filePath) as domainFile: for line in domainFile: line = line.strip() subdomainArray.append(line) return(subdomainArray) def makeR...
29.5625
83
0.624736
7951143fd0976ee97b216eb5679e8e5f8dfe16c5
18,855
py
Python
django/db/backends/sqlite3/base.py
limbongofficial/django-framework
f3fa86a89b3b85242f49b2b9acf58b5ea35acc1f
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-01-10T23:06:36.000Z
2020-01-10T23:06:36.000Z
django/db/backends/sqlite3/base.py
limbongofficial/django-framework
f3fa86a89b3b85242f49b2b9acf58b5ea35acc1f
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/sqlite3/base.py
limbongofficial/django-framework
f3fa86a89b3b85242f49b2b9acf58b5ea35acc1f
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-12-10T03:06:36.000Z
2018-12-10T03:06:36.000Z
""" SQLite3 backend for the sqlite3 module in the standard library. """ import datetime import decimal import math import operator import re import warnings from sqlite3 import dbapi2 as Database import pytz from django.core.exceptions import ImproperlyConfigured from django.db import utils from django.db.backends im...
38.479592
115
0.624662
795114d037a9b6a713dca7d1b1231ec64d2c69c1
1,176
py
Python
Emotion_Model/voting.py
rogeroyer/2019-CCF-BDCI-Finance-Information-Negative-Judgment
06e0582b06f99ce3348ad91ea687ab3e9a0cf363
[ "MIT" ]
30
2020-02-28T13:33:09.000Z
2021-09-30T08:21:26.000Z
Emotion_Model/voting.py
williamjiamin/2019-CCF-BDCI-Finance-Information-Negative-Judgment
06e0582b06f99ce3348ad91ea687ab3e9a0cf363
[ "MIT" ]
1
2020-07-23T07:20:08.000Z
2020-07-24T13:29:58.000Z
Emotion_Model/voting.py
williamjiamin/2019-CCF-BDCI-Finance-Information-Negative-Judgment
06e0582b06f99ce3348ad91ea687ab3e9a0cf363
[ "MIT" ]
21
2020-03-18T14:43:53.000Z
2022-03-09T08:34:12.000Z
import os import path import numpy as np import pandas as pd from collections import Counter sub_path = './submit/' sub1 = pd.read_csv(sub_path + 'emotion_res_1.csv', encoding='utf-8')[['id', 'negative']] sub2 = pd.read_csv(sub_path + 'emotion_res_2.csv', encoding='utf-8')[['id', 'negative']] sub3 = pd.read_csv('./ro...
33.6
123
0.684524
7951156f1997765b869b5944c1eb717852c1a89f
996
py
Python
checkov/kubernetes/checks/ApiServerServiceAccountLookup.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
5
2021-07-29T18:08:40.000Z
2022-03-21T04:39:32.000Z
checkov/kubernetes/checks/ApiServerServiceAccountLookup.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
16
2021-03-09T07:38:38.000Z
2021-06-09T03:53:55.000Z
checkov/kubernetes/checks/ApiServerServiceAccountLookup.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
2
2021-08-23T13:25:36.000Z
2021-11-05T21:44:52.000Z
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.kubernetes.base_spec_check import BaseK8Check class ApiServerServiceAccountLookup(BaseK8Check): def __init__(self): id = "CKV_K8S_96" name = "Ensure that the --service-account-lookup argument is set to true" c...
41.5
129
0.678715
795115b2c7d3ee67116697dcc2ee4a742e6c328e
2,371
py
Python
pyleecan/Methods/Geometry/Surface/split_line.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
pyleecan/Methods/Geometry/Surface/split_line.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Geometry/Surface/split_line.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
from ....Classes.Segment import Segment from ....definitions import PACKAGE_NAME def split_line(self, Z1, Z2, is_top=True, is_join=False, label_join=""): """Cut the Surface according to a line defined by two complex Parameters ---------- self : Surface An Surface object Z1 : complex ...
32.040541
85
0.571489
79511647deea627d21740b9d8e33f38b6db8b387
565
py
Python
variables_and_types/script.py
fabiomilheiro/Python-Experiments
9f5c3ab73dfb8ca5dde5a71393a3cf55ee81c641
[ "Unlicense" ]
null
null
null
variables_and_types/script.py
fabiomilheiro/Python-Experiments
9f5c3ab73dfb8ca5dde5a71393a3cf55ee81c641
[ "Unlicense" ]
null
null
null
variables_and_types/script.py
fabiomilheiro/Python-Experiments
9f5c3ab73dfb8ca5dde5a71393a3cf55ee81c641
[ "Unlicense" ]
null
null
null
x = 1000 y = 3.14 print(x) print(y) print(float(7)) name = 'John Smith' print(name) name = "John Smith's jacket" print(name) one = 1 two = 2 three = one + two print(three) hello = "hello" world = "world" hello_word = hello + " " + world print(hello_word) a, b = 3, 4 print(a, b, "something else") mystring = "hello"...
16.617647
50
0.635398
7951164e57e08ce004b584eaa9f49f327d04a151
4,772
py
Python
demos/demo_2d_tracer.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
demos/demo_2d_tracer.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
demos/demo_2d_tracer.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
# 2D tracer transport # =================== # # This demo shows how the Firedrake DG advection equation # `demo <https://firedrakeproject.org/demos/DG_advection.py.html>`__ # can be implemented in Thetis. # # The test case is the classic cosine-bell--cone--slotted-cylinder # advection test case of :cite:`LeVeque:1996`....
40.10084
97
0.732188