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
ff711172f7c41ab587d4d6ecad43bd5d4a0e5ea9
898
py
Python
code_doc/migrations/0022_auto_20150903_2206.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/migrations/0022_auto_20150903_2206.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/migrations/0022_auto_20150903_2206.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [("code_doc", "0021_auto_20150831_1403")] operations = [ migrations.AlterField( model_name="art...
26.411765
60
0.541203
ff7112c12438ab254745e7fdb62d1522dfc61045
4,858
py
Python
virtual/lib/python3.8/site-packages/connexion/options.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
virtual/lib/python3.8/site-packages/connexion/options.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
virtual/lib/python3.8/site-packages/connexion/options.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
""" This module defines a Connexion specific options class to pass to the Connexion App or API. """ import logging import pathlib from typing import Optional # NOQA try: from swagger_ui_bundle import swagger_ui_2_path, swagger_ui_3_path except ImportError: swagger_ui_2_path = swagger_ui_3_path = None from c...
30.553459
91
0.635241
ff712325c077c62a4c58a93cb5e3558abd74870f
2,378
py
Python
scrape.py
aakash257/pandemic-news
73378012253dcd131546e4e2b8b6fd30e7e7b786
[ "MIT" ]
null
null
null
scrape.py
aakash257/pandemic-news
73378012253dcd131546e4e2b8b6fd30e7e7b786
[ "MIT" ]
null
null
null
scrape.py
aakash257/pandemic-news
73378012253dcd131546e4e2b8b6fd30e7e7b786
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import clean as cleantext class myDict(dict): """create an empty dictionary and append key-value pairs""" def __init__(self): self = dict() def add(self, key, value): self[key] = value def scrape_headline(news_link): """ ...
33.027778
79
0.629941
ff713de5d716981e295b7a5ac652f77913515092
2,441
py
Python
test/register_rope_pairs.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
23
2015-08-25T19:40:18.000Z
2020-12-27T09:23:06.000Z
test/register_rope_pairs.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
null
null
null
test/register_rope_pairs.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
8
2016-05-18T20:13:06.000Z
2020-11-03T16:09:50.000Z
import h5py import rapprentice.registration as reg, rapprentice.cloud_proc_funcs as cpf from joblib import Memory, Parallel, delayed import cPickle, h5py, os.path as osp, numpy as np, scipy.spatial.distance as ssd from time import time aa = np.asarray mem = Memory(cachedir='/tmp/joblib') cached_extract_red = mem.cach...
36.984848
124
0.571897
ff7147a1dd773b431965f2670cbb1cc801fce3d4
35,910
py
Python
src/lib/reportlab/platypus/doctemplate.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/lib/reportlab/platypus/doctemplate.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/lib/reportlab/platypus/doctemplate.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/doctemplate.py __version__=''' $Id: doctemplate.py,v 1.1 2006/05/26 19:19:48 thomas Exp $ ''' __doc__=""" This module contains the co...
39.988864
178
0.608995
ff7156414193099cca7fab6488579352fbfc237e
2,531
py
Python
Python-code-snippets-201-300/272-Animated-fire-effect.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/272-Animated-fire-effect.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/272-Animated-fire-effect.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
"""Code snippets vol-55 272-Animated fire effect Download all snippets so far: https://wp.me/Pa5TU8-1yg Blog: stevepython.wordpress.com Requirements: pip3 install numpy pip3 install pygame Origin: https://github.com/beltoforion/recreational_mathematics_with_python/ blob/master/fire.py """ import random i...
28.438202
74
0.521138
ff7157e8d4660af0940d47f5425462a0725fb093
4,098
py
Python
igibson/robots/fetch_robot.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/robots/fetch_robot.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/robots/fetch_robot.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import gym import numpy as np import pybullet as p from igibson.external.pybullet_tools.utils import joints_from_names, set_joint_positions from igibson.robots.robot_locomotor import LocomotorRobot class Fetch(LocomotorRobot): """ Fetch Robot Reference: https://fetchrobotics.com/robotics-platforms/fetch-...
34.728814
116
0.596877
ff7165d2f29907993062929a16987b60b5bf85e6
5,825
py
Python
toucan_data_sdk/utils/generic/compute_evolution.py
vdestraitt/toucan-data-sdk
09327592daef6bc94d0d6f79a041b581226c2b7b
[ "BSD-3-Clause" ]
null
null
null
toucan_data_sdk/utils/generic/compute_evolution.py
vdestraitt/toucan-data-sdk
09327592daef6bc94d0d6f79a041b581226c2b7b
[ "BSD-3-Clause" ]
null
null
null
toucan_data_sdk/utils/generic/compute_evolution.py
vdestraitt/toucan-data-sdk
09327592daef6bc94d0d6f79a041b581226c2b7b
[ "BSD-3-Clause" ]
null
null
null
import logging import numpy as np import pandas as pd from toucan_data_sdk.utils.helpers import check_params_columns_duplicate def compute_evolution_by_frequency( df, id_cols, date_col, value_col, freq=1, method='abs', format='column', offseted_suffix='_offseted', evolution_col_na...
30.181347
97
0.652189
ff7172aa01bfd5e06aa70086e8c4f6fbabc0f0d7
46,438
py
Python
ExtentionPackages/tornado/auth.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
ExtentionPackages/tornado/auth.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
17
2015-11-30T15:18:37.000Z
2022-02-11T03:37:50.000Z
ExtentionPackages/tornado/auth.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
84
2015-12-16T01:19:50.000Z
2022-03-10T05:52:06.000Z
#!/usr/bin/env python # # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.735088
111
0.613334
ff71cfd1bdb454512f0fc5b396c629a3d7a3a8fb
2,159
py
Python
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_object_type.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_object_type.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_object_type.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
42.333333
89
0.710977
ff71ff0a64c8b586413189aee67daf408f8c096d
7,815
py
Python
src/ezdxf/math/bezier.py
George-Jiang/ezdxf
bd51f8a9d45ae388009a9d0d7e2cdc9e7bb01ca2
[ "MIT" ]
null
null
null
src/ezdxf/math/bezier.py
George-Jiang/ezdxf
bd51f8a9d45ae388009a9d0d7e2cdc9e7bb01ca2
[ "MIT" ]
null
null
null
src/ezdxf/math/bezier.py
George-Jiang/ezdxf
bd51f8a9d45ae388009a9d0d7e2cdc9e7bb01ca2
[ "MIT" ]
null
null
null
# Purpose: general bezier curve # Created: 26.03.2010 # Copyright (c) 2010-2018 Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING, List, Iterable, Tuple, Dict from .vector import Vector from .construct2d import linspace if TYPE_CHECKING: from ezdxf.eztypes import Vertex """ Bezier curves ===...
38.688119
125
0.602431
ff727d9c036b0abc75c8b78dc88f6d25ff19ebfc
7,902
py
Python
sequence_labelling/token_classification/train.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-01-17T09:13:42.000Z
2022-01-18T23:33:42.000Z
sequence_labelling/token_classification/train.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
null
null
null
sequence_labelling/token_classification/train.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-02-07T14:10:30.000Z
2022-02-09T07:28:19.000Z
import os import warnings import json import numpy as np import torch import torch.nn as nn from sklearn.metrics import accuracy_score, f1_score, classification_report from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm from transformers import AlbertForTokenClassification, AdamW, get_linear_schedu...
37.808612
116
0.672615
ff72877d954967889952b41e32e4d06375c2c606
1,009
py
Python
server/src/myapi/urls.py
kentaiwami/KI_App0
4cc9dbc5cc34f7ca52b5d0487624f687696b3fb4
[ "MIT" ]
null
null
null
server/src/myapi/urls.py
kentaiwami/KI_App0
4cc9dbc5cc34f7ca52b5d0487624f687696b3fb4
[ "MIT" ]
24
2016-06-21T09:05:26.000Z
2022-02-10T09:27:38.000Z
server/src/myapi/urls.py
kentaiwami/FiNote
4cc9dbc5cc34f7ca52b5d0487624f687696b3fb4
[ "MIT" ]
null
null
null
"""myapi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
36.035714
83
0.708622
ff72a000fc543fa43a9630f6f6dd77a12582b3f2
3,509
py
Python
simulation/run_simulation.py
vipulharsh/Fulcrum
36153c14b3704b026ebbb0da28ad040e87cb8cb8
[ "Apache-2.0" ]
null
null
null
simulation/run_simulation.py
vipulharsh/Fulcrum
36153c14b3704b026ebbb0da28ad040e87cb8cb8
[ "Apache-2.0" ]
null
null
null
simulation/run_simulation.py
vipulharsh/Fulcrum
36153c14b3704b026ebbb0da28ad040e87cb8cb8
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 The Regents of The University California # # 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...
31.053097
101
0.707039
ff72babc1244610042af46d0d5f23a147e337bad
22,128
py
Python
appstoreconnect/api.py
IlyaSkriblovsky/appstoreconnectapi
ddc8f13d1db2c4dea8c87949e749cb2b5e883568
[ "MIT" ]
null
null
null
appstoreconnect/api.py
IlyaSkriblovsky/appstoreconnectapi
ddc8f13d1db2c4dea8c87949e749cb2b5e883568
[ "MIT" ]
null
null
null
appstoreconnect/api.py
IlyaSkriblovsky/appstoreconnectapi
ddc8f13d1db2c4dea8c87949e749cb2b5e883568
[ "MIT" ]
null
null
null
import requests import jwt import gzip import platform import hashlib from collections import defaultdict from pathlib import Path from datetime import datetime, timedelta import time import json from enum import Enum from .resources import * from .__version__ import __version__ as version ALGORITHM = 'ES256' BASE_AP...
36.039088
228
0.733641
ff72d9d8dd3a7523d3e1c35d1f542d7d711fd5b2
10,397
py
Python
chroma/importgeo/uservg4daegeo.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/importgeo/uservg4daegeo.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/importgeo/uservg4daegeo.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
import abc, os, sys, time from chroma.detector import Detector from chroma.geometry import Material, Surface from chroma.g4daenode.collada_to_chroma import ColladaToChroma from chroma.g4daenode.g4daenode import DAENode from chroma.loader import load_bvh from sets import Set import numpy as np from itertools import imap...
49.042453
182
0.619506
ff72e0f4bc6caf91dca882d9d2e03f36aee0e28f
10,657
py
Python
cloudbio/package/brew.py
colorshifter/cloudbiolinux
cb446279db176b3ade9923cde228bca76eb2c7d8
[ "MIT" ]
null
null
null
cloudbio/package/brew.py
colorshifter/cloudbiolinux
cb446279db176b3ade9923cde228bca76eb2c7d8
[ "MIT" ]
1
2022-03-29T22:03:28.000Z
2022-03-29T22:03:28.000Z
cloudbio/package/brew.py
colorshifter/cloudbiolinux
cb446279db176b3ade9923cde228bca76eb2c7d8
[ "MIT" ]
null
null
null
"""Install packages via the MacOSX Homebrew and Linux Linuxbrew package manager. https://github.com/mxcl/homebrew https://github.com/Homebrew/linuxbrew """ import contextlib from distutils.version import LooseVersion import os from cloudbio.custom import system from cloudbio.flavor.config import get_config_file from c...
45.348936
110
0.620719
ff72f0991e87cf1794e86b669d8441f902659b28
2,881
py
Python
nicos_mlz/pgaa/setups/sampletable.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/pgaa/setups/sampletable.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/pgaa/setups/sampletable.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'XYZ-Omega sample table' group = 'lowlevel' excludes = ['samplechanger'] tango_base = 'tango://pgaahw.pgaa.frm2.tum.de:10000/pgaa/huber/' devices = dict( x_m = device('nicos.devices.entangle.Motor', description = 'X axis sample table motor', tangodevice = tango_base + 'mx', ...
30.326316
64
0.556404
ff72f12504887a77daba4745c17fac0428d238b9
4,094
py
Python
alipay/aop/api/request/MybankCreditSupplychainCreditpayBuyerunsignCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/MybankCreditSupplychainCreditpayBuyerunsignCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/MybankCreditSupplychainCreditpayBuyerunsignCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankCreditSupplychainCreditpayBuyerunsignCreateModel import MybankCreditSupplychainCreditpayBuyerunsignCreateModel class MybankCre...
28.234483
148
0.655105
ff730643ce3eef0fe6009d773034f77afefff556
2,828
py
Python
tf2onnx/tflite/CustomQuantization.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/tflite/CustomQuantization.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/tflite/CustomQuantization.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class CustomQuantization(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, o...
37.706667
129
0.708628
ff7325bb3711c314855718e7f6c63b88a267b764
50,962
py
Python
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_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 ...
44.586177
227
0.67205
ff737f2c66a22c8e5760853db14f421459182fb8
1,775
py
Python
tests/test_data_helpers.py
frasy/site-map-parser
7648b50a1e15777cf82a6916ef5cbb149c5e99df
[ "MIT" ]
1
2021-02-11T10:03:42.000Z
2021-02-11T10:03:42.000Z
tests/test_data_helpers.py
frasy/site-map-parser
7648b50a1e15777cf82a6916ef5cbb149c5e99df
[ "MIT" ]
2
2020-02-24T11:52:51.000Z
2021-07-05T19:38:55.000Z
tests/test_data_helpers.py
frasy/site-map-parser
7648b50a1e15777cf82a6916ef5cbb149c5e99df
[ "MIT" ]
4
2020-02-10T14:49:41.000Z
2021-05-07T14:41:32.000Z
import pytest from unittest.mock import Mock import requests import requests_mock from sitemapparser.data_helpers import download_uri_data, data_to_element def test_download_uri_data_sitemap_index(): with requests_mock.mock() as m: smi_data = open('tests/sitemap_index_data.xml', 'rb').read() m.get...
39.444444
86
0.705352
ff738aed849fe94c8b1e08a58cab155ffcefc897
1,327
py
Python
examples/scrapy/covid/covid/spiders/covid.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
3
2021-05-18T05:06:23.000Z
2021-12-19T02:57:33.000Z
examples/scrapy/covid/covid/spiders/covid.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
5
2021-01-08T04:12:28.000Z
2021-07-14T07:53:54.000Z
examples/scrapy/covid/covid/spiders/covid.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
1
2021-05-18T05:06:30.000Z
2021-05-18T05:06:30.000Z
from scrapfly import ScrapeConfig from scrapfly.scrapy import ScrapflyMiddleware, ScrapflyScrapyRequest, ScrapflySpider, ScrapflyScrapyResponse class CovidSpider(ScrapflySpider): name = 'covid' allowed_domains = ['www.worldmeters.info/coronavirus'] start_urls = [ScrapeConfig(url='https://www.worldometers....
42.806452
130
0.583271
ff7397dd5f6c82297680540b8745bd6efc4f0517
19,046
py
Python
core/domain/suggestion_services.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/domain/suggestion_services.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
7
2019-08-20T08:30:43.000Z
2022-02-12T18:47:57.000Z
core/domain/suggestion_services.py
ledriod/oppia
4f8f95c6689cd36f0b65672b80d98a3463b001f8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.209125
80
0.712801
ff73ae89cd0d84c4803ceb2275e773a77c1af0dd
8,417
py
Python
toontown/town/TownBattleSOSPetInfoPanel.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/town/TownBattleSOSPetInfoPanel.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/town/TownBattleSOSPetInfoPanel.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * from direct.fsm import StateData from direct.gui.DirectGui import * from pandac.PandaModules import * from toontown.toonbase import TTLocalizer from toontown.pets import Pet, PetTricks, PetDetailPanel from toontown.speedchat import TTSCPetTrickMenu from otp.speedchat import SpeedChatGl...
54.303226
333
0.674706
ff73b51353326eb18697fa43f71145575840d20e
10,406
py
Python
downunder/py_src/mappings.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
downunder/py_src/mappings.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
downunder/py_src/mappings.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
31.438066
120
0.569671
ff73eb1b6257389f27ef5d86f988419180c6a8d2
1,270
py
Python
projects/DensePose/densepose/modeling/densepose_checkpoint.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/densepose/modeling/densepose_checkpoint.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/densepose/modeling/densepose_checkpoint.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. from collections import OrderedDict from detectron.checkpoint import DetectionCheckpointer def _rename_HRNet_weights(weights): # We detect and rename HRNet weights for DensePose. 1956 and 1716 are values that are # common to all HRNet pretrained weights, an...
35.277778
94
0.669291
ff73f005721feb9dd86785bb7153b95760528b2e
3,167
py
Python
limix/scripts/iset_analyze.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/scripts/iset_analyze.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/scripts/iset_analyze.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
def entry_point(): import os import time from optparse import OptionParser import numpy as np import pandas as pd import scipy as sp from ..data import BedReader from ..iSet.iset import fit_iSet from ..util import unique_variants as f_uni_variants parser = OptionParser() p...
29.877358
72
0.587307
ff73fd7273b1da70fc810212f188fd74ee400f95
3,518
py
Python
jsonpickle/__init__.py
hpcugent/jsonpickle
c5bd1614ef693b0e0c6b333587ec751174eb5a63
[ "BSD-3-Clause" ]
null
null
null
jsonpickle/__init__.py
hpcugent/jsonpickle
c5bd1614ef693b0e0c6b333587ec751174eb5a63
[ "BSD-3-Clause" ]
null
null
null
jsonpickle/__init__.py
hpcugent/jsonpickle
c5bd1614ef693b0e0c6b333587ec751174eb5a63
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2008 John Paulett (john -at- paulett.org) # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. """Python library for serializing any arbitrary object graph into JSON. jsonpickle c...
27.920635
81
0.696418
ff741271e77c0e673a0e9340b7a6a7835b456058
1,121
py
Python
axonius_api_client/cli/grp_system/grp_roles/cmd_update_perms.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/cli/grp_system/grp_roles/cmd_update_perms.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/cli/grp_system/grp_roles/cmd_update_perms.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """Command line interface for Axonius API Client.""" from ...context import CONTEXT_SETTINGS, click from ...options import AUTH, add_options from .grp_common import EXPORT, PERMS, ROLE_NAME, handle_export GRANT = click.option( "--allow/--deny", "-a/-d", "grant", help="Permission...
28.025
77
0.689563
ff742aecd9da8f7752a2fb4cbb1b8bd6575f1874
368
py
Python
src/dml_project/__init__.py
mbecker12/bird-detection
b352f6c585c2553a283abc48a0167984b9529c4a
[ "MIT" ]
1
2020-11-30T19:35:25.000Z
2020-11-30T19:35:25.000Z
src/dml_project/__init__.py
mbecker12/bird-detection
b352f6c585c2553a283abc48a0167984b9529c4a
[ "MIT" ]
null
null
null
src/dml_project/__init__.py
mbecker12/bird-detection
b352f6c585c2553a283abc48a0167984b9529c4a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pkg_resources import get_distribution, DistributionNotFound try: # Change here if project is renamed and does not equal the package name dist_name = "dml-project" __version__ = get_distribution(dist_name).version except DistributionNotFound: __version__ = "unknown" finally:...
30.666667
75
0.763587
ff743fa451432b082b5253756b0de0023755d3e9
1,153
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "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 ...
30.342105
94
0.631396
ff7444edfcdef06e547d732867540a128abbf35f
3,020
py
Python
tests/v1_and_BotUpSaliency/utils/draw_on_grid.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/v1_and_BotUpSaliency/utils/draw_on_grid.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/v1_and_BotUpSaliency/utils/draw_on_grid.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
import numpy as np def draw_on_grid(img): """ draw_on_grid will replicate what would be the input image look like from the gabor filter activations (input). It will draw a line corresponding to each orientation into a small box for each x, y coordinate of the input image. This function is not intende...
30.2
119
0.438079
ff748a199841ba4a6a3b239a0c3b972e0c54d1ea
476
py
Python
algorithms/knuth_shuffle.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/knuth_shuffle.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/knuth_shuffle.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
from random import randint def knuth_shuffle(sequence: list): """ Proposition: [Fisher-Yates 1938]. Knuth shuffling algorithm. Produces a uniformly random permutation of the input array in linear time. """ for i in range(len(sequence)): random_index = randint(0, i) sequence[i],...
25.052632
81
0.663866
ff74b3a410c792d83faa6f63d4bc1ccc51a4d1fb
2,971
py
Python
lib/utils/load_data.py
vedrusss/Deformable-ConvNets
88bc920abffb4d0efe2b6dd8ce959ed134482f6f
[ "MIT" ]
null
null
null
lib/utils/load_data.py
vedrusss/Deformable-ConvNets
88bc920abffb4d0efe2b6dd8ce959ed134482f6f
[ "MIT" ]
null
null
null
lib/utils/load_data.py
vedrusss/Deformable-ConvNets
88bc920abffb4d0efe2b6dd8ce959ed134482f6f
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2017 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Yuwen Xiong # -------------------------------------------------------- # Edited by A.Antonenko from Arlo Technologies, In...
35.795181
119
0.657691
ff74b72bb1252270b2b86374546ed93548415d90
9,539
py
Python
maddness/python/maddness/util/hash_function_helper.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
maddness/python/maddness/util/hash_function_helper.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
maddness/python/maddness/util/hash_function_helper.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
# type: ignore import copy import numba import numpy as np @numba.njit(fastmath=True, cache=True, parallel=False) def _cumsse_cols(X): # TODO: can be optimized with numpy N, D = X.shape cumsses = np.empty((N, D), X.dtype) cumX_column = np.empty(D, X.dtype) cumX2_column = np.empty(D, X.dtype) f...
31.071661
88
0.584443
ff74b7cc78428d571ba2e9ec97f73a3507f5e683
481
py
Python
assets/style.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
assets/style.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
assets/style.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
# styling sure is messy. styleplot=dict( size=12, color='lightgray', opacity=0.8, line=dict(color='gray',width=2), ) style = { 'red' : {'line': {'color': 'crimson', 'width': 2}}, 'green' : {'line': {'color': 'forestgreen', 'width': 2}}, 'blue' : {'line': {'color': 'LightSteelBlue', 'wid...
28.294118
63
0.567568
ff74b8d7897c3b4efcbcc29c524b408904b95c3e
498
py
Python
tests/distributed/test_simple_hub_pods/hub-mwu/mwu_encoder.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
2
2021-06-30T06:56:30.000Z
2022-03-11T01:27:19.000Z
tests/distributed/test_simple_hub_pods/hub-mwu/mwu_encoder.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
tests/distributed/test_simple_hub_pods/hub-mwu/mwu_encoder.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
from typing import Any import numpy as np from jina.executors.encoders import BaseEncoder class MWUEncoder(BaseEncoder): def __init__(self, greetings: str, *args, **kwargs): super().__init__(*args, **kwargs) self._greetings = greetings self.logger.success(f'look at me! {greetings}') ...
29.294118
68
0.666667
ff74c070d8526bb01ec79a643f2f2456ebb53308
14,004
py
Python
tests/components/mqtt/test_init.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
tests/components/mqtt/test_init.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
tests/components/mqtt/test_init.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
"""The tests for the MQTT component.""" from collections import namedtuple import unittest from unittest import mock import socket import voluptuous as vol from homeassistant.core import callback from homeassistant.bootstrap import setup_component import homeassistant.components.mqtt as mqtt from homeassistant.const ...
39.337079
79
0.635461
ff74fb63cc2707661de86812c2ba63c7093fe3b5
752
py
Python
DAE_Method/rouen/dataset_defines.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
6
2019-10-29T03:05:14.000Z
2022-03-18T05:14:25.000Z
DAE_Method/rouen/dataset_defines.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2022-03-11T03:49:34.000Z
2022-03-11T03:49:34.000Z
DAE_Method/rouen/dataset_defines.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2021-12-15T09:21:26.000Z
2021-12-15T09:21:26.000Z
""" This script contains some global variables that are used throughout this specific dataset. """ # Dataset file names raw_input_file_all = '/home/travail/datasets/urban_tracker/rouen/rouen_annotations/rouen_gt.sqlite' input_raw_image_frame_path = '/home/travail/datasets/urban_tracker/rouen/rouen_frames/' raw_input_f...
44.235294
99
0.816489
ff75115557ea852b6c42cc3b73d54980403b1cb3
8,352
py
Python
python/segment_audio.py
rddunphy/MusicClassification
efa58e474d2ff68cc24a07dd19b61e4dbac93765
[ "MIT" ]
null
null
null
python/segment_audio.py
rddunphy/MusicClassification
efa58e474d2ff68cc24a07dd19b61e4dbac93765
[ "MIT" ]
null
null
null
python/segment_audio.py
rddunphy/MusicClassification
efa58e474d2ff68cc24a07dd19b61e4dbac93765
[ "MIT" ]
null
null
null
"""Split audio files in a directory into segments of a given length.""" import argparse import csv import os import uuid from timeit import default_timer as timer from pydub import AudioSegment from audio_utilities import valid_file_type def _write_index(rows, path): if path: print('Saving index to {}....
35.389831
79
0.628712
ff7517c1cdbdc354ce7b728b714d235b64ac4860
3,707
py
Python
sphinxcontrib/confluencebuilder/std/confluence.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/std/confluence.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/std/confluence.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: Copyright 2017-2020 by the contributors (see AUTHORS file). :license: BSD-2-Clause, see LICENSE for details. """ from .sphinx import DEFAULT_HIGHLIGHT_STYLE """ confluence trailing bind path for rest api """ API_REST_BIND_PATH = 'rest/api' """ confluence default (parag...
25.217687
85
0.604802
ff7533bab4a338d942fffcf12da9d54b468f290c
5,760
py
Python
sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_rprivate_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_rprivate_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_rprivate_link_resources_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 ...
46.08
192
0.675174
ff7534778bd9053d3d5953935a2a9ff3997b3a8f
1,193
py
Python
CHAPTER 10 (maps, hash tables and skip lists)/cost_performance_database.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 10 (maps, hash tables and skip lists)/cost_performance_database.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 10 (maps, hash tables and skip lists)/cost_performance_database.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
from sorted_table_map import * class CostPerformanceDatabase: """Maximum a database of maximal (cost,performace) pairs.""" def __init__(self): """Create an empty database.""" self._M = SortedTableMap() # or a more efficient sorted map def best(self,c): """Return (cost,per...
41.137931
81
0.563286
ff756532e75f906bffd32d29a602ff51aebf5fe3
2,657
py
Python
app_ccf/fraud_checks.py
richardmobikasa/cash-assistance-platform
fafc117823c9bb7b5b6115d11c66afb459e1ec5f
[ "MIT" ]
10
2020-10-02T20:03:08.000Z
2022-01-05T17:27:54.000Z
app_ccf/fraud_checks.py
richardmobikasa/cash-assistance-platform
fafc117823c9bb7b5b6115d11c66afb459e1ec5f
[ "MIT" ]
3
2020-10-06T14:44:28.000Z
2020-10-07T15:33:23.000Z
app_ccf/fraud_checks.py
richardmobikasa/cash-assistance-platform
fafc117823c9bb7b5b6115d11c66afb459e1ec5f
[ "MIT" ]
6
2020-09-22T22:39:38.000Z
2021-07-13T06:45:53.000Z
from app_ccf.models import PreapprovedAddress, Application class BaseDedupCheck: """ Base class for checking Applications for duplicates. Subclasses should override get_test_value to return a value to be compared across applications for duplicates. They may optionally provide max_duplicates if th...
36.39726
81
0.681219
ff757a7ce051c77d79d523ce7d4c287015bba053
3,793
py
Python
algopy/__init__.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
54
2015-03-05T13:38:08.000Z
2021-11-29T11:54:48.000Z
algopy/__init__.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
7
2016-04-06T11:25:00.000Z
2020-11-09T13:53:20.000Z
algopy/__init__.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
13
2015-01-17T17:05:56.000Z
2021-08-05T01:13:16.000Z
""" ============================================================= AlgoPy, a library for Automatic Differentation (AD) in Python ============================================================= Description: AlgoPy allows you to differentiate functions implemented as computer programs by using Algorithmic Differen...
27.889706
98
0.678355
ff75ae837a9a0f59d9176ff071d2eb4977031c33
622
py
Python
test/test_monitor.py
GdoongMathew/Monitor
1affeea0ca4f61d84fd8f0b8838a847da16854c2
[ "MIT" ]
null
null
null
test/test_monitor.py
GdoongMathew/Monitor
1affeea0ca4f61d84fd8f0b8838a847da16854c2
[ "MIT" ]
null
null
null
test/test_monitor.py
GdoongMathew/Monitor
1affeea0ca4f61d84fd8f0b8838a847da16854c2
[ "MIT" ]
null
null
null
from monitor import BasicMonitor from test_reader import cpu_reader, gpu_reader, non_reader, reader import queue import contextlib import pytest @contextlib.contextmanager def not_raise_error(): yield @pytest.mark.parametrize('reader, proto_que, error', [ ('cpu_reader', queue.Queue(), not_raise_error()), ...
27.043478
66
0.733119
ff75b8d2a099640749debc0434044f5a0ce06807
1,923
py
Python
gibson2/robots/turtlebot_robot.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/robots/turtlebot_robot.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/robots/turtlebot_robot.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
import gym import numpy as np from gibson2.robots.robot_locomotor import LocomotorRobot class Turtlebot(LocomotorRobot): """ Turtlebot robot Reference: http://wiki.ros.org/Robots/TurtleBot Uses joint velocity control """ def __init__(self, config): self.config = config self.v...
35.611111
93
0.50598
ff75bbe5f5f96f591365302a6a0ea64a70faba53
950
py
Python
reporting_scripts/activity_count_completers.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
reporting_scripts/activity_count_completers.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
reporting_scripts/activity_count_completers.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
''' This module gets the number of completers who did each activity ''' import csv from datetime import datetime from collections import defaultdict import sys from base_edx import EdXConnection connection = EdXConnection('tracking' ) collection = connection.get_access_to_collection() with open('csv_files/McGillX_CH...
50
441
0.708421
ff75cbbc4445a6748ca4b7f11d2d10157b3789d1
86
py
Python
autogenfiles/__main__.py
jtemporal/autogenfiles
d8f489be2add8e127c60272d9a038ada716bf0c0
[ "MIT" ]
2
2021-07-27T13:50:28.000Z
2021-11-30T12:25:21.000Z
autogenfiles/__main__.py
jtemporal/autogenfiles
d8f489be2add8e127c60272d9a038ada716bf0c0
[ "MIT" ]
5
2021-07-26T13:50:27.000Z
2022-01-27T12:53:24.000Z
autogenfiles/__main__.py
jtemporal/autogenfiles
d8f489be2add8e127c60272d9a038ada716bf0c0
[ "MIT" ]
null
null
null
from .autogenfiles import AutoGenFiles if __name__ == '__main__': AutoGenFiles()
17.2
38
0.744186
ff76035f2743607c6f7af12753418d593739ee55
3,835
py
Python
mypy/maptype.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
mypy/maptype.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
mypy/maptype.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
1
2020-03-24T05:28:58.000Z
2020-03-24T05:28:58.000Z
from typing import Dict, List from mypy.expandtype import expand_type from mypy.nodes import TypeInfo from mypy.types import Type, TypeVarId, Instance, AnyType def map_instance_to_supertype(instance: Instance, superclass: TypeInfo) -> Instance: """Produce a supertype of `instance` t...
37.598039
95
0.63781
ff7608150ce04671d8ed44616d3ab8b7bd4d6628
7,524
py
Python
Non_DL_models/LR/run_model.py
YinpeiDai/NAUM
d8328b8c10ab26b069bfa12176d7b39c260acafc
[ "MIT" ]
21
2018-08-27T15:54:30.000Z
2022-03-13T12:34:21.000Z
Non_DL_models/LR/run_model.py
YinpeiDai/NAUM
d8328b8c10ab26b069bfa12176d7b39c260acafc
[ "MIT" ]
2
2020-10-26T15:39:37.000Z
2021-02-07T02:50:41.000Z
Non_DL_models/LR/run_model.py
YinpeiDai/NAUM
d8328b8c10ab26b069bfa12176d7b39c260acafc
[ "MIT" ]
3
2018-12-24T12:50:10.000Z
2021-02-16T13:24:59.000Z
''' bog-of-words + logistic regression ''' import numpy as np import json, os, pickle import tensorflow as tf from ..input_data import DatasetManager from .model import LogisticRgression from utils import F1_score class Run_LR_BOW: def __init__(self, **kwargs): self.save_dir = kwargs['save_dir'] ...
49.176471
133
0.510101
ff7609127abcd3aae53633b4ae292001390dcb58
1,293
py
Python
examples/labs/need_data/demo_ward_clustering.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
null
null
null
examples/labs/need_data/demo_ward_clustering.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
1
2015-09-09T07:49:57.000Z
2015-09-25T01:50:40.000Z
examples/labs/need_data/demo_ward_clustering.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ This shows the effect of ward clustering on a real fMRI dataset Author: Bertrand Thirion, 2010 """ print __doc__ from os import mkdir, getcwd, path import numpy as np from niba...
25.86
73
0.739366
ff7615a1d24e0528eefe63b583630a4763e41b7f
30,909
py
Python
zerver/tests/test_reactions.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_reactions.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_reactions.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import ujson from django.http import HttpResponse from typing import Any, Dict, List, Mapping, Text from unittest import mock from zerver.lib.emoji import emoji_name_to_emoji_code from zerver.lib.request import JsonableError from zerver.lib.test_helpers import tornado_redirected_to_list, get_d...
41.656334
115
0.625805
ff761c3f98bae325babe07248b9f32acd9b6dc7d
1,036
py
Python
06_face_ppl__car_detection/045_eye_face_detection.py
megatran/selflearning_openCV_ComputerVision
9977c72451e5db6d581621f9bba6475020df493b
[ "MIT" ]
3
2016-12-22T01:41:12.000Z
2018-04-03T14:26:16.000Z
06_face_ppl__car_detection/045_eye_face_detection.py
megatran/selflearning_openCV_ComputerVision
9977c72451e5db6d581621f9bba6475020df493b
[ "MIT" ]
null
null
null
06_face_ppl__car_detection/045_eye_face_detection.py
megatran/selflearning_openCV_ComputerVision
9977c72451e5db6d581621f9bba6475020df493b
[ "MIT" ]
null
null
null
import cv2 import numpy as np face_classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_classifier = cv2.CascadeClassifier('haarcascade_eye.xml') #load image then convert to gray scale source_input = "/Users/nhant/Google Drive/OnlineLearning/selflearning_CV_with_Python/practice_sources/images...
31.393939
119
0.702703
ff764ee9ff484427d2a40095bf405bde16c38b00
522
py
Python
wasmtime/_store.py
alexcrichton/wasmtime-py
90ba6da0a0c5e8a13bdc28c019330f71067823df
[ "Apache-2.0" ]
4
2020-03-25T20:55:29.000Z
2020-03-26T08:57:43.000Z
wasmtime/_store.py
alexcrichton/wasmtime-py
90ba6da0a0c5e8a13bdc28c019330f71067823df
[ "Apache-2.0" ]
null
null
null
wasmtime/_store.py
alexcrichton/wasmtime-py
90ba6da0a0c5e8a13bdc28c019330f71067823df
[ "Apache-2.0" ]
null
null
null
from ._ffi import * from ctypes import * from wasmtime import Engine dll.wasm_store_new.restype = P_wasm_store_t class Store(object): def __init__(self, engine=None): if engine is None: engine = Engine() elif not isinstance(engine, Engine): raise TypeError("expected an Eng...
26.1
57
0.651341
ff7661d401e261d03dbf5b6f4f847906d0e1669e
2,617
py
Python
snowfall/generalization/loss_regularizers.py
AminRezaei0x443/SnowFall
daf9c4310f6c8129a65149e563beec52f99b479f
[ "MIT" ]
1
2021-11-18T08:48:52.000Z
2021-11-18T08:48:52.000Z
snowfall/generalization/loss_regularizers.py
AminRezaei0x443/SnowFall
daf9c4310f6c8129a65149e563beec52f99b479f
[ "MIT" ]
null
null
null
snowfall/generalization/loss_regularizers.py
AminRezaei0x443/SnowFall
daf9c4310f6c8129a65149e563beec52f99b479f
[ "MIT" ]
2
2021-11-18T08:48:53.000Z
2022-03-30T13:03:17.000Z
import torch from snowfall.losses import Loss class LossRegularizer(Loss): def __init__(self, loss, lambda_): super().__init__() # set loss if isinstance(loss, str): if Loss.has(loss): loss = Loss.get(loss) self.loss = loss else: ...
36.859155
104
0.602216
ff766a5e209d17dbe348b749f077ab2cf46ca636
26,659
py
Python
ginga/AstroImage.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/AstroImage.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/AstroImage.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
# # AstroImage.py -- Abstraction of an astronomical data image. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import sys, os import re import math import logging imp...
36.17232
92
0.537117
ff7676c5d8311120383fbbfd19985b1ca893f54c
615
py
Python
ooni/tests/test_mutate.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
24
2018-12-23T12:53:57.000Z
2022-01-19T19:50:53.000Z
ooni/tests/test_mutate.py
Acidburn0zzz/ooni-probe
22720e383093c0d30fd1b6ca44794d3b29031f91
[ "BSD-2-Clause" ]
64
2018-09-13T08:26:20.000Z
2022-02-11T03:48:34.000Z
ooni/tests/test_mutate.py
Acidburn0zzz/ooni-probe
22720e383093c0d30fd1b6ca44794d3b29031f91
[ "BSD-2-Clause" ]
9
2019-06-10T01:41:48.000Z
2022-01-08T08:46:25.000Z
import unittest from ooni.kit import daphn3 class TestDaphn3(unittest.TestCase): def test_mutate_string(self): original_string = '\x00\x00\x00' mutated = daphn3.daphn3MutateString(original_string, 1) self.assertEqual(mutated, '\x00\x01\x00') def test_mutate_daphn3(self): origi...
34.166667
68
0.593496
ff76b028259d4acb509f33e0291f93d8c576ba35
14,695
py
Python
algutil/pipette_server/pipetteClient.py
broadinstitute/btl_firecloud
ba331df29c4c693d9ea54a8dc35e25a0978e0cc0
[ "BSD-3-Clause" ]
2
2017-02-14T14:32:16.000Z
2017-04-12T17:46:29.000Z
algutil/pipette_server/pipetteClient.py
broadinstitute/btl_firecloud
ba331df29c4c693d9ea54a8dc35e25a0978e0cc0
[ "BSD-3-Clause" ]
47
2017-01-26T19:16:04.000Z
2017-06-21T02:06:28.000Z
algutil/pipette_server/pipetteClient.py
broadinstitute/btl_firecloud
ba331df29c4c693d9ea54a8dc35e25a0978e0cc0
[ "BSD-3-Clause" ]
null
null
null
import string import random import datetime import time import os import sys import platform import getpass class PipetteClient: def __init__(self, pipelineOutDir, pipelineName='NamelessPipeline', defaultCaching='False', defaultCleanUpJobFilesOnFail='...
42.718023
167
0.601497
ff76dea7323f4c1fe87a8b164f83e3dc1521e9b3
12,655
py
Python
ThirdParty/Twisted/twisted/internet/epollreactor.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/internet/epollreactor.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/internet/epollreactor.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An epoll() based implementation of the twisted main loop. To install the event loop (and you should do this before any connections, listeners or connectors are added):: from twisted.internet import epollreactor epollreactor.install()...
31.876574
80
0.606875
ff76e33274c4c137994dbf6b3ed729735fb4491a
2,375
py
Python
revolt/ext/commands/errors.py
byemc/revolt.py
0e8cd7250b7da71ebec3800167cd104dfb007741
[ "MIT" ]
28
2021-08-17T23:25:48.000Z
2021-12-16T00:13:05.000Z
revolt/ext/commands/errors.py
byemc/revolt.py
0e8cd7250b7da71ebec3800167cd104dfb007741
[ "MIT" ]
14
2021-08-31T06:00:12.000Z
2021-12-28T22:59:08.000Z
revolt/ext/commands/errors.py
byemc/revolt.py
0e8cd7250b7da71ebec3800167cd104dfb007741
[ "MIT" ]
12
2021-08-18T00:55:53.000Z
2021-11-20T16:58:18.000Z
from revolt import RevoltError __all__ = ( "CommandError", "CommandNotFound", "NoClosingQuote", "CheckError", "NotBotOwner", "NotServerOwner", "ServerOnly", "ConverterError", "InvalidLiteralArgument", "BadBoolArgument", "CategoryConverterError", "ChannelConverterError", ...
28.27381
72
0.703158
ff7733d331a1c8215e4248cb86e7ac53795df268
1,760
py
Python
experiments/figures_from_results/inpainting_patch_rho.py
bmalezieux/plipy
35d17cad908219013fa43d81c4aeb6bb46ce9384
[ "MIT" ]
2
2021-07-15T04:51:20.000Z
2022-01-01T14:20:59.000Z
experiments/figures_from_results/inpainting_patch_rho.py
bmalezieux/plipy
35d17cad908219013fa43d81c4aeb6bb46ce9384
[ "MIT" ]
null
null
null
experiments/figures_from_results/inpainting_patch_rho.py
bmalezieux/plipy
35d17cad908219013fa43d81c4aeb6bb46ce9384
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd import os from pathlib import Path try: os.mkdir("../figures") except OSError: pass def compute_scores(df, name): value = df.loc[(data["name"] == name)] patches = value.m_patch.unique() rhos = value.rho.unique() xx, y...
25.142857
75
0.584091
ff7751f8e1d4f2297437134f5a3666baa59ccc55
5,798
py
Python
client_encryption/api_encryption.py
Mastercard/client-encryption-python
d65a71ce2b9c81942a8334a24d9dbaa723a1d08e
[ "MIT" ]
16
2019-02-21T15:08:59.000Z
2021-10-03T13:04:28.000Z
client_encryption/api_encryption.py
Mastercard/client-encryption-python
d65a71ce2b9c81942a8334a24d9dbaa723a1d08e
[ "MIT" ]
6
2019-06-10T12:10:54.000Z
2022-02-07T16:36:52.000Z
client_encryption/api_encryption.py
Mastercard/client-encryption-python
d65a71ce2b9c81942a8334a24d9dbaa723a1d08e
[ "MIT" ]
6
2019-12-20T20:20:28.000Z
2022-02-10T05:33:23.000Z
import json import inspect from functools import wraps from warnings import warn from client_encryption.field_level_encryption_config import FieldLevelEncryptionConfig from client_encryption.session_key_params import SessionKeyParams from client_encryption.field_level_encryption import encrypt_payload, decrypt_payload ...
41.120567
117
0.69662
ff7761a80545498160415713bb0702c8fbb60702
1,673
py
Python
quest/pycocoevalcap/cider/cider.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/pycocoevalcap/cider/cider.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/pycocoevalcap/cider/cider.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
# Filename: cider.py # # Description: Describes the class to compute the CIDEr (Consensus-Based Image Description Evaluation) Metric # by Vedantam, Zitnick, and Parikh (http://arxiv.org/abs/1411.5726) # # Creation Date: Sun Feb 8 14:16:54 2015 # # Authors: Ramakrishna Vedantam <vrama91@vt.edu> and Tsung...
29.875
124
0.607292
ff77729dd82e3390d917ad63690001d30ce15849
1,304
py
Python
smartmin/csv_imports/tasks.py
jaynandu/smartmin
b232e3a218b042e21b51c3ff028c6985d115cde0
[ "BSD-3-Clause" ]
null
null
null
smartmin/csv_imports/tasks.py
jaynandu/smartmin
b232e3a218b042e21b51c3ff028c6985d115cde0
[ "BSD-3-Clause" ]
null
null
null
smartmin/csv_imports/tasks.py
jaynandu/smartmin
b232e3a218b042e21b51c3ff028c6985d115cde0
[ "BSD-3-Clause" ]
null
null
null
from io import StringIO from celery.task import task from django.utils import timezone from django.utils.module_loading import import_string from .models import ImportTask @task(track_started=True) def csv_import(task_id): # pragma: no cover task_obj = ImportTask.objects.get(pk=task_id) log = StringIO() ...
27.166667
88
0.663344
ff7779dc962f4bad30306c2554fd5c0ee4551aad
1,086
py
Python
alipay/aop/api/response/AlipayIserviceCcmServiceBuyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayIserviceCcmServiceBuyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayIserviceCcmServiceBuyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayIserviceCcmServiceBuyResponse(AlipayResponse): def __init__(self): super(AlipayIserviceCcmServiceBuyResponse, self).__init__() self._service_instance_id = None ...
30.166667
108
0.713628
ff777a78ef5b24340414fffe41afad3c597db331
592
py
Python
tests/test_LocalRunner.py
NVSL/fiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
2
2022-01-22T06:12:52.000Z
2022-01-24T07:29:44.000Z
tests/test_LocalRunner.py
NVSL/cfiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
null
null
null
tests/test_LocalRunner.py
NVSL/cfiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
null
null
null
from cfiddle import * from util import * from fixtures import * from cfiddle.Runner import RunnerException def test_hello_world(test_cpp): invocation = InvocationDescription(test_cpp, function="simple_print", arguments=dict(a=1, b=2, c=3)) runner = LocalRunner(invocation) invocation_result = runner.ru...
32.888889
104
0.743243
ff7794d631bb18484082f8ca9595000fbdb3b468
16,300
py
Python
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_5.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_5.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_5.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
## CHAPTER 5 오차역전파법 # 앞에서는 신경망의 가중치 매개변수의 기울기는 수치미분을 사용해 구했다. # 수치미분은 단순하고 구현하기 쉽지만 계산시간이 오래 걸린다는 단점이 있다. # 이번장은 가중치 매개변수의 기울기를 효율적으로 계산하는 '오차역전파법'을 배워보자 # 오차역전파법을 제대로 이해하는 방법은 두 가지가 있다. # 1. 수식을 통해 - 정확하고 간결함 # 2. 계산 그래프를 통해 - 시각적으로!! 본질에 다가가기 쉬움 # 계산그래프 # 노드와 엣지로 표현된다. # 계산그래프로 풀다. # 1. 계산그래프를 구성한다. # 2. 그래프에서 계산을 ...
31.226054
111
0.587546
ff77e8e8729b3d15ff56d3dc21de605955914112
329
py
Python
ncortex/optimization/test/test_trajopt.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
ncortex/optimization/test/test_trajopt.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
ncortex/optimization/test/test_trajopt.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
''' Test the trajectory optimization procedures. ''' import tensorflow as tf class TestTrajOpt(tf.test.TestCase): ''' Test the trajectory optimization procedures. ''' def test_naive_trajopt(self): ''' Test the naive_trajopt function. ''' pass if __name__ == '__main__': tf.tes...
19.352941
52
0.647416
ff7808af9ea633820942d9ba256e467521524d7b
524
py
Python
scripts/faithfulness/input-gender/delete_words.py
shuoyangd/tarsius
b9c46eb53437cbd5239b6d23baf819f5ea4c2db6
[ "MIT" ]
1
2021-07-08T09:00:53.000Z
2021-07-08T09:00:53.000Z
scripts/faithfulness/input-gender/delete_words.py
shuoyangd/tarsius
b9c46eb53437cbd5239b6d23baf819f5ea4c2db6
[ "MIT" ]
null
null
null
scripts/faithfulness/input-gender/delete_words.py
shuoyangd/tarsius
b9c46eb53437cbd5239b6d23baf819f5ea4c2db6
[ "MIT" ]
null
null
null
import sys wordlist = [ "aunt", "boy", "bride", "brother", "daughter", "father", "girl", "granddaughter", "grandfather", "grandmother", "grandson", "groom", "husband", "lady", "lord", "man", "monk", "mother", "nun", "sister", "son", "uncle", "wife", "woman" ] for line i...
13.435897
41
0.530534
ff784232629e4dbaf04d7498e4880e32cb6de878
3,219
py
Python
exp/test.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
exp/test.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
exp/test.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
import gensim import _init_paths import utils.zl_utils as zl from numpy.random import randn from sklearn.decomposition import sparse_encode import numpy as np from sklearn.decomposition import SparseCoder import pycocotools.coco as coco import random import zl_config as C n = m = 100 # dimensions of our input input_x =...
32.846939
108
0.639329
ff786b72be057e86e1f5dfec82f3cdf16c419a78
440
py
Python
Spacy/source2.7/thinc/about.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2018-10-30T07:19:27.000Z
2018-10-30T07:19:27.000Z
Spacy/source2.7/thinc/about.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-06-10T20:20:30.000Z
2021-06-10T20:20:30.000Z
Spacy/source2.7/thinc/about.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2020-11-18T06:18:15.000Z
2020-11-18T06:18:15.000Z
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __name__ = 'thinc' __version__ = '6.10.2' __summary__ = "Practical Machine Learning for NLP" __uri__ = 'https://github.com/explosion/thinc' __a...
29.333333
86
0.765909
ff786ed573ab829d486b33f3c7af392338a88da3
2,745
py
Python
setup.py
aplbrain/tamarind
a58964102152f4bb550e4948a54c9725ed904177
[ "Apache-2.0" ]
3
2019-07-30T18:38:20.000Z
2022-02-06T18:25:46.000Z
setup.py
aplbrain/tamarind
a58964102152f4bb550e4948a54c9725ed904177
[ "Apache-2.0" ]
2
2019-07-30T17:59:45.000Z
2019-09-04T20:35:56.000Z
setup.py
aplbrain/tamarind
a58964102152f4bb550e4948a54c9725ed904177
[ "Apache-2.0" ]
1
2019-03-27T15:15:50.000Z
2019-03-27T15:15:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = "tamarind" DESCRIPTION = "More Neo4j than ...
26.650485
86
0.649545
ff789221f72d3fe1c7f153f737a0fe2776aff629
1,433
py
Python
src/evaluation/indexs_from_reprs/indexs.py
rgalhama/public_ICCM2021
6a528a26c649da0843b7acbc785aa99b80d29a74
[ "MIT" ]
null
null
null
src/evaluation/indexs_from_reprs/indexs.py
rgalhama/public_ICCM2021
6a528a26c649da0843b7acbc785aa99b80d29a74
[ "MIT" ]
null
null
null
src/evaluation/indexs_from_reprs/indexs.py
rgalhama/public_ICCM2021
6a528a26c649da0843b7acbc785aa99b80d29a74
[ "MIT" ]
null
null
null
""" Author : Raquel G. Alhama Desc: """ from evaluation.indexs_from_reprs.similarities import * """ Indexs of neighbourhood density computed from representations. """ def indegree_known(test_words_aoa, representations, threshold, output_fpath): """ Computes neighbourhood density, only for words known so f...
24.288136
79
0.673412
ff78b4d098519f1b4484a5f4a9e60abb2f49cd09
300,815
py
Python
ui/mainwindow.py
gronchi/mpts
5e33e885b099a337c0cadc78840dd2c216a6d9df
[ "MIT" ]
null
null
null
ui/mainwindow.py
gronchi/mpts
5e33e885b099a337c0cadc78840dd2c216a6d9df
[ "MIT" ]
null
null
null
ui/mainwindow.py
gronchi/mpts
5e33e885b099a337c0cadc78840dd2c216a6d9df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWi...
61.794371
414
0.724661
ff78c44265bf16819054befc44d595d30ada905a
813
py
Python
app/ml/objects/imputation/factory.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/ml/objects/imputation/factory.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/ml/objects/imputation/factory.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from app.ml.objects.imputation import Imputation from sklearn.impute import SimpleImputer from pyts.preprocessing import InterpolationImputer imputer_factory_dict = { Imputation.MEAN_IMPUTATION: lambda: SimpleImputer(strategy="mean"), Imputation.ZERO_INTERPOLATION: lambda: InterpolationImputer(strategy="zero")...
47.823529
91
0.814268
ff78e2496ed22b89201ccbd2dc3aa60dc85ac066
7,344
py
Python
HardNet.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
HardNet.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
HardNet.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
import sys import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.backends.cudnn as cudnn import time import os import math import numpy as np class L2Norm(nn.Module): def __init__(self): super(L2Norm,self).__init__() self.eps = 1e-8 ...
36.904523
155
0.564679
ff7917aad5462e1736ddb9a8e8daab7e05655e9c
682
py
Python
alipay/aop/api/response/AlipayOpenFileUploadResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenFileUploadResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenFileUploadResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenFileUploadResponse(AlipayResponse): def __init__(self): super(AlipayOpenFileUploadResponse, self).__init__() self._file_id = None @property def fil...
26.230769
101
0.70088
ff79269b6f2b247c52bc17e5ce0b7d18bdb0c22d
1,288
py
Python
appengine/findit/pipelines/test_failure/test/heuristic_analysis_for_test_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/pipelines/test_failure/test/heuristic_analysis_for_test_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/pipelines/test_failure/test/heuristic_analysis_for_test_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 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 mock from testing_utils import testing from gae_libs.pipelines import pipeline_handlers from pipelines.test_failure.heuristic_analysis_for_test_pipel...
39.030303
73
0.802795
ff793a205ce4ccb214a6133f3d23e6387dfd968d
8,797
py
Python
data_profiler/tests/profilers/test_numeric_stats_mixin_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
1
2021-02-13T21:53:16.000Z
2021-02-13T21:53:16.000Z
data_profiler/tests/profilers/test_numeric_stats_mixin_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
data_profiler/tests/profilers/test_numeric_stats_mixin_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
import os import unittest from unittest import mock from collections import defaultdict import pandas as pd import numpy as np from data_profiler.profilers import NumericStatsMixin test_root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) class TestColumn(NumericStatsMixin): def __init__(s...
35.047809
79
0.565534
ff7943e8a26464f43e6663ec4afad97c4bff2707
3,334
py
Python
tests/test_city_detector.py
slava-kerner/cityfinder
f4bd1b53b6970492f168dc13e990e56d7e75e2e4
[ "BSD-2-Clause" ]
null
null
null
tests/test_city_detector.py
slava-kerner/cityfinder
f4bd1b53b6970492f168dc13e990e56d7e75e2e4
[ "BSD-2-Clause" ]
null
null
null
tests/test_city_detector.py
slava-kerner/cityfinder
f4bd1b53b6970492f168dc13e990e56d7e75e2e4
[ "BSD-2-Clause" ]
null
null
null
import os import itertools import rasterio from PIL import Image import numpy as np import unittest from cityfinder.city_detector import CityDetector from cityfinder.city_vector import CityVector, israel, israel_utm, match GEOGRAPHIC = {'init': 'EPSG:4326'} UTM = {'init': 'EPSG:32636'} class TestCityDetector(unitt...
37.044444
127
0.604379
ff7950755a77815861be60732f10436fc82598b9
3,722
py
Python
blue-button.py/bluebutton/server_handlers.py
LinuxForHealth/connect-clients
69902ebfb12a4c0f308eb62874571b5fc174ffbe
[ "Apache-2.0" ]
null
null
null
blue-button.py/bluebutton/server_handlers.py
LinuxForHealth/connect-clients
69902ebfb12a4c0f308eb62874571b5fc174ffbe
[ "Apache-2.0" ]
6
2021-07-13T19:58:58.000Z
2021-11-02T21:25:14.000Z
blue-button.py/bluebutton/server_handlers.py
LinuxForHealth/connect-clients
69902ebfb12a4c0f308eb62874571b5fc174ffbe
[ "Apache-2.0" ]
1
2021-07-13T19:22:04.000Z
2021-07-13T19:22:04.000Z
import logging import logging.config import os import sys import yaml from bluebutton.config import get_settings from fastapi import HTTPException, Request from fastapi.responses import JSONResponse from yaml import YAMLError logger = logging.getLogger(__name__) def add_trace_logging(): """ Adds trace level...
34.785047
106
0.68619
ff7956e4c812ed56f7c672a4cfca3a22f6afab38
189
py
Python
src/onevision/file/handler/__init__.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/file/handler/__init__.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/file/handler/__init__.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from .base import * from .json_handler import * from .pickle_handler import * from .xml_handler import * from .yaml_handler import *
15.75
29
0.677249
ff79675a5bb97d20e450715782608bf1d651567d
226
py
Python
randompass2.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
randompass2.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
randompass2.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
import string import random def randompassword(): chars=string.ascii_uppercase + string.ascii_lowercase + string.digits size=10 return ''.join(random.choice(chars) for x in range(size,20)) print(randompassword())
25.111111
73
0.747788
ff799cd07e944100c1ebc137483ea851f3596710
77,608
py
Python
myenv/lib/python3.7/site-packages/grpc/__init__.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
2
2020-05-17T12:53:06.000Z
2021-04-12T02:13:43.000Z
myenv/lib/python3.7/site-packages/grpc/__init__.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
null
null
null
myenv/lib/python3.7/site-packages/grpc/__init__.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
3
2020-06-19T03:21:35.000Z
2022-02-04T13:29:39.000Z
# Copyright 2015-2016 gRPC 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 applicable law or agreed to in wr...
37.546202
91
0.664133
ff79b3a057b8fd6ab3b0edf652a5bede0e2d7b87
28,036
py
Python
tensorflow/python/keras/applications/nasnet.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/keras/applications/nasnet.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/keras/applications/nasnet.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.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...
35.221106
132
0.615851
ff79b7ce8a173c4728261321e3c9f31585c9e6fc
594
py
Python
dear_petition/petition/tasks/clean_stale_data.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
4
2020-04-01T14:42:45.000Z
2021-12-12T21:11:11.000Z
dear_petition/petition/tasks/clean_stale_data.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
142
2019-08-12T19:08:34.000Z
2022-03-29T23:05:35.000Z
dear_petition/petition/tasks/clean_stale_data.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
8
2020-02-04T20:37:00.000Z
2021-03-28T13:28:32.000Z
import logging from datetime import timedelta from celery import shared_task from django.utils import timezone from dear_petition.petition import models as pm logger = logging.getLogger(__name__) def clean_stale_data(): now = timezone.now() stale_time = now - timedelta(hours=48) stale_data = pm.Batch.o...
24.75
81
0.76936
ff79deed2e00cb07337530abd49f3426dd467313
409
py
Python
programmers/find_prime.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
programmers/find_prime.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
programmers/find_prime.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
# https://programmers.co.kr/learn/courses/30/lessons/12921 def solution(n): if n <= 2: return 1 elif n == 3: return 2 def find_prime(num): for i in range(2, int(num ** 0.5) + 1): if num % i == 0: return False return True answer = 1 for nu...
22.722222
58
0.513447
ff79fd5735c6eaa7c5057e6e317499f7df3815ee
2,443
py
Python
test/TestSortMinimal.py
Septaris/das2py
ee657afe706f4aec6e016b17b63a093ed271f7f6
[ "MIT" ]
null
null
null
test/TestSortMinimal.py
Septaris/das2py
ee657afe706f4aec6e016b17b63a093ed271f7f6
[ "MIT" ]
null
null
null
test/TestSortMinimal.py
Septaris/das2py
ee657afe706f4aec6e016b17b63a093ed271f7f6
[ "MIT" ]
null
null
null
"""Testing Dataset sorting algorithms""" import sys import numpy as np import das2 # Make a test dataset in the style of a sweep frequency radar sounder. # This dataset will have values occupying the parameter spaces: # # Time, Pulse Frequency, Range, and Spectral Density # # That will be mapped to dataset indici...
23.490385
70
0.528449
ff7a82fd10bdb3632288171332bb6070bfeb077f
996
py
Python
taxamo/models/getProductTypesDictOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
4
2016-03-14T03:59:08.000Z
2020-06-21T07:58:38.000Z
taxamo/models/getProductTypesDictOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
2
2016-03-07T13:41:23.000Z
2017-07-11T13:39:44.000Z
taxamo/models/getProductTypesDictOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
8
2016-01-13T14:32:19.000Z
2021-08-16T11:14:06.000Z
#!/usr/bin/env python """ Copyright 2014-2021 by Taxamo 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...
31.125
80
0.696787
ff7a876b93a64931bb1590aa6dc624e992ad8cc8
1,482
py
Python
vsphere/datadog_checks/vsphere/objects_queue.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
vsphere/datadog_checks/vsphere/objects_queue.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
vsphere/datadog_checks/vsphere/objects_queue.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2021-06-21T19:21:51.000Z
2021-06-21T19:21:51.000Z
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import threading class ObjectsQueue: """ Implements a queue to store Mor objects of any type for each instance. Objects are fill once in batch and then extracted one by one. The queue is thread sa...
32.933333
74
0.632254
ff7ab60d37323a752db9149c7fe84b7ff1035cf7
4,909
py
Python
scripts/fb/DesignCircularDeque.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/fb/DesignCircularDeque.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/fb/DesignCircularDeque.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Design Circular Deque Design your implementation of the circular double-ended queue (deque). Implement the MyCircularDeque class: MyCircularDeque(int k) Initializes the deque with a maximum size of k. boolean insertFront() Adds an item at the front of Deque. Returns true if the operation is successful, or false...
33.855172
139
0.603178
ff7adad247ab9d840f07723db772f0d60125b06e
255
py
Python
src/main/py/com/example/utils/SparkUtils.py
brijeshdhaker/spark-python-examples
bb3504d21c073448c336c228f74449de68853b8d
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-18T16:23:56.000Z
2021-07-18T16:23:56.000Z
src/main/py/com/example/utils/SparkUtils.py
brijeshdhaker/spark-python-examples
bb3504d21c073448c336c228f74449de68853b8d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/main/py/com/example/utils/SparkUtils.py
brijeshdhaker/spark-python-examples
bb3504d21c073448c336c228f74449de68853b8d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from pyspark.sql import SparkSession def getSparkSession(name=None, conf=None): #appName = name if name is None else "" spark = SparkSession.builder.appName(name).getOrCreate(conf=conf) spark.sparkContext.setLogLevel("WARN") return spark
31.875
69
0.745098
ff7adaed40ff70b9e7af4baa06db990b452fc242
1,326
py
Python
utils/functional.py
talcron/frame-prediction-pytorch
1a2fcc56c89ff031c2eba0547c5c898c6f8c3eab
[ "Apache-2.0" ]
6
2021-02-16T22:30:40.000Z
2022-02-17T06:44:11.000Z
utils/functional.py
talcron/frame-prediction-pytorch
1a2fcc56c89ff031c2eba0547c5c898c6f8c3eab
[ "Apache-2.0" ]
null
null
null
utils/functional.py
talcron/frame-prediction-pytorch
1a2fcc56c89ff031c2eba0547c5c898c6f8c3eab
[ "Apache-2.0" ]
null
null
null
from typing import Tuple import torch from utils.matrix_sqrt import sqrt_newton_schulz as sqrtm __all__ = ['stats', 'sqrtm', 'frechet_inception_distance'] def stats(x: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: """ Compute mean and covariance of x. Args: x: torch tensor of shape (n_sam...
28.826087
100
0.678733
ff7b085f5d41e9e251d3c25880b694500f69ffc2
3,318
py
Python
maths/matrix_exponentiation.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/matrix_exponentiation.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/matrix_exponentiation.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
27.196721
90
0.649488
ff7b27ca33cf3f389de84bef3ce839dcd2abc3ef
1,892
py
Python
construct_launcher/actions.py
construct-org/construct_launcher
72d51a479cb3f0ff0d06830e3497fc0affd568fe
[ "MIT" ]
null
null
null
construct_launcher/actions.py
construct-org/construct_launcher
72d51a479cb3f0ff0d06830e3497fc0affd568fe
[ "MIT" ]
null
null
null
construct_launcher/actions.py
construct-org/construct_launcher
72d51a479cb3f0ff0d06830e3497fc0affd568fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function __all__ = [ 'BaseLauncher', 'new_launcher', ] from construct import Action from construct.utils import platform from construct_launcher.constants import ( SETUP_LAUNCH, BEFORE_LAUNCH, LAUNCH, AFTER_LAUNCH,...
25.226667
72
0.631607
ff7b3956e9eafe742a86f9591d316473abf75a3a
10,477
py
Python
autokeras/utils/utils.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
null
null
null
autokeras/utils/utils.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
null
null
null
autokeras/utils/utils.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The AutoKeras 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 applicable law or agreed to i...
38.947955
156
0.643218
ff7b50f7717739c953d448cf57cbb70a8d586c5c
15,786
py
Python
redwind/plugins/wm_receiver.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
35
2015-01-08T03:26:39.000Z
2020-09-16T00:42:17.000Z
redwind/plugins/wm_receiver.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
47
2015-01-05T23:22:08.000Z
2021-02-02T21:43:26.000Z
redwind/plugins/wm_receiver.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
10
2015-02-20T00:51:37.000Z
2022-01-11T10:59:32.000Z
from bs4 import BeautifulSoup from flask import current_app from flask import request, make_response, render_template, url_for, Blueprint from redwind import hooks from redwind import util from redwind.extensions import db from redwind.models import Post, Mention, get_settings from redwind.tasks import get_queue, async...
35.002217
111
0.614469
ff7b647456079825cd7fee256de0730d1ff1d09a
2,213
py
Python
pymod/index.py
Plexical/pymod.me
b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a
[ "MIT" ]
1
2016-06-13T19:17:03.000Z
2016-06-13T19:17:03.000Z
pymod/index.py
Plexical/pymod.me
b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a
[ "MIT" ]
3
2017-05-10T08:29:20.000Z
2018-02-07T20:57:16.000Z
pymod/index.py
Plexical/pydoc.me
b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a
[ "MIT" ]
null
null
null
import os import requests from bs4 import BeautifulSoup from pickle import load, dump domof = lambda url: BeautifulSoup(requests.get(url).text, 'html.parser') py3b = 'https://docs.python.org/3' py2b = 'https://docs.python.org/2' def modsof(v): cache = './.py{}mod'.format(v) if os.path.exists(cache): ...
33.029851
83
0.492092