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
b9f8ce5ff36ed5a6dad65161d489c3be32cebf45
2,583
py
Python
dolphinscheduler-python/pydolphinscheduler/tests/utils/test_date.py
InterestingLab/dolphinscheduler
2ff76c7e7330c166fba1e514aba6ddf2dbe74f57
[ "Apache-2.0" ]
2,086
2021-04-15T20:28:24.000Z
2022-03-31T22:30:49.000Z
dolphinscheduler-python/pydolphinscheduler/tests/utils/test_date.py
InterestingLab/dolphinscheduler
2ff76c7e7330c166fba1e514aba6ddf2dbe74f57
[ "Apache-2.0" ]
3,789
2021-04-15T16:00:32.000Z
2022-03-31T13:38:53.000Z
dolphinscheduler-python/pydolphinscheduler/tests/utils/test_date.py
InterestingLab/dolphinscheduler
2ff76c7e7330c166fba1e514aba6ddf2dbe74f57
[ "Apache-2.0" ]
1,170
2021-04-16T06:40:24.000Z
2022-03-31T22:30:51.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.696203
82
0.648084
9bca86b0ebcc59c891b64863a85a32629a81ef42
2,007
py
Python
src/hera/v1/resources.py
mostaphaRoudsari/hera-workflows
2f82a7690ca42e48c3ba2f9911dbd4715aa2e093
[ "MIT" ]
null
null
null
src/hera/v1/resources.py
mostaphaRoudsari/hera-workflows
2f82a7690ca42e48c3ba2f9911dbd4715aa2e093
[ "MIT" ]
null
null
null
src/hera/v1/resources.py
mostaphaRoudsari/hera-workflows
2f82a7690ca42e48c3ba2f9911dbd4715aa2e093
[ "MIT" ]
null
null
null
"""Holds the resource specification""" from typing import Optional, Union from hera.v1.empty_dir_volume import EmptyDirVolume from hera.v1.existing_volume import ExistingVolume from hera.v1.validators import validate_storage_units from hera.v1.volume import Volume from pydantic import BaseModel, root_validator, valida...
36.490909
112
0.695067
ceb7a9075b574a2611ae6931bbddefbbe5fe0d45
2,677
py
Python
runtime/python/Lib/ctypes/test/test_refcounts.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
Thonny/Lib/ctypes/test/test_refcounts.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
Thonny/Lib/ctypes/test/test_refcounts.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
import unittest from test import support import ctypes import gc MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int) OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong) import _ctypes_test dll = ctypes.CDLL(_ctypes_test.__file__) class RefcountTestCase(unittest.TestCase)...
26.245098
81
0.584983
e9ba50d31ec7223f9a42539e5b17ff0bd326c85a
848
py
Python
lang/Python/sparkline-in-unicode-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/sparkline-in-unicode-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/sparkline-in-unicode-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608 bar = '▁▂▃▄▅▆▇█' barcount = len(bar) def sparkline(numbers): mn, mx = min(numbers), max(numbers) extent = mx - mn sparkline = ''.join(bar[min([barcount - 1, int((n - mn) / extent * barcount)]...
32.615385
71
0.474057
a5d2f41fb21c6ca47d7c7714a4bb00db522ef23b
25,340
py
Python
scripts/modelTrainer.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
scripts/modelTrainer.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
scripts/modelTrainer.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
import sys import os import json import itertools import sim import operator from collections import defaultdict BIG = [0] SMALL = [1, 2, 3] #PATH = "python /scratch/nas/1/dn/sniper-6.0/benchmarks/SimResults/myNumpy0102.py " PATH = "python /scratch/nas/3/dn/sniper-6.0/scripts/predictor_blackbox.py " MODELNAME = "/scra...
38.393939
145
0.530268
9c2b8c98a686b239324f9ae6b078c448656cee3a
1,133
py
Python
vgg16/dogs_vs_cats/setup.py
Rumiachang/keras-examples
467ac2e693930980bb21315fb33b298fff852a31
[ "MIT" ]
null
null
null
vgg16/dogs_vs_cats/setup.py
Rumiachang/keras-examples
467ac2e693930980bb21315fb33b298fff852a31
[ "MIT" ]
null
null
null
vgg16/dogs_vs_cats/setup.py
Rumiachang/keras-examples
467ac2e693930980bb21315fb33b298fff852a31
[ "MIT" ]
null
null
null
import os import glob """ train.zipを解凍したtrainから https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html にあるように訓練データを振り分ける """ imgs_path = "./image_dir/*.png" source_dir = "./train" train_dir = "./data/train" valid_dir = "./data/validation" os.makedirs("%s/dogs" % train_dir) os....
28.325
95
0.622242
7f30a0a5c85021642e41174e4d2682295901eedd
1,752
py
Python
fmit/blog/migrations/0001_initial.py
iamlion12/DjangoBlog
e5db1a3f02e23b740912fa5adc897bd3916f311b
[ "MIT" ]
null
null
null
fmit/blog/migrations/0001_initial.py
iamlion12/DjangoBlog
e5db1a3f02e23b740912fa5adc897bd3916f311b
[ "MIT" ]
null
null
null
fmit/blog/migrations/0001_initial.py
iamlion12/DjangoBlog
e5db1a3f02e23b740912fa5adc897bd3916f311b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-19 09:49 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
38.086957
121
0.61758
8aa776d9f8f41df833c9387d2d4502f55f5bd216
116,023
py
Python
Packs/RecordedFuture/Integrations/RecordedFuture/test_data/mock_samples.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
1
2021-08-07T00:21:58.000Z
2021-08-07T00:21:58.000Z
Packs/RecordedFuture/Integrations/RecordedFuture/test_data/mock_samples.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
3
2019-12-13T13:27:20.000Z
2020-01-01T14:27:45.000Z
Packs/RecordedFuture/Integrations/RecordedFuture/test_data/mock_samples.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
2
2020-12-10T12:02:45.000Z
2020-12-15T09:20:01.000Z
IP_LOOKUP = { "data": { "analystNotes": [ { "attributes": { "published": "2019-01-01T00:00:00.000Z", "title": "Title 00", "topic": { "name": "Type 00" }, "t...
34.367002
79
0.219008
9611c4e388d04c36da3bcf08040fb39d9b0a107d
1,169
py
Python
Sketchbots/sw/labqueue/lask/server/http/default_handler.py
rlugojr/ChromeWebLab
60f964b3f283c15704b7a04b7bb50cb15791e2e4
[ "Apache-2.0" ]
306
2015-01-09T14:03:44.000Z
2017-09-16T13:03:35.000Z
Sketchbots/sw/labqueue/lask/server/http/default_handler.py
rlugojr/ChromeWebLab
60f964b3f283c15704b7a04b7bb50cb15791e2e4
[ "Apache-2.0" ]
90
2019-03-26T05:36:00.000Z
2021-07-28T05:30:16.000Z
Sketchbots/sw/labqueue/lask/server/http/default_handler.py
rlugojr/ChromeWebLab
60f964b3f283c15704b7a04b7bb50cb15791e2e4
[ "Apache-2.0" ]
119
2015-01-26T15:04:33.000Z
2017-09-13T09:30:53.000Z
# Copyright 2013 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
29.974359
77
0.682635
27f8e20a91bea0381e6664f8527a33044c90336c
3,122
py
Python
flask_melodramatiq/__init__.py
epandurski/flask_melodramatiq
f4d95c7efa05050d84ea26bdb4074195ad1ae4e6
[ "MIT" ]
9
2019-03-22T15:58:32.000Z
2022-03-27T18:27:44.000Z
flask_melodramatiq/__init__.py
epandurski/flask_melodramatiq
f4d95c7efa05050d84ea26bdb4074195ad1ae4e6
[ "MIT" ]
3
2020-01-30T16:11:03.000Z
2020-02-07T15:53:19.000Z
flask_melodramatiq/__init__.py
epandurski/flask_melodramatiq
f4d95c7efa05050d84ea26bdb4074195ad1ae4e6
[ "MIT" ]
1
2020-02-01T09:35:30.000Z
2020-02-01T09:35:30.000Z
import importlib import functools import dramatiq from flask_melodramatiq.lazy_broker import ( LAZY_BROKER_DOCSTRING_TEMPLATE, register_broker_class, LazyActor, LazyBrokerMixin, Broker, missing, ) from flask_melodramatiq.rabbitmq import RabbitmqBrokerMixin __all__ = ['create_broker_class', 'Bro...
31.857143
101
0.71909
0194943567c2ee060609e59a31989ccb516896f6
1,171
py
Python
app/cli.py
kiza054/woodhall-scout-blog-prototype
bc7dc0b766263bb7a1a4d342d27c57d7989ff152
[ "MIT" ]
null
null
null
app/cli.py
kiza054/woodhall-scout-blog-prototype
bc7dc0b766263bb7a1a4d342d27c57d7989ff152
[ "MIT" ]
null
null
null
app/cli.py
kiza054/woodhall-scout-blog-prototype
bc7dc0b766263bb7a1a4d342d27c57d7989ff152
[ "MIT" ]
null
null
null
import os import click def register(app): @app.cli.group() def translate(): """Translation and localization commands.""" pass @translate.command() @click.argument('lang') def init(lang): """Initialize a new language.""" if os.system('pybabel extract -F babel.cfg -k ...
34.441176
79
0.604611
2f4f31f04d7783f7bb4b0253e7f905bb0a41578e
7,579
py
Python
tests/test_shelving.py
smbambling/alerta
1b3c3888b67ac4db48ef5eb9dcd704ac0c5aecb1
[ "Apache-2.0" ]
null
null
null
tests/test_shelving.py
smbambling/alerta
1b3c3888b67ac4db48ef5eb9dcd704ac0c5aecb1
[ "Apache-2.0" ]
60
2020-07-27T07:00:45.000Z
2022-03-21T18:02:18.000Z
tests/test_shelving.py
smbambling/alerta
1b3c3888b67ac4db48ef5eb9dcd704ac0c5aecb1
[ "Apache-2.0" ]
1
2020-11-24T03:16:49.000Z
2020-11-24T03:16:49.000Z
import json import unittest from alerta.app import create_app, db from alerta.models.key import ApiKey class ShelvingTestCase(unittest.TestCase): def setUp(self): test_config = { 'TESTING': True, 'AUTH_REQUIRED': True, 'CUSTOMER_VIEWS': True, 'PLUGINS': ['...
44.321637
96
0.609843
c5a10e84c51ba837652874801a41f7c08a4a03f3
5,110
py
Python
contrib/linearize/linearize-hashes.py
thelazier/dash
22a24ab5b7b42d06a78d8fd092c3351bdf5aafdd
[ "MIT" ]
null
null
null
contrib/linearize/linearize-hashes.py
thelazier/dash
22a24ab5b7b42d06a78d8fd092c3351bdf5aafdd
[ "MIT" ]
null
null
null
contrib/linearize/linearize-hashes.py
thelazier/dash
22a24ab5b7b42d06a78d8fd092c3351bdf5aafdd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # linearize-hashes.py: List blocks in a linear, no-fork version of the chain. # # Copyright (c) 2013-2014 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from http.client imp...
33.398693
108
0.607045
06c90d4a7bdcf2280f04668fcac33dc256e5d25a
666
py
Python
addons/blender-skeletal-motion-animate/core/retargeting.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
addons/blender-skeletal-motion-animate/core/retargeting.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
addons/blender-skeletal-motion-animate/core/retargeting.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
import bpy # This filters the objects shown to only include armatures and under certain conditions def poll_source_armatures(self, obj): return obj.type == 'ARMATURE' and obj.animation_data and obj.animation_data.action def poll_target_armatures(self, obj): return obj.type == 'ARMATURE' and obj != get_sourc...
28.956522
87
0.791291
9f6c883dc22cb7623b6dc1e98aaf8b0e68c23d73
109
py
Python
playground/optim/optimizer.py
rodrigobaron/nn-playground
d93b3eba3d54d7602e9adb5895cca10a1e047f2e
[ "MIT" ]
2
2018-03-24T18:09:23.000Z
2020-01-04T13:14:45.000Z
playground/optim/optimizer.py
rodrigobaron/nn-playground
d93b3eba3d54d7602e9adb5895cca10a1e047f2e
[ "MIT" ]
1
2018-04-04T15:34:44.000Z
2018-04-04T15:34:44.000Z
playground/optim/optimizer.py
rodrigobaron/nn-playground
d93b3eba3d54d7602e9adb5895cca10a1e047f2e
[ "MIT" ]
null
null
null
class Optimizer: """TODO: Optimizer docs""" def step(self, model): raise NotImplementedError
21.8
33
0.651376
11d2d16cdb5c6124e3babc2ed9324b3eeef5b79d
11,062
py
Python
src/two/2_end_to_end.py
21stio/python-handson-ml
63f3628938109e28d3d9fb894207187ceeaf4c86
[ "Apache-2.0" ]
null
null
null
src/two/2_end_to_end.py
21stio/python-handson-ml
63f3628938109e28d3d9fb894207187ceeaf4c86
[ "Apache-2.0" ]
null
null
null
src/two/2_end_to_end.py
21stio/python-handson-ml
63f3628938109e28d3d9fb894207187ceeaf4c86
[ "Apache-2.0" ]
null
null
null
import hashlib import os, tarfile, pandas as pd, numpy as np import plotly.figure_factory as ff import plotly.offline as py from beeprint import pp import cufflinks as cf from numpy.polynomial import Polynomial from sklearn.cross_validation import cross_val_score from sklearn.ensemble import RandomForestRegressor fro...
29.656836
164
0.68107
b950ba4bebf129d370c31ee9554def70aaa744b8
1,521
py
Python
llvmpy/src/Bitcode/ReaderWriter.py
KennethNielsen/llvmpy
70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e
[ "BSD-3-Clause" ]
140
2015-01-07T20:58:12.000Z
2022-01-21T17:02:21.000Z
llvmpy/src/Bitcode/ReaderWriter.py
pfalcon/llvmpy
2338eae5f6a91651125b8180abafa8c9afaa90d8
[ "BSD-3-Clause" ]
19
2015-01-15T14:45:49.000Z
2020-09-04T14:58:23.000Z
llvmpy/src/Bitcode/ReaderWriter.py
pfalcon/llvmpy
2338eae5f6a91651125b8180abafa8c9afaa90d8
[ "BSD-3-Clause" ]
12
2015-01-12T01:49:32.000Z
2020-07-10T22:30:38.000Z
from binding import * from ..namespace import llvm from ..ADT.StringRef import StringRef from ..Module import Module from ..LLVMContext import LLVMContext llvm.includes.add('llvm/Bitcode/ReaderWriter.h') ParseBitCodeFile = llvm.CustomFunction('ParseBitCodeFile', 'llvm_ParseBitCo...
49.064516
78
0.419461
d13f328dd58579a1081fa9816be95558e54a2f22
26,097
py
Python
scripts/models.py
alan-turing-institute/memorization
89bd1191f761528234543a69312284212628c24a
[ "MIT" ]
2
2022-01-09T11:21:46.000Z
2022-01-28T07:38:27.000Z
scripts/models.py
alan-turing-institute/memorization
89bd1191f761528234543a69312284212628c24a
[ "MIT" ]
null
null
null
scripts/models.py
alan-turing-institute/memorization
89bd1191f761528234543a69312284212628c24a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Model definitions Author: G.J.J. van den Burg License: See LICENSE file. Copyright: 2021, The Alan Turing Institute """ import abc import math import torch import torch.nn as nn from typing import Tuple from torch.nn.functional import binary_cross_entropy from torch.nn.functional impo...
34.069191
82
0.539411
20876b64aeafb5517da55b5f44543ea2b2e23a46
389
py
Python
app/litrev/asgi.py
ipa/litrev
01550417872b0e2b0c0541a3b7f6b28d18d874c9
[ "MIT" ]
2
2020-04-09T11:46:36.000Z
2022-02-01T00:56:11.000Z
app/litrev/asgi.py
ipa/litrev
01550417872b0e2b0c0541a3b7f6b28d18d874c9
[ "MIT" ]
5
2021-03-30T13:01:04.000Z
2021-09-22T18:50:40.000Z
app/litrev/asgi.py
ipa/litrev
01550417872b0e2b0c0541a3b7f6b28d18d874c9
[ "MIT" ]
null
null
null
""" ASGI config for litrev project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
9a77b8d38aaf5e96299bb77c60864ff29314e9d2
27,273
py
Python
python2.7/site-packages/twisted/conch/scripts/cftp.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
python2.7/site-packages/twisted/conch/scripts/cftp.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
python2.7/site-packages/twisted/conch/scripts/cftp.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
# -*- test-case-name: twisted.conch.test.test_cftp -*- # # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. # # $Id: cftp.py,v 1.65 2004/03/11 00:29:14 z3p Exp $ #""" Implementation module for the `cftp` command. #""" from twisted.conch.client import agent, connect, default, options fro...
34.09125
99
0.549078
bb6595f7d0a609f9cafb99fe912de0d1ab2616a4
537
py
Python
kendama/migrations/0003_auto_20200701_2227.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
null
null
null
kendama/migrations/0003_auto_20200701_2227.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
13
2021-02-13T20:15:18.000Z
2022-03-11T23:57:07.000Z
kendama/migrations/0003_auto_20200701_2227.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-07-01 20:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('kendama', '0002_historicalcomboplayer_historicaltrickplayer'), ] operations = [ migrations.AlterField( ...
26.85
138
0.674115
da50330dac86e5abd82a5469c858058afb111e90
11,118
py
Python
ms3/app.py
skoobe/ms3
e88dedbbe6d36dee58e36503c06cc17746c50db1
[ "MIT" ]
7
2015-09-15T23:03:12.000Z
2021-11-08T11:21:21.000Z
ms3/app.py
skoobe/ms3
e88dedbbe6d36dee58e36503c06cc17746c50db1
[ "MIT" ]
null
null
null
ms3/app.py
skoobe/ms3
e88dedbbe6d36dee58e36503c06cc17746c50db1
[ "MIT" ]
6
2015-09-15T23:03:14.000Z
2021-02-28T15:49:05.000Z
""" The Tornado application """ import os import errno import shutil import socket import hashlib import logging import urlparse import tornado.web import tornado.ioloop import tornado.httpserver from tornado.options import options, define import ms3.general_options as general_options from ms3.commands import ( ...
34
79
0.569707
0ce8758272f64585d360a877a54a320ef13ae78d
3,579
py
Python
unittests/tickers/test_log2.py
xxao/pero
a7f0c84fae0b21fe120204e798bd61cdab3a125d
[ "MIT" ]
13
2019-07-15T17:51:21.000Z
2022-03-15T06:13:43.000Z
unittests/tickers/test_log2.py
xxao/pero
a7f0c84fae0b21fe120204e798bd61cdab3a125d
[ "MIT" ]
1
2021-12-29T00:46:44.000Z
2022-01-21T16:18:48.000Z
unittests/tickers/test_log2.py
xxao/pero
a7f0c84fae0b21fe120204e798bd61cdab3a125d
[ "MIT" ]
3
2020-09-27T14:31:45.000Z
2022-01-22T14:28:15.000Z
# Created byMartin.cz # Copyright (c) Martin Strohalm. All rights reserved. import unittest import pero class TestCase(unittest.TestCase): """Test case for logarithmic ticker with base 2.""" def test_major_ticks(self): """Tests whether major ticks are generated works correctly.""" ...
30.853448
96
0.54736
fbc8de86c0b7d5e87060563fe21579c1924ae928
4,692
py
Python
scripts/physics/atom.py
Hyperengined/Python-for-Numworks
16a72e946dacc764b825a3a2efbc97a4e5cf029e
[ "MIT" ]
5
2020-11-21T11:25:40.000Z
2021-05-27T08:27:54.000Z
scripts/physics/atom.py
Hyperengined/Python-for-Numworks
16a72e946dacc764b825a3a2efbc97a4e5cf029e
[ "MIT" ]
6
2021-03-12T17:14:16.000Z
2021-10-31T10:37:17.000Z
scripts/physics/atom.py
Hyperengined/Python-for-Numworks
16a72e946dacc764b825a3a2efbc97a4e5cf029e
[ "MIT" ]
6
2021-04-09T09:26:32.000Z
2021-10-31T10:19:19.000Z
def atom(x): resp = "" if x == 1: resp = "Hydrogène [H]\nZ = 1\nM(H) = 1,008g/mol\nStructure électronique :\n1s1" elif x == 2: resp = "Hélium [He]\nZ = 2\nM(He) = 4,0026g/mol\nStructure électronique :\n1s2" elif x == 3: resp = "Lithium [Li]\nZ = 3\nM(Li) = 6,94g/mol\nStruc...
58.65
145
0.58994
8c86169dcaffae03ccf2dac87edaa7664915da4d
9,430
py
Python
submission_criteria/concordance.py
CSP197/submission-criteria
3a584ca4ac452b429651bff7266c52db560f6c7b
[ "Apache-2.0" ]
null
null
null
submission_criteria/concordance.py
CSP197/submission-criteria
3a584ca4ac452b429651bff7266c52db560f6c7b
[ "Apache-2.0" ]
null
null
null
submission_criteria/concordance.py
CSP197/submission-criteria
3a584ca4ac452b429651bff7266c52db560f6c7b
[ "Apache-2.0" ]
null
null
null
# System """Concordance Checking.""" import logging import os import functools # Third Party from sklearn.cluster import MiniBatchKMeans from scipy.stats import ks_2samp import numpy as np import pandas as pd # First Party from submission_criteria import common def has_concordance(P1, P2, P3, c1, c2, c3, threshold=...
30.816993
131
0.649523
e36cf53d6a21939614e75e6301de0d1b20ec7305
9,786
py
Python
myprojectenv/lib/python3.5/site-packages/ansible/modules/storage/netapp/netapp_e_auth.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
myprojectenv/lib/python3.5/site-packages/ansible/modules/storage/netapp/netapp_e_auth.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
myprojectenv/lib/python3.5/site-packages/ansible/modules/storage/netapp/netapp_e_auth.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2016, NetApp, Inc # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
35.32852
151
0.65839
fcd9e99d1440d1fc5264c6005393ba9e9669e7ea
41,183
py
Python
python/tvm/relay/op/nn/_nn.py
ANSHUMAN87/incubator-tvm
902e21bd4e975037020c3b6445e4c903c2490a22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2021-02-23T22:06:01.000Z
2021-09-30T09:59:17.000Z
python/tvm/relay/op/nn/_nn.py
ANSHUMAN87/incubator-tvm
902e21bd4e975037020c3b6445e4c903c2490a22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/relay/op/nn/_nn.py
ANSHUMAN87/incubator-tvm
902e21bd4e975037020c3b6445e4c903c2490a22
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.34779
102
0.70517
ea42b217ea8578dfe732cd41f143b41c75e53653
3,201
py
Python
setup.py
jeffnappi/crate-python
307742e2d954502886023fb648a3a9e87b3042bd
[ "Apache-2.0" ]
null
null
null
setup.py
jeffnappi/crate-python
307742e2d954502886023fb648a3a9e87b3042bd
[ "Apache-2.0" ]
null
null
null
setup.py
jeffnappi/crate-python
307742e2d954502886023fb648a3a9e87b3042bd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8; -*- # # Licensed to CRATE Technology GmbH ("Crate") under one or more contributor # license agreements. See the NOTICE file distributed with this work for # additional information regarding copyright ownership. Crate licenses # this file to you under the Apache License, Version 2.0 (the "License"...
32.333333
77
0.653233
e2035d7b90e819d5d850ac2a191baf0c260c3197
1,928
py
Python
cold_posterior_bnn/imdb/imdb_model.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
cold_posterior_bnn/imdb/imdb_model.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
cold_posterior_bnn/imdb/imdb_model.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.241379
77
0.688797
9b12b529a1fd64ac38c9d157a180aabfd7a2ff84
3,446
py
Python
Chapter02/misc/feed_forward_iris.py
PacktPublishing/Neural-Network-Programming-with-TensorFlow
6ab03d8bfc8b23217968e7f71b656e3afc8bd7a0
[ "MIT" ]
26
2017-11-17T18:56:16.000Z
2022-03-03T13:25:44.000Z
Chapter02/misc/feed_forward_iris.py
PacktPublishing/Neural-Network-Programming-with-TensorFlow
6ab03d8bfc8b23217968e7f71b656e3afc8bd7a0
[ "MIT" ]
2
2021-08-25T14:50:10.000Z
2022-02-09T23:30:51.000Z
Chapter02/misc/feed_forward_iris.py
PacktPublishing/Neural-Network-Programming-with-TensorFlow
6ab03d8bfc8b23217968e7f71b656e3afc8bd7a0
[ "MIT" ]
22
2017-11-16T05:16:38.000Z
2022-01-03T20:10:04.000Z
# Implementation of a simple MLP network with one hidden layer. Tested on the iris data set. # Requires: numpy, sklearn>=0.18.1, tensorflow>=1.0 # NOTE: In order to make the code simple, we rewrite x * W_1 + b_1 = x' * W_1' # where x' = [x | 1] and W_1' is the matrix W_1 appended with a new row with elements b_1's. # ...
34.46
111
0.641613
062496e47dc0557b9fb2825bb955bb13648caa29
3,130
py
Python
tests/test_error.py
vBlackOut/MerossIot
677377cb6bf1ea2206622e5f80b1529837057585
[ "MIT" ]
null
null
null
tests/test_error.py
vBlackOut/MerossIot
677377cb6bf1ea2206622e5f80b1529837057585
[ "MIT" ]
null
null
null
tests/test_error.py
vBlackOut/MerossIot
677377cb6bf1ea2206622e5f80b1529837057585
[ "MIT" ]
null
null
null
import os from uuid import uuid4 from aiohttp import web from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop from meross_iot.controller.device import BaseDevice from meross_iot.controller.mixins.toggle import ToggleXMixin from meross_iot.http_api import MerossHttpClient from meross_iot.manager import Me...
43.472222
118
0.685623
40abb254186618d8bf03a6cbbd289b07d77ce6e7
412
py
Python
iccas/checks.py
janLuke/iccas-python
cac4f07c13afea312af66a7ae0b7cfcbac3d08ae
[ "MIT" ]
null
null
null
iccas/checks.py
janLuke/iccas-python
cac4f07c13afea312af66a7ae0b7cfcbac3d08ae
[ "MIT" ]
1
2020-12-01T22:25:23.000Z
2020-12-01T22:25:23.000Z
iccas/checks.py
janLuke/iccas-python
cac4f07c13afea312af66a7ae0b7cfcbac3d08ae
[ "MIT" ]
null
null
null
""" Sanity checks. """ def is_non_decreasing(df): deltas = df.drop(columns="unknown", level=1).diff(1).dropna() return (deltas >= 0).all(axis=None) def totals_not_less_than_sum_of_sexes(data, variable): assert variable in {"cases", "deaths"} total = data[variable] sum_of_sexes = data[f"male_{var...
25.75
72
0.674757
2bf3637abaf908a98ffee6548e311693986904ae
1,419
py
Python
examples/lambda_singles_codegen.py
maxscheurer/pdaggerq
e9fef3466e0d0170afc3094ab79e603200e78dfb
[ "Apache-2.0" ]
37
2020-09-17T19:29:18.000Z
2022-03-03T16:29:16.000Z
examples/lambda_singles_codegen.py
maxscheurer/pdaggerq
e9fef3466e0d0170afc3094ab79e603200e78dfb
[ "Apache-2.0" ]
7
2021-02-28T19:22:12.000Z
2022-02-22T15:17:47.000Z
examples/lambda_singles_codegen.py
maxscheurer/pdaggerq
e9fef3466e0d0170afc3094ab79e603200e78dfb
[ "Apache-2.0" ]
6
2021-02-16T22:34:29.000Z
2021-12-04T19:37:23.000Z
# ccsd lambda equations # L = <0| (1+L) e(-T) H e(T) |0> # dL/dtu = <0| e(-T) H e(T) |u> + <0| L e(-T) H e(T) |u> - <0| L tu e(-T) H e(T) |0> import pdaggerq from pdaggerq.parser import contracted_strings_to_tensor_terms def main(): pq = pdaggerq.pq_helper("fermi") pq.set_print_level(0) print('') ...
26.773585
87
0.55673
88b6e7eb93c5b4f12dc362e47c72aec83bbf4090
1,474
py
Python
sequoia/spammers/continuous_spammer.py
CU-BISON-LAB/sequoia
c9f5c0cd059909efc6ac9d26fac624b150dbd7c8
[ "MIT" ]
7
2020-12-11T02:01:56.000Z
2022-02-24T13:19:17.000Z
sequoia/spammers/continuous_spammer.py
CU-BISON-LAB/sequoia
c9f5c0cd059909efc6ac9d26fac624b150dbd7c8
[ "MIT" ]
1
2021-10-18T14:26:40.000Z
2021-10-19T13:16:16.000Z
sequoia/spammers/continuous_spammer.py
CU-BISON-LAB/sequoia
c9f5c0cd059909efc6ac9d26fac624b150dbd7c8
[ "MIT" ]
4
2021-04-12T21:17:39.000Z
2022-03-10T17:44:31.000Z
# continuous_spammer.py # Periodically invokes bursts of HTTP lambda functions over a period of time. from threading import Thread import requests import time # Serverless functions url1 = "lambda1.com" url2 = "lambda2.com" # Number of functions to invoke in each iteration burst_size = 1000 # Number of iterations to...
29.48
77
0.719132
1e5cfc3741bfd74c5eb75a311d2223a8565f3f12
5,743
py
Python
python/line.py
dstndstn/wcs2kml
840667fe142bfe5c34f61fc2cd5fbfecfa27e87e
[ "BSD-3-Clause" ]
null
null
null
python/line.py
dstndstn/wcs2kml
840667fe142bfe5c34f61fc2cd5fbfecfa27e87e
[ "BSD-3-Clause" ]
1
2020-03-08T04:42:30.000Z
2020-03-08T04:42:30.000Z
python/line.py
dstndstn/wcs2kml
840667fe142bfe5c34f61fc2cd5fbfecfa27e87e
[ "BSD-3-Clause" ]
1
2020-02-29T19:56:15.000Z
2020-02-29T19:56:15.000Z
#!/usr/bin/env python # Class for lines # Copyright (c) 2005, 2006, 2007, Jeremy Brewer # # 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 reta...
32.264045
80
0.623193
dee6648b36ecdf6c222a0b0854ece2b147130f20
22,454
py
Python
sympy/assumptions/handlers/sets.py
qcgm1978/sympy
cc46047f4449b525b7b0edd4c634bf93d6e7c83d
[ "BSD-3-Clause" ]
2
2020-07-27T16:36:27.000Z
2020-12-29T22:28:37.000Z
sympy/assumptions/handlers/sets.py
qcgm1978/sympy
cc46047f4449b525b7b0edd4c634bf93d6e7c83d
[ "BSD-3-Clause" ]
2
2020-08-18T15:21:59.000Z
2020-08-18T19:35:29.000Z
sympy/assumptions/handlers/sets.py
qcgm1978/sympy
cc46047f4449b525b7b0edd4c634bf93d6e7c83d
[ "BSD-3-Clause" ]
3
2019-05-18T21:32:31.000Z
2019-07-26T11:05:46.000Z
""" Handlers for predicates related to set membership: integer, rational, etc. """ from sympy.assumptions import Q, ask from sympy.assumptions.handlers import CommonHandler, test_closed_group from sympy.core.numbers import pi from sympy.core.logic import fuzzy_bool from sympy.functions.elementary.exponential import ex...
31.580872
124
0.568139
d0e563e69d8d1623662931af3065a7aabb8d58e8
102
py
Python
mmfparse/__init__.py
michaelgfalk/mmf-parser
7dcaddc1a799d0445fb31856db8ec4144c2932a0
[ "Unlicense" ]
null
null
null
mmfparse/__init__.py
michaelgfalk/mmf-parser
7dcaddc1a799d0445fb31856db8ec4144c2932a0
[ "Unlicense" ]
null
null
null
mmfparse/__init__.py
michaelgfalk/mmf-parser
7dcaddc1a799d0445fb31856db8ec4144c2932a0
[ "Unlicense" ]
1
2019-08-14T06:14:36.000Z
2019-08-14T06:14:36.000Z
name = "mmfparse" # Make the key classes available from top level from mmfparse.core import MMFParser
25.5
47
0.794118
cc5cad949d6dcfddb8a2d95c296cbbf00ec95074
7,041
py
Python
pepper/modules/python/models/predict_distributed_gpu.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
155
2019-11-08T09:55:24.000Z
2022-03-30T08:38:34.000Z
pepper/modules/python/models/predict_distributed_gpu.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
131
2020-04-06T05:02:42.000Z
2022-03-31T07:33:45.000Z
pepper/modules/python/models/predict_distributed_gpu.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
24
2019-07-09T18:49:58.000Z
2022-02-21T09:09:38.000Z
import sys import os import torch import torch.distributed as dist import torch.nn as nn from torch.utils.data import DataLoader import torch.multiprocessing as mp from torch.nn.parallel import DistributedDataParallel from pepper.modules.python.models.dataloader_predict import SequenceDataset from tqdm import tqdm from...
42.161677
118
0.640534
a6c9caacc780629dc0e002f55c2939a03f87e714
14,263
py
Python
python/paddle/fluid/tests/unittests/test_backward.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_backward.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_backward.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.143229
94
0.608498
d4356b7d1928661b246a415d21e342b441afc7ba
572
py
Python
populate_question_table.py
louisguitton/friendly-broccoli
391f84e9cbabe973afefb8af1783f2905e1202c5
[ "Apache-2.0" ]
1
2018-08-09T11:42:33.000Z
2018-08-09T11:42:33.000Z
populate_question_table.py
louisguitton/personalityinterview.com
391f84e9cbabe973afefb8af1783f2905e1202c5
[ "Apache-2.0" ]
22
2018-08-10T09:37:21.000Z
2019-06-14T11:32:25.000Z
populate_question_table.py
louisguitton/personalityinterview.com
391f84e9cbabe973afefb8af1783f2905e1202c5
[ "Apache-2.0" ]
null
null
null
from app import db from models import Question objects = [ Question(text="Tell me something about yourself.", order_pos=1), Question(text="Explain how you interact with colleagues.", order_pos=2), Question(text="Describe a conflict resolution situation you experienced.", order_pos=3), Question(text="H...
40.857143
95
0.73951
beea2e0aaa333b118303fc6218cdf3554c36c716
2,965
py
Python
openGaussBase/testcase/SQL/INNERFUNC/binary_string/Opengauss_Function_Binarystring_Octet_Length_Case0003.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/binary_string/Opengauss_Function_Binarystring_Octet_Length_Case0003.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/binary_string/Opengauss_Function_Binarystring_Octet_Length_Case0003.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
38.506494
130
0.626981
28c7d2753c2f80652cf2bd0db1ad297999082a00
3,389
py
Python
examples/temperature_example/make_gsod_csv.py
akleeman/albatross
f89bf4c20e35b71ea4d89260dc981b1a2363d41b
[ "MIT" ]
15
2018-04-10T02:05:06.000Z
2022-02-07T23:33:27.000Z
examples/temperature_example/make_gsod_csv.py
akleeman/albatross
f89bf4c20e35b71ea4d89260dc981b1a2363d41b
[ "MIT" ]
79
2018-04-19T20:36:18.000Z
2021-08-04T16:21:19.000Z
examples/temperature_example/make_gsod_csv.py
akleeman/albatross
f89bf4c20e35b71ea4d89260dc981b1a2363d41b
[ "MIT" ]
4
2018-04-06T03:12:16.000Z
2020-09-11T03:25:08.000Z
import sys import gnss import gzip import tarfile import argparse import progressbar import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from cStringIO import StringIO sns.set_style('darkgrid') def create_parser(): p = argparse.ArgumentParser() p.add_argument("--inpu...
34.938144
112
0.551785
38923583f0585f100ff1f8ff14aee15f12cdf756
1,256
py
Python
2021/14/part2.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2021/14/part2.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2021/14/part2.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
from pathlib import Path from rich import print with (Path(__file__).parent / "input.txt").open() as puzzle_input_file: puzzle_input_raw = puzzle_input_file.read() import itertools from collections import defaultdict template, pair_insertion_rules_raw = puzzle_input_raw.split("\n\n") pair_insertion_rules = {} ...
31.4
129
0.714172
2862b86fba2184212f26eca548828682a494fb47
1,730
py
Python
Practising-working-with-pandas/code.py
peaceshadow07/greyatom-python-for-data-science
5ea6d38ac0b1937b5678749efd810ecc401386c1
[ "MIT" ]
null
null
null
Practising-working-with-pandas/code.py
peaceshadow07/greyatom-python-for-data-science
5ea6d38ac0b1937b5678749efd810ecc401386c1
[ "MIT" ]
null
null
null
Practising-working-with-pandas/code.py
peaceshadow07/greyatom-python-for-data-science
5ea6d38ac0b1937b5678749efd810ecc401386c1
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode bank = pd.read_csv(path) categorical_var = bank.select_dtypes(include='object') numerical_var = bank.select_dtypes(include='number') print(categorical_var,'\n',numerical_var) # code starts here # code ends he...
19.659091
117
0.716185
ef990debcc9e0b4bb64bf6fee71831ad149691c1
8,108
py
Python
packages/v8env/vendor/whatwg-streams/reference-implementation/web-platform-tests/tools/wptrunner/wptrunner/browsers/sauce.py
GagnDeep/v8-isolates
b9fa6b88fc029fadf5a8eef71b803589959c4da5
[ "Apache-2.0" ]
null
null
null
packages/v8env/vendor/whatwg-streams/reference-implementation/web-platform-tests/tools/wptrunner/wptrunner/browsers/sauce.py
GagnDeep/v8-isolates
b9fa6b88fc029fadf5a8eef71b803589959c4da5
[ "Apache-2.0" ]
null
null
null
packages/v8env/vendor/whatwg-streams/reference-implementation/web-platform-tests/tools/wptrunner/wptrunner/browsers/sauce.py
GagnDeep/v8-isolates
b9fa6b88fc029fadf5a8eef71b803589959c4da5
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import glob import os import shutil import subprocess import tarfile import tempfile import time from cStringIO import S...
31.92126
128
0.629502
2c517c8225dd48f559ac9dff944e243513eedd13
16,550
py
Python
bot.py
eklavya11/nuuu
607a7887dfee54e6f68720202f86c2c128f9e990
[ "MIT" ]
1
2018-11-16T09:45:44.000Z
2018-11-16T09:45:44.000Z
bot.py
eklavya11/nuuu
607a7887dfee54e6f68720202f86c2c128f9e990
[ "MIT" ]
null
null
null
bot.py
eklavya11/nuuu
607a7887dfee54e6f68720202f86c2c128f9e990
[ "MIT" ]
null
null
null
# Main Bot Script import os import discord from config import * from discord.ext import commands from ticket_log import ticketlog as create_tlog import textwrap from contextlib import redirect_stdout from discord import Webhook, RequestsWebhookAdapter import time import ast import io, traceback from d...
39.404762
235
0.646707
6bf7130e3512867a607777c78f233460c339abfb
9,223
py
Python
scheduler/core_scheduler.py
SainagShetty/WolfPlanner
1778446619364befd16215f90d2db1cb68f14d3c
[ "MIT" ]
null
null
null
scheduler/core_scheduler.py
SainagShetty/WolfPlanner
1778446619364befd16215f90d2db1cb68f14d3c
[ "MIT" ]
null
null
null
scheduler/core_scheduler.py
SainagShetty/WolfPlanner
1778446619364befd16215f90d2db1cb68f14d3c
[ "MIT" ]
1
2019-04-06T17:18:06.000Z
2019-04-06T17:18:06.000Z
import ast import bisect import pickle import sys from collections import defaultdict from datetime import datetime from pprint import pprint import db_scripts def string_to_datetime(datetime_str): # Assuming the format is the same return datetime.strptime(datetime_str, '%Y-%m-%d %H:%M:%S') def check_tasks(_student...
34.414179
117
0.709856
58d03dae38b72858edd038fe7ee3c68f4d1e526a
1,873
py
Python
ardos/dc/DCFile.py
Ardos-Project/ardos.libpython
5837fc2e0ac5687c6787b5ea3d336c7afa4a9ec0
[ "BSD-3-Clause" ]
null
null
null
ardos/dc/DCFile.py
Ardos-Project/ardos.libpython
5837fc2e0ac5687c6787b5ea3d336c7afa4a9ec0
[ "BSD-3-Clause" ]
null
null
null
ardos/dc/DCFile.py
Ardos-Project/ardos.libpython
5837fc2e0ac5687c6787b5ea3d336c7afa4a9ec0
[ "BSD-3-Clause" ]
null
null
null
import os import json class DCFile: def __init__(self, parent, path): self.parent = parent self.path = path self.name = '' self.jsonData = None self.sortedClasses = [] self.loadDCFile() def loadDCFile(self): self.name, fileExtension = os.path.splitext(self.path) try: with open(self.path, 'r')...
26.380282
83
0.709557
2ab77ce09bf16fb027856e3d7ebf9c173de9f32d
938
py
Python
test2.py
heroescovid/dashboard
94c33f8aebde225c7ebc6d33c54b5d6856fdca60
[ "Apache-2.0" ]
null
null
null
test2.py
heroescovid/dashboard
94c33f8aebde225c7ebc6d33c54b5d6856fdca60
[ "Apache-2.0" ]
null
null
null
test2.py
heroescovid/dashboard
94c33f8aebde225c7ebc6d33c54b5d6856fdca60
[ "Apache-2.0" ]
null
null
null
import json import base64 #decoding and encoding data is possible via base64 library so we are going to use this method to update values def convert(data): return json.dumps(data) def deconvert(data): return json.loads(data) mydict = {"name": "Aman Singh", "Age":18} # mydict = ["Aman", "singh", 18] def base_...
22.878049
110
0.742004
f0cb157af99d7043890f58db5c72bfc34ffdbbb9
1,970
py
Python
app/sort.py
daisysanson/Game-Marketplace
b42c17300689cd5f47505c44a30f5d875799fe5b
[ "MIT" ]
null
null
null
app/sort.py
daisysanson/Game-Marketplace
b42c17300689cd5f47505c44a30f5d875799fe5b
[ "MIT" ]
4
2021-05-17T19:27:21.000Z
2021-05-18T12:51:00.000Z
app/sort.py
daisysanson/Game-Marketplace
b42c17300689cd5f47505c44a30f5d875799fe5b
[ "MIT" ]
null
null
null
from app import app, db from app.models import Games ''' Using a quicksort to sort the ratings of each game from highest to lowest obviously, this could be done a much simpler way, but for the purpose of this assignment I am demonstrating how we can use such an algorithm to sort data in an array. I am using a Quickso...
34.561404
116
0.685787
0e53071882e6e9ad06864407edbec125cd205d87
20,557
py
Python
tf_agents/policies/tf_policy.py
niklasnolte/agents
065b801adf4d6be7beed64f3b07397bca3c741d2
[ "Apache-2.0" ]
2
2021-02-02T06:56:58.000Z
2021-04-21T08:39:45.000Z
tf_agents/policies/tf_policy.py
MarioBonse/agents
c727141f67051b86d2564c4bd5fbc080623bfe19
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/tf_policy.py
MarioBonse/agents
c727141f67051b86d2564c4bd5fbc080623bfe19
[ "Apache-2.0" ]
6
2020-10-09T06:33:23.000Z
2022-02-03T16:16:36.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
39.15619
80
0.701124
70736449f7309d924a52f5c53e918eeca14ed341
787
py
Python
vendors/migrations/0003_auto_20170116_1847.py
wedwardbeck/vn1
7eff41d40003cb9ca20281eb4c9ce71f129481ba
[ "MIT" ]
null
null
null
vendors/migrations/0003_auto_20170116_1847.py
wedwardbeck/vn1
7eff41d40003cb9ca20281eb4c9ce71f129481ba
[ "MIT" ]
null
null
null
vendors/migrations/0003_auto_20170116_1847.py
wedwardbeck/vn1
7eff41d40003cb9ca20281eb4c9ce71f129481ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-17 02:47 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ...
27.137931
110
0.653113
a69135b273bbb83a9ae33d55bf00752912099472
7,509
py
Python
package/scripts/common.py
ZZZKROSS/ambari-hue-service
e25484168c1adb503376d9e087436352f3d2a3e3
[ "Apache-2.0" ]
1
2018-11-08T13:08:43.000Z
2018-11-08T13:08:43.000Z
package/scripts/common.py
ZZZKROSS/ambari-hue-service
e25484168c1adb503376d9e087436352f3d2a3e3
[ "Apache-2.0" ]
null
null
null
package/scripts/common.py
ZZZKROSS/ambari-hue-service
e25484168c1adb503376d9e087436352f3d2a3e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys, os, pwd, grp, signal, time from resource_management import * from resource_management.core.exceptions import Fail from resource_management.core.logger import Logger from resource_management.core.resources.system import Execute, Directory, File from resource_management.core.shell import...
45.786585
185
0.721001
9f06648d63fa866851ae224017d16dfbb2f9e5e0
631
py
Python
backend/manage.py
crowdbotics-apps/app-1-30327
c2759a779e420e57de669c94b22c6a0794eff158
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/app-1-30327
c2759a779e420e57de669c94b22c6a0794eff158
[ "FTL", "AML", "RSA-MD" ]
8
2021-09-12T16:36:23.000Z
2022-01-09T15:35:42.000Z
backend/manage.py
crowdbotics-apps/app-1-30327
c2759a779e420e57de669c94b22c6a0794eff158
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app_1_30327.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
28.681818
75
0.684628
08e55839d8831f15989f14c1c4e84e70785de148
794
py
Python
y2014_bot3/control_loops/python/polydrivetrain.py
AustinSchuh/971-Robot-Code
99abc66fd2d899c0bdab338dc6f57dc5def9be8d
[ "Apache-2.0" ]
39
2021-06-18T03:22:30.000Z
2022-03-21T15:23:43.000Z
y2014_bot3/control_loops/python/polydrivetrain.py
AustinSchuh/971-Robot-Code
99abc66fd2d899c0bdab338dc6f57dc5def9be8d
[ "Apache-2.0" ]
10
2021-06-18T03:22:19.000Z
2022-03-18T22:14:15.000Z
y2014_bot3/control_loops/python/polydrivetrain.py
AustinSchuh/971-Robot-Code
99abc66fd2d899c0bdab338dc6f57dc5def9be8d
[ "Apache-2.0" ]
4
2021-08-19T19:20:04.000Z
2022-03-08T07:33:18.000Z
#!/usr/bin/python3 import sys from y2014_bot3.control_loops.python import drivetrain from frc971.control_loops.python import polydrivetrain import gflags import glog __author__ = 'Austin Schuh (austin.linux@gmail.com)' FLAGS = gflags.FLAGS try: gflags.DEFINE_bool('plot', False, 'If true, plot the loop response.'...
24.8125
76
0.707809
65f439c3507f2a78469ebba504f4aab7c9983cc8
1,429
py
Python
jobya/jobs/tests/test_resources.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
jobya/jobs/tests/test_resources.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
2
2022-02-08T01:15:52.000Z
2022-03-31T04:24:15.000Z
jobya/jobs/tests/test_resources.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
import pytest from ..resources import JobExportResource from .factories import JobFactory pytestmark = pytest.mark.django_db class TestJobExportResource: @classmethod def setup_class(cls): cls.resource = JobExportResource() def test_fields(self): expected_fields = [ "uuid",...
25.981818
84
0.56753
2075ae97ff10db601a87564a79b25556c3041d2b
5,124
py
Python
messageticker_iot.py
cidoni/newsticker
afa7502ffa0bafc6a1fd7a281a4c9de972c0582a
[ "MIT" ]
null
null
null
messageticker_iot.py
cidoni/newsticker
afa7502ffa0bafc6a1fd7a281a4c9de972c0582a
[ "MIT" ]
null
null
null
messageticker_iot.py
cidoni/newsticker
afa7502ffa0bafc6a1fd7a281a4c9de972c0582a
[ "MIT" ]
null
null
null
''' /* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "...
39.72093
120
0.728532
423d346fc968b525009a59883d7b13012c4eb290
37,096
py
Python
printer.py
vishalmohanty/webscraper
40e801008ac10249682e4115057e993aa4afda61
[ "MIT" ]
null
null
null
printer.py
vishalmohanty/webscraper
40e801008ac10249682e4115057e993aa4afda61
[ "MIT" ]
5
2022-02-12T18:37:59.000Z
2022-03-06T02:59:47.000Z
printer.py
vishalmohanty/webscraper
40e801008ac10249682e4115057e993aa4afda61
[ "MIT" ]
null
null
null
import csv import math import matplotlib.lines as mlines from matplotlib.ticker import MaxNLocator import matplotlib.pylab as plt import numpy as np from matplotlib import rcParams rcParams['font.family'] = 'Times New Roman' weighted = { 'Montgomery, AL': -0.03918335016516895, 'Juneau, AK': -0.04819714984707...
92.508728
13,732
0.537848
99f154c0847815bd2ff3139c0620f04e7f6bb690
1,490
py
Python
geometric_algebra_attention/keras/Multivector2MultivectorAttention.py
klarh/geometric_algebra_attention
327f5d964b5bf72b6bf54b503c23ad8a0d7dc438
[ "MIT" ]
5
2021-10-14T22:24:00.000Z
2022-03-24T20:11:59.000Z
geometric_algebra_attention/keras/Multivector2MultivectorAttention.py
klarh/geometric_algebra_attention
327f5d964b5bf72b6bf54b503c23ad8a0d7dc438
[ "MIT" ]
1
2021-12-03T18:51:19.000Z
2021-12-03T18:51:19.000Z
geometric_algebra_attention/keras/Multivector2MultivectorAttention.py
klarh/geometric_algebra_attention
327f5d964b5bf72b6bf54b503c23ad8a0d7dc438
[ "MIT" ]
2
2021-10-14T22:26:07.000Z
2022-03-24T20:23:05.000Z
from tensorflow import keras from .. import base from .MultivectorAttention import MultivectorAttention class Multivector2MultivectorAttention(base.Multivector2MultivectorAttention, MultivectorAttention): __doc__ = base.Multivector2MultivectorAttention.__doc__ def __init__(self, score_net, value_net, scale_n...
43.823529
103
0.720134
92625cccf2e95ba23647157534b187e6644c0383
293
py
Python
orange3/doc/data-mining-library/source/reference/code/discretization-table.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/doc/data-mining-library/source/reference/code/discretization-table.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/doc/data-mining-library/source/reference/code/discretization-table.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
import Orange iris = Orange.data.Table("iris.tab") disc = Orange.preprocess.Discretize() disc.method = Orange.preprocess.discretize.EqualFreq(n=3) d_iris = disc(iris) print("Original dataset:") for e in iris[:3]: print(e) print("Discretized dataset:") for e in d_iris[:3]: print(e)
19.533333
57
0.709898
4daac0ed168965cc289495995a10c8f39089eb72
567
py
Python
tests/test_entity_list.py
ebelter/mgi
37ea9cbddb3d64d3f0b9db4357f76f80a16d52e5
[ "MIT" ]
null
null
null
tests/test_entity_list.py
ebelter/mgi
37ea9cbddb3d64d3f0b9db4357f76f80a16d52e5
[ "MIT" ]
null
null
null
tests/test_entity_list.py
ebelter/mgi
37ea9cbddb3d64d3f0b9db4357f76f80a16d52e5
[ "MIT" ]
null
null
null
import os, unittest from tests.test_base_classes import TestBaseWithDb from mgi.entity.list import list_entities class EntityListTest(TestBaseWithDb): def test_list_entities(self): rows = list_entities({}) self.assertEqual(rows, [["H_G002", "hic"], ["GRCh38", ""]]) rows = list_entities({"k...
29.842105
67
0.64903
24f447fa98cb67cc6941de2a0ed0f1ac3b72292f
166
py
Python
hackerrank/python/math/polar-coordinates.py
ParinVachhani/coding-practice
2268215b1e1f26bfe09d0dfb4f94366594a6ef37
[ "MIT" ]
1
2018-05-06T14:03:02.000Z
2018-05-06T14:03:02.000Z
hackerrank/python/math/polar-coordinates.py
ParinVachhani/coding-practice
2268215b1e1f26bfe09d0dfb4f94366594a6ef37
[ "MIT" ]
null
null
null
hackerrank/python/math/polar-coordinates.py
ParinVachhani/coding-practice
2268215b1e1f26bfe09d0dfb4f94366594a6ef37
[ "MIT" ]
null
null
null
import cmath if __name__ == '__main__': a = complex(input()) print(abs(a)) print(cmath.phase(a)) # import cmath # print(*cmath.polar(complex(input())), sep='\n')
18.444444
49
0.656627
177f0158644b349ae4264a8a9887bc406475e8d7
30,061
py
Python
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/conv.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/conv.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/conv.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
42.761024
119
0.650943
b899ca78cd84558fbf3e5d8f498d70848bfc8f25
36,711
py
Python
drfact/run_drfact.py
alizaree/google-research
1969183efdb8fdaffa4ce05218a2c79ccfffe9a6
[ "Apache-2.0" ]
1
2022-03-30T07:14:49.000Z
2022-03-30T07:14:49.000Z
drfact/run_drfact.py
alizaree/google-research
1969183efdb8fdaffa4ce05218a2c79ccfffe9a6
[ "Apache-2.0" ]
null
null
null
drfact/run_drfact.py
alizaree/google-research
1969183efdb8fdaffa4ce05218a2c79ccfffe9a6
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.924587
80
0.692953
9f60f73f3a0981f511924cd9a460decb5235effc
135
py
Python
vendor/PropertyKits/src/properties/app_utils.py
huangtao/cloud-test
8087b1337d47daab9eb39335ca6e286df0e4b4dc
[ "Apache-2.0" ]
1
2018-09-12T15:43:32.000Z
2018-09-12T15:43:32.000Z
vendor/PropertyKits/src/properties/app_utils.py
huangtao/cloud-test
8087b1337d47daab9eb39335ca6e286df0e4b4dc
[ "Apache-2.0" ]
null
null
null
vendor/PropertyKits/src/properties/app_utils.py
huangtao/cloud-test
8087b1337d47daab9eb39335ca6e286df0e4b4dc
[ "Apache-2.0" ]
3
2018-09-12T15:43:33.000Z
2019-07-10T09:50:15.000Z
''' Created on 2017年1月18日 @author: AppleWang ''' #应用名称、应用包名、应用PID、UID、手机型号、Android系统版本、手机内存大小、手机CPU型号、测试日期 #内存/CPU 最大值、最小值、平均值
16.875
58
0.711111
4b8c6b9a9c2177e02b752d6223daafa6453cd4b5
551
py
Python
src/aihwkit/cloud/converter/definitions/__init__.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
133
2020-09-17T20:36:08.000Z
2022-03-21T12:15:40.000Z
src/aihwkit/cloud/converter/definitions/__init__.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
140
2020-09-21T12:16:55.000Z
2022-03-31T18:07:37.000Z
src/aihwkit/cloud/converter/definitions/__init__.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
53
2020-09-17T15:53:31.000Z
2022-03-30T12:22:04.000Z
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
39.357143
77
0.745917
6cf8e33452cd93d9a1474ed5f07547200c7c2b94
4,212
py
Python
python/cuml/dask/decomposition/base.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2021-04-06T14:24:25.000Z
2021-04-06T14:24:25.000Z
python/cuml/dask/decomposition/base.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2020-03-05T02:25:50.000Z
2020-03-05T02:25:50.000Z
python/cuml/dask/decomposition/base.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. # # 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...
32.651163
76
0.632004
e8d850673ae31ace7ee7bd3dc4b8d149879fa458
733
py
Python
figures/2C/panel.py
cravattlab/abbasov
86d8609f9cb1932855dae054936aeb8e5a534cea
[ "MIT" ]
2
2021-02-17T01:21:47.000Z
2021-09-09T18:29:15.000Z
figures/2C/panel.py
cravattlab/abbasov
86d8609f9cb1932855dae054936aeb8e5a534cea
[ "MIT" ]
1
2021-04-15T00:48:09.000Z
2021-04-16T18:33:08.000Z
figures/2C/panel.py
cravattlab/abbasov
86d8609f9cb1932855dae054936aeb8e5a534cea
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np df = pd.read_csv('../../peptides_chemotypes.tsv', sep='\t') dup = df.copy() dup.pop('description') dup.pop('accession') dup.pop('site') df = df[~dup.duplicated()] chemotypes = df.columns[7:] print(chemotypes) data = {} for c in chemotypes: data[c] = dict(unique=0, shared=...
24.433333
59
0.608458
f0878c25df07cc097cfa53ce051aff37e42ff06e
4,855
py
Python
CPR/balance_sheets.py
rsi-models/CPR
2c9e2eb36499e65facd2303f1189101cfd18b267
[ "MIT" ]
null
null
null
CPR/balance_sheets.py
rsi-models/CPR
2c9e2eb36499e65facd2303f1189101cfd18b267
[ "MIT" ]
null
null
null
CPR/balance_sheets.py
rsi-models/CPR
2c9e2eb36499e65facd2303f1189101cfd18b267
[ "MIT" ]
null
null
null
from CPR import tools from CPR import taxes from CPR import simulator def compute_bs_bef_ret(hh, year, common, prices): """ Function to compute the pre-retirement balance sheet. Parameters ---------- hh: Hhold household year : int year common : Common instance of t...
33.482759
98
0.617302
a9393f2df5647c15052254298b42055f08250722
1,876
py
Python
tool/eval_para_classification.py
SeonjeongHwang/xlnet_cqa
2bbc5afa03480fd507db062901b86d1274ef36d5
[ "Apache-2.0" ]
null
null
null
tool/eval_para_classification.py
SeonjeongHwang/xlnet_cqa
2bbc5afa03480fd507db062901b86d1274ef36d5
[ "Apache-2.0" ]
null
null
null
tool/eval_para_classification.py
SeonjeongHwang/xlnet_cqa
2bbc5afa03480fd507db062901b86d1274ef36d5
[ "Apache-2.0" ]
null
null
null
from sklearn.metrics import f1_score, accuracy_score, recall_score import argparse import sys import json def parse_args(): parser = argparse.ArgumentParser('Evaluation script for paraphrasing classification') parser.add_argument('--data-file', dest="data_file", help='Input data JSON file.') if len(sys.arg...
27.188406
89
0.58049
14226b4f70b68ad17a31bed860cc6e8506fdfc22
1,081
py
Python
plugins/weebify.py
xditya/PikaBotPlugins
2c5c52716158cd8964220bcc71fa383ccaf1210a
[ "Apache-2.0" ]
2
2021-02-16T05:35:41.000Z
2021-05-25T16:59:47.000Z
plugins/weebify.py
xditya/PikaBotPlugins
2c5c52716158cd8964220bcc71fa383ccaf1210a
[ "Apache-2.0" ]
null
null
null
plugins/weebify.py
xditya/PikaBotPlugins
2c5c52716158cd8964220bcc71fa383ccaf1210a
[ "Apache-2.0" ]
2
2021-02-07T03:09:40.000Z
2021-05-25T16:59:59.000Z
""" Weebify a text, Ported from Saitama Bot. By :- @PhycoNinja13b Modified by :- @kirito6969 .weeb <text> """ from telethon import events from uniborg.util import ItzSjDude normiefont = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', '...
34.870968
118
0.539315
96395521ec6a85925c1d76ec243a00921f1cd5f7
2,258
py
Python
rllab/envs/mujoco/swimmer_env.py
RussellM2020/maml_gps
631560dfd4e23dc2da9bfbbd2e3c5252aa9775c5
[ "MIT" ]
541
2017-07-19T00:49:13.000Z
2022-03-28T21:14:23.000Z
rllab/envs/mujoco/swimmer_env.py
RussellM2020/maml_gps
631560dfd4e23dc2da9bfbbd2e3c5252aa9775c5
[ "MIT" ]
13
2018-02-28T02:29:58.000Z
2021-03-21T13:49:49.000Z
rllab/envs/mujoco/swimmer_env.py
RussellM2020/maml_gps
631560dfd4e23dc2da9bfbbd2e3c5252aa9775c5
[ "MIT" ]
168
2017-07-19T12:21:01.000Z
2022-02-22T00:46:40.000Z
from rllab.envs.base import Step from rllab.misc.overrides import overrides from .mujoco_env import MujocoEnv import numpy as np from rllab.core.serializable import Serializable from rllab.misc import logger from rllab.misc import autoargs class SwimmerEnv(MujocoEnv, Serializable): FILE = 'swimmer.xml' @aut...
34.738462
78
0.61426
c81e13ca519f4e162afb1623ed39ba5aeac9bb05
2,866
py
Python
models/radom_forest_regression.py
tcsong456/Amazon_employee_access
75bdbde6d8f0434bc104aab8715fb564380e3c8a
[ "MIT" ]
null
null
null
models/radom_forest_regression.py
tcsong456/Amazon_employee_access
75bdbde6d8f0434bc104aab8715fb564380e3c8a
[ "MIT" ]
null
null
null
models/radom_forest_regression.py
tcsong456/Amazon_employee_access
75bdbde6d8f0434bc104aab8715fb564380e3c8a
[ "MIT" ]
null
null
null
from models import register_model,register_model_architecture from sklearn.ensemble import RandomForestRegressor @register_model('random_forest') class RFRegressor: def __init__(self,args): model = RandomForestRegressor(max_depth=args.max_depth, min_samples_leaf...
52.109091
149
0.606071
22f22f44258b6752c8443943815453f5810b1500
6,130
py
Python
lcip/libvirt.py
andrekeller/lcip
94147b24694e95d6c539857bddb4e0772d9a5cfd
[ "MIT" ]
null
null
null
lcip/libvirt.py
andrekeller/lcip
94147b24694e95d6c539857bddb4e0772d9a5cfd
[ "MIT" ]
null
null
null
lcip/libvirt.py
andrekeller/lcip
94147b24694e95d6c539857bddb4e0772d9a5cfd
[ "MIT" ]
null
null
null
"""lcip - libvirt api""" # stdlib from contextlib import suppress from functools import partial from pathlib import Path from xml.dom import minidom import xml.etree.ElementTree as ElementTree # 3rd-party import libvirt # lcip from lcip.defaults import LIBVIRT_POOL_DIR class Libvirt: """Libvirt interface""" ...
34.632768
98
0.589723
e6842e4dd150207fe88f6ed696a25bb025ce24a0
2,301
py
Python
deepr/config/references.py
drohde/deepr
672772ea3ce9cf391f9f8efc7ae9c9d438957817
[ "Apache-2.0" ]
50
2020-05-19T17:29:44.000Z
2022-01-15T20:50:50.000Z
deepr/config/references.py
drohde/deepr
672772ea3ce9cf391f9f8efc7ae9c9d438957817
[ "Apache-2.0" ]
75
2020-05-20T16:53:37.000Z
2022-01-12T15:53:46.000Z
deepr/config/references.py
drohde/deepr
672772ea3ce9cf391f9f8efc7ae9c9d438957817
[ "Apache-2.0" ]
17
2020-05-25T13:23:03.000Z
2022-02-21T11:22:08.000Z
"""Helpers for references""" import logging from typing import Dict, Any LOGGER = logging.getLogger(__name__) REF = "@" REF_SELF = "@self" REF_MACROS = "@macros" REF_MACROS_EVAL = "@macros_eval" def fill_references(item: Any, references: Dict[str, Any] = None) -> Any: """Fill all params that are references...
30.68
102
0.670143
25789f3f7cf091219529d281d3e7297b0c8669c0
311
py
Python
project/core/prod_settings.py
milkOSTpyt/Goods-accounting-system
ec223ed726cfa9f18d49c4233f9dc1520373c874
[ "BSD-3-Clause" ]
null
null
null
project/core/prod_settings.py
milkOSTpyt/Goods-accounting-system
ec223ed726cfa9f18d49c4233f9dc1520373c874
[ "BSD-3-Clause" ]
null
null
null
project/core/prod_settings.py
milkOSTpyt/Goods-accounting-system
ec223ed726cfa9f18d49c4233f9dc1520373c874
[ "BSD-3-Clause" ]
null
null
null
SECRET_KEY = 'b#^di6u0zal6^2gr!aa3bje#z%5123!mya@)&3p-21d(=sj5%_y9n32122' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'gasdb', 'USER': 'artem', 'PASSWORD': 'gastest911', 'HOST': 'localhost', 'PORT': '5432', } }
23.923077
73
0.540193
b81d716c43b6f9a65d82ec101bcba66515329a37
6,766
py
Python
sc2/game_state.py
drakonnan1st/JackBot
345df784098cb9eb055b3901fe7455807c58a4e1
[ "MIT" ]
null
null
null
sc2/game_state.py
drakonnan1st/JackBot
345df784098cb9eb055b3901fe7455807c58a4e1
[ "MIT" ]
null
null
null
sc2/game_state.py
drakonnan1st/JackBot
345df784098cb9eb055b3901fe7455807c58a4e1
[ "MIT" ]
null
null
null
"""Groups some info about the all global(shared by all races) state of sc2 so it can be used in an easy way""" from typing import List, Set from .data import ALLIANCE, DISPLAY_TYPE from .ids.effect_id import EffectId from .ids.upgrade_id import UpgradeId from .pixel_map import PixelMap from .position import Point2, Poi...
38.662857
120
0.649719
8af7f9232212e89562f8a8bef7251b906a81f380
7,353
py
Python
nova/tests/functional/regressions/test_bug_1848343.py
docc-lab/nova
a948a803b561606a892133940915caae610c080b
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/regressions/test_bug_1848343.py
docc-lab/nova
a948a803b561606a892133940915caae610c080b
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/regressions/test_bug_1848343.py
docc-lab/nova
a948a803b561606a892133940915caae610c080b
[ "Apache-2.0" ]
null
null
null
# 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 t...
48.375
77
0.687067
5636abbf24d3c0aa5a2514dea0a964b9046cb029
7,362
py
Python
samtranslator/plugins/api/implicit_rest_api_plugin.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
null
null
null
samtranslator/plugins/api/implicit_rest_api_plugin.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
null
null
null
samtranslator/plugins/api/implicit_rest_api_plugin.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
null
null
null
import six from samtranslator.model.naming import GeneratedLogicalId from samtranslator.plugins.api.implicit_api_plugin import ImplicitApiPlugin from samtranslator.public.swagger import SwaggerEditor from samtranslator.public.exceptions import InvalidEventException from samtranslator.public.sdk.resource import SamReso...
44.618182
118
0.674817
dd64b7f2af8e41e19a51c8f19ae00b85d629da22
345,605
py
Python
google/cloud/aiplatform/training_jobs.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/training_jobs.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/training_jobs.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
52.135315
159
0.629172
f74ae93b8cc6518cf4988a26caf259e0bc802844
564
py
Python
drawer.py
janakhpon/LearnPyDacity
b096f9a50496a0c01353bf953209e766de312187
[ "MIT" ]
null
null
null
drawer.py
janakhpon/LearnPyDacity
b096f9a50496a0c01353bf953209e766de312187
[ "MIT" ]
null
null
null
drawer.py
janakhpon/LearnPyDacity
b096f9a50496a0c01353bf953209e766de312187
[ "MIT" ]
null
null
null
import turtle def draw_square(some_turtle): for i in range(1,5): some_turtle.forward(100) some_turtle.right(90) def draw_art(): window = turtle.Screen() window.bgcolor("blue") img_tt = turtle.Turtle() img_tt.shape("turtle") img_tt.color("white") img_tt.speed(2) for i in...
20.142857
32
0.611702
ab7fe3fb1274ec045d52c3cecb2c6b61403eef0b
2,368
py
Python
battements/sinusoide_effet_des_parametres.py
mabuchet/cours_terminale
7bb8dcacbc2b9a305ff6a7f04aea80f7f2bbc690
[ "MIT" ]
null
null
null
battements/sinusoide_effet_des_parametres.py
mabuchet/cours_terminale
7bb8dcacbc2b9a305ff6a7f04aea80f7f2bbc690
[ "MIT" ]
null
null
null
battements/sinusoide_effet_des_parametres.py
mabuchet/cours_terminale
7bb8dcacbc2b9a305ff6a7f04aea80f7f2bbc690
[ "MIT" ]
null
null
null
""" Auteur : Marc-Antoine BUCHET Date : 31/03/2021 BUT : Tracer la représentation graphique d'une sinusoïde et voir l'effet des différents paramètres sur le signal. """ # Imports de bibliothèques : import numpy as np import matplotlib.pyplot as plt #===================================================================...
30.358974
80
0.454814
c79b608aa45609979a8d6a181bce06ee0a5f8b11
2,367
py
Python
fulljson/collections.py
15045120/FullJSON
de4e6fb0e125182bee7619b1bc58ee8c33f8b7c7
[ "MIT" ]
1
2020-01-11T18:19:44.000Z
2020-01-11T18:19:44.000Z
fulljson/collections.py
15045120/FullJSON
de4e6fb0e125182bee7619b1bc58ee8c33f8b7c7
[ "MIT" ]
null
null
null
fulljson/collections.py
15045120/FullJSON
de4e6fb0e125182bee7619b1bc58ee8c33f8b7c7
[ "MIT" ]
1
2021-04-17T18:49:57.000Z
2021-04-17T18:49:57.000Z
# -*- coding: UTF-8 -*- class StackEmptyError(Exception): def __init__(self, message): self.message = message def __str__(self): return repr(self.message) class Stack(object): def __init__(self): self.__values = [] self.__index = -1 self.top = None def push(self...
26.3
69
0.55978
309c38396ea7459be624995852928acc3fe56fcc
3,308
py
Python
examples/turtlebot-master/goforward_and_avoid_obstacle.py
LiuSeeker/Robotica-projeto-1
425795d51232470ac840faf9dc7d97863d801554
[ "CECILL-B" ]
1
2019-07-14T21:27:21.000Z
2019-07-14T21:27:21.000Z
examples/turtlebot-master/goforward_and_avoid_obstacle.py
LiuSeeker/Robotica-projeto-1
425795d51232470ac840faf9dc7d97863d801554
[ "CECILL-B" ]
null
null
null
examples/turtlebot-master/goforward_and_avoid_obstacle.py
LiuSeeker/Robotica-projeto-1
425795d51232470ac840faf9dc7d97863d801554
[ "CECILL-B" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2015, Mark Silliman All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condit...
44.106667
755
0.765115
c8b35aca1b223fc9978906fa7ad5d6457caed1ef
9,707
py
Python
test/test_client.py
pkuyouth/pkuyouth-updater-v2
779d11e99bf1847422a77fc69b58980d74346e33
[ "MIT" ]
null
null
null
test/test_client.py
pkuyouth/pkuyouth-updater-v2
779d11e99bf1847422a77fc69b58980d74346e33
[ "MIT" ]
null
null
null
test/test_client.py
pkuyouth/pkuyouth-updater-v2
779d11e99bf1847422a77fc69b58980d74346e33
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --------------------------------------- # Project: PKUYouth Webserver v2 # File: test_client.py # Created Date: 2020-08-03 # Author: Xinghong Zhong # --------------------------------------- # Copyright (c) 2020 PKUYouth import sys sys.path.append('../') import os impor...
26.235135
153
0.563923
20099bc28e7c7e4c286dba97ab68334c0f2b66f6
4,863
py
Python
test/functional/wallet_importprunedfunds.py
Crowntium/crowntium
78c17071dbb957d7799d2508448413bdbea09c2d
[ "MIT" ]
null
null
null
test/functional/wallet_importprunedfunds.py
Crowntium/crowntium
78c17071dbb957d7799d2508448413bdbea09c2d
[ "MIT" ]
null
null
null
test/functional/wallet_importprunedfunds.py
Crowntium/crowntium
78c17071dbb957d7799d2508448413bdbea09c2d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 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 the importprunedfunds and removeprunedfunds RPCs.""" from decimal import Decimal from test_framew...
40.865546
117
0.684557
bb423a2d86772ee4b9f05382c1b222329578a7ff
6,266
py
Python
tests/lib/server.py
j420247/pip
33cd93cac86690134e8b4874ac42c4e0ce8770d2
[ "MIT" ]
1
2019-12-20T05:27:25.000Z
2019-12-20T05:27:25.000Z
tests/lib/server.py
j420247/pip
33cd93cac86690134e8b4874ac42c4e0ce8770d2
[ "MIT" ]
7
2019-12-27T07:56:50.000Z
2022-01-25T03:41:39.000Z
tests/lib/server.py
j420247/pip
33cd93cac86690134e8b4874ac42c4e0ce8770d2
[ "MIT" ]
1
2020-02-14T16:53:19.000Z
2020-02-14T16:53:19.000Z
import os import signal import ssl import threading from contextlib import contextmanager from textwrap import dedent from mock import Mock from pip._vendor.contextlib2 import nullcontext from werkzeug.serving import WSGIRequestHandler from werkzeug.serving import make_server as _make_server from pip._internal.utils....
29.41784
79
0.63262
08ef496b3d7ebf85fec2d743cdf2f72b128e1e55
13,677
py
Python
src/oscar/apps/dashboard/views.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
3
2020-03-30T13:11:57.000Z
2020-04-22T13:55:31.000Z
src/oscar/apps/dashboard/views.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
9
2020-10-29T08:03:28.000Z
2021-09-08T01:21:10.000Z
src/oscar/apps/dashboard/views.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
2
2021-01-06T19:25:07.000Z
2021-05-14T02:00:19.000Z
import json from datetime import timedelta from decimal import Decimal as D from decimal import ROUND_UP from django.db.models import Avg, Count, Sum from django.template.response import TemplateResponse from django.utils import six from django.utils.timezone import now from django.views.generic import TemplateView f...
40.705357
133
0.640638
b1ee27e7257a1b5c0e6a0d76ace03f169791658b
1,572
py
Python
src/transformers/models/__init__.py
JosephCatrambone/transformers
eca241861ecadbbe22103d347b51e8df89c46cd3
[ "Apache-2.0" ]
39
2021-04-30T06:06:30.000Z
2022-03-12T11:56:06.000Z
src/transformers/models/__init__.py
JosephCatrambone/transformers
eca241861ecadbbe22103d347b51e8df89c46cd3
[ "Apache-2.0" ]
3
2021-08-19T09:56:35.000Z
2021-12-05T20:30:08.000Z
src/transformers/models/__init__.py
JosephCatrambone/transformers
eca241861ecadbbe22103d347b51e8df89c46cd3
[ "Apache-2.0" ]
30
2021-04-30T07:11:22.000Z
2022-03-15T19:34:58.000Z
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
19.65
77
0.647583
3d9cdee7f07f967e53dfb45d77dfa1f9819237fc
1,301
py
Python
script/update_golang_x.py
jamestutton/beats
913f7eeaa76dcd072854b2696b32cde78763599e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
script/update_golang_x.py
jamestutton/beats
913f7eeaa76dcd072854b2696b32cde78763599e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
script/update_golang_x.py
jamestutton/beats
913f7eeaa76dcd072854b2696b32cde78763599e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json import os import argparse import subprocess def update(pkg_name): """Call govendor on the targeted golang/x packages""" vendor_file = os.path.join('vendor', 'vendor.json') target = 'golang.org/x/{}'.format(pkg_name) with open(vendor_file) as content: deps = json.load(content) ...
32.525
110
0.671022
13e0eaab364e7e32b87ace24ff7e82603eebf3a2
64,587
py
Python
correios/models/data.py
Gikeda2016/Correios-olist
4906175bad289b3164ebebb73e5ee16450784fac
[ "Apache-2.0" ]
null
null
null
correios/models/data.py
Gikeda2016/Correios-olist
4906175bad289b3164ebebb73e5ee16450784fac
[ "Apache-2.0" ]
null
null
null
correios/models/data.py
Gikeda2016/Correios-olist
4906175bad289b3164ebebb73e5ee16450784fac
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Osvaldo Santana Neto # # 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 ...
39.262614
117
0.596591
e28e4f20768f756e3e2cf3b711294274d47c6a80
1,873
py
Python
examples/examples_test.py
jarrodmcc/OpenFermion-Cirq
d0755e92e68c6de1b52f5004dc5a75b445f01349
[ "Apache-2.0" ]
null
null
null
examples/examples_test.py
jarrodmcc/OpenFermion-Cirq
d0755e92e68c6de1b52f5004dc5a75b445f01349
[ "Apache-2.0" ]
null
null
null
examples/examples_test.py
jarrodmcc/OpenFermion-Cirq
d0755e92e68c6de1b52f5004dc5a75b445f01349
[ "Apache-2.0" ]
null
null
null
# 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 t...
32.859649
74
0.684463
6ca1c3fa0cda06137248c06e3ca744e7e1604d37
5,984
py
Python
tests/test_gbox_ops.py
opendatacube/odc-geo
4f9004720d899dff4bf0b208e4fe602790d055d7
[ "Apache-2.0" ]
5
2021-12-22T01:32:24.000Z
2022-03-10T07:50:34.000Z
tests/test_gbox_ops.py
opendatacube/odc-geo
4f9004720d899dff4bf0b208e4fe602790d055d7
[ "Apache-2.0" ]
29
2022-01-11T08:48:23.000Z
2022-03-29T09:03:42.000Z
tests/test_gbox_ops.py
opendatacube/odc-geo
4f9004720d899dff4bf0b208e4fe602790d055d7
[ "Apache-2.0" ]
2
2022-01-26T23:20:34.000Z
2022-03-21T16:54:00.000Z
# This file is part of the Open Data Cube, see https://opendatacube.org for more information # # Copyright (c) 2015-2020 ODC Contributors # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from affine import Affine from odc.geo import CRSMismatchError from odc.geo import geobox as gbx from odc.geo ...
29.333333
92
0.598429
b6b4ac1a9f41d40138e59a1f7d9e7d82c2d0be00
11,431
py
Python
mriqc/interfaces/anatomical.py
effigies/mriqc
de60ff0f65e4fe0e315143fe3b75ecd940beb2b1
[ "BSD-3-Clause" ]
null
null
null
mriqc/interfaces/anatomical.py
effigies/mriqc
de60ff0f65e4fe0e315143fe3b75ecd940beb2b1
[ "BSD-3-Clause" ]
null
null
null
mriqc/interfaces/anatomical.py
effigies/mriqc
de60ff0f65e4fe0e315143fe3b75ecd940beb2b1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: # # @Author: oesteban # @Date: 2016-01-05 11:29:40 # @Email: code@oscaresteban.es # @Last modified by: oesteban # @Last Modified time: 2016-11-21 18:59:13 ...
36.288889
88
0.633278
428a877bdfde57f80493918690f6b10cb02f83ec
631
py
Python
sdk/synapse/azure-synapse-managedprivateendpoints/azure/synapse/managedprivateendpoints/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/synapse/azure-synapse-managedprivateendpoints/azure/synapse/managedprivateendpoints/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/synapse/azure-synapse-managedprivateendpoints/azure/synapse/managedprivateendpoints/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
37.117647
94
0.575277
77a6564d33a2fbfa1b100645e105c1be7e5c3eee
1,015
py
Python
testapp/wagtail_wordpress_importer/migrations/0011_auto_20210107_1334.py
nickmoreton/wagtail_wordpress_importer
fbe6b60ae624edac3f42a62ce30af4a0c548b4ed
[ "MIT" ]
null
null
null
testapp/wagtail_wordpress_importer/migrations/0011_auto_20210107_1334.py
nickmoreton/wagtail_wordpress_importer
fbe6b60ae624edac3f42a62ce30af4a0c548b4ed
[ "MIT" ]
null
null
null
testapp/wagtail_wordpress_importer/migrations/0011_auto_20210107_1334.py
nickmoreton/wagtail_wordpress_importer
fbe6b60ae624edac3f42a62ce30af4a0c548b4ed
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-07 13:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wagtail_wordpress_importer', '0010_historicalimportmedia_importmedia'), ] operations = [ migrations.AlterModelOptions( name='his...
31.71875
136
0.612808
e10ffc4170013d48ebcbb853eadb1ac7849efc85
678
py
Python
blogtools/tests/test_blog/admin.py
ixc/glamkit-blogtools
a3024d983eabafeba5df789eacbcc389e4181866
[ "BSD-3-Clause" ]
null
null
null
blogtools/tests/test_blog/admin.py
ixc/glamkit-blogtools
a3024d983eabafeba5df789eacbcc389e4181866
[ "BSD-3-Clause" ]
null
null
null
blogtools/tests/test_blog/admin.py
ixc/glamkit-blogtools
a3024d983eabafeba5df789eacbcc389e4181866
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from feincms.admin.item_editor import FEINCMS_CONTENT_FIELDSET from feincmstools.admin import FeinCMSDocumentAdmin from blogtools.admin import CategoryEntryModelAdmin, CategoryModelAdmin from .models import Entry, Category class EntryAdmin(CategoryEntryModelAdmin, FeinCMSDocumentAdmin)...
39.882353
74
0.771386
dc4e0ccf23048896ae4691976aff93ec0429ddab
2,354
py
Python
test/test_scs_rand.py
SteveDiamond/scs-python
dfacf32d6d92fb4801f4ebc4eed5023a8afe5604
[ "MIT" ]
33
2018-02-03T00:10:09.000Z
2022-01-01T20:34:25.000Z
test/test_scs_rand.py
SteveDiamond/scs-python
dfacf32d6d92fb4801f4ebc4eed5023a8afe5604
[ "MIT" ]
55
2018-03-12T22:21:48.000Z
2022-02-18T14:39:07.000Z
test/test_scs_rand.py
SteveDiamond/scs-python
dfacf32d6d92fb4801f4ebc4eed5023a8afe5604
[ "MIT" ]
24
2018-04-18T03:29:22.000Z
2022-03-01T13:30:36.000Z
from __future__ import print_function import platform ## import utilities to generate random cone probs: import sys import gen_random_cone_prob as tools def import_error(msg): print() print("## IMPORT ERROR:" + msg) print() try: import pytest except ImportError: import_error("Please install pyt...
22.854369
76
0.649958
5a5a8fa5f33e6c6d43bf63b5090e6b8fc9bf4553
8,435
py
Python
Grand_Command00/mainMenu.py
CyborgVillager/Grand-Command
30800b8b512d26b7785d7bb7665e5f518a7cdf3f
[ "MIT" ]
null
null
null
Grand_Command00/mainMenu.py
CyborgVillager/Grand-Command
30800b8b512d26b7785d7bb7665e5f518a7cdf3f
[ "MIT" ]
null
null
null
Grand_Command00/mainMenu.py
CyborgVillager/Grand-Command
30800b8b512d26b7785d7bb7665e5f518a7cdf3f
[ "MIT" ]
null
null
null
from gc_source_modules import * # Load the images def load_images(path_to_directory, height, width): import os import pygame images = {} for dirpath, dirnames, filenames in os.walk(path_to_directory): for name in filenames: if name.endswith('.png'): key = name[:-4] ...
40.552885
118
0.470658
905472b4b0415f551726ef2eeca56117b9c6218e
4,671
py
Python
MADDPG/train.py
holestine/Reinforcement-Learning
538c3a9089294890d320c72696f4440a79a2415a
[ "MIT" ]
1
2018-11-07T21:32:42.000Z
2018-11-07T21:32:42.000Z
MADDPG/train.py
holestine/Reinforcement-Learning
538c3a9089294890d320c72696f4440a79a2415a
[ "MIT" ]
null
null
null
MADDPG/train.py
holestine/Reinforcement-Learning
538c3a9089294890d320c72696f4440a79a2415a
[ "MIT" ]
null
null
null
from unityagents import UnityEnvironment import numpy as np import torch import matplotlib.pyplot as plt from ddpg_agent import Agent from buffer import ReplayBuffer BUFFER_SIZE = int(1e6) # Replay buffer size BATCH_SIZE = 1024 # Minibatch size # Get the Unity environment for vector observations env = UnityEnv...
39.923077
173
0.593021