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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ef12428221c15ea6225a0a8bfaaad18bf8e67e2 | 18,240 | py | Python | test/test_objectnav_generator.py | Ram81/habitat-imitation-baselines | c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505 | [
"MIT"
] | null | null | null | test/test_objectnav_generator.py | Ram81/habitat-imitation-baselines | c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505 | [
"MIT"
] | null | null | null | test/test_objectnav_generator.py | Ram81/habitat-imitation-baselines | c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
import habitat
from habitat import make_dataset
from habitat.config.default import get_config
from h... | 32 | 170 | 0.624397 |
9ef142d1c224d5938e42b45c5edcf6147e5c550c | 16,774 | py | Python | spyder/plugins/completion/languageserver/plugin.py | Nicztin/spyder | 1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6 | [
"MIT"
] | 1 | 2019-09-25T15:08:24.000Z | 2019-09-25T15:08:24.000Z | spyder/plugins/completion/languageserver/plugin.py | jorgeps86/spyder | 1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6 | [
"MIT"
] | null | null | null | spyder/plugins/completion/languageserver/plugin.py | jorgeps86/spyder | 1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
Manager for all LSP clients connected to the servers defined
in our Preferences.
"""
# Standard library imports
import logging
import os
import os.path as osp
im... | 39.938095 | 79 | 0.589663 |
9ef163132a6487b177f2a7eb39edc8b9947ccf07 | 1,099 | py | Python | algorithms/python/knowledge2.py | rik0/rk-exempla | 811f859a0980b0636bbafa2656893d988c4d0e32 | [
"MIT"
] | 1 | 2017-02-20T21:04:47.000Z | 2017-02-20T21:04:47.000Z | algorithms/python/knowledge2.py | rik0/rk-exempla | 811f859a0980b0636bbafa2656893d988c4d0e32 | [
"MIT"
] | null | null | null | algorithms/python/knowledge2.py | rik0/rk-exempla | 811f859a0980b0636bbafa2656893d988c4d0e32 | [
"MIT"
] | 2 | 2017-02-20T21:04:49.000Z | 2021-05-18T11:29:16.000Z | from lxml import html
class Failure(Exception):
pass
def name_getter(question):
def _list_of(url):
parser = html.parse(url)
return [el.text for el in parser.xpath('//td/table/tr/td[1]')
if el.text]
url_db = dict(
male_names='http://names.mongabay.com/male_names.htm'... | 24.977273 | 69 | 0.614195 |
9ef16edb850a7887c8dcbc59366444f5b8343b37 | 140,763 | py | Python | pydra/engine/tests/test_shelltask.py | dafrose/pydra | 19661f988dac0ee2c23558bdec21e5961e0914da | [
"Apache-2.0"
] | null | null | null | pydra/engine/tests/test_shelltask.py | dafrose/pydra | 19661f988dac0ee2c23558bdec21e5961e0914da | [
"Apache-2.0"
] | null | null | null | pydra/engine/tests/test_shelltask.py | dafrose/pydra | 19661f988dac0ee2c23558bdec21e5961e0914da | [
"Apache-2.0"
] | null | null | null | import attr
import typing as ty
import os, sys
import pytest
from pathlib import Path
import re
from ..task import ShellCommandTask
from ..submitter import Submitter
from ..core import Workflow
from ..specs import (
ShellOutSpec,
ShellSpec,
SpecInfo,
File,
Directory,
MultiInputFile,
MultiOu... | 29.621843 | 263 | 0.501922 |
9ef1a9b974adecc19da5063c8b8aa5aa415735b0 | 15,960 | py | Python | sharpy/solvers/staticcoupledrbm.py | AntonioWR/sharpy | c922be8d5a1831c4624b22f39264e2f417a03deb | [
"BSD-3-Clause"
] | null | null | null | sharpy/solvers/staticcoupledrbm.py | AntonioWR/sharpy | c922be8d5a1831c4624b22f39264e2f417a03deb | [
"BSD-3-Clause"
] | null | null | null | sharpy/solvers/staticcoupledrbm.py | AntonioWR/sharpy | c922be8d5a1831c4624b22f39264e2f417a03deb | [
"BSD-3-Clause"
] | null | null | null | import ctypes as ct
import numpy as np
import sharpy.aero.utils.mapping as mapping
import sharpy.utils.cout_utils as cout
import sharpy.utils.solver_interface as solver_interface
from sharpy.utils.solver_interface import solver, BaseSolver
import sharpy.utils.settings as settings
import sharpy.utils.algebra as algebr... | 46.395349 | 128 | 0.62312 |
9ef1ba781f133317a6107a91788bc6560b2174e3 | 20,212 | py | Python | src/pypipegraph/resource_coordinators.py | IMTMarburg/pypipegraph | a3cb50199b9a62071c7006e49967c9a87234dfb0 | [
"MIT"
] | 4 | 2017-05-24T16:57:42.000Z | 2017-09-21T19:55:27.000Z | src/pypipegraph/resource_coordinators.py | TyberiusPrime/pypipegraph | 1430704960b069ba25de30210059dcaf374d4ae7 | [
"MIT"
] | 2 | 2019-11-22T15:33:47.000Z | 2020-07-27T11:59:44.000Z | src/pypipegraph/resource_coordinators.py | TyberiusPrime/pypipegraph | 1430704960b069ba25de30210059dcaf374d4ae7 | [
"MIT"
] | 4 | 2015-08-26T15:43:00.000Z | 2020-07-20T03:36:40.000Z | from __future__ import print_function
"""
The MIT License (MIT)
Copyright (c) 2017, Florian Finkernagel <finkernagel@imt.uni-marburg.de>
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 r... | 38.869231 | 134 | 0.533792 |
9ef1e2b80b0ff04072757bb7fdbd2c6d8ca24dee | 983 | py | Python | test/multi_rew.py | yamada-github-account/cpprb | 0e37e8deef95156c5b0ad8e5bce1577f612e90fa | [
"MIT"
] | 13 | 2019-07-28T14:51:56.000Z | 2020-06-22T04:09:06.000Z | test/multi_rew.py | yamada-github-account/cpprb | 0e37e8deef95156c5b0ad8e5bce1577f612e90fa | [
"MIT"
] | 1 | 2019-12-01T23:08:48.000Z | 2019-12-03T04:16:42.000Z | test/multi_rew.py | yamada-github-account/cpprb | 0e37e8deef95156c5b0ad8e5bce1577f612e90fa | [
"MIT"
] | 2 | 2020-04-22T23:10:42.000Z | 2020-07-28T14:23:55.000Z | import unittest
import numpy as np
from cpprb import ReplayBuffer
class TestMultiRew(unittest.TestCase):
def test(self):
buffer_size = 256
obs_dim = 3
act_dim = 1
rew_dim = 2
rb = ReplayBuffer(buffer_size,
{"obs": {"shape": obs_dim},
... | 26.567568 | 71 | 0.499491 |
9ef1f35d2d385de846d4ca0002638ff88725a14b | 37,235 | py | Python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/_virtual_network_gateway_connections_operations.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | null | null | null | sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/_virtual_network_gateway_connections_operations.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | null | null | null | sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/_virtual_network_gateway_connections_operations.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.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 ... | 49.514628 | 203 | 0.6962 |
9ef21f1bc881ff5a7b296ca3ba0cd6bd44e9ef79 | 45 | py | Python | func_tests/tests/endtoendtest/__init__.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | 1 | 2015-11-02T09:11:12.000Z | 2015-11-02T09:11:12.000Z | func_tests/tests/subjecttypetests/__init__.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | func_tests/tests/subjecttypetests/__init__.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
| 22.5 | 44 | 0.644444 |
9ef22c53a8c077d1ff134c97efcc0245677847a1 | 50,517 | py | Python | sdks/python/apache_beam/coders/coder_impl.py | abergmeier/beam | f1360c4dd71d9880bfce7feea415457ac0647c30 | [
"Apache-2.0"
] | null | null | null | sdks/python/apache_beam/coders/coder_impl.py | abergmeier/beam | f1360c4dd71d9880bfce7feea415457ac0647c30 | [
"Apache-2.0"
] | 64 | 2020-01-29T05:07:21.000Z | 2021-07-28T04:37:39.000Z | sdks/python/apache_beam/coders/coder_impl.py | abergmeier/beam | f1360c4dd71d9880bfce7feea415457ac0647c30 | [
"Apache-2.0"
] | 1 | 2021-12-26T15:58:25.000Z | 2021-12-26T15:58:25.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 36.006415 | 156 | 0.717006 |
9ef249a900f8c953cca3f09131d38e7913af41c2 | 5,319 | py | Python | var/spack/repos/builtin/packages/roms/package.py | BenWibking/spack | 49b3b43a4a9375210b578635d9240875a5f3106b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/roms/package.py | BenWibking/spack | 49b3b43a4a9375210b578635d9240875a5f3106b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/roms/package.py | joequant/spack | e028ee0d5903045e1cdeb57550cbff61f2ffb2fa | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import sys
from spack import *
class Roms(MakefilePackage):
"""ROMS is a free-surface, terrain-following,... | 37.195804 | 106 | 0.606693 |
9ef26975946cf9076ff490acaef6d6fdd8479c95 | 6,448 | py | Python | trax/tf_numpy/numpy/tests/arrays_test.py | yakovkeselman/trax | 615432bbc58ffb5bdf83a771e8f8b470995456db | [
"Apache-2.0"
] | 1 | 2020-05-30T15:19:39.000Z | 2020-05-30T15:19:39.000Z | trax/tf_numpy/numpy/tests/arrays_test.py | ZachT1711/trax | a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc | [
"Apache-2.0"
] | null | null | null | trax/tf_numpy/numpy/tests/arrays_test.py | ZachT1711/trax | a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2020 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... | 34.481283 | 79 | 0.60639 |
9ef27a168574464dd6a8db818d64bd2aed7cd783 | 8,677 | py | Python | leetcode_python/Sort/merge-sorted-array.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Sort/merge-sorted-array.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | null | null | null | leetcode_python/Sort/merge-sorted-array.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | """
88. Merge Sorted Array
Easy
983
118
Add to List
Share
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively.
Merge nums1 and nums2 into a single array sorted in non-decreasing order.
The ... | 29.020067 | 313 | 0.502247 |
9ef2863ae6726dcff9caab1914bab452a1b2201f | 27,558 | py | Python | salt/log/setup.py | Rafflecopter/salt | 08bbfcd4d9b93351d7d5d25b097e892026b6f1cd | [
"Apache-2.0"
] | null | null | null | salt/log/setup.py | Rafflecopter/salt | 08bbfcd4d9b93351d7d5d25b097e892026b6f1cd | [
"Apache-2.0"
] | null | null | null | salt/log/setup.py | Rafflecopter/salt | 08bbfcd4d9b93351d7d5d25b097e892026b6f1cd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
salt.log.setup
~~~~~~~~~~~~~~
This is where Salt's logging gets set up.
This module should be imported as soon as possible, preferably the first
module salt or any salt depending library imports so any new l... | 34.318804 | 103 | 0.61757 |
9ef2a346f46a7d4624c89d7daa49f8d62f0e2145 | 6,277 | py | Python | src/dwd.py | AntVil/Wetter-Daten-Visualizer | 5f972e3f551bfe5f62d738fb083001e7a29c2d31 | [
"MIT"
] | null | null | null | src/dwd.py | AntVil/Wetter-Daten-Visualizer | 5f972e3f551bfe5f62d738fb083001e7a29c2d31 | [
"MIT"
] | null | null | null | src/dwd.py | AntVil/Wetter-Daten-Visualizer | 5f972e3f551bfe5f62d738fb083001e7a29c2d31 | [
"MIT"
] | null | null | null | # this file contains all components needed to collect, format and save the data from dwd
import os
import re
import requests
from zipfile import ZipFile
from io import TextIOWrapper, BytesIO
import csv
import pandas as pd
import numpy as np
import datetime
# constants
DWD_URL_HISTORICAL = "https://opendata.dwd.de/cli... | 37.142012 | 139 | 0.588976 |
9ef2e7b5228410a873a9742f35a0578a2572f3ee | 1,884 | py | Python | Model_Evaluation/confusionMatrix.py | uit-hdl/rhd-codes | 7b62584fae75c6ff9ce84bc38230bce5da582bbf | [
"MIT"
] | 3 | 2019-06-30T13:02:07.000Z | 2021-06-14T08:52:23.000Z | Model_Evaluation/confusionMatrix.py | uit-hdl/rhd-codes | 7b62584fae75c6ff9ce84bc38230bce5da582bbf | [
"MIT"
] | null | null | null | Model_Evaluation/confusionMatrix.py | uit-hdl/rhd-codes | 7b62584fae75c6ff9ce84bc38230bce5da582bbf | [
"MIT"
] | 1 | 2019-11-03T19:43:49.000Z | 2019-11-03T19:43:49.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 19 08:46:44 2019
@author: bpe043
Pretty print code from Zachguo
https://gist.github.com/zachguo/10296432
Added code to make it print to file
"""
import pickle
import os
from sklearn.metrics import confusion_matrix
def print_cm(cm, labels, hide_zero... | 31.4 | 87 | 0.556794 |
9ef311aeb3aad1434a404e4178c6437eeae8465c | 8,491 | py | Python | run_eval_xilinx.py | JiatianWu/tf-monodepth2 | 8f8ade9ac1268ec2c80db41386df47d26074eaf8 | [
"MIT"
] | null | null | null | run_eval_xilinx.py | JiatianWu/tf-monodepth2 | 8f8ade9ac1268ec2c80db41386df47d26074eaf8 | [
"MIT"
] | null | null | null | run_eval_xilinx.py | JiatianWu/tf-monodepth2 | 8f8ade9ac1268ec2c80db41386df47d26074eaf8 | [
"MIT"
] | null | null | null | #Copyright 2020 Nod Labs
import argparse
import yaml
import sys
import os
import time
import h5py
import pickle
import numpy as np
from scipy.io import matlab
from PIL import Image
import matplotlib.pyplot as plt
import open3d as o3d
from bilateral_filter import bilateral_filter
from utils.tools import *
from depth_en... | 37.405286 | 112 | 0.556118 |
9ef3552c1dcc794b5057d80a9a8343f74d217176 | 11,589 | py | Python | tests/Test_DiscreteReservoirModel.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | tests/Test_DiscreteReservoirModel.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | tests/Test_DiscreteReservoirModel.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | from CompartmentalSystems.smooth_reservoir_model import SmoothReservoirModel
from testinfrastructure.InDirTest import InDirTest
from testinfrastructure.helpers import pp, pe
from sympy import Symbol, symbols, Function, ImmutableMatrix, pretty_print
from CompartmentalSystems import helpers_reservoir as hr
from Compartme... | 32.281337 | 110 | 0.544396 |
9ef35aa7b57414fdcaea6e57fb67e4d20fbe6c42 | 725 | py | Python | data_steward/deid/test_rules.py | amcgrenera-vumc/curation | f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08 | [
"MIT"
] | null | null | null | data_steward/deid/test_rules.py | amcgrenera-vumc/curation | f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08 | [
"MIT"
] | null | null | null | data_steward/deid/test_rules.py | amcgrenera-vumc/curation | f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from rules import Deid
table = [{"name":"id"},
{"name":"dob"},
{"name":"race"},
{"name":"yob"},
{"name":"ethnicity"},
{"name":"gender"}]
fields = [field['name'] for field in table]
db = MongoClient()['deid']
r = list(db.rules.find())
cache =... | 23.387097 | 108 | 0.511724 |
9ef3943dbd193f2df505a8cf017cc38f21fea269 | 1,386 | py | Python | celery/db/dfd042c7.py | gthb/celery | 13057dc69a6ecda6aabfae7b7640d971176251fb | [
"BSD-3-Clause"
] | 2 | 2021-04-30T02:01:12.000Z | 2022-02-18T05:30:28.000Z | celery/db/dfd042c7.py | gthb/celery | 13057dc69a6ecda6aabfae7b7640d971176251fb | [
"BSD-3-Clause"
] | null | null | null | celery/db/dfd042c7.py | gthb/celery | 13057dc69a6ecda6aabfae7b7640d971176251fb | [
"BSD-3-Clause"
] | null | null | null | """
dfd042c7
SQLAlchemy 0.5.8 version of a805d4bd, see the docstring of that module
for an explanation of this workaround.
"""
from sqlalchemy.types import PickleType as _PickleType
from sqlalchemy import util
class PickleType(_PickleType):
def process_bind_param(self, value, dialect):
dumps = self.pic... | 28.875 | 79 | 0.613997 |
9ef39d8122305b43195a12aa117b0dc12f897049 | 7,373 | py | Python | pavement.py | Deep-Code/bindex | c51562fafc497b6257ebb6df320e9128fe0d0bca | [
"MIT"
] | null | null | null | pavement.py | Deep-Code/bindex | c51562fafc497b6257ebb6df320e9128fe0d0bca | [
"MIT"
] | null | null | null | pavement.py | Deep-Code/bindex | c51562fafc497b6257ebb6df320e9128fe0d0bca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import subprocess
import sys
import time
# Import parameters from the setup file.
sys.path.append('.')
from setup import (
setup_dict, get_project_files, print_success_message,
print_failure_message, _lint, _test, _test_all,
CODE_DIR... | 28.249042 | 79 | 0.627696 |
9ef3a5e1c0c6175610ed77d0db16e2498e7ddfa7 | 2,977 | py | Python | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/versions.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | null | null | null | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/versions.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/versions.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:21:24.000Z | 2020-11-04T03:21:24.000Z | """
Contains information about the current Elasticsearch version in use,
including (LTE and GTE).
"""
from distutils.version import LooseVersion
__title__ = 'django_elasticsearch_dsl_drf.versions'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = '2017-2019 Artur Barseghyan'
__license__ = '... | 25.444444 | 78 | 0.643937 |
9ef3bb27eb08efdfe254d2d67173b987b178b39a | 2,345 | py | Python | repos/spikeextractors/spikeextractors/extractors/rawrecordingextractor/rawrecordingextractor.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | repos/spikeextractors/spikeextractors/extractors/rawrecordingextractor/rawrecordingextractor.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | repos/spikeextractors/spikeextractors/extractors/rawrecordingextractor/rawrecordingextractor.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | from spikeextractors import RecordingExtractor
import os
import numpy as np
from pathlib import Path
class RawRecordingExtractor(RecordingExtractor):
def __init__(self, datfile, samplerate, numchan, dtype=None, geom=None):
RecordingExtractor.__init__(self)
self._datfile = Path(datfile)
if ... | 36.640625 | 98 | 0.627719 |
9ef3f2ed2698b64560c221ea7ebafa40fd501155 | 19,311 | py | Python | utils/models/emnist_models.py | webster-781/FCO-ICML21 | b6c1d6ae551e951ad6a3c08b019cf269c1af89a6 | [
"Apache-2.0"
] | null | null | null | utils/models/emnist_models.py | webster-781/FCO-ICML21 | b6c1d6ae551e951ad6a3c08b019cf269c1af89a6 | [
"Apache-2.0"
] | null | null | null | utils/models/emnist_models.py | webster-781/FCO-ICML21 | b6c1d6ae551e951ad6a3c08b019cf269c1af89a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021, Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 35.563536 | 144 | 0.660556 |
9ef400ca220144e257da82cd7c708b9b5a240971 | 8,148 | py | Python | cep_price_console/old_unified_upload/view.py | zanebclark/cep_price_console | 2f0e0a487a02a1eeceab9bc326d4cef153bd6781 | [
"MIT"
] | null | null | null | cep_price_console/old_unified_upload/view.py | zanebclark/cep_price_console | 2f0e0a487a02a1eeceab9bc326d4cef153bd6781 | [
"MIT"
] | 5 | 2021-03-31T19:27:48.000Z | 2022-01-13T01:57:46.000Z | cep_price_console/old_unified_upload/view.py | zanebclark/cep_price_console | 2f0e0a487a02a1eeceab9bc326d4cef153bd6781 | [
"MIT"
] | null | null | null | from cep_price_console.utils.log_utils import CustomAdapter, debug
from cep_price_console.utils import config
from cep_price_console.utils.gui_utils import center_window
from cep_price_console.old_unified_upload.step import Step
from cep_price_console.old_unified_upload.input_param import FileSelection
from cep_price_c... | 44.52459 | 115 | 0.581861 |
9ef4197d6759a0f76f7f3d90ddd011e4c42b68c9 | 5,003 | py | Python | webapp.py | alikhil/pcms-standing-parser | 093839aa4ffe3a523546fecdf0f8c74ff433e34a | [
"MIT"
] | 3 | 2017-01-25T05:26:10.000Z | 2018-05-04T11:25:38.000Z | webapp.py | alikhil/pcms-standing-parser | 093839aa4ffe3a523546fecdf0f8c74ff433e34a | [
"MIT"
] | 1 | 2016-12-26T13:30:16.000Z | 2017-06-11T17:12:45.000Z | webapp.py | alikhil/pcms-standing-parser | 093839aa4ffe3a523546fecdf0f8c74ff433e34a | [
"MIT"
] | 1 | 2016-12-26T12:19:02.000Z | 2016-12-26T12:19:02.000Z | """
Web applicaiton for browsing pcms standing results, submission and analytics
"""
import time
from os import listdir
from os.path import isfile, join
from datetime import datetime
import logging
from flask import Flask, render_template, request, send_from_directory, jsonify, redirect
from flask_bootstrap import Bo... | 31.465409 | 120 | 0.702379 |
9ef44423f58ee03a3efb3138abe55935621eeb28 | 3,779 | py | Python | nevergrad/optimization/test_sequences.py | kwonhur/nevergrad | 7821ff2ddf46ed7ece61529449f770d32179433c | [
"MIT"
] | 2 | 2021-02-17T20:50:44.000Z | 2021-08-21T12:27:58.000Z | nevergrad/optimization/test_sequences.py | kwonhur/nevergrad | 7821ff2ddf46ed7ece61529449f770d32179433c | [
"MIT"
] | 1 | 2019-12-20T09:52:20.000Z | 2019-12-27T08:49:36.000Z | nevergrad/optimization/test_sequences.py | kwonhur/nevergrad | 7821ff2ddf46ed7ece61529449f770d32179433c | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Type, List
import numpy as np
from ..common import testing
from . import sequences
from .sequences imp... | 41.527473 | 112 | 0.6896 |
9ef491a22c57da438492490f2d588faa848c167e | 11,641 | py | Python | saber/xbrain/unets/train_unet_docker.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 12 | 2018-05-14T17:43:18.000Z | 2021-11-16T04:03:33.000Z | saber/xbrain/unets/train_unet_docker.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 34 | 2019-05-06T19:13:36.000Z | 2021-05-06T19:12:35.000Z | saber/xbrain/unets/train_unet_docker.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 3 | 2019-10-08T17:42:17.000Z | 2021-07-28T05:52:02.000Z | """
Copyright 2018 The Johns Hopkins University Applied Physics Laboratory.
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 applicabl... | 30.473822 | 99 | 0.524697 |
9ef4b59dd7cae7893a8024e1fe22cdec1e15064e | 498 | py | Python | setup.py | etcd/manticore | 87073d9985c4ca445217b7b135a6af0a51044b21 | [
"Apache-2.0"
] | null | null | null | setup.py | etcd/manticore | 87073d9985c4ca445217b7b135a6af0a51044b21 | [
"Apache-2.0"
] | null | null | null | setup.py | etcd/manticore | 87073d9985c4ca445217b7b135a6af0a51044b21 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='Manticore',
version='0.1.0',
packages=find_packages(),
install_requires=[
'capstone',
'pyelftools',
'unicorn',
'ply',
],
extras_require={
'dev': [
'keystone-engine',
'coverag... | 19.153846 | 49 | 0.475904 |
9ef4b64880364f9975e58702ac51a4c92f8b4411 | 2,623 | py | Python | python/swagger_client/models/__init__.py | alextselegidis/easyappointments-sdk | 8ba969dc1221ea614b70d4d52313f20fc85df1e1 | [
"CC-BY-3.0"
] | null | null | null | python/swagger_client/models/__init__.py | alextselegidis/easyappointments-sdk | 8ba969dc1221ea614b70d4d52313f20fc85df1e1 | [
"CC-BY-3.0"
] | null | null | null | python/swagger_client/models/__init__.py | alextselegidis/easyappointments-sdk | 8ba969dc1221ea614b70d4d52313f20fc85df1e1 | [
"CC-BY-3.0"
] | null | null | null | # coding: utf-8
# flake8: noqa
"""
Easy!Appointments API
These are the OpenAPI specs that describe the REST API of Easy!Appointments. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: info@easyappointments.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ ... | 53.530612 | 94 | 0.887533 |
9ef4f7648b23918f64b6032dbd66f6a0afd48627 | 2,690 | py | Python | models/official/detection/modeling/classification_model.py | tensorflow/tpu-demos | 8aac591077e5781785aa6c22bc400472ba14dada | [
"Apache-2.0"
] | 65 | 2017-07-28T03:47:42.000Z | 2018-02-04T20:54:18.000Z | models/official/detection/modeling/classification_model.py | tensorflow/tpu-demos | 8aac591077e5781785aa6c22bc400472ba14dada | [
"Apache-2.0"
] | 10 | 2017-08-11T22:55:40.000Z | 2018-02-07T01:11:28.000Z | models/official/detection/modeling/classification_model.py | tensorflow/tpu-demos | 8aac591077e5781785aa6c22bc400472ba14dada | [
"Apache-2.0"
] | 28 | 2017-07-28T08:20:06.000Z | 2018-01-28T16:28:12.000Z | # 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 required by applica... | 34.050633 | 80 | 0.725651 |
9ef5082c5774ea05ee9596e531a2bb2efd2396ac | 4,349 | py | Python | demo1-test/main.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | 1 | 2019-02-03T08:41:52.000Z | 2019-02-03T08:41:52.000Z | demo1-test/main.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | demo1-test/main.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.626761 | 74 | 0.732812 |
9ef511da74d02985dc530331bf0e2d31852e877d | 646 | py | Python | src/gocept/cxoracle/tests.py | gocept/gocept.cxoracle | 1e20470fd58836fbd0866b02407f23c06fdaee80 | [
"ZPL-2.1"
] | null | null | null | src/gocept/cxoracle/tests.py | gocept/gocept.cxoracle | 1e20470fd58836fbd0866b02407f23c06fdaee80 | [
"ZPL-2.1"
] | null | null | null | src/gocept/cxoracle/tests.py | gocept/gocept.cxoracle | 1e20470fd58836fbd0866b02407f23c06fdaee80 | [
"ZPL-2.1"
] | null | null | null | # Copyright (c) 2008 gocept gmbh & co. kg
# See also LICENSE.txt
import unittest
import zope.testing.doctest
import zc.buildout.testing
flags = (zope.testing.doctest.NORMALIZE_WHITESPACE |
zope.testing.doctest.ELLIPSIS)
def setUp(test):
zc.buildout.testing.buildoutSetUp(test)
zc.buildout.testing... | 22.275862 | 64 | 0.705882 |
9ef529efecde996b171e0ba6c94ea24d094ed031 | 3,985 | py | Python | alipay/aop/api/request/AlipayUserMemberAlipaycardQueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/request/AlipayUserMemberAlipaycardQueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/request/AlipayUserMemberAlipaycardQueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayUserMemberAlipaycardQueryModel import AlipayUserMemberAlipaycardQueryModel
class AlipayUserMemberAlipaycardQueryRequest(object... | 27.482759 | 148 | 0.645922 |
9ef54cd110411dfb68d9f62599fdaaf774e7a6c5 | 2,543 | py | Python | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/epd_pillow_image.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/epd_pillow_image.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 7 | 2021-02-19T20:00:08.000Z | 2022-01-14T10:51:12.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/epd_pillow_image.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 14 | 2021-02-20T17:40:56.000Z | 2022-01-01T19:53:38.000Z | # SPDX-FileCopyrightText: 2019 Melissa LeBlanc-Williams for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
Image resizing and drawing using the Pillow Library. For the image, check out the
associated Adafruit Learn guide at:
https://learn.adafruit.com/adafruit-eink-display-breakouts/python-code
"""
import di... | 33.906667 | 82 | 0.738891 |
9ef568f1353dbf9a4305e73529aaecfdfafbadc4 | 6,906 | py | Python | src/opera/test/pge/test_runconfig.py | nasa/opera-sds-pge | 8cb2142038e64042115f0f920ebbfdbd9171efb9 | [
"Apache-2.0"
] | 1 | 2022-02-16T23:24:31.000Z | 2022-02-16T23:24:31.000Z | src/opera/test/pge/test_runconfig.py | nasa/opera-sds-pge | 8cb2142038e64042115f0f920ebbfdbd9171efb9 | [
"Apache-2.0"
] | 53 | 2021-11-03T16:42:44.000Z | 2022-03-30T20:28:57.000Z | src/opera/test/pge/test_runconfig.py | nasa/opera-sds-pge | 8cb2142038e64042115f0f920ebbfdbd9171efb9 | [
"Apache-2.0"
] | 3 | 2021-12-04T20:51:16.000Z | 2022-02-16T23:25:33.000Z | #!/usr/bin/env python3
"""
=================
test_runconfig.py
=================
Unit tests for the pge/runconfig.py module.
"""
import os
import tempfile
import unittest
from os.path import join
from pkg_resources import resource_filename
from yamale import YamaleError
from opera.pge import RunConfig
from opera.p... | 41.60241 | 118 | 0.677092 |
9ef59e5832c3bf8e38dcad0a36f7d308a0ed983a | 5,021 | py | Python | SoftLayer/utils.py | briancline/softlayer-python | 679fb62ba2db095f0177f9d9488ff4a80c3b7387 | [
"MIT"
] | null | null | null | SoftLayer/utils.py | briancline/softlayer-python | 679fb62ba2db095f0177f9d9488ff4a80c3b7387 | [
"MIT"
] | null | null | null | SoftLayer/utils.py | briancline/softlayer-python | 679fb62ba2db095f0177f9d9488ff4a80c3b7387 | [
"MIT"
] | null | null | null | """
SoftLayer.utils
~~~~~~~~~~~~~~~
Utility function/classes.
:license: MIT, see LICENSE for more details.
"""
import datetime
import re
import six
# pylint: disable=pointless-except, no-member, invalid-name
UUID_RE = re.compile(r'^[0-9a-f\-]{36}$', re.I)
KNOWN_OPERATIONS = ['<=', '>=', '<', '>', '~... | 26.015544 | 77 | 0.585342 |
9ef5b7f60636a8204204d7e89eed8d983e6802ff | 1,071 | py | Python | plotting/iteration_plot.py | spasmann/1DQMC | f56483428f03c63d06c16b7fd7f56231296dd940 | [
"MIT"
] | null | null | null | plotting/iteration_plot.py | spasmann/1DQMC | f56483428f03c63d06c16b7fd7f56231296dd940 | [
"MIT"
] | null | null | null | plotting/iteration_plot.py | spasmann/1DQMC | f56483428f03c63d06c16b7fd7f56231296dd940 | [
"MIT"
] | 1 | 2022-01-25T18:09:23.000Z | 2022-01-25T18:09:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 7 14:36:21 2022
@author: sampasmann
"""
import matplotlib.pyplot as plt
import numpy as np
import h5py
path = "../saved_data/"
fname1 = "12-random-1024-20"
fname2 = "12-sobol-1024-20"
fname3 = "12-halton-1024-20"
f1 = h5py.File(path+fname1, 'r')... | 22.3125 | 49 | 0.64986 |
9ef5eef806313d0445628c900a9f065f18eced36 | 1,056 | py | Python | docs/conf.py | ixc/python-mongo-search | 5212739b2ce27495e581ca171006f97b0c9cdce6 | [
"BSD-3-Clause"
] | null | null | null | docs/conf.py | ixc/python-mongo-search | 5212739b2ce27495e581ca171006f97b0c9cdce6 | [
"BSD-3-Clause"
] | null | null | null | docs/conf.py | ixc/python-mongo-search | 5212739b2ce27495e581ca171006f97b0c9cdce6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from pkg_resources import parse_version
import pkginfo
def _egg_info(path_to_egg='../'):
path_to_egg = os.path.join(
os.path.dirname(__file__), path_to_egg)
egg_info = pkginfo.Develop(path_to_egg)
release = egg_info.version
parsed_version = parse_version(rele... | 24 | 68 | 0.694129 |
9ef5f36e01c2fdc3973f6b4cbe2662d3eb48f6bc | 1,037 | py | Python | ucb_cs61A/lab/lab06/tests/prologue.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | null | null | null | ucb_cs61A/lab/lab06/tests/prologue.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | 1 | 2017-07-31T08:15:26.000Z | 2017-07-31T08:15:26.000Z | ucb_cs61A/lab/lab06/tests/prologue.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | 1 | 2019-10-06T16:52:31.000Z | 2019-10-06T16:52:31.000Z | test = {
'name': 'Prologue',
'points': 0,
'suites': [
{
'cases': [
{
'code': r"""
>>> from car import *
>>> johns_car = Car('Tesla')
>>> johns_car.color
058a4899e0e4f451de8b35121de08b60
# locked
>>> johns_car.paint('black')
... | 23.568182 | 57 | 0.448409 |
9ef5f3b2b9c0d9cde70b96cefaa14cb8ced75b26 | 17,932 | py | Python | scripts/sanitize_metadata.py | jkmcpherson/ncov | bda48365f16ea598fc928f895b304441bd6e8cc0 | [
"MIT"
] | null | null | null | scripts/sanitize_metadata.py | jkmcpherson/ncov | bda48365f16ea598fc928f895b304441bd6e8cc0 | [
"MIT"
] | null | null | null | scripts/sanitize_metadata.py | jkmcpherson/ncov | bda48365f16ea598fc928f895b304441bd6e8cc0 | [
"MIT"
] | null | null | null | import argparse
from augur.io import open_file, read_metadata
import csv
import os
from pathlib import Path
import pandas as pd
import re
import sys
from tempfile import NamedTemporaryFile
from utils import extract_tar_file_contents
# Define all possible geographic scales we could expect in the GISAID location
# fiel... | 40.206278 | 314 | 0.650457 |
9ef5f41038e5ce43d73f79359b0ea8d82770544f | 2,925 | py | Python | luminos/core/AbstractWebEngine.py | linuxaddict89/luminos | cd525173bd6766eb109c4409581f6c6273d1c1bd | [
"MIT"
] | null | null | null | luminos/core/AbstractWebEngine.py | linuxaddict89/luminos | cd525173bd6766eb109c4409581f6c6273d1c1bd | [
"MIT"
] | 2 | 2021-10-03T08:44:45.000Z | 2021-10-03T08:49:49.000Z | luminos/core/AbstractWebEngine.py | linuxaddict89/luminos | cd525173bd6766eb109c4409581f6c6273d1c1bd | [
"MIT"
] | null | null | null |
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
from luminos.core.Signal import Signal
from luminos.utils import usertypes, qtutils
from luminos.browser import Shared
class AbstractWebView(QWebEngineView):
contentLoaded = False
loadChanged = Signal(usertypes.LoadEvent)
def __init__(... | 36.111111 | 84 | 0.635556 |
9ef607630e843307f186d645beca94c65389d80e | 12,078 | py | Python | electrum/gui/kivy/uix/dialogs/settings.py | particl/electrum | f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354 | [
"MIT"
] | null | null | null | electrum/gui/kivy/uix/dialogs/settings.py | particl/electrum | f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354 | [
"MIT"
] | null | null | null | electrum/gui/kivy/uix/dialogs/settings.py | particl/electrum | f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
from kivy.app import App
from kivy.factory import Factory
from kivy.properties import ObjectProperty
from kivy.lang import Builder
from electrum.util import base_units_list
from electrum.i18n import languages
from electrum.gui.kivy.i18n import _
from electrum.plugin import run_hook
fr... | 42.829787 | 137 | 0.579152 |
9ef60af0dc2d07e526611681e677e343ee23e706 | 4,725 | py | Python | openapi_client/models/trip.py | hypostulate/mbta-api-client | f18903b6269c523c733a31574ff4579349fed3f8 | [
"MIT"
] | null | null | null | openapi_client/models/trip.py | hypostulate/mbta-api-client | f18903b6269c523c733a31574ff4579349fed3f8 | [
"MIT"
] | null | null | null | openapi_client/models/trip.py | hypostulate/mbta-api-client | f18903b6269c523c733a31574ff4579349fed3f8 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
MBTA
MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501
The version of the OpenAPI document: 3.0
Contact: developer@mbta.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from op... | 26.694915 | 106 | 0.564021 |
9ef61b940d07990effa8bf55a8dd286f102ed9c0 | 7,207 | py | Python | esst/discord_bot/chat_commands/mission.py | etcher-be/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | 4 | 2018-06-24T14:03:44.000Z | 2019-01-21T01:20:02.000Z | esst/discord_bot/chat_commands/mission.py | etcher-be/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | 106 | 2018-06-24T13:59:52.000Z | 2019-11-26T09:05:14.000Z | esst/discord_bot/chat_commands/mission.py | theendsofinvention/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Meh
"""
import typing
from time import sleep
import elib_miz
import elib_wx
from esst import LOGGER, commands, core, utils
from esst.dcs import missions_manager
def _mission_index_to_mission_name(mission_index):
LOGGER.debug('converting mission index to mission name: %s', mission_index)
f... | 36.770408 | 120 | 0.636603 |
9ef63a5ef35eb3efd73bb46b9d5b513dcbd113d9 | 1,474 | py | Python | inference.py | rharish101/CIL-Project | fed1be8b22bb4228329b719a301f74459a7bf13b | [
"MIT"
] | null | null | null | inference.py | rharish101/CIL-Project | fed1be8b22bb4228329b719a301f74459a7bf13b | [
"MIT"
] | null | null | null | inference.py | rharish101/CIL-Project | fed1be8b22bb4228329b719a301f74459a7bf13b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Script to infer with the model."""
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace
from pathlib import Path
from src.config import load_config
from src.infer import Inference
def main(args: Namespace) -> None:
"""Run the main program."""
config = load_c... | 27.296296 | 77 | 0.636364 |
9ef662c0009f59d9815323d3bcecabd8f403ceba | 2,369 | py | Python | ArticleClassifierTF/src/classifier/prediction/articles_prediction.py | joduss/ArticleClassifier | 38c0e168cdd74214b7f591c7cfc7b93fc496e46b | [
"Unlicense"
] | null | null | null | ArticleClassifierTF/src/classifier/prediction/articles_prediction.py | joduss/ArticleClassifier | 38c0e168cdd74214b7f591c7cfc7b93fc496e46b | [
"Unlicense"
] | null | null | null | ArticleClassifierTF/src/classifier/prediction/articles_prediction.py | joduss/ArticleClassifier | 38c0e168cdd74214b7f591c7cfc7b93fc496e46b | [
"Unlicense"
] | null | null | null | from typing import Dict, List
from classifier.preprocessing.article_theme_tokenizer import ArticleThemeTokenizer
from data_models.article import Article
from data_models.articles import Articles
class ArticlesPrediction:
raw_predictions: Dict[str, List[float]] = {}
__theme_tokenizer: ArticleThemeTokenizer
... | 37.015625 | 107 | 0.699451 |
9ef667ed636e357698f3fb70cff752a56f84ac02 | 7,115 | py | Python | venv/lib/python3.6/site-packages/kubernetes/client/models/extensions_v1beta1_ingress.py | DiptoChakrabarty/Kube-Automate | 2072d1aadd58eb405c7308ff5cfecbf50300ead3 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/kubernetes/client/models/extensions_v1beta1_ingress.py | DiptoChakrabarty/Kube-Automate | 2072d1aadd58eb405c7308ff5cfecbf50300ead3 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/kubernetes/client/models/extensions_v1beta1_ingress.py | DiptoChakrabarty/Kube-Automate | 2072d1aadd58eb405c7308ff5cfecbf50300ead3 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: release-1.15
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Exten... | 32.19457 | 295 | 0.623331 |
9ef66b3c00bb92f2ed4ac59affb6d5e4a6cf8e66 | 508 | py | Python | scripts/data_minipulation.py | duguyue100/rolling | 881be841f7842c4a10545c8c8e02aca6b4219213 | [
"MIT"
] | 1 | 2020-02-23T02:16:39.000Z | 2020-02-23T02:16:39.000Z | scripts/data_minipulation.py | duguyue100/rolling | 881be841f7842c4a10545c8c8e02aca6b4219213 | [
"MIT"
] | null | null | null | scripts/data_minipulation.py | duguyue100/rolling | 881be841f7842c4a10545c8c8e02aca6b4219213 | [
"MIT"
] | 1 | 2021-10-31T13:43:59.000Z | 2021-10-31T13:43:59.000Z | """Discover usage of HDF5 datasets.
Author: Yuhuang Hu
Email : duguyue100@gmail.com
"""
import cPickle as pickle
import rolling.draw as draw
f = open("../results/feedforward_1_10_200_200_sgd_l2.pkl", 'r')
data = pickle.load(f)
train_targets = data['train_targets']
train_predicted = data['train_predicted']
cost = dat... | 25.4 | 75 | 0.783465 |
9ef68bd89e93676d1cd2a65279e02eb882142d53 | 922 | py | Python | owtf/plugins/web/passive/Web_Application_Fingerprint@OWTF-IG-004.py | alienus/owtf | b6d81fac83c324c2b8c6fe2a974c036881c1fcd0 | [
"BSD-3-Clause"
] | null | null | null | owtf/plugins/web/passive/Web_Application_Fingerprint@OWTF-IG-004.py | alienus/owtf | b6d81fac83c324c2b8c6fe2a974c036881c1fcd0 | [
"BSD-3-Clause"
] | null | null | null | owtf/plugins/web/passive/Web_Application_Fingerprint@OWTF-IG-004.py | alienus/owtf | b6d81fac83c324c2b8c6fe2a974c036881c1fcd0 | [
"BSD-3-Clause"
] | null | null | null | """
PASSIVE Plugin for Testing for Web Application Fingerprint (OWASP-IG-004)
"""
from owtf.managers.resource import get_resources
from owtf.plugin.plugin_helper import plugin_helper
DESCRIPTION = "Third party resources and fingerprinting suggestions"
def run(PluginInfo):
mapping = [
['All', 'CMS_Finger... | 36.88 | 118 | 0.729935 |
9ef68dcb5f26c9c90bcf5a24c01581e3307e3412 | 1,918 | py | Python | fpscanner/communication/RsSimple.py | nikialeksey/fingerprintscanner | ec86f3a31e3df4ef01639568008747943cf27e28 | [
"MIT"
] | 9 | 2018-08-26T18:05:13.000Z | 2021-10-21T13:57:37.000Z | fpscanner/communication/RsSimple.py | nikialeksey/fingerprintscanner | ec86f3a31e3df4ef01639568008747943cf27e28 | [
"MIT"
] | 6 | 2018-08-26T18:03:28.000Z | 2021-08-19T16:21:38.000Z | fpscanner/communication/RsSimple.py | nikialeksey/fingerprintscanner | ec86f3a31e3df4ef01639568008747943cf27e28 | [
"MIT"
] | 1 | 2020-03-17T01:57:07.000Z | 2020-03-17T01:57:07.000Z | # MIT License
#
# Copyright (c) 2018 Alexey Nikitin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merg... | 36.884615 | 91 | 0.710115 |
9ef6b7ab41d1ba2a30e14f5d18171d53f2c581ff | 14,233 | py | Python | aioarangodb/connection.py | ckdanny/aioarangodb | 432ac3701c1ca32bed2021ef510c724cd543f39f | [
"MIT"
] | 17 | 2020-06-11T20:26:41.000Z | 2021-04-03T19:07:57.000Z | aioarangodb/connection.py | ckdanny/aioarangodb | 432ac3701c1ca32bed2021ef510c724cd543f39f | [
"MIT"
] | 5 | 2021-06-24T13:31:16.000Z | 2022-03-09T11:28:04.000Z | aioarangodb/connection.py | ckdanny/aioarangodb | 432ac3701c1ca32bed2021ef510c724cd543f39f | [
"MIT"
] | 4 | 2020-09-12T11:52:41.000Z | 2021-04-21T19:30:00.000Z | from __future__ import absolute_import, unicode_literals
from abc import ABCMeta, abstractmethod
from calendar import timegm
from datetime import datetime
import jwt
from six import string_types
from aiohttp import MultipartWriter
from .exceptions import (
ServerConnectionError,
JWTAuthError,
)
from .request... | 32.201357 | 76 | 0.600365 |
9ef6bd88c08c3ea041f2ab4578589d95b4426b3d | 736 | py | Python | jobs/update-stale-payment/tests/unit/__init__.py | mengdong19/sbc-pay | a5a1d81ae3500457178371fb004fd09194bbb6b7 | [
"Apache-2.0"
] | null | null | null | jobs/update-stale-payment/tests/unit/__init__.py | mengdong19/sbc-pay | a5a1d81ae3500457178371fb004fd09194bbb6b7 | [
"Apache-2.0"
] | null | null | null | jobs/update-stale-payment/tests/unit/__init__.py | mengdong19/sbc-pay | a5a1d81ae3500457178371fb004fd09194bbb6b7 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Province of British Columbia
#
# 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 agr... | 43.294118 | 74 | 0.75 |
9ef6f08e6ddb5ce3b226bf269546c7c27e04df42 | 2,023 | py | Python | tests/metrics/process/test_lines_removed.py | avandeursen/pydriller | 5593cf5ad8cf9ecc3a42505048bc4389055d844c | [
"Apache-2.0"
] | 3 | 2020-08-20T10:27:13.000Z | 2021-11-02T20:28:16.000Z | tests/metrics/process/test_lines_removed.py | avandeursen/pydriller | 5593cf5ad8cf9ecc3a42505048bc4389055d844c | [
"Apache-2.0"
] | null | null | null | tests/metrics/process/test_lines_removed.py | avandeursen/pydriller | 5593cf5ad8cf9ecc3a42505048bc4389055d844c | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from datetime import datetime
import pytest
from pydriller.metrics.process.lines_count import LinesCount
TEST_COMMIT_DATA = [
('test-repos/pydriller', '.gitignore', 'ab36bf45859a210b0eae14e17683f31d19eea041', 'ab36bf45859a210b0eae14e17683f31d19eea041', 0, 0, 0),
('test-repos/pydriller'... | 42.145833 | 150 | 0.729115 |
9ef6fbed606776925de7f06ee956fc3eb118bd40 | 122 | py | Python | join_sampling_python/src/row.py | ixlab/join_sampling_public | ca3e1faced5d248ad81d935badbbb5eb580b3c9e | [
"Apache-2.0"
] | 3 | 2016-05-13T20:50:35.000Z | 2022-03-25T22:07:33.000Z | join_sampling_python/src/row.py | ixlab/join_sampling | ca3e1faced5d248ad81d935badbbb5eb580b3c9e | [
"Apache-2.0"
] | null | null | null | join_sampling_python/src/row.py | ixlab/join_sampling | ca3e1faced5d248ad81d935badbbb5eb580b3c9e | [
"Apache-2.0"
] | null | null | null | # pylint: disable=R0903
class Row(object):
def __init__(self, key, values):
self.key = key
self.values = values
| 20.333333 | 34 | 0.672131 |
9ef734ebbe943bad44f4afbd4a4dff6666e1293f | 669 | py | Python | falkon/utils/stream_utils.py | mohamad-amin/falkon | 581c761b4a4cb7bf6a299613700db8414c419a52 | [
"MIT"
] | 130 | 2020-06-18T08:30:30.000Z | 2022-03-21T15:43:17.000Z | falkon/utils/stream_utils.py | mohamad-amin/falkon | 581c761b4a4cb7bf6a299613700db8414c419a52 | [
"MIT"
] | 32 | 2020-06-26T09:24:45.000Z | 2022-03-20T10:37:36.000Z | falkon/utils/stream_utils.py | mohamad-amin/falkon | 581c761b4a4cb7bf6a299613700db8414c419a52 | [
"MIT"
] | 17 | 2020-07-13T17:28:02.000Z | 2022-02-15T19:55:40.000Z | from typing import Optional
import torch
def sync_current_stream(device: Optional[torch.device] = None) -> None:
# Sync current stream
stream = torch.cuda.current_stream(device)
stream.synchronize()
def get_non_default_stream(device: Optional[torch.device] = None) -> torch.cuda.Stream:
# Chooses th... | 33.45 | 87 | 0.741405 |
9ef73ffd0787e4df9ac63fda5e520da4917e7cd9 | 7,170 | py | Python | dfaas/api.py | ajijohn/dfaas | e9ada53689cd814336660a6d8683e21851f5a934 | [
"MIT"
] | null | null | null | dfaas/api.py | ajijohn/dfaas | e9ada53689cd814336660a6d8683e21851f5a934 | [
"MIT"
] | null | null | null | dfaas/api.py | ajijohn/dfaas | e9ada53689cd814336660a6d8683e21851f5a934 | [
"MIT"
] | null | null | null |
import urllib
try:
import simplejson as json
except :
import json
import requests
__all__ = [
'DFAASApiClient'
]
################################################################################
class HttpException(Exception):
def __init__(self, code, reason, error='Unknown Error'):
self.c... | 29.385246 | 119 | 0.548257 |
9ef750e0f679174c48e0d28a665f2754f2bc47ca | 15,096 | py | Python | tests/generic_config_updater/test_cacl.py | jsanghra/sonic-mgmt | 9f7af402de9e8e16a33c81b31581c9e155e55430 | [
"Apache-2.0"
] | null | null | null | tests/generic_config_updater/test_cacl.py | jsanghra/sonic-mgmt | 9f7af402de9e8e16a33c81b31581c9e155e55430 | [
"Apache-2.0"
] | null | null | null | tests/generic_config_updater/test_cacl.py | jsanghra/sonic-mgmt | 9f7af402de9e8e16a33c81b31581c9e155e55430 | [
"Apache-2.0"
] | null | null | null | import logging
import pytest
import time
from tests.common.helpers.assertions import pytest_assert
from tests.generic_config_updater.gu_utils import apply_patch, expect_op_success, expect_res_success, expect_op_failure
from tests.generic_config_updater.gu_utils import generate_tmpfile, delete_tmpfile
from tests.generi... | 31.190083 | 119 | 0.567038 |
9ef7525a83dc1b31780028c6640836ea7188d3eb | 2,785 | py | Python | flu/sequence_and_annotations/count_strains_by_year_region.py | iosonofabio/FitnessInference | 3de97a9301733ac9e47ebc78f4e76f7530ccb538 | [
"MIT"
] | 11 | 2015-08-24T05:20:56.000Z | 2021-08-13T13:58:31.000Z | flu/sequence_and_annotations/count_strains_by_year_region.py | iosonofabio/FitnessInference | 3de97a9301733ac9e47ebc78f4e76f7530ccb538 | [
"MIT"
] | 3 | 2015-08-24T04:43:25.000Z | 2021-07-06T00:33:44.000Z | flu/sequence_and_annotations/count_strains_by_year_region.py | iosonofabio/FitnessInference | 3de97a9301733ac9e47ebc78f4e76f7530ccb538 | [
"MIT"
] | 3 | 2019-08-30T18:52:49.000Z | 2021-06-15T06:47:04.000Z | ###################
# count_strains_by_year_region.py
#script that prints a table of sequence counts in different years and geographic
#regions.
###################
from StringIO import StringIO
from socket import gethostname
import sys
sys.path.append('../../prediction_src')
import predict_flu as flu
from collections ... | 36.168831 | 108 | 0.584919 |
9ef7692d45709eb62109e58607bc3f59adbe01da | 10,293 | py | Python | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_matrixportal/matrixportal.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_matrixportal/matrixportal.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 7 | 2021-02-19T20:00:08.000Z | 2022-01-14T10:51:12.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_matrixportal/matrixportal.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 14 | 2021-02-20T17:40:56.000Z | 2022-01-01T19:53:38.000Z | # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
`adafruit_matrixportal.matrixportal`
================================================================================
Helper library for the MatrixPortal M4 or Adafruit RGB Matrix Shield ... | 39.436782 | 100 | 0.608763 |
9ef7bf9be8982a8214f6cdf67faa6709bad77f33 | 14,326 | py | Python | py360/stfs.py | ValentiMS/py360 | c291b37773fbf5e4b459429fa95662533774183c | [
"BSD-2-Clause"
] | null | null | null | py360/stfs.py | ValentiMS/py360 | c291b37773fbf5e4b459429fa95662533774183c | [
"BSD-2-Clause"
] | null | null | null | py360/stfs.py | ValentiMS/py360 | c291b37773fbf5e4b459429fa95662533774183c | [
"BSD-2-Clause"
] | null | null | null | """
Secure Transacted File System - A container format found on Xbox 360 XTAF partitions
See http://free60.org/STFS
"""
import struct
from .constants import ContentTypes, STFSHashInfo
import hashlib
from io import BytesIO as StringIO
# TODO: Handle verifying non-data blocks
class BlockHashRecord(object):
""" Obje... | 47.280528 | 129 | 0.612034 |
9ef7f3f28c4343ff5e4ee1e06f47ee67769fceaf | 464 | py | Python | airtouch3/const.py | ozczecho/custom_components | 0c4eef070543b42af57dbaa3730e868ab3b50df1 | [
"Unlicense"
] | 5 | 2020-09-16T03:45:56.000Z | 2021-07-28T23:04:15.000Z | airtouch3/const.py | ozczecho/custom_components | 0c4eef070543b42af57dbaa3730e868ab3b50df1 | [
"Unlicense"
] | 3 | 2021-01-28T03:34:49.000Z | 2022-01-30T05:54:27.000Z | airtouch3/const.py | ozczecho/custom_components | 0c4eef070543b42af57dbaa3730e868ab3b50df1 | [
"Unlicense"
] | 1 | 2021-07-28T23:04:17.000Z | 2021-07-28T23:04:17.000Z | """Constants for AirTouch 3."""
from homeassistant.const import (
CONF_DEVICE_CLASS,
CONF_ICON,
CONF_NAME,
CONF_TYPE,
CONF_UNIT_OF_MEASUREMENT,
TEMP_CELSIUS,
PERCENTAGE,
)
DEFAULT_PORT = 8899
DOMAIN = "airtouch3"
TIMEOUT = 60
ATTR_INSIDE_TEMPERATURE = "inside_temperature"
FAN_QUIET = "Qui... | 18.56 | 46 | 0.728448 |
9ef7f625131a19be1503571425132df2cbe7e7c0 | 6,194 | py | Python | test/deployment/cluster_template_generator_test.py | WiseApp/cloudlift | 36fd8b3a8de15437bc0acca2060df7e6dff7ccc0 | [
"MIT"
] | 1 | 2021-07-12T05:22:48.000Z | 2021-07-12T05:22:48.000Z | test/deployment/cluster_template_generator_test.py | WiseApp/cloudlift | 36fd8b3a8de15437bc0acca2060df7e6dff7ccc0 | [
"MIT"
] | 22 | 2020-04-08T18:48:58.000Z | 2021-11-03T17:11:37.000Z | test/deployment/cluster_template_generator_test.py | WiseApp/cloudlift | 36fd8b3a8de15437bc0acca2060df7e6dff7ccc0 | [
"MIT"
] | 2 | 2020-04-19T10:10:22.000Z | 2021-07-21T07:33:05.000Z | import os
from unittest import TestCase
from cfn_flip import to_json
from mock import patch, PropertyMock
from cloudlift.deployment.cluster_template_generator import ClusterTemplateGenerator
ami_for_test = 'ami-04bb74f3ffa3aa3e2'
environment_config_when_vpc_parameterized = {
"test3": {
"cluster": {
... | 43.314685 | 120 | 0.611075 |
9ef806d62da4679cee678ec9819b50ca0816f9c8 | 20,506 | py | Python | parlai/agents/starspace/starspace.py | urvishdesai/ParlAI | 29743cc7b47c413c2181f68c0b7ef40a6f06a40f | [
"BSD-3-Clause"
] | 2 | 2020-03-22T10:18:09.000Z | 2020-05-06T21:48:47.000Z | parlai/agents/starspace/starspace.py | urvishdesai/dialogue-encoding-tasks-parlai | 29743cc7b47c413c2181f68c0b7ef40a6f06a40f | [
"BSD-3-Clause"
] | null | null | null | parlai/agents/starspace/starspace.py | urvishdesai/dialogue-encoding-tasks-parlai | 29743cc7b47c413c2181f68c0b7ef40a6f06a40f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
#... | 41.59432 | 122 | 0.544767 |
9ef81655085071596e7d5da719a33668992ab425 | 3,132 | py | Python | python/paddle/tests/test_vision_models.py | jurafish/Paddle | 15724e745409cf6af3df99ae3eec90511e482cbc | [
"Apache-2.0"
] | 17,085 | 2016-11-18T06:40:52.000Z | 2022-03-31T22:52:32.000Z | python/paddle/tests/test_vision_models.py | jurafish/Paddle | 15724e745409cf6af3df99ae3eec90511e482cbc | [
"Apache-2.0"
] | 29,769 | 2016-11-18T06:35:22.000Z | 2022-03-31T16:46:15.000Z | python/paddle/tests/test_vision_models.py | jurafish/Paddle | 15724e745409cf6af3df99ae3eec90511e482cbc | [
"Apache-2.0"
] | 4,641 | 2016-11-18T07:43:33.000Z | 2022-03-31T15:15:02.000Z | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 29 | 79 | 0.681992 |
9ef87644a467b7a43c75ac4ae95f1780dab19950 | 3,934 | py | Python | algopy/base_type.py | arthus701/algopy | 1e2430f803289bbaed6bbdff6c28f98d7767835c | [
"Unlicense"
] | 54 | 2015-03-05T13:38:08.000Z | 2021-11-29T11:54:48.000Z | algopy/base_type.py | arthus701/algopy | 1e2430f803289bbaed6bbdff6c28f98d7767835c | [
"Unlicense"
] | 7 | 2016-04-06T11:25:00.000Z | 2020-11-09T13:53:20.000Z | algopy/base_type.py | arthus701/algopy | 1e2430f803289bbaed6bbdff6c28f98d7767835c | [
"Unlicense"
] | 13 | 2015-01-17T17:05:56.000Z | 2021-08-05T01:13:16.000Z | """
This implements an abstrace base class Ring .
Rationale:
Goal is to separate the datatype specification from the algorithms and containers for the following reasons:
1) It allows to directly use the algorithms *without* overhead. E.g. calling mul(z.data, x.data, y.data)
has much le... | 35.125 | 113 | 0.630147 |
9ef8778c8ae8cfe845001494512ea25559439fdd | 1,476 | py | Python | py/211. Design Add and Search Words Data Structure.py | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | py/211. Design Add and Search Words Data Structure.py | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | py/211. Design Add and Search Words Data Structure.py | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/design-add-and-search-words-data-structure/
# Design a data structure that supports adding new words and finding if a string
# matches any previously added string.
# Implement the WordDictionary class:
################################################################################
f... | 29.52 | 80 | 0.562331 |
9ef88c6d38329d365b3fec6be120a57e28ac0ca1 | 882 | py | Python | Datasets/Vectors/international_boundary.py | monocilindro/qgis-earthengine-examples | 82aea8926d34ed3f4ad4a4a345ddbd225819d28f | [
"MIT"
] | 646 | 2019-12-03T06:09:03.000Z | 2022-03-28T03:37:08.000Z | Datasets/Vectors/international_boundary.py | csaybar/qgis-earthengine-examples | ba8942683834d2847ff3246bdd1859b36e50fe44 | [
"MIT"
] | 10 | 2019-12-30T03:42:44.000Z | 2021-05-22T07:34:07.000Z | Datasets/Vectors/international_boundary.py | csaybar/qgis-earthengine-examples | ba8942683834d2847ff3246bdd1859b36e50fe44 | [
"MIT"
] | 219 | 2019-12-06T02:20:53.000Z | 2022-03-30T15:14:27.000Z | # GitHub URL: https://github.com/giswqs/qgis-earthengine-examples/tree/master/Datasets/Vectors/international_boundary.py
import ee
from ee_plugin import Map
# LSIB: Large Scale International Boundary Polygons, Simplified
# dataset = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017')
# styleParams = {
# 'fillColor': ... | 30.413793 | 120 | 0.70068 |
9ef8c85f39ccac16f0151414595f690a2d7867f2 | 3,779 | py | Python | salt/states/mount.py | gotcha/salt | 7b84c704777d3d2062911895dc3fdf93d40e9848 | [
"Apache-2.0"
] | 1 | 2015-10-06T22:25:22.000Z | 2015-10-06T22:25:22.000Z | salt/states/mount.py | gotcha/salt | 7b84c704777d3d2062911895dc3fdf93d40e9848 | [
"Apache-2.0"
] | null | null | null | salt/states/mount.py | gotcha/salt | 7b84c704777d3d2062911895dc3fdf93d40e9848 | [
"Apache-2.0"
] | null | null | null | '''
Mounting of filesystems.
========================
Mount any type of mountable filesystem with the mounted function:
.. code-block:: yaml
/mnt/sdb:
mount.mounted:
- device: /dev/sdb1
- fstype: ext4
- mkmnt: True
- opts:
- defaults
'''
# Import salt libs
from sa... | 28.201493 | 78 | 0.532151 |
9ef8c94bcedb65f4df7e4037ecb05ce10bdb6b7e | 197 | py | Python | features/steps/yaml_steps.py | cloose/ray-tracer-challenge | 5e9dd56fb67c5cba47172986a963fc22a8cbcaa2 | [
"MIT"
] | null | null | null | features/steps/yaml_steps.py | cloose/ray-tracer-challenge | 5e9dd56fb67c5cba47172986a963fc22a8cbcaa2 | [
"MIT"
] | null | null | null | features/steps/yaml_steps.py | cloose/ray-tracer-challenge | 5e9dd56fb67c5cba47172986a963fc22a8cbcaa2 | [
"MIT"
] | null | null | null | from yaml import safe_load
from behave import given # pylint: disable=no-name-in-module
@given(u'data <- yaml')
def step_load_yaml_into_data(context):
context.data = safe_load(context.text)
| 24.625 | 61 | 0.761421 |
9ef8e6e7558410c1eb3a688807bf3e818f105341 | 3,234 | py | Python | code/part_b/dbc_capgmyo/vgg16_capgmyo_partb1.py | DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula | a5f8f234aebad671b38296730f46f0b637fadc64 | [
"MIT"
] | 3 | 2019-08-22T11:24:09.000Z | 2020-06-09T07:16:45.000Z | code/part_b/dbc_capgmyo/vgg16_capgmyo_partb1.py | DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula | a5f8f234aebad671b38296730f46f0b637fadc64 | [
"MIT"
] | 1 | 2019-08-24T06:25:24.000Z | 2019-08-24T06:25:24.000Z | code/part_b/dbc_capgmyo/vgg16_capgmyo_partb1.py | DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula | a5f8f234aebad671b38296730f46f0b637fadc64 | [
"MIT"
] | 1 | 2020-05-25T02:21:35.000Z | 2020-05-25T02:21:35.000Z | # -*- coding: utf-8 -*-
"""Make prediction and compute confusion matrix for modified input data"""
"""PART B1 : Zero electrode column of emg data"""
import numpy as np
import tensorflow as tf
import random
import os
os.environ['PYTHONHASHSEED'] = '0'
# The below is necessary for starting Numpy generat... | 29.4 | 93 | 0.723871 |
9ef8fa23055a327eb1b8c96ea3140170a8cb95eb | 3,309 | py | Python | BitsBack/ans.py | deepaks4077/bits-back | 0d4355302eb4c5a18a229fa15a0a1caf8fe529d4 | [
"MIT"
] | null | null | null | BitsBack/ans.py | deepaks4077/bits-back | 0d4355302eb4c5a18a229fa15a0a1caf8fe529d4 | [
"MIT"
] | null | null | null | BitsBack/ans.py | deepaks4077/bits-back | 0d4355302eb4c5a18a229fa15a0a1caf8fe529d4 | [
"MIT"
] | null | null | null | """
This class contains the code to encode / decode data with ANS
Based on https://github.com/rygorous/ryg_rans (public domain)
which implements a range asymmetric numeral system.
The range part is from range coding which uses intervals to code the information.
The intervals are determined with a start value and it's ... | 33.765306 | 100 | 0.565428 |
9ef8fe01eceb3e1038ded9d8a2fefbf9a3a7678f | 13 | py | Python | math/__init__.py | indranilsinharoy/iutils | 1b102029306fa2947d69d8ca80d976d143f3d068 | [
"MIT"
] | null | null | null | math/__init__.py | indranilsinharoy/iutils | 1b102029306fa2947d69d8ca80d976d143f3d068 | [
"MIT"
] | null | null | null | math/__init__.py | indranilsinharoy/iutils | 1b102029306fa2947d69d8ca80d976d143f3d068 | [
"MIT"
] | null | null | null | # math utils
| 6.5 | 12 | 0.692308 |
9ef90307277f0d7b52eb61cfd8179680f7aa8ea9 | 1,042 | py | Python | tests/test_models/test_messages/test_sending.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 13 | 2021-01-21T12:43:10.000Z | 2022-03-23T11:11:59.000Z | tests/test_models/test_messages/test_sending.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 259 | 2020-02-26T08:51:03.000Z | 2022-03-23T11:08:36.000Z | tests/test_models/test_messages/test_sending.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 5 | 2019-12-02T16:19:22.000Z | 2021-11-22T20:33:34.000Z | from botx import BubbleElement, KeyboardElement, MessageMarkup, UpdatePayload
def test_message_markup_will_add_row_if_there_is_no_existed_and_not_new_row() -> None:
markup1 = MessageMarkup()
markup1.add_bubble("/command", new_row=False)
markup2 = MessageMarkup()
markup2.add_bubble("/command")
as... | 28.944444 | 86 | 0.743762 |
9ef931f8cb64da9f997392889972225935978237 | 6,737 | py | Python | rlkit/state_distance/tdm_twin_sac.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | 1 | 2020-10-23T14:40:09.000Z | 2020-10-23T14:40:09.000Z | rlkit/state_distance/tdm_twin_sac.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | rlkit/state_distance/tdm_twin_sac.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | 1 | 2021-05-27T20:38:45.000Z | 2021-05-27T20:38:45.000Z | from collections import OrderedDict
import numpy as np
import torch
from torch import optim
import rlkit.torch.pytorch_util as ptu
from rlkit.misc.eval_util import create_stats_ordered_dict
from rlkit.state_distance.tdm import TemporalDifferenceModel
from rlkit.torch.sac.sac import TwinSAC
class TdmTwinSAC(Temporal... | 33.517413 | 99 | 0.56301 |
9ef9588cc95d93e7679cc733a7d7b185db625df0 | 114,692 | py | Python | wandb/sdk/wandb_run.py | davebulaval/client | 1da907af1d35cdbd2cfd9eb9aa0ebac3e95bf363 | [
"MIT"
] | null | null | null | wandb/sdk/wandb_run.py | davebulaval/client | 1da907af1d35cdbd2cfd9eb9aa0ebac3e95bf363 | [
"MIT"
] | null | null | null | wandb/sdk/wandb_run.py | davebulaval/client | 1da907af1d35cdbd2cfd9eb9aa0ebac3e95bf363 | [
"MIT"
] | null | null | null | import atexit
from datetime import timedelta
from enum import IntEnum
import glob
import json
import logging
import numbers
import os
import platform
import re
import sys
import threading
import time
import traceback
from types import TracebackType
from typing import (
Any,
Callable,
Dict,
List,
Nam... | 37.777339 | 171 | 0.579552 |
9ef987c556b6adfd1a0cefa7edadd6ff977e9bb4 | 2,834 | py | Python | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/gpactivatestandby/test_5times.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 9 | 2018-04-20T03:31:01.000Z | 2020-05-13T14:10:53.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/gpactivatestandby/test_5times.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 36 | 2017-09-21T09:12:27.000Z | 2020-06-17T16:40:48.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/gpactivatestandby/test_5times.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 32 | 2017-08-31T12:50:52.000Z | 2022-03-01T07:34:53.000Z | """
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the 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.... | 39.915493 | 132 | 0.699718 |
9ef98fee09a1c76bf20c80fb9fa87f476cf93001 | 3,539 | py | Python | tests/conftest.py | TariqAHassan/alsek | a0d0f44d2eea1538c9d04530ae917695f624d269 | [
"MIT"
] | 1 | 2021-08-16T02:38:40.000Z | 2021-08-16T02:38:40.000Z | tests/conftest.py | TariqAHassan/alsek | a0d0f44d2eea1538c9d04530ae917695f624d269 | [
"MIT"
] | null | null | null | tests/conftest.py | TariqAHassan/alsek | a0d0f44d2eea1538c9d04530ae917695f624d269 | [
"MIT"
] | null | null | null | """
Conftest
"""
from functools import partial
from pathlib import Path
from subprocess import PIPE, Popen
from typing import Any, Iterable, Optional
import pytest
from _pytest.fixtures import SubRequest
from click.testing import CliRunner
from pytest_redis import factories as redis_factories
from redis import R... | 26.609023 | 81 | 0.707262 |
9ef993d623ddca691d1b99d7399b60da5940ca84 | 1,022 | py | Python | MyProj/readQueriesFile.py | kinmanz/myproj | a7160516ad69174b0f93939abf032031f42eb352 | [
"MIT"
] | null | null | null | MyProj/readQueriesFile.py | kinmanz/myproj | a7160516ad69174b0f93939abf032031f42eb352 | [
"MIT"
] | null | null | null | MyProj/readQueriesFile.py | kinmanz/myproj | a7160516ad69174b0f93939abf032031f42eb352 | [
"MIT"
] | null | null | null | import csv
import json
from os.path import isfile, join
path_to_files = "data"
input_name = "query.yaHotelId.showInTop.sure.final.tsv"
output_name = "testQueries.json"
input_file_path = join(path_to_files, input_name)
output_file_path = join(path_to_files, output_name)
SURE = 0
# if not isfile(input_file_path):
que... | 27.621622 | 75 | 0.664384 |
9ef9986b288f4ed25630e33e80748967ab77e9b7 | 3,108 | py | Python | test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.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 ... | 55.5 | 94 | 0.778958 |
9ef9a4a9a6365f7a441ac6528598dd5aedaaf015 | 2,634 | py | Python | test/test_readwrite.py | pauldg/ro-crate-py | 695004f18175ca70b439534adece9e2242dca778 | [
"Apache-2.0"
] | null | null | null | test/test_readwrite.py | pauldg/ro-crate-py | 695004f18175ca70b439534adece9e2242dca778 | [
"Apache-2.0"
] | null | null | null | test/test_readwrite.py | pauldg/ro-crate-py | 695004f18175ca70b439534adece9e2242dca778 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2022 The University of Manchester, UK
# Copyright 2020-2022 Vlaams Instituut voor Biotechnologie (VIB), BE
# Copyright 2020-2022 Barcelona Supercomputing Center (BSC), ES
# Copyright 2020-2022 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
# Copyright 2022 École Polytechni... | 36.082192 | 98 | 0.649962 |
9ef9c00f44485090be066349b460d46757009fd4 | 303 | py | Python | conftest.py | pganssle/pytz-deprecation-shim | 47bd4bdd9346cafa6c6d66817082ccce099890ad | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2020-06-15T20:23:16.000Z | 2021-11-11T16:37:02.000Z | conftest.py | pganssle/pytz-deprecation-shim | 47bd4bdd9346cafa6c6d66817082ccce099890ad | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2020-06-11T21:37:09.000Z | 2021-11-15T17:47:36.000Z | conftest.py | pganssle/pytz-deprecation-shim | 47bd4bdd9346cafa6c6d66817082ccce099890ad | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-03-12T11:19:07.000Z | 2022-03-12T11:19:07.000Z | import os
from datetime import timedelta
import hypothesis
hypothesis.settings.register_profile("long", max_examples=5000)
hypothesis.settings.register_profile(
"ci", max_examples=2000, deadline=timedelta(seconds=1)
)
hypothesis.settings.load_profile(os.getenv(u"HYPOTHESIS_PROFILE", "default"))
| 25.25 | 77 | 0.811881 |
9efa2d42a5bd70308d81f89026abbc9e75c8e313 | 847 | py | Python | sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 44.578947 | 114 | 0.651712 |
9efa33a8f2a8c87ae43843a46b36b81f4385d231 | 24,619 | py | Python | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_icm20x.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_icm20x.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 7 | 2021-02-19T20:00:08.000Z | 2022-01-14T10:51:12.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_icm20x.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 14 | 2021-02-20T17:40:56.000Z | 2022-01-01T19:53:38.000Z | # SPDX-FileCopyrightText: 2020 Bryan Siepert for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_icm20x`
================================================================================
Library for the ST ICM20X Motion Sensor Family
* Author(s): Bryan Siepert
Implementation Notes
----------------... | 33.045638 | 100 | 0.64304 |
9efa63a7a2c0dcc66664771526d3d167b008f8db | 17,158 | py | Python | test/test_format_sv.py | joanisc/lingua-franca | 96fd7d82282f0ec9b1507385ac6be3d6b29ab23b | [
"Apache-2.0"
] | 1 | 2020-08-13T12:21:56.000Z | 2020-08-13T12:21:56.000Z | test/test_format_sv.py | joanisc/lingua-franca | 96fd7d82282f0ec9b1507385ac6be3d6b29ab23b | [
"Apache-2.0"
] | 3 | 2021-06-08T21:06:32.000Z | 2022-01-13T02:22:38.000Z | test/test_format_sv.py | joanisc/lingua-franca | 96fd7d82282f0ec9b1507385ac6be3d6b29ab23b | [
"Apache-2.0"
] | 1 | 2022-02-14T08:30:27.000Z | 2022-02-14T08:30:27.000Z | #
# Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 48.196629 | 79 | 0.529491 |
9efa757fb0ae9a152bc5fc8c1849f0675d5794f6 | 846 | py | Python | inventor/urls.py | machinalis/inventor | 63732c77122364956a5df37c2df126e8781e49e5 | [
"BSD-3-Clause"
] | 2 | 2015-09-21T02:07:55.000Z | 2018-04-06T05:07:20.000Z | inventor/urls.py | machinalis/inventor | 63732c77122364956a5df37c2df126e8781e49e5 | [
"BSD-3-Clause"
] | null | null | null | inventor/urls.py | machinalis/inventor | 63732c77122364956a5df37c2df126e8781e49e5 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.views.generic.base import RedirectView
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'inventor.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
#url(r'^admin/',... | 32.538462 | 71 | 0.62766 |
9efac2229cfb2b7827d0c21677daf8bc42db19bd | 130 | py | Python | censusreporter/api/config.py | sseguku/simplecensusug | 5b456f13a7e551e69252581553ddd89bd2704be8 | [
"MIT"
] | null | null | null | censusreporter/api/config.py | sseguku/simplecensusug | 5b456f13a7e551e69252581553ddd89bd2704be8 | [
"MIT"
] | null | null | null | censusreporter/api/config.py | sseguku/simplecensusug | 5b456f13a7e551e69252581553ddd89bd2704be8 | [
"MIT"
] | null | null | null | # Database
DB_NAME = 'census_2011'
DB_USER = 'census'
DB_PASSWORD = 'census'
WARD_SEARCH_ENDPOINT = 'http://wards.code4sa.org/'
| 16.25 | 50 | 0.730769 |
9efac27d2a54c22d500178053fd6ef7c70ff1d03 | 3,086 | py | Python | scripts/rpc/app.py | tongyingrui/spdk | 7dfe90df603d4f947723b4937feef28bdd008167 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T16:00:01.000Z | 2022-01-17T16:00:01.000Z | scripts/rpc/app.py | tongyingrui/spdk | 7dfe90df603d4f947723b4937feef28bdd008167 | [
"BSD-3-Clause"
] | null | null | null | scripts/rpc/app.py | tongyingrui/spdk | 7dfe90df603d4f947723b4937feef28bdd008167 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T21:54:41.000Z | 2022-02-10T21:54:41.000Z | from .helpers import deprecated_alias
@deprecated_alias('kill_instance')
def spdk_kill_instance(client, sig_name):
"""Send a signal to the SPDK process.
Args:
sig_name: signal to send ("SIGINT", "SIGTERM", "SIGQUIT", "SIGHUP", or "SIGKILL")
"""
params = {'sig_name': sig_name}
return clien... | 25.089431 | 101 | 0.665262 |
9efac427a9b8036fd6b5157a8acaa2d693aa3bb9 | 5,874 | py | Python | cmds/run_RBM.py | magic2du/dlnn | 9a6fdd1e9e84826c402b564853673dd1c9cd12b9 | [
"Apache-2.0"
] | null | null | null | cmds/run_RBM.py | magic2du/dlnn | 9a6fdd1e9e84826c402b564853673dd1c9cd12b9 | [
"Apache-2.0"
] | null | null | null | cmds/run_RBM.py | magic2du/dlnn | 9a6fdd1e9e84826c402b564853673dd1c9cd12b9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Tianchuan Du University of Delaware
# 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
#
# THIS CODE IS PROVIDED *AS IS* BAS... | 46.251969 | 155 | 0.681137 |
9efad63b81fab085d87ebaebbb60590d367401f4 | 189 | py | Python | iris_sdk/models/data/feature_lidb.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/feature_lidb.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/feature_lidb.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.feature_lidb import FeatureLidbMap
class FeatureLidb(FeatureLidbMap, BaseData):
pass | 27 | 60 | 0.825397 |
9efb163d36bc5d09d7bdd0e2b4e1a7750d11ca19 | 2,895 | py | Python | tests/test_circuit.py | UCSBarchlab/PyLSE | 571ec250a0b09033041fc8da7497a2f986f19de2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_circuit.py | UCSBarchlab/PyLSE | 571ec250a0b09033041fc8da7497a2f986f19de2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_circuit.py | UCSBarchlab/PyLSE | 571ec250a0b09033041fc8da7497a2f986f19de2 | [
"BSD-3-Clause"
] | 1 | 2021-06-08T19:25:16.000Z | 2021-06-08T19:25:16.000Z | from pylse.simulation import Simulation
import unittest
from pylse import working_circuit, PylseError, Wire
from pylse import jtl, c, inp, inp_at
from pylse.circuit import _Source, InGen
class TestCircuit(unittest.TestCase):
def setUp(self):
working_circuit().reset()
def test_nonexisting_input(self)... | 30.473684 | 70 | 0.56753 |
9efb29c1428a54573bd18aab3a3d06e8ca35f40e | 2,554 | py | Python | savu/plugins/ring_removal/ring_removal_sorting.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | savu/plugins/ring_removal/ring_removal_sorting.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | savu/plugins/ring_removal/ring_removal_sorting.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z | # Copyright 2014 Diamond Light Source 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 t... | 38.69697 | 77 | 0.690681 |
9efb3ba7a3e1eef51efd0c787db38c0231dd332b | 9,647 | py | Python | api/serializers.py | jtagcat/spleeter-web | f5ba36b0c9e675c09e7c72b6cec7c1a2e634745d | [
"MIT"
] | null | null | null | api/serializers.py | jtagcat/spleeter-web | f5ba36b0c9e675c09e7c72b6cec7c1a2e634745d | [
"MIT"
] | null | null | null | api/serializers.py | jtagcat/spleeter-web | f5ba36b0c9e675c09e7c72b6cec7c1a2e634745d | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import *
from .validators import is_valid_youtube
"""
This module defines Django serializers.
"""
class PickledObjectSerializerField(serializers.Field):
"""Serializer field for PickledObjectField"""
def to_internal_value(self, data):
return data
... | 41.226496 | 105 | 0.617809 |
9efb4cba8105d470a5a42b1abf9222d090506f09 | 4,455 | py | Python | Cogs/Printer.py | ArijitTheDev/CorpBot.py | cd2e7ced54630334a85b0235a8b02ed827e03581 | [
"MIT"
] | null | null | null | Cogs/Printer.py | ArijitTheDev/CorpBot.py | cd2e7ced54630334a85b0235a8b02ed827e03581 | [
"MIT"
] | null | null | null | Cogs/Printer.py | ArijitTheDev/CorpBot.py | cd2e7ced54630334a85b0235a8b02ed827e03581 | [
"MIT"
] | null | null | null | import asyncio
import discord
import time
import os
import random
import math
import numpy as np
from PIL import Image
from discord.ext import commands
from Cogs import GetImage
from Cogs import DisplayName
from Cogs import Message
def setup(bot):
# Add the bot and deps
settings = bot.get_cog("Settings")
... | 28.018868 | 122 | 0.661504 |
9efb57508655a56f854909490d4286e3748c5656 | 2,678 | py | Python | physicslib/vector.py | NamorNiradnug/PyPhysics | e20dce266724c5bcfd2d83c978e2683360b69c22 | [
"MIT"
] | null | null | null | physicslib/vector.py | NamorNiradnug/PyPhysics | e20dce266724c5bcfd2d83c978e2683360b69c22 | [
"MIT"
] | null | null | null | physicslib/vector.py | NamorNiradnug/PyPhysics | e20dce266724c5bcfd2d83c978e2683360b69c22 | [
"MIT"
] | null | null | null | from math import acos
class Vector:
"""3D Vector. Could be used as 2D."""
def __init__(self, x: float = 0, y: float = 0, z: float = 0):
self.data = [x, y, z]
def __add__(self, other):
return Vector(*(self.data[i] + other.data[i] for i in range(3)))
def __iadd__(self, other):
... | 29.108696 | 72 | 0.568335 |
9efb6ff63fdaea4af11aefe569b3f40a27c97a45 | 6,638 | py | Python | runtime/test/specs/V1_0/lstm2_state2.mod.py | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | runtime/test/specs/V1_0/lstm2_state2.mod.py | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | runtime/test/specs/V1_0/lstm2_state2.mod.py | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (C) 2017 The Android Open Source Project
#
# 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 la... | 46.41958 | 136 | 0.643869 |
9efb70d7317aa13a0a2240803a6b46bdc707297d | 387 | py | Python | stixy/stixy/asgi.py | AnthonyKenny98/Stixy | 5d6dd38cc590d28dc98cca2737bbacf4f1ec69ba | [
"MIT"
] | null | null | null | stixy/stixy/asgi.py | AnthonyKenny98/Stixy | 5d6dd38cc590d28dc98cca2737bbacf4f1ec69ba | [
"MIT"
] | 7 | 2021-03-19T03:10:21.000Z | 2021-09-22T19:00:19.000Z | stixy/stixy/asgi.py | AnthonyKenny98/Stixy | 5d6dd38cc590d28dc98cca2737bbacf4f1ec69ba | [
"MIT"
] | null | null | null | """
ASGI config for stixy project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | 22.764706 | 78 | 0.782946 |
9efbdcf0520b783caef44c64560e8bbcd68c7008 | 9,347 | py | Python | electrum/gui/qt/paytoedit.py | akshaynexus/qtum-electrum | 9fdda51bbc7e541b6f5743f16313d0b8b6123b48 | [
"MIT"
] | null | null | null | electrum/gui/qt/paytoedit.py | akshaynexus/qtum-electrum | 9fdda51bbc7e541b6f5743f16313d0b8b6123b48 | [
"MIT"
] | null | null | null | electrum/gui/qt/paytoedit.py | akshaynexus/qtum-electrum | 9fdda51bbc7e541b6f5743f16313d0b8b6123b48 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# 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 witho... | 33.743682 | 96 | 0.609821 |
9efbe59fcf3228cb9c7b74ea2eca40c752e741fb | 518 | py | Python | locations/sitemaps/sitemaps.py | allink/allink-apps | 101a9e2e0129d932970e0ae89f790d2033a7c805 | [
"BSD-3-Clause"
] | 1 | 2017-03-13T08:49:49.000Z | 2017-03-13T08:49:49.000Z | locations/sitemaps/sitemaps.py | allink/allink-apps | 101a9e2e0129d932970e0ae89f790d2033a7c805 | [
"BSD-3-Clause"
] | null | null | null | locations/sitemaps/sitemaps.py | allink/allink-apps | 101a9e2e0129d932970e0ae89f790d2033a7c805 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.sitemaps import Sitemap
from ..models import Locations
class LocationsSitemap(Sitemap):
changefreq = "never"
priority = 0.5
i18n = True
def __init__(self, *args, **kwargs):
self.namespace = kwargs.pop('names... | 22.521739 | 63 | 0.669884 |
9efbf19a0ffc1cdcb2da2732edbd94212c4c7851 | 386 | py | Python | hs_access_control/migrations/0024_remove_groupcommunityprivilege_allow_view.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 178 | 2015-01-08T23:03:36.000Z | 2022-03-03T13:56:45.000Z | hs_access_control/migrations/0024_remove_groupcommunityprivilege_allow_view.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 4,125 | 2015-01-01T14:26:15.000Z | 2022-03-31T16:38:55.000Z | hs_access_control/migrations/0024_remove_groupcommunityprivilege_allow_view.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 53 | 2015-03-15T17:56:51.000Z | 2022-03-17T00:32:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-08-22 15:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hs_access_control', '0023_auto_20190131_1523'),
]
operations = [
migrations.RemoveField(
model_name='groupcom... | 19.3 | 57 | 0.61399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.