hexsha stringlengths 40 40 | size int64 6 1.04M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 247 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | 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 247 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 247 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.04M | avg_line_length float64 1.53 618k | max_line_length int64 1 1.02M | alphanum_fraction float64 0 1 | original_content stringlengths 6 1.04M | filtered:remove_non_ascii int64 0 538k | filtered:remove_decorators int64 0 917k | filtered:remove_async int64 0 722k | filtered:remove_classes int64 -45 1M | filtered:remove_generators int64 0 814k | filtered:remove_function_no_docstring int64 -102 850k | filtered:remove_class_no_docstring int64 -3 5.46k | filtered:remove_unused_imports int64 -1,350 52.4k | filtered:remove_delete_markers int64 0 59.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aae0e362a38f56ce2cc7a1385f0822cd2db7ed86 | 2,823 | py | Python | examples/wavelets/chirp_cwt_mexh.py | carnot-shailesh/cr-sparse | 989ebead8a8ac37ade643093e1caa31ae2a3eda1 | [
"Apache-2.0"
] | 42 | 2021-06-11T17:11:29.000Z | 2022-03-29T11:51:44.000Z | examples/wavelets/chirp_cwt_mexh.py | carnot-shailesh/cr-sparse | 989ebead8a8ac37ade643093e1caa31ae2a3eda1 | [
"Apache-2.0"
] | 19 | 2021-06-04T11:36:11.000Z | 2022-01-22T20:13:39.000Z | examples/wavelets/chirp_cwt_mexh.py | carnot-shailesh/cr-sparse | 989ebead8a8ac37ade643093e1caa31ae2a3eda1 | [
"Apache-2.0"
] | 5 | 2021-11-21T21:01:11.000Z | 2022-02-28T07:20:03.000Z | """
Chirp CWT with Ricker
=======================
In this example, we analyze a chirp signal with a Ricker (a.k.a. Mexican Hat wavelet)
"""
# Configure JAX to work with 64-bit floating point precision.
from jax.config import config
config.update("jax_enable_x64", True)
# %%
# Let's import necessary libraries
impo... | 26.383178 | 99 | 0.685087 | """
Chirp CWT with Ricker
=======================
In this example, we analyze a chirp signal with a Ricker (a.k.a. Mexican Hat wavelet)
"""
# Configure JAX to work with 64-bit floating point precision.
from jax.config import config
config.update("jax_enable_x64", True)
# %%
# Let's import necessary libraries
impo... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
40f8a4494b9bdf239b895320690f0d81b2f6c458 | 6,971 | py | Python | cogs/maps.py | lifehackerhansol/Sycamore | 39b4574cd8224c2b4927992cadf22e4c4c368bd1 | [
"0BSD"
] | null | null | null | cogs/maps.py | lifehackerhansol/Sycamore | 39b4574cd8224c2b4927992cadf22e4c4c368bd1 | [
"0BSD"
] | 4 | 2021-05-25T06:48:00.000Z | 2022-02-03T18:41:57.000Z | cogs/maps.py | lifehackerhansol/Sycamore | 39b4574cd8224c2b4927992cadf22e4c4c368bd1 | [
"0BSD"
] | null | null | null | #
# ISC License
#
# Copyright (C) 2021-present lifehackerhansol
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" A... | 29.918455 | 114 | 0.611103 | #
# ISC License
#
# Copyright (C) 2021-present lifehackerhansol
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" A... | 0 | 4,563 | 334 | 1,169 | 0 | 21 | 0 | 4 | 92 |
6a03a71123c452d2d58aa64cd34f2cc6ff76c80b | 155 | py | Python | mysite/blog/admin.py | sakshikhachane/Blogger | a1a6f2fc1843b83b47f1ba8b3c88c5c478f5d6ac | [
"MIT"
] | 52 | 2020-07-01T10:06:34.000Z | 2021-09-30T18:23:23.000Z | mysite/blog/admin.py | sakshikhachane/Blogger | a1a6f2fc1843b83b47f1ba8b3c88c5c478f5d6ac | [
"MIT"
] | 206 | 2020-07-25T08:48:05.000Z | 2022-03-12T00:43:35.000Z | mysite/blog/admin.py | sakshikhachane/Blogger | a1a6f2fc1843b83b47f1ba8b3c88c5c478f5d6ac | [
"MIT"
] | 124 | 2020-08-07T11:22:44.000Z | 2021-10-16T05:39:17.000Z | from django.contrib import admin
from .models import Post, TagDict
# Register your models here.
admin.site.register(Post)
admin.site.register(TagDict)
| 15.5 | 33 | 0.787097 | from django.contrib import admin
from .models import Post, TagDict
# Register your models here.
admin.site.register(Post)
admin.site.register(TagDict)
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
bd76b059a85838004b73efadfe04b0077dbae495 | 1,985 | py | Python | tests/test_day4.py | fullybaked/advent-of-code | def5fa21574536465fe13ed2ec8de1e4c7cdf856 | [
"MIT"
] | null | null | null | tests/test_day4.py | fullybaked/advent-of-code | def5fa21574536465fe13ed2ec8de1e4c7cdf856 | [
"MIT"
] | null | null | null | tests/test_day4.py | fullybaked/advent-of-code | def5fa21574536465fe13ed2ec8de1e4c7cdf856 | [
"MIT"
] | null | null | null |
EXAMPLE_IN = """7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1
22 13 17 11 0
8 2 23 4 24
21 9 14 16 7
6 10 3 18 5
1 12 20 15 19
3 15 0 2 22
9 18 13 17 5
19 8 7 25 23
20 11 10 24 4
14 21 16 12 6
14 21 17 24 4
10 16 15 9 19
18 8 23 26 20
22 11 13 6 5
2 0 12 3 7
"""
... | 20.463918 | 86 | 0.58539 | from src.day4 import Board, Game, load_data
from unittest.mock import patch, mock_open
EXAMPLE_IN = """7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1
22 13 17 11 0
8 2 23 4 24
21 9 14 16 7
6 10 3 18 5
1 12 20 15 19
3 15 0 2 22
9 18 13 17 5
19 8 7 25 23
20 11 10 24 4
14 21 16... | 0 | 0 | 0 | 0 | 0 | 1,458 | 0 | 43 | 159 |
22f6030013bcd837394c0207f0adfee79e6d965d | 4,633 | py | Python | lib/rucio/web/rest/webpy/v1/credential.py | ijjorama/rucio | 69391847117cf3567081814fbc30f476ada88853 | [
"Apache-2.0"
] | null | null | null | lib/rucio/web/rest/webpy/v1/credential.py | ijjorama/rucio | 69391847117cf3567081814fbc30f476ada88853 | [
"Apache-2.0"
] | null | null | null | lib/rucio/web/rest/webpy/v1/credential.py | ijjorama/rucio | 69391847117cf3567081814fbc30f476ada88853 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2012-2018 CERN for the benefit of the ATLAS collaboration.
#
# 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
... | 34.066176 | 129 | 0.64278 | #!/usr/bin/env python
# Copyright 2012-2018 CERN for the benefit of the ATLAS collaboration.
#
# 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
... | 0 | 2,523 | 0 | 605 | 0 | 0 | 0 | 230 | 182 |
e6ff18f98511f3a89b06bbe9cae4cef30086dde0 | 2,048 | py | Python | server/apps/utils/aws/kinesis.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/utils/aws/kinesis.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/utils/aws/kinesis.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | __author__ = 'dkarchmer'
import logging
import boto3
from django.conf import settings
from .common import AWS_REGION
# Get an instance of a logger
logger = logging.getLogger(__name__)
FIREHOSE_STREAM_NAME = getattr(settings, 'FIREHOSE_STREAM_NAME')
firehose_client = boto3.client('firehose', region_name=AWS_REGION... | 27.306667 | 101 | 0.663086 | __author__ = 'dkarchmer'
import datetime
import json
import logging
import pprint
import boto3
from django.conf import settings
from .common import AWS_REGION
# Get an instance of a logger
logger = logging.getLogger(__name__)
FIREHOSE_STREAM_NAME = getattr(settings, 'FIREHOSE_STREAM_NAME')
firehose_client = boto... | 0 | 0 | 0 | 0 | 0 | 1,587 | 0 | -24 | 159 |
57401c5732fe62caa7393d19d927adac65849582 | 101 | py | Python | lang/py/cookbook/v2/source/cb2_2_2_sol_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_2_sol_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_2_sol_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | file_object.writelines(list_of_text_strings)
open('abinfile', 'wb').writelines(list_of_data_strings)
| 33.666667 | 55 | 0.841584 | file_object.writelines(list_of_text_strings)
open('abinfile', 'wb').writelines(list_of_data_strings)
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
46022dba439632662d356578c1c51146aecefe0f | 24,554 | py | Python | tools/perf/core/bot_platforms.py | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | tools/perf/core/bot_platforms.py | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | tools/perf/core/bot_platforms.py | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2018 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 os
from core import benchmark_finders
_SHARD_MAP_DIR = os.path.join(os.path.dirname(__file__), 'shard_maps')
_ALL_BENCHMARKS_BY_NAMES = dict(
(... | 35.688953 | 80 | 0.691008 | # Copyright 2018 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 os
import six.moves.urllib.parse # pylint: disable=import-error
from core import benchmark_finders
from core import benchmark_utils
from telemetry.s... | 0 | 1,462 | 0 | 3,791 | 0 | 2,217 | 0 | 38 | 444 |
1c463b00bcc93f690abe0126cebd12479e2b2c5d | 1,568 | py | Python | cirq/optimizers/drop_negligible.py | sleichen/Cirq | 02f715203406d1f2af2d86e7561af09a2cdd4d45 | [
"Apache-2.0"
] | 1 | 2020-05-20T00:08:33.000Z | 2020-05-20T00:08:33.000Z | cirq/optimizers/drop_negligible.py | sleichen/Cirq | 02f715203406d1f2af2d86e7561af09a2cdd4d45 | [
"Apache-2.0"
] | null | null | null | cirq/optimizers/drop_negligible.py | sleichen/Cirq | 02f715203406d1f2af2d86e7561af09a2cdd4d45 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.333333 | 78 | 0.714286 | # Copyright 2018 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 0 | 0 | 0 | 647 | 0 | 0 | 0 | 56 | 120 |
915cd60e3606a8124de1feb87deb1d79540401cf | 13,438 | py | Python | transcriptic/util.py | transcriptic/transcriptic | 1b5df943db266d18dbf055d0ace68c3cde8980e9 | [
"BSD-3-Clause"
] | 32 | 2015-10-27T22:51:05.000Z | 2020-03-26T00:43:32.000Z | transcriptic/util.py | transcriptic/transcriptic | 1b5df943db266d18dbf055d0ace68c3cde8980e9 | [
"BSD-3-Clause"
] | 95 | 2015-10-27T15:30:46.000Z | 2020-03-30T00:38:05.000Z | transcriptic/util.py | transcriptic/transcriptic | 1b5df943db266d18dbf055d0ace68c3cde8980e9 | [
"BSD-3-Clause"
] | 10 | 2015-10-27T06:35:30.000Z | 2019-09-26T15:18:49.000Z | import re
import click
def ascii_encode(non_compatible_string):
"""Primarily used for ensuring terminal display compatibility"""
if non_compatible_string:
return non_compatible_string.encode("ascii", errors="ignore").decode("ascii")
else:
return ""
def regex_manifest(protocol, input)... | 36.417344 | 90 | 0.598527 | import itertools
import json
import re
from collections import OrderedDict, defaultdict
from os.path import abspath, dirname, join
import click
def natural_sort(l):
convert = lambda text: int(text) if text.isdigit() else text.lower()
alphanum_key = lambda key: [convert(c) for c in re.split("([0-9]+)", key)]... | 0 | 94 | 0 | 9,628 | 0 | 2,002 | 0 | 33 | 319 |
da4d6902696eeeab8fc42d5ee76fbedcae018a29 | 1,062 | py | Python | src/scripts/metodos_painel_administrativo.py | danilopcarlotti/scdf | cb89216f6a07da94f765d101390a521861063c76 | [
"MIT"
] | 3 | 2019-11-28T22:58:50.000Z | 2020-08-20T12:23:38.000Z | src/scripts/metodos_painel_administrativo.py | danilopcarlotti/scdf | cb89216f6a07da94f765d101390a521861063c76 | [
"MIT"
] | null | null | null | src/scripts/metodos_painel_administrativo.py | danilopcarlotti/scdf | cb89216f6a07da94f765d101390a521861063c76 | [
"MIT"
] | 1 | 2019-03-21T20:13:51.000Z | 2019-03-21T20:13:51.000Z | import os
from dotenv import load_dotenv, find_dotenv
from pymongo import MongoClient
load_dotenv(find_dotenv())
mongo_url = os.getenv("mongo_url")
myclient = MongoClient(mongo_url)
mydb_master = myclient["SCDF"]
col = mydb_master["investigacoes"] | 33.1875 | 72 | 0.764595 | import os
from dotenv import load_dotenv, find_dotenv
from pymongo import MongoClient
load_dotenv(find_dotenv())
mongo_url = os.getenv("mongo_url")
myclient = MongoClient(mongo_url)
mydb_master = myclient["SCDF"]
col = mydb_master["investigacoes"]
def usuarios_ativos():
usuarios = []
for data in col.find({})... | 0 | 0 | 0 | 0 | 0 | 721 | 0 | 0 | 92 |
13a3177441684c7e57faf556b63af77fa9647257 | 9,185 | py | Python | eotile/eotile_cli.py | CS-SI/eotile | af395a0804af79ed1e7f25eb2cf3d875fcd85108 | [
"Apache-2.0"
] | 7 | 2021-09-21T09:08:13.000Z | 2021-09-30T13:16:51.000Z | eotile/eotile_cli.py | CS-SI/eotile | af395a0804af79ed1e7f25eb2cf3d875fcd85108 | [
"Apache-2.0"
] | 2 | 2021-11-16T15:20:46.000Z | 2022-02-11T17:12:52.000Z | eotile/eotile_cli.py | CS-SI/eotile | af395a0804af79ed1e7f25eb2cf3d875fcd85108 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2021 CS GROUP - France.
#
# This file is part of EOTile.
# See https://github.com/CS-SI/eotile for further info.
#
# 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... | 33.892989 | 103 | 0.583669 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2021 CS GROUP - France.
#
# This file is part of EOTile.
# See https://github.com/CS-SI/eotile for further info.
#
# 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... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
106c341a5d8629033f9f396ac74dcbbce0511048 | 458 | py | Python | setup.py | openabis/openabis-fingerjetfx | 869eadd23a21a34dad6da69e26e2993495ddc7ba | [
"Apache-2.0"
] | 2 | 2021-09-13T18:34:33.000Z | 2021-10-30T19:18:32.000Z | setup.py | openabis/openabis-fingerjetfx | 869eadd23a21a34dad6da69e26e2993495ddc7ba | [
"Apache-2.0"
] | 2 | 2021-06-08T20:35:40.000Z | 2022-01-13T01:48:52.000Z | setup.py | openabis/openabis-fingerjetfx | 869eadd23a21a34dad6da69e26e2993495ddc7ba | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name='openabis-fingerjetfx',
version='0.0.1',
packages=['openabis_fingerjetfx'],
url='https://github.com/newlogic42/openabis-fingerjetfx',
license='Apache License',
author='newlogic42',
author_email='',
description='OpenAbis\' plugin implementatio... | 24.105263 | 85 | 0.641921 | from distutils.core import setup
setup(
name='openabis-fingerjetfx',
version='0.0.1',
packages=['openabis_fingerjetfx'],
url='https://github.com/newlogic42/openabis-fingerjetfx',
license='Apache License',
author='newlogic42',
author_email='',
description='OpenAbis\' plugin implementatio... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
857d84388f45bda63af9b6545aeac3ca456dc9df | 4,050 | py | Python | cpu.py | WorldsApartDevTeam/py-snes | fc0c5be44a0ac8ef560f94eb5b0a29823666c4af | [
"MIT"
] | null | null | null | cpu.py | WorldsApartDevTeam/py-snes | fc0c5be44a0ac8ef560f94eb5b0a29823666c4af | [
"MIT"
] | null | null | null | cpu.py | WorldsApartDevTeam/py-snes | fc0c5be44a0ac8ef560f94eb5b0a29823666c4af | [
"MIT"
] | null | null | null |
cpu_flags = {
"N": 0x80, # negative
"V": 0x40, # overflow
"M": 0x20, # accumulator size (set => 8bits)
"X": 0x10, # index size (set => 8bits)
"D": 0x08, # decimal flag (does nothing on SNES, I think)
"I": 0x04, # IRQ disabled when set
"Z": 0x02, # zero
"C": 0x01 # carry (can be copied ... | 28.125 | 85 | 0.53037 | import memory
import instructions
cpu_flags = {
"N": 0x80, # negative
"V": 0x40, # overflow
"M": 0x20, # accumulator size (set => 8bits)
"X": 0x10, # index size (set => 8bits)
"D": 0x08, # decimal flag (does nothing on SNES, I think)
"I": 0x04, # IRQ disabled when set
"Z": 0x02, # zero
... | 0 | 0 | 0 | 2,927 | 0 | 658 | 0 | -10 | 90 |
68036449168a00a08f919bb1b733ec487866094f | 3,778 | py | Python | camera_calibration.py | zyfccc/Spectral-Illumination-Correction-Achieving-Relative-Color-Constancy-Under-the-Spectral-Domain | 051af9662dbe53deaf2d493fe8dbf0c9adce7ccb | [
"MIT"
] | 8 | 2019-12-17T15:07:17.000Z | 2021-08-19T09:13:58.000Z | camera_calibration.py | zyfccc/Spectral-Illumination-Correction-Achieving-Relative-Color-Constancy-Under-the-Spectral-Domain | 051af9662dbe53deaf2d493fe8dbf0c9adce7ccb | [
"MIT"
] | null | null | null | camera_calibration.py | zyfccc/Spectral-Illumination-Correction-Achieving-Relative-Color-Constancy-Under-the-Spectral-Domain | 051af9662dbe53deaf2d493fe8dbf0c9adce7ccb | [
"MIT"
] | 3 | 2020-01-06T04:20:55.000Z | 2020-01-25T08:42:30.000Z | import cv2
import json
import matplotlib.pyplot as plt
import numpy as np
import libs.method.QcImage as QcImage
import libs.method.SICCalibrationRegression_MB3 as SICCalibrationRegression_MB3
from libs.model.TrainingSet import TrainingSet
JSON_PATH = 'Dataset/data_color_chart/tags.json'
IMAGE_PATH = 'Dataset/data_col... | 30.967213 | 83 | 0.593965 | import cv2
import json
import statistics
import matplotlib.pyplot as plt
import numpy as np
import libs.method.QcImage as QcImage
import libs.method.SICCalibrationRegression_MB3 as SICCalibrationRegression_MB3
from libs.model.TrainingSet import TrainingSet
JSON_PATH = 'Dataset/data_color_chart/tags.json'
IMAGE_PATH =... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -4 | 22 |
50e801d52e406df4ca9071d550d4975d7ffab046 | 621 | py | Python | setup.py | im-na02/melke | f25a08aafb52c596ff839799ac05b3dd336afc42 | [
"MIT"
] | 2 | 2020-10-10T07:05:37.000Z | 2020-11-26T08:31:07.000Z | setup.py | im-na02/melke | f25a08aafb52c596ff839799ac05b3dd336afc42 | [
"MIT"
] | null | null | null | setup.py | im-na02/melke | f25a08aafb52c596ff839799ac05b3dd336afc42 | [
"MIT"
] | null | null | null |
from setuptools import setup
setup(name = 'MELKE',
version = '1',
description = 'Extract entities and relations from BIO-text',
long_description = 'You can read brief description of MELKE here: \nhttps://github.com/im-na02/melke/',
url = 'https://github.com/im-na02/melke/',
licen... | 32.684211 | 110 | 0.587762 |
from setuptools import setup, find_packages
setup(name = 'MELKE',
version = '1',
description = 'Extract entities and relations from BIO-text',
long_description = 'You can read brief description of MELKE here: \nhttps://github.com/im-na02/melke/',
url = 'https://github.com/im-na02/melke/... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 0 |
28d0f1dc82637d31f1d9cbb5b22536dc42f77318 | 45 | py | Python | tests/__init__.py | krahabb/motion_frontend | 57576cc95d5105b604b8b270d449b6bf9be54356 | [
"MIT"
] | null | null | null | tests/__init__.py | krahabb/motion_frontend | 57576cc95d5105b604b8b270d449b6bf9be54356 | [
"MIT"
] | null | null | null | tests/__init__.py | krahabb/motion_frontend | 57576cc95d5105b604b8b270d449b6bf9be54356 | [
"MIT"
] | null | null | null | """Tests for motion_frontend integration."""
| 22.5 | 44 | 0.755556 | """Tests for motion_frontend integration."""
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
93541fed16a76521b9e6ed4cde781c0fa86a2f6c | 398 | py | Python | ex104.py | felipesch92/PythonExercicios | 73edcbde6beaabcfc86af3dd6e58473f1eecabd3 | [
"MIT"
] | null | null | null | ex104.py | felipesch92/PythonExercicios | 73edcbde6beaabcfc86af3dd6e58473f1eecabd3 | [
"MIT"
] | null | null | null | ex104.py | felipesch92/PythonExercicios | 73edcbde6beaabcfc86af3dd6e58473f1eecabd3 | [
"MIT"
] | null | null | null | # Crie um programa que tenha a funo leiaInt(), que vai funcionar
# de forma semelhante a funo input() do Python, s que fazendo a
# validao para aceitar apenas um valor numrico. Ex: n = leiaInt(Digite um n: )
n = leiaInt('Nmero: ')
print(n) | 30.615385 | 83 | 0.663317 | # Crie um programa que tenha a função leiaInt(), que vai funcionar
# de forma semelhante ‘a função input() do Python, só que fazendo a
# validação para aceitar apenas um valor numérico. Ex: n = leiaInt(‘Digite um n: ‘)
def leiaInt(msg):
num = input(msg)
if num.isnumeric():
return int(num)
else:
... | 31 | 0 | 0 | 0 | 0 | 121 | 0 | 0 | 22 |
c6c6ce5278640388d7790acb0f21dac193c29b5a | 24,111 | py | Python | DataHandler.py | COE420Group4/Donation-Nation | 58d62bc3a28aba0ce2b484ad68329ac0bd0680f2 | [
"MIT"
] | null | null | null | DataHandler.py | COE420Group4/Donation-Nation | 58d62bc3a28aba0ce2b484ad68329ac0bd0680f2 | [
"MIT"
] | null | null | null | DataHandler.py | COE420Group4/Donation-Nation | 58d62bc3a28aba0ce2b484ad68329ac0bd0680f2 | [
"MIT"
] | null | null | null | # Import our database and initialize it
from db import DB
sql = DB()
sql.clear_db()
sql.init_db()
sql.populate()
# Checker function to check all form variables
# Checker function to check that all form variables are alphabetic
# Checker function to check that all form variables are alphanum
# Checker function to ... | 36.42145 | 380 | 0.690017 | # Import our database and initialize it
from db import DB
import send_email
import re
import hashlib
import uuid
import traceback
from datetime import datetime
from base64 import standard_b64encode
sql = DB()
sql.clear_db()
sql.init_db()
sql.populate()
# Checker function to check all form variables
def check_form(fo... | 0 | 0 | 0 | 22,388 | 0 | 995 | 0 | -14 | 380 |
db78e595d47bb20e71fcc8360f4c0e8c6f29044c | 327 | py | Python | js/json2/__init__.py | fanstatic/js.json | 907c75b0867930fefba839cdaad3de22286d279d | [
"BSD-3-Clause"
] | null | null | null | js/json2/__init__.py | fanstatic/js.json | 907c75b0867930fefba839cdaad3de22286d279d | [
"BSD-3-Clause"
] | null | null | null | js/json2/__init__.py | fanstatic/js.json | 907c75b0867930fefba839cdaad3de22286d279d | [
"BSD-3-Clause"
] | null | null | null | from fanstatic import Library, Resource
from fanstatic.core import render_js
library = Library('json2', 'resources')
def earlier_than_ie8(url):
"""Native JSON support was introduced in IE8."""
return '<!--[if lt IE 8]>%s<![endif]-->' % render_js(url)
json2 = Resource(library, 'json2.js', renderer=earlier_tha... | 29.727273 | 64 | 0.712538 | from fanstatic import Library, Resource
from fanstatic.core import render_js
library = Library('json2', 'resources')
def earlier_than_ie8(url):
"""Native JSON support was introduced in IE8."""
return '<!--[if lt IE 8]>%s<![endif]-->' % render_js(url)
json2 = Resource(library, 'json2.js', renderer=earlier_tha... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ea39ce6ed581ea5749f8a481a06db78673172cb8 | 1,148 | py | Python | sim_swiss.py | geordanr/tourneysim | cea8ee3ea60b9e622b2338d46b98b673d05bc0a2 | [
"MIT"
] | null | null | null | sim_swiss.py | geordanr/tourneysim | cea8ee3ea60b9e622b2338d46b98b673d05bc0a2 | [
"MIT"
] | null | null | null | sim_swiss.py | geordanr/tourneysim | cea8ee3ea60b9e622b2338d46b98b673d05bc0a2 | [
"MIT"
] | null | null | null | '''Swiss pairing simulation'''
import matplotlib
matplotlib.use('SVG')
if __name__ == '__main__':
main()
| 31.027027 | 95 | 0.680314 | '''Swiss pairing simulation'''
import matplotlib
matplotlib.use('SVG')
import matplotlib.pyplot as plt
import numpy as np
from tournament import SwissTournament, PairingError
def main():
# SwissTournament.performance_sigma = 2
num_iterations = 1000
num_players = 64
tournament_points = np.empty([num_i... | 0 | 0 | 0 | 0 | 0 | 910 | 0 | 38 | 90 |
973f09129ea0344a429f65f36474f379bbe8c43b | 638 | py | Python | LabCalc/Ex02/plot.py | giuuliorusso/uni-physics | 11939b34cb09ca579d9e45fa224b23db0fb7e4f9 | [
"MIT"
] | 2 | 2020-11-06T15:45:46.000Z | 2020-11-08T15:52:15.000Z | LabCalc/Ex02/plot.py | giuuliorusso/uni-physics | 11939b34cb09ca579d9e45fa224b23db0fb7e4f9 | [
"MIT"
] | null | null | null | LabCalc/Ex02/plot.py | giuuliorusso/uni-physics | 11939b34cb09ca579d9e45fa224b23db0fb7e4f9 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
t, x, y = np.loadtxt("out/traiettoria.dat", skiprows=1, unpack=True)
# Traiettoria
plt.figure(figsize=(5, 5))
plt.plot(x, y, "-o", color="tab:blue", markersize=3)
plt.title("Traiettoria")
plt.xlabel("x(t)")
plt.ylabel("y(t)")
plt.savefig("out/traiettoria")
# x
plt.... | 18.228571 | 68 | 0.652038 | import matplotlib.pyplot as plt
import numpy as np
t, x, y = np.loadtxt("out/traiettoria.dat", skiprows=1, unpack=True)
# Traiettoria
plt.figure(figsize=(5, 5))
plt.plot(x, y, "-o", color="tab:blue", markersize=3)
plt.title("Traiettoria")
plt.xlabel("x(t)")
plt.ylabel("y(t)")
plt.savefig("out/traiettoria")
# x
plt.... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
860a5571e29f5dffb1eb769b525b0bee732faa7d | 9,185 | py | Python | src/main.py | igor97100/tf2up | d45d449f4f0cf325b758b0023fc2654c5232fe70 | [
"MIT"
] | null | null | null | src/main.py | igor97100/tf2up | d45d449f4f0cf325b758b0023fc2654c5232fe70 | [
"MIT"
] | null | null | null | src/main.py | igor97100/tf2up | d45d449f4f0cf325b758b0023fc2654c5232fe70 | [
"MIT"
] | null | null | null | """Simple wrapper to upgrade the files by github URL"""
import logging
import os
import shutil
import subprocess
from hashlib import md5
from typing import Tuple, List
import requests
import tensorflow as tf
# TODO: install file properly with `pip install -e .`
import sys
sys.path.append(os.path.abspath(os.path.dirn... | 31.892361 | 91 | 0.615133 | """Simple wrapper to upgrade the files by github URL"""
import json
import logging
import os
import re
import shutil
import subprocess
import urllib
from hashlib import md5
from typing import Tuple, List
import requests
import tensorflow as tf
# TODO: install file properly with `pip install -e .`
import sys
sys.pat... | 0 | 3,576 | 0 | 409 | 0 | 0 | 0 | 15 | 227 |
3117f09b419d9cef11d0b9cd97028c681b2e4929 | 177 | py | Python | A/resolve.py | staguchi0703/ABC174 | 7afa7c72cb26653808947538dbeaa9cb386f16af | [
"MIT"
] | null | null | null | A/resolve.py | staguchi0703/ABC174 | 7afa7c72cb26653808947538dbeaa9cb386f16af | [
"MIT"
] | null | null | null | A/resolve.py | staguchi0703/ABC174 | 7afa7c72cb26653808947538dbeaa9cb386f16af | [
"MIT"
] | null | null | null | def resolve():
'''
code here
'''
X = int(input())
if X >= 30:
print('Yes')
else:
print('No')
if __name__ == "__main__":
resolve()
| 11.8 | 26 | 0.429379 | def resolve():
'''
code here
'''
X = int(input())
if X >= 30:
print('Yes')
else:
print('No')
if __name__ == "__main__":
resolve()
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2c59b084e6e7d905719a8cb30cf5382be7e6db57 | 405 | py | Python | twistedbot/plugins/core/chat_follow.py | lukleh/TwistedBot | 310509c037335845838e699f9f9d56af117e03c9 | [
"MIT"
] | 12 | 2015-01-21T00:24:06.000Z | 2021-07-01T03:06:39.000Z | twistedbot/plugins/core/chat_follow.py | lukleh/TwistedBot | 310509c037335845838e699f9f9d56af117e03c9 | [
"MIT"
] | 1 | 2015-01-21T00:23:24.000Z | 2015-01-21T20:21:09.000Z | twistedbot/plugins/core/chat_follow.py | lukleh/TwistedBot | 310509c037335845838e699f9f9d56af117e03c9 | [
"MIT"
] | 2 | 2015-01-20T21:31:10.000Z | 2018-06-19T09:12:04.000Z |
plugin = Follow
| 20.25 | 62 | 0.718519 |
from twistedbot.plugins.base import PluginChatBase
from twistedbot.behavior_tree import FollowPlayer
class Follow(PluginChatBase):
@property
def command_verb(self):
return "follow"
@property
def help(self):
return "bot starts following you"
def command(self, sender, command, arg... | 0 | 90 | 0 | 171 | 0 | 0 | 0 | 57 | 68 |
86c69a45f72b481968e7937e112e92137f543764 | 53,829 | py | Python | dataloader/dataset.py | XiaoJake/DS-Net | 8400da1bd7c7b1ccf4d5c6782b86372957e79a6b | [
"MIT"
] | null | null | null | dataloader/dataset.py | XiaoJake/DS-Net | 8400da1bd7c7b1ccf4d5c6782b86372957e79a6b | [
"MIT"
] | null | null | null | dataloader/dataset.py | XiaoJake/DS-Net | 8400da1bd7c7b1ccf4d5c6782b86372957e79a6b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
SemKITTI dataloader
"""
import yaml
# load Semantic KITTI class info
with open("semantic-kitti.yaml", 'r') as stream:
semkittiyaml = yaml.safe_load(stream)
SemKITTI_label_name = dict()
for i in sorted(list(semkittiyaml['learning_map'].keys()))[::-1]:
SemKITTI_... | 41.598918 | 208 | 0.582734 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
SemKITTI dataloader
"""
import os
import numpy as np
import torch
import random
import time
import numba as nb
import yaml
import pickle
from torch.utils import data
from tqdm import tqdm
from scipy import stats as s
from os.path import join
# load Semantic KITTI clas... | 0 | 819 | 0 | 46,362 | 151 | 4,742 | 0 | -36 | 631 |
53798844621efdda39001d96aea1bde606980017 | 2,151 | py | Python | tests/test_utils_serialized.py | cwichel/embutils | 188d86d84637088bafef188b3312078048934113 | [
"MIT"
] | null | null | null | tests/test_utils_serialized.py | cwichel/embutils | 188d86d84637088bafef188b3312078048934113 | [
"MIT"
] | null | null | null | tests/test_utils_serialized.py | cwichel/embutils | 188d86d84637088bafef188b3312078048934113 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: ascii -*-
"""
Serialized usage test.
:date: 2021
:author: Christian Wiche
:contact: cwichel@gmail.com
:license: The MIT License (MIT)
"""
import unittest
# -->> Definitions <<------------------
# -->> Test API <<---------------------
# -->> Test Execution <<----------... | 27.935065 | 96 | 0.609484 | #!/usr/bin/python
# -*- coding: ascii -*-
"""
Serialized usage test.
:date: 2021
:author: Christian Wiche
:contact: cwichel@gmail.com
:license: The MIT License (MIT)
"""
import unittest
from examples.stream_setup import SimplePacket
from embutils.utils import CRC
# -->> Definitions <<-----------------... | 0 | 0 | 0 | 1,676 | 0 | 0 | 0 | 34 | 68 |
7cc74888d6101a1254757e95a5e30b2406237e2a | 22,720 | py | Python | src/sentry/models/release.py | learninto/sentry | 4f9f564841498b3af49c1677d6b61f3e47b01923 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | src/sentry/models/release.py | learninto/sentry | 4f9f564841498b3af49c1677d6b61f3e47b01923 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/models/release.py | learninto/sentry | 4f9f564841498b3af49c1677d6b61f3e47b01923 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, print_function
import logging
import re
logger = logging.getLogger(__name__)
_sha1_re = re.compile(r"^[a-f0-9]{40}$")
_dotted_path_prefix_re = re.compile(r"^([a-zA-Z][a-zA-Z0-9-]+)(\.[a-zA-Z][a-zA-Z0-9-]+)+-")
DB_VERSION_LENGTH = 250
| 37.553719 | 99 | 0.548636 | from __future__ import absolute_import, print_function
import logging
import re
import six
import itertools
from django.db import models, IntegrityError, transaction
from django.db.models import F
from django.utils import timezone
from time import time
from sentry.app import locks
from sentry.db.models import (
... | 0 | 4,756 | 0 | 16,944 | 0 | 0 | 0 | 362 | 379 |
99f7d22741a69a05f92fb1e23cbfa5c23a93ecba | 992 | py | Python | 02/01/startswith.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | null | null | null | 02/01/startswith.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | 39 | 2017-07-31T22:54:01.000Z | 2017-08-31T00:19:03.000Z | 02/01/startswith.py | pylangstudy/201708 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | [
"CC0-1.0"
] | null | null | null | print('abc'.startswith('a'))
print('abc'.startswith('b'))
print('abc'.startswith('c'))
print('abc'.startswith('bc'))
print('abc'.startswith('abc'))
print('aBc'.casefold().startswith(('b', 'c')))
print('aBc'.casefold().startswith(('x', 'y')))
print('aBc'.casefold().startswith('A'.casefold()))
print('aBc'.casefold().st... | 29.176471 | 52 | 0.650202 | print('abc'.startswith('a'))
print('abc'.startswith('b'))
print('abc'.startswith('c'))
print('abc'.startswith('bc'))
print('abc'.startswith('abc'))
print('aBc'.casefold().startswith(('b', 'c')))
print('aBc'.casefold().startswith(('x', 'y')))
print('aBc'.casefold().startswith('A'.casefold()))
print('aBc'.casefold().st... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
cfe1dfed89332ce52c13620ed1c784c81c5d3d5c | 398 | py | Python | Esercizio 1/Codice/ex1.py | SymonLM/LabCalc1 | f30d5b37678e2b4ef15e8dea536aef6df30e08b4 | [
"Unlicense"
] | 7 | 2021-12-10T23:56:03.000Z | 2022-01-03T19:20:45.000Z | Esercizio 1/Codice/ex1.py | SymonLM/LabCalc1 | f30d5b37678e2b4ef15e8dea536aef6df30e08b4 | [
"Unlicense"
] | 4 | 2021-12-19T08:02:16.000Z | 2021-12-19T21:52:17.000Z | Esercizio 1/Codice/ex1.py | SymonLM/LabCalc1 | f30d5b37678e2b4ef15e8dea536aef6df30e08b4 | [
"Unlicense"
] | 1 | 2021-12-19T11:02:50.000Z | 2021-12-19T11:02:50.000Z | import matplotlib.pyplot as plt
import numpy as np
plt.title('Un primo plot con Python')
x, y = np.loadtxt('ex1.dat', unpack=True)
plt.plot(x ,y, 'o-.b', label='Temperature Convertite')
plt.xlim((-10,130)) # intervallo lungo asse x
plt.ylim((10,250)) # intervallo lungo asse y
plt.xlabel('Temperature Celsius')
plt.yl... | 33.166667 | 55 | 0.723618 | import matplotlib.pyplot as plt
import numpy as np
plt.title('Un primo plot con Python')
x, y = np.loadtxt('ex1.dat', unpack=True)
plt.plot(x ,y, 'o-.b', label='Temperature Convertite')
plt.xlim((-10,130)) # intervallo lungo asse x
plt.ylim((10,250)) # intervallo lungo asse y
plt.xlabel('Temperature Celsius')
plt.yl... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d4e2aaf92bc444dd9c87d874c3f7b979927592ea | 183 | py | Python | detection_spam_project/clustering/urls.py | Altraya/detection_spam | 92404ab9fad5398ac17df885d559a6d96630db1d | [
"MIT"
] | null | null | null | detection_spam_project/clustering/urls.py | Altraya/detection_spam | 92404ab9fad5398ac17df885d559a6d96630db1d | [
"MIT"
] | null | null | null | detection_spam_project/clustering/urls.py | Altraya/detection_spam | 92404ab9fad5398ac17df885d559a6d96630db1d | [
"MIT"
] | null | null | null | from django.conf.urls import url, patterns
from . import views
urlpatterns = patterns('clustering.views',
url(r'^accueil$', 'home'),
url(r'^screen/(\d+)$', views.view_screen),
)
| 22.875 | 44 | 0.688525 | from django.conf.urls import url, patterns
from . import views
urlpatterns = patterns('clustering.views',
url(r'^accueil$', 'home'),
url(r'^screen/(\d+)$', views.view_screen),
)
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0c1ae7368dcabf173521979dc546a65b378c1f59 | 1,829 | py | Python | setup.py | STARS4ALL/tessdb-import | 424569d66f2ff6f04f2b172d92278524aa0d0c12 | [
"MIT"
] | null | null | null | setup.py | STARS4ALL/tessdb-import | 424569d66f2ff6f04f2b172d92278524aa0d0c12 | [
"MIT"
] | null | null | null | setup.py | STARS4ALL/tessdb-import | 424569d66f2ff6f04f2b172d92278524aa0d0c12 | [
"MIT"
] | null | null | null | import os
import os.path
from setuptools import setup
import versioneer
# Default description in markdown
LONG_DESCRIPTION = open('README.md').read()
PKG_NAME = 'tessdb-cmdline'
AUTHOR = 'Rafael Gonzalez'
AUTHOR_EMAIL = 'astrorafael@yahoo.es'
DESCRIPTION = 'tessdb command line tool to manage tessdb datab... | 27.298507 | 68 | 0.598688 | import os
import os.path
from setuptools import setup, Extension
import versioneer
# Default description in markdown
LONG_DESCRIPTION = open('README.md').read()
PKG_NAME = 'tessdb-cmdline'
AUTHOR = 'Rafael Gonzalez'
AUTHOR_EMAIL = 'astrorafael@yahoo.es'
DESCRIPTION = 'tessdb command line tool to manage t... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 |
33956487d1a7473e4e9523d340a69d50a0cca0c9 | 5,303 | py | Python | replace_text_with_number.py | nacbotics5/web-scraping-with-python | 5c5d89d58173ee2e6491283d7d5ba0a413d6961c | [
"BSD-3-Clause"
] | 3 | 2019-07-03T13:10:21.000Z | 2020-01-09T10:34:12.000Z | replace_text_with_number.py | nacbotics5/web-scraping-with-python | 5c5d89d58173ee2e6491283d7d5ba0a413d6961c | [
"BSD-3-Clause"
] | null | null | null | replace_text_with_number.py | nacbotics5/web-scraping-with-python | 5c5d89d58173ee2e6491283d7d5ba0a413d6961c | [
"BSD-3-Clause"
] | 1 | 2021-11-08T18:53:12.000Z | 2021-11-08T18:53:12.000Z | #-*-coding:utf8;-*-
| 44.191667 | 77 | 0.51518 | #-*-coding:utf8;-*-
import re
from random import choice
class sub(object):
""" a simple text to number evaluating class """
def text_to_number(self,text):
'''convert a number written as text to its real number equivalence'''
text = text.lower()
text = re.sub(r"ten", "10", text)
... | 0 | 0 | 0 | 5,215 | 0 | 0 | 0 | -8 | 67 |
2fb3b7760ce16f04dae9b780bc957d0768081080 | 1,106 | py | Python | examples/messaging_interactions_transcripts_example.py | estvar19x84/liveperson-api-python-wrapper | 27d8575f542ba029521e7d995bbabb5c4b90d131 | [
"MIT"
] | 1 | 2020-04-06T04:47:18.000Z | 2020-04-06T04:47:18.000Z | examples/messaging_interactions_transcripts_example.py | estvar19x84/liveperson-api-python-wrapper | 27d8575f542ba029521e7d995bbabb5c4b90d131 | [
"MIT"
] | null | null | null | examples/messaging_interactions_transcripts_example.py | estvar19x84/liveperson-api-python-wrapper | 27d8575f542ba029521e7d995bbabb5c4b90d131 | [
"MIT"
] | null | null | null | """
This example shows how to create a Messaging Interactions transcripts CSV flat file from the lp_api_wrapper library.
"""
from lp_api_wrapper import MessagingInteractions, UserLogin
from datetime import datetime, timedelta
import pandas as pd
# For User Login
auth = UserLogin(account_id='1234', username='YOURUSERN... | 29.891892 | 116 | 0.764919 | """
This example shows how to create a Messaging Interactions transcripts CSV flat file from the lp_api_wrapper library.
"""
from lp_api_wrapper import MessagingInteractions, UserLogin
from datetime import datetime, timedelta
import pandas as pd
# For User Login
auth = UserLogin(account_id='1234', username='YOURUSERN... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e4943d0cbf2264ece34b5f12fed6a79240a520d8 | 855 | py | Python | main.py | kagaya25/How-to-Auto-Login-to-Zoom-using-python- | d2f0d2025f143256edaaef4392dc5c5f653961d0 | [
"MIT"
] | 1 | 2020-11-18T03:51:16.000Z | 2020-11-18T03:51:16.000Z | main.py | kagaya25/How-to-Auto-Login-to-Zoom-using-python- | d2f0d2025f143256edaaef4392dc5c5f653961d0 | [
"MIT"
] | null | null | null | main.py | kagaya25/How-to-Auto-Login-to-Zoom-using-python- | d2f0d2025f143256edaaef4392dc5c5f653961d0 | [
"MIT"
] | null | null | null | from selenium import webdriver
from time import sleep
from webdriver_manager.chrome import ChromeDriverManager
usr=input('Enter Email Address :')
pwd=input('Enter Password:')
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('https://zoom.us/signin')
print ("Opened Zoom")
sleep(1)
... | 27.580645 | 110 | 0.749708 | from selenium import webdriver
from time import sleep
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
usr=input('Enter Email Address :')
pwd=input('Enter Password:')
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('http... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 24 |
0a3917d97fa2bfb17855ede4f3e057d098a6cc11 | 339 | py | Python | resumes/migrations/0004_remove_contactdetails_address_2.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | resumes/migrations/0004_remove_contactdetails_address_2.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | resumes/migrations/0004_remove_contactdetails_address_2.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-12 05:08
| 18.833333 | 47 | 0.60472 | # Generated by Django 3.2.5 on 2021-07-12 05:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('resumes', '0003_auto_20210712_1037'),
]
operations = [
migrations.RemoveField(
model_name='contactdetails',
name='Address_2'... | 0 | 0 | 0 | 233 | 0 | 0 | 0 | 11 | 46 |
605cf64194db6eb62f12a4193d0dc608c00f00c9 | 1,508 | py | Python | src/ecsim/scrapers/census.py | fillstaley/ecsim | f775c8a975dba7a372d0d0831bf8b54df7c27cb2 | [
"MIT"
] | null | null | null | src/ecsim/scrapers/census.py | fillstaley/ecsim | f775c8a975dba7a372d0d0831bf8b54df7c27cb2 | [
"MIT"
] | null | null | null | src/ecsim/scrapers/census.py | fillstaley/ecsim | f775c8a975dba7a372d0d0831bf8b54df7c27cb2 | [
"MIT"
] | null | null | null | from logging import getLogger
# from ecsim._scrapers.base import state_names
logger = getLogger(__name__)
url = "https://en.wikipedia.org/wiki/List_of_U.S._states_and_territories_by_historical_population"
# if __name__ == "__main__":
# data = scrape_data()
# for foo, bar in zip(data.index, state_names)... | 27.925926 | 98 | 0.659814 | from logging import getLogger
from pandas import read_html
# from ecsim._scrapers.base import state_names
logger = getLogger(__name__)
url = "https://en.wikipedia.org/wiki/List_of_U.S._states_and_territories_by_historical_population"
def scrape_data():
global url
logger.debug(f"Getting US Census data fr... | 0 | 0 | 0 | 0 | 0 | 1,021 | 0 | 7 | 69 |
488b4cc09de4a2a0e1ff3f23b837efa088af88f0 | 2,227 | py | Python | minio/versioningconfig.py | neuneck/minio-py | a964d8c92a2533c3dcd01530308577e7864928de | [
"Apache-2.0"
] | 1 | 2021-01-06T21:13:01.000Z | 2021-01-06T21:13:01.000Z | minio/versioningconfig.py | neuneck/minio-py | a964d8c92a2533c3dcd01530308577e7864928de | [
"Apache-2.0"
] | null | null | null | minio/versioningconfig.py | neuneck/minio-py | a964d8c92a2533c3dcd01530308577e7864928de | [
"Apache-2.0"
] | 1 | 2019-04-02T16:13:36.000Z | 2019-04-02T16:13:36.000Z | # -*- coding: utf-8 -*-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
# 2020 MinIO, 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/lic... | 32.75 | 76 | 0.660979 | # -*- coding: utf-8 -*-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
# 2020 MinIO, 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/lic... | 0 | 367 | 0 | 934 | 0 | 0 | 0 | 47 | 68 |
1d1ba8f14377a03c56514916211c087f53426980 | 10,296 | py | Python | applications/TrilinosApplication/tests/test_trilinos_levelset_convection.py | qaumann/Kratos | fd1702687997322d7a94642fb58e3453f7d4b002 | [
"BSD-4-Clause"
] | null | null | null | applications/TrilinosApplication/tests/test_trilinos_levelset_convection.py | qaumann/Kratos | fd1702687997322d7a94642fb58e3453f7d4b002 | [
"BSD-4-Clause"
] | null | null | null | applications/TrilinosApplication/tests/test_trilinos_levelset_convection.py | qaumann/Kratos | fd1702687997322d7a94642fb58e3453f7d4b002 | [
"BSD-4-Clause"
] | null | null | null | from __future__ import print_function, absolute_import, division
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.MetisApplication as MetisApplication
import KratosMultiphysics.TrilinosApplication as TrilinosApplication
if __name__ == '__main__':
KratosUnittest.main() | 43.627119 | 145 | 0.634421 | from __future__ import print_function, absolute_import, division
import os
import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.MetisApplication as MetisApplication
import KratosMultiphysics.TrilinosApplication as TrilinosApplication
import KratosMult... | 3 | 0 | 0 | 9,154 | 0 | 362 | 0 | 168 | 296 |
0149416f32756f6d9180e1150524f22901eedcfb | 85 | py | Python | docs/docs_settings.py | leukeleu/django-fiber-multilingual | 4574fffb953c442ff7981c16ea1d460784e38eab | [
"Apache-2.0"
] | 143 | 2015-01-06T01:15:22.000Z | 2017-07-08T04:10:08.000Z | docs/docs_settings.py | check4anjil/django-fiber | 48d1af8867e19b9e27332d2b98ca07a47927de15 | [
"Apache-2.0"
] | 44 | 2015-01-22T14:21:32.000Z | 2017-05-31T16:59:23.000Z | docs/docs_settings.py | check4anjil/django-fiber | 48d1af8867e19b9e27332d2b98ca07a47927de15 | [
"Apache-2.0"
] | 53 | 2015-01-21T21:48:49.000Z | 2017-06-12T07:33:13.000Z | # Mock settings file imported by sphinx when building docs
SECRET_KEY = 'not empty'
| 21.25 | 58 | 0.776471 | # Mock settings file imported by sphinx when building docs
SECRET_KEY = 'not empty'
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0536bbd1db2cb05cededd1cb0edc40a6651c3fac | 3,442 | py | Python | model/decode_heads/encnet/encnet.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | model/decode_heads/encnet/encnet.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | model/decode_heads/encnet/encnet.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | '''
Author: Liu Xin
Date: 2021-11-29 11:08:53
LastEditors: Liu Xin
LastEditTime: 2021-11-30 19:43:19
Description: file content
FilePath: /CVMI_Sementic_Segmentation/model/decode_heads/encnet/encnet.py
'''
'''
Author: Liu Xin
Date: 2021-11-29 11:08:53
LastEditors: Liu Xin
LastEditTime: 2021-11-30 19:31:07
Description: f... | 35.122449 | 95 | 0.606334 | '''
Author: Liu Xin
Date: 2021-11-29 11:08:53
LastEditors: Liu Xin
LastEditTime: 2021-11-30 19:43:19
Description: file content
FilePath: /CVMI_Sementic_Segmentation/model/decode_heads/encnet/encnet.py
'''
'''
Author: Liu Xin
Date: 2021-11-29 11:08:53
LastEditors: Liu Xin
LastEditTime: 2021-11-30 19:31:07
Description: f... | 0 | 661 | 0 | 1,822 | 0 | 0 | 0 | 49 | 112 |
5283b9315291930963962a4c5aded09fae094e29 | 2,671 | py | Python | universal/algos/tco.py | richmanbtc/universal-portfolios | cd9db76e8f039edafe256b9992e4e65bca96ba7d | [
"MIT"
] | 506 | 2015-01-14T22:34:19.000Z | 2022-03-29T18:36:55.000Z | universal/algos/tco.py | richmanbtc/universal-portfolios | cd9db76e8f039edafe256b9992e4e65bca96ba7d | [
"MIT"
] | 56 | 2015-07-10T15:34:51.000Z | 2022-03-23T22:18:50.000Z | universal/algos/tco.py | richmanbtc/universal-portfolios | cd9db76e8f039edafe256b9992e4e65bca96ba7d | [
"MIT"
] | 165 | 2015-02-07T05:09:38.000Z | 2022-03-29T18:36:57.000Z |
from .. import tools
if __name__ == "__main__":
tools.quickrun(TCO1())
| 26.979798 | 118 | 0.585548 | import numpy as np
import numpy.typing as npt
from .. import tools
from ..algo import Algo
class TCO(Algo):
"""Transaction costs optimization. The TCO algorithm needs just a next return prediction
to work, see the paper for more details.
Paper : https://ink.library.smu.edu.sg/cgi/viewcontent.cgi?referer... | 0 | 0 | 0 | 2,451 | 0 | 0 | 0 | 4 | 135 |
a824ce5bc8d317e3044eda2945064609a32f467d | 11,348 | py | Python | solution.py | matanmula172/dragons-and-princesses | 553c6f602d344b169190849b2b9c5469d2d11a00 | [
"MIT"
] | null | null | null | solution.py | matanmula172/dragons-and-princesses | 553c6f602d344b169190849b2b9c5469d2d11a00 | [
"MIT"
] | null | null | null | solution.py | matanmula172/dragons-and-princesses | 553c6f602d344b169190849b2b9c5469d2d11a00 | [
"MIT"
] | null | null | null |
'''
This function parses the yaml input file, assuming the input is correct The parsing works in the following way:
given a correct file that defines len = n, the function returns two arrays of length n - cell_value_arr (beauty/num
coins in each cell) and cell_title_arr (princess or dragon)
'''
'''
index - an in... | 38.467797 | 120 | 0.695012 | import sys
import numpy as np
'''
This function parses the yaml input file, assuming the input is correct The parsing works in the following way:
given a correct file that defines len = n, the function returns two arrays of length n - cell_value_arr (beauty/num
coins in each cell) and cell_title_arr (princess or drag... | 0 | 0 | 0 | 0 | 0 | 7,071 | 0 | -14 | 320 |
c2de931d8aae197294b54a447961099c0d687325 | 2,115 | py | Python | bin/Utils/PostInstallRoutines.py | juergenhoetzel/craft | 9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd | [
"BSD-2-Clause"
] | 55 | 2016-11-20T17:08:19.000Z | 2022-03-11T22:19:43.000Z | bin/Utils/PostInstallRoutines.py | juergenhoetzel/craft | 9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd | [
"BSD-2-Clause"
] | 17 | 2017-09-20T07:52:17.000Z | 2021-12-03T10:03:00.000Z | bin/Utils/PostInstallRoutines.py | juergenhoetzel/craft | 9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd | [
"BSD-2-Clause"
] | 29 | 2016-12-10T15:00:11.000Z | 2021-12-02T12:54:05.000Z | # -*- coding: utf-8 -*-
# Copyright Hannah von Reth <vonreth@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of condi... | 45 | 93 | 0.722931 | # -*- coding: utf-8 -*-
# Copyright Hannah von Reth <vonreth@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of condi... | 0 | 621 | 0 | 13 | 0 | 0 | 0 | 3 | 141 |
14e775b9ad6127d6b0049366425561eeaccc2489 | 1,496 | py | Python | vivintpy/devices/switch.py | natekspencer/vivintpy | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 3 | 2022-02-10T14:08:59.000Z | 2022-03-30T18:55:25.000Z | vivintpy/devices/switch.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | null | null | null | vivintpy/devices/switch.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 2 | 2021-10-31T01:43:26.000Z | 2021-11-21T13:33:55.000Z | """Module that implements the Switch class."""
from __future__ import annotations
| 29.333333 | 88 | 0.64639 | """Module that implements the Switch class."""
from __future__ import annotations
from ..const import SwitchAttribute, ZWaveDeviceAttribute
from . import VivintDevice
class Switch(VivintDevice):
"""Represents a Vivint switch device."""
@property
def is_on(self) -> bool:
"""Return True if switch ... | 0 | 358 | 534 | 364 | 0 | 0 | 0 | 41 | 114 |
bd6b5ce29bd5833af3d7a202866f802b488a2c3a | 12,044 | py | Python | examples/test-alg.py | luoxiangyong/sprp | cfac1f3e86787bc1a3686b5112e991b7413bfa7b | [
"BSD-2-Clause"
] | null | null | null | examples/test-alg.py | luoxiangyong/sprp | cfac1f3e86787bc1a3686b5112e991b7413bfa7b | [
"BSD-2-Clause"
] | null | null | null | examples/test-alg.py | luoxiangyong/sprp | cfac1f3e86787bc1a3686b5112e991b7413bfa7b | [
"BSD-2-Clause"
] | null | null | null |
if __name__ == "__main__":
slc = SimpleLineCalculator(116.23589,39.90387,116.25291,39.90391,**{
"cameraWidth": 4000,
"cameraHeight":3000,
"focusLength":35,
"pixelSize":2,
"gsd":0.05,
"flightSpeed":80,
"courseOverlap":0.8,
"sidewiseOverlap":0.6
})
... | 35.528024 | 100 | 0.614912 | from sprp.core.alg import *
from sprp.export.shapefile import *
if __name__ == "__main__":
slc = SimpleLineCalculator(116.23589,39.90387,116.25291,39.90391,**{
"cameraWidth": 4000,
"cameraHeight":3000,
"focusLength":35,
"pixelSize":2,
"gsd":0.05,
"flightSpeed":80,
... | 459 | 0 | 0 | 0 | 0 | 8,908 | 0 | 20 | 158 |
d7c042c4f93d725a2d87b7099782de3718b57898 | 1,847 | py | Python | 题源分类/LeetCode/LeetCode日刷/python/76.最小覆盖子串.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | 题源分类/LeetCode/LeetCode日刷/python/76.最小覆盖子串.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | 题源分类/LeetCode/LeetCode日刷/python/76.最小覆盖子串.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=76 lang=python3
#
# [76]
#
# https://leetcode-cn.com/problems/minimum-window-substring/description/
#
# algorithms
# Hard (38.57%)
# Likes: 701
# Dislikes: 0
# Total Accepted: 72K
# Total Submissions: 186K
# Testcase Example: '"ADOBECODEBANC"\n"ABC"'
#
# S T O(n) S T
#
#
#
#
... | 22.52439 | 74 | 0.406064 | #
# @lc app=leetcode.cn id=76 lang=python3
#
# [76] 最小覆盖子串
#
# https://leetcode-cn.com/problems/minimum-window-substring/description/
#
# algorithms
# Hard (38.57%)
# Likes: 701
# Dislikes: 0
# Total Accepted: 72K
# Total Submissions: 186K
# Testcase Example: '"ADOBECODEBANC"\n"ABC"'
#
# 给你一个字符串 S、一个字符串 T 。请你设计一... | 345 | 0 | 0 | 621 | 0 | 0 | 0 | 0 | 23 |
e51dab5a6d0ee2d6fb561e01a4461596d41a9b00 | 913 | py | Python | amuustr-beseda-str-flood.py | Tripl0Color/Amuuterasuu-STR | e3ed7bab5ebf7570e9247e5a285c06f287a45bea | [
"Unlicense"
] | null | null | null | amuustr-beseda-str-flood.py | Tripl0Color/Amuuterasuu-STR | e3ed7bab5ebf7570e9247e5a285c06f287a45bea | [
"Unlicense"
] | null | null | null | amuustr-beseda-str-flood.py | Tripl0Color/Amuuterasuu-STR | e3ed7bab5ebf7570e9247e5a285c06f287a45bea | [
"Unlicense"
] | null | null | null | print ("""
Working.
@muuT3ra$$uu-kick-my-str-v.1
#FuckAllEverything.
by Tripl_color vk.com/Tripl_color""")
import vk_requests
import time
import random
token = " "
cid = str(input(' = '))
photo = "photo472165736_457244077"
audio = "audio472165736_456239668"
msg = "fuck all. by Tripl_Color. @muuT3ra$$uu-kick-my-str-v... | 35.115385 | 121 | 0.75356 | print ("""
Working.
@muuT3ra$$uu-kick-my-str-v.1
#FuckAllEverything.
by Tripl_color vk.com/Tripl_color""")
import vk_requests
import time
import random
token = "токен бота"
cid = str(input('Айди беседы = '))
photo = "photo472165736_457244077"
audio = "audio472165736_456239668"
msg = "fuck all. by Tripl_Color. @muuT3r... | 130 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9fea2b873e177ec7678b8006a40ac7ca3d96746c | 2,691 | py | Python | Intermediate Machine Learning/Exercise 5.py | haoweii0215/Kaggle-Courses | 57974b2e6618b1125e030791320c649dda2fc783 | [
"MIT"
] | null | null | null | Intermediate Machine Learning/Exercise 5.py | haoweii0215/Kaggle-Courses | 57974b2e6618b1125e030791320c649dda2fc783 | [
"MIT"
] | null | null | null | Intermediate Machine Learning/Exercise 5.py | haoweii0215/Kaggle-Courses | 57974b2e6618b1125e030791320c649dda2fc783 | [
"MIT"
] | null | null | null | # Exercise 5 : Cross-Validation
## Set up code checking
import os
if not os.path.exists("../input/train.csv"):
os.symlink("../input/home-data-for-ml-course/train.csv", "../input/train.csv")
os.symlink("../input/home-data-for-ml-course/test.csv", "../input/test.csv")
from learntools.core import binder
binder.bi... | 43.403226 | 214 | 0.73913 | # Exercise 5 : Cross-Validation
## Set up code checking
import os
if not os.path.exists("../input/train.csv"):
os.symlink("../input/home-data-for-ml-course/train.csv", "../input/train.csv")
os.symlink("../input/home-data-for-ml-course/test.csv", "../input/test.csv")
from learntools.core import binder
binder.bi... | 0 | 0 | 0 | 0 | 0 | 282 | 0 | 54 | 66 |
a66eb3e3423ecbe7d1fa55c112056c2996c31103 | 7,210 | py | Python | modules/rig.py | Noorth34/barakaTools | c87361a284ab6b410f4957794d022cb07ea216ff | [
"CC0-1.0"
] | null | null | null | modules/rig.py | Noorth34/barakaTools | c87361a284ab6b410f4957794d022cb07ea216ff | [
"CC0-1.0"
] | null | null | null | modules/rig.py | Noorth34/barakaTools | c87361a284ab6b410f4957794d022cb07ea216ff | [
"CC0-1.0"
] | null | null | null | # coding:utf-8
# real mirror script
# 1) duplicate special ( world | input graph)
# 2) unparent offsets to world
# 3) create a null for each offset
# 4) match Translate each null on his respective offset
# 5) *(-1) translate X on each null
# 6) rotation 180 on Y and Z axis on each null
# 7) unparent offsets and... | 32.331839 | 123 | 0.697642 | # coding:utf-8
# real mirror script
# 1) duplicate special ( world | input graph)
# 2) unparent offsets to world
# 3) create a null for each offset
# 4) match Translate each null on his respective offset
# 5) *(-1) translate X on each null
# 6) rotation 180° on Y and Z axis on each null
# 7) unparent offsets an... | 2 | 0 | 0 | 0 | 0 | 1,550 | 0 | 0 | 69 |
2fdcf9b4a72c56e2caf1881dd37ca30b320f2f35 | 318 | py | Python | api/constants.py | Xavier-Cliquennois/ac-mediator | ce55b65ab7f4532fc11fbb2f994518c60240bfdc | [
"Apache-2.0"
] | 9 | 2016-11-17T08:04:01.000Z | 2020-09-10T05:58:36.000Z | api/constants.py | Xavier-Cliquennois/ac-mediator | ce55b65ab7f4532fc11fbb2f994518c60240bfdc | [
"Apache-2.0"
] | 23 | 2016-10-26T14:43:55.000Z | 2021-06-10T20:02:38.000Z | api/constants.py | Xavier-Cliquennois/ac-mediator | ce55b65ab7f4532fc11fbb2f994518c60240bfdc | [
"Apache-2.0"
] | 3 | 2018-03-03T12:07:28.000Z | 2020-08-02T12:54:31.000Z | QUERY_PARAM_QUERY = 'q'
QUERY_PARAM_SORT = 's'
QUERY_PARAM_FILTER = 'f'
QUERY_PARAM_SIZE = 'size'
QUERY_PARAM_PAGE = 'page'
QUERY_PARAM_FIELDS = 'fields'
QUERY_PARAM_OFFSET = 'offset'
QUERY_PARAM_INCLUDE = 'include'
QUERY_PARAM_EXCLUDE = 'exclude'
QUERY_PARAM_WAIT_UNTIL_COMPLETE = 'wuc'
QUERY_PARAM_FORMAT = 'format'
| 26.5 | 39 | 0.792453 | QUERY_PARAM_QUERY = 'q'
QUERY_PARAM_SORT = 's'
QUERY_PARAM_FILTER = 'f'
QUERY_PARAM_SIZE = 'size'
QUERY_PARAM_PAGE = 'page'
QUERY_PARAM_FIELDS = 'fields'
QUERY_PARAM_OFFSET = 'offset'
QUERY_PARAM_INCLUDE = 'include'
QUERY_PARAM_EXCLUDE = 'exclude'
QUERY_PARAM_WAIT_UNTIL_COMPLETE = 'wuc'
QUERY_PARAM_FORMAT = 'format'
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5dad6baf371de22cb47baf42c155ab90f5fc6fbb | 780 | py | Python | read/views.py | MaryMbugua/Tusome | 4a6b8bf20644953977d91cda6ad299d12b93a934 | [
"MIT"
] | 1 | 2018-06-25T20:22:31.000Z | 2018-06-25T20:22:31.000Z | read/views.py | MaryMbugua/Tusome | 4a6b8bf20644953977d91cda6ad299d12b93a934 | [
"MIT"
] | null | null | null | read/views.py | MaryMbugua/Tusome | 4a6b8bf20644953977d91cda6ad299d12b93a934 | [
"MIT"
] | null | null | null |
# Create your views here. | 30 | 65 | 0.7 | from django.shortcuts import render,redirect
from django.http import HttpResponse,Http404,HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from .models import Enquiry,Vitabu
from .forms import EnquiryForm
# Create your views here.
def welcome(request):
books = Vitabu.objects.all()
... | 0 | 0 | 0 | 0 | 0 | 451 | 0 | 125 | 178 |
049ab880e018f48145c50061ce27bad3fd3238f4 | 22,531 | py | Python | src/tests/test_namespace2projecttransfer.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | 1 | 2022-03-29T06:41:41.000Z | 2022-03-29T06:41:41.000Z | src/tests/test_namespace2projecttransfer.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | null | null | null | src/tests/test_namespace2projecttransfer.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | null | null | null | from kubernetes import client, config
import os
import json
from .helper_functions import (generate_user, generate_project, generate_namespace)
cluster_name = json.loads(os.environ['CLUSTER_DICT'])["EU1"]["Config-Name"]
config.load_kube_config("config.yaml", context=cluster_name)
v1 = client.CoreV1Api()
rbac = client... | 53.014118 | 130 | 0.712441 | import time
import uuid
from kubernetes import client, config
import os
from fastapi.testclient import TestClient
import json
from typing import List
from pydantic import EmailStr
from fastapi import HTTPException
from app.api.models.auth0 import Auth0User
from .helper_functions import (
generate_user,
genera... | 0 | 0 | 620 | 0 | 0 | 20,683 | 0 | 73 | 406 |
f03a8a84ca05fb06e5190a7a160fe0079e5c60e9 | 85 | py | Python | starry/_core/ops/limbdark/__init__.py | fbartolic/starry | d50576caf964ad925c490c9f3ffe1273ab155397 | [
"MIT"
] | 116 | 2018-02-23T19:47:15.000Z | 2022-02-21T04:43:46.000Z | starry/_core/ops/limbdark/__init__.py | fbartolic/starry | d50576caf964ad925c490c9f3ffe1273ab155397 | [
"MIT"
] | 224 | 2018-02-26T00:41:51.000Z | 2022-03-29T10:38:16.000Z | starry/_core/ops/limbdark/__init__.py | fbartolic/starry | d50576caf964ad925c490c9f3ffe1273ab155397 | [
"MIT"
] | 25 | 2018-02-26T18:14:36.000Z | 2021-11-30T01:00:56.000Z | # -*- coding: utf-8 -*-
| 21.25 | 32 | 0.717647 | # -*- coding: utf-8 -*-
from .limbdark import LimbDarkOp
from .get_cl import GetClOp
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 44 |
22236c2ae2d83019f7983fe4b2e734a91069694e | 5,221 | py | Python | desicos/abaqus/imperfections/ti.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-22T22:15:24.000Z | 2020-10-22T22:15:24.000Z | desicos/abaqus/imperfections/ti.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-09T12:42:02.000Z | 2020-10-09T12:42:02.000Z | desicos/abaqus/imperfections/ti.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 2 | 2020-07-14T07:45:31.000Z | 2020-12-29T00:22:41.000Z | from __future__ import absolute_import
| 35.277027 | 78 | 0.581498 | from __future__ import absolute_import
import numpy as np
from desicos.abaqus.apply_imperfections import change_thickness_ABAQUS
from desicos.conecylDB import update_imps
class TI(object):
"""Thickness Imperfection
Assumes that a percentage variation of the laminate thickness can be
represented by the ... | 0 | 0 | 0 | 5,023 | 0 | 0 | 0 | 66 | 91 |
7bd1fe7f42a3682cdb3288d310d99445d1adcff0 | 727 | py | Python | mmtbx/command_line/development.aev.py | mphancock/cctbx_project | ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85 | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/command_line/development.aev.py | mphancock/cctbx_project | ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-05-26T17:46:17.000Z | 2020-05-26T17:55:19.000Z | mmtbx/command_line/development.aev.py | mphancock/cctbx_project | ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-02-08T10:11:07.000Z | 2022-02-08T10:11:07.000Z | from __future__ import absolute_import, division, print_function
# LIBTBX_SET_DISPATCHER_NAME mmtbx.development.aev
import sys
import mmtbx
if __name__ == '__main__':
main(*tuple(sys.argv[1:]))
| 26.925926 | 64 | 0.718019 | from __future__ import absolute_import, division, print_function
# LIBTBX_SET_DISPATCHER_NAME mmtbx.development.aev
import sys
import time
import mmtbx
import iotbx.pdb
import mmtbx.model
from libtbx.utils import null_out
import mmtbx.atomic_environment_vectors as aev
def main(filename, precision):
t0 = time.time()
... | 0 | 0 | 0 | 0 | 0 | 378 | 0 | 19 | 133 |
a2463c67d96d75c3ab770a2e0bf79ca1214b2471 | 589 | py | Python | messageque/test-client.py | yafraorg/pythonsamples | 8f61292c89b497d4067d2fb1873e5281877901f3 | [
"Apache-2.0"
] | null | null | null | messageque/test-client.py | yafraorg/pythonsamples | 8f61292c89b497d4067d2fb1873e5281877901f3 | [
"Apache-2.0"
] | 3 | 2021-06-08T21:19:19.000Z | 2022-03-12T00:24:22.000Z | messageque/test-client.py | yafraorg/pythonsamples | 8f61292c89b497d4067d2fb1873e5281877901f3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import pika
#credentials = pika.PlainCredentials('guest', 'guest')
#parameters = pika.ConnectionParameters('amqp.k8sd.pax.ch', 80, '/', credentials)
#parameters = pika.URLParameters('amqp://guest:guest@localhost:5672/%2F')
#connection = pika.BlockingConnection(parameters)
connection = pika.Block... | 29.45 | 81 | 0.694397 | #!/usr/bin/env python
import pika
#credentials = pika.PlainCredentials('guest', 'guest')
#parameters = pika.ConnectionParameters('amqp.k8sd.pax.ch', 80, '/', credentials)
#parameters = pika.URLParameters('amqp://guest:guest@localhost:5672/%2F')
#connection = pika.BlockingConnection(parameters)
connection = pika.Block... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3629443222f0af2943cff48dbd1a24e656c4da71 | 648 | py | Python | advance/creat_table.py | naeimnb/pythonexersices | 94761d5a954c5f6a710baf4ea5f2be57f110c13e | [
"Apache-2.0"
] | null | null | null | advance/creat_table.py | naeimnb/pythonexersices | 94761d5a954c5f6a710baf4ea5f2be57f110c13e | [
"Apache-2.0"
] | null | null | null | advance/creat_table.py | naeimnb/pythonexersices | 94761d5a954c5f6a710baf4ea5f2be57f110c13e | [
"Apache-2.0"
] | null | null | null | import mysql.connector
from mysql.connector import errorcode
try:
con = mysql.connector.connect(user='niminimda', password='123456', host='127.0.01', database='test')
except mysql.connector.Error as err:
if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
print("something is wrong with user or password... | 25.92 | 104 | 0.683642 | import mysql.connector
from mysql.connector import errorcode
def my_function():
query = "CREATE TABLE employee (Name nvarchar(20), Weight int, Height int)"
cursor = con.cursor()
cursor.execute(query)
cursor.close()
try:
con = mysql.connector.connect(user='niminimda', password='123456', host='127... | 0 | 0 | 0 | 0 | 0 | 148 | 0 | 0 | 23 |
15551d605e398d1d5310dd0fd20056331d6f635a | 4,042 | py | Python | BatchThread.py | benblackcake/srgan_t1 | 5724df5aff8901f8044d65d8d46ee37b6e2e08cd | [
"MIT"
] | null | null | null | BatchThread.py | benblackcake/srgan_t1 | 5724df5aff8901f8044d65d8d46ee37b6e2e08cd | [
"MIT"
] | 8 | 2020-09-26T00:46:21.000Z | 2022-03-12T00:17:59.000Z | BatchThread.py | benblackcake/srgan_t1 | 5724df5aff8901f8044d65d8d46ee37b6e2e08cd | [
"MIT"
] | null | null | null | # A simple generator wrapper, not sure if it's good for anything at all.
# With basic python threading
# from threading import Thread
try:
from queue import Queue
except ImportError:
# ... or use multiprocessing versions
# WARNING: use sentinel based on value, not identity
| 32.079365 | 97 | 0.563582 |
import numpy as np
# A simple generator wrapper, not sure if it's good for anything at all.
# With basic python threading
import threading
# from threading import Thread
import multiprocessing as mp
import time
try:
from queue import Queue
except ImportError:
from Queue import Queue
# ... or use multiprocess... | 0 | 0 | 0 | 3,558 | 0 | 0 | 0 | 21 | 182 |
64687db7ce144774262e73c9d4fbce33876ba457 | 667 | py | Python | problem/01000~09999/01520/1520.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/01000~09999/01520/1520.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/01000~09999/01520/1520.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | import sys
sys.setrecursionlimit(100000)
m,n=map(int,input().split())
dp=[[-1]*(n+2) for i in range(m+2)]
visit=[[False]*(n+2) for i in range(m+2)]
field=[0]*(m+2)
field[0]=[11111]*(n+2)
field[m+1]=[11111]*(n+2)
for i in range(1,m+1):
field[i]=[11111]
field[i].extend([*map(int,input().split())])
field[i].appe... | 19.617647 | 63 | 0.565217 | import sys
sys.setrecursionlimit(100000)
def DFS(i,j):
global m,n,dp,field,visit
if i==m and j==n: return 1
if dp[i][j]!=-1: return dp[i][j]
visit[i][j]=True
dp[i][j]=0
for di,dj in [[1,0],[-1,0],[0,1],[0,-1]]:
if field[i+di][j+dj]<field[i][j] and not visit[i+di][j+dj]:
dp[i][j]+=DFS(i+di,j+d... | 0 | 0 | 0 | 0 | 0 | 298 | 0 | 0 | 23 |
e391e62ba2fcd5966a5887e57e78f4387f40acc7 | 1,122 | py | Python | python/prime_number_check3.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | null | null | null | python/prime_number_check3.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | null | null | null | python/prime_number_check3.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | 1 | 2020-08-29T17:12:52.000Z | 2020-08-29T17:12:52.000Z | # ref https://www.youtube.com/watch?v=2p3kwF04xcA&index=24&list=PLi01XoE8jYohWFPpC17Z-wWhPOSuh8Er-
import time
'''
for n in range(1,21):
print(n, is_prime_v2(n))
'''
t0 = time.time()
for n in range(1,1000000):
is_prime_v2(n)
t1 = time.time()
print("time required for 1000000 :", t1-t0)
#print("test raise ", ... | 20.4 | 98 | 0.620321 | # ref https://www.youtube.com/watch?v=2p3kwF04xcA&index=24&list=PLi01XoE8jYohWFPpC17Z-wWhPOSuh8Er-
import math
import time
def is_prime_v2(n):
if n <= 0:
raise ("n must be a positive integer ! ")
return False
if n == 1:
return False
elif n == 2:
return True
elif n % ... | 0 | 0 | 0 | 0 | 0 | 455 | 0 | -10 | 46 |
074823aa33e6960d86e8b83e4a620c6fe06c32cf | 1,014 | py | Python | round/rpc/request.py | cybergarage/round-py | fb9404835ad1eb3f4b63eac92a8de2a3e60aa38a | [
"BSD-3-Clause"
] | null | null | null | round/rpc/request.py | cybergarage/round-py | fb9404835ad1eb3f4b63eac92a8de2a3e60aa38a | [
"BSD-3-Clause"
] | null | null | null | round/rpc/request.py | cybergarage/round-py | fb9404835ad1eb3f4b63eac92a8de2a3e60aa38a | [
"BSD-3-Clause"
] | null | null | null | #################################################################
#
# Round for Python
#
# Copyright (C) Satoshi Konno 2016
#
# This is licensed under BSD-style license, see file COPYING.
#
##################################################################
from __future__ import absolute_import
from .. import constan... | 22.533333 | 67 | 0.58284 | #################################################################
#
# Round for Python
#
# Copyright (C) Satoshi Konno 2016
#
# This is licensed under BSD-style license, see file COPYING.
#
##################################################################
from __future__ import absolute_import
import json
from .. i... | 0 | 342 | 0 | 313 | 0 | 0 | 0 | -10 | 46 |
b14b7cdedd8f1fb33b998259010f68d2d3472946 | 5,081 | py | Python | scripts/ff_collect_pm_data.py | Czworldy/GP_traj | 96261f39a5a322092e3a6be98938bb4601f0f746 | [
"MIT"
] | 1 | 2021-06-08T06:09:55.000Z | 2021-06-08T06:09:55.000Z | scripts/ff_collect_pm_data.py | Czworldy/GP_traj | 96261f39a5a322092e3a6be98938bb4601f0f746 | [
"MIT"
] | null | null | null | scripts/ff_collect_pm_data.py | Czworldy/GP_traj | 96261f39a5a322092e3a6be98938bb4601f0f746 | [
"MIT"
] | null | null | null | import sys
from os.path import join, dirname
sys.path.insert(0, join(dirname(__file__), '..'))
import simulator
simulator.load('/home/wang/CARLA_0.9.9.4')
import carla
import argparse
MAX_SPEED = 40
TRAJ_LENGTH = 25#25
vehicle_width = 2.0
longitudinal_sample_number_near = 8
longitudinal_sample_number_far = 0.5
latera... | 31.171779 | 112 | 0.678016 |
import os
import sys
from os.path import join, dirname
sys.path.insert(0, join(dirname(__file__), '..'))
import simulator
simulator.load('/home/wang/CARLA_0.9.9.4')
from simulator import config
import carla
import argparse
import time
from tqdm import tqdm
MAX_SPEED = 40
TRAJ_LENGTH = 25#25
vehicle_width = 2.0
longi... | 0 | 0 | 0 | 434 | 0 | 3,036 | 0 | 40 | 325 |
e528965623d652c281c15da441bcfaa1d1f342f4 | 1,199 | py | Python | recipes/Python/576873_Patch_extensibinaries_compiled_previous/recipe-576873.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576873_Patch_extensibinaries_compiled_previous/recipe-576873.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576873_Patch_extensibinaries_compiled_previous/recipe-576873.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # -*- coding: Windows-1251 -*-
'''
find_dll_name.py
List all python dll names in DLL/PYD/etc file.
Author: Denis Barmenkov <denis.barmenkov@gmail.com>
Copyright: this code is free, but if you want to use it,
please keep this multiline comment along with source.
Thank you.
2009-08-09
'''
impo... | 18.446154 | 65 | 0.65221 | # -*- coding: Windows-1251 -*-
'''
find_dll_name.py
List all python dll names in DLL/PYD/etc file.
Author: Denis Barmenkov <denis.barmenkov@gmail.com>
Copyright: this code is free, but if you want to use it,
please keep this multiline comment along with source.
Thank you.
2009-08-09
'''
impo... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5b27ddcccb0cb4ccd03ff118b4a52ef550bf32a2 | 678 | py | Python | sketch/sketchs.py | keshab97/100-days-of-ml | 2d995b151185ba9db4d01f34565d4e059d410e33 | [
"MIT"
] | 1 | 2019-12-03T18:36:55.000Z | 2019-12-03T18:36:55.000Z | sketch/sketchs.py | keshab97/100-days-of-ml | 2d995b151185ba9db4d01f34565d4e059d410e33 | [
"MIT"
] | null | null | null | sketch/sketchs.py | keshab97/100-days-of-ml | 2d995b151185ba9db4d01f34565d4e059d410e33 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 8 08:21:19 2018
@author: alkesha
"""
import cv2
#function to draw sketch
camera=cv2.VideoCapture(0)
while True:
ret,frame=camera.read()
cv2.imshow("sketch live",sketching(frame))
if cv2.waitKey(1)==ord('q'):
break
camera... | 23.37931 | 63 | 0.70059 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 8 08:21:19 2018
@author: alkesha
"""
import cv2
import numpy as np
#function to draw sketch
def sketching(image):
grey_image= cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
grey_blur=cv2.GaussianBlur(grey_image,(5,5),0)
#grey_blur=cv2.bilater... | 0 | 0 | 0 | 0 | 0 | 279 | 0 | -3 | 45 |
6272988d075e7579aa9fc785c1021ca88c2ac2ee | 10,047 | py | Python | pytoil/cli/new.py | FollowTheProcess/pytoil | b13acb14f015ae5399d7697bdc3e0e475dff03ec | [
"Apache-2.0"
] | 6 | 2021-05-08T20:31:03.000Z | 2022-03-08T01:25:43.000Z | pytoil/cli/new.py | FollowTheProcess/pytoil | b13acb14f015ae5399d7697bdc3e0e475dff03ec | [
"Apache-2.0"
] | 116 | 2021-07-08T11:21:22.000Z | 2022-03-30T14:04:51.000Z | pytoil/cli/new.py | FollowTheProcess/pytoil | b13acb14f015ae5399d7697bdc3e0e475dff03ec | [
"Apache-2.0"
] | null | null | null | """
The pytoil new command.
Author: Tom Fleet
Created: 25/06/2021
"""
from typing import List
import httpx
import typer
from cookiecutter.main import cookiecutter
from wasabi import msg
from pytoil.api import API
from pytoil.cli import utils
from pytoil.config import Config
from pytoil.environments import Conda, En... | 31.396875 | 87 | 0.640092 | """
The pytoil new command.
Author: Tom Fleet
Created: 25/06/2021
"""
from typing import List
import httpx
import typer
from cookiecutter.main import cookiecutter
from wasabi import msg
from pytoil.api import API
from pytoil.cli import utils
from pytoil.config import Config
from pytoil.environments import Conda, En... | 0 | 5,288 | 0 | 0 | 0 | 0 | 0 | 38 | 45 |
95e1a4d230cc4ecc6e1410bd9af1d4589b983194 | 4,467 | py | Python | fserver/path_util.py | Carrotor116/fserver | 86934023fb080088854b4bae7867ad3667561111 | [
"MIT"
] | 1 | 2020-08-06T01:25:14.000Z | 2020-08-06T01:25:14.000Z | fserver/path_util.py | Carrotor116/fserver | 86934023fb080088854b4bae7867ad3667561111 | [
"MIT"
] | 1 | 2020-07-26T09:27:01.000Z | 2020-07-26T09:27:01.000Z | fserver/path_util.py | Carrotor116/fserver | 86934023fb080088854b4bae7867ad3667561111 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import re
import sys
try:
from os import scandir
except:
def parents_path(path):
"""
:param path:
:return: return parents_path which does not contain the end '/', that is remove the end '/'
"""
res = set()
path = normalize_path(path)
while '/' in ... | 24.955307 | 100 | 0.596597 | # -*- coding: utf-8 -*-
import os
import re
import sys
from werkzeug import utils
try:
from os import scandir
except:
from scandir import scandir
def to_unicode_str(s):
if sys.version_info < (3, 4) and not isinstance(s, unicode):
if isinstance(s, str):
try:
s = s.dec... | 0 | 0 | 0 | 0 | 0 | 1,202 | 0 | 11 | 210 |
a2533bb28bfb5cd5a97367c29d9187aba0e778ce | 2,345 | py | Python | demo/framework.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | demo/framework.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | demo/framework.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.
import sys
import os.path
from os.path import join as jp
here = os.path.dirname(__file__)
sys.path.append(jp(here, '../..'))
# Here we define what can be repeated within the configuration... | 41.140351 | 126 | 0.742004 | # Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.
import sys
import os.path
from os.path import join as jp
here = os.path.dirname(__file__)
sys.path.append(jp(here, '../..'))
from multiconf import ConfigRoot, ConfigItem, ConfigBuilder
fro... | 0 | 1,320 | 0 | 128 | 0 | 0 | 0 | 86 | 156 |
de2e5d6d77fa2b68900522319a74e9122be0658d | 1,585 | py | Python | tests/fixtures/test_author_contributions/content_01_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-04-16T08:13:31.000Z | 2020-05-18T14:03:06.000Z | tests/fixtures/test_author_contributions/content_01_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 310 | 2015-02-11T00:30:09.000Z | 2021-07-14T23:58:50.000Z | tests/fixtures/test_author_contributions/content_01_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-02-04T01:21:28.000Z | 2021-06-15T12:50:47.000Z | expected = [
{
"id": "con1",
"text": "<p>RAA, Conception and design, Acquisition of data, Analysis and interpretation of data, Drafting or revising the article</p>",
"fn-type": "con",
},
{
"id": "con2",
"text": "<p>LWB, Conception and design, Acquisition of data, Anal... | 33.020833 | 144 | 0.529968 | expected = [
{
"id": "con1",
"text": "<p>RAA, Conception and design, Acquisition of data, Analysis and interpretation of data, Drafting or revising the article</p>",
"fn-type": "con",
},
{
"id": "con2",
"text": "<p>LWB, Conception and design, Acquisition of data, Anal... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9948e1f94b91f2d4c8102e9952d01a6734aedda2 | 8,348 | py | Python | dev/BuildGraph.py | galadrielbriere/ClustOmics | af3d6aae878483f6401c06ef50a7eb78e1e76917 | [
"MIT"
] | 2 | 2021-05-16T18:16:03.000Z | 2021-06-02T07:28:44.000Z | dev/BuildGraph.py | galadrielbriere/ClustOmics | af3d6aae878483f6401c06ef50a7eb78e1e76917 | [
"MIT"
] | null | null | null | dev/BuildGraph.py | galadrielbriere/ClustOmics | af3d6aae878483f6401c06ef50a7eb78e1e76917 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 25 13:08:45 2019
@author: briere
"""
import logging
import argparse
import os
from neo4j import GraphDatabase
descr = ('This script instanciate a Neo4j graph database from the metadata '
'file and the various clustering results to integra... | 37.434978 | 98 | 0.583972 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 25 13:08:45 2019
@author: briere
"""
import logging
import argparse
import os
from neo4j import GraphDatabase
descr = ('This script instanciate a Neo4j graph database from the metadata '
'file and the various clustering results to integra... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
634f5d7e03d3f278d68ac61c4a16b596c7887d60 | 534 | py | Python | Requirement 5/code/old versions of code/ii.py | Dhaval-B-Patel/DIGITAL-SECURITY-PROJECT | 0195f121c272c5db20865641620cf6c652894d97 | [
"Unlicense"
] | null | null | null | Requirement 5/code/old versions of code/ii.py | Dhaval-B-Patel/DIGITAL-SECURITY-PROJECT | 0195f121c272c5db20865641620cf6c652894d97 | [
"Unlicense"
] | null | null | null | Requirement 5/code/old versions of code/ii.py | Dhaval-B-Patel/DIGITAL-SECURITY-PROJECT | 0195f121c272c5db20865641620cf6c652894d97 | [
"Unlicense"
] | null | null | null | from skimage import io
import matplotlib.pyplot as plt
import sys
image = io.imread(sys.argv[1])
_ = plt.hist(image.ravel(), bins = 256, color = 'orange', )
_ = plt.hist(image[:, :, 0].ravel(), bins = 256, color = 'red', alpha = 0.5)
_ = plt.hist(image[:, :, 1].ravel(), bins = 256, color = 'Green', alpha = 0.5)
_ = pl... | 41.076923 | 78 | 0.627341 | from skimage import io
import matplotlib.pyplot as plt
import sys
image = io.imread(sys.argv[1])
_ = plt.hist(image.ravel(), bins = 256, color = 'orange', )
_ = plt.hist(image[:, :, 0].ravel(), bins = 256, color = 'red', alpha = 0.5)
_ = plt.hist(image[:, :, 1].ravel(), bins = 256, color = 'Green', alpha = 0.5)
_ = pl... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
16c1ba6463e66a8c7b907f0b22be21daf693caf1 | 851 | py | Python | var/spack/repos/builtin/packages/r-jpeg/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/r-jpeg/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/r-jpeg/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 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)
| 35.458333 | 97 | 0.747356 | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RJpeg(RPackage):
"""Read and write JPEG images.
This package provides an easy and sim... | 0 | 0 | 0 | 609 | 0 | 0 | 0 | -2 | 46 |
1d74c94de683832fa6b065ee16fc011fa1418d9a | 4,072 | py | Python | data_utils.py | KnightZhang625/EANN_TensorFlow | 140bab46148924374fdc0b434dd58ee12f678642 | [
"Apache-2.0"
] | 1 | 2021-11-03T10:59:15.000Z | 2021-11-03T10:59:15.000Z | data_utils.py | KnightZhang625/EANN_TensorFlow | 140bab46148924374fdc0b434dd58ee12f678642 | [
"Apache-2.0"
] | null | null | null | data_utils.py | KnightZhang625/EANN_TensorFlow | 140bab46148924374fdc0b434dd58ee12f678642 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
# Produced by Jiaxin Zhang
# Start Data: 20_May_2020
# Data processing module.
#
# For GOD I Trust.
# 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/... | 32.83871 | 98 | 0.668959 | # coding:utf-8
# Produced by Jiaxin Zhang
# Start Data: 20_May_2020
# Data processing module.
#
# For GOD I Trust.
# 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/... | 0 | 733 | 0 | 0 | 1,086 | 572 | 0 | -34 | 250 |
4fb586103fe0edef0a4a7e8014f40d0dfc525a60 | 879 | py | Python | example/org2/csv2feather.py | public-tatsuya-noyori/meteorological_visualizer | 0566c74a1a0465f7a78ea57788a6f52357672d2c | [
"Apache-2.0"
] | 1 | 2021-01-05T09:44:30.000Z | 2021-01-05T09:44:30.000Z | example/org2/csv2feather.py | public-tatsuya-noyori/meteorological_visualizer | 0566c74a1a0465f7a78ea57788a6f52357672d2c | [
"Apache-2.0"
] | 11 | 2020-08-05T05:51:32.000Z | 2022-01-12T23:48:27.000Z | example/org2/csv2feather.py | public-tatsuya-noyori/meteorological_visualizer | 0566c74a1a0465f7a78ea57788a6f52357672d2c | [
"Apache-2.0"
] | 3 | 2020-08-04T23:26:49.000Z | 2020-08-14T07:01:06.000Z | #!/usr/bin/env python3
import os
import re
import sys
import pandas as pd
import pyarrow as pa
from pyarrow import csv, feather
in_file = sys.argv[1]
in_df = csv.read_csv(in_file).to_pandas()
if 'datetime' in in_df.columns.values.tolist():
in_df['datetime'] = pd.to_datetime(in_df.datetime, utc=True)
#out_file = re... | 43.95 | 206 | 0.724687 | #!/usr/bin/env python3
import os
import re
import sys
import pandas as pd
import pyarrow as pa
from pyarrow import csv, feather
in_file = sys.argv[1]
in_df = csv.read_csv(in_file).to_pandas()
if 'datetime' in in_df.columns.values.tolist():
in_df['datetime'] = pd.to_datetime(in_df.datetime, utc=True)
#out_file = re... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
95c237b16aac2282ed9e9b22d2258e0297ce9922 | 554 | py | Python | setup.py | Tatersic/Vnode | 8ec7009517f6ac9441ac9352e6dbc08e16cc3402 | [
"MIT"
] | null | null | null | setup.py | Tatersic/Vnode | 8ec7009517f6ac9441ac9352e6dbc08e16cc3402 | [
"MIT"
] | null | null | null | setup.py | Tatersic/Vnode | 8ec7009517f6ac9441ac9352e6dbc08e16cc3402 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="Vnode",
version="0.1.0",
description="A fast wheel to build a node network.",
author="Tatersic&Ovizro",
author_email="Tatersic@qq.com",
maintainer="Ovizro",
maintainer_email="Ovizro@hypercol.com",
license="MIT",
url="https://github.com/Tate... | 24.086957 | 83 | 0.642599 | from setuptools import setup
setup(
name="Vnode",
version="0.1.0",
description="A fast wheel to build a node network.",
author="Tatersic&Ovizro",
author_email="Tatersic@qq.com",
maintainer="Ovizro",
maintainer_email="Ovizro@hypercol.com",
license="MIT",
url="https://github.com/Tate... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
96cfc389cb065e1c9dd412436628111f89e39294 | 4,563 | py | Python | brewmeister/controller/brewslave.py | brewpeople/brewmeister | 82a5402a3cd528892b13d2a8b7a58d6c15e4ae9f | [
"MIT"
] | 2 | 2018-12-30T17:55:54.000Z | 2022-03-03T20:24:57.000Z | brewmeister/controller/brewslave.py | brewpeople/brewmeister | 82a5402a3cd528892b13d2a8b7a58d6c15e4ae9f | [
"MIT"
] | null | null | null | brewmeister/controller/brewslave.py | brewpeople/brewmeister | 82a5402a3cd528892b13d2a8b7a58d6c15e4ae9f | [
"MIT"
] | null | null | null | import struct
import crcmod
COMMAND_GET = struct.pack('B', 0xf0)
COMMAND_SET = struct.pack('B', 0xf1)
DS18B20 = struct.pack('B', 0xf1)
HEATER = struct.pack('B', 0xf2)
STIRRER = struct.pack('B', 0xf3)
# Contrary to crcmod's definition, brewslave expects a bit-reversed CRC
crc8 = crcmod.mkCrcFun(0x131, 0, False, 0)
... | 28.879747 | 91 | 0.586895 | import os
import re
import time
import struct
import serial
import threading
import crcmod
COMMAND_GET = struct.pack('B', 0xf0)
COMMAND_SET = struct.pack('B', 0xf1)
DS18B20 = struct.pack('B', 0xf1)
HEATER = struct.pack('B', 0xf2)
STIRRER = struct.pack('B', 0xf3)
# Contrary to crcmod's definition, brewslave expects... | 0 | 994 | 0 | 3,162 | 0 | 0 | 0 | -47 | 133 |
0a0c322c09dddecb6ae9edbae2255b2eba9732ab | 9,279 | py | Python | 5_fact_checking_models/baseline.py | olibchr/factChecker | 6affa8636884e1198eff8a9e360ad376f511e37d | [
"MIT"
] | 1 | 2018-06-23T20:40:41.000Z | 2018-06-23T20:40:41.000Z | 5_fact_checking_models/baseline.py | olibchr/factChecker | 6affa8636884e1198eff8a9e360ad376f511e37d | [
"MIT"
] | 1 | 2021-12-13T19:47:10.000Z | 2021-12-13T19:47:10.000Z | 5_fact_checking_models/baseline.py | olibchr/factChecker | 6affa8636884e1198eff8a9e360ad376f511e37d | [
"MIT"
] | null | null | null | import os, sys
sys.path.insert(0, os.path.dirname(__file__) + '../2_helpers')
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
SERVER_RUN = True
DIR = os.path.dirname(__file__) + '../../3_Data/'
if __name__ == "__main__":
main()
| 40.519651 | 132 | 0.682186 | import glob, os, sys, json, datetime
import pandas as pd
import numpy as np
sys.path.insert(0, os.path.dirname(__file__) + '../2_helpers')
import re, nltk
from dateutil import parser
from Fact import Fact
from User import User
from Transaction import Transaction
from decoder import decoder
from sklearn.model_selectio... | 0 | 0 | 0 | 0 | 426 | 7,541 | 0 | 367 | 668 |
60a87abbd5f60963f9b1b9f17741e1be53d9ef5b | 2,842 | py | Python | pibootcmdline/edit.py | urbas/pibootcmdline | dcfbc6e6075f11e1aea928452acca59528902235 | [
"MIT"
] | 1 | 2017-10-24T23:19:06.000Z | 2017-10-24T23:19:06.000Z | pibootcmdline/edit.py | urbas/pibootcmdline | dcfbc6e6075f11e1aea928452acca59528902235 | [
"MIT"
] | 67 | 2017-11-15T23:20:13.000Z | 2019-03-13T14:57:59.000Z | pibootcmdline/edit.py | urbas/pibootcmdline | dcfbc6e6075f11e1aea928452acca59528902235 | [
"MIT"
] | null | null | null | from pibootcmdline.parse import parse_parameter
def add_parameters(cmdline, *parameters):
"""
Parameters
----------
cmdline: list[Parameter]
parsed command line to which to add parameters.
*parameters: str
list of string parameters. For example: 'key=value' or 'key' or 'key=value1... | 30.55914 | 118 | 0.674525 | from pibootcmdline.parse import parse_parameter, Parameter
def add_parameters(cmdline, *parameters):
"""
Parameters
----------
cmdline: list[Parameter]
parsed command line to which to add parameters.
*parameters: str
list of string parameters. For example: 'key=value' or 'key' or ... | 0 | 0 | 0 | 0 | 0 | 506 | 0 | 11 | 69 |
110b3a61385a3095d01b7a4cdffbe045d22cd55a | 3,215 | py | Python | mmcv/utils/helpers.py | manlinting/mmcv | ae9d3cc41054712ee54940d8657606afef4fc066 | [
"Apache-2.0"
] | 1 | 2019-09-25T12:26:05.000Z | 2019-09-25T12:26:05.000Z | mmcv/utils/helpers.py | manlinting/mmcv | ae9d3cc41054712ee54940d8657606afef4fc066 | [
"Apache-2.0"
] | null | null | null | mmcv/utils/helpers.py | manlinting/mmcv | ae9d3cc41054712ee54940d8657606afef4fc066 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch.nn as nn
| 37.383721 | 80 | 0.566096 | #!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import functools
import torch
import torch.nn as nn
def load_parameters(model, src_state_dict):
logging.info('Loading Parameters...')
... | 0 | 0 | 0 | 0 | 0 | 2,905 | 0 | -21 | 148 |
e1c0fc71aeebac769ec087623d2868867ad8deae | 3,497 | py | Python | app/checkers.py | chengyuhui/srvmon | 4d2c295f268e494d8b0e97cb63037e240b3db2ec | [
"MIT"
] | 1 | 2020-12-13T09:39:36.000Z | 2020-12-13T09:39:36.000Z | app/checkers.py | chengyuhui/srvmon | 4d2c295f268e494d8b0e97cb63037e240b3db2ec | [
"MIT"
] | null | null | null | app/checkers.py | chengyuhui/srvmon | 4d2c295f268e494d8b0e97cb63037e240b3db2ec | [
"MIT"
] | null | null | null | from app import app
import requests, sys, socket
from datetime import datetime, timedelta
from .db import transaction, db
from .notify import notify_state_changed
from blinker import Namespace
def handle_active_http(server):
"""
Handler for Active HTTP checking
"""
config = server.get_config()
... | 26.9 | 79 | 0.644838 | from app import app
import requests, sys, eventlet, socket
from datetime import datetime, timedelta
from .db import Server, Record, transaction, db
from .notify import notify_state_changed
from blinker import Namespace
def log_start(server):
app.logger.debug("Start checking [%s](%s)", server.label, server.id)
d... | 0 | 0 | 0 | 0 | 0 | 743 | 0 | 26 | 115 |
778192d1dd5ce7f3a6e52e024267de15e2f06d4c | 14,970 | py | Python | pkg_task6/scripts/ur5_moveit/ur5_moveit.py | 1arshan/Eyantra_Virgi-bot | 30ebe99fec6a0d4767fe94468b21bc00091bc527 | [
"MIT"
] | 1 | 2021-09-09T04:41:28.000Z | 2021-09-09T04:41:28.000Z | pkg_task6/scripts/ur5_moveit/ur5_moveit.py | 1arshan/Eyantra_Virgi-bot | 30ebe99fec6a0d4767fe94468b21bc00091bc527 | [
"MIT"
] | null | null | null | pkg_task6/scripts/ur5_moveit/ur5_moveit.py | 1arshan/Eyantra_Virgi-bot | 30ebe99fec6a0d4767fe94468b21bc00091bc527 | [
"MIT"
] | null | null | null | #! /usr/bin/env python2.7
"""
This file contain Ur5Moveit class to control bot and rviz planning scene.
"""
import geometry_msgs.msg
import math
import sys
def define_joint_angle_list(shoulder_pan_joint, shoulder_lift_joint, elbow_joint, wrist_1_joint, wrist_2_joint, wrist_3_joint):
"""
This function takes fl... | 38.48329 | 179 | 0.64676 | #! /usr/bin/env python2.7
"""
This file contain Ur5Moveit class to control bot and rviz planning scene.
"""
import rospy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
from pkg_vb_sim.srv import conveyorBeltPowerMsg
import math
import sys
import copy
from std_srvs.srv import Em... | 0 | 36 | 0 | 12,219 | 0 | 0 | 0 | 60 | 287 |
8145aa16391086be18b4c1e44f2aca985e32f12d | 8,452 | py | Python | diligent/checks/nelson.py | stefanw/diligent-pandas | aaf74fc41bc9414e5e27f5a0e1b91d47613fdb38 | [
"MIT"
] | 3 | 2016-05-13T00:45:40.000Z | 2019-07-30T15:22:29.000Z | diligent/checks/nelson.py | stefanw/diligent-pandas | aaf74fc41bc9414e5e27f5a0e1b91d47613fdb38 | [
"MIT"
] | null | null | null | diligent/checks/nelson.py | stefanw/diligent-pandas | aaf74fc41bc9414e5e27f5a0e1b91d47613fdb38 | [
"MIT"
] | 1 | 2019-02-16T01:39:04.000Z | 2019-02-16T01:39:04.000Z | """
Implementation of the Nelson rules
https://en.wikipedia.org/wiki/Nelson_rules
"""
__all__ = ['nelson_rule_%d' % i for i in range(1, 9)]
| 31.303704 | 116 | 0.587317 | """
Implementation of the Nelson rules
https://en.wikipedia.org/wiki/Nelson_rules
"""
from collections import deque
import numpy as np
from ..diligent import registry
from ..utils import is_numeric
__all__ = ['nelson_rule_%d' % i for i in range(1, 9)]
@registry.register(name='Nelson Rule 1', tags='nelson')
def ne... | 0 | 5,810 | 0 | 0 | 2,146 | 0 | 0 | 24 | 320 |
907e0adfc0f120310bcbdc9d52f4a37f02b73a76 | 1,259 | py | Python | lib/coginvasion/holiday/HolidayManager.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | 1 | 2020-03-12T16:44:10.000Z | 2020-03-12T16:44:10.000Z | lib/coginvasion/holiday/HolidayManager.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | lib/coginvasion/holiday/HolidayManager.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: lib.coginvasion.holiday.HolidayManager
| 34.972222 | 104 | 0.732327 | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: lib.coginvasion.holiday.HolidayManager
from panda3d.core import VirtualFileSystem, Filename
from direct.distributed.DistributedObjectGlo... | 0 | 0 | 0 | 770 | 0 | 0 | 0 | 130 | 135 |
0d4bdc468aa1a1f9a81f77398ae0f99cd3a04ab0 | 4,525 | py | Python | discomll/tests/tests_classification.py | romanorac/discomll | a4703daffb2ba3c9f614bc3dbe45ae55884aea00 | [
"Apache-2.0"
] | 103 | 2015-01-02T23:45:18.000Z | 2021-01-23T14:25:52.000Z | discomll/tests/tests_classification.py | romanorac/discomll | a4703daffb2ba3c9f614bc3dbe45ae55884aea00 | [
"Apache-2.0"
] | null | null | null | discomll/tests/tests_classification.py | romanorac/discomll | a4703daffb2ba3c9f614bc3dbe45ae55884aea00 | [
"Apache-2.0"
] | 10 | 2015-01-02T23:48:12.000Z | 2017-11-25T15:55:34.000Z | import unittest
if __name__ == '__main__':
unittest.main()
| 40.765766 | 119 | 0.699448 | import unittest
import numpy as np
import Orange
from disco.core import result_iterator
import datasets
class Tests_Classification(unittest.TestCase):
@classmethod
def setUpClass(self):
import chunk_testdata
from disco import ddfs
ddfs = ddfs.DDFS()
if not ddfs.exists("test:... | 0 | 244 | 0 | 4,102 | 0 | 0 | 0 | 0 | 113 |
8a2a0fe848a71d1e002a99358b587d9441c09903 | 7,400 | py | Python | smore/models/box.py | isabella232/smore | 02e5a89e84a805eed632eefbdecd957d95e202d4 | [
"Apache-2.0"
] | 78 | 2021-10-31T23:20:26.000Z | 2022-03-21T01:07:01.000Z | smore/models/box.py | google-research/smore | e4ba95a7466ef7d018987bce7688b77bf2ea7e4f | [
"Apache-2.0"
] | 4 | 2021-11-02T13:45:38.000Z | 2022-02-17T04:18:32.000Z | smore/models/box.py | pyg-team/smore | 02e5a89e84a805eed632eefbdecd957d95e202d4 | [
"Apache-2.0"
] | 15 | 2021-11-02T23:55:29.000Z | 2022-03-19T10:30:51.000Z | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 44.848485 | 160 | 0.69 | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 0 | 0 | 0 | 6,292 | 0 | 0 | 0 | 106 | 291 |
b5ba6ef777fde42cecd1a31dc630290cdbebe0ef | 2,343 | py | Python | Learning Correspondence of Synthetic Shapes/models.py | tbredbenner/unsupervised_learning_of_dense_shape_correspondence | 440643d633a6db3f947ac71a247c8083cb3aeadc | [
"MIT"
] | 84 | 2019-03-16T13:08:25.000Z | 2022-02-06T11:11:39.000Z | Learning Correspondence of Synthetic Shapes/models.py | tbredbenner/unsupervised_learning_of_dense_shape_correspondence | 440643d633a6db3f947ac71a247c8083cb3aeadc | [
"MIT"
] | 11 | 2019-09-14T02:54:29.000Z | 2022-01-13T01:42:29.000Z | Learning Correspondence of Synthetic Shapes/models.py | tbredbenner/unsupervised_learning_of_dense_shape_correspondence | 440643d633a6db3f947ac71a247c8083cb3aeadc | [
"MIT"
] | 20 | 2019-06-22T09:01:37.000Z | 2021-07-09T08:24:13.000Z | import tensorflow as tf
flags = tf.app.flags
FLAGS = flags.FLAGS
def fmnet_model(phase, part_shot, model_shot, part_dist_map , model_dist_map, part2model_ind_gt, part_evecs, part_evecs_trans, model_evecs, model_evecs_trans):
"""Build FM-net model.
Args:
phase: train\test.
part_shot: SHOT descriptor of source ... | 38.409836 | 159 | 0.714469 | import tensorflow as tf
import numpy as np
from ops import *
flags = tf.app.flags
FLAGS = flags.FLAGS
def fmnet_model(phase, part_shot, model_shot, part_dist_map , model_dist_map, part2model_ind_gt, part_evecs, part_evecs_trans, model_evecs, model_evecs_trans):
"""Build FM-net model.
Args:
phase: train\test.
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -7 | 45 |
db00ae2ea98be4abf7a161b404049c4e77de3c0b | 2,389 | py | Python | python_examples/example_01_basics_for_direkt_requests.py | intinor/direkt_api_tutorial | ecbc0f7366d275666f0b174041c7d20314c1db3c | [
"MIT"
] | 1 | 2022-03-08T13:35:11.000Z | 2022-03-08T13:35:11.000Z | python_examples/example_01_basics_for_direkt_requests.py | intinor/direkt_api_tutorial | ecbc0f7366d275666f0b174041c7d20314c1db3c | [
"MIT"
] | null | null | null | python_examples/example_01_basics_for_direkt_requests.py | intinor/direkt_api_tutorial | ecbc0f7366d275666f0b174041c7d20314c1db3c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Intinor Direkt API Python tutorial
Example 1: Send a request to a Direkt unit using the "direkt" module
and obtain API information as a JSON string
"""
import sys
# The "direkt" module wraps the "requests" library with some convenient
# functionality for the Intinor Direkt API.
... | 32.283784 | 79 | 0.735036 | #!/usr/bin/env python3
"""Intinor Direkt API Python tutorial
Example 1: Send a request to a Direkt unit using the "direkt" module
and obtain API information as a JSON string
"""
import sys
# The "direkt" module wraps the "requests" library with some convenient
# functionality for the Intinor Direkt API.
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e18ab7550d94b330264c78c211546ae6cac394fd | 2,519 | py | Python | hproxy/spider/proxy_spider/mimvp_spider.py | yejianxin2015/hproxy | f40266bf7b06368d3ebfdce8d60385bcd4b93713 | [
"MIT"
] | null | null | null | hproxy/spider/proxy_spider/mimvp_spider.py | yejianxin2015/hproxy | f40266bf7b06368d3ebfdce8d60385bcd4b93713 | [
"MIT"
] | null | null | null | hproxy/spider/proxy_spider/mimvp_spider.py | yejianxin2015/hproxy | f40266bf7b06368d3ebfdce8d60385bcd4b93713 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Created by howie.hu at 08/04/2018.
"""
import asyncio
from hproxy.database import DatabaseSetting
db_client = DatabaseSetting()
if __name__ == '__main__':
# Start
asyncio.get_event_loop().run_until_complete(start())
| 29.988095 | 155 | 0.588329 | #!/usr/bin/env python
"""
Created by howie.hu at 08/04/2018.
"""
import asyncio
import time
from hproxy.database import DatabaseSetting
from hproxy.spider.base_spider import ProxySpider
from hproxy.spider.proxy_spider import MimvpItem
from hproxy.spider.proxy_tools import request_url_by_aiohttp, get_proxy_info
db_... | 9 | 0 | 1,815 | 208 | 0 | 0 | 0 | 100 | 135 |
de03dc6cbce490d45e09e58f380fdbd937ffe590 | 1,966 | py | Python | releng/lib/__init__.py | imoisharma/emissary | 5346ccb06673827a6a2e51ddaf92925f60bd9de9 | [
"Apache-2.0"
] | null | null | null | releng/lib/__init__.py | imoisharma/emissary | 5346ccb06673827a6a2e51ddaf92925f60bd9de9 | [
"Apache-2.0"
] | null | null | null | releng/lib/__init__.py | imoisharma/emissary | 5346ccb06673827a6a2e51ddaf92925f60bd9de9 | [
"Apache-2.0"
] | 1 | 2021-03-04T10:23:33.000Z | 2021-03-04T10:23:33.000Z | #!/hint/python3
import re
import subprocess
from typing import Any, List
from .gitutil import git_check_clean as git_check_clean # Stop mypy complaining about implicit reexport
from .uiutil import run_txtcapture
from .gitutil import git_add as git_add # Stop mypy complaining about implicit reexport
# These are some... | 31.709677 | 104 | 0.639369 | #!/hint/python3
import re
import subprocess
from typing import Any, List
from os import getenv
import subprocess
from .gitutil import git_check_clean as git_check_clean # Stop mypy complaining about implicit reexport
from .uiutil import run_txtcapture
from .gitutil import git_add as git_add # Stop mypy complaining a... | 0 | 0 | 0 | 0 | 0 | 289 | 0 | -4 | 67 |
5e76824fe09b1da67ef92de0f20913bbf09df805 | 4,471 | py | Python | pioneer/core/STLSTM.py | TJUMMG/TGSR | 41a36c4fa1154bdc47bb48dbe97e8e8090294ce2 | [
"Apache-2.0"
] | null | null | null | pioneer/core/STLSTM.py | TJUMMG/TGSR | 41a36c4fa1154bdc47bb48dbe97e8e8090294ce2 | [
"Apache-2.0"
] | null | null | null | pioneer/core/STLSTM.py | TJUMMG/TGSR | 41a36c4fa1154bdc47bb48dbe97e8e8090294ce2 | [
"Apache-2.0"
] | 1 | 2022-02-24T23:40:44.000Z | 2022-02-24T23:40:44.000Z | import torch
import torch.nn as nn
if __name__ == '__main__':
batchsize =10
# stlstm_cell = STLSTMCell(4, 10)
# x = torch.randn([1, 4])
# h = torch.randn([1, 10])
# c = torch.randn([1, 10])
# m = torch.randn([1, 10])
#
# h_t, c_t, m_t = stlstm_cell(x, h, c, m)
stlstm = STLSTM(4, 1... | 35.768 | 123 | 0.561619 | import torch
import torch.nn as nn
class STLSTMCell(nn.Module):
def __init__(self,input_size, hidden_size):
super(STLSTMCell, self).__init__()
self.conv_x = nn.Linear(input_size,hidden_size*7)
self.conv_h = nn.Linear(hidden_size,hidden_size*4)
self.conv_m = nn.Linear(hidden_size,hid... | 135 | 0 | 0 | 3,952 | 0 | 0 | 0 | 0 | 46 |
d4ccb23fa768b7c5845523c071cba747ce1fbe83 | 678 | py | Python | examples/simple.py | fabricio-aguiar/Flask-GoogleMaps | 57fbad142723dcae512c41a3b8a4a3e34aaa2c40 | [
"MIT"
] | null | null | null | examples/simple.py | fabricio-aguiar/Flask-GoogleMaps | 57fbad142723dcae512c41a3b8a4a3e34aaa2c40 | [
"MIT"
] | null | null | null | examples/simple.py | fabricio-aguiar/Flask-GoogleMaps | 57fbad142723dcae512c41a3b8a4a3e34aaa2c40 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_googlemaps import GoogleMaps
from dynaconf import FlaskDynaconf
app = Flask(__name__)
GoogleMaps(app)
FlaskDynaconf(app)
if __name__ == "__main__":
app.run(port=5050)
| 22.6 | 75 | 0.623894 | from flask import Flask, render_template
from flask_googlemaps import GoogleMaps, Map, icons
from dynaconf import FlaskDynaconf
app = Flask(__name__)
GoogleMaps(app)
FlaskDynaconf(app)
@app.route("/")
def map_created_in_view():
gmap = Map(
identifier="gmap",
varname="gmap",
lat=37.4419,
... | 0 | 416 | 0 | 0 | 0 | 0 | 0 | 29 | 23 |
e08fef1717dba2d5e1844755508084fbe4b923d4 | 2,301 | py | Python | setup.py | deepanshs/csdmpy | bd4e138b10694491113b10177a89305697f1752c | [
"BSD-3-Clause"
] | 7 | 2021-07-07T09:55:20.000Z | 2022-01-22T06:34:17.000Z | setup.py | deepanshs/csdmpy | bd4e138b10694491113b10177a89305697f1752c | [
"BSD-3-Clause"
] | 16 | 2021-06-09T06:28:27.000Z | 2022-03-01T18:12:33.000Z | setup.py | deepanshs/csdmpy | bd4e138b10694491113b10177a89305697f1752c | [
"BSD-3-Clause"
] | 1 | 2020-01-03T17:04:16.000Z | 2020-01-03T17:04:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages
from setuptools import setup
# Load package veersion number.
with open("csdmpy/__init__.py", "r") as f:
for line in f.readlines():
if "__version__" in line:
before_keyword, keyword, after_keyword = lin... | 31.958333 | 79 | 0.649718 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages
from setuptools import setup
# Load package veersion number.
with open("csdmpy/__init__.py", "r") as f:
for line in f.readlines():
if "__version__" in line:
before_keyword, keyword, after_keyword = lin... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
36f8c1feebe983d31c6dc6408a16ba23e194cf98 | 643 | py | Python | datamanager/processing_gribnc_data/driver.py | mr-atharva-kulkarni/Algorithms-for-Sea-Route-Optimizaiton | 48d90ad2445b60d2228ed0aac60e1acba773b345 | [
"MIT"
] | null | null | null | datamanager/processing_gribnc_data/driver.py | mr-atharva-kulkarni/Algorithms-for-Sea-Route-Optimizaiton | 48d90ad2445b60d2228ed0aac60e1acba773b345 | [
"MIT"
] | null | null | null | datamanager/processing_gribnc_data/driver.py | mr-atharva-kulkarni/Algorithms-for-Sea-Route-Optimizaiton | 48d90ad2445b60d2228ed0aac60e1acba773b345 | [
"MIT"
] | null | null | null | import geojson
import requests
fileName = input("Enter Filename:")
parameterName = input("Enter Parameter Name:")
parameterName = parameterName.lower().capitalize()
typeOfLevelName = input("Enter type of level:")
levelName = input("Enter level:")
levelVal = int(levelName)
foreCastHourName = input("Enter forecast hour:"... | 32.15 | 70 | 0.757387 | import geojson
import requests
fileName = input("Enter Filename:")
parameterName = input("Enter Parameter Name:")
parameterName = parameterName.lower().capitalize()
typeOfLevelName = input("Enter type of level:")
levelName = input("Enter level:")
levelVal = int(levelName)
foreCastHourName = input("Enter forecast hour:"... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e688e699c0a8417169a2ba5399135c7797330ec6 | 3,180 | py | Python | Client/clientGameConnection.py | JarheadHME/Multiworld_Client | 7f264eb8631b9c1edd58bc31bb5bbbcfa3ec2314 | [
"MIT"
] | null | null | null | Client/clientGameConnection.py | JarheadHME/Multiworld_Client | 7f264eb8631b9c1edd58bc31bb5bbbcfa3ec2314 | [
"MIT"
] | null | null | null | Client/clientGameConnection.py | JarheadHME/Multiworld_Client | 7f264eb8631b9c1edd58bc31bb5bbbcfa3ec2314 | [
"MIT"
] | null | null | null |
from base_logger import logging
logger = logging.getLogger(__name__)
| 37.857143 | 120 | 0.641509 | import asyncio
from asyncio import Task
from typing import List
from base_logger import logging
logger = logging.getLogger(__name__)
from Dolphin.dolphinGameHandler import DolphinGameHandler
from Model.itemDto import ItemDto
from util.abstractGameHandler import AbstractGameHandler
from PySide6.QtCore import Signal
... | 0 | 0 | 2,140 | 697 | 0 | 0 | 0 | 93 | 179 |
5dce291b545fd45c8302c3044c37326984355ce7 | 982 | py | Python | h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2odownload_csv.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2odownload_csv.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2odownload_csv.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
import sys, os
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
def h2odownload_csv():
"""
Python API test: h2o.download_csv(data, filename)
"""
training_data = h2o.import_file(pyunit_utils.locate("smalldata/logreg/benign.csv"))
try:
... | 36.37037 | 95 | 0.680244 | from __future__ import print_function
import sys, os
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
def h2odownload_csv():
"""
Python API test: h2o.download_csv(data, filename)
"""
training_data = h2o.import_file(pyunit_utils.locate("smalldata/logreg/benign.csv"))
try:
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
501133344b118a98f39410df479eb520956042e0 | 5,952 | py | Python | codes/models/archs/RCAN_arch.py | AyeshaSadiqa/thesis | 761eb0c37acd42707d52d4a6bfabe8ac566d8aa4 | [
"Apache-2.0"
] | 77 | 2021-08-14T04:43:49.000Z | 2022-03-08T13:41:10.000Z | codes/models/archs/RCAN_arch.py | AyeshaSadiqa/thesis | 761eb0c37acd42707d52d4a6bfabe8ac566d8aa4 | [
"Apache-2.0"
] | 8 | 2021-10-30T14:52:11.000Z | 2022-03-09T12:44:54.000Z | codes/models/archs/RCAN_arch.py | AyeshaSadiqa/thesis | 761eb0c37acd42707d52d4a6bfabe8ac566d8aa4 | [
"Apache-2.0"
] | 7 | 2021-08-22T00:47:44.000Z | 2022-03-08T10:25:54.000Z | import torch
from torch import nn as nn
if __name__ == '__main__':
x = torch.randn(4, 3, 3, 64, 64)
model = RCAN(num_in_ch=3,
num_out_ch=3,
num_frames=3,
num_feat=64,
num_group=5,
num_block=2,
squeeze_fa... | 33.251397 | 78 | 0.573589 | import math
import torch
from torch import nn as nn
from models.archs.arch_util import make_layer
class Upsample(nn.Sequential):
"""Upsample module.
Args:
scale (int): Scale factor. Supported scales: 2^n and 3.
num_feat (int): Channel number of intermediate features.
"""
def __init__... | 0 | 0 | 0 | 5,351 | 0 | 0 | 0 | 14 | 160 |
c2181aeb8e9a201390010d5f8b9cbabbb2dca0d3 | 709 | py | Python | fasta_manipulation/fasta_to_genbank.py | olgatsiouri1996/biomisc | b4fdaf3dd49816b7ca9da1d200ab4443455ab784 | [
"MIT"
] | 2 | 2020-06-18T23:43:15.000Z | 2020-10-02T12:32:21.000Z | fasta_manipulation/fasta_to_genbank.py | olgatsiouri1996/biomisc | b4fdaf3dd49816b7ca9da1d200ab4443455ab784 | [
"MIT"
] | 1 | 2021-04-18T00:15:24.000Z | 2021-08-01T20:46:02.000Z | fasta_manipulation/fasta_to_genbank.py | olgatsiouri1996/biomisc | b4fdaf3dd49816b7ca9da1d200ab4443455ab784 | [
"MIT"
] | null | null | null | # python3
import argparse
from Bio import SeqIO
from Bio.Alphabet import generic_dna
# imput parameters
ap = argparse.ArgumentParser()
ap.add_argument("-fa","--fasta", required=True, help="input fasta file")
ap.add_argument("-gb", "--genbank", required=True, help="output genbank file")
args = vars(ap.parse_args())
# ma... | 27.269231 | 78 | 0.737659 | # python3
import argparse
from Bio import SeqIO
from Bio.Alphabet import generic_dna, generic_protein
# imput parameters
ap = argparse.ArgumentParser()
ap.add_argument("-fa","--fasta", required=True, help="input fasta file")
ap.add_argument("-gb", "--genbank", required=True, help="output genbank file")
args = vars(ap.p... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 0 |
3f2a837c7448ee33c18e813bdaf73a07903d0fe7 | 643 | py | Python | backend/blog.py | bbruceyuan/easy-blog | 742bd8d0c8f3d8af793c4e8f531daad410a46151 | [
"MIT"
] | 1 | 2018-08-01T10:51:54.000Z | 2018-08-01T10:51:54.000Z | backend/blog.py | hey-bruce/easy_blog | 742bd8d0c8f3d8af793c4e8f531daad410a46151 | [
"MIT"
] | 1 | 2019-07-20T07:14:25.000Z | 2019-07-20T07:14:25.000Z | backend/blog.py | bbruceyuan/easy-blog | 742bd8d0c8f3d8af793c4e8f531daad410a46151 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Created by BBruceyuan on 18-7-9.
from flask_script import Manager
from flask_script import Shell
from flask_migrate import Migrate, MigrateCommand
from app import create_app
from app import db
blog = create_app('develop')
manager = Manager(blog)
# with blog.app_context():
# print(curren... | 20.09375 | 68 | 0.755832 | #!/usr/bin/env python
# Created by BBruceyuan on 18-7-9.
from flask_script import Manager
from flask_script import Shell
from flask_migrate import Migrate, MigrateCommand
from flask import current_app
from app import create_app
from app import db
blog = create_app('develop')
manager = Manager(blog)
# with blog.app... | 0 | 0 | 0 | 0 | 0 | 37 | 0 | 8 | 45 |
04bd0d40cfcfb96beef4e0573e3a0ec93949247b | 9,410 | py | Python | utils/network.py | dunknowcoding/DilatedCRF | 416ca017d280632353824902df2ea7c035acf1c5 | [
"Apache-2.0"
] | 1 | 2022-02-01T00:42:19.000Z | 2022-02-01T00:42:19.000Z | utils/network.py | dunknowcoding/DilatedCRF | 416ca017d280632353824902df2ea7c035acf1c5 | [
"Apache-2.0"
] | null | null | null | utils/network.py | dunknowcoding/DilatedCRF | 416ca017d280632353824902df2ea7c035acf1c5 | [
"Apache-2.0"
] | 1 | 2022-02-11T09:31:13.000Z | 2022-02-11T09:31:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
: Project - Dialted CRF
: Network frameworks and helpers
: Author - Xi Mo
: Institute - University of Kansas
: Date - 6/24/2021
: Last Update - 7/10/2021
: License: Apache 2.0
"""
import torch.nn as nn
# optimizer parser
# Write model to disk
| 44.386792 | 90 | 0.453454 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
: Project - Dialted CRF
: Network frameworks and helpers
: Author - Xi Mo
: Institute - University of Kansas
: Date - 6/24/2021
: Last Update - 7/10/2021
: License: Apache 2.0
"""
import torch
import torch.nn as nn
import torch.nn.functional as ops
imp... | 0 | 0 | 0 | 3,978 | 0 | 4,822 | 0 | 3 | 287 |
3ca35272338005ea0002852caf9dcad2fb40a023 | 6,977 | py | Python | backend/galvanalyser/database/__init__.py | Battery-Intelligence-Lab/galvanalyser | 3b7198df1caf015fcb802ba94df999aa36c08f4f | [
"BSD-2-Clause"
] | 13 | 2021-11-11T10:59:12.000Z | 2022-02-02T18:27:48.000Z | backend/galvanalyser/database/__init__.py | Battery-Intelligence-Lab/galvanalyser | 3b7198df1caf015fcb802ba94df999aa36c08f4f | [
"BSD-2-Clause"
] | 19 | 2021-11-11T14:20:53.000Z | 2022-02-16T09:49:27.000Z | backend/galvanalyser/database/__init__.py | Battery-Intelligence-Lab/galvanalyser | 3b7198df1caf015fcb802ba94df999aa36c08f4f | [
"BSD-2-Clause"
] | 1 | 2022-01-14T08:10:08.000Z | 2022-01-14T08:10:08.000Z |
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
| 27.908 | 84 | 0.570446 | import psycopg2
from psycopg2 import sql
import string
import os
from .row import Row
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
Base = declarative_base()
from .harvester import (
HarvesterRow,
MonitoredPathRow,
)
def create_harvester_user(config, harvester,... | 0 | 0 | 0 | 0 | 0 | 6,464 | 0 | 36 | 385 |