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
7a71b65ab10cf126adef0ff97dec1b09a8f370a7
7,170
py
Python
neutron_lbaas/common/cert_manager/local_cert_manager.py
gotostack/neutron-lbaas
aea6f1f3c512ef94c89210d919f3b807b907edbe
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/common/cert_manager/local_cert_manager.py
gotostack/neutron-lbaas
aea6f1f3c512ef94c89210d919f3b807b907edbe
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/common/cert_manager/local_cert_manager.py
gotostack/neutron-lbaas
aea6f1f3c512ef94c89210d919f3b807b907edbe
[ "Apache-2.0" ]
null
null
null
# Copyright 2014, 2015 Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.671642
79
0.645886
c13a56afb44b2c14451e8fa8f16c71dac2c9f8d8
205
py
Python
selenium demo(test)/punit.py
Singularmotor/demo-sele
adf7073c83f0ae99c36a4f145de7826f9b467824
[ "MIT" ]
null
null
null
selenium demo(test)/punit.py
Singularmotor/demo-sele
adf7073c83f0ae99c36a4f145de7826f9b467824
[ "MIT" ]
null
null
null
selenium demo(test)/punit.py
Singularmotor/demo-sele
adf7073c83f0ae99c36a4f145de7826f9b467824
[ "MIT" ]
null
null
null
#coding=utf-8 import unittest class test(unittest.TestCase): def testminus(self): result=10/2 hope=6 self.assertEqual(result,hope) if __name__=="__main__": unittest.main()
18.636364
37
0.653659
5bc7b4e3731d8972bae3b88032b3067e2da29050
4,778
py
Python
bot/config.py
jejen-juanda/TTMediaBot
a97fe2d51585175458958f0ae4a7b7296b329cfc
[ "MIT" ]
null
null
null
bot/config.py
jejen-juanda/TTMediaBot
a97fe2d51585175458958f0ae4a7b7296b329cfc
[ "MIT" ]
null
null
null
bot/config.py
jejen-juanda/TTMediaBot
a97fe2d51585175458958f0ae4a7b7296b329cfc
[ "MIT" ]
null
null
null
import json import sys import portalocker from bot import utils default_config = { "general": { "language": "en", "send_channel_messages": True, "cache_file_name": "TTMediaBotCache.dat", "blocked_commands": [], "delete_uploaded_files_after": 300, "time_format": r"%...
32.726027
186
0.531603
63ca04760e35ac2edd9649e8b131663d2ff2c7f4
1,711
py
Python
src/add_Consumer.py
AdelineWang/Facial_Insights5
55f9f97088247fce56eeb9557c86e1f5837e7132
[ "MIT" ]
null
null
null
src/add_Consumer.py
AdelineWang/Facial_Insights5
55f9f97088247fce56eeb9557c86e1f5837e7132
[ "MIT" ]
1
2018-07-05T19:42:49.000Z
2018-07-05T19:42:49.000Z
src/add_Consumer.py
AdelineWang/Facial_Insights6
55f9f97088247fce56eeb9557c86e1f5837e7132
[ "MIT" ]
1
2018-07-05T23:57:22.000Z
2018-07-05T23:57:22.000Z
# This file contains functions to make post request to the consumer tables. import requests import json import asyncio import os from graphqlclient import GraphQLClient import sys # # Import Adelines Library. sys.path.insert(0, '/home/ubuntu/fare/recognition/traits/src/') from image_emotion_gender_demo import Person_I...
28.04918
98
0.684395
ce004e1b4f00211b9d716e9ce66f326e2e344dbb
125,726
py
Python
container/google/cloud/container_v1/gapic/cluster_manager_client.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2019-04-16T08:13:06.000Z
2019-04-16T08:13:06.000Z
container/google/cloud/container_v1/gapic/cluster_manager_client.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
null
null
null
container/google/cloud/container_v1/gapic/cluster_manager_client.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2020-11-15T11:44:36.000Z
2020-11-15T11:44:36.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
44.710526
162
0.590586
0ee81bb3c5e7291b9a087979bcea587a16755b8a
1,967
py
Python
tools/get_used_module_version.py
HrTran/unicorn-binance-websocket-api
64da01868a8c251a486993b868f0de5083922d64
[ "MIT" ]
null
null
null
tools/get_used_module_version.py
HrTran/unicorn-binance-websocket-api
64da01868a8c251a486993b868f0de5083922d64
[ "MIT" ]
null
null
null
tools/get_used_module_version.py
HrTran/unicorn-binance-websocket-api
64da01868a8c251a486993b868f0de5083922d64
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # File: tools/get_used_module_version.py # # Part of ‘UNICORN Binance WebSocket API’ # Project website: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api # Documentation: https://lucit-systems-and-development.github.io/unicorn-binance-websock...
44.704545
106
0.790544
e87454d0a890b2f69909b3a66092a752010b97cc
1,699
py
Python
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/byteyears.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/byteyears.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/byteyears.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#! /usr/bin/env python # Print the product of age and size of each file, in suitable units. # # Usage: byteyears [ -a | -m | -c ] file ... # # Options -[amc] select atime, mtime (default) or ctime as age. import sys, os, time from stat import * def main(): # Use lstat() to stat files if it exists, ...
27.403226
81
0.516775
eb703cfc42dafed553f272b4db79c6318b8c046e
4,862
py
Python
ClemBot.Bot/bot/services/user_handling_service.py
makayla-moster/ClemBot
26503d25f1fbe2abcf99dbf0f68b17e88ad11a7c
[ "MIT" ]
1
2022-03-01T20:16:18.000Z
2022-03-01T20:16:18.000Z
ClemBot.Bot/bot/services/user_handling_service.py
makayla-moster/ClemBot
26503d25f1fbe2abcf99dbf0f68b17e88ad11a7c
[ "MIT" ]
null
null
null
ClemBot.Bot/bot/services/user_handling_service.py
makayla-moster/ClemBot
26503d25f1fbe2abcf99dbf0f68b17e88ad11a7c
[ "MIT" ]
null
null
null
import datetime as datetime import logging from datetime import datetime import typing as t import dataclasses import asyncio import discord from bot.consts import Colors, DesignatedChannels from bot.messaging.events import Events from bot.services.base_service import BaseService import bot.utils.log_serializers as s...
40.516667
108
0.642945
4d4bcdf639e44ce371a8e230877b42cfd3720367
1,285
py
Python
handlers/editcomment.py
Christianq010/udacity-multi-user-blog-master
3dae18001df632ecdd78481efea07e10af91f515
[ "MIT" ]
6
2017-01-13T06:15:40.000Z
2018-07-30T03:11:15.000Z
handlers/editcomment.py
Christianq010/udacity-multi-user-blog-master
3dae18001df632ecdd78481efea07e10af91f515
[ "MIT" ]
1
2017-01-20T00:35:59.000Z
2017-01-20T00:37:06.000Z
handlers/editcomment.py
Christianq010/udacity-multi-user-blog-master
3dae18001df632ecdd78481efea07e10af91f515
[ "MIT" ]
3
2017-01-19T19:00:09.000Z
2019-03-02T10:15:12.000Z
from google.appengine.ext import db from handlers.blog import BlogHandler from helpers import * class EditCommentHandler(BlogHandler): def get(self, post_id, post_user_id, comment_id): if self.user and self.user.key().id() == int(post_user_id): postKey = db.Key.from_path('Post', int(post_id), ...
33.815789
79
0.607004
02eb930dfccc3dd4acad82943900c26c3c13ffa1
2,357
py
Python
models/DistMult.py
dhruvdcoder/OpenKE
c11f0958f4d0a08046b57cd41d83cedee70c64ac
[ "MIT" ]
2
2019-08-05T16:00:44.000Z
2019-09-06T04:51:09.000Z
models/DistMult.py
dhruvdcoder/OpenKE
c11f0958f4d0a08046b57cd41d83cedee70c64ac
[ "MIT" ]
1
2019-11-16T10:06:13.000Z
2019-11-16T10:06:13.000Z
models/DistMult.py
dhruvdcoder/OpenKE
c11f0958f4d0a08046b57cd41d83cedee70c64ac
[ "MIT" ]
3
2019-09-09T13:14:05.000Z
2022-02-11T19:30:39.000Z
#coding:utf-8 import numpy as np import tensorflow as tf from .Model import Model class DistMult(Model): r''' DistMult is based on the bilinear model where each relation is represented by a diagonal rather than a full matrix. DistMult enjoys the same scalable property as TransE and it achieves superior performance...
50.148936
179
0.748409
73e8f2151c08f6169d730575a18d35cbd2f151d1
1,121
py
Python
packages/regression_model/regression_model/processing/validation.py
karanvijaygit/DMLM
aaeb3e65d0a58ad583289aaa39b089f11d06a4eb
[ "BSD-3-Clause" ]
477
2019-02-14T11:24:29.000Z
2022-03-31T08:43:50.000Z
packages/regression_model/regression_model/processing/validation.py
karanvijaygit/DMLM
aaeb3e65d0a58ad583289aaa39b089f11d06a4eb
[ "BSD-3-Clause" ]
51
2019-05-11T11:00:48.000Z
2021-12-08T14:50:33.000Z
packages/regression_model/regression_model/processing/validation.py
karanvijaygit/DMLM
aaeb3e65d0a58ad583289aaa39b089f11d06a4eb
[ "BSD-3-Clause" ]
4,870
2019-01-20T11:04:50.000Z
2022-03-31T12:37:17.000Z
from regression_model.config import config import pandas as pd def validate_inputs(input_data: pd.DataFrame) -> pd.DataFrame: """Check model inputs for unprocessable values.""" validated_data = input_data.copy() # check for numerical variables with NA not seen during training if input_data[config.N...
36.16129
81
0.709188
4623c8d1e8c15b0065ff44e55d3a3f5b8f6a1d4b
1,623
py
Python
scripts/eval_adaptor.py
dunknowcoding/RGANet
206715439c445f67489400d8d0a45b906ecfee16
[ "Apache-2.0" ]
4
2021-12-29T06:49:04.000Z
2022-01-31T13:13:05.000Z
scripts/eval_adaptor.py
dunknowcoding/RGANet
206715439c445f67489400d8d0a45b906ecfee16
[ "Apache-2.0" ]
null
null
null
scripts/eval_adaptor.py
dunknowcoding/RGANet
206715439c445f67489400d8d0a45b906ecfee16
[ "Apache-2.0" ]
1
2022-01-12T09:24:31.000Z
2022-01-12T09:24:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ : Project - Comparision experiments : Splite evaluation texts into individual text files for SPSS : Author - Xi Mo : Institute - University of Kansas : Date - 6/13/2021 last updated 6/13/2021 """ from pathlib import Path evalPath = Path(r"E:\RGANet\results_acrt\evalu...
34.531915
78
0.643869
7dad41a00a5772adc6636b507a0f34843824a70a
1,494
py
Python
renaming_combining/combining.py
CodeXfull/Pandas
08b0adc28eedba47f6eb8303ba6a36a37ababb92
[ "MIT" ]
null
null
null
renaming_combining/combining.py
CodeXfull/Pandas
08b0adc28eedba47f6eb8303ba6a36a37ababb92
[ "MIT" ]
null
null
null
renaming_combining/combining.py
CodeXfull/Pandas
08b0adc28eedba47f6eb8303ba6a36a37ababb92
[ "MIT" ]
null
null
null
""" Combinando Ao executar operações em um conjunto de dados, às vezes precisaremos combinar DataFrames e / ou séries diferentes de maneiras não triviais. O Pandas possui três métodos principais para fazer isso. Em ordem crescente de complexidade, são concat (), join () e merge (). A maior parte do que merge () pode ...
55.333333
244
0.774431
af0edaa29a19b71d5ce67788139cf8c59b8d12d2
7,143
py
Python
larch/wxxas/taskpanel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/taskpanel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/taskpanel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
import time import os import platform from functools import partial from collections import OrderedDict import numpy as np np.seterr(all='ignore') import wx from larch import Group from larch.wxlib import (BitmapButton, SetTip, GridPanel, FloatCtrl, FloatSpin, FloatSpinWithPin, get_icon, Sim...
35.014706
80
0.584488
d1ca6cd26fd8115500df3ad576ed697600b347ee
1,838
py
Python
kashgari/tasks/classification/cnn_model.py
carsondahlberg/Kashgari
0bbb12344aaf43aeb4d8ffce39848f8565f87528
[ "MIT" ]
1
2019-01-27T12:54:51.000Z
2019-01-27T12:54:51.000Z
kashgari/tasks/classification/cnn_model.py
cmcai0104/Kashgari
7111d2d2959f234c05a0db06073c6142f826a8f7
[ "MIT" ]
6
2020-01-28T22:33:57.000Z
2022-02-10T00:08:16.000Z
kashgari/tasks/classification/cnn_model.py
cmcai0104/Kashgari
7111d2d2959f234c05a0db06073c6142f826a8f7
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: BrikerMan @contact: eliyar917@gmail.com @blog: https://eliyar.biz @version: 1.0 @license: Apache Licence @file: cnn_model.py @time: 2019-01-21 17:49 """ import logging from keras.layers import Dense, Conv1D, GlobalMaxPooling1D from keras.models import Model from kashgari.tasks.classifi...
29.645161
100
0.668662
cd7409349d22891410042df2bb9dc45f910151ff
532
py
Python
src/flaskApi/manager.py
MaiXiaochai/flask
31547477ae17f263888f285a8e4c9d6bd473fdc9
[ "Apache-2.0" ]
null
null
null
src/flaskApi/manager.py
MaiXiaochai/flask
31547477ae17f263888f285a8e4c9d6bd473fdc9
[ "Apache-2.0" ]
null
null
null
src/flaskApi/manager.py
MaiXiaochai/flask
31547477ae17f263888f285a8e4c9d6bd473fdc9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ -------------------------------------- @File : manager.py @Author : maixiaochai @Email : maixiaochai@outlook.com @Created on : 2020/4/26 22:05 -------------------------------------- """ from os import environ from flask_script import Manager from flask_migrate import Migrate...
21.28
41
0.597744
f78e9d7cf794941729ea501c432c299282610e09
961
py
Python
releases/dogwood/3/fun/config/lms/storage.py
SergioSim/learning-analytics-playground
f02e160a0e7b81fe141ed47662785a08bcc684d8
[ "MIT" ]
1
2021-12-13T09:05:59.000Z
2021-12-13T09:05:59.000Z
releases/dogwood/3/fun/config/lms/storage.py
SergioSim/learning-analytics-playground
f02e160a0e7b81fe141ed47662785a08bcc684d8
[ "MIT" ]
3
2021-05-18T08:26:51.000Z
2022-03-14T10:34:36.000Z
releases/dogwood/3/fun/config/lms/storage.py
SergioSim/learning-analytics-playground
f02e160a0e7b81fe141ed47662785a08bcc684d8
[ "MIT" ]
1
2021-06-03T14:21:56.000Z
2021-06-03T14:21:56.000Z
"""Django static file storage backend for OpenEdX.""" from django.conf import settings from pipeline.storage import PipelineCachedStorage from openedx.core.storage import ProductionStorage class CDNMixin(object): """Mixin to activate CDN urls on a static files storage backend.""" def url(self, name, force=...
33.137931
98
0.721124
ba9b61e35b59acadc1efb27b009bebff45066659
2,989
py
Python
libfmp/c3/c3s1_audio_feature.py
arfon/libfmp
86f39a323f948a5f104f768442359e93620b2bab
[ "MIT" ]
55
2020-12-14T08:33:10.000Z
2022-03-22T16:36:41.000Z
libfmp/c3/c3s1_audio_feature.py
arfon/libfmp
86f39a323f948a5f104f768442359e93620b2bab
[ "MIT" ]
6
2021-06-25T09:11:29.000Z
2021-12-17T13:55:19.000Z
libfmp/c3/c3s1_audio_feature.py
arfon/libfmp
86f39a323f948a5f104f768442359e93620b2bab
[ "MIT" ]
8
2021-06-30T08:34:38.000Z
2022-01-11T15:59:17.000Z
""" Module: libfmp.c3.c3s1_audio_feature Author: Frank Zalkow, Meinard Müller License: The MIT license, https://opensource.org/licenses/MIT This file is part of the FMP Notebooks (https://www.audiolabs-erlangen.de/FMP) """ import numpy as np from numba import jit @jit(nopython=True) def f_pitch(p, pitch_ref=69, freq...
26.927928
108
0.614921
15429e824529741215801dcd7fad2b39766f083c
2,612
py
Python
project/scripts/clausecat/clause_aggregation.py
svlandeg/healthsea
d3527e96630f59a07dccda7d6eae79e905e98a02
[ "MIT" ]
null
null
null
project/scripts/clausecat/clause_aggregation.py
svlandeg/healthsea
d3527e96630f59a07dccda7d6eae79e905e98a02
[ "MIT" ]
null
null
null
project/scripts/clausecat/clause_aggregation.py
svlandeg/healthsea
d3527e96630f59a07dccda7d6eae79e905e98a02
[ "MIT" ]
null
null
null
from spacy.tokens import Doc from spacy.language import Language import operator @Language.factory("healthsea.aggregation") def create_clause_aggregation(nlp: Language, name: str): return Clause_aggregation(nlp) class Clause_aggregation: """Aggregate the predicted effects from the clausecat and apply the pa...
33.487179
100
0.551685
38aaf0c133c21fcb8a1643ad7457797efa01cafd
17,915
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_hermite.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_hermite.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_hermite.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
"""Tests for hermendre module. """ import numpy as np import numpy.polynomial.hermite as herm import numpy.polynomial.polynomial as poly from numpy.testing import * H0 = np.array([ 1]) H1 = np.array([0, 2]) H2 = np.array([ -2, 0, 4]) H3 = np.array([0, -12, 0, 8]) H4 = np.array([ 12, 0, -48, 0...
33.299257
78
0.51242
a68de5e58838d385cbaed0c1b6a363f8cdf83c2e
18,457
py
Python
anndata/tests/test_readwrite.py
chris-rands/anndata
aae267645937d849d2a1ea0af4c601d9d0c11122
[ "BSD-3-Clause" ]
null
null
null
anndata/tests/test_readwrite.py
chris-rands/anndata
aae267645937d849d2a1ea0af4c601d9d0c11122
[ "BSD-3-Clause" ]
null
null
null
anndata/tests/test_readwrite.py
chris-rands/anndata
aae267645937d849d2a1ea0af4c601d9d0c11122
[ "BSD-3-Clause" ]
null
null
null
from importlib.util import find_spec from pathlib import Path from string import ascii_letters import tempfile import numpy as np import pandas as pd from pandas.api.types import is_categorical import pytest from scipy.sparse import csr_matrix, csc_matrix import anndata as ad from anndata.tests.helpers import gen_ad...
35.089354
85
0.64252
c470ec1036cb50fe758c534d22da547248931019
2,621
py
Python
keras_rl_dqn.py
bcaramiaux/humane-methods
d0ecfea8e348721e91dd36cf2a17e7868efd48ae
[ "MIT" ]
null
null
null
keras_rl_dqn.py
bcaramiaux/humane-methods
d0ecfea8e348721e91dd36cf2a17e7868efd48ae
[ "MIT" ]
null
null
null
keras_rl_dqn.py
bcaramiaux/humane-methods
d0ecfea8e348721e91dd36cf2a17e7868efd48ae
[ "MIT" ]
1
2020-06-02T10:57:54.000Z
2020-06-02T10:57:54.000Z
import numpy as np import gym import gym_target import os from keras.models import Sequential from keras.layers import Dense, Activation, Flatten from keras.optimizers import Adam from rl.agents.dqn import DQNAgent from rl.policy import BoltzmannQPolicy from rl.memory import SequentialMemory from rl.callbacks import ...
33.602564
97
0.734834
0cfc785bf02a26114ece75ffad0513948cd8ab2b
706
py
Python
manage.py
abhiabhi94/sample-django-project
578ce1a9e575138fe2ec2d8b0f4c2b715c6168c4
[ "Apache-2.0" ]
null
null
null
manage.py
abhiabhi94/sample-django-project
578ce1a9e575138fe2ec2d8b0f4c2b715c6168c4
[ "Apache-2.0" ]
6
2021-03-19T00:23:22.000Z
2021-09-22T18:39:10.000Z
manage.py
abhiabhi94/sample-django-project
578ce1a9e575138fe2ec2d8b0f4c2b715c6168c4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys from setup.setup import project_name def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{}.settings'.format(project_name)) try: from django.core.management impor...
29.416667
73
0.667139
07d21499543443be8421c1cd4bc8ae013bb5c82d
14,422
py
Python
nf_core/list.py
Fohlen/tools
4ab80b83cd8b6562a88bb38b6aa0a3d082fd4de6
[ "MIT" ]
null
null
null
nf_core/list.py
Fohlen/tools
4ab80b83cd8b6562a88bb38b6aa0a3d082fd4de6
[ "MIT" ]
null
null
null
nf_core/list.py
Fohlen/tools
4ab80b83cd8b6562a88bb38b6aa0a3d082fd4de6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Lists available nf-core pipelines and versions.""" from __future__ import print_function from collections import OrderedDict import click import datetime import json import logging import os import re import subprocess import sys import git import requests import tabulate import nf_core.uti...
40.284916
145
0.586118
f201b8294613e91e5506ab1b505052768b4882c1
1,283
py
Python
backend/server/apps/ml/registry.py
LeonZly90/djangoModel
cef09be8fb34fa5282264d7cbe08f173e8718816
[ "MIT" ]
null
null
null
backend/server/apps/ml/registry.py
LeonZly90/djangoModel
cef09be8fb34fa5282264d7cbe08f173e8718816
[ "MIT" ]
null
null
null
backend/server/apps/ml/registry.py
LeonZly90/djangoModel
cef09be8fb34fa5282264d7cbe08f173e8718816
[ "MIT" ]
null
null
null
# file backend/server/apps/ml/registry.py from apps.endpoints.models import Endpoint from apps.endpoints.models import MLAlgorithm from apps.endpoints.models import MLAlgorithmStatus class MLRegistry: def __init__(self): self.endpoints = {} def add_algorithm(self, endpoint_name, algorithm_object, alg...
37.735294
85
0.624318
0fb7192d7a014f57e2a669021e1c6fc0ec3aaf6f
3,135
py
Python
gpytorch/lazy/added_diag_lazy_tensor.py
konstantinklemmer/gpytorch
f1d947b340a188c398b6c6e610b6a839c61aa298
[ "MIT" ]
2
2019-03-31T04:36:30.000Z
2019-05-22T20:09:25.000Z
gpytorch/lazy/added_diag_lazy_tensor.py
konstantinklemmer/gpytorch
f1d947b340a188c398b6c6e610b6a839c61aa298
[ "MIT" ]
null
null
null
gpytorch/lazy/added_diag_lazy_tensor.py
konstantinklemmer/gpytorch
f1d947b340a188c398b6c6e610b6a839c61aa298
[ "MIT" ]
1
2019-02-15T17:05:42.000Z
2019-02-15T17:05:42.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch from .non_lazy_tensor import NonLazyTensor from .sum_lazy_tensor import SumLazyTensor from .diag_lazy_tensor import DiagLazyTensor from ..utils import pivote...
44.15493
120
0.685167
529646ca2bafbe17040ea504ec50fc4fe1f07f1f
4,934
py
Python
python/fate_arch/common/base_utils.py
QuantumA/FATE
89a3dd593252128c1bf86fb1014b25a629bdb31a
[ "Apache-2.0" ]
715
2019-01-24T10:52:03.000Z
2019-10-31T12:19:22.000Z
python/fate_arch/common/base_utils.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
270
2019-02-11T02:57:36.000Z
2019-08-29T11:22:33.000Z
python/fate_arch/common/base_utils.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
200
2019-01-26T14:21:35.000Z
2019-11-01T01:14:36.000Z
# # Copyright 2019 The FATE 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 appli...
28.686047
106
0.642683
f1b3b2b74b8759671fe5b11e450ba548368bbe8f
4,881
py
Python
gnome/gnome2/gedit/plugins.symlink/ViGedit/bindings/ex.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
4
2015-03-17T14:36:49.000Z
2019-06-10T09:34:35.000Z
gnome/gnome2/gedit/plugins.symlink/ViGedit/bindings/ex.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
null
null
null
gnome/gnome2/gedit/plugins.symlink/ViGedit/bindings/ex.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
1
2019-03-01T13:21:55.000Z
2019-03-01T13:21:55.000Z
from base import VIG_ModeBase import os import glob import re class MODE_options(object): """Options object for this mode""" def __init__(self, act, options=None): self.lastCommand = None self.history = [] self.index = -1 class Mode(VIG_ModeBase): def setup(self, act): ...
40.338843
88
0.597419
c9c1e787f892ee23bf90bf87e9d1e60ce7065a7c
17,940
py
Python
venv/lib/python3.6/site-packages/django/utils/feedgenerator.py
xiegudong45/typeidea
db6504a232d120d6ffa185730bd35b9b9ecffa6c
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
venv/lib/python3.6/site-packages/django/utils/feedgenerator.py
xiegudong45/typeidea
db6504a232d120d6ffa185730bd35b9b9ecffa6c
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
virtual/lib/python3.6/site-packages/django/utils/feedgenerator.py
ngishjonathan/gallery
dd67f28887316d6277927c667f6641d26317b0b8
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
""" Syndication feed generation library -- used for generating RSS, etc. Sample usage: >>> from django.utils import feedgenerator >>> feed = feedgenerator.Rss201rev2Feed( ... title="Poynter E-Media Tidbits", ... link="http://www.poynter.org/column.asp?id=31", ... description="A group Weblog by the sharpes...
38.915401
107
0.609253
116fe1554d476c08d020bcd1f4c7658768206adb
494
py
Python
mimic/canned_responses/glance.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
141
2015-01-07T19:28:31.000Z
2022-02-11T06:04:13.000Z
mimic/canned_responses/glance.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
575
2015-01-04T20:23:08.000Z
2019-10-04T08:20:04.000Z
mimic/canned_responses/glance.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
63
2015-01-09T20:39:41.000Z
2020-07-06T14:20:56.000Z
""" Cannned responses for glance images """ from __future__ import absolute_import, division, unicode_literals from mimic.canned_responses.json.glance.glance_images_json import (images, image_schema) def get_images(): """ Canned response for...
21.478261
80
0.62753
ff5785a14a6d825bda7afbc2059046172715ad63
557
py
Python
src/sae-svm.py
taoxianpeng/pytorch-AutoEncoders
cb0edd050c763f0fc29f8275c266b151f5d5dca9
[ "Apache-2.0" ]
null
null
null
src/sae-svm.py
taoxianpeng/pytorch-AutoEncoders
cb0edd050c763f0fc29f8275c266b151f5d5dca9
[ "Apache-2.0" ]
null
null
null
src/sae-svm.py
taoxianpeng/pytorch-AutoEncoders
cb0edd050c763f0fc29f8275c266b151f5d5dca9
[ "Apache-2.0" ]
null
null
null
from torchvision import datasets from torchvision.datasets import ImageFolder import torch from sklearn import svm import matplotlib.pyplot as plt import numpy as np import pandas as pd def load_datasets(path): datasets = ImageFolder(path) def load_modal(): modal = torch.load('D:\GitHub\pytorch-AutoEncode...
19.892857
83
0.734291
247445ca1e9423de1e971fc25b21e90051592b4f
311
py
Python
celery_strategy/utils.py
thinmy/celery-strategy
7785e2092dbc0c4660dd68627fdfa8c009c4566e
[ "MIT" ]
1
2019-06-11T09:49:29.000Z
2019-06-11T09:49:29.000Z
celery_strategy/utils.py
thinmy/celery-strategy
7785e2092dbc0c4660dd68627fdfa8c009c4566e
[ "MIT" ]
1
2019-08-20T13:23:46.000Z
2019-08-20T13:23:46.000Z
celery_strategy/utils.py
thinmy/celery-strategy
7785e2092dbc0c4660dd68627fdfa8c009c4566e
[ "MIT" ]
null
null
null
from celery.task.control import inspect def get_celery_worker_status(): info = inspect() d = info.stats() # type: dict if not d: d = { 'message': 'No running Celery workers were found.', 'status': False } else: d['status'] = True return d
19.4375
63
0.540193
c129df70aacb61e957e17dad754a52d8f57e7618
498
py
Python
tests/test_smt.py
rdaly525/MetaMapper
7f8278a012435d5d05ff6b388b7c1146061d6f1c
[ "BSD-3-Clause" ]
3
2019-04-09T22:58:21.000Z
2019-08-16T18:18:12.000Z
tests/test_smt.py
rdaly525/MetaMapper
7f8278a012435d5d05ff6b388b7c1146061d6f1c
[ "BSD-3-Clause" ]
22
2019-03-13T19:42:35.000Z
2022-03-29T19:49:33.000Z
tests/test_smt.py
rdaly525/MetaMapper
7f8278a012435d5d05ff6b388b7c1146061d6f1c
[ "BSD-3-Clause" ]
1
2019-04-09T05:35:52.000Z
2019-04-09T05:35:52.000Z
from metamapper import CoreIRContext from metamapper.irs.coreir import gen_CoreIRNodes import metamapper.coreir_util as cutil from metamapper.common_passes import SMT, print_dag, prove_equal def test_dag_to_smt(): CoreIRContext(reset=True) CoreIRNodes = gen_CoreIRNodes(16) cmod = cutil.load_from_json("exa...
33.2
66
0.789157
55e0ef62d5e894647e653f7ab4fad209bc973bad
441
py
Python
football/core/management/commands/calculate_weekly_scores.py
johnshiver/football_tools
23e5137f176f0cb2f4dc42ee4a5ed56d6de37cf3
[ "MIT" ]
2
2016-08-26T12:25:42.000Z
2016-08-26T14:53:15.000Z
football/core/management/commands/calculate_weekly_scores.py
johnshiver/football_tools
23e5137f176f0cb2f4dc42ee4a5ed56d6de37cf3
[ "MIT" ]
2
2016-08-26T03:14:01.000Z
2017-08-08T20:15:27.000Z
football/core/management/commands/calculate_weekly_scores.py
johnshiver/football_tools
23e5137f176f0cb2f4dc42ee4a5ed56d6de37cf3
[ "MIT" ]
1
2019-11-17T20:56:10.000Z
2019-11-17T20:56:10.000Z
from django.core.management.base import BaseCommand from ...models import WeeklyStats, Player class Command(BaseCommand): def handle(self, *args, **options): weekly_stats = WeeklyStats.objects.all() for stat in weekly_stats: stat.total_score = stat.calc_total_score() stat....
29.4
54
0.655329
5c9087131e80dde6ef005a932646dfc1b282feb9
8,542
py
Python
sdk/python/pulumi_azure_native/web/latest/get_web_app_deployment_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/latest/get_web_app_deployment_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/latest/get_web_app_deployment_slot.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...
34.723577
220
0.621868
4e2e2ae0ba38f141a290902438f61772d48903ed
329
py
Python
Back/ns_portal/resources/root/security/oauth2/v1/logout/logout_resource.py
anthonyHenryNS/NsPortal
dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e
[ "MIT" ]
1
2019-01-22T15:16:43.000Z
2019-01-22T15:16:43.000Z
Back/ns_portal/resources/root/security/oauth2/v1/logout/logout_resource.py
NaturalSolutions/NsPortal
bcd07fdf015948a82f4d0c3c9a02f513b2d99f5d
[ "MIT" ]
16
2015-09-28T14:46:13.000Z
2020-04-20T10:34:25.000Z
Back/ns_portal/resources/root/security/oauth2/v1/logout/logout_resource.py
anthonyHenryNS/NsPortal
dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e
[ "MIT" ]
10
2015-05-06T08:05:09.000Z
2020-01-27T13:39:47.000Z
from ns_portal.core.resources import ( MetaEndPointResource ) from pyramid.security import ( Allow, Everyone, forget ) class LogoutResource(MetaEndPointResource): __acl__ = [ (Allow, Everyone, 'read') ] def GET(self): forget(self.request) return self.request....
15.666667
43
0.641337
fb54e510df320040213e5f5032673d7a7ba42c68
6,969
py
Python
libmultilabel/nn/networks/bigru_2.py
Abhinav43/LibMultiLabel
805a66c13bf44e547f4b6976cae923172b96800f
[ "MIT" ]
null
null
null
libmultilabel/nn/networks/bigru_2.py
Abhinav43/LibMultiLabel
805a66c13bf44e547f4b6976cae923172b96800f
[ "MIT" ]
null
null
null
libmultilabel/nn/networks/bigru_2.py
Abhinav43/LibMultiLabel
805a66c13bf44e547f4b6976cae923172b96800f
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn.init import xavier_uniform_ from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from ..networks.base import BaseModel import torch.nn.functional as F import torch_geometric.transforms as T from scipy import sparse from torch_geometric.nn import GCN...
29.405063
117
0.599512
f78ac0bdafabbc58d8cba5091d25c11f51823246
444
py
Python
globo/aplications/core/migrations/0007_alter_sumasysaldos_cierre_anterior.py
orlandor55/globo
bb236e2b0a9c803794416478470e71081116bd56
[ "MIT" ]
null
null
null
globo/aplications/core/migrations/0007_alter_sumasysaldos_cierre_anterior.py
orlandor55/globo
bb236e2b0a9c803794416478470e71081116bd56
[ "MIT" ]
null
null
null
globo/aplications/core/migrations/0007_alter_sumasysaldos_cierre_anterior.py
orlandor55/globo
bb236e2b0a9c803794416478470e71081116bd56
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-03 18:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0006_sumasysaldos_axi_ejercicio_anterior'), ] operations = [ migrations.AlterField( model_name='sumasysaldos', ...
23.368421
79
0.637387
9e2442bf84fad94dd52b08de246915b1ac0b1a48
1,193
py
Python
cobra/tests/testdcode.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cobra/tests/testdcode.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cobra/tests/testdcode.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest import contextlib import cobra import cobra.dcode import cobra.remoteapp class Foo: def __init__(self, x, y): self.x = x self.y = y def add(self): return self.x + self.y def mult(self): return self.x * self.y def pow(self): return self.x ** s...
24.346939
92
0.638726
ffd7e38df2c39f6135f57d812165fe53c3e7310a
7,334
py
Python
client.py
Nedoko-maki/Internet-Voicechat
c5c764350039147890288ed3373d091f39c94fc0
[ "MIT" ]
null
null
null
client.py
Nedoko-maki/Internet-Voicechat
c5c764350039147890288ed3373d091f39c94fc0
[ "MIT" ]
null
null
null
client.py
Nedoko-maki/Internet-Voicechat
c5c764350039147890288ed3373d091f39c94fc0
[ "MIT" ]
null
null
null
import logging import queue import socket import threading import traceback import numpy import pyflac import select import sounddevice as sd import config logging.basicConfig( format='%(asctime)s.%(msecs)03d %(levelname)s:\t%(message)s', level=logging.INFO, datefmt='%H:%M:%S') class...
35.77561
150
0.594082
643459f79244909ac8734abcb45f29d2e1bfa925
1,951
py
Python
tryalgo/fenwick.py
siebenbrunner/tryalgo
b519f45b6babe0cdac8bbec267941c7ec29df004
[ "MIT" ]
null
null
null
tryalgo/fenwick.py
siebenbrunner/tryalgo
b519f45b6babe0cdac8bbec267941c7ec29df004
[ "MIT" ]
null
null
null
tryalgo/fenwick.py
siebenbrunner/tryalgo
b519f45b6babe0cdac8bbec267941c7ec29df004
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Fenwick tree jill-jenn vie et christoph durr - 2014-2018 """ # snip{ class Fenwick: """maintains a tree to allow quick updates and queries """ def __init__(self, t): """stores a table t and allows updates and queries of prefix sums in log...
27.871429
65
0.479754
893a5c0279f48b67ef25e0ab35319e3d91e228d3
94
py
Python
factory/source/handlers/__init__.py
icYFTL/RTULAB_Service
a16d0fc2ac9ac103f0a14e90824caded7156bf11
[ "Apache-2.0" ]
null
null
null
factory/source/handlers/__init__.py
icYFTL/RTULAB_Service
a16d0fc2ac9ac103f0a14e90824caded7156bf11
[ "Apache-2.0" ]
null
null
null
factory/source/handlers/__init__.py
icYFTL/RTULAB_Service
a16d0fc2ac9ac103f0a14e90824caded7156bf11
[ "Apache-2.0" ]
null
null
null
from .factory import Factory from .provider import Provider __all__ = ['Factory', 'Provider']
23.5
33
0.765957
53b5ac41a1232af10a1813e2644134a14b15ec0d
1,388
py
Python
amy/workshops/migrations/0163_auto_20181106_1416.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
53
2015-01-10T17:39:19.000Z
2019-06-12T17:36:34.000Z
amy/workshops/migrations/0163_auto_20181106_1416.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
1,176
2015-01-02T06:32:47.000Z
2019-06-18T11:57:47.000Z
amy/workshops/migrations/0163_auto_20181106_1416.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
44
2015-01-03T15:08:56.000Z
2019-06-09T05:33:08.000Z
# Generated by Django 2.1.2 on 2018-11-06 19:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workshops', '0162_auto_20181028_0754'), ] operations = [ migrations.AlterField( model_name='workshoprequest', name='...
73.052632
1,023
0.746398
0d494adc81ceaa6210738844f46e4342d1258ed0
191
py
Python
tests/func/regressions/test_issue_54_collector_unicode.py
boriel/parglare
74a6d98b6e510ae3c814c517924796c5dccefae0
[ "MIT" ]
102
2017-01-27T17:16:07.000Z
2022-03-18T17:44:27.000Z
tests/func/regressions/test_issue_54_collector_unicode.py
boriel/parglare
74a6d98b6e510ae3c814c517924796c5dccefae0
[ "MIT" ]
134
2017-08-28T14:30:51.000Z
2022-01-08T11:45:07.000Z
tests/func/regressions/test_issue_54_collector_unicode.py
boriel/parglare
74a6d98b6e510ae3c814c517924796c5dccefae0
[ "MIT" ]
28
2016-12-31T15:03:24.000Z
2022-03-21T19:49:19.000Z
from parglare import get_collector def test_collector_can_use_unicode_in_python_2(): action = get_collector() def f(context, node): return node action('f_action')(f)
15.916667
49
0.706806
286ba73405b9159da5d794643c37604b56b7dc50
144
py
Python
20160822.py
JaeGyu/PythonEx_1
e67053db6ca7431c3dd66351c190c53229e3f141
[ "MIT" ]
null
null
null
20160822.py
JaeGyu/PythonEx_1
e67053db6ca7431c3dd66351c190c53229e3f141
[ "MIT" ]
null
null
null
20160822.py
JaeGyu/PythonEx_1
e67053db6ca7431c3dd66351c190c53229e3f141
[ "MIT" ]
null
null
null
#_*_ coding: utf-8 _*_ import sys from PyQt4.QtGui import * app = QApplication(sys.argv) label = QLabel("Hello PyQt") label.show() app.exec_()
16
28
0.708333
f90230701fca4588e01aa0f39587978a7611f34f
17,810
py
Python
log_mito_bcl2/model_216.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_bcl2/model_216.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_bcl2/model_216.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
92.279793
798
0.801011
7d77f279b7c24f093a61c6ed28fa0d0e76b18c16
8,042
py
Python
kubernetes/client/models/v1beta2_flow_schema_spec.py
philipp-sontag-by/python
51c481692ab0d9c71b9dd96342bfa93b721b029d
[ "Apache-2.0" ]
1
2022-02-22T23:10:55.000Z
2022-02-22T23:10:55.000Z
kubernetes/client/models/v1beta2_flow_schema_spec.py
philipp-sontag-by/python
51c481692ab0d9c71b9dd96342bfa93b721b029d
[ "Apache-2.0" ]
6
2021-09-13T19:03:02.000Z
2022-03-16T18:56:42.000Z
kubernetes/client/models/v1beta2_flow_schema_spec.py
philipp-sontag-by/python
51c481692ab0d9c71b9dd96342bfa93b721b029d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.23 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
39.421569
376
0.678687
8afc163b4a246a30840e0de542e2b8787b8776ea
10,386
py
Python
TEST_PROJET-1.0-pc/renpy/bootstrap.py
Dune0lyn/otome
e365b474e7df3f76ccc0853fd1665f6529a59304
[ "CC0-1.0" ]
null
null
null
TEST_PROJET-1.0-pc/renpy/bootstrap.py
Dune0lyn/otome
e365b474e7df3f76ccc0853fd1665f6529a59304
[ "CC0-1.0" ]
null
null
null
TEST_PROJET-1.0-pc/renpy/bootstrap.py
Dune0lyn/otome
e365b474e7df3f76ccc0853fd1665f6529a59304
[ "CC0-1.0" ]
null
null
null
# Copyright 2004-2019 Tom Rothamel <pytom@bishoujo.us> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, m...
28.532967
87
0.646062
6b328ff8411aedcb2e14900d00ab1c687296e18a
3,070
py
Python
tests/cache/test_cache_save_evaluation.py
EddLabs/eddington-static
cdd1d9514c4eea1bd06c24894b3922e6cc3fb1f5
[ "Apache-2.0" ]
null
null
null
tests/cache/test_cache_save_evaluation.py
EddLabs/eddington-static
cdd1d9514c4eea1bd06c24894b3922e6cc3fb1f5
[ "Apache-2.0" ]
null
null
null
tests/cache/test_cache_save_evaluation.py
EddLabs/eddington-static
cdd1d9514c4eea1bd06c24894b3922e6cc3fb1f5
[ "Apache-2.0" ]
null
null
null
import datetime import random from unittest import mock import pytest from statue.cache import Cache from statue.exceptions import CacheError from tests.util import dummy_time_stamps, successful_evaluation_mock def test_save_evaluation(tmp_path, mock_evaluation_load_from_file): timestamp = 12300566 cache_di...
36.547619
88
0.767752
7cc2a7a2868e111ef2e528b445d67bcd9db8d422
5,708
py
Python
conf.py
ubclaunchpad/rocket2
7a4f05f46229d1c9a900aac1694b3d822f9d6b0f
[ "MIT" ]
14
2019-01-20T21:54:36.000Z
2021-10-09T21:06:23.000Z
conf.py
ubclaunchpad/rocket2
7a4f05f46229d1c9a900aac1694b3d822f9d6b0f
[ "MIT" ]
510
2018-11-18T20:07:51.000Z
2022-02-01T15:34:03.000Z
conf.py
ubclaunchpad/rocket2.0
7a4f05f46229d1c9a900aac1694b3d822f9d6b0f
[ "MIT" ]
9
2019-08-20T16:57:21.000Z
2021-05-04T12:51:47.000Z
""" Configuration file for the Sphinx documentation builder. This file does only contain a selection of the most common options. For a full list see the documentation: http://www.sphinx-doc.org/en/master/config -- Path setup -------------------------------------------------------------- If extensions (or modules to ...
29.42268
78
0.649264
93a36c6c285bb1ff607c0185a9fffc9e8ce1d35f
4,546
bzl
Python
test/packetimpact/runner/defs.bzl
adamliyi/gvisor
f20e63e31b56784c596897e86f03441f9d05f567
[ "Apache-2.0" ]
1
2020-08-14T14:14:34.000Z
2020-08-14T14:14:34.000Z
test/packetimpact/runner/defs.bzl
eilhan/gvisor
190634e0fcf4cf25a449e1bd39533ca2ddad66e6
[ "Apache-2.0" ]
null
null
null
test/packetimpact/runner/defs.bzl
eilhan/gvisor
190634e0fcf4cf25a449e1bd39533ca2ddad66e6
[ "Apache-2.0" ]
null
null
null
"""Defines rules for packetimpact test targets.""" load("//tools:defs.bzl", "go_test") def _packetimpact_test_impl(ctx): test_runner = ctx.executable._test_runner bench = ctx.actions.declare_file("%s-bench" % ctx.label.name) bench_content = "\n".join([ "#!/bin/bash", # This test will run p...
31.569444
134
0.612846
2181cee1be162d73ad62070828e01d52edc2c593
5,960
py
Python
authentication/cryptosign/tls/client_ssh_agent.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
null
null
null
authentication/cryptosign/tls/client_ssh_agent.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
null
null
null
authentication/cryptosign/tls/client_ssh_agent.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
null
null
null
############################################################################### ## ## Copyright (C) Tavendo GmbH and/or collaborators. All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## ## 1....
43.823529
196
0.670805
a26426c33c86ee930b2714bc9fef0b8eb2cfce57
3,735
py
Python
tests/st/pynative/data_parallel/test_pynative_hccl.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/pynative/data_parallel/test_pynative_hccl.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/pynative/data_parallel/test_pynative_hccl.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 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...
30.867769
100
0.687818
7ac77dc1d37556db490dc370263b56cada06ef9d
3,543
py
Python
venv/Lib/site-packages/scipy/special/tests/test_hypergeometric.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
venv/Lib/site-packages/scipy/special/tests/test_hypergeometric.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
venv/Lib/site-packages/scipy/special/tests/test_hypergeometric.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
import pytest import numpy as np from numpy.testing import assert_allclose from numpy.testing import assert_equal import scipy.special as sc class TestHyperu(object): def test_negative_x(self): a, b, x = np.meshgrid( [-1, -0.5, 0, 0.5, 1], [-1, -0.5, 0, 0.5, 1], np.li...
32.805556
74
0.55405
e436465537683cf7c45e2fb56eb2824c98c7d896
57,461
py
Python
Simulations/DDQL_AV/SumoSupervisor.py
mattwfranchi/Webots.HPC
137270ad3796e5bb4b93dfc4b93c805e59a2e828
[ "MIT" ]
3
2021-09-24T14:52:18.000Z
2021-12-07T13:24:52.000Z
Simulations/HighwayMerge/SumoSupervisor.py
mattwfranchi/Webots.HPC
137270ad3796e5bb4b93dfc4b93c805e59a2e828
[ "MIT" ]
null
null
null
Simulations/HighwayMerge/SumoSupervisor.py
mattwfranchi/Webots.HPC
137270ad3796e5bb4b93dfc4b93c805e59a2e828
[ "MIT" ]
null
null
null
# Copyright 1996-2020 Cyberbotics 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 in...
46.945261
280
0.553419
5579be37cf2469cef1e6f683580d0d31dde1a050
12,156
py
Python
python/core/tokenizer.py
rwth-acis/las2peer-TensorFlow-TextToText
1e483b3d33c70555e29b282b2ffe4f3f4fe21b04
[ "MIT" ]
1
2018-06-11T11:03:23.000Z
2018-06-11T11:03:23.000Z
python/core/tokenizer.py
rwth-acis/las2peer-TensorFlow-TextToText-Service
1e483b3d33c70555e29b282b2ffe4f3f4fe21b04
[ "MIT" ]
null
null
null
python/core/tokenizer.py
rwth-acis/las2peer-TensorFlow-TextToText-Service
1e483b3d33c70555e29b282b2ffe4f3f4fe21b04
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import html import regex as re #import re from setup.settings import preprocessing import time import json # inspired by https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/tokenizer.perl used in nmt's examples # inspired by and based on https://github....
36.178571
197
0.60209
29f660bc87dfdd8aa63cd8510e0a72db0044b361
4,037
py
Python
api/handlers/quiz.py
firminsa/quiz-me-api
80ed1dec56d72227b18c5d587655f6841a4f991a
[ "MIT" ]
null
null
null
api/handlers/quiz.py
firminsa/quiz-me-api
80ed1dec56d72227b18c5d587655f6841a4f991a
[ "MIT" ]
null
null
null
api/handlers/quiz.py
firminsa/quiz-me-api
80ed1dec56d72227b18c5d587655f6841a4f991a
[ "MIT" ]
null
null
null
import json import logging from api.common import errors from api.common.validation import validate_authorization_header_is_present, validate_user_exists_by_id from api.data_access import quiz_dao from api.model.model import QuizModel from api.utils import auth_utils from api.utils.api_utils import build_response_with...
33.92437
108
0.730245
b172f6e925d0873ca7def6387650aed5f5f15664
913
py
Python
pyflarum/client/extensions/flarum/Askvortsov_ReplyTemplates.py
CWKevo/pyflarum
bdf162a6c94e3051843ec7299a4302054927498a
[ "MIT" ]
9
2021-06-23T21:26:29.000Z
2021-11-16T13:25:34.000Z
pyflarum/client/extensions/flarum/Askvortsov_ReplyTemplates.py
CWKevo/pyflarum
bdf162a6c94e3051843ec7299a4302054927498a
[ "MIT" ]
3
2021-09-11T00:08:14.000Z
2022-02-07T15:34:27.000Z
pyflarum/client/extensions/flarum/Askvortsov_ReplyTemplates.py
CWKevo/pyFlarum
2c4e17a16b00367f140c3436f7a9148072ddd2d3
[ "MIT" ]
1
2021-08-18T12:45:14.000Z
2021-08-18T12:45:14.000Z
from ....extensions import ExtensionMixin from ...flarum.core.discussions import DiscussionFromBulk class ReplyTemplatesDiscussionFromBulkMixin(DiscussionFromBulk): @property def replyTemplate(self) -> str: """ The reply template for the discussion. """ return self.attri...
23.410256
83
0.675794
6e7086c8ea1345a9289124273e71628ccacbe22e
2,143
py
Python
vyper/semantics/types/indexable/mapping.py
abdullathedruid/vyper
02b1b207f453b704cf1c491741bc85be9168a373
[ "Apache-2.0" ]
2
2022-02-08T16:17:10.000Z
2022-03-06T11:01:46.000Z
vyper/semantics/types/indexable/mapping.py
abdullathedruid/vyper
02b1b207f453b704cf1c491741bc85be9168a373
[ "Apache-2.0" ]
4
2018-12-06T23:21:02.000Z
2022-02-07T15:28:01.000Z
vyper/semantics/types/indexable/mapping.py
charles-cooper/vyper
bbbd8618f8427d416d6751214dd560872f8848f3
[ "Apache-2.0" ]
null
null
null
from typing import Union from vyper import ast as vy_ast from vyper.exceptions import StructureException from vyper.semantics.types.bases import BasePrimitive, DataLocation, IndexableTypeDefinition from vyper.semantics.types.utils import get_type_from_annotation from vyper.semantics.validation.utils import validate_ex...
34.015873
97
0.656556
19ac4acc77c7430af72aaf926d4ab56fde759ffa
383
py
Python
tests/test_client.py
smilelight/ltp_server
ca9ce5d633efc7626730816853fd5beec2ea794f
[ "MIT" ]
5
2020-10-29T11:10:29.000Z
2021-07-17T15:03:42.000Z
tests/test_client.py
smilelight/ltp_server
ca9ce5d633efc7626730816853fd5beec2ea794f
[ "MIT" ]
null
null
null
tests/test_client.py
smilelight/ltp_server
ca9ce5d633efc7626730816853fd5beec2ea794f
[ "MIT" ]
2
2021-07-09T08:45:10.000Z
2021-08-10T11:17:35.000Z
# -*- coding: utf-8 -*- from ltp_server import Client if __name__ == '__main__': client = Client() texts = ["乔丹是一位出生在纽约的美国职业篮球运动员。"] print(client.sent_split(texts)) print(client.seg(texts)) print(client.pos(texts)) print(client.ner(texts)) print(client.srl(texts)) print(client.dep(text...
23.9375
37
0.655352
9274fdddd260ec9f1b2343cdb3639dc59d9f86fb
49,600
py
Python
src/tf_transformers/text/sentencepiece_model_pb2.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
116
2021-03-15T09:48:41.000Z
2022-03-24T05:15:51.000Z
src/tf_transformers/text/sentencepiece_model_pb2.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
4
2021-03-20T11:20:57.000Z
2022-01-05T04:59:07.000Z
src/tf_transformers/text/sentencepiece_model_pb2.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
9
2021-03-17T04:14:48.000Z
2021-09-13T07:15:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sentencepiece_model.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from go...
34.13627
4,068
0.582359
5d99ad58e19ad3f0cda4dc56066d503e643182cd
13,700
py
Python
src/main/resources/scripts/lib/fedconfig.py
cwiechmann/apigw-maven-plugin
8a29cd3ccfa56d444176ea02df292cf6bab60f4c
[ "Apache-2.0" ]
null
null
null
src/main/resources/scripts/lib/fedconfig.py
cwiechmann/apigw-maven-plugin
8a29cd3ccfa56d444176ea02df292cf6bab60f4c
[ "Apache-2.0" ]
null
null
null
src/main/resources/scripts/lib/fedconfig.py
cwiechmann/apigw-maven-plugin
8a29cd3ccfa56d444176ea02df292cf6bab60f4c
[ "Apache-2.0" ]
null
null
null
import vutil, os, sys, re, json import logging from archiveutil import DeploymentArchiveAPI from esapi import EntityStoreAPI from java.io import File from java.lang import String from java.security import KeyFactory, KeyStore from com.vordel.store.util import ChangeEncryptedFields from com.vordel.archive.fed import ...
45.364238
196
0.625839
a38b2a1a2b972599d5acd02fd1a4d0fc82ca9340
11,907
py
Python
dvc/remote/gdrive.py
dickmao/dvc
6958901d98c316340b46be08e959593f40129b8a
[ "Apache-2.0" ]
null
null
null
dvc/remote/gdrive.py
dickmao/dvc
6958901d98c316340b46be08e959593f40129b8a
[ "Apache-2.0" ]
null
null
null
dvc/remote/gdrive.py
dickmao/dvc
6958901d98c316340b46be08e959593f40129b8a
[ "Apache-2.0" ]
null
null
null
import os import posixpath import logging import threading import re from funcy import retry, compose, decorator, wrap_with from funcy.py3 import cat from dvc.progress import Tqdm from dvc.scheme import Schemes from dvc.path_info import CloudURLInfo from dvc.remote.base import RemoteBASE from dvc.config import Config...
33.730878
79
0.589653
559bccd6e5b11f86146b7ea88dd017c98c08b043
7,470
py
Python
networkx-d3-v2/networkx/conf/common.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
null
null
null
networkx-d3-v2/networkx/conf/common.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
null
null
null
networkx-d3-v2/networkx/conf/common.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
null
null
null
import os PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) DEBUG = False TEMPLATE_DEBUG = DEBUG VERSION = os.environ.get('CURRENT_VERSION_ID', '').split('.')[0] HOSTNAME = 'http://%s' % os.environ.get('HTTP_HOST', '').replace("%s." % VERSION, "") ADMINS = ( # ('Your Name', 'your_emai...
31.652542
85
0.690361
f74b81037be83ae7ee405b51f6737b40ceb936cb
555
py
Python
regexlib/2021-5-15/python_re2_test_file/regexlib_3613.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/2021-5-15/python_re2_test_file/regexlib_3613.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/2021-5-15/python_re2_test_file/regexlib_3613.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 3613 # <(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>> # EXPONENT # nums:5 # EXPONENT AttackString:"<>"+"\t\t"*16+"! _1_EOD(i2)" import re2 as re from time import perf_counter regex = """<(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>""" REGEX = re.compile(regex) for i in range(0, 150000): ATTAC...
29.210526
69
0.52973
649aa25c5fe68f355a9cfb4ed25da9e8de88c391
6,497
py
Python
venv/lib/python3.6/site-packages/routes/middleware.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
105
2015-01-27T02:33:17.000Z
2022-03-06T06:08:47.000Z
venv/lib/python3.6/site-packages/routes/middleware.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
75
2015-01-05T21:16:02.000Z
2021-12-06T21:13:43.000Z
venv/lib/python3.6/site-packages/routes/middleware.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
48
2015-01-19T00:40:23.000Z
2022-03-06T06:08:53.000Z
"""Routes WSGI Middleware""" import re import logging from webob import Request from routes.base import request_config from routes.util import URLGenerator log = logging.getLogger('routes.middleware') class RoutesMiddleware(object): """Routing middleware that handles resolving the PATH_INFO in addition to ...
38.217647
79
0.548561
2c6de910dec683fe321abba1a5cb83d93f357514
13,605
py
Python
src/wmdecompose/utils.py
maybemkl/wmdecompose
25d81616aeb6a27cd0511d1e12316bc63673e599
[ "MIT" ]
3
2022-03-22T00:49:02.000Z
2022-03-24T15:31:39.000Z
src/wmdecompose/utils.py
maybemkl/wmdecompose
25d81616aeb6a27cd0511d1e12316bc63673e599
[ "MIT" ]
null
null
null
src/wmdecompose/utils.py
maybemkl/wmdecompose
25d81616aeb6a27cd0511d1e12316bc63673e599
[ "MIT" ]
null
null
null
from .documents import Document from .models import WMD from .gale_shapeley import Matcher from bs4 import BeautifulSoup from collections import Counter from gensim.models.phrases import Phrases, Phraser from itertools import islice from nltk.stem import WordNetLemmatizer from nltk.tokenize.toktok import ToktokTokeniz...
36.28
123
0.642631
6554a98a45904e373be3d59a45a20274ea71aaf5
4,630
py
Python
simulation_research/traffic/point_process_model_test.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
simulation_research/traffic/point_process_model_test.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
simulation_research/traffic/point_process_model_test.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.79562
79
0.707559
66dfc828ed5c69b6f8e3cb47bb8f171b04624ec3
27,657
py
Python
tests/queue_counter_test.py
sg893052/sonic-utilities
fdb79b8d65b8ca22232f4e6b140f593dd01613d5
[ "Apache-2.0" ]
91
2016-03-23T14:24:41.000Z
2022-03-18T20:25:37.000Z
tests/queue_counter_test.py
sg893052/sonic-utilities
fdb79b8d65b8ca22232f4e6b140f593dd01613d5
[ "Apache-2.0" ]
1,495
2017-02-15T10:49:10.000Z
2022-03-31T18:49:56.000Z
tests/queue_counter_test.py
sg893052/sonic-utilities
fdb79b8d65b8ca22232f4e6b140f593dd01613d5
[ "Apache-2.0" ]
466
2016-04-25T09:31:23.000Z
2022-03-31T06:54:17.000Z
import imp import json import os import sys from click.testing import CliRunner from unittest import TestCase from swsscommon.swsscommon import ConfigDBConnector from .mock_tables import dbconnector import show.main as show from utilities_common.cli import json_dump from utilities_common.db import Db test_path = os...
28.779396
87
0.385038
b2839bd068bd5a47d7bd6c5a2af555b2e4572333
2,904
py
Python
schwifty/registry.py
figo-connect/schwifty
1fbcca7a383f0eb2d38ff0c4c30ee81b3538ec7e
[ "MIT" ]
44
2016-03-07T11:18:52.000Z
2019-10-29T13:06:39.000Z
schwifty/registry.py
figo-connect/schwifty
1fbcca7a383f0eb2d38ff0c4c30ee81b3538ec7e
[ "MIT" ]
11
2016-05-23T12:27:27.000Z
2019-11-26T10:29:35.000Z
schwifty/registry.py
figo-connect/schwifty
1fbcca7a383f0eb2d38ff0c4c30ee81b3538ec7e
[ "MIT" ]
20
2016-11-07T15:27:00.000Z
2019-11-26T10:32:07.000Z
import itertools import json import pathlib from collections import defaultdict from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Tuple from typing import Union try: from importlib.resources import files except ImportError: from importlib_res...
29.333333
85
0.618802
df92cae3f7c4e76e3df47b4f22f694248273f296
7,883
py
Python
src/preprocessing/utils.py
farahhuifanyang/OpenRE-via-qa-multi-head
8946bef835912b438e7d511f8cd55c18b91c4442
[ "CC-BY-4.0" ]
3
2022-03-01T12:45:40.000Z
2022-03-15T03:00:44.000Z
src/preprocessing/utils.py
farahhuifanyang/QuORE
8946bef835912b438e7d511f8cd55c18b91c4442
[ "CC-BY-4.0" ]
null
null
null
src/preprocessing/utils.py
farahhuifanyang/QuORE
8946bef835912b438e7d511f8cd55c18b91c4442
[ "CC-BY-4.0" ]
null
null
null
import html import re import json import os from typing import Dict, List, Tuple, Any from allennlp.data.tokenizers import Token SPAN_ANSWER_TYPE = 'spans' SINGLE_SPAN = 'single_span' MULTIPLE_SPAN = 'multiple_span' NO_SPAN = 'no_span' SPAN_ANSWER_TYPES = [SINGLE_SPAN, MULTIPLE_SPAN, NO_SPAN] ALL_ANSWER_TYPES = SPAN...
34.423581
131
0.636687
f3fa372c95f7e44f215ff6caad3e9735574f5dcc
3,672
py
Python
examples/03b-hyperopt.py
data-science-lab-amsterdam/skippa
1349317c441f1e46e22f4c02a8aceae767aea5fe
[ "BSD-3-Clause" ]
33
2021-12-15T22:56:12.000Z
2022-02-26T12:33:56.000Z
examples/03b-hyperopt.py
data-science-lab-amsterdam/skippa
1349317c441f1e46e22f4c02a8aceae767aea5fe
[ "BSD-3-Clause" ]
null
null
null
examples/03b-hyperopt.py
data-science-lab-amsterdam/skippa
1349317c441f1e46e22f4c02a8aceae767aea5fe
[ "BSD-3-Clause" ]
1
2022-01-20T15:41:35.000Z
2022-01-20T15:41:35.000Z
""" Advanced hyperparameter tuning with Hyperopt (if sklearn's GridSearchCV or RandomSearchCV isn't good enough) this requires pip install hyperopt How this works: - Hyperopt requires you to define a function to minimize, that returns the loss for a given parameter set - this function needs to fit the pipeline using...
34
152
0.731481
75fce19d3e61e662f44f357f7fc52294c410690e
8,893
py
Python
ubuntu_init.py
ChallenAi/algos-partice-go
24a220329189b5b6f34b9d38634006f0598a79f6
[ "MIT" ]
null
null
null
ubuntu_init.py
ChallenAi/algos-partice-go
24a220329189b5b6f34b9d38634006f0598a79f6
[ "MIT" ]
null
null
null
ubuntu_init.py
ChallenAi/algos-partice-go
24a220329189b5b6f34b9d38634006f0598a79f6
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # ubuntu系列系统初始化脚本 # 必须手动输入的命令 # sudo passwd # 先安装zsh,再在zsh下使用apt install, 因为bash下安装的pip3在zsh下不好使 # sudo apt install zsh, git # sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # sudo chsh -s /bin/zsh # sudo apt install python3 # sudo apt in...
33.685606
282
0.631058
7dc2e34b14cc12c49debd2106be66fde33578a61
205
py
Python
problem/01000~09999/01871/1871.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/01871/1871.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/01871/1871.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
W=lambda A:(ord(A[0])-ord('A'))*26*26+(ord(A[1])-ord('A'))*26+(ord(A[2])-ord('A')) for _ in range(int(input())): A,B=input().split('-') if abs(W(A)-int(B))<=100: print('nice') else: print('not nice')
41
82
0.541463
614452a4592dbc40b2347050c52965b3e654fc09
961
py
Python
database.py
sedat/yield_explorer
a1322c54ecef2f4d57c8739c8698594bca1079eb
[ "MIT" ]
42
2021-02-27T20:07:46.000Z
2022-02-27T12:51:44.000Z
database.py
ZenkoLab/yield_explorer
a1322c54ecef2f4d57c8739c8698594bca1079eb
[ "MIT" ]
1
2021-03-05T22:04:17.000Z
2021-03-14T18:36:33.000Z
database.py
ZenkoLab/yield_explorer
a1322c54ecef2f4d57c8739c8698594bca1079eb
[ "MIT" ]
7
2021-03-03T02:02:33.000Z
2021-11-29T14:13:05.000Z
import mysql.connector db = mysql.connector.connect(host='localhost', user='root', passwd='root', auth_plugin='mysql_native_password', db="yield_db") cursor = db.cursor() cursor.execute('CREATE TABLE IF N...
96.1
379
0.69719
a57874054f7d1858c2cbd401cd26e5f18f645745
2,620
py
Python
src/reloadex/linux/ctypes_wrappers/_timerfd.py
iljau/reloadex
829b173e65408a54acca36caefbfcfa5f645d8b1
[ "MIT" ]
1
2019-10-08T04:22:41.000Z
2019-10-08T04:22:41.000Z
src/reloadex/linux/ctypes_wrappers/_timerfd.py
iljau/reloadex
829b173e65408a54acca36caefbfcfa5f645d8b1
[ "MIT" ]
null
null
null
src/reloadex/linux/ctypes_wrappers/_timerfd.py
iljau/reloadex
829b173e65408a54acca36caefbfcfa5f645d8b1
[ "MIT" ]
null
null
null
# https://github.com/yrro/pilight/blob/0d0b40e68d03fbbf01e496a6a8e12cac865a4810/ctimerfd.py import ctypes import ctypes.util import os import struct from _ctypes import Structure, POINTER, get_errno from ctypes import cdll, c_int, c_long, CDLL from reloadex.linux.ctypes_wrappers.common import error_text, libc __all__...
27.87234
91
0.703435
bea9dfcb2219e8532e7eb8004aada3b4cb8ce588
28,295
py
Python
wandb/sdk/internal/handler.py
TachikakaMin/client
27d1ef98285e3cb94881b370a8c37bfb310000c1
[ "MIT" ]
1
2021-11-15T08:26:28.000Z
2021-11-15T08:26:28.000Z
wandb/sdk/internal/handler.py
webclinic017/client
8225a30e2db2094d817d3048a66edfaa8803941c
[ "MIT" ]
null
null
null
wandb/sdk/internal/handler.py
webclinic017/client
8225a30e2db2094d817d3048a66edfaa8803941c
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- """Handle Manager.""" from __future__ import print_function import json import logging import math import numbers import os from threading import Event import time from typing import ( Any, Callable, cast, Dict, Iterable, List, Optional, Sequence, Tuple, ...
37.526525
87
0.614667
9a13f1781ca9ffb06117a903e82b84e7ae4f62aa
548
py
Python
tests/test_execute_sql.py
changrunner/zeppos_ms_sql_server_proxy
a32464c5d2bde425322534aacf30669b909ac984
[ "Apache-2.0" ]
null
null
null
tests/test_execute_sql.py
changrunner/zeppos_ms_sql_server_proxy
a32464c5d2bde425322534aacf30669b909ac984
[ "Apache-2.0" ]
null
null
null
tests/test_execute_sql.py
changrunner/zeppos_ms_sql_server_proxy
a32464c5d2bde425322534aacf30669b909ac984
[ "Apache-2.0" ]
null
null
null
import unittest from zeppos_ms_sql_server_proxy.execute_sql import ExecuteSql class TestTheProjectMethods(unittest.TestCase): def test_get_execute_methods(self): execute_sql = ExecuteSql.execute( connection_string="DRIVER={ODBC Driver 17 for SQL Server}; SERVER=localhost\sqlexpress; DATABASE=m...
36.533333
151
0.737226
db6013b6bef07605c71053edeffbe6660ca4bc91
1,647
py
Python
tests/test_environments/test_atari_wrappers.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
1
2020-06-20T21:20:14.000Z
2020-06-20T21:20:14.000Z
tests/test_environments/test_atari_wrappers.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
3
2020-08-21T08:58:44.000Z
2020-09-01T11:22:38.000Z
tests/test_environments/test_atari_wrappers.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
import shutil import gym from genrl.agents import DQN from genrl.environments import AtariEnv, AtariPreprocessing, FrameStack, VectorEnv from genrl.trainers import OffPolicyTrainer class TestAtari: def test_atari_preprocessing(self): """ Tests Atari Preprocessing wrapper """ env ...
29.945455
82
0.615058
676de45e3e58064fe3a0a3413c4176a63e7c5484
1,385
py
Python
python/tests/kat/t_headerswithunderscoresaction.py
Asher-Wang/ambassador
393a52832d081e0d8d0e0ecd5a14cfe18c62b837
[ "Apache-2.0" ]
null
null
null
python/tests/kat/t_headerswithunderscoresaction.py
Asher-Wang/ambassador
393a52832d081e0d8d0e0ecd5a14cfe18c62b837
[ "Apache-2.0" ]
190
2021-04-22T11:35:09.000Z
2022-03-30T22:12:03.000Z
python/tests/kat/t_headerswithunderscoresaction.py
Asher-Wang/ambassador
393a52832d081e0d8d0e0ecd5a14cfe18c62b837
[ "Apache-2.0" ]
null
null
null
from kat.harness import Query from abstract_tests import AmbassadorTest, ServiceType, HTTP import json class AllowHeadersWithUnderscoresTest(AmbassadorTest): target: ServiceType def init(self): self.target = HTTP(name="target") def config(self): yield self, self.format(""" --- apiVersion:...
23.474576
86
0.693863
8caf6c408fddbe4a2d645a10a499ae2fdfc94a3b
417
py
Python
test/start_server_with_wsgi_app.py
Rollmops/restit
ddc0fc3a4bf0ffed02c59cce5e7a07b3737e1874
[ "MIT" ]
3
2020-03-08T19:44:32.000Z
2020-03-09T19:46:15.000Z
test/start_server_with_wsgi_app.py
Rollmops/restit
ddc0fc3a4bf0ffed02c59cce5e7a07b3737e1874
[ "MIT" ]
11
2020-03-17T14:50:07.000Z
2020-04-03T11:20:30.000Z
test/start_server_with_wsgi_app.py
Rollmops/restit
ddc0fc3a4bf0ffed02c59cce5e7a07b3737e1874
[ "MIT" ]
null
null
null
from contextlib import contextmanager from threading import Thread from wsgiref.simple_server import make_server @contextmanager def start_server_with_wsgi_app(wsgi_app): with make_server('', 0, wsgi_app) as httpd: thread = Thread(target=httpd.serve_forever) thread.start() try: ...
26.0625
51
0.678657
505b75e7a1ec320ca81f0af625182db67d6153ee
1,139
py
Python
password_manager.py
ercantncy/python-mini-projects
6eecee7f7f730baeea6105cd30828e0160915c6a
[ "MIT" ]
1
2021-10-05T22:31:00.000Z
2021-10-05T22:31:00.000Z
password_manager.py
ercantncy/python-mini-projects
6eecee7f7f730baeea6105cd30828e0160915c6a
[ "MIT" ]
null
null
null
password_manager.py
ercantncy/python-mini-projects
6eecee7f7f730baeea6105cd30828e0160915c6a
[ "MIT" ]
null
null
null
from cryptography.fernet import Fernet #used just once to generate key ''' def write_key(): key = Fernet.generate_key() with open("key.key", "wb") as key_file: key_file.write(key) write_key() ''' def load_key(): file = open("key.key", "rb") key = file.read() file.close() r...
21.092593
108
0.536435
625e99e8fdfa4f52b0d31aad8e2c2fb931d7d5ed
221
py
Python
myblog/home/urls.py
wuhongchuan/myblog
1879101e8e5ff7535149784af9a16f7dfc8411c6
[ "MIT" ]
null
null
null
myblog/home/urls.py
wuhongchuan/myblog
1879101e8e5ff7535149784af9a16f7dfc8411c6
[ "MIT" ]
null
null
null
myblog/home/urls.py
wuhongchuan/myblog
1879101e8e5ff7535149784af9a16f7dfc8411c6
[ "MIT" ]
null
null
null
from django.urls import path from home.views import IndexView,DetailView urlpatterns = [ # 首页的路由 path('',IndexView.as_view(),name='index'), #详情视图的路由 path('detail/',DetailView.as_view(),name='detail'), ]
20.090909
55
0.683258
debda15bea3c32f967e36ab73b2ccdfc25d46259
2,702
py
Python
phablytics/web/utils.py
hacktoolkit/phablytics
977a85b0e5035ef93dd8b745673248c983bbc294
[ "MIT" ]
3
2020-06-22T22:05:08.000Z
2020-10-27T19:01:40.000Z
phablytics/web/utils.py
hacktoolkit/phablytics
977a85b0e5035ef93dd8b745673248c983bbc294
[ "MIT" ]
2
2020-12-22T22:15:31.000Z
2021-12-14T03:47:19.000Z
phablytics/web/utils.py
hacktoolkit/phablytics
977a85b0e5035ef93dd8b745673248c983bbc294
[ "MIT" ]
4
2020-08-27T15:56:01.000Z
2021-05-07T18:03:11.000Z
# Python Standard Library Imports import copy # Third Party (PyPI) Imports from flask import ( abort, render_template, request, ) from jinja2 import TemplateNotFound # Phablytics Imports import phablytics from phablytics.constants import GITHUB_URL from phablytics.settings import ( ADMIN_USERNAME, ...
24.563636
71
0.646558
4bb70f56ac67831e8a3c2afb603fcf635938c5a3
18,074
py
Python
scenegraph/exp-official/taskographyv5tiny5bagslots5_ploi/ploi_test_stats.py
taskography/3dscenegraph-dev
2c261241230fbea1f1c687ff793478248f25c02c
[ "MIT" ]
1
2022-01-30T22:06:57.000Z
2022-01-30T22:06:57.000Z
scenegraph/exp-official/taskographyv5tiny5bagslots5_ploi/ploi_test_stats.py
taskography/3dscenegraph-dev
2c261241230fbea1f1c687ff793478248f25c02c
[ "MIT" ]
null
null
null
scenegraph/exp-official/taskographyv5tiny5bagslots5_ploi/ploi_test_stats.py
taskography/3dscenegraph-dev
2c261241230fbea1f1c687ff793478248f25c02c
[ "MIT" ]
null
null
null
STATS = [ { "num_node_expansions": 0, "search_time": 0.0209646, "total_time": 0.12656, "plan_length": 63, "plan_cost": 63, "objects_used": 258, "objects_total": 379, "neural_net_time": 0.07623124122619629, "num_replanning_steps": 8, "wa...
28.872204
48
0.550902
cf8569dd45e37b36d5a957509a53c680284aa042
3,074
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/heads/single_straight3d.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/heads/single_straight3d.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/heads/single_straight3d.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
37.950617
74
0.605725
d9e04d4b1725b0afaf1b2ac3ec10fb6b68018a48
4,792
py
Python
unet.py
antares511/eye-in-the-sky
15aae12e787c2b884bf34103c94f6091d8637b80
[ "Apache-2.0" ]
236
2018-12-26T12:19:48.000Z
2022-03-30T11:59:21.000Z
unet.py
antares511/eye-in-the-sky
15aae12e787c2b884bf34103c94f6091d8637b80
[ "Apache-2.0" ]
20
2018-12-27T05:02:24.000Z
2022-01-25T05:58:55.000Z
unet.py
antares511/eye-in-the-sky
15aae12e787c2b884bf34103c94f6091d8637b80
[ "Apache-2.0" ]
84
2018-12-27T17:21:43.000Z
2022-02-27T07:13:34.000Z
import PIL from PIL import Image import matplotlib.pyplot as plt from libtiff import TIFF from libtiff import TIFFfile, TIFFimage from scipy.misc import imresize import numpy as np import glob import cv2 import os import math import skimage.io as io import skimage.transform as trans from keras.models import * from kera...
50.978723
136
0.6899
2131a44085e2b70fc94726267cf13b2001e3bafd
825
py
Python
backend/manage.py
dwightgunning/django-ng-boilerplate
226a661534f6c02be7f79ea771ffde518bbcf7f7
[ "MIT" ]
2
2018-05-06T00:42:10.000Z
2021-07-07T03:48:56.000Z
backend/manage.py
dwightgunning/django-ng-boilerplate
226a661534f6c02be7f79ea771ffde518bbcf7f7
[ "MIT" ]
8
2021-04-08T20:17:11.000Z
2022-03-02T09:55:01.000Z
backend/manage.py
dwightgunning/django-ng-boilerplate
226a661534f6c02be7f79ea771ffde518bbcf7f7
[ "MIT" ]
2
2021-09-06T11:55:40.000Z
2021-12-23T04:03:44.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangongboilerplate.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensu...
35.869565
83
0.646061
37877aa2956ed021c05f013753932ae6ff9b0fcb
276
py
Python
database/schemes/437/script/runTest.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
1
2022-03-23T03:14:41.000Z
2022-03-23T03:14:41.000Z
database/schemes/437/script/runTest.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
null
null
null
database/schemes/437/script/runTest.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
null
null
null
# coding:utf-8 import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from script import addPathToPython, initSettings, selectModel addPathToPython() initSettings() selectModel() from SRC.main import Main Main('系统日志.xml').run()
18.4
76
0.775362
6741a21c9b7ebce01e3a2130edd5cd4efd378b48
1,904
py
Python
python/client/ssdp_protocol.py
PetarZecevic/smart-farm
d118e30cfdaacf75969013c25cd732e31a9345f0
[ "Apache-2.0" ]
null
null
null
python/client/ssdp_protocol.py
PetarZecevic/smart-farm
d118e30cfdaacf75969013c25cd732e31a9345f0
[ "Apache-2.0" ]
null
null
null
python/client/ssdp_protocol.py
PetarZecevic/smart-farm
d118e30cfdaacf75969013c25cd732e31a9345f0
[ "Apache-2.0" ]
null
null
null
import socket class SSDP_Protocol(): """ This class is used to send sddp_request's, and receive ssdp_responses. """ SSDP_MULTICAST_IP = '239.255.255.250' SSDP_PORT = '1900' SSDP_MSG_MAX_SIZE = 1024 search_message = \ '{0} * HTTP/1.1\r\n' \ 'HOST:' + SSDP_MULTICAST_...
31.733333
85
0.574055
aaa0be1ef0af26e4416b57070f2268f23aadd3d1
468
py
Python
ads/utils.py
GabrielDumbrava/django-ads-filer
b98ca8b18cca69c862693ccf79b727a3a9e4aa24
[ "Apache-2.0" ]
2
2020-01-03T09:09:24.000Z
2021-07-13T15:38:46.000Z
ads/utils.py
vcealicu/django-ads-filer
b98ca8b18cca69c862693ccf79b727a3a9e4aa24
[ "Apache-2.0" ]
null
null
null
ads/utils.py
vcealicu/django-ads-filer
b98ca8b18cca69c862693ccf79b727a3a9e4aa24
[ "Apache-2.0" ]
2
2018-07-10T15:41:04.000Z
2018-07-10T15:42:22.000Z
from django.conf import settings from django.utils.translation import gettext_lazy def get_zones_choices(): for key in settings.ADS_ZONES: yield (key, gettext_lazy(settings.ADS_ZONES[key].get('name', 'Undefined'))) def get_client_ip(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR'...
27.529412
83
0.700855
3c70f46a8b50d7bbebfc444dbf7ec276df5c8dc3
1,470
py
Python
Chapter10/maxsubarray_v4.py
yoyboy/Software-Architecture-with-Python
c228a9c77e3d1d0e8651146611b34fed0a00bc5e
[ "MIT" ]
103
2017-05-18T13:43:47.000Z
2022-03-31T09:25:33.000Z
Chapter10/maxsubarray_v4.py
afcarl/Software-Architecture-with-Python
36bd93017be025c1910d0d3d6ebf9996bc84a9f4
[ "MIT" ]
1
2021-09-20T03:12:06.000Z
2021-09-20T03:12:06.000Z
Chapter10/maxsubarray_v4.py
afcarl/Software-Architecture-with-Python
36bd93017be025c1910d0d3d6ebf9996bc84a9f4
[ "MIT" ]
76
2017-05-22T14:44:00.000Z
2022-01-14T19:32:40.000Z
# Code Listing #4 """ Maximum subarray problem - final version """ from contextlib import contextmanager import random import time @contextmanager def timer(): """ Measure real-time execution of a block of code """ try: start = time.time() yield finally: end = (time.time() ...
22.615385
71
0.606803
a0db06441a2bfa57eacd8bda4713b26b094c7825
3,083
py
Python
video_demo.py
leonardohaig/yolov3_tensorflow
dcb9ac390849551f139f24782e31a39062a73695
[ "MIT" ]
1
2019-12-24T08:49:58.000Z
2019-12-24T08:49:58.000Z
video_demo.py
leonardohaig/yolov3_tensorflow
dcb9ac390849551f139f24782e31a39062a73695
[ "MIT" ]
null
null
null
video_demo.py
leonardohaig/yolov3_tensorflow
dcb9ac390849551f139f24782e31a39062a73695
[ "MIT" ]
1
2019-12-24T08:53:31.000Z
2019-12-24T08:53:31.000Z
#!/usr/bin/env python3 #coding=utf-8 #============================# #Program:video_demo.py #Date:2019.08.14 #Author:liheng #Version:V1.0 #============================# __author__ = 'liheng' import cv2 import time import numpy as np import core.utils as utils import tensorflow as tf # 张量名称 return_elements = ["input/...
34.640449
133
0.593902
2420e8a1c52fb3a0fc54eba39942de076acdc9f2
5,900
py
Python
phdfellows/models.py
sirkp/phdadmission
80beae033e6a3a87435ea5fded107bb0dec116fd
[ "MIT" ]
1
2020-01-26T12:42:12.000Z
2020-01-26T12:42:12.000Z
phdfellows/models.py
sirkp/phdadmission
80beae033e6a3a87435ea5fded107bb0dec116fd
[ "MIT" ]
null
null
null
phdfellows/models.py
sirkp/phdadmission
80beae033e6a3a87435ea5fded107bb0dec116fd
[ "MIT" ]
null
null
null
from django.db import models from accounts.models import User from datetime import date from django.utils.translation import gettext as _ from django.core.validators import RegexValidator class Application(models.Model): """ this is the model for application that needs to be filled for applying for admission ...
37.106918
221
0.714576
a9cf15e773112986cf0fc0360b1623d5cb928063
10,134
py
Python
Generators/ORM/EolCohortGenerator.py
neilmdixit/omop-learn
c9ef64d1af379b9e7d99d60995f2c50982e1f521
[ "MIT" ]
56
2020-07-21T04:50:41.000Z
2022-03-30T17:10:18.000Z
Generators/ORM/EolCohortGenerator.py
neilmdixit/omop-learn
c9ef64d1af379b9e7d99d60995f2c50982e1f521
[ "MIT" ]
6
2021-03-05T21:11:25.000Z
2021-06-10T17:11:41.000Z
Generators/ORM/EolCohortGenerator.py
neilmdixit/omop-learn
c9ef64d1af379b9e7d99d60995f2c50982e1f521
[ "MIT" ]
16
2020-07-09T03:48:25.000Z
2022-01-22T02:25:44.000Z
import pandas as pd from config import omop_schema, user_schema from sqlalchemy import Column, BigInteger, Integer, String from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta from sqlalchemy import func, and_, or_ from sqlalchemy.sql.expression import select, literal, case from s...
49.676471
208
0.607559
d807ac09a60fa3662cdffae1a5764b31d8241078
1,118
py
Python
setup/terraform/resources/labs/utils/kafka.py
rch/edge2ai-workshop
32af34e39439d17c2a73ba85e69248e88928a187
[ "Apache-2.0" ]
61
2019-08-21T12:33:34.000Z
2022-02-11T14:52:46.000Z
setup/terraform/resources/labs/utils/kafka.py
rch/edge2ai-workshop
32af34e39439d17c2a73ba85e69248e88928a187
[ "Apache-2.0" ]
20
2019-10-16T15:11:01.000Z
2021-03-31T05:34:56.000Z
setup/terraform/resources/labs/utils/kafka.py
rch/edge2ai-workshop
32af34e39439d17c2a73ba85e69248e88928a187
[ "Apache-2.0" ]
74
2019-08-21T12:33:52.000Z
2022-02-17T03:28:56.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from . import * def _get_port(): return '9093' if is_tls_enabled() else '9092' def _get_bootstrap_servers(): return get_hostname() + ':' + _get_port() def get_common_client_properties(env, client_type, consumer_group_id, client_id): props = { 'boo...
27.95
81
0.564401
013be7da2e8768a855558a27a8cb9d888f4fecfb
9,234
py
Python
src/ebay_rest/api/commerce_charity/models/charity_org.py
matecsaj/ebay_rest
dd23236f39e05636eff222f99df1e3699ce47d4a
[ "MIT" ]
3
2021-12-12T04:28:03.000Z
2022-03-10T03:29:18.000Z
src/ebay_rest/api/commerce_charity/models/charity_org.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
33
2021-06-16T20:44:36.000Z
2022-03-30T14:55:06.000Z
src/ebay_rest/api/commerce_charity/models/charity_org.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
7
2021-06-03T09:30:23.000Z
2022-03-08T19:51:33.000Z
# coding: utf-8 """ Charity API The Charity API allows third-party developers to search for and access details on supported charitable organizations. # noqa: E501 OpenAPI spec version: v1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: ...
30.27541
219
0.600606
1091fa8a36d0a3856b423bc7d8d3a8364611bf17
2,585
py
Python
src/spring-cloud/azext_spring_cloud/_client_factory.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/spring-cloud/azext_spring_cloud/_client_factory.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/spring-cloud/azext_spring_cloud/_client_factory.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.410959
94
0.765957
4f0cde93cda0f8c6aa10d7d94c84e58a2100240b
3,206
py
Python
backtoshops/countries/views.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
backtoshops/countries/views.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
backtoshops/countries/views.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # # Copyright © Dragon Dollar Limited # contact: contact@dragondollar.com # # This software is a collection of webservices designed to provide a secure # and scalable framework to build e-commerce websites. # # This s...
41.636364
80
0.687461
b17d477e71c0314f3548bda2e1fcd538fe474bf2
1,162
py
Python
gradient_text.py
crealu/py-writing
7147063bbc7f5f133946f5f4627e960fd3da2a55
[ "MIT" ]
null
null
null
gradient_text.py
crealu/py-writing
7147063bbc7f5f133946f5f4627e960fd3da2a55
[ "MIT" ]
null
null
null
gradient_text.py
crealu/py-writing
7147063bbc7f5f133946f5f4627e960fd3da2a55
[ "MIT" ]
null
null
null
from PIL import Image, ImageFilter from PIL import ImageFont, ImageDraw from gradient_math import get_gradation_3d as gg3 import numpy as np import os import random currentDir = os.getcwd() img1 = Image.open(currentDir + '/img/foliage.jpg') width = img1.size[0] height = img1.size[1] eachPixel = [] widthRange = rang...
25.822222
99
0.666093