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
4c2fc0c2ed959dd0f3ce72cf9e800d4c653401ed
89
py
Python
game_server/strategy_game_server/polyana/apps.py
Millill23/polyana
6c43d76a7fc09a6deb162631021f31cbc1470f47
[ "MIT" ]
null
null
null
game_server/strategy_game_server/polyana/apps.py
Millill23/polyana
6c43d76a7fc09a6deb162631021f31cbc1470f47
[ "MIT" ]
8
2019-05-23T07:27:55.000Z
2021-06-10T18:07:42.000Z
game_server/strategy_game_server/polyana/apps.py
Millill23/polyana
6c43d76a7fc09a6deb162631021f31cbc1470f47
[ "MIT" ]
9
2019-05-21T08:21:35.000Z
2019-05-30T01:02:37.000Z
from django.apps import AppConfig class PolyanaConfig(AppConfig): name = 'polyana'
14.833333
33
0.752809
130ab8005d649953bfa3e2b980257af54dd6c30d
2,836
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class BatchDeleteScalingConfigsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
26.018349
83
0.552891
4a0424359ee56e9ca81be3c2d281dace766fe63d
734
py
Python
LC/165.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/165.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/165.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ l1=version1.split('.') l2=version2.split('.') l=min(len(l1),len(l2)) for x in range(l): if in...
26.214286
49
0.385559
eebce625a24fbebbd7909993a2c9df1c8b82c26d
700
py
Python
src/widgets/lancher_widget.py
sangoes/pyside-template
fdb9b687317a34bf17511d7f63ec2f58453b1a25
[ "MIT" ]
null
null
null
src/widgets/lancher_widget.py
sangoes/pyside-template
fdb9b687317a34bf17511d7f63ec2f58453b1a25
[ "MIT" ]
null
null
null
src/widgets/lancher_widget.py
sangoes/pyside-template
fdb9b687317a34bf17511d7f63ec2f58453b1a25
[ "MIT" ]
null
null
null
import sys import random from PySide6 import QtCore, QtWidgets, QtGui # lancher widget class LancherWidget(QtWidgets.QWidget): def __init__(self): super().__init__() self.hello = ["hello", "你好"] self.button = QtWidgets.QPushButton("click me!") self.text = QtWidgets.QLabel("Hello W...
26.923077
69
0.628571
18512caa2f2e18e7a73ce3dcef22f16903f29d80
62,940
py
Python
src/sos/parser.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
null
null
null
src/sos/parser.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
null
null
null
src/sos/parser.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. import ast import builtins import copy import fnmatch import os import re import shutil import sys import textwrap from io import StringIO, TextIOBase from t...
39.835443
127
0.477772
a72acf2fe59757f0a1a126c35b24e33dc27bf192
11,072
py
Python
caffe2/python/layers/feature_sparse_to_dense.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
585
2015-08-10T02:48:52.000Z
2021-12-01T08:46:59.000Z
caffe2/python/layers/feature_sparse_to_dense.py
PDFxy/caffe2
28523ff1ff33f18eaf8b04cc4e0f308826e1861a
[ "Apache-2.0" ]
27
2018-04-14T06:44:22.000Z
2018-08-01T18:02:39.000Z
caffe2/python/layers/feature_sparse_to_dense.py
PDFxy/caffe2
28523ff1ff33f18eaf8b04cc4e0f308826e1861a
[ "Apache-2.0" ]
183
2015-08-10T02:49:04.000Z
2021-12-01T08:47:13.000Z
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
42.914729
80
0.456467
d732ec03deb2860a39e943ff9c96b6e64ba14dda
23,043
py
Python
django-norel-env/lib/python2.7/site-packages/django/http/multipartparser.py
bwsblake/lettercounter
77801949ce9cb5e36c1ff7a4ee8771f7f3a28abd
[ "MIT" ]
1
2015-03-08T23:21:58.000Z
2015-03-08T23:21:58.000Z
web_interface/django/http/multipartparser.py
luxnovalabs/enjigo_door
fd29fd9bd28c1d7915e4f9ad5e29635f5cbc4601
[ "Unlicense" ]
1
2021-09-15T12:25:30.000Z
2021-09-15T12:25:30.000Z
web_interface/django/http/multipartparser.py
luxnovalabs/enjigo_door
fd29fd9bd28c1d7915e4f9ad5e29635f5cbc4601
[ "Unlicense" ]
1
2020-08-10T18:20:14.000Z
2020-08-10T18:20:14.000Z
""" Multi-part parsing for file uploads. Exposes one class, ``MultiPartParser``, which feeds chunks of uploaded data to file upload handlers for processing. """ from __future__ import unicode_literals import base64 import cgi from django.conf import settings from django.core.exceptions import SuspiciousOperation fro...
36.004688
109
0.5603
7909d8e3528fc6544e58911ecb9cf37704d993b8
137
py
Python
clickhouse/datadog_checks/clickhouse/__about__.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1
2021-01-28T01:45:37.000Z
2021-01-28T01:45:37.000Z
clickhouse/datadog_checks/clickhouse/__about__.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
3
2021-01-27T04:56:40.000Z
2021-02-26T06:29:22.000Z
clickhouse/datadog_checks/clickhouse/__about__.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1
2021-04-07T16:58:27.000Z
2021-04-07T16:58:27.000Z
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '2.3.0'
27.4
59
0.722628
8f1becae03c948b27831df6aab1ee95bfcd6ca41
3,870
py
Python
deepctr_torch/models/wdl.py
jiqiujia/DeepCTR-Torch
687a094135fa597697d926782a5634c79b627dac
[ "Apache-2.0" ]
15
2019-12-22T14:26:47.000Z
2020-11-02T10:57:37.000Z
deepctr_torch/models/wdl.py
praysunday/DeepCTR-Torch
abb3a825d8d8e02aa9afaf935d4526e19214c855
[ "Apache-2.0" ]
2
2020-02-03T07:10:11.000Z
2020-02-11T16:38:56.000Z
deepctr_torch/models/wdl.py
praysunday/DeepCTR-Torch
abb3a825d8d8e02aa9afaf935d4526e19214c855
[ "Apache-2.0" ]
12
2020-01-06T14:16:52.000Z
2020-05-23T14:12:30.000Z
# -*- coding:utf-8 -*- """ Author: Weichen Shen,wcshen1994@163.com Reference: [1] Cheng H T, Koc L, Harmsen J, et al. Wide & deep learning for recommender systems[C]//Proceedings of the 1st Workshop on Deep Learning for Recommender Systems. ACM, 2016: 7-10.(https://arxiv.org/pdf/1606.07792.pdf) """ import torc...
50.25974
221
0.65969
b55770abdd73e42ecc3ffd3f6e2da71901283056
46,931
py
Python
python/ambassador/envoy/v2/v2listener.py
puneetloya/ambassador
4c9c1334d466b4974b40cd6d6bb2109bc30b7428
[ "Apache-2.0" ]
null
null
null
python/ambassador/envoy/v2/v2listener.py
puneetloya/ambassador
4c9c1334d466b4974b40cd6d6bb2109bc30b7428
[ "Apache-2.0" ]
null
null
null
python/ambassador/envoy/v2/v2listener.py
puneetloya/ambassador
4c9c1334d466b4974b40cd6d6bb2109bc30b7428
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
39.207185
344
0.573906
796e581ad038a0ccde9b825c46bf5759a0861c37
7,483
bzl
Python
test/convert_shell_script_test.bzl
jlaxson/rules_foreign_cc
71c89c14fd5aedcae87112f2b773c07118063557
[ "Apache-2.0" ]
null
null
null
test/convert_shell_script_test.bzl
jlaxson/rules_foreign_cc
71c89c14fd5aedcae87112f2b773c07118063557
[ "Apache-2.0" ]
null
null
null
test/convert_shell_script_test.bzl
jlaxson/rules_foreign_cc
71c89c14fd5aedcae87112f2b773c07118063557
[ "Apache-2.0" ]
null
null
null
""" Unit tests for shell script conversion """ load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load( "//tools/build_defs:shell_script_helper.bzl", "convert_shell_script_by_context", "do_function_call", "replace_var_ref", "split_arguments", ) load("//tools/build_defs/shell_toolchain/t...
25.714777
109
0.596819
e3fd30214d655c7c8f7b5959bdf3c32888621132
7,020
py
Python
utils/make_api_call.py
alphagov/notifications-python-client
74a958de00d39571101996c8483869ba43068006
[ "MIT" ]
13
2016-10-18T08:51:22.000Z
2022-01-13T10:34:42.000Z
utils/make_api_call.py
alphagov/notifications-python-client
74a958de00d39571101996c8483869ba43068006
[ "MIT" ]
56
2016-02-23T09:28:33.000Z
2021-10-07T09:23:57.000Z
utils/make_api_call.py
alphagov/notifications-python-client
74a958de00d39571101996c8483869ba43068006
[ "MIT" ]
17
2016-11-07T14:40:09.000Z
2021-09-15T15:32:33.000Z
""" Usage: utils/make_api_call.py <base_url> <secret> <call> [options] Options: --type=<sms> --to=<07123456789> --template=<4051caf5-3c65-4dd3-82d7-31c8c8e82e27> --personalisation=<{}> --reference=<''> --sms_sender_id=<''> --filename=<''> Example: ./make_api_call.py http://api my_...
36.753927
132
0.710969
1a1a410053164a05c5a0b6dfb883a08eb0589dfa
33,427
py
Python
tests/cupy_tests/sparse_tests/test_csc.py
keisuke-umezawa/cupy
d4070ad0f5bd830638419e70e3f931e7b7d718f7
[ "BSD-3-Clause" ]
1
2020-11-24T03:44:35.000Z
2020-11-24T03:44:35.000Z
tests/cupy_tests/sparse_tests/test_csc.py
martindurant/cupy
0ce4ba4fe2993547e11c37ec73cb7639c10b3881
[ "BSD-3-Clause" ]
null
null
null
tests/cupy_tests/sparse_tests/test_csc.py
martindurant/cupy
0ce4ba4fe2993547e11c37ec73cb7639c10b3881
[ "BSD-3-Clause" ]
1
2020-11-24T03:44:35.000Z
2020-11-24T03:44:35.000Z
import unittest import numpy try: import scipy.sparse scipy_available = True except ImportError: scipy_available = False import cupy import cupy.sparse from cupy import testing def _make(xp, sp, dtype): data = xp.array([0, 1, 3, 2], dtype) indices = xp.array([0, 0, 2, 1], 'i') indptr = xp.ar...
34.144025
77
0.617824
f299ef4dc512a58677138746613bd969a7291533
3,581
py
Python
regex/compiler.py
dannyvi/minimal-compiler-frontend
1f3271ba93bc11f65916bd1020191697daee6176
[ "MIT" ]
null
null
null
regex/compiler.py
dannyvi/minimal-compiler-frontend
1f3271ba93bc11f65916bd1020191697daee6176
[ "MIT" ]
null
null
null
regex/compiler.py
dannyvi/minimal-compiler-frontend
1f3271ba93bc11f65916bd1020191697daee6176
[ "MIT" ]
null
null
null
"""regex_compile a regex pattern to an nfa machine. """ import re import string from regex.parsing_table import (semantic, all_symbols, grammar, generate_syntax_table) from regex.graph import Machine from regex.regex_nfa import induct_star, induct_or, induct_cat, basis class Escape...
28.648
86
0.558224
aefde2ba57abf078286a6adaa524cf7db599f8e9
2,832
py
Python
build_scripts/installer-version.py
VercauterenK/LittleLamboCoin
ffbf98d5d43ae248586aadbb68316c6ed43da7cb
[ "Apache-2.0" ]
6
2021-07-15T16:52:46.000Z
2021-09-27T16:57:08.000Z
build_scripts/installer-version.py
VercauterenK/LittleLamboCoin
ffbf98d5d43ae248586aadbb68316c6ed43da7cb
[ "Apache-2.0" ]
6
2021-07-27T08:17:34.000Z
2021-11-30T11:39:19.000Z
build_scripts/installer-version.py
VercauterenK/LittleLamboCoin
ffbf98d5d43ae248586aadbb68316c6ed43da7cb
[ "Apache-2.0" ]
7
2021-08-15T15:10:58.000Z
2021-10-04T16:47:39.000Z
import os import sys from setuptools_scm import get_version # example: 1.0b5.dev225 def main(): windows = len(sys.argv) > 1 and "win" in sys.argv[1] # Special case windows to 0.1.6225 scm_full_version = get_version(root="..", relative_to=__file__) # scm_full_version = "1.0.5.dev22" os.environ["SCM_...
38.27027
115
0.6875
5a5ae0922d4ae6838e7dee9b2ab6d729623d265a
929
py
Python
students/K33422/laboratory_works/Moruga_Elina/lr_3 school/school_app/serializer_teacher.py
Elyavor/ITMO_ICT_WebDevelopment_2021-2022
63fad07bcdc0a9a6b85d46eacf97182162262181
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Moruga_Elina/lr_3 school/school_app/serializer_teacher.py
Elyavor/ITMO_ICT_WebDevelopment_2021-2022
63fad07bcdc0a9a6b85d46eacf97182162262181
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Moruga_Elina/lr_3 school/school_app/serializer_teacher.py
Elyavor/ITMO_ICT_WebDevelopment_2021-2022
63fad07bcdc0a9a6b85d46eacf97182162262181
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Teacher class TeacherSerializer(serializers.ModelSerializer): class Meta: model = Teacher fields = ['username', 'password', 'first_name', 'last_name', 'patronymic', 'email'] extra_kwargs = {'password':{'write_only':T...
34.407407
68
0.637244
beb21eef22f39739a5581e6598c538d332d96737
221
py
Python
imtools/ml/__init__.py
mjirik/imtools
b7ff33631a035db5fa5156adc5d8536650e4573b
[ "MIT" ]
7
2016-01-06T08:36:31.000Z
2021-11-11T01:00:05.000Z
imtools/ml/__init__.py
mjirik/imtools
b7ff33631a035db5fa5156adc5d8536650e4573b
[ "MIT" ]
1
2018-08-06T18:44:19.000Z
2018-08-06T18:44:19.000Z
imtools/ml/__init__.py
mjirik/imtools
b7ff33631a035db5fa5156adc5d8536650e4573b
[ "MIT" ]
1
2018-08-06T18:27:03.000Z
2018-08-06T18:27:03.000Z
__all__ = ['gmmcl' ] from . import gmmcl # import misc # from qmisc import resize_to_mm, resize_to_shape # from import Model, ImageGraphCut # from seed_editor_qt import QTSeedEditor # from dcmreaddata import DicomReader
24.555556
49
0.791855
3d41ea268902cb7007af7bf0855fd15f34032522
11,594
py
Python
test/functional/rpc_blockchain.py
bitcoincloudcore/BitcoinCloud
c519c4e87e80330fa23eb68d63c6a2d387507261
[ "MIT" ]
1
2018-06-18T12:20:51.000Z
2018-06-18T12:20:51.000Z
test/functional/rpc_blockchain.py
bitcoincloudcore/BitcoinCloud
c519c4e87e80330fa23eb68d63c6a2d387507261
[ "MIT" ]
null
null
null
test/functional/rpc_blockchain.py
bitcoincloudcore/BitcoinCloud
c519c4e87e80330fa23eb68d63c6a2d387507261
[ "MIT" ]
2
2019-07-17T06:38:37.000Z
2021-09-30T20:25:54.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPCs related to blockchainstate. Test the following RPCs: - getblockchaininfo - gettxouts...
39.168919
168
0.660083
c83c63eb318496e5570f35da184ea006b0f34974
3,794
py
Python
06_P_+3/06Practice_Camera/kaamera/camera.py
aqeel13932/Robotics
af0c5ad15393072be8e024318a2c85131a6547c1
[ "Apache-2.0" ]
null
null
null
06_P_+3/06Practice_Camera/kaamera/camera.py
aqeel13932/Robotics
af0c5ad15393072be8e024318a2c85131a6547c1
[ "Apache-2.0" ]
null
null
null
06_P_+3/06Practice_Camera/kaamera/camera.py
aqeel13932/Robotics
af0c5ad15393072be8e024318a2c85131a6547c1
[ "Apache-2.0" ]
null
null
null
import cv2 import datetime import imutils import numpy as np from time import time class VideoCamera(object): def __init__(self): # Using OpenCV to capture from device 0. If you have trouble capturing # from a webcam, comment the line below out and use a video file # instead. ...
40.361702
95
0.566684
f3420c373c58c30916a72376560dec50ba8799ae
746
py
Python
venv/lib/python3.7/site-packages/PyInstaller/loader/rthooks/pyi_rth_certifi.py
alexzacher/BMI-Body-Mass-Index-Calculator-APP
f54473757992568b73b066d507059e1053357174
[ "MIT" ]
5
2020-08-24T23:29:58.000Z
2022-02-07T19:58:07.000Z
venv/lib/python3.7/site-packages/PyInstaller/loader/rthooks/pyi_rth_certifi.py
alexzacher/BMI-Body-Mass-Index-Calculator-APP
f54473757992568b73b066d507059e1053357174
[ "MIT" ]
12
2020-02-15T04:04:55.000Z
2022-02-18T20:29:49.000Z
pyinstaller-develop/PyInstaller/hooks/rthooks/pyi_rth_certifi.py
onecklam/ethereum-graphviz
6993accf0cb85e23013bf7ae6b04145724a6dbd2
[ "Apache-2.0" ]
2
2020-08-24T23:30:06.000Z
2021-12-23T18:23:38.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2018-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
39.263158
85
0.603217
da778b23c24c3da2d2d989d9841a1dc3e9f69eeb
841
py
Python
kimita/models.py
lizKimita/Portfolio
8777ea97240f7f90416a45e7f0b76246c2c11ed6
[ "MIT" ]
null
null
null
kimita/models.py
lizKimita/Portfolio
8777ea97240f7f90416a45e7f0b76246c2c11ed6
[ "MIT" ]
3
2021-03-19T01:18:18.000Z
2021-09-08T01:03:13.000Z
kimita/models.py
lizKimita/Portfolio
8777ea97240f7f90416a45e7f0b76246c2c11ed6
[ "MIT" ]
1
2019-06-15T12:12:34.000Z
2019-06-15T12:12:34.000Z
from django.db import models class User(models.Model): image = models.ImageField(upload_to = 'images/') def __str__(self): return self.image class Project(models.Model): name = models.CharField(max_length=50) description = models.TextField(blank=True) url = models.URLField(blank=True) ...
22.72973
52
0.649227
cce45488c79e9fa954d029cdd297eac6cd626e3d
3,331
py
Python
followSoloBasic.py
sysuroboclub/LineFollowCar
4ce8c85d0757190b98f782ec964bc8456efaf97f
[ "MIT" ]
4
2019-11-28T11:40:42.000Z
2019-12-04T11:38:42.000Z
followSoloBasic.py
sysuroboclub/LineFollowCar
4ce8c85d0757190b98f782ec964bc8456efaf97f
[ "MIT" ]
null
null
null
followSoloBasic.py
sysuroboclub/LineFollowCar
4ce8c85d0757190b98f782ec964bc8456efaf97f
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np import serial import os import math import time print(cv.__version__) cam = cv.VideoCapture(0) # open serial port # ser=serial.Serial('COM3',115200) print(cam.set(cv.CAP_PROP_FRAME_WIDTH, 1280)) print(cam.set(cv.CAP_PROP_FRAME_HEIGHT, 720)) if not cam.isOpened(): ...
28.470085
94
0.573101
be863430e22dde8a8c38728491f513f783d99889
16,583
py
Python
pl_bolts/models/self_supervised/simclr/simclr_module.py
btwardow/pytorch-lightning-bolts
4a7b6ffe0fcbeee37f8bac6af1e926469b2052bf
[ "Apache-2.0" ]
1
2021-06-28T03:24:11.000Z
2021-06-28T03:24:11.000Z
pl_bolts/models/self_supervised/simclr/simclr_module.py
btwardow/pytorch-lightning-bolts
4a7b6ffe0fcbeee37f8bac6af1e926469b2052bf
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/self_supervised/simclr/simclr_module.py
btwardow/pytorch-lightning-bolts
4a7b6ffe0fcbeee37f8bac6af1e926469b2052bf
[ "Apache-2.0" ]
null
null
null
import math from argparse import ArgumentParser from typing import Callable, Optional import numpy as np import pytorch_lightning as pl import torch import torch.nn.functional as F from pytorch_lightning.callbacks import ModelCheckpoint from pytorch_lightning.core.optimizer import LightningOptimizer from torch import ...
36.688053
117
0.647651
b6f3717db0cd43abf9699ceab5ccbf8943fd0316
3,039
py
Python
misc/split_channels.py
amnahEltahir/voltammetry
2e85a280bdcd186e30a5af1cf38046365cec0995
[ "MIT" ]
null
null
null
misc/split_channels.py
amnahEltahir/voltammetry
2e85a280bdcd186e30a5af1cf38046365cec0995
[ "MIT" ]
null
null
null
misc/split_channels.py
amnahEltahir/voltammetry
2e85a280bdcd186e30a5af1cf38046365cec0995
[ "MIT" ]
null
null
null
import os import pyabf import glob import sys import h5py import numpy as np abf_path = sys.argv[1] # path of directory containing abf data files replace_str = sys.argv[2] # path of substring to be replaced in file name ch1 = sys.argv[3] # first channel name ch2 = sys.argv[4] # second channel name out_path = os.pat...
41.630137
115
0.649227
0a13421213dbe2bcb37f3e85ebaf713cfb6c8afa
296
py
Python
spectrocrunch/utils/debug.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/utils/debug.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/utils/debug.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import inspect def printstack(i): frame, filename, line_number, function_name, lines, index = inspect.stack()[i] print "Caller: file = {}, function = {}, line {}".format( filename, function_name, line_number ) def printcaller(): printstack(3)
19.733333
82
0.631757
1f173f1a06f317a5e2cd6fced52f6cb2a59edfda
18,336
py
Python
src/python/WMCore/MicroService/DataStructs/Workflow.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
src/python/WMCore/MicroService/DataStructs/Workflow.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
src/python/WMCore/MicroService/DataStructs/Workflow.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
""" Workflow class provides all the workflow data required by MS Transferor """ from __future__ import division, print_function import operator from copy import copy, deepcopy from WMCore.DataStructs.LumiList import LumiList from WMCore.MicroService.Unified.Common import getMSLogger, gigaBytes class Workflow(object)...
38.683544
111
0.599913
cc75e3f70b5a38e761db06bb15fcb62ca9b92c14
583
py
Python
imgaug/__init__.py
dukebw/imgaug
eba6eef5808704926edce97de39af23cab18cb7f
[ "MIT" ]
null
null
null
imgaug/__init__.py
dukebw/imgaug
eba6eef5808704926edce97de39af23cab18cb7f
[ "MIT" ]
null
null
null
imgaug/__init__.py
dukebw/imgaug
eba6eef5808704926edce97de39af23cab18cb7f
[ "MIT" ]
null
null
null
"""Imports for package imgaug.""" from __future__ import absolute_import # this contains some deprecated classes/functions pointing to the new # classes/functions, hence always place the other imports below this so that # the deprecated stuff gets overwritten as much as possible from imgaug.imgaug import * # pylint: ...
34.294118
76
0.813036
4ff3884167e60887fedf87a2405e7305bec34064
657
py
Python
document/migrations/0002_document_author.py
apiaas/drawer-api
e54a1bcd7c3a8ec0f66d1cd1eaac2554e4742d8d
[ "Apache-2.0" ]
null
null
null
document/migrations/0002_document_author.py
apiaas/drawer-api
e54a1bcd7c3a8ec0f66d1cd1eaac2554e4742d8d
[ "Apache-2.0" ]
null
null
null
document/migrations/0002_document_author.py
apiaas/drawer-api
e54a1bcd7c3a8ec0f66d1cd1eaac2554e4742d8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-27 16:20 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependen...
27.375
134
0.678843
17d47cf86622db3654bebb8deb2a7205893131bb
892
py
Python
plugins/holland.backup.mariabackup/setup.py
holland-backup/holland
afb96026344d10f230ca3d1651ec20f0138f8146
[ "BSD-3-Clause" ]
84
2015-02-11T15:14:54.000Z
2022-03-15T23:34:33.000Z
plugins/holland.backup.mariabackup/setup.py
holland-backup/holland
afb96026344d10f230ca3d1651ec20f0138f8146
[ "BSD-3-Clause" ]
157
2015-01-30T18:22:24.000Z
2022-03-30T12:15:42.000Z
plugins/holland.backup.mariabackup/setup.py
holland-backup/holland
afb96026344d10f230ca3d1651ec20f0138f8146
[ "BSD-3-Clause" ]
49
2015-02-04T18:59:49.000Z
2022-03-22T20:56:54.000Z
from setuptools import find_packages, setup version = "1.2.7" setup( name="holland.backup.mariabackup", version=version, description="Holland plugin for MariaDB mariabackup", long_description="""\ Holland plugin for MariaDB mariabackup """, author="Rackspace", author_email="holland...
29.733333
82
0.663677
b9090b96cb411a0b955fc0df3b6006bea8ba1c90
3,453
py
Python
carpyncho/settings.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
1
2016-02-16T11:10:52.000Z
2016-02-16T11:10:52.000Z
carpyncho/settings.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
carpyncho/settings.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created at 2015-12-07T20:41:54.110455 by corral 0.0.1 # ============================================================================= # DOCS # ============================================================================= """Global configuration for carpyncho """ # ...
25.389706
79
0.555749
da5e609d1ba14963a9de878ecfb50598a7cd61c2
63,804
py
Python
scripts/geodata/i18n/transliteration_rules.py
Fillr/libpostal
bce153188aff9fbe65aef12c3c639d8069e707fc
[ "MIT" ]
3,489
2015-03-03T00:21:38.000Z
2022-03-29T09:03:05.000Z
scripts/geodata/i18n/transliteration_rules.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
488
2015-05-29T23:04:28.000Z
2022-03-29T11:20:24.000Z
scripts/geodata/i18n/transliteration_rules.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
419
2015-11-24T16:53:07.000Z
2022-03-27T06:51:28.000Z
# -*- coding: utf-8 -*- ''' transliteration.py Automatically builds rules for transforming other scripts (e.g. Cyrillic, Greek, Han, Katakana, Devanagari, etc.) into Latin characters. Uses XML transforms from the CLDR repository. ''' import argparse import codecs import csv import htmlentitydefs import itertools im...
37.888361
7,866
0.606373
488db2d17c149abed44183b7d47d3c812f63af76
806
py
Python
python/twitter_bot/src/top_stable_farms/stable_tokens.py
prodesert22/scripts
6bfddfabd1c8b937afb6e14bf963af18f29c42a4
[ "MIT" ]
null
null
null
python/twitter_bot/src/top_stable_farms/stable_tokens.py
prodesert22/scripts
6bfddfabd1c8b937afb6e14bf963af18f29c42a4
[ "MIT" ]
null
null
null
python/twitter_bot/src/top_stable_farms/stable_tokens.py
prodesert22/scripts
6bfddfabd1c8b937afb6e14bf963af18f29c42a4
[ "MIT" ]
null
null
null
from src.classes.pair import Pair from src.classes.token import Token USDC = Token("0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e", "USD Coin", "USDC") USDCE = Token("0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664", "USD Coin", "USDC.e") DAI = Token("0xd586e7f844cea2f87f50152665bcbc2c279d8d70", "Dai Stablecoin", "DAI.e") USD...
40.3
84
0.790323
ec2b0c79849989c5073d1ba70c0025f50f1273ff
10,747
py
Python
gamestonk_terminal/behavioural_analysis/twitter_view.py
shanedrinion/GamestonkTerminal
baf36aa7c96de6918911c7a263cf5ac9648b27e3
[ "MIT" ]
1
2021-06-21T23:31:20.000Z
2021-06-21T23:31:20.000Z
gamestonk_terminal/behavioural_analysis/twitter_view.py
shanedrinion/GamestonkTerminal
baf36aa7c96de6918911c7a263cf5ac9648b27e3
[ "MIT" ]
1
2021-04-20T00:26:20.000Z
2021-04-20T00:26:20.000Z
gamestonk_terminal/behavioural_analysis/twitter_view.py
shanedrinion/GamestonkTerminal
baf36aa7c96de6918911c7a263cf5ac9648b27e3
[ "MIT" ]
null
null
null
"""Twitter view""" __docformat__ = "numpy" import argparse from typing import List, Optional from datetime import datetime, timedelta import requests from dateutil import parser as dparse import pandas as pd from pandas.core.frame import DataFrame import numpy as np import matplotlib.pyplot as plt from vaderSentiment.v...
32.468278
121
0.589095
9dcda040f4da5132a97de594287a6bea0afb1618
57,569
py
Python
jax/random.py
tigerneil/jax
8358c01634b5cb06f22500c6781ab676f39257ac
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-01T05:03:17.000Z
2021-09-01T05:03:17.000Z
jax/random.py
llv22/jax-macOS-cuda
fd1f8e6d612ae3eee24cfa5ee19e8d16ed89aecb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/random.py
llv22/jax-macOS-cuda
fd1f8e6d612ae3eee24cfa5ee19e8d16ed89aecb
[ "ECL-2.0", "Apache-2.0" ]
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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.725426
121
0.682937
1eba3ffe069e0dd18d1cc2bf4fd337693c6a9ec3
5,982
py
Python
openstackclient/tests/functional/compute/v2/test_aggregate.py
mail2nsrajesh/python-openstackclient
52af8fbc0580d86c038921f2485023d342c4cd1f
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/functional/compute/v2/test_aggregate.py
mail2nsrajesh/python-openstackclient
52af8fbc0580d86c038921f2485023d342c4cd1f
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/functional/compute/v2/test_aggregate.py
mail2nsrajesh/python-openstackclient
52af8fbc0580d86c038921f2485023d342c4cd1f
[ "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 # d...
29.038835
78
0.520896
186edbda00fb4224d0e5a97b9258403ef92b56b1
5,329
py
Python
news/views.py
DevWaweru/Tribune
292b1ee5f4ccb499efb675b13e5438977e9f45e3
[ "MIT" ]
null
null
null
news/views.py
DevWaweru/Tribune
292b1ee5f4ccb499efb675b13e5438977e9f45e3
[ "MIT" ]
null
null
null
news/views.py
DevWaweru/Tribune
292b1ee5f4ccb499efb675b13e5438977e9f45e3
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, Http404, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.http import JsonResponse import datetime as dt from .models import Article, NewsLetterRecepients, MoringaMerch from .forms import NewsLe...
34.603896
104
0.673109
d254072d77d7fc8dbc8385ff461073bac49d63dd
6,024
py
Python
hw/ip/otbn/dv/otbnsim/sim/wsr.py
zeeshanrafique23/opentitan
d772758e0486df24378b1e567f4ccc5cc35b4524
[ "Apache-2.0" ]
1
2021-08-01T10:36:10.000Z
2021-08-01T10:36:10.000Z
hw/ip/otbn/dv/otbnsim/sim/wsr.py
zeeshanrafique23/opentitan
d772758e0486df24378b1e567f4ccc5cc35b4524
[ "Apache-2.0" ]
1
2022-02-15T22:20:51.000Z
2022-02-15T22:20:51.000Z
hw/ip/otbn/dv/otbnsim/sim/wsr.py
jesultra/opentitan
db70c37a61ac5a8470fcc3da9402128fab29b212
[ "Apache-2.0" ]
1
2021-12-04T06:08:11.000Z
2021-12-04T06:08:11.000Z
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from typing import List, Optional from .trace import Trace class TraceWSR(Trace): def __init__(self, wsr_name: str, new_value: int): self.wsr_name = wsr_name...
30.424242
80
0.606242
f282589c221ae71718a00b400aba36ffb55e0d07
10,580
py
Python
scenario_util.py
chrisgarcia001/Jepson-2014-2015
d257d5f66d82c31d884bf8be4513ff70420aa04b
[ "Apache-2.0" ]
null
null
null
scenario_util.py
chrisgarcia001/Jepson-2014-2015
d257d5f66d82c31d884bf8be4513ff70420aa04b
[ "Apache-2.0" ]
null
null
null
scenario_util.py
chrisgarcia001/Jepson-2014-2015
d257d5f66d82c31d884bf8be4513ff70420aa04b
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------------------------------------- # Author: cgarcia@umw.edu # About: This file contains utility functions and classes used specifically in # running scenarios and generating result reports # -------------------------------------------------------------------...
41.167315
101
0.659263
46e9e9785ba653d4e36ed37a46a96afbc13076c0
3,713
py
Python
themyscira/models.py
Vehe/themyscira-tfg
6cfc0fffbde7a161590a2c141c998105044d417d
[ "MIT" ]
3
2019-04-30T23:25:46.000Z
2019-05-02T12:21:32.000Z
themyscira/models.py
Vehe/themyscira-tfg
6cfc0fffbde7a161590a2c141c998105044d417d
[ "MIT" ]
null
null
null
themyscira/models.py
Vehe/themyscira-tfg
6cfc0fffbde7a161590a2c141c998105044d417d
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import ArrayField import random # Crea la tabla de Autor la cual contiene información sobre los autores disponibles. class Autor(models.Model): name = models.CharField(max_length=30) youtube = models.CharField(max_length=100) twitter = models...
38.278351
122
0.728521
4a8abe9820f01c7d60a67ae3405816644082c3c2
571
py
Python
zufang_flask/__init__.py
gavinliu4011/zufang_flask
69d5538734873f054aa5c7b0bd58fab0cfb2c4e6
[ "Apache-2.0" ]
null
null
null
zufang_flask/__init__.py
gavinliu4011/zufang_flask
69d5538734873f054aa5c7b0bd58fab0cfb2c4e6
[ "Apache-2.0" ]
null
null
null
zufang_flask/__init__.py
gavinliu4011/zufang_flask
69d5538734873f054aa5c7b0bd58fab0cfb2c4e6
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(): app = Flask(__name__, template_folder='templates', static_folder='statics', static_url_path='/static') app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:root@127.0.0.1:3306/zufang?charset=utf8' ...
27.190476
106
0.739054
ca6cb9d880a76888dd611cf51c35eb6122f2d66d
5,152
py
Python
src/sentry/runner/commands/backup.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/runner/commands/backup.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/runner/commands/backup.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function import click from sentry.runner.decorators import configuration @click.command(name="import") @click.argument("src", type=click.File("rb")) @configuration def import_(src): "Imports data from a Sentry export." from django.core import serializers fo...
37.064748
97
0.601708
f564f432e5fcf2487f10e5ceb6da409be71775ef
870
py
Python
fdk_client/platform/models/CartProduct.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/CartProduct.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/CartProduct.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema from .BaseInfo import BaseInfo from .ProductImage import ProductImage from .ProductAction import ProductAction from .CategoryInfo import Catego...
18.913043
89
0.717241
089d65b348855a520b160dffd61d246664eb4605
1,620
py
Python
models/role/models.py
Lihao2017-11-15/fastapi-vue-admin
9363625660023567382039f165c8b8693541579a
[ "MIT" ]
75
2020-12-23T07:23:59.000Z
2022-03-16T18:37:05.000Z
models/role/models.py
Lihao2017-11-15/fastapi-vue-admin
9363625660023567382039f165c8b8693541579a
[ "MIT" ]
6
2021-01-03T10:54:27.000Z
2021-12-16T03:41:12.000Z
models/role/models.py
Lihao2017-11-15/fastapi-vue-admin
9363625660023567382039f165c8b8693541579a
[ "MIT" ]
37
2020-12-30T04:59:23.000Z
2022-03-13T09:00:26.000Z
from models.base import Base from sqlalchemy import Column, String, DateTime, BigInteger from datetime import datetime from utils.snow_flake import generate_id class Role(Base): __tablename__ = "role" __table_args__ = ({"comment": "角色表"}) role_id = Column(BigInteger, primary_key=True, default=generate_id,...
38.571429
101
0.719753
247a316c75a042d20a5715706aedc6d9785727eb
187
py
Python
poc/urls.py
kumarshantam99/neunet-poc
f9e10dd127658e817eef52a4c6378d0244d7e92b
[ "MIT" ]
null
null
null
poc/urls.py
kumarshantam99/neunet-poc
f9e10dd127658e817eef52a4c6378d0244d7e92b
[ "MIT" ]
null
null
null
poc/urls.py
kumarshantam99/neunet-poc
f9e10dd127658e817eef52a4c6378d0244d7e92b
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('jobpost', views.job_post, name='job_post'), path('candidate', views.candidate_portal, name='candidate'), ]
23.375
64
0.71123
7e0b9d4dacd30a16ce089402178e84f981d1b173
1,810
py
Python
zerver/lib/users.py
Supermanu/zulip
26f6d708c2e30cfe50d9d61031edb759e8117596
[ "Apache-2.0" ]
null
null
null
zerver/lib/users.py
Supermanu/zulip
26f6d708c2e30cfe50d9d61031edb759e8117596
[ "Apache-2.0" ]
15
2020-06-05T18:44:15.000Z
2022-03-11T23:26:03.000Z
zerver/lib/users.py
Supermanu/zulip
26f6d708c2e30cfe50d9d61031edb759e8117596
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from typing import Text from django.utils.translation import ugettext as _ from zerver.lib.actions import do_change_full_name from zerver.lib.request import JsonableError from zerver.models import UserProfile, Service def check_full_name(full_name_raw): # type: (Text) -> Te...
38.510638
73
0.742541
4799426daa55d19c948f1b9e93cda85c6ee0c049
15,785
py
Python
astropy/modeling/powerlaws.py
nksaunders/astropy
842cc5aaac9162a261a787f2337d4adc580e9410
[ "BSD-3-Clause" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
astropy/modeling/powerlaws.py
nksaunders/astropy
842cc5aaac9162a261a787f2337d4adc580e9410
[ "BSD-3-Clause" ]
1
2016-06-17T15:17:33.000Z
2016-06-22T18:40:35.000Z
astropy/modeling/powerlaws.py
nksaunders/astropy
842cc5aaac9162a261a787f2337d4adc580e9410
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Power law model variants """ # pylint: disable=invalid-name import numpy as np from astropy.units import Quantity from .core import Fittable1DModel from .parameters import Parameter, InputParameterError __all__ = ['PowerLaw1D', 'BrokenPowerLaw1D', '...
30.95098
121
0.560469
5c00d929bf70ca3c516dfe766f2bc5c975d1c42e
65,147
py
Python
tensorflow/python/ops/rnn.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
3
2019-03-14T12:11:03.000Z
2019-07-22T08:23:27.000Z
tensorflow/python/ops/rnn.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
1
2019-08-22T20:29:33.000Z
2019-12-19T10:16:21.000Z
tensorflow/python/ops/rnn.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
2
2019-02-07T15:33:54.000Z
2019-03-29T17:44:31.000Z
# Copyright 2015 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...
41.494904
96
0.693969
e2099545b140212b31b8bd3692510334202412d1
2,334
py
Python
xlsxwriter/test/comparison/test_data_validation04.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_data_validation04.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_data_validation04.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
31.972603
79
0.542845
6758b6037c041609c6ab4027381b893c65505b1d
18,194
py
Python
hsp3ll/llvm/utils/lit/lit/main.py
sharkpp/openhsp
0d412fd8f79a6ccae1d33c13addc06fb623fb1fe
[ "BSD-3-Clause" ]
null
null
null
hsp3ll/llvm/utils/lit/lit/main.py
sharkpp/openhsp
0d412fd8f79a6ccae1d33c13addc06fb623fb1fe
[ "BSD-3-Clause" ]
null
null
null
hsp3ll/llvm/utils/lit/lit/main.py
sharkpp/openhsp
0d412fd8f79a6ccae1d33c13addc06fb623fb1fe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ lit - LLVM Integrated Tester. See lit.pod for more information. """ from __future__ import absolute_import import math, os, platform, random, re, sys, time import lit.ProgressBar import lit.LitConfig import lit.Test import lit.run import lit.util import lit.discovery class TestingProgress...
39.042918
88
0.56766
63e8e798abf3cf113bae54e0532b8f767e7937b7
3,879
py
Python
vup/error.py
arecarn/vup
40880c172adc13b3e518fd366a2d6ca77f2016a1
[ "MIT" ]
null
null
null
vup/error.py
arecarn/vup
40880c172adc13b3e518fd366a2d6ca77f2016a1
[ "MIT" ]
null
null
null
vup/error.py
arecarn/vup
40880c172adc13b3e518fd366a2d6ca77f2016a1
[ "MIT" ]
null
null
null
""" All the exceptions and their messages used by the program """ ERROR_HEAD = 'vup {subcmd} error: ' class VupError(Exception): """Base Vup Exception. Using a base exception will ensure internally generated exceptions will be caught and unexpected and unhandled exceptions won't be silenced. """ cl...
31.536585
83
0.683939
606bf976e748d4652b8eeee26420aef9c6327bdb
300
py
Python
9/9.11/admin.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
9/9.11/admin.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
9/9.11/admin.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
from user import User from privileges import Privileges class Admin(User): """管理员""" def __init__(self, first_name, last_name): super(Admin, self).__init__(first_name, last_name) self.privileges = Privileges() def show_privileges(self): print(self.privileges)
21.428571
58
0.683333
8f24f50768d532d584b0e12e00a664e7e01050d9
2,054
py
Python
ctreport_selenium/ctreport_html/charts/verification.py
naveens33/ctreport-selenium
9553b5c4b8deb52e46cf0fb3e1ea7092028cf090
[ "MIT" ]
2
2020-08-30T13:12:52.000Z
2020-09-03T05:38:28.000Z
ctreport_selenium/ctreport_html/charts/verification.py
naveens33/ctreport-selenium
9553b5c4b8deb52e46cf0fb3e1ea7092028cf090
[ "MIT" ]
5
2020-01-10T07:01:24.000Z
2020-06-25T10:49:43.000Z
ctreport_selenium/ctreport_html/charts/verification.py
naveens33/ctreport-selenium
9553b5c4b8deb52e46cf0fb3e1ea7092028cf090
[ "MIT" ]
1
2020-10-13T02:27:04.000Z
2020-10-13T02:27:04.000Z
from ctreport_selenium.utility_classes import Severity def chart(theme, count): label = [Severity.BLOCKER.capitalize(), Severity.CRITICAL.capitalize(), Severity.MAJOR.capitalize(), Severity.MINOR.capitalize()] legend_labels = ''' labels: { fontColor:'#fff' } ...
32.09375
104
0.37147
687a94388106005b61ea328fb915da32e27e3d2c
102
py
Python
cmd_controller/apps.py
jissonv/cmd_controller
ae6d0345f94b93bb4715ae59001c871418fc1347
[ "MIT" ]
7
2021-07-04T09:29:03.000Z
2022-02-28T08:37:01.000Z
cmd_controller/apps.py
jissonv/cmd_controller
ae6d0345f94b93bb4715ae59001c871418fc1347
[ "MIT" ]
null
null
null
cmd_controller/apps.py
jissonv/cmd_controller
ae6d0345f94b93bb4715ae59001c871418fc1347
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CmdControllerConfig(AppConfig): name = 'cmd_controller'
17
37
0.784314
1d363862ef8ca320309e26e98b4d0b38803ace51
26,121
py
Python
utils/tools.py
ishine/Comprehensive-Transformer-TTS
dca252cae50a18464ce2410aa85a21c557c72d7a
[ "MIT" ]
147
2021-09-24T18:47:46.000Z
2022-03-31T02:51:38.000Z
utils/tools.py
ishine/Comprehensive-Transformer-TTS
dca252cae50a18464ce2410aa85a21c557c72d7a
[ "MIT" ]
6
2021-11-19T20:18:51.000Z
2022-03-26T01:04:40.000Z
utils/tools.py
ishine/Comprehensive-Transformer-TTS
dca252cae50a18464ce2410aa85a21c557c72d7a
[ "MIT" ]
24
2021-09-24T20:10:35.000Z
2022-03-17T07:46:51.000Z
import os import json import yaml import torch import torch.nn.functional as F from torch.cuda import amp import numpy as np import matplotlib matplotlib.use("Agg") from scipy.io import wavfile from scipy.interpolate import interp1d from matplotlib import pyplot as plt from sklearn.manifold import TSNE from utils.pit...
37.369099
127
0.613912
0798f91e316ce01959189ed5faec05ca676b9deb
59,510
py
Python
openapi_client/api/registry_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
openapi_client/api/registry_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
openapi_client/api/registry_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Prisma Cloud Compute API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 21.04.439 Generated by: https://openapi-generator.tech """ from __future__ import absolute_impor...
47.305246
185
0.610519
cb382da4349bbf5032006cc8fccb9692470539fe
1,615
py
Python
main.py
moccadroid/lemmings-bot
ce61cfb453a4cab131953cc5c26ed466a7c1c758
[ "Apache-2.0" ]
null
null
null
main.py
moccadroid/lemmings-bot
ce61cfb453a4cab131953cc5c26ed466a7c1c758
[ "Apache-2.0" ]
null
null
null
main.py
moccadroid/lemmings-bot
ce61cfb453a4cab131953cc5c26ed466a7c1c758
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json, urllib from flask import Flask, request, abort try: from google.appengine.api import urlfetch except ImportError: import urlfetch app = Flask(__name__) access_token = 'facebook-access-token' @app.route("/", methods=["GET"]) def root(): return "Hello World!" # webh...
22.746479
85
0.593189
5decd97c5828c8c2ac64d7d0e2b22d1d0bf8c3e1
14,087
py
Python
dependencies/amitools-0.1.0/amitools/vamos/Vamos.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
dependencies/amitools-0.1.0/amitools/vamos/Vamos.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
dependencies/amitools-0.1.0/amitools/vamos/Vamos.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
from label.LabelManager import LabelManager from label.LabelRange import LabelRange from MemoryAlloc import MemoryAlloc from MainMemory import MainMemory from AccessMemory import AccessMemory from AmigaLibrary import AmigaLibrary from LibManager import LibManager from SegmentLoader import SegmentLoader from path.PathMa...
38.489071
90
0.718819
b61f87131e74ae70f46e6f95fa956fa7d27a92be
878
py
Python
Simple Math (practP2)/pract02.py
mcrrobinson/python-math-examples
879c1e3afeeaf609934c81516bcac98c7e4689a5
[ "MIT" ]
null
null
null
Simple Math (practP2)/pract02.py
mcrrobinson/python-math-examples
879c1e3afeeaf609934c81516bcac98c7e4689a5
[ "MIT" ]
null
null
null
Simple Math (practP2)/pract02.py
mcrrobinson/python-math-examples
879c1e3afeeaf609934c81516bcac98c7e4689a5
[ "MIT" ]
null
null
null
from logging import basicConfig, error, info, INFO from sys import argv class WeightConverter(object): """ docstring """ def __init__(self, user_weight): self.user_weight = user_weight def ToKg(self): return self.user_weight * 0.45359237 def ToLbs(self): return self.us...
24.388889
79
0.623007
777ea96c3a69a8c7003d7904e8faf587835016f4
2,094
py
Python
third_party/saltedge/test/test_connections_api.py
ltowarek/budget-supervisor
862a2d720aecd4ad2fded9c63bc839190ebbc77e
[ "MIT" ]
1
2022-03-01T10:28:31.000Z
2022-03-01T10:28:31.000Z
third_party/saltedge/test/test_connections_api.py
ltowarek/budget-supervisor
862a2d720aecd4ad2fded9c63bc839190ebbc77e
[ "MIT" ]
75
2020-11-07T20:14:55.000Z
2021-10-05T15:08:22.000Z
third_party/saltedge/test/test_connections_api.py
ltowarek/budget-supervisor
862a2d720aecd4ad2fded9c63bc839190ebbc77e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Salt Edge Account Information API API Reference for services # noqa: E501 OpenAPI spec version: 5.0.0 Contact: support@saltedge.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_cl...
23.266667
75
0.662846
94a1018b150449a833c968435b631ed8b58a0b1c
155
py
Python
lib/kay_notify/storage/__init__.py
gluwer/przepisymm
dc83fdc4068fb0102a87081bd519807fd66397c2
[ "BSD-3-Clause" ]
null
null
null
lib/kay_notify/storage/__init__.py
gluwer/przepisymm
dc83fdc4068fb0102a87081bd519807fd66397c2
[ "BSD-3-Clause" ]
null
null
null
lib/kay_notify/storage/__init__.py
gluwer/przepisymm
dc83fdc4068fb0102a87081bd519807fd66397c2
[ "BSD-3-Clause" ]
null
null
null
from kay.conf import settings from kay_notify.storage.base import BaseStorage from kay_notify.storage.cookie import CookieStorage Storage = CookieStorage
25.833333
51
0.858065
45d5c5b2b1de8175cea95e47e9408b04e140c4dc
2,387
py
Python
tests/firehose_processor_test.py
shuichiro-makigaki/splunk_hec_stream
ff78765eed202e726680167248d31f6686250b61
[ "MIT" ]
1
2019-06-24T16:26:57.000Z
2019-06-24T16:26:57.000Z
tests/firehose_processor_test.py
shuichiro-makigaki/splunk_hec_stream
ff78765eed202e726680167248d31f6686250b61
[ "MIT" ]
3
2019-04-19T04:17:58.000Z
2019-04-25T10:09:58.000Z
tests/firehose_processor_test.py
shuichiro-makigaki/splunk_hec_stream
ff78765eed202e726680167248d31f6686250b61
[ "MIT" ]
null
null
null
import unittest from io import StringIO import logging import gzip import base64 import json from splunk_hec_stream.firehose_processor import lambda_handler from splunk_hec_stream.logging import SplunkHECStreamHandler class TestFirehoseProcessor1(unittest.TestCase): def setUp(self) -> None: self.stream =...
34.594203
77
0.586929
db219efa5764278ff7ad2764e464cbe744ad6214
1,417
py
Python
docs/conf.py
roverdotcom/django-translation-aliases
f32b48eb0767eeb5149c0f3c1928358b0bab1ddb
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
roverdotcom/django-translation-aliases
f32b48eb0767eeb5149c0f3c1928358b0bab1ddb
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
roverdotcom/django-translation-aliases
f32b48eb0767eeb5149c0f3c1928358b0bab1ddb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx.ext...
26.240741
90
0.685956
3c73211970e412d5370a1ee6c4b93aea257d741f
10,686
py
Python
qiskit/aqua/algorithms/minimum_eigen_solvers/cplex/classical_cplex.py
sorin-bolos/qiskit-aqua
ce73337878e5c1fc1cf5e13efaf3e33b231789e4
[ "Apache-2.0" ]
1
2019-12-12T07:58:04.000Z
2019-12-12T07:58:04.000Z
qiskit/aqua/algorithms/minimum_eigen_solvers/cplex/classical_cplex.py
sorin-bolos/qiskit-aqua
ce73337878e5c1fc1cf5e13efaf3e33b231789e4
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/minimum_eigen_solvers/cplex/classical_cplex.py
sorin-bolos/qiskit-aqua
ce73337878e5c1fc1cf5e13efaf3e33b231789e4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # 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...
34.470968
100
0.58207
c6b1cb9c9be23c0389ef1baacdacf76fb5fcadf6
1,735
py
Python
configs/hpa_v2/hpa_instance.py
mducducd/mmdetection
d0dc5ca88077874c24f809b74548c2e01fc01aaf
[ "Apache-2.0" ]
null
null
null
configs/hpa_v2/hpa_instance.py
mducducd/mmdetection
d0dc5ca88077874c24f809b74548c2e01fc01aaf
[ "Apache-2.0" ]
null
null
null
configs/hpa_v2/hpa_instance.py
mducducd/mmdetection
d0dc5ca88077874c24f809b74548c2e01fc01aaf
[ "Apache-2.0" ]
null
null
null
#dataset_type = 'CocoDataset' dataset_type = 'CustomDataset' data_root = '../work/' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', with_bbox=True, with_mask=True), dict(type='R...
34.7
81
0.623631
2f747d931c4b42bec308d01e203ef039b16bdafa
8,081
py
Python
docs/source/conf.py
bayerj/climin
2163b3e11c4373f8f7cd639d1233bff50336917a
[ "BSD-3-Clause" ]
1
2017-03-15T16:12:41.000Z
2017-03-15T16:12:41.000Z
docs/source/conf.py
bayerj/climin
2163b3e11c4373f8f7cd639d1233bff50336917a
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
bayerj/climin
2163b3e11c4373f8f7cd639d1233bff50336917a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # climin documentation build configuration file, created by # sphinx-quickstart on Tue May 7 13:56:19 2013. # # 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 ...
32.584677
185
0.715753
95fe340ef88dfa5c762dc892f2ebe77f84c0561a
342
py
Python
add_blog/forms.py
ankush2394/blogsforum1
f1a9637dee83c685af7e4496b33c84d4c8396ed1
[ "Apache-2.0" ]
2
2017-11-29T14:34:49.000Z
2017-11-29T20:15:18.000Z
add_blog/forms.py
ankush2394/blogsforum1
f1a9637dee83c685af7e4496b33c84d4c8396ed1
[ "Apache-2.0" ]
null
null
null
add_blog/forms.py
ankush2394/blogsforum1
f1a9637dee83c685af7e4496b33c84d4c8396ed1
[ "Apache-2.0" ]
null
null
null
from django.forms import ModelForm from .models import Blog from django import forms class blogform(ModelForm): content = forms.CharField(widget=forms.Textarea) class Meta: model = Blog fields=[ "title", "sub_title", "content", ...
18
53
0.538012
44dd45a418304946b695ab91a2e9ce61feee2c7a
5,020
py
Python
src/sdk/pynni/tests/test_tuner.py
leelaylay/nni
2c4fd90df9c1880ee461c83428dde9c4f60adc90
[ "MIT" ]
null
null
null
src/sdk/pynni/tests/test_tuner.py
leelaylay/nni
2c4fd90df9c1880ee461c83428dde9c4f60adc90
[ "MIT" ]
null
null
null
src/sdk/pynni/tests/test_tuner.py
leelaylay/nni
2c4fd90df9c1880ee461c83428dde9c4f60adc90
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # # MIT License # # 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 u...
38.914729
100
0.676096
fb3fbb97ef4f4028fb8862743aa07d3c7c2e2737
18,433
py
Python
tests/pythonSimulator/nos_sessions_server_simulator.py
billmcchesney1/sessionOffload
816d1572bff5f2b60bd402c22b7973f0370e1c47
[ "Apache-2.0" ]
null
null
null
tests/pythonSimulator/nos_sessions_server_simulator.py
billmcchesney1/sessionOffload
816d1572bff5f2b60bd402c22b7973f0370e1c47
[ "Apache-2.0" ]
null
null
null
tests/pythonSimulator/nos_sessions_server_simulator.py
billmcchesney1/sessionOffload
816d1572bff5f2b60bd402c22b7973f0370e1c47
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 #============LICENSE_START============================================================================================================= # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. #=================================================================== # Licensed under the A...
52.070621
418
0.600933
fda3d4b47547c9e3d03156d767667b5f667ee7ab
865
py
Python
dev/Gems/CloudGemPlayerAccount/AWS/lambda-code/ServiceLambda/api/ban_list.py
brianherrera/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemPlayerAccount/AWS/lambda-code/ServiceLambda/api/ban_list.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemPlayerAccount/AWS/lambda-code/ServiceLambda/api/ban_list.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
37.608696
139
0.750289
ffe1302db138b5a449cc0977405599ab1b18cc08
640
py
Python
tests/contact/forms_test.py
Dafov/portfolio
fb3cb3721b944624c092d6046b0d9b005b7d9019
[ "MIT" ]
null
null
null
tests/contact/forms_test.py
Dafov/portfolio
fb3cb3721b944624c092d6046b0d9b005b7d9019
[ "MIT" ]
null
null
null
tests/contact/forms_test.py
Dafov/portfolio
fb3cb3721b944624c092d6046b0d9b005b7d9019
[ "MIT" ]
null
null
null
import django import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portfolio.settings') django.setup() from portfolio.contact.forms import MessageForm from django.test import TestCase class TestForms(TestCase): def test_comment_form_valid_data(self): form = MessageForm({ 'name': 'Test...
23.703704
69
0.639063
25e5f304bc5203f10fa66019db62c08cafc45388
8,493
py
Python
netbox/netbox/settings.py
jeis2497052/netbox
8741eb38c0b77e493a1194645e1076516c4de556
[ "Apache-2.0" ]
null
null
null
netbox/netbox/settings.py
jeis2497052/netbox
8741eb38c0b77e493a1194645e1076516c4de556
[ "Apache-2.0" ]
null
null
null
netbox/netbox/settings.py
jeis2497052/netbox
8741eb38c0b77e493a1194645e1076516c4de556
[ "Apache-2.0" ]
null
null
null
import logging import os import socket from django.contrib.messages import constants as messages from django.core.exceptions import ImproperlyConfigured try: from netbox import configuration except ImportError: raise ImproperlyConfigured( "Configuration file is not present. Please define netbox/netbox...
33.972
112
0.723066
6c0a339de76656a48d3a74a1a1d798ca27a410c2
27,066
py
Python
mmdet/models/dense_heads/sabl_retina_head.py
shalev1991/mmdetection
b6a87911322f5f949ceecd28371889f3bbb264ce
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/sabl_retina_head.py
shalev1991/mmdetection
b6a87911322f5f949ceecd28371889f3bbb264ce
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/sabl_retina_head.py
shalev1991/mmdetection
b6a87911322f5f949ceecd28371889f3bbb264ce
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn from mmcv.cnn import ConvModule, bias_init_with_prob, normal_init from mmdet.core import (build_anchor_generator, build_assigner, build_bbox_coder, build_sampler, force_fp32, images_to_levels, multi_apply, multiclass_...
43.444623
79
0.574041
adf76ed0fc4438c6b5ddd3ce7a577f0254121dc7
31,693
py
Python
rpython/jit/metainterp/test/test_loop.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/metainterp/test/test_loop.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/metainterp/test/test_loop.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
import py from rpython.rlib.jit import JitDriver, hint, set_param from rpython.rlib.objectmodel import compute_hash from rpython.jit.metainterp.warmspot import ll_meta_interp, get_stats from rpython.jit.metainterp.test.support import LLJitMixin from rpython.jit.codewriter.policy import StopAtXPolicy from rpython.jit.me...
33.082463
84
0.40968
e25af5f840784a0f29f576cac5365678dfdaca49
1,446
py
Python
renovation_core_graphql/auth/reset_pwd.py
e-lobo/renovation_core_graphql
31e464e00badc308bf03c70364331b08ad9d1b1d
[ "MIT" ]
1
2021-12-15T06:05:06.000Z
2021-12-15T06:05:06.000Z
renovation_core_graphql/auth/reset_pwd.py
e-lobo/renovation_core_graphql
31e464e00badc308bf03c70364331b08ad9d1b1d
[ "MIT" ]
5
2021-06-09T19:00:56.000Z
2022-01-23T09:51:13.000Z
renovation_core_graphql/auth/reset_pwd.py
e-lobo/renovation_core_graphql
31e464e00badc308bf03c70364331b08ad9d1b1d
[ "MIT" ]
1
2021-06-01T05:22:41.000Z
2021-06-01T05:22:41.000Z
from graphql import GraphQLResolveInfo import frappe from frappe.utils.password import update_password from renovation_core.utils.auth import verify_otp, get_linked_user from .otp import VERIFY_OTP_STATUS_MAP def reset_pwd_resolver(obj, info: GraphQLResolveInfo, **kwargs): user = get_linked_user(id_type=kwargs....
34.428571
84
0.707469
b520434b790313f9e647af0ce1428893bc6c0183
1,999
py
Python
Rating_Hands/ScrapingPokerHands.py
jshom/poker-face-read
28bd0b31d7dafb8595d5025df30ae9b7b5c3a1b9
[ "MIT" ]
2
2018-02-24T00:06:07.000Z
2018-02-26T02:02:49.000Z
Rating_Hands/ScrapingPokerHands.py
jshom/poker-face-read
28bd0b31d7dafb8595d5025df30ae9b7b5c3a1b9
[ "MIT" ]
1
2018-02-24T00:04:41.000Z
2018-02-24T00:04:41.000Z
Rating_Hands/ScrapingPokerHands.py
jshom/poker-face-read
28bd0b31d7dafb8595d5025df30ae9b7b5c3a1b9
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import pickle from os import listdir, remove def scape_and_pickle_hands(): resp = requests.get('https://www.tightpoker.com/poker_hands.html') soup = BeautifulSoup(resp.content, 'html.parser') hands = [] for tr in soup.findAll('tr'): hands.append(str(tr)...
29.397059
109
0.657329
2c8b4e3177bd8ee3ed8f83fec241db2fd0073f8f
113,586
py
Python
src/transformers/models/prophetnet/modeling_prophetnet.py
m5l14i11/transformers
3f936df66287f557c6528912a9a68d7850913b9b
[ "Apache-2.0" ]
null
null
null
src/transformers/models/prophetnet/modeling_prophetnet.py
m5l14i11/transformers
3f936df66287f557c6528912a9a68d7850913b9b
[ "Apache-2.0" ]
1
2022-02-08T16:25:07.000Z
2022-02-16T11:14:02.000Z
src/transformers/models/prophetnet/modeling_prophetnet.py
m5l14i11/transformers
3f936df66287f557c6528912a9a68d7850913b9b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # 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 # # Unl...
48.334468
198
0.677038
dcb7b89f2f148c8afaa1e7eb271f2c4c94abab15
5,331
py
Python
lib/train_utils/utils.py
pigtamer/SNIPER
95a4c773a6e855290504932fb43adeb39f029239
[ "Apache-2.0" ]
2,722
2018-06-18T10:01:29.000Z
2022-03-12T09:46:06.000Z
lib/train_utils/utils.py
qijiezhao/SNIPER
714e7399bee1e85854b3895ecaef7b143562eab4
[ "Apache-2.0" ]
184
2018-06-18T11:35:54.000Z
2021-10-19T11:31:56.000Z
lib/train_utils/utils.py
qijiezhao/SNIPER
714e7399bee1e85854b3895ecaef7b143562eab4
[ "Apache-2.0" ]
486
2018-06-18T08:55:24.000Z
2022-02-21T15:51:39.000Z
# --------------------------------------------------------------- # SNIPER: Efficient Multi-scale Training # Licensed under The Apache-2.0 License [see LICENSE for details] # Modified from https://github.com/msracver/Deformable-ConvNets # Modified by Mahyar Najibi # -----------------------------------------------------...
37.27972
127
0.634027
6fc9cd7540bfac85c03081945aa17b149a8344af
2,230
py
Python
Test/CityChromosomeTest.py
Bastianleaf/TravellingSalesman
fafd7bb2e2ac79abc23bc261899e7d89cd0d8e9e
[ "Apache-2.0" ]
null
null
null
Test/CityChromosomeTest.py
Bastianleaf/TravellingSalesman
fafd7bb2e2ac79abc23bc261899e7d89cd0d8e9e
[ "Apache-2.0" ]
null
null
null
Test/CityChromosomeTest.py
Bastianleaf/TravellingSalesman
fafd7bb2e2ac79abc23bc261899e7d89cd0d8e9e
[ "Apache-2.0" ]
null
null
null
import unittest from GeneticAlgorithm.CityGen import CityGen from GeneticAlgorithm.CityChromosome import CityChromosome class CityGenTest(unittest.TestCase): def setUp(self): # diccionario de ciudades city_0_dict = {0: 0, 1: 10, 2: 20, 3: 30} city_1_dict = {0: 10, 1: 0, 2: 12, 3: 8} city_2_dict = {0: 20, 1:...
37.166667
102
0.728251
5c9d8d501e3e624fc67ae8935e53d14f6eb8335b
281
py
Python
ner/optimizer/__init__.py
cuilunan/easytext
95511a5a12d3af4a102ecb7a4d10e09a7d9b8680
[ "MIT" ]
1
2020-07-20T06:40:19.000Z
2020-07-20T06:40:19.000Z
ner/optimizer/__init__.py
cuilunan/easytext
95511a5a12d3af4a102ecb7a4d10e09a7d9b8680
[ "MIT" ]
null
null
null
ner/optimizer/__init__.py
cuilunan/easytext
95511a5a12d3af4a102ecb7a4d10e09a7d9b8680
[ "MIT" ]
null
null
null
#!/usr/bin/env python 3 # -*- coding: utf-8 -*- # # Copyright (c) 2020 PanXu, Inc. All Rights Reserved # """ brief Authors: PanXu Date: 2020/06/28 08:42:00 """ from .ner_optimizer_factory import NerOptimizerFactory from .ner_lr_scheduler_factory import NerLRSchedulerFactory
17.5625
59
0.729537
d13a7ee1434c6954dc036f074278f6efb048c46a
14,430
py
Python
mjmpc/control/softqmpc/deprecated/off_policy_algorithm.py
mohakbhardwaj/mjmpc
097e8d9bdaf0b3a15afa39030b2f53b00dfa25de
[ "Apache-2.0" ]
2
2021-08-15T22:23:50.000Z
2021-12-03T13:09:13.000Z
mjmpc/control/softqmpc/deprecated/off_policy_algorithm.py
mohakbhardwaj/mjmpc
097e8d9bdaf0b3a15afa39030b2f53b00dfa25de
[ "Apache-2.0" ]
null
null
null
mjmpc/control/softqmpc/deprecated/off_policy_algorithm.py
mohakbhardwaj/mjmpc
097e8d9bdaf0b3a15afa39030b2f53b00dfa25de
[ "Apache-2.0" ]
1
2022-02-18T10:22:49.000Z
2022-02-18T10:22:49.000Z
import time import os import pickle import warnings from typing import Union, Type, Optional, Dict, Any, Callable import gym import torch as th import numpy as np from stable_baselines3.common import logger from stable_baselines3.common.base_class import BaseAlgorithm from stable_baselines3.common.policies import Bas...
51.352313
122
0.603673
f62c1fe18452cfede2aacc9b8150cae426991e45
8,842
py
Python
zerver/lib/request.py
shefali163/zulip
015af605cfb28b417b557ed9278835fd267bcfd8
[ "Apache-2.0" ]
3
2018-12-04T01:44:43.000Z
2019-05-13T06:16:21.000Z
zerver/lib/request.py
shefali163/zulip
015af605cfb28b417b557ed9278835fd267bcfd8
[ "Apache-2.0" ]
58
2018-11-27T15:18:54.000Z
2018-12-09T13:43:07.000Z
zerver/lib/request.py
shefali163/zulip
015af605cfb28b417b557ed9278835fd267bcfd8
[ "Apache-2.0" ]
4
2018-11-29T22:47:27.000Z
2018-12-04T09:34:22.000Z
# When adding new functions/classes to this file, you need to also add # their types to request.pyi in this directory (a mypy stubs file that # we use to ensure mypy does correct type inference with REQ, which it # can't do by default due to the dynamic nature of REQ). # # Because request.pyi exists, the type annotatio...
39.650224
115
0.651889
95cd9bb969934e0105723c9c1c69838992b104af
29,319
py
Python
rpython/rtyper/lltypesystem/test/test_rffi.py
ruby-compiler-survey/pypy
c76ed8d0979e13497786cf99eb427ef8f94ea816
[ "Apache-2.0", "OpenSSL" ]
1
2021-07-19T17:42:42.000Z
2021-07-19T17:42:42.000Z
rpython/rtyper/lltypesystem/test/test_rffi.py
CAS-Atlantic/pypy
0988788dd911ff0d5b1cfcf0657412810168d37e
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rtyper/lltypesystem/test/test_rffi.py
CAS-Atlantic/pypy
0988788dd911ff0d5b1cfcf0657412810168d37e
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import py import sys from rpython.rtyper.lltypesystem.rffi import * from rpython.rtyper.lltypesystem.rffi import _keeper_for_type # crap from rpython.rlib.rposix import get_saved_errno, set_saved_errno from rpython.translator.c.test.test_genc import compile as compile_c from rpython.rtyper.lltypesystem.lltype import S...
31.424437
85
0.53085
ed82408cdb20de3dc98f01198b3c48f0c6ca1551
218
py
Python
app/main/errors.py
kibetrono/Flask---One-Minute-Pitch
eeb8131fd63c88c74d434170ac2c0e91fead93e1
[ "Unlicense" ]
null
null
null
app/main/errors.py
kibetrono/Flask---One-Minute-Pitch
eeb8131fd63c88c74d434170ac2c0e91fead93e1
[ "Unlicense" ]
null
null
null
app/main/errors.py
kibetrono/Flask---One-Minute-Pitch
eeb8131fd63c88c74d434170ac2c0e91fead93e1
[ "Unlicense" ]
null
null
null
from flask import render_template from . import main @main.app_errorhandler(404) def four_Ow_four(error): ''' Function to render the 404 error page ''' return render_template('page_not_found.html'),404
24.222222
53
0.733945
53ace20b60759a7a1da2183dbe3b2779a37119ca
11,470
py
Python
installers/macOS/setup.py
tabnine/spyder
82cc8d32b5d946ea9f78a6432c08178e1eeaa13a
[ "MIT" ]
7,956
2015-02-17T01:19:09.000Z
2022-03-31T21:52:15.000Z
installers/macOS/setup.py
Erupota/spyder
e6361ef2861215bab67f71e7233e90940f9bc738
[ "MIT" ]
16,326
2015-02-16T23:15:21.000Z
2022-03-31T23:34:34.000Z
installers/macOS/setup.py
Erupota/spyder
e6361ef2861215bab67f71e7233e90940f9bc738
[ "MIT" ]
1,918
2015-02-20T19:26:26.000Z
2022-03-31T19:03:25.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Create a stand-alone macOS app using py2app To be used like this: $ python setup.py """ import os import sys from logging import getLogger, StreamHandler, Forma...
36.412698
79
0.630776
5707eee046490381f3cfc72642181d68943ba057
2,359
py
Python
pclib/test/TestVectorSimulator.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
206
2015-01-05T21:53:56.000Z
2022-03-14T08:04:49.000Z
pclib/test/TestVectorSimulator.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
84
2015-01-25T19:57:33.000Z
2021-05-11T15:46:56.000Z
pclib/test/TestVectorSimulator.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
99
2015-02-17T17:43:44.000Z
2022-02-14T17:58:18.000Z
#========================================================================= # TestVectorSimulator #========================================================================= # This class simplifies creating unit tests which simply set certain # inputs and then check certain outputs every cycle. A user simply needs # to i...
30.636364
74
0.561255
52b0d912fd76f8860fcf2b4333f571ed44baf64a
1,425
py
Python
python/moneysocket/message/notification/rendezvous.py
drschwabe/prototype
7948727443d5d3255b317fc94cebf03c128a58d3
[ "MIT" ]
5
2020-08-08T07:25:01.000Z
2021-06-15T13:29:19.000Z
python/moneysocket/message/notification/rendezvous.py
drschwabe/prototype
7948727443d5d3255b317fc94cebf03c128a58d3
[ "MIT" ]
1
2021-01-18T18:37:12.000Z
2021-01-18T18:37:12.000Z
python/moneysocket/message/notification/rendezvous.py
drschwabe/prototype
7948727443d5d3255b317fc94cebf03c128a58d3
[ "MIT" ]
3
2020-11-21T22:11:30.000Z
2021-01-18T17:51:03.000Z
# Copyright (c) 2020 Jarret Dyrbye # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php import string import json from moneysocket.message.notification.notification import ( MoneysocketNotification) class NotifyRendezvous(Moneysoc...
33.139535
77
0.688421
93af400cbf3d488892975076fe5157789cff4b40
1,231
py
Python
Week 4/PS4_Problem3.py
NagiLam/MIT-6.00.1x_2018
edd4b104c446ad2e347b5454132fd993ab1c4da7
[ "MIT" ]
null
null
null
Week 4/PS4_Problem3.py
NagiLam/MIT-6.00.1x_2018
edd4b104c446ad2e347b5454132fd993ab1c4da7
[ "MIT" ]
null
null
null
Week 4/PS4_Problem3.py
NagiLam/MIT-6.00.1x_2018
edd4b104c446ad2e347b5454132fd993ab1c4da7
[ "MIT" ]
null
null
null
""" Problem Set 4 - Problem 3 - Valid Words At this point, we have written code to generate a random hand and display that hand to the user. We can also ask the user for a word (Python's input) and score the word (using your getWordScore). However, at this point we have not written any code to verify that a word giv...
31.564103
121
0.652315
c7ba7708db73db57de212cbfdc378c54504fae5a
1,561
py
Python
app.py
multiminparvo/Q-Bonibon
6e7ae26f05ed53a652999247bc1633c5c513538f
[ "MIT" ]
null
null
null
app.py
multiminparvo/Q-Bonibon
6e7ae26f05ed53a652999247bc1633c5c513538f
[ "MIT" ]
null
null
null
app.py
multiminparvo/Q-Bonibon
6e7ae26f05ed53a652999247bc1633c5c513538f
[ "MIT" ]
null
null
null
from flask import Flask from flask import send_file from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit #, Aer, execute from numpy import pi from matplotlib.pyplot import figure from matplotlib import pyplot as plt from qiskit.visualization.state_visualization import plot_bloch_multivector QUANTUM_BI...
28.907407
85
0.676489
13819516601bb652ac62f48f76da6f4772aca0fd
661
py
Python
util/check-used.py
muizzk/zotero-better-bibtex
f528a1e0739ff50091db501ceedc413839e10161
[ "MIT" ]
null
null
null
util/check-used.py
muizzk/zotero-better-bibtex
f528a1e0739ff50091db501ceedc413839e10161
[ "MIT" ]
null
null
null
util/check-used.py
muizzk/zotero-better-bibtex
f528a1e0739ff50091db501ceedc413839e10161
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import glob import json import sys import os used = [] for _used in glob.glob('gen/log-used/*.json'): with open(_used) as f: used = used + json.load(f) used = [_used for _used in set(used) if not _used.startswith('gen/')] #print(used) sources = [] for root in ['content', 'translators']: ...
24.481481
107
0.677761
1474b2edc8dd1b9aa8c2f87b121f713676bbf876
1,912
py
Python
apps/articles/models.py
luoyangC/luoyangc
a1e0d84e463d661fbd5e0333a4770d28048172ba
[ "MIT" ]
1
2019-07-07T10:40:27.000Z
2019-07-07T10:40:27.000Z
apps/articles/models.py
luoyangC/luoyangc_django
a1e0d84e463d661fbd5e0333a4770d28048172ba
[ "MIT" ]
null
null
null
apps/articles/models.py
luoyangC/luoyangc_django
a1e0d84e463d661fbd5e0333a4770d28048172ba
[ "MIT" ]
null
null
null
from django.db import models from home.models import Base from apps.users.models import UserProfile from mdeditor.fields import MDTextField from luoyangc.settings import HOST_URL # Create your models here. class Category(Base): """ 用户自定义分类 """ title = models.CharField(max_length=100, v...
30.83871
91
0.6841
07cbf0408bef3f91021a8bc71585202b700d8257
4,761
py
Python
pypureclient/flasharray/FA_2_11/models/file_system.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_11/models/file_system.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_11/models/file_system.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.11 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
35.007353
481
0.583701
40458e4692a5f7488044f7a69e3f97ecab7f3f26
548
py
Python
capreolus/collection/highwire.py
nimasadri11/capreolus
27b081ec1a37d2af6afa6b61eb1cb7cc4ec9db1c
[ "Apache-2.0" ]
77
2019-12-01T20:48:14.000Z
2022-03-11T14:45:54.000Z
capreolus/collection/highwire.py
nimasadri11/capreolus
27b081ec1a37d2af6afa6b61eb1cb7cc4ec9db1c
[ "Apache-2.0" ]
106
2020-01-30T18:01:16.000Z
2022-02-11T18:05:16.000Z
capreolus/collection/highwire.py
nimasadri11/capreolus
27b081ec1a37d2af6afa6b61eb1cb7cc4ec9db1c
[ "Apache-2.0" ]
30
2020-01-31T08:50:40.000Z
2022-01-25T05:51:11.000Z
import json from capreolus import constants from capreolus.utils.loginit import get_logger from . import Collection, IRDCollection logger = get_logger(__name__) @Collection.register class Highwire(IRDCollection): """Highire collection used by TREC Genomics 2006 and 2007""" module_name = "highwire" ird...
24.909091
66
0.722628
62715ca561bd2048ce0cc12ff052278972c49516
4,269
py
Python
venv/Lib/site-packages/comtypes/test/test_agilent.py
cvangheem/Twitchbot
48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5
[ "MIT" ]
64
2020-07-22T06:24:18.000Z
2022-03-27T10:48:15.000Z
venv/Lib/site-packages/comtypes/test/test_agilent.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
9
2021-08-14T01:27:36.000Z
2021-08-24T18:10:18.000Z
venv/Lib/site-packages/comtypes/test/test_agilent.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
17
2020-09-14T02:46:41.000Z
2022-03-01T09:52:33.000Z
# This test requires that the Agilent IVI-COM Driver for Agilent546XX # is installed. It is not requires to have a physical instrument # connected, the driver is used in simulation mode. import unittest from comtypes.test import ResourceDenied from comtypes.client import CreateObject from comtypes import GUID from com...
46.402174
100
0.633872
d4cf412504d79faa200aefc94055b49e3b550ffa
3,984
py
Python
setup.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
setup.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
setup.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2015 Yelp and Contributors # Copyright 2016-2017 Yelp # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
34.947368
75
0.617219
55766bdda880981ffe82d89a3c03dcf4ac9db731
1,908
py
Python
src/worklog/gui/command/editentrycommand.py
anetczuk/work-log
bbb50d0a735d088514c31a3a785cebbf4c6628e4
[ "MIT" ]
null
null
null
src/worklog/gui/command/editentrycommand.py
anetczuk/work-log
bbb50d0a735d088514c31a3a785cebbf4c6628e4
[ "MIT" ]
null
null
null
src/worklog/gui/command/editentrycommand.py
anetczuk/work-log
bbb50d0a735d088514c31a3a785cebbf4c6628e4
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Arkadiusz Netczuk <dev.arnet@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 # t...
36
80
0.743187
d7b8fe44529a6c36347719cd2c6b48ce91b4d6ed
631
py
Python
docs/examples/basic/basic_train.py
girisagar46/main
da358985b38dc4b776129b02f84694577e6f6190
[ "MIT" ]
null
null
null
docs/examples/basic/basic_train.py
girisagar46/main
da358985b38dc4b776129b02f84694577e6f6190
[ "MIT" ]
null
null
null
docs/examples/basic/basic_train.py
girisagar46/main
da358985b38dc4b776129b02f84694577e6f6190
[ "MIT" ]
null
null
null
""" This example we will walk you over the basics of MindsDB The example code objective here is to: - learn a model to predict the best retal price for a given property. In order to to this we have a dataset "data_sources/home_rentals.csv" """ from mindsdb import * # # First we initiate MindsDB mdb = MindsDB()...
22.535714
99
0.732171
1ee74d1c11c6ed04584ab60be5b10ce9161bba07
3,566
py
Python
alwayswatching_project/settings.py
31i0t/alwayswatching_api
70aefa85ff9e38c5002130b9fe4cfad94c6f067b
[ "MIT" ]
null
null
null
alwayswatching_project/settings.py
31i0t/alwayswatching_api
70aefa85ff9e38c5002130b9fe4cfad94c6f067b
[ "MIT" ]
null
null
null
alwayswatching_project/settings.py
31i0t/alwayswatching_api
70aefa85ff9e38c5002130b9fe4cfad94c6f067b
[ "MIT" ]
null
null
null
""" Django settings for alwayswatching_project project. Generated by 'django-admin startproject' using Django 3.2.5. 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/ ""...
25.112676
91
0.708357
dd36b25b275dd7e4c2df44bc128334d8cafce3ac
2,151
py
Python
test/record/parser/test_response_whois_nic_bj_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_bj_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_bj_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.bj/status_available # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser import parse a...
32.104478
95
0.718735
26bfdd40d2eb3cbcd2d3beb886683762b0b55423
6,663
py
Python
lib/fathead/reactjs/parse.py
aeisenberg/zeroclickinfo-fathead
9be00a038d812ca9ccd0d601220afde777ab2f8e
[ "Apache-2.0" ]
null
null
null
lib/fathead/reactjs/parse.py
aeisenberg/zeroclickinfo-fathead
9be00a038d812ca9ccd0d601220afde777ab2f8e
[ "Apache-2.0" ]
null
null
null
lib/fathead/reactjs/parse.py
aeisenberg/zeroclickinfo-fathead
9be00a038d812ca9ccd0d601220afde777ab2f8e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from bs4 import BeautifulSoup from bs4 import element DOWNLOADED_HTML_PATH = 'download/' REACT_API_DOCS_URL = "https://facebook.github.io/react/docs/" class HtmlFileData(object): """ Class to Hold Html Data fetched from React Docs """ def __init...
32.34466
120
0.506679
1dd33a88dc7751ef069226e289f01b6821e980da
1,083
py
Python
app/__init__.py
HUSKI3/BlockLock
5359a6fb24744ee8338b7241eba1ffaaa5373beb
[ "MIT" ]
1
2020-11-22T14:04:00.000Z
2020-11-22T14:04:00.000Z
app/__init__.py
HUSKI3/BlockLock
5359a6fb24744ee8338b7241eba1ffaaa5373beb
[ "MIT" ]
null
null
null
app/__init__.py
HUSKI3/BlockLock
5359a6fb24744ee8338b7241eba1ffaaa5373beb
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) # Setup the app with the config.py file app.config.from_pyfile('config_dev.py') # Setup the logger from app.logger_setup import logger # Setup the database from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy(app) # Setup the mail server from flask.ext.mail impo...
23.042553
57
0.79409