hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0fa484f7ae1a72b8411ce44ff1a3e31fab4d0ade
383
py
Python
exercises/python-1-a/example.py
ee7/exercism-research_experiment_1
92f875f53647f0da3dbcc32e13fdf53c77c3c460
[ "MIT" ]
8
2019-12-04T22:00:36.000Z
2020-09-27T15:05:12.000Z
exercises/python-1-a/example.py
ee7/exercism-research_experiment_1
92f875f53647f0da3dbcc32e13fdf53c77c3c460
[ "MIT" ]
92
2019-11-29T19:44:06.000Z
2021-11-09T16:15:48.000Z
exercises/python-1-a/example.py
ee7/exercism-research_experiment_1
92f875f53647f0da3dbcc32e13fdf53c77c3c460
[ "MIT" ]
27
2019-12-03T06:44:44.000Z
2021-11-09T16:10:29.000Z
""" Perform RLE compression using imperative programming techniques. """ def compress(raw: str) -> bytes: """ Compress the raw string to bytes using RLE. """ packed = bytearray() for char in raw.encode("utf-8"): if not packed or char != packed[-1]: packed.extend([1, char]) ...
22.529412
64
0.577023
2ef423744e843b87d375fe109a418a363cb892ba
3,386
py
Python
generate/generate_semeval_NLI_M.py
MEHAMMEDAMINE/ABSA-BERT-pair
a5f978574de2e0514b2a09143a3122d2db6df561
[ "MIT" ]
null
null
null
generate/generate_semeval_NLI_M.py
MEHAMMEDAMINE/ABSA-BERT-pair
a5f978574de2e0514b2a09143a3122d2db6df561
[ "MIT" ]
null
null
null
generate/generate_semeval_NLI_M.py
MEHAMMEDAMINE/ABSA-BERT-pair
a5f978574de2e0514b2a09143a3122d2db6df561
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 2 10:00:05 2022 @author: MOHAMMED ELAMINE """ import os from random import sample import random random.seed(10) data_dir='../data/HAAD/' dir_path = data_dir+'bert-pair/' if not os.path.exists(dir_path): os.makedirs(dir_path) d=['الحبكة', 'المشاعر', 'الاسلوب', 'السيا...
35.642105
163
0.412581
e43f1c0ad8566058e11cafb1849be9504879ad5e
2,334
py
Python
liveDetect.py
karencfisher/face_express
330321088898697ed547061ee1a4ec2c16035a7a
[ "MIT" ]
null
null
null
liveDetect.py
karencfisher/face_express
330321088898697ed547061ee1a4ec2c16035a7a
[ "MIT" ]
null
null
null
liveDetect.py
karencfisher/face_express
330321088898697ed547061ee1a4ec2c16035a7a
[ "MIT" ]
null
null
null
import os, time import cv2 import numpy as np from tensorflow.keras.models import load_model from imutils import resize def detectExpression(roi): ''' Uses model to detect expression in region of interest arguments: roi - 'region of interest' snipped from larger image. 2-d array of pixels. ...
28.463415
82
0.637104
15f24568a9ee38e556b2a143f4cf2364893ce145
6,029
py
Python
mitmproxy/coretypes/multidict.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/coretypes/multidict.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/coretypes/multidict.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
from abc import ABCMeta from abc import abstractmethod from collections.abc import Iterator, MutableMapping, Sequence from typing import TypeVar from mitmproxy.coretypes import serializable KT = TypeVar("KT") VT = TypeVar("VT") class _MultiDict(MutableMapping[KT, VT], metaclass=ABCMeta): """ A MultiDict is ...
29.409756
91
0.591309
eddbd94c014c7d3e14525642baccd84a01276131
1,599
py
Python
packit_service/constants.py
IceWreck/packit-service
ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc
[ "MIT" ]
null
null
null
packit_service/constants.py
IceWreck/packit-service
ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc
[ "MIT" ]
null
null
null
packit_service/constants.py
IceWreck/packit-service
ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc
[ "MIT" ]
null
null
null
from enum import Enum DOCS_URL = "https://packit.dev/packit-as-a-service/" FAQ_URL = f"{DOCS_URL}#faq" FAQ_URL_HOW_TO_RETRIGGER = ( f"{DOCS_URL}#how-to-re-trigger-packit-service-actions-in-your-pull-request" ) SANDCASTLE_WORK_DIR = "/sandcastle" SANDCASTLE_IMAGE = "docker.io/usercont/sandcastle" SANDCASTLE_DEFAUL...
24.984375
79
0.716698
2ef554db7bed5faed756f3e0f90211969e1bf023
5,040
py
Python
mwcp_parsers/Loki.py
CybercentreCanada/assemblyline-service-configextractor
ab456ed6bac2ae60dea56890b0e5d0cc42c7c519
[ "MIT" ]
2
2021-06-18T14:53:21.000Z
2021-07-03T11:45:42.000Z
mwcp_parsers/Loki.py
CybercentreCanada/assemblyline-service-configextractor
ab456ed6bac2ae60dea56890b0e5d0cc42c7c519
[ "MIT" ]
5
2020-11-04T16:06:38.000Z
2022-01-28T16:17:38.000Z
mwcp_parsers/Loki.py
CybercentreCanada/assemblyline-service-configextractor
ab456ed6bac2ae60dea56890b0e5d0cc42c7c519
[ "MIT" ]
2
2021-05-30T11:37:25.000Z
2021-06-24T12:57:35.000Z
# MIT License # # Copyright (c) Jason Reaves - @sysopfb # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, ...
28.636364
106
0.575794
14ef0de576d60f385d8cf91370a8d6ad8d143f09
967
py
Python
simple-http-server.py
rmayorgav/simple-http-server
8898a983f648cecb16e7dcccca73993c65ecb807
[ "MIT" ]
null
null
null
simple-http-server.py
rmayorgav/simple-http-server
8898a983f648cecb16e7dcccca73993c65ecb807
[ "MIT" ]
null
null
null
simple-http-server.py
rmayorgav/simple-http-server
8898a983f648cecb16e7dcccca73993c65ecb807
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import http.server import multiprocessing import socket HTTP_PORT = 8888 class HTTPServerIPv4(http.server.HTTPServer): address_family = socket.AF_INET class HTTPServerIPv6(http.server.HTTPServer): address_family = socket.AF_INET6 def http_server_ipv4(): server = HTTPServerIPv4...
20.145833
66
0.711479
8f30eb36dde45d406aa42b9faca0240f289cf77b
2,110
py
Python
ooobuild/cssdyn/datatransfer/clipboard/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/datatransfer/clipboard/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/datatransfer/clipboard/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
65.9375
120
0.836019
d8e87bd9445558df0c9744a1e45f2db3a8c343c7
28,441
py
Python
src/transformers/modeling_electra.py
12190143/transformers
6faca88ee0c472de8207e648b0999a1ee01ff127
[ "Apache-2.0" ]
480
2019-10-14T02:22:34.000Z
2022-03-29T18:07:00.000Z
src/transformers/modeling_electra.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
20
2019-10-15T16:18:05.000Z
2022-02-27T21:23:55.000Z
src/transformers/modeling_electra.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
42
2019-10-14T21:29:59.000Z
2021-12-28T15:25:58.000Z
import logging import os import torch import torch.nn as nn from .activations import get_activation from .configuration_electra import ElectraConfig from .file_utils import add_start_docstrings, add_start_docstrings_to_callable from .modeling_bert import BertEmbeddings, BertEncoder, BertLayerNorm, BertPreTrainedModel...
46.472222
154
0.674871
ff5ee5e0595ae7d922319aa97da9c9cf8bd3a331
1,519
py
Python
line-notification-awscost/app.py
K2OSystem/line-notification-awscost
b139499848696e1a6b5a0a8a39319c72af9fc5d7
[ "MIT" ]
null
null
null
line-notification-awscost/app.py
K2OSystem/line-notification-awscost
b139499848696e1a6b5a0a8a39319c72af9fc5d7
[ "MIT" ]
null
null
null
line-notification-awscost/app.py
K2OSystem/line-notification-awscost
b139499848696e1a6b5a0a8a39319c72af9fc5d7
[ "MIT" ]
null
null
null
import json import logging import os from datetime import datetime, timedelta import boto3 import requests logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) # Line の設定 LINE_POST_URL = os.environ['LINE_POST_URL'] LINE_TOKEN = os.environ['LINE_TOKEN'] client = boto3.client('cloudwatch', region_name=...
23.369231
83
0.651086
e8da817f75529d2252eba29f11b4e94581f82f74
48,676
py
Python
src/sage/geometry/hyperbolic_space/hyperbolic_model.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/geometry/hyperbolic_space/hyperbolic_model.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/geometry/hyperbolic_space/hyperbolic_model.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
# -*- coding: utf-8 -*- r""" Hyperbolic Models In this module, a hyperbolic model is a collection of data that allow the user to implement new models of hyperbolic space with minimal effort. The data include facts about the underlying set (such as whether the model is bounded), facts about the metric (such as whether ...
32.580991
138
0.563337
126ecf0ed83c795b9324e9a1861c563f3411695e
18,446
py
Python
is_number/_version.py
kenkehoe/is-number
e7129b73771d111bd7dcb595752027feae89e33f
[ "MIT" ]
null
null
null
is_number/_version.py
kenkehoe/is-number
e7129b73771d111bd7dcb595752027feae89e33f
[ "MIT" ]
null
null
null
is_number/_version.py
kenkehoe/is-number
e7129b73771d111bd7dcb595752027feae89e33f
[ "MIT" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.40499
79
0.584463
9f5f008b09c5332b28d9658801a68395ba5f0e16
26,969
py
Python
fairseq/utils.py
cepin19/fairseq_lattice
d1a35d849b2aff15c1e7fad3ace748c906bb4521
[ "MIT" ]
null
null
null
fairseq/utils.py
cepin19/fairseq_lattice
d1a35d849b2aff15c1e7fad3ace748c906bb4521
[ "MIT" ]
null
null
null
fairseq/utils.py
cepin19/fairseq_lattice
d1a35d849b2aff15c1e7fad3ace748c906bb4521
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import contextlib import copy import importlib import logging import os import sys import tempfile import warnings from iterto...
33.295062
160
0.630761
bc04b28a4bcc9f3738f4cc1edd4d777ec2688261
119,064
py
Python
sympy/printing/pretty/tests/test_pretty.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/pretty/tests/test_pretty.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/pretty/tests/test_pretty.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from sympy import ( Add, And, Basic, Derivative, Dict, Eq, Equivalent, FF, FiniteSet, Function, Ge, Gt, I, Implies, Integral, SingularityFunction, Lambda, Le, Limit, Lt, Matrix, Mul, Nand, Ne, Nor, Not, O, Or, Pow, Product, QQ, RR, Rational, Ray, rootof, RootSum, S, Segment, ...
20.28002
120
0.414374
1d3bd5f1087f429858b843befbe890c4e51bc805
139,305
py
Python
mrcnn/modeldepthv2.py
akeaveny/Mask_RCNN
b898286e3bebb4af16cc2dfc6f1167eeadd4292f
[ "MIT" ]
null
null
null
mrcnn/modeldepthv2.py
akeaveny/Mask_RCNN
b898286e3bebb4af16cc2dfc6f1167eeadd4292f
[ "MIT" ]
null
null
null
mrcnn/modeldepthv2.py
akeaveny/Mask_RCNN
b898286e3bebb4af16cc2dfc6f1167eeadd4292f
[ "MIT" ]
null
null
null
import os import random import datetime import re import math import logging from collections import OrderedDict import multiprocessing import numpy as np import skimage.transform import tensorflow as tf import keras import keras.backend as K import keras.layers as KL import keras.engine as KE import keras.models as K...
44.181732
146
0.612002
4bcb57736c6b36750d284ac676787b92aaf29ec2
3,868
py
Python
yearn/v2/strategies.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
1
2022-03-29T01:04:27.000Z
2022-03-29T01:04:27.000Z
yearn/v2/strategies.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
null
null
null
yearn/v2/strategies.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
1
2022-03-24T20:54:50.000Z
2022-03-24T20:54:50.000Z
import logging import threading import time from typing import List from eth_utils import encode_hex, event_abi_to_log_topic from yearn.decorators import sentry_catch_all, wait_or_exit_after from yearn.events import create_filter, decode_logs from yearn.multicall2 import fetch_multicall from yearn.utils import contrac...
31.447154
114
0.608325
d5d17e7cc717db37ce886a73a35284c7bafc8640
608
py
Python
sample_data/__init__.py
Mrhsk/cpsc2021
dcb7fb23edf7df79549279d053e4a8cadab3b268
[ "MIT" ]
1
2021-12-21T11:59:57.000Z
2021-12-21T11:59:57.000Z
sample_data/__init__.py
Mrhsk/cpsc2021
dcb7fb23edf7df79549279d053e4a8cadab3b268
[ "MIT" ]
null
null
null
sample_data/__init__.py
Mrhsk/cpsc2021
dcb7fb23edf7df79549279d053e4a8cadab3b268
[ "MIT" ]
null
null
null
""" """ import os, zipfile, glob _BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) _WORK_DIR = os.path.join(_BASE_DIR, "working_dir") _SAMPLE_DATA_DIR = os.path.join(_WORK_DIR, "sample_data") __all__ = ["extract_sample_data_if_needed",] def extract_sample_data_if_needed(): """ """ ...
25.333333
104
0.707237
ed9e83131c1f6e49401f4e791faa1bf1631e4ba4
5,849
py
Python
ibis/backends/pandas/udf.py
rtpsw/ibis
d7318fdf87121cd8fadbcf0369a2b217aab3053a
[ "Apache-2.0" ]
1
2022-03-22T10:39:37.000Z
2022-03-22T10:39:37.000Z
ibis/backends/pandas/udf.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
ibis/backends/pandas/udf.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
"""APIs for creating user-defined element-wise, reduction and analytic functions. """ import itertools from typing import Tuple import pandas as pd from pandas.core.groupby import SeriesGroupBy import ibis.expr.operations as ops import ibis.udf.vectorized from ibis.backends.base import BaseBackend from ibis.backends...
36.329193
79
0.674816
a0c592924d0bd4a7f34f9bb378e442524c16cf2a
85,919
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/account/models/account_move.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/account/models/account_move.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/account/models/account_move.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time from collections import OrderedDict from odoo import api, fields, models, _ from odoo.osv import expression from odoo.exceptions import RedirectWarning, UserError, ValidationError from odoo.tools.misc import formatLang from odoo.tools import float_is_zero, float_compare from odoo.to...
56.229712
298
0.633527
620fde81a535cf281d66de88ecec22aad0c313cb
418
py
Python
g12.py
pictographer/pi-i2c
d3b4c9faf5cd17b37f9e0863c4559c2ea06bdd0e
[ "MIT" ]
1
2018-04-08T13:41:33.000Z
2018-04-08T13:41:33.000Z
g12.py
pictographer/pi-i2c
d3b4c9faf5cd17b37f9e0863c4559c2ea06bdd0e
[ "MIT" ]
null
null
null
g12.py
pictographer/pi-i2c
d3b4c9faf5cd17b37f9e0863c4559c2ea06bdd0e
[ "MIT" ]
null
null
null
# # Import the required module. import time import RPi.GPIO as GPIO # Set the mode of numbering the pins. GPIO.setmode(GPIO.BCM) # GPIO pin 6 is an output. GPIO.setup(12, GPIO.OUT) GPIO.output(12, False) # Initialize the system shutdown pin (STIR_OFF_Rx) to zero (GPIO34) while 1: print("on") GPIO.output(...
23.222222
67
0.674641
536fccbac2faafc94b22be805dbb15305b1cc6bd
12,993
py
Python
mesonbuild/mcompile.py
xclaesse/meson
0a6b6dfe02f10fdb0ad6b9b5298c20aa25e1e879
[ "Apache-2.0" ]
null
null
null
mesonbuild/mcompile.py
xclaesse/meson
0a6b6dfe02f10fdb0ad6b9b5298c20aa25e1e879
[ "Apache-2.0" ]
5
2021-07-28T00:47:18.000Z
2022-03-14T00:38:45.000Z
mesonbuild/mcompile.py
xclaesse/meson
0a6b6dfe02f10fdb0ad6b9b5298c20aa25e1e879
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Meson development team # 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 ...
36.807365
138
0.63919
2fd8c3b1ac3dcc9370ba73a0d161f6324de573dc
5,238
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oe/gpg_sign.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oe/gpg_sign.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oe/gpg_sign.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: GPL-2.0-only # """Helper module for GPG signing""" import os import bb import oe.utils import subprocess import shlex class LocalSigner(object): """Class for handling local (on the build host) signing""" def __init__(self, d): self.gpg_bin = d.getVar('GPG_BIN') or \ ...
39.383459
143
0.58362
789786ed168a8e406a9d835c141ea5ce1bd2ba80
9,167
py
Python
powerprotect/protectionpolicy.py
EMC-Underground/powerprotect
3e599fc80c474765266bd98693d3712978d380b2
[ "MIT" ]
null
null
null
powerprotect/protectionpolicy.py
EMC-Underground/powerprotect
3e599fc80c474765266bd98693d3712978d380b2
[ "MIT" ]
null
null
null
powerprotect/protectionpolicy.py
EMC-Underground/powerprotect
3e599fc80c474765266bd98693d3712978d380b2
[ "MIT" ]
null
null
null
from powerprotect.ppdm import Ppdm from powerprotect import exceptions from powerprotect import get_module_logger from powerprotect import helpers protectionpolicy_logger = get_module_logger(__name__) protectionpolicy_logger.propagate = False class ProtectionPolicy(Ppdm): def __init__(self, **kwargs): t...
44.285024
80
0.565507
7452bd73642331896e721892fbc64fccf2c300a7
22,258
py
Python
src/wx.py
jack139/fair
fe0ff64f8edbd794c3fb951ab6af420054e9e585
[ "BSD-3-Clause" ]
1
2019-07-16T09:46:39.000Z
2019-07-16T09:46:39.000Z
src/wx.py
jack139/fair
fe0ff64f8edbd794c3fb951ab6af420054e9e585
[ "BSD-3-Clause" ]
null
null
null
src/wx.py
jack139/fair
fe0ff64f8edbd794c3fb951ab6af420054e9e585
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import web import time, json, urllib, urllib3 import gc from bson.objectid import ObjectId from config.url_wx import urls from config import setting from config.mongosession import MongoStore import app_helper, sms from app_helper import time_str, get_token try: import xm...
30.159892
518
0.660796
f32c25a744b0b3988cd0da07baf1f62a0700a54d
1,173
py
Python
utils/summaries.py
fadeevla/pytorch-deeplab-xception
dd4e092ecc47ec94e851b36523d243a484f6c672
[ "MIT" ]
null
null
null
utils/summaries.py
fadeevla/pytorch-deeplab-xception
dd4e092ecc47ec94e851b36523d243a484f6c672
[ "MIT" ]
null
null
null
utils/summaries.py
fadeevla/pytorch-deeplab-xception
dd4e092ecc47ec94e851b36523d243a484f6c672
[ "MIT" ]
null
null
null
import os import torch from torchvision.utils import make_grid from tensorboardX import SummaryWriter from external.dataloaders.utils import decode_seg_map_sequence class TensorboardSummary(object): def __init__(self, directory): self.directory = directory def create_summary(self): writer = Su...
51
108
0.659847
4013d9d184d31b317359da69e70bf3b8b8b6a2f3
3,951
py
Python
client/commands/stop.py
MedRedha/pyre-check
1e1aaceb1bfd98de5fabe67d3839e20e5ed0cd31
[ "MIT" ]
1
2019-12-31T01:08:13.000Z
2019-12-31T01:08:13.000Z
client/commands/stop.py
MedRedha/pyre-check
1e1aaceb1bfd98de5fabe67d3839e20e5ed0cd31
[ "MIT" ]
null
null
null
client/commands/stop.py
MedRedha/pyre-check
1e1aaceb1bfd98de5fabe67d3839e20e5ed0cd31
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import logging import os import time from logging import Logger from typing import List, Optional from .. import configuration_moni...
36.583333
88
0.599342
9155189ca19616e0422aa10e9f9c35cbd97278c9
1,168
py
Python
Meiduo/apps/payment/migrations/0001_initial.py
wanglijing615/python46
2c5f84ce79bf352b7a3c57be32f3210ce204c8c0
[ "MIT" ]
null
null
null
Meiduo/apps/payment/migrations/0001_initial.py
wanglijing615/python46
2c5f84ce79bf352b7a3c57be32f3210ce204c8c0
[ "MIT" ]
null
null
null
Meiduo/apps/payment/migrations/0001_initial.py
wanglijing615/python46
2c5f84ce79bf352b7a3c57be32f3210ce204c8c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-10-29 02:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('orders', '0001_initial'), ] o...
34.352941
132
0.595034
83cd1e4219e28efd5831ca5daadee99c293f58b3
2,595
py
Python
greedy/assignment1/one.py
kylepw/alg_spec
653a4492aed87439fb3d46938c9a57e69efb16a5
[ "MIT" ]
null
null
null
greedy/assignment1/one.py
kylepw/alg_spec
653a4492aed87439fb3d46938c9a57e69efb16a5
[ "MIT" ]
null
null
null
greedy/assignment1/one.py
kylepw/alg_spec
653a4492aed87439fb3d46938c9a57e69efb16a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """File describes a set of jobs with positive and integral weights and lengths. It has the format: [number_of_jobs] [job_1_weight] [job_1_length] [job_2_weight] [job_2_length] ... For example, the third line of the file is "74 59", indicating that the second job has weight 74 and length 59. ...
26.479592
100
0.664355
270b2911c7fc5b1283bd57d0ef29a4a04bfdd555
2,430
py
Python
train.py
TakLee96/discriminant
630010e03dcdad0b7ccaf4733309ff452896cc89
[ "MIT" ]
null
null
null
train.py
TakLee96/discriminant
630010e03dcdad0b7ccaf4733309ff452896cc89
[ "MIT" ]
null
null
null
train.py
TakLee96/discriminant
630010e03dcdad0b7ccaf4733309ff452896cc89
[ "MIT" ]
null
null
null
import numpy as np from os import path from scipy.io import loadmat from timer import timer from classifier import LDAClassifier, QDAClassifier """ TODO: choose either mnist or spam >>HERE<< """ which = "spam.mat" which = "mnist.mat" """ TODO: choose either mnist or spam >>HERE<< """ timer.start("reading", which, "...
34.225352
103
0.651852
26138f625a435a81afee21d011c1929317172ac7
2,054
py
Python
tests/conftest.py
mmatoscom/kopf
0141999e8be3522fa67a372dba4b0f6fbaea6ea1
[ "MIT" ]
null
null
null
tests/conftest.py
mmatoscom/kopf
0141999e8be3522fa67a372dba4b0f6fbaea6ea1
[ "MIT" ]
null
null
null
tests/conftest.py
mmatoscom/kopf
0141999e8be3522fa67a372dba4b0f6fbaea6ea1
[ "MIT" ]
null
null
null
import asyncio import time import asynctest import pytest import pytest_mock from kopf.reactor.registry import Resource # Make all tests in this directory and below asyncio-compatible by default. def pytest_collection_modifyitems(items): for item in items: if asyncio.iscoroutinefunction(item.function): ...
25.04878
93
0.645083
c9cc385b6a77bbdce42933cb4d4bcf8440410c3a
571
py
Python
var/spack/repos/builtin.mock/packages/singlevalue-variant-dependent/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin.mock/packages/singlevalue-variant-dependent/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin.mock/packages/singlevalue-variant-dependent/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class SinglevalueVariantDependent(Package): """Simple package with one optional dependency""" ...
27.190476
73
0.714536
ece0602ccf211beecf528a4d2376afb04862f209
784
py
Python
app036.1.py
ChloeRuan/HelloWorld
e1297ee871c9a84a6e7c50e0d3aa1c332daef27f
[ "MIT" ]
null
null
null
app036.1.py
ChloeRuan/HelloWorld
e1297ee871c9a84a6e7c50e0d3aa1c332daef27f
[ "MIT" ]
null
null
null
app036.1.py
ChloeRuan/HelloWorld
e1297ee871c9a84a6e7c50e0d3aa1c332daef27f
[ "MIT" ]
null
null
null
# automate repetive tasks import openpyxl as xl from openpyxl.chart import BarChart, Reference def process_workbook(filename): wb = xl.load_workbook('filename') # load_workbook is a function to load excel sheet = wb['Sheet1'] # case sensitive for row in range(2, sheet.max_row + 1): # why? if we write...
31.36
103
0.69898
9babd04b0027c867a0736019378dd2cdd420dcc0
537
py
Python
catvae/models/__init__.py
flatironinstitute/catvae
4bfdce83a24c0fb0e55215dd24cda5dcaa9d418a
[ "BSD-3-Clause" ]
6
2021-05-23T18:50:48.000Z
2022-02-23T20:57:36.000Z
catvae/models/__init__.py
flatironinstitute/catvae
4bfdce83a24c0fb0e55215dd24cda5dcaa9d418a
[ "BSD-3-Clause" ]
24
2021-05-19T17:43:33.000Z
2022-03-03T21:41:13.000Z
catvae/models/__init__.py
flatironinstitute/catvae
4bfdce83a24c0fb0e55215dd24cda5dcaa9d418a
[ "BSD-3-Clause" ]
2
2021-05-19T16:21:13.000Z
2021-09-23T01:11:29.000Z
from catvae.models.linear_cat_vae import LinearCatVAE from catvae.models.linear_cat_vae import LinearBatchCatVAE from catvae.models.linear_vae import LinearVAE from catvae.models.linear_vae import LinearDLRVAE from catvae.models.linear_vae import LinearBatchVAE from catvae.models.batch_classifier import Q2BatchClassifi...
38.357143
60
0.79702
7a9b337636c545a73a6f7798c3c1fa864adf6695
299
py
Python
hooks/pre_gen_project.py
ihumphrey/cookiecutter-pypackage
23088f77465652d0cbb028a485611f2ece90360b
[ "BSD-3-Clause" ]
null
null
null
hooks/pre_gen_project.py
ihumphrey/cookiecutter-pypackage
23088f77465652d0cbb028a485611f2ece90360b
[ "BSD-3-Clause" ]
null
null
null
hooks/pre_gen_project.py
ihumphrey/cookiecutter-pypackage
23088f77465652d0cbb028a485611f2ece90360b
[ "BSD-3-Clause" ]
null
null
null
import re import sys MODULE_REGEX = r'^[_a-zA-Z][_a-zA-Z0-9]+$' package_name = '{{ cookiecutter.package_name}}' if not re.match(MODULE_REGEX, package_name): print('ERROR: %s is not a valid Python package name!' % package_name) # exits with status 1 to indicate failure sys.exit(1)
19.933333
73
0.688963
22c64f13d908cf76967a60895b973f1163ff8aac
6,777
py
Python
abtools/utils/ssh_tunnel.py
menis/abtools
bfc7c6c508b174bb3b74d8f152156242ddd2ee77
[ "MIT" ]
9
2016-06-13T20:00:04.000Z
2022-03-19T19:07:23.000Z
abtools/utils/ssh_tunnel.py
menis/abtools
bfc7c6c508b174bb3b74d8f152156242ddd2ee77
[ "MIT" ]
null
null
null
abtools/utils/ssh_tunnel.py
menis/abtools
bfc7c6c508b174bb3b74d8f152156242ddd2ee77
[ "MIT" ]
4
2018-04-10T09:05:21.000Z
2022-01-27T21:23:06.000Z
#!/usr/bin/env python # filename: ssh_tunnel.py # # Copyright (c) 2015 Bryan Briney # License: The MIT license (http://opensource.org/licenses/MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the So...
38.288136
103
0.633614
a78a55e521984401e5b4205752918406943e63b3
7,161
py
Python
audio_style_transfer/models/uylanov.py
dak-7309/time-domain-neural-audio-style-transfer
ed31a4988489f6ce6944799d2340ab5feea8e878
[ "Apache-2.0" ]
139
2017-11-28T11:23:32.000Z
2022-03-08T18:01:23.000Z
audio_style_transfer/models/uylanov.py
dak-7309/time-domain-neural-audio-style-transfer
ed31a4988489f6ce6944799d2340ab5feea8e878
[ "Apache-2.0" ]
2
2019-03-27T04:19:28.000Z
2020-04-12T21:12:44.000Z
audio_style_transfer/models/uylanov.py
dak-7309/time-domain-neural-audio-style-transfer
ed31a4988489f6ce6944799d2340ab5feea8e878
[ "Apache-2.0" ]
31
2017-11-28T07:08:23.000Z
2022-03-09T02:51:08.000Z
"""NIPS2017 "Time Domain Neural Audio Style Transfer" code repository Parag K. Mital """ import tensorflow as tf import librosa import numpy as np import argparse import glob import os from audio_style_transfer import utils def read_audio_spectum(filename, n_fft=2048, hop_length=512, sr=22050): x, sr = librosa.lo...
34.762136
80
0.559419
c7f265c901ad22fbfe0107c0ab9f1d0d4f22c430
945
py
Python
Chapter 06/add_coffee_record.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
35
2019-05-03T00:30:31.000Z
2022-01-20T06:57:25.000Z
Chapter 06/add_coffee_record.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
1
2020-09-04T02:04:33.000Z
2020-09-04T02:04:33.000Z
Chapter 06/add_coffee_record.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
22
2020-05-13T21:20:02.000Z
2021-12-21T08:35:59.000Z
# This program adds coffee inventory records to # the coffee.txt file. def main(): # Create a variable to control the loop. another = 'y' # Open the coffee.txt file in append mode. coffee_file = open('coffee.txt', 'a') # Add records to the file. while another == 'y' or another == 'Y': ...
27
56
0.597884
5fa02624304161a4a6884950af46e5b8a3503ea3
13,697
py
Python
Misc/Legacy/Stats_funcs.py
BadenLab/2Panalysis
8b23b3eaa1700f4fb5729eb7e89bfd55e7b4811a
[ "MIT" ]
null
null
null
Misc/Legacy/Stats_funcs.py
BadenLab/2Panalysis
8b23b3eaa1700f4fb5729eb7e89bfd55e7b4811a
[ "MIT" ]
null
null
null
Misc/Legacy/Stats_funcs.py
BadenLab/2Panalysis
8b23b3eaa1700f4fb5729eb7e89bfd55e7b4811a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 23 20:39:22 2021 @author: skrem """ def shapirowilk(dataname, plot = 0, **kwargs): """Returns Shapiro-Wilk test for normality (stat, p-value), with the null hypothesis that data are normally distributed. Parameters ---------- dataname: array-like...
41.632219
222
0.638607
11a2fbe6979effe1904d5387cfd6a9dee9af6510
2,881
py
Python
Stock_Data/green_line_test.py
vhn0912/Finance
39cf49d4d778d322537531cee4ce3981cc9951f9
[ "MIT" ]
441
2020-04-22T02:21:19.000Z
2022-03-29T15:00:24.000Z
Stock_Data/green_line_test.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
5
2020-07-06T15:19:58.000Z
2021-07-23T18:32:29.000Z
Stock_Data/green_line_test.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
111
2020-04-21T11:40:39.000Z
2022-03-20T07:26:17.000Z
import datetime as dt import pandas as pd from pandas_datareader import DataReader import matplotlib.pyplot as plt from pylab import rcParams import yahoo_fin.stock_info as si start = dt.datetime(1980,12,1) now = dt.datetime.now() stock = input('enter a ticker: ') while stock != 'quit': price = si.ge...
35.567901
154
0.508157
5bfb21804e6aad4148486f735f8bbdcdc5a528fd
194
py
Python
Listas_do_Lop/Lista_06/Testes.py
Teuszin/Calculo-Numerico
3e8fc03166df5476b8e207e2877b02d47b81c5bc
[ "MIT" ]
null
null
null
Listas_do_Lop/Lista_06/Testes.py
Teuszin/Calculo-Numerico
3e8fc03166df5476b8e207e2877b02d47b81c5bc
[ "MIT" ]
null
null
null
Listas_do_Lop/Lista_06/Testes.py
Teuszin/Calculo-Numerico
3e8fc03166df5476b8e207e2877b02d47b81c5bc
[ "MIT" ]
null
null
null
num_de_n = int(input()) pesos = [] for i in range(0, num_de_n): if i % 2 == 0: pesos.append(2) else: pesos.append(4) pesos[0] = 1 pesos[num_de_n - 1] = 1 print(pesos)
14.923077
28
0.546392
7bf97fe32d769cc5c201e2a68429507cc2bac068
130,901
py
Python
PyU4V/provisioning.py
travatine/PyU4V
fce08e8fab3578d95e53e3a2200a81f4debf57da
[ "Apache-2.0" ]
null
null
null
PyU4V/provisioning.py
travatine/PyU4V
fce08e8fab3578d95e53e3a2200a81f4debf57da
[ "Apache-2.0" ]
null
null
null
PyU4V/provisioning.py
travatine/PyU4V
fce08e8fab3578d95e53e3a2200a81f4debf57da
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Dell Inc. or its subsidiaries. # # 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...
43.532092
101
0.628047
9dec9e6c6761397e1d5eaf426ceb8b29b72bf828
15,758
py
Python
env/lib/python3.6/site-packages/pip/_vendor/html5lib/serializer.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.6/site-packages/pip/_vendor/html5lib/serializer.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.6/site-packages/pip/_vendor/html5lib/serializer.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type import re from codecs import register_error, xmlcharrefreplace_errors from .constants import voidElements, booleanAttributes, spaceCharacters from .constants import rcdataElements, entities, xmlEntities from . im...
38.434146
116
0.551402
7cb33090f862fdd7ca04c9103ee8d79d4d175309
810
py
Python
investors/migrations/0065_auto_20200625_1223.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
null
null
null
investors/migrations/0065_auto_20200625_1223.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
3
2021-07-15T13:23:28.000Z
2021-12-09T03:32:16.000Z
investors/migrations/0065_auto_20200625_1223.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
1
2021-08-19T14:42:59.000Z
2021-08-19T14:42:59.000Z
# Generated by Django 3.0.7 on 2020-06-25 04:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('investors', '0064_auto_20200621_2226'), ] operations = [ migrations.AlterField( model_name='tradestrategy', name='ap...
33.75
204
0.564198
4086dc10f0b8e9e803e1342420a9b049af24e0db
4,690
py
Python
test/unit/tools/test_tool_shed_repository_cache.py
michaelcraige/galaxy
9f872e20dab3f5841db8d123cdbdf9273534c3a5
[ "CC-BY-3.0" ]
1
2020-09-02T23:26:12.000Z
2020-09-02T23:26:12.000Z
test/unit/tools/test_tool_shed_repository_cache.py
michaelcraige/galaxy
9f872e20dab3f5841db8d123cdbdf9273534c3a5
[ "CC-BY-3.0" ]
null
null
null
test/unit/tools/test_tool_shed_repository_cache.py
michaelcraige/galaxy
9f872e20dab3f5841db8d123cdbdf9273534c3a5
[ "CC-BY-3.0" ]
null
null
null
import pytest from galaxy.model import tool_shed_install from galaxy.model.tool_shed_install import mapping from galaxy.tools.cache import ToolShedRepositoryCache from galaxy.tools.toolbox.base import ToolConfRepository from galaxy.util import bunch @pytest.fixture def mock_app(): app = bunch.Bunch() app.ins...
40.08547
188
0.730917
e075818ea1dc563feab52d6f8491b4ccd94cf3e8
2,677
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/_application_insights_management_client.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/_application_insights_management_client.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
1
2021-02-23T23:11:26.000Z
2021-02-23T23:11:26.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/_application_insights_management_client.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 ...
38.242857
110
0.67613
dad4e68f163b4a7d048dc5f59cf5c6760746dda8
2,733
py
Python
app/routers/session.py
coolexplorer/py-session
86ffbd3f1744df18d2deeaa77eebe5dd9980c6ae
[ "MIT" ]
2
2021-08-17T07:15:46.000Z
2021-08-17T07:18:15.000Z
app/routers/session.py
coolexplorer/py-session
86ffbd3f1744df18d2deeaa77eebe5dd9980c6ae
[ "MIT" ]
1
2022-02-24T06:52:08.000Z
2022-02-24T06:52:08.000Z
app/routers/session.py
coolexplorer/py-session
86ffbd3f1744df18d2deeaa77eebe5dd9980c6ae
[ "MIT" ]
null
null
null
import logging from os import stat from fastapi import APIRouter, Header, Depends, status, HTTPException from fastapi_versioning import version from requests.api import get from starlette.status import HTTP_404_NOT_FOUND, HTTP_500_INTERNAL_SERVER_ERROR from config import config from const.url import * from dependenci...
32.535714
105
0.710209
e404e0b370ed12bf85f62c880a9655558e15613c
463
py
Python
dev_scripts/scrape.py
ayuhsya/kanji-flashcards
3369e46797f07721c8f4bd666c96e6d5354cb8af
[ "MIT" ]
null
null
null
dev_scripts/scrape.py
ayuhsya/kanji-flashcards
3369e46797f07721c8f4bd666c96e6d5354cb8af
[ "MIT" ]
null
null
null
dev_scripts/scrape.py
ayuhsya/kanji-flashcards
3369e46797f07721c8f4bd666c96e6d5354cb8af
[ "MIT" ]
null
null
null
import json import urllib import urllib.parse import urllib.request from pprint import pprint data=json.load(open('kanji.json')) pretty_data=[] #print (data) for entry in data: query={ 'kanji': entry[1][u'content'], 'kunyomi': entry[2][u'content'], 'onyomi': entry[3][u'content'], 'meaning': entry[4][u'con...
18.52
55
0.699784
27b4a9b872f95dee2cb75bf9ba721769dd95803f
3,853
py
Python
seed/depends/auth/types.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
3
2020-12-24T12:01:13.000Z
2021-06-01T06:23:41.000Z
seed/depends/auth/types.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
null
null
null
seed/depends/auth/types.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
null
null
null
import arrow import jwt import uuid import orjson from typing import Any, Dict, Union, Optional from seed.depends.redis import RedisContextManager from seed.utils.convert import units_to_seconds from seed.utils.crypto import AESCipher from seed.setting import setting class JWTTokenType: ACCESS_TOKEN: str = 'ac...
29.189394
85
0.547885
b2d8621920a4738eca680b172944edbf6ec37295
1,792
py
Python
app/exreamlystupidui/html_renderer.py
smartFreshBear/RecipeGrabber
2efa2a621d1b7bb16efe0c027ebfdcd8fcb20599
[ "Apache-2.0" ]
null
null
null
app/exreamlystupidui/html_renderer.py
smartFreshBear/RecipeGrabber
2efa2a621d1b7bb16efe0c027ebfdcd8fcb20599
[ "Apache-2.0" ]
16
2021-02-04T21:01:30.000Z
2021-09-27T23:50:10.000Z
app/exreamlystupidui/html_renderer.py
smartFreshBear/RecipeGrabber
2efa2a621d1b7bb16efe0c027ebfdcd8fcb20599
[ "Apache-2.0" ]
1
2021-07-30T16:45:01.000Z
2021-07-30T16:45:01.000Z
import django from django.conf import settings from django.template import Template, Context simplified_recipe_response_template_html = """ <!DOCTYPE html> <html lang="en"> <head> <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' /> </head> <h1 style="color: #5e9ca0; text-align: r...
31.438596
316
0.698661
814673982a5453b6e620a1da48543240246d8d99
11,427
py
Python
rest_api/apps/records/models.py
chouchouyu/django-postgres-stack
a3b0ff61d5397b97c3e1537a11b628fcf9b0848c
[ "BSD-Source-Code" ]
2
2020-02-13T01:21:15.000Z
2020-06-16T07:15:46.000Z
rest_api/apps/records/models.py
chouchouyu/django-postgres-stack
a3b0ff61d5397b97c3e1537a11b628fcf9b0848c
[ "BSD-Source-Code" ]
6
2020-02-13T00:40:07.000Z
2020-02-22T03:22:31.000Z
rest_api/apps/records/models.py
chouchouyu/django-postgres-stack
a3b0ff61d5397b97c3e1537a11b628fcf9b0848c
[ "BSD-Source-Code" ]
null
null
null
from datetime import datetime from django.utils import timezone from django.db import models # Create your models here. from machines.models import Machine class TestBranch(models.Model): """ test branch """ branch_name = models.CharField(max_length=128, unique=True, verbose_name="branch name", help_...
46.640816
120
0.675505
2a8756a6b9b8c9c6d24e0bd5f6e1bc854fc838af
4,510
py
Python
auto_rxn/inficon_gc.py
ukurumbail/auto_rxn
c0df9138b73c6c4a53aeca83833e9fee979e8739
[ "MIT" ]
null
null
null
auto_rxn/inficon_gc.py
ukurumbail/auto_rxn
c0df9138b73c6c4a53aeca83833e9fee979e8739
[ "MIT" ]
null
null
null
auto_rxn/inficon_gc.py
ukurumbail/auto_rxn
c0df9138b73c6c4a53aeca83833e9fee979e8739
[ "MIT" ]
null
null
null
import json import time import requests import random class Device(): def __init__(self,params,config,mock=False): self.mock = mock self.config = config self.params = params self.subdevices = {} if self.mock: for subdev_name in params.keys(): #for each subdevice in input file self.subdevices[subdev_...
28.36478
149
0.734368
638b0db7690b6282ce794ff73cab87d74dc3ed6b
7,906
py
Python
bio/Gene.py
Joaxin/GitComments
7aa862f0ee892cbbc94b037395a6273b2654cbea
[ "MIT" ]
null
null
null
bio/Gene.py
Joaxin/GitComments
7aa862f0ee892cbbc94b037395a6273b2654cbea
[ "MIT" ]
88
2019-10-31T12:30:02.000Z
2020-08-14T12:17:12.000Z
bio/Gene.py
Joaxin/GitComments
7aa862f0ee892cbbc94b037395a6273b2654cbea
[ "MIT" ]
null
null
null
# 1. 加上了solid_capstyle = 'butt'这个参数,去掉了直线的‘帽子’ # # 2.设置antialiased=False, 取消直线边缘模糊化处理 # # 3.每段序列左右两端加了0.5 def find_target_data(gene_name, gtf_file_path, chunk=3072 * 2048): with open(gtf_file_path) as f: header = ['chr', 'db', 'record', 'start', 'end', 'tmp', 'strand', 'tmp', 'info'] targe...
42.278075
108
0.535796
16a705338b67f15240f8a4c652484930b9855b58
3,733
py
Python
agentpycell/utils.py
kjph/py-agentmdl
3ea4dc483ccc689f172de408de9de55f723349a3
[ "MIT" ]
null
null
null
agentpycell/utils.py
kjph/py-agentmdl
3ea4dc483ccc689f172de408de9de55f723349a3
[ "MIT" ]
null
null
null
agentpycell/utils.py
kjph/py-agentmdl
3ea4dc483ccc689f172de408de9de55f723349a3
[ "MIT" ]
null
null
null
""" Data model for this package """ class list2(object): def __init__(self, nrow, ncol, init=None): self._dim = (nrow, ncol) self._array = [[init for c in range(ncol)] for r in range(nrow)] self.set_sweep('dr') def __iter__(self): """ Linear iterator, this goes through the e...
28.937984
72
0.461559
644e0732063e472cd99178daf2342989799abf40
634
py
Python
election/migrations/0002_foreign_relationships.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
5
2019-07-01T17:50:44.000Z
2022-02-20T02:44:42.000Z
election/migrations/0002_foreign_relationships.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
3
2020-06-05T21:44:33.000Z
2021-06-10T21:39:26.000Z
election/migrations/0002_foreign_relationships.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
1
2021-12-09T06:32:40.000Z
2021-12-09T06:32:40.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-30 16:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mailer', '0001_initial'), ('election', '0001_initi...
26.416667
118
0.646688
cb7b7f58296c338d2049448af253802fbb7eba80
8,716
py
Python
jishaku/features/python.py
danrfq/jishaku
d1d10e80a729b169c3c86eecbb0403ea30d4f414
[ "MIT" ]
1
2022-01-07T10:43:20.000Z
2022-01-07T10:43:20.000Z
jishaku/features/python.py
danrfq/jishaku
d1d10e80a729b169c3c86eecbb0403ea30d4f414
[ "MIT" ]
null
null
null
jishaku/features/python.py
danrfq/jishaku
d1d10e80a729b169c3c86eecbb0403ea30d4f414
[ "MIT" ]
1
2022-03-15T02:21:39.000Z
2022-03-15T02:21:39.000Z
# -*- coding: utf-8 -*- """ jishaku.features.python ~~~~~~~~~~~~~~~~~~~~~~~~ The jishaku Python evaluation/execution commands. :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """ import io, datetime import discord from discord.ext import commands from discord.embeds import Emb...
37.568966
124
0.596948
434c02b8eba2f3f3b634d84388bf58920bd4f812
35,223
py
Python
pandas/tests/frame/test_alter_axes.py
cclauss/pandas
692b5eeeff9b8e8c750f3e64db0c39dc149a73e8
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
4
2016-10-05T17:38:58.000Z
2020-08-24T16:26:37.000Z
pandas/tests/frame/test_alter_axes.py
cclauss/pandas
692b5eeeff9b8e8c750f3e64db0c39dc149a73e8
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_alter_axes.py
cclauss/pandas
692b5eeeff9b8e8c750f3e64db0c39dc149a73e8
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
12
2017-05-23T06:01:12.000Z
2021-08-16T05:09:46.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import pytest from datetime import datetime, timedelta import numpy as np from pandas.compat import lrange from pandas import (DataFrame, Series, Index, MultiIndex, RangeIndex, date_range, IntervalIndex, to_dateti...
38.664105
79
0.505607
b995ee8f7de69495e195da1fda1b5cf2f03e9719
367
py
Python
examples/pybullet/examples/logMinitaur.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
27
2018-05-21T14:28:10.000Z
2021-12-31T03:12:35.000Z
examples/pybullet/examples/logMinitaur.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
2
2018-02-02T21:26:09.000Z
2018-02-06T19:05:24.000Z
examples/pybullet/examples/logMinitaur.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
13
2019-11-08T12:48:44.000Z
2022-01-04T04:13:33.000Z
import pybullet as p cid = p.connect(p.SHARED_MEMORY) if (cid < 0) : p.connect(p.GUI) p.loadURDF("plane.urdf") quadruped = p.loadURDF("quadruped/quadruped.urdf") logId = p.startStateLogging(p.STATE_LOGGING_MINITAUR,"LOG00048.TXT",[quadruped]) p.stepSimulation() p.stepSimulation() p.stepSimulation() p.stepSimulation()...
22.9375
80
0.765668
ace1f91ec6aa303209ffa7e599924509e0141523
352
py
Python
loopchain/blockchain/blocks/__init__.py
windies21/loopchain
6e96c8a7e006747af04187155678f2fae59e1389
[ "Apache-2.0" ]
105
2018-04-03T05:29:08.000Z
2022-01-28T17:33:20.000Z
loopchain/blockchain/blocks/__init__.py
laurenceyoon/loopchain
e87032779be4715c135c2c91d2757d9c63bf4e31
[ "Apache-2.0" ]
135
2018-09-04T07:11:02.000Z
2021-12-15T06:25:47.000Z
loopchain/blockchain/blocks/__init__.py
laurenceyoon/loopchain
e87032779be4715c135c2c91d2757d9c63bf4e31
[ "Apache-2.0" ]
46
2018-05-07T09:12:07.000Z
2022-02-23T09:58:37.000Z
from .block import Block, BlockHeader, BlockBody, _dict__str__, NextRepsChangeReason from .block_builder import BlockBuilder from .block_serializer import BlockSerializer from .block_verifier import BlockVerifier from .block_prover import BlockProver, BlockProverType from .block_versioner import BlockVersioner from . ...
35.2
84
0.855114
7ab9fae58bee1bde3c75465cf740415cf0a4b3ff
429
py
Python
stationery/migrations/0003_auto_20210710_0304.py
shaxpakistan/e-stationery
00c7027f74e9f0e90247e44d9dbd86203cd9dbb4
[ "CC0-1.0" ]
1
2022-02-17T19:13:40.000Z
2022-02-17T19:13:40.000Z
stationery/migrations/0003_auto_20210710_0304.py
shaxpakistan/e-stationery
00c7027f74e9f0e90247e44d9dbd86203cd9dbb4
[ "CC0-1.0" ]
null
null
null
stationery/migrations/0003_auto_20210710_0304.py
shaxpakistan/e-stationery
00c7027f74e9f0e90247e44d9dbd86203cd9dbb4
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.4 on 2021-07-10 00:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stationery', '0002_auto_20210710_0244'), ] operations = [ migrations.AlterField( model_name='order', name='destinati...
22.578947
86
0.617716
cabfe53b6fa55291474163e9537429d2f873b72b
3,880
py
Python
src/Guidance_system/guidance_sys/calibrate.py
Joseph-tsai415/Msc-All-Terrain-Robot
40973b8d1b088d37efc372f6313ee58d18792c02
[ "MIT" ]
null
null
null
src/Guidance_system/guidance_sys/calibrate.py
Joseph-tsai415/Msc-All-Terrain-Robot
40973b8d1b088d37efc372f6313ee58d18792c02
[ "MIT" ]
null
null
null
src/Guidance_system/guidance_sys/calibrate.py
Joseph-tsai415/Msc-All-Terrain-Robot
40973b8d1b088d37efc372f6313ee58d18792c02
[ "MIT" ]
null
null
null
import numpy as np import cv2, os from cv2 import aruco class calibrate(): """ The class called Calibrate is initialised with constants appropriate for the given target Calibration """ # if __name__ == '__main__': def __init__(self): #%matplotlib nbagg self.aruco_dict = aruco....
38.8
111
0.569588
3bcb25efa8fe3c1d236b2f388483ce5d633dce5b
150
py
Python
sales/templatetags/__init__.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
242
2015-01-01T15:08:23.000Z
2022-01-19T21:14:24.000Z
sales/templatetags/__init__.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
52
2015-01-05T09:13:17.000Z
2018-12-26T14:52:43.000Z
sales/templatetags/__init__.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
99
2015-01-09T23:28:14.000Z
2021-12-30T09:19:51.000Z
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license """ Sales templatetags docstring """
16.666667
32
0.726667
41bfb992d5e593335db08357e402194351a7205a
248
py
Python
mello/manage.py
mmbln/mello
baf13571fd6b14130a586cca40ef9c1d739faa60
[ "Apache-2.0" ]
null
null
null
mello/manage.py
mmbln/mello
baf13571fd6b14130a586cca40ef9c1d739faa60
[ "Apache-2.0" ]
null
null
null
mello/manage.py
mmbln/mello
baf13571fd6b14130a586cca40ef9c1d739faa60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mello.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.545455
69
0.770161
919f5440a9c5508b87ae5386637a4ce25c914acb
15,610
py
Python
pipe-cli/mount/pipe-fuse.py
ZMaratovna/cloud-pipeline
542b8394f9fade8eb0ef5603568348c3f20a758d
[ "Apache-2.0" ]
126
2019-03-22T19:40:38.000Z
2022-02-16T13:01:44.000Z
pipe-cli/mount/pipe-fuse.py
ZMaratovna/cloud-pipeline
542b8394f9fade8eb0ef5603568348c3f20a758d
[ "Apache-2.0" ]
1,189
2019-03-25T10:39:27.000Z
2022-03-31T12:50:33.000Z
pipe-cli/mount/pipe-fuse.py
ZMaratovna/cloud-pipeline
542b8394f9fade8eb0ef5603568348c3f20a758d
[ "Apache-2.0" ]
62
2019-03-22T22:09:49.000Z
2022-03-08T12:05:56.000Z
# Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
49.398734
118
0.688789
e94ff0c4137d63f5a99d8962bcde22add8a24066
931
py
Python
streamlink_loop.py
WHTJEON/streamlink_loop
c3e6e3fdaa5feedde932a5417c806cc193432266
[ "MIT" ]
null
null
null
streamlink_loop.py
WHTJEON/streamlink_loop
c3e6e3fdaa5feedde932a5417c806cc193432266
[ "MIT" ]
null
null
null
streamlink_loop.py
WHTJEON/streamlink_loop
c3e6e3fdaa5feedde932a5417c806cc193432266
[ "MIT" ]
null
null
null
import argparse import os import shutil parser=argparse.ArgumentParser() parser.add_argument('-url', required=True) parser.add_argument('-cam', required=True) parser.add_argument('-max', required=False,default=0) args = parser.parse_args() M3U8 = args.url CAM = args.cam MAX_RETRIES = int(args.max) def divider(): co...
20.23913
67
0.712137
5d9899a75decd07d4f480c56339b7bf4657d4d1f
670
py
Python
scripts/stf/filter.py
SFDO-Alliances/NPSP
3711a3cf8e3124bc2d7e61644d6abecb4042004e
[ "BSD-3-Clause" ]
413
2015-01-02T09:53:04.000Z
2019-12-05T15:31:25.000Z
scripts/stf/filter.py
SFDO-Alliances/NPSP
3711a3cf8e3124bc2d7e61644d6abecb4042004e
[ "BSD-3-Clause" ]
2,471
2015-01-02T03:33:55.000Z
2019-12-13T17:55:10.000Z
scripts/stf/filter.py
SFDO-Alliances/NPSP
3711a3cf8e3124bc2d7e61644d6abecb4042004e
[ "BSD-3-Clause" ]
296
2015-01-06T13:03:33.000Z
2019-12-11T14:19:31.000Z
#!/usr/bin/env python import json from sys import argv, stdin, stdout, stderr filter_filename = argv[1] with open(filter_filename, 'r') as filter_file: filters = set(json.load(filter_file)) lines_received = 0 lines_dropped = 0 lines_emitted = 0 for line in stdin: lines_received += 1 parts = line.split("\...
26.8
73
0.676119
bfbc73dc3f5a057851dae2aadae317a1339aff39
1,370
py
Python
tests/test_union.py
saytosid/attrs-strict
ada0b355f119889ad80ee3860d15e06722cae6a6
[ "Apache-2.0" ]
null
null
null
tests/test_union.py
saytosid/attrs-strict
ada0b355f119889ad80ee3860d15e06722cae6a6
[ "Apache-2.0" ]
null
null
null
tests/test_union.py
saytosid/attrs-strict
ada0b355f119889ad80ee3860d15e06722cae6a6
[ "Apache-2.0" ]
null
null
null
from typing import List, Union import pytest from attrs_strict import type_validator try: from unittest.mock import MagicMock except ImportError: from mock import Mock as MagicMock @pytest.mark.parametrize( "element, type_, error_message", [ ( 2.0, Union[int, str], ...
22.096774
80
0.576642
39b243410f4f534b631d8419f414662a757f9645
407
py
Python
204_count-primes.py
yzhhome/leetcode_python
0b1fe89b1ddd8a990066035f9bd596812fc89f59
[ "MIT" ]
null
null
null
204_count-primes.py
yzhhome/leetcode_python
0b1fe89b1ddd8a990066035f9bd596812fc89f59
[ "MIT" ]
null
null
null
204_count-primes.py
yzhhome/leetcode_python
0b1fe89b1ddd8a990066035f9bd596812fc89f59
[ "MIT" ]
null
null
null
""" 204. 计数质数(统计素数) 素数是只能被1和自身整除的数 https://leetcode-cn.com/problems/count-primes/ """ def coutPrimes(n): isPrime = [1] * n for i in range(2, n): if isPrime[i] == 1: for j in range(i * i, n, i): isPrime[j] = 0 # 减去record[0] + record[1]中的两个1 return sum...
22.611111
50
0.528256
57c01161f59d6787956dc21769abd7bc18c4446c
9,424
py
Python
test/functional/p2p_invalid_messages.py
mycplus/bitcoin
c54295c1a2068aab5ea99c0a40eb716e1194d5b6
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_messages.py
mycplus/bitcoin
c54295c1a2068aab5ea99c0a40eb716e1194d5b6
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_messages.py
mycplus/bitcoin
c54295c1a2068aab5ea99c0a40eb716e1194d5b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node responses to invalid network messages.""" import asyncio import struct import sys from test_...
38.942149
133
0.624257
d9d61c7f207be432db90a42d62c55889e873a60c
15,477
py
Python
trax/layers/tracer.py
koz4k2/trax
548f671fa3804cb86154ac504fb0c6c4269b42c7
[ "Apache-2.0" ]
2
2020-02-05T09:27:29.000Z
2020-02-05T09:27:49.000Z
trax/layers/tracer.py
koz4k2/trax
548f671fa3804cb86154ac504fb0c6c4269b42c7
[ "Apache-2.0" ]
null
null
null
trax/layers/tracer.py
koz4k2/trax
548f671fa3804cb86154ac504fb0c6c4269b42c7
[ "Apache-2.0" ]
1
2021-07-08T16:35:30.000Z
2021-07-08T16:35:30.000Z
# coding=utf-8 # Copyright 2019 The Trax 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 a...
37.115108
110
0.6845
a11f1857d6a7a4044dcf266ed561f3c1f39ef179
2,867
py
Python
open_spiel/python/examples/treeviz_example.py
alexminnaar/open_spiel
c17a390f8a007ccc309f76cb0cfa29f06dc5d2c9
[ "Apache-2.0" ]
2
2020-09-05T07:17:08.000Z
2021-05-02T21:10:28.000Z
open_spiel/python/examples/treeviz_example.py
alexminnaar/open_spiel
c17a390f8a007ccc309f76cb0cfa29f06dc5d2c9
[ "Apache-2.0" ]
1
2020-03-11T14:56:18.000Z
2020-03-12T15:42:07.000Z
open_spiel/python/examples/treeviz_example.py
alexminnaar/open_spiel
c17a390f8a007ccc309f76cb0cfa29f06dc5d2c9
[ "Apache-2.0" ]
1
2020-06-02T17:52:48.000Z
2020-06-02T17:52:48.000Z
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
34.963415
80
0.726892
90459fe48378aa42348b5960d679d3f3a64fabd3
4,128
bzl
Python
lib/write_source_files.bzl
alexeagle/bazel-lib
02be4c5f47b476e686943f53ddd47a672a51a265
[ "Apache-2.0" ]
16
2021-11-08T15:03:49.000Z
2022-03-23T19:38:32.000Z
lib/write_source_files.bzl
alexeagle/bazel-lib
02be4c5f47b476e686943f53ddd47a672a51a265
[ "Apache-2.0" ]
29
2021-11-15T16:27:25.000Z
2022-03-31T04:03:16.000Z
lib/write_source_files.bzl
alexeagle/bazel-lib
02be4c5f47b476e686943f53ddd47a672a51a265
[ "Apache-2.0" ]
3
2021-12-09T00:27:42.000Z
2022-03-30T20:14:00.000Z
"Public API for write_source_files" load( "//lib/private:write_source_file.bzl", _write_source_file = "write_source_file", ) def write_source_files( name, files = {}, additional_update_targets = [], suggested_update_target = None, diff_test = True, **kwargs): ...
33.290323
187
0.642684
601d193b80deddaf0d9aa115a7b51ace0bec1425
2,202
py
Python
one_fm/accommodation/report/bed_space_detailed_report/bed_space_detailed_report.py
f-9t9it/One-FM
aa0ea31eff453a6788dcb78251928559de818dff
[ "MIT" ]
null
null
null
one_fm/accommodation/report/bed_space_detailed_report/bed_space_detailed_report.py
f-9t9it/One-FM
aa0ea31eff453a6788dcb78251928559de818dff
[ "MIT" ]
null
null
null
one_fm/accommodation/report/bed_space_detailed_report/bed_space_detailed_report.py
f-9t9it/One-FM
aa0ea31eff453a6788dcb78251928559de818dff
[ "MIT" ]
1
2021-08-14T22:49:47.000Z
2021-08-14T22:49:47.000Z
# Copyright (c) 2013, omar jaber and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(filters=None): columns, data = get_columns(), get_data(filters) return columns, data def get_columns(): return [ _("...
33.363636
119
0.640327
b89f25466e7fa44826548c5c5484f08ec7c059f9
791
py
Python
eventio/urls.py
gittiap/Eventio
050b68e762f53e4812c8acee4f73ff7e937c319e
[ "MIT" ]
null
null
null
eventio/urls.py
gittiap/Eventio
050b68e762f53e4812c8acee4f73ff7e937c319e
[ "MIT" ]
null
null
null
eventio/urls.py
gittiap/Eventio
050b68e762f53e4812c8acee4f73ff7e937c319e
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from django.contrib.auth.views import login, logout from accounts.views import register_user from events.views import index, event_detail, event_add, event_edit, event_delete urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', index, n...
39.55
81
0.65866
3b22949e61c7298b38bdd7b5b5d80787cbe517e3
2,874
py
Python
unification/more.py
james1293/unification
99037f265df2e5af495611261ec5cacb707c1815
[ "BSD-3-Clause" ]
1
2020-05-05T18:44:22.000Z
2020-05-05T18:44:22.000Z
unification/more.py
james1293/unification
99037f265df2e5af495611261ec5cacb707c1815
[ "BSD-3-Clause" ]
3
2021-03-19T02:52:37.000Z
2021-09-22T18:58:23.000Z
unification/more.py
james1293/unification
99037f265df2e5af495611261ec5cacb707c1815
[ "BSD-3-Clause" ]
null
null
null
from functools import partial from .core import unify, reify from .variable import var from .dispatch import dispatch def unifiable(cls): """ Register standard unify and reify operations on class This uses the type and __dict__ or __slots__ attributes to define the nature of the term See Also: ...
22.809524
73
0.522617
dd6eb5257c4c750d2e469194aab0d03b473cbcca
14,735
py
Python
model/resnet_v2.py
FangShancheng/conv-ensemble-str
86029cb059a904ad3a6182e2f0855f0263e34d0b
[ "Apache-2.0" ]
51
2018-04-02T13:10:03.000Z
2021-11-22T13:24:21.000Z
model/resnet_v2.py
snny000/conv-ensemble-str
86029cb059a904ad3a6182e2f0855f0263e34d0b
[ "Apache-2.0" ]
5
2018-11-15T01:28:57.000Z
2020-02-07T07:31:43.000Z
model/resnet_v2.py
snny000/conv-ensemble-str
86029cb059a904ad3a6182e2f0855f0263e34d0b
[ "Apache-2.0" ]
5
2018-10-29T06:59:52.000Z
2020-06-23T07:02:02.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.716981
80
0.669766
49177360a21809264a1a088f1f92017d27812e0a
2,092
py
Python
workspace/src/rqt_common_plugins/rqt_shell/src/rqt_shell/shell_widget.py
migarstka/barc
deacfd974f251693d74b273d58d22e9fead2354f
[ "MIT" ]
1
2019-01-10T22:07:07.000Z
2019-01-10T22:07:07.000Z
workspace/src/rqt_common_plugins/rqt_shell/src/rqt_shell/shell_widget.py
migarstka/barc
deacfd974f251693d74b273d58d22e9fead2354f
[ "MIT" ]
null
null
null
workspace/src/rqt_common_plugins/rqt_shell/src/rqt_shell/shell_widget.py
migarstka/barc
deacfd974f251693d74b273d58d22e9fead2354f
[ "MIT" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2012, Dorian Scholz # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyr...
43.583333
87
0.764818
d7cd8b96b5be5ee526d2445ee07271aa48237071
10,403
py
Python
balff_createDataArray_sim.py
LBJ-Wade/BALFF
2e53b562c347ad3875e4ebb49338c15e116b5f7b
[ "MIT" ]
4
2016-04-29T17:46:36.000Z
2019-01-07T16:52:03.000Z
balff_createDataArray_sim.py
LBJ-Wade/BALFF
2e53b562c347ad3875e4ebb49338c15e116b5f7b
[ "MIT" ]
null
null
null
balff_createDataArray_sim.py
LBJ-Wade/BALFF
2e53b562c347ad3875e4ebb49338c15e116b5f7b
[ "MIT" ]
1
2016-04-29T17:46:48.000Z
2016-04-29T17:46:48.000Z
#!/usr/bin/env python2.7 #+ #---------------------------- # NAME #---------------------------- # balff_createDataArray_sim.py #---------------------------- # PURPOSE/DESCRIPTION #---------------------------- # Creating a simulated data array needed as input when creating a balff_mpd class object. # #---------------...
52.276382
138
0.518408
c8d8e372ac13799c3679038fd25724630ec7bc44
515
py
Python
learn_elasticsearch/tests/__init__.py
MacHu-GWU/learn_elasticsearch-project
c655aab80417b9c053e42921c6506600210e1e87
[ "MIT" ]
null
null
null
learn_elasticsearch/tests/__init__.py
MacHu-GWU/learn_elasticsearch-project
c655aab80417b9c053e42921c6506600210e1e87
[ "MIT" ]
null
null
null
learn_elasticsearch/tests/__init__.py
MacHu-GWU/learn_elasticsearch-project
c655aab80417b9c053e42921c6506600210e1e87
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from opensearchpy import OpenSearch from ..os_domain import ( boto_ses, es_sanhe_dev, ) def create_index(es: OpenSearch, index: str, body: dict = None): # create if exists es.indices.create(index=index, ignore=400, body=body) def delete_index(es: OpenSearch, index: str): ...
22.391304
64
0.687379
4e8bacc27ad22aa20ab7bcb0c5a4e9d070e33888
6,317
py
Python
lzhw_cli/lzhw_cli.py
MNoorFawi/lzhw
97beb8ad13e3fdf09358ce3d28084fa03389283a
[ "MIT" ]
4
2020-05-29T02:40:04.000Z
2021-04-08T17:35:58.000Z
lzhw_cli/lzhw_cli.py
MNoorFawi/lzhw
97beb8ad13e3fdf09358ce3d28084fa03389283a
[ "MIT" ]
1
2020-05-29T02:34:51.000Z
2020-05-29T06:24:11.000Z
lzhw_cli/lzhw_cli.py
MNoorFawi/lzhw
97beb8ad13e3fdf09358ce3d28084fa03389283a
[ "MIT" ]
4
2020-05-29T02:32:14.000Z
2022-01-14T15:55:02.000Z
#!/usr/bin/env python import lzhw import pandas as pd import argparse import os from subprocess import call from time import time import multiprocessing def main(): ## This script and the solution to convert xlsx into csv was thanks to the answer found here: ## https://stackoverflow.com/questions/28766133/fas...
36.514451
172
0.579389
77588b9bc104ced16f40073cff8b32bb7c5d97b0
2,009
bzl
Python
tools/objc.bzl
erka/tink
78b908124efbb34acc4de3ae11b41112cb41adb2
[ "Apache-2.0" ]
1
2019-11-05T10:58:12.000Z
2019-11-05T10:58:12.000Z
tools/objc.bzl
bollwarm/tink
e699fe174212ba5a1d43d4681a251245decdaeff
[ "Apache-2.0" ]
1
2020-11-11T16:45:00.000Z
2020-11-11T16:45:00.000Z
tools/objc.bzl
bollwarm/tink
e699fe174212ba5a1d43d4681a251245decdaeff
[ "Apache-2.0" ]
2
2020-02-03T13:52:11.000Z
2021-06-20T00:58:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
29.115942
88
0.623196
dd54e4e55acc7f7a400c2cfb309f035ce1bfc330
2,564
py
Python
zs/consts.py
lqvito/zs
c80e06a6905879b76a473512261e44d23bea7e99
[ "MIT" ]
14
2020-05-08T07:27:21.000Z
2021-08-04T09:12:17.000Z
zs/consts.py
wrhsd1/zs
5176616427411b61f9252567445e7ed47fc35b2c
[ "MIT" ]
1
2021-12-27T05:10:37.000Z
2021-12-28T00:38:33.000Z
zs/consts.py
wrhsd1/zs
5176616427411b61f9252567445e7ed47fc35b2c
[ "MIT" ]
3
2021-07-20T12:57:39.000Z
2021-12-26T12:47:45.000Z
import os CONFIG_DIR = os.path.join(os.environ.get('HOME'), '.zs', 'config') DATA_DIR = os.path.join(os.environ.get('HOME'), '.zs', 'data') README_TEMPLATE = """{name} ======= Support Python{version} or later ## Install ```shell python setup.py install ``` ## Develop Create virtualenv and install dependencies:...
14.994152
116
0.682527
4663708007179f69825032e17932957d4da39a10
11,743
py
Python
intersight/model/macpool_id_block_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/macpool_id_block_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/macpool_id_block_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
46.972
1,678
0.63689
d24cb8ed0055acb27eeb8f2a83ac13bb3f4f98d7
1,482
py
Python
algorithms/sets/longest_common_subsequence/lcs.py
maurobaraldi/python-algorithms
94fe5e46737d6ea2f7ff62b5b61b7b9cca3fbd14
[ "MIT" ]
2
2018-11-05T17:12:40.000Z
2019-09-05T17:10:01.000Z
algorithms/sets/longest_common_subsequence/lcs.py
maurobaraldi/python-algorithms
94fe5e46737d6ea2f7ff62b5b61b7b9cca3fbd14
[ "MIT" ]
null
null
null
algorithms/sets/longest_common_subsequence/lcs.py
maurobaraldi/python-algorithms
94fe5e46737d6ea2f7ff62b5b61b7b9cca3fbd14
[ "MIT" ]
1
2019-01-02T19:07:51.000Z
2019-01-02T19:07:51.000Z
#!/usr/bin/env python def lcs(listX, listY): """Dynamic programing version.""" if not listX or not listY: return "" matix = [] for r in range(len(listX) + 1): row = [] for c in range(len(listY) + 1): row.append(0) matix.append(row) # list comprehensio...
26
81
0.499325
04ecb3ffad997b607823b8a10a5f879ddc47b4a0
82
py
Python
lm/pytorch-lm/rnn/__init__.py
DeepLearnXMU/ATR
6f0e4009003eff5db82c9cb537f010720a9bed5c
[ "BSD-3-Clause" ]
9
2020-07-20T15:58:44.000Z
2022-02-04T16:22:03.000Z
lm/pytorch-lm/rnn/__init__.py
DeepLearnXMU/ATR
6f0e4009003eff5db82c9cb537f010720a9bed5c
[ "BSD-3-Clause" ]
null
null
null
lm/pytorch-lm/rnn/__init__.py
DeepLearnXMU/ATR
6f0e4009003eff5db82c9cb537f010720a9bed5c
[ "BSD-3-Clause" ]
1
2018-12-10T12:31:15.000Z
2018-12-10T12:31:15.000Z
# coding: utf-8 from .lstm import LSTM from .gru import GRU from .atr import ATR
13.666667
22
0.731707
9c764fd6672244a6cef693600913885ab1f0282e
29
py
Python
app/tasks/docker/command.py
Clivern/Kraven
5d8d2de26e170d853d7d5f2b1f2d453ab07e4401
[ "Apache-2.0" ]
3
2018-07-22T22:36:09.000Z
2019-05-31T10:29:54.000Z
app/tasks/docker/command.py
Clivern/Kraven
5d8d2de26e170d853d7d5f2b1f2d453ab07e4401
[ "Apache-2.0" ]
41
2018-07-22T22:07:52.000Z
2018-11-14T11:07:48.000Z
app/tasks/docker/command.py
Clivern/Kraven
5d8d2de26e170d853d7d5f2b1f2d453ab07e4401
[ "Apache-2.0" ]
1
2020-04-24T12:55:27.000Z
2020-04-24T12:55:27.000Z
""" Docker Command Tasks """
7.25
20
0.62069
390c33debdb556a365f4e9a01312286d7a8a8ec7
2,075
py
Python
app/settings.py
sampathweb/ml-api-sample-app
53a7275bc00393bbd9df14fd3d3c432a5b485b21
[ "MIT" ]
3
2017-11-13T08:44:23.000Z
2020-04-30T10:55:44.000Z
app/settings.py
sampathweb/ml-api-sample-app
53a7275bc00393bbd9df14fd3d3c432a5b485b21
[ "MIT" ]
null
null
null
app/settings.py
sampathweb/ml-api-sample-app
53a7275bc00393bbd9df14fd3d3c432a5b485b21
[ "MIT" ]
null
null
null
""" Appliction configuration settings """ import os from tornado.options import define define("debug", default=True, help="Debug settings") define("port", default=9000, help="Port to run the server on") _CUR_DIR = os.path.dirname(os.path.realpath(__file__)) MODEL_DIR = os.path.join(_CUR_DIR, "..", "models") LOG_DIR ...
26.602564
65
0.466506
ddb3c179e11f017457e1e80df72eaafba51b2cd6
19,084
py
Python
plot_.py
SoftwareDevEngResearch/CAML
3318887a6b47f8ff99d9ebdff75e5d38f112a859
[ "MIT" ]
null
null
null
plot_.py
SoftwareDevEngResearch/CAML
3318887a6b47f8ff99d9ebdff75e5d38f112a859
[ "MIT" ]
null
null
null
plot_.py
SoftwareDevEngResearch/CAML
3318887a6b47f8ff99d9ebdff75e5d38f112a859
[ "MIT" ]
1
2020-04-22T21:07:41.000Z
2020-04-22T21:07:41.000Z
""" This module includes plotting functions. """ import numpy as np import pandas as pd import os import matplotlib.pyplot as plt from matplotlib import cm plt.tight_layout(h_pad = 3, w_pad=3) #################################### def set_dist(df, target, set_, path): """This function takes in a dataframe and pl...
35.080882
162
0.628694
104cb952cb937e152550d05cba68121eae1ad671
151
py
Python
examples/example_steps/steps.py
ityutin/df-and-order
fd25e7a23234bfdea6e84b238974e5eccae21b8a
[ "MIT" ]
1
2020-05-18T19:20:06.000Z
2020-05-18T19:20:06.000Z
examples/example_steps/steps.py
ityutin/df-and-order
fd25e7a23234bfdea6e84b238974e5eccae21b8a
[ "MIT" ]
null
null
null
examples/example_steps/steps.py
ityutin/df-and-order
fd25e7a23234bfdea6e84b238974e5eccae21b8a
[ "MIT" ]
1
2021-01-24T21:05:50.000Z
2021-01-24T21:05:50.000Z
from df_and_order.df_transform_step import DfTransformStep class DummyTransformStep(DfTransformStep): def transform(self, df): return df
21.571429
58
0.781457
ab93e27d74a14ff90c917a414b49c3eaf60a5eb6
1,324
py
Python
events/templatetags/weekday.py
wwangwe/Team-213-A-Back-End
0dcb22ec5ff28284f51bec34a7103c6939b81c51
[ "MIT" ]
2
2019-12-11T14:39:05.000Z
2020-06-23T10:28:30.000Z
events/templatetags/weekday.py
wwangwe/Team-213-A-Back-End
0dcb22ec5ff28284f51bec34a7103c6939b81c51
[ "MIT" ]
null
null
null
events/templatetags/weekday.py
wwangwe/Team-213-A-Back-End
0dcb22ec5ff28284f51bec34a7103c6939b81c51
[ "MIT" ]
2
2018-12-25T00:34:11.000Z
2020-06-23T10:28:45.000Z
from __future__ import unicode_literals from datetime import date from django.template import Library, TemplateSyntaxError from django.utils.dates import WEEKDAYS_ABBR, WEEKDAYS register = Library() @register.simple_tag def weekday(year_or_num, month=None, day=None, full=False): """Simple tag - returns the week...
24.981132
101
0.673716
2919edd6bc3e384897ebf63a960521fce0bd2298
4,867
py
Python
scripts/matched_vs_unmatched_er_testing_sims.py
neurodata/bilateral-connectome
2335bd444040ff647a4cd3304bddf7f533e490a7
[ "MIT" ]
2
2021-09-24T20:21:18.000Z
2022-02-08T18:31:29.000Z
scripts/matched_vs_unmatched_er_testing_sims.py
neurodata/bilateral-connectome
2335bd444040ff647a4cd3304bddf7f533e490a7
[ "MIT" ]
9
2021-09-29T17:23:41.000Z
2022-03-16T20:22:04.000Z
scripts/matched_vs_unmatched_er_testing_sims.py
neurodata/bilateral-connectome
2335bd444040ff647a4cd3304bddf7f533e490a7
[ "MIT" ]
2
2021-11-16T16:17:53.000Z
2022-03-26T01:25:10.000Z
#%% import datetime from re import sub import time import matplotlib.path import matplotlib.pyplot as plt import matplotlib.transforms import numpy as np import pandas as pd import seaborn as sns from giskard.plot import merge_axes, soft_axis_off from graspologic.simulations import er_np from matplotlib.collections im...
26.741758
85
0.621122
529059eaad08e58c824b93979442fb568d10f5f1
3,142
py
Python
examples/flask/app/views.py
Slojob/Chore-Roster
ea4e43ce5d8f0f9663c6574308d6c712dc52e9ad
[ "Apache-2.0" ]
11
2018-01-24T19:54:58.000Z
2022-01-16T06:39:03.000Z
examples/flask/app/views.py
Slojob/Chore-Roster
ea4e43ce5d8f0f9663c6574308d6c712dc52e9ad
[ "Apache-2.0" ]
null
null
null
examples/flask/app/views.py
Slojob/Chore-Roster
ea4e43ce5d8f0f9663c6574308d6c712dc52e9ad
[ "Apache-2.0" ]
7
2018-01-24T20:21:33.000Z
2021-11-26T13:08:24.000Z
from facebook import get_user_from_cookie, GraphAPI from flask import g, render_template, redirect, request, session, url_for from app import app, db from models import User # Facebook app details FB_APP_ID = '' FB_APP_NAME = '' FB_APP_SECRET = '' @app.route('/') def index(): # If a user was set in the get_curr...
36.114943
79
0.643221
5a71afe721a7bef67c90cce31533e1b5c02a9609
11,188
py
Python
cinder/tests/test_block_device.py
CloudVPS/cinder
9097b9407b6ce16c7b5678682284a0ad0fcc652d
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_block_device.py
CloudVPS/cinder
9097b9407b6ce16c7b5678682284a0ad0fcc652d
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_block_device.py
CloudVPS/cinder
9097b9407b6ce16c7b5678682284a0ad0fcc652d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis, 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 requir...
46.616667
79
0.618699
3d4ed023c56fcc25cbe8b0db9cf1c5216cf8f8ab
1,285
py
Python
code/modify.py
FlyingFordAnglia/Scrabble
014bc1b6dc405835cd6f9638f4f298cfc8225f91
[ "MIT" ]
2
2020-01-18T18:36:25.000Z
2020-05-28T07:28:16.000Z
code/modify.py
Stochastic13/Scrabble
47887c7780c81a66b8b4c6f82ca2c50d645b075c
[ "MIT" ]
null
null
null
code/modify.py
Stochastic13/Scrabble
47887c7780c81a66b8b4c6f82ca2c50d645b075c
[ "MIT" ]
2
2019-02-12T12:46:03.000Z
2019-02-14T12:35:29.000Z
# board format: The board is an array of 15x15 shape, with the elements being numbers, # translated by the dictionary letternumberkey into strings whenever required. import string # letternumberkey dictionary to translate the integers on board to strings whenever necessary l1 = dict(zip(string.ascii_uppercase, list(r...
45.892857
111
0.712062
8cf5a3ebbcf82c70f7dde4f2ed7c61024950e70a
13,427
py
Python
tests/test_client_functional.py
ajdavis/aiohttp
d5138978f3e82aa82a2f003b00d38112c58a40c1
[ "Apache-2.0" ]
null
null
null
tests/test_client_functional.py
ajdavis/aiohttp
d5138978f3e82aa82a2f003b00d38112c58a40c1
[ "Apache-2.0" ]
null
null
null
tests/test_client_functional.py
ajdavis/aiohttp
d5138978f3e82aa82a2f003b00d38112c58a40c1
[ "Apache-2.0" ]
null
null
null
"""HTTP client functional tests against aiohttp.web server""" import aiohttp import asyncio import io import os import os.path import pytest import ssl from unittest import mock from aiohttp import hdrs, web from aiohttp.errors import FingerprintMismatch @pytest.fixture def ssl_ctx(): here = os.path.dirname(__f...
29.57489
73
0.656364
720a84062cdf795715dec7cbf3733d23e602d12d
9,753
py
Python
spikesorters/kilosort3/kilosort3.py
m-col/spikesorters
8ea241cd98419d5e2c9b3ee7da26e770dee720b2
[ "MIT" ]
null
null
null
spikesorters/kilosort3/kilosort3.py
m-col/spikesorters
8ea241cd98419d5e2c9b3ee7da26e770dee720b2
[ "MIT" ]
null
null
null
spikesorters/kilosort3/kilosort3.py
m-col/spikesorters
8ea241cd98419d5e2c9b3ee7da26e770dee720b2
[ "MIT" ]
null
null
null
from pathlib import Path import os import sys import numpy as np from typing import Union import shutil import json import spikeextractors as se from ..basesorter import BaseSorter from ..utils.shellscript import ShellScript from ..sorter_tools import get_git_commit, recover_recording def check_if_installed(kilosort...
41.858369
120
0.629447
eeac684bc07f8291ebd5d024f743a86cd1753601
8,285
py
Python
02_classification/final_train.py
johannesschweig/master-thesis
3b31ca0ede030ca75e63b337dc81517a80b88d8a
[ "MIT" ]
null
null
null
02_classification/final_train.py
johannesschweig/master-thesis
3b31ca0ede030ca75e63b337dc81517a80b88d8a
[ "MIT" ]
null
null
null
02_classification/final_train.py
johannesschweig/master-thesis
3b31ca0ede030ca75e63b337dc81517a80b88d8a
[ "MIT" ]
null
null
null
import numpy as np import pickle import time import warnings from sklearn import metrics, neighbors from sklearn.linear_model import LogisticRegression from sklearn.metrics import classification_report from sklearn.neural_network import MLPClassifier from sklearn.preprocessing import StandardScaler from sklearn...
33.678862
126
0.449246
9598947538269f9bb9e3afc420d757e44b10273e
1,528
py
Python
peach-blog/app/__init__.py
lt94/peach-blog
49a861bcfb8d7ab036153091c48718e165b3ec72
[ "MIT" ]
57
2018-12-04T08:49:00.000Z
2021-01-15T14:41:48.000Z
peach-blog/app/__init__.py
lt94/peach-blog
49a861bcfb8d7ab036153091c48718e165b3ec72
[ "MIT" ]
32
2018-12-04T08:55:11.000Z
2021-01-08T12:03:55.000Z
peach-blog/app/__init__.py
lt94/peach-blog
49a861bcfb8d7ab036153091c48718e165b3ec72
[ "MIT" ]
7
2018-12-04T09:09:56.000Z
2020-06-04T17:27:39.000Z
from flask import Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_migrate import Migrate from flask_misaka import Misaka from flask_mail import Mail from config import config from utils import Tools bootstrap = Bootstrap() db = SQLAlch...
25.466667
69
0.76178
97de03e9252237c5648ae74ad9456d0e7658d614
3,491
py
Python
libcloud/compute/drivers/hpcloud.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
1
2015-06-24T15:09:07.000Z
2015-06-24T15:09:07.000Z
libcloud/compute/drivers/hpcloud.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
libcloud/compute/drivers/hpcloud.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a ...
34.91
76
0.648525
a4278bae2f768666979bca43e6d24d9b65426071
1,299
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/verification_ip_flow_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/verification_ip_flow_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/verification_ip_flow_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
37.114286
76
0.61047
3660a2466dd9b78c816ce4d2356edafb2b692198
37
py
Python
sys_add_path/toy_project_python3/src/folder_0/file_0.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
sys_add_path/toy_project_python3/src/folder_0/file_0.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
sys_add_path/toy_project_python3/src/folder_0/file_0.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
def func_sum(a, b): return a+b
7.4
19
0.567568