hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9ed0e63115557011111fc2d087898f617015334c
86
py
Python
src/podping_hivewriter/models/medium.py
Podcastindex-org/podping-hivewriter
61840d8e0ed54e3b3016e56230fb20b03ec6f2de
[ "MIT" ]
11
2021-05-28T15:58:31.000Z
2022-03-21T07:08:58.000Z
src/podping_hivewriter/models/medium.py
Podcastindex-org/podping-hivewriter
61840d8e0ed54e3b3016e56230fb20b03ec6f2de
[ "MIT" ]
33
2021-06-12T09:23:47.000Z
2022-02-27T06:34:05.000Z
src/podping_hivewriter/models/medium.py
Podcastindex-org/podping-hivewriter
61840d8e0ed54e3b3016e56230fb20b03ec6f2de
[ "MIT" ]
3
2021-07-30T19:40:04.000Z
2022-01-19T04:14:14.000Z
import capnpy Medium = capnpy.load_schema("podping_hivewriter.schema.medium").Medium
21.5
70
0.825581
9ed0f5647c69951e6e9e558c59a7286dcf57af11
3,279
py
Python
EM/3_gaussian_em_scratch.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
EM/3_gaussian_em_scratch.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
EM/3_gaussian_em_scratch.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 18 20:29:49 2019 @author: prasad """ import numpy as np import pandas as pd from scipy.stats import multivariate_normal class EM: def __init__(self, k): self.k = k self.data = EM.get_data() self.n = self.data.shape...
29.276786
120
0.46874
9ed0fe6d1aacea101dbcb31febbd1dd091a7c37f
8,627
py
Python
embutils/repo/version.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
embutils/repo/version.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
embutils/repo/version.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- """ Version handler class. :date: 2021 :author: Christian Wiche :contact: cwichel@gmail.com :license: The MIT License (MIT) """ import abc import datetime as dt import os import attr from ..utils.common import TPPath from ..utils.math import closest_multi from ....
32.67803
103
0.616089
9ed10bc380fdcc50e5d55ee9ec4b3f7c48a0b2fa
25,298
py
Python
scripts/houdini/DigitalAssets/ZefirReader/Controller.py
RadicalTeapot/nwave
948b1112d7d39d026f46ca06e5911fc276d553f5
[ "MIT" ]
null
null
null
scripts/houdini/DigitalAssets/ZefirReader/Controller.py
RadicalTeapot/nwave
948b1112d7d39d026f46ca06e5911fc276d553f5
[ "MIT" ]
null
null
null
scripts/houdini/DigitalAssets/ZefirReader/Controller.py
RadicalTeapot/nwave
948b1112d7d39d026f46ca06e5911fc276d553f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Controller of the Zefir reader.""" import zefir import hou import os from nwave.effects.houdini.DigitalAssets.ZefirReader.Settings import Settings from nwave.effects.houdini.DigitalAssets.ZefirReader.Utils import Utils import nwave.effects.houdini.nwHoudiniTools.DisplayHoudiniDialog as \ ...
34.560109
79
0.533362
9ed13c9adb243ab571ab94a7225ecadda5eec2d9
33
py
Python
Visualiser/__init__.py
Knox-AAU/KL_NJ_TrainingToolbox
5daa206d11d225ee07ce5462bc8a271ac0f7acf2
[ "MIT" ]
1
2021-12-01T15:27:32.000Z
2021-12-01T15:27:32.000Z
Visualiser/__init__.py
Knox-AAU/KL_NJ_TrainingToolbox
5daa206d11d225ee07ce5462bc8a271ac0f7acf2
[ "MIT" ]
null
null
null
Visualiser/__init__.py
Knox-AAU/KL_NJ_TrainingToolbox
5daa206d11d225ee07ce5462bc8a271ac0f7acf2
[ "MIT" ]
1
2021-12-01T15:27:34.000Z
2021-12-01T15:27:34.000Z
from .main import visualize_model
33
33
0.878788
9ed14d89c3de3c72d19ae57506e30d5aa5b8efc1
2,273
py
Python
producten/views.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/views.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/views.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
# producten/views.py import codecs from logging import getLogger import os from rexec import FileWrapper import tempfile from django.contrib.auth.decorators import login_required from django.http import HttpResponse from klepro.settings import initiele_marge from django.utils.decorators import method_decorator from dj...
33.426471
117
0.712275
9ed161e133bd30d4a43e9b297332ed8b6a54175f
9,912
py
Python
occo/plugins/infraprocessor/node_resolution/docker.py
occopus/infra-processor
71103e65fa8843d35d398c4437a5b2ea16085320
[ "Apache-2.0" ]
null
null
null
occo/plugins/infraprocessor/node_resolution/docker.py
occopus/infra-processor
71103e65fa8843d35d398c4437a5b2ea16085320
[ "Apache-2.0" ]
null
null
null
occo/plugins/infraprocessor/node_resolution/docker.py
occopus/infra-processor
71103e65fa8843d35d398c4437a5b2ea16085320
[ "Apache-2.0" ]
2
2015-11-12T09:34:56.000Z
2015-11-12T10:06:44.000Z
### Copyright 2014, MTA SZTAKI, www.sztaki.hu ### ### Licensed under the Apache License, Version 2.0 (the "License"); ### you may not use this file except in compliance with the License. ### You may obtain a copy of the License at ### ### http://www.apache.org/licenses/LICENSE-2.0 ### ### Unless required by applicab...
39.807229
137
0.626816
9ed16c732daade33e901ded6174da788c1723947
33,866
py
Python
services/traction/acapy_client/api/ledger_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/api/ledger_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/api/ledger_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
42.868354
137
0.531949
9ed1b2d4949db9fc2c9e47f36476500d56d81602
1,912
py
Python
ibis/backends/pandas/execution/arrays.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/pandas/execution/arrays.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/pandas/execution/arrays.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
import operator import pandas as pd from pandas.core.groupby import SeriesGroupBy import ibis.expr.operations as ops from ..dispatch import execute_node @execute_node.register(ops.ArrayLength, pd.Series) def execute_array_length(op, data, **kwargs): return data.apply(len) @execute_node.register(ops.ArrayLeng...
29.415385
73
0.734833
9ed1b972b29f0ba2390d46020adf659ae667f0c9
8,543
py
Python
releasenotes/source/conf.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
46
2015-01-14T12:26:24.000Z
2021-01-05T12:54:03.000Z
releasenotes/source/conf.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
3
2015-05-22T19:58:11.000Z
2021-04-30T06:12:21.000Z
releasenotes/source/conf.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
34
2015-01-21T12:33:53.000Z
2021-10-13T00:29:35.000Z
# -*- coding: utf-8 -*- # # Trove Client Release Notes documentation build configuration file, created by # sphinx-quickstart on Tue Apr 5 19:49:56 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autoge...
31.640741
86
0.721058
9ed1bad273aeea7cf6b5691c4125c81bdf4e9456
12,382
py
Python
gradescrape/course.py
guineawheek/gradescrape
88245c2a26decc499db2e8c5b75229b67fb6696b
[ "BSD-2-Clause" ]
null
null
null
gradescrape/course.py
guineawheek/gradescrape
88245c2a26decc499db2e8c5b75229b67fb6696b
[ "BSD-2-Clause" ]
null
null
null
gradescrape/course.py
guineawheek/gradescrape
88245c2a26decc499db2e8c5b75229b67fb6696b
[ "BSD-2-Clause" ]
null
null
null
import datetime from urllib.parse import urlparse from .util import BASE_URL, to_gradescope_time, validate_late_submissions, validate_group_size, validate_leaderboard import typing from .assignment import Assignment, AutograderAssignment, PDFAssignment if typing.TYPE_CHECKING: from .session import Session __all__ ...
54.787611
154
0.641576
9ed1da7b2fc09379e91f805f037894873b2bc8b4
1,614
py
Python
mpsci/distributions/poisson.py
WarrenWeckesser/mpsci
675f0f3b76700529558a3bae2a1b2ca09552233b
[ "BSD-2-Clause" ]
7
2019-03-27T17:25:41.000Z
2022-03-31T03:55:29.000Z
mpsci/distributions/poisson.py
WarrenWeckesser/mpsci
675f0f3b76700529558a3bae2a1b2ca09552233b
[ "BSD-2-Clause" ]
2
2019-05-09T16:09:45.000Z
2021-01-04T03:55:09.000Z
mpsci/distributions/poisson.py
WarrenWeckesser/mpsci
675f0f3b76700529558a3bae2a1b2ca09552233b
[ "BSD-2-Clause" ]
null
null
null
""" Poisson distribution -------------------- """ import mpmath __all__ = ['pmf', 'logpmf', 'cdf', 'sf', 'mean', 'var', 'mle'] def pmf(k, lam): """ Probability mass function of the Poisson distribution. """ if k < 0: return mpmath.mp.zero with mpmath.extradps(5): lam = mpmath.m...
20.43038
78
0.586741
9ed1db5751dc85f260d758a6de197261da5a3b74
641
py
Python
api_app/db/errors.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
1
2022-03-02T19:46:46.000Z
2022-03-02T19:46:46.000Z
api_app/db/errors.py
frankfanslc/AzureTRE
c6ab21cfdb252b37ca23fde13cf397d519da31a7
[ "MIT" ]
1
2022-02-21T09:43:20.000Z
2022-02-21T09:43:20.000Z
api_app/db/errors.py
frankfanslc/AzureTRE
c6ab21cfdb252b37ca23fde13cf397d519da31a7
[ "MIT" ]
null
null
null
class EntityDoesNotExist(Exception): """Raised when entity was not found in database.""" class DuplicateEntity(Exception): """Raised when we have an unexpected duplicate (ex. two currents)""" class EntityVersionExist(Exception): """Raised when entity was not found in database.""" class UnableToAccessD...
27.869565
101
0.74259
9ed21f8b9e9ef86b4314e6b8e0cbd442055ae3f8
5,424
py
Python
hw1/mapper.py
venamax/ucb-261
7df292668a971f49f8a099d38f899e9961432e7c
[ "MIT-0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2022-01-05T14:27:20.000Z
2022-01-05T14:27:20.000Z
hw1/mapper.py
venamax/ucb-261
7df292668a971f49f8a099d38f899e9961432e7c
[ "MIT-0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
hw1/mapper.py
venamax/ucb-261
7df292668a971f49f8a099d38f899e9961432e7c
[ "MIT-0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python ## mapper.py ## Author: Alejandro J. Rojas ## Description: mapper code for HW1.5 import sys import re ########## Collect user input ############### filename = sys.argv[1] def word_preprocessor(s): ### This function eliminates some elim_array = [',', ...
48
129
0.372788
9ed2307500ea50234ccfbe058e630266e8a8b17c
19,986
py
Python
src/sardana/macroserver/recorders/h5storage.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/macroserver/recorders/h5storage.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/macroserver/recorders/h5storage.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # # # This file is part of Sardana # # http://www.sardana-controls.org/ # # Copyright 2017 CELLS / ALBA Synchrotron, Bellaterra, Spain # # Sardana is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Softw...
38.732558
79
0.551986
9ed26e76ece3a660ce8b6201fe89c6cac30161e3
4,321
py
Python
tests/test_dfmp2_4_psi4.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
tests/test_dfmp2_4_psi4.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
tests/test_dfmp2_4_psi4.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
import os import sys sys.path.insert(1, os.path.join(sys.path[0], '..')) from .utils import * from .addons import * import qcdb #! conventional and density-fitting mp2 test of mp2 itself and setting scs-mp2 def check_mp2(return_value, is_df, is_5050=False): if is_df: ref = -76.0167614256151865 ...
29.195946
114
0.629252
9ed28b2258d2f8d95009097f1efa915cdf4fbfc5
130,119
py
Python
ARLO/block/model_generation_online.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
ARLO/block/model_generation_online.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
ARLO/block/model_generation_online.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
""" This module contains the implementation of the Classes: ModelGenerationMushroomOnline, ModelGenerationMushroomOnlineDQN, ModelGenerationMushroomOnlineAC, ModelGenerationMushroomOnlinePPO, ModelGenerationMushroomOnlineSAC, ModelGenerationMushroomOnlineDDPG and ModelGenerationMushroomOnlineGPOMDP. The Class ModelG...
57.473057
205
0.57007
9ed2c400b08a0ffb7e661be4c0586ab933a9bd14
54,467
py
Python
pandaserver/daemons/scripts/datasetManager.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
7
2015-03-30T14:15:35.000Z
2021-12-22T06:48:22.000Z
pandaserver/daemons/scripts/datasetManager.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
16
2015-06-01T13:48:01.000Z
2022-02-08T15:03:32.000Z
pandaserver/daemons/scripts/datasetManager.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
15
2015-03-02T08:57:35.000Z
2022-03-01T09:48:45.000Z
import os import re import sys import time import datetime import traceback import threading import pandaserver.taskbuffer.ErrorCode import pandaserver.taskbuffer.ErrorCode from pandacommon.pandalogger.PandaLogger import PandaLogger from pandaserver.config import panda_config from pandaserver.dataservice.DDM import ru...
46.276126
242
0.476343
9ed2d8fcface437d95c49d794d3742629ab1f261
364
py
Python
nequip/datasets/water.py
albertzhu01/nequip
63ba41185e7852ebb6f68983ec30d1f569e43271
[ "MIT" ]
1
2022-03-13T10:17:53.000Z
2022-03-13T10:17:53.000Z
nequip/datasets/water.py
leoil/nequip
83b888797025c94b9963a508bc213a7c98da5bcb
[ "MIT" ]
null
null
null
nequip/datasets/water.py
leoil/nequip
83b888797025c94b9963a508bc213a7c98da5bcb
[ "MIT" ]
null
null
null
import numpy as np from ase import units from ase.io import read from nequip.data import ASEDataset, AtomicDataDict class ChengWaterDataset(ASEDataset): """Cheng Water Dataset TODO: energies """ URL = None FILE_NAME = "benchmark_data/dataset_1593.xyz" FORCE_FIXED_KEYS = [AtomicDataDict.PBC...
17.333333
50
0.708791
9ed2f9ba0048cfe248870626ed7f3331eb6e261a
11,380
py
Python
nova/tests/unit/virt/libvirt/volume/test_volume.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/virt/libvirt/volume/test_volume.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/libvirt/volume/test_volume.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2010 OpenStack Foundation # Copyright 2012 University Of Minho # # 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....
35.673981
78
0.587083
9ed2fe7eaddbdccf0ce3ba3e2adc115611d140a9
2,503
py
Python
src/api/bkuser_core/tests/apis/v2/user_settings/test_settings_list.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/tests/apis/v2/user_settings/test_settings_list.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/tests/apis/v2/user_settings/test_settings_list.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
40.370968
115
0.670396
9ed30e9a7793a0e73512561e6a5c4bfff0555858
1,474
py
Python
python-code/dlib-learning/dlib_cut_face.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/dlib-learning/dlib_cut_face.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/dlib-learning/dlib_cut_face.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
import dlib # 人脸识别的库dlib import numpy as np # 数据处理的库numpy import cv2 # 图像处理的库OpenCv # dlib预测器 detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor('shape_predictor_68_face_landmarks.dat') # 读取图像 path = "F:/code/python/P_Dlib_face_cut/pic/" img = cv2.imread(path+"test_faces_6....
20.760563
73
0.644505
9ed3574ed9ff40ece7c435e355c64817ad63bd51
4,718
py
Python
userbot/modules/purge.py
JoanLindo/BaianoBot-backup-sexo
b3d0b0f83b6460c3279a243ab753745df1562852
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-11-23T16:43:44.000Z
2021-11-23T16:43:44.000Z
userbot/modules/purge.py
JoanLindo/purpled
fd95c674de3e4c0bc9eb909dddb4a65c7623fa02
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/purge.py
JoanLindo/purpled
fd95c674de3e4c0bc9eb909dddb4a65c7623fa02
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for purging unneeded messages(usually spam or ot). """ from asyncio import sleep from telethon.err...
28.421687
85
0.618058
9ed3762c9ef1caba4415c6447b7642cdffea0d2f
12,528
py
Python
tests/unit/bokeh/server/test_auth_provider.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/server/test_auth_provider.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/server/test_auth_provider.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
33.587131
122
0.57599
9ed3a9f8cc80722618eff77240e7588f18d2b13d
2,976
py
Python
keras_tweaks/idseqs_to_mask.py
ulf1/keras-tweaks
ab937b7f01fd7c327c9a7f8f602067a81913a2d2
[ "Apache-2.0" ]
null
null
null
keras_tweaks/idseqs_to_mask.py
ulf1/keras-tweaks
ab937b7f01fd7c327c9a7f8f602067a81913a2d2
[ "Apache-2.0" ]
null
null
null
keras_tweaks/idseqs_to_mask.py
ulf1/keras-tweaks
ab937b7f01fd7c327c9a7f8f602067a81913a2d2
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import itertools from typing import List, Optional, Union Number = Union[bool, int, float] def idseqs_to_mask(idseqs: List[List[int]], n_seqlen: Optional[int] = None, n_vocab_sz: Optional[int] = None, ignore: Optional[List[int]] = [], ...
31
78
0.600134
9ed3ae286a7dffb6a9c679d26d68c805aec8aac9
2,902
py
Python
method.py
jonasstenling/bumper
d0f415c80ef183c49e038581f41fb38609fcb1e7
[ "MIT" ]
null
null
null
method.py
jonasstenling/bumper
d0f415c80ef183c49e038581f41fb38609fcb1e7
[ "MIT" ]
null
null
null
method.py
jonasstenling/bumper
d0f415c80ef183c49e038581f41fb38609fcb1e7
[ "MIT" ]
null
null
null
''' This module implements evaluation methods used to evaluate rules defined in the input YAML file. ''' from eval import EvalResult class PluginMount(type): ''' Metaclass used by MethodProvider to create plugin architecture. ''' def __init__(cls, name, bases, attrs): if not hasattr(cls, 'plugi...
34.963855
79
0.540317
9ed3c531e028b96f07c9fe3774ae9059c99e0fda
8,549
py
Python
dowhy/causal_refuter.py
HeyangGong/dowhy_zh
e768c006fd5ef31ec21f5b3dd6dad4f122035b4f
[ "MIT" ]
12
2020-08-05T09:48:27.000Z
2022-02-07T15:52:24.000Z
dowhy/causal_refuter.py
HeyangGong/dowhy_zh
e768c006fd5ef31ec21f5b3dd6dad4f122035b4f
[ "MIT" ]
1
2020-03-18T11:47:43.000Z
2020-03-18T11:47:43.000Z
dowhy/causal_refuter.py
Causal-Inference-ZeroToAll/dowhy
ac03e857de0cf31283323546ca16dd1cebc34eba
[ "MIT" ]
1
2019-10-17T12:06:54.000Z
2019-10-17T12:06:54.000Z
import logging import numpy as np import scipy.stats as st class CausalRefuter: """Base class for different refutation methods. Subclasses implement specific refutations methods. """ # Default value for the number of simulations to be conducted DEFAULT_NUM_SIMULATIONS = 100 def __init...
44.994737
140
0.66733
9ed3c54008914f95765f361528f377b57784de88
1,636
py
Python
galah/web/views/_get_csv.py
brownhead/galah
f4475c49c920fcebbcb96636385f23863dc1e4c2
[ "MIT" ]
1
2021-01-03T00:23:56.000Z
2021-01-03T00:23:56.000Z
galah/web/views/_get_csv.py
itsjohncs/galah
f4475c49c920fcebbcb96636385f23863dc1e4c2
[ "MIT" ]
null
null
null
galah/web/views/_get_csv.py
itsjohncs/galah
f4475c49c920fcebbcb96636385f23863dc1e4c2
[ "MIT" ]
1
2016-12-21T19:54:41.000Z
2016-12-21T19:54:41.000Z
from galah.web import app from flask.ext.login import current_user from galah.web.auth import FlaskUser from flask import ( redirect, url_for, request, abort, current_app, send_file, Response ) from galah.db.models import CSV from bson.objectid import ObjectId, InvalidId from galah.web.util import GalahWebAdapter i...
27.728814
72
0.635086
9ed3cbab79ceed2e8bc61fafde8ddbd3a35141ce
2,335
py
Python
tools/views/categories.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/views/categories.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/views/categories.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
import logging from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.db import transaction from django.db.models import Prefetch from django.core.files.storage import default_storage from django.contrib.auth.decorators import login_required, permission_require...
36.484375
111
0.734475
9ed3e1430449eb9476fd23f23201b124a4782f7a
3,610
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import logging import unittest import urllib2 from webkitpy.common.net.rietveld import latest_try_jobs, TryJob, get_latest_try_job_results from ...
37.604167
110
0.539612
9ed42926a47a2ef329f70cead97f445ad1029835
5,028
py
Python
docs/conf.py
prajaotak/aqi_thailand2
0a6f8573e840c90196c1a4619758099afdd0deef
[ "MIT" ]
13
2020-01-16T07:02:38.000Z
2021-12-11T13:06:28.000Z
docs/conf.py
prajaotak/aqi_thailand2
0a6f8573e840c90196c1a4619758099afdd0deef
[ "MIT" ]
3
2020-11-13T18:56:44.000Z
2022-03-11T17:21:09.000Z
docs/conf.py
prajaotak/aqi_thailand2
0a6f8573e840c90196c1a4619758099afdd0deef
[ "MIT" ]
5
2020-07-29T07:02:10.000Z
2022-02-11T10:59:14.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
29.751479
80
0.661695
9ed45329c0c4a2f7246ad3a094f994456c04e4ce
22,150
py
Python
src/robot/running/bodyrunner.py
DirkRichter/robotframework
ae5c931834e56c195e76e5d6bcdfcd6a73babaf2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/bodyrunner.py
DirkRichter/robotframework
ae5c931834e56c195e76e5d6bcdfcd6a73babaf2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/bodyrunner.py
DirkRichter/robotframework
ae5c931834e56c195e76e5d6bcdfcd6a73babaf2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
38.927944
89
0.58781
9ed46d5d6a19f184cf508a040b124c6cf9a1d841
3,479
py
Python
src/demo_music_critic/model_params/grok_anomaly_model_params.py
fcr/Haifa_Tech_Meetup_Talk
d33a74dac894d2c5cd6aa49e1a60a7df284c0f8f
[ "MIT" ]
4
2020-04-08T03:02:09.000Z
2021-11-05T12:24:34.000Z
src/demo_music_critic/model_params/grok_anomaly_model_params.py
fcr/python_meetup_htm_slides
ef261cd2ec0bb81ecdd829420ae273baff3892cf
[ "MIT" ]
null
null
null
src/demo_music_critic/model_params/grok_anomaly_model_params.py
fcr/python_meetup_htm_slides
ef261cd2ec0bb81ecdd829420ae273baff3892cf
[ "MIT" ]
1
2020-12-04T03:23:11.000Z
2020-12-04T03:23:11.000Z
MODEL_PARAMS = \ { 'aggregationInfo': { 'days': 0, 'fields': [], 'hours': 0, 'microseconds': 0, 'milliseconds': 0, 'minutes': 0, 'months': 0, 'seconds': 0, ...
53.523077
86
0.296637
9ed48afb991e6f62b5f9c4d2a480d0a8d44e5402
15,304
py
Python
niapy/algorithms/basic/gso.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/basic/gso.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/basic/gso.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
# encoding=utf8 import logging import numpy as np from niapy.algorithms.algorithm import Algorithm from niapy.util import euclidean logging.basicConfig() logger = logging.getLogger('niapy.algorithms.basic') logger.setLevel('INFO') __all__ = ['GlowwormSwarmOptimization', 'GlowwormSwarmOptimizationV1', 'GlowwormSwarm...
34.008889
157
0.619707
9ed496230520fc335cb1216db9c8ac420963d0df
640
py
Python
nicedjango/_compat.py
movermeyer/nicedjango
c38ada1e50efb5ef0874ef063074b621579c2954
[ "MIT" ]
1
2016-10-18T18:40:45.000Z
2016-10-18T18:40:45.000Z
nicedjango/_compat.py
movermeyer/nicedjango
c38ada1e50efb5ef0874ef063074b621579c2954
[ "MIT" ]
null
null
null
nicedjango/_compat.py
movermeyer/nicedjango
c38ada1e50efb5ef0874ef063074b621579c2954
[ "MIT" ]
1
2018-03-05T01:21:23.000Z
2018-03-05T01:21:23.000Z
import itertools import sys if sys.version_info[0] == 2: from itertools import izip_longest, imap, izip basestring = basestring # @ReservedAssignment unicode = unicode # @ReservedAssignment bytes = str # @ReservedAssignment filterfalse = itertools.ifilterfalse elif sys.version_info[0] == 3: fr...
29.090909
60
0.729688
9ed4a615790d5706ce0177571dee8c2de3a3183e
435
py
Python
game/bagOfTokensScore.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/bagOfTokensScore.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/bagOfTokensScore.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def bagOfTokensScore(self, tokens, P): tokens.sort() l, r, score = 0, len(tokens) - 1, 0 while l <= r: if P >= tokens[l]: P -= tokens[l] score += 1 l += 1 elif score and l != r: P += token...
27.1875
43
0.356322
9ed4c4964dc949020fe2e7bb7eaf75e45732b14c
7,195
py
Python
docs/sphinx/source/conf.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
docs/sphinx/source/conf.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
docs/sphinx/source/conf.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # ackward documentation build configuration file, created by # sphinx-quickstart on Sat Apr 23 08:14:04 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
32.40991
80
0.718694
9ed52119e83e6311bfe4f1fc156070718ed04ccf
2,670
py
Python
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error_translation_file.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error_translation_file.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error_translation_file.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.962963
103
0.625843
9ed54d0e9268f05ae471f6ed2b38787e35fab0c3
1,364
py
Python
test/S3test.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
4
2019-07-19T05:40:37.000Z
2021-03-31T05:49:30.000Z
test/S3test.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
1
2019-08-13T18:27:40.000Z
2019-08-13T18:27:40.000Z
test/S3test.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
null
null
null
import unittest from afs2datasource import DBManager, constant class TestS3Hepler(unittest.TestCase): def setUp(self): self.db_type = constant.DB_TYPE['S3'] self.endpoint = '' self.access_key = '' self.secret_key = '' self.bucket_name = 'test' self.source = 'titanic.csv' self.folder = 'te...
31
109
0.689883
9ed55a333d7e4095de451b7208eb21e792f03c2e
14,214
py
Python
models/nlp/text_tfidf_model_continuous.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
194
2019-04-23T10:25:13.000Z
2022-03-29T04:19:28.000Z
models/nlp/text_tfidf_model_continuous.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
50
2019-06-24T20:17:51.000Z
2022-03-16T20:05:37.000Z
models/nlp/text_tfidf_model_continuous.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
85
2019-03-27T12:26:43.000Z
2022-01-27T13:15:37.000Z
"""Text classification model using TFIDF""" import random import numpy as np import scipy as sp import datatable as dt from sklearn.preprocessing import LabelEncoder from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.linear_model import LinearRegression, LogisticRegression from h2oaicore.models im...
37.112272
118
0.534121
9ed584938668da708775146c6c1219172d5a2054
3,982
py
Python
aslprep/sdcflows/interfaces/reportlets.py
lawlessrd/aslprep
22ec61f482cc3561f4fd35d769af0fe8bc2e80cb
[ "BSD-3-Clause" ]
2
2022-03-18T18:31:12.000Z
2022-03-18T18:31:26.000Z
aslprep/sdcflows/interfaces/reportlets.py
kha-dija1/aslprep
ce1ed4a8fa23f64aaa7d6bb0977582586e6a7039
[ "BSD-3-Clause" ]
null
null
null
aslprep/sdcflows/interfaces/reportlets.py
kha-dija1/aslprep
ce1ed4a8fa23f64aaa7d6bb0977582586e6a7039
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Interfaces to generate speciality reportlets.""" import numpy as np from nilearn.image import threshold_img, load_img from ...niworkflows import NIWORKFLOWS_LOG from ...niworkflows.viz.utils import cuts_...
41.051546
80
0.59769
9ed5ae3f1fcff9269297c236e4fd6cd02c5c11f8
5,749
py
Python
processing_provider/Post_ChangeEnconding.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
19
2021-03-14T11:37:00.000Z
2022-03-31T13:29:57.000Z
processing_provider/Post_ChangeEnconding.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
4
2021-04-06T03:57:43.000Z
2022-03-28T22:57:07.000Z
processing_provider/Post_ChangeEnconding.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
3
2022-02-12T16:14:17.000Z
2022-03-28T22:18:04.000Z
# -*- coding: utf-8 -*- """ Post_ChangeEnconding.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Gener...
35.93125
166
0.552792
9ed5cafddc3fe4c5e47e84576c8822656de01030
696
py
Python
docsim/tests/methods/methods/fuzzy/test_naive.py
tarohi24/docsim
4879bcc889c32470a27094eb183c2ce15ae2f1fb
[ "MIT" ]
1
2020-04-29T13:52:29.000Z
2020-04-29T13:52:29.000Z
docsim/tests/methods/methods/fuzzy/test_naive.py
tarohi24/docsim
4879bcc889c32470a27094eb183c2ce15ae2f1fb
[ "MIT" ]
136
2019-09-19T03:36:21.000Z
2019-11-28T08:50:45.000Z
docsim/tests/methods/methods/fuzzy/test_naive.py
tarohi24/docsim
4879bcc889c32470a27094eb183c2ce15ae2f1fb
[ "MIT" ]
null
null
null
import pytest from docsim.methods.methods.fuzzy.param import FuzzyParam from docsim.methods.methods.fuzzy.naive import FuzzyNaive from docsim.tests.methods.methods.base import context # noqa from docsim.tests.embedding.fasttext import FTMock @pytest.fixture def param() -> FuzzyParam: return FuzzyParam( ...
22.451613
75
0.735632
9ed5d363e6c8bffd817357c006abee7ac0d1dbba
2,408
py
Python
tensorflow/contrib/eager/python/examples/revnet/ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/eager/python/examples/revnet/ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/eager/python/examples/revnet/ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2018 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...
33.915493
80
0.673173
9ed5d64cea8c6de1eafb51a09b5ee8fb1f43b9a0
1,716
py
Python
ranger_cli/plugins/commands.py
degagne/ranger-cli
35dda457af75f34c10664ccd161ec4fd256e67c0
[ "MIT" ]
null
null
null
ranger_cli/plugins/commands.py
degagne/ranger-cli
35dda457af75f34c10664ccd161ec4fd256e67c0
[ "MIT" ]
null
null
null
ranger_cli/plugins/commands.py
degagne/ranger-cli
35dda457af75f34c10664ccd161ec4fd256e67c0
[ "MIT" ]
null
null
null
import click import json from ranger_cli.utils import CONTEXT_SETTINGS, response_and_exit, pretty_response from ranger_cli.config import provide_ranger_client from ranger_cli.client import RangerClient from ranger_cli.cli_options import profile_option, service_name_option, apptype_option, hostname_option @click.grou...
31.777778
103
0.655594
9ed5d7f20003f9d9b2e08a33f9cf70937154e706
1,211
py
Python
path_and_address/parsing.py
myhro/deb-python-path-and-address
91ef5cdbdac90ee28da7caa5b860ff1893b6c169
[ "MIT" ]
null
null
null
path_and_address/parsing.py
myhro/deb-python-path-and-address
91ef5cdbdac90ee28da7caa5b860ff1893b6c169
[ "MIT" ]
null
null
null
path_and_address/parsing.py
myhro/deb-python-path-and-address
91ef5cdbdac90ee28da7caa5b860ff1893b6c169
[ "MIT" ]
null
null
null
from .validation import valid_hostname, valid_port def resolve(path_or_address=None, address=None, *ignored): """ Returns (path, address) based on consecutive optional arguments, [path] [address]. """ if path_or_address is None or address is not None: return path_or_address, address p...
25.229167
72
0.658134
9ed5e7e1f3813e0bd2e75ca08c2d502044969d4d
4,100
py
Python
kloppy/tests/test_opta.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
kloppy/tests/test_opta.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
kloppy/tests/test_opta.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
import os from kloppy import OptaSerializer from kloppy.domain import ( AttackingDirection, Period, Orientation, Provider, Player, Position, Ground, Point, BodyPart, SetPieceType, PassType, CardType, ) from kloppy.domain.models.common import DatasetType from kloppy.helpe...
34.166667
79
0.621463
9ed6092909140eed632a48e68e254816253f6f4f
1,794
py
Python
python/geeksforgeeks/divide_and_conquer/closest-pair-of-points-using-divide-and-conquer-algorithm.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/divide_and_conquer/closest-pair-of-points-using-divide-and-conquer-algorithm.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/divide_and_conquer/closest-pair-of-points-using-divide-and-conquer-algorithm.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
""" https://www.geeksforgeeks.org/closest-pair-of-points-using-divide-and-conquer-algorithm/ We are given an array of n points in the plane, and the problem is to find out the closest pair of points in the array. """ # A divide and conquer program in Python3 # to find the smallest distance from a # given set of po...
27.6
119
0.617614
9ed60e90f226a2b934721770ba6f8590d5a0c8a4
10,954
py
Python
example/serializers.py
nvandijk/django-rest-framework-json-api
a82123d569fe2a9a0cb7b88b53790518506183d7
[ "BSD-2-Clause" ]
1
2020-02-11T02:57:00.000Z
2020-02-11T02:57:00.000Z
example/serializers.py
nvandijk/django-rest-framework-json-api
a82123d569fe2a9a0cb7b88b53790518506183d7
[ "BSD-2-Clause" ]
6
2021-06-05T00:08:43.000Z
2022-02-27T10:56:07.000Z
example/serializers.py
bzhr/perdoo_case_study
082ed1f6718c81055fdc1501865c4c699c65644a
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from rest_framework import fields as drf_fields from rest_framework import serializers as drf_serilazers from rest_framework_json_api import relations, serializers from example.models import ( ArtProject, Author, AuthorBio, AuthorBioMetadata, AuthorType, Blog, ...
30.34349
94
0.67254
9ed60f8c7c11adf5f0f2f5eac99c6e656739c8cc
22,095
py
Python
thampi/core/api.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
13
2018-12-17T02:20:30.000Z
2019-11-27T23:56:56.000Z
thampi/core/api.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
7
2018-10-25T13:53:32.000Z
2019-03-19T22:20:59.000Z
thampi/core/api.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
3
2018-10-01T20:01:22.000Z
2019-10-29T23:43:27.000Z
""" This is the programmatic interface of `thampi` which closely maps to the command line interface. For e.g. On the command line, `thampi serve` corresponds closely to the python method `serve` in `thampi.core.api`. """ from pathlib import Path from typing import Dict, Callable, List from thampi import core from th...
36.340461
122
0.68563
9ed640215c33d6546620ef2d559c2a4146ee505b
2,017
py
Python
backend/model/migrate/versions/5ff6324d4f_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/5ff6324d4f_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/5ff6324d4f_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Custom service Revision ID: 5ff6324d4f Revises: 114df3b64e8 Create Date: 2015-06-15 19:45:19.742675 """ # revision identifiers, used by Alembic. revision = '5ff6324d4f' down_revision = '114df3b64e8' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engine_name): ...
28.013889
86
0.699554
9ed684562396ca9b2073d3124dd73e212b5faa83
8,899
py
Python
src/python/test/test_batch.py
xquek/dx-toolkit
9410871a54ba827d821d20dbd1c16294ff95230e
[ "Apache-2.0" ]
null
null
null
src/python/test/test_batch.py
xquek/dx-toolkit
9410871a54ba827d821d20dbd1c16294ff95230e
[ "Apache-2.0" ]
null
null
null
src/python/test/test_batch.py
xquek/dx-toolkit
9410871a54ba827d821d20dbd1c16294ff95230e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013-2016 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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 c...
43.622549
121
0.537139
9ed697d6ddd017927f0681cf7fd52d6ec4d10cb2
1,868
py
Python
Tools/scons/scons-local/SCons/Tool/hpcc.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/hpcc.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/hpcc.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Tool.hpcc Tool-specific initialization for HP aCC and cc. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # Permission is hereby grant...
34.592593
82
0.724304
9ed6db114e21e7a86780bff331d23117fd7f256c
4,946
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/rgb_display_pillow_stats.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
76
2017-01-15T15:23:18.000Z
2022-02-24T10:07:06.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/rgb_display_pillow_stats.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
50
2017-08-30T22:27:26.000Z
2022-03-20T21:28:30.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/rgb_display_pillow_stats.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
58
2017-08-30T22:34:03.000Z
2022-03-16T02:47:54.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This will show some Linux Statistics on the attached display. Be sure to adjust to the display you have connected. Be sure to check the learn guides for more usage information. This example is for use on (Linux) computer...
41.915254
141
0.677315
9ed6e24f386003f7a75ec87531cb2093f7bf16d2
785
py
Python
core/model.py
voXrey/connect4
03f585babef2f5ef0d74ba4b8bd78c284a63a8db
[ "MIT" ]
1
2022-03-19T18:59:33.000Z
2022-03-19T18:59:33.000Z
core/model.py
voXrey/connect4
03f585babef2f5ef0d74ba4b8bd78c284a63a8db
[ "MIT" ]
null
null
null
core/model.py
voXrey/connect4
03f585babef2f5ef0d74ba4b8bd78c284a63a8db
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class Player: """Class of players's data""" name: str tab_number: int symbol: str type: str def __init__(self, name:str, tab_number:int, symbol:str, type:str): self.name = name self.tab_number = tab_number self.s...
19.625
72
0.540127
9ed6fd3d99d96aad2b0e5ea98587e1f1caa6b3d0
4,545
py
Python
melody/constraints/relative_scalar_step_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
melody/constraints/relative_scalar_step_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
melody/constraints/relative_scalar_step_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
""" File: relative_step_constraint.py Purpose: Constraint that computes a second pitch from the first based on relative number of scalar steps. """ from melody.constraints.abstract_constraint import AbstractConstraint from structure.note import Note from tonalmodel.pitch_scale import PitchScale class RelativeScala...
35.787402
116
0.639384
9ed6fef848c526c80e16231b5837df608e5fa3fb
245
py
Python
bubblesort.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
bubblesort.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
bubblesort.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
def bubble(a): n=len(a) for i in range(n): for j in range(0,n-i-1): if(a[j]>a[j+1]): tmp=a[j] a[j]=a[j+1] a[j+1]=tmp a=[5,1,4,2,8] bubble(a) for i in a: print(i)
15.3125
32
0.371429
9ed72b21fbbe49b4334d8247cf8cbcfdd314eb76
26,528
py
Python
improver_tests/calibration/utilities/test_utilities.py
NMC-DAVE/improver
b56379f8bd236ddf2bab31ef64af8345de856cc1
[ "BSD-3-Clause" ]
1
2021-08-02T21:17:18.000Z
2021-08-02T21:17:18.000Z
improver_tests/calibration/utilities/test_utilities.py
NMC-DAVE/improver
b56379f8bd236ddf2bab31ef64af8345de856cc1
[ "BSD-3-Clause" ]
null
null
null
improver_tests/calibration/utilities/test_utilities.py
NMC-DAVE/improver
b56379f8bd236ddf2bab31ef64af8345de856cc1
[ "BSD-3-Clause" ]
1
2021-08-02T21:17:19.000Z
2021-08-02T21:17:19.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
40.254932
87
0.650822
9ed74d15f34870dce7a24831ee29df5dbf76264b
1,900
py
Python
main/VLA_simulation.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/VLA_simulation.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/VLA_simulation.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
import numpy as NP from astropy.io import fits import geometry as GEOM import interferometry as RI import catalog as CTLG catalog_file = '/Users/t_nithyanandan/Downloads/first_13jun05.fits' # catalog_file = '/Users/t_nithyanandan/Downloads/catalog_13jun05.bin' # catinfo = NP.loadtxt(catalog_file, comments='#', skipro...
27.536232
124
0.707368
9ed74e5078edc48d6e56e916de8e776111ded2b9
10,897
py
Python
misc/scripts/straight_mlpg/parameter_generation.py
npujcong/speaker_adaptation_voicenet
24ae3ff41479e217aafa55e24d77a3e6c1357a60
[ "Apache-2.0" ]
null
null
null
misc/scripts/straight_mlpg/parameter_generation.py
npujcong/speaker_adaptation_voicenet
24ae3ff41479e217aafa55e24d77a3e6c1357a60
[ "Apache-2.0" ]
null
null
null
misc/scripts/straight_mlpg/parameter_generation.py
npujcong/speaker_adaptation_voicenet
24ae3ff41479e217aafa55e24d77a3e6c1357a60
[ "Apache-2.0" ]
null
null
null
################################################################################ # The Neural Network (NN) based Speech Synthesis System # https://svn.ecdf.ed.ac.uk/repo/inf/dnn_tts/ # # Centre for Speech Technology Research # University of Edinburgh, UK # ...
40.660448
146
0.616959
9ed7889b369ac676ddc4a9c00de9f259e6a92e4f
2,027
py
Python
tests/functional/dashboard/test_category.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/functional/dashboard/test_category.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/functional/dashboard/test_category.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from oscar.test.testcases import WebTestCase from oscar.apps.catalogue.models import Category from oscar.apps.catalogue.categories import create_from_breadcrumbs from oscar.test.factories import UserFactory class TestCategoryDashboard(WebTestCase): def setU...
42.229167
84
0.632462
9ed79df56bac161119edc3f8a89c4dd6452c7147
897
py
Python
stests/core/crypto/hashifier.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/core/crypto/hashifier.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/core/crypto/hashifier.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import typing from stests.core.crypto import hashifier_blake2b as blake2b from stests.core.crypto.enums import HashAlgorithm from stests.core.crypto.enums import HashEncoding # Map: Hash Algo Type -> Hash Algo Implementation. ALGOS = { HashAlgorithm.BLAKE2B: blake2b, } ENCODERS = { HashEncoding.BYTES: lamb...
24.243243
63
0.697882
9ed7a964616463346d0f465e56783e2fadc3e5a2
242
py
Python
{{cookiecutter.PROJECT_NAME}}/media/serializers.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
4
2020-09-01T06:37:17.000Z
2020-09-01T07:11:32.000Z
{{cookiecutter.PROJECT_NAME}}/media/serializers.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.PROJECT_NAME}}/media/serializers.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import serializers from media.models import ExternalImage class ExternalImageSerializer(serializers.ModelSerializer): class Meta: model = ExternalImage fields = ['id', 'image', 'created', 'modified']
26.888889
59
0.735537
9ed7b44d87e8c93d226f3113304d595e759a58d9
1,730
py
Python
DatabaseServer/options_holder.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:53.000Z
2020-08-20T23:38:53.000Z
DatabaseServer/options_holder.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
88
2015-09-03T11:50:41.000Z
2021-02-18T19:13:04.000Z
DatabaseServer/options_holder.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:05.000Z
2020-08-20T23:38:05.000Z
from __future__ import print_function, absolute_import, division, unicode_literals # This file is part of the ISIS IBEX application. # Copyright (C) 2012-2016 Science & Technology Facilities Council. # All rights reserved. # # This program is distributed in the hope that it will be useful. # This program and the accomp...
44.358974
97
0.73815
9ed7c7da5696a73e33e58549a4857ad272dd4a8a
2,427
py
Python
setup.py
blitz95/GreenGuard
e17d8a43766d4e76743806e295587a1af1cd98f5
[ "MIT" ]
null
null
null
setup.py
blitz95/GreenGuard
e17d8a43766d4e76743806e295587a1af1cd98f5
[ "MIT" ]
null
null
null
setup.py
blitz95/GreenGuard
e17d8a43766d4e76743806e295587a1af1cd98f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages try: with open('README.md') as readme_file: readme = readme_file.read() except IOError: readme = '' try: with open('HISTORY.md') as history_file: history = history_file.read() except IOError: his...
23.794118
86
0.60033
9ed7d56a9eb4fee71e3bcaa6224e20c723504659
3,351
py
Python
StreamPy/TestExamplesListToStreams/test_example_element_multi_in_single_out_stateless.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/test_example_element_multi_in_single_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/test_example_element_multi_in_single_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of stream_func where f_type is 'element' and stream_func has a list of multiple input streams, a single output stream, and the operation is stateless. These examples must have a LIST of input streams and not a single input stream. The functions on static Python data structures are of t...
29.13913
89
0.649955
9ed7ee3690a232994ab21920ef044f9dde970ed4
3,466
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.326923
80
0.742931
9ed7f3a69c846f220f1f46d018510d6551e5c514
10,397
py
Python
python/tvm/autotvm/measure/measure_methods.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
python/tvm/autotvm/measure/measure_methods.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
python/tvm/autotvm/measure/measure_methods.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
# pylint: disable=consider-using-enumerate,invalid-name,too-many-function-args """ Functions that run on executor for measurement. These functions are responsible for building tvm module, uploading it to remote devices, recording the running time costs and checking the correctness of output """ import logging import o...
35.363946
97
0.602289
9ed7fffb82daa06e37db6fd5b77adc9b87a473cc
48,139
py
Python
cbrunner/cbrun.py
RobbieHember/fcgadgets
d968991ea185d48df8d674d290b7e03bfc8843d4
[ "Apache-2.0" ]
2
2021-11-18T21:29:37.000Z
2022-01-13T23:40:42.000Z
cbrunner/cbrun.py
RobbieHember/fcgadgets
d968991ea185d48df8d674d290b7e03bfc8843d4
[ "Apache-2.0" ]
null
null
null
cbrunner/cbrun.py
RobbieHember/fcgadgets
d968991ea185d48df8d674d290b7e03bfc8843d4
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pandas as pd import copy import gc as garc import time import datetime from fcgadgets.macgyver import utilities_general as gu from fcgadgets.cbrunner import cbrun_utilities as cbu from fcgadgets.cbrunner import cbrun_annproc as annproc #%% Run simulation def MeepMeep(meta): ...
43.290468
176
0.498556
9ed816b7b208f31262912592f419266a9e06e096
6,927
py
Python
src/ranchbot/commands/minecraft/minecraft.py
Erik142/ranch-bot
9d9604fb74ffe01734672a5632a991ec8bb80c4e
[ "MIT" ]
2
2021-11-30T19:35:28.000Z
2021-11-30T20:29:58.000Z
src/ranchbot/commands/minecraft/minecraft.py
Erik142/ranch-bot
9d9604fb74ffe01734672a5632a991ec8bb80c4e
[ "MIT" ]
14
2021-11-30T20:32:04.000Z
2022-01-22T14:08:51.000Z
src/ranchbot/commands/minecraft/minecraft.py
Erik142/ranch-bot
9d9604fb74ffe01734672a5632a991ec8bb80c4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from hikari import Color from hikari.messages import MessageFlag import lightbulb import colour import secrets from ranchbot.core.bot import Bot from ranchbot.core.config import Config from ranchbot.core.database import PostgresDatabase from ranchbot.util.embed import embed from ranchbot.util....
44.403846
219
0.665512
9ed841948399d71db78432110673f5a7f0721f5c
28,275
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2022_02_01_preview/operations/_data_collection_rule_associations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2022_02_01_preview/operations/_data_collection_rule_associations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2022_02_01_preview/operations/_data_collection_rule_associations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
42.776097
236
0.680884
9ed858c88b4839d28987796272602a668f8ea986
507
py
Python
app/models/adafruit.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
app/models/adafruit.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
2
2021-03-31T18:30:32.000Z
2021-12-13T19:44:07.000Z
app/models/adafruit.py
myadventure/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
""" adafruit.py Adafruit mongoengine model """ from mongoengine import EmbeddedDocument from mongoengine import fields class Adafruit(EmbeddedDocument): """A adafruit.io model.""" base_url = fields.StringField(required=True) username = fields.StringField(required=True) feed = fields.StringField(requ...
22.043478
48
0.70217
9ed886e9c658890f429a5ee69bf8333d58899783
510
py
Python
scripts/python/mt_time.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/mt_time.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/mt_time.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python #/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # * Copyright (c) 1995-2002 UCAR # * University Corporation for Atmospheric Research(UCAR) # * National Center for Atmospheric Research(NCAR) # * Research Applications Program(RAP) # * P.O.Box 3000, Boulder, Colorado, 80307-3000, USA # * ...
25.5
60
0.537255
9ed8927b9a6e29478f5431d2f5da07e004b1991a
2,563
py
Python
validation-scripts/ice_validator/tests/test_unique_resources_across_template.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
validation-scripts/ice_validator/tests/test_unique_resources_across_template.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
validation-scripts/ice_validator/tests/test_unique_resources_across_template.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf8 -*- # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ========================================...
37.144928
82
0.655872
9ed899f6bbbb237b9ec4251c17afa57538723548
1,770
py
Python
configs/styleganv3/stylegan3_t_ffhqu_256_b4x8_official.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
configs/styleganv3/stylegan3_t_ffhqu_256_b4x8_official.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
configs/styleganv3/stylegan3_t_ffhqu_256_b4x8_official.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/stylegan/stylegan3_base.py', '../_base_/datasets/unconditional_imgs_flip_256x256.py', '../_base_/default_runtime.py' ] synthesis_cfg = { 'type': 'SynthesisNetwork', 'channel_base': 16384, 'channel_max': 512, 'magnitude_ema_beta': 0.999 } model = dict( type='...
25.652174
75
0.660452
9ed8d52f9eeef7708d0e04a295e247fde9e60621
17,336
py
Python
src/model.py
Tollanador/alias-free-gan
da7035f478fb396150a3de5c1bd9454aa0778512
[ "MIT" ]
59
2021-07-29T13:53:00.000Z
2022-03-26T13:51:46.000Z
src/model.py
Tollanador/alias-free-gan
da7035f478fb396150a3de5c1bd9454aa0778512
[ "MIT" ]
18
2021-07-29T07:07:17.000Z
2021-11-11T06:00:13.000Z
src/model.py
Tollanador/alias-free-gan
da7035f478fb396150a3de5c1bd9454aa0778512
[ "MIT" ]
8
2021-08-02T20:47:11.000Z
2022-02-17T01:09:03.000Z
import math from typing import Any import os import torch from torch import nn from torch.nn import functional as F import pytorch_lightning as pl from src.stylegan2.model import PixelNorm, EqualLinear, EqualConv2d if 'USE_CPU_OP' in os.environ: from src.op import fused_leaky_relu, upfirdn2d, conv2d_...
28.893333
103
0.544589
9ed93b421539b8f3e1a566176262c30f6d05a403
3,639
py
Python
example_project/settings.py
Raekkeri/gargoyle
98153b3666264fddadd0f8e628acf5059e0e845e
[ "Apache-2.0" ]
177
2015-01-01T03:51:01.000Z
2021-05-28T14:01:31.000Z
example_project/settings.py
Raekkeri/gargoyle
98153b3666264fddadd0f8e628acf5059e0e845e
[ "Apache-2.0" ]
23
2015-01-29T05:34:45.000Z
2016-09-03T00:22:53.000Z
example_project/settings.py
Raekkeri/gargoyle
98153b3666264fddadd0f8e628acf5059e0e845e
[ "Apache-2.0" ]
24
2015-01-12T14:07:18.000Z
2022-01-09T04:53:56.000Z
import os.path import sys # Django settings for example_project project. DEBUG = True TEMPLATE_DEBUG = True ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) INTERNAL_IPS = ('127.0.0.1',) MANAGERS = ADMINS PROJECT_ROOT = os.path.dirname(__file__) sys.path.insert(0, os.path.abspath(os.path.join(PROJECT_RO...
32.783784
122
0.691674
9ed9486d2f6278e6b9824c7003aae8be7dec850e
74
py
Python
datasets_lib/__init__.py
datasets-org/datasets-lib
8b4ec0b0ee2ce8fc8f518599d4cd7ce72f0e0de7
[ "MIT" ]
null
null
null
datasets_lib/__init__.py
datasets-org/datasets-lib
8b4ec0b0ee2ce8fc8f518599d4cd7ce72f0e0de7
[ "MIT" ]
null
null
null
datasets_lib/__init__.py
datasets-org/datasets-lib
8b4ec0b0ee2ce8fc8f518599d4cd7ce72f0e0de7
[ "MIT" ]
null
null
null
from .datasets import Datasets from .datasets_config import DatasetsConfig
37
43
0.878378
9ed94e8537057e5b03674e5301a2d78da1aec348
263
py
Python
tkinter/basic/grid.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
tkinter/basic/grid.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
tkinter/basic/grid.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/evn python # -*- coding: utf-8 -*- # python version 2.7.6 import Tkinter root = Tkinter.Tk( ) for r in range(3): for c in range(4): Tkinter.Label(root, text='R%s/C%s'%(r,c), borderwidth=1 ).grid(row=r,column=c) root.mainloop()
23.909091
49
0.593156
9ed968c6d6e9511c35b483c08c49ad2f2973209f
2,631
py
Python
mudpi/extensions/control/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
163
2020-02-17T16:34:54.000Z
2022-02-28T23:12:11.000Z
mudpi/extensions/control/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
28
2020-05-05T19:42:25.000Z
2021-08-04T18:36:32.000Z
mudpi/extensions/control/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
31
2020-02-27T18:30:42.000Z
2022-01-18T21:14:56.000Z
""" Controls Extension Controls are components like buttons, switches, potentiometers, etc. They are utilized to get user input into the system. """ import datetime from mudpi.extensions import Component, BaseExtension NAMESPACE = 'control' class Extension(BaseExtension): namespace = NAMESPACE ...
28.597826
80
0.585329
9ed96f1228ff2494b4f490552887807814a7b2a9
619
py
Python
attic/dot.py
IMS-workshop/cython-numba
fc9560752f15908d616666df78b1beb970a00a55
[ "BSD-3-Clause" ]
null
null
null
attic/dot.py
IMS-workshop/cython-numba
fc9560752f15908d616666df78b1beb970a00a55
[ "BSD-3-Clause" ]
null
null
null
attic/dot.py
IMS-workshop/cython-numba
fc9560752f15908d616666df78b1beb970a00a55
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numba import jit data1 = np.linspace(1, 300, 3000).reshape(-1, 120) data2 = np.linspace(-1, 300, 60000).reshape(120, -1) print(data1.shape, data2.shape) out1 = data1 @ data2 def my_dot(x, y): assert x.shape[1] == y.shape[0] out = np.zeros((x.shape[0], y.shape[1])) for i in range(x...
23.807692
52
0.609047
9ed9a0edd35af3afb393ec76209a0921bed6a941
4,960
py
Python
push_notifications/models.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
push_notifications/models.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
push_notifications/models.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from .fields import HexIntegerField from .settings import PUSH_NOTIFICATIONS_SETTINGS as SETTINGS CLOUD_MESSAGE_TYPES = ( ("GCM",...
29.176471
98
0.749798
9ed9a7c987b2c34443f18d52762c6cb501128f02
3,749
py
Python
appengine/monorail/tracker/attachment_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/tracker/attachment_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/tracker/attachment_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Functions to help display attachments and compute quotas.""" from __future__ import print_fu...
33.176991
75
0.727927
9ed9c26a6791b8355f427e9e9143dfa61b2b76a4
589
py
Python
workalendar/africa/sao_tome.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/africa/sao_tome.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/africa/sao_tome.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from workalendar.core import WesternCalendar, ChristianMixin class SaoTomeAndPrincipe(WesternCalendar, ChristianMixin): "São Tomé and Príncipe" FIXED_HOLIDAYS = WesternCalendar....
32.722222
66
0.624788
9ed9e5bdae8c1fd0393617abb3bfa5d2c4ecfbb5
5,495
py
Python
tests/test_strings.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
tests/test_strings.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
tests/test_strings.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
2
2022-02-04T19:55:40.000Z
2022-02-04T21:36:04.000Z
import os import unittest from werkzeug.test import create_environ from werkzeug.wrappers import Request from tests.test_web_base import TestWebBase import hed.schema as hedschema from hed.models import HedString from hedweb.constants import base_constants class Test(TestWebBase): def test_get_input_...
51.35514
116
0.649136
9ed9f70365b5faabd5c9cdf46aab422e2fd3e6b2
12,343
py
Python
dr/experiment/ppo_pytorch.py
jigangkim/domain_randomization
07a309a9e824b5332219871abe8f0f657694b292
[ "MIT" ]
null
null
null
dr/experiment/ppo_pytorch.py
jigangkim/domain_randomization
07a309a9e824b5332219871abe8f0f657694b292
[ "MIT" ]
null
null
null
dr/experiment/ppo_pytorch.py
jigangkim/domain_randomization
07a309a9e824b5332219871abe8f0f657694b292
[ "MIT" ]
null
null
null
import os import os.path as osp import pickle import random from collections import deque from datetime import datetime import gym import numpy as np import scipy.stats as stats import torch import torch.optim as optim from mpi4py import MPI import dr from dr.ppo.models import Policy, ValueNet from dr.ppo.train impor...
35.570605
111
0.601475
9eda30b1174890121199a1b61815039cf252e0a7
1,730
py
Python
doc/examples/usersguide/lid_driven_cavity.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/usersguide/lid_driven_cavity.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
doc/examples/usersguide/lid_driven_cavity.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function ############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apac...
33.921569
113
0.656069
9eda35bea03d31c1788978ae95b73defea2d1eb2
1,775
py
Python
vyperlogix/google/translator.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/google/translator.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/google/translator.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
""" translate.py Translates strings using Google Translate All input and output is in unicode. """ __all__ = ('source_languages', 'target_languages', 'translate') import sys import urllib2 import urllib from BeautifulSoup import BeautifulSoup opener = urllib2.build_opener() opener.addheaders = [('User-agent', 'tr...
27.734375
74
0.643944
9eda401c9a443fef5b6eac81837f048f53d66aa5
31,479
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/aio/operations/_agent_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/aio/operations/_agent_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/aio/operations/_agent_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.228448
291
0.671273
9eda570e97ac626ddfdc949c3273ac54b3a5467c
532
py
Python
onadata/libs/utils/quick_converter.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/utils/quick_converter.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/utils/quick_converter.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from django import forms from django.utils.translation import ugettext_lazy from onadata.apps.viewer.models.data_dictionary import DataDictionary class QuickConverter(forms.Form): xls_file = forms.FileField(label=u...
31.294118
82
0.725564
9eda5c05178b4b4106435f83019ff25606c3c001
101
py
Python
sunpy/roi/__init__.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
1
2020-01-12T15:06:49.000Z
2020-01-12T15:06:49.000Z
sunpy/roi/__init__.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/roi/__init__.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
"""Time related functionality""" from __future__ import absolute_import from sunpy.roi.roi import *
20.2
38
0.792079
9eda7cfdb59cd58655fe2619782d661fdbc77f4a
804
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
44.666667
114
0.643035
9eda9b23498f9724dc7e1cab251bb22c8ed5f5d6
35
py
Python
maps/downstream/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/downstream/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/downstream/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from .downstream import Downstream
17.5
34
0.857143
9edaa16df046bb88c0f83403fce2d4f221a93d62
357
py
Python
CVE-2017-0915/example.py
ray0be/exploits
8c3796743744670b4eb8cdc34db825fcb4950b69
[ "MIT" ]
null
null
null
CVE-2017-0915/example.py
ray0be/exploits
8c3796743744670b4eb8cdc34db825fcb4950b69
[ "MIT" ]
null
null
null
CVE-2017-0915/example.py
ray0be/exploits
8c3796743744670b4eb8cdc34db825fcb4950b69
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from gitlabexploit import GitlabExploit # Variables targetIP = "10.0.1.6" SSHpubkey = "ssh-rsa YOUR_SSH_PUBKEY" G = GitlabExploit(targetIP) authenticated = G.login('guest666', 'guest666-pwd') print('authenticated', authenticated) vulnerable = G.check_target() print('vulnerable', vulnerable) ...
18.789474
51
0.7507
9edaa8b43288f3b67c57e058405e9d7bc8b2e910
227
py
Python
dataprep/datasets/__init__.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/datasets/__init__.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/datasets/__init__.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
"""This module implements load dataset related functions""" from ._base import load_dataset, _load_dataset_as_dask from ._base import get_dataset_names __all__ = ["load_dataset", "get_dataset_names", "_load_dataset_as_dask"]
32.428571
72
0.810573
9edac5d64b8db58d088274188d297cf24b8065e1
7,512
py
Python
contexts/views.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
1
2021-04-26T20:03:11.000Z
2021-04-26T20:03:11.000Z
contexts/views.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
17
2021-04-23T16:51:59.000Z
2021-12-13T21:17:41.000Z
contexts/views.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
null
null
null
""" django view file """ import json from django.shortcuts import render, redirect from datasets.ds_functions import * from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.forms.models import model_to_dict from contexts.ctx_functions import * from contexts.git_functions...
31.696203
115
0.613685
9edacd5ae18ce90cc849ea91e6d617fa6010ec48
16,783
py
Python
zerver/management/commands/runtornado.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/runtornado.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/runtornado.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from typing import Any, Callable from django.conf import settings settings.RUNNING_INSIDE_TORNADO = True # We must call zerver.lib.tornado_ioloop_logging.instrument_tornado_ioloop # before we import anything else from our project in order fo...
42.704835
144
0.591551
9edb01b85799b012d48a179efabed66cf604d25d
16,409
py
Python
cloudmersive_validate_api_client/models/user_agent_validate_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
3
2018-06-23T21:37:21.000Z
2020-04-20T23:07:36.000Z
cloudmersive_validate_api_client/models/user_agent_validate_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
1
2019-02-04T17:03:35.000Z
2019-03-02T20:16:52.000Z
cloudmersive_validate_api_client/models/user_agent_validate_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
2
2019-03-21T15:54:15.000Z
2020-05-27T17:30:43.000Z
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
34.043568
343
0.649948
9edb0e45dcad7ac5edc24d07886b923c51128094
5,334
py
Python
scripts/evaluate.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
1
2021-06-18T08:16:01.000Z
2021-06-18T08:16:01.000Z
scripts/evaluate.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
scripts/evaluate.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
import argparse import collections import logging # import matplotlib.pyplot as plt import os import pprint import pandas as pd import torch # import wandb from sklearn import metrics from torch.autograd import Variable from loader import load_data from model_choice import MODELS log = logging.getLogger(__name__) ...
27.353846
76
0.623735
9edb11d4e80c947e26b91ed73b77b2302a7a9e54
6,548
py
Python
office365/sharepoint/permissions/securable_object.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/permissions/securable_object.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/permissions/securable_object.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_result import ClientResult from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.permissions.basePermissions import BaseP...
49.984733
120
0.698534