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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a6664a131eebc11f4bbd4774aef93f20aa62a4d | 7,261 | py | Python | game.py | akaeme/BlackJackBot | 04970107202a24059f8da933233fba7df9f3a0ef | [
"MIT"
] | null | null | null | game.py | akaeme/BlackJackBot | 04970107202a24059f8da933233fba7df9f3a0ef | [
"MIT"
] | null | null | null | game.py | akaeme/BlackJackBot | 04970107202a24059f8da933233fba7df9f3a0ef | [
"MIT"
] | null | null | null | #encoding: utf8
__author__ = 'Diogo Gomes'
__email__ = 'dgomes@ua.pt'
__license__ = "GPL"
__version__ = "0.1"
import copy
import card
from shoe import Shoe
from dealer import Dealer
from player import Player
BET_MULTIPLIER = 2
| 36.305 | 208 | 0.493596 |
0a66d37f0e15138eb333c83b7140c80ba5e24e15 | 284 | py | Python | loops/for/for3.py | camipozas/python-exercises | c8c02d2b9ff77f21592c99038e10434aba08dbc7 | [
"MIT"
] | null | null | null | loops/for/for3.py | camipozas/python-exercises | c8c02d2b9ff77f21592c99038e10434aba08dbc7 | [
"MIT"
] | null | null | null | loops/for/for3.py | camipozas/python-exercises | c8c02d2b9ff77f21592c99038e10434aba08dbc7 | [
"MIT"
] | null | null | null | # Escribir un programa que muestre la sumatoria de todos los mltiplos de 7 encontrados entre el 0 y el 100.
# Summing all the multiples of 7 from 0 to 100.
total = 0
for i in range(101):
if i % 7 == 0:
total = total+i
print("Sumatoria de los mltiplos de 7:", total)
| 28.4 | 110 | 0.679577 |
0a67bdcc24a12daa838689d0d299113ff13d2c1e | 7,044 | py | Python | lib/TWCManager/Status/HASSStatus.py | Saftwerk/TWCManager | 9b17c063ada80fc159db82fe6e3ad8c4ca071a1a | [
"Unlicense"
] | 1 | 2021-12-26T03:41:22.000Z | 2021-12-26T03:41:22.000Z | lib/TWCManager/Status/HASSStatus.py | Saftwerk/TWCManager | 9b17c063ada80fc159db82fe6e3ad8c4ca071a1a | [
"Unlicense"
] | null | null | null | lib/TWCManager/Status/HASSStatus.py | Saftwerk/TWCManager | 9b17c063ada80fc159db82fe6e3ad8c4ca071a1a | [
"Unlicense"
] | null | null | null | # HomeAssistant Status Output
# Publishes the provided sensor key and value pair to a HomeAssistant instance
import logging
import time
from ww import f
logger = logging.getLogger(__name__.rsplit(".")[-1])
| 33.383886 | 104 | 0.52598 |
0a682a6477a9ae21b7ff09cd8fd4db9201909c6a | 809 | py | Python | Archive/routes/home_routes.py | taycurran/TwitOff | 6e2ee13f83fa86c80988a91b3b41ed0958688c3c | [
"MIT"
] | null | null | null | Archive/routes/home_routes.py | taycurran/TwitOff | 6e2ee13f83fa86c80988a91b3b41ed0958688c3c | [
"MIT"
] | 3 | 2021-06-08T21:05:06.000Z | 2022-01-13T02:20:50.000Z | Archive/routes/home_routes.py | taycurran/TwitOff | 6e2ee13f83fa86c80988a91b3b41ed0958688c3c | [
"MIT"
] | null | null | null |
from flask import Blueprint, jsonify, request, render_template
home_routes = Blueprint("home_routes", __name__)
# # Add config for database
# app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
# # stop tracking modifications on sqlalchemy config
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
#... | 25.28125 | 64 | 0.678616 |
0a6a0fd024fe59393b29eb7bb5c4f5bdd676e60b | 8,845 | py | Python | intent/scripts/classification/ctn_to_classifier.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | 3 | 2016-08-05T01:11:57.000Z | 2017-08-26T15:35:51.000Z | intent/scripts/classification/ctn_to_classifier.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | 2 | 2016-03-01T22:41:24.000Z | 2016-09-14T18:39:25.000Z | intent/scripts/classification/ctn_to_classifier.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from collections import defaultdict
import glob
import os
import pickle
from random import shuffle, seed
import sys
from tempfile import mkdtemp
import shutil
import logging
root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG)
CTN_LOG = logging.getLogger('CTN_CLASS... | 33.25188 | 116 | 0.614019 |
0a6abcccf806b40379eafeffa1d5d6385d6c8a7c | 1,358 | py | Python | watchdog/back-end/v0.3.0/watchdog/app/resource/video.py | Havana3351/Low-cost-remote-monitor | 9f86a62b8515c0f9fddda31f25548680f0ad8e2f | [
"MIT"
] | 18 | 2021-12-03T13:18:07.000Z | 2022-03-30T20:20:17.000Z | watchdog/back-end/v1.0.0/watchdogV1-3/app/resource/video.py | Fairywyt/Low-cost-remote-monitor | 263b98d969251d2dbef5fb5e4d42a58075e744fa | [
"MIT"
] | null | null | null | watchdog/back-end/v1.0.0/watchdogV1-3/app/resource/video.py | Fairywyt/Low-cost-remote-monitor | 263b98d969251d2dbef5fb5e4d42a58075e744fa | [
"MIT"
] | 4 | 2022-03-22T09:58:00.000Z | 2022-03-28T08:57:17.000Z | from flask_restful import Resource
from flask import Response
import os
import cv2
picturecounter = 1 # | 26.115385 | 111 | 0.563328 |
0a6b4ad6f031ba8193614f726faf3a710def3c48 | 22,385 | py | Python | codes/ambfix.py | valgur/LEOGPS | f289f279ef55980a0e3fd82b3b3686e41c474a2e | [
"MIT"
] | null | null | null | codes/ambfix.py | valgur/LEOGPS | f289f279ef55980a0e3fd82b3b3686e41c474a2e | [
"MIT"
] | null | null | null | codes/ambfix.py | valgur/LEOGPS | f289f279ef55980a0e3fd82b3b3686e41c474a2e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
###############################################################################
###############################################################################
## ##
## _ ___ ___ ___ ___ ___ ... | 42.638095 | 104 | 0.3979 |
0a6bdfe36df3fc3c2674d86fa755f854cc5eacf6 | 133 | py | Python | summarizer/test_summarizer.py | bmcilw1/text-summary | f594fd4f41279a6e11262ac859cfbdad6aaf1703 | [
"MIT"
] | null | null | null | summarizer/test_summarizer.py | bmcilw1/text-summary | f594fd4f41279a6e11262ac859cfbdad6aaf1703 | [
"MIT"
] | null | null | null | summarizer/test_summarizer.py | bmcilw1/text-summary | f594fd4f41279a6e11262ac859cfbdad6aaf1703 | [
"MIT"
] | null | null | null | from summarizer.summarizer import summarize
| 26.6 | 56 | 0.796992 |
0a6d2f3733dce67a2fafd219a662c5c458e102f9 | 1,774 | py | Python | XORCipher/XOREncrypt.py | KarthikGandrala/DataEncryption | 6ed4dffead345bc9f7010ac2ea9afbff958c85af | [
"MIT"
] | 1 | 2021-07-12T06:05:45.000Z | 2021-07-12T06:05:45.000Z | XORCipher/XOREncrypt.py | KarthikGandrala/Encrypt-Your-Data | 6ed4dffead345bc9f7010ac2ea9afbff958c85af | [
"MIT"
] | null | null | null | XORCipher/XOREncrypt.py | KarthikGandrala/Encrypt-Your-Data | 6ed4dffead345bc9f7010ac2ea9afbff958c85af | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Function to encrypt message using key is defined
| 23.653333 | 79 | 0.558061 |
0a6e68db8c94071ad8a29d0149ef1ef93e54c4c1 | 634 | py | Python | 02-Use-functions/21-Opening_a_file/secret_message.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 02-Use-functions/21-Opening_a_file/secret_message.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 02-Use-functions/21-Opening_a_file/secret_message.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
import random
print("# Python program - Adding random numbers to beginning of filename.")
rename_files("./prank")
| 25.36 | 83 | 0.679811 |
0a6eef44c90456b4e29cb5273e1126093472758f | 101,780 | py | Python | xarray/core/variable.py | timgates42/xarray | bf0fe2caca1d2ebc4f1298f019758baa12f68b94 | [
"Apache-2.0"
] | null | null | null | xarray/core/variable.py | timgates42/xarray | bf0fe2caca1d2ebc4f1298f019758baa12f68b94 | [
"Apache-2.0"
] | null | null | null | xarray/core/variable.py | timgates42/xarray | bf0fe2caca1d2ebc4f1298f019758baa12f68b94 | [
"Apache-2.0"
] | 1 | 2021-07-13T07:06:10.000Z | 2021-07-13T07:06:10.000Z | import copy
import functools
import itertools
import numbers
import warnings
from collections import defaultdict
from datetime import timedelta
from distutils.version import LooseVersion
from typing import (
Any,
Dict,
Hashable,
Mapping,
Optional,
Sequence,
Tuple,
TypeVar,
Union,
)
... | 36.664265 | 124 | 0.589674 |
0a6f4ad99174d6090d3cbdb6c9bcc1d787eae3b4 | 223 | py | Python | codeforces.com/1186A/solution.py | zubtsov/competitive-programming | 919d63130144347d7f6eddcf8f5bc2afb85fddf3 | [
"MIT"
] | null | null | null | codeforces.com/1186A/solution.py | zubtsov/competitive-programming | 919d63130144347d7f6eddcf8f5bc2afb85fddf3 | [
"MIT"
] | null | null | null | codeforces.com/1186A/solution.py | zubtsov/competitive-programming | 919d63130144347d7f6eddcf8f5bc2afb85fddf3 | [
"MIT"
] | null | null | null | number_of_participants, number_of_pens, number_of_notebooks = map(int, input().split())
if number_of_pens >= number_of_participants and number_of_notebooks >= number_of_participants:
print('Yes')
else:
print('No')
| 31.857143 | 94 | 0.7713 |
0a7052f7029ee061d74d603abefe9574ef7b3461 | 114 | py | Python | DLA/__main__.py | StanczakDominik/DLA | bf63592a5ac96ffef639e7a0c80d7d52ff776322 | [
"MIT"
] | null | null | null | DLA/__main__.py | StanczakDominik/DLA | bf63592a5ac96ffef639e7a0c80d7d52ff776322 | [
"MIT"
] | null | null | null | DLA/__main__.py | StanczakDominik/DLA | bf63592a5ac96ffef639e7a0c80d7d52ff776322 | [
"MIT"
] | null | null | null | from DLA import main_single
d = main_single(1, gotosize=[1e4, 5e4])
d.plot_particles()
d.plot_mass_distribution()
| 22.8 | 39 | 0.780702 |
0a70ca1b5958248a2b51b4d49a2d791ec9ec77e7 | 36,386 | py | Python | pyamf/tests/test_util.py | bulutistan/Py3AMF | 3de53095b52fe2bf82b69ba5ad0b894b53045f7e | [
"MIT"
] | 42 | 2017-04-17T11:40:25.000Z | 2021-09-19T09:59:31.000Z | pyamf/tests/test_util.py | bulutistan/Py3AMF | 3de53095b52fe2bf82b69ba5ad0b894b53045f7e | [
"MIT"
] | 8 | 2017-07-27T07:39:30.000Z | 2021-10-19T09:49:09.000Z | pyamf/tests/test_util.py | bulutistan/Py3AMF | 3de53095b52fe2bf82b69ba5ad0b894b53045f7e | [
"MIT"
] | 15 | 2017-05-16T12:46:33.000Z | 2021-09-20T02:30:57.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Tests for AMF utilities.
@since: 0.1.0
"""
import unittest
from datetime import datetime
from io import BytesIO
import pyamf
from pyamf import util
from pyamf.tests.util import replace_dict
PosInf = 1e300000
NegInf = -... | 27.461132 | 81 | 0.542516 |
0a71715157a2be752f2c46cd1b41f44aab6ece59 | 3,087 | py | Python | e-valuator.py | keocol/e-valuator | c2bab22e3debf08263fef57ee4135312a2bb2b0d | [
"MIT"
] | null | null | null | e-valuator.py | keocol/e-valuator | c2bab22e3debf08263fef57ee4135312a2bb2b0d | [
"MIT"
] | null | null | null | e-valuator.py | keocol/e-valuator | c2bab22e3debf08263fef57ee4135312a2bb2b0d | [
"MIT"
] | null | null | null | import dns.resolver
import sys
import colorama
import platform
from colorama import init, Fore, Back, Style
import re
# pip install -r requirements.txt (colorama)
os = platform.platform()
if os.find('Windows')!= (-1):
init(convert=True)
print("""
\x1B[3mSimple Python3 Script fo... | 32.15625 | 108 | 0.547781 |
6a50e8edb03f4c7852b3cc7809ccd49216f25af1 | 2,655 | py | Python | api/server.py | qh73xe/HowAboutNatume | 8d994a1e16e2153dc200097d8f8b43713d76a3d5 | [
"MIT"
] | null | null | null | api/server.py | qh73xe/HowAboutNatume | 8d994a1e16e2153dc200097d8f8b43713d76a3d5 | [
"MIT"
] | 7 | 2020-03-24T15:37:48.000Z | 2021-06-01T22:01:22.000Z | api/server.py | qh73xe/HowAboutNatume | 8d994a1e16e2153dc200097d8f8b43713d76a3d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
""" ask.api ."""
from json import dumps
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.options import parse_command_line
from tornado.web import Application, RequestHandler
from tornado.options import define, options
from tokenizer import get_entity
fr... | 27.947368 | 75 | 0.529567 |
6a5258097a7cb4af2ef28cde1153d8db7884fd80 | 3,012 | py | Python | proxy/http/chunk_parser.py | GDGSNF/proxy.py | 3ee2824217286df3c108beadf3185eee35c28b49 | [
"BSD-3-Clause"
] | null | null | null | proxy/http/chunk_parser.py | GDGSNF/proxy.py | 3ee2824217286df3c108beadf3185eee35c28b49 | [
"BSD-3-Clause"
] | null | null | null | proxy/http/chunk_parser.py | GDGSNF/proxy.py | 3ee2824217286df3c108beadf3185eee35c28b49 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE fo... | 35.857143 | 86 | 0.581009 |
6a53c43c787fb87b95985049d6273d36fc7dbdab | 31,240 | py | Python | nova/pci/stats.py | 10088/nova | 972c06c608f0b00e9066d7f581fd81197065cf49 | [
"Apache-2.0"
] | null | null | null | nova/pci/stats.py | 10088/nova | 972c06c608f0b00e9066d7f581fd81197065cf49 | [
"Apache-2.0"
] | null | null | null | nova/pci/stats.py | 10088/nova | 972c06c608f0b00e9066d7f581fd81197065cf49 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Intel, Inc.
# Copyright (c) 2013 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/li... | 41.708945 | 79 | 0.628073 |
6a54175f824a3a8a92a61c38d426dd45948b4848 | 364 | py | Python | Use.py | Codingprivacy/Multiple-Rename | 486289e8158487dad058cd8f781ac27bc9a5fc02 | [
"MIT"
] | 2 | 2018-04-01T06:16:33.000Z | 2018-05-04T18:57:50.000Z | Use.py | codingprivacy/Multiple-Rename | 486289e8158487dad058cd8f781ac27bc9a5fc02 | [
"MIT"
] | null | null | null | Use.py | codingprivacy/Multiple-Rename | 486289e8158487dad058cd8f781ac27bc9a5fc02 | [
"MIT"
] | null | null | null | import multiple
multiple.rename("C:/Users/Username/Desktop",'new_name',33,'.exe')
"""this above lines renames all the files of the folder Desktop to 'new_name' and
count starts from 33 to further (we can also provide 1 to start it from 1) and
extension is given '.exe'
hence the files will be renamed like :
1. new_n... | 28 | 81 | 0.739011 |
6a55c2af9ac7243f141edb694902ca98eb95a939 | 278 | py | Python | ReadSymLink.py | ohel/pyorbital-gizmod-tweaks | 4c02783d1c6287df508351467a5c203a11430b07 | [
"Unlicense"
] | null | null | null | ReadSymLink.py | ohel/pyorbital-gizmod-tweaks | 4c02783d1c6287df508351467a5c203a11430b07 | [
"Unlicense"
] | null | null | null | ReadSymLink.py | ohel/pyorbital-gizmod-tweaks | 4c02783d1c6287df508351467a5c203a11430b07 | [
"Unlicense"
] | null | null | null | import os
def readlinkabs(l):
"""
Return an absolute path for the destination
of a symlink
"""
if not (os.path.islink(l)):
return None
p = os.readlink(l)
if os.path.isabs(p):
return p
return os.path.join(os.path.dirname(l), p)
| 18.533333 | 48 | 0.582734 |
6a55f8c89efdf9367ae5e51c6555c781fae366b6 | 1,368 | py | Python | examples/capture_circular.py | IanTBlack/picamera2 | 4d31a56cdb0d8360e71927e754fc6bef50bec360 | [
"BSD-2-Clause"
] | 71 | 2022-02-15T14:24:34.000Z | 2022-03-29T16:36:46.000Z | examples/capture_circular.py | IanTBlack/picamera2 | 4d31a56cdb0d8360e71927e754fc6bef50bec360 | [
"BSD-2-Clause"
] | 37 | 2022-02-16T12:35:45.000Z | 2022-03-31T13:18:42.000Z | examples/capture_circular.py | IanTBlack/picamera2 | 4d31a56cdb0d8360e71927e754fc6bef50bec360 | [
"BSD-2-Clause"
] | 15 | 2022-02-16T12:12:57.000Z | 2022-03-31T15:17:58.000Z | #!/usr/bin/python3
import time
import numpy as np
from picamera2.encoders import H264Encoder
from picamera2.outputs import CircularOutput
from picamera2 import Picamera2
lsize = (320, 240)
picam2 = Picamera2()
video_config = picam2.video_configuration(main={"size": (1280, 720), "format": "RGB888"},
... | 27.918367 | 89 | 0.604532 |
6a561a673ebb04da901d20e99ce9c86e3955a26e | 8,933 | py | Python | Bio/NeuralNetwork/Gene/Pattern.py | barendt/biopython | 391bcdbee7f821bff3e12b75c635a06bc1b2dcea | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Bio/NeuralNetwork/Gene/Pattern.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Bio/NeuralNetwork/Gene/Pattern.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 6 | 2020-02-26T16:34:20.000Z | 2020-03-04T15:34:00.000Z | """Generic functionality useful for all gene representations.
This module contains classes which can be used for all the different
types of patterns available for representing gene information (ie. motifs,
signatures and schemas). These are the general classes which should be
handle any of the different specific patte... | 35.169291 | 110 | 0.622187 |
6a565a6b3597c1dbb9a2e86bdaf31bd17e76951c | 58 | py | Python | neslter/parsing/nut/__init__.py | WHOIGit/nes-lter-ims | d4cc96c10da56ca33286af84d669625b67170522 | [
"MIT"
] | 3 | 2019-01-24T16:32:50.000Z | 2021-11-05T02:18:12.000Z | neslter/parsing/nut/__init__.py | WHOIGit/nes-lter-ims | d4cc96c10da56ca33286af84d669625b67170522 | [
"MIT"
] | 45 | 2019-05-23T15:15:32.000Z | 2022-03-15T14:09:20.000Z | neslter/parsing/nut/__init__.py | WHOIGit/nes-lter-ims | d4cc96c10da56ca33286af84d669625b67170522 | [
"MIT"
] | null | null | null | from .nut import parse_nut, format_nut, merge_nut_bottles
| 29 | 57 | 0.844828 |
6a57cefd47f3150e0a9d0bbdcd3affcfe90d72c9 | 15,520 | py | Python | legtool/tabs/servo_tab.py | jpieper/legtool | ab3946051bd16817b61d3073ce7be8bd27af90d0 | [
"Apache-2.0"
] | 10 | 2015-09-23T19:28:06.000Z | 2021-04-27T02:32:27.000Z | legtool/tabs/servo_tab.py | jpieper/legtool | ab3946051bd16817b61d3073ce7be8bd27af90d0 | [
"Apache-2.0"
] | null | null | null | legtool/tabs/servo_tab.py | jpieper/legtool | ab3946051bd16817b61d3073ce7be8bd27af90d0 | [
"Apache-2.0"
] | 9 | 2015-10-16T07:26:18.000Z | 2021-01-13T07:18:35.000Z | # Copyright 2014 Josh Pieper, jjp@pobox.com.
#
# 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... | 35.514874 | 78 | 0.593814 |
6a588636dc362efae84b790a87924f429a4e4039 | 33,745 | py | Python | epsilon/juice.py | twisted/epsilon | 783910e1829688e95719a7d3151ec3e2cbb101fd | [
"MIT"
] | 4 | 2017-09-01T18:49:11.000Z | 2020-04-21T10:11:33.000Z | epsilon/juice.py | twisted/epsilon | 783910e1829688e95719a7d3151ec3e2cbb101fd | [
"MIT"
] | 35 | 2015-01-16T22:12:44.000Z | 2021-07-11T11:28:58.000Z | epsilon/juice.py | twisted/epsilon | 783910e1829688e95719a7d3151ec3e2cbb101fd | [
"MIT"
] | 8 | 2015-01-24T17:43:58.000Z | 2019-09-01T12:38:41.000Z | # -*- test-case-name: epsilon.test.test_juice -*-
# Copyright 2005 Divmod, Inc. See LICENSE file for details
import warnings, pprint
import keyword
import io
import six
from twisted.internet.main import CONNECTION_LOST
from twisted.internet.defer import Deferred, maybeDeferred, fail
from twisted.internet.protocol im... | 33.410891 | 133 | 0.602874 |
6a5913eb8964167841ec2eb740f4b32d39ad706a | 7,290 | py | Python | bonsai3/simulator_client.py | kirillpol-ms/bonsai3-py | ede9c2c1d25d784d61b7cbf1438a257b5d592274 | [
"MIT"
] | null | null | null | bonsai3/simulator_client.py | kirillpol-ms/bonsai3-py | ede9c2c1d25d784d61b7cbf1438a257b5d592274 | [
"MIT"
] | 3 | 2020-06-01T18:43:55.000Z | 2020-08-14T17:44:54.000Z | bonsai3/simulator_client.py | BonsaiAI/bonsai3-py | 29158cc58f39604fa96e10e41ff00fc195f6b315 | [
"MIT"
] | 2 | 2020-06-16T14:24:17.000Z | 2020-08-13T00:27:31.000Z | """
Client for simulator requests
"""
__copyright__ = "Copyright 2020, Microsoft Corp."
# pyright: strict
from random import uniform
import time
from typing import Union
import jsons
import requests
from .exceptions import RetryTimeoutError, ServiceError
from .logger import Logger
from .simulator_protocol import (
... | 38.167539 | 120 | 0.58834 |
6a5a09a1f1eb09c5b1fb6c4e179dd1021a0b354e | 47,088 | py | Python | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | 8 | 2022-03-27T18:37:57.000Z | 2022-03-30T09:17:26.000Z | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | null | null | null | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | 1 | 2022-03-31T02:22:58.000Z | 2022-03-31T02:22:58.000Z | '''
GuoWang xie
set up :2020-1-9
intergrate img and label into one file
-- fiducial1024_v1
'''
import argparse
import sys, os
import pickle
import random
import collections
import json
import numpy as np
import scipy.io as io
import scipy.misc as m
import matplotlib.pyplot as plt
import glob
import math
import time
... | 53.692132 | 380 | 0.720417 |
6a5a90584312df812f9d84d198fd00ed22ebcb67 | 3,042 | py | Python | tweet_evaluator.py | tw-ddis/Gnip-Tweet-Evaluation | c5c847698bd6deb891870e5cf2514dfe78caa1c2 | [
"MIT"
] | 3 | 2019-11-14T11:46:27.000Z | 2021-01-16T06:04:46.000Z | tweet_evaluator.py | pen-corsica/Gnip-Tweet-Evaluation | c5c847698bd6deb891870e5cf2514dfe78caa1c2 | [
"MIT"
] | 1 | 2017-09-19T22:59:03.000Z | 2017-09-19T23:06:12.000Z | tweet_evaluator.py | pen-corsica/Gnip-Tweet-Evaluation | c5c847698bd6deb891870e5cf2514dfe78caa1c2 | [
"MIT"
] | 4 | 2016-06-13T16:34:32.000Z | 2017-08-01T20:20:56.000Z | #!/usr/bin/env python
import argparse
import logging
try:
import ujson as json
except ImportError:
import json
import sys
import datetime
import os
import importlib
from gnip_tweet_evaluation import analysis,output
"""
Perform audience and/or conversation analysis on a set of Tweets.
"""
logger = logging.g... | 42.25 | 140 | 0.72288 |
6a5b61c287644aa1eac5b1af996dc433d21c0841 | 2,621 | py | Python | app.py | admiral-aokiji/whatsapp-bot | 5a0b0d4afddc679cda3670771934cb472629587a | [
"MIT"
] | null | null | null | app.py | admiral-aokiji/whatsapp-bot | 5a0b0d4afddc679cda3670771934cb472629587a | [
"MIT"
] | null | null | null | app.py | admiral-aokiji/whatsapp-bot | 5a0b0d4afddc679cda3670771934cb472629587a | [
"MIT"
] | null | null | null | from flask import Flask, request
import os
from twilio.twiml.messaging_response import MessagingResponse
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = os.environ.get("GOOGLE_CHROME_BIN")
chrome_options.add_argument("--headless")
chrome_options.add_argument("-... | 39.119403 | 217 | 0.645174 |
6a5b876bee110f96f947af456cbf93cb78d5e1bc | 94 | py | Python | nflfastpy/errors.py | hchaozhe/nflfastpy | 11e4894d7fee4ff8baac2c08b000a39308b41143 | [
"MIT"
] | 47 | 2020-10-24T10:10:51.000Z | 2022-03-07T19:48:05.000Z | nflfastpy/errors.py | jbf302/nflfastpy | c1e2365966e0f0f8efeb651be804d84caba57807 | [
"MIT"
] | 3 | 2021-05-03T11:58:00.000Z | 2021-11-14T16:17:30.000Z | nflfastpy/errors.py | jbf302/nflfastpy | c1e2365966e0f0f8efeb651be804d84caba57807 | [
"MIT"
] | 7 | 2020-12-14T15:03:12.000Z | 2021-11-17T23:41:37.000Z | """
Custom exceptions for nflfastpy module
""" | 15.666667 | 38 | 0.755319 |
6a5ce615b33cd197b365d6e3673610f15fbcf59b | 12,289 | py | Python | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | null | null | null | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | 3 | 2019-12-09T06:04:00.000Z | 2019-12-09T06:05:23.000Z | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | null | null | null | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
| 45.854478 | 85 | 0.487509 |
6a5cfd1895fbfd5a40ac1b9716a706c236f16372 | 2,309 | py | Python | dynamic_setting/tests/test_models.py | koralarts/django-dynamic-settings | 8a3c5f44ad71f6d8fb78af9e7a3f5a380dd3d318 | [
"MIT"
] | 2 | 2015-02-11T05:07:19.000Z | 2015-11-24T17:49:03.000Z | dynamic_setting/tests/test_models.py | koralarts/django-dynamic-settings | 8a3c5f44ad71f6d8fb78af9e7a3f5a380dd3d318 | [
"MIT"
] | 1 | 2018-03-02T13:26:08.000Z | 2018-03-02T13:26:08.000Z | dynamic_setting/tests/test_models.py | koralarts/django-dynamic-settings | 8a3c5f44ad71f6d8fb78af9e7a3f5a380dd3d318 | [
"MIT"
] | null | null | null | from django.test import TestCase
from dynamic_setting.models import Setting
| 36.078125 | 80 | 0.628411 |
6a5d7ccdf81701102bd40960b2c34a8fefe0bff7 | 3,973 | py | Python | homeassistant/components/zamg/weather.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/zamg/weather.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/zamg/weather.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Sensor for data from Austrian Zentralanstalt fr Meteorologie."""
from __future__ import annotations
import logging
import voluptuous as vol
from homeassistant.components.weather import (
ATTR_WEATHER_HUMIDITY,
ATTR_WEATHER_PRESSURE,
ATTR_WEATHER_TEMPERATURE,
ATTR_WEATHER_WIND_BEARING,
ATTR_WEA... | 28.582734 | 87 | 0.678832 |
6a5e2a2e683b7b168a4a8789ce91b511ae5da26d | 19,403 | py | Python | rasa/model.py | martasls/rasa | 6e535a847f6be0c05e7b89208f16a53d2c478629 | [
"Apache-2.0"
] | null | null | null | rasa/model.py | martasls/rasa | 6e535a847f6be0c05e7b89208f16a53d2c478629 | [
"Apache-2.0"
] | null | null | null | rasa/model.py | martasls/rasa | 6e535a847f6be0c05e7b89208f16a53d2c478629 | [
"Apache-2.0"
] | null | null | null | import copy
import glob
import hashlib
import logging
import os
import shutil
from subprocess import CalledProcessError, DEVNULL, check_output # skipcq:BAN-B404
import tempfile
import typing
from pathlib import Path
from typing import Any, Text, Tuple, Union, Optional, List, Dict, NamedTuple
from packaging import ver... | 31.345719 | 89 | 0.687368 |
6a5e9ccfe0101a01a8c7498e619dd38d0b22d208 | 2,484 | py | Python | algorithmic_trading/backester_framework_test.py | CatalaniCD/quantitative_finance | c752516a43cd80914dcc8411aadd7b15a258d6a4 | [
"MIT"
] | 1 | 2021-08-20T19:17:10.000Z | 2021-08-20T19:17:10.000Z | algorithmic_trading/backester_framework_test.py | CatalaniCD/quantitative_finance | c752516a43cd80914dcc8411aadd7b15a258d6a4 | [
"MIT"
] | null | null | null | algorithmic_trading/backester_framework_test.py | CatalaniCD/quantitative_finance | c752516a43cd80914dcc8411aadd7b15a258d6a4 | [
"MIT"
] | 1 | 2021-10-04T07:44:02.000Z | 2021-10-04T07:44:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 16 11:20:01 2021
@author: q
GOAL : develop a backtester from a .py framework / library
# installation :
pip install backtesting
# Documentation
Index :
- Manuals
- Tutorials
- Example Strategies
- FAQ
... | 25.090909 | 79 | 0.515298 |
6a5edc2a9e4d4da78b37be28e1fdb8023841826f | 2,215 | py | Python | Sec_10_expr_lambdas_fun_integradas/f_generators.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | Sec_10_expr_lambdas_fun_integradas/f_generators.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | Sec_10_expr_lambdas_fun_integradas/f_generators.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | """"
Generator Expression
Em aulas anteriores foi abordado:
- List Comprehension;
- Dictionary Comprehension;
- Set Comprehension.
No foi abordado:
- Tuple Comprehension ... porque elas se chamam Generators
nomes = ['Carlos', 'Camila', 'Carla', 'Cristiana', 'Cristina', 'Vanessa']
print(any8[nomes[0]... | 24.340659 | 92 | 0.719187 |
6a5f51cf2ae3a67fb99172b7bd4214f43d0d42bc | 269 | py | Python | python/ordenacao.py | valdirsjr/learning.data | a4b72dfd27f55f2f04120644b73232bf343f71e3 | [
"MIT"
] | null | null | null | python/ordenacao.py | valdirsjr/learning.data | a4b72dfd27f55f2f04120644b73232bf343f71e3 | [
"MIT"
] | null | null | null | python/ordenacao.py | valdirsjr/learning.data | a4b72dfd27f55f2f04120644b73232bf343f71e3 | [
"MIT"
] | null | null | null | numero1 = int(input("Digite o primeiro nmero: "))
numero2 = int(input("Digite o segundo nmero: "))
numero3 = int(input("Digite o terceiro nmero: "))
if (numero1 < numero2 and numero2 < numero3):
print("crescente")
else:
print("no est em ordem crescente") | 38.428571 | 50 | 0.69145 |
6a5f7c637685db9897573cf124a2ab2c3a9ea578 | 408 | py | Python | _sources/5-extra/opg-parameters-sneeuwvlok_solution.py | kooi/ippt-od | f1ba44ccfb72e6fcdfdc392fbfbec3e37c47b354 | [
"MIT"
] | 1 | 2018-08-21T21:05:41.000Z | 2018-08-21T21:05:41.000Z | _sources/5-extra/opg-parameters-sneeuwvlok_solution.py | kooi/ippt-od | f1ba44ccfb72e6fcdfdc392fbfbec3e37c47b354 | [
"MIT"
] | null | null | null | _sources/5-extra/opg-parameters-sneeuwvlok_solution.py | kooi/ippt-od | f1ba44ccfb72e6fcdfdc392fbfbec3e37c47b354 | [
"MIT"
] | null | null | null | import turtle
tina = turtle.Turtle()
tina.shape("turtle")
tina.speed(10)
sneeuwvlok(30, 6)
| 21.473684 | 72 | 0.644608 |
6a5ff44d20ced0eb4ad46edf90219db489f08973 | 5,153 | py | Python | nikola/plugins/task_render_listings.py | servalproject/nikola | 4d78504d93597894f3da4a434dfafdec907601a7 | [
"MIT"
] | 1 | 2015-12-14T21:38:33.000Z | 2015-12-14T21:38:33.000Z | nikola/plugins/task_render_listings.py | servalproject/nikola | 4d78504d93597894f3da4a434dfafdec907601a7 | [
"MIT"
] | null | null | null | nikola/plugins/task_render_listings.py | servalproject/nikola | 4d78504d93597894f3da4a434dfafdec907601a7 | [
"MIT"
] | null | null | null | # Copyright (c) 2012 Roberto Alsina y otros.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, pub... | 39.335878 | 81 | 0.523578 |
6a60999063f76386f01b79b85ecc655ec0929c57 | 25,232 | py | Python | csld/phonon/head.py | jsyony37/csld | b0e6d5845d807174f24ca7b591bc164c608c99c8 | [
"MIT"
] | null | null | null | csld/phonon/head.py | jsyony37/csld | b0e6d5845d807174f24ca7b591bc164c608c99c8 | [
"MIT"
] | null | null | null | csld/phonon/head.py | jsyony37/csld | b0e6d5845d807174f24ca7b591bc164c608c99c8 | [
"MIT"
] | null | null | null | # to include all module here in order to cite
from numpy import *
from numpy.linalg import *
import string
import os
import scipy
import scipy.sparse
#import rwposcar
#import anaxdat
import math
#define touch file
if False:
mkdir("xixi/")
#define rm file
#define check file(1 exist; else0)
#define check the f... | 65.537662 | 12,884 | 0.507411 |
6a60c251c96da7b05351011b63ba88125eca7fb7 | 9,790 | py | Python | sdk/python/pulumi_azure_native/storage/storage_account_static_website.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storage/storage_account_static_website.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storage/storage_account_static_website.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 48.226601 | 199 | 0.674157 |
6a61c6ef3ad58f9b8003931de1870b0f5ad404c7 | 1,247 | py | Python | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | 3 | 2021-01-19T20:23:17.000Z | 2021-01-19T21:38:59.000Z | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | null | null | null | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | 2 | 2019-12-27T13:58:00.000Z | 2020-05-21T18:35:40.000Z | # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This f... | 35.628571 | 133 | 0.735365 |
6a61f1e1f810996e1c76609bf6e7fcc907c4da57 | 2,020 | py | Python | lang/py/aingle/test/gen_interop_data.py | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | lang/py/aingle/test/gen_interop_data.py | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | lang/py/aingle/test/gen_interop_data.py | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
##
# 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
... | 31.5625 | 127 | 0.681188 |
6a630004921c5a5ff2ec4e4b2d0a96b0bf000baa | 897 | py | Python | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | null | null | null | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | 4 | 2016-04-22T15:39:21.000Z | 2016-11-15T21:23:58.000Z | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | 4 | 2017-05-12T00:17:55.000Z | 2019-07-01T19:23:32.000Z | import numpy as np
from scipy import ndimage
| 42.714286 | 101 | 0.733556 |
6a631c95edefbd6ccab71b999ffa359886535e5b | 32,032 | py | Python | astropy/units/tests/test_logarithmic.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 3 | 2018-03-20T15:09:16.000Z | 2021-05-27T11:17:33.000Z | astropy/units/tests/test_logarithmic.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | astropy/units/tests/test_logarithmic.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # coding: utf-8
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Test the Logarithmic Units and Quantities
"""
from __future__ import (absolute_import, unicode_literals, division,
print_function)
from ...extern import six
from ...extern.six.moves import zip
import pickle... | 37.031214 | 80 | 0.59094 |
6a64620ee9819bca0e28e6f332c50299811770b5 | 13,981 | py | Python | djconnectwise/tests/mocks.py | kti-sam/django-connectwise | 28484faad9435892a46b8ce4a3c957f64c299971 | [
"MIT"
] | null | null | null | djconnectwise/tests/mocks.py | kti-sam/django-connectwise | 28484faad9435892a46b8ce4a3c957f64c299971 | [
"MIT"
] | null | null | null | djconnectwise/tests/mocks.py | kti-sam/django-connectwise | 28484faad9435892a46b8ce4a3c957f64c299971 | [
"MIT"
] | null | null | null | import os
from mock import patch
from datetime import datetime, date, time
import json
import responses
from . import fixtures
from django.utils import timezone
CW_MEMBER_IMAGE_FILENAME = 'AnonymousMember.png'
def create_mock_call(method_name, return_value, side_effect=None):
"""Utility function for mocking th... | 36.126615 | 78 | 0.800801 |
6a648d570a29d5a4d4e0f9f5bffd72aadfab36cb | 2,632 | py | Python | visual_odometry/visual_odometry.py | vineeths96/Visual-Odometry | 88d96a23a0bde9c05de1f4dddcca8b6c4bd817e7 | [
"MIT"
] | 2 | 2021-07-20T03:49:54.000Z | 2022-01-19T13:43:51.000Z | visual_odometry/visual_odometry.py | vineeths96/Visual-Odometry | 88d96a23a0bde9c05de1f4dddcca8b6c4bd817e7 | [
"MIT"
] | null | null | null | visual_odometry/visual_odometry.py | vineeths96/Visual-Odometry | 88d96a23a0bde9c05de1f4dddcca8b6c4bd817e7 | [
"MIT"
] | 3 | 2021-11-28T06:23:23.000Z | 2021-12-05T17:09:00.000Z | from .monovideoodometry import MonoVideoOdometry
from .parameters import *
def visual_odometry(
image_path="./input/sequences/10/image_0/",
pose_path="./input/poses/10.txt",
fivepoint=False,
):
"""
Plots the estimated odometry path using either five point estimation or eight point estimation
:... | 32.097561 | 98 | 0.578647 |
6a659a66fbda946ae307b1633f49b480eec28005 | 886 | py | Python | tf-2-data-parallelism/src/utils.py | Amirosimani/amazon-sagemaker-script-mode | ea8d7d6b1b0613dffa793c9ae247cfd8868034ec | [
"Apache-2.0"
] | 144 | 2019-02-05T21:03:30.000Z | 2022-03-24T15:24:32.000Z | tf-2-data-parallelism/src/utils.py | kirit93/amazon-sagemaker-script-mode | 095af07488889bb2655b741749d8740d3e11a49e | [
"Apache-2.0"
] | 22 | 2019-03-04T04:18:02.000Z | 2022-03-09T00:21:36.000Z | tf-2-data-parallelism/src/utils.py | kirit93/amazon-sagemaker-script-mode | 095af07488889bb2655b741749d8740d3e11a49e | [
"Apache-2.0"
] | 94 | 2019-02-05T21:03:33.000Z | 2022-01-16T07:29:15.000Z | import os
import numpy as np
import tensorflow as tf
| 36.916667 | 89 | 0.76298 |
6a65a78ac7de33dc7adca445fb1aae94ba18f829 | 10,269 | py | Python | scripts/run_rbf_comparison_car_air_top5.py | CaptainCandy/influence-release | a152486a1c130fb5f907259c6692b9fe0d2ef6d0 | [
"MIT"
] | null | null | null | scripts/run_rbf_comparison_car_air_top5.py | CaptainCandy/influence-release | a152486a1c130fb5f907259c6692b9fe0d2ef6d0 | [
"MIT"
] | null | null | null | scripts/run_rbf_comparison_car_air_top5.py | CaptainCandy/influence-release | a152486a1c130fb5f907259c6692b9fe0d2ef6d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 19 16:26:35 2019
@author: Administrator
"""
# Forked from run_rbf_comparison.py
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import math
import copy
import numpy as... | 30.930723 | 101 | 0.7435 |
6a6623a4cf3e4c5b80fbcffbafebb173294bba30 | 1,478 | py | Python | data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/find_4g.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/find_4g.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/find_4g.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import sys
import pickle
##########################################################
# usage
# pypy find_4g.py xid_train.p ../../data/train
# xid_train.p is a list like ['loIP1tiwELF9YNZQjSUO',''....] to specify
# the order of samples in traing data
# ../../data/train is the path of original train data
####... | 25.050847 | 72 | 0.451962 |
6a6651ad80b45cc4756ccfc411bd482091aff56e | 50 | py | Python | src/domain/enums/__init__.py | Antonio-Gabriel/easepay_backend | 9aaf4de27c9cc906911ae46ee61c75c6d92dc826 | [
"MIT"
] | 1 | 2021-11-24T09:18:19.000Z | 2021-11-24T09:18:19.000Z | src/domain/enums/__init__.py | Antonio-Gabriel/easepay_backend | 9aaf4de27c9cc906911ae46ee61c75c6d92dc826 | [
"MIT"
] | null | null | null | src/domain/enums/__init__.py | Antonio-Gabriel/easepay_backend | 9aaf4de27c9cc906911ae46ee61c75c6d92dc826 | [
"MIT"
] | null | null | null | from .months import Months
from .sizes import Size | 25 | 26 | 0.82 |
6a6655e14286bbfcb799353c5812e25b7720b10d | 1,512 | py | Python | pygments/lexers/trafficscript.py | blu-base/pygments | da799d14818ed538bf937684a19ce779ddde9446 | [
"BSD-2-Clause"
] | 1 | 2015-06-08T14:52:49.000Z | 2015-06-08T14:52:49.000Z | pygments/lexers/trafficscript.py | blu-base/pygments | da799d14818ed538bf937684a19ce779ddde9446 | [
"BSD-2-Clause"
] | 1 | 2022-03-13T09:17:24.000Z | 2022-03-13T09:18:02.000Z | pygments/lexers/trafficscript.py | blu-base/pygments | da799d14818ed538bf937684a19ce779ddde9446 | [
"BSD-2-Clause"
] | null | null | null | """
pygments.lexers.trafficscript
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexer for RiverBed's TrafficScript (RTS) language.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer
from pygments.token import String... | 29.076923 | 83 | 0.433201 |
6a681ede8ff42ae46d972ef7a200eff04f8f87d4 | 20,333 | py | Python | pandas/tests/indexes/test_common.py | dimithras/pandas | d321be6e2a43270625abf671d9e59f16529c4b48 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T17:32:26.000Z | 2020-10-29T17:32:26.000Z | pandas/tests/indexes/test_common.py | BhavarthShah/pandas | efb068f25b911ff3009d5692eb831df35bb042e5 | [
"BSD-3-Clause"
] | null | null | null | pandas/tests/indexes/test_common.py | BhavarthShah/pandas | efb068f25b911ff3009d5692eb831df35bb042e5 | [
"BSD-3-Clause"
] | null | null | null | """
Collection of tests asserting things that should be true for
any index subclass. Makes use of the `indices` fixture defined
in pandas/tests/indexes/conftest.py.
"""
import re
import numpy as np
import pytest
from pandas._libs.tslibs import iNaT
from pandas.core.dtypes.common import is_period_dtype, needs_i8_conv... | 37.79368 | 88 | 0.629764 |
6a6837a4b97157cac91cdd54ef662d5a158d6207 | 22,699 | py | Python | tests/test_dynamics.py | leasanchez/BiorbdOptim | 28fac818af031668ecd82bc1929f78303c5d58d2 | [
"MIT"
] | 34 | 2020-12-14T17:09:41.000Z | 2022-03-31T17:03:37.000Z | tests/test_dynamics.py | pariterre/bioptim | 4064138e7d3fce34e21d488df19941937ce30557 | [
"MIT"
] | 229 | 2020-09-30T16:53:40.000Z | 2022-03-29T21:11:46.000Z | tests/test_dynamics.py | fbailly/bioptim | 3a5473ee7c39d645d960611596a45b044e8ccf58 | [
"MIT"
] | 15 | 2020-11-20T12:32:59.000Z | 2022-01-22T22:59:08.000Z | import pytest
import numpy as np
from casadi import MX, SX
import biorbd_casadi as biorbd
from bioptim.dynamics.configure_problem import ConfigureProblem
from bioptim.dynamics.dynamics_functions import DynamicsFunctions
from bioptim.interfaces.biorbd_interface import BiorbdInterface
from bioptim.misc.enums import Cont... | 37.958194 | 120 | 0.491784 |
6a68e42c5242acff02618aac8ab6c6c44bb61d29 | 1,312 | py | Python | polyaxon/event_manager/event_manager.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/event_manager/event_manager.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/event_manager/event_manager.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | from hestia.manager_interface import ManagerInterface
from event_manager import event_actions
| 31.238095 | 90 | 0.634909 |
6a6b124cb7b2cd1d6d09ae5b84d5b49e63612508 | 679 | py | Python | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | from helpers import * | 35.736842 | 75 | 0.696613 |
6a6b9fd92e89d1958b00048f55376ec87fde6db2 | 7,696 | py | Python | docker/src/clawpack-5.3.1/riemann/src/shallow_1D_py.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 11 | 2017-01-04T18:19:48.000Z | 2021-02-21T01:46:33.000Z | docker/src/clawpack-5.3.1/riemann/src/shallow_1D_py.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 8 | 2016-09-22T20:49:51.000Z | 2019-09-06T23:28:13.000Z | docker/src/clawpack-5.3.1/riemann/src/shallow_1D_py.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 13 | 2016-09-22T20:20:06.000Z | 2020-07-13T14:48:32.000Z | #!/usr/bin/env python
# encoding: utf-8
r"""
Riemann solvers for the shallow water equations.
The available solvers are:
* Roe - Use Roe averages to caluclate the solution to the Riemann problem
* HLL - Use a HLL solver
* Exact - Use a newton iteration to calculate the exact solution to the
Riemann pro... | 31.801653 | 88 | 0.511954 |
6a6cf8239e9dd6960a26d7ae881835b1d30a1dd5 | 10,408 | py | Python | nuitka/Constants.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-04-13T18:56:02.000Z | 2020-04-13T18:56:02.000Z | nuitka/Constants.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-07-11T17:53:56.000Z | 2020-07-11T17:53:56.000Z | nuitka/Constants.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 25.635468 | 96 | 0.600596 |
6a6d56d36f5446ad1de42a20d6e31bc1aa3492a2 | 13,724 | py | Python | functions/predictionLambda/botocore/endpoint.py | chriscoombs/aws-comparing-algorithms-performance-mlops-cdk | 6d3888f3ecd667ee76dc473edba37a608786ed2e | [
"Apache-2.0"
] | 40 | 2020-07-11T10:07:51.000Z | 2021-12-11T17:09:20.000Z | functions/predictionLambda/botocore/endpoint.py | chriscoombs/aws-comparing-algorithms-performance-mlops-cdk | 6d3888f3ecd667ee76dc473edba37a608786ed2e | [
"Apache-2.0"
] | 21 | 2019-11-10T05:38:06.000Z | 2022-03-10T15:07:48.000Z | functions/predictionLambda/botocore/endpoint.py | chriscoombs/aws-comparing-algorithms-performance-mlops-cdk | 6d3888f3ecd667ee76dc473edba37a608786ed2e | [
"Apache-2.0"
] | 37 | 2020-07-09T23:12:30.000Z | 2022-03-16T11:15:58.000Z | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http... | 42.09816 | 81 | 0.6587 |
6a6dcc4d9c3e1b2437b6c8b26173ce12b1dfa929 | 7,761 | py | Python | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 1 | 2020-09-22T15:06:02.000Z | 2020-09-22T15:06:02.000Z | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 1 | 2020-11-03T14:11:02.000Z | 2020-11-03T14:24:50.000Z | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 2 | 2020-09-22T05:27:09.000Z | 2020-11-05T10:39:49.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 18 21:56:15 2020
@author: Ray
@email: 1324789704@qq.com
@wechat: RayTing0305
"""
'''
Question 1
Write a function called proportion_of_education which returns the proportion of children in the dataset who had a mother with the education levels equal to less tha... | 53.895833 | 576 | 0.74024 |
6a6dde8d68a99fd68fff6d0aa6d0f4f64dc22408 | 4,018 | py | Python | backup/26.py | accordinglyto/dferte | d4b8449c1633973dc538c9e72aca5d37802a4ee4 | [
"MIT"
] | null | null | null | backup/26.py | accordinglyto/dferte | d4b8449c1633973dc538c9e72aca5d37802a4ee4 | [
"MIT"
] | 8 | 2020-11-13T18:55:17.000Z | 2022-03-12T00:34:40.000Z | backup/26.py | accordinglyto/dferte | d4b8449c1633973dc538c9e72aca5d37802a4ee4 | [
"MIT"
] | null | null | null | from numpy import genfromtxt
import matplotlib.pyplot as plt
import mpl_finance
import numpy as np
import uuid
import matplotlib
# Input your csv file here with historical data
ad = genfromtxt(f"../financial_data/SM.csv", delimiter=",", dtype=str)
# output = []
# with open("STOCKbluechip.csv") as f:
# output ... | 28.097902 | 128 | 0.558238 |
6a6e5f7f79247bb69a8f187a793986d06aaf806b | 3,091 | py | Python | streams/readers/arff_reader.py | JanSurft/tornado | 2c07686c5358d2bcb15d6edac3126ad9346c3c76 | [
"MIT"
] | 103 | 2017-10-01T20:24:58.000Z | 2022-03-16T09:09:10.000Z | streams/readers/arff_reader.py | JanSurft/tornado | 2c07686c5358d2bcb15d6edac3126ad9346c3c76 | [
"MIT"
] | 2 | 2019-09-17T11:06:26.000Z | 2021-11-08T23:57:46.000Z | streams/readers/arff_reader.py | JanSurft/tornado | 2c07686c5358d2bcb15d6edac3126ad9346c3c76 | [
"MIT"
] | 28 | 2018-12-18T00:43:10.000Z | 2022-03-04T08:39:47.000Z | """
The Tornado Framework
By Ali Pesaranghader
University of Ottawa, Ontario, Canada
E-mail: apesaran -at- uottawa -dot- ca / alipsgh -at- gmail -dot- com
"""
import re
from data_structures.attribute import Attribute
from dictionary.tornado_dictionary import TornadoDic
| 38.6375 | 100 | 0.525396 |
6a6f28bb63a4999e5f2dcb27c1de7d562bafcd05 | 1,664 | py | Python | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | 6 | 2021-11-03T07:20:48.000Z | 2021-11-10T08:20:44.000Z | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | 1 | 2021-11-02T21:10:51.000Z | 2021-11-02T21:11:05.000Z | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | null | null | null | from __future__ import print_function
from keras.datasets import mnist
from keras.datasets import cifar10
from keras.utils.np_utils import to_categorical
import numpy as np
from keras import backend as K
from evolution import Evolution
from genome_handler import GenomeHandler
import tensorflow as tf
#import mlflow.kera... | 37.818182 | 120 | 0.676683 |
6a703f7100900fb7196e6525d9f4720fdc63dbae | 11,514 | py | Python | CarModel.py | JaredFG/Multiagentes-Unity | 37f7ec5c0588865ef08b50df83566a43d817bebf | [
"MIT"
] | null | null | null | CarModel.py | JaredFG/Multiagentes-Unity | 37f7ec5c0588865ef08b50df83566a43d817bebf | [
"MIT"
] | null | null | null | CarModel.py | JaredFG/Multiagentes-Unity | 37f7ec5c0588865ef08b50df83566a43d817bebf | [
"MIT"
] | 1 | 2022-02-10T20:33:44.000Z | 2022-02-10T20:33:44.000Z | '''
Autores:Eduardo Rodrguez Lpez A01749381
Rebeca Rojas Prez A01751192
Jared Abraham Flores Guarneros A01379868
Eduardo Aguilar Chas A01749375
'''
from random import random
from ... | 41.566787 | 120 | 0.538822 |
6a705dbb2cd1b609cc2090d60bc5b82810db8095 | 1,684 | py | Python | qcodes/widgets/display.py | nulinspiratie/Qcodes | d050d38ac83f532523a39549c3247dfa6096a36e | [
"MIT"
] | 2 | 2017-02-27T06:02:39.000Z | 2019-06-03T04:56:59.000Z | qcodes/widgets/display.py | nulinspiratie/Qcodes | d050d38ac83f532523a39549c3247dfa6096a36e | [
"MIT"
] | 50 | 2017-04-12T04:03:15.000Z | 2022-03-09T00:41:43.000Z | qcodes/widgets/display.py | nulinspiratie/Qcodes | d050d38ac83f532523a39549c3247dfa6096a36e | [
"MIT"
] | null | null | null | """Helper for adding content stored in a file to a jupyter notebook."""
import os
from pkg_resources import resource_string
from IPython.display import display, Javascript, HTML
# Originally I implemented this using regular open() and read(), so it
# could use relative paths from the importing file.
#
# But for distr... | 35.083333 | 84 | 0.672803 |
6a71f08eeecbd606e19448cf8f9c90856e40cbac | 6,697 | py | Python | hubcontrol.py | smr99/lego-hub-tk | d3b86847873fa80deebf993ccd44b4d3d8f9bf40 | [
"MIT"
] | 16 | 2021-02-17T01:59:39.000Z | 2022-03-29T05:10:12.000Z | hubcontrol.py | smr99/lego-hub-tk | d3b86847873fa80deebf993ccd44b4d3d8f9bf40 | [
"MIT"
] | 15 | 2021-04-20T04:01:36.000Z | 2022-02-01T02:46:30.000Z | hubcontrol.py | smr99/lego-hub-tk | d3b86847873fa80deebf993ccd44b4d3d8f9bf40 | [
"MIT"
] | 9 | 2021-04-18T20:29:21.000Z | 2022-03-31T11:50:04.000Z | #! /usr/bin/python3
import base64
from data.ProgramHubLogger import ProgramHubLogger
from datetime import datetime
import logging
import os
import sys
from ui.MotionSensor import MotionSensorWidget
from ui.PositionStatus import PositionStatusWidget
from ui.DevicePortWidget import DevicePortWidget
from ui.ConnectionWid... | 33.823232 | 119 | 0.667164 |
6a725ee4987cc406e04ed4e04ead31dbd1e9b6ea | 1,088 | py | Python | To-D0-App-main/base/views.py | shagun-agrawal/To-Do-App | 083081690fe9d291f13c0452a695a092b7544ab2 | [
"MIT"
] | 1 | 2021-04-08T14:12:38.000Z | 2021-04-08T14:12:38.000Z | To-D0-App-main/base/views.py | shagun-agrawal/To-Do-App | 083081690fe9d291f13c0452a695a092b7544ab2 | [
"MIT"
] | null | null | null | To-D0-App-main/base/views.py | shagun-agrawal/To-Do-App | 083081690fe9d291f13c0452a695a092b7544ab2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from django.contrib.auth.views import LoginView
from .models impor... | 24.727273 | 73 | 0.714154 |
6a72d886218147f91e76b4f7f571b23929432026 | 966 | py | Python | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Dropout.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 5 | 2022-01-28T20:30:34.000Z | 2022-03-17T09:26:52.000Z | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Dropout.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 9 | 2022-01-27T03:50:28.000Z | 2022-02-08T18:42:17.000Z | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Dropout.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 2 | 2022-02-03T17:32:43.000Z | 2022-03-24T16:38:49.000Z | import numpy as np
from dnnv.nn.converters.tensorflow import *
from dnnv.nn.operations import *
TOL = 1e-6
| 26.108108 | 48 | 0.63354 |
6a7328e83cbca070a32d28d91e1af148c593184e | 4,202 | py | Python | smarts/zoo/worker.py | idsc-frazzoli/SMARTS | bae0a6ea160330921edc94a7161a4e8cf72a1974 | [
"MIT"
] | 554 | 2020-10-16T02:30:35.000Z | 2022-03-29T14:13:00.000Z | smarts/zoo/worker.py | idsc-frazzoli/SMARTS | bae0a6ea160330921edc94a7161a4e8cf72a1974 | [
"MIT"
] | 917 | 2020-10-17T00:10:31.000Z | 2022-03-31T23:00:47.000Z | smarts/zoo/worker.py | idsc-frazzoli/SMARTS | bae0a6ea160330921edc94a7161a4e8cf72a1974 | [
"MIT"
] | 135 | 2020-10-20T01:44:49.000Z | 2022-03-27T04:51:31.000Z | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# 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 us... | 34.442623 | 155 | 0.702285 |
6a744ccf0662773e4f40dc632d9bd05f720ada5c | 2,846 | py | Python | week2/problems/problem2.py | Nburkhal/mit-cs250 | a3d32a217deb2cfa1b94d8188bef73c0742b1245 | [
"MIT"
] | null | null | null | week2/problems/problem2.py | Nburkhal/mit-cs250 | a3d32a217deb2cfa1b94d8188bef73c0742b1245 | [
"MIT"
] | null | null | null | week2/problems/problem2.py | Nburkhal/mit-cs250 | a3d32a217deb2cfa1b94d8188bef73c0742b1245 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Now write a program that calculates the minimum fixed monthly payment needed
in order pay off a credit card balance within 12 months.
By a fixed monthly payment, we mean a single number which does not change each month,
but instead is a constant amount that will be ... | 37.447368 | 104 | 0.713282 |
6a74aa2ca33901c3b2b2f9d3fd978d06054719fb | 2,410 | py | Python | leetcode_python/Sort/sort-characters-by-frequency.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Sort/sort-characters-by-frequency.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | null | null | null | leetcode_python/Sort/sort-characters-by-frequency.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | # V0
import collections
# V0'
# IDEA : collections.Counter(s).most_common
# V1
# IDEA : SORT
# https://blog.csdn.net/fuxuemingzhu/article/details/79437548
import collections
### Test case:
s=Solution()
assert s.frequencySort(['a','b','c','c']) == 'ccab'
assert s.frequencySort(['a']) == 'a'
assert s.frequencySort([... | 27.078652 | 87 | 0.568465 |
6a750b59d5869e7c84ae1fcca0d133a7dbf28cce | 9,165 | py | Python | eval/scripts/human/html_gen.py | chateval/chatevalv2 | 7ba96d81842db00427a6d6351d5cea76a8766450 | [
"Apache-2.0"
] | 5 | 2018-06-11T19:47:23.000Z | 2020-03-04T01:29:15.000Z | eval/scripts/human/html_gen.py | chateval/app | 7ba96d81842db00427a6d6351d5cea76a8766450 | [
"Apache-2.0"
] | 12 | 2018-07-11T18:50:13.000Z | 2022-02-10T10:45:58.000Z | eval/scripts/human/html_gen.py | chateval/app | 7ba96d81842db00427a6d6351d5cea76a8766450 | [
"Apache-2.0"
] | 1 | 2018-06-29T14:52:16.000Z | 2018-06-29T14:52:16.000Z | """Stores all the helper functions that generate html"""
import random
def generate_2choice_html(example):
'''Makes html for ranking form for the specified row index.
Returns the HTML for a table of radio buttons used for ranking,
as well as a count of the total number of radio buttons.
'''
# Check f... | 33.448905 | 295 | 0.59509 |
6a75a5070f34939725c30b7941b46fda26295424 | 1,582 | py | Python | python3_module_template/subproject/myexample.py | sdpython/python_project_template | e365b29ba9a7dfd2688f68eb7ff2b84a6a82cb57 | [
"MIT"
] | null | null | null | python3_module_template/subproject/myexample.py | sdpython/python_project_template | e365b29ba9a7dfd2688f68eb7ff2b84a6a82cb57 | [
"MIT"
] | null | null | null | python3_module_template/subproject/myexample.py | sdpython/python_project_template | e365b29ba9a7dfd2688f68eb7ff2b84a6a82cb57 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@file
@brief This the documentation of this module (myexampleb).
"""
| 18.611765 | 58 | 0.54488 |
6a75c6bcf2a235fe76f46e51c4cc31283811626a | 2,534 | py | Python | simulation/dataset_G_1q_X_Z_N1.py | eperrier/QDataSet | 383b38b9b4166848f72fac0153800525e66b477b | [
"MIT"
] | 42 | 2021-08-17T02:27:59.000Z | 2022-03-26T16:00:57.000Z | simulation/dataset_G_1q_X_Z_N1.py | eperrier/QDataSet | 383b38b9b4166848f72fac0153800525e66b477b | [
"MIT"
] | 1 | 2021-09-25T11:15:20.000Z | 2021-09-27T04:18:25.000Z | simulation/dataset_G_1q_X_Z_N1.py | eperrier/QDataSet | 383b38b9b4166848f72fac0153800525e66b477b | [
"MIT"
] | 6 | 2021-08-17T02:28:04.000Z | 2022-03-22T07:11:48.000Z | ##############################################
"""
This module generate a dataset
"""
##############################################
# preample
import numpy as np
from utilites import Pauli_operators, simulate, CheckNoise
################################################
# meta parameters
name = "G_1q... | 56.311111 | 261 | 0.404893 |
6a75e8b3a7f6a8bf44de0912c3cdfced6251b233 | 55 | py | Python | configs/mmdet/detection/detection_tensorrt_static-300x300.py | zhiqwang/mmdeploy | 997d111a6f4ca9624ab3b36717748e6ce002037d | [
"Apache-2.0"
] | 746 | 2021-12-27T10:50:28.000Z | 2022-03-31T13:34:14.000Z | configs/mmdet/detection/detection_tensorrt_static-300x300.py | zhiqwang/mmdeploy | 997d111a6f4ca9624ab3b36717748e6ce002037d | [
"Apache-2.0"
] | 253 | 2021-12-28T05:59:13.000Z | 2022-03-31T18:22:25.000Z | configs/mmdet/detection/detection_tensorrt_static-300x300.py | zhiqwang/mmdeploy | 997d111a6f4ca9624ab3b36717748e6ce002037d | [
"Apache-2.0"
] | 147 | 2021-12-27T10:50:33.000Z | 2022-03-30T10:44:20.000Z | _base_ = ['../_base_/base_tensorrt_static-300x300.py']
| 27.5 | 54 | 0.745455 |
6a7641f27315b4a34aa454452b185ab3ffeddc05 | 505 | py | Python | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | null | null | null | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | 2 | 2020-06-09T08:40:42.000Z | 2021-04-30T21:20:35.000Z | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
API definition module.
"""
from flask import Blueprint
from flask_restful import Api
from .resources.user import UserAuth, UserItem, UserList, UserFollow
# Create an API-related blueprint
api_bp = Blueprint(name='api', import_name=__name__)
api = Api(api_bp)
api.add_resource(UserList, '... | 22.954545 | 68 | 0.740594 |
6a77df2fb34c60a66cb0710a264af376f888be93 | 2,112 | py | Python | advanced/itertools_funcs.py | ariannasg/python3-essential-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | 1 | 2020-06-02T08:37:41.000Z | 2020-06-02T08:37:41.000Z | advanced/itertools_funcs.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | advanced/itertools_funcs.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | #!usr/bin/env python3
import itertools
# itertools is a module that's not technically a set of built-in functions but
# it is part of the standard library that comes with python.
# it's useful for for creating and using iterators.
if __name__ == "__main__":
main()
# CONSOLE OUTPUT:
# some infinite iterators
#... | 29.333333 | 78 | 0.673295 |
6a78c291da971309bc64ed073bb014f9b709c144 | 119 | py | Python | examples/plain_text_response.py | lukefx/stardust | 4d9e399ffba9d4a47a2f428b59b5abf4c5bd41ad | [
"MIT"
] | 2 | 2020-11-27T10:30:38.000Z | 2020-12-22T16:48:49.000Z | examples/plain_text_response.py | lukefx/stardust | 4d9e399ffba9d4a47a2f428b59b5abf4c5bd41ad | [
"MIT"
] | null | null | null | examples/plain_text_response.py | lukefx/stardust | 4d9e399ffba9d4a47a2f428b59b5abf4c5bd41ad | [
"MIT"
] | null | null | null | from starlette.responses import PlainTextResponse
| 19.833333 | 49 | 0.789916 |
6a78c857a857449cf31704c6af0759d610215a2d | 25,852 | py | Python | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | null | null | null | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | null | null | null | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | 2 | 2019-02-06T08:05:43.000Z | 2019-02-06T08:06:35.000Z | import atexit
import datetime as dt
import os
import platform
import pypyrus_logbook as logbook
import sys
import time
import traceback
from .conf import all_loggers
from .formatter import Formatter
from .header import Header
from .output import Root
from .record import Record
from .sysinfo import Sysinfo
def wr... | 39.348554 | 79 | 0.592952 |
6a79e21ee2f5d7ad67e69bd27f9206807683db56 | 488 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 54.222222 | 245 | 0.772541 |
6a7a250cd753510b2923ce0ec46a2aae0ee1d50c | 1,028 | py | Python | scraper/news/spiders/millardayo.py | ZendaInnocent/news-api | 71465aea50e0b1cea08a421d72156cbe7ed8a952 | [
"Apache-2.0"
] | 3 | 2021-11-15T08:43:53.000Z | 2021-11-15T19:44:56.000Z | scraper/news/spiders/millardayo.py | ZendaInnocent/news-api | 71465aea50e0b1cea08a421d72156cbe7ed8a952 | [
"Apache-2.0"
] | null | null | null | scraper/news/spiders/millardayo.py | ZendaInnocent/news-api | 71465aea50e0b1cea08a421d72156cbe7ed8a952 | [
"Apache-2.0"
] | 1 | 2021-11-15T08:43:58.000Z | 2021-11-15T08:43:58.000Z | # Spider for MillardAyo.com
import scrapy
from bs4 import BeautifulSoup
| 27.783784 | 65 | 0.521401 |
6a7ab579c54d59a8d5d95bf8ca299d1a0ccc36a3 | 10,384 | py | Python | sdks/python/apache_beam/runners/portability/expansion_service_test.py | stephenoken/beam | 4797f310b6671de6fd703502520f4b012b655c82 | [
"Apache-2.0"
] | 3 | 2020-08-28T17:47:26.000Z | 2021-08-17T06:38:58.000Z | sdks/python/apache_beam/runners/portability/expansion_service_test.py | stephenoken/beam | 4797f310b6671de6fd703502520f4b012b655c82 | [
"Apache-2.0"
] | 5 | 2020-11-13T19:06:10.000Z | 2021-11-10T19:56:12.000Z | sdks/python/apache_beam/runners/portability/expansion_service_test.py | stephenoken/beam | 4797f310b6671de6fd703502520f4b012b655c82 | [
"Apache-2.0"
] | 1 | 2018-09-30T05:34:06.000Z | 2018-09-30T05:34:06.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 32.654088 | 92 | 0.74557 |
6a7bee943837f03f68168bdd6b1277bb1e2654a4 | 268 | py | Python | db.py | RunnerPro/RunnerProApi | 2e0aba17cba2a019b6d102bc4eac2fd60f164156 | [
"MIT"
] | null | null | null | db.py | RunnerPro/RunnerProApi | 2e0aba17cba2a019b6d102bc4eac2fd60f164156 | [
"MIT"
] | null | null | null | db.py | RunnerPro/RunnerProApi | 2e0aba17cba2a019b6d102bc4eac2fd60f164156 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from settings import DB_URI
Session = sessionmaker(autocommit=False, autoflush=False, bind=create_engine(DB_URI))
session = scoped_session(Session)
| 33.5 | 85 | 0.850746 |
6a7c09860b07db2134a799e024cf2d3ffbf7dc17 | 11,429 | py | Python | python/tvm/contrib/nvcc.py | ntanhbk44/tvm | f89a929f09f7a0b0ccd0f4d46dc2b1c562839087 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | python/tvm/contrib/nvcc.py | ntanhbk44/tvm | f89a929f09f7a0b0ccd0f4d46dc2b1c562839087 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | python/tvm/contrib/nvcc.py | ntanhbk44/tvm | f89a929f09f7a0b0ccd0f4d46dc2b1c562839087 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-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 u... | 30.155673 | 97 | 0.627351 |
6a7c3c233cce04ab709c5ec217d50c3347a2a2a8 | 2,429 | py | Python | calc/history/calculations.py | dhruvshah1996/Project3 | d87ad37f6cf2de0d3402c71d21b25258946aad69 | [
"MIT"
] | null | null | null | calc/history/calculations.py | dhruvshah1996/Project3 | d87ad37f6cf2de0d3402c71d21b25258946aad69 | [
"MIT"
] | null | null | null | calc/history/calculations.py | dhruvshah1996/Project3 | d87ad37f6cf2de0d3402c71d21b25258946aad69 | [
"MIT"
] | null | null | null | """Calculation history Class"""
from calc.calculations.addition import Addition
from calc.calculations.subtraction import Subtraction
from calc.calculations.multiplication import Multiplication
from calc.calculations.division import Division | 40.483333 | 86 | 0.712227 |
6a7d299369e55fc318f13ff176616da2592dab8c | 526 | py | Python | Python/17 - 081 - extraindo dados de uma lista.py | matheusguerreiro/python | f39a1b92409f11cbe7fef5d9261f863f9e0fac0d | [
"MIT"
] | null | null | null | Python/17 - 081 - extraindo dados de uma lista.py | matheusguerreiro/python | f39a1b92409f11cbe7fef5d9261f863f9e0fac0d | [
"MIT"
] | null | null | null | Python/17 - 081 - extraindo dados de uma lista.py | matheusguerreiro/python | f39a1b92409f11cbe7fef5d9261f863f9e0fac0d | [
"MIT"
] | null | null | null | # Aula 17 (Listas (Parte 1))
valores = []
while True:
valor = int(input('Digite um Valor ou -1 para Finalizar: '))
if valor < 0:
print('\nFinalizando...')
break
else:
valores.append(valor)
print(f'Foram digitados {len(valores)} nmeros')
valores.sort(reverse=True)
print(f'Lista orde... | 26.3 | 74 | 0.652091 |
6a7d44f1e562967fd6fedbdfc2867ad65df6f217 | 2,163 | py | Python | yekpay/migrations/0014_auto_20181120_1453.py | maryam-afzp/django-yekpay | f7b9d7914035ea4f27238eba9e0c70227cc65046 | [
"MIT"
] | 3 | 2020-05-17T18:33:22.000Z | 2021-12-06T08:31:42.000Z | yekpay/migrations/0014_auto_20181120_1453.py | Glyphack/django-yekpay | 8c4a44853207be4ff0b1711c0524fb0201859b19 | [
"MIT"
] | null | null | null | yekpay/migrations/0014_auto_20181120_1453.py | Glyphack/django-yekpay | 8c4a44853207be4ff0b1711c0524fb0201859b19 | [
"MIT"
] | 4 | 2019-11-14T14:16:49.000Z | 2021-12-06T08:31:44.000Z | # Generated by Django 2.0.9 on 2018-11-20 11:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 30.041667 | 121 | 0.57374 |
6a7e1204635ee097ea34ac3eae2b9d121e4f7471 | 203 | py | Python | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/modules/__init__.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | null | null | null | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/modules/__init__.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | 1 | 2021-09-09T23:22:16.000Z | 2021-09-09T23:22:16.000Z | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/modules/__init__.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | 4 | 2021-06-22T13:54:52.000Z | 2022-01-26T19:23:39.000Z | from .bn import ABN, InPlaceABN, InPlaceABNWrapper, InPlaceABNSync, InPlaceABNSyncWrapper
from .misc import GlobalAvgPool2d
from .residual import IdentityResidualBlock
from .dense import DenseModule
| 40.6 | 90 | 0.842365 |
6a7e7d0b939c716cda0bb6e7629a5a7ce8b56ac7 | 10,911 | py | Python | python/pyarrow/tests/test_compute.py | kylebrandt/arrow | 515197dfe6e83d6fa6fe82bfec134f41b222b748 | [
"Apache-2.0"
] | null | null | null | python/pyarrow/tests/test_compute.py | kylebrandt/arrow | 515197dfe6e83d6fa6fe82bfec134f41b222b748 | [
"Apache-2.0"
] | null | null | null | python/pyarrow/tests/test_compute.py | kylebrandt/arrow | 515197dfe6e83d6fa6fe82bfec134f41b222b748 | [
"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 u... | 32.281065 | 77 | 0.59967 |
6a7ebe45370c220d4cb3303c8715bdc2a5f264ae | 7,074 | py | Python | python/sdk/client/api/log_api.py | ashwinath/merlin | 087a7fa6fb21e4c771d64418bd58873175226ca1 | [
"Apache-2.0"
] | null | null | null | python/sdk/client/api/log_api.py | ashwinath/merlin | 087a7fa6fb21e4c771d64418bd58873175226ca1 | [
"Apache-2.0"
] | null | null | null | python/sdk/client/api/log_api.py | ashwinath/merlin | 087a7fa6fb21e4c771d64418bd58873175226ca1 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Merlin
API Guide for accessing Merlin's model management, deployment, and serving functionalities # noqa: E501
OpenAPI spec version: 0.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
... | 39.3 | 185 | 0.607577 |
6a7ef047892a808f5b9e319a809d26915f83c93f | 2,207 | py | Python | openmdao/solvers/nonlinear/nonlinear_block_jac.py | bollwyvl/OpenMDAO | 4d7a31b2bb39674e2be0d6a13cbe22de3f5353af | [
"Apache-2.0"
] | null | null | null | openmdao/solvers/nonlinear/nonlinear_block_jac.py | bollwyvl/OpenMDAO | 4d7a31b2bb39674e2be0d6a13cbe22de3f5353af | [
"Apache-2.0"
] | null | null | null | openmdao/solvers/nonlinear/nonlinear_block_jac.py | bollwyvl/OpenMDAO | 4d7a31b2bb39674e2be0d6a13cbe22de3f5353af | [
"Apache-2.0"
] | 1 | 2018-07-27T06:39:15.000Z | 2018-07-27T06:39:15.000Z | """Define the NonlinearBlockJac class."""
from openmdao.recorders.recording_iteration_stack import Recording
from openmdao.solvers.solver import NonlinearSolver
from openmdao.utils.mpi import multi_proc_fail_check
| 32.940299 | 82 | 0.584957 |
6a7ef877f9a75af565239a4f498da3558863fc35 | 7,766 | py | Python | tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py | Smokrow/tensorflow | debd66dae1c9a49d36ea006c97facf06b4ac25cb | [
"Apache-2.0"
] | 1 | 2018-09-08T08:26:31.000Z | 2018-09-08T08:26:31.000Z | tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py | Smokrow/tensorflow | debd66dae1c9a49d36ea006c97facf06b4ac25cb | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py | Smokrow/tensorflow | debd66dae1c9a49d36ea006c97facf06b4ac25cb | [
"Apache-2.0"
] | 1 | 2020-02-15T14:34:36.000Z | 2020-02-15T14:34:36.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... | 34.515556 | 80 | 0.638424 |
6a7f52df743becc0516c5282308cd0c5db04737d | 16,979 | py | Python | meerk40t/lihuiyu/lihuiyuemulator.py | jpirnay/meerk40t | 10d4e41a8c5e2bb95a504904273699e115822b9b | [
"MIT"
] | null | null | null | meerk40t/lihuiyu/lihuiyuemulator.py | jpirnay/meerk40t | 10d4e41a8c5e2bb95a504904273699e115822b9b | [
"MIT"
] | null | null | null | meerk40t/lihuiyu/lihuiyuemulator.py | jpirnay/meerk40t | 10d4e41a8c5e2bb95a504904273699e115822b9b | [
"MIT"
] | null | null | null | from meerk40t.core.cutcode import CutCode, RawCut
from meerk40t.core.parameters import Parameters
from meerk40t.core.units import UNITS_PER_MIL
from meerk40t.kernel import Module
from meerk40t.numpath import Numpath
from meerk40t.svgelements import Color
def header_write(self, data):
"""
Write da... | 32.777992 | 118 | 0.52777 |
6a7f701b1440f625bfec8817f0a39a899231c69f | 105,704 | py | Python | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | 31.310427 | 195 | 0.597149 |
6a7fd9c2a4520acac2ad0d4b073014e3ffeaa218 | 20,152 | py | Python | oauth/provider.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | oauth/provider.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | oauth/provider.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | # Ported to Python 3
# Originally from https://github.com/DeprecatedCode/oauth2lib/blob/d161b010f8a596826050a09e5e94d59443cc12d9/oauth2lib/provider.py
import json
import logging
from requests import Response
from io import StringIO
try:
from werkzeug.exceptions import Unauthorized
except ImportError:
Unauthor... | 35.730496 | 129 | 0.654575 |
6a811562ddff805b40048018c138048e412a8c98 | 773 | py | Python | main.py | TomHacker/ImageCluster | c4262e08a61c50b6d850ba29bc4d56d21c789aa9 | [
"Apache-2.0"
] | 10 | 2019-04-08T06:46:35.000Z | 2019-10-31T11:10:32.000Z | main.py | HandsomeBrotherShuaiLi/ImageCluster | c4262e08a61c50b6d850ba29bc4d56d21c789aa9 | [
"Apache-2.0"
] | 3 | 2020-06-02T01:24:18.000Z | 2021-05-20T04:53:26.000Z | main.py | HandsomeBrotherShuaiLi/ImageCluster | c4262e08a61c50b6d850ba29bc4d56d21c789aa9 | [
"Apache-2.0"
] | 1 | 2019-05-23T11:08:04.000Z | 2019-05-23T11:08:04.000Z | from model import ImageCluster
m=ImageCluster(
base_model='vgg16',#your feature map extractor model
resorted_img_folder='resorted_data',#the folder for clustered images
cluster_algo='kmeans',#cluster algorithm
base_img_folder='data',
maxK=150,#the max k num is 30, which means ImageCluster calculates... | 36.809524 | 95 | 0.750323 |
6a8199a221f44d9fef4df3ccc6d623b0243a377c | 1,058 | py | Python | tests/dummies.py | arvindmuralie77/gradsflow | d6ec5bc517dcf714cd4ecb91a7f702dce6bded3f | [
"Apache-2.0"
] | 253 | 2021-08-17T17:42:25.000Z | 2022-03-25T07:59:41.000Z | tests/dummies.py | arvindmuralie77/gradsflow | d6ec5bc517dcf714cd4ecb91a7f702dce6bded3f | [
"Apache-2.0"
] | 161 | 2021-08-17T16:28:08.000Z | 2022-03-27T02:36:45.000Z | tests/dummies.py | arvindmuralie77/gradsflow | d6ec5bc517dcf714cd4ecb91a7f702dce6bded3f | [
"Apache-2.0"
] | 35 | 2021-08-23T16:26:15.000Z | 2022-03-26T17:08:15.000Z | # Copyright (c) 2021 GradsFlow. 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 ... | 32.060606 | 75 | 0.697543 |
6a82018dc0f7662911572e4ff805c96d468e9254 | 2,330 | py | Python | JumpscaleCore/tools/executor/ExecutorSerial.py | gneumann333/jumpscaleX_core | 777d249fa3668c6e802c2f765f4b82fb39c3e5fa | [
"Apache-2.0"
] | 1 | 2020-06-21T11:18:52.000Z | 2020-06-21T11:18:52.000Z | JumpscaleCore/tools/executor/ExecutorSerial.py | gneumann333/jumpscaleX_core | 777d249fa3668c6e802c2f765f4b82fb39c3e5fa | [
"Apache-2.0"
] | 644 | 2019-08-25T10:19:56.000Z | 2020-12-23T09:41:04.000Z | JumpscaleCore/tools/executor/ExecutorSerial.py | gneumann333/jumpscaleX_core | 777d249fa3668c6e802c2f765f4b82fb39c3e5fa | [
"Apache-2.0"
] | 11 | 2019-08-29T21:38:50.000Z | 2020-06-21T11:18:55.000Z | from Jumpscale import j
JSBASE = j.baseclasses.object
from .ExecutorBase import *
import serial
| 27.093023 | 108 | 0.615021 |
6a836399736ccfbfdcec602215566bd6e9ae598c | 2,201 | py | Python | melisa/utils/snowflake.py | MelisaDev/melisa | 53fee10d8c1bf4dd716bc90096c16f096e11bfbf | [
"MIT"
] | 5 | 2022-03-11T19:51:28.000Z | 2022-03-13T16:28:58.000Z | melisa/utils/snowflake.py | jungledev1/melisa | 835e4b644e50b5038599ecbd1bfa510a0d3200e9 | [
"MIT"
] | 2 | 2022-03-19T18:09:39.000Z | 2022-03-23T12:18:49.000Z | melisa/utils/snowflake.py | jungledev1/melisa | 835e4b644e50b5038599ecbd1bfa510a0d3200e9 | [
"MIT"
] | 1 | 2022-03-23T07:30:04.000Z | 2022-03-23T07:30:04.000Z | # Copyright MelisaDev 2022 - Present
# Full MIT License can be found in `LICENSE.txt` at the project root.
from __future__ import annotations
| 30.150685 | 92 | 0.63562 |
6a83ea727e6668f4f022e77a641fbd9d212a22e3 | 8,749 | py | Python | feed/serializers/extensions.py | cul-it/arxiv-rss | 40c0e859528119cc8ba3700312cb8df095d95cdd | [
"MIT"
] | 4 | 2020-06-29T15:05:37.000Z | 2022-02-02T10:28:28.000Z | feed/serializers/extensions.py | arXiv/arxiv-feed | 82923d062e2524df94c22490cf936a988559ce66 | [
"MIT"
] | 12 | 2020-03-06T16:45:00.000Z | 2022-03-02T15:36:14.000Z | feed/serializers/extensions.py | cul-it/arxiv-rss | 40c0e859528119cc8ba3700312cb8df095d95cdd | [
"MIT"
] | 2 | 2020-12-06T16:30:06.000Z | 2021-11-05T12:29:08.000Z | """Classes derived from the Feedgen extension classes."""
from typing import Dict, List, Optional
from lxml import etree
from lxml.etree import Element
from flask import current_app
from feedgen.ext.base import BaseEntryExtension, BaseExtension
from feed.domain import Author, Media
| 30.590909 | 79 | 0.529318 |