hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1dab318995e43445b733cd2c9002056c17b4b26e
5,073
py
Python
atomicListParser/atomic_list_parser.py
j-be/DSP-generativeTrack
067338f9ba61eb0cacffafdbec743af97a3b4890
[ "MIT" ]
null
null
null
atomicListParser/atomic_list_parser.py
j-be/DSP-generativeTrack
067338f9ba61eb0cacffafdbec743af97a3b4890
[ "MIT" ]
null
null
null
atomicListParser/atomic_list_parser.py
j-be/DSP-generativeTrack
067338f9ba61eb0cacffafdbec743af97a3b4890
[ "MIT" ]
null
null
null
""" Parser for data provided by http://www.johnstonsarchive.net/nuclear/tests/index.html. Autor: Juri Berlanda License: MIT This script takes the values from the right columns (they unfortunately differ in the various files), filters the data for explosions having more then 1 kiloton, parses the dates, maps the date ...
28.988571
118
0.612852
1dab5593b762fcdf054046d9c5c58c6062bac8bc
2,855
py
Python
proxypool/setting.py
Ethan-Predator/ProxyPool
2494191a9fb160fb76638759cd23c83ae8068e7f
[ "MIT" ]
null
null
null
proxypool/setting.py
Ethan-Predator/ProxyPool
2494191a9fb160fb76638759cd23c83ae8068e7f
[ "MIT" ]
null
null
null
proxypool/setting.py
Ethan-Predator/ProxyPool
2494191a9fb160fb76638759cd23c83ae8068e7f
[ "MIT" ]
null
null
null
import platform from os.path import dirname, abspath, join from environs import Env from loguru import logger from proxypool.utils.parse import parse_redis_connection_string env = Env() env.read_env() # definition of flags IS_WINDOWS = platform.system().lower() == 'windows' # definition of dirs ROOT_DIR = dirname(d...
34.817073
137
0.745009
1dab63288ae8063109fd6ae2aa03589dde722e69
20,680
py
Python
lib/runner.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
lib/runner.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
lib/runner.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import pickle import random import logging import os import cv2 import torch import numpy as np from tqdm import tqdm, trange import pdb from time import * import torch.nn.functional as F def get_inter_with_border_mul(bboxes, H, W): """ 并行得到N个anchor与边界的交点 bboxes : torch.Tensor (N, 4) in (x, y, w, a) "...
51.315136
191
0.526499
1dab7e9c276b5df8f6495928e73b525e2824ca42
5,757
py
Python
zerver/lib/send_email.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/lib/send_email.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/lib/send_email.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
from django.conf import settings from django.core.mail import EmailMultiAlternatives from django.template import loader from django.utils.timezone import now as timezone_now from django.template.exceptions import TemplateDoesNotExist from zerver.models import UserProfile, ScheduledEmail, get_user_profile_by_id, \ E...
44.627907
103
0.690811
1dabf454fe17bc3ccbc66202c015b61efecf0a2a
13,084
py
Python
swagger_client/rest.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
swagger_client/rest.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
swagger_client/rest.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
# coding: utf-8 """ SDX-Controller You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). # noqa: E501 OpenAPI spec version: 1.0.0 Contact: yxin@renci.org Generated by: https://github.com/swagger-api/swagger-code...
41.144654
156
0.542418
1dabf5365f57690672d984439d5d566a4867d631
8,997
py
Python
model/optimizer.py
harddownloader/NeuralClassifier
7da6944452df682244bb61b65d2670bb2ddb8d46
[ "Apache-2.0" ]
null
null
null
model/optimizer.py
harddownloader/NeuralClassifier
7da6944452df682244bb61b65d2670bb2ddb8d46
[ "Apache-2.0" ]
null
null
null
model/optimizer.py
harddownloader/NeuralClassifier
7da6944452df682244bb61b65d2670bb2ddb8d46
[ "Apache-2.0" ]
null
null
null
#copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
43.463768
101
0.526731
1dabf863992847ec7683a848807bbee6e3acb059
2,350
py
Python
scripts/utils/geofunctions.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
10
2018-11-07T14:39:15.000Z
2022-03-30T11:27:27.000Z
scripts/utils/geofunctions.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
1
2019-09-24T07:22:33.000Z
2019-09-24T07:22:33.000Z
scripts/utils/geofunctions.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
5
2018-08-02T21:25:30.000Z
2020-08-08T18:52:50.000Z
import geopandas as gpd import pandas as pd import sys import numpy as np from shapely.geometry import shape, Polygon, MultiPolygon, MultiLineString import matplotlib.pyplot as plt from matplotlib.patches import Polygon as plt_polygon from fiona.crs import from_epsg import csv import gdal from os import listdir from os...
36.153846
119
0.764255
1dac053e80757b1c5fbeb1478dea8fb18ec5dfac
8,185
py
Python
rstblog/utils.py
agateau/rstblog
680d567a8bf42f3fce6e3cc067547cb171e7b373
[ "BSD-3-Clause" ]
null
null
null
rstblog/utils.py
agateau/rstblog
680d567a8bf42f3fce6e3cc067547cb171e7b373
[ "BSD-3-Clause" ]
null
null
null
rstblog/utils.py
agateau/rstblog
680d567a8bf42f3fce6e3cc067547cb171e7b373
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ rstblog.utils ~~~~~~~~~~~~~ Various utilities. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os import re from math import ceil from urllib.parse import urlsplit, urljoin from collections import namedtuple import lxml....
30.541045
80
0.618693
1dac3081efbda8f286e784bc85d495c55a18aa8a
3,228
py
Python
mypy/test/testtransform.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
null
null
null
mypy/test/testtransform.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
null
null
null
mypy/test/testtransform.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
1
2020-03-24T05:28:58.000Z
2020-03-24T05:28:58.000Z
"""Identity AST transform test cases""" import os.path from typing import Dict, List from mypy import build from mypy.build import BuildSource from mypy.myunit import Suite from mypy.test.helpers import assert_string_arrays_equal, testfile_pyversion from mypy.test.data import parse_test_cases, DataDrivenTestCase fro...
37.534884
79
0.57342
1dac32186023f0b74fb5242f2d570e915b450e55
375
py
Python
Hackerrank/30python/factorial.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
Hackerrank/30python/factorial.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
Hackerrank/30python/factorial.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the factorial function below. def factorial(n): a = 1 for i in range(n): a *= n-i return a if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') n = int(input()) result = factorial(n)...
14.423077
47
0.605333
1dac33cecfdcff1e50adb6e30da83f72aa4eb2e6
1,526
py
Python
tests/types/test_weekdays.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
1
2015-07-06T11:19:11.000Z
2015-07-06T11:19:11.000Z
tests/types/test_weekdays.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
tests/types/test_weekdays.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
from babel import Locale import sqlalchemy as sa from sqlalchemy_utils.types import WeekDaysType from sqlalchemy_utils.primitives import WeekDays from sqlalchemy_utils import i18n from tests import TestCase class WeekDaysTypeTestCase(TestCase): def setup_method(self, method): TestCase.setup_method(self, ...
29.346154
66
0.708388
1dac39fea86aaeb59e8553df65acf77599826dfd
4,522
py
Python
usecase-2/kms_key_creation-Step-1.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
usecase-2/kms_key_creation-Step-1.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
usecase-2/kms_key_creation-Step-1.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
""" ########################################################## # Create KMS key with alias kms_key_cse_usecase_2 # ########################################################## """ import subprocess import sys import json import boto3 def main(): """ ########################################################...
31.186207
123
0.421495
1daccca8a6ea10533504898d71e93055ded698cb
31,008
py
Python
scripts/casechecker.py
h4ck3rm1k3/pywikibot-core
fb4e3d4730b530739fd554458156925c59588a83
[ "MIT" ]
null
null
null
scripts/casechecker.py
h4ck3rm1k3/pywikibot-core
fb4e3d4730b530739fd554458156925c59588a83
[ "MIT" ]
null
null
null
scripts/casechecker.py
h4ck3rm1k3/pywikibot-core
fb4e3d4730b530739fd554458156925c59588a83
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Bot to find all pages on the wiki with mixed latin and cyrilic alphabets.""" # # (C) Pywikibot team, 2006-2016 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, print_function, unicode_literals __version__ = '$Id: 1daccca8a6ea1053...
39.500637
86
0.471749
1dad1d51278f15714a7a52c1795f700ed188ffc9
4,477
py
Python
Search/codes/game.py
vahidrn98/uc-berkley-ai
5d8bb598bad890a7a78003ff5b4735e0e9f0f34a
[ "MIT" ]
null
null
null
Search/codes/game.py
vahidrn98/uc-berkley-ai
5d8bb598bad890a7a78003ff5b4735e0e9f0f34a
[ "MIT" ]
null
null
null
Search/codes/game.py
vahidrn98/uc-berkley-ai
5d8bb598bad890a7a78003ff5b4735e0e9f0f34a
[ "MIT" ]
null
null
null
""" Sprite Collect Coins Simple program to show basic sprite usage. Artwork from http://kenney.nl If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sprite_collect_coins_move_circle """ import random import arcade import math import os SPRITE_SCALING =...
28.335443
87
0.628993
1dad5b75f6f27cb550517d5684470842c5e13439
7,131
py
Python
utils/layers.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
34
2019-02-04T14:57:08.000Z
2022-02-07T13:32:35.000Z
utils/layers.py
syyunn/DeepWTO
0e9f206ec2ce24b1afdf895bc81509dd84235b82
[ "Apache-2.0" ]
3
2020-03-02T05:06:24.000Z
2020-03-06T08:39:18.000Z
utils/layers.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
4
2020-02-17T04:17:12.000Z
2022-02-07T14:27:01.000Z
import tensorflow as tf def linear(input_, output_size, scope="SimpleLinear"): """ Linear map: output[k] = sum_i(Matrix[k, i] * args[i] ) + Bias[k] Args: input_: a tensor or a list of 2D, batch x n, Tensors. output_size: int, second dimension of W[i]. scope: V...
34.616505
73
0.443556
1dad821c988fb01119f8a3afdab8b4703567aede
302
py
Python
frontui/views/__init__.py
nixxa/SecretShopper
d9b1b2606f3c242b7d6f6b36376cbf564eb2289c
[ "MIT" ]
null
null
null
frontui/views/__init__.py
nixxa/SecretShopper
d9b1b2606f3c242b7d6f6b36376cbf564eb2289c
[ "MIT" ]
9
2016-08-27T10:31:40.000Z
2016-10-05T18:40:42.000Z
frontui/views/__init__.py
nixxa/SecretShopper
d9b1b2606f3c242b7d6f6b36376cbf564eb2289c
[ "MIT" ]
null
null
null
""" Init views """ IMAGE_EXTENSIONS = set(['.png', '.jpg', '.jpeg', '.gif']) AUDIO_EXTENSIONS = set(['.m4a', '.wav', '.mp3', '.ogg', '.3gpp', '.mp4', '.amr', '.m4r']) EXCEL_EXTENSIONS = set(['.xls', '.xlsx']) ALLOWED_EXTENSIONS = IMAGE_EXTENSIONS | AUDIO_EXTENSIONS | EXCEL_EXTENSIONS | set(['.pdf'])
43.142857
91
0.60596
1dad87587267154f70dbee98666f851f881798ec
9,406
py
Python
embiggen/embedders/pykeen_embedders/pykeen_embedder.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/pykeen_embedders/pykeen_embedder.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/pykeen_embedders/pykeen_embedder.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Abstract Torch/PyKeen Model wrapper for embedding models.""" from typing import Dict, List, Sequence, Union, Optional, Tuple, Any, Type import numpy as np import pandas as pd from ensmallen import Graph import inspect from embiggen.utils.pytorch_utils import validate_torch_device from embiggen.utils.abstract_model...
32.888112
102
0.607059
1dae08dd33e8b31248c7b724c90968a8bc046272
2,117
py
Python
tests/test_key_pair.py
mvadari/xpring-py
b837420127d1c1e5051ed305ed4f19fe9910a4f6
[ "0BSD" ]
6
2019-12-11T00:54:56.000Z
2021-03-11T19:44:44.000Z
tests/test_key_pair.py
mvadari/xpring-py
b837420127d1c1e5051ed305ed4f19fe9910a4f6
[ "0BSD" ]
null
null
null
tests/test_key_pair.py
mvadari/xpring-py
b837420127d1c1e5051ed305ed4f19fe9910a4f6
[ "0BSD" ]
9
2020-02-28T18:40:46.000Z
2022-02-28T23:01:09.000Z
from dataclasses import dataclass import pytest from xpring.key_pair import KeyPair from xpring.types import Address, EncodedSeed, PrivateKey, PublicKey # https://github.com/ripple/ripple-keypairs/blob/6f606a885ae5cb2e897c796c98171938aba19903/test/fixtures/api.json#L12-L21 KEY_PAIR_EXAMPLES = ( ('encoded_seed', '...
30.242857
120
0.739254
1dae485ed6f378d00d0cdbc81a223eb44312f3d4
5,258
py
Python
modules/io/python/drivers/io/adaptors/parse_bytes_to_dataframe.py
v6d-io/v6d
8f692c9bd95dad06c304a0020d4f946a5756c1e0
[ "Apache-2.0", "CC0-1.0" ]
117
2021-05-30T05:21:03.000Z
2022-03-26T03:35:50.000Z
modules/io/python/drivers/io/adaptors/parse_bytes_to_dataframe.py
v6d-io/v6d
8f692c9bd95dad06c304a0020d4f946a5756c1e0
[ "Apache-2.0", "CC0-1.0" ]
294
2021-05-28T03:04:26.000Z
2022-03-31T07:09:45.000Z
modules/io/python/drivers/io/adaptors/parse_bytes_to_dataframe.py
v6d-io/v6d
8f692c9bd95dad06c304a0020d4f946a5756c1e0
[ "Apache-2.0", "CC0-1.0" ]
30
2021-05-31T13:34:57.000Z
2022-03-25T06:39:47.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020-2021 Alibaba Group Holding Limited. # # 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/L...
32.060976
87
0.66356
1dae671ea9220846805aa3cb20361530edc1db34
5,194
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.016949
134
0.666153
1dae7d5a5bf0448d96f2d57162ba31ecc2de89d0
496
py
Python
gymie/exceptions.py
jscriptcoder/Gymie-Server
61e625b9d0bfdadfb7ca9d9accd7e476c773c5f7
[ "MIT" ]
3
2020-10-15T19:09:03.000Z
2021-04-25T13:31:20.000Z
gymie/exceptions.py
jscriptcoder/Gymie-Server
61e625b9d0bfdadfb7ca9d9accd7e476c773c5f7
[ "MIT" ]
null
null
null
gymie/exceptions.py
jscriptcoder/Gymie-Server
61e625b9d0bfdadfb7ca9d9accd7e476c773c5f7
[ "MIT" ]
1
2021-03-01T19:02:07.000Z
2021-03-01T19:02:07.000Z
##################### # Custom Exceptions # ##################### class InstanceNotFound(Exception): """Instance is not found in the dictionary where environments are stored""" pass class EnvironmentMalformed(Exception): """Environment ID is not correct""" pass class EnvironmentNotFound(Exception): ...
24.8
79
0.663306
1daeda4942c5953c9c0b374c927b3d8958fe3f4d
3,452
py
Python
test/test_ctrl/Vct6Ctrl_init.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
test/test_ctrl/Vct6Ctrl_init.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
test/test_ctrl/Vct6Ctrl_init.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
import PyTango import CounterTimerController nb_call = 0 class Vct6Controller(CounterTimerController.CounterTimerController): "This class is the Tango Sardana CounterTimer controller for the VCT6" ctrl_extra_attributes = {'PyCT_extra_1': {'Type': 'PyTango.DevDouble', 'R/W Type': 'PyTango.READ_WRITE'}, ...
34.52
140
0.616744
1daee3a93e79951e0a7b0e5c8cab238221f64837
29
py
Python
python/o80_pam/mujoco_id.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
null
null
null
python/o80_pam/mujoco_id.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
2
2021-02-17T12:55:44.000Z
2021-05-27T14:10:57.000Z
python/o80_pam/mujoco_id.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
null
null
null
mujoco_id = "o80_pam_mujoco"
14.5
28
0.793103
1daefbf025d7d40aecd60fd0b553c5dee804a2e7
6,195
py
Python
oscar/apps/shipping/models.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
oscar/apps/shipping/models.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/shipping/models.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.db import models from django.utils.translation import ugettext_lazy as _ from oscar.core.utils import slugify from oscar.apps.shipping import Scales class ShippingMethod(models.Model): # Fields from shipping.base.ShippingMethod must be added here manually. code =...
33.128342
79
0.62163
1daf1b79db486d72bd1875a1d4fde4692ccaebb0
127
py
Python
sprout/abstract/abstractRenderer.py
b-sea/sprout
8d88fcc4ed9f65f3c07a29dbced8261ea790f0f5
[ "MIT" ]
1
2017-09-24T18:10:57.000Z
2017-09-24T18:10:57.000Z
sprout/abstract/abstractRenderer.py
b-sea/sprout
8d88fcc4ed9f65f3c07a29dbced8261ea790f0f5
[ "MIT" ]
null
null
null
sprout/abstract/abstractRenderer.py
b-sea/sprout
8d88fcc4ed9f65f3c07a29dbced8261ea790f0f5
[ "MIT" ]
null
null
null
import abc from abstractBase import * class Renderer(Base): def __init__(self): super(Renderer, self).__init__()
15.875
40
0.692913
1daf495e95204f5fbfbe411354be8909034bc884
3,956
py
Python
sdks/python/appcenter_sdk/models/AudienceListResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/AudienceListResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/AudienceListResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class AudienceListRe...
27.282759
92
0.569515
1daf58f3678d6ee3a74b46ef8fccca6a0e5a4e7e
14,203
py
Python
sceptre/cli/helpers.py
mucahitkantepe/sceptre
beb25315c6a3964913dfa7021ef5bd73cac9c4fc
[ "Apache-2.0" ]
null
null
null
sceptre/cli/helpers.py
mucahitkantepe/sceptre
beb25315c6a3964913dfa7021ef5bd73cac9c4fc
[ "Apache-2.0" ]
null
null
null
sceptre/cli/helpers.py
mucahitkantepe/sceptre
beb25315c6a3964913dfa7021ef5bd73cac9c4fc
[ "Apache-2.0" ]
null
null
null
import logging import sys from itertools import cycle from functools import partial, wraps import json import click import six import yaml from boto3.exceptions import Boto3Error from botocore.exceptions import BotoCoreError, ClientError from jinja2.exceptions import TemplateError from sceptre.exceptions import Scep...
28.635081
85
0.584032
1daf5e99dd1cb5be5669879ba6f406077ff45ab3
590
py
Python
test/test_io.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
test/test_io.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
test/test_io.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
import os import json import numpy as np from nn_analysis import utils def main(): print(f"Process PID: {os.getpid()}") tmp_path = "tmp" print("Creating object...") A = { 'a': { 'b': { 'c': 'd' }, 'e': 'f', }, 'g'...
20.344828
41
0.50339
1daf7d2855ca5e15c479aad686670cc4464d5d5d
540
py
Python
examples/micropython/oserror.py
TheVinhLuong102/pybricks-api
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
51
2020-04-02T10:03:45.000Z
2022-03-27T23:49:39.000Z
examples/micropython/oserror.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
77
2020-03-22T17:32:14.000Z
2022-03-28T18:02:43.000Z
examples/micropython/oserror.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
25
2020-03-18T23:35:17.000Z
2022-01-01T12:52:01.000Z
from pybricks.pupdevices import Motor from pybricks.parameters import Port from uerrno import ENODEV try: # Try to initialize a motor. my_motor = Motor(Port.A) # If all goes well, you'll see this message. print("Detected a motor.") except OSError as ex: # If an OSError was raised, we can check wh...
27
49
0.664815
1daf8785c1ead8ccd9e0a6815b366b5aa78b9131
4,733
py
Python
experiments/ashvin/vae/reacher2d/test_vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/reacher2d/test_vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/reacher2d/test_vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.multitask_env import MultitaskToFlatEnv from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.mujoco.pusher2d import Pusher2DEnv from rlkit.envs.wrappers import NormalizedBoxEnv from rlkit.exploration_strategies.base import ( PolicyWrappedWithExplorationStrategy...
33.097902
96
0.663216
1dafb35c8431aa951136cb554f2101fe843b2524
9,828
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_server_automatic_tuning_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_server_automatic_tuning_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_server_automatic_tuning_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.95
184
0.689662
1dafb37306b614bd929f13e98b5ea20ed58cd27e
3,810
py
Python
src/login/bklogin/ee_official_login/oauth/google/utils.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/login/bklogin/ee_official_login/oauth/google/utils.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/login/bklogin/ee_official_login/oauth/google/utils.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
35.943396
115
0.663517
1dafcb68687b7383a8e1b4dd8d2f60df8fb01d20
2,365
py
Python
packages/service-library/src/servicelib/rest_utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/service-library/src/servicelib/rest_utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/service-library/src/servicelib/rest_utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" rest - misc utils UNDER DEVELOPMENT TODO: deprecate. Too general """ import json from typing import Dict import attr from aiohttp import web from openapi_core.extensions.models.factories import Model as BodyModel #pylint: disable=W0611 from .openapi_validation import (COOKIE_KEY, HEADER_KEY, PATH_KEY, QUERY_KE...
28.493976
113
0.660465
1daffe46dea50c6f4e3cda49de8798a075a4ed80
3,102
py
Python
sdks/python/appcenter_sdk/models/RepoInfo.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/RepoInfo.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/RepoInfo.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class RepoInfo(objec...
27.696429
94
0.559317
1db03ddeffde471a23f25c34bf332d688c3ed851
187
py
Python
src/emitters/iso_line_emitter.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/emitters/iso_line_emitter.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/emitters/iso_line_emitter.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
"""Provides IsoLineEmitter.""" import gin import ribs @gin.configurable class IsoLineEmitter(ribs.emitters.IsoLineEmitter): """gin-configurable version of pyribs IsoLineEmitter."""
20.777778
60
0.775401
1db052b1498f5da489329bc5ac136dbb1c109176
8,144
py
Python
autoesk_main/_new_set_paths.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-03-12T00:40:13.000Z
2021-03-12T00:40:13.000Z
autoesk_main/_new_set_paths.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-04-02T04:40:38.000Z
2021-04-02T04:42:20.000Z
autoesk_main/_new_set_paths.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
null
null
null
from imports import Dirs, Now, os, sys, types class NewSetPaths(Dirs, Now): import os # __name__ is always without extension, could be "__main__" # __file__ prints file path main_path = os.path.dirname(os.path.realpath(__file__)) main_path += '\with_titlePATH.txt' # Dirs.pathit @classmeth...
37.187215
116
0.590987
1db08934e7bf5494f87d4cae6c613c868d93dccb
3,266
py
Python
scene_parsing/config/defaults.py
kanghuangnj/scene_parsing_demo
bfce3abae268402e8b1555f48ade4d0c8f6f5268
[ "BSD-3-Clause" ]
null
null
null
scene_parsing/config/defaults.py
kanghuangnj/scene_parsing_demo
bfce3abae268402e8b1555f48ade4d0c8f6f5268
[ "BSD-3-Clause" ]
null
null
null
scene_parsing/config/defaults.py
kanghuangnj/scene_parsing_demo
bfce3abae268402e8b1555f48ade4d0c8f6f5268
[ "BSD-3-Clause" ]
null
null
null
from yacs.config import CfgNode as CN # ----------------------------------------------------------------------------- # Config definition # ----------------------------------------------------------------------------- _C = CN() _C.DIR = "ckpt/ade20k-resnet50dilated-ppm_deepsup" # ------------------------------------...
33.326531
79
0.536436
1db0a5fdbb4579759cbad97a658a5f3a78b5a8de
12,546
py
Python
infra/tools/dockerbuild/dockcross.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
infra/tools/dockerbuild/dockcross.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
infra/tools/dockerbuild/dockcross.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import contextlib import itertools import os import shutil import stat import string import sys import tempfile from . import source from...
29.659574
92
0.649131
1db0d34c24918d177f6e42e5a56eefea85251c49
5,722
py
Python
modules/funct.py
Gift-Ojeabulu/WhatsapChat-Analyzer-App
09e03c6f2fa2117b8e47ecd701653ea49e221e6a
[ "MIT" ]
11
2021-03-05T18:08:41.000Z
2021-06-20T16:02:44.000Z
modules/funct.py
Gift-Ojeabulu/WhatsapChat-Analyzer-App
09e03c6f2fa2117b8e47ecd701653ea49e221e6a
[ "MIT" ]
1
2021-03-27T23:00:34.000Z
2021-03-27T23:00:34.000Z
modules/funct.py
Gift-Ojeabulu/WhatsapChat-Analyzer-App
09e03c6f2fa2117b8e47ecd701653ea49e221e6a
[ "MIT" ]
3
2021-03-08T15:52:03.000Z
2021-03-27T18:22:02.000Z
# -*- coding: utf-8 -*- """ This is a file to run analysis and create functions for visualization """ import pandas as pd import emoji import collections as c from collections import Counter import streamlit as st import plotly.express as px import matplotlib.pyplot as plt import warnings warnings.filterwarnings...
23.072581
180
0.621985
1db12850be118152104d4e0edc960e980a4e0ef3
62
py
Python
run.py
Hyacinthe04/news-hilight
9e02506957c3ef9c0500636314c551c89b8fd893
[ "MIT" ]
null
null
null
run.py
Hyacinthe04/news-hilight
9e02506957c3ef9c0500636314c551c89b8fd893
[ "MIT" ]
null
null
null
run.py
Hyacinthe04/news-hilight
9e02506957c3ef9c0500636314c551c89b8fd893
[ "MIT" ]
null
null
null
from app import app if __name__ == '__main__': app.run()
12.4
26
0.645161
1db145d3c3c143ef3b1b6ded11996360eae82020
458
py
Python
src/apps/productividad/migrations/0006_auto_20190213_1043.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/productividad/migrations/0006_auto_20190213_1043.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/productividad/migrations/0006_auto_20190213_1043.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-02-13 16:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('productividad', '0005_auto_20180904_1030'), ] operations = [ migrations.AlterModelOptions( name='reporte', options={'get_lat...
25.444444
149
0.650655
1db15b3b2eae6bfebd3085772839688ad6e138a6
3,393
py
Python
bonneville/states/mdadm.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/states/mdadm.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/states/mdadm.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Managing software RAID with mdadm ================================== A state module for creating or destroying software RAID devices. .. code-block:: yaml /dev/md0: raid.present: - opts: level=1 chunk=256 raid-devices=2 /dev/xvdd /dev/xvde ''' # Import python libs impor...
23.894366
76
0.537872
1db15d838af734089eaeb9bd32342dafb0f17217
12,838
py
Python
lingvo/tasks/car/base_extractor.py
eric-haibin-lin/lingvo
d66710d9b28f349047d53f3fba0b87694b978350
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/car/base_extractor.py
eric-haibin-lin/lingvo
d66710d9b28f349047d53f3fba0b87694b978350
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/car/base_extractor.py
eric-haibin-lin/lingvo
d66710d9b28f349047d53f3fba0b87694b978350
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 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 ...
36.16338
80
0.676663
1db15dd8d0f86f45e97336dcae3f1b7f289da225
3,138
py
Python
src/si/util/scale.py
pg42872/Sistemas_Inteligentes
884af63cbd0ce2baa759d7197282dce0776e476b
[ "Apache-2.0" ]
null
null
null
src/si/util/scale.py
pg42872/Sistemas_Inteligentes
884af63cbd0ce2baa759d7197282dce0776e476b
[ "Apache-2.0" ]
null
null
null
src/si/util/scale.py
pg42872/Sistemas_Inteligentes
884af63cbd0ce2baa759d7197282dce0776e476b
[ "Apache-2.0" ]
null
null
null
import numpy as np from copy import copy class StandardScaler: def __init__(self): self.mean = None self.var = None """ Standardize features by centering the mean to 0 and unit variance. The standard score of an instance is calculated by: z = (x - u) / s where u is the mean...
33.382979
95
0.593372
1db187b3e141204233517993f904291464a77d97
713
py
Python
test/test_converter.py
ranking-agent/query_planner
cbe6fd8b7f627658845851b06c73b239746a60f0
[ "MIT" ]
null
null
null
test/test_converter.py
ranking-agent/query_planner
cbe6fd8b7f627658845851b06c73b239746a60f0
[ "MIT" ]
null
null
null
test/test_converter.py
ranking-agent/query_planner
cbe6fd8b7f627658845851b06c73b239746a60f0
[ "MIT" ]
null
null
null
from src.query_graph import convert_to_networkx def test_simple(): query_graph = { "nodes": { "n01": { "categories":['biolink:X'] }, "n02": { "ids": ["NC:7"] } }, "...
25.464286
55
0.380084
1db198065914d5a9a6e0e16727d155abfb16ab5a
750
py
Python
live.py
KloudTrader/libkloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
11
2019-01-16T16:10:09.000Z
2021-03-02T00:59:17.000Z
live.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
425
2019-07-10T06:59:49.000Z
2021-01-12T05:32:14.000Z
live.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
6
2019-03-15T16:25:06.000Z
2021-05-03T10:02:13.000Z
from libkloudtrader.algorithm import * import pandas as pd import libkloudtrader.analysis as analysis def crypto_turtle(data): data['high']=data.price.shift(1).rolling(window=5).max() data['low']=data.price.shift(1).rolling(window=5).min() data['avg']=analysis.ma(data.price,5) buy=data.price>data.high ...
32.608696
85
0.678667
1db1aad4513af93fe4dc675ab985081928aa3b43
2,316
py
Python
CRNN/utils.py
Belval/CRNN
23095fe253af22989f87458a5b7dc150731488c1
[ "MIT" ]
298
2017-12-07T19:31:38.000Z
2022-03-14T03:54:34.000Z
CRNN/utils.py
AakashOfficial/CRNN
da15fb3d9eb629e612a5c77ddc05435d8d6aaac1
[ "MIT" ]
64
2017-12-28T07:56:24.000Z
2020-05-13T03:55:16.000Z
CRNN/utils.py
AakashOfficial/CRNN
da15fb3d9eb629e612a5c77ddc05435d8d6aaac1
[ "MIT" ]
100
2018-01-24T08:28:00.000Z
2021-07-14T09:04:21.000Z
import numpy as np import tensorflow as tf from scipy.misc import imread, imresize, imsave def sparse_tuple_from(sequences, dtype=np.int32): """ Inspired (copied) from https://github.com/igormq/ctc_tensorflow_example/blob/master/utils.py """ indices = [] values = [] for n, seq in enumer...
26.62069
100
0.602332
1db1e1175dd084ce34e397bddd8607bb4f91df76
538
py
Python
pages_old/monitor_batches/monitor_batches.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
pages_old/monitor_batches/monitor_batches.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
pages_old/monitor_batches/monitor_batches.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import os import vdomr as vd import spikeforest as sf from monitorbatchesmainwindow import MonitorBatchesMainWindow import spikeforest as sf class TheApp(): def __init__(self): pass def createSession(self): W = MonitorBatchesMainWindow() return W def main(): # Configure readonly...
18.551724
61
0.693309
1db1e7d58e80cdffc97c8ac07304a4fdf169abb1
9,470
py
Python
homeassistant/components/zamg/sensor.py
dstrigl/core
8000bd09233e34bc12fe5ffe9335b990d6346359
[ "Apache-2.0" ]
null
null
null
homeassistant/components/zamg/sensor.py
dstrigl/core
8000bd09233e34bc12fe5ffe9335b990d6346359
[ "Apache-2.0" ]
60
2020-07-06T15:10:30.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/zamg/sensor.py
dstrigl/core
8000bd09233e34bc12fe5ffe9335b990d6346359
[ "Apache-2.0" ]
null
null
null
"""Sensor for the Austrian "Zentralanstalt für Meteorologie und Geodynamik".""" import csv from datetime import datetime, timedelta import gzip import json import logging import os from aiohttp.hdrs import USER_AGENT import pytz import requests import voluptuous as vol from homeassistant.components.sensor import Sens...
32.542955
87
0.612777
1db1ede33ca43913c33583463b0b6d8b26e00ff3
2,595
py
Python
hsv_dot_beer/users/test/test_views.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
null
null
null
hsv_dot_beer/users/test/test_views.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
null
null
null
hsv_dot_beer/users/test/test_views.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
null
null
null
import json from django.urls import reverse from django.forms.models import model_to_dict from django.contrib.auth.hashers import check_password from nose.tools import ok_, eq_ from rest_framework.test import APITestCase from rest_framework import status from faker import Faker from ..models import User from .factorie...
33.701299
83
0.688632
1db1f21c25dca320ddfb97fc6aa073244985d8b5
4,497
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
31.013793
78
0.594841
1db2320032c7db54a1ed08e2977b126b98b378e8
3,143
py
Python
surfer/gradient/reverse_gradient.py
Cryoris/surfer
2f8faef420b769ee92abe1562381402d2d6e34ad
[ "Apache-2.0" ]
2
2021-07-14T19:16:44.000Z
2021-08-20T20:18:13.000Z
surfer/gradient/reverse_gradient.py
Cryoris/surfer
2f8faef420b769ee92abe1562381402d2d6e34ad
[ "Apache-2.0" ]
null
null
null
surfer/gradient/reverse_gradient.py
Cryoris/surfer
2f8faef420b769ee92abe1562381402d2d6e34ad
[ "Apache-2.0" ]
null
null
null
"""A class to compute gradients of expectation values.""" from qiskit.quantum_info import Statevector from surfer.tools.split_circuit import split from surfer.tools.gradient_lookup import analytic_gradient from surfer.tools.bind import bind from surfer.tools.accumulate_product_rule import accumulate_product_rule from...
33.084211
90
0.614063
1db25aef858041de2e1df925cf3481b1574f89ef
12,676
py
Python
utils/data_loaders.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
null
null
null
utils/data_loaders.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
null
null
null
utils/data_loaders.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
null
null
null
import os import random import numpy as np import torch import torchvision from torch.utils.data.dataset import Dataset from torchvision import datasets, transforms from utils.constants import NUM_WORKERS, FLIP_CHANCE, DATASET_PATH, IMAGENETTE_DIR, TINY_IMAGNET_DIR, \ IMAGEWOOF_DIR """ Handles loading datasets "...
32.670103
117
0.626302
1db282bc1eac8b7da75f1d3b1d9eac46546448fd
404
py
Python
src/orders/permissions.py
Toruitas/ecom
c0dc4150f0b8112d591b5b5e3b462d24be4a4d79
[ "MIT" ]
null
null
null
src/orders/permissions.py
Toruitas/ecom
c0dc4150f0b8112d591b5b5e3b462d24be4a4d79
[ "MIT" ]
null
null
null
src/orders/permissions.py
Toruitas/ecom
c0dc4150f0b8112d591b5b5e3b462d24be4a4d79
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission class IsOwnerAndAuth(BasePermission): def has_object_permission(self, request, view, obj): try: return obj.user.user == request.user except: return False def has_permission(self, request, view): if request.us...
31.076923
60
0.663366
1db2a953317fe70480478da57ef568fa33b6ea82
31,227
py
Python
src/network.py
Lucaskabela/UNAST
7a5abb5329591e37469fdadf498661ca04373bcc
[ "MIT" ]
2
2021-03-26T19:51:29.000Z
2021-03-27T19:25:20.000Z
src/network.py
Lucaskabela/UNAST
7a5abb5329591e37469fdadf498661ca04373bcc
[ "MIT" ]
6
2021-04-01T03:40:18.000Z
2021-04-27T06:14:13.000Z
src/network.py
Lucaskabela/UNAST
7a5abb5329591e37469fdadf498661ca04373bcc
[ "MIT" ]
null
null
null
''' Contains the code for the encoder & decoders, which are composed of modules. These modules are pre, encoder, a decoder, a post, and optional discriminator. - BiRNN encoder/decoder for text and speech (with attention (?)) - Transformer encoder/decoder for text and speech ''' import torch.nn as nn from modul...
47.602134
132
0.652256
1db2a9ada8c087da08b9422adc921c74b431048c
4,906
py
Python
appengine/findit/findit_v2/services/api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/findit_v2/services/api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
appengine/findit/findit_v2/services/api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This encapsulate the main Findit APIs for external requests.""" import logging from common.constants import DEFAULT_SERVICE_ACCOUNT from findit_v2.model...
35.550725
80
0.739095
1db2cc56575de423ff2e9f1e256eab1d641b7977
5,423
py
Python
schapke/cresi/02_eval.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
27
2020-03-04T05:54:48.000Z
2022-01-05T07:07:44.000Z
schapke/cresi/02_eval.py
CosmiQ/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
1
2020-07-14T10:35:50.000Z
2020-07-14T10:35:50.000Z
schapke/cresi/02_eval.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
7
2020-03-07T21:42:57.000Z
2022-01-07T10:49:50.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sat May 5 02:18:38 2018 @author: avanetten Adapted from: https://github.com/SpaceNetChallenge/RoadDetector/tree/master/albu-solution """ import time import cv2 cv2.setNumThreads(0) cv2.ocl.setUseOpenCL(False) import os import numpy as np #import shutil...
36.395973
112
0.632307
1db2f381312022485aaf5669ea3c5dbee3446868
634
py
Python
setup.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
7
2020-06-24T12:14:40.000Z
2022-01-19T17:01:02.000Z
setup.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
setup.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages install_dependencies = [ 'Click', 'z3-solver', 'termcolor' ] develop_dependencies = [ 'mypy', # for type checking 'lark-parser', # for parsing 'sphinx', # for documentation generation ] setup( name='FOREST', version='0.1dev', packages=f...
21.862069
56
0.632492
1db31edcf1c5940f48c500aa2825f9ee1afbe247
5,467
py
Python
algorithms/gat/gat.py
mpoiitis/iSpine
333c5c6326c7052a673ce89eabadb476031c7a35
[ "MIT" ]
4
2021-02-07T01:06:03.000Z
2021-09-07T11:55:46.000Z
algorithms/gat/gat.py
mpoiitis/iSpine
333c5c6326c7052a673ce89eabadb476031c7a35
[ "MIT" ]
1
2021-04-13T07:29:50.000Z
2021-04-13T09:46:13.000Z
algorithms/gat/gat.py
mpoiitis/iSpine
333c5c6326c7052a673ce89eabadb476031c7a35
[ "MIT" ]
1
2022-03-27T01:01:18.000Z
2022-03-27T01:01:18.000Z
import tensorflow as tf import numpy as np from utils.utils import load_data, preprocess_features, preprocess_adj_bias, adj_to_bias from .models import GAT def train(model, inputs, bias_mat, lbl_in, msk_in, optimizer): with tf.GradientTape() as tape: logits, accuracy, loss = model(inputs=inputs, training=...
38.5
174
0.580391
1db3567462d574a3592a06e250b46845d0323f82
15,537
py
Python
kusanagi/sdk/request.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
kusanagi/sdk/request.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
kusanagi/sdk/request.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2021-05-16T17:40:21.000Z
2021-05-16T17:40:21.000Z
# Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) # Copyright (c) 2016-2021 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. from __future__ import ann...
27.894075
105
0.606745
1db35f0df5581c253d206ee4350c883b40d8f58d
153,234
py
Python
mypy/semanal.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
null
null
null
mypy/semanal.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
null
null
null
mypy/semanal.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
1
2020-03-24T05:28:58.000Z
2020-03-24T05:28:58.000Z
"""The semantic analyzer. Bind names to definitions and do various other simple consistency checks. For example, consider this program: x = 1 y = x Here semantic analysis would detect that the assignment 'x = 1' defines a new variable, the type of which is to be inferred (in a later pass; type inference or type ...
43.237585
99
0.588414
1db363d05036084c53c840ab0cd27413f6e6db30
5,192
py
Python
ngraph/frontends/neon/data/imdb.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/neon/data/imdb.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/neon/data/imdb.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel 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.apa...
36.56338
91
0.564715
1db3898fc886ffa4e2864f50f3f8405b16cd4c8e
13,505
py
Python
modelscript/metamodels/scenarios/__init__.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/metamodels/scenarios/__init__.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2015-12-18T10:30:02.000Z
2015-12-18T10:36:28.000Z
modelscript/metamodels/scenarios/__init__.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 """Metamodel representing scenarios. The structure of is the following:: ScenarioModel ---> ClassModel ---> UseCaseModel ---> PermissionModel <>--* ActorInstance <>--* Context (contexts) <>--* Fragment (fragments) <>--1 Scenario (scenarios) ActorInstance ---- n...
27.227823
70
0.625028
1db3d48dbed407d6c273d15a7cb79a4bc40aac52
1,045
py
Python
services/web/server/src/simcore_service_webserver/rest_routes.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/web/server/src/simcore_service_webserver/rest_routes.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/web/server/src/simcore_service_webserver/rest_routes.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" Create diagnostics routes and maps them to rest_handlers """ import logging from typing import List from aiohttp import web from servicelib import openapi from . import rest_handlers log = logging.getLogger(__name__) def create(specs: openapi.Spec) -> List[web.RouteDef]: # TODO: consider the case in whi...
27.5
82
0.721531
1db3dafe259f0711cb3415bb30743c4ab602b5fe
521
py
Python
conekt/forms/admin/neighborhood_to_clusters.py
legumeinfo/CoNekT
709a4980cfa255cafd456b268e274db2b4b1f5fb
[ "MIT" ]
14
2018-08-20T03:07:21.000Z
2021-11-04T11:15:31.000Z
conekt/forms/admin/neighborhood_to_clusters.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
9
2018-07-17T15:30:47.000Z
2021-07-05T13:11:54.000Z
conekt/forms/admin/neighborhood_to_clusters.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
3
2019-08-05T09:16:34.000Z
2019-12-04T23:59:28.000Z
from flask_wtf import FlaskForm from wtforms.validators import InputRequired from wtforms import StringField, SelectField from conekt.models.expression.networks import ExpressionNetworkMethod class NeighborhoodToClustersForm(FlaskForm): network_id = SelectField('Network', coerce=int) description = StringFiel...
34.733333
80
0.733205
1db3dfbf3ab5cb3bd5545562b22cae3aa31e202c
4,463
py
Python
tensorflow/python/estimator/canned/linear_test.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
1
2017-09-30T07:16:45.000Z
2017-09-30T07:16:45.000Z
tensorflow/python/estimator/canned/linear_test.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/estimator/canned/linear_test.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "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...
36.284553
80
0.781985
1db3fdf5c42b166cf8333c5729a2adc6e4cfc70c
5,590
py
Python
tools/nuscenes/extract_pc_image_norm_info_from_image.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
10
2021-08-31T01:39:40.000Z
2022-03-27T13:13:14.000Z
tools/nuscenes/extract_pc_image_norm_info_from_image.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
1
2021-10-10T05:36:35.000Z
2021-12-11T05:56:26.000Z
tools/nuscenes/extract_pc_image_norm_info_from_image.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
3
2021-09-05T09:14:35.000Z
2021-10-21T03:15:59.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import argparse import json import os import sys import numpy as np from numpy import asarray from nuscenes.nuscenes import NuScenes from tqdm import tqdm def parse_args(): parser = argparse.ArgumentParser(description='Convert da...
39.64539
119
0.608766
1db40e0377fe65dca36c0cadfed10ae06b64830b
90
py
Python
acceptance_tests/tests/tests/test_ping.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
5
2017-06-25T07:50:57.000Z
2019-01-25T16:49:57.000Z
acceptance_tests/tests/tests/test_ping.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
200
2017-02-01T15:13:38.000Z
2022-03-31T21:29:54.000Z
acceptance_tests/tests/tests/test_ping.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
4
2019-07-08T12:28:19.000Z
2020-06-10T02:44:35.000Z
def test_ok(app_connection): assert app_connection.get_json("ping") == {"pong": True}
30
60
0.711111
1db4167c20c0ee6b6fa86d9115198d5ffbf6a79a
542
py
Python
tests/test_dependencies/test_special_params/test_definition/test_depends_param.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
tests/test_dependencies/test_special_params/test_definition/test_depends_param.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
tests/test_dependencies/test_special_params/test_definition/test_depends_param.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
import pytest from botx import Depends pytestmark = pytest.mark.asyncio def dependency(): return 42 @pytest.fixture() def handler_with_dependency(storage): def factory(dep: int = Depends(dependency)) -> None: # noqa: B008 storage.dep = dep return factory async def test_passing_async_client...
18.066667
70
0.719557
1db43588a43aab25b1144670d3754db4ea33cc20
4,402
py
Python
Bi-LSTM-SDP/attention.py
cabadsanchez/relation_classification
7fbec5ac7428d4a57ee9c9665244c1a6b02c23d4
[ "MIT" ]
null
null
null
Bi-LSTM-SDP/attention.py
cabadsanchez/relation_classification
7fbec5ac7428d4a57ee9c9665244c1a6b02c23d4
[ "MIT" ]
1
2018-10-01T16:13:45.000Z
2019-08-26T13:17:52.000Z
Bi-LSTM-SDP/attention.py
cabadsanchez/relation_classification
7fbec5ac7428d4a57ee9c9665244c1a6b02c23d4
[ "MIT" ]
2
2018-12-11T08:16:44.000Z
2019-02-28T11:04:12.000Z
import keras.backend as K from keras.layers import Layer from keras import initializers, regularizers, constraints ## Attention mechanism written by @cbaziotis https://gist.github.com/cbaziotis/7ef97ccf71cbc14366835198c09809d2 def dot_product(x, kernel): """ Wrapper for dot product operation, in order to be c...
37.305085
111
0.595638
1db4764f89f11e48353dd76d10c9ba814c06e5f0
9,379
py
Python
django_sanic_adaptor/adaptor_request.py
ashleysommer/django-sanic-adaptor
4c20b8ca4f77a61dc037b1cfd4543c029d826419
[ "MIT", "BSD-3-Clause" ]
8
2017-11-14T21:36:20.000Z
2020-02-06T18:57:49.000Z
django_sanic_adaptor/adaptor_request.py
ashleysommer/django-sanic-adaptor
4c20b8ca4f77a61dc037b1cfd4543c029d826419
[ "MIT", "BSD-3-Clause" ]
null
null
null
django_sanic_adaptor/adaptor_request.py
ashleysommer/django-sanic-adaptor
4c20b8ca4f77a61dc037b1cfd4543c029d826419
[ "MIT", "BSD-3-Clause" ]
2
2018-04-13T07:27:09.000Z
2021-12-28T14:45:39.000Z
import cgi import warnings try: import django from django.http import QueryDict as DjangoQueryDict, parse_cookie from django.http.request import HttpRequest as DjangoHttpRequest from django.http.response import HttpResponse as DjangoHttpResponse, \ StreamingHttpResponse as DjangoStreamingRespon...
41.135965
113
0.647937
1db4c9c1871343c4161e99e194bda7e5d59111f2
4,362
py
Python
Gravity_Foundation/bearing_capacity.py
goharShoukat/Selkie_Foundation_Modelling
217d495449fdf10935dcacd99f79e765709800eb
[ "MIT" ]
null
null
null
Gravity_Foundation/bearing_capacity.py
goharShoukat/Selkie_Foundation_Modelling
217d495449fdf10935dcacd99f79e765709800eb
[ "MIT" ]
null
null
null
Gravity_Foundation/bearing_capacity.py
goharShoukat/Selkie_Foundation_Modelling
217d495449fdf10935dcacd99f79e765709800eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Dec 24 23:54:46 2021 @author: goharshoukat This function calculates the bearing capacity and will be utilised using descriptors This file links into the class foundation_characteristics it has two parts: drained undrained both will be covered...
36.966102
86
0.579551
1db4e8408f37543ed34a6dbd23f7dcf309c44304
10,771
py
Python
tests/test_account.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2020-01-19T21:27:53.000Z
2020-01-19T21:27:53.000Z
tests/test_account.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2021-12-09T21:18:13.000Z
2021-12-09T21:18:13.000Z
tests/test_account.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
null
null
null
import aiounittest import unittest import pytest from pygw2.models import * from .helpers import subset, ids_helper @pytest.mark.usefixtures("get_api") class AccountTests(aiounittest.AsyncTestCase): async def test_account_get(self): acc = await self.api.account.get() self.assertIsInstance(acc, A...
34.302548
74
0.628911
1db5093b9f56e1834c56645723dcb829c070fbdc
13,562
py
Python
app/model/charts/bar.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/model/charts/bar.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/model/charts/bar.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Class for drawing barcharts ''' from bokeh.plotting import figure from bokeh.models import ColumnDataSource from bokeh.transform import dodge import pandas as pd from bokeh.io import curdoc from model.charts.base import BaseCartesianChart from service.viewconf_reader import ViewConfReader class Bar(BaseCartesianCh...
42.249221
141
0.578307
1db53d89adaeaa2e6b77dee1d420b897b00c648d
1,609
py
Python
sunpy/map/sources/source_type.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/map/sources/source_type.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/map/sources/source_type.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
""" Source type-dependencies. Helioviewer JPEG2000 files have stretched images compared to the FITS data. """ from __future__ import absolute_import, print_function, division from astropy.visualization import LinearStretch # pylint: disable=W0221,W0222,E1121 __author__ = "Jack Ireland" __email__ = "jack.ireland@nasa...
27.271186
79
0.689869
1db5402925c6cef43356d0b376d917286a542b9a
189
py
Python
apps/ingest/apps.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/ingest/apps.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/ingest/apps.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
"""Configuration for :class:`apps.ingest`""" from django.apps import AppConfig class IngestConfig(AppConfig): """Ingest config""" name = 'apps.ingest' verbose_name = 'Ingest'
21
44
0.687831
1db553058531291765309a4870bb1c9a19dea06f
322
py
Python
abc/152/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/152/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/152/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N = ni() P = na() ans = 0 min_v = float('inf') for i in range(N): min_v = min(min_v, P[i]) if min_v == P[i]: ans += 1 print(an...
17.888889
53
0.593168
1db55a765d008ba3c4a36f26103f8e2065839ad8
1,247
py
Python
rpi_d3m_primitives/featSelect/Large_Scale_IPCMB.py
naiyuyin/rpi_d3m_primitives
f95553bee90916d241885d28fb71c8167116d9fa
[ "MIT" ]
1
2019-05-02T21:05:27.000Z
2019-05-02T21:05:27.000Z
rpi_d3m_primitives/featSelect/Large_Scale_IPCMB.py
naiyuyin/rpi_d3m_primitives
f95553bee90916d241885d28fb71c8167116d9fa
[ "MIT" ]
1
2021-03-18T15:52:27.000Z
2021-03-26T17:54:04.000Z
rpi_d3m_primitives/featSelect/Large_Scale_IPCMB.py
naiyuyin/rpi_d3m_primitives
f95553bee90916d241885d28fb71c8167116d9fa
[ "MIT" ]
null
null
null
from rpi_d3m_primitives.featSelect.tian_IPCMB import tian_IPCMB from rpi_d3m_primitives.featSelect.helperFunctions import joint import numpy as np from rpi_d3m_primitives.featSelect.conditionalMI import cmi def Large_Scale_IPCMB(data, targets, threshold): #data is training data without label column nu...
35.628571
67
0.610265
1db58ad92915ac8efcd0d1e87f3ae49ec058b8d6
3,116
py
Python
reproduce_paper.py
Limsande/textsnake-eco2018-pytorch
71ee6f0041c6672c8039d64ef403cd1bb0ae2589
[ "MIT" ]
null
null
null
reproduce_paper.py
Limsande/textsnake-eco2018-pytorch
71ee6f0041c6672c8039d64ef403cd1bb0ae2589
[ "MIT" ]
null
null
null
reproduce_paper.py
Limsande/textsnake-eco2018-pytorch
71ee6f0041c6672c8039d64ef403cd1bb0ae2589
[ "MIT" ]
null
null
null
import numpy as np import os import sys import torch from torch.utils.data import DataLoader, SubsetRandomSampler from dataloader.Eco2018Loader import DeviceLoader from dataloader.TotalTextLoader import TotalText, Augmentation, BaseTransform from loss.loss import loss_fn, loss_fn2 from model.Textnet import Textnet fro...
32.458333
103
0.678113
1db59a7f4d4e1792f9209c08c56fefeb63a1e5ce
6,072
py
Python
experiments/ashvin/icml2020/point/offpolicy/sac_demo1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/point/offpolicy/sac_demo1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/point/offpolicy/sac_demo1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
33.180328
91
0.517128
1db5a60997ca164f66dccfa43aff9af6ac3e7ae7
644
py
Python
test/mitmproxy/net/test_udp.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/net/test_udp.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/net/test_udp.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
import pytest from mitmproxy.net.udp import MAX_DATAGRAM_SIZE, DatagramReader @pytest.mark.asyncio async def test_reader(): reader = DatagramReader() addr = ("8.8.8.8", 53) reader.feed_data(b"First message", addr) with pytest.raises(AssertionError): reader.feed_data(bytearray(MAX_DATAGRAM_SIZ...
32.2
64
0.714286
1db621e7581ef061f31261d424de2b273157b224
1,101
py
Python
scripts/seed_generator.py
alan-turing-institute/memorization
89bd1191f761528234543a69312284212628c24a
[ "MIT" ]
2
2022-01-09T11:21:46.000Z
2022-01-28T07:38:27.000Z
scripts/seed_generator.py
alan-turing-institute/memorization
89bd1191f761528234543a69312284212628c24a
[ "MIT" ]
null
null
null
scripts/seed_generator.py
alan-turing-institute/memorization
89bd1191f761528234543a69312284212628c24a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utility to allow reliable restarts of cross-validation runs The "seed generator" keeps the seeds for the runs so that you can reliably stop and restart running the experiments at a specific run/fold. It uses SyncRNG because its simple, works the same across platforms, and doesn't interact...
31.457143
80
0.70663
1db635e12a27103fc9a8db686bd45672e24b0d27
2,095
py
Python
trax/models/atari_cnn_test.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/models/atari_cnn_test.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/models/atari_cnn_test.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.742424
74
0.697852
1db63c9fb02a916ce1f32fa5d0059334c04c0080
4,573
py
Python
AlluraTest/alluratest/test_syntax.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
AlluraTest/alluratest/test_syntax.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
AlluraTest/alluratest/test_syntax.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-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 (t...
37.793388
160
0.661054
1db667513facb8c27db8d06e8bc822567e83dce3
4,409
py
Python
sorter.py
Eskill-Trading/invoice-sorter
7c13601785171f219a42973431e1eb73e55a16ef
[ "MIT" ]
null
null
null
sorter.py
Eskill-Trading/invoice-sorter
7c13601785171f219a42973431e1eb73e55a16ef
[ "MIT" ]
4
2021-11-10T06:56:01.000Z
2021-11-10T12:38:03.000Z
sorter.py
Eskill-Trading/invoice-sorter
7c13601785171f219a42973431e1eb73e55a16ef
[ "MIT" ]
null
null
null
import json import os import re from datetime import datetime from time import sleep import oschmod import PyPDF2 # List of erroneous PDFs to be ignored errorList = [] def main(): # Load config file with open("config.json") as conf: config = json.load(conf) source = config["reprint"] ...
39.720721
144
0.54298
1db69d76f8b5c8abbf1ab9cfbccafb1ecd628feb
494
py
Python
src/py42/settings/debug.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
1
2020-08-18T22:00:22.000Z
2020-08-18T22:00:22.000Z
src/py42/settings/debug.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/settings/debug.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
1
2021-05-10T23:33:34.000Z
2021-05-10T23:33:34.000Z
import logging import sys class _DebugSettings(object): INFO = logging.INFO DEBUG = logging.DEBUG TRACE = logging.DEBUG NONE = logging.NOTSET def __init__(self): self.logger = logging.getLogger("py42") self.logger.addHandler(logging.StreamHandler(sys.stderr)) @property de...
19.76
65
0.67004
1db6aa9caa1c4595e8f06c8fd2f98e454d8e2e1f
4,072
py
Python
util/db.py
DonIsaac/cmsc320-final
de9cf3a666a099ffbaf9303a32b418916f9d4d59
[ "MIT" ]
null
null
null
util/db.py
DonIsaac/cmsc320-final
de9cf3a666a099ffbaf9303a32b418916f9d4d59
[ "MIT" ]
null
null
null
util/db.py
DonIsaac/cmsc320-final
de9cf3a666a099ffbaf9303a32b418916f9d4d59
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from pymongo import MongoClient from pymongo.cursor import Cursor from pymongo.collection import Collection from scrape.types import StackOverflowAnswer, StackOverflowQuestion from urllib.parse import quote_plus from typing import Generator, Any load_dotenv() class Database: ...
37.018182
115
0.649558
1db6b3b44bfe9a16f3d7bb4b7f11a8ba6baea79f
4,200
py
Python
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_operations_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_operations_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_operations_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.857143
155
0.695476
1db6bb1610511d9ab4fc75fc348a7ee37b84a3b9
420
py
Python
xbot/parsers/discord/dictionary.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
xbot/parsers/discord/dictionary.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
xbot/parsers/discord/dictionary.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
""" Dictionary to map discord code to MetaDictionary """ from xbot.templates import MetaDictionary library_to_meta = { 'ctx.message.content': MetaDictionary.RECEIVED_MESSAGE, 'await ctx.send': MetaDictionary.SEND_MESSAGE, 'ctx.message.channel': MetaDictionary.CHAT, 'ctx.message.author': MetaDictionary....
28
59
0.740476
1db6d179791899ced791a1e32cc11936d0c74eef
6,980
py
Python
readthedocs/settings/base.py
yrchen/readthedocs.org
b3580e3f3f08ce79734ffbfd26b04a35689a2f64
[ "MIT" ]
1
2019-08-02T19:56:43.000Z
2019-08-02T19:56:43.000Z
readthedocs/settings/base.py
yrchen/readthedocs.org
b3580e3f3f08ce79734ffbfd26b04a35689a2f64
[ "MIT" ]
null
null
null
readthedocs/settings/base.py
yrchen/readthedocs.org
b3580e3f3f08ce79734ffbfd26b04a35689a2f64
[ "MIT" ]
null
null
null
import os import djcelery djcelery.setup_loader() _ = gettext = lambda s: s DEBUG = True TEMPLATE_DEBUG = DEBUG TASTYPIE_FULL_DEBUG = True PRODUCTION_DOMAIN = 'readthedocs.org' USE_SUBDOMAIN = False ADMINS = ( ('Charlie Leifer', 'coleifer@gmail.com'), ('Eric Holscher', 'eric@ericholscher.com'), ) MANAGERS ...
25.198556
101
0.622636
1db6d185efce7602a32b8a75320b4e4f836d6814
2,657
py
Python
larq/callbacks_test.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
larq/callbacks_test.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
larq/callbacks_test.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf import larq as lq from larq import testing_utils as lq_testing_utils from larq.callbacks import HyperparameterScheduler from tensorflow import keras from tensorflow.python.keras import testing_utils class LogHistory(tf.keras.callbacks.Callback): def on_train_begin(self...
30.54023
87
0.626647
1db6e5f426f5f85bbeafe3a0c439481f6b72cd41
2,192
py
Python
tests/test_conversions.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
23
2019-01-13T23:32:24.000Z
2021-07-08T04:29:15.000Z
tests/test_conversions.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
3
2019-08-09T18:42:01.000Z
2019-12-13T15:43:24.000Z
tests/test_conversions.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
2
2020-01-09T11:18:20.000Z
2020-03-24T06:02:30.000Z
#!/usr/bin/env python import re import os import logging from unittest import TestCase, main from typing import List from pdfmajor.converters import convert_file from xml.etree import ElementTree from json import load as json_load from tqdm import tqdm def rel_path(*arg: str) -> str: return os.path.normpath(os.pa...
35.934426
97
0.577099
1db6fe2fba140cc0e12d3a7c034b67c0233c01d3
3,505
py
Python
scripts/demon/preparedata_test.py
robustrobotics/multi_view_stereonet
ab37254ed6c17a9057d0a006dc7ea2dd636cdd2f
[ "BSD-2-Clause" ]
16
2021-07-04T13:20:02.000Z
2022-03-14T07:17:34.000Z
scripts/demon/preparedata_test.py
robustrobotics/multi_view_stereonet
ab37254ed6c17a9057d0a006dc7ea2dd636cdd2f
[ "BSD-2-Clause" ]
1
2022-03-16T03:52:31.000Z
2022-03-16T03:52:31.000Z
scripts/demon/preparedata_test.py
robustrobotics/multi_view_stereonet
ab37254ed6c17a9057d0a006dc7ea2dd636cdd2f
[ "BSD-2-Clause" ]
4
2021-07-14T17:17:15.000Z
2021-12-28T03:32:25.000Z
import os import sys import subprocess # from joblib import Parallel, delayed import numpy as np import imageio imageio.plugins.freeimage.download() from imageio.plugins import freeimage import h5py from lz4.block import decompress # import scipy.misc from PIL import Image from path import Path path = os.path.join(o...
37.287234
155
0.582596
1db704af56ef9c7cb14d48be9461ec92f5ba3156
4,680
py
Python
src/gemini/datasets/dataset_freesolv/get_features.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
8
2021-04-04T15:23:05.000Z
2022-02-20T06:33:57.000Z
src/gemini/datasets/dataset_freesolv/get_features.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
null
null
null
src/gemini/datasets/dataset_freesolv/get_features.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
5
2021-04-04T15:23:27.000Z
2022-01-25T07:55:43.000Z
import os import sys import time from collections import OrderedDict import inspect import pickle from tqdm import tqdm import numpy as np import scipy as sp import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # Chemo-informatics import rdkit from rdkit import Chem from rdkit.Chem import AllChem,...
32.957746
127
0.678205
1db70ece0e2af48e268685ccbe6af42cf25614a5
559
py
Python
scalpel/green/__init__.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
15
2020-11-02T21:11:03.000Z
2022-03-10T14:17:46.000Z
scalpel/green/__init__.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
4
2020-11-01T17:54:15.000Z
2022-03-04T21:42:41.000Z
scalpel/green/__init__.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
2
2021-05-01T06:59:12.000Z
2021-11-25T07:01:02.000Z
from gevent import monkey monkey.patch_all() from .files import read_mp, write_mp # noqa: E402 from .utils.io import wrap_file, open_file, AsyncFile # noqa: E402 from .response import StaticResponse, SeleniumResponse # noqa: E402 from .static_spider import StaticSpider # noqa: E402 from .selenium_spider import Sel...
27.95
68
0.713775
1db72a5bd6897c01f13d1e2df514f95e51f36b65
45,799
py
Python
app/app.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
2
2022-01-31T19:53:02.000Z
2022-02-28T13:11:01.000Z
app/app.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
null
null
null
app/app.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
1
2022-01-24T17:57:14.000Z
2022-01-24T17:57:14.000Z
from machine import Pin from time import sleep, sleep_ms, localtime, mktime, ticks_ms, ticks_diff import uasyncio as asyncio import gc # Core libs from core.database import Database # App libs from app.store import Store from app.display import Display from app.lightstrip import Lightstrip from app.sensors import Sen...
39.245073
180
0.55368
1db75dd06b3cc9151125e77775d7301e0130cff8
112,688
py
Python
discord/ext/commands/core.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
null
null
null
discord/ext/commands/core.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
null
null
null
discord/ext/commands/core.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
35.979566
135
0.611627
1db76f231813f87fd451c2c6efd941f125dea5ff
697
py
Python
alipay/aop/api/response/ZhimaCreditPeZmgoTbsignApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/ZhimaCreditPeZmgoTbsignApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/ZhimaCreditPeZmgoTbsignApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class ZhimaCreditPeZmgoTbsignApplyResponse(AlipayResponse): def __init__(self): super(ZhimaCreditPeZmgoTbsignApplyResponse, self).__init__() self._result = None @prope...
26.807692
109
0.707317
1db7756d3adfec4124e1b65886d8f2323a27d93d
4,913
py
Python
tests/core/test_envs_manager.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
tests/core/test_envs_manager.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
3
2022-03-03T02:36:53.000Z
2022-03-03T02:42:50.000Z
tests/core/test_envs_manager.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals from logging import getLogger import os from os.path import isdir, join, lexists from tempfile import gettempdir from unittest import Te...
41.635593
117
0.735599
1db78ca3d88dfd39d3de5abbaa7730a15bc8fa00
8,851
py
Python
libraries/mathy_python/mathy/solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
95
2020-01-02T23:02:34.000Z
2022-03-08T18:57:24.000Z
libraries/mathy_python/mathy/solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
44
2020-01-05T03:07:45.000Z
2021-08-11T20:45:53.000Z
libraries/mathy_python/mathy/solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
5
2020-04-04T16:46:36.000Z
2022-03-30T08:10:02.000Z
"""Use Fractal Monte Carlo search in order to solve mathy problems without a trained neural network.""" from typing import Dict, List, Optional, Union import numpy as np from fragile.core.env import DiscreteEnv from fragile.core.models import DiscreteModel from fragile.core.states import StatesEnv, StatesModel, States...
33.911877
88
0.620721