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
793ebca2c5cae0b63b30b277818a31a95c0d9738
2,349
py
Python
utils/makeweights.py
jakobmoss/tsa
ce67c67b03c19d0e5ceec568e95d0f16860b4efe
[ "MIT" ]
null
null
null
utils/makeweights.py
jakobmoss/tsa
ce67c67b03c19d0e5ceec568e95d0f16860b4efe
[ "MIT" ]
36
2016-04-18T12:44:14.000Z
2016-05-26T14:25:47.000Z
utils/makeweights.py
jakobmoss/tsa
ce67c67b03c19d0e5ceec568e95d0f16860b4efe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Time Series Analysis -- Generate statistical weigts from scatter # # Author: Jakob Rørsted Mosumgaard # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ##############################...
29
79
0.443167
793ebe7431b0b4d26d2d92102218831ec659f047
1,423
py
Python
bin/SchemaUpgrade/versions/ef699aba8ba4_version_0_65_002.py
karlam123/DBImport
ebaf3f909841276d289bfb2f6eec0ecafa8395cf
[ "Apache-2.0" ]
10
2019-05-22T04:17:02.000Z
2021-12-05T16:54:08.000Z
bin/SchemaUpgrade/versions/ef699aba8ba4_version_0_65_002.py
karlam123/DBImport
ebaf3f909841276d289bfb2f6eec0ecafa8395cf
[ "Apache-2.0" ]
73
2019-05-22T04:19:24.000Z
2022-01-18T05:09:26.000Z
bin/SchemaUpgrade/versions/ef699aba8ba4_version_0_65_002.py
BerryOsterlund/DBImport
aa5f4599834985266fc0bf211f9bb8b348f6ae8e
[ "Apache-2.0" ]
5
2020-05-19T23:46:56.000Z
2021-11-12T12:02:37.000Z
"""Version 0.65.002 Revision ID: ef699aba8ba4 Revises: c8582887a25f Create Date: 2019-11-09 07:07:10.795416 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql from sqlalchemy import Enum # revision identifiers, used by Alembic. revision = 'ef699aba8ba4' down_revision = 'c858288...
37.447368
108
0.770204
793ec0704b5a9f4f830235e9fcf28262c193a579
3,034
py
Python
scripts/sequence/get_transcript_pep_accordance.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/sequence/get_transcript_pep_accordance.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/sequence/get_transcript_pep_accordance.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import os import argparse from RouToolPa.Routines import SequenceRoutines parser = argparse.ArgumentParser() parser.add_argument("-c", "--transcript_file", action="store", dest="transcript_file", required=True, help="Input file with sequences...
61.918367
141
0.608767
793ec0db04d166ac51aa6396ba6e09e09975b567
374
py
Python
LeetCode/May Leetcoding Challenge/Minimum Cost to Connect Sticks.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
LeetCode/May Leetcoding Challenge/Minimum Cost to Connect Sticks.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
null
null
null
LeetCode/May Leetcoding Challenge/Minimum Cost to Connect Sticks.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
class Solution: def connectSticks(self, sticks: List[int]) -> int: totalCost, pq = 0, [] for stick in sticks: heapq.heappush(pq, stick) while len(pq) > 1: stick1, stick2 = heapq.heappop(pq), heapq.heappop(pq) heapq.heappush(pq, stick1 + stick2) ...
37.4
65
0.564171
793ec0e43b22791c7abee13229feb4af8a5ed8b4
131
py
Python
src/bit_check.py
mguitar9232/DW_ETL_project
7df262f03d5164fa156937d2857ace4374e29da0
[ "MIT" ]
null
null
null
src/bit_check.py
mguitar9232/DW_ETL_project
7df262f03d5164fa156937d2857ace4374e29da0
[ "MIT" ]
null
null
null
src/bit_check.py
mguitar9232/DW_ETL_project
7df262f03d5164fa156937d2857ace4374e29da0
[ "MIT" ]
null
null
null
import struct; result = struct.calcsize("P") * 8 if(result == 64): print('## 64') else: print('## 32')
13.1
34
0.473282
793ec1bd97197b575ddc8bbafd95d40b4837e129
10,469
py
Python
vnpy/trader/app/jaqsService/jsEngine.py
OceanMT/vnpy_py3
0901e9381c54e615247eb753bac476a911c9ae5d
[ "MIT" ]
11
2019-10-28T13:01:48.000Z
2021-06-20T03:38:09.000Z
vnpy/trader/app/jaqsService/jsEngine.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
null
null
null
vnpy/trader/app/jaqsService/jsEngine.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
6
2019-10-28T13:16:13.000Z
2020-09-08T08:03:41.000Z
# encoding: UTF-8 import json from collections import defaultdict from . import jrpc_server from vnpy.event import Event from vnpy.trader.vtFunction import getJsonPath from vnpy.trader.vtObject import VtLogData, VtOrderReq, VtCancelOrderReq from vnpy.trader.vtConstant import * EVENT_JS_LOG = 'eJsLog' ACTION_MAP ...
36.1
96
0.503486
793ec2230f93cc4d81fd3e6f766b2553e20aa75d
1,875
py
Python
ipPanel/app/views.py
zwj2017-NK/NKAMG
fd8590ce2bbc506c2d41cdcee57d41a222fe3dd2
[ "Apache-2.0" ]
2
2018-04-25T11:53:25.000Z
2020-01-11T10:54:12.000Z
ipPanel/app/views.py
zwj2017-NK/NK
9a90a62ab86954b566b3703e3c2aa4587dc42ee4
[ "Apache-2.0" ]
null
null
null
ipPanel/app/views.py
zwj2017-NK/NK
9a90a62ab86954b566b3703e3c2aa4587dc42ee4
[ "Apache-2.0" ]
null
null
null
from flask import render_template from flask.ext.appbuilder.models.sqla.interface import SQLAInterface from flask.ext.appbuilder import ModelView, BaseView, expose, has_access from app import appbuilder, db import pandas as pd import json """ Create your Views:: class MyModelView(ModelView): datamod...
28.846154
155
0.5872
793ec2a0274acc973281425f0cc8da2d04ba0ed0
13,489
py
Python
IRIS_data_download/IRIS_download_support/obspy/clients/seedlink/slclient.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/clients/seedlink/slclient.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/clients/seedlink/slclient.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module to create and use a connection to a SeedLink server using a SeedLinkConnection object. A new SeedLink application can be created by sub-classing SLClient and overriding at least the packet_handler method of SLClient. Part of Python implementation of libslink of...
37.262431
79
0.58885
793ec310629e0df22968dda39e17ba556f81a1d8
1,452
py
Python
curve_fitting.py
Akira794/PreviewController-python
7b822870680988a2ab28a2177963a14c9b27f291
[ "MIT" ]
2
2019-09-05T11:03:20.000Z
2021-10-09T02:33:17.000Z
curve_fitting.py
Akira794/PreviewController-python
7b822870680988a2ab28a2177963a14c9b27f291
[ "MIT" ]
null
null
null
curve_fitting.py
Akira794/PreviewController-python
7b822870680988a2ab28a2177963a14c9b27f291
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np # Numerical library from scipy import * # Load the scipy functions from control.matlab import * # Load the controls systems library from matplotlib import pyplot as plt class CurveFitting(): def __init__(self, _x, _t, _...
26.4
67
0.52135
793ec32b251466125cdcb72dd5f5f3e59bd24b04
1,972
py
Python
pynd/_tests/test_astutils.py
d0ugal/pynd
a08172d5b2232e9eead1a1b23d50c648989f3dfe
[ "Apache-2.0" ]
24
2016-12-23T10:09:30.000Z
2021-04-21T05:20:11.000Z
pynd/_tests/test_astutils.py
d0ugal/pynd
a08172d5b2232e9eead1a1b23d50c648989f3dfe
[ "Apache-2.0" ]
11
2016-12-23T08:00:36.000Z
2017-03-27T07:50:30.000Z
pynd/_tests/test_astutils.py
d0ugal/pynd
a08172d5b2232e9eead1a1b23d50c648989f3dfe
[ "Apache-2.0" ]
3
2016-12-28T19:25:19.000Z
2020-04-26T20:39:53.000Z
# 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 u...
27.774648
76
0.677485
793ec3ecf0ebff93bcf4a20e27ecf182b2aeb4f5
443
py
Python
thonnycontrib/circuitpython/api_stubs/framebuf.py
thonny/thonny-circuitpython
b58fef0a0a0d9a3426d00919531a9e43d5f9bcb7
[ "MIT" ]
1
2020-02-12T19:37:27.000Z
2020-02-12T19:37:27.000Z
thonnycontrib/circuitpython/api_stubs/framebuf.py
thonny/thonny-circuitpython
b58fef0a0a0d9a3426d00919531a9e43d5f9bcb7
[ "MIT" ]
null
null
null
thonnycontrib/circuitpython/api_stubs/framebuf.py
thonny/thonny-circuitpython
b58fef0a0a0d9a3426d00919531a9e43d5f9bcb7
[ "MIT" ]
1
2021-11-17T05:21:50.000Z
2021-11-17T05:21:50.000Z
class FrameBuffer: '' def blit(): pass def fill(): pass def fill_rect(): pass def hline(): pass def line(): pass def pixel(): pass def rect(): pass def scroll(): pass def text(): pass def vline(...
10.302326
20
0.467269
793ec439dcf8acdce4d4ba8b5187698c0cf3b6e6
4,234
py
Python
tests/test_format.py
ebadali/ukPostCodes
80cb470f1c92c21d9c2155711480565cc7acc50a
[ "MIT" ]
null
null
null
tests/test_format.py
ebadali/ukPostCodes
80cb470f1c92c21d9c2155711480565cc7acc50a
[ "MIT" ]
null
null
null
tests/test_format.py
ebadali/ukPostCodes
80cb470f1c92c21d9c2155711480565cc7acc50a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .context import postcodes import unittest class PostCodeFormatTestSuite(unittest.TestCase): """This test suit tests for Formatting of outputs on certain inputs. The provided inputs in the test cases covers most of the formats. Todo: * add special uk postal code test cases """...
41.106796
135
0.700992
793ec4e7e35939079862cd406a8e90062bea4cf8
9,243
py
Python
src/api.py
openphacts/openphacts-irs
170caa5881182a10bc5d7bf3b22ddedd6eb6ad8f
[ "MIT" ]
5
2016-05-04T06:22:07.000Z
2021-03-27T09:02:39.000Z
src/api.py
openphacts/ops-search
170caa5881182a10bc5d7bf3b22ddedd6eb6ad8f
[ "MIT" ]
15
2015-04-22T16:18:22.000Z
2017-07-03T11:09:20.000Z
src/api.py
openphacts/openphacts-irs
170caa5881182a10bc5d7bf3b22ddedd6eb6ad8f
[ "MIT" ]
4
2016-05-05T07:48:49.000Z
2021-03-29T15:36:01.000Z
#!/usr/bin/env python3 import bottle from bottle import hook, route, run, Bottle, get, post, request, response, static_file, url from urllib.parse import quote import os.path from elasticsearch import Elasticsearch from elasticsearch_dsl import Search, Q from elasticsearch_dsl.query import MultiMatch, Match from elast...
33.248201
276
0.632046
793ec5ae64292319fc7eac188edf419e7f3ad2c0
6,052
py
Python
utils/callbacks.py
kant/rl-baselines3-zoo
75f9c4c8395d622184177795696973ae37c58ae7
[ "MIT" ]
null
null
null
utils/callbacks.py
kant/rl-baselines3-zoo
75f9c4c8395d622184177795696973ae37c58ae7
[ "MIT" ]
null
null
null
utils/callbacks.py
kant/rl-baselines3-zoo
75f9c4c8395d622184177795696973ae37c58ae7
[ "MIT" ]
null
null
null
import os import tempfile import time from copy import deepcopy from threading import Thread from typing import Optional import optuna from sb3_contrib import TQC from stable_baselines3 import SAC from stable_baselines3.common.callbacks import BaseCallback, EvalCallback from stable_baselines3.common.vec_env import Vec...
36.02381
108
0.640449
793ec5f0f4c5efbc7b59b1897bd62471a075117f
29,679
py
Python
cupy/__init__.py
mnicely/cupy
9ed1d0db1404e9baa3c139032515d6028078bc91
[ "MIT" ]
null
null
null
cupy/__init__.py
mnicely/cupy
9ed1d0db1404e9baa3c139032515d6028078bc91
[ "MIT" ]
null
null
null
cupy/__init__.py
mnicely/cupy
9ed1d0db1404e9baa3c139032515d6028078bc91
[ "MIT" ]
null
null
null
import functools import sys import warnings import numpy from cupy import _environment from cupy import _version if sys.platform.startswith('win32') and (3, 8) <= sys.version_info: # NOQA _environment._setup_win32_dll_directory() # NOQA try: with warnings.catch_warnings(): warnings.filterwarning...
35.248219
146
0.631794
793ec6f46b21b0c4aa4bea57dc3794605265afdd
9,030
py
Python
poseidon/ui/mobile/common/Init.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2019-12-27T09:14:38.000Z
2019-12-27T09:16:29.000Z
poseidon/ui/mobile/common/Init.py
CodeMonkey4Fun/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2021-03-31T19:35:12.000Z
2021-12-13T20:35:33.000Z
poseidon/ui/mobile/common/Init.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
1
2020-11-13T07:37:01.000Z
2020-11-13T07:37:01.000Z
# coding=utf-8 """ @author:songmengyun @file: Init.py @time: 2020/01/08 """ import json import logging import subprocess import sys import os import redis import requests import time class Init(object): def _execute(self, method=None, url=None, data=None, json_data=None, timeout=30, serial=None): resu...
40.675676
239
0.554485
793ec74acdca3071cb0a0d92ba72925d3ffa4513
9,740
py
Python
examples/enclave_manager/tcf_enclave_manager/tcf_enclave_bridge.py
manojsalunke85/avalon
99fc49ac215ac3dfcfb0547f8abebc0b131dfad1
[ "Apache-2.0" ]
null
null
null
examples/enclave_manager/tcf_enclave_manager/tcf_enclave_bridge.py
manojsalunke85/avalon
99fc49ac215ac3dfcfb0547f8abebc0b131dfad1
[ "Apache-2.0" ]
null
null
null
examples/enclave_manager/tcf_enclave_manager/tcf_enclave_bridge.py
manojsalunke85/avalon
99fc49ac215ac3dfcfb0547f8abebc0b131dfad1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
36.616541
79
0.633778
793ec82d159f71b5248c89b78488c74a7da6ecaa
397
py
Python
goal_beta1/wsgi.py
sanjeevhalyal/goals
88216db91e2bde7eef947d3c8df1f72ef557ba43
[ "MIT" ]
null
null
null
goal_beta1/wsgi.py
sanjeevhalyal/goals
88216db91e2bde7eef947d3c8df1f72ef557ba43
[ "MIT" ]
null
null
null
goal_beta1/wsgi.py
sanjeevhalyal/goals
88216db91e2bde7eef947d3c8df1f72ef557ba43
[ "MIT" ]
null
null
null
""" WSGI config for goal_beta1 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
23.352941
78
0.788413
793ec973e7a1c53ee0749ae44e09efa5243c26a4
2,459
py
Python
day16/day16.py
ecly/adventofcode2020
bd284c5d9e2badbd923ae85cad9f3305d92ee1d4
[ "MIT" ]
null
null
null
day16/day16.py
ecly/adventofcode2020
bd284c5d9e2badbd923ae85cad9f3305d92ee1d4
[ "MIT" ]
null
null
null
day16/day16.py
ecly/adventofcode2020
bd284c5d9e2badbd923ae85cad9f3305d92ee1d4
[ "MIT" ]
null
null
null
import re import math from itertools import takewhile from collections import defaultdict, Counter def part1(rules, nearby): ranges = re.findall("\d+-\d+", rules) ranges = [tuple(map(int, m.split("-"))) for m in ranges] error_rate = 0 valid_tickets = [] for l in nearby: for v in l.split(",...
28.929412
86
0.54209
793eca5010dab66c6d4c579003e1a7a8415f2c96
27,882
py
Python
autocalibration/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/colorbar.py
prcalopa/reactable-autocalibration
eb67a5b5ee0e50f1effa773f6f3f934b5fda6fcf
[ "MIT" ]
5
2017-11-15T10:33:42.000Z
2021-11-16T02:21:31.000Z
mpl_toolkits/axes_grid1/colorbar.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2017-10-28T03:30:26.000Z
2017-10-28T03:31:00.000Z
mpl_toolkits/axes_grid1/colorbar.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2017-11-30T00:34:20.000Z
2021-05-20T02:58:02.000Z
''' Colorbar toolkit with two classes and a function: :class:`ColorbarBase` the base class with full colorbar drawing functionality. It can be used as-is to make a colorbar for a given colormap; a mappable object (e.g., image) is not needed. :class:`Colorbar` the derived class ...
33.391617
80
0.559393
793eccbba8d5ccb79a4f8224f1fdb7789a9c8faf
2,934
py
Python
lab_3/code/table.py
Winterpuma/bmstu_experiment-planning
8d0ef45432c4d058a210d896ec3342b6b8b4182d
[ "MIT" ]
1
2021-12-07T09:48:06.000Z
2021-12-07T09:48:06.000Z
lab_3/code/table.py
Winterpuma/bmstu_experiment-planning
8d0ef45432c4d058a210d896ec3342b6b8b4182d
[ "MIT" ]
null
null
null
lab_3/code/table.py
Winterpuma/bmstu_experiment-planning
8d0ef45432c4d058a210d896ec3342b6b8b4182d
[ "MIT" ]
null
null
null
from os import startfile from openpyxl import Workbook, load_workbook from openpyxl.styles import PatternFill, Font names_arr_full = ['x0', 'x1', 'x2', 'x3', 'x4', 'x5', 'x6', 'x7', 'x8', 'x1x2', 'x1x3', 'x1x4', 'x1x5', 'x1x6', 'x1x7', 'x1x8', 'x2x3', 'x2x4', 'x2x5', 'x2x6', 'x2x7', 'x2x8', 'x3x4', 'x...
29.938776
118
0.669734
793ecdd02d850ce431d1595a800478a5903dbd97
103
py
Python
localusers/admin.py
Duskhorizon/discoplaytogether
e74a11b0f65d14db6f15d1bb0536411dd546eda6
[ "MIT" ]
null
null
null
localusers/admin.py
Duskhorizon/discoplaytogether
e74a11b0f65d14db6f15d1bb0536411dd546eda6
[ "MIT" ]
null
null
null
localusers/admin.py
Duskhorizon/discoplaytogether
e74a11b0f65d14db6f15d1bb0536411dd546eda6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import DiscoServer admin.site.register(DiscoServer)
20.6
33
0.805825
793ecef6e45e162b225a1aeb8ae3ba006a3d7ad0
12,967
py
Python
celery/app/amqp.py
aleszoulek/celery
a179038fec68808d50c0a1f42aa26d315a3817ad
[ "BSD-3-Clause" ]
2
2021-04-30T02:01:12.000Z
2022-02-18T05:30:28.000Z
celery/app/amqp.py
aleszoulek/celery
a179038fec68808d50c0a1f42aa26d315a3817ad
[ "BSD-3-Clause" ]
null
null
null
celery/app/amqp.py
aleszoulek/celery
a179038fec68808d50c0a1f42aa26d315a3817ad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ celery.app.amqp =============== AMQ related functionality. :copyright: (c) 2009 - 2010 by Ask Solem. :license: BSD, see LICENSE for more details. """ from datetime import datetime, timedelta from kombu import BrokerConnection, Exchange from kombu.connection import Resource from kombu imp...
37.476879
78
0.599136
793ecfa6bf3510646fbfecd5ebd90c4bf2311651
1,246
py
Python
mwaa/mwaa-cdk/app.py
094459/time-series-and-data-lakes
75540661764b8bca91debf625278985ceba7b5ca
[ "MIT" ]
9
2021-12-03T17:51:42.000Z
2022-03-17T08:45:05.000Z
mwaa/mwaa-cdk/app.py
094459/time-series-and-data-lakes
75540661764b8bca91debf625278985ceba7b5ca
[ "MIT" ]
null
null
null
mwaa/mwaa-cdk/app.py
094459/time-series-and-data-lakes
75540661764b8bca91debf625278985ceba7b5ca
[ "MIT" ]
1
2021-12-12T16:00:31.000Z
2021-12-12T16:00:31.000Z
#!/usr/bin/env python3 import io from aws_cdk import core from mwaa_cdk.deploy_files import MwaaCdkStackDeployFiles from mwaa_cdk.mwaa_cdk_backend import MwaaCdkStackBackend from mwaa_cdk.mwaa_cdk_env import MwaaCdkStackEnv # Chnage the mwaa_secret to the ARN of the secret you create via the AWS cli # The example bel...
26.510638
119
0.745586
793ed0be48a97f45b8471dedba640129bd8df144
2,998
py
Python
blog/views/manage/request_check/request_check.py
multfunc/blog_server
fd00653de77d07c3cbc1472a3e027a2a793aa6a9
[ "MIT" ]
null
null
null
blog/views/manage/request_check/request_check.py
multfunc/blog_server
fd00653de77d07c3cbc1472a3e027a2a793aa6a9
[ "MIT" ]
3
2019-07-26T00:53:12.000Z
2021-12-13T20:33:55.000Z
blog/views/manage/request_check/request_check.py
multfunc/blog_server
fd00653de77d07c3cbc1472a3e027a2a793aa6a9
[ "MIT" ]
null
null
null
from flask import Blueprint, request, current_app from flask_mail import Message from datetime import datetime # models from blog.models.base import db from blog.models.log.log_request_http import LogRequestHttp from blog.models.user_info import UserInfo from blog.models.user_status import UserStatus from blog.models...
37.475
113
0.659106
793ed2afd633d04f9875c822d228589c6333cac3
1,356
py
Python
app/__init__.py
Hassan-abdi-dev/picth-here
1f7fac98350720ecf4047d49ab5286b0ef8c3df0
[ "Unlicense" ]
1
2021-12-12T23:33:25.000Z
2021-12-12T23:33:25.000Z
app/__init__.py
Hassan-abdi-dev/picth-here
1f7fac98350720ecf4047d49ab5286b0ef8c3df0
[ "Unlicense" ]
4
2019-11-24T21:10:29.000Z
2021-04-30T20:57:36.000Z
app/__init__.py
Hassan-abdi-dev/picth-here
1f7fac98350720ecf4047d49ab5286b0ef8c3df0
[ "Unlicense" ]
2
2020-01-16T06:35:46.000Z
2020-01-16T06:48:06.000Z
from flask import Flask from flask_bootstrap import Bootstrap from config import config_options from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_simplemde import SimpleMDE # Instances of flask extensions # Instance of LoginManger and using its methods login_manager = LoginManag...
25.584906
64
0.75295
793ed2f0d5ae6d79543c1c5d07666ed6e414f582
29,865
py
Python
minikerberos/asn1_structs.py
fuckup1337/minikerberos
4c7d6a9d791b6a7b05a211a5bccb6c4e6c37187e
[ "MIT" ]
null
null
null
minikerberos/asn1_structs.py
fuckup1337/minikerberos
4c7d6a9d791b6a7b05a211a5bccb6c4e6c37187e
[ "MIT" ]
null
null
null
minikerberos/asn1_structs.py
fuckup1337/minikerberos
4c7d6a9d791b6a7b05a211a5bccb6c4e6c37187e
[ "MIT" ]
1
2019-10-06T17:15:43.000Z
2019-10-06T17:15:43.000Z
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # # https://zeroshell.org/kerberos/kerberos-operation/ from asn1crypto import core import enum import os # KerberosV5Spec2 DEFINITIONS EXPLICIT TAGS ::= TAG = 'explicit' # class UNIVERSAL = 0 APPLICATION = 1 CONTEXT = 2 krb5_pvno = 5 #-- current Kerberos pr...
31.636653
175
0.618215
793ed341585b2b773162a6f3e1fd7fad089d5333
1,388
py
Python
preview.py
GY-CAS/learn
491eed7bd00b1bc010492dfdee273a1318b441e3
[ "MIT" ]
113
2020-09-24T09:31:41.000Z
2021-07-05T02:16:50.000Z
preview.py
GY-CAS/learn
491eed7bd00b1bc010492dfdee273a1318b441e3
[ "MIT" ]
15
2020-12-16T09:31:32.000Z
2021-06-22T05:06:06.000Z
preview.py
GY-CAS/learn
491eed7bd00b1bc010492dfdee273a1318b441e3
[ "MIT" ]
19
2020-12-16T07:15:16.000Z
2021-07-03T18:24:21.000Z
# encoding: utf-8 import torch import ipdb import cv2 import numpy as np from options import opt, config # from dataloader import paired_dataset from mscv.summary import create_summary_writer, write_image from mscv.image import tensor2im from dataloader.dataloaders import train_dataloader, val_dataloader from dataload...
27.215686
156
0.737752
793ed35ada7699c4a6bd35235e44a3fecad0d658
410
py
Python
news/migrations/0029_article_views.py
hackerspace-ntnu/website
0c296cb39759778aaf0c296027345a658414b397
[ "MIT" ]
25
2016-04-13T20:25:37.000Z
2021-11-26T14:41:00.000Z
news/migrations/0029_article_views.py
hackerspace-ntnu/website
0c296cb39759778aaf0c296027345a658414b397
[ "MIT" ]
358
2016-02-20T21:13:27.000Z
2022-03-31T20:06:03.000Z
news/migrations/0029_article_views.py
hackerspace-ntnu/website
0c296cb39759778aaf0c296027345a658414b397
[ "MIT" ]
7
2016-04-18T14:03:15.000Z
2022-02-04T14:19:47.000Z
# Generated by Django 3.2.7 on 2021-09-23 11:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0028_auto_20210210_2032'), ] operations = [ migrations.AddField( model_name='article', name='views', ...
21.578947
79
0.609756
793ed3afaed0ff5f8aa186091f678640bfaeb21a
65,592
py
Python
Lib/idlelib/editor.py
LeslieGerman/cpython
1f21eaa15e8a0d2b0f78d0e3f2b9e5b458eb0a70
[ "CNRI-Python-GPL-Compatible" ]
2
2019-09-03T09:56:49.000Z
2019-09-18T03:26:17.000Z
Lib/idlelib/editor.py
Timesile/cpython
5dbe0f59b7a4f39c7c606b48056bc29e406ebf78
[ "CNRI-Python-GPL-Compatible" ]
1
2019-09-10T07:12:05.000Z
2019-09-10T07:12:05.000Z
Lib/idlelib/editor.py
Timesile/cpython
5dbe0f59b7a4f39c7c606b48056bc29e406ebf78
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
import importlib.abc import importlib.util import os import platform import re import string import sys import tokenize import traceback import webbrowser from tkinter import * from tkinter.font import Font from tkinter.ttk import Scrollbar import tkinter.simpledialog as tkSimpleDialog import tkinter.messagebox as tkM...
39.394595
95
0.57507
793ed41fe0e68f364daedabb91d61b5861fc77ee
136
py
Python
src/utils/common.py
phamnam-mta/know-life
f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d
[ "MIT" ]
null
null
null
src/utils/common.py
phamnam-mta/know-life
f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d
[ "MIT" ]
null
null
null
src/utils/common.py
phamnam-mta/know-life
f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d
[ "MIT" ]
null
null
null
from typing import Text def is_float(text: Text): try: x = float(text) return True except: return False
17
25
0.580882
793ed4662e5840e770d3dfd52f2992a28533984d
457
py
Python
Python/Algorithm/check_even.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Algorithm/check_even.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Algorithm/check_even.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
def only_evens(lst): """ (list of list of int) -> list of list of int # write your code here (be sure to read above for a suggested approach) Return a list of the lists in lst that contain only even integers. >>> only_evens([[1, 2, 4], [4, 0, 6], [22, 4, 3], [2]]) [[4, 0, 6], [2]] """ ...
30.466667
72
0.582057
793ed496c77af4068520ca1fdfff7e4553c4eaad
45,046
py
Python
Lib/ssl.py
Antony-Wish/cpython
e1f95e77e0647aff602e0660ba3c282b71045875
[ "CNRI-Python-GPL-Compatible" ]
2
2018-10-21T15:09:29.000Z
2018-11-12T09:30:15.000Z
Lib/ssl.py
Antony-Wish/cpython
e1f95e77e0647aff602e0660ba3c282b71045875
[ "CNRI-Python-GPL-Compatible" ]
1
2021-06-25T15:32:08.000Z
2021-06-25T15:32:08.000Z
Lib/ssl.py
Antony-Wish/cpython
e1f95e77e0647aff602e0660ba3c282b71045875
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# Wrapper module for _ssl, providing some additional facilities # implemented in Python. Written by Bill Janssen. """This module provides some more Pythonic support for SSL. Object types: SSLSocket -- subtype of socket.socket which does SSL over the socket Exceptions: SSLError -- exception raised for I/O erro...
34.412529
116
0.640012
793ed60d7c6ec507b6101bf3808b446956dc7102
440
py
Python
PIL_templater.py
BitokuOokami/CardMachine
d927b062ca96af1313ec94de70053a1e069c20d0
[ "MIT" ]
1
2016-12-15T23:46:52.000Z
2016-12-15T23:46:52.000Z
PIL_templater.py
BitokuOokami/CardMachine
d927b062ca96af1313ec94de70053a1e069c20d0
[ "MIT" ]
3
2016-01-12T01:42:31.000Z
2016-03-28T23:31:53.000Z
PIL_templater.py
BitokuOokami/CardMachine
d927b062ca96af1313ec94de70053a1e069c20d0
[ "MIT" ]
4
2015-12-27T01:48:34.000Z
2019-10-19T03:42:51.000Z
from PIL import Image, ImageFont, ImageDraw filename = "Template.png" bleed_w = 850 bleed_h = 1161 w = 788 h = 1088 w_marg = (bleed_w-w)/2 h_marg = (bleed_h-h)/2 image = Image.new("RGBA", (bleed_w, bleed_h)) draw = ImageDraw.Draw(image) points = ((w_marg,h_marg), (w_marg+w,h_marg), (w_marg+w,h_marg+h), ...
16.923077
45
0.654545
793ed639a38455174483f18d7cfea8ff4f599db1
600
py
Python
mdls/plugins/references.py
ompugao/mdls
7ba9fbf75fd13c6e3f85fc248cb32e966dea2399
[ "MIT" ]
null
null
null
mdls/plugins/references.py
ompugao/mdls
7ba9fbf75fd13c6e3f85fc248cb32e966dea2399
[ "MIT" ]
null
null
null
mdls/plugins/references.py
ompugao/mdls
7ba9fbf75fd13c6e3f85fc248cb32e966dea2399
[ "MIT" ]
null
null
null
# Copyright 2017 Palantir Technologies, Inc. import logging from mdls import hookimpl, uris, _utils log = logging.getLogger(__name__) @hookimpl def mdls_references(document, position, exclude_declaration=False): return [] # Filter out builtin modules return [{ 'uri': uris.uri_with(document.uri, ...
30
98
0.646667
793ed694428f146cedfadcbb6ebf23d0667e0818
27,206
py
Python
external/slim/nets/resnet_v1_test.py
thodan/epos
d67657bbb06da5a6adb8a035a2f58fc305e396f7
[ "MIT" ]
52
2020-10-02T13:16:52.000Z
2022-03-23T06:05:12.000Z
external/slim/nets/resnet_v1_test.py
thodan/epos
d67657bbb06da5a6adb8a035a2f58fc305e396f7
[ "MIT" ]
7
2021-04-16T05:49:30.000Z
2022-02-26T17:30:41.000Z
external/slim/nets/resnet_v1_test.py
thodan/epos
d67657bbb06da5a6adb8a035a2f58fc305e396f7
[ "MIT" ]
7
2020-10-03T01:45:47.000Z
2022-03-06T16:41:00.000Z
# Copyright 2016 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 applicable ...
43.184127
80
0.600015
793ed6a49c44650d0cc4a0658c68d9bd8bab9f5a
931
py
Python
scipy/cluster/setup.py
aragilar/scipy
cc3bfa91f662999996cd1cfdec4465bb9943ab1c
[ "BSD-3-Clause" ]
5
2016-01-25T16:46:43.000Z
2021-11-04T04:25:09.000Z
scipy/cluster/setup.py
aragilar/scipy
cc3bfa91f662999996cd1cfdec4465bb9943ab1c
[ "BSD-3-Clause" ]
null
null
null
scipy/cluster/setup.py
aragilar/scipy
cc3bfa91f662999996cd1cfdec4465bb9943ab1c
[ "BSD-3-Clause" ]
2
2015-06-05T03:34:50.000Z
2021-10-31T08:50:49.000Z
#!/usr/bin/env python from __future__ import division, print_function, absolute_import import sys if sys.version_info[0] >= 3: DEFINE_MACROS = [("SCIPY_PY3K", None)] else: DEFINE_MACROS = [] def configuration(parent_package='', top_path=None): from numpy.distutils.system_info import get_info from nu...
25.861111
79
0.703545
793ed801d0f28d84366ed4dfe82f4bf6cc97b82d
24,488
py
Python
src/sqlfluff/rules/L016.py
fawix/sqlfluff
d9f64445b60a4746619c3cb577cf157e632a4862
[ "MIT" ]
1
2022-03-03T02:29:11.000Z
2022-03-03T02:29:11.000Z
src/sqlfluff/rules/L016.py
clairetaylor352/sqlfluff
62900332228db323da323ce20df0c5e17ba9fcbf
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L016.py
clairetaylor352/sqlfluff
62900332228db323da323ce20df0c5e17ba9fcbf
[ "MIT" ]
null
null
null
"""Implementation of Rule L016.""" from typing import cast, List, Optional, Sequence, Tuple from sqlfluff.core.parser import ( BaseSegment, NewlineSegment, RawSegment, WhitespaceSegment, ) from sqlfluff.core.rules.base import LintFix, LintResult, RuleContext from sqlfluff.core.rules.functional import...
41.717206
88
0.493834
793ed9cd720ccd6ce3740512d6e6ac8592822ddd
6,960
py
Python
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_fmupdate_analyzer_virusreport.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_fmupdate_analyzer_virusreport.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_fmupdate_analyzer_virusreport.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
33.142857
153
0.642098
793eda0f9a127931b9c011fad2ce0f76e6cf5b9b
117
py
Python
PyDarkLogic/MainDarkLogic/enumfun.py
BlackWalker01/BlackLogic
5f49956a0d4ee7a10c35e006d340ba58ca692078
[ "MIT" ]
6
2020-04-21T22:25:02.000Z
2021-03-05T17:44:24.000Z
PyDarkLogic/MainDarkLogic/enumfun.py
BlackWalker01/BlackLogic
5f49956a0d4ee7a10c35e006d340ba58ca692078
[ "MIT" ]
1
2020-08-04T22:35:39.000Z
2020-08-09T12:40:46.000Z
PyDarkLogic/MainDarkLogic/enumfun.py
BlackWalker01/BlackLogic
5f49956a0d4ee7a10c35e006d340ba58ca692078
[ "MIT" ]
null
null
null
from enum import Enum class EnumFun(Enum): NONE=0 GET_ACTION=1 PUSH_ACTION=2 POP_ACTION=3 HELP=4
14.625
21
0.666667
793edba550f650680b3a3f8afdddb252ef80b93f
2,265
py
Python
gui.py
sguldemond/instagram-downloader
ca5228b695f4bab42a2dc9b7250ee3fa320e7f20
[ "MIT" ]
null
null
null
gui.py
sguldemond/instagram-downloader
ca5228b695f4bab42a2dc9b7250ee3fa320e7f20
[ "MIT" ]
null
null
null
gui.py
sguldemond/instagram-downloader
ca5228b695f4bab42a2dc9b7250ee3fa320e7f20
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import filedialog import instagram class Window(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.master = master self.init_window() self.folder_path = StringVar() def init_window(self): self.master.title("Shan...
31.901408
91
0.618985
793edc702d9d7ec25abc0c2f0ab6d8894b291c10
1,414
py
Python
src/joint_embedding/metrics/ari/test.py
hhuuggoo/neurips2021_multimodal_viash
f17af09a34ecac6309bcd7b5f8f5122e09318e0c
[ "MIT" ]
null
null
null
src/joint_embedding/metrics/ari/test.py
hhuuggoo/neurips2021_multimodal_viash
f17af09a34ecac6309bcd7b5f8f5122e09318e0c
[ "MIT" ]
null
null
null
src/joint_embedding/metrics/ari/test.py
hhuuggoo/neurips2021_multimodal_viash
f17af09a34ecac6309bcd7b5f8f5122e09318e0c
[ "MIT" ]
null
null
null
from os import path import subprocess import anndata as ad # import pandas as pd import numpy as np np.random.seed(42) metric = 'ari' # metric_file = metric + '.tsv' metric_file = metric + '.h5ad' print(">> Running script") out = subprocess.check_output([ "./" + metric, "--input_prediction", 'resources_test/...
28.857143
89
0.736209
793edcd6ac1f1bffd01513eccbe59ffd4cea18e4
607
py
Python
test-framework/test-suites/integration/tests/list/test_list_host_profile.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
test-framework/test-suites/integration/tests/list/test_list_host_profile.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
test-framework/test-suites/integration/tests/list/test_list_host_profile.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
import xml.etree.ElementTree as ET def test_list_host_profile(host, add_host, revert_export_stack_carts): result = host.run('stack list host profile backend-0-0') assert result.rc == 0 # Check if this is an actual XML output that can be parsed root = ET.fromstring(result.stdout) # Check for a few expected tags...
30.35
80
0.729819
793edd6ce6a150d894873a3fbf08ea68f8d0838a
1,004
py
Python
kubernetes/test/test_v1_object_field_selector.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2019-07-12T05:38:06.000Z
2019-07-12T05:38:06.000Z
kubernetes/test/test_v1_object_field_selector.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_object_field_selector.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2021-05-18T12:25:56.000Z
2021-05-18T12:25:56.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.311111
105
0.721116
793eddb3c6c93046599a11d56d962f45dfba2dce
730
py
Python
PythonCrashCourse/13alien_invasion/settings.py
dzylikecode/Python_Tutorial
bff425b11d6eeaa5733c1c710a570f83c52e4d97
[ "MIT" ]
null
null
null
PythonCrashCourse/13alien_invasion/settings.py
dzylikecode/Python_Tutorial
bff425b11d6eeaa5733c1c710a570f83c52e4d97
[ "MIT" ]
null
null
null
PythonCrashCourse/13alien_invasion/settings.py
dzylikecode/Python_Tutorial
bff425b11d6eeaa5733c1c710a570f83c52e4d97
[ "MIT" ]
null
null
null
""" 每次给游戏添加新功能时, 通常也将引入一些新设置. 下面来编写一个名为settings的模块,其中包含一个名为Settings的类, 用于将所有设置存储在一个地方,以免在代码中到处添加设置. 这样,我们就能传递一个设置对象,而不是众多不同的设置. 另外,这让函数调用更简单,且在项目增大时修改游戏的外观更容易: 要修改游戏,只需修改settings.py中的一些值,而无需查找散布在文件中的不同设置. """ class Settings(): """store the game settings""" def __init__(self): """Initializes the Settin...
26.071429
50
0.661644
793ede887610b810b96c819eb446ec74e6cd6f95
2,194
py
Python
camera/cam_test.py
robot-ronny/rr-raspbian
08d08797cab752dcf8a0130ca0ba1abe864c1d70
[ "MIT" ]
1
2019-04-03T19:44:57.000Z
2019-04-03T19:44:57.000Z
camera/cam_test.py
robot-ronny/rr-raspbian
08d08797cab752dcf8a0130ca0ba1abe864c1d70
[ "MIT" ]
null
null
null
camera/cam_test.py
robot-ronny/rr-raspbian
08d08797cab752dcf8a0130ca0ba1abe864c1d70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time import cv2 import numpy as np import click import click_log import logging from imutils.video import VideoStream logging.basicConfig(format='%(asctime)s %(message)s') def nothing(x): pass @click.command() @click.option('--video', required=True, help='Vi...
22.161616
88
0.616226
793edf2c093d692ef3d97ac9bd44d72b1be4add8
2,405
py
Python
pdf_combine.py
psengupta1973/py-utils
133d3917e4b9cae46e86c52cacf604f2feb6ac95
[ "MIT" ]
null
null
null
pdf_combine.py
psengupta1973/py-utils
133d3917e4b9cae46e86c52cacf604f2feb6ac95
[ "MIT" ]
null
null
null
pdf_combine.py
psengupta1973/py-utils
133d3917e4b9cae46e86c52cacf604f2feb6ac95
[ "MIT" ]
null
null
null
import PyPDF2 def combine(pdf_names, pdf_out): pdfFile = None pdfWriter = PyPDF2.PdfFileWriter() for pdf_name in pdf_names: pdfFile = open(pdf_name, 'rb') pdfReader = PyPDF2.PdfFileReader(pdfFile) for pageNum in range(pdfReader.numPages): pageObj = pdfRead...
34.855072
50
0.490644
793edf881288c7a8c3c44f575daffe4083a4c7b4
1,251
py
Python
alphafold/model/prng_test.py
milot-mirdita/alphafold
8a24cc8d22feb2b7ae9bf78f910ce97e9d4403e8
[ "Apache-2.0" ]
45
2021-07-18T05:26:21.000Z
2022-03-15T18:22:48.000Z
alphafold/model/prng_test.py
milot-mirdita/alphafold
8a24cc8d22feb2b7ae9bf78f910ce97e9d4403e8
[ "Apache-2.0" ]
33
2021-08-12T14:06:16.000Z
2022-03-31T18:47:49.000Z
alphafold/model/prng_test.py
milot-mirdita/alphafold
8a24cc8d22feb2b7ae9bf78f910ce97e9d4403e8
[ "Apache-2.0" ]
20
2021-07-18T03:34:47.000Z
2022-02-19T02:51:09.000Z
# Copyright 2021 DeepMind Technologies Limited # # 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...
26.0625
74
0.730616
793edfa354035da1517d2dd7910f6ac34d33867c
4,622
py
Python
src/lava/lib/dl/slayer/block/cuba.py
PeaBrane/lava-dl
b205b4e0466788c5232ff20497ac0fc433cbccca
[ "BSD-3-Clause" ]
null
null
null
src/lava/lib/dl/slayer/block/cuba.py
PeaBrane/lava-dl
b205b4e0466788c5232ff20497ac0fc433cbccca
[ "BSD-3-Clause" ]
null
null
null
src/lava/lib/dl/slayer/block/cuba.py
PeaBrane/lava-dl
b205b4e0466788c5232ff20497ac0fc433cbccca
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """CUBA-LIF layer blocks""" import torch from . import base from ..neuron import cuba from ..synapse import layer as synapse from ..axon import Delay class AbstractCuba(torch.nn.Module): """Abstract block class for Current Based Le...
31.442177
75
0.690394
793ee158b06bdb6a19483f1391badad5dae73ac0
9,939
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_cdnprofile.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/modules/cloud/azure/azure_rm_cdnprofile.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/cloud/azure/azure_rm_cdnprofile.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
#!/usr/bin/python # # Copyright (c) 2018 Hai Cao, <t-haicao@microsoft.com>, Yunge Zhu <yungez@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadat...
32.586885
143
0.567763
793ee39648762acab709bfb72c2245bd220ca905
5,065
py
Python
userbot/modules/deezload.py
vyprlover/One4uBot
dab5f4ef36ff7cd91bd82487abbd7e4149840030
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/deezload.py
vyprlover/One4uBot
dab5f4ef36ff7cd91bd82487abbd7e4149840030
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/deezload.py
vyprlover/One4uBot
dab5f4ef36ff7cd91bd82487abbd7e4149840030
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2020 The Authors UniBorg (telegram userbot) # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # # requires: deezloader hachoir Pillow # Ported from UniBorg by AnggaR96s import deezloader import os import ...
31.65625
102
0.616584
793ee4a65472f31025359514281013a7d0db957a
21,225
py
Python
sdk/python/pulumi_azure_native/servicebus/v20170401/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20170401/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20170401/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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, overload from ... import _utilities fro...
35.79258
159
0.635948
793ee4ad2cf67cf9f4e70a00b068c1ec6716af87
399
py
Python
spacebarapp/spacebarapp/wsgi.py
aharri64/Spacebar
2a51d0059ae9853f87720ab9f62a8915daf7617c
[ "Unlicense" ]
null
null
null
spacebarapp/spacebarapp/wsgi.py
aharri64/Spacebar
2a51d0059ae9853f87720ab9f62a8915daf7617c
[ "Unlicense" ]
null
null
null
spacebarapp/spacebarapp/wsgi.py
aharri64/Spacebar
2a51d0059ae9853f87720ab9f62a8915daf7617c
[ "Unlicense" ]
null
null
null
""" WSGI config for spacebarapp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
793ee4e3798fd79aa1febceca4baf4f76a82446b
3,182
py
Python
KPIAnomaly/model_bagel/testing.py
Nono17/AIOPS-Anomaly-Detection
1bfc49ccf1c1c852a45a8e4606a9a73550184005
[ "Apache-2.0" ]
44
2021-05-21T14:30:12.000Z
2021-12-28T12:52:38.000Z
KPIAnomaly/model_bagel/testing.py
Nono17/AIOPS-Anomaly-Detection
1bfc49ccf1c1c852a45a8e4606a9a73550184005
[ "Apache-2.0" ]
1
2021-03-31T16:41:28.000Z
2021-03-31T16:41:28.000Z
KPIAnomaly/model_bagel/testing.py
Nono17/AIOPS-Anomaly-Detection
1bfc49ccf1c1c852a45a8e4606a9a73550184005
[ "Apache-2.0" ]
15
2021-03-29T13:16:56.000Z
2022-03-13T12:49:44.000Z
import model_bagel import numpy as np from sklearn.metrics import precision_recall_curve from typing import Sequence, Tuple, Dict, Optional def _adjust_scores(labels: np.ndarray, scores: np.ndarray, delay: Optional[int] = None, inplace: bool = False) -> np.nda...
37.435294
105
0.646135
793ee611666c8256667511e6be208a87739c2834
2,141
py
Python
octavia/tests/functional/api/v1/test_listener_statistics.py
zjchao/octavia
e07031fa78604568c6e2112cb4cb147661bc57d7
[ "Apache-2.0" ]
1
2019-01-11T06:18:38.000Z
2019-01-11T06:18:38.000Z
octavia/tests/functional/api/v1/test_listener_statistics.py
zjchao/octavia
e07031fa78604568c6e2112cb4cb147661bc57d7
[ "Apache-2.0" ]
10
2020-09-18T12:17:59.000Z
2022-03-14T15:45:38.000Z
octavia/tests/functional/api/v1/test_listener_statistics.py
zjchao/octavia
e07031fa78604568c6e2112cb4cb147661bc57d7
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2016 Blue Box, an IBM Company # # 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...
41.173077
78
0.625876
793ee75cfba2cd24f2413dbb6e8cd1331928534f
1,186
gyp
Python
erizoAPI/binding.gyp
winlinvip/licode
ee4f012147264c29cc6d8282f2a573b801a2454b
[ "MIT" ]
1
2018-08-21T03:59:44.000Z
2018-08-21T03:59:44.000Z
erizoAPI/binding.gyp
winlinvip/licode
ee4f012147264c29cc6d8282f2a573b801a2454b
[ "MIT" ]
null
null
null
erizoAPI/binding.gyp
winlinvip/licode
ee4f012147264c29cc6d8282f2a573b801a2454b
[ "MIT" ]
1
2018-08-21T03:59:47.000Z
2018-08-21T03:59:47.000Z
{ 'targets': [ { 'target_name': 'addon', 'sources': [ 'addon.cc', 'IOThreadPool.cc', 'ThreadPool.cc', 'WebRtcConnection.cc', 'OneToManyProcessor.cc', 'ExternalInput.cc', 'ExternalOutput.cc', 'SyntheticInput.cc'], 'include_dirs' : ["<!(node -e \"require('nan')\")", '$(ERIZO_HOME)/src/erizo', '$(ERIZO...
40.896552
177
0.49747
793ee947a24618a93897a58f0933e8b67896b637
10,436
py
Python
inc/python_image_utilities/test/image_util_test.py
wwarriner/unsupervised_onh_histo
48ec23781af203a14ff590f3074a2d3559957560
[ "MIT" ]
null
null
null
inc/python_image_utilities/test/image_util_test.py
wwarriner/unsupervised_onh_histo
48ec23781af203a14ff590f3074a2d3559957560
[ "MIT" ]
9
2020-05-01T16:45:41.000Z
2022-02-08T19:11:07.000Z
inc/python_image_utilities/test/image_util_test.py
wwarriner/unsupervised_onh_histo
48ec23781af203a14ff590f3074a2d3559957560
[ "MIT" ]
null
null
null
import unittest from pathlib import PurePath, Path from math import ceil import numpy as np from image_util import * class Test(unittest.TestCase): def setUp(self): self.side_len = np.iinfo(np.uint8).max self.base_shape = (self.side_len, self.side_len) self.rgb = np.moveaxis(np.indices(...
37.007092
88
0.596685
793ee978e94e3cbf79d589a00fa3efce64b9696b
80,625
py
Python
python/ccxt/bitrue.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
1
2021-11-16T15:45:34.000Z
2021-11-16T15:45:34.000Z
python/ccxt/bitrue.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
null
null
null
python/ccxt/bitrue.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import json from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
45.628183
238
0.497166
793eea36363f613feb01b69b3e7dab740d24e192
1,238
py
Python
robotiq_gripper/robotiq_control/scripts/cmodel_tcp_driver.py
windiboy/arm_gazebo
6c0b3dd59fd6dd4f4016932e1f78281ca07c40ed
[ "MIT" ]
1
2022-03-08T03:36:46.000Z
2022-03-08T03:36:46.000Z
robotiq_gripper/robotiq_control/scripts/cmodel_tcp_driver.py
windiboy/arm_gazebo
6c0b3dd59fd6dd4f4016932e1f78281ca07c40ed
[ "MIT" ]
null
null
null
robotiq_gripper/robotiq_control/scripts/cmodel_tcp_driver.py
windiboy/arm_gazebo
6c0b3dd59fd6dd4f4016932e1f78281ca07c40ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import socket import rospy from robotiq_control.cmodel_base import RobotiqCModel, ComModbusTcp from robotiq_msgs.msg import CModelCommand, CModelStatus def mainLoop(address): # Gripper is a C-Model with a TCP connection gripper = RobotiqCModel() gripper.client = ComModb...
28.790698
75
0.732633
793eea38b599f4329421a84eadafa3db723b85e7
588
py
Python
lpthw/03/ex3.py
dummymael/learn_python
5c06355d566a09e9de92b72d182c2fe78dc5300d
[ "BSD-2-Clause" ]
null
null
null
lpthw/03/ex3.py
dummymael/learn_python
5c06355d566a09e9de92b72d182c2fe78dc5300d
[ "BSD-2-Clause" ]
null
null
null
lpthw/03/ex3.py
dummymael/learn_python
5c06355d566a09e9de92b72d182c2fe78dc5300d
[ "BSD-2-Clause" ]
null
null
null
print "I will now count my chickens:" print "Hens", 25.0 + 30.0 / 6.0 print "Roosters", 100.0 - 25.0 * 3.0 % 4.0 print "Now I will count the eggs:" print 3 + 2 + 1 - 5 + 4.0 % 2.0 - 1.0 / 4.0 + 6 print "Is it true that 3 + 2 < 5 - 7?" print 3 + 2 < 5 - 7 print "What is 3 + 2?", 3 + 2 print "What is 5 - 7?", 5 - 7...
20.275862
47
0.554422
793eeb90c00b7b4080b36ee82d593cc06217e46b
13,959
py
Python
threatconnect/IndicatorFilterMethods.py
jhurd-tc/threatconnect-python
975041699daf74f5999d60a5d14447aad8c89b72
[ "Apache-2.0" ]
null
null
null
threatconnect/IndicatorFilterMethods.py
jhurd-tc/threatconnect-python
975041699daf74f5999d60a5d14447aad8c89b72
[ "Apache-2.0" ]
null
null
null
threatconnect/IndicatorFilterMethods.py
jhurd-tc/threatconnect-python
975041699daf74f5999d60a5d14447aad8c89b72
[ "Apache-2.0" ]
null
null
null
""" standard """ import time """ third-party """ import dateutil.parser import pytz """ custom """ from Config.FilterOperator import FilterOperator import ApiProperties import SharedMethods from Config.ResourceType import ResourceType from ErrorCodes import ErrorCodes from PostFilterObject import PostFilterObject fr...
36.831135
118
0.731141
793eecc0add50c889c52b908505f25194db86009
3,512
py
Python
pytools/pic/tile_initialization.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
pytools/pic/tile_initialization.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
pytools/pic/tile_initialization.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pyrunko.pic as pypic def ind2loc(gridI, tileI, conf): # grid coordinates i, j, k = gridI Nx = conf.Nx Ny = conf.Ny Nz = conf.Nz # tile coordinates l, m, n = tileI NxMesh = conf.NxMesh NyMesh = conf.NyMesh NzMesh = conf.NzMesh # grid spaci...
26.014815
97
0.537301
793ef14f436e1debe2b85efd8006e8c4f2bf1489
16,128
py
Python
data_collection/apache.py
pinckert/pinckert.com
7d6ce3e37c6c39c1deebbceb40f4442d34c20e23
[ "Apache-2.0" ]
1
2020-07-29T22:45:07.000Z
2020-07-29T22:45:07.000Z
data_collection/apache.py
pinckert/pinckert.com
7d6ce3e37c6c39c1deebbceb40f4442d34c20e23
[ "Apache-2.0" ]
null
null
null
data_collection/apache.py
pinckert/pinckert.com
7d6ce3e37c6c39c1deebbceb40f4442d34c20e23
[ "Apache-2.0" ]
null
null
null
<<<<<<< HEAD #!/usr/bin/python #from __future__ import print_function import os import sys import urllib import xml.etree.ElementTree as ET import time """ Attempted using jenkinsapi, but after ~10 minutes, the following request failed on the apache build server... import jenkinsapi from jenkinsapi.jenkins import Jenk...
27.243243
112
0.664187
793ef2719f4fca50e0c77d77bafec50bd3a091ba
1,964
py
Python
alipay/aop/api/response/AlipayOpenAgentOrderQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAgentOrderQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAgentOrderQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenAgentOrderQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenAgentOrderQueryResponse, self).__init__() self._agent_app_id = No...
29.757576
106
0.677189
793ef3b3e370252658a290d5db22ddb478f94767
5,574
py
Python
localstack/utils/aws/templating.py
rubencosta/localstack
369f65f1635c09934e23e3dbca54fbdb31cb7b74
[ "Apache-2.0" ]
31,928
2017-07-04T03:06:28.000Z
2022-03-31T22:33:27.000Z
localstack/utils/aws/templating.py
rubencosta/localstack
369f65f1635c09934e23e3dbca54fbdb31cb7b74
[ "Apache-2.0" ]
5,216
2017-07-04T11:45:41.000Z
2022-03-31T22:02:14.000Z
localstack/utils/aws/templating.py
lambdafunc/localstack
6285b43bec57435a2179310a8de2af8d8d8cf8dd
[ "Apache-2.0" ]
3,056
2017-06-05T13:29:11.000Z
2022-03-31T20:54:43.000Z
import base64 import json import re from six.moves.urllib.parse import quote_plus, unquote_plus from localstack import config from localstack.utils.common import ( extract_jsonpath, is_number, json_safe, recurse_object, short_uid, to_number, ) class VelocityInput(object): """Simple class...
32.034483
115
0.63563
793ef5546b7f80dc4c2e2b0007425f7aa6dfdb46
757
py
Python
loggingdemo/example02.py
ErinKenna/loggingdemo
7f2490b1e1062030785310d4d48eeddf5e19e07c
[ "Unlicense" ]
null
null
null
loggingdemo/example02.py
ErinKenna/loggingdemo
7f2490b1e1062030785310d4d48eeddf5e19e07c
[ "Unlicense" ]
null
null
null
loggingdemo/example02.py
ErinKenna/loggingdemo
7f2490b1e1062030785310d4d48eeddf5e19e07c
[ "Unlicense" ]
null
null
null
""" Refactor the divide method into a separate module. """ import itertools import logging.config import os import pathlib import yaml from loggingdemo.utils import divide app_dir = pathlib.Path(os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) log_config_fn = 'logging.yml' __LOG_CONFIG_PATH = pathli...
25.233333
87
0.739762
793ef571bcdf31ca247d0f071447e377f2b8f1ff
415
py
Python
fairseq/data/optims_dataset.py
khyathiraghavi/roberta
5d55faf79f6c0181dacfe5dd52e6165e8c9a0555
[ "MIT" ]
null
null
null
fairseq/data/optims_dataset.py
khyathiraghavi/roberta
5d55faf79f6c0181dacfe5dd52e6165e8c9a0555
[ "MIT" ]
null
null
null
fairseq/data/optims_dataset.py
khyathiraghavi/roberta
5d55faf79f6c0181dacfe5dd52e6165e8c9a0555
[ "MIT" ]
null
null
null
import numpy as np import torch from . import BaseWrapperDataset class OptimsDataset(BaseWrapperDataset): def __init__(self, dataset): super().__init__(dataset) self.dataset = dataset def __getitem__(self, index): item = self.dataset[index] return item def __len__(self)...
16.6
40
0.655422
793ef6d82f9b9e1e76ea4f649407e6a16207846c
205
py
Python
leads/serializers.py
AlteredArt/jobjot
eabd8860e0bbfce8eae18b5914b66650b5b160eb
[ "MIT" ]
1
2020-05-14T03:04:19.000Z
2020-05-14T03:04:19.000Z
leads/serializers.py
AlteredArt/jobjot
eabd8860e0bbfce8eae18b5914b66650b5b160eb
[ "MIT" ]
null
null
null
leads/serializers.py
AlteredArt/jobjot
eabd8860e0bbfce8eae18b5914b66650b5b160eb
[ "MIT" ]
null
null
null
from rest_framework import serializers from leads.models import Lead # this is the Lead Serializer class LeadSerializer(serializers.ModelSerializer): class Meta: model = Lead fields = '__all__'
22.777778
50
0.77561
793ef827065c5230110dab9091816914dd233ccc
11,681
py
Python
SKTBert/data_loader.py
yeongjoon/NER
d2c93597726ed9507bfddea9197007d30aeaad8b
[ "Apache-2.0" ]
1
2020-08-05T00:17:01.000Z
2020-08-05T00:17:01.000Z
SKTBert/data_loader.py
yeongjoon/NER
d2c93597726ed9507bfddea9197007d30aeaad8b
[ "Apache-2.0" ]
null
null
null
SKTBert/data_loader.py
yeongjoon/NER
d2c93597726ed9507bfddea9197007d30aeaad8b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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...
43.585821
151
0.615358
793ef95a095fc2b205dde0ff5a6bf126f082d04d
205,495
py
Python
packages/qgs_project_template.py
jphuart/swatplus-automatic-workflow
dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4
[ "MIT" ]
8
2020-06-28T07:50:29.000Z
2022-01-05T16:29:48.000Z
packages/qgs_project_template.py
jphuart/swatplus-automatic-workflow
dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4
[ "MIT" ]
null
null
null
packages/qgs_project_template.py
jphuart/swatplus-automatic-workflow
dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4
[ "MIT" ]
5
2020-06-28T07:50:31.000Z
2021-08-16T07:09:59.000Z
''' date : 31/03/2020 description : this is a template for qgs file author : Celray James CHAWANDA contact : celray.chawanda@outlook.com licence : MIT 2020 ''' template = '''<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'> <qgis projectname="{project_name}" version="3.10.10-A Coruña"> ...
45.463496
1,567
0.585761
793ef97a555a0b9d790255d66dad3d6bae2846a0
130
py
Python
oscar/lib/python2.7/site-packages/txclib/__init__.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/txclib/__init__.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/txclib/__init__.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # https://www.python.org/dev/peps/pep-0440/#examples-of-compliant-version-schemes __version__ = '0.12.4'
26
81
0.684615
793efa5b83afd27a62ed9d94284dadbd36f2c0f9
5,572
py
Python
recipes/avahi/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/avahi/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/avahi/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, tools, AutoToolsBuildEnvironment from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.33.0" class AvahiConan(ConanFile): name = "avahi" # --enable-compat-libdns_sd means that this recipe provides the mdnsresponder compile interface prov...
42.861538
102
0.639268
793efb43f421359668a567223f4464e9e01aa6ef
3,805
py
Python
blog/views.py
kritebh/django-blog
5b3d76e4b41735368169cbd7ef54f32c233160d4
[ "Apache-2.0" ]
null
null
null
blog/views.py
kritebh/django-blog
5b3d76e4b41735368169cbd7ef54f32c233160d4
[ "Apache-2.0" ]
null
null
null
blog/views.py
kritebh/django-blog
5b3d76e4b41735368169cbd7ef54f32c233160d4
[ "Apache-2.0" ]
null
null
null
from .forms import AddCommentForm from django.contrib.auth.models import User from django.shortcuts import redirect, render,get_object_or_404,HttpResponseRedirect from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy,reverse from django.contrib.auth.decorators import login_requi...
36.941748
102
0.72431
793efbc34dea3526e7837e8f1a09afdef570c0c6
5,019
py
Python
input_process.py
ChenYizhu97/BRITS
79dda68d3d76b6a0e49caa1a3a6f2bb837b8c959
[ "MIT" ]
null
null
null
input_process.py
ChenYizhu97/BRITS
79dda68d3d76b6a0e49caa1a3a6f2bb837b8c959
[ "MIT" ]
null
null
null
input_process.py
ChenYizhu97/BRITS
79dda68d3d76b6a0e49caa1a3a6f2bb837b8c959
[ "MIT" ]
null
null
null
# coding: utf-8 import os import re import numpy as np import pandas as pd import pandas.io.json as json patient_ids = [] for filename in os.listdir('./raw'): # the patient data in PhysioNet contains 6-digits match = re.search('\d{6}', filename) if match: id_ = match.group() patient_ids.a...
32.590909
120
0.650329
793efc5575f3a62840771ce0d53197978567ec7a
7,292
py
Python
hyperglass/models/api/query.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
298
2019-06-17T13:51:46.000Z
2021-06-23T18:09:51.000Z
hyperglass/models/api/query.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
137
2019-06-18T12:59:37.000Z
2021-06-19T05:50:58.000Z
hyperglass/models/api/query.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
42
2019-06-18T07:25:23.000Z
2021-06-18T17:40:20.000Z
"""Input query validation model.""" # Standard Library import json import hashlib import secrets from datetime import datetime # Third Party from pydantic import BaseModel, StrictStr, constr, validator # Project from hyperglass.exceptions import InputInvalid from hyperglass.configuration import params, devices # Lo...
31.5671
83
0.582693
793efcd512267a5499aeeb2b7eff752199610901
657
py
Python
swexpert/d4/sw_4261.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
swexpert/d4/sw_4261.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
swexpert/d4/sw_4261.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
phone = { '2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz', } test_cases = int(input().strip()) for t in range(1, test_cases + 1): S, N = input().strip().split() words = input().strip().split() letters = [] for num in S: ...
20.53125
41
0.442922
793efd55da690ad5a15f46b1a8af1219508408bc
550
py
Python
clients/signals.py
MartinMwiti/crm
2f775b25e293da410dc3a37d0e03d838df1144ac
[ "MIT" ]
null
null
null
clients/signals.py
MartinMwiti/crm
2f775b25e293da410dc3a37d0e03d838df1144ac
[ "MIT" ]
null
null
null
clients/signals.py
MartinMwiti/crm
2f775b25e293da410dc3a37d0e03d838df1144ac
[ "MIT" ]
null
null
null
from .models import Purchaser, paymentInvoice from django.db.models.signals import post_save from django.dispatch import receiver # DISCLAIMER: CREATING THIS SIGNAL WILL CAUSE A DUPLICATE IN PAYMENTINVOICE WHENEVER I CREATE AN INSTANCE USING PAYMENTINVOICE. (1st will take the default values as caused by the signal, th...
50
236
0.794545
793efe1f1443841885349471c9fc05df38d96aaa
1,676
py
Python
support/closure-library/closure/bin/build/jscompiler.py
joe-greenawalt/skulpt
1db078e2f6d453403287233254b012bf31960ef4
[ "MIT" ]
2
2021-01-10T16:19:38.000Z
2021-06-14T22:09:59.000Z
support/closure-library/closure/bin/build/jscompiler.py
csev/skulpt
9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f
[ "MIT" ]
null
null
null
support/closure-library/closure/bin/build/jscompiler.py
csev/skulpt
9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f
[ "MIT" ]
1
2015-06-28T18:58:22.000Z
2015-06-28T18:58:22.000Z
# Copyright 2010 The Closure Library Authors. All Rights Reserved. """Utility to use the Closure Compiler CLI from Python.""" import distutils.version import logging import re import subprocess # Pulls a version number from the first line of 'java -version' _VERSION_REGEX = re.compile('[\.0-9]+') def _GetJavaVers...
28.896552
74
0.711814
793efe5bb53a20282600ca12b3bc6f269ef57be7
922
py
Python
micasa/urls.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
null
null
null
micasa/urls.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
2
2021-06-10T22:20:59.000Z
2021-09-08T01:28:01.000Z
micasa/urls.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
1
2020-02-27T07:05:21.000Z
2020-02-27T07:05:21.000Z
from django.conf.urls import url, include from django.contrib.auth import views as auth_views from . import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^upload/', views.upload_hood, name='upload'), url(r'^prof...
40.086957
78
0.686551
793efe5f4df3a90dcf00bed171a2ca7bf1725f0f
5,098
py
Python
kili/queries/dataset_asset/__init__.py
kili-technology/kili-playground
f8cf3c26a3a8fd4076cf2e87ea24a5f919e5aa80
[ "Apache-2.0" ]
214
2019-08-05T14:55:01.000Z
2022-03-28T21:02:22.000Z
kili/queries/dataset_asset/__init__.py
x213212/kili-playground
dfb94c2d54bedfd7fec452b91f811587a2156c13
[ "Apache-2.0" ]
10
2020-05-14T10:44:16.000Z
2022-03-08T09:39:24.000Z
kili/queries/dataset_asset/__init__.py
x213212/kili-playground
dfb94c2d54bedfd7fec452b91f811587a2156c13
[ "Apache-2.0" ]
19
2019-11-26T22:41:09.000Z
2022-01-16T19:17:38.000Z
""" Dataset asset queries """ from typing import List, Optional from typeguard import typechecked import pandas as pd from tqdm import tqdm from ...helpers import Compatible, format_result, fragment_builder from .queries import gql_assets, GQL_DATASET_ASSETS_COUNT from ...types import DatasetAsset as DatasetAssetTy...
35.402778
145
0.546685
793eff90cce67f3a03ec834b3e723912798d63a2
13,071
py
Python
src/prefect/cli/agent.py
dkapitan/prefect
9a42c9f48dd9ff50a1e0d7ae2cf7606726bf28bf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/cli/agent.py
dkapitan/prefect
9a42c9f48dd9ff50a1e0d7ae2cf7606726bf28bf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/cli/agent.py
dkapitan/prefect
9a42c9f48dd9ff50a1e0d7ae2cf7606726bf28bf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import click from prefect import config from prefect.utilities.configuration import set_temporary_config from prefect.utilities.serialization import from_qualified_name _agents = { "fargate": "prefect.agent.fargate.FargateAgent", "docker": "prefect.agent.docker.DockerAgent", "kubernetes": "prefect.agent.k...
31.496386
131
0.586566
793effa96e8e809d1d36e681c0a7abcce6183de2
1,485
py
Python
tests/test_ogcapi_features_pygeoapi.py
beistehen/OWSLib
9a92b1c86c4ae551fdb015f647e6a34ce69cdf9e
[ "BSD-3-Clause" ]
null
null
null
tests/test_ogcapi_features_pygeoapi.py
beistehen/OWSLib
9a92b1c86c4ae551fdb015f647e6a34ce69cdf9e
[ "BSD-3-Clause" ]
null
null
null
tests/test_ogcapi_features_pygeoapi.py
beistehen/OWSLib
9a92b1c86c4ae551fdb015f647e6a34ce69cdf9e
[ "BSD-3-Clause" ]
null
null
null
from tests.utils import service_ok import pytest from owslib.ogcapi.features import Features SERVICE_URL = 'https://demo.pygeoapi.io/master' @pytest.mark.online @pytest.mark.skipif(not service_ok(SERVICE_URL), reason='service is unreachable') def test_ogcapi_features_pygeoapi(): w = Feature...
29.7
71
0.686869
793f0015c49e5396a18a32ecc81f359e51561c19
1,055
py
Python
hw1/hw1_18.py
allen860614/NTU_ML
15373e39ea3fe02d48abffd7dbd2ac2f1dacea55
[ "MIT" ]
null
null
null
hw1/hw1_18.py
allen860614/NTU_ML
15373e39ea3fe02d48abffd7dbd2ac2f1dacea55
[ "MIT" ]
null
null
null
hw1/hw1_18.py
allen860614/NTU_ML
15373e39ea3fe02d48abffd7dbd2ac2f1dacea55
[ "MIT" ]
null
null
null
import numpy as np import random # load data set data = np.loadtxt("hw1_train.dat.txt") # set sign() def sign(x): if x > 0: return 1 else: return -1 result = [] def PLA(): # PLA algorithm num = 11 # the vector length end = 0 # check whether finish or not count = 0 # ...
24.534884
81
0.495735
793f00363cdfcd69db009c5993d0f43ee842a94d
9,536
py
Python
demo:v1/gesture_model.py
Acemyzoe/gesture-classifier
3f83ff86e61c6f99ef762c2e146ab326c2f86e2d
[ "MIT" ]
null
null
null
demo:v1/gesture_model.py
Acemyzoe/gesture-classifier
3f83ff86e61c6f99ef762c2e146ab326c2f86e2d
[ "MIT" ]
null
null
null
demo:v1/gesture_model.py
Acemyzoe/gesture-classifier
3f83ff86e61c6f99ef762c2e146ab326c2f86e2d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from keras.utils import np_utils import numpy as np import os import cv2 f...
35.715356
120
0.616296
793f0261fa01d995b678c5972fcb20e3bb691eb4
204,903
py
Python
wagtail-repository/wagtail/admin/tests/test_pages_views.py
TobiasSkovgaardJepsen/wagtail-on-heroku
17e4720f86023225e0704890688998a80bb87a17
[ "BSD-3-Clause" ]
null
null
null
wagtail-repository/wagtail/admin/tests/test_pages_views.py
TobiasSkovgaardJepsen/wagtail-on-heroku
17e4720f86023225e0704890688998a80bb87a17
[ "BSD-3-Clause" ]
4
2020-06-05T17:00:01.000Z
2021-06-17T20:15:01.000Z
wagtail-repository/wagtail/admin/tests/test_pages_views.py
TobiasSkovgaardJepsen/wagtail-on-heroku
17e4720f86023225e0704890688998a80bb87a17
[ "BSD-3-Clause" ]
1
2019-04-16T14:14:55.000Z
2019-04-16T14:14:55.000Z
import datetime import logging import os from itertools import chain import mock from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.contrib.contenttypes.models import ContentType from django.contrib.messages import consta...
42.458143
244
0.653543
793f02a33467af93eca32230eeaae944f518175d
4,137
py
Python
optapy-quickstarts/school-timetabling/constraints.py
kawael/optapy
f8721a57806c1527509716c63ab7c1baec4185af
[ "Apache-2.0" ]
1
2021-10-08T13:38:56.000Z
2021-10-08T13:38:56.000Z
optapy-quickstarts/school-timetabling/constraints.py
kawael/optapy
f8721a57806c1527509716c63ab7c1baec4185af
[ "Apache-2.0" ]
null
null
null
optapy-quickstarts/school-timetabling/constraints.py
kawael/optapy
f8721a57806c1527509716c63ab7c1baec4185af
[ "Apache-2.0" ]
null
null
null
from optapy import constraint_provider, get_class from optapy.types import Joiners, HardSoftScore from domain import Lesson, Room from datetime import datetime, date, timedelta LessonClass = get_class(Lesson) RoomClass = get_class(Room) # Trick since timedelta only works with datetime instances today = date.today() ...
37.609091
119
0.648779
793f039f572e854c10f687011b178d309d032292
158
py
Python
web/app/face/admin.py
IlyaTorch/django-docker-ds
91cff4efc0d219b88814ed140bcd3ac56ae2a0aa
[ "MIT" ]
null
null
null
web/app/face/admin.py
IlyaTorch/django-docker-ds
91cff4efc0d219b88814ed140bcd3ac56ae2a0aa
[ "MIT" ]
null
null
null
web/app/face/admin.py
IlyaTorch/django-docker-ds
91cff4efc0d219b88814ed140bcd3ac56ae2a0aa
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Url, BoundingBox # Register your models here. admin.site.register(Url) admin.site.register(BoundingBox)
22.571429
36
0.810127
793f0573f2920d4263117743cfd5a11135a291f3
2,288
py
Python
python3/koans/about_control_statements.py
theagoliveira/python_koans
e89436a16f412fef5ee448f2f5548728b43d6eca
[ "MIT" ]
null
null
null
python3/koans/about_control_statements.py
theagoliveira/python_koans
e89436a16f412fef5ee448f2f5548728b43d6eca
[ "MIT" ]
null
null
null
python3/koans/about_control_statements.py
theagoliveira/python_koans
e89436a16f412fef5ee448f2f5548728b43d6eca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutControlStatements(Koan): def test_if_then_else_statements(self): if True: result = "true value" else: result = "false value" self.assertEqual("true value", result) def test_if_t...
27.566265
84
0.519231
793f059d3e5da7e5639ade951ba1b32ec0c3c082
2,179
py
Python
bt_proximity/bt_rssi.py
dovidgef/bluetooth-proximity
9f4838a734132eb667e09e17f42803297bdd799c
[ "Apache-2.0" ]
null
null
null
bt_proximity/bt_rssi.py
dovidgef/bluetooth-proximity
9f4838a734132eb667e09e17f42803297bdd799c
[ "Apache-2.0" ]
null
null
null
bt_proximity/bt_rssi.py
dovidgef/bluetooth-proximity
9f4838a734132eb667e09e17f42803297bdd799c
[ "Apache-2.0" ]
null
null
null
import bluetooth import bluetooth._bluetooth as bt import struct import array import fcntl class BluetoothRSSI(object): """Object class for getting the RSSI value of a Bluetooth address.""" def __init__(self, addr): self.addr = addr self.hci_sock = bt.hci_open_dev() self.hci_fd = self...
37.568966
91
0.613125
793f06480c102c12ea4247c7a67fbe85d6d4aef9
1,044
py
Python
educaton/paginas_apps/paginas_turmas/urls.py
joaopedro02/assist_programing_education
1ef0b4fbd9275e9cf74a607e31f35191cc07eeb3
[ "Apache-2.0" ]
null
null
null
educaton/paginas_apps/paginas_turmas/urls.py
joaopedro02/assist_programing_education
1ef0b4fbd9275e9cf74a607e31f35191cc07eeb3
[ "Apache-2.0" ]
14
2019-05-03T18:53:26.000Z
2019-10-02T22:16:00.000Z
educaton/paginas_apps/paginas_turmas/urls.py
joaopedro02/assist_programing_education
1ef0b4fbd9275e9cf74a607e31f35191cc07eeb3
[ "Apache-2.0" ]
null
null
null
"""educaton URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
40.153846
81
0.720307
793f070275d9ea188547be7ef7caa1c43fa96379
224
py
Python
Basic_Python/Test__all__01.py
ericzhai918/Leon.Zhai
7a267473be27cbb21d597b036c4153fd888d4b20
[ "MIT" ]
1
2019-12-22T06:48:30.000Z
2019-12-22T06:48:30.000Z
Basic_Python/Test__all__01.py
ericzhai918/Leon.Zhai
7a267473be27cbb21d597b036c4153fd888d4b20
[ "MIT" ]
null
null
null
Basic_Python/Test__all__01.py
ericzhai918/Leon.Zhai
7a267473be27cbb21d597b036c4153fd888d4b20
[ "MIT" ]
null
null
null
'''测试__all__变量的模块''' def hello(): print("Hello, Python") def world(): print("Pyhton World is funny") def test(): print('--test--') # 定义__all__变量,指定默认只导入hello和world两个成员 __all__ = ['hello', 'world']
17.230769
37
0.602679
793f0733c95469369a8197264805efd386daa85a
22,905
py
Python
ckan/lib/dictization/model_dictize.py
NeCTAR-RC/ckan
ba560b99c30097f888acb3726fa73bfd4a727c6b
[ "Apache-2.0" ]
1
2015-02-26T03:23:11.000Z
2015-02-26T03:23:11.000Z
ckan/lib/dictization/model_dictize.py
NeCTAR-RC/ckan
ba560b99c30097f888acb3726fa73bfd4a727c6b
[ "Apache-2.0" ]
null
null
null
ckan/lib/dictization/model_dictize.py
NeCTAR-RC/ckan
ba560b99c30097f888acb3726fa73bfd4a727c6b
[ "Apache-2.0" ]
null
null
null
import datetime import urlparse from pylons import config from sqlalchemy.sql import select import ckan.logic as logic import ckan.plugins as plugins import ckan.lib.helpers as h import ckan.lib.dictization as d import ckan.new_authz as new_authz import ckan.lib.search as search ## package save def group_list_dicti...
35.84507
87
0.662344
793f077bea53e1ef5406728e1584518ef486c11a
3,815
py
Python
usr/src/tools/scripts/cddlchk.py
AsahiOS/gate
283d47da4e17a5871d9d575e7ffb81e8f6c52e51
[ "MIT" ]
null
null
null
usr/src/tools/scripts/cddlchk.py
AsahiOS/gate
283d47da4e17a5871d9d575e7ffb81e8f6c52e51
[ "MIT" ]
null
null
null
usr/src/tools/scripts/cddlchk.py
AsahiOS/gate
283d47da4e17a5871d9d575e7ffb81e8f6c52e51
[ "MIT" ]
1
2020-12-30T00:04:16.000Z
2020-12-30T00:04:16.000Z
#!@TOOLS_PYTHON@ # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.o...
25.098684
78
0.665269
793f08c51603588dec7eec50c347df9d46dc7f49
1,381
py
Python
examples/aspect_term_extraction/extract_aspects_chinese.py
XuMayi/DLCF-DCA
2c56fd0846074318380d4440a4ee4d0056d03450
[ "MIT" ]
13
2021-06-17T04:02:31.000Z
2021-09-17T10:11:20.000Z
examples/aspect_term_extraction/extract_aspects_chinese.py
Harper-Li/DLCF-DCA
2c56fd0846074318380d4440a4ee4d0056d03450
[ "MIT" ]
null
null
null
examples/aspect_term_extraction/extract_aspects_chinese.py
Harper-Li/DLCF-DCA
2c56fd0846074318380d4440a4ee4d0056d03450
[ "MIT" ]
5
2021-06-17T04:10:57.000Z
2022-03-14T13:03:01.000Z
# -*- coding: utf-8 -*- # file: extract_aspects_chinese.py # time: 2021/5/27 0027 # author: yangheng <yangheng@m.scnu.edu.cn> # github: https://github.com/yangheng95 # Copyright (C) 2021. All Rights Reserved. from pyabsa import ATEPCCheckpointManager, ABSADatasetList # There might batch extraction function in the fut...
43.15625
127
0.622013
793f08fe395fc0966a6532830be50fca8d73d614
5,485
py
Python
python/dgl/distributed/rpc_client.py
heming-zhang/dgl
2d3bd7a3a4d29c68f02779317758a25bbf254078
[ "Apache-2.0" ]
null
null
null
python/dgl/distributed/rpc_client.py
heming-zhang/dgl
2d3bd7a3a4d29c68f02779317758a25bbf254078
[ "Apache-2.0" ]
null
null
null
python/dgl/distributed/rpc_client.py
heming-zhang/dgl
2d3bd7a3a4d29c68f02779317758a25bbf254078
[ "Apache-2.0" ]
null
null
null
"""Functions used by client.""" import os import socket from . import rpc from .constants import MAX_QUEUE_SIZE if os.name != 'nt': import fcntl import struct def local_ip4_addr_list(): """Return a set of IPv4 address """ assert os.name != 'nt', 'Do not support Windows rpc yet.' nic = set() ...
32.64881
94
0.62753
793f0ae231c423499d6c981eef3cbf1a27965189
1,333
py
Python
src/ucis/cmd/__main__.py
furiosa-ai/pyucis
233277abf5a86e1158ae2cc09d91152ca9f1e517
[ "Apache-2.0" ]
16
2020-03-25T21:31:49.000Z
2022-01-18T22:34:05.000Z
src/ucis/cmd/__main__.py
furiosa-ai/pyucis
233277abf5a86e1158ae2cc09d91152ca9f1e517
[ "Apache-2.0" ]
4
2020-01-05T00:26:00.000Z
2022-01-27T07:44:06.000Z
src/ucis/cmd/__main__.py
furiosa-ai/pyucis
233277abf5a86e1158ae2cc09d91152ca9f1e517
[ "Apache-2.0" ]
4
2019-12-23T06:23:11.000Z
2022-01-09T07:41:32.000Z
''' Created on Mar 24, 2020 @author: ballance ''' import argparse from ucis.ucis import UCIS import os def read_db(filename) -> UCIS: ext = os.path.splitext(filename)[1] if ext == "xml": print("XML") elif ext == "scdb": print("SCDB") else: raise Exception("Unknown file ex...
21.852459
67
0.612153
793f0c7c03c7760bca8f4f828c9e3f1bb6c91859
5,729
py
Python
asv_bench/benchmarks/multiindex_object.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2020-09-10T15:03:25.000Z
2021-04-01T22:48:33.000Z
asv_bench/benchmarks/multiindex_object.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2020-03-09T13:15:03.000Z
2020-03-20T10:07:10.000Z
asv_bench/benchmarks/multiindex_object.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2020-02-07T05:05:32.000Z
2020-05-11T06:06:17.000Z
import string import numpy as np from pandas import DataFrame, MultiIndex, RangeIndex, date_range from .pandas_vb_common import tm class GetLoc: def setup(self): self.mi_large = MultiIndex.from_product( [np.arange(1000), np.arange(20), list(string.ascii_letters)], names=["one", ...
28.221675
86
0.572177
793f0c8f4769d0fb28eee4c8c78aa4652a83a739
334
py
Python
detect_secrets/core/upgrades/v0_12.py
paulo-sampaio/detect-secrets
73ffbc35a72cb316d9e1842cc131b6098cf3c36a
[ "Apache-2.0" ]
2,212
2018-04-03T20:58:42.000Z
2022-03-31T17:58:38.000Z
detect_secrets/core/upgrades/v0_12.py
paulo-sampaio/detect-secrets
73ffbc35a72cb316d9e1842cc131b6098cf3c36a
[ "Apache-2.0" ]
354
2018-04-03T16:29:55.000Z
2022-03-31T18:26:26.000Z
detect_secrets/core/upgrades/v0_12.py
paulo-sampaio/detect-secrets
73ffbc35a72cb316d9e1842cc131b6098cf3c36a
[ "Apache-2.0" ]
298
2018-04-02T19:35:15.000Z
2022-03-28T04:52:14.000Z
from typing import Any from typing import Dict def upgrade(baseline: Dict[str, Any]) -> None: if 'exclude_regex' in baseline: baseline['exclude'] = { 'files': baseline.pop('exclude_regex'), 'lines': None, } baseline['word_list'] = { 'file': None, 'hash'...
20.875
51
0.54491
793f0d443f0e6177b3c011db32a42ffb8bf0fefc
605
py
Python
hatter_orm/fields.py
ndrwpvlv/hatter_orm
b358c8858a93eaf60b41e8b81940b6348d78bf68
[ "MIT" ]
2
2020-01-08T13:03:26.000Z
2021-07-15T12:33:45.000Z
hatter_orm/fields.py
ndrwpvlv/hatter_orm
b358c8858a93eaf60b41e8b81940b6348d78bf68
[ "MIT" ]
null
null
null
hatter_orm/fields.py
ndrwpvlv/hatter_orm
b358c8858a93eaf60b41e8b81940b6348d78bf68
[ "MIT" ]
null
null
null
class Field: def __init__(self): self.name = None def get_type(self): return self.name.upper() class IntegerField(Field): def __init__(self): super(IntegerField, self).__init__() self.name = 'Integer' class RealField(Field): def __init__(self): super(RealFiel...
19.516129
44
0.608264
793f0db77ca8285188b7f156ef76359e5df5ab7d
59
py
Python
org/cloudbsd/common/utils/utils.py
cloudbsdorg/cloudbsd-tools-python3
7271ef765cb565364d76bb397322f3225fbd7544
[ "BSD-3-Clause" ]
null
null
null
org/cloudbsd/common/utils/utils.py
cloudbsdorg/cloudbsd-tools-python3
7271ef765cb565364d76bb397322f3225fbd7544
[ "BSD-3-Clause" ]
null
null
null
org/cloudbsd/common/utils/utils.py
cloudbsdorg/cloudbsd-tools-python3
7271ef765cb565364d76bb397322f3225fbd7544
[ "BSD-3-Clause" ]
null
null
null
class Utils: def __init__(self): print(f'Hi')
11.8
23
0.559322