hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6cccae7fad14badcd9d04577d27f28d557fe726e
212
py
Python
visualizing_russian_tools/wsgi.py
arthurian/visualizing_russian_tools
65fd37839dc0650bb25d1f98904da5b79ae1a754
[ "BSD-3-Clause" ]
2
2020-07-10T14:17:03.000Z
2020-11-17T09:18:26.000Z
visualizing_russian_tools/wsgi.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
13
2019-03-17T13:27:31.000Z
2022-01-18T17:03:14.000Z
visualizing_russian_tools/wsgi.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
2
2019-10-19T16:37:44.000Z
2020-06-22T13:30:20.000Z
"""WSGI config.""" import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'visualizing_russian_tools.settings.local') application = get_wsgi_application()
21.2
91
0.811321
e6dc044dbc933e427b91aab0bc5b1f1fa4dc6c14
6,750
py
Python
examples/librispeech/evaluation/eval_ensemble8_ctc.py
sundogrd/tensorflow_end2end_speech_recognition
61e4a65fb5c9f3d9f690d713dcd77a48b1de0a14
[ "MIT" ]
351
2017-05-27T08:31:27.000Z
2022-03-03T16:47:27.000Z
examples/librispeech/evaluation/eval_ensemble8_ctc.py
eLavin11/tensorflow_end2end_speech_recognition
65b9728089d5e92b25b92384a67419d970399a64
[ "MIT" ]
19
2017-07-19T13:12:18.000Z
2019-06-12T06:07:13.000Z
examples/librispeech/evaluation/eval_ensemble8_ctc.py
eLavin11/tensorflow_end2end_speech_recognition
65b9728089d5e92b25b92384a67419d970399a64
[ "MIT" ]
127
2017-06-12T16:27:21.000Z
2021-12-29T02:22:34.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """Evaluate the ensemble of 8 CTC models (Librispeech corpus).""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from os.path import join, abspath import sys import yaml import argparse sys.path.append(abspa...
39.244186
84
0.642519
d4c18a4ba4f803a3f7db76ec1574b182e3a27b0f
1,654
py
Python
PollsProjectRest/urls.py
Parth-Shah-99/Polling-Project-API
6ce7b45d8518a63451ec5cc72ead37a0602eb5f5
[ "MIT" ]
1
2021-06-29T10:07:13.000Z
2021-06-29T10:07:13.000Z
PollsProjectRest/urls.py
Parth-Shah-99/Polling-Project-API
6ce7b45d8518a63451ec5cc72ead37a0602eb5f5
[ "MIT" ]
null
null
null
PollsProjectRest/urls.py
Parth-Shah-99/Polling-Project-API
6ce7b45d8518a63451ec5cc72ead37a0602eb5f5
[ "MIT" ]
null
null
null
"""PollsProjectRest URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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') Cl...
36.755556
108
0.713422
45603116a29e49121ecf8ed8104d09c6e28caacc
1,379
py
Python
ceilometer/api/hooks.py
CiscoSystems/ceilometer
a9267fd94e7854afa0720d761fbe75d946e7167d
[ "Apache-2.0" ]
1
2021-11-22T11:00:53.000Z
2021-11-22T11:00:53.000Z
ceilometer/api/hooks.py
CiscoSystems/ceilometer
a9267fd94e7854afa0720d761fbe75d946e7167d
[ "Apache-2.0" ]
null
null
null
ceilometer/api/hooks.py
CiscoSystems/ceilometer
a9267fd94e7854afa0720d761fbe75d946e7167d
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # # Author: Doug Hellmann <doug.hellmann@dreamhost.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
30.644444
75
0.715011
619e8c6d280c06b5306f0f76801e66eed1511057
882
py
Python
coding/learn_docker/client_demo.py
yatao91/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
3
2021-05-25T16:58:52.000Z
2022-02-05T09:37:17.000Z
coding/learn_docker/client_demo.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
coding/learn_docker/client_demo.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import docker # 使用默认的socket连接docker服务 # client = docker.from_env() client = docker.DockerClient(base_url='tcp://127.0.0.1:2375') # 指定运行容器 # resp = client.containers.run('hello-world') # 后台运行container # resp = client.containers.run('hello-world', detach=True) # # print(resp) # 获取容器列表 contain...
16.961538
61
0.695011
4791e1de44c8386c2884dee3285db0bf5aa246bb
2,057
py
Python
tests/st/ops/ascend/vector/test_invert_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_invert_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_invert_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.177419
106
0.609626
9b55d0f02de68b6a1ac653a8647b455b61b62c48
1,251
py
Python
src/pip/_internal/main.py
Nta1e/pip
828cbba70fffc3ad1e4eed40c6c47248ca07a827
[ "MIT" ]
null
null
null
src/pip/_internal/main.py
Nta1e/pip
828cbba70fffc3ad1e4eed40c6c47248ca07a827
[ "MIT" ]
null
null
null
src/pip/_internal/main.py
Nta1e/pip
828cbba70fffc3ad1e4eed40c6c47248ca07a827
[ "MIT" ]
null
null
null
"""Primary application entrypoint. """ from __future__ import absolute_import import locale import logging import os import sys from pip._internal.cli.autocompletion import autocomplete from pip._internal.cli.main_parser import parse_command from pip._internal.commands import create_command from pip._internal.excepti...
27.8
75
0.728217
1b33f02720af0faae4b903c50db4103e684b639c
1,577
py
Python
inceptor/compilers/CscCompiler.py
pwnmeow/inceptor
4c1d17b1f29777aaae634c07ad6c4dd8ed61aa01
[ "BSD-4-Clause" ]
743
2021-08-02T16:27:27.000Z
2022-03-31T16:34:16.000Z
inceptor/compilers/CscCompiler.py
pwnmeow/inceptor
4c1d17b1f29777aaae634c07ad6c4dd8ed61aa01
[ "BSD-4-Clause" ]
32
2021-08-03T04:47:20.000Z
2022-03-28T23:15:45.000Z
inceptor/compilers/CscCompiler.py
pwnmeow/inceptor
4c1d17b1f29777aaae634c07ad6c4dd8ed61aa01
[ "BSD-4-Clause" ]
138
2021-08-02T16:27:28.000Z
2022-03-31T02:47:20.000Z
from compilers.Compiler import Compiler from compilers.CompilerExceptions import OperationNotSupported from config.Config import Config class CscCompiler(Compiler): def add_include_directory(self, directory): pass def __init__(self, args=None, aargs=None, arch="x64"): self.config = Config() ...
28.672727
109
0.541535
108186af5724d4980050bddf8cfa1ff17bbbbf9b
1,089
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEPlogiLsAcc_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEPlogiLsAcc_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEPlogiLsAcc_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class FCoE_PLOGI_LS_ACC(Base): __slots__ = () _SDM_NAME = 'fCoEPlogiLsAcc' _SDM_ATT_MAP = { 'FCoE Header': 'fCoEPlogiLsAcc.header.fcoeHeader', 'FC Header': 'fCoEPlogiLsAcc.header.fcHeader', 'FC ELS': 'f...
32.029412
86
0.702479
b59fa5f55b6c96f2a1d796ad0fc9bc435dc0d9d7
2,674
py
Python
codes/000_visualization.py
baiyuang/Tensorflow-Computer-Vision-Tutorial
09db553dc23f0edeb8a9b0d51c13d0a27290016a
[ "MIT" ]
1
2021-06-02T01:09:32.000Z
2021-06-02T01:09:32.000Z
codes/000_visualization.py
Rookie-Eric/Tensorflow-Computer-Vision-Tutorial
09db553dc23f0edeb8a9b0d51c13d0a27290016a
[ "MIT" ]
null
null
null
codes/000_visualization.py
Rookie-Eric/Tensorflow-Computer-Vision-Tutorial
09db553dc23f0edeb8a9b0d51c13d0a27290016a
[ "MIT" ]
1
2020-07-23T08:17:20.000Z
2020-07-23T08:17:20.000Z
import numpy as np import matplotlib.pyplot as plt f = np.load('../mnist.npz') image, label = f['x_train'][7], f['y_train'][7] def show_conv(): filter = np.array([ [1, 1, 1], [0, 0, 0], [-1, -1, -1]]) plt.figure(0, figsize=(9, 5)) ax1 = plt.subplot(121) ax1.imshow(...
25.466667
116
0.450636
106c140036dc1733b8eea8ed4eccd1bf0e4f8210
4,000
py
Python
server/app/commits/views.py
jialin-wu-02/aimde
7a8795df7f9df3be3bb607e5f7888731da837fde
[ "MIT" ]
null
null
null
server/app/commits/views.py
jialin-wu-02/aimde
7a8795df7f9df3be3bb607e5f7888731da837fde
[ "MIT" ]
null
null
null
server/app/commits/views.py
jialin-wu-02/aimde
7a8795df7f9df3be3bb607e5f7888731da837fde
[ "MIT" ]
null
null
null
import json import os import time from flask import Blueprint, jsonify, request, \ abort, make_response, send_from_directory from flask_restful import Api, Resource from app import App from app.commits.models import Commit, Tag from app.commits.utils import get_commits from services.executables.action import Acti...
30.075188
80
0.5675
fe0db5ca8accc2f8bb6b38f728c0f269233657e5
1,802
py
Python
chapter/six_exercises.py
sloscal1/ML-Prob-Perspective
3474faf8559cc2229426ab773460000c6c40fbb3
[ "MIT" ]
null
null
null
chapter/six_exercises.py
sloscal1/ML-Prob-Perspective
3474faf8559cc2229426ab773460000c6c40fbb3
[ "MIT" ]
null
null
null
chapter/six_exercises.py
sloscal1/ML-Prob-Perspective
3474faf8559cc2229426ab773460000c6c40fbb3
[ "MIT" ]
null
null
null
def question_1(): r""" Pessimism of LOOCV. I didn't like the question because I thought it was a little too open... You want to show that LOOCV can be a really bad estimate of error in some situations. For example, if you have a random class label that you're trying to predict (binary, equal proportions), ...
64.357143
119
0.746948
40355fe20bdfab65f42f2f5a3e63016466e69c50
6,645
py
Python
mars/dataframe/datastore/to_vineyard.py
perfumescent/mars
9bf9bb990587cb9f091d108ed7f725fb429a80e8
[ "Apache-2.0" ]
null
null
null
mars/dataframe/datastore/to_vineyard.py
perfumescent/mars
9bf9bb990587cb9f091d108ed7f725fb429a80e8
[ "Apache-2.0" ]
null
null
null
mars/dataframe/datastore/to_vineyard.py
perfumescent/mars
9bf9bb990587cb9f091d108ed7f725fb429a80e8
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.252577
75
0.60301
23090a7d9da1f9820b4f38d4a685aa98dc6a70c3
2,966
py
Python
tests/trainer/dynamic_args/test_multiple_optimizers.py
nahidgrid/pytorch-lightning
60bf48d3e0ee26ebafd7a98ad96c86ba304d4533
[ "Apache-2.0" ]
null
null
null
tests/trainer/dynamic_args/test_multiple_optimizers.py
nahidgrid/pytorch-lightning
60bf48d3e0ee26ebafd7a98ad96c86ba304d4533
[ "Apache-2.0" ]
null
null
null
tests/trainer/dynamic_args/test_multiple_optimizers.py
nahidgrid/pytorch-lightning
60bf48d3e0ee26ebafd7a98ad96c86ba304d4533
[ "Apache-2.0" ]
null
null
null
from pytorch_lightning import Trainer from tests.base.boring_model import BoringModel import torch def test_multiple_optimizers(tmpdir): """ Tests that only training_step can be used """ class TestModel(BoringModel): def on_train_epoch_start(self) -> None: self.opt_0_seen = False ...
29.366337
74
0.604181
08797a4125d0a3a087bc36e4ce13a299670b843a
3,374
py
Python
third_party/logilab/common/urllib2ext.py
yetu/repotools
1f52004a33ee27f539bb4c831b8e8a37751550a8
[ "BSD-3-Clause" ]
45
2015-10-12T10:02:11.000Z
2021-12-14T07:10:47.000Z
pylibs/logilab/common/urllib2ext.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
pylibs/logilab/common/urllib2ext.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
38
2016-06-25T05:57:35.000Z
2021-12-30T04:58:10.000Z
import logging import urllib2 import kerberos as krb class GssapiAuthError(Exception): """raised on error during authentication process""" import re RGX = re.compile('(?:.*,)*\s*Negotiate\s*([^,]*),?', re.I) def get_negociate_value(headers): for authreq in headers.getheaders('www-authenticate'): mat...
38.340909
99
0.624185
dce1a6530be3c7b4d2c0d9c63a7ec68a30f351fa
411
py
Python
inventory/urls.py
kissops/ERPv
e5772f5e254d178bb29661d22401c9edcb6067ce
[ "MIT" ]
2
2019-07-25T10:58:59.000Z
2020-11-08T02:32:44.000Z
inventory/urls.py
kissops/ERPv-server
e5772f5e254d178bb29661d22401c9edcb6067ce
[ "MIT" ]
21
2021-01-01T14:08:41.000Z
2021-09-01T16:04:20.000Z
inventory/urls.py
kissops/ERPv-server
e5772f5e254d178bb29661d22401c9edcb6067ce
[ "MIT" ]
1
2020-10-05T03:35:28.000Z
2020-10-05T03:35:28.000Z
from django.urls import path, include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register(r"warehouses", views.WarehouseViewSet) router.register(r"products", views.ProductViewSet) router.register(r"locations", views.LocationViewSet) router.register(r"location_q...
34.25
70
0.815085
e2fd6fc17aa88d1b6bd2ef10480a8924bcec4d39
679
py
Python
models/load_pretrained_crnn.py
Armyke/crnn.pytorch
3cba2d626d29c299f0204fc50f0c80b7bbc6315d
[ "MIT" ]
null
null
null
models/load_pretrained_crnn.py
Armyke/crnn.pytorch
3cba2d626d29c299f0204fc50f0c80b7bbc6315d
[ "MIT" ]
null
null
null
models/load_pretrained_crnn.py
Armyke/crnn.pytorch
3cba2d626d29c299f0204fc50f0c80b7bbc6315d
[ "MIT" ]
null
null
null
import torch from models import crnn as crnn def load_model(model_path, nh, alphabet='abcdefghijklmnopqrstuvwxyz'): # initialize crnn model model = crnn.CRNN(32, 1, len(alphabet) + 1, nh) # load model try: model.load_state_dict(torch.load(model_path, map_location='cpu')) except Exceptio...
24.25
73
0.661267
20734fbb8ff295d38c83047b642ddcd5f6c4f2d2
1,997
py
Python
model/model.py
AnuroopKeshav/NaiveBayesClassifier
f7f3a032426ede778cb4382dfd7a19465994a6b9
[ "MIT" ]
1
2022-01-22T07:07:52.000Z
2022-01-22T07:07:52.000Z
model/model.py
AnuroopKeshav/NaiveBayesClassifier
f7f3a032426ede778cb4382dfd7a19465994a6b9
[ "MIT" ]
null
null
null
model/model.py
AnuroopKeshav/NaiveBayesClassifier
f7f3a032426ede778cb4382dfd7a19465994a6b9
[ "MIT" ]
null
null
null
import numpy as np import scipy.stats as sp class NaiveBayesClassifier: # Grouping entries based on different discrete resultant values def groupClasses(self) -> None: self.classes = {} for entry in range(len(self.resultant_vector_train)): if self.resultant_vector_train[entry] not...
40.755102
129
0.685528
0bcec87e02b054687b0e775bf9f09d112847f7ae
1,433
py
Python
disk/tests/conftest.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
null
null
null
disk/tests/conftest.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
4
2019-07-03T02:53:19.000Z
2019-07-10T14:52:14.000Z
disk/tests/conftest.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
1
2019-12-23T13:35:17.000Z
2019-12-23T13:35:17.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import mock import pytest from datadog_checks.dev.utils import ON_WINDOWS, mock_context_manager from .metrics import CORE_GAUGES, CORE_RATES, UNIX_GAUGES from .mocks import MockDiskIOMetrics, MockDiskMetrics, Mo...
27.557692
113
0.7418
7ac57f4ac112977ef18454787f72d5ebd91f6405
918
py
Python
dtlpy/services/__init__.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
10
2020-05-21T06:25:35.000Z
2022-01-07T20:34:03.000Z
dtlpy/services/__init__.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
22
2019-11-17T17:25:16.000Z
2022-03-10T15:14:28.000Z
dtlpy/services/__init__.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
8
2020-03-05T16:23:55.000Z
2021-12-27T11:10:42.000Z
#! /usr/bin/env python3 # This file is part of DTLPY. # # DTLPY 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 License, or # (at your option) any later version. # # DTLPY is distribute...
41.727273
70
0.784314
dbfc0777dccec83e3541b173c7c4aef3a48f85df
5,385
py
Python
nchs_mortality/delphi_nchs_mortality/run.py
JedGrabman/covidcast-indicators
d2a5a232431c8392c54bfc301dcb9beecc541b97
[ "MIT" ]
null
null
null
nchs_mortality/delphi_nchs_mortality/run.py
JedGrabman/covidcast-indicators
d2a5a232431c8392c54bfc301dcb9beecc541b97
[ "MIT" ]
null
null
null
nchs_mortality/delphi_nchs_mortality/run.py
JedGrabman/covidcast-indicators
d2a5a232431c8392c54bfc301dcb9beecc541b97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Functions to call when running the function. This module should contain a function called `run_module`, that is executed when the module is run with `python -m MODULE_NAME`. """ from datetime import datetime, date, timedelta from os.path import join from os import remove, listdir from shutil...
36.632653
91
0.633612
4be7961643c539131be63a5072d52ff7052a40d1
6,832
py
Python
ekorpkit/models/tokenizer/trainer.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
4
2022-02-26T10:54:16.000Z
2022-02-26T11:01:56.000Z
ekorpkit/models/tokenizer/trainer.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
1
2022-03-25T06:37:12.000Z
2022-03-25T06:45:53.000Z
ekorpkit/models/tokenizer/trainer.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
import os import logging from tokenizers import BertWordPieceTokenizer, ByteLevelBPETokenizer from transformers import ( WEIGHTS_NAME, AutoConfig, AutoModelWithLMHead, AutoTokenizer, BertConfig, BertForMaskedLM, BertTokenizer, BigBirdConfig, BigBirdForMaskedLM, BigBirdTokenizer, ...
34.331658
148
0.645785
2f560c671d6d1bc64e20ec81b6f2361e10920c4a
5,078
py
Python
mewgram/settings.py
glasnt/mewgram
cd31df84d313c0edb452336a6b014428c110a2fc
[ "BSD-3-Clause" ]
null
null
null
mewgram/settings.py
glasnt/mewgram
cd31df84d313c0edb452336a6b014428c110a2fc
[ "BSD-3-Clause" ]
2
2020-06-28T04:12:52.000Z
2021-06-09T19:13:32.000Z
mewgram/settings.py
glasnt/mewgram
cd31df84d313c0edb452336a6b014428c110a2fc
[ "BSD-3-Clause" ]
2
2020-07-01T04:30:32.000Z
2021-05-14T12:09:46.000Z
import io import logging import os import sys from pathlib import Path import environ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve(strict=True).parent.parent # Two modes: local dev, and prod. # Local dev: have a .env file, use local settings. # Prod: Google auth,...
27.597826
91
0.687672
75ef17677c2d50afe7b66b96c5f056f973a3cbc5
11,203
py
Python
api_1.4/containerd/services/images/v1/images_pb2_grpc.py
englandbaron/pycontainerd
9e5fea6e182a80508ce8b5725f407e50beba3cfe
[ "Apache-2.0" ]
null
null
null
api_1.4/containerd/services/images/v1/images_pb2_grpc.py
englandbaron/pycontainerd
9e5fea6e182a80508ce8b5725f407e50beba3cfe
[ "Apache-2.0" ]
null
null
null
api_1.4/containerd/services/images/v1/images_pb2_grpc.py
englandbaron/pycontainerd
9e5fea6e182a80508ce8b5725f407e50beba3cfe
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from containerd.services.images.v1 import images_pb2 as containerd_dot_services_dot_images_dot_v1_dot_images__pb2 from google.protobuf import empty_pb2 as google...
47.470339
136
0.701241
3309d468eaa83324b274f4269e5a43fe04d84794
8,824
py
Python
singa_auto/container/docker_swarm.py
pinpom/singa-auto
e5b80c4728ee65fd0bd7ab15d59ab5621ccc50b1
[ "Apache-2.0" ]
1
2020-10-26T11:37:26.000Z
2020-10-26T11:37:26.000Z
singa_auto/container/docker_swarm.py
pinpom/singa-auto
e5b80c4728ee65fd0bd7ab15d59ab5621ccc50b1
[ "Apache-2.0" ]
null
null
null
singa_auto/container/docker_swarm.py
pinpom/singa-auto
e5b80c4728ee65fd0bd7ab15d59ab5621ccc50b1
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
35.869919
93
0.608908
0b882adafd99179b25f0ff63d29baf0ead2ff130
835
py
Python
src/templates/gRPC-api/tests/test_server.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
4
2022-02-08T12:37:49.000Z
2022-03-29T04:45:10.000Z
src/templates/gRPC-api/tests/test_server.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
26
2022-02-08T12:48:52.000Z
2022-03-28T08:58:47.000Z
src/templates/gRPC-api/tests/test_server.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
1
2022-03-16T12:57:24.000Z
2022-03-16T12:57:24.000Z
# Copyright (c) 2022, Ansys Inc. Unauthorised use, distribution or duplication is prohibited from src.stubs.pingserver_pb2 import UserRequest, EmptyRequest class TestServer: def test_first_ping(self, grpc_stub): request = EmptyRequest() response = grpc_stub.PingServer(request) assert respo...
41.75
97
0.706587
5b824a5c29663b245ee53b29325811b5d2bf48ae
16,001
py
Python
fitbenchmarking/parsing/tests/test_parsers.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
6
2019-07-22T01:56:10.000Z
2021-12-10T05:29:30.000Z
fitbenchmarking/parsing/tests/test_parsers.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
677
2019-04-29T10:23:49.000Z
2022-03-22T12:01:30.000Z
fitbenchmarking/parsing/tests/test_parsers.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
8
2019-06-13T10:32:17.000Z
2020-12-09T15:08:40.000Z
""" This file contains tests for the parsers. """ from importlib import import_module from inspect import isclass, isabstract, getmembers from json import load import os from unittest import TestCase from pytest import test_type as TEST_TYPE # pylint: disable=no-name-in-module import numpy as np from fitbenchmarking...
38.743341
79
0.574277
d9ca2d113f84680a4c8893f5d1f0e67f3be2ef10
11,067
py
Python
galaxy/api/filters.py
smrutikanta/ansible-galaxy
2492e83a3551681a7b95bdfffb66d51a2a2f42ec
[ "Apache-2.0" ]
null
null
null
galaxy/api/filters.py
smrutikanta/ansible-galaxy
2492e83a3551681a7b95bdfffb66d51a2a2f42ec
[ "Apache-2.0" ]
null
null
null
galaxy/api/filters.py
smrutikanta/ansible-galaxy
2492e83a3551681a7b95bdfffb66d51a2a2f42ec
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
39.106007
96
0.542514
0a011139b947d9b233edbd38b9487dff9a677e03
2,313
py
Python
src/foxdot/release/what_there_is/the_ashes.vr_001.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
4
2018-06-29T18:39:34.000Z
2021-06-20T16:44:29.000Z
src/foxdot/release/what_there_is/the_ashes.vr_001.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
null
null
null
src/foxdot/release/what_there_is/the_ashes.vr_001.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
null
null
null
Scale.default = Scale.minor Root.default = 0 Clock.bpm = 80 chords = P[5,0,3,0] var.ch1 = var(chords,1) var.ch2 = var(chords,2) var.ch4 = var(chords,4) var.ch8 = var(chords,8) s1 >> charm(var.ch1, amp=.8, dur=PDur(3,8)*(1,2), chop=2, lpf=800, oct=4, formant=.25, room=1, mix=.25).spread() s2 >> ambi(chords, amp=.8, d...
31.684932
133
0.573714
a09950f1cf1f8782d0a71cd639b762a87beb93a2
5,657
py
Python
qiskit/tools/jupyter/job_widgets.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
3
2019-05-19T17:39:38.000Z
2020-01-28T19:59:18.000Z
qiskit/tools/jupyter/job_widgets.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
qiskit/tools/jupyter/job_widgets.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
1
2021-07-07T16:55:41.000Z
2021-07-07T16:55:41.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # 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...
36.496774
94
0.53067
dab8ce1a09bdb9cdbbdaa2b76e15e41ad830863b
155
py
Python
delivery/tests/conftest.py
raiizoor/Python
9c1184cae21eb725a6ee2f0881e93527c888839a
[ "Unlicense" ]
1
2020-07-21T05:17:20.000Z
2020-07-21T05:17:20.000Z
delivery/tests/conftest.py
es99/curso-flask
03446ccc89894a2c4f2d1c14d0040e80d2226d9e
[ "Unlicense" ]
3
2021-02-11T02:31:31.000Z
2021-12-29T22:13:18.000Z
delivery/tests/conftest.py
es99/curso-flask
03446ccc89894a2c4f2d1c14d0040e80d2226d9e
[ "Unlicense" ]
1
2021-01-20T20:23:12.000Z
2021-01-20T20:23:12.000Z
import pytest from delivery.app import create_app @pytest.fixture(scope="module") def app(): """Instance of Main flask app""" return create_app()
19.375
36
0.716129
7fe4e9bb1eb8539840bd649bbc7be25b9b6c2ea5
44,094
py
Python
me2ushop/models.py
Dogechi/Me2U
0852600983dc1058ee347f4065ee801e16c1249e
[ "MIT" ]
null
null
null
me2ushop/models.py
Dogechi/Me2U
0852600983dc1058ee347f4065ee801e16c1249e
[ "MIT" ]
9
2020-06-06T01:16:25.000Z
2021-06-04T23:20:37.000Z
me2ushop/models.py
Dogechi/Me2U
0852600983dc1058ee347f4065ee801e16c1249e
[ "MIT" ]
null
null
null
import collections import decimal import itertools from ckeditor.fields import RichTextField from ckeditor_uploader.fields import RichTextUploadingField from django.conf import settings from django.core.cache import cache from django.core.validators import MinValueValidator from django.db import models from django.sho...
38.209705
121
0.608654
94c267fd288a2997cca3b6eabf2961f55ecc3863
655
py
Python
catalog/bindings/gmd/abstract_curve_segment_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/abstract_curve_segment_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/abstract_curve_segment_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class AbstractCurveSegmentType: num_derivatives_at_start: int = field( default=0, metadata={ "name": "numDerivativesAtStart", "type": "Attribute", }, ) num_deri...
22.586207
44
0.548092
9c527fa820d2c49bd2542b669b26abd377c7d033
1,512
py
Python
apps/monitor/views/newsblur_feeds.py
louis-pre/NewsBlur
b4e9a56041ff187ef77b38dfd0778daf41b53f4f
[ "MIT" ]
3,073
2015-01-01T07:20:18.000Z
2022-03-31T20:33:41.000Z
apps/monitor/views/newsblur_feeds.py
louis-pre/NewsBlur
b4e9a56041ff187ef77b38dfd0778daf41b53f4f
[ "MIT" ]
1,054
2015-01-02T13:32:35.000Z
2022-03-30T04:21:21.000Z
apps/monitor/views/newsblur_feeds.py
louis-pre/NewsBlur
b4e9a56041ff187ef77b38dfd0778daf41b53f4f
[ "MIT" ]
676
2015-01-03T16:40:29.000Z
2022-03-30T14:00:40.000Z
from django.views import View from django.shortcuts import render from apps.rss_feeds.models import Feed from apps.reader.models import UserSubscription from apps.social.models import MSocialProfile, MSocialSubscription from apps.statistics.models import MStatistics class Feeds(View): def get(self, request): ...
35.162791
98
0.651455
5ae2788d0eecd613e821cc8b8a91d6d65c92af05
155,951
py
Python
salt/states/file.py
lyft/salt
2715908423a412f736253d0e5d3cfe185a0179a2
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/states/file.py
lyft/salt
2715908423a412f736253d0e5d3cfe185a0179a2
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/states/file.py
lyft/salt
2715908423a412f736253d0e5d3cfe185a0179a2
[ "Apache-2.0" ]
1
2017-01-27T21:33:36.000Z
2017-01-27T21:33:36.000Z
# -*- coding: utf-8 -*- ''' Operations on regular files, special files, directories, and symlinks ===================================================================== Salt States can aggressively manipulate files on a system. There are a number of ways in which files can be managed. Regular files can be enforced wit...
34.028148
117
0.546447
118f9ee70742aa18dd6993c5f0f11ed4f9624adf
1,878
py
Python
doujin-eromanga-com/utils/make_buynum_tag_url.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
16
2018-02-06T14:43:41.000Z
2021-01-23T05:07:33.000Z
doujin-eromanga-com/utils/make_buynum_tag_url.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
null
null
null
doujin-eromanga-com/utils/make_buynum_tag_url.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
4
2018-01-16T13:50:43.000Z
2019-12-16T19:45:54.000Z
import glob import re import json import MeCab import pandas as pd import sys tags = { tag for tag, hashs in json.load(open('tag_hashs.json')).items() } m = MeCab.Tagger('-Owakati') data = [] for fn in glob.glob('./data/*'): #print(fn) obj = json.load(open(fn)) #print(obj) star = re.search(r'(\d|,){1,}', obj['...
26.828571
74
0.616613
8ff6eb20b1cffc94fc7c8c688ae611835c6de83e
6,037
py
Python
endorsement/dao/endorse.py
uw-it-aca/service-endorsement
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
[ "Apache-2.0" ]
3
2017-10-16T17:19:32.000Z
2019-07-31T22:31:48.000Z
endorsement/dao/endorse.py
uw-it-aca/service-endorsement
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
[ "Apache-2.0" ]
284
2016-06-17T18:21:31.000Z
2022-03-21T16:55:03.000Z
endorsement/dao/endorse.py
uw-it-aca/service-endorsement
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.utils import timezone from django.conf import settings from endorsement.dao.uwnetid_categories import ( set_active_category, set_former_category) from endorsement.dao.uwnetid_subscriptions import ( activate_subscr...
34.301136
77
0.680305
b561aa1c468ec292302d9d1ffdeb0c6545179155
2,916
py
Python
src/data_visualization.py
alu13/GCP_Exploration
872d38b133e246c0e28be985c3138db75b84496d
[ "MIT" ]
null
null
null
src/data_visualization.py
alu13/GCP_Exploration
872d38b133e246c0e28be985c3138db75b84496d
[ "MIT" ]
null
null
null
src/data_visualization.py
alu13/GCP_Exploration
872d38b133e246c0e28be985c3138db75b84496d
[ "MIT" ]
null
null
null
from heapq import nlargest import json from matplotlib import pyplot as plt import os import statistics from collections import Counter import numpy as np print(os.getcwd()) # This function converts a JSON of typically model scores to a bar chart def json_to_bar(path, N): with open(path) as json_file: dic...
31.354839
75
0.640604
5da0df0e983e68993c5d59481715f7989823a5a5
1,446
py
Python
panda/examples/can_logger.py
Shorrts/raspberry-pilot
84bd2e7dc0c9142a420999ed527b8abbd14e0d34
[ "MIT" ]
114
2020-02-24T14:18:01.000Z
2022-03-19T03:42:00.000Z
panda/examples/can_logger.py
Shorrts/raspberry-pilot
84bd2e7dc0c9142a420999ed527b8abbd14e0d34
[ "MIT" ]
15
2020-02-25T03:37:44.000Z
2021-09-08T01:51:15.000Z
panda/examples/can_logger.py
Shorrts/raspberry-pilot
84bd2e7dc0c9142a420999ed527b8abbd14e0d34
[ "MIT" ]
55
2020-02-24T09:43:04.000Z
2022-02-15T04:52:00.000Z
#!/usr/bin/env python3 import binascii import csv import sys from panda import Panda def can_logger(): try: print("Trying to connect to Panda over USB...") p = Panda() except AssertionError: print("USB connection failed. Trying WiFi...") try: p = Panda("WIFI") except: print("WiF...
26.290909
145
0.612033
7b4d159445da6fe08af1094b9c28349dee1318ca
1,285
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/WindowsFormsSection.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/WindowsFormsSection.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/WindowsFormsSection.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class WindowsFormsSection(ConfigurationSection): """ Defines a new System.Configuration.ConfigurationSection for parsing application settings. This class cannot be inherited. WindowsFormsSection() """ ElementProperty = property( lambda self: object(), lambda self, v: None, lambda self:...
25.7
150
0.678599
714e8f9f594f0c1633b1be64c4b4bd52c00f0ab9
431
py
Python
deepmerge/strategy/fallback.py
toumorokoshi/deepmerge
ee73250516228013b5aa6be9f8b1d908099fcd56
[ "MIT" ]
95
2017-02-04T21:14:03.000Z
2022-03-14T09:04:19.000Z
deepmerge/strategy/fallback.py
sthagen/deepmerge
4ac5ff666d06cb072ff200ff4255d86d950b71a4
[ "MIT" ]
14
2018-03-20T05:38:38.000Z
2022-02-15T06:24:30.000Z
deepmerge/strategy/fallback.py
sthagen/deepmerge
4ac5ff666d06cb072ff200ff4255d86d950b71a4
[ "MIT" ]
20
2017-02-03T08:29:59.000Z
2022-03-14T09:06:57.000Z
from .core import StrategyList class FallbackStrategies(StrategyList): """ The StrategyList containing fallback strategies. """ NAME = "fallback" @staticmethod def strategy_override(config, path, base, nxt): """use nxt, and ignore base.""" return nxt @staticmethod de...
21.55
55
0.640371
000888c62a546450a00b07c9c571e249ddedc0f2
1,031
py
Python
attalos/evaluation/densecap/scripts/pretty.py
millertime145/attalos
dbb7994928cfb5f3a338eb5faa4bd3c3fcda5e84
[ "Apache-2.0" ]
101
2016-06-03T00:15:52.000Z
2021-11-12T11:57:46.000Z
attalos/evaluation/densecap/scripts/pretty.py
millertime145/attalos
dbb7994928cfb5f3a338eb5faa4bd3c3fcda5e84
[ "Apache-2.0" ]
70
2016-05-27T21:05:33.000Z
2017-08-09T05:13:45.000Z
attalos/evaluation/densecap/scripts/pretty.py
millertime145/attalos
dbb7994928cfb5f3a338eb5faa4bd3c3fcda5e84
[ "Apache-2.0" ]
46
2016-05-27T16:19:20.000Z
2019-06-24T12:37:22.000Z
def print_list_to_columns(words, items_per_row=5): """function to print a list of words in column format Parameters ---------- words : list list of words or terms to print items_per_row : int number of words in a row """ row = [] width = max(map(len, words)) + 2 ...
25.775
70
0.56741
2371488e67aed2ac2233713987949209739bae1a
1,506
py
Python
stellar_sdk/xdr/thresholds.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
null
null
null
stellar_sdk/xdr/thresholds.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
27
2022-01-12T10:55:38.000Z
2022-03-28T01:38:24.000Z
stellar_sdk/xdr/thresholds.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
2
2021-12-02T12:42:03.000Z
2021-12-07T20:53:10.000Z
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from ..type_checked import type_checked from .base import Opaque __all__ = ["Thresholds"] @type_checked class Thresholds: """ XDR Source Code:: typedef opaqu...
26.421053
61
0.65405
3068d9910a23a6982b477cd1fde50f89cce082af
350
py
Python
script/fix_questionstyle.py
xziyue/PRML_Project
989580d9db2101ccc8b6b2652291a2d3546b55ff
[ "MIT" ]
1
2019-12-11T14:33:12.000Z
2019-12-11T14:33:12.000Z
script/fix_questionstyle.py
xziyue/PRML_Project
989580d9db2101ccc8b6b2652291a2d3546b55ff
[ "MIT" ]
null
null
null
script/fix_questionstyle.py
xziyue/PRML_Project
989580d9db2101ccc8b6b2652291a2d3546b55ff
[ "MIT" ]
null
null
null
from script.util import * import re # this substitution will be used when all solutions are finished root = os.path.split(os.getcwd())[0] toc = GetAnswerTOC(root) tex = toc['tex'] testString = r'123ji\prmlstyle{1.12} ' for key, val in tex.items(): text = None with open(val, 'r') as infile: text = i...
20.588235
64
0.66
682e0763aca2faee9a492d5e25bfb7582da36f94
2,724
py
Python
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/create_subnet_request_body.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/create_subnet_request_body.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/create_subnet_request_body.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "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 CreateSubnetRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the ...
25.222222
74
0.541116
41924ce1b40bbf88a00ed3e139cec7909606c77f
1,149
py
Python
allauth/socialaccount/providers/stackexchange_provider/provider.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/stackexchange_provider/provider.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/stackexchange_provider/provider.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2_provider.provider import OAuth2Provider class StackExchangeAccount(ProviderAccount): def get_profile_url(self): return self.account.extra_data.get("html_url") def get_avatar_url(self): ...
30.236842
83
0.706701
a91961e5831d289a7e9a6bb813845c0177c013fd
509
py
Python
csv__examples/writer_list_of_dict.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
csv__examples/writer_list_of_dict.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
csv__examples/writer_list_of_dict.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://docs.python.org/3/library/csv.html#csv.DictWriter # SOURCE: https://stackoverflow.com/a/3087011/5909792 import csv items = [ {'name': 'bob', 'age': 25, 'weight': 200}, {'name': 'jim', 'age': 31, 'weight': 180} ] keys...
22.130435
67
0.636542
7bbf10f44d8d5ced3a55a8c59dcaf3d2ddcff8c7
570
py
Python
Dataset_cancer.py
Kiminwoo/Machine-Running-Exercises
eff025564a6895f3a060e278599129026f6204d5
[ "MIT" ]
1
2019-03-23T07:00:37.000Z
2019-03-23T07:00:37.000Z
Dataset_cancer.py
Kiminwoo/Machine-Running-Exercises
eff025564a6895f3a060e278599129026f6204d5
[ "MIT" ]
null
null
null
Dataset_cancer.py
Kiminwoo/Machine-Running-Exercises
eff025564a6895f3a060e278599129026f6204d5
[ "MIT" ]
1
2019-07-12T18:15:11.000Z
2019-07-12T18:15:11.000Z
# * cancer 데이터셋 : 위스콘신 유방암 데이터셋. 유방암 종양의 임상 데이터가 기록된 실제 데이터셋. # 569개의 데이터와 30개의 특성을 가진다. 그중 212개는 악성이고 357개는 양성이다. import scipy as sp import numpy as np import matplotlib.pyplot as plt import pandas as pd import mglearn from sklearn.datasets import load_breast_cancer cancer = load_breast_cancer() print("ca...
35.625
78
0.710526
bfcfff5f7918c8215575dc91d82361cfea396ba3
4,008
py
Python
tests/test_serializer.py
mariocesar/quill-delta-py
06dda55bfa91d4bded0f904eb7e7bbc56aee072c
[ "MIT" ]
2
2018-02-14T19:04:23.000Z
2018-02-15T12:15:26.000Z
tests/test_serializer.py
mariocesar/quill-delta-py
06dda55bfa91d4bded0f904eb7e7bbc56aee072c
[ "MIT" ]
1
2018-12-12T13:10:01.000Z
2018-12-13T13:54:22.000Z
tests/test_serializer.py
mariocesar/quill-delta-py
06dda55bfa91d4bded0f904eb7e7bbc56aee072c
[ "MIT" ]
null
null
null
import unittest import pytest from quilldelta import Delete, Delta, Insert, Retain from quilldelta.types import load_operation class TestParser: def test_insert_from_dict(self): assert load_operation({'insert': 1}) == Insert(1, None) assert load_operation({'insert': 'foo'}) == Insert('foo', None...
32.064
80
0.498503
6caf9b66059aa4d9d963c3224053c8f23375751d
2,263
py
Python
densephrases/scripts/dump/save_meta.py
Pranav174/DensePhrases
0f3ad63107d7c09b81218b1e77dcc31325b61450
[ "Apache-2.0" ]
331
2021-03-31T11:14:55.000Z
2022-03-28T04:18:52.000Z
densephrases/scripts/dump/save_meta.py
ss756/DensePhrases
5c5465100112ec5267a7ba06eea5765ea494b365
[ "Apache-2.0" ]
17
2021-06-04T19:14:53.000Z
2021-12-22T06:10:15.000Z
densephrases/scripts/dump/save_meta.py
ss756/DensePhrases
5c5465100112ec5267a7ba06eea5765ea494b365
[ "Apache-2.0" ]
40
2021-04-12T09:53:00.000Z
2022-03-23T10:56:54.000Z
import argparse import os import h5py import torch from tqdm import tqdm def get_range(name): # name = name.replace('_tfidf', '') return list(map(int, os.path.splitext(name)[0].split('-'))) def find_name(names, pos): for name in names: start, end = get_range(name) assert start != end, 'y...
29.012821
107
0.590809
b38d553c850fdcbfc6ca9d112524269b92d0a8c0
4,689
py
Python
test/integration/025_duplicate_model_test/test_duplicate_model.py
tjengel/dbt
f985902a002fba36f6f709c6aacf9ae20778e58c
[ "Apache-2.0" ]
1
2021-09-01T20:50:52.000Z
2021-09-01T20:50:52.000Z
test/integration/025_duplicate_model_test/test_duplicate_model.py
tjengel/dbt
f985902a002fba36f6f709c6aacf9ae20778e58c
[ "Apache-2.0" ]
1
2019-10-28T15:33:04.000Z
2019-10-28T15:33:04.000Z
test/integration/025_duplicate_model_test/test_duplicate_model.py
tjengel/dbt
f985902a002fba36f6f709c6aacf9ae20778e58c
[ "Apache-2.0" ]
2
2019-05-10T21:23:08.000Z
2021-06-09T01:28:37.000Z
from dbt.exceptions import CompilationException from test.integration.base import DBTIntegrationTest, use_profile class TestDuplicateModelEnabled(DBTIntegrationTest): @property def schema(self): return "duplicate_model_025" @property def models(self): return "models-1" @property...
29.30625
93
0.516528
561d183b6ec68826ce275c6fef47c16a07d7ed62
424
py
Python
leadmanager/accounts/urls.py
epoyepoy/lead-manager
db9bd76c3549a5f794af63b5583659d3d6e0e510
[ "MIT" ]
null
null
null
leadmanager/accounts/urls.py
epoyepoy/lead-manager
db9bd76c3549a5f794af63b5583659d3d6e0e510
[ "MIT" ]
null
null
null
leadmanager/accounts/urls.py
epoyepoy/lead-manager
db9bd76c3549a5f794af63b5583659d3d6e0e510
[ "MIT" ]
null
null
null
from django.urls import path, include from .api import RegisterAPI, LoginAPI, UserAPI from knox import views as knox_views urlpatterns = [ path('api/auth', include('knox.urls')), path('api/auth/register', RegisterAPI.as_view()), path('api/auth/login', LoginAPI.as_view()), path('api/auth/user', UserAPI....
32.615385
61
0.693396
e3c8a6dc433739546a19226d5e3070dddb2f26b1
19,697
py
Python
components/partition_table/gen_esp32part.py
ghsecuritylab/esp_alexa_idf
e132e8b960af6d576ce2fca4f6b2994be2f42e56
[ "Apache-2.0" ]
24
2019-03-16T05:34:52.000Z
2020-06-20T08:08:37.000Z
components/partition_table/gen_esp32part.py
ghsecuritylab/esp_alexa_idf
e132e8b960af6d576ce2fca4f6b2994be2f42e56
[ "Apache-2.0" ]
10
2021-03-09T15:34:26.000Z
2022-02-26T17:34:35.000Z
components/partition_table/gen_esp32part.py
ghsecuritylab/esp_alexa_idf
e132e8b960af6d576ce2fca4f6b2994be2f42e56
[ "Apache-2.0" ]
16
2019-03-25T06:03:30.000Z
2020-07-18T23:44:28.000Z
#!/usr/bin/env python # # ESP32 partition table generation tool # # Converts partition tables to/from CSV and binary formats. # # See https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/partition-tables.html # for explanation of partition table structure and uses. # # Copyright 2015-2016 Espressif Systems ...
38.321012
219
0.584861
605ede8a124cbf08f682eab9a5bb1a6b0c8e5d38
13,600
py
Python
healthcare/api-client/fhir/fhir_resources_test.py
apecr/python-docs-samples
26b581bb6ce148e13a9c7f2cd801f138b8aa8412
[ "Apache-2.0" ]
1
2020-06-04T16:50:49.000Z
2020-06-04T16:50:49.000Z
healthcare/api-client/fhir/fhir_resources_test.py
apecr/python-docs-samples
26b581bb6ce148e13a9c7f2cd801f138b8aa8412
[ "Apache-2.0" ]
null
null
null
healthcare/api-client/fhir/fhir_resources_test.py
apecr/python-docs-samples
26b581bb6ce148e13a9c7f2cd801f138b8aa8412
[ "Apache-2.0" ]
1
2020-05-29T20:33:18.000Z
2020-05-29T20:33:18.000Z
# Copyright 2018 Google LLC 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 ag...
25.954198
90
0.671838
bceefc277ee44ab6c4f5543ed2fbaec962996d98
7,842
py
Python
contrib/bitrpc/bitrpc.py
bitmxittz/Bitmxittz2
f4fdd17c09fdee79feea729bb81b3b99862423f7
[ "MIT" ]
1
2017-12-22T15:32:01.000Z
2017-12-22T15:32:01.000Z
contrib/bitrpc/bitrpc.py
bitmxittz/Bitmxittz2
f4fdd17c09fdee79feea729bb81b3b99862423f7
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
bitmxittz/Bitmxittz2
f4fdd17c09fdee79feea729bb81b3b99862423f7
[ "MIT" ]
1
2019-05-30T14:10:31.000Z
2019-05-30T14:10:31.000Z
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:14432") else: access = Se...
24.129231
79
0.668452
d9ad0fb8916c59d43659f4efd575cefba82bbe23
3,928
py
Python
lib/spack/spack/cmd/dev_build.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
lib/spack/spack/cmd/dev_build.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
lib/spack/spack/cmd/dev_build.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-15T02:37:59.000Z
2020-09-21T04:34:38.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys import os import llnl.util.tty as tty import spack.config import spack.cmd import spack.cmd.common.arguments ...
36.036697
79
0.677444
27d6c596957bd137565ac19d5744d635afb3b8a6
1,841
py
Python
biodata/api/mutations.py
znatty22/biodataservice
a3eeb137d2e727a0fc58437b185f2637bc4665ed
[ "Apache-2.0" ]
null
null
null
biodata/api/mutations.py
znatty22/biodataservice
a3eeb137d2e727a0fc58437b185f2637bc4665ed
[ "Apache-2.0" ]
null
null
null
biodata/api/mutations.py
znatty22/biodataservice
a3eeb137d2e727a0fc58437b185f2637bc4665ed
[ "Apache-2.0" ]
null
null
null
import graphene from biodata.api import models as m from biodata.api import objects as o class CreateStudyMutation(graphene.Mutation): class Arguments: short_name = graphene.String(required=True) name = graphene.String(required=False) study = graphene.Field(o.StudyType) def mutate(self,...
31.741379
73
0.712113
24622a9ce68a8b80af701be571d0cfdc8b85652f
1,412
py
Python
auth0/v3/management/users_by_email.py
bumplzz69/auth0-python
763f331f66eab465e2ef6654a74b48d1f4b47d9a
[ "MIT" ]
null
null
null
auth0/v3/management/users_by_email.py
bumplzz69/auth0-python
763f331f66eab465e2ef6654a74b48d1f4b47d9a
[ "MIT" ]
null
null
null
auth0/v3/management/users_by_email.py
bumplzz69/auth0-python
763f331f66eab465e2ef6654a74b48d1f4b47d9a
[ "MIT" ]
null
null
null
from .rest import RestClient class UsersByEmail(object): """Auth0 users by email endpoints Args: domain (str): Your Auth0 domain, e.g: 'username.auth0.com' token (str): Management API v2 Token telemetry (bool, optional): Enable or disable Telemetry (defaults to True) ...
30.042553
89
0.606941
f61755ac3f24324fba205e2759ca0c1bf8bd6dbc
3,059
py
Python
rule11_interruption.py
e96031413/proofread
f4fc798d3b57c6f7a55f4e18de68f2272eb9fc44
[ "MIT" ]
null
null
null
rule11_interruption.py
e96031413/proofread
f4fc798d3b57c6f7a55f4e18de68f2272eb9fc44
[ "MIT" ]
null
null
null
rule11_interruption.py
e96031413/proofread
f4fc798d3b57c6f7a55f4e18de68f2272eb9fc44
[ "MIT" ]
null
null
null
import os from color_print import * from p_arser import nlp from p_arser import sentencizer principle = color_magenta('''Writing Principle 11: Avoid interruptions between subject and verb and between verb and object. ''') example = color_cyan(''' Bad: We conclude, based on very simplified models of solar v...
35.16092
122
0.62831
7703321a0cbd9a9c4496dcab5366c448bac6f2eb
9,352
py
Python
data_generation/lumencor.py
AndrewGYork/remote_refocus
5be485e13df4b9caf71941e8e937acaf6b959348
[ "CC-BY-4.0" ]
16
2018-01-11T22:31:05.000Z
2019-07-06T12:06:37.000Z
data_generation/lumencor.py
calico/remote_refocus
7c62907eed8f27afbfe3ef07d62c7a5ea9d3c7ac
[ "CC-BY-4.0" ]
null
null
null
data_generation/lumencor.py
calico/remote_refocus
7c62907eed8f27afbfe3ef07d62c7a5ea9d3c7ac
[ "CC-BY-4.0" ]
2
2018-01-11T20:03:51.000Z
2019-02-09T20:36:28.000Z
import serial class SpectraX: """Controls Lumencor SpectraX through a serial port.""" def __init__(self, which_port, verbose=True): """Constructor for SpectraX class. Arguments: which_port -- Specify which serial port the SpectraX is connected to ...
41.93722
80
0.553785
b9e1f10935fd4f70163f71e81bd257bc2d6d1bba
1,788
py
Python
sdk/ml/azure-ai-ml/tests/test_configs/batch_setup/light_gbm_examples/python-guide/plot_example.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/tests/test_configs/batch_setup/light_gbm_examples/python-guide/plot_example.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/tests/test_configs/batch_setup/light_gbm_examples/python-guide/plot_example.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# coding: utf-8 import lightgbm as lgb import pandas as pd if lgb.compat.MATPLOTLIB_INSTALLED: import matplotlib.pyplot as plt else: raise ImportError("You need to install matplotlib for plot_example.py.") print("Loading data...") # load or create your dataset df_train = pd.read_csv("../regression/regression....
29.311475
82
0.720358
3629bb281f0a1c1ede5b90f7f598ce32b6059574
53,084
py
Python
research/object_detection/inputs_test.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
10
2020-06-30T06:43:48.000Z
2022-03-22T11:01:20.000Z
research/object_detection/inputs_test.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
10
2019-12-28T21:31:19.000Z
2020-04-12T20:01:58.000Z
research/object_detection/inputs_test.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
9
2020-03-30T02:11:52.000Z
2020-04-05T02:15:08.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.536776
81
0.69083
e9461939ec5e38edd12bf74c238f436cc873fc0f
5,426
py
Python
build/PureCloudPlatformClientV2/models/date_range_with_optional_end.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/date_range_with_optional_end.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/date_range_with_optional_end.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
34.56051
207
0.63638
9f3d583430c06ace8d37ad0aefc7a07f17a8ddee
292
py
Python
suzieq/sqobjects/ifCounters.py
ewlumpkin/suzieq
9d55a46a631f01535d5b8ab1c0b870f840bbc526
[ "Apache-2.0" ]
null
null
null
suzieq/sqobjects/ifCounters.py
ewlumpkin/suzieq
9d55a46a631f01535d5b8ab1c0b870f840bbc526
[ "Apache-2.0" ]
null
null
null
suzieq/sqobjects/ifCounters.py
ewlumpkin/suzieq
9d55a46a631f01535d5b8ab1c0b870f840bbc526
[ "Apache-2.0" ]
null
null
null
from suzieq.sqobjects.basicobj import SqObject class IfCountersObj(SqObject): def __init__(self, **kwargs): super().__init__(table='ifCounters', **kwargs) self._valid_get_args = ['namespace', 'hostname', 'columns', 'ifname', 'query_str']
32.444444
77
0.616438
df80b7003f5ee3d8e801a8d69947af261738663c
96
py
Python
.tox/py27/lib/python2.7/re.py
RGKim/locustksy
018322331d37483acf61e210302e4e1da21d719f
[ "MIT" ]
8
2019-01-14T14:49:09.000Z
2020-07-24T18:32:06.000Z
ENV/lib/python2.7/re.py
timxor/onchainjobs
61f45b1bf2f88fd9c7de90ac43932dbe01cd43b7
[ "MIT" ]
7
2018-11-26T01:07:13.000Z
2018-11-26T08:01:59.000Z
ENV/lib/python2.7/re.py
timxor/onchainjobs
61f45b1bf2f88fd9c7de90ac43932dbe01cd43b7
[ "MIT" ]
1
2019-09-01T05:47:58.000Z
2019-09-01T05:47:58.000Z
/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py
96
96
0.802083
b8afbd2ced86a49470dd704a579a10d78c158c03
19,359
py
Python
tensorflow/models/embedding/word2vec.py
285219011/hello-world
dfb71ea206eb9f61e5d97c9727caa1a6449e39cb
[ "Apache-2.0" ]
6
2017-04-25T01:30:41.000Z
2019-12-11T15:08:46.000Z
tensorflow/models/embedding/word2vec.py
PaulTR/tensorflow
84bcff1e814ee5697b5980535583737f8e81d82f
[ "Apache-2.0" ]
null
null
null
tensorflow/models/embedding/word2vec.py
PaulTR/tensorflow
84bcff1e814ee5697b5980535583737f8e81d82f
[ "Apache-2.0" ]
8
2017-04-17T23:39:12.000Z
2019-05-11T14:06: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...
36.734345
80
0.649155
4903483dd9efe44dadf1e149b59c19fa0581388f
6,916
py
Python
onnxruntime/python/tools/featurizer_ops/data_frame_tool.py
michaelgsharp/onnxruntime
da653ccdac344372052025d95cc84e93237f6f84
[ "MIT" ]
null
null
null
onnxruntime/python/tools/featurizer_ops/data_frame_tool.py
michaelgsharp/onnxruntime
da653ccdac344372052025d95cc84e93237f6f84
[ "MIT" ]
null
null
null
onnxruntime/python/tools/featurizer_ops/data_frame_tool.py
michaelgsharp/onnxruntime
da653ccdac344372052025d95cc84e93237f6f84
[ "MIT" ]
1
2020-10-01T09:26:19.000Z
2020-10-01T09:26:19.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. #-------------------------------------------------------------------------- import numpy as np import onnxruntime as onnxrt ort_float_set = set([np.f...
41.915152
121
0.640977
dd55389311667ceb97d8f7ce7a857b30070d2523
11,910
py
Python
symphony/bdk/gen/pod_model/avatar.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/pod_model/avatar.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/pod_model/avatar.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
""" Pod API This document refers to Symphony API calls that do not need encryption or decryption of content. - sessionToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined...
45.458015
637
0.578338
4e20437718718ca5e18a0b0e3ebdbc65cd30681e
1,136
py
Python
Patchport.py
zj3t/FirmAE
9b411a220966dc477df07f76c5354bdd213732ac
[ "MIT" ]
null
null
null
Patchport.py
zj3t/FirmAE
9b411a220966dc477df07f76c5354bdd213732ac
[ "MIT" ]
null
null
null
Patchport.py
zj3t/FirmAE
9b411a220966dc477df07f76c5354bdd213732ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import subprocess def command(cmd): try: result = subprocess.check_output(cmd, shell=True) result = result.decode().split('\n')[:-1] except: result = '' return result def Patchport(INDEX): os.chdir('./scripts') for i in range(1,...
22.27451
106
0.505282
a228a29e6e89415385e57a4ac3d987c0bc283403
3,017
py
Python
Original_Data/providence_tide_gage_hourly.py
ccb60/Providence_SLR
240de3a42761a5b309a86f424155720e5a6caa44
[ "MIT" ]
null
null
null
Original_Data/providence_tide_gage_hourly.py
ccb60/Providence_SLR
240de3a42761a5b309a86f424155720e5a6caa44
[ "MIT" ]
null
null
null
Original_Data/providence_tide_gage_hourly.py
ccb60/Providence_SLR
240de3a42761a5b309a86f424155720e5a6caa44
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Quick script to download Providence Tide Station data to CSV files A script is convenient because hourly data are only available on a yearly basis. @author: Curtis """ import requests from datetime import date MONTHLENGTHS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] BASE = r'https...
40.226667
99
0.598276
640fb8f59b586f7e2c012fccd1c30ed06e9f7280
481
py
Python
Train_Model/util/tokenizer_helpers.py
collinli2022/2021_June_TeenHacks
1804645c8ece1d73ea4f00ee9d7be2bfb5037e71
[ "MIT" ]
2
2020-01-29T20:35:47.000Z
2021-04-29T02:57:01.000Z
Train_Model/util/tokenizer_helpers.py
collinli2022/2021_June_TeenHacks
1804645c8ece1d73ea4f00ee9d7be2bfb5037e71
[ "MIT" ]
11
2018-12-01T00:40:25.000Z
2022-02-10T00:05:58.000Z
Train_Model/util/tokenizer_helpers.py
collinli2022/2021_June_TeenHacks
1804645c8ece1d73ea4f00ee9d7be2bfb5037e71
[ "MIT" ]
null
null
null
# Keras Tokenizer Serialization # Written by Gautam Mittal import pickle, json def save_tokenizer(filepath, tokenizer): with open(filepath, 'wb') as handle: pickle.dump(tokenizer, handle, protocol=pickle.HIGHEST_PROTOCOL) def load_tokenizer(filepath): with open(filepath, 'rb') as handle: retu...
28.294118
72
0.72973
16209d66f50cc03dd249efd7cacb5ebda93ffb94
53
py
Python
qtable/__init__.py
ihgazni2/qtable
269bb1052d7c7aeeae4d0b1024746fae38870c40
[ "MIT" ]
null
null
null
qtable/__init__.py
ihgazni2/qtable
269bb1052d7c7aeeae4d0b1024746fae38870c40
[ "MIT" ]
null
null
null
qtable/__init__.py
ihgazni2/qtable
269bb1052d7c7aeeae4d0b1024746fae38870c40
[ "MIT" ]
null
null
null
__all__ = ["qtable","engine","ndarr","locs","utils"]
26.5
52
0.622642
5c418a8d46fcbfa9c3eaa13cf8de1f604df55b72
4,360
py
Python
pyspedas/mms/fpi/mms_load_fpi_calc_pad.py
ergsc-devel/pyspedas
43d985cbcd23c54205453b06e08f8e51d29ab435
[ "MIT" ]
75
2019-02-22T12:59:33.000Z
2022-02-26T15:33:20.000Z
pyspedas/mms/fpi/mms_load_fpi_calc_pad.py
ergsc-devel/pyspedas
43d985cbcd23c54205453b06e08f8e51d29ab435
[ "MIT" ]
40
2019-07-02T07:46:34.000Z
2022-02-23T21:48:50.000Z
pyspedas/mms/fpi/mms_load_fpi_calc_pad.py
ergsc-devel/pyspedas
43d985cbcd23c54205453b06e08f8e51d29ab435
[ "MIT" ]
43
2019-02-22T13:03:41.000Z
2022-01-24T19:26:59.000Z
from pyspedas import tnames from pytplot import get_data, store_data, options def mms_load_fpi_calc_pad(probe='1', level='sitl', datatype='', data_rate='', suffix='', autoscale=True): """ Calculates the omni-directional pitch angle distribution (summed and averaged) from the individual tplot variables ...
37.913043
118
0.575917
3101ac2198f7e6ab7e411d1318016ffc72804460
7,870
py
Python
django_elasticsearch_dsl/documents.py
simion/django-elasticsearch-dsl
ecb6ac22bce353eb34851b185488ee6636034574
[ "Apache-2.0" ]
null
null
null
django_elasticsearch_dsl/documents.py
simion/django-elasticsearch-dsl
ecb6ac22bce353eb34851b185488ee6636034574
[ "Apache-2.0" ]
null
null
null
django_elasticsearch_dsl/documents.py
simion/django-elasticsearch-dsl
ecb6ac22bce353eb34851b185488ee6636034574
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from collections import deque from functools import partial from django import VERSION as DJANGO_VERSION from django.db import models from elasticsearch.helpers import bulk, parallel_bulk from elasticsearch_dsl import Document as DSLDocument from six import iteritems from .exc...
33.632479
125
0.635578
a27de1fcaca15fce684563a6e104e457ecdcc96c
97
py
Python
aegis/utils/ssh/ssh_handler.py
Yijie-Wu/Aegis
f8082b66d55be135a5e2bec7ac15f860f99f7df7
[ "MIT" ]
null
null
null
aegis/utils/ssh/ssh_handler.py
Yijie-Wu/Aegis
f8082b66d55be135a5e2bec7ac15f860f99f7df7
[ "MIT" ]
null
null
null
aegis/utils/ssh/ssh_handler.py
Yijie-Wu/Aegis
f8082b66d55be135a5e2bec7ac15f860f99f7df7
[ "MIT" ]
null
null
null
# -*- encoding:utf-8 -*- """ Author: Yijie.Wu Email: 1694517106@qq.com Date: 2020/5/16 15:17 """
13.857143
24
0.618557
afa2a3bef7b8a6564cad85a7dd7d078b930baa1b
2,876
py
Python
mayan/apps/metadata/urls.py
mbehrle/mayan-edms
9ebf27d2ea1666eaa36ad6ddc0fb9c6accf5cced
[ "Apache-2.0" ]
null
null
null
mayan/apps/metadata/urls.py
mbehrle/mayan-edms
9ebf27d2ea1666eaa36ad6ddc0fb9c6accf5cced
[ "Apache-2.0" ]
1
2022-03-12T01:03:39.000Z
2022-03-12T01:03:39.000Z
mayan/apps/metadata/urls.py
mbehrle/mayan-edms
9ebf27d2ea1666eaa36ad6ddc0fb9c6accf5cced
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import patterns, url from .api_views import ( APIDocumentMetadataListView, APIDocumentMetadataView, APIDocumentTypeMetadataTypeOptionalListView, APIDocumentTypeMetadataTypeRequiredListView, APIDocumentTypeMetadataTypeRequiredView, APIMetada...
68.47619
192
0.735396
b68168114934cd7ae924564b1f2e32801a406a63
8,679
py
Python
byfon/cell.py
LyricLy/byfon
83e771c9210b242282cdac96f06e3bdc5d4f39c4
[ "MIT" ]
5
2020-04-08T10:04:52.000Z
2021-08-10T10:01:20.000Z
byfon/cell.py
LyricLy/byfon
83e771c9210b242282cdac96f06e3bdc5d4f39c4
[ "MIT" ]
null
null
null
byfon/cell.py
LyricLy/byfon
83e771c9210b242282cdac96f06e3bdc5d4f39c4
[ "MIT" ]
1
2020-04-09T14:22:03.000Z
2020-04-09T14:22:03.000Z
from contextlib import contextmanager import sys from .errors import FreedCellError from .logical import And, Or from .while_ import while_expr def need_alloc(func): def new_meth(self, *args): for arg in args: if func.__name__ != "mov" and getattr(arg, "freed", False): raise F...
30.667845
181
0.564696
bccba898db172a9e612927812d096d49ee8480b0
1,564
py
Python
tests/test_vigenere.py
GuptaAyush19/Vigenere-Cipher
9e3d5d1cca07010ff7e7bc5c37cfee357d12d84b
[ "MIT" ]
3
2020-12-29T11:42:09.000Z
2021-10-30T10:12:31.000Z
tests/test_vigenere.py
GuptaAyush19/Vigenere-Cipher
9e3d5d1cca07010ff7e7bc5c37cfee357d12d84b
[ "MIT" ]
null
null
null
tests/test_vigenere.py
GuptaAyush19/Vigenere-Cipher
9e3d5d1cca07010ff7e7bc5c37cfee357d12d84b
[ "MIT" ]
1
2021-08-18T23:16:58.000Z
2021-08-18T23:16:58.000Z
import unittest import vigenere import random class TestVigenere(unittest.TestCase): def setUp(self): self.key_size = 100 self.valid_char = [chr(i) for i in range(43, 123)] self.not_int = ["string", 1j, 3.14] @staticmethod def random_text(size=20): text_list = ...
35.545455
78
0.597187
a3c4e6be59c3105b93b89656d5e2a21dd6e0b2e4
1,201
py
Python
tests/test_viewsets.py
bensiu/django-rest-framework
28e8895b8abcc65457862c828b1118a9d722c8ed
[ "BSD-2-Clause" ]
1
2020-03-18T22:31:29.000Z
2020-03-18T22:31:29.000Z
tests/test_viewsets.py
bensiu/django-rest-framework
28e8895b8abcc65457862c828b1118a9d722c8ed
[ "BSD-2-Clause" ]
1
2017-11-22T07:48:52.000Z
2017-11-22T07:48:52.000Z
tests/test_viewsets.py
bensiu/django-rest-framework
28e8895b8abcc65457862c828b1118a9d722c8ed
[ "BSD-2-Clause" ]
1
2020-05-13T00:31:27.000Z
2020-05-13T00:31:27.000Z
from django.test import TestCase from rest_framework import status from rest_framework.response import Response from rest_framework.test import APIRequestFactory from rest_framework.viewsets import GenericViewSet factory = APIRequestFactory() class BasicViewSet(GenericViewSet): def list(self, request, *args, **...
33.361111
72
0.642798
af9e6072e13fc920414a76db1dbea52cd9e59eca
68,048
py
Python
ionoscloud/api/network_interfaces_api.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/api/network_interfaces_api.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/api/network_interfaces_api.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import re # noqa: F401 import six from ionoscloud.api_client import ApiClient from ionoscloud.exceptions import ( # noqa: F401 ApiTypeError, ApiValueError ) class NetworkInterfacesApi(object): def __init__(self, api_client=None): if api_client is None: ...
58.360206
451
0.638887
c016a78b365ff3d83a68401feed386ac0f8160f8
2,354
py
Python
examples/imagenet_logits.py
sis0truk/pretrained-models.pytorch
4aea6d47996279b4b281355ca3d9738d0dff7469
[ "BSD-3-Clause" ]
91
2018-03-21T19:45:00.000Z
2021-12-13T06:08:00.000Z
examples/imagenet_logits.py
wubin1836/pretrained-models.pytorch
cb5127f43c554c0bb52c5ded3c071d9de9a514a4
[ "BSD-3-Clause" ]
6
2019-08-03T08:49:21.000Z
2022-03-11T23:43:56.000Z
examples/imagenet_logits.py
wubin1836/pretrained-models.pytorch
cb5127f43c554c0bb52c5ded3c071d9de9a514a4
[ "BSD-3-Clause" ]
13
2018-03-23T12:31:52.000Z
2020-07-20T13:16:44.000Z
import argparse from PIL import Image import torch import torchvision.transforms as transforms import sys sys.path.append('.') import pretrainedmodels import pretrainedmodels.utils as utils model_names = sorted(name for name in pretrainedmodels.__dict__ if not name.startswith("__") and name.islower() and...
32.694444
75
0.608751
7a48fcbaa9c3efd46f5f396a4fddde42f201fbbd
14,698
py
Python
utils/voc_evaluation.py
TheSeriousProgrammer/Keras_QuickNet_SSD
1c5accfa8d6ae16dab035ba9097fe8670680bdc2
[ "MIT" ]
12
2020-09-28T19:56:06.000Z
2022-03-16T06:27:01.000Z
utils/voc_evaluation.py
500swapnil/TensorflowKeras-Efficientnet-SSD
30c3c7ac8a2c05cc60fb4635a3f954c45e46108a
[ "MIT" ]
4
2021-05-20T21:47:44.000Z
2021-10-10T12:33:12.000Z
utils/voc_evaluation.py
500swapnil/TensorflowKeras-Efficientnet-SSD
30c3c7ac8a2c05cc60fb4635a3f954c45e46108a
[ "MIT" ]
1
2021-05-20T21:41:11.000Z
2021-05-20T21:41:11.000Z
# Evalutation code from https://github.com/chainer/chainercv from collections import defaultdict import itertools import numpy as np import six def bbox_iou(bbox_a, bbox_b): """Calculate the Intersection of Unions (IoUs) between bounding boxes. IoU is calculated as a ratio of area of the intersection...
44.539394
80
0.572255
98a52a0f274ab10cecd65f0fbaed260cd1ac9484
4,052
py
Python
sdk/python/pulumi_aws/eks/cluster.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/eks/cluster.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/eks/cluster.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class Cluster(pulumi.CustomResource): """ Manages an EKS Cluster. """ def __init__...
42.208333
448
0.638697
b751773e0d8a34d42ceb97cf1668b9edc46325ab
7,485
py
Python
dask_jobqueue/htcondor.py
lpsinger/dask-jobqueue
bff96a329439c23414bd0cb11c0ee8e67145d96b
[ "BSD-3-Clause" ]
1
2019-07-25T08:39:44.000Z
2019-07-25T08:39:44.000Z
dask_jobqueue/htcondor.py
lpsinger/dask-jobqueue
bff96a329439c23414bd0cb11c0ee8e67145d96b
[ "BSD-3-Clause" ]
1
2019-04-19T16:36:32.000Z
2019-04-19T16:36:32.000Z
dask_jobqueue/htcondor.py
zonca/dask-jobqueue
55b3c329ec54d708dd041f87723b28c332a6406e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import logging import re import shlex import dask from distributed.utils import parse_bytes from .core import JobQueueCluster, docstrings logger = logging.getLogger(__name__) class HTCondorCluster(JobQueueCluster): __doc__ = docstrings.with_inde...
33.266667
107
0.585438
b02b9d753349dfef40ab9e8159dca35f0b86ca53
911
py
Python
app.py
LoganCButler/BostonHousesDataScience
3cfaa102bfbbc47fe566eb1288d4c49d5672eaf1
[ "MIT" ]
null
null
null
app.py
LoganCButler/BostonHousesDataScience
3cfaa102bfbbc47fe566eb1288d4c49d5672eaf1
[ "MIT" ]
null
null
null
app.py
LoganCButler/BostonHousesDataScience
3cfaa102bfbbc47fe566eb1288d4c49d5672eaf1
[ "MIT" ]
null
null
null
### TODO ### import numpy as np from flask import Flask, request, jsonify import pickle from pandas import DataFrame import pandas as pd import math app = Flask(__name__) # Load the model model = pickle.load(open('model.pkl','rb')) @app.route('/predict',methods=['POST']) def predict(): # Get the data from th...
23.973684
62
0.632272
9209f156263e9dd9fa17ad17704bae763713880f
8,821
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations_async/_available_private_endpoint_types_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations_async/_available_private_endpoint_types_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations_async/_available_private_endpoint_types_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.202186
210
0.660469
adcb42483eaae3ab2307edadf4ecf1a284030744
7,180
py
Python
sdk/python/pulumi_azure_native/recoveryservices/v20180710/replication_storage_classification_mapping.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/v20180710/replication_storage_classification_mapping.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/v20180710/replication_storage_classification_mapping.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables from...
50.20979
959
0.689276
286b8f9ed9e590590c8b33de167185ddedd3bd07
3,963
py
Python
poem_generator/word_network.py
Aaronsom/poem-generation
10cccad88d073f82f6556374fdfb23a5b5e3769a
[ "MIT" ]
null
null
null
poem_generator/word_network.py
Aaronsom/poem-generation
10cccad88d073f82f6556374fdfb23a5b5e3769a
[ "MIT" ]
null
null
null
poem_generator/word_network.py
Aaronsom/poem-generation
10cccad88d073f82f6556374fdfb23a5b5e3769a
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense, Embedding, Flatten, Dropout, CuDNNLSTM, CuDNNGRU, Conv1D, GlobalMaxPool1D, Bidirectional from keras.callbacks import ModelCheckpoint, CSVLogger import keras.optimizers as optimizer from keras.backend import set_floatx, set_epsilon from poem_generator.d...
39.63
134
0.700479
213ec011e8a81bdd502b93b83c111cddc34df6fe
421
py
Python
leetcode/2140.py
ShengyuanWang/ShengyuanWang.github.io
b43f867a1b140b78f8031725cff212b43ecd001b
[ "MIT" ]
1
2022-01-20T21:12:00.000Z
2022-01-20T21:12:00.000Z
leetcode/2140.py
ShengyuanWang/ShengyuanWang.github.io
b43f867a1b140b78f8031725cff212b43ecd001b
[ "MIT" ]
null
null
null
leetcode/2140.py
ShengyuanWang/ShengyuanWang.github.io
b43f867a1b140b78f8031725cff212b43ecd001b
[ "MIT" ]
null
null
null
class Solution: def mostPoints(self, questions: List[List[int]]) -> int: n = len(questions) dp = [0] * n for i in range(n-1, -1, -1): end = i + questions[i][1] + 1 dp[i] = questions[i][0] if end < n: dp[i] = questions[i][0] + dp[en...
28.066667
60
0.396675
13597aaa99b116cebede6673234f74056d5edee8
343
py
Python
Python/mp.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/mp.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/mp.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import multiprocessing import os def whoami(what): print("Process {} says: {}".format(os.getpid(), what)) if __name__ == '__main__': whoami("I'm the main program") for n in range(64): p = multiprocessing.Process( target=whoami, args=("I'm function %s" % n,)) ...
19.055556
58
0.603499
895e9d276904e7fa11b694d30b5ae016a1bb3e99
414
py
Python
models/dpt_model/dpt_arguments.py
DominikSpiljak/depth-prediction
6a35579b121b34ed5b423b0f042e1d9b78f0120f
[ "Apache-2.0" ]
null
null
null
models/dpt_model/dpt_arguments.py
DominikSpiljak/depth-prediction
6a35579b121b34ed5b423b0f042e1d9b78f0120f
[ "Apache-2.0" ]
1
2022-03-30T20:45:28.000Z
2022-03-30T20:45:28.000Z
models/dpt_model/dpt_arguments.py
DominikSpiljak/depth-prediction
6a35579b121b34ed5b423b0f042e1d9b78f0120f
[ "Apache-2.0" ]
null
null
null
def add_model_args(parser): dpt = parser.add_argument_group("DPT") dpt.add_argument( "--no-backbone-pretrain", action="store_false", dest="backbone_pretrained", ) dpt.add_argument( "--pretrained-weights", help="Path to pretrained weights for DPT hybrid model", ...
29.571429
72
0.647343
f5645c771f767bc63f193c1d2dc45757a3552ae6
1,208
py
Python
locallibrary/locallibrary/urls.py
waltermaina/local-library-website
ac0f6d9c6cd79f891d196c707327717282fcc9cb
[ "MIT" ]
null
null
null
locallibrary/locallibrary/urls.py
waltermaina/local-library-website
ac0f6d9c6cd79f891d196c707327717282fcc9cb
[ "MIT" ]
null
null
null
locallibrary/locallibrary/urls.py
waltermaina/local-library-website
ac0f6d9c6cd79f891d196c707327717282fcc9cb
[ "MIT" ]
null
null
null
"""locallibrary URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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-...
41.655172
81
0.729305
3b2ef0192c0ba1975403c6244c371471321656f9
34,920
py
Python
emotion_model/classifiers.py
Bonsior-yyc/weibo
75e7e1df54b22d7985934b188c31dd413222c856
[ "MIT" ]
null
null
null
emotion_model/classifiers.py
Bonsior-yyc/weibo
75e7e1df54b22d7985934b188c31dd413222c856
[ "MIT" ]
null
null
null
emotion_model/classifiers.py
Bonsior-yyc/weibo
75e7e1df54b22d7985934b188c31dd413222c856
[ "MIT" ]
null
null
null
import re from collections import defaultdict import jieba import numpy as np from jieba import posseg # ################################################ # classifier based on sentiment f_dict # ################################################ class DictClassifier: def __init__(self): self.__root_filepat...
40.045872
119
0.548597
c4dbde89f7f91fa8096df1a20692af060fde099c
7,212
py
Python
ven2/lib/python2.7/site-packages/zope/browserresource/tests/test_icondirective.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
1
2019-11-30T07:47:08.000Z
2019-11-30T07:47:08.000Z
ven2/lib/python2.7/site-packages/zope/browserresource/tests/test_icondirective.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
10
2016-03-24T07:52:07.000Z
2020-03-02T09:52:06.000Z
ven2/lib/python2.7/site-packages/zope/browserresource/tests/test_icondirective.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
2
2015-04-03T08:18:34.000Z
2019-12-09T09:36:43.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
34.84058
78
0.584997
8a919ca3de4e6c25e69332bf8eaf1b984bf9d0a4
5,065
py
Python
DAE.py
butroy/movie-autoencoder
d18a54ecf7145f6cbda2d2233d4ff53056812b11
[ "Apache-2.0" ]
null
null
null
DAE.py
butroy/movie-autoencoder
d18a54ecf7145f6cbda2d2233d4ff53056812b11
[ "Apache-2.0" ]
null
null
null
DAE.py
butroy/movie-autoencoder
d18a54ecf7145f6cbda2d2233d4ff53056812b11
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import model_helper class DAE: def __init__(self, FLAGS): ''' Imlimentation of deep autoencoder class.''' self.FLAGS=FLAGS self.weight_initializer=model_helper._get_weight_initializer() self.bias_initializer=model_helper._get_bias_initializer()...
44.043478
139
0.616387
b4a064baf22660a80b25ada5585870602b870d62
2,677
py
Python
tests/test_metadata.py
solanolabs/sphinx
d22cfb08a4a3013c92a65b357d814caf676dc238
[ "BSD-2-Clause" ]
null
null
null
tests/test_metadata.py
solanolabs/sphinx
d22cfb08a4a3013c92a65b357d814caf676dc238
[ "BSD-2-Clause" ]
null
null
null
tests/test_metadata.py
solanolabs/sphinx
d22cfb08a4a3013c92a65b357d814caf676dc238
[ "BSD-2-Clause" ]
9
2015-08-26T19:59:06.000Z
2022-03-07T17:10:06.000Z
# -*- coding: utf-8 -*- """ test_metadata ~~~~~~~~~~~~~ Test our handling of metadata in files with bibliographic metadata. :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ # adapted from an example of bibliographic metadata at # http://...
38.242857
80
0.63093
09412056cf1fd2a8310ead40da4fafcacd1c7d93
436
py
Python
Django_Stuff/users_security/basic_app/forms.py
muhammad-mamdouh/Django_Projects
1f31e12aefb36b33474256db40a2c551882f445e
[ "MIT" ]
null
null
null
Django_Stuff/users_security/basic_app/forms.py
muhammad-mamdouh/Django_Projects
1f31e12aefb36b33474256db40a2c551882f445e
[ "MIT" ]
40
2020-06-05T22:10:58.000Z
2022-03-11T23:56:09.000Z
Django_Stuff/users_security/basic_app/forms.py
muhammad-mamdouh/Django_Projects
1f31e12aefb36b33474256db40a2c551882f445e
[ "MIT" ]
1
2021-03-31T10:30:03.000Z
2021-03-31T10:30:03.000Z
from django import forms from django.contrib.auth.models import User from .models import UserProfileInfo class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) class Meta: model = User fields = ('username', 'email', 'password') class UserProfileInfoForm(fo...
22.947368
60
0.699541
15419a9df808b20258440dbd062895af01f629c0
1,821
py
Python
back-end/migrations/versions/bca0417f931d_comments_table_upgrade.py
Asterisme/flask-vuejs-madblog
5c215f5cb9eefb61c6c230b1cc26a2797b8ec280
[ "MIT" ]
null
null
null
back-end/migrations/versions/bca0417f931d_comments_table_upgrade.py
Asterisme/flask-vuejs-madblog
5c215f5cb9eefb61c6c230b1cc26a2797b8ec280
[ "MIT" ]
null
null
null
back-end/migrations/versions/bca0417f931d_comments_table_upgrade.py
Asterisme/flask-vuejs-madblog
5c215f5cb9eefb61c6c230b1cc26a2797b8ec280
[ "MIT" ]
null
null
null
"""comments table upgrade Revision ID: bca0417f931d Revises: 5adcf0f4bbfa Create Date: 2020-04-10 17:48:35.215063 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bca0417f931d' down_revision = '5adcf0f4bbfa' branch_labels = None depends_on = None def upgrade(...
35.019231
91
0.675453
41e8f3b80673dd316b4f6211fcbd46743b4461e9
446
py
Python
test/servers_test/test_portal.py
AnonymousAuthor2013/KnowAlpha
7332231bbb34d7dcdab796aa20fc561dbca1fb76
[ "MIT" ]
2
2019-06-25T02:46:37.000Z
2019-12-02T11:26:16.000Z
test/servers_test/test_portal.py
AnonymousAuthor2013/KnowAlpha
7332231bbb34d7dcdab796aa20fc561dbca1fb76
[ "MIT" ]
1
2019-07-18T03:45:28.000Z
2019-07-18T03:45:28.000Z
test/servers_test/test_portal.py
AnonymousAuthor2013/KnowAlpha
7332231bbb34d7dcdab796aa20fc561dbca1fb76
[ "MIT" ]
4
2019-06-23T13:49:07.000Z
2019-06-25T12:21:59.000Z
from programmingalpha.MainPortal.Requester import RequesterServices import logging logger = logging.getLogger() logger.setLevel(logging.INFO) fmt = logging.Formatter('%(asctime)s: [ %(message)s ]', '%m/%d/%Y %I:%M:%S %p') console = logging.StreamHandler() console.setFormatter(fmt) logger.addHandler(console) config_fi...
26.235294
79
0.773543
f23f7871462c4d113917fef2b4536d3abedd6259
103
py
Python
venv/lib/python2.7/_weakrefset.py
IdeasBlockLT/emem
a3f6e1950e9a074fbb696728778b22d6f523c3df
[ "MIT" ]
null
null
null
venv/lib/python2.7/_weakrefset.py
IdeasBlockLT/emem
a3f6e1950e9a074fbb696728778b22d6f523c3df
[ "MIT" ]
9
2019-12-04T23:15:54.000Z
2022-02-10T11:05:43.000Z
venv/lib/python2.7/_weakrefset.py
edbolivar/perfectpair
c165cff40353c602fe0dc418375b90e9b25de674
[ "MIT" ]
null
null
null
/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.py
103
103
0.815534