hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | 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 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | 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 3 251 | 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.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f599143770c118307d670eee5b87e03976f168c | 9,712 | py | Python | scluster/aws_create_resources.py | dorgun/ncluster | 20ba95fb7250a5f7239d704b01bf468a57e8fb7b | [
"MIT"
] | null | null | null | scluster/aws_create_resources.py | dorgun/ncluster | 20ba95fb7250a5f7239d704b01bf468a57e8fb7b | [
"MIT"
] | null | null | null | scluster/aws_create_resources.py | dorgun/ncluster | 20ba95fb7250a5f7239d704b01bf468a57e8fb7b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Creates resources
# This script creates VPC/security group/keypair if not already present
import logging
import os
import sys
import time
from . import aws_util as u
from . import util
DRYRUN = False
DEBUG = True
# Names of Amazon resources that are created. These settings are fixed across
... | 37.9375 | 198 | 0.631899 |
3f59a6465e2607784678cb918b686e6250106802 | 142 | py | Python | ex005-antecessorSucessor/005.py | KaiqueCassal/cursoEmVideoPython | 9d37563045091e4d558e283d47a5a49378e9df71 | [
"MIT"
] | 1 | 2021-08-11T04:38:33.000Z | 2021-08-11T04:38:33.000Z | ex005-antecessorSucessor/005.py | KaiqueCassal/cursoEmVideoPython | 9d37563045091e4d558e283d47a5a49378e9df71 | [
"MIT"
] | null | null | null | ex005-antecessorSucessor/005.py | KaiqueCassal/cursoEmVideoPython | 9d37563045091e4d558e283d47a5a49378e9df71 | [
"MIT"
] | null | null | null | num = int(input('Digite um nmero inteiro: '))
print(f'O nmero: {num}'
f'\nO antecessor: {num - 1}'
f'\nO sucessor: {num + 1}')
| 23.666667 | 46 | 0.56338 |
3f59d7981fb0df6af9168f9da7f7187aa7eb35ac | 2,253 | py | Python | homeassistant/components/ihc/binary_sensor.py | jasperro/core | 26d7b2164e8a971506790ae5af06f31abdf278b5 | [
"Apache-2.0"
] | 7 | 2019-02-07T14:14:12.000Z | 2019-07-28T06:56:10.000Z | homeassistant/components/ihc/binary_sensor.py | jasperro/core | 26d7b2164e8a971506790ae5af06f31abdf278b5 | [
"Apache-2.0"
] | 6 | 2021-02-08T20:54:31.000Z | 2022-03-12T00:50:43.000Z | homeassistant/components/ihc/binary_sensor.py | jasperro/core | 26d7b2164e8a971506790ae5af06f31abdf278b5 | [
"Apache-2.0"
] | 2 | 2020-04-19T13:35:24.000Z | 2020-04-19T13:35:51.000Z | """Support for IHC binary sensors."""
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.const import CONF_TYPE
from . import IHC_CONTROLLER, IHC_INFO
from .const import CONF_INVERTING
from .ihcdevice import IHCDevice
def setup_platform(hass, config, add_entities, discovery_info... | 28.884615 | 74 | 0.624057 |
3f5c9bb50fc14ea221608e07d43fdec0123aef80 | 1,009 | py | Python | script/TuneLR.py | yipeiw/parameter_server | 07cbfbf2dc727ee0787d7e66e58a1f7fd8333aff | [
"Apache-2.0"
] | null | null | null | script/TuneLR.py | yipeiw/parameter_server | 07cbfbf2dc727ee0787d7e66e58a1f7fd8333aff | [
"Apache-2.0"
] | null | null | null | script/TuneLR.py | yipeiw/parameter_server | 07cbfbf2dc727ee0787d7e66e58a1f7fd8333aff | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os.path as path
import sys
tmpDir = '../config/tmp/'
logDir = '../config/tmp/log/'
conffile = sys.argv[1]
runfile=sys.argv[2]
lr = [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0]
fout = open(runfile, 'w')
fout.write("#!/bin/bash\n\n\n")
fws = {}
confname = path.splitext(path.basename(conffil... | 22.422222 | 73 | 0.607532 |
3f5ccedf65dad52ce01efa31808cc2b63ebe8af6 | 9,770 | py | Python | pc.py | Omar8345/tic-tac-toe | e7fe6d9699bef3297227058defbb6d4ff35f10f4 | [
"MIT"
] | null | null | null | pc.py | Omar8345/tic-tac-toe | e7fe6d9699bef3297227058defbb6d4ff35f10f4 | [
"MIT"
] | null | null | null | pc.py | Omar8345/tic-tac-toe | e7fe6d9699bef3297227058defbb6d4ff35f10f4 | [
"MIT"
] | 1 | 2022-02-10T17:47:27.000Z | 2022-02-10T17:47:27.000Z | # Tic Tac Toe Game
# Original repository: (https://github.com/Omar8345/tic-tac-toe)
# Author: Omar Mostafa
# Date: 08/02/2022
# Version: 1.0
# Description: Tic Tac Toe Game made using Python Tkitner (Open Source)
# This game is a simple game that can be played with two players
# and can b... | 39.877551 | 125 | 0.523439 |
3f5d917c88eccde66a033389ff984f57d3efa801 | 2,336 | py | Python | nvtabular/utils.py | deepyaman/NVTabular | b814b5ed9866be29d3c13fd00154965a3fec7fc0 | [
"Apache-2.0"
] | null | null | null | nvtabular/utils.py | deepyaman/NVTabular | b814b5ed9866be29d3c13fd00154965a3fec7fc0 | [
"Apache-2.0"
] | null | null | null | nvtabular/utils.py | deepyaman/NVTabular | b814b5ed9866be29d3c13fd00154965a3fec7fc0 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2020, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 31.567568 | 99 | 0.675086 |
3f5e544534b4294729194a2befc9af168507a49c | 1,908 | py | Python | tests/segmentation/segmanagetest.py | j-h-m/Media-Journaling-Tool | 4ab6961e2768dc002c9bbad182f83188631f01bd | [
"BSD-3-Clause"
] | null | null | null | tests/segmentation/segmanagetest.py | j-h-m/Media-Journaling-Tool | 4ab6961e2768dc002c9bbad182f83188631f01bd | [
"BSD-3-Clause"
] | null | null | null | tests/segmentation/segmanagetest.py | j-h-m/Media-Journaling-Tool | 4ab6961e2768dc002c9bbad182f83188631f01bd | [
"BSD-3-Clause"
] | null | null | null | import unittest
from maskgen import image_wrap
import numpy
from maskgen.segmentation.segmanage import select_region,segmentation_classification,convert_color
from tests.test_support import TestSupport
if __name__ == '__main__':
unittest.main()
| 44.372093 | 109 | 0.682914 |
3f5ea42854995b843b23cfd97be8ee560fd1c66b | 6,932 | py | Python | aimacode/tests/test_text.py | juandarr/AIND-planning | f74d41657d6f3d95a3b57ec4fd6e766d894d2f0d | [
"MIT"
] | null | null | null | aimacode/tests/test_text.py | juandarr/AIND-planning | f74d41657d6f3d95a3b57ec4fd6e766d894d2f0d | [
"MIT"
] | null | null | null | aimacode/tests/test_text.py | juandarr/AIND-planning | f74d41657d6f3d95a3b57ec4fd6e766d894d2f0d | [
"MIT"
] | null | null | null | import pytest
import os
import random
from text import * # noqa
from utils import isclose, DataFile
# TODO: for .ipynb
"""
>>> P1.samples(20)
'you thought known but were insides of see in depend by us dodecahedrons just but i words are instead degrees'
>>> P2.samples(20)
'fl... | 33.326923 | 124 | 0.542268 |
3f5f2e64673d1e50e2bb1b2fb203375596490210 | 5,983 | py | Python | implementations/python3/pysatl/apdu_tool.py | sebastien-riou/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 4 | 2020-05-13T10:13:55.000Z | 2021-10-20T04:43:07.000Z | implementations/python3/pysatl/apdu_tool.py | TiempoSecure/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 4 | 2020-07-22T16:06:31.000Z | 2021-07-25T19:51:41.000Z | implementations/python3/pysatl/apdu_tool.py | TiempoSecure/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 2 | 2019-05-12T21:15:00.000Z | 2020-09-23T09:05:24.000Z | import re
import argparse
import os
import sys
import logging
import traceback
import pysatl
if __name__ == "__main__":
ApduTool(sys.argv)
| 35.194118 | 91 | 0.503594 |
3f5f46e8ad8a46b0f24a67ae6817aebda546ccdc | 11,979 | py | Python | host-software/easyhid.py | kavka1983/key | 9185c156fd40a1cab358b2464af4b27cacf71935 | [
"MIT"
] | 1 | 2020-06-14T22:31:20.000Z | 2020-06-14T22:31:20.000Z | host-software/easyhid.py | kavka1983/key | 9185c156fd40a1cab358b2464af4b27cacf71935 | [
"MIT"
] | null | null | null | host-software/easyhid.py | kavka1983/key | 9185c156fd40a1cab358b2464af4b27cacf71935 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 jem@seethis.link
# Licensed under the MIT license (http://opensource.org/licenses/MIT)
import cffi
import ctypes.util
import platform
ffi = cffi.FFI()
ffi.cdef("""
struct hid_device_info {
char *path;
unsigned short vendor_id;
unsigned short p... | 31.690476 | 105 | 0.622339 |
3f6013f8688ca16e27ef6533df61114f0ade964b | 22,620 | py | Python | rules/check_imported_dlls.py | deptofdefense/SalSA | 7ef771398e3d59597bade95d0a23540de0842e2a | [
"MIT"
] | 84 | 2018-01-07T19:43:45.000Z | 2021-12-23T14:17:44.000Z | rules/check_imported_dlls.py | deptofdefense/SalSA | 7ef771398e3d59597bade95d0a23540de0842e2a | [
"MIT"
] | 7 | 2018-04-02T20:24:28.000Z | 2019-06-07T21:48:04.000Z | rules/check_imported_dlls.py | deptofdefense/SalSA | 7ef771398e3d59597bade95d0a23540de0842e2a | [
"MIT"
] | 18 | 2017-12-26T19:44:46.000Z | 2021-09-13T12:21:02.000Z | """
Align imported dlls/functions to executable functionality.
"""
import sys
# import all supported ordinal decodings
from rules.ordinal_mappings import advapi32
from rules.ordinal_mappings import cabinet
from rules.ordinal_mappings import comctl32
from rules.ordinal_mappings import mfc42
from rules.ordinal_mappings ... | 119.052632 | 354 | 0.780858 |
3f6145c13e10fe4a1dbf8c0b4288b82e127765e5 | 4,046 | py | Python | mqttVec.py | Hamlet3000/mqttVec | 65b02446d23ce7c4583b4bf5c7cbe7a84cab0c67 | [
"CC0-1.0"
] | null | null | null | mqttVec.py | Hamlet3000/mqttVec | 65b02446d23ce7c4583b4bf5c7cbe7a84cab0c67 | [
"CC0-1.0"
] | null | null | null | mqttVec.py | Hamlet3000/mqttVec | 65b02446d23ce7c4583b4bf5c7cbe7a84cab0c67 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
import anki_vector
import paho.mqtt.client as mqtt
import time
###############################################################################
###############################################################################
######################################################################... | 31.364341 | 108 | 0.579832 |
3f6337b447bfd743f2d66c927077a80e24dcc381 | 428 | py | Python | examples/scanner_ibeacon_example.py | hbcho/beacontools1 | 82606d871c72bccb8962f50cb374595bcc2ab77d | [
"MIT"
] | null | null | null | examples/scanner_ibeacon_example.py | hbcho/beacontools1 | 82606d871c72bccb8962f50cb374595bcc2ab77d | [
"MIT"
] | null | null | null | examples/scanner_ibeacon_example.py | hbcho/beacontools1 | 82606d871c72bccb8962f50cb374595bcc2ab77d | [
"MIT"
] | null | null | null | import time
from beacontools import BeaconScanner, IBeaconFilter
# scan for all iBeacon advertisements from beacons with the specified uuid
scanner = BeaconScanner(callback,
device_filter=IBeaconFilter(uuid="e2c56db5-dffb-48d2-b060-d0f5a71096e0")
)
scanner.start()
time.sleep(10)
scanner.stop()
| 30.571429 | 76 | 0.764019 |
3f69604976a8b164013d06794b381ad086d3bb5d | 499 | py | Python | desafio61.py | rafarbop/Python | e304993a6c73eacd8fffd7c67286206516e5faea | [
"MIT"
] | null | null | null | desafio61.py | rafarbop/Python | e304993a6c73eacd8fffd7c67286206516e5faea | [
"MIT"
] | null | null | null | desafio61.py | rafarbop/Python | e304993a6c73eacd8fffd7c67286206516e5faea | [
"MIT"
] | null | null | null | # Desafio 61 Curso em Video Python
# By Rafabr
from estrutura_modelo import cabecalho, rodape
cabecalho(61, "Termos de uma Progresso Aritmtica - II")
while True:
try:
p0 = float(input('Digite o Termo inicial da PA: '))
r = float(input('Digite a razo da PA: '))
except ValueError:
print... | 18.481481 | 59 | 0.607214 |
3f69df2d4bab9abaeedc1a340100793f3dcde991 | 485 | py | Python | setup.py | leandron/steinlib | bbc0295fb1ebf8dce7d06c750db126f6240b4617 | [
"MIT"
] | 4 | 2017-04-02T14:14:32.000Z | 2021-10-12T23:22:17.000Z | setup.py | leandron/steinlib | bbc0295fb1ebf8dce7d06c750db126f6240b4617 | [
"MIT"
] | null | null | null | setup.py | leandron/steinlib | bbc0295fb1ebf8dce7d06c750db126f6240b4617 | [
"MIT"
] | null | null | null | from setuptools import setup
tests_require = [
'cov-core',
'mock',
'nose2',
]
setup(name='steinlib',
version='0.1',
description='Python bindings for Steinlib format.',
url='http://github.com/leandron/steinlib',
author='Leandro Nunes',
author_email='leandron85@... | 24.25 | 57 | 0.618557 |
3f6a18b0d4c80fcdd062def647e4e3d88b2df3b9 | 55,602 | py | Python | usdzconvert/usdStageWithFbx.py | summertriangle-dev/usdzconvert-docker | 9953845f3a83f8cc3d5380a4ccae8bc39753d550 | [
"MIT"
] | 3 | 2021-03-10T00:34:18.000Z | 2021-10-14T02:52:41.000Z | usdzconvert/usdStageWithFbx.py | summertriangle-dev/usdzconvert-docker | 9953845f3a83f8cc3d5380a4ccae8bc39753d550 | [
"MIT"
] | null | null | null | usdzconvert/usdStageWithFbx.py | summertriangle-dev/usdzconvert-docker | 9953845f3a83f8cc3d5380a4ccae8bc39753d550 | [
"MIT"
] | null | null | null | from pxr import *
import os, os.path
import numpy
import re
import usdUtils
import math
import imp
usdStageWithFbxLoaded = True
try:
imp.find_module('fbx')
import fbx
except ImportError:
usdUtils.printError("Failed to import fbx module. Please install FBX Python bindings from http://www.autodesk.com/fbx ... | 45.168156 | 176 | 0.635229 |
3f6b95561ed162423b6adee3e5e40b725abe8dde | 3,291 | py | Python | modules/ghautoknit/EmbeddedConstraint.py | fstwn/ghautokn | 5ca6d07df601d34be5a67fe6c76a942daef50a85 | [
"MIT"
] | 2 | 2021-02-19T19:55:21.000Z | 2021-10-13T23:55:56.000Z | modules/ghautoknit/EmbeddedConstraint.py | fstwn/ghautoknit | 5ca6d07df601d34be5a67fe6c76a942daef50a85 | [
"MIT"
] | null | null | null | modules/ghautoknit/EmbeddedConstraint.py | fstwn/ghautoknit | 5ca6d07df601d34be5a67fe6c76a942daef50a85 | [
"MIT"
] | null | null | null | # PYTHON STANDARD LIBRARY IMPORTS ----------------------------------------------
from __future__ import absolute_import
from __future__ import division
# LOCAL MODULE IMPORTS ---------------------------------------------------------
from ghautoknit.StoredConstraint import StoredConstraint
# ALL LIST -----------------... | 35.387097 | 80 | 0.485567 |
3f6d7159e38e2302b0b79887ec33606e37733f75 | 1,516 | py | Python | vr/server/tests/test_build.py | isabella232/vr.server | 705511f8176bda0627be1ae86a458178589ee3db | [
"MIT"
] | null | null | null | vr/server/tests/test_build.py | isabella232/vr.server | 705511f8176bda0627be1ae86a458178589ee3db | [
"MIT"
] | 3 | 2016-12-15T21:55:02.000Z | 2019-02-13T11:43:29.000Z | vr/server/tests/test_build.py | isabella232/vr.server | 705511f8176bda0627be1ae86a458178589ee3db | [
"MIT"
] | 2 | 2017-01-16T09:31:03.000Z | 2022-03-26T09:21:36.000Z | import tempfile
import pytest
from dateutil.relativedelta import relativedelta
from django.utils import timezone
from django.core.files import File
from vr.server import models
from vr.server.tests import randurl
from vr.common.utils import randchars
pytestmark = pytest.mark.usefixtures('postgresql')
pytestmark = ... | 25.694915 | 70 | 0.622691 |
3f6f2cf82e789df4f6fa6a684b85e6cb348c35e2 | 629 | py | Python | apps/api/v1/pagination.py | asmuratbek/oobamarket | 1053976a13ea84b9aabfcbbcbcffd79549ce9538 | [
"MIT"
] | null | null | null | apps/api/v1/pagination.py | asmuratbek/oobamarket | 1053976a13ea84b9aabfcbbcbcffd79549ce9538 | [
"MIT"
] | 7 | 2020-06-05T23:36:01.000Z | 2022-01-13T01:42:07.000Z | apps/api/v1/pagination.py | asmuratbek/oobamarket | 1053976a13ea84b9aabfcbbcbcffd79549ce9538 | [
"MIT"
] | null | null | null | from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination
| 24.192308 | 81 | 0.779014 |
3f715eb5609a277ea4d93cce4d190d4b920a7477 | 7,796 | py | Python | GraphOfDocs_Representation/graph_algos.py | imis-lab/book-chapter | 8260a60ec91dd29616eeed80f34bdea00fb73cd7 | [
"MIT"
] | null | null | null | GraphOfDocs_Representation/graph_algos.py | imis-lab/book-chapter | 8260a60ec91dd29616eeed80f34bdea00fb73cd7 | [
"MIT"
] | null | null | null | GraphOfDocs_Representation/graph_algos.py | imis-lab/book-chapter | 8260a60ec91dd29616eeed80f34bdea00fb73cd7 | [
"MIT"
] | null | null | null | import time
import json
import traceback
import numpy as np
from statistics import mean
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report
# Automatic cleanup of the... | 41.913978 | 124 | 0.608261 |
3f730b00ede0a815c4c62737f803ff84e093f24f | 3,124 | py | Python | Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # regression tests with gridders taking w-term into account
# some fixed parameters are given in wtermtest_template.in
from synthprogrunner import *
def analyseResult(spr, checkWeights=True):
'''
spr - synthesis program runner (to run imageStats)
throws exceptions if something is wrong, otherwise just... | 42.216216 | 142 | 0.717029 |
3f731bc8d56706afd6b8d8a2244161c707b604bd | 6,047 | py | Python | manage/fuzzytranslation.py | Acidburn0zzz/browser-update | fed7b4c52deccd582fcf8b8cca4809607bbb32cd | [
"MIT"
] | 2 | 2017-10-06T15:53:23.000Z | 2017-10-06T15:53:38.000Z | manage/fuzzytranslation.py | Acidburn0zzz/browser-update | fed7b4c52deccd582fcf8b8cca4809607bbb32cd | [
"MIT"
] | null | null | null | manage/fuzzytranslation.py | Acidburn0zzz/browser-update | fed7b4c52deccd582fcf8b8cca4809607bbb32cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 12 14:21:31 2016
@author: TH
"""
#%%
import polib
#%%
#old (translated) string
#new renamed string
pairs="""
An initiative by web designers to inform users about browser-updates
An initiative by websites to inform users to update their web browser
If you are on a comput... | 29.21256 | 197 | 0.599471 |
58ac40be7eaf9e54cb6bdb3fcb14931b75949783 | 2,401 | py | Python | scripts/test_template.py | 1466899531/auto_api_test | cb0f474394ef776d4b7710821b74065307a551b2 | [
"MIT"
] | 16 | 2021-01-21T05:07:15.000Z | 2022-02-20T06:34:28.000Z | scripts/test_template.py | liucong233/auto_api_test | 303dc2962ad9b9917cb6a31e311e4ca711f7c7bf | [
"MIT"
] | null | null | null | scripts/test_template.py | liucong233/auto_api_test | 303dc2962ad9b9917cb6a31e311e4ca711f7c7bf | [
"MIT"
] | 7 | 2021-01-21T05:07:42.000Z | 2022-01-04T03:56:25.000Z | # -*- coding:utf-8 -*-
"""
@File : test_template
@Author : Chen
@Contact : nonevxx@gmail.com
@Date : 2021/1/20 20:09
@Desc :
"""
#
import pytest
import requests
from time import sleep
from api.template_api import TemplateAPI
from tools.get_log import GetLog
from tools.read_file import read_json
import allure
#
lo... | 28.583333 | 92 | 0.634736 |
58af6add6122e05924d2e3ff9cd5a71f9446a5c7 | 5,090 | py | Python | dockerfilegenerator/generator.py | ccurcanu/aws-serverless-dockerfile-generator | cb1e272d21337074870c0b1f17c7535cd1e7c217 | [
"Apache-2.0"
] | 2 | 2019-08-05T02:24:56.000Z | 2020-04-30T22:16:00.000Z | dockerfilegenerator/generator.py | ccurcanu/aws-serverless-dockerfile-generator | cb1e272d21337074870c0b1f17c7535cd1e7c217 | [
"Apache-2.0"
] | 1 | 2020-04-11T16:34:08.000Z | 2020-04-11T19:29:26.000Z | dockerfilegenerator/generator.py | ccurcanu/aws-serverless-dockerfile-generator | cb1e272d21337074870c0b1f17c7535cd1e7c217 | [
"Apache-2.0"
] | 1 | 2019-08-05T02:24:59.000Z | 2019-08-05T02:24:59.000Z | # -*- coding: utf-8 -*-
import botocore.exceptions
import logging
import dockerfilegenerator.lib.constants as constants
import dockerfilegenerator.lib.exceptions as exceptions
import dockerfilegenerator.lib.versions as versions
import dockerfilegenerator.lib.jsonstore as jsonstore
import dockerfilegenerator.lib.s3sto... | 39.765625 | 78 | 0.662279 |
58af85873ae33fb22513395345bd12fb92d5791b | 1,179 | py | Python | ajustes_UM/tesis/main/urls.py | abelgonzalez/ajustes | f6f99aea18cfb82750805321abfc822d8a6ec5ed | [
"MIT"
] | 1 | 2015-03-04T13:04:33.000Z | 2015-03-04T13:04:33.000Z | ajustes_UM/tesis/main/urls.py | abelgonzalez/ajustes | f6f99aea18cfb82750805321abfc822d8a6ec5ed | [
"MIT"
] | null | null | null | ajustes_UM/tesis/main/urls.py | abelgonzalez/ajustes | f6f99aea18cfb82750805321abfc822d8a6ec5ed | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from main import views
urlpatterns = patterns('',
url(r'^$', views.inicio, name='inicio'),
url(r'^acerca/', views.acerca, name='acerca'),
url(r'^contacto/', views.contacto, name='contacto'),
... | 56.142857 | 116 | 0.546226 |
58b28e8645b762a35a626046be48d346a6bd215a | 15,595 | py | Python | test/test_views.py | Nemoden/Simblin | 1f97a985125023e64dfc6f4db6292cf3a2b904c9 | [
"BSD-3-Clause"
] | 53 | 2015-02-01T14:06:48.000Z | 2022-01-02T15:46:00.000Z | test/test_views.py | Aaron1992/Simblin | 1f97a985125023e64dfc6f4db6292cf3a2b904c9 | [
"BSD-3-Clause"
] | null | null | null | test/test_views.py | Aaron1992/Simblin | 1f97a985125023e64dfc6f4db6292cf3a2b904c9 | [
"BSD-3-Clause"
] | 23 | 2015-01-04T08:11:27.000Z | 2019-11-24T13:18:25.000Z | # -*- coding: utf-8 -*-
"""
Simblin Test Views
~~~~~~~~~~~~~~~~~~
Test the different views of the blogging application.
:copyright: (c) 2010 by Eugen Kiss.
:license: BSD, see LICENSE for more details.
"""
from __future__ import with_statement
import datetime
import flask
from simblin.extensions i... | 35.93318 | 81 | 0.58833 |
58b31cded44ccfc6677efd1c2715c62d51feaad9 | 14,174 | py | Python | freeclimb/models/message_result.py | FreeClimbAPI/python-sdk | 1ec89eddc0069a39989579552b979a9d21418117 | [
"MIT"
] | null | null | null | freeclimb/models/message_result.py | FreeClimbAPI/python-sdk | 1ec89eddc0069a39989579552b979a9d21418117 | [
"MIT"
] | 6 | 2020-03-03T20:14:26.000Z | 2021-12-06T22:11:15.000Z | freeclimb/models/message_result.py | FreeClimbAPI/python-sdk | 1ec89eddc0069a39989579552b979a9d21418117 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
FreeClimb API
FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site teleph... | 31.851685 | 667 | 0.605686 |
58b39d610eae8b36afa5ec0f450ede4efe4c78d4 | 342 | py | Python | blog/views.py | artkapl/django-blog-project | 16494465042dd6846f3a2cd560c0cfe7737cc8e0 | [
"MIT"
] | null | null | null | blog/views.py | artkapl/django-blog-project | 16494465042dd6846f3a2cd560c0cfe7737cc8e0 | [
"MIT"
] | null | null | null | blog/views.py | artkapl/django-blog-project | 16494465042dd6846f3a2cd560c0cfe7737cc8e0 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Post
| 24.428571 | 95 | 0.701754 |
58b410177d19ca32957d1f156f14c3e7bd5b9089 | 718 | bzl | Python | az/private/common/utils.bzl | jullianoacqio/rules_microsoft_azure | 85f8d633db46c7c6aefd5c9c1856aa57473d10fb | [
"Apache-2.0"
] | 4 | 2020-08-05T18:21:43.000Z | 2020-11-10T19:42:48.000Z | terraform/private/common/utils.bzl | acqio/rules_hashicorp_terraform | add89d62abf3739dbd8908a43df366511027e4fc | [
"Apache-2.0"
] | 3 | 2020-09-01T14:35:18.000Z | 2021-03-29T17:27:12.000Z | az/private/common/utils.bzl | acqio/rules_microsoft_azure | 85f8d633db46c7c6aefd5c9c1856aa57473d10fb | [
"Apache-2.0"
] | 7 | 2020-08-04T20:14:10.000Z | 2021-02-18T17:10:55.000Z |
utils = struct(
resolve_stamp = _resolve_stamp,
check_stamping_format = _check_stamping_format,
)
| 28.72 | 62 | 0.628134 |
58b4a5438c1537dcf99f56657476da7aa2cae99e | 4,166 | py | Python | hue.py | desheffer/hue-adapter | 724e296c8dd52302c0380a58f4390fc3059705dc | [
"MIT"
] | null | null | null | hue.py | desheffer/hue-adapter | 724e296c8dd52302c0380a58f4390fc3059705dc | [
"MIT"
] | null | null | null | hue.py | desheffer/hue-adapter | 724e296c8dd52302c0380a58f4390fc3059705dc | [
"MIT"
] | null | null | null | from config import Config
import flask
import json
import os
from ssdp import SSDP
from threading import Thread
import urllib3
config = None
config_file_paths = [
os.path.dirname(os.path.realpath(__file__)) + "/config/default.cfg.local",
"/etc/hue-adapter/default.cfg.local",
]
for config_file_path in config_... | 26.877419 | 87 | 0.520163 |
58b676c8df734180c643826f2bc368889a0790b4 | 2,820 | py | Python | safe/geokdbush/kdbushTest.py | s-a-f-e/backend | 6018f51466df9abd58f25729d91856842eee9509 | [
"MIT"
] | 1 | 2019-05-06T19:40:43.000Z | 2019-05-06T19:40:43.000Z | safe/geokdbush/kdbushTest.py | s-a-f-e/backend | 6018f51466df9abd58f25729d91856842eee9509 | [
"MIT"
] | 9 | 2019-12-04T22:57:46.000Z | 2022-02-10T07:15:11.000Z | safe/geokdbush/kdbushTest.py | s-a-f-e/backend | 6018f51466df9abd58f25729d91856842eee9509 | [
"MIT"
] | 3 | 2019-05-01T20:41:33.000Z | 2019-10-03T20:57:00.000Z | from kdbush import KDBush
# test data
points = [
[54,1],[97,21],[65,35],[33,54],[95,39],[54,3],[53,54],[84,72],[33,34],[43,15],[52,83],[81,23],[1,61],[38,74],
[11,91],[24,56],[90,31],[25,57],[46,61],[29,69],[49,60],[4,98],[71,15],[60,25],[38,84],[52,38],[94,51],[13,25],
[77,73],[88,87],[6,27],[58,22],[53,28... | 46.229508 | 156 | 0.537234 |
58b7a94417cb2c171bbf2548469ad555f0dc6eca | 6,662 | py | Python | buckit/compiler.py | martarozek/buckit | 343cc5a5964c1d43902b6a77868652adaefa0caa | [
"BSD-3-Clause"
] | null | null | null | buckit/compiler.py | martarozek/buckit | 343cc5a5964c1d43902b6a77868652adaefa0caa | [
"BSD-3-Clause"
] | null | null | null | buckit/compiler.py | martarozek/buckit | 343cc5a5964c1d43902b6a77868652adaefa0caa | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
impo... | 25.427481 | 80 | 0.564545 |
58b7d71f96b456407bfe5eac83c75c43ba5fd90a | 8,002 | py | Python | test/python/.dbwebb/test/suite.d/kmom06/analyzer/test_analyzer.py | AndreasArne/python-examination | a24297f3f73b181e64e744d0b8b52d88d03e844b | [
"MIT"
] | null | null | null | test/python/.dbwebb/test/suite.d/kmom06/analyzer/test_analyzer.py | AndreasArne/python-examination | a24297f3f73b181e64e744d0b8b52d88d03e844b | [
"MIT"
] | 14 | 2021-02-09T10:40:43.000Z | 2022-02-18T12:24:39.000Z | test/python/.dbwebb/test/suite.d/kmom06/analyzer/test_analyzer.py | AndreasArne/python-examination | a24297f3f73b181e64e744d0b8b52d88d03e844b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Contains testcases for the individual examination.
"""
import unittest
from io import StringIO
import os
import sys
from unittest.mock import patch
from examiner import ExamTestCase, ExamTestResult, tags
from examiner import import_module, find_path_to_assignment
FILE_DIR = os.path.dirname(... | 28.784173 | 86 | 0.530242 |
58b8667325936944d69237ad194f47d738bc7912 | 831 | py | Python | olha_boca/infratores/admin.py | Perceu/olha-boca | 022ff941d6bd20bb79bd1e66cd293dd2f59bf55b | [
"MIT"
] | null | null | null | olha_boca/infratores/admin.py | Perceu/olha-boca | 022ff941d6bd20bb79bd1e66cd293dd2f59bf55b | [
"MIT"
] | null | null | null | olha_boca/infratores/admin.py | Perceu/olha-boca | 022ff941d6bd20bb79bd1e66cd293dd2f59bf55b | [
"MIT"
] | 1 | 2022-02-20T18:43:45.000Z | 2022-02-20T18:43:45.000Z | from django.contrib import admin
from olha_boca.infratores.models import Infratores
# Register your models here.
admin.site.register(Infratores, InfratoresAdmin) | 33.24 | 84 | 0.688327 |
58b8a93616ab18e3bdc1bf278f2e0062041167f0 | 6,241 | py | Python | model.py | ogugugugugua/Cycle-Gan-Pytorch-Implementation | 119c7c8b3061a14f0ca988672458351d00f144aa | [
"MIT"
] | null | null | null | model.py | ogugugugugua/Cycle-Gan-Pytorch-Implementation | 119c7c8b3061a14f0ca988672458351d00f144aa | [
"MIT"
] | null | null | null | model.py | ogugugugugua/Cycle-Gan-Pytorch-Implementation | 119c7c8b3061a14f0ca988672458351d00f144aa | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
import functools
import torch.nn as nn
from torch.nn import init
import torch.functional as F
from torch.autograd import Variable
print('ok')
print ('kkk')
# class te(nn.Module):
# def... | 36.497076 | 94 | 0.552155 |
58b91dc41ea5155b61915a8cc460140b8ef148b0 | 15,872 | py | Python | hansberger/analysis/migrations/0001_initial.py | 097475/hansberger | bb4ba1cbc410e7242a12f841e447b4d68f4298f6 | [
"MIT"
] | 1 | 2019-04-03T13:44:38.000Z | 2019-04-03T13:44:38.000Z | hansberger/analysis/migrations/0001_initial.py | sebastianoverdolini/hansberger | bb4ba1cbc410e7242a12f841e447b4d68f4298f6 | [
"MIT"
] | 4 | 2019-05-22T09:43:09.000Z | 2019-05-29T12:22:00.000Z | hansberger/analysis/migrations/0001_initial.py | 097475/hansberger | bb4ba1cbc410e7242a12f841e447b4d68f4298f6 | [
"MIT"
] | 2 | 2019-04-17T09:23:32.000Z | 2019-05-03T10:38:16.000Z | # Generated by Django 2.0.13 on 2019-06-27 17:04
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
| 99.823899 | 951 | 0.599609 |
58b94a18dc5fb864b68af5b8440bfcf6bdf51d21 | 1,589 | py | Python | src/DOMObjects/schema.py | villagertech/DOMObjects | 6a86caca5160d2488cc19823e71e9e7ba99a4a0c | [
"MIT"
] | null | null | null | src/DOMObjects/schema.py | villagertech/DOMObjects | 6a86caca5160d2488cc19823e71e9e7ba99a4a0c | [
"MIT"
] | null | null | null | src/DOMObjects/schema.py | villagertech/DOMObjects | 6a86caca5160d2488cc19823e71e9e7ba99a4a0c | [
"MIT"
] | null | null | null | __author__ = "Rob MacKinnon <rome@villagertech.com>"
__package__ = "DOMObjects"
__name__ = "DOMObjects.schema"
__license__ = "MIT"
| 33.104167 | 71 | 0.574575 |
58ba74567e6fec0a65ad5136fbd9ca609c0ebda8 | 416 | py | Python | Python/6 - kyu/6 kyu - Detect Pangram.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | Python/6 - kyu/6 kyu - Detect Pangram.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | Python/6 - kyu/6 kyu - Detect Pangram.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/detect-pangram/train/python
# My solution
import string
# ...
import string
# ...
import string
| 23.111111 | 80 | 0.658654 |
58bb3b75ffbc07bac010c5a20ea7da7ddc296fd6 | 3,709 | py | Python | L1Trigger/L1TCalorimeter/python/customiseReEmulateCaloLayer2.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TCalorimeter/python/customiseReEmulateCaloLayer2.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TCalorimeter/python/customiseReEmulateCaloLayer2.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null |
import FWCore.ParameterSet.Config as cms
| 44.686747 | 117 | 0.758425 |
58bb3bdee68016c8f1865176bbbb0531b4055727 | 855 | py | Python | lintcode/1375.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/1375.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/1375.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
1375. Substring With At Least K Distinct Characters
"""
| 28.5 | 91 | 0.512281 |
58bb7d04b96141208c9caee423f5f2553e1e7354 | 390 | py | Python | ex29_half.py | youknowone/learn-python3-thw-code-ko | 3b7fccaf3eed7427e437004cfe3c4908823f5e41 | [
"MIT"
] | null | null | null | ex29_half.py | youknowone/learn-python3-thw-code-ko | 3b7fccaf3eed7427e437004cfe3c4908823f5e41 | [
"MIT"
] | null | null | null | ex29_half.py | youknowone/learn-python3-thw-code-ko | 3b7fccaf3eed7427e437004cfe3c4908823f5e41 | [
"MIT"
] | null | null | null | people = 20
cats = 30
dogs = 15
if people < cats:
print(" ! !")
if people > cats:
print(" ! !")
if people < dogs:
print(" !")
if people > dogs:
print(" !")
dogs += 5
if people >= dogs:
print(" ")
if people <= dogs:
print(" .")
if people == dogs:
print(" .")
| 13 | 36 | 0.584615 |
58bbe52ab96a55b367459bffd53e878ab429b0e4 | 1,019 | py | Python | env/lib/python3.6/site-packages/traits/util/tests/test_import_symbol.py | Raniac/NEURO-LEARN | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | [
"Apache-2.0"
] | 8 | 2019-05-29T09:38:30.000Z | 2021-01-20T03:36:59.000Z | env/lib/python3.6/site-packages/traits/util/tests/test_import_symbol.py | Raniac/neurolearn_dev | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | [
"Apache-2.0"
] | 12 | 2021-03-09T03:01:16.000Z | 2022-03-11T23:59:36.000Z | env/lib/python3.6/site-packages/traits/util/tests/test_import_symbol.py | Raniac/NEURO-LEARN | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | [
"Apache-2.0"
] | 1 | 2020-07-17T12:49:49.000Z | 2020-07-17T12:49:49.000Z | """ Tests for the import manager. """
from traits.util.api import import_symbol
from traits.testing.unittest_tools import unittest
if __name__ == "__main__":
unittest.main()
#### EOF ######################################################################
| 22.644444 | 79 | 0.614328 |
58bc5c4ebc0423782cb9f4ff3dd73ea7e914bd8c | 7,692 | py | Python | cubecode/二阶段算法合集/python版/RubiksCube-TwophaseSolver-master/client_gui.py | YuYuCong/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | 11 | 2018-07-28T03:20:26.000Z | 2022-02-18T07:36:35.000Z | cubecode/二阶段算法合集/python版/RubiksCube-TwophaseSolver-master/client_gui.py | technicianliu/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | null | null | null | cubecode/二阶段算法合集/python版/RubiksCube-TwophaseSolver-master/client_gui.py | technicianliu/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | 9 | 2018-07-28T03:20:29.000Z | 2021-05-09T05:54:30.000Z | # ################ A simple graphical interface which communicates with the server #####################################
from tkinter import *
import socket
import face
import cubie
# ################################## some global variables and constants ###############################################
DEFAULT_HOST =... | 40.484211 | 120 | 0.518201 |
58bc76fe979d8a17599711a8021f4425b357315a | 1,159 | py | Python | bootcamp/wiki/core/compat.py | basiltiger/easy_bootcamp | 875b9ed287f1a7824bb38f142dbe2f3b1ce54389 | [
"MIT"
] | null | null | null | bootcamp/wiki/core/compat.py | basiltiger/easy_bootcamp | 875b9ed287f1a7824bb38f142dbe2f3b1ce54389 | [
"MIT"
] | null | null | null | bootcamp/wiki/core/compat.py | basiltiger/easy_bootcamp | 875b9ed287f1a7824bb38f142dbe2f3b1ce54389 | [
"MIT"
] | null | null | null | """Abstraction layer to deal with Django related changes in order to keep
compatibility with several Django versions simultaneously."""
from __future__ import unicode_literals
from django.conf import settings as django_settings
USER_MODEL = getattr(django_settings, 'AUTH_USER_MODEL', 'auth.User')
# Django 1.11 Widg... | 36.21875 | 84 | 0.734254 |
58bd378d11da26df2129a68edbd47f10e2375dc5 | 10,649 | py | Python | ethereum.py/ethereum/clients/ethereum.py | dixonwhitmire/connect-clients | 09bf6f53f0a4fc923d1fb18f75ce86521880517c | [
"Apache-2.0"
] | null | null | null | ethereum.py/ethereum/clients/ethereum.py | dixonwhitmire/connect-clients | 09bf6f53f0a4fc923d1fb18f75ce86521880517c | [
"Apache-2.0"
] | 6 | 2021-07-13T19:58:58.000Z | 2021-11-02T21:25:14.000Z | ethereum.py/ethereum/clients/ethereum.py | dixonwhitmire/connect-clients | 09bf6f53f0a4fc923d1fb18f75ce86521880517c | [
"Apache-2.0"
] | 1 | 2021-07-13T19:22:04.000Z | 2021-07-13T19:22:04.000Z | """
ethereum.py
ethereum.py contains an EthereumClient class that provides functions for interacting
with the Coverage.sol solidity contract on an Ethereum blockchain network.
"""
import asyncio
import datetime
import json
import logging
import os
from ethereum.clients.nats import get_nats_client
from ethereum.config ... | 42.426295 | 137 | 0.582966 |
58bd44d4180b36c4fc8b719cc1462f1b22fa94a6 | 1,759 | py | Python | cli/actions/mc_combination_action.py | daneshvar-amrollahi/polar | b72254e1a8354e6a10135cd3990b8edfda02559e | [
"MIT"
] | 1 | 2021-11-14T05:52:21.000Z | 2021-11-14T05:52:21.000Z | cli/actions/mc_combination_action.py | daneshvar-amrollahi/polar | b72254e1a8354e6a10135cd3990b8edfda02559e | [
"MIT"
] | null | null | null | cli/actions/mc_combination_action.py | daneshvar-amrollahi/polar | b72254e1a8354e6a10135cd3990b8edfda02559e | [
"MIT"
] | null | null | null | from argparse import Namespace
from .action import Action
from symengine.lib.symengine_wrapper import sympify
from termcolor import colored
from program.mc_comb_finder import MCCombFinder
from cli.common import prepare_program
| 37.425532 | 114 | 0.637862 |
58c073b6ae4e5dbeb4eb910c743f8e1c8773b328 | 494 | py | Python | docker/gunicorn.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | docker/gunicorn.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | docker/gunicorn.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | import gunicorn
accesslog = "-"
errorlog = "-"
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" "%({X-Forwarded-For}i)s"'
capture_output = True
forwarded_allow_ips = "*"
secure_scheme_headers = {"X-CLOUDFRONT": "yes"}
workers = 2
worker_class = "gthread"
worker_connections = 5
bind = ":... | 27.444444 | 106 | 0.690283 |
58c135e6998a8525b0faabf5c07d8105ddf708e8 | 1,596 | py | Python | Lista 2/Questao_1.py | flaviomelo10/Python-para-PLN | 845da043c2618f3aace655cf065fca3d866342d5 | [
"MIT"
] | null | null | null | Lista 2/Questao_1.py | flaviomelo10/Python-para-PLN | 845da043c2618f3aace655cf065fca3d866342d5 | [
"MIT"
] | null | null | null | Lista 2/Questao_1.py | flaviomelo10/Python-para-PLN | 845da043c2618f3aace655cf065fca3d866342d5 | [
"MIT"
] | null | null | null | # -- encoding:utf-8 -- #
'''
Crie uma varivel com a string instituto de cincias matemticas e de computao e faa:
a. Concatene (adicione) uma outra string chamada usp
b. Concatene (adicione) uma outra informao: 2021
c. Verifique o tamanho da nova string (com as informaes adicionadas das questes a e b), com referncia a c... | 24.181818 | 155 | 0.734962 |
58c1cf2e7948459916f7782bc8f6b76e361226be | 753 | py | Python | breadcrumbs/templatetags/breadcrumbs_tags.py | LinuxOSsk/Shakal-NG | c4091c7972cffd86f64aa9f9a058d2907a56e5eb | [
"MIT"
] | 10 | 2016-02-06T15:40:30.000Z | 2018-09-27T15:15:13.000Z | breadcrumbs/templatetags/breadcrumbs_tags.py | LinuxOSsk/Shakal-NG | c4091c7972cffd86f64aa9f9a058d2907a56e5eb | [
"MIT"
] | 94 | 2016-02-04T18:39:36.000Z | 2022-01-20T05:25:00.000Z | breadcrumbs/templatetags/breadcrumbs_tags.py | LinuxOSsk/Shakal-NG | c4091c7972cffd86f64aa9f9a058d2907a56e5eb | [
"MIT"
] | 8 | 2016-05-10T20:29:53.000Z | 2021-02-07T00:50:31.000Z | # -*- coding: utf-8 -*-
from django.shortcuts import resolve_url
from django.template.loader import render_to_string
from django_jinja import library
from jinja2 import contextfunction
| 25.1 | 61 | 0.755644 |
58c23fc6ab7f8d080ab7dfae6e27ec6257ea2869 | 1,334 | py | Python | contrib/opencensus-ext-datadog/opencensus/ext/datadog/transport.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 650 | 2017-07-09T02:08:10.000Z | 2022-03-22T20:39:54.000Z | contrib/opencensus-ext-datadog/opencensus/ext/datadog/transport.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 735 | 2017-07-26T01:15:16.000Z | 2022-03-29T20:17:20.000Z | contrib/opencensus-ext-datadog/opencensus/ext/datadog/transport.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 256 | 2017-07-24T18:29:15.000Z | 2022-03-15T15:33:03.000Z | import platform
import requests
| 28.382979 | 83 | 0.595202 |
58c4071d4471ff72fd95738a79b453160bfc2e4b | 252 | py | Python | credsweeper/file_handler/analysis_target.py | ARKAD97/CredSweeper | 0f613cded13d6c28c19c57eac54dd245b2c318ea | [
"MIT"
] | null | null | null | credsweeper/file_handler/analysis_target.py | ARKAD97/CredSweeper | 0f613cded13d6c28c19c57eac54dd245b2c318ea | [
"MIT"
] | null | null | null | credsweeper/file_handler/analysis_target.py | ARKAD97/CredSweeper | 0f613cded13d6c28c19c57eac54dd245b2c318ea | [
"MIT"
] | null | null | null | from typing import List
| 25.2 | 83 | 0.650794 |
58c4179e5713c05abfe6169f74df8cd9ca6987a4 | 5,558 | py | Python | model/vgg_deeplab.py | ireina7/zero-shot-segmentation | 870d08ad7ea3965f006d0eb44667f6ecd87ef205 | [
"MIT"
] | null | null | null | model/vgg_deeplab.py | ireina7/zero-shot-segmentation | 870d08ad7ea3965f006d0eb44667f6ecd87ef205 | [
"MIT"
] | null | null | null | model/vgg_deeplab.py | ireina7/zero-shot-segmentation | 870d08ad7ea3965f006d0eb44667f6ecd87ef205 | [
"MIT"
] | null | null | null | import torchvision
import torch
import torch.nn as nn
import torch.nn.functional as F
if __name__ == "__main__":
net = Vgg_Deeplab(3, 10)
in_ten = torch.randn(1, 3, 224, 224)
out = net(in_ten)
print(net)
print(out.size())
in_ten = torch.randn(1, 3, 64, 64)
mod = nn.Conv2d(3,
... | 35.858065 | 84 | 0.526268 |
58c5f8a4b5b023272ffe37f64fa23b186bdc1cd0 | 510 | py | Python | web/app.py | erberlin/themepark-times-API | 0b6a44224c3d5e1f98399ac30e96e35bad38849e | [
"MIT"
] | 7 | 2019-04-19T16:32:24.000Z | 2019-07-10T12:41:50.000Z | web/app.py | erberlin/themepark-times-API | 0b6a44224c3d5e1f98399ac30e96e35bad38849e | [
"MIT"
] | null | null | null | web/app.py | erberlin/themepark-times-API | 0b6a44224c3d5e1f98399ac30e96e35bad38849e | [
"MIT"
] | 1 | 2019-07-10T04:36:43.000Z | 2019-07-10T04:36:43.000Z | # -*- coding: utf-8 -*-
"""
This module defines a connexion app object and configures the API
endpoints based the swagger.yml configuration file.
copyright: 2019 by Erik R Berlin.
license: MIT, see LICENSE for more details.
"""
import connexion
app = connexion.App(__name__, specification_dir="./")
app.app.url_map.... | 25.5 | 86 | 0.731373 |
58c6d6c03c23a334c302f4903855ceb65421ce9b | 2,341 | py | Python | CLIMATExScience/air-pollution-index/data-visualization/pollutant-freq.py | MY-Climate-Observatory/myco-data | 5203fa63c7ce609bbc9bbc4186f55da78befdc50 | [
"CC-BY-4.0"
] | null | null | null | CLIMATExScience/air-pollution-index/data-visualization/pollutant-freq.py | MY-Climate-Observatory/myco-data | 5203fa63c7ce609bbc9bbc4186f55da78befdc50 | [
"CC-BY-4.0"
] | null | null | null | CLIMATExScience/air-pollution-index/data-visualization/pollutant-freq.py | MY-Climate-Observatory/myco-data | 5203fa63c7ce609bbc9bbc4186f55da78befdc50 | [
"CC-BY-4.0"
] | 1 | 2021-12-16T04:56:09.000Z | 2021-12-16T04:56:09.000Z | # -*- coding: utf-8 -*-
"""
17 June 2020
Author: Xiandi Ooi
Visualizing the types of pollutants.
"""
import pandas as pd
from plotly.offline import plot
import plotly.graph_objects as go
# Get the file from us
df = pd.read_csv(https://www.dropbox.com/s/u0ymg0ufne0an60/api-20200713.csv?dl=1", sep = ";")
# Make the ... | 32.971831 | 101 | 0.612986 |
58c6e236acba1419c8019e6e9d0019c26bbbfc7f | 3,977 | py | Python | tests/bs3/test_block_fields.py | rpkilby/django-template-forms | 5099d87d661a6a313df49fa484afd94f145e65bc | [
"BSD-3-Clause"
] | 1 | 2021-01-29T11:53:32.000Z | 2021-01-29T11:53:32.000Z | tests/bs3/test_block_fields.py | rpkilby/django-template-forms | 5099d87d661a6a313df49fa484afd94f145e65bc | [
"BSD-3-Clause"
] | 5 | 2017-11-29T11:01:56.000Z | 2018-02-05T23:34:08.000Z | tests/bs3/test_block_fields.py | rpkilby/django-template-forms | 5099d87d661a6a313df49fa484afd94f145e65bc | [
"BSD-3-Clause"
] | null | null | null |
from django import forms
from django.test import TestCase
from template_forms import bs3
| 30.829457 | 103 | 0.538094 |
58c773feba3d980c07a404541fff29ea0e07df10 | 19,463 | py | Python | bzt/modules/java.py | 3dgiordano/taurus | 77cb31b6f0e5c27545094f600ac2b595fa76d992 | [
"Apache-2.0"
] | 1 | 2018-02-17T16:00:34.000Z | 2018-02-17T16:00:34.000Z | bzt/modules/java.py | 3dgiordano/taurus | 77cb31b6f0e5c27545094f600ac2b595fa76d992 | [
"Apache-2.0"
] | 5 | 2018-03-10T20:50:24.000Z | 2021-08-20T15:07:32.000Z | bzt/modules/java.py | 3dgiordano/taurus | 77cb31b6f0e5c27545094f600ac2b595fa76d992 | [
"Apache-2.0"
] | 1 | 2018-05-04T23:06:15.000Z | 2018-05-04T23:06:15.000Z | """
Copyright 2017 BlazeMeter Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 41.946121 | 121 | 0.640138 |
58c8432548a967e56cf908c27cbcc2cdbca067b8 | 1,434 | py | Python | various_modules/interface_segregation_principle.py | Neykah/design_patterns_python | 6f801fc4fc60f2d34002e4fe435feb6111a2cd23 | [
"MIT"
] | null | null | null | various_modules/interface_segregation_principle.py | Neykah/design_patterns_python | 6f801fc4fc60f2d34002e4fe435feb6111a2cd23 | [
"MIT"
] | null | null | null | various_modules/interface_segregation_principle.py | Neykah/design_patterns_python | 6f801fc4fc60f2d34002e4fe435feb6111a2cd23 | [
"MIT"
] | null | null | null | """
Maybe not so relevant in Python due to the possibility to use multiple inheritance...
"""
from abc import ABC, abstractmethod
if __name__ == "__main__":
amazon = Amazon()
dropbox = Dropbox()
amazon.get_file("Baba")
dropbox.store_file("Baba")
| 22.40625 | 85 | 0.642259 |
58c8441bd96dbfec3988f61c1477017eb7ba3344 | 3,536 | py | Python | SCSCons/Variables/PackageVariable.py | Relintai/pandemonium_engine | 3de05db75a396b497f145411f71eb363572b38ae | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | 1,403 | 2017-11-23T14:24:01.000Z | 2022-03-30T20:59:39.000Z | nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Variables/PackageVariable.py | lps1333/Nuitka | 02e8d59a275cd7fe482cbc8100e753ff5abe39d7 | [
"Apache-2.0"
] | 3,708 | 2017-11-27T13:47:12.000Z | 2022-03-29T17:21:17.000Z | nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Variables/PackageVariable.py | lps1333/Nuitka | 02e8d59a275cd7fe482cbc8100e753ff5abe39d7 | [
"Apache-2.0"
] | 281 | 2017-12-01T23:48:38.000Z | 2022-03-31T15:25:44.000Z | # MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, ... | 32.740741 | 101 | 0.669683 |
58c98a83a2ec15c194e9ea24edc51018cb47644a | 8,351 | py | Python | tests/test_protocol.py | kwikiel/edgedb | dac3f0c408bcf3fe9159b7f844d0186c54aaa3fd | [
"Apache-2.0"
] | null | null | null | tests/test_protocol.py | kwikiel/edgedb | dac3f0c408bcf3fe9159b7f844d0186c54aaa3fd | [
"Apache-2.0"
] | null | null | null | tests/test_protocol.py | kwikiel/edgedb | dac3f0c408bcf3fe9159b7f844d0186c54aaa3fd | [
"Apache-2.0"
] | null | null | null | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2020-present MagicStack Inc. and the EdgeDB authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | 33.138889 | 79 | 0.554305 |
58cc1d434d0ca910c890148d1eb3817d02e4f5af | 278 | py | Python | 210125/homework_re_3.py | shadowsmain/pyton-adv | 9562097b2d34c1b286c13cf0930fa06079532a67 | [
"MIT"
] | null | null | null | 210125/homework_re_3.py | shadowsmain/pyton-adv | 9562097b2d34c1b286c13cf0930fa06079532a67 | [
"MIT"
] | null | null | null | 210125/homework_re_3.py | shadowsmain/pyton-adv | 9562097b2d34c1b286c13cf0930fa06079532a67 | [
"MIT"
] | null | null | null | import re
RE_NUMBER_VALIDATOR = re.compile(r'^\d+[.,]\d+$')
assert number_is_valid('1.32')
assert number_is_valid('1,32')
assert not number_is_valid('asdasd1234')
assert not number_is_valid('22,a44') | 21.384615 | 49 | 0.755396 |
58cc767b16ca728bd586a1ff7e220380c8ce5e1a | 3,529 | py | Python | shp_code/prec_reformat.py | anahm/inferring-population-preferences | 1eec9c6966e65c615f3cf5bd769ab121369b926d | [
"Unlicense"
] | 4 | 2016-10-29T12:10:48.000Z | 2016-11-06T02:25:09.000Z | shp_code/prec_reformat.py | anahm/inferring-population-preferences | 1eec9c6966e65c615f3cf5bd769ab121369b926d | [
"Unlicense"
] | null | null | null | shp_code/prec_reformat.py | anahm/inferring-population-preferences | 1eec9c6966e65c615f3cf5bd769ab121369b926d | [
"Unlicense"
] | null | null | null | """
prec_reformat.py
Taking state data and having each line be a precinct's voting results and candidate
cf-scores (rather than each line be each candidate per precinct.
| prec_id | cf_score_0 | num_votes_0 | cf_score_1 | num_votes_1 |
"""
import math
import numpy as np
import pandas as pd
from prec_cd import prec_... | 26.140741 | 83 | 0.616322 |
58ce3480a9b43387f9f12525806c69631b6a2afa | 1,668 | py | Python | scripts/make_fasta.py | orionzhou/snk-rnaseq | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | [
"MIT"
] | null | null | null | scripts/make_fasta.py | orionzhou/snk-rnaseq | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | [
"MIT"
] | null | null | null | scripts/make_fasta.py | orionzhou/snk-rnaseq | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | [
"MIT"
] | null | null | null | from snakemake import shell
input, output, params, threads, w, config = snakemake.input, snakemake.output, snakemake.params, snakemake.threads, snakemake.wildcards, snakemake.config
genome = w.genome
params.hybrid = config['x'][genome]['hybrid']
opt = params.opt
shell("""
rm -rf {output.fna}* {output.fai}*
rm... | 32.076923 | 153 | 0.631894 |
58ceaafc2d2819124d87eef37b783e73dcf0c336 | 2,358 | py | Python | HanderCode/aidaiwangApp/aidaiwangApp/Login_aidaiwangApp.py | mocne/PycharmProjects | b009e530f4f01e5b1826bbe2364d86b65bcd66e3 | [
"MIT"
] | null | null | null | HanderCode/aidaiwangApp/aidaiwangApp/Login_aidaiwangApp.py | mocne/PycharmProjects | b009e530f4f01e5b1826bbe2364d86b65bcd66e3 | [
"MIT"
] | null | null | null | HanderCode/aidaiwangApp/aidaiwangApp/Login_aidaiwangApp.py | mocne/PycharmProjects | b009e530f4f01e5b1826bbe2364d86b65bcd66e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import xlrd
import Register_aidaiwangApp
import LogOut_aidiawangApp
| 33.685714 | 98 | 0.636556 |
58cf4798257428d881df3e8a39b178b627d7c8dd | 389 | py | Python | Python/Learning/Language/arg_ex.py | prynix/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 2 | 2017-03-14T16:02:08.000Z | 2017-05-02T13:48:18.000Z | Python/Learning/Language/arg_ex.py | CajetanP/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 4 | 2021-05-20T21:10:13.000Z | 2022-02-26T09:50:19.000Z | Python/Learning/Language/arg_ex.py | CajetanP/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 1 | 2021-06-18T01:31:24.000Z | 2021-06-18T01:31:24.000Z | from sys import argv
script, user_name = argv
prompt = '>'
print(user_name, script)
print("Do you like me " + user_name + "?")
likes = input(prompt)
print("Where do you live " + user_name + "?")
lives = input(prompt)
print("""
So you said {:s} about liking me.
You live in {:s}.
""".format(likes, lives))
print("Scr... | 16.208333 | 45 | 0.62982 |
58cf698a07fcbc7df1f0d9ad44c0aa4f953a79ab | 2,565 | py | Python | tests/functional/test_uploads.py | jounile/nollanet | 7bea20934d3f5e09658a9d31c3b05c15416398a0 | [
"MIT"
] | 3 | 2019-10-13T08:37:13.000Z | 2020-02-16T12:24:11.000Z | tests/functional/test_uploads.py | jounile/nollanet | 7bea20934d3f5e09658a9d31c3b05c15416398a0 | [
"MIT"
] | 5 | 2019-11-13T15:56:52.000Z | 2021-04-30T20:58:19.000Z | tests/functional/test_uploads.py | jounile/nollanet | 7bea20934d3f5e09658a9d31c3b05c15416398a0 | [
"MIT"
] | 1 | 2020-04-08T21:09:52.000Z | 2020-04-08T21:09:52.000Z | import io
import pytest
from requests import get
from urllib.parse import urljoin
def test_my_uploads_page(wait_for_api, login_user):
"""
GIVEN a user has logged in (login_user)
WHEN the '/my/uploads' page is navigated to (GET)
THEN check the response is valid and page title is correct
"""
requ... | 40.078125 | 109 | 0.71384 |
58cfe77be2b1a529ec5b49496f3549cf64c84e22 | 1,107 | py | Python | plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 576aab4ae266e37ba80da23f82fe9ed08b9894e4 | [
"BSD-3-Clause"
] | 3 | 2015-04-04T03:08:52.000Z | 2021-01-09T00:09:25.000Z | plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 576aab4ae266e37ba80da23f82fe9ed08b9894e4 | [
"BSD-3-Clause"
] | null | null | null | plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 576aab4ae266e37ba80da23f82fe9ed08b9894e4 | [
"BSD-3-Clause"
] | 4 | 2015-04-04T03:08:57.000Z | 2021-10-03T14:59:23.000Z | #!/usr/bin/env python
import sys
from shotgun import *
try:
if len(sys.argv) > 1:
sg = Shotgun(sys.argv[1])
else:
sg = Shotgun()
#################################################################
# Find CustomEntity01 entities
#######################################################... | 31.628571 | 79 | 0.443541 |
58d09df8656249313c3aee99521da7185757d936 | 24,955 | py | Python | word2vec_np/utils/data.py | mkserge/word2vec-np | 6b53b7e3defd7c8333dcb9d9098e16502a9ce20f | [
"MIT"
] | 1 | 2021-11-22T11:30:10.000Z | 2021-11-22T11:30:10.000Z | word2vec_np/utils/data.py | mkserge/word2vec-np | 6b53b7e3defd7c8333dcb9d9098e16502a9ce20f | [
"MIT"
] | null | null | null | word2vec_np/utils/data.py | mkserge/word2vec-np | 6b53b7e3defd7c8333dcb9d9098e16502a9ce20f | [
"MIT"
] | null | null | null | import word2vec_np.utils.checks as checks
import collections
import numpy as np
import math
import time
import logging
def get_sentences_from_file(train_file):
""" Returns a list of sentences from an input file.
Args:
train_file: A path to a file
Returns:
A list of sentence... | 40.909836 | 123 | 0.640232 |
58d14d425be795bfa4409700edc4323d29494ae2 | 307 | py | Python | nicegui/elements/row.py | florianwittkamp/nicegui | 4c054f4e5b82e4ac56db93b73d5fb5ffcd480d06 | [
"MIT"
] | 30 | 2021-06-16T15:46:45.000Z | 2022-03-27T03:14:18.000Z | nicegui/elements/row.py | florianwittkamp/nicegui | 4c054f4e5b82e4ac56db93b73d5fb5ffcd480d06 | [
"MIT"
] | 11 | 2021-05-24T17:05:22.000Z | 2022-02-19T07:13:18.000Z | nicegui/elements/row.py | florianwittkamp/nicegui | 4c054f4e5b82e4ac56db93b73d5fb5ffcd480d06 | [
"MIT"
] | 7 | 2021-07-22T05:51:04.000Z | 2022-01-31T19:39:37.000Z | import justpy as jp
from .group import Group
| 23.615385 | 86 | 0.628664 |
58d1b1562239fddc199cba78a4c7fd5ac432e0af | 102 | py | Python | src/mtvs/__init__.py | digsim/mtvs | d89d12d4cd65eafe732226e588a54874123db7f4 | [
"Apache-2.0"
] | 2 | 2017-11-19T05:51:31.000Z | 2020-01-22T08:12:53.000Z | src/mtvs/__init__.py | digsim/mtvs | d89d12d4cd65eafe732226e588a54874123db7f4 | [
"Apache-2.0"
] | 3 | 2015-12-03T00:34:46.000Z | 2016-01-04T15:49:14.000Z | src/mtvs/__init__.py | digsim/missingTvShows | f17660dc965c7a6eef1b0cfad9577d62087cba56 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pkg_resources
__version__ = pkg_resources.require("mtvs")[0].version
| 17 | 54 | 0.705882 |
58d37fec96977e11aa6010c2276ce5434c4fc6f8 | 452 | py | Python | tests/guinea-pigs/unittest/expected_failure.py | Tirzono/teamcity-messages | e7f7334e2956a9e707222e4c83de9ffeb15b8ac0 | [
"Apache-2.0"
] | 105 | 2015-06-24T15:40:41.000Z | 2022-02-04T10:30:34.000Z | tests/guinea-pigs/unittest/expected_failure.py | Tirzono/teamcity-messages | e7f7334e2956a9e707222e4c83de9ffeb15b8ac0 | [
"Apache-2.0"
] | 145 | 2015-06-24T15:26:28.000Z | 2022-03-22T20:04:19.000Z | tests/guinea-pigs/unittest/expected_failure.py | Tirzono/teamcity-messages | e7f7334e2956a9e707222e4c83de9ffeb15b8ac0 | [
"Apache-2.0"
] | 76 | 2015-07-20T08:18:21.000Z | 2022-03-18T20:03:53.000Z | # coding=utf-8
import sys
from teamcity.unittestpy import TeamcityTestRunner
if sys.version_info < (2, 7):
from unittest2 import main, TestCase, expectedFailure
else:
from unittest import main, TestCase, expectedFailure
main(testRunner=TeamcityTestRunner)
| 26.588235 | 66 | 0.783186 |
58d426717d52de8aec95bf782518c3dd7fa7dafe | 877 | py | Python | main.py | GabrielIFPB/wishlist-fastapi | 1d39bf4c65dcc4491d0836487a218e67dbb07a80 | [
"MIT"
] | null | null | null | main.py | GabrielIFPB/wishlist-fastapi | 1d39bf4c65dcc4491d0836487a218e67dbb07a80 | [
"MIT"
] | null | null | null | main.py | GabrielIFPB/wishlist-fastapi | 1d39bf4c65dcc4491d0836487a218e67dbb07a80 | [
"MIT"
] | null | null | null |
import uvicorn
from fastapi import FastAPI
from database import Base, engine
from routers.user import router as router_user
from routers.product import router as router_product
from routers.authentication import router as router_auth
app = FastAPI(
title="Wish List",
description="Permita que seus clientes acompan... | 21.925 | 116 | 0.735462 |
58d441702771292f5be7e698cfa7a42a16e08886 | 1,605 | py | Python | libs/data_layers/transform.py | lsc25846/Wildlife-Recognition-System | 81d8afdf4a50bc94bf5e1952bfce1b5a9c4c6bd2 | [
"MIT"
] | null | null | null | libs/data_layers/transform.py | lsc25846/Wildlife-Recognition-System | 81d8afdf4a50bc94bf5e1952bfce1b5a9c4c6bd2 | [
"MIT"
] | null | null | null | libs/data_layers/transform.py | lsc25846/Wildlife-Recognition-System | 81d8afdf4a50bc94bf5e1952bfce1b5a9c4c6bd2 | [
"MIT"
] | null | null | null | # encoding: utf-8
import torch
import cv2
import numpy as np
import pdb
def detection_collate(batch):
"""Custom collate fn for dealing with batches of images that have a different
number of associated object annotations (bounding boxes).
Arguments:
batch: (tuple) A tuple of tensor images and lists... | 29.181818 | 81 | 0.633022 |
58d6ba044f8814b989985c1b13e416f82125fe24 | 2,273 | py | Python | rllab/torch/algos/base.py | NeurIPSPaperSubmission7934/code_submission | 713fce673e8e3ba30b559d4eebe6d3e4891069ed | [
"Apache-2.0"
] | null | null | null | rllab/torch/algos/base.py | NeurIPSPaperSubmission7934/code_submission | 713fce673e8e3ba30b559d4eebe6d3e4891069ed | [
"Apache-2.0"
] | null | null | null | rllab/torch/algos/base.py | NeurIPSPaperSubmission7934/code_submission | 713fce673e8e3ba30b559d4eebe6d3e4891069ed | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Copyright holder of the paper Generative Adversarial Model Learning
# submitted to NeurIPS 2019 for review
# All rights reserved.
import numpy as np
import torch
| 33.925373 | 88 | 0.661681 |
58d6f86c63a774052533d60d46858c6d938085a4 | 915 | py | Python | lab-4.py | PavelKovalets/python-reviewer-test | a4d489482f596570abd5d34677f7549e1b724c8e | [
"MIT"
] | null | null | null | lab-4.py | PavelKovalets/python-reviewer-test | a4d489482f596570abd5d34677f7549e1b724c8e | [
"MIT"
] | null | null | null | lab-4.py | PavelKovalets/python-reviewer-test | a4d489482f596570abd5d34677f7549e1b724c8e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import boto3
source_ddb = boto3.resource('dynamodb', 'us-east-1')
dest_ddb = boto3.client('dynamodb', 'us-west-2')
sync(source_ddb, dest_ddb) | 33.888889 | 81 | 0.619672 |
58d7f0d0c28563ede738e4f0ad2b23de85fe0aac | 2,492 | py | Python | core/reports/views.py | jilbertozamorasaa/panda-bigmon-core | 4e38411489e9ca538a000df43aed5280a72b4342 | [
"Apache-2.0"
] | 3 | 2017-07-19T18:29:23.000Z | 2021-11-18T04:57:18.000Z | core/reports/views.py | jilbertozamorasaa/panda-bigmon-core | 4e38411489e9ca538a000df43aed5280a72b4342 | [
"Apache-2.0"
] | 3 | 2021-09-01T15:20:21.000Z | 2022-03-12T01:02:51.000Z | core/reports/views.py | jilbertozamorasaa/panda-bigmon-core | 4e38411489e9ca538a000df43aed5280a72b4342 | [
"Apache-2.0"
] | 9 | 2015-11-17T15:52:23.000Z | 2021-09-07T12:23:16.000Z | """
"""
import json
from django.views.decorators.cache import never_cache
from django.http import HttpResponse
from django.shortcuts import render_to_response
from core.views import initRequest, DateEncoder
from core.reports import MC16aCPReport, ObsoletedTasksReport, TitanProgressReport
| 43.719298 | 270 | 0.72191 |
58d8fe58ae3d14e3614960efa20628276cc29e39 | 4,594 | py | Python | xain/fl/participant/participant.py | danieljanes/ox-msc-diss-code-freeze | 20c6881cabdf1e3ed7a9ddb40bbdcc7a7fd22f78 | [
"Apache-2.0"
] | 1 | 2020-05-30T20:34:19.000Z | 2020-05-30T20:34:19.000Z | xain/fl/participant/participant.py | danieljanes/ox-msc-diss-code-freeze | 20c6881cabdf1e3ed7a9ddb40bbdcc7a7fd22f78 | [
"Apache-2.0"
] | null | null | null | xain/fl/participant/participant.py | danieljanes/ox-msc-diss-code-freeze | 20c6881cabdf1e3ed7a9ddb40bbdcc7a7fd22f78 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List, Tuple
import numpy as np
import tensorflow as tf
from absl import logging
from xain.datasets import prep
from xain.types import History, Metrics, Partition, Theta, VolumeByClass
from .model_provider import ModelProvider
| 35.068702 | 88 | 0.653243 |
58db0a434e3091024b2614aa6f89111b6536e4cd | 1,380 | py | Python | client/animation/qr_code.py | Nurgak/IoT-RGB-LED-Matrix-Socket | e03ce4c2e2d77a6939662aad4ac92fbf9bdea77c | [
"MIT"
] | 1 | 2022-01-26T09:01:44.000Z | 2022-01-26T09:01:44.000Z | client/animation/qr_code.py | Nurgak/IoT-RGB-LED-Matrix-Socket | e03ce4c2e2d77a6939662aad4ac92fbf9bdea77c | [
"MIT"
] | 3 | 2021-12-28T10:29:02.000Z | 2022-01-06T03:01:08.000Z | client/animation/qr_code.py | Nurgak/IoT-RGB-LED-Matrix-Socket | e03ce4c2e2d77a6939662aad4ac92fbf9bdea77c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""! QR code generator animation script."""
import numpy as np
import qrcode
from src.animate import Animate
| 30 | 87 | 0.602899 |
58db8c9e99f143cbab9455bc35570eeeb524d210 | 483 | py | Python | tests/test_xiaochengtu.py | lamzuzuzu/yxf_yixue_py | 90eb077f195b543f93a507f28b0a4c016cb0c92f | [
"MIT"
] | 20 | 2019-01-08T08:13:39.000Z | 2021-12-23T09:04:14.000Z | tests/test_xiaochengtu.py | lamzuzuzu/yxf_yixue_py | 90eb077f195b543f93a507f28b0a4c016cb0c92f | [
"MIT"
] | null | null | null | tests/test_xiaochengtu.py | lamzuzuzu/yxf_yixue_py | 90eb077f195b543f93a507f28b0a4c016cb0c92f | [
"MIT"
] | 13 | 2019-04-22T03:25:13.000Z | 2022-01-04T05:43:48.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #
sys.path.append(BASE_DIR)
import datetime
from yxf_yixue.xiaochengtu import XiaochengtuApi
if __name__ == '__main__':
string = '1996/02/29 23:16'
obj = datetime.datetime(2... | 24.15 | 84 | 0.681159 |
58dc98f64796c7f6f0664ca055829713dcb9192e | 3,662 | py | Python | _Dist/NeuralNetworks/b_TraditionalML/MultinomialNB.py | leoatchina/MachineLearning | 071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3 | [
"MIT"
] | 1,107 | 2016-09-21T02:18:36.000Z | 2022-03-29T02:52:12.000Z | _Dist/NeuralNetworks/b_TraditionalML/MultinomialNB.py | leoatchina/MachineLearning | 071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3 | [
"MIT"
] | 18 | 2016-12-22T10:24:47.000Z | 2022-03-11T23:18:43.000Z | _Dist/NeuralNetworks/b_TraditionalML/MultinomialNB.py | leoatchina/MachineLearning | 071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3 | [
"MIT"
] | 776 | 2016-12-21T12:08:08.000Z | 2022-03-21T06:12:08.000Z | import numpy as np
from sklearn.preprocessing import OneHotEncoder
| 29.296 | 96 | 0.560896 |
58df035c2ab9c1b7f4e6cbacccfa792d055318cf | 9,362 | py | Python | Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/core/protobuf/graph_debug_info_pb2.py | lawrence910426/ProgrammingII_FinalProject | 493183dc2a674310e65bffe3a5e00395e8bebb4b | [
"MIT"
] | null | null | null | Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/core/protobuf/graph_debug_info_pb2.py | lawrence910426/ProgrammingII_FinalProject | 493183dc2a674310e65bffe3a5e00395e8bebb4b | [
"MIT"
] | null | null | null | Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/core/protobuf/graph_debug_info_pb2.py | lawrence910426/ProgrammingII_FinalProject | 493183dc2a674310e65bffe3a5e00395e8bebb4b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/protobuf/graph_debug_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as... | 39.838298 | 888 | 0.760735 |
58df52412971e5d196be467f42346c84563d779e | 1,376 | py | Python | tests/inferfaces_tests/test_people.py | jmolinski/traktpy | e6ff22acaf273b7b45070a4f8938c210fe4d63d7 | [
"MIT"
] | null | null | null | tests/inferfaces_tests/test_people.py | jmolinski/traktpy | e6ff22acaf273b7b45070a4f8938c210fe4d63d7 | [
"MIT"
] | 1 | 2019-04-13T10:15:48.000Z | 2019-04-13T10:15:48.000Z | tests/inferfaces_tests/test_people.py | jmolinski/traktpy | e6ff22acaf273b7b45070a4f8938c210fe4d63d7 | [
"MIT"
] | null | null | null | import pytest
from tests.test_data.lists import LIST
from tests.test_data.people import MOVIE_CREDITS, PERSON, SHOW_CREDITS
from tests.utils import mk_mock_client
from trakt.core.exceptions import ArgumentError
from trakt.core.json_parser import parse_tree
from trakt.core.models import Person
| 32 | 83 | 0.721657 |
58e00459697805d8f1e7adbc2795e9616fc70667 | 3,717 | py | Python | batch_score.py | Lufedi/reaper | bdf56b499e5b704c27b9f6c053d798c2a10fa4cf | [
"Apache-2.0"
] | 106 | 2015-07-21T16:18:26.000Z | 2022-03-31T06:45:34.000Z | batch_score.py | Lufedi/reaper | bdf56b499e5b704c27b9f6c053d798c2a10fa4cf | [
"Apache-2.0"
] | 21 | 2015-07-11T03:48:28.000Z | 2022-01-18T12:57:30.000Z | batch_score.py | Lufedi/reaper | bdf56b499e5b704c27b9f6c053d798c2a10fa4cf | [
"Apache-2.0"
] | 26 | 2015-07-22T22:38:21.000Z | 2022-03-14T10:11:56.000Z | #!/usr/bin/env python3
import argparse
import os
import sys
import traceback
from lib import core, utilities, run
from lib.attributes import Attributes
from lib.database import Database
def process_arguments():
"""
Uses the argparse module to parse commandline arguments.
Returns:
Dictionary of ... | 26.361702 | 76 | 0.584073 |
58e423e71414f032f22c45a5bedf02c030da3667 | 8,423 | py | Python | behave/reporter/summary.py | fluendo/behave | eeffde083456dcf1a0ea9b6139b32091970118c0 | [
"BSD-2-Clause"
] | null | null | null | behave/reporter/summary.py | fluendo/behave | eeffde083456dcf1a0ea9b6139b32091970118c0 | [
"BSD-2-Clause"
] | 2 | 2020-03-21T22:37:54.000Z | 2021-10-04T17:14:14.000Z | behave/reporter/summary.py | fluendo/behave | eeffde083456dcf1a0ea9b6139b32091970118c0 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
Provides a summary after each test run.
"""
from __future__ import absolute_import, division, print_function
import sys
from time import time as time_now
from behave.model import Rule, ScenarioOutline # MAYBE: Scenario
from behave.model_core import Status
from behave.reporter.base import R... | 34.239837 | 141 | 0.581859 |
58e63151e272298d99abe2311270c00ae4f753a6 | 2,109 | py | Python | tests/common/bridgecrew/vulnerability_scanning/conftest.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | tests/common/bridgecrew/vulnerability_scanning/conftest.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | tests/common/bridgecrew/vulnerability_scanning/conftest.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from typing import Dict, Any
import pytest
from checkov.common.bridgecrew.bc_source import SourceType
from checkov.common.bridgecrew.platform_integration import BcPlatformIntegration, bc_integration
| 40.557692 | 120 | 0.579896 |
58e6b8cbdb9f5deb8475e765553e3c1da2be8892 | 1,038 | py | Python | image_matting/modules/trimap_generator/trimap_generator_application.py | image-matting/backend | bbf502539cf70822dadb5eded31529d5e66c6276 | [
"Apache-2.0"
] | 1 | 2022-01-22T04:12:48.000Z | 2022-01-22T04:12:48.000Z | image_matting/modules/trimap_generator/trimap_generator_application.py | image-matting/backend | bbf502539cf70822dadb5eded31529d5e66c6276 | [
"Apache-2.0"
] | 4 | 2021-12-23T14:02:17.000Z | 2022-01-26T18:44:06.000Z | image_matting/modules/trimap_generator/trimap_generator_application.py | image-matting/backend | bbf502539cf70822dadb5eded31529d5e66c6276 | [
"Apache-2.0"
] | null | null | null | import argparse
from pathlib import Path
from cv2 import cv2
from trimap import generate_trimap
from trimap_output_utils import save_trimap_output
if __name__ == "__main__":
main()
| 29.657143 | 113 | 0.739884 |
58e6e3920ecb9bb8ae3ccc039500c2bfac35935a | 2,102 | py | Python | tests/test_views.py | Siecje/graphene-django-sentry | b82188f91717211896cc1dbfc1f0e86de3729734 | [
"MIT"
] | 20 | 2019-03-13T15:28:17.000Z | 2022-03-23T09:52:26.000Z | tests/test_views.py | Siecje/graphene-django-sentry | b82188f91717211896cc1dbfc1f0e86de3729734 | [
"MIT"
] | 5 | 2019-06-29T06:41:16.000Z | 2021-06-10T21:05:25.000Z | tests/test_views.py | Siecje/graphene-django-sentry | b82188f91717211896cc1dbfc1f0e86de3729734 | [
"MIT"
] | 2 | 2019-05-30T13:03:23.000Z | 2019-06-17T16:08:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from http.client import OK
from unittest.mock import MagicMock, patch
from urllib.parse import urlencode
import graphene_django.views as views
from django.urls import reverse
from graphql import GraphQLError
from graphql.error import GraphQLLocatedError
| 26.948718 | 65 | 0.706946 |
58e7d15456033fa62d2766b6d09f022fb1eb2ace | 3,137 | py | Python | spacy/lang/nl/stop_words.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 12 | 2019-03-20T20:43:47.000Z | 2020-04-13T11:10:52.000Z | spacy/lang/nl/stop_words.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 13 | 2018-06-05T11:54:40.000Z | 2019-07-02T11:33:14.000Z | spacy/lang/nl/stop_words.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 1 | 2020-05-12T16:00:38.000Z | 2020-05-12T16:00:38.000Z | # coding: utf8
from __future__ import unicode_literals
# The original stop words list (added in f46ffe3) was taken from
# http://www.damienvanholten.com/downloads/dutch-stop-words.txt
# and consisted of about 100 tokens.
# In order to achieve parity with some of the better-supported
# languages, e.g., English, French,... | 42.391892 | 120 | 0.808734 |
58e841d7116f44d86fb300ae823c11eb893353a1 | 1,858 | py | Python | liv_covid19/web/artic/opentrons_thread.py | neilswainston/liv-covid19 | 4842fccdca626caca50bd7c545e3f673660503d4 | [
"MIT"
] | 2 | 2020-03-31T12:59:13.000Z | 2021-02-08T21:40:20.000Z | liv_covid19/web/artic/opentrons_thread.py | neilswainston/liv-covid19 | 4842fccdca626caca50bd7c545e3f673660503d4 | [
"MIT"
] | null | null | null | liv_covid19/web/artic/opentrons_thread.py | neilswainston/liv-covid19 | 4842fccdca626caca50bd7c545e3f673660503d4 | [
"MIT"
] | 2 | 2020-06-23T16:49:20.000Z | 2020-06-25T14:59:32.000Z | '''
(c) University of Liverpool 2020
Licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>..
@author: neilswainston
'''
# pylint: disable=broad-except
import os.path
import tempfile
from liv_covid19.web.artic import opentrons
from liv_covid19.web.job import JobT... | 30.459016 | 77 | 0.595264 |
58e8cb21bea9ec496741309cc75c724289559dd8 | 838 | py | Python | futuquant/common/ft_logger.py | hxhxhx88/futuquant | a1b4a875604f1de451ddde4bfa3e713452482b0a | [
"Apache-2.0"
] | null | null | null | futuquant/common/ft_logger.py | hxhxhx88/futuquant | a1b4a875604f1de451ddde4bfa3e713452482b0a | [
"Apache-2.0"
] | null | null | null | futuquant/common/ft_logger.py | hxhxhx88/futuquant | a1b4a875604f1de451ddde4bfa3e713452482b0a | [
"Apache-2.0"
] | null | null | null | import logging
from datetime import datetime
import os
logger = logging.getLogger('FT')
log_level = logging.INFO
is_file_log = True
# loggerlevelDEBUG
logger.setLevel(log_level)
# StreamHandler
hdr = logging.StreamHandler()
formatter = logging.Formatter(
'%(asctime)s [%(filename)s] %(funcName)s:%(lineno)d: %(mes... | 24.647059 | 70 | 0.731504 |
58ecb5c52b1dbb5c09611ce11efbdfb06b5edf51 | 3,946 | py | Python | image_classification/cifar10/cifar10/networking/cifar10_vgg16_model.py | poncos/deeplearning | 0874b22dab05117bcf39ccb4895d513ab6f87861 | [
"MIT"
] | null | null | null | image_classification/cifar10/cifar10/networking/cifar10_vgg16_model.py | poncos/deeplearning | 0874b22dab05117bcf39ccb4895d513ab6f87861 | [
"MIT"
] | null | null | null | image_classification/cifar10/cifar10/networking/cifar10_vgg16_model.py | poncos/deeplearning | 0874b22dab05117bcf39ccb4895d513ab6f87861 | [
"MIT"
] | null | null | null | # Copyright 2018 Esteban Collado.
#
# Licensed under the MIT License
import tensorflow as tf
DEFAULT_VARIABLE_NAMES = ['conv1', 'conv2', 'conv3', 'conv4', 'fc1', 'fc2', 'softmax_linear']
BATCH_SIZE = 200
IMAGE_WIDTH = 32
IMAGE_HEIGHT = 32
IMAGE_DEPTH = 3
NUM_CLASSES = 10
INPUT_PLACEHOLDER = 'X_INPUT'
LABELS_PLACEHO... | 43.362637 | 118 | 0.640902 |
58eeedb6cd1adb5de820dbc349b434e1a3735952 | 425 | py | Python | wrappers/Python/sbmlsolver/__init__.py | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | wrappers/Python/sbmlsolver/__init__.py | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | wrappers/Python/sbmlsolver/__init__.py | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | """
The LibRoadRunner SBML Simulation Engine, (c) 2009-2014 Andy Somogyi and Herbert Sauro
LibRoadRunner is an SBML JIT compiler and simulation engine with a variety of analysis
functions. LibRoadRunner is a self contained library which is designed to be integrated
into existing simulation platforms or may be used a s... | 32.692308 | 87 | 0.807059 |
58f0ab77666277ac6d3ddc06e53dedb0c6d49f2b | 1,573 | py | Python | classification/tests/test_evidence_mixin.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | classification/tests/test_evidence_mixin.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | classification/tests/test_evidence_mixin.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | from classification.models import EvidenceMixin
from classification.models.evidence_mixin import VCStore
# doesn't work without Transcripts loaded now
# class EvidenceMixinTest(TestCase):
#
# @override_settings(VARIANT_ANNOTATION_TRANSCRIPT_PREFERENCES=['refseq_transcript_accession'])
# def test_get_transcrip... | 37.452381 | 99 | 0.650985 |
58f0dabb24cb5744c956fc257b97c051c5d3142b | 674 | py | Python | scronsole/widgets/main_screen.py | bastianh/screeps_console_mod | e093cc1e071fae5bdf106674b97e71902fbbb6ff | [
"MIT"
] | 2 | 2017-10-08T19:39:27.000Z | 2017-10-08T19:51:18.000Z | scronsole/widgets/main_screen.py | bastianh/screeps_console_mod | e093cc1e071fae5bdf106674b97e71902fbbb6ff | [
"MIT"
] | null | null | null | scronsole/widgets/main_screen.py | bastianh/screeps_console_mod | e093cc1e071fae5bdf106674b97e71902fbbb6ff | [
"MIT"
] | null | null | null | import urwid
from scronsole.config_manager import ConfigManager
from scronsole.plugin_manager import PluginManager
from scronsole.widgets.main_menu import MainMenu
from scronsole.widgets.server_screen import ServerScreen
| 30.636364 | 62 | 0.746291 |
58f1e5bfcc6007b51ace335dfbea68c9b539583f | 436 | py | Python | sql/language.py | skylarkgit/sql2java | befd55180969b0ec68e242991c3260272d755cc9 | [
"MIT"
] | 2 | 2019-10-23T08:27:30.000Z | 2019-10-23T09:58:45.000Z | sql/language.py | skylarkgit/sql2java | befd55180969b0ec68e242991c3260272d755cc9 | [
"MIT"
] | null | null | null | sql/language.py | skylarkgit/sql2java | befd55180969b0ec68e242991c3260272d755cc9 | [
"MIT"
] | null | null | null | import re
from csv import reader
| 31.142857 | 88 | 0.53211 |
58f3c7c8febd7b51f53b623ee90e4c562e1d0bd1 | 659 | py | Python | easy_ArrayAdditionI.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | 1 | 2020-11-04T15:30:18.000Z | 2020-11-04T15:30:18.000Z | easy_ArrayAdditionI.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | null | null | null | easy_ArrayAdditionI.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | null | null | null | import itertools
#################################################
# This function will see if there is any #
# possible combination of the numbers in #
# the array that will give the largest number #
#################################################
print ArrayAdditionI(raw_input())
| 26.36 | 54 | 0.53566 |
58f4750834ad708c962b1818098008a6819ef467 | 1,994 | py | Python | SVM.py | JAMJU/KernelMethod | e52f5a0cfaefa87073facd88220c311709e513e8 | [
"MIT"
] | null | null | null | SVM.py | JAMJU/KernelMethod | e52f5a0cfaefa87073facd88220c311709e513e8 | [
"MIT"
] | null | null | null | SVM.py | JAMJU/KernelMethod | e52f5a0cfaefa87073facd88220c311709e513e8 | [
"MIT"
] | null | null | null | import numpy as np
import quadprog
def quadprog_solve_qp(P, q, G=None, h=None, A=None, b=None):
""" Solve a QP of the form min 1/2xTPx + qTx st Gx < h st Ax=b"""
#qp_G = .5 * (P + P.T) # make sure P is symmetric
qp_G = P
qp_a = -q
if A is not None:
qp_C = -np.vstack([A, G]).T
qp_... | 33.79661 | 119 | 0.57322 |
58f7245b5e8f50a694e2a4405f7daff21e842618 | 1,547 | py | Python | util/MalShare.py | cclauss/ph0neutria | 04b6a569d4e707c3de652ba7ad15c1b5223bebcb | [
"Apache-2.0"
] | null | null | null | util/MalShare.py | cclauss/ph0neutria | 04b6a569d4e707c3de652ba7ad15c1b5223bebcb | [
"Apache-2.0"
] | null | null | null | util/MalShare.py | cclauss/ph0neutria | 04b6a569d4e707c3de652ba7ad15c1b5223bebcb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from ConfigUtils import getBaseConfig
from LogUtils import getModuleLogger
from StringUtils import isValidUrl, randomString
from urlparse import urlparse
import json
import os
import requests
import sys
cDir = os.path.dirname(os.path.realpath(__file__))
rootDir = os.path.abspath(os.path.join(cDir,... | 29.75 | 129 | 0.661926 |
58f785be1e5480e5359e098bb9e3ecdf8b2d4246 | 705 | py | Python | attempt/runner.py | prstolpe/rrc_simulation | b430fe4e575641cdd64945cf57d0dd67a0eea17a | [
"BSD-3-Clause"
] | null | null | null | attempt/runner.py | prstolpe/rrc_simulation | b430fe4e575641cdd64945cf57d0dd67a0eea17a | [
"BSD-3-Clause"
] | null | null | null | attempt/runner.py | prstolpe/rrc_simulation | b430fe4e575641cdd64945cf57d0dd67a0eea17a | [
"BSD-3-Clause"
] | null | null | null |
from attempt.ddpg import HERDDPG, DDPG
import gym
import os
import matplotlib.pyplot as plt
import numpy as np
from tqdm import tqdm
if __name__ == "__main__":
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
env = gym.make('FetchReach-v1')
agent = HERDDPG(env)
for epoch in range(2):
for cycle in tq... | 20.735294 | 44 | 0.64539 |
58f82c89b0b711b196471a3d0d54cc05fadd6ef6 | 8,187 | py | Python | src/shogun/base/class_list.cpp.py | srgnuclear/shogun | 33c04f77a642416376521b0cd1eed29b3256ac13 | [
"Ruby",
"MIT"
] | 1 | 2015-11-05T18:31:14.000Z | 2015-11-05T18:31:14.000Z | src/shogun/base/class_list.cpp.py | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | src/shogun/base/class_list.cpp.py | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | #!/usr/bin/env python
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Written (W) 2008-2009 Soeren Sonnenburg
# Cop... | 27.109272 | 130 | 0.693416 |
58f8d01058e75992d07c8d9e6c624ed7a5775471 | 771 | py | Python | script/solr_unauthorized_access.py | 5up3rc/Vxscan | 0d2cae446f6502b51596853be3514c7c4c62809c | [
"Apache-2.0"
] | 2 | 2019-12-05T01:58:22.000Z | 2019-12-14T09:19:28.000Z | script/solr_unauthorized_access.py | 5up3rc/Vxscan | 0d2cae446f6502b51596853be3514c7c4c62809c | [
"Apache-2.0"
] | null | null | null | script/solr_unauthorized_access.py | 5up3rc/Vxscan | 0d2cae446f6502b51596853be3514c7c4c62809c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# project = https://github.com/Xyntax/POC-T
# author = i@cdxy.me
"""
Apache Solr PoC
(iterate_path)
Usage
python POC-T.py -s solr-unauth -iF target.txt
python POC-T.py -s solr-unauth -aZ "solr country:cn"
"""
from lib.verify import verify
from lib.random_header imp... | 24.09375 | 95 | 0.608301 |