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
0a3cbe6a97f13bfc915082756595e3cea8730185
96,380
py
Python
scipy/stats/morestats.py
xu-hong-/scipy
f737001cf0a75654efe09a1de5cdf5d1895bda59
[ "BSD-3-Clause" ]
6
2016-10-28T02:39:49.000Z
2019-02-19T21:41:01.000Z
scipy/stats/morestats.py
xu-hong-/scipy
f737001cf0a75654efe09a1de5cdf5d1895bda59
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/morestats.py
xu-hong-/scipy
f737001cf0a75654efe09a1de5cdf5d1895bda59
[ "BSD-3-Clause" ]
3
2019-11-02T04:25:20.000Z
2021-02-20T10:43:43.000Z
# Author: Travis Oliphant, 2002 # # Further updates and enhancements by many SciPy developers. # from __future__ import division, print_function, absolute_import import math import warnings from collections import namedtuple import numpy as np from numpy import (isscalar, r_, log, around, unique, asarray, ...
33.912738
103
0.602511
71ac4a7e191e7e9530c91da8a85a3eacfe754b33
908
py
Python
sdk/python/pulumi_azure_native/cognitiveservices/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cognitiveservices/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cognitiveservices/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from .. import _utilities import typing # Export this package's modules as members: from ._enums import * from .account import * from .get_account impo...
36.32
103
0.798458
190dba1584f18351911ffa1f5768248a2fa3468d
2,363
bzl
Python
rules_typescript_gapic/typescript_gapic.bzl
summer-ji-eng/gapic-generator-typescript
19a47a35320fd2f5e0abe72b05d4dcfddce19cba
[ "Apache-2.0" ]
61
2018-10-23T20:45:16.000Z
2022-03-28T16:32:39.000Z
rules_typescript_gapic/typescript_gapic.bzl
summer-ji-eng/gapic-generator-typescript
19a47a35320fd2f5e0abe72b05d4dcfddce19cba
[ "Apache-2.0" ]
428
2019-03-29T00:37:42.000Z
2022-03-31T20:20:52.000Z
rules_typescript_gapic/typescript_gapic.bzl
summer-ji-eng/gapic-generator-typescript
19a47a35320fd2f5e0abe72b05d4dcfddce19cba
[ "Apache-2.0" ]
24
2019-07-25T22:18:57.000Z
2022-03-03T06:31:55.000Z
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
29.911392
98
0.722387
de3279942127364a2680b4fdd204c22774fe5824
1,231
py
Python
lab8/vector.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-04-04T07:34:14.000Z
2021-04-04T07:34:14.000Z
lab8/vector.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
null
null
null
lab8/vector.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-02-18T09:50:10.000Z
2021-02-18T09:50:10.000Z
import numpy as np class Vector: def __init__(self, x, y=None): if y == None: vec = x if isinstance(vec, Vector): self.x = vec.x self.y = vec.y else: self.x = vec[0] self.y = vec[1] else: ...
22.796296
56
0.488221
dd022534b4b321c0f7eb68a6916381d45eb01145
1,025
py
Python
defenses/fine_pruning/config.py
Qinaty/input-aware-backdoor-attack-release
ce897adf4a3ce0d2badbd2b53233561fee6c7db7
[ "MIT" ]
67
2020-10-17T05:04:17.000Z
2022-03-31T07:16:51.000Z
defenses/fine_pruning/config.py
Qinaty/input-aware-backdoor-attack-release
ce897adf4a3ce0d2badbd2b53233561fee6c7db7
[ "MIT" ]
3
2020-12-27T03:54:38.000Z
2022-03-29T15:33:08.000Z
defenses/fine_pruning/config.py
Qinaty/input-aware-backdoor-attack-release
ce897adf4a3ce0d2badbd2b53233561fee6c7db7
[ "MIT" ]
12
2020-10-20T20:16:10.000Z
2021-12-29T07:35:53.000Z
import argparse def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument("--data_root", type=str, default="../../data/") parser.add_argument("--checkpoints", type=str, default="../../checkpoints") parser.add_argument("--temps", type=str, default="./temps") parser.add_argument("...
39.423077
96
0.696585
46094e6460705a94374737f3e588562e2f34b5e0
3,431
py
Python
liif/utils.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
4
2022-01-31T14:26:39.000Z
2022-02-06T06:34:27.000Z
liif/utils.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
2
2021-11-30T12:19:27.000Z
2021-11-30T12:42:10.000Z
liif/utils.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
null
null
null
import os import time import shutil import math import torch import numpy as np from torch.optim import SGD, Adam def make_coord(shape, ranges=None, flatten=True): """ Make coordinates at grid centers. """ coord_seqs = [] for i, n in enumerate(shape): if ranges is None: v0, v1 = -1...
23.993007
78
0.556398
926544991596b38b66ab6332128d97dc2ac0b98e
1,043
py
Python
picker/migrations/0004_auto_20180802_1515.py
dakrauth/picker
a3faffb5eecb0586339158560a68350bec1757b3
[ "MIT" ]
2
2016-07-15T20:42:31.000Z
2018-06-18T10:35:12.000Z
picker/migrations/0004_auto_20180802_1515.py
dakrauth/picker
a3faffb5eecb0586339158560a68350bec1757b3
[ "MIT" ]
1
2019-12-18T23:54:57.000Z
2019-12-18T23:54:57.000Z
picker/migrations/0004_auto_20180802_1515.py
dakrauth/picker
a3faffb5eecb0586339158560a68350bec1757b3
[ "MIT" ]
2
2016-07-15T20:46:19.000Z
2016-07-31T23:55:58.000Z
# Generated by Django 2.0.7 on 2018-08-02 19:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('picker', '0003_auto_20180801_0800'), ] operations = [ migrations.AlterModelOptions( name='game'...
27.447368
129
0.57047
48925d69d5e4a0b7e09fa5e5fed0e811fae2c7a4
40,076
py
Python
lemonade_soapbox/models/posts.py
tachyondecay/tachyondecay.net-mirror
7e7700692a1621f2a569100e4ad8fff2d1911f05
[ "MIT" ]
null
null
null
lemonade_soapbox/models/posts.py
tachyondecay/tachyondecay.net-mirror
7e7700692a1621f2a569100e4ad8fff2d1911f05
[ "MIT" ]
null
null
null
lemonade_soapbox/models/posts.py
tachyondecay/tachyondecay.net-mirror
7e7700692a1621f2a569100e4ad8fff2d1911f05
[ "MIT" ]
null
null
null
from datetime import datetime from uuid import uuid4 import arrow from diff_match_patch import diff_match_patch from flask import current_app, flash, Markup, url_for from flask_login import current_user from markdown import markdown from PIL import Image from slugify import slugify from sqlalchemy import asc, desc, ev...
35.278169
92
0.575157
bad82ac65dbdeb14b6561ff6510a17b632e5de09
131,169
py
Python
scenarios/SinglePlayer/ColdWar/Iron_Fist.py
dhanin/friendly-bassoon
fafcfd3921805baddc1889dc0ee2fa367ad882f8
[ "BSD-3-Clause" ]
2
2021-11-17T10:59:38.000Z
2021-11-17T10:59:45.000Z
scenarios/SinglePlayer/ColdWar/Iron_Fist.py
dhanin/nws
87a3f24a7887d84b9884635064b48d456b4184e2
[ "BSD-3-Clause" ]
null
null
null
scenarios/SinglePlayer/ColdWar/Iron_Fist.py
dhanin/nws
87a3f24a7887d84b9884635064b48d456b4184e2
[ "BSD-3-Clause" ]
null
null
null
# Created on 03/16/12 00:33:20 from math import * from random import * from UnitCommands import * def CreateScenario(SM): SM.SetScenarioDescription("""Iron Fist\nV 1.0\n2010/06/26\n\nA scenario for Global Conflicts 2.\nCold War Battleset\n\nWritten by Ralf Koelbach.\nrkoelbach@yahoo.com\n\nIron Fist is a classica...
51.358262
1,101
0.682394
a5ad8d3ee86bbdd5864add26c538ace0b8422351
51,330
py
Python
detection_tools/utils/config_util.py
nivosco/detection-tools
bfe461b668cdcd9bcfcfccbdad92342d6fb12fd1
[ "Apache-2.0" ]
null
null
null
detection_tools/utils/config_util.py
nivosco/detection-tools
bfe461b668cdcd9bcfcfccbdad92342d6fb12fd1
[ "Apache-2.0" ]
null
null
null
detection_tools/utils/config_util.py
nivosco/detection-tools
bfe461b668cdcd9bcfcfccbdad92342d6fb12fd1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
40.353774
80
0.747516
1f12b5e95bb336ada6747b99a651de4453e54c71
940
py
Python
modmel_spec/test_arch.py
joaomonteirof/dcase
018bd225c45397bba616e3c70e4a7b50bb1010af
[ "MIT" ]
null
null
null
modmel_spec/test_arch.py
joaomonteirof/dcase
018bd225c45397bba616e3c70e4a7b50bb1010af
[ "MIT" ]
null
null
null
modmel_spec/test_arch.py
joaomonteirof/dcase
018bd225c45397bba616e3c70e4a7b50bb1010af
[ "MIT" ]
1
2020-05-12T12:52:13.000Z
2020-05-12T12:52:13.000Z
from __future__ import print_function import argparse import torch import torchvision import torchvision.transforms as transforms import torch.optim as optim import torch.utils.data from models import resnet # Training settings parser = argparse.ArgumentParser(description='Test architectures with dummy data') parser.a...
34.814815
128
0.755319
a32fd981221622f043045ff8c5cd3a337b569805
2,116
py
Python
custom_components/esxi_stats/const.py
revin34/esxi_stats
480602073c1cc96a78319b7613bb6215bbb89918
[ "MIT" ]
88
2019-08-13T19:29:41.000Z
2022-03-16T08:54:45.000Z
custom_components/esxi_stats/const.py
revin34/esxi_stats
480602073c1cc96a78319b7613bb6215bbb89918
[ "MIT" ]
49
2019-08-15T11:47:08.000Z
2022-03-13T18:17:27.000Z
config/custom_components/esxi_stats/const.py
fireman1206/home-assistant-config
31fc1c21af4338d865361d189a1dda9fe01f04c9
[ "MIT" ]
32
2019-08-15T14:22:54.000Z
2022-03-12T16:22:37.000Z
"""Constants for ESXi Stats.""" DOMAIN = "esxi_stats" DOMAIN_DATA = "{}_data".format(DOMAIN) PLATFORMS = ["sensor"] REQUIRED_FILES = [ "const.py", "esxi.py", "manifest.json", "sensor.py", "config_flow.py", "services.yaml", "translations/en.json", ] VERSION = "0.6.3" ISSUE_URL = "https://git...
21.373737
81
0.600662
67c76929204c6ae28a00e04fbc184f8dd4a95460
1,165
py
Python
src/polls/migrations/0001_initial.py
fernandoacorreia/django-tutorial
86be12b7cd6ef55e713f9bf4c478f41ed4e823d8
[ "MIT" ]
null
null
null
src/polls/migrations/0001_initial.py
fernandoacorreia/django-tutorial
86be12b7cd6ef55e713f9bf4c478f41ed4e823d8
[ "MIT" ]
null
null
null
src/polls/migrations/0001_initial.py
fernandoacorreia/django-tutorial
86be12b7cd6ef55e713f9bf4c478f41ed4e823d8
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-07-04 04:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Choice', fields=[ ...
31.486486
114
0.577682
a3b1baef471d5d4fa31e94a8c9a7950f5e83c770
6,778
py
Python
src/tools/package.py
MaxSac/build
482c25f3a26171073c7e6c59f0427f2259a63fec
[ "BSL-1.0" ]
2,831
2015-12-24T03:21:07.000Z
2022-03-31T18:37:29.000Z
src/tools/package.py
MaxSac/build
482c25f3a26171073c7e6c59f0427f2259a63fec
[ "BSL-1.0" ]
618
2015-01-02T01:39:26.000Z
2022-03-28T15:18:40.000Z
src/tools/package.py
MaxSac/build
482c25f3a26171073c7e6c59f0427f2259a63fec
[ "BSL-1.0" ]
781
2015-12-24T04:28:34.000Z
2022-03-26T05:23:12.000Z
# Status: ported # Base revision: 64488 # # Copyright (c) 2005, 2010 Vladimir Prus. # Copyright 2006 Rene Rivera. # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or # http://www.boost.org/LICENSE_1_0.txt) # Provides mechanism for ins...
40.106509
117
0.666273
2d81d9c21f51c4c440c406e4ee13cfd1a70b5ddc
294
py
Python
leetcode/python/887_super_egg_drop.py
VVKot/leetcode-solutions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
4
2019-04-22T11:57:36.000Z
2019-10-29T09:12:56.000Z
leetcode/python/887_super_egg_drop.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
leetcode/python/887_super_egg_drop.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
class Solution: def superEggDrop(self, K, N): cache = [[0] * (K+1) for _ in range(N+1)] for m in range(1, N+1): for k in range(1, K+1): cache[m][k] = 1 + cache[m-1][k-1] + cache[m-1][k] if cache[m][-1] >= N: return m
29.4
65
0.42517
ccf9c2f09637a9bee7552df5cd1fb8fa33ea1476
4,605
py
Python
bin/try.py
mohad12211/skia
042a53aa094715e031ebad4da072524ace316744
[ "BSD-3-Clause" ]
19
2018-05-28T15:21:28.000Z
2022-03-13T09:00:08.000Z
bin/try.py
mohad12211/skia
042a53aa094715e031ebad4da072524ace316744
[ "BSD-3-Clause" ]
3
2017-04-28T13:58:09.000Z
2020-09-03T09:23:39.000Z
bin/try.py
mohad12211/skia
042a53aa094715e031ebad4da072524ace316744
[ "BSD-3-Clause" ]
14
2015-07-17T17:23:53.000Z
2020-07-06T21:06:57.000Z
#!/usr/bin/env python # Copyright 2017 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Submit one or more try jobs.""" import argparse import json import os import re import subprocess import sys import tempfile BUCKET_SKIA_PRIMARY = 'skia/sk...
30.496689
80
0.645385
4b7a25cb3987a4d9ba833facd11b43feac796fa6
4,576
py
Python
mycity/mycity/intents/snow_parking_intent.py
hamstap85/voiceapp311
8a8e4c0d504a38007013f0c69516344ea559865f
[ "MIT" ]
null
null
null
mycity/mycity/intents/snow_parking_intent.py
hamstap85/voiceapp311
8a8e4c0d504a38007013f0c69516344ea559865f
[ "MIT" ]
null
null
null
mycity/mycity/intents/snow_parking_intent.py
hamstap85/voiceapp311
8a8e4c0d504a38007013f0c69516344ea559865f
[ "MIT" ]
null
null
null
"""Alexa intent used to find snow emergency parking""" import mycity.intents.intent_constants as intent_constants import mycity.intents.speech_constants.snow_parking_intent as constants import mycity.intents.user_address_intent as user_address_intent from mycity.intents.custom_errors import InvalidAddressError from my...
47.666667
150
0.757649
47bc830f74e6ce6d1ae54846038fe1e4aebe682f
4,175
py
Python
malaya_speech/speech_enhancement.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
null
null
null
malaya_speech/speech_enhancement.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
null
null
null
malaya_speech/speech_enhancement.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
1
2021-08-19T02:34:41.000Z
2021-08-19T02:34:41.000Z
from malaya_speech.supervised import unet from herpetologist import check_type # https://github.com/sigsep/sigsep-mus-eval/blob/master/museval/__init__.py#L364 # Only calculate SDR, ISR, SAR on voice sample _masking_availability = { 'unet': { 'Size (MB)': 78.9, 'Quantized Size (MB)': 20, '...
28.020134
130
0.602874
ddf9ae1e561a6286c7b5bc61a8b9fdc544d70614
1,995
py
Python
qa/rpc-tests/test_framework/bignum.py
mirzaei-ce/core-goldbit
cc957d795f7af032967943208171acee8a527441
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/bignum.py
mirzaei-ce/core-goldbit
cc957d795f7af032967943208171acee8a527441
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/bignum.py
mirzaei-ce/core-goldbit
cc957d795f7af032967943208171acee8a527441
[ "MIT" ]
null
null
null
# # # bignum.py # # This file is copied from python-goldbitlib. # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # """Bignum routines""" from __future__ import absolute_import, division, print_function, unicode_literals imp...
19.368932
82
0.541353
a1fad0c9b169bac2deab7d9e922df5d9fd0858b8
5,575
py
Python
pypureclient/flasharray/FA_2_3/models/snapshot.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_3/models/snapshot.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_3/models/snapshot.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
37.668919
490
0.596951
a22717307c94028f62bf86ae41c060e00de4c134
254
py
Python
xndtools/c_utils/tests/test_parser.py
xnd-project/xndtools
9478f31954091d861ce538ba278f7f888e23d19b
[ "BSD-3-Clause" ]
3
2019-11-12T16:01:26.000Z
2020-06-27T19:27:27.000Z
xndtools/c_utils/tests/test_parser.py
xnd-project/xndtools
9478f31954091d861ce538ba278f7f888e23d19b
[ "BSD-3-Clause" ]
4
2018-04-25T17:12:43.000Z
2018-08-23T18:17:24.000Z
xndtools/c_utils/tests/test_parser.py
xnd-project/xndtools
9478f31954091d861ce538ba278f7f888e23d19b
[ "BSD-3-Clause" ]
6
2018-05-04T08:10:40.000Z
2019-03-19T10:00:21.000Z
from xndtools.c_utils import parser def test_get_c_blocks(): source = ''' struct foobar { int a; } foobar_t ''' assert parser.get_c_blocks(source) == ( '\nstruct foobar @@@1@@@ foobar_t\n', {'@@@1@@@': '{\n int a;\n}'} )
18.142857
45
0.555118
08643f21b190f1cfe96d686228415f1960642b94
9,932
py
Python
mezzanine_api/serializers.py
shangzhikeji/mezzanine-api
82d7e81d3bd95678fbb5a33ddb7f4cb07ba5fd1c
[ "MIT" ]
95
2015-05-11T14:50:48.000Z
2021-08-16T00:20:54.000Z
mezzanine_api/serializers.py
shangzhikeji/mezzanine-api
82d7e81d3bd95678fbb5a33ddb7f4cb07ba5fd1c
[ "MIT" ]
21
2015-12-20T19:05:46.000Z
2018-12-16T19:11:59.000Z
mezzanine_api/serializers.py
shangzhikeji/mezzanine-api
82d7e81d3bd95678fbb5a33ddb7f4cb07ba5fd1c
[ "MIT" ]
33
2015-08-24T21:46:59.000Z
2021-06-04T14:02:36.000Z
from django.urls import NoReverseMatch from django.template.defaultfilters import strip_tags from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from mezzanine.blog.models import BlogPost as Post, BlogCategory from mezzanine.pages.models import Page from mezzanine.generic.models...
35.345196
120
0.652537
c2810fc6f0ed84db839ab38e69709f3b02ca840a
1,851
py
Python
2-progress-pie/main.py
christopher-nicol/sypht-excercises
ff320a0c4375d76b87d223d1e3e83cbe94b0f0a1
[ "MIT" ]
null
null
null
2-progress-pie/main.py
christopher-nicol/sypht-excercises
ff320a0c4375d76b87d223d1e3e83cbe94b0f0a1
[ "MIT" ]
null
null
null
2-progress-pie/main.py
christopher-nicol/sypht-excercises
ff320a0c4375d76b87d223d1e3e83cbe94b0f0a1
[ "MIT" ]
null
null
null
import math import numpy as np # Constants & Variables radius = 50 v1 = [0, 50] # Start line segment vector origin = [0, 0] # Origin translated to Cartesian coordinates while True: T = int(input('Enter the number of points: ')) if (1 <= T <= 1000): break else: print('T must be between 1 ...
29.854839
117
0.621826
4938c0b7eb5b43275e9afcb9d7cbf99e607cafbd
4,241
py
Python
tests/pc/test_po_update.py
SuvarnaMeenakshi/sonic-mgmt
34d7833b52276d68fb9f515354ca71e7ec2f31bb
[ "Apache-2.0" ]
null
null
null
tests/pc/test_po_update.py
SuvarnaMeenakshi/sonic-mgmt
34d7833b52276d68fb9f515354ca71e7ec2f31bb
[ "Apache-2.0" ]
null
null
null
tests/pc/test_po_update.py
SuvarnaMeenakshi/sonic-mgmt
34d7833b52276d68fb9f515354ca71e7ec2f31bb
[ "Apache-2.0" ]
null
null
null
from ansible_host import AnsibleHost import time import pytest import logging def test_po_update(ansible_adhoc, testbed): """ test port channel add/deletion as well ip address configuration """ hostname = testbed['dut'] ans_host = AnsibleHost(ansible_adhoc, hostname) mg_facts = ans_host.minig...
42.838384
105
0.690875
723b2557cc32cce31eeb932379fdcbf0781d59c1
1,982
py
Python
src/main.py
efrenmartinez/challenge-python-02
abdfdc25bb9fe067d7882d7377941d791662a0ac
[ "MIT" ]
null
null
null
src/main.py
efrenmartinez/challenge-python-02
abdfdc25bb9fe067d7882d7377941d791662a0ac
[ "MIT" ]
null
null
null
src/main.py
efrenmartinez/challenge-python-02
abdfdc25bb9fe067d7882d7377941d791662a0ac
[ "MIT" ]
null
null
null
# Resolve the problem!! import string import random SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~') LETTER_UPPERCASE = list(string.ascii_lowercase) LETTER_LOWERCASE = list(string.ascii_uppercase) NUMBERS = list(string.digits) TYPES = ['SYMBOLS', 'LETTER_UPPERCASE', 'LETTER_LOWERCASE', 'NUMBERS'] MAX_NUMBER = 15 MIN_NU...
26.783784
91
0.599395
1f9f6ab7b54c631f0dac29d6b7bac9274ec0981e
5,108
py
Python
pose_estimation/configs/top_down/udp/coco/hrnet_w32_coco_256x192_udp.py
AK391/UniFormer
22c6b3b98b68236dda6a8fa7152a32af1af62a20
[ "MIT" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
pose_estimation/configs/top_down/udp/coco/hrnet_w32_coco_256x192_udp.py
hadlang/UniFormer
e8024703bffb89cb7c7d09e0d774a0d2a9f96c25
[ "MIT" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
pose_estimation/configs/top_down/udp/coco/hrnet_w32_coco_256x192_udp.py
hadlang/UniFormer
e8024703bffb89cb7c7d09e0d774a0d2a9f96c25
[ "MIT" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=5, create_symlink=False) evaluation = dict(interval=10, metric='mAP', key_indicator='AP') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_...
28.696629
79
0.584965
fe1d8202944a02ede9160cd5d1d177c2c79e9ba6
1,051
py
Python
magnum_tempest_plugin/tests/api/v1/models/cluster_model.py
NeCTAR-RC/magnum-tempest-plugin
f14f3a217315fb2f2540c03d2507dfe4289cf695
[ "Apache-2.0" ]
8
2017-10-31T10:36:31.000Z
2021-02-17T19:54:25.000Z
magnum_tempest_plugin/tests/api/v1/models/cluster_model.py
NeCTAR-RC/magnum-tempest-plugin
f14f3a217315fb2f2540c03d2507dfe4289cf695
[ "Apache-2.0" ]
null
null
null
magnum_tempest_plugin/tests/api/v1/models/cluster_model.py
NeCTAR-RC/magnum-tempest-plugin
f14f3a217315fb2f2540c03d2507dfe4289cf695
[ "Apache-2.0" ]
1
2019-04-08T06:41:19.000Z
2019-04-08T06:41:19.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...
33.903226
75
0.764034
fc39ec444c6dddca94fbc2c64ba651f1984c12e6
96
py
Python
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/grammar.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/grammar.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/grammar.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/1b/24/cb/f9e97d77e50776b39d64500b7f902901cba5fcf2d3f80b49c723f71d62
96
96
0.895833
e651bb067dde035e1f9f8f9ee7c7f5786a0f92b2
3,028
py
Python
ludwig/data/dataset/pandas.py
desikan95/ludwig
c6b5594db98b6eaadc7bcd32e38983fe3cb4c3f2
[ "Apache-2.0" ]
1
2021-03-31T04:51:27.000Z
2021-03-31T04:51:27.000Z
ludwig/data/dataset/pandas.py
desikan95/ludwig
c6b5594db98b6eaadc7bcd32e38983fe3cb4c3f2
[ "Apache-2.0" ]
null
null
null
ludwig/data/dataset/pandas.py
desikan95/ludwig
c6b5594db98b6eaadc7bcd32e38983fe3cb4c3f2
[ "Apache-2.0" ]
1
2021-01-07T17:55:02.000Z
2021-01-07T17:55:02.000Z
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 # # Unles...
38.820513
80
0.594122
502a2859bde7fd34ac39a2974781574a3b120d80
4,504
py
Python
src/python-common/tracing.py
mjmckay/bank-of-sirius
1a7daf3fa5aa3d471f79c2ebb441443bfbae343d
[ "Apache-2.0" ]
8
2021-10-20T17:20:47.000Z
2022-03-19T11:46:39.000Z
src/python-common/tracing.py
mjmckay/bank-of-sirius
1a7daf3fa5aa3d471f79c2ebb441443bfbae343d
[ "Apache-2.0" ]
6
2021-09-02T15:22:23.000Z
2022-01-13T21:20:16.000Z
src/python-common/tracing.py
mjmckay/bank-of-sirius
1a7daf3fa5aa3d471f79c2ebb441443bfbae343d
[ "Apache-2.0" ]
8
2021-08-17T14:47:05.000Z
2022-03-25T16:19:22.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 t...
45.04
107
0.693162
6dd2a50b2b3adad4bd0abd8ce6add17e30f7aadf
1,176
py
Python
terrascript/vsphere/d.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/vsphere/d.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/vsphere/d.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
1
2018-11-15T16:23:05.000Z
2018-11-15T16:23:05.000Z
from terrascript import _data class vsphere_compute_cluster(_data): pass compute_cluster = vsphere_compute_cluster class vsphere_custom_attribute(_data): pass custom_attribute = vsphere_custom_attribute class vsphere_datacenter(_data): pass datacenter = vsphere_datacenter class vsphere_datastore(_data): pass datasto...
25.021277
63
0.856293
3e7982434c7bd25cd11efbfbaf4edad7384385b0
1,061
py
Python
mayan/apps/mailer/permissions.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
mayan/apps/mailer/permissions.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
mayan/apps/mailer/permissions.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
1
2021-09-01T14:07:47.000Z
2021-09-01T14:07:47.000Z
from django.utils.translation import ugettext_lazy as _ from mayan.apps.permissions import PermissionNamespace namespace = PermissionNamespace(label=_('Mailing'), name='mailing') permission_mailing_send_document_link = namespace.add_permission( label=_('Send document link via email'), name='mail_link' ) permissi...
37.892857
71
0.796418
a9685dae11ce12050df140da5b675a6401b95666
268
py
Python
consultas/consultas/doctype/reporte_hematologico/reporte_hematologico.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/doctype/reporte_hematologico/reporte_hematologico.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/doctype/reporte_hematologico/reporte_hematologico.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Lewin Villar and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ReporteHematologico(Document): pass
24.363636
51
0.787313
e1926873db3745e80f9a414ed01f3d9ea050d13c
2,437
py
Python
insight.py
oguzserbetci/EffiCare
4a81b6ddcff6b3b7d37dd8a6a8cd0419d742709e
[ "MIT" ]
1
2020-12-27T23:01:37.000Z
2020-12-27T23:01:37.000Z
insight.py
oguzserbetci/EffiCare
4a81b6ddcff6b3b7d37dd8a6a8cd0419d742709e
[ "MIT" ]
null
null
null
insight.py
oguzserbetci/EffiCare
4a81b6ddcff6b3b7d37dd8a6a8cd0419d742709e
[ "MIT" ]
null
null
null
import csv import gzip import os from collections import defaultdict import numpy as np import torch def get_token_act(output, input, table_key, time_ind): t_indices = output['time_inds'][table_key] if (t_indices.size(-1) <= np.array(time_ind)).any(): return t_indices = t_indices[:, :, time_ind]....
36.373134
94
0.588018
3c1e692d5ba6848794523969da10160cb714d3e0
405
py
Python
flight_blender/wsgi.py
kant/flight-blender
0cc68ad405f4c650df5401dae1de1aa34204a462
[ "Apache-2.0" ]
2
2020-10-19T08:16:12.000Z
2022-01-24T12:33:20.000Z
flight_blender/wsgi.py
kant/flight-blender
0cc68ad405f4c650df5401dae1de1aa34204a462
[ "Apache-2.0" ]
2
2022-02-11T09:52:29.000Z
2022-02-11T09:52:37.000Z
flight_blender/wsgi.py
kant/flight-blender
0cc68ad405f4c650df5401dae1de1aa34204a462
[ "Apache-2.0" ]
6
2020-10-19T08:16:17.000Z
2021-08-17T21:02:55.000Z
""" WSGI config for flight_blender project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
23.823529
78
0.792593
29eff005d8488c03975118d42b0020d8308a8633
6,624
py
Python
backend/benefit/applications/services/ahjo_integration.py
jannetasa/yjdh
5d86a56c722dfbcee03110f66c7e7ddbea966db9
[ "MIT" ]
2
2021-05-10T09:28:35.000Z
2021-05-17T12:15:34.000Z
backend/benefit/applications/services/ahjo_integration.py
jannetasa/yjdh
5d86a56c722dfbcee03110f66c7e7ddbea966db9
[ "MIT" ]
931
2021-05-21T15:24:35.000Z
2022-03-31T20:07:40.000Z
backend/benefit/applications/services/ahjo_integration.py
jannetasa/yjdh
5d86a56c722dfbcee03110f66c7e7ddbea966db9
[ "MIT" ]
6
2021-07-06T11:07:02.000Z
2022-02-07T12:42:21.000Z
import os import zipfile from io import BytesIO import jinja2 import pdfkit from applications.enums import ApplicationStatus, OrganizationType from django.utils import timezone PDF_PATH = os.path.join(os.path.dirname(__file__) + "/pdf_templates") TEMPLATE_ID_BENEFIT_WITH_DE_MINIMIS_AID = "benefit_with_de_minimis_aid"...
37.851429
111
0.717089
3f9114c2dc9eaaa2474e924961acd389e76ab993
10,065
py
Python
zPE/util/__init__.py
T-Tony-T/mainframe-env-simulator
9ca8b726b5962502d53c7e8483c5e4fd89ce5ac6
[ "BSD-3-Clause" ]
3
2015-07-20T20:11:38.000Z
2019-07-17T01:53:50.000Z
zPE/util/__init__.py
T-Tony-T/mainframe-env-simulator
9ca8b726b5962502d53c7e8483c5e4fd89ce5ac6
[ "BSD-3-Clause" ]
null
null
null
zPE/util/__init__.py
T-Tony-T/mainframe-env-simulator
9ca8b726b5962502d53c7e8483c5e4fd89ce5ac6
[ "BSD-3-Clause" ]
2
2019-11-14T14:40:09.000Z
2021-01-21T21:58:58.000Z
# general purpose utility functions import os import re ### JCL argument parser ## Label Parser def bad_label(label): ''' Return: - the position (start at 1) of the first invalid char - 0 if all good - None if no label ''' if len(label) == 0: return None # no la...
30.874233
100
0.553005
98701daae3d5a99ebd5b1a5b6acb53852a873851
1,602
py
Python
nautobot/ipam/tests/test_graphql.py
PhillSimonds/nautobot
bf9f46b074ff1d060afba17d762e06bfd320b9a5
[ "Apache-2.0" ]
null
null
null
nautobot/ipam/tests/test_graphql.py
PhillSimonds/nautobot
bf9f46b074ff1d060afba17d762e06bfd320b9a5
[ "Apache-2.0" ]
null
null
null
nautobot/ipam/tests/test_graphql.py
PhillSimonds/nautobot
bf9f46b074ff1d060afba17d762e06bfd320b9a5
[ "Apache-2.0" ]
null
null
null
from django.test import override_settings from django.urls import reverse from rest_framework import status from nautobot.extras.models import Status from nautobot.ipam.models import Prefix from nautobot.utilities.testing import APITestCase class TestPrefix(APITestCase): def setUp(self): super().setUp() ...
37.255814
110
0.649813
8258b7f2649664a031c73845f0a884efe6bbcb42
14,884
py
Python
basicsr/models/image_restoration_model.py
dongliangcao/HINet
6fc75199b38418dcc95fd8c095d30f4db90e9887
[ "MIT" ]
237
2021-05-12T06:50:15.000Z
2022-03-31T13:45:17.000Z
basicsr/models/image_restoration_model.py
dongliangcao/HINet
6fc75199b38418dcc95fd8c095d30f4db90e9887
[ "MIT" ]
45
2021-05-18T12:06:22.000Z
2022-03-18T05:08:54.000Z
basicsr/models/image_restoration_model.py
dongliangcao/HINet
6fc75199b38418dcc95fd8c095d30f4db90e9887
[ "MIT" ]
46
2021-05-16T14:07:53.000Z
2022-03-31T09:14:00.000Z
# ------------------------------------------------------------------------ # Copyright (c) 2021 megvii-model. All Rights Reserved. # ------------------------------------------------------------------------ # Modified from BasicSR (https://github.com/xinntao/BasicSR) # Copyright 2018-2020 BasicSR Authors # -------------...
36.570025
149
0.519417
061c644df1774e2a2a20f89e7fc34c528fd476bf
1,942
py
Python
model_zoo/research/cv/wideresnet/src/save_callback.py
LottieWang/mindspore
1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0
[ "Apache-2.0" ]
null
null
null
model_zoo/research/cv/wideresnet/src/save_callback.py
LottieWang/mindspore
1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0
[ "Apache-2.0" ]
null
null
null
model_zoo/research/cv/wideresnet/src/save_callback.py
LottieWang/mindspore
1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.346154
96
0.652935
4e5e32c1b4c35b55968b457b7c8078977e43709d
7,202
py
Python
wit_transcriber.py
yshalsager/wit_transcriber
cb78089b6814f3a514f538117980807c378a16c3
[ "MIT" ]
7
2022-03-07T17:39:51.000Z
2022-03-15T09:06:00.000Z
wit_transcriber.py
yshalsager/wit_transcriber
cb78089b6814f3a514f538117980807c378a16c3
[ "MIT" ]
1
2022-03-07T18:51:24.000Z
2022-03-07T18:51:24.000Z
wit_transcriber.py
yshalsager/wit_transcriber
cb78089b6814f3a514f538117980807c378a16c3
[ "MIT" ]
null
null
null
import json import re import traceback from argparse import ArgumentParser from asyncio import BoundedSemaphore, ensure_future, gather, run from pathlib import Path from typing import List, Tuple from httpx import AsyncClient from pydub import AudioSegment from pydub.exceptions import CouldntDecodeError from ratelimit...
32.441441
105
0.567481
d670fcb6ea92eb4c484b5f727e47977c90a0b34a
1,398
py
Python
main.py
PrithaChakravarty/COVID-19-Tracker-with-Notification-System-using-Python
af41adc96a4813fa7fb5f4ec45a128b0f23dc1fc
[ "MIT" ]
7
2020-07-14T18:24:22.000Z
2020-08-13T01:55:09.000Z
main.py
PrithaChakravarty/COVID-19-Tracker-with-Notification-System-using-Python
af41adc96a4813fa7fb5f4ec45a128b0f23dc1fc
[ "MIT" ]
null
null
null
main.py
PrithaChakravarty/COVID-19-Tracker-with-Notification-System-using-Python
af41adc96a4813fa7fb5f4ec45a128b0f23dc1fc
[ "MIT" ]
null
null
null
from plyer import notification import requests from bs4 import BeautifulSoup import time def notifyMe(title, message): notification.notify( title = title, message = message, app_icon = "C:\\Users\\cprit\\Desktop\\COVIDNOTIFY\\icon.ico", timeout = 4 ) def getData(...
29.744681
155
0.548641
acf9dcfcd87620180de8d580ff63f4f41630f026
1,942
py
Python
tests/python/test_off_resonance.py
aTrotier/sycomore
32e438d3a90ca0a9d051bb6acff461e06079116d
[ "MIT" ]
14
2019-11-06T09:23:09.000Z
2022-01-11T19:08:36.000Z
tests/python/test_off_resonance.py
aTrotier/sycomore
32e438d3a90ca0a9d051bb6acff461e06079116d
[ "MIT" ]
2
2020-12-01T15:48:27.000Z
2020-12-04T15:19:37.000Z
tests/python/test_off_resonance.py
aTrotier/sycomore
32e438d3a90ca0a9d051bb6acff461e06079116d
[ "MIT" ]
2
2020-08-12T04:36:36.000Z
2021-05-27T13:17:34.000Z
import math import os import struct import unittest import sycomore from sycomore.units import * class TestOffResonance(unittest.TestCase): def test_off_resonance(self): species = sycomore.Species(0*Hz, 0*Hz, 0*um*um/ms) m0 = sycomore.Magnetization(0, 0, 1) pulse = sycomore.Pulse(90*deg, ...
34.070175
83
0.629763
263e1561ded36f7b6199463dfeca29c801539cc0
3,907
py
Python
kanmail/settings/constants.py
matbgn/Kanmail
9d668583811a11fa120822f2c885489580990bf3
[ "OpenSSL" ]
12
2019-02-10T21:18:53.000Z
2020-02-17T07:40:48.000Z
kanmail/settings/constants.py
matbgn/Kanmail
9d668583811a11fa120822f2c885489580990bf3
[ "OpenSSL" ]
71
2017-11-17T07:13:02.000Z
2020-04-03T15:25:43.000Z
kanmail/settings/constants.py
matbgn/Kanmail
9d668583811a11fa120822f2c885489580990bf3
[ "OpenSSL" ]
1
2020-02-15T03:16:13.000Z
2020-02-15T03:16:13.000Z
import platform import sys from os import environ, path from uuid import uuid4 from click import get_app_dir APP_NAME = 'Kanmail' DEFAULT_WINDOW_WIDTH = 1400 DEFAULT_WINDOW_HEIGHT = 800 DEFAULT_WINDOW_LEFT = 0 DEFAULT_WINDOW_TOP = 0 SESSION_TOKEN = str(uuid4()) ALIAS_FOLDER_NAMES = ['inbox', 'sent', 'archive', '...
27.907143
94
0.734579
5288bb662fac7f712882fc217fbcfca92e4a40d8
7,610
py
Python
dist/ba_data/python/bastd/actor/zoomtext.py
Bartixxx32/Bombsquad-Ballistica-Modded-Server
26d36f07a5b96702e4fbdf172c0d66671f1ee0bd
[ "MIT" ]
317
2020-04-04T00:33:10.000Z
2022-03-28T01:07:09.000Z
assets/src/ba_data/python/bastd/actor/zoomtext.py
Alshahriah/ballistica
326f6677a0118667e93ce9034849622ebef706fa
[ "MIT" ]
315
2020-04-04T22:33:10.000Z
2022-03-31T22:50:02.000Z
assets/src/ba_data/python/bastd/actor/zoomtext.py
Alshahriah/ballistica
326f6677a0118667e93ce9034849622ebef706fa
[ "MIT" ]
97
2020-04-04T01:32:17.000Z
2022-03-16T19:02:59.000Z
# Released under the MIT License. See LICENSE for details. # """Defined Actor(s).""" from __future__ import annotations import random from typing import TYPE_CHECKING import ba if TYPE_CHECKING: from typing import Any, Union, Sequence class ZoomText(ba.Actor): """Big Zooming Text. Category: Gameplay ...
38.434343
79
0.441787
e880412a0776b20fe506551c4ff0ec5318bb2951
17,944
py
Python
deepsvfilter/cnns/mobilenet_v2/mobilenet.py
genieus/DeepSVFilter
1c6bd4d6726b74456e88ffad6672deb96764ce1b
[ "MIT" ]
7
2020-07-28T05:55:58.000Z
2021-08-15T07:32:08.000Z
deepsvfilter/cnns/mobilenet_v2/mobilenet.py
genieus/DeepSVFilter
1c6bd4d6726b74456e88ffad6672deb96764ce1b
[ "MIT" ]
8
2020-11-13T17:52:02.000Z
2022-03-12T00:50:09.000Z
deepsvfilter/cnns/mobilenet_v2/mobilenet.py
genieus/DeepSVFilter
1c6bd4d6726b74456e88ffad6672deb96764ce1b
[ "MIT" ]
5
2021-01-11T15:02:14.000Z
2022-03-14T06:48:05.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.524229
80
0.686803
f21fc756719843ae1f24ed104bc2450e881cc86c
33,067
py
Python
rais/utilities/rais_information.py
rjazevedo/dados-unicamp
4b77906d5348647dcdba1b8cb09f46d2cac53457
[ "MIT" ]
null
null
null
rais/utilities/rais_information.py
rjazevedo/dados-unicamp
4b77906d5348647dcdba1b8cb09f46d2cac53457
[ "MIT" ]
null
null
null
rais/utilities/rais_information.py
rjazevedo/dados-unicamp
4b77906d5348647dcdba1b8cb09f46d2cac53457
[ "MIT" ]
null
null
null
from rais.verification import verification_functions from rais.extract import cleaning_functions # Return extension of original rais files from specified year def get_extension(year): if year <= 2010: return 'TXT' else: return 'txt' # Return a list with all columns from clean rais files def ge...
33.673116
77
0.443131
8186fe81319c922d8308a8dafc2e4b545e357c68
10,680
py
Python
robotcar_gtmat.py
moschramm/netvlad-mult-domains
9c35d6593b8c32248007d914d60a2944ca1c845d
[ "MIT" ]
1
2021-05-20T06:28:51.000Z
2021-05-20T06:28:51.000Z
robotcar_gtmat.py
moschramm/netvlad-mult-domains
9c35d6593b8c32248007d914d60a2944ca1c845d
[ "MIT" ]
null
null
null
robotcar_gtmat.py
moschramm/netvlad-mult-domains
9c35d6593b8c32248007d914d60a2944ca1c845d
[ "MIT" ]
null
null
null
""" A module used for building a dataset of day and night images. This implementation is adopted from: https://github.com/Nanne/pytorch-NetVlad The datasets are using images from the Oxford Robotcar Dataset (https://robotcar-dataset.robots.ox.ac.uk/). The image folders for the datasets should be placed in `root_dir`. ...
36.701031
80
0.63324
d0d6c0e4811371c316aab24693be8e18002c28a9
1,310
py
Python
src/sentry/middleware/proxy.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
1
2021-08-10T06:07:13.000Z
2021-08-10T06:07:13.000Z
src/sentry/middleware/proxy.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/middleware/proxy.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
1
2017-04-08T04:09:18.000Z
2017-04-08T04:09:18.000Z
from __future__ import absolute_import import six from django.conf import settings class SetRemoteAddrFromForwardedFor(object): def __init__(self): if not getattr(settings, 'SENTRY_USE_X_FORWARDED_FOR', True): from django.core.exceptions import MiddlewareNotUsed raise MiddlewareN...
31.190476
77
0.638168
0fc9217b364f8226406c7dbe226e23b6390cdfb7
1,717
py
Python
sdk/python/pulumi_azure_nextgen/containerservice/v20200601/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/containerservice/v20200601/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/containerservice/v20200601/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .agent_pool import * from .get_agent_pool import * from .get_managed_cluster imp...
38.155556
108
0.723355
09a59a540348d63b6f18bff8097a3963cbc201cc
7,425
py
Python
2020/Day20.py
hrmorley34/AdventofCode
74590422717fb5c6b80ef3fca226359d354c4aec
[ "MIT" ]
null
null
null
2020/Day20.py
hrmorley34/AdventofCode
74590422717fb5c6b80ef3fca226359d354c4aec
[ "MIT" ]
null
null
null
2020/Day20.py
hrmorley34/AdventofCode
74590422717fb5c6b80ef3fca226359d354c4aec
[ "MIT" ]
null
null
null
from puzzle_input import puzzle_input from collections import defaultdict, Counter class Tile: def __init__(self, text: str): id, *lines = text.splitlines() self.id = int(id[5:-1]) self.lines = lines[:10] def __repr__(self): return "Tile(\n {}\n)".format("\n ".join(self.line...
29.581673
82
0.490101
9081a462d136d7e6fcd259673c64969d9161fbf4
6,365
py
Python
datasets/yoruba_gv_ner/yoruba_gv_ner.py
hemildesai/datasets
69bc2ca01d3a4f599c5b56175046f21e88aaab07
[ "Apache-2.0" ]
1
2021-08-28T15:39:03.000Z
2021-08-28T15:39:03.000Z
datasets/yoruba_gv_ner/yoruba_gv_ner.py
hemildesai/datasets
69bc2ca01d3a4f599c5b56175046f21e88aaab07
[ "Apache-2.0" ]
null
null
null
datasets/yoruba_gv_ner/yoruba_gv_ner.py
hemildesai/datasets
69bc2ca01d3a4f599c5b56175046f21e88aaab07
[ "Apache-2.0" ]
1
2021-04-15T16:27:33.000Z
2021-04-15T16:27:33.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
39.04908
120
0.583032
ed7d095a89a8d338933a9e1dce8d84602f4549cb
2,610
py
Python
All Python Codes/2017-25-11-so-cross-validation-sklearn.py
bjfisica/MachineLearning
20349301ae7f82cd5048410b0cf1f7a5f7d7e5a2
[ "MIT" ]
52
2019-02-15T16:37:13.000Z
2022-02-17T18:34:30.000Z
All Python Codes/2017-25-11-so-cross-validation-sklearn.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
null
null
null
All Python Codes/2017-25-11-so-cross-validation-sklearn.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
22
2019-02-25T23:52:09.000Z
2021-09-21T03:09:35.000Z
# coding: utf-8 # ## Cross Validation # First, we'll try to build a model without cross-validation apply to it. Second, we'll use the same model with applying cross-validation and see if the accuracy score changed or not. # # ### Main contents: # * Build Support-Vector-Machine without cross-validation # * Apply the ...
24.622642
245
0.729502
00249a6df6cf09856767b75eaedd9ec44b274d04
1,451
py
Python
kupcimat/tello.py
kupcimat/tello
3626a1122a17ede0031450946b9c7084531cd004
[ "MIT" ]
null
null
null
kupcimat/tello.py
kupcimat/tello
3626a1122a17ede0031450946b9c7084531cd004
[ "MIT" ]
null
null
null
kupcimat/tello.py
kupcimat/tello
3626a1122a17ede0031450946b9c7084531cd004
[ "MIT" ]
null
null
null
import logging import threading from socket import socket from typing import Tuple import kupcimat.video as video def tello_timeout() -> int: return 5 def tello_address() -> Tuple[str, int]: return "192.168.10.1", 8889 def send_cmd(cmd_socket: socket, command: str) -> None: logging.info("action=send-...
28.45098
78
0.627154
bc1d4605e985abacb9003e85122d4f20a17eff50
22,311
py
Python
pandas/tests/frame/methods/test_quantile.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-07-08T15:15:57.000Z
2021-07-08T15:15:57.000Z
pandas/tests/frame/methods/test_quantile.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/methods/test_quantile.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-04-13T01:05:52.000Z
2021-04-13T01:05:52.000Z
import numpy as np import pytest import pandas as pd from pandas import ( DataFrame, Series, Timestamp, ) import pandas._testing as tm class TestDataFrameQuantile: @pytest.mark.parametrize( "df,expected", [ [ DataFrame( { ...
34.166922
88
0.509614
c348c392e50a9d7622d491b50f4df9a00931ef34
1,990
py
Python
cogdl/data/dataloader.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/data/dataloader.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/data/dataloader.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
from abc import ABCMeta import torch.utils.data from torch.utils.data.dataloader import default_collate from cogdl.data import Batch, Graph try: from typing import GenericMeta # python 3.6 except ImportError: # in 3.7, genericmeta doesn't exist but we don't need it class GenericMeta(type): pass ...
30.151515
81
0.649246
4d87990cb3b6051fe0bea5f8abc4a1f8651ebb9b
155
py
Python
pyslabs/__main__.py
grnydawn/pyslabs
c3732e8d4b58ba58d6e21a7ca99a375b5588a44f
[ "Apache-2.0" ]
null
null
null
pyslabs/__main__.py
grnydawn/pyslabs
c3732e8d4b58ba58d6e21a7ca99a375b5588a44f
[ "Apache-2.0" ]
null
null
null
pyslabs/__main__.py
grnydawn/pyslabs
c3732e8d4b58ba58d6e21a7ca99a375b5588a44f
[ "Apache-2.0" ]
null
null
null
"""main entry for pyslabs command-line interface""" if __name__ == "__main__": import sys from pyslabs.command import main sys.exit(main())
17.222222
51
0.677419
0c516994e5e6d14e61b454cc835d817b7dcd1b61
33,710
py
Python
podcastparser.py
drmikecrowe/podcastparser
6a70361edbb5c6a263dfe1871dad05d7e3506b7c
[ "0BSD" ]
87
2015-01-11T18:37:54.000Z
2022-03-29T04:58:52.000Z
podcastparser.py
Ryochan7/alpha-podcastparser
6a70361edbb5c6a263dfe1871dad05d7e3506b7c
[ "0BSD" ]
25
2016-12-29T14:17:52.000Z
2022-01-16T20:10:48.000Z
podcastparser.py
Ryochan7/alpha-podcastparser
6a70361edbb5c6a263dfe1871dad05d7e3506b7c
[ "0BSD" ]
32
2015-02-15T11:59:44.000Z
2021-12-27T10:31:21.000Z
# -*- coding: utf-8 -*- # # Podcastparser: A simple, fast and efficient podcast parser # Copyright (c) 2012, 2013, 2014, 2018, 2020 Thomas Perl <m@thp.io> # Copyright (c) 2016, 2017, 2018, 2019, 2020 Eric Le Lay <elelay@macports.org> # Copyright (c) 2020 E.S. Rosenberg <es.rosenberg+openu@gmail.com> # # Permission to u...
32.444658
111
0.619519
b45e73d53169f6e51ebee1dce42c9db8c8da50c0
403
py
Python
paas-ce/websocket/control/migrations/0022_auto_20200915_1814.py
kerven88/opsany-paas
78b83d0b6a46f3e70226ca99992d736b2af0af72
[ "Apache-2.0" ]
42
2021-06-16T12:06:03.000Z
2022-03-29T13:18:00.000Z
paas-ce/websocket/control/migrations/0022_auto_20200915_1814.py
kerven88/opsany-paas
78b83d0b6a46f3e70226ca99992d736b2af0af72
[ "Apache-2.0" ]
null
null
null
paas-ce/websocket/control/migrations/0022_auto_20200915_1814.py
kerven88/opsany-paas
78b83d0b6a46f3e70226ca99992d736b2af0af72
[ "Apache-2.0" ]
16
2021-07-13T01:17:57.000Z
2022-03-01T12:39:32.000Z
# Generated by Django 2.2.6 on 2020-09-15 18:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('control', '0021_agentadmin_show_name'), ] operations = [ migrations.AlterField( model_name='hostgroup', name='name',...
21.210526
64
0.60794
09b234ef0da954c393b541a97de76247766f579a
17,877
py
Python
huiqin/keras_cls_novec_v4.py
RandLive/Avito-Demand-Prediction-Challenge
eb2955c6cb799907071d8bbf7b31b73b163c604f
[ "MIT" ]
null
null
null
huiqin/keras_cls_novec_v4.py
RandLive/Avito-Demand-Prediction-Challenge
eb2955c6cb799907071d8bbf7b31b73b163c604f
[ "MIT" ]
null
null
null
huiqin/keras_cls_novec_v4.py
RandLive/Avito-Demand-Prediction-Challenge
eb2955c6cb799907071d8bbf7b31b73b163c604f
[ "MIT" ]
null
null
null
''' keras 初始版本 不使用词嵌入方式处理输入的文本信息 lb 0.2280 ''' import time notebookstart = time.time() import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE...
37.321503
156
0.676791
b4322c6335408dac20178777af6bf2c056248daa
4,329
py
Python
gluon/contrib/pymysql/err.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
97
2015-01-17T09:41:57.000Z
2022-03-15T11:39:03.000Z
gluon/contrib/pymysql/err.py
mohit3011/Quiz-Mate
17988a623abde439aef2b43fc8dc3162b5cae15e
[ "BSD-3-Clause" ]
1,054
2015-09-11T06:51:27.000Z
2022-03-30T09:46:54.000Z
gluon/contrib/pymysql/err.py
mohit3011/Quiz-Mate
17988a623abde439aef2b43fc8dc3162b5cae15e
[ "BSD-3-Clause" ]
80
2015-12-09T12:41:52.000Z
2022-02-16T11:46:42.000Z
import struct try: StandardError, Warning except ImportError: try: from exceptions import StandardError, Warning except ImportError: import sys e = sys.modules['exceptions'] StandardError = e.StandardError Warning = e.Warning from constants import ER import sys...
29.25
80
0.711943
0b625d2db9864018cadc237f694803509481371b
18,058
py
Python
diofant/tests/tensor/test_arrayop.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
57
2016-09-13T23:16:26.000Z
2022-03-29T06:45:51.000Z
diofant/tests/tensor/test_arrayop.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
402
2016-05-11T11:11:47.000Z
2022-03-31T14:27:02.000Z
diofant/tests/tensor/test_arrayop.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
20
2016-05-11T08:17:37.000Z
2021-09-10T09:15:51.000Z
import random import pytest from diofant import (Array, Derivative, Permutation, adjoint, conjugate, cos, derive_by_array, exp, log, permutedims, sin, symbols, tensorcontraction, tensorproduct, transpose) from diofant.abc import (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p...
70.264591
1,435
0.377063
6dffce5a2096fdf8ab87cdf6e45ee8254b0aa475
1,047
py
Python
gmprocess/metrics/imt/fas.py
norfordb/groundmotion
3f714894a34d9d37e1ac236f26b4366e25a05056
[ "CC0-1.0" ]
1
2019-08-16T16:11:23.000Z
2019-08-16T16:11:23.000Z
gmprocess/metrics/imt/fas.py
vinceq-usgs/gmprocess
2812dfd1803f8b2e0622c56cd8373b1c3fedb1a6
[ "CC0-1.0" ]
null
null
null
gmprocess/metrics/imt/fas.py
vinceq-usgs/gmprocess
2812dfd1803f8b2e0622c56cd8373b1c3fedb1a6
[ "CC0-1.0" ]
null
null
null
# Local imports from gmprocess.metrics.gather import gather_pgms from gmprocess.metrics.imt.imt import IMT imts, imcs = gather_pgms() valid_imcs = ['geometric_mean', 'arithmetic_mean', 'quadratic_mean'] class FAS(IMT): """Class defining steps and invalid imts, for fourier amplitude spectra.""" # making inva...
32.71875
79
0.633238
9c0335c2e8ab5db4346a8949d7f1911806e93a53
6,887
py
Python
tests/scripts/thread-cert/Cert_5_6_03_NetworkDataRegisterAfterAttachLeader.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/Cert_5_6_03_NetworkDataRegisterAfterAttachLeader.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/Cert_5_6_03_NetworkDataRegisterAfterAttachLeader.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # 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 # ...
44.147436
336
0.65689
bf7044421f7a1e9e5b439c95d430662dba3dd702
12,520
py
Python
main.py
FortniteFevers/peely-api
37824b298d0045d368390e6a5f335d003176db91
[ "CC0-1.0" ]
5
2020-11-06T07:41:41.000Z
2020-12-13T14:54:25.000Z
main.py
pirica/peely-api
37824b298d0045d368390e6a5f335d003176db91
[ "CC0-1.0" ]
2
2020-11-21T11:33:20.000Z
2021-01-31T18:00:14.000Z
main.py
pirica/peely-api
37824b298d0045d368390e6a5f335d003176db91
[ "CC0-1.0" ]
10
2020-11-20T22:22:26.000Z
2021-06-22T21:17:40.000Z
import asyncio import json import subprocess import sys import traceback import aiofiles import aiohttp import sanic import sanic.response from discord.ext import commands, tasks from datetime import datetime import SECRET from API.cdn import handler as cdn from API.v1.blogposts.competitive import handler as competit...
39.620253
146
0.548163
305cea3a4413e1b90db5987814f0403129ab297c
839
py
Python
api/models.py
RahulML2505/My-Django-App
57c93b1cbfd95e298d33bb2b2b632ee65533113d
[ "MIT" ]
null
null
null
api/models.py
RahulML2505/My-Django-App
57c93b1cbfd95e298d33bb2b2b632ee65533113d
[ "MIT" ]
null
null
null
api/models.py
RahulML2505/My-Django-App
57c93b1cbfd95e298d33bb2b2b632ee65533113d
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Member(models.Model): Id = models.AutoField(primary_key=True, null=False) Name = models.CharField(max_length=500, null=False) Membership = models.CharField(max_length=500, null=False) ExperianceType = models.CharField(max_length=500, null=F...
38.136364
83
0.740167
57726238a726062ef9d9a57c6ea06ef68e7c1d95
2,523
py
Python
c3po/utils.py
GuoJing/c3po-grpc-gateway
2fd6c2d872b27e7b4acb5186787de7591b958fdd
[ "MIT" ]
1
2016-04-28T12:49:21.000Z
2016-04-28T12:49:21.000Z
c3po/utils.py
GuoJing/c3po-grpc-gateway
2fd6c2d872b27e7b4acb5186787de7591b958fdd
[ "MIT" ]
null
null
null
c3po/utils.py
GuoJing/c3po-grpc-gateway
2fd6c2d872b27e7b4acb5186787de7591b958fdd
[ "MIT" ]
null
null
null
import json import sys import imp import importlib from google.protobuf import json_format from google.protobuf import descriptor_pb2 class ProtoParseException(Exception): pass class ParseException(Exception): pass def dynamic_client_getter(stubs, service_name): stub = stubs.get(service_name) if ...
28.670455
89
0.628617
a309332266761533050f448ac3ace9d65632dc02
9,382
py
Python
allennlp/data/token_indexers/pretrained_transformer_indexer.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2020-09-19T07:09:27.000Z
2020-09-19T07:09:27.000Z
allennlp/data/token_indexers/pretrained_transformer_indexer.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
null
null
null
allennlp/data/token_indexers/pretrained_transformer_indexer.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2020-03-01T13:01:34.000Z
2020-03-01T13:01:34.000Z
from typing import Dict, List, Optional, Tuple import logging import torch from allennlp.common.util import pad_sequence_to_length from overrides import overrides from allennlp.data.vocabulary import Vocabulary from allennlp.data.tokenizers import PretrainedTransformerTokenizer from allennlp.data.tokenizers.token imp...
44.254717
111
0.637391
4ab7e8daafd4ba25a2ca68b4b6f425faf36a8d0f
35,692
py
Python
python/EStestunitaire.py
anne-locolabs/Environnemental-Sensing
aae3b877ee3c49f0f4ee605d891663a9b9769c4c
[ "MIT" ]
null
null
null
python/EStestunitaire.py
anne-locolabs/Environnemental-Sensing
aae3b877ee3c49f0f4ee605d891663a9b9769c4c
[ "MIT" ]
null
null
null
python/EStestunitaire.py
anne-locolabs/Environnemental-Sensing
aae3b877ee3c49f0f4ee605d891663a9b9769c4c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Aug 1 22:05:08 2021 @author: Philippe@loco-labs.io The `ES.EStestunitaire` module contains the unit tests (class unittest) for all the Environmental Sensing functions. """ import unittest #import os #os.chdir('C:/Users/a179227/OneDrive - Alliance/perso Wx/ES standard/pyth...
55.943574
147
0.598734
c9a8e90789eb01c20c49d1e946ea2e52300449e7
2,253
py
Python
conviz/visualizer.py
PhTrempe/conviz
b0d5a3a357ed013223847bcea5fa0df46e44de02
[ "MIT" ]
null
null
null
conviz/visualizer.py
PhTrempe/conviz
b0d5a3a357ed013223847bcea5fa0df46e44de02
[ "MIT" ]
null
null
null
conviz/visualizer.py
PhTrempe/conviz
b0d5a3a357ed013223847bcea5fa0df46e44de02
[ "MIT" ]
null
null
null
import numpy from PIL import Image from conviz.gradient_ascent_optimizer import GradientAscentOptimizer from conviz.utils.image_util import ImageUtil class Visualizer(object): """ A convolutional filter visualizer. Sample use: >>> from keras.models import load_model >>> model = load_...
37.55
77
0.662228
8f85e5c8253ce887d5d97a3c5eca3cf5e857ebff
2,036
py
Python
utils/components/scoreSubTreeWidget.py
chlwodud77/student-assesment-manager
48808c9cf7e81bc240938b097dbb04e5e941e6a6
[ "Apache-2.0" ]
null
null
null
utils/components/scoreSubTreeWidget.py
chlwodud77/student-assesment-manager
48808c9cf7e81bc240938b097dbb04e5e941e6a6
[ "Apache-2.0" ]
6
2020-08-01T17:25:01.000Z
2022-02-09T03:21:22.000Z
utils/components/scoreSubTreeWidget.py
chlwodud77/student-assesment-manager
48808c9cf7e81bc240938b097dbb04e5e941e6a6
[ "Apache-2.0" ]
null
null
null
from PyQt5 import QtGui from PyQt5.QtWidgets import QTreeWidget, QMessageBox, QProgressBar from tqdm import tqdm from model import Score as Sc from utils import copyManager from utils.adapter import subjectTreeWidgetAdapter class ScoreSubTreeWidget(QTreeWidget): def __init__(self): QTreeWidget.__init__(...
45.244444
120
0.602161
a844cd13a283c5f00df386cc89a719d3c7e67395
1,419
py
Python
lib/galaxy/datatypes/flow.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
47
2015-10-21T23:30:30.000Z
2022-03-09T06:51:32.000Z
lib/galaxy/datatypes/flow.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
78
2019-01-18T08:12:49.000Z
2022-03-13T08:56:41.000Z
lib/galaxy/datatypes/flow.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
35
2015-10-30T13:09:40.000Z
2021-05-03T23:17:46.000Z
""" Flow analysis datatypes. """ import logging from galaxy.datatypes.binary import Binary from galaxy.datatypes.sniff import build_sniff_from_prefix from . import data log = logging.getLogger(__name__) @build_sniff_from_prefix class FCS(Binary): """Class describing an FCS binary file""" file_ext = "fcs" ...
28.38
99
0.618041
9fea504cb6180f6aed260311dbac47a297686c04
7,369
py
Python
app/libs/sql/database_wrapper.py
regg00/docker-xmedius-adsync
738bdb82d37173c9363d69c8148a95c43043aeba
[ "MIT" ]
null
null
null
app/libs/sql/database_wrapper.py
regg00/docker-xmedius-adsync
738bdb82d37173c9363d69c8148a95c43043aeba
[ "MIT" ]
null
null
null
app/libs/sql/database_wrapper.py
regg00/docker-xmedius-adsync
738bdb82d37173c9363d69c8148a95c43043aeba
[ "MIT" ]
null
null
null
#//////////////////////////////////////////////////////////////////////////// # Copyright (c) 2012 Sagemcom Canada Permission to use this work # for any purpose must be obtained in writing from Sagemcom Canada # 5252 de Maisonneuve Blvd. West, suite 400, Montreal, Quebec H4A 3S5 #///////////////////////////////////////...
36.845
161
0.64215
49ff0f229fd1baef08cb9f31d5a6703b2fbd8ff3
1,036
py
Python
representation/CC2Vec/lmg_cc2ftr_interface.py
Trustworthy-Software/BATS
eb122150dff61543bd8c88ac7e08987a0a3e47e0
[ "MIT" ]
1
2022-03-17T13:17:35.000Z
2022-03-17T13:17:35.000Z
representation/CC2Vec/lmg_cc2ftr_interface.py
HaoyeTianCoder/BATS
eb122150dff61543bd8c88ac7e08987a0a3e47e0
[ "MIT" ]
null
null
null
representation/CC2Vec/lmg_cc2ftr_interface.py
HaoyeTianCoder/BATS
eb122150dff61543bd8c88ac7e08987a0a3e47e0
[ "MIT" ]
null
null
null
from representation.CC2Vec.lmg_cli import read_args_lmg, get_patch_cc2v, extracted_cc2ftr from representation.CC2Vec.lmg_padding import processing_data import pickle def learned_feature(patch_file, load_model='cc2ftr.pt', dictionary=None): params = read_args_lmg().parse_args() para...
41.44
164
0.732625
ccce7678e3e3bff7184a6ad3087694d765f5b4c2
845
py
Python
landlab/plot/tests/test_channel_profile.py
cctrunz/landlab
4e4ef12f4bae82bc5194f1dcc9af8ff1a7c20939
[ "MIT" ]
null
null
null
landlab/plot/tests/test_channel_profile.py
cctrunz/landlab
4e4ef12f4bae82bc5194f1dcc9af8ff1a7c20939
[ "MIT" ]
1
2016-03-16T02:34:08.000Z
2016-04-20T19:31:30.000Z
landlab/plot/tests/test_channel_profile.py
cctrunz/landlab
4e4ef12f4bae82bc5194f1dcc9af8ff1a7c20939
[ "MIT" ]
null
null
null
import pytest from landlab import RasterModelGrid from landlab.components import FlowAccumulator from landlab.plot import analyze_channel_network_and_plot from landlab.plot.channel_profile import channel_nodes def test_route_to_multiple_error_raised(): mg = RasterModelGrid((10, 10)) z = mg.add_zeros("node", ...
30.178571
57
0.700592
74b306acd552336700e397e4f03c9f2060f7285f
8,264
py
Python
tema5/function_aproximator/deep.py
oscarramos2001/Oscar-Marino-Ramos
c05e497b467aab4572f3578f1b9068d4585106d2
[ "MIT" ]
112
2018-11-19T17:23:40.000Z
2022-03-29T05:36:14.000Z
tema5/function_aproximator/deep.py
BrujitoOz/ia-course
c05e497b467aab4572f3578f1b9068d4585106d2
[ "MIT" ]
null
null
null
tema5/function_aproximator/deep.py
BrujitoOz/ia-course
c05e497b467aab4572f3578f1b9068d4585106d2
[ "MIT" ]
187
2018-11-28T11:38:02.000Z
2022-03-16T11:18:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 8 11:17:49 2018 @author: juangabriel """ import torch class DeepActor(torch.nn.Module): def __init__(self, input_shape, output_shape, device = torch.device("cpu")): """ Una red neuronal convolucional profunda que produci...
47.768786
149
0.580348
f60e007538abd7b8b1ca8e2fc7c69d486fb7f447
55,980
py
Python
tests/test_parser.py
hewei198711/httprunner2.5.7
fb4ca1abd9c50b3cef288adf29cce3217c7d8e91
[ "Apache-2.0" ]
null
null
null
tests/test_parser.py
hewei198711/httprunner2.5.7
fb4ca1abd9c50b3cef288adf29cce3217c7d8e91
[ "Apache-2.0" ]
null
null
null
tests/test_parser.py
hewei198711/httprunner2.5.7
fb4ca1abd9c50b3cef288adf29cce3217c7d8e91
[ "Apache-2.0" ]
null
null
null
import os import time import unittest from prettyprinter import pprint from httprunner import exceptions, loader, parser from httprunner.loader import load from tests.debugtalk import gen_random_string, sum_two class TestParserBasic(unittest.TestCase): def test_parse_string_value(self): self.assertEqua...
38.983287
146
0.521901
e6e1772a5ab3480cb0adc4d1d7ca7576f4bef746
7,092
py
Python
src/main/python/watson_assistant_func.py
MagnusToy/assistant-improve-recommendations-notebook
1a529dde93dc3fdbc90e0a78a1873c42c036785d
[ "Apache-2.0" ]
null
null
null
src/main/python/watson_assistant_func.py
MagnusToy/assistant-improve-recommendations-notebook
1a529dde93dc3fdbc90e0a78a1873c42c036785d
[ "Apache-2.0" ]
null
null
null
src/main/python/watson_assistant_func.py
MagnusToy/assistant-improve-recommendations-notebook
1a529dde93dc3fdbc90e0a78a1873c42c036785d
[ "Apache-2.0" ]
null
null
null
import re import json import pandas as pd import time #from watson_developer_cloud import WatsonApiException #from ibm_watson import WatsonApiException from ibm_watson import ApiException import os def get_logs(num_logs, log_list, project_creds, log_filter=None): """This function calls Watson Assistant API to ret...
46.051948
120
0.605048
9e76e34c5a4adc58e8f551ede72bd579e5696dc1
35,561
py
Python
ai4water/hyperopt/utils.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
12
2020-10-13T08:23:17.000Z
2021-01-22T04:36:21.000Z
ai4water/hyperopt/utils.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
1
2020-10-15T02:42:52.000Z
2020-10-15T02:51:07.000Z
ai4water/hyperopt/utils.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
2
2020-11-23T04:45:38.000Z
2020-11-26T10:12:34.000Z
import os import json from itertools import islice from pickle import PicklingError import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt try: from hyperopt import space_eval, hp from hyperopt.base import miscs_to_idxs_vals # todo main_plot_1D_attachment except Impor...
33.77113
123
0.571609
5b291841f816da0298a2bd65047bdf70fba30735
210
py
Python
Mourse_courses/api_views.py
DarishkaAMS/Django_Projects-Mourse_catalog
d11606bc75b6887a260236a6546a4ea3ce050088
[ "MIT" ]
null
null
null
Mourse_courses/api_views.py
DarishkaAMS/Django_Projects-Mourse_catalog
d11606bc75b6887a260236a6546a4ea3ce050088
[ "MIT" ]
null
null
null
Mourse_courses/api_views.py
DarishkaAMS/Django_Projects-Mourse_catalog
d11606bc75b6887a260236a6546a4ea3ce050088
[ "MIT" ]
null
null
null
from django.http import JsonResponse from my_mourse.models import Mourse def home_page_view(request): my_title = "Welcome to Mourse Courses" data = {"title": my_title} return JsonResponse(data)
19.090909
42
0.742857
b59321b202862b91ce6a3bf8fd055eb77d9a4976
1,496
py
Python
stac_pydantic/collection.py
tesselo/stac-pydantic
9a5a6534b9fe48b0106317e1a6fc5a09bf95a27b
[ "MIT" ]
14
2021-05-19T19:06:01.000Z
2022-03-24T11:41:10.000Z
stac_pydantic/collection.py
tesselo/stac-pydantic
9a5a6534b9fe48b0106317e1a6fc5a09bf95a27b
[ "MIT" ]
43
2020-05-20T23:42:30.000Z
2021-03-02T19:40:20.000Z
stac_pydantic/collection.py
tesselo/stac-pydantic
9a5a6534b9fe48b0106317e1a6fc5a09bf95a27b
[ "MIT" ]
7
2021-04-16T12:55:15.000Z
2022-03-01T19:09:25.000Z
from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, constr from stac_pydantic.catalog import Catalog from stac_pydantic.shared import Asset, NumType, Provider class SpatialExtent(BaseModel): """ https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/coll...
26.714286
115
0.706551
e712aa9ab0e01b98b82f373f151a0ec5f2dbcc9e
1,059
py
Python
libscampi/contrib/cms/communism/templatetags/google.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
2
2016-07-28T19:39:49.000Z
2021-12-10T15:01:54.000Z
libscampi/contrib/cms/communism/templatetags/google.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
null
null
null
libscampi/contrib/cms/communism/templatetags/google.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
1
2016-01-20T23:49:36.000Z
2016-01-20T23:49:36.000Z
from django import template from django.utils.encoding import force_unicode from classytags.core import Tag, Options from classytags.arguments import Argument register = template.Library() class Urchin(Tag): name = "urchin" options = Options( Argument('google_id',required=True, resolve=True) ) ...
34.16129
138
0.611898
c075903f7b64b0383f641d22109c003123a2e338
15,000
py
Python
parts/features.py
AdrianDrechsel/nvidia-jasper-german
b6f0dd5d74b8f1961573034d99a7278322babd3f
[ "Apache-2.0" ]
11
2020-01-29T23:17:55.000Z
2022-02-09T10:40:16.000Z
parts/features.py
AdrianDrechsel/nvidia-jasper-german
b6f0dd5d74b8f1961573034d99a7278322babd3f
[ "Apache-2.0" ]
null
null
null
parts/features.py
AdrianDrechsel/nvidia-jasper-german
b6f0dd5d74b8f1961573034d99a7278322babd3f
[ "Apache-2.0" ]
1
2021-05-04T16:10:10.000Z
2021-05-04T16:10:10.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. 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 ...
40.76087
176
0.5866
7df57df66e3331c995bdb3f807458e368ec89fe3
3,521
py
Python
xlsxwriter/test/worksheet/test_write_page_margins.py
DeltaEpsilon7787/XlsxWriter
550b9c5bd678c861dcc9f6f4072b33a69566e065
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
xlsxwriter/test/worksheet/test_write_page_margins.py
DeltaEpsilon7787/XlsxWriter
550b9c5bd678c861dcc9f6f4072b33a69566e065
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
xlsxwriter/test/worksheet/test_write_page_margins.py
jmcnamara/test_py_github_actions
d445d5d98b038b63453dd70c9c1a9ca1b325cb47
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ...worksheet import Worksheet class TestWritePageMargins(unittest.TestCase): """ Test the Wo...
32.009091
108
0.615734
1f91cf9ece63b7653dd3d13e2bdaf83fe7e8de70
2,404
py
Python
rhouser/migrations/0001_initial.py
freakboy3742/rho-django-user
43d8bdb4577bce0856d9e218352f024f1402495e
[ "BSD-3-Clause" ]
5
2017-06-19T10:54:50.000Z
2018-07-29T02:04:06.000Z
rhouser/migrations/0001_initial.py
freakboy3742/rho-django-user
43d8bdb4577bce0856d9e218352f024f1402495e
[ "BSD-3-Clause" ]
null
null
null
rhouser/migrations/0001_initial.py
freakboy3742/rho-django-user
43d8bdb4577bce0856d9e218352f024f1402495e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-10-25 12:07 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0006_require_contenttypes_0002'), ...
58.634146
266
0.658902
2fa990719f15b62d99e9eca3793f700445b56467
6,432
py
Python
client/level/level_holder.py
jaxsenh/the-devil-that-lurks
89fa85c461a8da55a0b7d28e32dd8144d6cac8ca
[ "MIT" ]
1
2020-05-28T03:21:44.000Z
2020-05-28T03:21:44.000Z
client/level/level_holder.py
jaxsenh/the-devil-that-lurks
89fa85c461a8da55a0b7d28e32dd8144d6cac8ca
[ "MIT" ]
null
null
null
client/level/level_holder.py
jaxsenh/the-devil-that-lurks
89fa85c461a8da55a0b7d28e32dd8144d6cac8ca
[ "MIT" ]
null
null
null
from level.mainmenu import MainMenuLevel from level.day import DayLevel from level.lobby import LobbyLevel from level.night import NightLevel from objects.alert import Alert from direct.directnotify.DirectNotifyGlobal import directNotify from communications.datagrams import dg_goodbye from panda3d.core import VirtualFi...
32.16
110
0.608364
7bf83e05b1b5169d2b926ce2e099de1861a78d2b
2,757
py
Python
loss.py
MuhammedAshraf2020/yolo_using_pytorch
c6de8fd6c725db13792239bc7e4b4d4a71d3cd50
[ "MIT" ]
1
2021-08-03T13:33:35.000Z
2021-08-03T13:33:35.000Z
loss.py
MuhammedAshraf2020/yolo_using_pytorch
c6de8fd6c725db13792239bc7e4b4d4a71d3cd50
[ "MIT" ]
null
null
null
loss.py
MuhammedAshraf2020/yolo_using_pytorch
c6de8fd6c725db13792239bc7e4b4d4a71d3cd50
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from utils import intersection_over_union class YoloLoss(nn.Module): def __init__(self , S = 7 , B = 2 , C = 20): super(YoloLoss , self).__init__() # S * S number of the celles 7 * 7 # B number of Bounding box 1 # C number of classes 20 self.S = S self.B ...
42.415385
139
0.597388
d64f5f1535feeda890a40f99fdcff11e0a172e70
3,025
py
Python
test.py
veejayts/face-filter-dlib
468f89ef59b5321a5053ae44a588bc21cedbde68
[ "MIT" ]
1
2022-02-08T04:08:18.000Z
2022-02-08T04:08:18.000Z
test.py
veejayts/face-filter-dlib
468f89ef59b5321a5053ae44a588bc21cedbde68
[ "MIT" ]
1
2021-03-20T10:01:27.000Z
2021-03-20T10:01:27.000Z
test.py
veejayts/face-filter-dlib
468f89ef59b5321a5053ae44a588bc21cedbde68
[ "MIT" ]
null
null
null
from typing import final import cv2 import numpy as np import dlib from math import hypot, pow, sqrt # CONSTANTS ESCAPE_KEY_CODE = 27 cap = cv2.VideoCapture(0) detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") cooler_img = cv2.imread('./assets/cooler...
36.890244
115
0.638017
0b4749e87b694c5d0515fbeb5e1921041ee72ea5
332
py
Python
tests/test_supported_languages.py
IL2HorusTeam/il2fb-commons
2d2084dbd5752847d96a8449622ef559c444a076
[ "MIT" ]
null
null
null
tests/test_supported_languages.py
IL2HorusTeam/il2fb-commons
2d2084dbd5752847d96a8449622ef559c444a076
[ "MIT" ]
null
null
null
tests/test_supported_languages.py
IL2HorusTeam/il2fb-commons
2d2084dbd5752847d96a8449622ef559c444a076
[ "MIT" ]
null
null
null
import unittest from il2fb.commons.supported_languages import SUPPORTED_LANGUAGES class SupportedLanguagesTestCase(unittest.TestCase): def test_names(self): self.assertEqual(SUPPORTED_LANGUAGES.names(), ["EN", "RU", ]) def test_default_language(self): self.assertEqual(SUPPORTED_LANGUAGES.get_default()....
25.538462
66
0.783133
d5ec1afc5e6b3f00818e70ec883c691016328469
9,552
py
Python
tests/test_staticfiles.py
sburba/starlette
89ed22a37ca8a2c2d4503769f56bfe7514927374
[ "BSD-3-Clause" ]
2
2021-09-02T05:23:33.000Z
2021-11-14T15:52:58.000Z
tests/test_staticfiles.py
sburba/starlette
89ed22a37ca8a2c2d4503769f56bfe7514927374
[ "BSD-3-Clause" ]
3
2022-03-01T12:03:23.000Z
2022-03-01T12:03:41.000Z
tests/test_staticfiles.py
sburba/starlette
89ed22a37ca8a2c2d4503769f56bfe7514927374
[ "BSD-3-Clause" ]
null
null
null
import os import pathlib import time import anyio import pytest from starlette.applications import Starlette from starlette.requests import Request from starlette.routing import Mount from starlette.staticfiles import StaticFiles def test_staticfiles(tmpdir, test_client_factory): path = os.path.join(tmpdir, "ex...
33.28223
86
0.688023
4ca5b55f417c19cfb042cc39761649eda494d3c7
21,039
py
Python
0.3_missing value imputation/0.1_complete_case_analysis.py
Akshaykumarcp/ML-Feature-Engineering
456c3a729d67ec2cb6115a27befc0d775fb85e97
[ "MIT" ]
null
null
null
0.3_missing value imputation/0.1_complete_case_analysis.py
Akshaykumarcp/ML-Feature-Engineering
456c3a729d67ec2cb6115a27befc0d775fb85e97
[ "MIT" ]
null
null
null
0.3_missing value imputation/0.1_complete_case_analysis.py
Akshaykumarcp/ML-Feature-Engineering
456c3a729d67ec2cb6115a27befc0d775fb85e97
[ "MIT" ]
null
null
null
""" COMPLETE CASE ANALYSIS [CAA] - A.K.A list wise deletion of cases - consists in discarding observations where values in any of the variables are missing - complete case analysis means literally analysing only those observations for which there is information in all of the variables in the dataset. CAN I APPLY...
45.538961
961
0.567993
6007ad5da99ce3dc6e30ea218020f5b46548f733
6,578
py
Python
tensorflow/contrib/learn/python/learn/tests/test_nonlinear.py
smrutiranjans/tensorflow
d8e8b872eae63188c75046d5bb068e03a81b3f85
[ "Apache-2.0" ]
7
2016-04-24T19:06:10.000Z
2018-10-03T16:33:51.000Z
tensorflow/contrib/learn/python/learn/tests/test_nonlinear.py
smrutiranjans/tensorflow
d8e8b872eae63188c75046d5bb068e03a81b3f85
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/tests/test_nonlinear.py
smrutiranjans/tensorflow
d8e8b872eae63188c75046d5bb068e03a81b3f85
[ "Apache-2.0" ]
3
2017-05-24T06:58:14.000Z
2020-02-15T14:21:00.000Z
# Copyright 2015-present The Scikit Flow 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 require...
41.898089
88
0.622682
3646adc3bc0361f260af8b837a491ad722bb0827
437
py
Python
src/UQpy/sampling/adaptive_kriging_functions/__init__.py
SURGroup/UncertaintyQuantification
a94c8db47d07134ea2b3b0a3ca53ca818532c3e6
[ "MIT" ]
null
null
null
src/UQpy/sampling/adaptive_kriging_functions/__init__.py
SURGroup/UncertaintyQuantification
a94c8db47d07134ea2b3b0a3ca53ca818532c3e6
[ "MIT" ]
null
null
null
src/UQpy/sampling/adaptive_kriging_functions/__init__.py
SURGroup/UncertaintyQuantification
a94c8db47d07134ea2b3b0a3ca53ca818532c3e6
[ "MIT" ]
null
null
null
from UQpy.sampling.adaptive_kriging_functions.ExpectedFeasibility import * from UQpy.sampling.adaptive_kriging_functions.ExpectedImprovement import * from UQpy.sampling.adaptive_kriging_functions.ExpectedImprovementGlobalFit import * from UQpy.sampling.adaptive_kriging_functions.baseclass import * from UQpy.sampling.ad...
62.428571
83
0.89016
6744ec5258b655793b2f9357415b8eaf063d2ccf
308
py
Python
applications/DemStructuresCouplingApplication/DemStructuresCouplingApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/DemStructuresCouplingApplication/DemStructuresCouplingApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/DemStructuresCouplingApplication/DemStructuresCouplingApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
# Application dependent names and paths from KratosMultiphysics import _ImportApplication from KratosDemStructuresCouplingApplication import * application = KratosDemStructuresCouplingApplication() application_name = "KratosDemStructuresCouplingApplication" _ImportApplication(application, application_name)
44
59
0.892857
ff2c978e9516778402bba8d5085527a5ac63d294
35,923
py
Python
metapool/metapool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
metapool/metapool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
metapool/metapool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
import os import re import numpy as np import pandas as pd import string import sys import seaborn as sns import matplotlib.pyplot as plt import sample_sheet import tempfile import collections import warnings from io import StringIO def read_plate_map_csv(f, sep = '\t'): """ reads tab-delimited plate map into...
33.698874
110
0.611586
fbf2b51422442c26fce8da7d7b14bf710b4584e9
1,885
py
Python
scripts/run_dataset.py
marvinsohn/ose-course-data-science
250f2bac7a3aafe1367a970c8b09a2c9fed67f0a
[ "MIT" ]
62
2019-04-02T11:51:06.000Z
2020-07-11T05:28:27.000Z
scripts/run_dataset.py
marvinsohn/ose-course-data-science
250f2bac7a3aafe1367a970c8b09a2c9fed67f0a
[ "MIT" ]
49
2019-04-05T10:57:07.000Z
2020-07-07T20:41:19.000Z
scripts/run_dataset.py
HumanCapitalAnalysis/ose-data-science
d5be68de68f170f8e8f11c9ed635b42f19100f87
[ "MIT" ]
46
2019-04-03T08:31:02.000Z
2020-07-13T12:43:26.000Z
#!/usr/bin/env python import os from itertools import product import pandas as pd from auxiliary import DATASETS_ROOT def from_dta_to_csv(textbook, dataset): """Transfer the dataset from *.dta to a csv file.""" substring = textbook + "/" + dataset df = pd.read_stata("sources/" + substring + ".dta") d...
38.469388
95
0.734748
07f9f42a29fe52eb88c3dd9fdd5685bf781c2f04
1,348
py
Python
azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36: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 ...
30.636364
76
0.567507
081579aaeaa4f929cbff98c76922b5f976d5dc8c
204
py
Python
tools/flake8_hook.py
Keris/creditscoring
0edd37f05fd9a02259a645bc2d12e91e97fca638
[ "MIT" ]
4
2020-06-16T06:33:25.000Z
2021-07-04T13:41:28.000Z
tools/flake8_hook.py
Keris/creditscoring
0edd37f05fd9a02259a645bc2d12e91e97fca638
[ "MIT" ]
null
null
null
tools/flake8_hook.py
Keris/creditscoring
0edd37f05fd9a02259a645bc2d12e91e97fca638
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from flake8.main import git if __name__ == '__main__': sys.exit( git.hook( strict=True, lazy=git.config_for('lazy'), ) )
15.692308
40
0.539216
40be849258a79932a06b87577a142adac460e09d
18,629
py
Python
sdk/python/pulumi_azure_native/documentdb/v20200901/mongo_db_resource_mongo_db_collection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20200901/mongo_db_resource_mongo_db_collection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20200901/mongo_db_resource_mongo_db_collection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
59.900322
3,062
0.702453
4dd76d279b9128d2fc5e07461693897d98b8446c
1,610
py
Python
data-preparation/EDS_split_train_dev.py
jgontrum/am-parser
80d8d4f3449ba80dc1893e7e9e2ca30bdf9d71a9
[ "Apache-2.0" ]
22
2019-08-01T05:03:04.000Z
2021-12-24T06:51:48.000Z
data-preparation/EDS_split_train_dev.py
jgontrum/am-parser
80d8d4f3449ba80dc1893e7e9e2ca30bdf9d71a9
[ "Apache-2.0" ]
20
2019-08-11T21:04:48.000Z
2021-11-19T17:48:47.000Z
data-preparation/EDS_split_train_dev.py
jgontrum/am-parser
80d8d4f3449ba80dc1893e7e9e2ca30bdf9d71a9
[ "Apache-2.0" ]
5
2019-08-01T05:03:57.000Z
2020-12-11T17:37:09.000Z
# # Copyright (c) 2020 Saarland University. # # This file is part of AM Parser # (see https://github.com/coli-saar/am-parser/). # # 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://...
31.568627
118
0.578261