hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 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 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 239 | max_forks_repo_name stringlengths 5 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.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
794888b89fe9a82c25c6f0b309d5fbacd559fb99 | 44,347 | py | Python | resources/lib/frameMyMusic.py | sitronet/script.kodijivelette | 7c75e9f5234b0f89cd76f8be826b33aee7ed5e5a | [
"Apache-2.0"
] | null | null | null | resources/lib/frameMyMusic.py | sitronet/script.kodijivelette | 7c75e9f5234b0f89cd76f8be826b33aee7ed5e5a | [
"Apache-2.0"
] | null | null | null | resources/lib/frameMyMusic.py | sitronet/script.kodijivelette | 7c75e9f5234b0f89cd76f8be826b33aee7ed5e5a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
global savepath
global Kodi
Kodi = True
#sys.path.append(os.path.join(os.path.dirname(__file__), "resources", "lib"))
import threading
import time
import urllib
import os
from resources.lib import connexionClient, ecoute, outils
from resources.lib.ecoute import Souscri... | 44.840243 | 145 | 0.608452 |
794889d899d70d3af987857c8e797aeee883c213 | 3,746 | py | Python | flexget/plugins/sites/rmz.py | fotile96/Flexget | 0f7f805a43e25e27fce195b91228f911bf4c6b1e | [
"MIT"
] | 1 | 2021-03-16T18:41:47.000Z | 2021-03-16T18:41:47.000Z | flexget/plugins/sites/rmz.py | fotile96/Flexget | 0f7f805a43e25e27fce195b91228f911bf4c6b1e | [
"MIT"
] | null | null | null | flexget/plugins/sites/rmz.py | fotile96/Flexget | 0f7f805a43e25e27fce195b91228f911bf4c6b1e | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
import logging
import re
from flexget import plugin
from flexget.event import event
from flexget.plugins.internal.urlrewriting import UrlRewritingError
from flexget.utils.... | 32.859649 | 120 | 0.611319 |
794889f1709482a6ec8cba95a27f06b698941e13 | 6,485 | py | Python | main.py | ewen-lbh/pyfiglet-tester | eb3cd4bb540a00ebb5a59d14b87ef2b19b75f6eb | [
"Unlicense"
] | 1 | 2020-10-30T10:46:04.000Z | 2020-10-30T10:46:04.000Z | main.py | ewen-lbh/pyfiglet-tester | eb3cd4bb540a00ebb5a59d14b87ef2b19b75f6eb | [
"Unlicense"
] | null | null | null | main.py | ewen-lbh/pyfiglet-tester | eb3cd4bb540a00ebb5a59d14b87ef2b19b75f6eb | [
"Unlicense"
] | null | null | null | def main():
import random
import re
import shutil
import sys
import webbrowser
import pyfiglet
FONTS_LIST = [
'3-d',
'3x5',
'5lineoblique',
'acrobatic',
'alligator2',
'alligator',
'alphabet',
'avatar',
'banner3-D',
... | 23.496377 | 89 | 0.448574 |
79488bb855abb5880c65a77a41622820a1230166 | 605 | py | Python | lejian/runserver.py | PuZheng/LEJAIN-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | null | null | null | lejian/runserver.py | PuZheng/LEJAIN-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | 13 | 2015-10-23T04:43:51.000Z | 2015-12-19T14:30:33.000Z | lejian/runserver.py | PuZheng/lejian-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
SYNOPSIS
python runserver.py [options]
OPTIONS
-h
show this help
-p <port>
the port of server runs on
-s <host>
the ip of the server runs on
"""
from getopt import getopt
import sys
opts, _ = getopt(sys.argv[1:], "s:p:h")
host = '0.0.0.0'
port = None... | 17.794118 | 41 | 0.550413 |
79488c3b7308486b233e97bf7a0faa547f66dcdc | 8,529 | py | Python | merge_data.py | MattTheVV/CoronaWatchNL | 3e548c589193fe2736c66bf5829a482e5416f58a | [
"CC0-1.0"
] | 1 | 2021-01-19T15:08:01.000Z | 2021-01-19T15:08:01.000Z | merge_data.py | MattTheVV/CoronaWatchNL | 3e548c589193fe2736c66bf5829a482e5416f58a | [
"CC0-1.0"
] | null | null | null | merge_data.py | MattTheVV/CoronaWatchNL | 3e548c589193fe2736c66bf5829a482e5416f58a | [
"CC0-1.0"
] | null | null | null | """Merge RIVM daily stats"""
from pathlib import Path
import re
import datetime
from io import StringIO
import pandas
DATE_MAP = {
"maart": 3,
"april": 4,
"mei": 5,
}
def list_files():
return [p for p in Path('raw_data').iterdir() if p.is_file()]
def parse_format_v3(file, n_missing=None):
... | 29.512111 | 110 | 0.610623 |
79488c9d3351f105daf599408345c01b60d37577 | 9,661 | py | Python | tests/api/admin/controller/test_sitewide_registration.py | aseefahmed/circulation | 17cbc9186ab3cde9606912559f92b393ac18ecaa | [
"Apache-2.0"
] | null | null | null | tests/api/admin/controller/test_sitewide_registration.py | aseefahmed/circulation | 17cbc9186ab3cde9606912559f92b393ac18ecaa | [
"Apache-2.0"
] | 44 | 2022-01-20T01:31:32.000Z | 2022-03-31T01:50:41.000Z | tests/api/admin/controller/test_sitewide_registration.py | jonathangreen/circulation | 118866f8257e2a97431a28ea5ba8e34e5bd393eb | [
"Apache-2.0"
] | null | null | null | import base64
import binascii
import json
import os
import flask
import jwt
from werkzeug.datastructures import MultiDict
from api.admin.problem_details import *
from api.config import Configuration
from core.model import ExternalIntegration
from core.testing import MockRequestsResponse
from core.util.problem_detail ... | 41.642241 | 101 | 0.642791 |
79488dbab228338d8a6abff6b83420ae0c637b13 | 4,895 | py | Python | tests/testSupport.py | musca1997/drawbot | d5b990c74289ba437e81933423a09b0e4839494c | [
"BSD-2-Clause"
] | 1 | 2015-07-25T07:39:28.000Z | 2015-07-25T07:39:28.000Z | tests/testSupport.py | musca1997/drawbot | d5b990c74289ba437e81933423a09b0e4839494c | [
"BSD-2-Clause"
] | null | null | null | tests/testSupport.py | musca1997/drawbot | d5b990c74289ba437e81933423a09b0e4839494c | [
"BSD-2-Clause"
] | null | null | null | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import PY3
import sys
import os
import tempfile
import shutil
import random
import io
from PIL import Image, ImageChops
from drawBot.misc import warnings
from fontTools.misc.py23 import PY2
testRootDir = os.path.dirname(os.path... | 29.666667 | 106 | 0.636568 |
79488f1c5e756d75ae90977f185676bdf7e095a2 | 6,184 | py | Python | chainer/iterators/serial_iterator.py | Evanc123/chainer | 929af7189b1271683200aa9b0ba6da2dd3dee110 | [
"MIT"
] | null | null | null | chainer/iterators/serial_iterator.py | Evanc123/chainer | 929af7189b1271683200aa9b0ba6da2dd3dee110 | [
"MIT"
] | 11 | 2020-01-28T22:49:05.000Z | 2022-03-11T23:50:27.000Z | chainer/iterators/serial_iterator.py | Evanc123/chainer | 929af7189b1271683200aa9b0ba6da2dd3dee110 | [
"MIT"
] | null | null | null | from __future__ import division
import numpy
from chainer.dataset import iterator
from chainer.iterators.order_samplers import ShuffleOrderSampler
class SerialIterator(iterator.Iterator):
"""Dataset iterator that serially reads the examples.
This is a simple implementation of :class:`~chainer.dataset.Iter... | 36.809524 | 78 | 0.582309 |
79489066a377e95b81e8fa02478b8ec08c393d6d | 1,932 | py | Python | ROS/samana_ws/src/samana/src/mapviz_pub_floats.py | Combinacijus/Samana-Autonomous-Robot | 092288df7d7733d8014b98169dd79858d48f5c7f | [
"MIT"
] | 4 | 2021-01-23T18:35:43.000Z | 2021-12-26T09:03:53.000Z | ROS/samana_ws/src/samana/src/mapviz_pub_floats.py | Combinacijus/Samana-Autonomous-Robot | 092288df7d7733d8014b98169dd79858d48f5c7f | [
"MIT"
] | null | null | null | ROS/samana_ws/src/samana/src/mapviz_pub_floats.py | Combinacijus/Samana-Autonomous-Robot | 092288df7d7733d8014b98169dd79858d48f5c7f | [
"MIT"
] | 1 | 2021-04-08T06:13:10.000Z | 2021-04-08T06:13:10.000Z | #!/usr/bin/env python
# Subscribes to many topics and publishes some of it's data to debug Float topic for mapviz to display
import rospy
from math import degrees
from sensor_msgs.msg import Imu
from nav_msgs.msg import Odometry
from samana_msgs.msg import ImuSmall
from std_msgs.msg import Float32
from tf.transformati... | 34.5 | 113 | 0.675983 |
7948907c11f0a5c29179b603873e7e6c56da8558 | 9,876 | py | Python | app/views/api/web/Tap.py | RedFalsh/flask-example | 561b04d31356cf1a4a0324a89ebc4f3dcd94e16c | [
"MIT"
] | 1 | 2019-02-26T07:40:07.000Z | 2019-02-26T07:40:07.000Z | app/views/api/web/Tap.py | RedFalsh/flask-example | 561b04d31356cf1a4a0324a89ebc4f3dcd94e16c | [
"MIT"
] | null | null | null | app/views/api/web/Tap.py | RedFalsh/flask-example | 561b04d31356cf1a4a0324a89ebc4f3dcd94e16c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from app.views.api import route_api
from flask import request,jsonify,g
import requests,json
from app import db
from app.model import User
from app.model import Member
from app.model import Device
from app.model import DeviceTap
from app.model import DeviceOperateLog
from app.... | 30.670807 | 134 | 0.600344 |
7948916da46e16967ffdfe022c4f4df863b0b3f3 | 138 | py | Python | lambda_proxy_cache/__init__.py | vincentsarago/lambda-proxy-cache | e038ddcca3b683477a7f45231a29744ee896c0c1 | [
"BSD-3-Clause"
] | 4 | 2019-06-29T06:56:57.000Z | 2021-06-11T14:51:18.000Z | lambda_proxy_cache/__init__.py | vincentsarago/lambda-proxy-cache | e038ddcca3b683477a7f45231a29744ee896c0c1 | [
"BSD-3-Clause"
] | 4 | 2019-06-29T19:45:14.000Z | 2020-04-16T01:41:07.000Z | lambda_proxy_cache/__init__.py | vincentsarago/lambda-proxy-cache | e038ddcca3b683477a7f45231a29744ee896c0c1 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T17:01:39.000Z | 2019-06-29T17:01:39.000Z | """lambda-proxy-cache: lambda-proxy cache plugin."""
import pkg_resources
version = pkg_resources.get_distribution(__package__).version
| 23 | 61 | 0.804348 |
794891a08aa7314e3a2b585a7f01b9a11a3ff7ff | 983 | py | Python | tests/Python/OWASP_a4/cwe_22/unsafe/cwe_22__I_readline__F_no_filtering__S_file_exists__1-3.5_File1.py | usnistgov/VTSG | f4477a78ec19f7e9757da0321cb5a69428e358cf | [
"MIT"
] | null | null | null | tests/Python/OWASP_a4/cwe_22/unsafe/cwe_22__I_readline__F_no_filtering__S_file_exists__1-3.5_File1.py | usnistgov/VTSG | f4477a78ec19f7e9757da0321cb5a69428e358cf | [
"MIT"
] | 1 | 2022-01-31T22:22:55.000Z | 2022-01-31T22:22:55.000Z | tests/Python/OWASP_a4/cwe_22/unsafe/cwe_22__I_readline__F_no_filtering__S_file_exists__1-3.5_File1.py | usnistgov/VTSG | f4477a78ec19f7e9757da0321cb5a69428e358cf | [
"MIT"
] | null | null | null |
'''
input: direct user input in string
no filtering
sink: check if a file exists
'''
'''
Created by Paul E. Black and William Mentzer 2020
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title ... | 21.369565 | 81 | 0.670397 |
794891d3477b16bcfccbb3d35e747f6b5a0c04c2 | 4,281 | py | Python | tests/test_inspector.py | gustavofonseca/Logger | d6b48f98393ebee8e39b04eb44c80a0fccd98ffb | [
"BSD-2-Clause"
] | null | null | null | tests/test_inspector.py | gustavofonseca/Logger | d6b48f98393ebee8e39b04eb44c80a0fccd98ffb | [
"BSD-2-Clause"
] | null | null | null | tests/test_inspector.py | gustavofonseca/Logger | d6b48f98393ebee8e39b04eb44c80a0fccd98ffb | [
"BSD-2-Clause"
] | null | null | null | import unittest
from logger.inspector import Inspector
from mocker import ANY, MockerTestCase
COLLECTIONS = {
'br': {
"status": "certified",
"original_name": "Brasil",
"document_count": 392414,
"acron": "scl",
"domain": "www.scielo.br",
"has_analytics": True,
... | 30.798561 | 78 | 0.627891 |
7948932f89ca88ec8169a3773f7e712e9c515288 | 3,048 | py | Python | src/dnsrobocert/core/utils.py | foxwoods369/docker-letsencrypt-dns | 301939c271c8e299d52971be9402b9f8d120abf4 | [
"MIT"
] | null | null | null | src/dnsrobocert/core/utils.py | foxwoods369/docker-letsencrypt-dns | 301939c271c8e299d52971be9402b9f8d120abf4 | [
"MIT"
] | null | null | null | src/dnsrobocert/core/utils.py | foxwoods369/docker-letsencrypt-dns | 301939c271c8e299d52971be9402b9f8d120abf4 | [
"MIT"
] | null | null | null | import hashlib
import logging
import os
import re
import subprocess
import sys
from typing import Any, Dict, List
import coloredlogs
try:
POSIX_MODE = True
import pwd
import grp
except ImportError:
POSIX_MODE = False
LOGGER = logging.getLogger(__name__)
coloredlogs.install(logger=LOGGER)
def execut... | 25.830508 | 87 | 0.641404 |
794895aae22e2d30d6c20fdd32dda30dd2c8bf2e | 4,550 | py | Python | tests/integrate_test/test_integrate_global_variable_score.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 52 | 2018-08-24T02:28:43.000Z | 2021-07-06T04:44:22.000Z | tests/integrate_test/test_integrate_global_variable_score.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 62 | 2018-09-17T06:59:16.000Z | 2021-12-15T06:02:51.000Z | tests/integrate_test/test_integrate_global_variable_score.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 35 | 2018-09-14T02:42:10.000Z | 2022-02-05T10:34:46.000Z | # -*- coding: utf-8 -*-
# Copyright 2018 ICON 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.0
#
# Unless required by applicable law ... | 36.693548 | 90 | 0.680659 |
794895d089241a36effb6aebadc198255b781561 | 2,364 | py | Python | fastembed/predictor/lookup.py | Saleh-Ibtasham/VulScrape | 738d17e9dd7e5edc2341d106361651fd28f99c61 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2021-04-12T12:59:33.000Z | 2021-04-12T12:59:33.000Z | fastembed/predictor/lookup.py | Jokers-grin/VulScrape | 738d17e9dd7e5edc2341d106361651fd28f99c61 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | fastembed/predictor/lookup.py | Jokers-grin/VulScrape | 738d17e9dd7e5edc2341d106361651fd28f99c61 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | import pandas as pd
from .classifier import get_result
from scipy import spatial
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
def getCveList(cve_list):
df_feature = pd.read_csv("./fastembed/ml_models/CVE_data_with_features.csv")
df_classifier = pd.read_csv("./fastembed/ml_models/CV... | 32.833333 | 94 | 0.715313 |
794895dbb411f5362117854a417dbd901cedf73c | 1,128 | py | Python | modoboa/dnstools/migrations/0001_initial.py | HarshCasper/modoboa | a00baa0593107992f545ee3e89cd4346b9615a96 | [
"0BSD"
] | 1,602 | 2016-12-15T14:25:34.000Z | 2022-03-31T16:49:25.000Z | modoboa/dnstools/migrations/0001_initial.py | sebageek/modoboa | 57f5d57ea60a57e8dcac970085dfc07082481fc6 | [
"0BSD"
] | 1,290 | 2016-12-14T15:39:05.000Z | 2022-03-31T13:49:09.000Z | modoboa/dnstools/migrations/0001_initial.py | sebageek/modoboa | 57f5d57ea60a57e8dcac970085dfc07082481fc6 | [
"0BSD"
] | 272 | 2016-12-22T11:58:18.000Z | 2022-03-17T15:57:24.000Z | # Generated by Django 1.11.16 on 2018-11-19 10:07
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('admin', '0014_auto_20181017_1628'),
]
operations = [
migr... | 38.896552 | 186 | 0.605496 |
79489633a191977e031af7ca493e62f7cb704d94 | 7,536 | py | Python | workshops/tfx-caip-tf21/lab-03-tfx-cicd/pipeline/pipeline.py | DeshuaiWang/mlops-on-gcp | dfc12bb774476c029e3fb884e1b4d501d674f178 | [
"Apache-2.0"
] | null | null | null | workshops/tfx-caip-tf21/lab-03-tfx-cicd/pipeline/pipeline.py | DeshuaiWang/mlops-on-gcp | dfc12bb774476c029e3fb884e1b4d501d674f178 | [
"Apache-2.0"
] | null | null | null | workshops/tfx-caip-tf21/lab-03-tfx-cicd/pipeline/pipeline.py | DeshuaiWang/mlops-on-gcp | dfc12bb774476c029e3fb884e1b4d501d674f178 | [
"Apache-2.0"
] | 1 | 2020-05-09T05:16:33.000Z | 2020-05-09T05:16:33.000Z | # Copyright 2019 Google Inc. 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 applicable l... | 39.663158 | 105 | 0.738588 |
794896df86b21a286f6e447f5444425ff0945e28 | 1,039 | py | Python | fmcapi/api_objects/device_services/__init__.py | aegiacometti/fmcapi | 1cce480bed69ec199180f3fe3981570570fd107d | [
"BSD-3-Clause"
] | 2 | 2019-07-22T15:15:38.000Z | 2021-02-22T14:44:41.000Z | fmcapi/api_objects/device_services/__init__.py | aegiacometti/fmcapi | 1cce480bed69ec199180f3fe3981570570fd107d | [
"BSD-3-Clause"
] | 1 | 2020-06-14T17:50:41.000Z | 2020-06-14T17:50:41.000Z | fmcapi/api_objects/device_services/__init__.py | aegiacometti/fmcapi | 1cce480bed69ec199180f3fe3981570570fd107d | [
"BSD-3-Clause"
] | null | null | null | """Device Services Classes."""
import logging
from .bridgegroupinterfaces import BridgeGroupInterfaces
from .devicerecords import Device
from .devicerecords import DeviceRecords
from .etherchannelinterfaces import EtherchannelInterfaces
from .ipv4staticroutes import IPv4StaticRoutes
from .ipv4staticroutes import IPv4S... | 29.685714 | 58 | 0.80462 |
794897add74eac731c2c12ddf745f580668ee9e8 | 2,653 | py | Python | tests/env/packages/env_test_ld_impl_linux-64_linux.py | swaldhoer/foxbms-2 | ee57761ba6c2817e5335b68dfda3513b436e3abd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 47 | 2021-04-01T21:14:55.000Z | 2022-03-30T12:19:18.000Z | tests/env/packages/env_test_ld_impl_linux-64_linux.py | jagatheesh31/foxbms-2 | ee57761ba6c2817e5335b68dfda3513b436e3abd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 6 | 2021-06-01T08:25:54.000Z | 2021-11-17T07:55:05.000Z | tests/env/packages/env_test_ld_impl_linux-64_linux.py | jagatheesh31/foxbms-2 | ee57761ba6c2817e5335b68dfda3513b436e3abd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 24 | 2021-04-01T21:15:04.000Z | 2022-03-29T06:18:10.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... | 36.847222 | 98 | 0.733509 |
7948984747f94d5d5b1ac8c60375e734b2b23dcf | 36 | py | Python | __init__.py | KennethBlaney/rivescript-python | 87db472847ab526060afd9a5b8548e9689501a85 | [
"MIT"
] | null | null | null | __init__.py | KennethBlaney/rivescript-python | 87db472847ab526060afd9a5b8548e9689501a85 | [
"MIT"
] | null | null | null | __init__.py | KennethBlaney/rivescript-python | 87db472847ab526060afd9a5b8548e9689501a85 | [
"MIT"
] | null | null | null | from converscript import RiveScript
| 18 | 35 | 0.888889 |
794898ef6350e441d7a8ba0ec37671df43872f0f | 381 | py | Python | microproject/RX/temp3.py | jithinsankar/projectLI-FI | 965ca33eddec6e026e26fd3451905ded1f5dc0aa | [
"MIT"
] | null | null | null | microproject/RX/temp3.py | jithinsankar/projectLI-FI | 965ca33eddec6e026e26fd3451905ded1f5dc0aa | [
"MIT"
] | null | null | null | microproject/RX/temp3.py | jithinsankar/projectLI-FI | 965ca33eddec6e026e26fd3451905ded1f5dc0aa | [
"MIT"
] | null | null | null | import numpy as np
import base64
a=[]
a.append('a')
a.append('G')
a.append('U')
a.append('K')
image_64_decode=list(a)
image_64_decode=''.join(image_64_decode)
image_64_decode = base64.b64decode(image_64_decode)
print image_64_decode
image_result = open('t.txt', 'wb') # create a writable image and write the decoding re... | 25.4 | 90 | 0.774278 |
79489a1bd6868dcbe826a12f7647823d34faa774 | 35,700 | py | Python | salt/cloud/clouds/profitbricks.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-03-31T22:51:16.000Z | 2020-03-31T22:51:16.000Z | salt/cloud/clouds/profitbricks.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | null | null | null | salt/cloud/clouds/profitbricks.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-30T07:00:01.000Z | 2021-09-30T07:00:01.000Z | # -*- coding: utf-8 -*-
'''
ProfitBricks Cloud Module
=========================
The ProfitBricks SaltStack cloud module allows a ProfitBricks server to
be automatically deployed and bootstraped with Salt.
:depends: profitbrick >= 3.1.0
The module requires ProfitBricks credentials to be supplied along with
an existin... | 27.803738 | 85 | 0.599412 |
79489adb5cae22eddb65ddd02db53d56c314c1ea | 14,190 | py | Python | plugins/ledger/auth2fa.py | namuyan/electrum-fjc | 1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2 | [
"MIT"
] | 1 | 2017-07-06T03:03:25.000Z | 2017-07-06T03:03:25.000Z | plugins/ledger/auth2fa.py | namuyan/electrum-fjc | 1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2 | [
"MIT"
] | null | null | null | plugins/ledger/auth2fa.py | namuyan/electrum-fjc | 1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2 | [
"MIT"
] | null | null | null | import threading
from PyQt4.Qt import (QDialog, QInputDialog, QLineEdit, QTextEdit, QVBoxLayout, QLabel, SIGNAL)
import PyQt4.QtCore as QtCore
from electrum_ltc.i18n import _
from electrum_ltc.qt.util import *
from electrum_ltc.util import print_msg
import os, hashlib, websocket, threading, logging, json, copy
from ... | 40.775862 | 157 | 0.576885 |
79489b7008fc251521a1d53dc4fb2a3b76dc6fd1 | 3,183 | py | Python | contrib/testgen/base58.py | vivuscoin/vivuscoin | ba0db89712234bf68b2d6b63ef2c420d65c7c25d | [
"MIT"
] | null | null | null | contrib/testgen/base58.py | vivuscoin/vivuscoin | ba0db89712234bf68b2d6b63ef2c420d65c7c25d | [
"MIT"
] | null | null | null | contrib/testgen/base58.py | vivuscoin/vivuscoin | ba0db89712234bf68b2d6b63ef2c420d65c7c25d | [
"MIT"
] | null | null | null | # Copyright (c) 2012-2018 The Bitcoin Core developers
# Copyright (c) 2021 The Vivuscoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Vivuscoin base58 encoding and decoding.
Based on https://vivuscointalk.or... | 27.205128 | 97 | 0.625196 |
79489c3e0ecda38f25ac78eb8365ab9ca319621d | 559 | py | Python | warehouse/urls.py | NotEnterprising/DATABASE_supermarket | 2d54e4ba66e24bf30f26a97d553eef23f601d821 | [
"MIT"
] | null | null | null | warehouse/urls.py | NotEnterprising/DATABASE_supermarket | 2d54e4ba66e24bf30f26a97d553eef23f601d821 | [
"MIT"
] | null | null | null | warehouse/urls.py | NotEnterprising/DATABASE_supermarket | 2d54e4ba66e24bf30f26a97d553eef23f601d821 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import WarehouseListView, WarehouseCreateView, WarehouseUpdateView, WarehouseDetailView, WarehouseDeleteView
urlpatterns = [
path('list/', WarehouseListView.as_view(), name='warehouse-list'),
path('<int:pk>/', WarehouseDetailView.as_view(), name='warehouse-detail'),
path... | 46.583333 | 120 | 0.753131 |
79489ca0b3b4ada29645b07dce74663e06baaaf4 | 12,559 | py | Python | model/VAE.py | shpandey/MRIproject | 040c904ea2aea81776787021e904400d1c5a8974 | [
"MIT"
] | null | null | null | model/VAE.py | shpandey/MRIproject | 040c904ea2aea81776787021e904400d1c5a8974 | [
"MIT"
] | 10 | 2020-01-28T22:13:58.000Z | 2022-03-11T23:53:26.000Z | model/VAE.py | JP-MRPhys/fastMRI-GAN | f69c9947edd95a7b85027abd2049c5aeb892569d | [
"MIT"
] | null | null | null | #import tensorflow as tf
import tensorflow.compat.v1 as tf #NOTE: To train on tensorflow version 2.0
tf.disable_v2_behavior()
import h5py
import os
import numpy as np
import pathlib
#from utils.subsample import MaskFunc
#import utils.transforms as T
from matplotlib import pyplot as plt
from fastmri_data import get_tr... | 39.124611 | 161 | 0.590493 |
79489d369e4393c81add7710ecda8068f08f14d9 | 9,457 | py | Python | extrap/gui/CubeFileReader.py | arima0714/extrap | ac535fa9a4d10ecb59a29f063ff0515b6a98517f | [
"BSD-3-Clause"
] | 13 | 2020-11-12T21:50:09.000Z | 2022-03-03T11:01:27.000Z | extrap/gui/CubeFileReader.py | arima0714/extrap | ac535fa9a4d10ecb59a29f063ff0515b6a98517f | [
"BSD-3-Clause"
] | 3 | 2020-12-04T12:49:37.000Z | 2021-05-06T11:41:31.000Z | extrap/gui/CubeFileReader.py | arima0714/extrap | ac535fa9a4d10ecb59a29f063ff0515b6a98517f | [
"BSD-3-Clause"
] | 6 | 2021-01-14T16:06:47.000Z | 2021-09-01T09:54:37.000Z | # This file is part of the Extra-P software (http://www.scalasca.org/software/extra-p)
#
# Copyright (c) 2020, Technical University of Darmstadt, Germany
#
# This software may be modified and distributed under the terms of a BSD-style license.
# See the LICENSE file in the base directory for details.
from functools im... | 35.82197 | 88 | 0.606323 |
79489d9929339de87b59af7586d3f9f1b0bdd150 | 391 | py | Python | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_Ele26_WP70_Unseeded_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_Ele26_WP70_Unseeded_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_Ele26_WP70_Unseeded_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
from ..modules.hltPreEle26WP70Unseeded_cfi import *
from ..sequences.HLTBeginSequence_cfi import *
from ..sequences.HLTEle26WP70UnseededSequence_cfi import *
from ..sequences.HLTEndSequence_cfi import *
HLT_Ele26_WP70_Unseeded = cms.Path(
HLTBeginSequence +
hltPreEle26... | 27.928571 | 58 | 0.810742 |
79489e082dafefccd4c4ac9027eb2cc78b8057a8 | 1,115 | py | Python | database/apis/api_psql.py | JhonSaguay/Observatorioapi | 642a3c7fa6ac121225de156cd07b96d1ee3b34c0 | [
"MIT"
] | null | null | null | database/apis/api_psql.py | JhonSaguay/Observatorioapi | 642a3c7fa6ac121225de156cd07b96d1ee3b34c0 | [
"MIT"
] | null | null | null | database/apis/api_psql.py | JhonSaguay/Observatorioapi | 642a3c7fa6ac121225de156cd07b96d1ee3b34c0 | [
"MIT"
] | null | null | null | import requests
import psycopg2
import json
import time
def savedatabase(conexion,my_dict):
cur = conexion.cursor()
for dato in my_dict:
# dato_json={"en":dato}
json_string=(json.dumps(dato))
sql1="insert into apidata(datosjson) values ('"+json_string+"')"
cur.execute(sql1)
#... | 30.972222 | 106 | 0.61435 |
79489e2465732d974655139b8c55fbf53f8fb74d | 6,628 | py | Python | misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/dependencies/3rd_party/fabric8-analytics-version-comparator/f8a_version_comparator/comparable_version.py | evtr/keycloak | 35375146dedfa14ff1c117d22b840b1ab3cc8f73 | [
"Apache-2.0"
] | 12,252 | 2015-01-01T02:39:03.000Z | 2022-03-31T19:57:55.000Z | misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/dependencies/3rd_party/fabric8-analytics-version-comparator/f8a_version_comparator/comparable_version.py | evtr/keycloak | 35375146dedfa14ff1c117d22b840b1ab3cc8f73 | [
"Apache-2.0"
] | 4,567 | 2015-01-06T09:27:52.000Z | 2022-03-31T21:38:13.000Z | misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/dependencies/3rd_party/fabric8-analytics-version-comparator/f8a_version_comparator/comparable_version.py | skew202/keycloak | 2aaceeab7ef5e059fb3bc737e6271bad85cf1545 | [
"Apache-2.0"
] | 5,376 | 2015-01-04T13:39:48.000Z | 2022-03-31T19:57:56.000Z | # Copyright © 2018 Red Hat 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 writin... | 30.971963 | 93 | 0.576946 |
79489e68282246d3583180b4eb3beb3bd20cab62 | 2,743 | py | Python | camera.py | nolita26/Human-Act-Recogntion | df6c27c1b6b8564605332e510caa27777c25fa7b | [
"MIT"
] | 2 | 2020-05-17T12:53:06.000Z | 2021-04-12T02:13:43.000Z | camera.py | nolita26/Human-Act-Recogntion | df6c27c1b6b8564605332e510caa27777c25fa7b | [
"MIT"
] | null | null | null | camera.py | nolita26/Human-Act-Recogntion | df6c27c1b6b8564605332e510caa27777c25fa7b | [
"MIT"
] | null | null | null | import cv2
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
# DANGER! This is insecure. See http://twil.io/secure
account_sid = 'AC9ff3f227c0a9de0606351f3656ee2274'
auth_token = '6eaec067e0c697309716afdc6e1c8a2a'
client = Client(account_sid, auth_token)
face_cascade=cv2.Cascad... | 35.623377 | 93 | 0.504557 |
79489f3fc4bcd6f44c2a66368b43b772766963e5 | 9,106 | py | Python | lib/datasets/V1datasets.py | Wangyf46/deeplabv3plus-pytorch | dbbbe88d7774d6e02f7ea13e770ee4278dc528fd | [
"MIT"
] | 2 | 2019-08-03T12:02:12.000Z | 2019-08-03T12:35:46.000Z | lib/datasets/V1datasets.py | Wangyf46/deeplabv3plus-pytorch | dbbbe88d7774d6e02f7ea13e770ee4278dc528fd | [
"MIT"
] | null | null | null | lib/datasets/V1datasets.py | Wangyf46/deeplabv3plus-pytorch | dbbbe88d7774d6e02f7ea13e770ee4278dc528fd | [
"MIT"
] | null | null | null | #-*-coding:utf-8-*-
# ----------------------------------------
# Written by Yude Wang
# ----------------------------------------
from __future__ import print_function, division
import os
import sys
import pandas as pd
import cv2
import tqdm
import multiprocessing
from PIL import Image
import numpy as np
from torch.uti... | 39.419913 | 102 | 0.544586 |
7948a02319228a5d974f3b3d1e0bba4861a1c76f | 1,250 | py | Python | back-end/migrations/versions/65d2fcbb8c38_add_comments_table.py | mahaoyang/flask-vuejs-madblog | 04737b9d72d1fb011498b09c7dd6f0a43e704525 | [
"MIT"
] | 756 | 2018-10-29T06:18:17.000Z | 2022-03-30T09:10:36.000Z | back-end/migrations/versions/65d2fcbb8c38_add_comments_table.py | tianxinyueming/flask-vuejs-madblog | b5d239e8b7bf99ff917ac7c757a333de6cac664d | [
"MIT"
] | 8 | 2018-12-21T05:50:00.000Z | 2021-09-08T04:35:51.000Z | back-end/migrations/versions/65d2fcbb8c38_add_comments_table.py | tianxinyueming/flask-vuejs-madblog | b5d239e8b7bf99ff917ac7c757a333de6cac664d | [
"MIT"
] | 204 | 2018-11-08T12:57:01.000Z | 2022-03-15T07:51:32.000Z | """add comments table
Revision ID: 65d2fcbb8c38
Revises: b7fa03819d57
Create Date: 2018-11-15 11:18:14.585190
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '65d2fcbb8c38'
down_revision = 'b7fa03819d57'
branch_labels = None
depends_on = None
def upgrade():
... | 30.487805 | 91 | 0.6784 |
7948a1f35c0909a4f81426558064ff18b23b5e3e | 5,163 | py | Python | mfctracker/models.py | gonzoua/mfctracker | 77800ee5ab17e4efefb12bfbd547bff1ed94c6a1 | [
"BSD-2-Clause"
] | 3 | 2016-10-19T05:01:31.000Z | 2019-06-06T18:20:11.000Z | mfctracker/models.py | gonzoua/mfctracker | 77800ee5ab17e4efefb12bfbd547bff1ed94c6a1 | [
"BSD-2-Clause"
] | 3 | 2017-11-28T17:31:58.000Z | 2021-04-12T02:37:27.000Z | mfctracker/models.py | gonzoua/mfctracker | 77800ee5ab17e4efefb12bfbd547bff1ed94c6a1 | [
"BSD-2-Clause"
] | 1 | 2020-06-26T14:05:53.000Z | 2020-06-26T14:05:53.000Z | # Copyright (c) 2016-2019 Oleksandr Tymoshenko <gonzo@bluezbox.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# ... | 35.854167 | 102 | 0.706566 |
7948a227444eb8363750141c94691e5b37b9a9ca | 32,091 | py | Python | pyspeckit/cubes/cubes.py | mwcraig/pyspeckit | 6d6c09aac29549a8c094d97fb385c9283422bb82 | [
"MIT"
] | null | null | null | pyspeckit/cubes/cubes.py | mwcraig/pyspeckit | 6d6c09aac29549a8c094d97fb385c9283422bb82 | [
"MIT"
] | null | null | null | pyspeckit/cubes/cubes.py | mwcraig/pyspeckit | 6d6c09aac29549a8c094d97fb385c9283422bb82 | [
"MIT"
] | 1 | 2018-10-02T15:11:17.000Z | 2018-10-02T15:11:17.000Z | """
~~~~~~~~
cubes.py
~~~~~~~~
From `agpy <http://code.google.com/p/agpy/source/browse/trunk/agpy/cubes.py>`_,
contains functions to perform various transformations on data cubes and their
headers.
"""
from __future__ import print_function
from astropy.extern.six.moves import xrange
from numpy import sqrt,repeat,ind... | 36.675429 | 126 | 0.595961 |
7948a2954b16df15ef10ffe43910ec6d08118d3e | 123 | py | Python | experiments/iterfibo.py | johnpaulguzman/Algorithm-Analyzer | e93abfb51f2f67b6df1af8d95cc6855ad7de69f2 | [
"MIT"
] | null | null | null | experiments/iterfibo.py | johnpaulguzman/Algorithm-Analyzer | e93abfb51f2f67b6df1af8d95cc6855ad7de69f2 | [
"MIT"
] | null | null | null | experiments/iterfibo.py | johnpaulguzman/Algorithm-Analyzer | e93abfb51f2f67b6df1af8d95cc6855ad7de69f2 | [
"MIT"
] | null | null | null | def f(n):
nm1=1
nm2=0
for i in range(n-1):
temp=nm1+nm2
nm2=nm1
nm1=temp
return nm1 | 15.375 | 24 | 0.471545 |
7948a36ce4f60bf2de9cb7e2c67d28371576195e | 3,164 | py | Python | qa/rpc-tests/bip65-cltv.py | cryptoandcoffee/DCUMN | 85b873a90b3a2df6870d7ea74ea5087945e238bb | [
"MIT"
] | null | null | null | qa/rpc-tests/bip65-cltv.py | cryptoandcoffee/DCUMN | 85b873a90b3a2df6870d7ea74ea5087945e238bb | [
"MIT"
] | null | null | null | qa/rpc-tests/bip65-cltv.py | cryptoandcoffee/DCUMN | 85b873a90b3a2df6870d7ea74ea5087945e238bb | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test the CHECKLOCKTIMEVERIFY (BIP65) soft-fork logic
#
from test_framework.test_framework import DCUTestF... | 35.954545 | 98 | 0.625474 |
7948a475bbaad5978368f1d68372174e4b7a8ab7 | 5,703 | py | Python | tensorflow/python/kernel_tests/manip_ops_test.py | mohammadzainabbas/tensorflow | 352142267a1a151b04c6198de83b40b7e979d1d8 | [
"Apache-2.0"
] | 4 | 2019-02-18T17:38:14.000Z | 2019-09-05T14:14:47.000Z | tensorflow/python/kernel_tests/manip_ops_test.py | mohammadzainabbas/tensorflow | 352142267a1a151b04c6198de83b40b7e979d1d8 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/kernel_tests/manip_ops_test.py | mohammadzainabbas/tensorflow | 352142267a1a151b04c6198de83b40b7e979d1d8 | [
"Apache-2.0"
] | 3 | 2018-04-11T03:08:18.000Z | 2021-05-09T21:51:42.000Z | # Copyright 2018 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... | 38.275168 | 80 | 0.639663 |
7948a85bf1e2af8f733a54d6e41d236c50ce9fbb | 1,858 | py | Python | examples/exampleDepthImageOpenCV.py | i-zro/pyKinectAzure | 291c0398169a7cc9143e883b32eea581d77ecae3 | [
"MIT"
] | null | null | null | examples/exampleDepthImageOpenCV.py | i-zro/pyKinectAzure | 291c0398169a7cc9143e883b32eea581d77ecae3 | [
"MIT"
] | null | null | null | examples/exampleDepthImageOpenCV.py | i-zro/pyKinectAzure | 291c0398169a7cc9143e883b32eea581d77ecae3 | [
"MIT"
] | null | null | null | import sys
sys.path.insert(1, '../pyKinectAzure/')
import numpy as np
from pyKinectAzure import pyKinectAzure, _k4a
import cv2
# Path to the module
# TODO: Modify with the path containing the k4a.dll from the Azure Kinect SDK
modulePath = 'C:\\Program Files\\Azure Kinect SDK v1.4.1\\sdk\\windows-desktop\\amd64\\relea... | 29.967742 | 138 | 0.770721 |
7948a86d5cd5800ac8b7aa2e34a4234d89ec72e2 | 4,822 | py | Python | tests/tree_build_tests.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 1 | 2019-12-29T17:52:32.000Z | 2019-12-29T17:52:32.000Z | tests/tree_build_tests.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | null | null | null | tests/tree_build_tests.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | null | null | null | #vim: set encoding=utf-8
from unittest import TestCase
from regparser.tree.struct import Node, NodeEncoder
from regparser.tree.build import *
class TreeBuildTest(TestCase):
def test_find_cfr_part(self):
text = "PART 202-Content\nSome text here\n"
text += "This has 201.44 in it. But also 203.33\n... | 44.238532 | 79 | 0.502074 |
7948a8dee45b1c0510e1492c13b0b678118d8c22 | 2,138 | py | Python | ripper/actions/attack.py | alexmon1989/russia_ddos | 6bee2718a4d9fb9a495ffe7063a3dfc68bdafa0d | [
"MIT"
] | 199 | 2022-02-28T23:28:02.000Z | 2022-03-30T18:00:45.000Z | ripper/actions/attack.py | alexmon1989/russia_ddos | 6bee2718a4d9fb9a495ffe7063a3dfc68bdafa0d | [
"MIT"
] | 14 | 2022-03-05T21:48:34.000Z | 2022-03-18T12:28:36.000Z | ripper/actions/attack.py | alexmon1989/russia_ddos | 6bee2718a4d9fb9a495ffe7063a3dfc68bdafa0d | [
"MIT"
] | 40 | 2022-03-02T00:19:31.000Z | 2022-03-28T01:48:09.000Z | import threading
from threading import Thread, Event
from ripper.actions.attack_method import AttackMethod
from ripper.actions.http_bypass import HttpBypass
from ripper.actions.http_flood import HttpFlood
from ripper.actions.tcp_flood import TcpFlood
from ripper.actions.udp_flood import UdpFlood
from ripper.context.ev... | 28.891892 | 88 | 0.696445 |
7948a9328ce96d6bfe1e08f5e982d07c27c362a5 | 7,094 | py | Python | visualize/grad_cam.py | apyrros/HCC-comorbidities | fd74fb2f1438bc741cfe6728c5cb64737bc99d68 | [
"MIT"
] | null | null | null | visualize/grad_cam.py | apyrros/HCC-comorbidities | fd74fb2f1438bc741cfe6728c5cb64737bc99d68 | [
"MIT"
] | null | null | null | visualize/grad_cam.py | apyrros/HCC-comorbidities | fd74fb2f1438bc741cfe6728c5cb64737bc99d68 | [
"MIT"
] | 1 | 2021-09-15T14:16:35.000Z | 2021-09-15T14:16:35.000Z | #!/usr/bin/env python
# coding: utf-8
#
# Author: Kazuto Nakashima
# URL: http://kazuto1011.github.io
# Created: 2017-05-26
from collections import Sequence
import numpy as np
import torch
import torch.nn as nn
from torch.nn import functional as F
from tqdm import tqdm
class _BaseWrapper(object):
def __... | 31.528889 | 88 | 0.622075 |
7948a9b1ab44c65b3cc37fd4ed08c5d7d0f9eeac | 5,884 | py | Python | indy_node/test/catchup/test_requests_post_new_node_catchup.py | imadharb75/mynewid | b417edc71bfe38eb167909509ce2a2de526bc83e | [
"Apache-2.0"
] | null | null | null | indy_node/test/catchup/test_requests_post_new_node_catchup.py | imadharb75/mynewid | b417edc71bfe38eb167909509ce2a2de526bc83e | [
"Apache-2.0"
] | null | null | null | indy_node/test/catchup/test_requests_post_new_node_catchup.py | imadharb75/mynewid | b417edc71bfe38eb167909509ce2a2de526bc83e | [
"Apache-2.0"
] | 1 | 2020-03-19T00:37:32.000Z | 2020-03-19T00:37:32.000Z | from plenum.common.constants import DOMAIN_LEDGER_ID
from plenum.common.util import randomString
from plenum.test.node_catchup.helper import checkNodeDataForEquality, \
waitNodeDataEquality
from plenum.test.pool_transactions.helper import sdk_add_new_nym
from plenum.test.test_node import ensure_node_disconnected, c... | 42.948905 | 98 | 0.617267 |
7948ab54a21c528d8e19f8b45141a191f75d8d67 | 12,446 | py | Python | floodlight/io/tracab.py | manuba95/floodlight | 02c64763e78b14ef37555e1dc435256dbd4eca09 | [
"MIT"
] | 26 | 2022-01-25T22:15:22.000Z | 2022-03-02T11:06:29.000Z | floodlight/io/tracab.py | manuba95/floodlight | 02c64763e78b14ef37555e1dc435256dbd4eca09 | [
"MIT"
] | 12 | 2021-11-17T15:42:28.000Z | 2022-03-28T19:59:24.000Z | floodlight/io/tracab.py | manuba95/floodlight | 02c64763e78b14ef37555e1dc435256dbd4eca09 | [
"MIT"
] | 8 | 2021-11-03T09:01:22.000Z | 2022-03-23T10:43:14.000Z | from pathlib import Path
from typing import Dict, Tuple, Union
import numpy as np
from lxml import etree
from floodlight.core.code import Code
from floodlight.core.pitch import Pitch
from floodlight.core.xy import XY
def _read_metadata(filepath_metadata: Union[str, Path]) -> Tuple[Dict, Dict, Pitch]:
"""Reads T... | 32.83905 | 88 | 0.607183 |
7948ab87300d8415a52f92d678047c0f7fcd10fe | 3,136 | py | Python | plugins/youtube.py | TeamPeggle/ppp-helpdesk | 6e5551ab674b3096c0fdf6ef4537215cdd27b4fe | [
"Unlicense"
] | 2 | 2016-10-22T20:45:57.000Z | 2017-08-06T20:35:43.000Z | plugins/youtube.py | TeamPeggle/ppp-helpdesk | 6e5551ab674b3096c0fdf6ef4537215cdd27b4fe | [
"Unlicense"
] | 9 | 2015-01-12T21:33:24.000Z | 2018-04-02T15:59:22.000Z | plugins/youtube.py | TeamPeggle/ppp-helpdesk | 6e5551ab674b3096c0fdf6ef4537215cdd27b4fe | [
"Unlicense"
] | 1 | 2017-08-01T22:13:33.000Z | 2017-08-01T22:13:33.000Z | from __future__ import unicode_literals
from builtins import str
import re
import time
from calendar import timegm
from util import hook, http, timesince
youtube_re = (r'(?:youtube.*?(?:v=|/v/)|youtu\.be/|yooouuutuuube.*?id=)'
'([-_a-z0-9]+)', re.I)
BASE_URL = 'https://www.googleapis.com/youtube/v3/'
... | 26.803419 | 78 | 0.601084 |
7948ac3e86deed7ce0390f7cce82578527dfdeda | 4,320 | py | Python | registry/tests/log_test.py | jbn/quilt | 67960d2739ce5ea34c05febbe8f2bb9f75e211a8 | [
"Apache-2.0"
] | null | null | null | registry/tests/log_test.py | jbn/quilt | 67960d2739ce5ea34c05febbe8f2bb9f75e211a8 | [
"Apache-2.0"
] | null | null | null | registry/tests/log_test.py | jbn/quilt | 67960d2739ce5ea34c05febbe8f2bb9f75e211a8 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Quilt Data, Inc. All rights reserved.
"""
Log tests
"""
import json
import requests
from unittest.mock import patch
from quilt_server.const import PaymentPlan, PUBLIC
from quilt_server.core import hash_contents, GroupNode, RootNode
from .utils import QuiltTestCase
class LogTestCase(QuiltTestCa... | 28.8 | 99 | 0.502778 |
7948adfbe324abc73698581cc1204bba2764244c | 771 | py | Python | .history/chapter01/python_05_if_condition_20201128215501.py | KustomApe/nerdape | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | [
"MIT"
] | null | null | null | .history/chapter01/python_05_if_condition_20201128215501.py | KustomApe/nerdape | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | [
"MIT"
] | null | null | null | .history/chapter01/python_05_if_condition_20201128215501.py | KustomApe/nerdape | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | [
"MIT"
] | null | null | null | """[if文について]
もし〜だったら、こうして
"""
# if 条件:
# 実行するブロック
# 条件によって処理を適応したい場合
# 3000kmごとにオイル交換しないといけない
distance = 3403
# if distance > 3000:
# print('オイル交換時期です')
# 文字列を比較する/リストを比較する
# if 'abc' == 'ABC':
# print('1同類です')
# if 'CDE' == 'CDE':
# print('2同類です')
# if 'あいうえお' == 'あいうえお':
# print('3同類です')
# if ... | 17.930233 | 49 | 0.546044 |
7948afaa1f3a9d1099a8051b48e1bb9892292ca7 | 3,549 | py | Python | test/functional/p2p_feefilter.py | manfromafar/safecash-temp | de9623678fe76bc58928c8a36b6491d4d0766588 | [
"MIT"
] | 3 | 2018-06-05T15:12:08.000Z | 2018-07-01T04:51:42.000Z | test/functional/p2p_feefilter.py | manfromafar/safecash-temp | de9623678fe76bc58928c8a36b6491d4d0766588 | [
"MIT"
] | null | null | null | test/functional/p2p_feefilter.py | manfromafar/safecash-temp | de9623678fe76bc58928c8a36b6491d4d0766588 | [
"MIT"
] | 2 | 2018-05-25T13:25:55.000Z | 2018-06-30T18:14:10.000Z | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test processing of feefilter messages."""
from test_framework.mininode import *
from test_framework.te... | 37.755319 | 81 | 0.659904 |
7948b0405dacb239f3e9cb1bb9703d56eb60dcee | 23 | py | Python | home.py | wuxuechen/news | 05fe821ed81e3ececc58264acd6e9142e4fd66a2 | [
"MIT"
] | null | null | null | home.py | wuxuechen/news | 05fe821ed81e3ececc58264acd6e9142e4fd66a2 | [
"MIT"
] | null | null | null | home.py | wuxuechen/news | 05fe821ed81e3ececc58264acd6e9142e4fd66a2 | [
"MIT"
] | null | null | null | hi, this is a new home
| 11.5 | 22 | 0.695652 |
7948b090584b208a822b205cc5e11e0d630bb49b | 599 | py | Python | src/_nats/aio/types.py | charbonnierg/jetstream.py | 4d8dc56fc6953d0a28d207b9b162c6f8d0080d37 | [
"Apache-2.0"
] | 8 | 2021-07-26T10:54:10.000Z | 2021-12-06T08:41:02.000Z | src/_nats/aio/types.py | charbonnierg/jetstream.py | 4d8dc56fc6953d0a28d207b9b162c6f8d0080d37 | [
"Apache-2.0"
] | 3 | 2021-08-09T10:25:39.000Z | 2021-12-06T08:40:41.000Z | src/_nats/aio/types.py | charbonnierg/jetstream.py | 4d8dc56fc6953d0a28d207b9b162c6f8d0080d37 | [
"Apache-2.0"
] | 3 | 2021-08-22T01:55:11.000Z | 2021-09-13T13:51:42.000Z | from typing import Dict, List, TypedDict
class ServerInfos(TypedDict, total=False):
server_id: str
server_name: str
version: str
go: str
git_commit: str
host: str
port: int
max_payload: int
proto: int
client_id: int
client_ip: str
auth_required: bool
tls_required: b... | 18.151515 | 42 | 0.656093 |
7948b10f4d3e20be1edb9fb958db6e6f9453aa9a | 864 | py | Python | morbitwrapper/__init__.py | manuelbb-upb/MorbitWrapper | eecd77c33fdbc5e867e10fbe5ec217a2ada6924c | [
"MIT"
] | null | null | null | morbitwrapper/__init__.py | manuelbb-upb/MorbitWrapper | eecd77c33fdbc5e867e10fbe5ec217a2ada6924c | [
"MIT"
] | 3 | 2021-05-25T15:02:44.000Z | 2021-05-26T09:38:39.000Z | morbitwrapper/__init__.py | manuelbb-upb/MorbitWrapper | eecd77c33fdbc5e867e10fbe5ec217a2ada6924c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 16:25:44 2020
@author: manuelbb
"""
from .MOPClasses import RbfConfig, MOP, AlgoConfig, LagrangeConfig, TaylorConfig, ExactConfig
from .optimization import optimize, initialize_data, iterate, get_ret_values
from .optimization import print_fin_in... | 36 | 96 | 0.822917 |
7948b1b60c843dd7adbbe7b6a4359146eeaecd0a | 982 | py | Python | model/fcn.py | lixiaoyu0575/physionet_challenge2020_pytorch | 39b5aeeead440eaa88d6fdaf4a8a70c15373e062 | [
"MIT"
] | 1 | 2021-05-24T08:09:30.000Z | 2021-05-24T08:09:30.000Z | model/fcn.py | lixiaoyu0575/physionet_challenge2020_pytorch | 39b5aeeead440eaa88d6fdaf4a8a70c15373e062 | [
"MIT"
] | null | null | null | model/fcn.py | lixiaoyu0575/physionet_challenge2020_pytorch | 39b5aeeead440eaa88d6fdaf4a8a70c15373e062 | [
"MIT"
] | null | null | null | import torch
from torch import nn
from .util import ConvBlock
class FCN(nn.Module):
"""A PyTorch implementation of the FCN Baseline
From https://arxiv.org/abs/1909.04939
Attributes
----------
sequence_length:
The size of the input sequence
num_pred_classes:
The number of output... | 27.277778 | 76 | 0.593686 |
7948b6dcbb796baefff47c3e791983c0dd58b297 | 1,868 | py | Python | 12_browser_automation_selenium/lectures/9_adding_some_error_handling/pages/quotes_page.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 29 | 2019-09-02T21:15:59.000Z | 2022-01-14T02:20:05.000Z | 12_browser_automation_selenium/lectures/9_adding_some_error_handling/pages/quotes_page.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 2 | 2020-08-20T05:48:36.000Z | 2021-06-02T03:16:31.000Z | 12_browser_automation_selenium/lectures/9_adding_some_error_handling/pages/quotes_page.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 38 | 2019-10-20T14:29:12.000Z | 2022-03-27T19:50:05.000Z | from typing import List
from selenium.webdriver.support.ui import Select
from locators.quotes_page_locators import QuotesPageLocators
from parsers.quote import QuoteParser
class QuotesPage:
def __init__(self, browser):
self.browser = browser
@property
def quotes(self) -> List[QuoteParser]:
... | 29.1875 | 92 | 0.669165 |
7948b719ad04f742fcabc108c4a63778fb82fe6a | 917 | py | Python | thomas/flask/flask tutorial files/tutorial 5.py | ThomasDerZweifler/pyPro | 8bc6531483f08982b19c08a4cdb1a0c9dbd03737 | [
"Apache-2.0"
] | null | null | null | thomas/flask/flask tutorial files/tutorial 5.py | ThomasDerZweifler/pyPro | 8bc6531483f08982b19c08a4cdb1a0c9dbd03737 | [
"Apache-2.0"
] | null | null | null | thomas/flask/flask tutorial files/tutorial 5.py | ThomasDerZweifler/pyPro | 8bc6531483f08982b19c08a4cdb1a0c9dbd03737 | [
"Apache-2.0"
] | 1 | 2020-07-22T17:57:04.000Z | 2020-07-22T17:57:04.000Z | from flask import *
# from flask import Flask, redirect, url_for, render_template, request, session
from datetime import timedelta
app = Flask(__name__)
app.secret_key = "hello"
app.permanent_session_lifetime = timedelta(minutes=5)
@app.route("/")
def home():
return render_template("index.html")
@app.route("/login"... | 22.925 | 79 | 0.691385 |
7948b7a91f3593819f79d5bab0926e3d18a74b09 | 4,980 | py | Python | people/committee_meeting_attendees.py | lee-elenbaas/knesset-data-pipelines | 5ae9f6b0c89b9b7fce647f693535a6a5cdbafbce | [
"MIT"
] | 8 | 2017-07-24T12:11:22.000Z | 2019-04-16T03:28:28.000Z | people/committee_meeting_attendees.py | lee-elenbaas/knesset-data-pipelines | 5ae9f6b0c89b9b7fce647f693535a6a5cdbafbce | [
"MIT"
] | 141 | 2017-07-24T12:10:57.000Z | 2019-12-04T07:39:02.000Z | people/committee_meeting_attendees.py | lee-elenbaas/knesset-data-pipelines | 5ae9f6b0c89b9b7fce647f693535a6a5cdbafbce | [
"MIT"
] | 28 | 2017-07-30T14:20:12.000Z | 2022-02-20T12:01:12.000Z | from datapackage_pipelines.wrapper import process
import logging, requests, os
from knesset_data.protocols.committee import CommitteeMeetingProtocol
import hashlib, json
BASE_HASH_OBJ = hashlib.md5()
with open('../Pipfile.lock') as f:
BASE_HASH_OBJ.update(str(json.load(f)['default']['knesset-data']['hashes']).enc... | 60 | 144 | 0.523896 |
7948b7dd2a5dc61b8ea18180f008b733d4bfbc30 | 3,523 | py | Python | tests/python/backends.py | piengeng/openldap | 07429efcff9dc50abb8ca265c8e8caa8cd25d01c | [
"OLDAP-2.8"
] | null | null | null | tests/python/backends.py | piengeng/openldap | 07429efcff9dc50abb8ca265c8e8caa8cd25d01c | [
"OLDAP-2.8"
] | null | null | null | tests/python/backends.py | piengeng/openldap | 07429efcff9dc50abb8ca265c8e8caa8cd25d01c | [
"OLDAP-2.8"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This work is part of OpenLDAP Software <http://www.openldap.org/>.
#
# Copyright 2021-2022 The OpenLDAP Foundation.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted only as authorized by the OpenL... | 25.164286 | 79 | 0.639512 |
7948b8d7bc9575bd02d8814da9f7b812455f2d19 | 827 | py | Python | backend/alembic/versions/20210105124927_984ad93b1b7c_add_model_table.py | BodenmillerGroup/histocat-web | c598cd07506febf0b7c209626d4eb869761f2e62 | [
"MIT"
] | 4 | 2021-06-14T15:19:25.000Z | 2022-02-09T13:17:39.000Z | backend/alembic/versions/20210105124927_984ad93b1b7c_add_model_table.py | BodenmillerGroup/histocat-web | c598cd07506febf0b7c209626d4eb869761f2e62 | [
"MIT"
] | null | null | null | backend/alembic/versions/20210105124927_984ad93b1b7c_add_model_table.py | BodenmillerGroup/histocat-web | c598cd07506febf0b7c209626d4eb869761f2e62 | [
"MIT"
] | 1 | 2022-02-09T13:17:41.000Z | 2022-02-09T13:17:41.000Z | """Add model table
Revision ID: 984ad93b1b7c
Revises: bcd5ecf42c3e
Create Date: 2021-01-05 12:49:27.310783
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import JSONB
# revision identifiers, used by Alembic.
revision = '984ad93b1b7c'
down_revision = 'bcd5ecf42c3e'
branch_labe... | 24.323529 | 90 | 0.675937 |
7948b8f4c845755aa1b868b8d10288c09f23324f | 3,922 | py | Python | src/networks/my_LeNet.py | LukasKratochvila/Deep-SVDD-PyTorch | a94bd9b6be4d953706daf969b061ddf55d6cbf4c | [
"MIT"
] | null | null | null | src/networks/my_LeNet.py | LukasKratochvila/Deep-SVDD-PyTorch | a94bd9b6be4d953706daf969b061ddf55d6cbf4c | [
"MIT"
] | null | null | null | src/networks/my_LeNet.py | LukasKratochvila/Deep-SVDD-PyTorch | a94bd9b6be4d953706daf969b061ddf55d6cbf4c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 18:40:39 2020
@author: kratochvila
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from base.base_net import BaseNet
class MY_LeNet(BaseNet):
def __init__(self):
super().__init__()
self.rep_dim = 1... | 40.020408 | 101 | 0.620857 |
7948b92c92375527847fc71801171e30eff7b96c | 2,881 | py | Python | river/stats/mode.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | null | null | null | river/stats/mode.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T14:51:13.000Z | 2022-03-31T15:57:05.000Z | river/stats/mode.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | null | null | null | import collections
import typing
from . import base
__all__ = ["Mode"]
class Mode(base.Univariate):
"""Running mode.
The mode is simply the most common value. An approximate mode can be computed by setting the
number of first unique values to count.
Parameters
----------
k
Only the... | 21.183824 | 96 | 0.570288 |
7948ba2bbfba076c4fdda268dbec67afc657681b | 11,287 | py | Python | app.py | pedrobcst/Xerus-streamlit | 9c94a4d05e5aa4439ac6165a5b6951b26d3d2e4d | [
"MIT"
] | null | null | null | app.py | pedrobcst/Xerus-streamlit | 9c94a4d05e5aa4439ac6165a5b6951b26d3d2e4d | [
"MIT"
] | 14 | 2022-03-23T09:21:23.000Z | 2022-03-31T06:36:11.000Z | app.py | pedrobcst/Xerus-streamlit | 9c94a4d05e5aa4439ac6165a5b6951b26d3d2e4d | [
"MIT"
] | null | null | null | import os
import shutil
from typing import List, Union
import pandas as pd
import streamlit as st
from st_aggrid import AgGrid
from conf import AppSettings
from xerus_plot import plot_highest_correlated, plot_read_data
from xerus_run import run_opt, run_xerus
os.makedirs(AppSettings.TMP_FOLDER, exist_ok=True)
os.mak... | 52.013825 | 154 | 0.622132 |
7948ba428194527fdea02348a393c7319614fded | 775 | py | Python | openapi_python_client/parser/reference.py | gmerz/matterapi-generator | 4ba29c7d308c43365b286e41220e3252fa250526 | [
"MIT"
] | null | null | null | openapi_python_client/parser/reference.py | gmerz/matterapi-generator | 4ba29c7d308c43365b286e41220e3252fa250526 | [
"MIT"
] | null | null | null | openapi_python_client/parser/reference.py | gmerz/matterapi-generator | 4ba29c7d308c43365b286e41220e3252fa250526 | [
"MIT"
] | null | null | null | """ A Reference is ultimately a Class which will be in models, usually defined in a body input or return type """
from dataclasses import dataclass
from typing import Dict
from .. import utils
class_overrides: Dict[str, "Reference"] = {}
@dataclass
class Reference:
"""A reference to a class which will be in mo... | 27.678571 | 113 | 0.694194 |
7948bc13fb9c540a92603bca8f423d02aecf81c6 | 6,681 | py | Python | fluid/PaddleCV/rcnn/utility.py | zzszmyf/models | 95f0a9de0e820ddcf2c6529a3bcb9d12bba13128 | [
"Apache-2.0"
] | 1 | 2019-02-27T12:27:49.000Z | 2019-02-27T12:27:49.000Z | fluid/PaddleCV/rcnn/utility.py | ThinkPeace/models | 5d25e00c94943e50e64780a244136f88f13c0a88 | [
"Apache-2.0"
] | null | null | null | fluid/PaddleCV/rcnn/utility.py | ThinkPeace/models | 5d25e00c94943e50e64780a244136f88f13c0a88 | [
"Apache-2.0"
] | 1 | 2018-12-23T06:37:22.000Z | 2018-12-23T06:37:22.000Z | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
#
#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... | 37.960227 | 123 | 0.626553 |
7948bc771a28060b74b667f943c7e964840c4d63 | 2,680 | py | Python | 2d-fluvial/dataloader.py | sees-usc/geo-selection-inversion | 31fd16389d1e6a2b057ab71e1db87333572d1463 | [
"Apache-2.0"
] | null | null | null | 2d-fluvial/dataloader.py | sees-usc/geo-selection-inversion | 31fd16389d1e6a2b057ab71e1db87333572d1463 | [
"Apache-2.0"
] | 1 | 2021-11-17T05:31:34.000Z | 2021-11-17T05:31:34.000Z | 2d-fluvial/dataloader.py | sees-usc/geo-selection-inversion | 31fd16389d1e6a2b057ab71e1db87333572d1463 | [
"Apache-2.0"
] | null | null | null | import random
import string
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'}
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
class DataL... | 29.450549 | 154 | 0.657463 |
7948bca7cba26e291e8de9ff71ddee1cc9187899 | 2,315 | py | Python | projects/python_plugin_code/pandas_1.2_code/tests/html_meta_data/test_meta.py | rendner/py-plugin-dataframe-viewer | 188585bd31a6c14413949865b3467dcbf6f5e2d1 | [
"Apache-2.0"
] | 1 | 2021-11-07T03:47:51.000Z | 2021-11-07T03:47:51.000Z | projects/python_plugin_code/pandas_1.2_code/tests/html_meta_data/test_meta.py | rendner/py-plugin-dataframe-viewer | 188585bd31a6c14413949865b3467dcbf6f5e2d1 | [
"Apache-2.0"
] | null | null | null | projects/python_plugin_code/pandas_1.2_code/tests/html_meta_data/test_meta.py | rendner/py-plugin-dataframe-viewer | 188585bd31a6c14413949865b3467dcbf6f5e2d1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 cms.rendner (Daniel 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 law or... | 40.614035 | 112 | 0.714471 |
7948bd2959c9a88f180f6ff153c3b93d0b338ebe | 3,549 | py | Python | bindings/python/ensmallen/datasets/string/stanieriacyanosphaera.py | AnacletoLAB/ensmallen | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 5 | 2021-09-10T18:31:58.000Z | 2022-03-24T04:28:04.000Z | bindings/python/ensmallen/datasets/string/stanieriacyanosphaera.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 18 | 2021-01-07T16:47:39.000Z | 2021-08-12T21:51:32.000Z | bindings/python/ensmallen/datasets/string/stanieriacyanosphaera.py | AnacletoLAB/ensmallen | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 3 | 2021-01-14T02:20:59.000Z | 2021-08-04T19:09:52.000Z | """
This file offers the methods to automatically retrieve the graph Stanieria cyanosphaera.
The graph is automatically retrieved from the STRING repository.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v11: protein--protein... | 32.861111 | 223 | 0.677656 |
7948bd7d09cf1dbd26dee5eab201ac3dc58b399f | 5,878 | py | Python | discord/stage_instance.py | CuzImSyntax/dis.py | 2f56d546f2594e1dbb6955c8b13b3a884a04eca6 | [
"MIT"
] | 1 | 2021-09-11T13:39:44.000Z | 2021-09-11T13:39:44.000Z | discord/stage_instance.py | CuzImSyntax/discordIO | 47cd508ed48004aa61a41a5b196d3ff003456219 | [
"MIT"
] | null | null | null | discord/stage_instance.py | CuzImSyntax/discordIO | 47cd508ed48004aa61a41a5b196d3ff003456219 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to u... | 33.20904 | 132 | 0.6623 |
7948bf95f48d341182df24c9e4b019dba8fed4bd | 2,040 | py | Python | matchms/importing/load_from_usi.py | maximskorik/matchms | 922f5afaef123a793194bdd74391027477cbb844 | [
"Apache-2.0"
] | null | null | null | matchms/importing/load_from_usi.py | maximskorik/matchms | 922f5afaef123a793194bdd74391027477cbb844 | [
"Apache-2.0"
] | null | null | null | matchms/importing/load_from_usi.py | maximskorik/matchms | 922f5afaef123a793194bdd74391027477cbb844 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import numpy as np
import requests
from ..Spectrum import Spectrum
logger = logging.getLogger("matchms")
def load_from_usi(usi: str, server: str = "https://metabolomics-usi.ucsd.edu",
metadata_harmonization: bool = True):
"""Load spectrum from metabolomics USI.
... | 30.909091 | 97 | 0.644118 |
7948bff6364f769ed01dac24ef18a8322ab8dda5 | 2,988 | py | Python | forte/data/container.py | bhaskar2443053/forte | 95fabd94126d45c0db07cdcc197049ed1859d228 | [
"Apache-2.0"
] | null | null | null | forte/data/container.py | bhaskar2443053/forte | 95fabd94126d45c0db07cdcc197049ed1859d228 | [
"Apache-2.0"
] | null | null | null | forte/data/container.py | bhaskar2443053/forte | 95fabd94126d45c0db07cdcc197049ed1859d228 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Forte 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 applicable ... | 29.584158 | 77 | 0.677041 |
7948c1451e18296a8c4d038cc00e22177b21a941 | 12,235 | py | Python | resource_manage_sdk/model/easy_command/task_detail_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | resource_manage_sdk/model/easy_command/task_detail_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | resource_manage_sdk/model/easy_command/task_detail_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: task_detail.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 _message
from google.protobuf... | 52.965368 | 1,242 | 0.746955 |
7948c203b13283171734d7e581161f22b3632daa | 6,041 | py | Python | mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py | deepakksingh/mmdetection | b0d845f1fecf8064db30ef6b456b6ef5f36fa40f | [
"Apache-2.0"
] | 232 | 2021-05-25T12:55:24.000Z | 2022-03-25T07:58:49.000Z | mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py | deepakksingh/mmdetection | b0d845f1fecf8064db30ef6b456b6ef5f36fa40f | [
"Apache-2.0"
] | 51 | 2021-05-29T06:36:54.000Z | 2022-03-27T09:24:39.000Z | mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py | deepakksingh/mmdetection | b0d845f1fecf8064db30ef6b456b6ef5f36fa40f | [
"Apache-2.0"
] | 66 | 2021-06-01T03:40:08.000Z | 2022-03-30T16:51:21.000Z | import numpy as np
import torch
from ..builder import BBOX_SAMPLERS
from .random_sampler import RandomSampler
@BBOX_SAMPLERS.register_module()
class IoUBalancedNegSampler(RandomSampler):
"""IoU Balanced Sampling
arXiv: https://arxiv.org/pdf/1904.02701.pdf (CVPR 2019)
Sampling proposals according to the... | 43.775362 | 79 | 0.578878 |
7948c2201ac2c9dd120543c19363ced7ca3f257c | 6,994 | py | Python | torchero/meters/confusion_matrix.py | juancruzsosa/torchero | d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797 | [
"MIT"
] | 10 | 2020-07-06T13:35:26.000Z | 2021-08-10T09:46:53.000Z | torchero/meters/confusion_matrix.py | juancruzsosa/torchero | d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797 | [
"MIT"
] | 6 | 2020-07-07T20:52:16.000Z | 2020-07-14T04:05:02.000Z | torchero/meters/confusion_matrix.py | juancruzsosa/torchero | d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797 | [
"MIT"
] | 1 | 2021-06-28T17:56:11.000Z | 2021-06-28T17:56:11.000Z | from abc import ABCMeta, abstractmethod
import torch
from torchero.meters.base import BaseMeter
class ConfusionMatrixController(object, metaclass=ABCMeta):
def __init__(self, normalize=False):
self.normalize = normalize
self.reset()
@property
@abstractmethod
def matrix(self):
... | 34.117073 | 155 | 0.591221 |
7948c2813024cd7d1a5a678af60c5d4f84b72bd9 | 227 | py | Python | server/deploy.py | Autophagy/Regn | f3cae76f7662b45a062c9a8f20e0f085b5eba3cd | [
"MIT"
] | 3 | 2018-04-02T23:35:05.000Z | 2018-04-03T18:51:56.000Z | server/deploy.py | Autophagy/Regn | f3cae76f7662b45a062c9a8f20e0f085b5eba3cd | [
"MIT"
] | null | null | null | server/deploy.py | Autophagy/Regn | f3cae76f7662b45a062c9a8f20e0f085b5eba3cd | [
"MIT"
] | null | null | null | from app import create_app, db
import os
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
db.create_all()
if __name__ == "__main__":
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
| 22.7 | 56 | 0.678414 |
7948c2c62855eef8c6e5b22a2d02f4ff62c046a5 | 496 | py | Python | python_basico_(logica_de_programacao)/aula20.py | Alesxander36/Curso_de_Python3 | 438f25789921e5d61500e3483af62fc41bddc50f | [
"MIT"
] | null | null | null | python_basico_(logica_de_programacao)/aula20.py | Alesxander36/Curso_de_Python3 | 438f25789921e5d61500e3483af62fc41bddc50f | [
"MIT"
] | null | null | null | python_basico_(logica_de_programacao)/aula20.py | Alesxander36/Curso_de_Python3 | 438f25789921e5d61500e3483af62fc41bddc50f | [
"MIT"
] | null | null | null | # Indices
# 0123456789.................33
frase = 'o rato roeu a roupa do rei de roma' # Iterável
tamanho_frase = len(frase)
print(tamanho_frase)
contador = 0
nova_string = ''
input_do_usuario = input('Qual letra deseja colocar em maiuscula: ')
# Iteração <- Iterar
while contador < tamanho_frase:
letra =... | 21.565217 | 68 | 0.663306 |
7948c4c3b4efe69fbd1db2e3c76ecc667093d073 | 25,992 | py | Python | pythonscript/x11-64-cpython/lib/python3.6/asyncio/sslproto.py | LeonardoJavalindo/GameJamMiner | f0aeff4e666cd0de439f2237e632b8ab03871476 | [
"Apache-2.0",
"OpenSSL"
] | 7 | 2018-09-10T05:42:46.000Z | 2021-05-01T12:48:30.000Z | pythonscript/x11-64-cpython/lib/python3.6/asyncio/sslproto.py | LeonardoJavalindo/GameJamMiner | f0aeff4e666cd0de439f2237e632b8ab03871476 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pythonscript/x11-64-cpython/lib/python3.6/asyncio/sslproto.py | LeonardoJavalindo/GameJamMiner | f0aeff4e666cd0de439f2237e632b8ab03871476 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-06-09T16:44:57.000Z | 2021-06-09T16:44:57.000Z | import collections
import warnings
try:
import ssl
except ImportError: # pragma: no cover
ssl = None
from . import base_events
from . import compat
from . import protocols
from . import transports
from .log import logger
def _create_transport_context(server_side, server_hostname):
if server_side:
... | 37.131429 | 80 | 0.6008 |
7948c551307777621e02d1b7b73aec4b093a1b1d | 1,058 | py | Python | Discord-Bot/commands/Sync.py | akarealemil/WHMCS-Discord-Sync | 72c9f16e9c3bfa92bf16d718f04b3fee51c8261c | [
"MIT"
] | null | null | null | Discord-Bot/commands/Sync.py | akarealemil/WHMCS-Discord-Sync | 72c9f16e9c3bfa92bf16d718f04b3fee51c8261c | [
"MIT"
] | 1 | 2022-03-14T08:49:20.000Z | 2022-03-31T07:40:54.000Z | Discord-Bot/commands/Sync.py | akarealemil/WHMCS-Discord-Sync | 72c9f16e9c3bfa92bf16d718f04b3fee51c8261c | [
"MIT"
] | null | null | null | from discord.ext import commands
from util import other
# Manually syncs all members of the discord
# If they're connected and have one or more active products, they receive the client role
# Otherwise they lose it
class Sync(commands.Cog):
def __init__(self, bot):
self.bot = bot
@co... | 31.117647 | 118 | 0.666352 |
7948c614a0f5cd66fc523acd84e6f564a708d470 | 411 | py | Python | pygfa/graph_element/parser/__init__.py | Francesco2304/pygfa | 9bf6fb5f0a959685300ab863a0e716a2268109f7 | [
"MIT"
] | 3 | 2020-06-25T22:47:02.000Z | 2022-02-27T15:16:02.000Z | pygfa/graph_element/parser/__init__.py | Francesco2304/pygfa | 9bf6fb5f0a959685300ab863a0e716a2268109f7 | [
"MIT"
] | 3 | 2017-08-08T12:24:23.000Z | 2022-02-27T15:17:25.000Z | pygfa/graph_element/parser/__init__.py | Francesco2304/pygfa | 9bf6fb5f0a959685300ab863a0e716a2268109f7 | [
"MIT"
] | 4 | 2019-02-04T20:54:53.000Z | 2020-05-14T19:52:24.000Z | from pygfa.graph_element.parser import header
from pygfa.graph_element.parser import segment
from pygfa.graph_element.parser import link
from pygfa.graph_element.parser import containment
from pygfa.graph_element.parser import path
from pygfa.graph_element.parser import edge
from pygfa.graph_element.parser import fragm... | 45.666667 | 50 | 0.871046 |
7948c7224a121160f1c0eeb24d04e62b461d9950 | 3,637 | py | Python | search_index.py | eduard0729/hocrviewer | 83f7d5024d32019d529a1657cbf5b9081a2d6eff | [
"MIT"
] | null | null | null | search_index.py | eduard0729/hocrviewer | 83f7d5024d32019d529a1657cbf5b9081a2d6eff | [
"MIT"
] | null | null | null | search_index.py | eduard0729/hocrviewer | 83f7d5024d32019d529a1657cbf5b9081a2d6eff | [
"MIT"
] | null | null | null | # encoding=utf-8
from __future__ import unicode_literals
import os
import re
from lxml import etree
from whoosh import highlight
from whoosh.analysis import CharsetFilter, RegexTokenizer
from whoosh.fields import Schema, ID, NUMERIC, TEXT
from whoosh.index import create_in, open_dir
from whoosh.query import And, Term... | 34.971154 | 77 | 0.624416 |
7948c8903b09835e90240f84bbcfc08d8fb622a6 | 634 | py | Python | uncertainty_library/utils.py | Featurespace/uncertainty-attribution | 06986c56600366e5516f5b39ec2bc61436ba4b35 | [
"MIT"
] | 3 | 2021-07-26T13:10:27.000Z | 2022-01-03T16:27:31.000Z | uncertainty_library/utils.py | Featurespace/uncertainty-attribution | 06986c56600366e5516f5b39ec2bc61436ba4b35 | [
"MIT"
] | null | null | null | uncertainty_library/utils.py | Featurespace/uncertainty-attribution | 06986c56600366e5516f5b39ec2bc61436ba4b35 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
def remove_test_time_dropout(model_drop):
config = model_drop.get_config()
for layer in config['layers']:
if 'Dropout' in layer['class_name']:
layer['inbound_nodes'][0][0][3]['training'] = False
model = tf.keras.Model().from_config(config)
... | 27.565217 | 63 | 0.641956 |
7948c9b20366c15ff6b2ff665e5e6b77ab954b0c | 13,010 | py | Python | ParseSpectra.py | wjs018/DNASpectra | 1d62955417651488e6289fcdb4cffa0911663d02 | [
"MIT"
] | null | null | null | ParseSpectra.py | wjs018/DNASpectra | 1d62955417651488e6289fcdb4cffa0911663d02 | [
"MIT"
] | null | null | null | ParseSpectra.py | wjs018/DNASpectra | 1d62955417651488e6289fcdb4cffa0911663d02 | [
"MIT"
] | null | null | null | """Parses spectra text files from the Rogers spectrometer and calculates the
absorption spectra for DNA (260 nm).
A lot of the automation in this program is done through using filename
conventions. See README for complete documentation regarding filename
conventions.
"""
import os
import re
import numpy as np
import... | 30.97619 | 113 | 0.565642 |
7948ca70ffc9c2633c3ed57d337dd7a58652be38 | 393 | py | Python | task_man/wsgi.py | vshumanov/django_task_mon | 25ea1a4af986df5abb65fcaae8163abd8dc6cce9 | [
"MIT"
] | null | null | null | task_man/wsgi.py | vshumanov/django_task_mon | 25ea1a4af986df5abb65fcaae8163abd8dc6cce9 | [
"MIT"
] | null | null | null | task_man/wsgi.py | vshumanov/django_task_mon | 25ea1a4af986df5abb65fcaae8163abd8dc6cce9 | [
"MIT"
] | null | null | null | """
WSGI config for task_man project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | 23.117647 | 78 | 0.78626 |
7948ca7f37c2132ae50d7b0fb2c42336d60c9e03 | 2,868 | py | Python | buildserver/pypi_utils.py | akshitdewan/cs61a-apps | 155f2afe98b238fb4b1c4ca1c79610ec55e826e6 | [
"MIT"
] | 5 | 2020-09-10T01:45:09.000Z | 2022-01-10T23:24:03.000Z | buildserver/pypi_utils.py | akshitdewan/cs61a-apps | 155f2afe98b238fb4b1c4ca1c79610ec55e826e6 | [
"MIT"
] | 424 | 2020-08-24T06:22:59.000Z | 2021-10-10T02:36:11.000Z | buildserver/pypi_utils.py | akshitdewan/cs61a-apps | 155f2afe98b238fb4b1c4ca1c79610ec55e826e6 | [
"MIT"
] | 7 | 2020-08-28T22:05:10.000Z | 2022-03-04T12:47:05.000Z | import re
from typing import Optional, Tuple
from packaging.version import Version
import requests
from app_config import App
VERSION_REGEX = r"version=\"(\d*).(\d)*.\*\""
def get_latest_version(
app: App, pr_number: int
) -> Tuple[Optional[Version], Optional[Version]]:
"""
Finds the latest deployed v... | 33.741176 | 105 | 0.609484 |
7948ca820f8cb576363125ddbc7c1c445344afc0 | 373 | py | Python | src/simulator/services/persistent_state/persistent_state_object.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 46 | 2020-12-25T04:09:15.000Z | 2022-03-25T12:32:42.000Z | src/simulator/services/persistent_state/persistent_state_object.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 36 | 2020-12-21T16:10:02.000Z | 2022-01-03T01:42:01.000Z | src/simulator/services/persistent_state/persistent_state_object.py | judicaelclair/PathBenchURO | 101e67674efdfa8e27e1cf7787dac9fdf99552fe | [
"BSD-3-Clause"
] | 11 | 2021-01-06T23:34:12.000Z | 2022-03-21T17:21:47.000Z | from abc import ABC, abstractmethod
from typing import Dict, Any
class PersistentStateObject(ABC):
_state: 'PersistentState'
def __init__(self, state: 'PersistentState'):
self._state = state
@abstractmethod
def _from_json(self, data: Dict[str, Any]) -> None:
...
@abstractmethod
... | 21.941176 | 55 | 0.646113 |
7948cae67a8c512feed0fe22f6b69a61310b2dd0 | 21,486 | py | Python | examples/lm1b/train.py | davisyoshida/flax | d03a262249671db92f9924f990437907cac36b21 | [
"Apache-2.0"
] | 4 | 2020-05-28T11:25:47.000Z | 2021-04-30T13:08:48.000Z | examples/lm1b/train.py | n2cholas/flax | 0848d9cf203cc5dfe63d4a5dece3c6aa8e135107 | [
"Apache-2.0"
] | null | null | null | examples/lm1b/train.py | n2cholas/flax | 0848d9cf203cc5dfe63d4a5dece3c6aa8e135107 | [
"Apache-2.0"
] | 2 | 2021-04-30T13:08:58.000Z | 2021-12-08T00:50:25.000Z | # Copyright 2021 The Flax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 36.854202 | 111 | 0.670343 |
7948caff8f35d998bedb3815629c611a69beee47 | 10,370 | py | Python | banana/interfaces/mrtrix/fibre_est.py | tclose/nianalysis | 314b7ade1d36d52817aa1de14ce1be22c5996a8e | [
"Apache-2.0"
] | 1 | 2019-07-30T03:45:57.000Z | 2019-07-30T03:45:57.000Z | banana/interfaces/mrtrix/fibre_est.py | tclose/nianalysis | 314b7ade1d36d52817aa1de14ce1be22c5996a8e | [
"Apache-2.0"
] | null | null | null | banana/interfaces/mrtrix/fibre_est.py | tclose/nianalysis | 314b7ade1d36d52817aa1de14ce1be22c5996a8e | [
"Apache-2.0"
] | null | null | null | import os.path
from nipype.interfaces.base import (
traits, InputMultiPath, File, TraitedSpec, isdefined)
from nipype.interfaces.mrtrix3.reconst import (
MRTrix3Base, MRTrix3BaseInputSpec)
from nipype.interfaces.mrtrix3.preprocess import (
ResponseSD as NipypeResponseSD,
ResponseSDInputSpec as NipypeRes... | 33.025478 | 79 | 0.65487 |
7948cb1a7d5966fb7bc26109390b9e366d37fe9e | 2,159 | py | Python | src/collaborative_recom.py | Sinba7/Movie-Recommender | 802c9c66739ef1c49287038aca06cb6943a79bd8 | [
"MIT"
] | 1 | 2021-01-28T06:29:31.000Z | 2021-01-28T06:29:31.000Z | src/collaborative_recom.py | Sinba7/Movie-Recommender | 802c9c66739ef1c49287038aca06cb6943a79bd8 | [
"MIT"
] | 1 | 2020-12-18T03:58:04.000Z | 2020-12-18T03:58:04.000Z | src/collaborative_recom.py | Sinba7/Movie-Recommender | 802c9c66739ef1c49287038aca06cb6943a79bd8 | [
"MIT"
] | null | null | null | import pandas as pd
from surprise import Dataset, Reader, KNNWithMeans, KNNWithZScore
import logbook
import sys
# logging
function_log = logbook.Logger('RECOMMENDER')
level = logbook.TRACE
logbook.StreamHandler(sys.stdout, level=level).push_application()
def collab_recommender(train_data, test_data, user_based=Tru... | 36.59322 | 106 | 0.670218 |
7948cbba9a58424c8618696775d4a232f0d17be4 | 12,259 | py | Python | openpype/hosts/nuke/plugins/load/load_effects_ip.py | icyvapor/OpenPype | bf39fc72a550ce8ac6fc8d4c07bc2359ec9cdfa8 | [
"MIT"
] | null | null | null | openpype/hosts/nuke/plugins/load/load_effects_ip.py | icyvapor/OpenPype | bf39fc72a550ce8ac6fc8d4c07bc2359ec9cdfa8 | [
"MIT"
] | null | null | null | openpype/hosts/nuke/plugins/load/load_effects_ip.py | icyvapor/OpenPype | bf39fc72a550ce8ac6fc8d4c07bc2359ec9cdfa8 | [
"MIT"
] | null | null | null | import json
from collections import OrderedDict
import nuke
from avalon import api, style, io
from openpype.hosts.nuke.api import lib
from openpype.hosts.nuke.api import (
containerise,
update_container,
viewer_update_and_undo_stop
)
class LoadEffectsInputProcess(api.Loader):
"""Loading colorspace s... | 33.77135 | 79 | 0.514805 |
7948cbcd5b329fa8148010494ec9d74c1d6a3e50 | 2,039 | py | Python | api/models.py | thevetdoctor/quickcheck | 7990752fa3f118b8308df4a2ae58223d7c394329 | [
"MIT"
] | 1 | 2021-12-18T07:08:09.000Z | 2021-12-18T07:08:09.000Z | api/models.py | thevetdoctor/quickcheck | 7990752fa3f118b8308df4a2ae58223d7c394329 | [
"MIT"
] | null | null | null | api/models.py | thevetdoctor/quickcheck | 7990752fa3f118b8308df4a2ae58223d7c394329 | [
"MIT"
] | null | null | null | from . import db
class News(db.Model):
id = db.Column(db.Integer, primary_key=True)
item_id = db.Column(db.Integer, unique=True, nullable=False)
title = db.Column(db.String, nullable=True)
type = db.Column(db.String(20), nullable=False)
text = db.Column(db.String, nullable=True)
time = db.Colu... | 34.559322 | 91 | 0.635606 |
7948cd1ef747912261890453712d0d4551fc1019 | 4,733 | py | Python | EncoderDecoder/prep_inchi.py | Fpiotro/MOLECULAR-TRANSLATION | 050dd0c093ee4e68326c2404c5b4dbf53ca6c8a0 | [
"MIT"
] | 5 | 2021-12-09T11:22:04.000Z | 2022-03-28T06:54:29.000Z | EncoderDecoder/prep_inchi.py | Fpiotro/MOLECULAR-TRANSLATION | 050dd0c093ee4e68326c2404c5b4dbf53ca6c8a0 | [
"MIT"
] | null | null | null | EncoderDecoder/prep_inchi.py | Fpiotro/MOLECULAR-TRANSLATION | 050dd0c093ee4e68326c2404c5b4dbf53ca6c8a0 | [
"MIT"
] | null | null | null | # ====================================================
# Library
# ====================================================
import os
import re
import numpy as np
import pandas as pd
import torch
# ====================================================
# Data Loading
# ============================================... | 34.05036 | 120 | 0.445383 |
7948cdcbab4a100747e3e047695882c6ccc4ac90 | 4,132 | py | Python | ditto/pinboard/migrations/0011_auto_20151002_1525.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 54 | 2016-08-15T17:32:41.000Z | 2022-02-27T03:32:05.000Z | ditto/pinboard/migrations/0011_auto_20151002_1525.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 229 | 2015-07-23T12:50:47.000Z | 2022-03-24T10:33:20.000Z | ditto/pinboard/migrations/0011_auto_20151002_1525.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 8 | 2015-09-10T17:10:35.000Z | 2022-03-25T13:05:01.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
("pinboard", "0010_auto_20150730_1112"),
]
operations = [
migrations.AlterField(
model_name="account",
... | 32.535433 | 149 | 0.505808 |
7948cdd8b582b2fcd8fce30038647cb2a78a07a2 | 46 | py | Python | miranda/eccc/__init__.py | Ouranosinc/miranda | 5c54767a4e6e6c3c1f638ca0fe22673ea98e2746 | [
"Apache-2.0"
] | 4 | 2019-11-07T17:45:26.000Z | 2021-09-22T18:22:01.000Z | miranda/eccc/__init__.py | Ouranosinc/miranda | 5c54767a4e6e6c3c1f638ca0fe22673ea98e2746 | [
"Apache-2.0"
] | 12 | 2019-09-19T17:05:39.000Z | 2022-03-31T20:26:16.000Z | miranda/eccc/__init__.py | Ouranosinc/miranda | 5c54767a4e6e6c3c1f638ca0fe22673ea98e2746 | [
"Apache-2.0"
] | 1 | 2020-02-01T01:01:22.000Z | 2020-02-01T01:01:22.000Z | from ._raw import *
from ._summaries import *
| 15.333333 | 25 | 0.73913 |
7948cde580135c8041432461eca31cd064cb5736 | 55,496 | py | Python | dask-gateway-server/dask_gateway_server/backends/db_base.py | ncalandra/dask-gateway | 17cd3a923b15fdd98a40475d480f80a2e1b463e1 | [
"BSD-3-Clause"
] | null | null | null | dask-gateway-server/dask_gateway_server/backends/db_base.py | ncalandra/dask-gateway | 17cd3a923b15fdd98a40475d480f80a2e1b463e1 | [
"BSD-3-Clause"
] | null | null | null | dask-gateway-server/dask_gateway_server/backends/db_base.py | ncalandra/dask-gateway | 17cd3a923b15fdd98a40475d480f80a2e1b463e1 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import base64
import json
import os
import uuid
from collections import defaultdict
from itertools import chain, islice
import sqlalchemy as sa
from async_timeout import timeout
from traitlets import Unicode, Bool, List, Integer, Float, validate, default
from cryptography.fernet import MultiFernet, Fern... | 35.213198 | 91 | 0.582583 |
7948ce14ef5b28c9cb3b5eb7ddfbb911bfb8a611 | 4,774 | py | Python | src/wavelet-FE/datasets/custom_dataset.py | Omekaago101/Intracranial-Hemorrhage-Classification | 4f53da3a3869be7b451edc558ef06c5c41083b4b | [
"MIT"
] | null | null | null | src/wavelet-FE/datasets/custom_dataset.py | Omekaago101/Intracranial-Hemorrhage-Classification | 4f53da3a3869be7b451edc558ef06c5c41083b4b | [
"MIT"
] | null | null | null | src/wavelet-FE/datasets/custom_dataset.py | Omekaago101/Intracranial-Hemorrhage-Classification | 4f53da3a3869be7b451edc558ef06c5c41083b4b | [
"MIT"
] | null | null | null | import cv2
import os
import torch
import numpy as np
from torch.utils.data import Dataset
from albumentations.pytorch.transforms import ToTensorV2
from albumentations import (MedianBlur, Compose, Normalize, OpticalDistortion, HorizontalFlip,
VerticalFlip, ShiftScaleRotate, Transpose, OneOf, I... | 40.117647 | 118 | 0.492459 |
7948ce6dbb774668f7bb627c6948581403c45b02 | 587 | py | Python | download_videos.py | ferreirafabio/FlyingShapesDataset | ba4aba153daac4f5131f16b0467c52c2eb094850 | [
"MIT"
] | null | null | null | download_videos.py | ferreirafabio/FlyingShapesDataset | ba4aba153daac4f5131f16b0467c52c2eb094850 | [
"MIT"
] | null | null | null | download_videos.py | ferreirafabio/FlyingShapesDataset | ba4aba153daac4f5131f16b0467c52c2eb094850 | [
"MIT"
] | 1 | 2019-10-06T21:27:45.000Z | 2019-10-06T21:27:45.000Z | import requests
tfrecords_shared_links = "flyingshapes_videos.txt"
with open(tfrecords_shared_links, 'r') as link_file:
url_list = link_file.read().splitlines()
for i, link in enumerate(url_list):
file_name = "videos" + ".tar.gz." + str(i+1).zfill(2)
r = requests.get(link, stream=True)
print("Downlo... | 20.964286 | 57 | 0.630324 |
7948cf101b8c81118b3add4fa66e096192dd0915 | 4,078 | py | Python | neutronclient/common/clientmanager.py | BobzhouCH/python-neutronclient-acc | ff58c60cc96c2e2a4e25088ae3ce5ff75ea42241 | [
"Apache-2.0"
] | null | null | null | neutronclient/common/clientmanager.py | BobzhouCH/python-neutronclient-acc | ff58c60cc96c2e2a4e25088ae3ce5ff75ea42241 | [
"Apache-2.0"
] | null | null | null | neutronclient/common/clientmanager.py | BobzhouCH/python-neutronclient-acc | ff58c60cc96c2e2a4e25088ae3ce5ff75ea42241 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation.
# 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 requ... | 33.983333 | 78 | 0.607896 |
7948cfbb581efbfe41001fec640fb020aeb368d2 | 684 | py | Python | polls/admin.py | intelivix/django-tutorial | 38f4eccb96d78ccd73522c0a30c1fc8d3d8c4fdd | [
"MIT"
] | null | null | null | polls/admin.py | intelivix/django-tutorial | 38f4eccb96d78ccd73522c0a30c1fc8d3d8c4fdd | [
"MIT"
] | null | null | null | polls/admin.py | intelivix/django-tutorial | 38f4eccb96d78ccd73522c0a30c1fc8d3d8c4fdd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib import admin
from polls.models import Choice
from polls.models import Question
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
... | 26.307692 | 74 | 0.635965 |
7948d0d3929f51dace45f89d3a0824a2d7fa0766 | 326 | py | Python | YP/binary_num.py | HelloAgni/Algorithm | cd804e7535137be26c751125fd6572db57ce1866 | [
"MIT"
] | null | null | null | YP/binary_num.py | HelloAgni/Algorithm | cd804e7535137be26c751125fd6572db57ce1866 | [
"MIT"
] | null | null | null | YP/binary_num.py | HelloAgni/Algorithm | cd804e7535137be26c751125fd6572db57ce1866 | [
"MIT"
] | null | null | null | def binary_num(n):
"""
Выведите двоичное представление числа.
Не используйте встроенные средства языка по переводу чисел
в бинарное представление.
"""
r = ''
while n > 0:
r = str(n % 2) + r
n = n // 2
print(r)
if __name__ == '__main__':
n = int(input())
binary_n... | 19.176471 | 62 | 0.56135 |
7948d27feb7e047144b7a3fd7120df83976fdb0f | 667 | py | Python | api/exporterhub/settings/local.py | yangahh/exporterhub-dev | c41783f4b82812358fa05ec55588c5bb6a02134e | [
"MIT"
] | 2 | 2020-11-17T11:13:53.000Z | 2021-01-13T00:38:17.000Z | api/exporterhub/settings/local.py | yangahh/exporterhub-dev | c41783f4b82812358fa05ec55588c5bb6a02134e | [
"MIT"
] | null | null | null | api/exporterhub/settings/local.py | yangahh/exporterhub-dev | c41783f4b82812358fa05ec55588c5bb6a02134e | [
"MIT"
] | 1 | 2020-11-17T11:13:58.000Z | 2020-11-17T11:13:58.000Z | from .base import *
import my_settings
DATABASES = my_settings.DATABASES
SECRET_KEY = my_settings.SECRET_KEY
ALGORITHM = my_settings.ALGORITHM
DEBUG = True
# LOGGING = {
# 'version': 1,
# 'filters': {
# 'require_debug_true': {
# '()': 'django.utils.log.RequireDebugTrue',
# }
# ... | 20.84375 | 56 | 0.482759 |
7948d2b02146b48a644ddbcd2f0bf4f1b148380b | 12,544 | py | Python | azure-batch/azure/batch/models/cloud_task.py | jmalobicky/azure-sdk-for-python | 61234a3d83f8fb481d1dd2386e54e888864878fd | [
"MIT"
] | 1 | 2018-07-23T08:59:24.000Z | 2018-07-23T08:59:24.000Z | azure-batch/azure/batch/models/cloud_task.py | jmalobicky/azure-sdk-for-python | 61234a3d83f8fb481d1dd2386e54e888864878fd | [
"MIT"
] | null | null | null | azure-batch/azure/batch/models/cloud_task.py | jmalobicky/azure-sdk-for-python | 61234a3d83f8fb481d1dd2386e54e888864878fd | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 61.490196 | 571 | 0.722417 |
7948d393f32ea4d775624b7d29369ee11054d574 | 220 | py | Python | ex_generator/ex2.py | petrewoo/Trash | deb7b4c5b9af76b7dfa6bd1d65233cd4f5e8993e | [
"MIT"
] | null | null | null | ex_generator/ex2.py | petrewoo/Trash | deb7b4c5b9af76b7dfa6bd1d65233cd4f5e8993e | [
"MIT"
] | null | null | null | ex_generator/ex2.py | petrewoo/Trash | deb7b4c5b9af76b7dfa6bd1d65233cd4f5e8993e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
def test():
for y in [1, 2, 3]:
y = (yield y)
print 'in test:{}'.format(y)
y += 1
x = test()
z = None
z = x.send(z)
z = x.send(z)
x.close()
| 12.941176 | 36 | 0.454545 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.