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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c1514125da0b6d26946b5990ca8e3d69b019fd3 | 1,369 | py | Python | tests/core/feature_extraction/test_galaxyProcessor.py | EmilioCC/gti770-student-framework | 3cd72da8fe78c7ecfc26c9e688cbe1b7deee353a | [
"MIT"
] | null | null | null | tests/core/feature_extraction/test_galaxyProcessor.py | EmilioCC/gti770-student-framework | 3cd72da8fe78c7ecfc26c9e688cbe1b7deee353a | [
"MIT"
] | null | null | null | tests/core/feature_extraction/test_galaxyProcessor.py | EmilioCC/gti770-student-framework | 3cd72da8fe78c7ecfc26c9e688cbe1b7deee353a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import numpy as np
from unittest import TestCase
from core.feature_extraction.galaxy.galaxy_processor import GalaxyProcessor
from commons.helpers.dataset.strategies.galaxy_dataset.label_strategy import GalaxyDataSetLabelStrategy
from commons.helpers.dataset.conte... | 42.78125 | 103 | 0.731921 |
4c1540d22f910c13d547019d54ee005a23d41b8e | 559 | py | Python | country/management/commands/populate_countries.py | okchaty/django-country | 740bc25956dc1b87f44486538a62037e0bd0ac94 | [
"MIT"
] | 1 | 2020-04-02T16:50:38.000Z | 2020-04-02T16:50:38.000Z | country/management/commands/populate_countries.py | okchaty/django-country | 740bc25956dc1b87f44486538a62037e0bd0ac94 | [
"MIT"
] | 4 | 2020-03-30T15:39:55.000Z | 2020-04-10T15:04:28.000Z | country/management/commands/populate_countries.py | okchaty/django-country | 740bc25956dc1b87f44486538a62037e0bd0ac94 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
from os import path
| 27.95 | 56 | 0.615385 |
4c155f18a1b1670b63f094d3de08857496d9f8be | 1,630 | py | Python | gmso/formats/formats_registry.py | chrisiacovella/gmso | c78e2425ccb98ea952f024a569346d36045f6918 | [
"MIT"
] | 20 | 2020-02-28T21:47:54.000Z | 2022-02-14T20:13:56.000Z | gmso/formats/formats_registry.py | chrisiacovella/gmso | c78e2425ccb98ea952f024a569346d36045f6918 | [
"MIT"
] | 364 | 2020-03-02T16:11:57.000Z | 2022-03-29T00:57:00.000Z | gmso/formats/formats_registry.py | chrisiacovella/gmso | c78e2425ccb98ea952f024a569346d36045f6918 | [
"MIT"
] | 28 | 2020-02-28T21:12:30.000Z | 2022-01-31T21:02:30.000Z | """Registry utilities to handle formats for gmso Topology."""
SaversRegistry = Registry()
LoadersRegistry = Registry()
| 28.596491 | 86 | 0.655828 |
4c1606fa8a8ca96d6fb7ac7c7412b894e0bb3a10 | 417 | py | Python | formatter.py | Staist/Python-Text-Formatter | 6ae865d45301906eaa133551301dc785602f5b38 | [
"MIT"
] | null | null | null | formatter.py | Staist/Python-Text-Formatter | 6ae865d45301906eaa133551301dc785602f5b38 | [
"MIT"
] | null | null | null | formatter.py | Staist/Python-Text-Formatter | 6ae865d45301906eaa133551301dc785602f5b38 | [
"MIT"
] | null | null | null | dosyaadi = input("Enter file name: ")
dosyaadi = str(dosyaadi + ".txt")
with open(dosyaadi, 'r') as file :
dosyaicerigi = file.read()
silinecek = str(input("Enter the text that you wish to delete: "))
dosyaicerigi = dosyaicerigi.replace(silinecek, '')
with open(dosyaadi, 'w') as file:
file.write(dosyai... | 26.0625 | 67 | 0.647482 |
4c168858057ebcae4ef4e91a7860a8034fcefa15 | 6,106 | py | Python | covid19/classification/helpers.py | salvacarrion/mltests | e4ac9711c1c80171f302edc88011fbe06e754490 | [
"MIT"
] | null | null | null | covid19/classification/helpers.py | salvacarrion/mltests | e4ac9711c1c80171f302edc88011fbe06e754490 | [
"MIT"
] | 1 | 2022-01-01T06:09:26.000Z | 2022-01-01T06:09:26.000Z | covid19/classification/helpers.py | salvacarrion/mltests | e4ac9711c1c80171f302edc88011fbe06e754490 | [
"MIT"
] | null | null | null | import tensorflow as tf
class CustomModelCheckpoint(tf.keras.callbacks.ModelCheckpoint):
class CustomEarlyStopping(tf.keras.callbacks.EarlyStopping):
def get_losses():
losses = [tf.keras.losses.BinaryCrossentropy()]
return losses
def get_metrics(single_output_idx, add_normal=False):
metrics = []... | 35.5 | 104 | 0.664265 |
4c16d8f05cc4bb4747f1b27b93145e440fc653d6 | 3,528 | py | Python | null/twitter/twmedia-dl.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | null/twitter/twmedia-dl.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | null/twitter/twmedia-dl.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | import re
import json
import time
import sys
import httplib2
from twitter import *
import magic
if __name__ == '__main__':
for i in range(1, len(sys.argv)):
tw = TwitterMediaDL()
for tweetID in tw.get_medias(sys.argv[i]):
list_url = tw.get_image_url(tweetID)
for j in ran... | 30.947368 | 133 | 0.552721 |
4c16fb50407c0d81665fb35d2265d078805475a6 | 6,185 | py | Python | tensorflow/contrib/metrics/__init__.py | DEVESHTARASIA/tensorflow | d3edb8c60ed4fd831d62833ed22f5c23486c561c | [
"Apache-2.0"
] | 384 | 2017-02-21T18:38:04.000Z | 2022-02-22T07:30:25.000Z | tensorflow/contrib/metrics/__init__.py | ChenAugustus/tensorflow | 5828e285209ff8c3d1bef2e4bd7c55ca611080d5 | [
"Apache-2.0"
] | 15 | 2017-03-01T20:18:43.000Z | 2020-05-07T10:33:51.000Z | udacity-car/lib/python2.7/site-packages/tensorflow/contrib/metrics/__init__.py | 808brick/CarND-Capstone | f9e536b4a9d96322d7e971073602c8969dbd9369 | [
"MIT"
] | 81 | 2017-02-21T19:31:19.000Z | 2022-02-22T07:30:24.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 51.97479 | 104 | 0.864834 |
4c189de34ca4832b1a00970032415cde76a25896 | 9,133 | py | Python | girder/models/group.py | scottwittenburg/girder | a5062badc97bf2a87a385648f2ff3f9ff1990a75 | [
"Apache-2.0"
] | null | null | null | girder/models/group.py | scottwittenburg/girder | a5062badc97bf2a87a385648f2ff3f9ff1990a75 | [
"Apache-2.0"
] | null | null | null | girder/models/group.py | scottwittenburg/girder | a5062badc97bf2a87a385648f2ff3f9ff1990a75 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013 Kitware 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 cop... | 34.858779 | 79 | 0.581518 |
4c193e499f0f1632e4dcf16c607003de7e5c3eaa | 14,091 | py | Python | docker/docker-puppet.py | mail2nsrajesh/tripleo-heat-templates | 368b3eadda577f9914d181893df2df96367e8fad | [
"Apache-2.0"
] | null | null | null | docker/docker-puppet.py | mail2nsrajesh/tripleo-heat-templates | 368b3eadda577f9914d181893df2df96367e8fad | [
"Apache-2.0"
] | null | null | null | docker/docker-puppet.py | mail2nsrajesh/tripleo-heat-templates | 368b3eadda577f9914d181893df2df96367e8fad | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# 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 ... | 39.581461 | 139 | 0.613299 |
4c1a065c357d38d64659fb6993766afa52a31235 | 9,999 | py | Python | main.py | acitv/plugin.video.aci | c836096c90affd80949e51cd24517709a63eff52 | [
"MIT"
] | null | null | null | main.py | acitv/plugin.video.aci | c836096c90affd80949e51cd24517709a63eff52 | [
"MIT"
] | null | null | null | main.py | acitv/plugin.video.aci | c836096c90affd80949e51cd24517709a63eff52 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import urllib
import urlparse
# import xbmc
import xbmcgui
import xbmcplugin
import aci
# Get the plugin url in plugin:// notation.
_url = sys.argv[0]
# Get the plugin handle as an integer number.
_handle = int(sys.argv[1])
# Get an instance of ACI.
ATV = aci.ACI()
ATV.load_aci()... | 38.019011 | 116 | 0.633863 |
4c1ab77adfecf5628021417f2b5bb34c29a975d3 | 17,151 | py | Python | coremltools/converters/mil/frontend/tensorflow/converter.py | VadimLevin/coremltools | 66c17b0fa040a0d8088d33590ab5c355478a9e5c | [
"BSD-3-Clause"
] | 3 | 2018-10-02T17:23:01.000Z | 2020-08-15T04:47:07.000Z | coremltools/converters/mil/frontend/tensorflow/converter.py | holzschu/coremltools | 5ece9069a1487d5083f00f56afe07832d88e3dfa | [
"BSD-3-Clause"
] | null | null | null | coremltools/converters/mil/frontend/tensorflow/converter.py | holzschu/coremltools | 5ece9069a1487d5083f00f56afe07832d88e3dfa | [
"BSD-3-Clause"
] | 1 | 2021-05-07T15:38:20.000Z | 2021-05-07T15:38:20.000Z | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import logging
from coremltools.converters.mil.input_types import (
InputType,
TensorType,
... | 41.527845 | 123 | 0.58329 |
4c1b595f4c6b8f77081c78b4858260e00facf459 | 4,420 | py | Python | pylinkcheck.py | clayball/pylinkcheck | 085e5562525bebc77b8ebfd3b0fb676b01f4be68 | [
"MIT"
] | null | null | null | pylinkcheck.py | clayball/pylinkcheck | 085e5562525bebc77b8ebfd3b0fb676b01f4be68 | [
"MIT"
] | null | null | null | pylinkcheck.py | clayball/pylinkcheck | 085e5562525bebc77b8ebfd3b0fb676b01f4be68 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2016 Clay Wells
#
# A Python-based link checker.
#
# Usage: pylinkcheck.py -r https://www.example.com
#
# By default, we can spider and check all of the links found at the URL's
# domain. For example, a check of https://foo.example.com will only check
# links with the base URL ... | 29.466667 | 78 | 0.671946 |
4c1d42a55dc8480f71e72b9866ed7b027a303687 | 34,975 | py | Python | moto/dynamodb2/parsing/expressions.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 1 | 2021-12-12T04:23:06.000Z | 2021-12-12T04:23:06.000Z | moto/dynamodb2/parsing/expressions.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 17 | 2020-08-28T12:53:56.000Z | 2020-11-10T01:04:46.000Z | moto/dynamodb2/parsing/expressions.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 1 | 2021-07-06T22:44:47.000Z | 2021-07-06T22:44:47.000Z | import logging
from abc import abstractmethod
import abc
import six
from collections import deque
from moto.dynamodb2.parsing.ast_nodes import (
UpdateExpression,
UpdateExpressionSetClause,
UpdateExpressionSetActions,
UpdateExpressionSetAction,
UpdateExpressionRemoveActions,
UpdateExpressionRem... | 33.597502 | 120 | 0.651237 |
4c1e3b72b32866f599c7e926ceb63efd29d9c600 | 5,332 | py | Python | dftbplus_step/tk_optimization.py | molssi-seamm/dftbplus_step | e5b9c7462d92c25fc6f27db5e4324b05bb42e224 | [
"BSD-3-Clause"
] | 1 | 2022-01-24T05:14:03.000Z | 2022-01-24T05:14:03.000Z | dftbplus_step/tk_optimization.py | molssi-seamm/dftbplus_step | e5b9c7462d92c25fc6f27db5e4324b05bb42e224 | [
"BSD-3-Clause"
] | 10 | 2020-12-16T21:36:37.000Z | 2022-03-17T01:53:54.000Z | dftbplus_step/tk_optimization.py | molssi-seamm/dftbplus_step | e5b9c7462d92c25fc6f27db5e4324b05bb42e224 | [
"BSD-3-Clause"
] | 1 | 2022-01-14T15:26:49.000Z | 2022-01-14T15:26:49.000Z | # -*- coding: utf-8 -*-
"""The graphical part of a DFTB+ Optimization node"""
import logging
import tkinter as tk
import tkinter.ttk as ttk
import dftbplus_step
logger = logging.getLogger(__name__)
| 32.120482 | 100 | 0.515941 |
4c1e5197c84f6ae0e879e45cf958dcfad6b26bdf | 7,000 | py | Python | console.py | aplneto/redes_projeto | 450ef8ac61e46bc38ff34142d07eda3d726ce326 | [
"MIT"
] | 1 | 2019-04-04T13:10:01.000Z | 2019-04-04T13:10:01.000Z | console.py | aplneto/redes_projeto | 450ef8ac61e46bc38ff34142d07eda3d726ce326 | [
"MIT"
] | null | null | null | console.py | aplneto/redes_projeto | 450ef8ac61e46bc38ff34142d07eda3d726ce326 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Mdulo de configurao dos consoles
"""
from Crypto.PublicKey import RSA
import socket
import os
import base64
| 32.110092 | 80 | 0.532143 |
4c1e5c9719ab7645023165c5beb655aadf6e00c7 | 4,988 | py | Python | sandbox/settings.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | null | null | null | sandbox/settings.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | null | null | null | sandbox/settings.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | null | null | null | """
Django settings for marion project.
"""
from pathlib import Path
from tempfile import mkdtemp
from configurations import Configuration, values
BASE_DIR = Path(__file__).parent.resolve()
DATA_DIR = Path("/data")
# pylint: disable=no-init
| 30.230303 | 88 | 0.635525 |
4c1fe311f29bf7609a66d633ca361b9c555f8538 | 3,512 | py | Python | skywalking/client/grpc.py | cooolr/skywalking-python | 42176ff4b732000f2a75eac1affee2a681379df7 | [
"Apache-2.0"
] | null | null | null | skywalking/client/grpc.py | cooolr/skywalking-python | 42176ff4b732000f2a75eac1affee2a681379df7 | [
"Apache-2.0"
] | null | null | null | skywalking/client/grpc.py | cooolr/skywalking-python | 42176ff4b732000f2a75eac1affee2a681379df7 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 39.909091 | 110 | 0.768508 |
4c215b75166895f7437c7eb221fac00ff09ebb82 | 2,032 | py | Python | coingate/migrations/0004_auto_20200207_1959.py | glitzybunny/coingate_sandbox_payment | f5686964cdd6b7d65f9f37957da4b2cda6a02f63 | [
"MIT"
] | 2 | 2020-08-31T17:53:06.000Z | 2020-08-31T18:33:05.000Z | coingate/migrations/0004_auto_20200207_1959.py | glitzybunny/coingate_sandbox_payment | f5686964cdd6b7d65f9f37957da4b2cda6a02f63 | [
"MIT"
] | 5 | 2021-03-30T12:48:17.000Z | 2021-09-22T18:32:14.000Z | coingate/migrations/0004_auto_20200207_1959.py | glitzybunny/coingate_sandbox_payment | f5686964cdd6b7d65f9f37957da4b2cda6a02f63 | [
"MIT"
] | 1 | 2020-11-04T04:42:58.000Z | 2020-11-04T04:42:58.000Z | # Generated by Django 3.0.3 on 2020-02-07 19:59
from django.db import migrations, models
| 38.339623 | 326 | 0.561024 |
4c219c1f42bd3a942209df9b52e42549c3b34e00 | 309 | py | Python | space_trace/__init__.py | SpaceTeam/space-event-trace | ec00d6895e0bdc2a046ec2d45143d6f8d47ace6f | [
"MIT"
] | 2 | 2022-01-04T00:34:27.000Z | 2022-01-04T00:51:14.000Z | space_trace/__init__.py | SpaceTeam/space-event-trace | ec00d6895e0bdc2a046ec2d45143d6f8d47ace6f | [
"MIT"
] | null | null | null | space_trace/__init__.py | SpaceTeam/space-event-trace | ec00d6895e0bdc2a046ec2d45143d6f8d47ace6f | [
"MIT"
] | null | null | null | import toml
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__, instance_relative_config=True)
app.config.from_file("config.toml", load=toml.load)
db = SQLAlchemy(app)
from space_trace import views, cli
| 18.176471 | 52 | 0.789644 |
4c228e2ac32c2ad15f711401f0894056b88a3776 | 1,388 | py | Python | ng/distributions/Distribution.py | forons/noise-generator | 033906165adaf6e620c03bf0b91f19b6d9890cf0 | [
"MIT"
] | null | null | null | ng/distributions/Distribution.py | forons/noise-generator | 033906165adaf6e620c03bf0b91f19b6d9890cf0 | [
"MIT"
] | null | null | null | ng/distributions/Distribution.py | forons/noise-generator | 033906165adaf6e620c03bf0b91f19b6d9890cf0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from enum import Enum
from .NormalDist import NormalDist
from .UniformDist import UniformDist
| 42.060606 | 92 | 0.659942 |
4c22a7a412610e81fee1ef9b39c31356e4fa70c7 | 258 | py | Python | test/rename.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | test/rename.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | test/rename.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | import os
import sys
filename = sys.argv[1]
from_id = int(sys.argv[2])
to_id = int(sys.argv[2])
for i in range(from_id, to_id + 1):
sys.system("mv {0}.in{1} {0}{1}.in".format(filename, i))
sys.system("mv {0}.out{1} {0}{1}.out".format(filename, i))
| 23.454545 | 62 | 0.624031 |
4c237eab0c099d5c3321cd95e513399431effe30 | 668 | py | Python | TransitPass/urls.py | Savior-19/Savior19 | b80c05a19ebadf73c3d88656b7c34b761cb02f3c | [
"MIT"
] | null | null | null | TransitPass/urls.py | Savior-19/Savior19 | b80c05a19ebadf73c3d88656b7c34b761cb02f3c | [
"MIT"
] | null | null | null | TransitPass/urls.py | Savior-19/Savior19 | b80c05a19ebadf73c3d88656b7c34b761cb02f3c | [
"MIT"
] | 4 | 2020-05-27T10:02:31.000Z | 2021-07-11T08:14:20.000Z | from django.urls import path
from . import views
urlpatterns = [
path('apply/', views.FillPassApplication, name='transit-pass-application-form'),
path('application-details/<int:appln_id>', views.DisplayApplicationToken, name='application-details'),
path('view-application-list/', views.DisplayApplication... | 39.294118 | 117 | 0.754491 |
4c23f93517014abc612473feea3755466fd55cec | 683 | py | Python | dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py | kozo2/dash-docs | 5140cfd1fda439233e8b95e2443332a32a2453f5 | [
"MIT"
] | 1 | 2021-04-11T03:08:43.000Z | 2021-04-11T03:08:43.000Z | dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py | kozo2/dash-docs | 5140cfd1fda439233e8b95e2443332a32a2453f5 | [
"MIT"
] | null | null | null | dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py | kozo2/dash-docs | 5140cfd1fda439233e8b95e2443332a32a2453f5 | [
"MIT"
] | null | null | null | import dash
from dash.dependencies import Input, Output
import dash_html_components as html
import dash_core_components as dcc
app = dash.Dash(__name__)
app.layout = html.Div([
dcc.Textarea(
id='textarea-example',
value='Textarea content initialized\nwith multiple lines of text',
style={'w... | 26.269231 | 76 | 0.682284 |
4c2449756d626addb11627279707eb2913ce92ba | 490 | py | Python | tests/test_wrapped_driver.py | balexander85/wrapped_driver | 2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1 | [
"MIT"
] | null | null | null | tests/test_wrapped_driver.py | balexander85/wrapped_driver | 2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1 | [
"MIT"
] | null | null | null | tests/test_wrapped_driver.py | balexander85/wrapped_driver | 2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1 | [
"MIT"
] | null | null | null | import pytest
from selenium.common.exceptions import WebDriverException
from wrapped_driver import WrappedDriver
def test_empty_chromedriver_path():
"""Assert error is raised if no chromedriver path is used"""
with pytest.raises(WebDriverException):
WrappedDriver(executable_path="", headless=True)
... | 28.823529 | 64 | 0.763265 |
4c244af15987164d1a6b58af8468dc053923ce6d | 470 | py | Python | eth/vm/forks/petersburg/blocks.py | ggs134/py-evm | 5ad87356181b03c14a2452131f50fe8762127c84 | [
"MIT"
] | 1,641 | 2017-11-24T04:24:22.000Z | 2022-03-31T14:59:30.000Z | eth/vm/forks/petersburg/blocks.py | ggs134/py-evm | 5ad87356181b03c14a2452131f50fe8762127c84 | [
"MIT"
] | 1,347 | 2017-11-23T10:37:36.000Z | 2022-03-20T16:31:44.000Z | eth/vm/forks/petersburg/blocks.py | ggs134/py-evm | 5ad87356181b03c14a2452131f50fe8762127c84 | [
"MIT"
] | 567 | 2017-11-22T18:03:27.000Z | 2022-03-28T17:49:08.000Z | from rlp.sedes import (
CountableList,
)
from eth.rlp.headers import (
BlockHeader,
)
from eth.vm.forks.byzantium.blocks import (
ByzantiumBlock,
)
from .transactions import (
PetersburgTransaction,
)
| 20.434783 | 61 | 0.697872 |
4c249535bfee369b506769f07912c622ac79fe51 | 5,107 | py | Python | tests/runner.py | crnbaker/MONAI | a4b1144efdc27b197410033ae08bd587c8a1634a | [
"Apache-2.0"
] | 1 | 2020-12-03T21:28:09.000Z | 2020-12-03T21:28:09.000Z | tests/runner.py | crnbaker/MONAI | a4b1144efdc27b197410033ae08bd587c8a1634a | [
"Apache-2.0"
] | null | null | null | tests/runner.py | crnbaker/MONAI | a4b1144efdc27b197410033ae08bd587c8a1634a | [
"Apache-2.0"
] | 1 | 2020-06-11T13:03:02.000Z | 2020-06-11T13:03:02.000Z | # Copyright 2020 MONAI Consortium
# 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, s... | 35.22069 | 118 | 0.662033 |
4c25af4aec5e8d2b72efcbe5e7b1a661e7cc9946 | 963 | py | Python | venv/Lib/site-packages/pandas/core/array_algos/transforms.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/core/array_algos/transforms.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/core/array_algos/transforms.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | """
transforms.py is for shape-preserving functions.
"""
import numpy as np
| 24.692308 | 82 | 0.599169 |
4c2609dfb8072ffe05951ef05454ba700de01952 | 789 | py | Python | students/models/group.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | 1 | 2020-03-02T20:55:04.000Z | 2020-03-02T20:55:04.000Z | students/models/group.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | 6 | 2020-06-05T17:18:41.000Z | 2022-03-11T23:14:47.000Z | students/models/group.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext as _
| 29.222222 | 94 | 0.64512 |
4c263e5689af5df6e8fbc9a6cee80e41efe505e2 | 2,319 | py | Python | frontegg/baseConfig/identity_mixin.py | pinikeizman/python-sdk | f8b2188bdf160408adf0068f2e3bd3cd4b0b4655 | [
"MIT"
] | null | null | null | frontegg/baseConfig/identity_mixin.py | pinikeizman/python-sdk | f8b2188bdf160408adf0068f2e3bd3cd4b0b4655 | [
"MIT"
] | null | null | null | frontegg/baseConfig/identity_mixin.py | pinikeizman/python-sdk | f8b2188bdf160408adf0068f2e3bd3cd4b0b4655 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from frontegg.helpers.frontegg_urls import frontegg_urls
import typing
import jwt
import requests
from frontegg.helpers.logger import logger
from jwt import InvalidTokenError
| 32.661972 | 108 | 0.639069 |
4c26b67f1983ed6d013acb44413f671a2be21260 | 7,534 | py | Python | splunk_sdk/action/v1beta2/gen_action_service_api.py | ianlee4/splunk-cloud-sdk-python | d2870cd1e506d3844869d17becdcdf9d8d60a9a1 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2019-08-01T06:16:17.000Z | 2021-04-16T20:00:02.000Z | splunk_sdk/action/v1beta2/gen_action_service_api.py | ianlee4/splunk-cloud-sdk-python | d2870cd1e506d3844869d17becdcdf9d8d60a9a1 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2020-09-27T12:03:24.000Z | 2021-08-06T18:01:32.000Z | splunk_sdk/action/v1beta2/gen_action_service_api.py | ianlee4/splunk-cloud-sdk-python | d2870cd1e506d3844869d17becdcdf9d8d60a9a1 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2019-08-20T17:49:27.000Z | 2022-03-27T16:39:10.000Z | # coding: utf-8
# Copyright 2021 Splunk, 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 agree... | 37.1133 | 177 | 0.668835 |
4c26e9b14a57dad62c0722a56d9cd088844722fb | 97 | py | Python | src/brewlog/home/__init__.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 3 | 2019-03-11T04:30:06.000Z | 2020-01-26T03:21:52.000Z | src/brewlog/home/__init__.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 23 | 2019-02-06T20:37:37.000Z | 2020-06-01T07:08:35.000Z | src/brewlog/home/__init__.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint
home_bp = Blueprint('home', __name__)
from . import views # noqa
| 13.857143 | 37 | 0.731959 |
4c2897e16dece2ba4ecd2dbef042a4f90f011294 | 786 | py | Python | main.py | TheRavehorn/DownloadExecuteReport-Virus | 9df26706e504d1df33e07c09fa56baa28d89f435 | [
"MIT"
] | null | null | null | main.py | TheRavehorn/DownloadExecuteReport-Virus | 9df26706e504d1df33e07c09fa56baa28d89f435 | [
"MIT"
] | null | null | null | main.py | TheRavehorn/DownloadExecuteReport-Virus | 9df26706e504d1df33e07c09fa56baa28d89f435 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import requests
import subprocess
import smtplib
import re
import os
import tempfile
temp_dir = tempfile.gettempdir()
os.chdir(temp_dir)
download("https://github.com/AlessandroZ/LaZagne/releases/download/2.4.3/lazagne.exe") # LaZagne
result = subprocess.check_output("lazagne.exe all", shell... | 24.5625 | 97 | 0.720102 |
4c2951c766fe0cde976ee8004540518c1924599a | 113 | py | Python | SmartAPI/rdf/LinkedList.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | SmartAPI/rdf/LinkedList.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | SmartAPI/rdf/LinkedList.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | from SmartAPI.rdf.List import List
| 16.142857 | 34 | 0.699115 |
4c2a0b02facefb7ade979ad8ea41989718dd6e87 | 13,974 | py | Python | frog/views/gallery.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 3 | 2021-10-03T23:11:24.000Z | 2021-10-04T12:14:56.000Z | frog/views/gallery.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 7 | 2019-10-15T20:51:36.000Z | 2020-02-27T18:25:26.000Z | frog/views/gallery.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 1 | 2020-09-30T11:23:55.000Z | 2020-09-30T11:23:55.000Z | ##################################################################################################
# Copyright (c) 2012 Brett Dixon
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without r... | 30.312364 | 98 | 0.592672 |
4c2be9c37717776782c0be6604333fcf9bf8eb67 | 2,232 | py | Python | pirates/speedchat/PSpeedChatQuestMenu.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/speedchat/PSpeedChatQuestMenu.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/speedchat/PSpeedChatQuestMenu.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.speedchat.PSpeedChatQuestMenu
from otp.speedchat.SCMenu import SCMenu
from otp.speedchat.SCTerminal import *
from otp.speedchat.... | 39.857143 | 106 | 0.670699 |
4c2cd54fa6ab0d6c947d651db03fbbb610a1bf1d | 5,309 | py | Python | spotifyembed/spotifyembed.py | R3XET/coffee-cogs | e7658213449ec140edaaf322514eaafb575f99bd | [
"MIT"
] | null | null | null | spotifyembed/spotifyembed.py | R3XET/coffee-cogs | e7658213449ec140edaaf322514eaafb575f99bd | [
"MIT"
] | null | null | null | spotifyembed/spotifyembed.py | R3XET/coffee-cogs | e7658213449ec140edaaf322514eaafb575f99bd | [
"MIT"
] | null | null | null | # from redbot.core import Config
from redbot.core import Config, commands, checks
import asyncio
import aiohttp
import discord
from discord import Webhook, AsyncWebhookAdapter
import re
| 41.155039 | 197 | 0.595592 |
4c2d9f91e47f374b558a37fc891829c105809bba | 4,714 | py | Python | rlcard/utils/seeding.py | AdrianP-/rlcard | 5b99dc8faa4c97ecac2d1189967b90c45d79624b | [
"MIT"
] | null | null | null | rlcard/utils/seeding.py | AdrianP-/rlcard | 5b99dc8faa4c97ecac2d1189967b90c45d79624b | [
"MIT"
] | null | null | null | rlcard/utils/seeding.py | AdrianP-/rlcard | 5b99dc8faa4c97ecac2d1189967b90c45d79624b | [
"MIT"
] | null | null | null | #The MIT License
#
#Copyright (c) 2020 DATA Lab at Texas A&M University
#Copyright (c) 2016 OpenAI (https://openai.com)
#
#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, inclu... | 41.350877 | 461 | 0.694103 |
4c2f421ab198ddb3faa7c72a6c2f2f1822a0634f | 8,573 | py | Python | ops/transforms.py | ex4sperans/freesound-classification | 71b9920ce0ae376aa7f1a3a2943f0f92f4820813 | [
"Apache-2.0"
] | 55 | 2019-06-30T02:36:10.000Z | 2021-12-07T07:24:42.000Z | ops/transforms.py | ex4sperans/freesound-classification | 71b9920ce0ae376aa7f1a3a2943f0f92f4820813 | [
"Apache-2.0"
] | 13 | 2020-01-28T22:48:34.000Z | 2022-03-11T23:50:36.000Z | ops/transforms.py | ex4sperans/freesound-classification | 71b9920ce0ae376aa7f1a3a2943f0f92f4820813 | [
"Apache-2.0"
] | 7 | 2019-07-21T15:54:16.000Z | 2020-07-22T13:02:37.000Z | import random
import math
from functools import partial
import json
import pysndfx
import librosa
import numpy as np
import torch
from ops.audio import (
read_audio, compute_stft, trim_audio, mix_audio_and_labels,
shuffle_audio, cutout
)
SAMPLE_RATE = 44100
| 22.679894 | 84 | 0.561647 |
4c30506aa8598c0388ff7d67c1b22762e60080e5 | 2,011 | py | Python | figures/pp.py | mathematicalmichael/thesis | 2906b10f94960c3e75bdb48e5b8b583f59b9441e | [
"MIT"
] | 6 | 2019-04-24T08:05:49.000Z | 2020-12-28T20:34:29.000Z | figures/pp.py | mathematicalmichael/thesis | 2906b10f94960c3e75bdb48e5b8b583f59b9441e | [
"MIT"
] | 59 | 2019-12-27T23:15:05.000Z | 2021-11-24T17:52:57.000Z | figures/pp.py | mathematicalmichael/thesis | 2906b10f94960c3e75bdb48e5b8b583f59b9441e | [
"MIT"
] | null | null | null | #!/usr/env/bin python
import os
# os.environ['OMP_NUM_THREADS'] = '1'
from newpoisson import poisson
import numpy as np
from fenics import set_log_level, File, RectangleMesh, Point
mesh = RectangleMesh(Point(0,0), Point(1,1), 36, 36)
# comm = mesh.mpi_comm()
set_log_level(40) # ERROR=40
# from mpi4py import MPI
# com... | 32.967213 | 111 | 0.61462 |
4c308137f6fcaffcc096aaa674f08780ed2a8ef7 | 3,606 | py | Python | additions/irreducible_check.py | kluhan/seraphim | 412b693effb15f80d348d6d885d7c781774bb8aa | [
"MIT"
] | null | null | null | additions/irreducible_check.py | kluhan/seraphim | 412b693effb15f80d348d6d885d7c781774bb8aa | [
"MIT"
] | null | null | null | additions/irreducible_check.py | kluhan/seraphim | 412b693effb15f80d348d6d885d7c781774bb8aa | [
"MIT"
] | null | null | null | """
Irreduzibilittskriterien
Implementiert wurden das Eisenstein- und das Perronkriterium
Quellen:
https://rms.unibuc.ro/bulletin/pdf/53-3/perron.pdf
http://math-www.uni-paderborn.de/~chris/Index33/V/par5.pdf
bergeben werden Polynome vom Typ Polynomial, keine direkten Listen von Koeffiz... | 27.112782 | 121 | 0.646977 |
4c30bd2dd03a5aeb1d8422cd8b6cb2d539652200 | 39,763 | py | Python | numba/stencils/stencil.py | auderson/numba | 3d67c9850ab56457f418cf40af6245fd9c337705 | [
"BSD-2-Clause"
] | 6,620 | 2015-01-04T08:51:04.000Z | 2022-03-31T12:52:18.000Z | numba/stencils/stencil.py | auderson/numba | 3d67c9850ab56457f418cf40af6245fd9c337705 | [
"BSD-2-Clause"
] | 6,457 | 2015-01-04T03:18:41.000Z | 2022-03-31T17:38:42.000Z | numba/stencils/stencil.py | auderson/numba | 3d67c9850ab56457f418cf40af6245fd9c337705 | [
"BSD-2-Clause"
] | 930 | 2015-01-25T02:33:03.000Z | 2022-03-30T14:10:32.000Z | #
# Copyright (c) 2017 Intel Corporation
# SPDX-License-Identifier: BSD-2-Clause
#
import copy
import numpy as np
from llvmlite import ir as lir
from numba.core import types, typing, utils, ir, config, ir_utils, registry
from numba.core.typing.templates import (CallableTemplate, signature,
... | 47.849579 | 141 | 0.554133 |
4c30fc13cf631ce207921b9c3acc713c3fb36b5f | 3,754 | py | Python | examples/bicycle/bicycle_dynamics.py | lujieyang/irs_lqr | bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f | [
"MIT"
] | 6 | 2021-11-20T19:05:06.000Z | 2022-01-31T00:10:41.000Z | examples/bicycle/bicycle_dynamics.py | lujieyang/irs_lqr | bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f | [
"MIT"
] | 10 | 2021-07-24T19:50:36.000Z | 2021-11-20T19:06:40.000Z | examples/bicycle/bicycle_dynamics.py | lujieyang/irs_lqr | bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f | [
"MIT"
] | 1 | 2021-12-15T22:09:31.000Z | 2021-12-15T22:09:31.000Z | import numpy as np
import pydrake.symbolic as ps
import torch
import time
from irs_lqr.dynamical_system import DynamicalSystem
| 28.225564 | 91 | 0.483751 |
4c30fdedde14a46b90015527caf9d689634cdfab | 6,504 | py | Python | apps/proportions.py | harmkenn/PST_Deploy_Test | 2484acf13f1f998c98fa94fad98c1f75c27d292b | [
"MIT"
] | null | null | null | apps/proportions.py | harmkenn/PST_Deploy_Test | 2484acf13f1f998c98fa94fad98c1f75c27d292b | [
"MIT"
] | null | null | null | apps/proportions.py | harmkenn/PST_Deploy_Test | 2484acf13f1f998c98fa94fad98c1f75c27d292b | [
"MIT"
] | null | null | null | import streamlit as st
import math
from scipy.stats import *
import pandas as pd
import numpy as np
from plotnine import *
| 48.177778 | 207 | 0.482934 |
4c31c440814ac777bd4779fa4968cf1b1847bcac | 1,263 | py | Python | integration/v2/test_service_instances.py | subhash12/cf-python-client | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | [
"Apache-2.0"
] | 47 | 2017-12-17T00:54:33.000Z | 2022-02-25T09:54:52.000Z | integration/v2/test_service_instances.py | subhash12/cf-python-client | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | [
"Apache-2.0"
] | 125 | 2017-10-27T09:38:10.000Z | 2022-03-10T07:53:35.000Z | integration/v2/test_service_instances.py | subhash12/cf-python-client | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | [
"Apache-2.0"
] | 50 | 2018-01-19T07:57:21.000Z | 2022-02-14T14:47:31.000Z | import logging
import unittest
from config_test import build_client_from_configuration
_logger = logging.getLogger(__name__)
| 43.551724 | 129 | 0.69517 |
4c31cf7c510d884081297346de14530206f0c46f | 24 | py | Python | runway/core/providers/__init__.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | 134 | 2018-02-26T21:35:23.000Z | 2022-03-03T00:30:27.000Z | runway/core/providers/__init__.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 937 | 2018-03-08T22:04:35.000Z | 2022-03-30T12:21:47.000Z | runway/core/providers/__init__.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 70 | 2018-02-26T23:48:11.000Z | 2022-03-02T18:44:30.000Z | """Runway providers."""
| 12 | 23 | 0.625 |
4c32dcda5e8a9e2b82a81dd52550421a3c5cdcea | 13,265 | py | Python | samples/COVServer.py | noelli/bacpypes | c2f4d753ed86bc0357823e718e7ff16c05f06850 | [
"MIT"
] | null | null | null | samples/COVServer.py | noelli/bacpypes | c2f4d753ed86bc0357823e718e7ff16c05f06850 | [
"MIT"
] | null | null | null | samples/COVServer.py | noelli/bacpypes | c2f4d753ed86bc0357823e718e7ff16c05f06850 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This sample application is a server that supports COV notification services.
The console accepts commands that change the properties of an object that
triggers the notifications.
"""
import time
from threading import Thread
from bacpypes.debugging import bacpypes_debugging, ModuleLogger
fro... | 30.354691 | 87 | 0.618168 |
4c32edf19e346b501323693f4025d8d4782f7d64 | 973 | py | Python | server/glassface/facebookfriender/views.py | theopak/glassface | bcb6c02636bda069d604a4da1dd09222e99be356 | [
"MIT"
] | 1 | 2017-02-24T16:18:24.000Z | 2017-02-24T16:18:24.000Z | server/glassface/facebookfriender/views.py | theopak/glassface | bcb6c02636bda069d604a4da1dd09222e99be356 | [
"MIT"
] | null | null | null | server/glassface/facebookfriender/views.py | theopak/glassface | bcb6c02636bda069d604a4da1dd09222e99be356 | [
"MIT"
] | null | null | null | import os
import platform
import subprocess
from django.http import HttpResponse
from django.conf import settings
| 38.92 | 137 | 0.732785 |
4c330026016ced54e01a326234695f3fe1fb584f | 5,187 | py | Python | fancylit/modeling/yellowbrick_funcs.py | rubyruins/fancylit | 56a7cdfe78edd687a3b318bbbfa534203de1ace8 | [
"Apache-2.0"
] | null | null | null | fancylit/modeling/yellowbrick_funcs.py | rubyruins/fancylit | 56a7cdfe78edd687a3b318bbbfa534203de1ace8 | [
"Apache-2.0"
] | null | null | null | fancylit/modeling/yellowbrick_funcs.py | rubyruins/fancylit | 56a7cdfe78edd687a3b318bbbfa534203de1ace8 | [
"Apache-2.0"
] | null | null | null | import random
import numpy as np
import pandas as pd
import streamlit as st
from sklearn.naive_bayes import GaussianNB
from sklearn.model_selection import train_test_split
from yellowbrick.classifier import classification_report
from yellowbrick.target import FeatureCorrelation
from yellowbrick.target import ClassBalan... | 30.511765 | 389 | 0.614035 |
4c33dde47e4450a45e6aa5280d3a4d98189d8d33 | 14,566 | py | Python | info/modules/admin/views.py | moonbria/test1 | 05893bd91d416ca4093e4619ede427434fa665cc | [
"MIT"
] | null | null | null | info/modules/admin/views.py | moonbria/test1 | 05893bd91d416ca4093e4619ede427434fa665cc | [
"MIT"
] | null | null | null | info/modules/admin/views.py | moonbria/test1 | 05893bd91d416ca4093e4619ede427434fa665cc | [
"MIT"
] | null | null | null | from flask import request
import random
import re
from flask import current_app, jsonify
from flask import g
from flask import make_response
from flask import redirect
from flask import render_template
from flask import request
from flask import session
from flask import url_for
import time
from info import constants, ... | 28.729783 | 87 | 0.604696 |
4c3438c0b1046ec22f1ab42437a0d08677dfe6f2 | 2,839 | py | Python | src/predict_model.py | Swati17293/outlet-prediction | 3c1f41b88d71b5247763bacc9dbc1abf5d0619a2 | [
"MIT"
] | 1 | 2020-10-28T00:05:31.000Z | 2020-10-28T00:05:31.000Z | src/predict_model.py | Swati17293/outlet-prediction | 3c1f41b88d71b5247763bacc9dbc1abf5d0619a2 | [
"MIT"
] | null | null | null | src/predict_model.py | Swati17293/outlet-prediction | 3c1f41b88d71b5247763bacc9dbc1abf5d0619a2 | [
"MIT"
] | 1 | 2021-12-09T14:36:54.000Z | 2021-12-09T14:36:54.000Z | #Answer Generation
import csv
import os
import numpy as np
from keras.models import *
from keras.models import Model
from keras.preprocessing import text
train_ans, anslist = [], []
if __name__ == "__main__":
main() | 27.038095 | 89 | 0.534343 |
4c353955c991e91d2a8ac820fc6be7fa23bb7348 | 716 | py | Python | tools/client.py | Alisa1114/yolov4-pytorch-1 | 5dd8768f2eef868c9ee4588818350d4e1b50b98f | [
"MIT"
] | null | null | null | tools/client.py | Alisa1114/yolov4-pytorch-1 | 5dd8768f2eef868c9ee4588818350d4e1b50b98f | [
"MIT"
] | null | null | null | tools/client.py | Alisa1114/yolov4-pytorch-1 | 5dd8768f2eef868c9ee4588818350d4e1b50b98f | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from socket import *
if __name__=='__main__':
client()
# buffer='POST /post HTTP/1.1\r\n'
# buffer+='Content-Type:application/json\r\n'
# buffer+='Body:{\\"StuId\\":\\"410785016 Chao,He-Teng\\"}\r\n'
# buffer+='Address : ' + address + '\r\n'
# buffer+='\r\n'
# print(buffer)
# message = ... | 25.571429 | 64 | 0.624302 |
4c35e02888592e1186585689132cd3d10b0f4a6d | 13,039 | py | Python | dapy/models/kuramoto_sivashinsky.py | hassaniqbal209/data-assimilation | ec52d655395dbed547edf4b4f3df29f017633f1b | [
"MIT"
] | 11 | 2020-07-29T07:46:39.000Z | 2022-03-17T01:28:07.000Z | dapy/models/kuramoto_sivashinsky.py | hassaniqbal209/data-assimilation | ec52d655395dbed547edf4b4f3df29f017633f1b | [
"MIT"
] | 1 | 2020-07-14T11:49:17.000Z | 2020-07-29T07:43:22.000Z | dapy/models/kuramoto_sivashinsky.py | hassaniqbal209/data-assimilation | ec52d655395dbed547edf4b4f3df29f017633f1b | [
"MIT"
] | 10 | 2020-07-14T11:34:24.000Z | 2022-03-07T09:08:12.000Z | """Non-linear SPDE model on a periodic 1D spatial domain for laminar wave fronts.
Based on the Kuramato--Sivashinsky PDE model [1, 2] which exhibits spatio-temporally
chaotic dynamics.
References:
1. Kuramoto and Tsuzuki. Persistent propagation of concentration waves
in dissipative media far from thermal ... | 47.072202 | 88 | 0.666692 |
4c3723af9b53c7e19a14d4d5a300a57c775f6c8c | 553 | py | Python | setup.py | Lif3line/myo-helper | 7c71a3ee693661ddba0171545bf5798f46231b3c | [
"MIT"
] | null | null | null | setup.py | Lif3line/myo-helper | 7c71a3ee693661ddba0171545bf5798f46231b3c | [
"MIT"
] | null | null | null | setup.py | Lif3line/myo-helper | 7c71a3ee693661ddba0171545bf5798f46231b3c | [
"MIT"
] | null | null | null | """Utiltiy functions for working with Myo Armband data."""
from setuptools import setup, find_packages
setup(name='myo_helper',
version='0.1',
description='Utiltiy functions for working with Myo Armband data',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
license='MIT',
... | 27.65 | 85 | 0.631103 |
4c3bcf54b28a72322eb20b3cefe8c6d28943d5e4 | 1,030 | py | Python | demos/restful-users/index.py | karldoenitz/karlooper | 2e1df83ed1ec9b343cdd930162a4de7ecd149c04 | [
"MIT"
] | 161 | 2016-05-17T12:44:07.000Z | 2020-07-30T02:18:34.000Z | demos/restful-users/index.py | karldoenitz/karlooper | 2e1df83ed1ec9b343cdd930162a4de7ecd149c04 | [
"MIT"
] | 6 | 2016-08-29T01:40:26.000Z | 2017-12-29T09:20:41.000Z | demos/restful-users/index.py | karldoenitz/karlooper | 2e1df83ed1ec9b343cdd930162a4de7ecd149c04 | [
"MIT"
] | 16 | 2016-06-27T02:56:54.000Z | 2019-08-08T08:18:48.000Z | # -*-encoding:utf-8-*-
import os
from karlooper.web.application import Application
from karlooper.web.request import Request
url_mapping = {
"/users": UsersHandler,
"/user-info": UserInfoHandler
}
settings = {
"template": os.getcwd() + "/templates",
"static": os.getcwd() + "/templates",
"log_e... | 23.409091 | 99 | 0.61165 |
4c3c325909dda45d25ada2b46ed9a46e19b99dfc | 4,154 | py | Python | temporal_transforms.py | LijiangLong/3D-ResNets-PyTorch | 89d2cba0b52d55aaa834635a81c172bc38771cd3 | [
"MIT"
] | null | null | null | temporal_transforms.py | LijiangLong/3D-ResNets-PyTorch | 89d2cba0b52d55aaa834635a81c172bc38771cd3 | [
"MIT"
] | null | null | null | temporal_transforms.py | LijiangLong/3D-ResNets-PyTorch | 89d2cba0b52d55aaa834635a81c172bc38771cd3 | [
"MIT"
] | null | null | null | import random
import math
| 26.974026 | 115 | 0.590515 |
4c3c84ef8550fb8c1fe9332f31bf0fbd72087616 | 1,206 | py | Python | cli/waiter/subcommands/kill.py | geofft/waiter | 0e10cd497c2c679ea43231866d9f803c3fed5d77 | [
"Apache-2.0"
] | null | null | null | cli/waiter/subcommands/kill.py | geofft/waiter | 0e10cd497c2c679ea43231866d9f803c3fed5d77 | [
"Apache-2.0"
] | null | null | null | cli/waiter/subcommands/kill.py | geofft/waiter | 0e10cd497c2c679ea43231866d9f803c3fed5d77 | [
"Apache-2.0"
] | null | null | null | from waiter.action import process_kill_request
from waiter.util import guard_no_cluster, check_positive
def kill(clusters, args, _, __):
"""Kills the service(s) using the given token name."""
guard_no_cluster(clusters)
token_name_or_service_id = args.get('token-or-service-id')
is_service_id = args.get... | 46.384615 | 115 | 0.694859 |
4c3ccdaafeb79fdce0197fde1a5c4f83054573ab | 3,338 | py | Python | a2t/src/a2t.py | syeda-khurrath/fabric8-analytics-common | 421f7e27869c5695ed73b51e6422e097aba00108 | [
"Apache-2.0"
] | null | null | null | a2t/src/a2t.py | syeda-khurrath/fabric8-analytics-common | 421f7e27869c5695ed73b51e6422e097aba00108 | [
"Apache-2.0"
] | 4 | 2019-05-20T08:27:47.000Z | 2019-05-20T08:29:57.000Z | a2t/src/a2t.py | codeready-analytics/fabric8-analytics-common | a763c5534d601f2f40a0f02c02914c49ea23669d | [
"Apache-2.0"
] | 1 | 2020-10-05T21:12:44.000Z | 2020-10-05T21:12:44.000Z | """The main module of the Analytics API Load Tests tool.
Copyright (c) 2019 Red Hat Inc.
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 late... | 30.345455 | 90 | 0.65698 |
4c3d2c0aac2c057e54b3e25d8827904204518172 | 3,568 | py | Python | riscv_ctg/ctg.py | Giri2801/riscv-ctg | a90e03f0856bbdd106c3f6d51815af94707e711e | [
"BSD-3-Clause"
] | null | null | null | riscv_ctg/ctg.py | Giri2801/riscv-ctg | a90e03f0856bbdd106c3f6d51815af94707e711e | [
"BSD-3-Clause"
] | null | null | null | riscv_ctg/ctg.py | Giri2801/riscv-ctg | a90e03f0856bbdd106c3f6d51815af94707e711e | [
"BSD-3-Clause"
] | null | null | null | # See LICENSE.incore file for details
import os,re
import multiprocessing as mp
import time
import shutil
from riscv_ctg.log import logger
import riscv_ctg.utils as utils
import riscv_ctg.constants as const
from riscv_isac.cgf_normalize import expand_cgf
from riscv_ctg.generator import Generator
from math import *
fr... | 37.166667 | 114 | 0.626962 |
4c3e29e2ae1ab7be40f9cfea714aae230e6e4e54 | 2,146 | py | Python | Back-End/Python/timers/clock_named_tuple.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 25 | 2021-04-28T02:51:26.000Z | 2022-03-24T13:58:04.000Z | Back-End/Python/timers/clock_named_tuple.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 1 | 2022-03-03T23:33:41.000Z | 2022-03-03T23:35:41.000Z | Back-End/Python/timers/clock_named_tuple.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 15 | 2021-05-30T01:35:20.000Z | 2022-03-25T12:38:25.000Z | from collections import namedtuple
MainTimer = namedtuple('MainTimer', 'new_time_joined, end_period, new_weekday, days')
print('---'*30)
x = add_time('10:00 AM', '54:00', 'Monday')
print(x)
print('---'*30) | 32.029851 | 102 | 0.592265 |
4c405ed31ecc4361eadac459e688c3b9b4ba7bba | 225 | py | Python | mlsurvey/visualize/__init__.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | mlsurvey/visualize/__init__.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | mlsurvey/visualize/__init__.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | from .analyze_logs import AnalyzeLogs
from .search_interface import SearchInterface
from .detail_interface import DetailInterface
from .user_interface import UserInterface
from .visualize_log_detail import VisualizeLogDetail
| 37.5 | 52 | 0.888889 |
4c4211ba5dbc8c290d97362485169fd20badaf8a | 816 | py | Python | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | phunc20/dsp | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | [
"MIT"
] | 1 | 2021-03-12T18:32:06.000Z | 2021-03-12T18:32:06.000Z | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | phunc20/dsp | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | [
"MIT"
] | null | null | null | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | phunc20/dsp | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import sys
sys.path.append('../../../software/models/')
import dftModel as DFT
import math
k0 = 8.5
N = 64
w = np.ones(N)
x = np.cos(2*np.pi*k0/N*np.arange(-N/2,N/2))
mX, pX = DFT.dftAnal(x, w, N)
y = DFT.dftSynth(mX, pX, N)
plt.figure(1, figsize=(9.5, 5))
plt.subpl... | 23.314286 | 56 | 0.654412 |
4c43be0918680e081f3bcc9acc58506e39754d60 | 1,421 | py | Python | setup.py | jerzydziewierz/typobs | 15fa697386f5fb3a1df53b865557c338be235d91 | [
"Apache-2.0"
] | null | null | null | setup.py | jerzydziewierz/typobs | 15fa697386f5fb3a1df53b865557c338be235d91 | [
"Apache-2.0"
] | null | null | null | setup.py | jerzydziewierz/typobs | 15fa697386f5fb3a1df53b865557c338be235d91 | [
"Apache-2.0"
] | null | null | null | # setup.py as described in:
# https://stackoverflow.com/questions/27494758/how-do-i-make-a-python-script-executable
# to install on your system, run:
# > pip install -e .
from setuptools import setup, find_packages
setup(
name='typobs',
version='0.0.3',
entry_points={
'console_scripts': [
... | 36.435897 | 87 | 0.640394 |
4c43f28c0f9c6fae0da417c39d88b7b2698c63a6 | 5,775 | py | Python | tests/fixtures.py | ehelms/system-baseline-backend | 729cc8ba53119a7ed397fb3ea3d46f9ecedb8528 | [
"Apache-2.0"
] | null | null | null | tests/fixtures.py | ehelms/system-baseline-backend | 729cc8ba53119a7ed397fb3ea3d46f9ecedb8528 | [
"Apache-2.0"
] | null | null | null | tests/fixtures.py | ehelms/system-baseline-backend | 729cc8ba53119a7ed397fb3ea3d46f9ecedb8528 | [
"Apache-2.0"
] | null | null | null | """
decoded AUTH_HEADER (newlines added for readability):
{
"identity": {
"account_number": "1234",
"internal": {
"org_id": "5678"
},
"type": "User",
"user": {
"email": "test@example.com",
"first_name": "Firstname",
"is_active":... | 31.557377 | 81 | 0.66303 |
4c449a22ce009dfff20f9f81e80e2e5aae88a200 | 3,200 | py | Python | 2021-02-03/2.py | Elfenreigen/MCM-2021-C-SJTU-Test | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | [
"MIT"
] | 1 | 2022-01-24T11:59:40.000Z | 2022-01-24T11:59:40.000Z | 2021-02-03/2.py | Elfenreigen/MCM-2021-C-SJTU-Test | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | [
"MIT"
] | null | null | null | 2021-02-03/2.py | Elfenreigen/MCM-2021-C-SJTU-Test | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | [
"MIT"
] | null | null | null | #####Time Flow Simulation######
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from datetime import timedelta
import datetime
import csv
data=pd.read_excel('CF66-all.xlsx')
data.sort_values(by=['WBL_AUD_DT'],ascending=True,inplace=True)
or_data=pd.read_excel('CF66-ordinary.xlsx')
rul... | 27.118644 | 121 | 0.62375 |
4c483ae5f1b2a18e4178f810a8a5efb2cf0ef940 | 776 | py | Python | tests/test_selection.py | qrebjock/fanok | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | [
"MIT"
] | null | null | null | tests/test_selection.py | qrebjock/fanok | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | [
"MIT"
] | null | null | null | tests/test_selection.py | qrebjock/fanok | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | [
"MIT"
] | 1 | 2020-08-26T12:20:26.000Z | 2020-08-26T12:20:26.000Z | import pytest
import numpy as np
from fanok.selection import adaptive_significance_threshold
| 27.714286 | 79 | 0.474227 |
4c49699fa44232922a69a87e2fa00808e22b315a | 7,256 | py | Python | unitcap/unit_cap.py | fintelia/habitationi | 7dd15ecbab0ad63a70505920766de9c27294fb6e | [
"Apache-2.0"
] | 1 | 2021-10-03T14:44:38.000Z | 2021-10-03T14:44:38.000Z | unitcap/unit_cap.py | fintelia/habitationi | 7dd15ecbab0ad63a70505920766de9c27294fb6e | [
"Apache-2.0"
] | null | null | null | unitcap/unit_cap.py | fintelia/habitationi | 7dd15ecbab0ad63a70505920766de9c27294fb6e | [
"Apache-2.0"
] | 1 | 2021-02-20T23:22:10.000Z | 2021-02-20T23:22:10.000Z | #!/usr/bin/python
# Copyright 2019 Christopher Schmidt
#
# 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... | 32.106195 | 108 | 0.553335 |
4c4972e50ba94dc3591b0fc9fac43e37a601a455 | 25 | py | Python | matrix/__init__.py | AbhiK002/Matrix | 2d83f08877dccba9e4c710bd5fb65f613848d63f | [
"MIT"
] | 2 | 2022-02-11T04:39:21.000Z | 2022-02-12T15:50:35.000Z | matrix/__init__.py | AbhiK002/Matrix | 2d83f08877dccba9e4c710bd5fb65f613848d63f | [
"MIT"
] | null | null | null | matrix/__init__.py | AbhiK002/Matrix | 2d83f08877dccba9e4c710bd5fb65f613848d63f | [
"MIT"
] | null | null | null | from .main import Matrix
| 12.5 | 24 | 0.8 |
4c497bbd6391fbc0eaad2b9548fcee8c07a53d5e | 2,348 | py | Python | samples/cmk/test.py | jasstionzyf/Mask_RCNN | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb | [
"MIT"
] | null | null | null | samples/cmk/test.py | jasstionzyf/Mask_RCNN | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb | [
"MIT"
] | null | null | null | samples/cmk/test.py | jasstionzyf/Mask_RCNN | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb | [
"MIT"
] | null | null | null |
import os
import sys
import json
import datetime
import numpy as np
import glob
import skimage
from PIL import Image as pil_image
import cv2
import cv2
dataset_dir='/Volumes/v2/data/mlib_data/dataset/cmk/images_v2/'
subset='val'
load_cmk(dataset_dir=dataset_dir,subset=subset)
lo... | 18.488189 | 77 | 0.559199 |
4c49c1d6c63daaf7fca0ba56abe4608634b5eea3 | 371 | py | Python | myBeautifulSoup.py | ZhongXinWang/python | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | [
"Apache-2.0"
] | null | null | null | myBeautifulSoup.py | ZhongXinWang/python | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | [
"Apache-2.0"
] | null | null | null | myBeautifulSoup.py | ZhongXinWang/python | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Author:Winston.Wang
import requests
from bs4 import BeautifulSoup
print(dir(BeautifulSoup))
url = 'http://www.baidu.com';
with requests.get(url) as r:
r.encoding='utf-8'
soup = BeautifulSoup(r.text)
#
pret = soup.prettify();
u = soup.select('#u1 a')
for i in u:
pr... | 24.733333 | 52 | 0.660377 |
4c4aaf6acc32d2b6cfe7656b0adf41a02eba514c | 869 | py | Python | blogsNewsModule/urls.py | adityakekare/NewsAPIDjango | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | [
"MIT"
] | 1 | 2020-10-14T17:13:45.000Z | 2020-10-14T17:13:45.000Z | blogsNewsModule/urls.py | adityakekare/NewsAPIDjango | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | [
"MIT"
] | null | null | null | blogsNewsModule/urls.py | adityakekare/NewsAPIDjango | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
urlpatterns = [
path("", views.newsView, name="home"),
path("createBlog", views.CreateBlogView.as_view(), name="createBlog"),
path("myBlogs", views.PostListView.as_view(), name="myBlogs"),
path("single/<int:pk>", views.PostDetailView.as_view(), ... | 41.380952 | 75 | 0.667434 |
4c4ab4331dee2d296afdfa6d9310db62fe1c4c93 | 3,133 | py | Python | unitClass.py | MatthewZheng/UnitsPlease | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | [
"MIT"
] | null | null | null | unitClass.py | MatthewZheng/UnitsPlease | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | [
"MIT"
] | null | null | null | unitClass.py | MatthewZheng/UnitsPlease | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | [
"MIT"
] | null | null | null | #!/usr/bin/python
_author_ = "Matthew Zheng"
_purpose_ = "Sets up the unit class"
| 42.917808 | 192 | 0.509416 |
4c4be3eb705a80e6147920908a86da5673e90f59 | 918 | py | Python | week4/string_format.py | MathAdventurer/Data_Mining | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | [
"MIT"
] | 1 | 2021-02-27T18:35:39.000Z | 2021-02-27T18:35:39.000Z | week4/string_format.py | MathAdventurer/Data_Mining | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | [
"MIT"
] | null | null | null | week4/string_format.py | MathAdventurer/Data_Mining | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 22:23:07 2020
@author: Neal LONG
Try to construct URL with string.format
"""
base_url = "http://quotes.money.163.com/service/gszl_{:>06}.html?type={}"
stock = "000002"
api_type = 'cp'
print("http://quotes.money.163.com/service/gszl_"+stock+".html?type="... | 27 | 80 | 0.623094 |
4c4da9a43e106d41a3befb2cd7c5b3dab87492dd | 274 | py | Python | conans/server/server_launcher.py | Wonders11/conan | 28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8 | [
"MIT"
] | 6,205 | 2015-12-01T13:40:05.000Z | 2022-03-31T07:30:25.000Z | conans/server/server_launcher.py | Wonders11/conan | 28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8 | [
"MIT"
] | 8,747 | 2015-12-01T16:28:48.000Z | 2022-03-31T23:34:53.000Z | conans/server/server_launcher.py | Mattlk13/conan | 005fc53485557b0a570bb71670f2ca9c66082165 | [
"MIT"
] | 961 | 2015-12-01T16:56:43.000Z | 2022-03-31T13:50:52.000Z | from conans.server.launcher import ServerLauncher
from conans.util.env_reader import get_env
launcher = ServerLauncher(server_dir=get_env("CONAN_SERVER_HOME"))
app = launcher.server.root_app
if __name__ == "__main__":
main()
| 18.266667 | 66 | 0.762774 |
4c4dd7e5ec767d2a5876ed8c611d8ac4661dfd09 | 153,586 | py | Python | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | praveenkuttappan/azure-sdk-for-python | 4b79413667b7539750a6c7dde15737013a3d4bd5 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.473447 | 815 | 0.658563 |
4c4fedd0e6fc912cf1a282846b6e90c655a094c7 | 69,123 | py | Python | blender/arm/material/cycles.py | philipmduarte/armory | 675211c66a1e49147226ccb472a6f5dc87b7db02 | [
"Zlib"
] | 1 | 2021-03-17T05:51:45.000Z | 2021-03-17T05:51:45.000Z | blender/arm/material/cycles.py | philipmduarte/armory | 675211c66a1e49147226ccb472a6f5dc87b7db02 | [
"Zlib"
] | null | null | null | blender/arm/material/cycles.py | philipmduarte/armory | 675211c66a1e49147226ccb472a6f5dc87b7db02 | [
"Zlib"
] | null | null | null | #
# This module builds upon Cycles nodes work licensed as
# Copyright 2011-2013 Blender Foundation
#
# 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... | 39.207601 | 185 | 0.567568 |
4c4ffee559cb6b71ce9c01f453a956254f1cdb8a | 9,981 | py | Python | src/config.py | Jizanator/botty | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | [
"MIT"
] | null | null | null | src/config.py | Jizanator/botty | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | [
"MIT"
] | null | null | null | src/config.py | Jizanator/botty | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | [
"MIT"
] | null | null | null | import configparser
import numpy as np
import os
if __name__ == "__main__":
config = Config(print_warnings=True)
# Check if any added items miss templates
for k in config.items:
if not os.path.exists(f"./assets/items/{k}.png"):
print(f"Template not found: {k}")
# C... | 55.45 | 164 | 0.616772 |
4c50b18cade6c81fd3dffac9c31804d4407603cf | 19,446 | py | Python | aps/transform/utils.py | haoxiangsnr/aps | 38f77139b54553b0cb04b26a833bebbbf3177c5e | [
"Apache-2.0"
] | 2 | 2021-06-17T20:29:02.000Z | 2021-09-18T01:56:36.000Z | aps/transform/utils.py | haoxiangsnr/aps | 38f77139b54553b0cb04b26a833bebbbf3177c5e | [
"Apache-2.0"
] | null | null | null | aps/transform/utils.py | haoxiangsnr/aps | 38f77139b54553b0cb04b26a833bebbbf3177c5e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Jian Wu
# License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
import math
import numpy as np
import torch as th
import torch.nn as nn
import torch.nn.functional as tf
import librosa.filters as filters
from aps.const import EPSILON
from typing import Optional, Union, Tuple
def init_win... | 34.849462 | 121 | 0.538671 |
4c517119112a50b7dbf0616dc32615e3180ecafa | 3,427 | py | Python | applications/tensorflow/cnns/models/resnet.py | xihuaiwen/chinese_bert | 631afbc76c40b0ac033be2186e717885246f446c | [
"MIT"
] | null | null | null | applications/tensorflow/cnns/models/resnet.py | xihuaiwen/chinese_bert | 631afbc76c40b0ac033be2186e717885246f446c | [
"MIT"
] | null | null | null | applications/tensorflow/cnns/models/resnet.py | xihuaiwen/chinese_bert | 631afbc76c40b0ac033be2186e717885246f446c | [
"MIT"
] | null | null | null | # Copyright 2019 Graphcore Ltd.
from models.resnet_base import ResNet
import tensorflow.compat.v1 as tf
import tensorflow.contrib as contrib
from tensorflow.python.ipu import normalization_ops
# This is all written for: NHWC
| 38.505618 | 101 | 0.569594 |
4c545b9b4e257d67ea1869f9e75cf7e1b7bca4c8 | 613 | py | Python | backend/app/migrations/0021_auto_20201205_1846.py | mareknowak98/AuctionPortal | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | [
"MIT"
] | null | null | null | backend/app/migrations/0021_auto_20201205_1846.py | mareknowak98/AuctionPortal | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | [
"MIT"
] | null | null | null | backend/app/migrations/0021_auto_20201205_1846.py | mareknowak98/AuctionPortal | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-05 18:46
from django.db import migrations, models
| 25.541667 | 73 | 0.60522 |
4c551d5c25c26d348d1738fdb22529ee094e17ed | 8,942 | py | Python | rawcdf_extract.py | bedaro/ssm-analysis | 09880dbfa5733d6301b84accc8f42a5ee320d698 | [
"MIT"
] | null | null | null | rawcdf_extract.py | bedaro/ssm-analysis | 09880dbfa5733d6301b84accc8f42a5ee320d698 | [
"MIT"
] | null | null | null | rawcdf_extract.py | bedaro/ssm-analysis | 09880dbfa5733d6301b84accc8f42a5ee320d698 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import time
import os
import tempfile
import shutil
import logging
from enum import Enum
from argparse import ArgumentParser, Namespace, FileType
from netCDF4 import Dataset, MFDataset
import geopandas as gpd
import numpy as np
domain_nodes_shp = "gis/ssm domain nodes.shp"
masked_nodes_txt = "g... | 40.461538 | 117 | 0.64225 |
4c55251ed58f769e9fbe55114b14a016770952cb | 1,075 | py | Python | libcity/executor/map_matching_executor.py | nadiaaaaachen/Bigscity-LibCity | d8efd38fcc238e3ba518c559cc9f65b49efaaf71 | [
"Apache-2.0"
] | 1 | 2021-11-22T12:22:32.000Z | 2021-11-22T12:22:32.000Z | libcity/executor/map_matching_executor.py | yuanhaitao/Bigscity-LibCity | 9670c6a2f26043bb8d9cc1715780bb599cce2cd5 | [
"Apache-2.0"
] | null | null | null | libcity/executor/map_matching_executor.py | yuanhaitao/Bigscity-LibCity | 9670c6a2f26043bb8d9cc1715780bb599cce2cd5 | [
"Apache-2.0"
] | null | null | null | from logging import getLogger
from libcity.executor.abstract_tradition_executor import AbstractTraditionExecutor
from libcity.utils import get_evaluator
| 29.861111 | 94 | 0.652093 |
4c55a30419a518ea1054e9871ae5c2c7cf5db9f5 | 307 | py | Python | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | sujeethiremath/Project-1 | 7f0bff66287d479e231e123615f2df18f9107178 | [
"MIT"
] | null | null | null | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | sujeethiremath/Project-1 | 7f0bff66287d479e231e123615f2df18f9107178 | [
"MIT"
] | null | null | null | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | sujeethiremath/Project-1 | 7f0bff66287d479e231e123615f2df18f9107178 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-04-08 00:08
from django.db import migrations
| 18.058824 | 47 | 0.618893 |
4c55bbb06ea35dd59d573da6a8f782da8c81fbf2 | 3,548 | py | Python | tutorial/43.py | mssung94/daishin-trading-system | d6682495afb7a08e68db65537b1d1789f2996891 | [
"MIT"
] | 2 | 2020-11-21T08:45:26.000Z | 2020-11-21T08:50:56.000Z | tutorial/43.py | mssung94/daishin-trading-system | d6682495afb7a08e68db65537b1d1789f2996891 | [
"MIT"
] | null | null | null | tutorial/43.py | mssung94/daishin-trading-system | d6682495afb7a08e68db65537b1d1789f2996891 | [
"MIT"
] | null | null | null | # API
# 2 BlockRequest Request
# API 2
#
# BlockRequest -
# Request Received
#
# 2
# BlockRequest
# , BlockRequest
#
# Request .
import pythoncom
from PyQt5.QtWidgets import *
import win32com.client
import win32even... | 31.39823 | 84 | 0.590755 |
4c55db68c1c667219febb6705164366e8f8c7adb | 18,439 | py | Python | ADPTC_LIB/DPTree_ST.py | SuilandCoder/ADPTC_LIB | ef5c2b7fcf117c8c90a3841489471289ecbf4562 | [
"MIT"
] | null | null | null | ADPTC_LIB/DPTree_ST.py | SuilandCoder/ADPTC_LIB | ef5c2b7fcf117c8c90a3841489471289ecbf4562 | [
"MIT"
] | null | null | null | ADPTC_LIB/DPTree_ST.py | SuilandCoder/ADPTC_LIB | ef5c2b7fcf117c8c90a3841489471289ecbf4562 | [
"MIT"
] | null | null | null | #%%
import numpy as np
import copy
import matplotlib.pyplot as plt
import time
def split_cluster_new(tree,local_density,dc_eps,closest_denser_nodes_id,mixin_near_matrix):
'''
dc_eps: density_connectivity
outlier
outlier_forest
cluster_forest
'''
m... | 38.575314 | 186 | 0.633548 |
4c56a26b957f0f1d768b5949bae27c075bbc9817 | 10,280 | py | Python | datasets/tao/tao.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 9 | 2022-03-15T17:28:48.000Z | 2022-03-29T12:32:28.000Z | datasets/tao/tao.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T06:03:14.000Z | 2022-03-29T13:38:29.000Z | datasets/tao/tao.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-15T19:34:06.000Z | 2022-03-15T19:34:06.000Z | from __future__ import print_function
import sys
sys.path.append('.')
import os
from typing import Optional, Union
import cv2
import numpy as np
import PIL.Image as Image
import pickle
import torch
from torch.utils import data
__all__ = ["TAO"] | 41.788618 | 135 | 0.569163 |
4c573a085ee0bd360c33de2b14ef3c06c724afc8 | 2,572 | py | Python | Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 2 | 2017-09-14T08:07:55.000Z | 2021-05-18T05:05:05.000Z | Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 111 | 2018-04-15T14:32:14.000Z | 2021-03-28T21:06:29.000Z | Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 1 | 2018-04-15T13:24:44.000Z | 2018-04-15T13:24:44.000Z | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from Platforms.Web.main_web import PhaazebotWeb
import json
from aiohttp.web import Response
from Utils.Classes.extendedrequest import ExtendedRequest
| 28.577778 | 127 | 0.691291 |
4c59684045a1dab8436432732a93183e33f7d39d | 3,853 | py | Python | augmentation/ISDA.py | RichardScottOZ/sota-data-augmentation-and-optimizers | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | [
"MIT"
] | 31 | 2020-01-14T20:03:31.000Z | 2022-01-07T08:02:09.000Z | augmentation/ISDA.py | RichardScottOZ/sota-data-augmentation-and-optimizers | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | [
"MIT"
] | null | null | null | augmentation/ISDA.py | RichardScottOZ/sota-data-augmentation-and-optimizers | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | [
"MIT"
] | 6 | 2020-03-04T09:31:45.000Z | 2021-11-21T18:47:15.000Z | import torch
import torch.nn as nn
| 29.868217 | 104 | 0.536465 |
4c59cbad1a1c628d8be0abf3472039d2b0fe36c6 | 22,828 | py | Python | netpyne/plotting/plotter.py | sanjayankur31/netpyne | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | [
"MIT"
] | null | null | null | netpyne/plotting/plotter.py | sanjayankur31/netpyne | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | [
"MIT"
] | null | null | null | netpyne/plotting/plotter.py | sanjayankur31/netpyne | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | [
"MIT"
] | null | null | null | """
Module for plotting analyses
"""
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import pickle, json
import os
from matplotlib.offsetbox import AnchoredOffsetbox
try:
basestring
except NameError:
basestring = str
colorList = [[0.42, 0.67, 0.84], [0.... | 34.535552 | 376 | 0.56987 |
4c5b0cb42835f92d5cfa623b7b0648900462ba33 | 1,069 | py | Python | examples/simpleWiki.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 1 | 2021-10-30T21:18:29.000Z | 2021-10-30T21:18:29.000Z | examples/simpleWiki.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 22 | 2020-04-15T14:49:30.000Z | 2021-12-22T02:49:52.000Z | examples/simpleWiki.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | null | null | null | from mo_parsing.helpers import QuotedString
wikiInput = """
Here is a simple Wiki input:
*This is in italics.*
**This is in bold!**
***This is in bold italics!***
Here's a URL to {{Pyparsing's Wiki Page->https://site-closed.wikispaces.com}}
"""
italicized = QuotedString("*").add_parse_action(con... | 28.131579 | 91 | 0.635173 |
4c5b215bf00e243da89ca4e94c55e9e94a7ff44a | 9,885 | py | Python | tests/test_app_settings_dict.py | wheelercj/app_settings | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | [
"MIT"
] | null | null | null | tests/test_app_settings_dict.py | wheelercj/app_settings | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | [
"MIT"
] | null | null | null | tests/test_app_settings_dict.py | wheelercj/app_settings | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | [
"MIT"
] | null | null | null | import pytest
import re
from typing import Any, Tuple
from dataclasses import dataclass
from app_settings_dict import Settings
| 27.84507 | 86 | 0.527466 |
4c5b696f9bc64bbbc8bda141e564e9a8de0891a8 | 5,910 | py | Python | demo/demo_FSANET_ssd.py | jacke121/FSA-Net | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | [
"Apache-2.0"
] | null | null | null | demo/demo_FSANET_ssd.py | jacke121/FSA-Net | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | [
"Apache-2.0"
] | null | null | null | demo/demo_FSANET_ssd.py | jacke121/FSA-Net | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | [
"Apache-2.0"
] | null | null | null | import os
import time
import cv2
import sys
sys.path.append('..')
import numpy as np
from math import cos, sin
from lib.FSANET_model import *
import numpy as np
from keras.layers import Average
if __name__ == '__main__':
main()
| 34.16185 | 122 | 0.577496 |
4c5b93a68b2014eb34642b9dabeaf09a9053d01e | 5,118 | py | Python | examples/app_commands/slash_autocomplete.py | Mihitoko/pycord | 137c1474eed5fb4273e542bd22ad76764a8712fc | [
"MIT"
] | null | null | null | examples/app_commands/slash_autocomplete.py | Mihitoko/pycord | 137c1474eed5fb4273e542bd22ad76764a8712fc | [
"MIT"
] | null | null | null | examples/app_commands/slash_autocomplete.py | Mihitoko/pycord | 137c1474eed5fb4273e542bd22ad76764a8712fc | [
"MIT"
] | 1 | 2022-02-20T09:10:40.000Z | 2022-02-20T09:10:40.000Z | import discord
from discord.commands import option
bot = discord.Bot(debug_guilds=[...])
COLORS = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]
LOTS_OF_COLORS = [
"aliceblue",
"antiquewhite",
"aqua",
"aquamarine",
"azure",
"beige",
"bisque",
"blueviolet",
"brown... | 27.079365 | 112 | 0.657679 |
4c5bad7796ac5e7201e5d6fb5312abee3b503a5c | 11,522 | py | Python | tools/Networking/sybil_block_no_ban.py | simewu/bitcoin_researcher | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | [
"MIT"
] | 1 | 2020-02-15T21:44:04.000Z | 2020-02-15T21:44:04.000Z | tools/Networking/sybil_block_no_ban.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | tools/Networking/sybil_block_no_ban.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | from _thread import start_new_thread
from bitcoin.messages import *
from bitcoin.net import CAddress
from bitcoin.core import CBlock
from io import BytesIO as _BytesIO
import atexit
import bitcoin
import fcntl
import hashlib
import json
import os
import random
import re
import socket
import struct
import sys
import tim... | 34.497006 | 359 | 0.743881 |
4c5c39c5c86dfe51c79bcbc35385263a0ba508a1 | 1,638 | py | Python | spider/db.py | aloneZERO/douban-movie-visualization | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | [
"WTFPL"
] | null | null | null | spider/db.py | aloneZERO/douban-movie-visualization | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | [
"WTFPL"
] | null | null | null | spider/db.py | aloneZERO/douban-movie-visualization | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | [
"WTFPL"
] | null | null | null | #!python3
'''
author: justZero
email: alonezero@foxmail.com
date: 2017-8-6
'''
import time
import pandas as pd
import numpy as np
import pymysql
import pymysql.cursors
import pprint
if __name__ == '__main__':
inputFile = 'data/douban_movie_clean.txt'
movies_df = pd.read_csv(inputFile, sep='^')
movies ... | 25.2 | 156 | 0.566545 |
4c5d1777ffd1452788619a58c2a3c09a88985225 | 2,077 | py | Python | examples/rxff-serial/run.py | sctiwari/EZFF_ASE | 94710d4cf778ff2db5e6df0cd6d10d92e1b98afe | [
"MIT"
] | 3 | 2019-01-22T21:22:09.000Z | 2019-04-02T22:50:40.000Z | examples/rxff-serial/run.py | ElsevierSoftwareX/SOFTX-D-20-00066 | b43f8bbb1321d7ed3eeec4f8bb894fe431779433 | [
"MIT"
] | 14 | 2019-01-14T18:33:15.000Z | 2019-07-08T22:10:11.000Z | examples/rxff-serial/run.py | ElsevierSoftwareX/SOFTX-D-20-00066 | b43f8bbb1321d7ed3eeec4f8bb894fe431779433 | [
"MIT"
] | 3 | 2019-03-24T23:43:13.000Z | 2021-09-12T13:45:08.000Z | import ezff
from ezff.interfaces import gulp, qchem
# Define ground truths
gt_gs = qchem.read_structure('ground_truths/optCHOSx.out')
gt_gs_energy = qchem.read_energy('ground_truths/optCHOSx.out')
gt_scan = qchem.read_structure('ground_truths/scanCHOSx.out')
gt_scan_energy = qchem.read_energy('ground_truths/scanCHOSx.... | 37.763636 | 124 | 0.735676 |
4c5db4db71b2cfe512dcdca6c87e641cb929544e | 2,288 | py | Python | dev_files/utils.py | dylanwal/unit_parse | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | [
"BSD-3-Clause"
] | 1 | 2022-01-29T17:14:40.000Z | 2022-01-29T17:14:40.000Z | dev_files/utils.py | dylanwal/unit_parse | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | [
"BSD-3-Clause"
] | null | null | null | dev_files/utils.py | dylanwal/unit_parse | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | [
"BSD-3-Clause"
] | null | null | null | import logging
from testing_func import testing_func, test_logger
from unit_parse import logger, Unit, Q
from unit_parse.utils import *
test_logger.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
test_split_list = [
# positive control (changes)
[["fish","pig", "cow"], ["f", "is", "h", "pig", "cow"], ... | 27.566265 | 89 | 0.542832 |
4c5e8dbae6d19592874e45bede3206b69cd9c042 | 594 | py | Python | genlicense.py | d53dave/python-crypto-licensecheck | d11612612ea54a5418fd8dbba9212a9c84c56f22 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | genlicense.py | d53dave/python-crypto-licensecheck | d11612612ea54a5418fd8dbba9212a9c84c56f22 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | genlicense.py | d53dave/python-crypto-licensecheck | d11612612ea54a5418fd8dbba9212a9c84c56f22 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | import sys
from Crypto.Signature import pkcs1_15
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
if __name__ == '__main__':
key_file = sys.argv[1]
input_string = sys.argv[2]
out_file = sys.argv[3]
sign_data(key_file, input_string, out_file)
| 28.285714 | 53 | 0.66835 |
4c5f21108bc3014442b8b88f1279054fc89706f5 | 5,302 | py | Python | freqtrade/strategy/informative_decorator.py | Fractate/freqbot | 47b35d2320dc97977411454c1466c762d339fdee | [
"MIT"
] | 1 | 2022-03-06T22:44:30.000Z | 2022-03-06T22:44:30.000Z | freqtrade/strategy/informative_decorator.py | Fractate/freqbot | 47b35d2320dc97977411454c1466c762d339fdee | [
"MIT"
] | null | null | null | freqtrade/strategy/informative_decorator.py | Fractate/freqbot | 47b35d2320dc97977411454c1466c762d339fdee | [
"MIT"
] | 1 | 2021-09-22T23:28:21.000Z | 2021-09-22T23:28:21.000Z | from typing import Any, Callable, NamedTuple, Optional, Union
from pandas import DataFrame
from freqtrade.exceptions import OperationalException
from freqtrade.strategy.strategy_helper import merge_informative_pair
PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame]
def informative(timeframe: str, a... | 41.100775 | 100 | 0.656733 |
4c60db4ddf2f272ea38921358d511b5e55303545 | 835 | py | Python | codigo_das_aulas/aula_09/aula_09_03.py | VeirichR/curso-python-selenium | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | [
"CC0-1.0"
] | 234 | 2020-04-03T02:59:30.000Z | 2022-03-27T15:29:21.000Z | codigo_das_aulas/aula_09/aula_09_03.py | VeirichR/curso-python-selenium | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | [
"CC0-1.0"
] | 8 | 2020-04-20T11:20:43.000Z | 2021-08-18T16:41:15.000Z | codigo_das_aulas/aula_09/aula_09_03.py | VeirichR/curso-python-selenium | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | [
"CC0-1.0"
] | 77 | 2020-04-03T13:25:19.000Z | 2022-02-24T15:31:26.000Z | from functools import partial
from selenium.webdriver import Firefox
from selenium.webdriver.support.ui import (
WebDriverWait
)
esperar_botao = partial(esperar_elemento, 'button')
esperar_sucesso = partial(esperar_elemento, '#finished')
url = 'https://selenium.dunossauro.live/aula_09_a.html'
driver = Firefox(... | 21.973684 | 58 | 0.762874 |
4c6108b6c6b2c6296484cdaaf51540f0a9efca44 | 1,470 | py | Python | prae/losses.py | irom-lab/RL_Generalization | 82add6898ee2e962a3aa5efedf80821a013eae7f | [
"MIT"
] | 24 | 2020-06-30T11:43:38.000Z | 2021-11-15T22:58:47.000Z | prae/losses.py | irom-lab/RL_Generalization | 82add6898ee2e962a3aa5efedf80821a013eae7f | [
"MIT"
] | null | null | null | prae/losses.py | irom-lab/RL_Generalization | 82add6898ee2e962a3aa5efedf80821a013eae7f | [
"MIT"
] | 4 | 2020-10-15T10:54:18.000Z | 2021-05-25T07:38:14.000Z | import torch
from torch import nn
from prae.distances import square_dist, HingedSquaredEuclidean
def tile(embedding, example):
"""
"""
n = example.shape[0]//embedding.shape[0]
embedding = embedding.unsqueeze(1).repeat(1, n, 1)
embedding = squeeze_embedding(embedding)
return embedding
def s... | 24.098361 | 86 | 0.586395 |