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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
560f33f25108e4c0ab68220b2de99ec924031e4e | 2,653 | py | Python | main.py | Raymonzut/NATO-phonetic-alphabet | c9816eef49f7718fbc283738867d61f467cc3a20 | [
"Unlicense"
] | null | null | null | main.py | Raymonzut/NATO-phonetic-alphabet | c9816eef49f7718fbc283738867d61f467cc3a20 | [
"Unlicense"
] | null | null | null | main.py | Raymonzut/NATO-phonetic-alphabet | c9816eef49f7718fbc283738867d61f467cc3a20 | [
"Unlicense"
] | null | null | null | #! python3
# To write files and make a directory
import os
# To filter string
import re
# For sleeping
import time
# Googles Text to speech lib
from gtts import gTTS
# File info reader, in this case, it is for determening the length of a mp3
from mutagen.mp3 import MP3
def format_text(text: str):
"""
Rem... | 26.009804 | 80 | 0.597814 |
5610e3895d6609e599ef466f957f214f5c918fe6 | 591 | py | Python | 0077_Combinations/python/solution.py | jeffvswanson/LeetCode | 6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8 | [
"MIT"
] | null | null | null | 0077_Combinations/python/solution.py | jeffvswanson/LeetCode | 6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8 | [
"MIT"
] | null | null | null | 0077_Combinations/python/solution.py | jeffvswanson/LeetCode | 6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8 | [
"MIT"
] | null | null | null | """
77. Combinations
Given two integers n and k, return all possible combinations of k numbers out of the range [1, n].
You may return the answer in any order.
Examples
--------
Example 1:
Input: n = 4, k = 2
Output:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
... | 16.885714 | 98 | 0.509306 |
5611625ebacc0d47640b097555b0e9f837492d3b | 3,109 | py | Python | CameraToServer/python/client/SendDataWithSSL.py | yabuta/CameraSender | 99b84ae941782924ecb677a1f38a18dd082459d5 | [
"MIT"
] | null | null | null | CameraToServer/python/client/SendDataWithSSL.py | yabuta/CameraSender | 99b84ae941782924ecb677a1f38a18dd082459d5 | [
"MIT"
] | null | null | null | CameraToServer/python/client/SendDataWithSSL.py | yabuta/CameraSender | 99b84ae941782924ecb677a1f38a18dd082459d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import socket
import cv2
import time
import threading
import datetime
import ssl
import readSettings as RS
"""
send picture per 5 second.
when called stop, thread finish.
picture convert from mat to jpeg
"""
| 29.330189 | 90 | 0.5468 |
5611a8099c8f900113dbab6bbfc1f8854c6e5c4c | 1,168 | py | Python | src/noelbundick/azext_noelbundick/__init__.py | vijayraavi/azure-cli-extension-noelbundick | f12d10ab7fcab0e314d93069df9ce22ed2037b0e | [
"MIT"
] | null | null | null | src/noelbundick/azext_noelbundick/__init__.py | vijayraavi/azure-cli-extension-noelbundick | f12d10ab7fcab0e314d93069df9ce22ed2037b0e | [
"MIT"
] | null | null | null | src/noelbundick/azext_noelbundick/__init__.py | vijayraavi/azure-cli-extension-noelbundick | f12d10ab7fcab0e314d93069df9ce22ed2037b0e | [
"MIT"
] | null | null | null | import importlib
from azure.cli.core import AzCommandsLoader
from ._help import helps
# Imported modules MUST implement load_command_table and load_arguments
# Imported modules CAN optionally implement init
module_names = ['ad', 'aks', 'browse', 'cloudshell', 'functionapp', 'loganalytics', 'self_destruct', 'vm']
#... | 32.444444 | 113 | 0.685788 |
561218bac3bfa52d6df8d61602a12d4a68e9653a | 442 | py | Python | Data/Database/addPics.py | jessalbarian/CUApps | 9a79a05626dbd574ba08255e28590826a0c9f33b | [
"MIT"
] | null | null | null | Data/Database/addPics.py | jessalbarian/CUApps | 9a79a05626dbd574ba08255e28590826a0c9f33b | [
"MIT"
] | null | null | null | Data/Database/addPics.py | jessalbarian/CUApps | 9a79a05626dbd574ba08255e28590826a0c9f33b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import json
jsonFile = open('temp.json', 'r')
jsonData = json.load(jsonFile)
places = jsonData["places"]
for item in places:
originalArray = places[item]
newArray = ["default"]
for originalPiece in originalArray:
newArray.append(originalPiece)
places[item] = newArray
jsonData["places"] ... | 18.416667 | 40 | 0.730769 |
5612e9e9a7262c254784a284937a576dbf7bc368 | 115 | py | Python | swig/build.py | ShawnZhong/python-c-extension | 99f14239f2c77fa463ef112124964ecbd31e2bbc | [
"W3C"
] | null | null | null | swig/build.py | ShawnZhong/python-c-extension | 99f14239f2c77fa463ef112124964ecbd31e2bbc | [
"W3C"
] | null | null | null | swig/build.py | ShawnZhong/python-c-extension | 99f14239f2c77fa463ef112124964ecbd31e2bbc | [
"W3C"
] | null | null | null | from setuptools import setup, Extension
setup(ext_modules=[
Extension('_module', sources=["module_wrap.c"])
]) | 23 | 51 | 0.73913 |
56140b60dd6aeb1e4d1e548d41d34c527425c7fd | 2,335 | py | Python | appengine_config.py | mjd119/Habit-Tracker | f37c4f8ff08109f2c3a048bd595d145036e92c2d | [
"MIT"
] | null | null | null | appengine_config.py | mjd119/Habit-Tracker | f37c4f8ff08109f2c3a048bd595d145036e92c2d | [
"MIT"
] | 2 | 2019-09-20T19:08:16.000Z | 2021-04-02T13:28:29.000Z | appengine_config.py | mjd119/Habit-Tracker | f37c4f8ff08109f2c3a048bd595d145036e92c2d | [
"MIT"
] | null | null | null | from gaesessions import SessionMiddleware
# suggestion: generate your own random key using os.urandom(64)
# WARNING: Make sure you run os.urandom(64) OFFLINE and copy/paste the output to
# this file. If you use os.urandom() to *dynamically* generate your key at
# runtime then any existing sessions will become junk ev... | 39.576271 | 89 | 0.707495 |
56168a3ba01ce9ddc2760fc49e99b333d64bb2f7 | 112 | py | Python | donut/modules/rooms/__init__.py | rlin0/donut | 5672df8e853b4b775d7d50665128b255cd695ec2 | [
"MIT"
] | null | null | null | donut/modules/rooms/__init__.py | rlin0/donut | 5672df8e853b4b775d7d50665128b255cd695ec2 | [
"MIT"
] | null | null | null | donut/modules/rooms/__init__.py | rlin0/donut | 5672df8e853b4b775d7d50665128b255cd695ec2 | [
"MIT"
] | null | null | null | import flask
blueprint = flask.Blueprint('rooms', __name__, template_folder='templates')
from . import routes
| 18.666667 | 75 | 0.776786 |
561789e6a59c1c859ca74d0814d0ff171e8cafa1 | 6,112 | py | Python | PyFunceble/checker/syntax/domain_base.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | 213 | 2017-11-19T16:00:29.000Z | 2022-03-30T20:51:35.000Z | PyFunceble/checker/syntax/domain_base.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | 270 | 2018-01-10T12:42:41.000Z | 2022-03-22T00:03:23.000Z | PyFunceble/checker/syntax/domain_base.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | 48 | 2017-12-09T22:53:49.000Z | 2022-01-29T15:50:52.000Z | """
The tool to check the availability or syntax of domain, IP or URL.
::
Provides the base of all domain syntax checker.
Author:
Nissar Chababy, @funilrys, contactTATAfuni... | 29.52657 | 125 | 0.586224 |
561943e313cac5817ec830b555bd8dc0ab7bc3ff | 11,193 | py | Python | pygamev14.py | HRALYB-PYGAME/PYGAME | f4871aa7ab24b48c0a4dd7d6846574f95e67b3cd | [
"MIT"
] | null | null | null | pygamev14.py | HRALYB-PYGAME/PYGAME | f4871aa7ab24b48c0a4dd7d6846574f95e67b3cd | [
"MIT"
] | null | null | null | pygamev14.py | HRALYB-PYGAME/PYGAME | f4871aa7ab24b48c0a4dd7d6846574f95e67b3cd | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import pygame
import time
import random
pygame.init()
win = pygame.display.set_mode((3300,1900))
pygame.display.set_caption("hralyb best game")
x = 0
y = 0
widht = 100
height = 100
x2 = 2900
y2 = 1800
widht2 = 100
height2 = 100
vel = 100
vel2 = 100
bust = 0
RED = (255, 0, 0)
G... | 28.7 | 125 | 0.505673 |
561949f52308487819299b30d31e6d89b37b7253 | 407 | py | Python | test/git_copy_test.py | rec/gitz | cbb07f99dd002c85b5ca95896b33d03150bf9282 | [
"MIT"
] | 24 | 2019-07-26T03:57:16.000Z | 2021-11-22T22:39:13.000Z | test/git_copy_test.py | rec/gitz | cbb07f99dd002c85b5ca95896b33d03150bf9282 | [
"MIT"
] | 212 | 2019-06-13T13:44:26.000Z | 2020-06-02T17:59:51.000Z | test/git_copy_test.py | rec/gitz | cbb07f99dd002c85b5ca95896b33d03150bf9282 | [
"MIT"
] | 2 | 2019-08-09T13:55:38.000Z | 2019-09-07T11:17:59.000Z | from gitz.git import GIT
from gitz.git import functions
from gitz.git import repo
import unittest
| 27.133333 | 79 | 0.643735 |
56194c8f56bddc7ad38951592f9bc25caecd84bd | 75 | py | Python | python/testData/resolve/DocStringModule.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/DocStringModule.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/DocStringModule.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | "Docstring of our own module"
import DocStringModule as m
m._<ref>_doc__
| 12.5 | 29 | 0.773333 |
561aa27498c3c54e4f1ac4ee9376a815233101a3 | 201 | py | Python | apps/notice/serializers.py | slyslyme/CTF_AWD_Platform | 6e9eec0a23a316aaf1927d4ec5be923ac26ff21e | [
"MIT"
] | 85 | 2019-04-21T01:38:18.000Z | 2022-03-22T08:06:21.000Z | apps/notice/serializers.py | xuchaoa/CTF_AWD_Platform | b2201f18677939442002e16e64280acd44f72bfe | [
"MIT"
] | 12 | 2019-05-10T14:09:12.000Z | 2022-03-11T23:45:35.000Z | apps/notice/serializers.py | slyslyme/CTF_AWD_Platform | 6e9eec0a23a316aaf1927d4ec5be923ac26ff21e | [
"MIT"
] | 21 | 2019-04-14T16:12:15.000Z | 2022-03-22T08:06:22.000Z | from rest_framework import serializers
from .models import NoticeProfile
| 22.333333 | 52 | 0.751244 |
561b49e04cb1faae723f199cd2bb350c8e9b89bf | 1,970 | py | Python | ndnt/paths.py | Masynchin/ndnt | 091c121d452b58bf099db2b4e19b96c3380a984d | [
"MIT"
] | 1 | 2022-01-29T15:39:46.000Z | 2022-01-29T15:39:46.000Z | ndnt/paths.py | Masynchin/ndnt | 091c121d452b58bf099db2b4e19b96c3380a984d | [
"MIT"
] | 1 | 2022-03-31T22:44:20.000Z | 2022-03-31T22:44:20.000Z | ndnt/paths.py | Masynchin/ndnt | 091c121d452b58bf099db2b4e19b96c3380a984d | [
"MIT"
] | null | null | null | """Paths interface and its implementations."""
from pathlib import Path
from typing import Iterable
from pathspec import PathSpec
from pathspec.patterns import GitWildMatchPattern
from ndnt.extension import Extension
| 25.921053 | 102 | 0.649746 |
561ee309084f16093848c36643b7f716599f6557 | 89 | py | Python | Virtualenv/Env/src/GoTravel/Booking/apps.py | Anoop01234/Go-Travel | aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8 | [
"MIT"
] | null | null | null | Virtualenv/Env/src/GoTravel/Booking/apps.py | Anoop01234/Go-Travel | aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8 | [
"MIT"
] | null | null | null | Virtualenv/Env/src/GoTravel/Booking/apps.py | Anoop01234/Go-Travel | aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8 | [
"MIT"
] | 1 | 2021-12-21T17:27:34.000Z | 2021-12-21T17:27:34.000Z | from django.apps import AppConfig
| 14.833333 | 33 | 0.752809 |
562235d95b74c7a9bd19a09f477eb9ad2191d459 | 8,183 | py | Python | Computer_science/B05_Python/01_Basics/S12_Debugging.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null | Computer_science/B05_Python/01_Basics/S12_Debugging.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null | Computer_science/B05_Python/01_Basics/S12_Debugging.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null |
# Debugging
#T# Table of contents
#C# Python debugger (pdb)
#T# Beginning of content
#C# Python debugger (pdb)
# |-------------------------------------------------------------
#T# pdb is the builtin Python debugger, it has breakpoints, stepping through the code, printing the values of variables, post-mortem deb... | 42.619792 | 253 | 0.717096 |
5622f67a20df7b85053dd7d625e824a73177008c | 2,673 | py | Python | bts/utilities/getUsersRedd.py | SuprPhatAnon/Burn-the-Subs | 026e67bc5d2edbf62537eb843a1829ef500e6ac1 | [
"MIT"
] | null | null | null | bts/utilities/getUsersRedd.py | SuprPhatAnon/Burn-the-Subs | 026e67bc5d2edbf62537eb843a1829ef500e6ac1 | [
"MIT"
] | null | null | null | bts/utilities/getUsersRedd.py | SuprPhatAnon/Burn-the-Subs | 026e67bc5d2edbf62537eb843a1829ef500e6ac1 | [
"MIT"
] | null | null | null | #sudo apt-get install python3-requests
#app had to be registered properly from the reddit thread steps
#https://www.reddit.com/r/Twitch/comments/6ycems/an_example_python_script_to_retrieve_a_list_of/
from urllib.parse import urlencode
from requests import Session
from requests.adapters import HTTPAdapter
from requests... | 28.136842 | 136 | 0.628133 |
56240fa8511ec2c5655e85191e6af242da9fb347 | 1,156 | py | Python | Obligatory tasks/Obligatory_task_02/02.02_exercise.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | 7 | 2021-12-28T23:38:42.000Z | 2022-03-29T16:36:16.000Z | Obligatory tasks/Obligatory_task_02/02.02_exercise.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | null | null | null | Obligatory tasks/Obligatory_task_02/02.02_exercise.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | 4 | 2021-06-29T20:21:52.000Z | 2022-03-12T10:04:17.000Z | # Tablica T jest dugoci n, ale zawiera tylko ceil(logn) rnych wartoci. Prosz zaproponowa
# jak najszybszy algorytm sortujcy tak tablic.
T = [365, 45137, 12, 45137, 12, 12, 45137, 365, 12]
sort(T)
print(T)
| 21.018182 | 95 | 0.514706 |
5624f94b924fed45d90c5a7120d1219ba2228c0e | 543 | py | Python | python3/numpy/numpy_absolute.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 2 | 2020-09-29T04:09:41.000Z | 2020-10-18T13:33:36.000Z | python3/numpy/numpy_absolute.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | null | null | null | python3/numpy/numpy_absolute.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 1 | 2021-12-26T04:55:55.000Z | 2021-12-26T04:55:55.000Z | """
Created on Sat Mar 23 00:23:27 2019
@author: nahid
"""
#https://docs.scipy.org/doc/numpy/reference/generated/numpy.absolute.html
import numpy as np
import matplotlib.pyplot as plt
x = np.array([-1.2, 1.2])
x = np.absolute(x)
print(x)
print(np.absolute(1 + 2j))
#Plot the function over [-10, 10]:
x = np.linspace(-1... | 23.608696 | 76 | 0.672192 |
56259c2d253bd6a1b66da8c55c28da3848ec574a | 1,034 | py | Python | fa_management_server/utils/__init__.py | Msms-NJ/fa_management_server | 6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9 | [
"MIT"
] | null | null | null | fa_management_server/utils/__init__.py | Msms-NJ/fa_management_server | 6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9 | [
"MIT"
] | null | null | null | fa_management_server/utils/__init__.py | Msms-NJ/fa_management_server | 6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import jsonify, Blueprint
from flask.views import MethodView
from flask_login import login_required
from collections import ChainMap
from .custom_json_encoder import CustomJsonEncoder
def response_common(error_code=1, error_message=None, res_data=None, **kwargs):
""""""
resp... | 36.928571 | 118 | 0.655706 |
5626423efc9ffbf669d8e5849bde5959e71e86db | 7,712 | py | Python | src/ctc/toolbox/lending_utils/lending_summary.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/toolbox/lending_utils/lending_summary.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/toolbox/lending_utils/lending_summary.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
import asyncio
import typing
import types
import pandas as pd
import tooltime
from ctc import evm
from ctc import spec
| 32.817021 | 77 | 0.674793 |
562792df71496fd60a42409966199f6e5c6ee1f5 | 409 | py | Python | dresscolor.py | christarazi/dresscolor | af4d4b3d25cacfba2db137adce6f7f545cd6a597 | [
"MIT"
] | null | null | null | dresscolor.py | christarazi/dresscolor | af4d4b3d25cacfba2db137adce6f7f545cd6a597 | [
"MIT"
] | null | null | null | dresscolor.py | christarazi/dresscolor | af4d4b3d25cacfba2db137adce6f7f545cd6a597 | [
"MIT"
] | null | null | null | from PIL import Image, ImageDraw
im = Image.open("a.jpg")
im = im.resize((150,150))
result = im.convert('P', palette=Image.ADAPTIVE, colors=8)
result.putalpha(0)
colors = result.getcolors(150*150)
newimg = Image.new('RGB', (64*8, 64))
draw = ImageDraw.Draw(newimg)
posx = 0
for row, col in colors:
draw.rectangle([po... | 21.526316 | 58 | 0.684597 |
5628ab6491f2dba420ab9719e42283fb9becaf2d | 198 | py | Python | baseline_model/constants.py | rtoengi/transfer-learning-for-sign-language-recognition | e0627115e6b68d6b85244d484011bb3895ccf4ee | [
"MIT"
] | 1 | 2021-09-25T14:11:22.000Z | 2021-09-25T14:11:22.000Z | baseline_model/constants.py | rtoengi/transfer-learning-for-sign-language-recognition | e0627115e6b68d6b85244d484011bb3895ccf4ee | [
"MIT"
] | null | null | null | baseline_model/constants.py | rtoengi/transfer-learning-for-sign-language-recognition | e0627115e6b68d6b85244d484011bb3895ccf4ee | [
"MIT"
] | 4 | 2021-04-10T01:33:03.000Z | 2021-11-11T06:58:59.000Z | # List of the training runs for the different target dataset sizes
TRAINING_RUNS = [
'large_dataset/20200616_090434',
'medium_dataset/20200616_214425',
'small_dataset/20200617_143139'
]
| 28.285714 | 66 | 0.767677 |
56291137a769a430ee6f3ee305e01dea75794cd4 | 3,099 | py | Python | recommender/delete_account.py | google/article-recommender | ab5d8472702388550926505a3b99439bb9228cd6 | [
"Apache-2.0"
] | 8 | 2020-09-16T16:31:21.000Z | 2021-06-03T17:19:55.000Z | recommender/delete_account.py | google/article-recommender | ab5d8472702388550926505a3b99439bb9228cd6 | [
"Apache-2.0"
] | null | null | null | recommender/delete_account.py | google/article-recommender | ab5d8472702388550926505a3b99439bb9228cd6 | [
"Apache-2.0"
] | 3 | 2020-10-13T16:30:13.000Z | 2020-12-08T10:56:38.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 28.431193 | 80 | 0.758632 |
562aa92474de124a685af503bc30494105a08729 | 301 | py | Python | envs/hns/mujoco-worldgen/mujoco_worldgen/util/path.py | jiayu-ch15/curriculum | 7305833b8f875c91f7598029f63fd3e543a0fd82 | [
"MIT"
] | 424 | 2019-09-17T15:50:41.000Z | 2022-03-26T07:10:21.000Z | envs/hns/mujoco-worldgen/mujoco_worldgen/util/path.py | jiayu-ch15/curriculum | 7305833b8f875c91f7598029f63fd3e543a0fd82 | [
"MIT"
] | 7 | 2019-09-18T08:54:58.000Z | 2020-08-28T15:12:45.000Z | envs/hns/mujoco-worldgen/mujoco_worldgen/util/path.py | jiayu-ch15/curriculum | 7305833b8f875c91f7598029f63fd3e543a0fd82 | [
"MIT"
] | 81 | 2019-09-18T00:14:25.000Z | 2022-03-30T18:25:08.000Z | from os.path import abspath, dirname, join
WORLDGEN_ROOT_PATH = abspath(join(dirname(__file__), '..', '..'))
def worldgen_path(*args):
"""
Returns an absolute path from a path relative to the mujoco_worldgen repository
root directory.
"""
return join(WORLDGEN_ROOT_PATH, *args)
| 25.083333 | 83 | 0.700997 |
562dacdbf0875631b4b9e28d5bdcbf46e4ddcfda | 8,953 | py | Python | sina_spider/spiders/weibo_ids.py | lokicui/sina-spider | 89b72752d97d21c16003517ca9ca5544a523f6f3 | [
"Apache-2.0"
] | null | null | null | sina_spider/spiders/weibo_ids.py | lokicui/sina-spider | 89b72752d97d21c16003517ca9ca5544a523f6f3 | [
"Apache-2.0"
] | null | null | null | sina_spider/spiders/weibo_ids.py | lokicui/sina-spider | 89b72752d97d21c16003517ca9ca5544a523f6f3 | [
"Apache-2.0"
] | null | null | null | # encoding=utf-8
import urllib
from urlparse import urlparse, urljoin
""" """
weiboID = [
'1797054534', '2509414473', '2611478681', '5861859392', '2011086863', '5127716917', '1259110474', '5850775634', '1886437464',
'3187474530', '2191982701', '1940562032', '5874450550', '1337925752', '2081079420', '56645305... | 48.923497 | 129 | 0.617 |
562e54f9210a69ce2cb84212bb0fe7d7d6a88147 | 417 | py | Python | 1_Overview/fizzbuzz_rulebased.py | LuizHuang/AI-LearnNote | e6c7dd1ee7ae4208a72f297d645fcdbc5b23a01c | [
"MIT"
] | null | null | null | 1_Overview/fizzbuzz_rulebased.py | LuizHuang/AI-LearnNote | e6c7dd1ee7ae4208a72f297d645fcdbc5b23a01c | [
"MIT"
] | null | null | null | 1_Overview/fizzbuzz_rulebased.py | LuizHuang/AI-LearnNote | e6c7dd1ee7ae4208a72f297d645fcdbc5b23a01c | [
"MIT"
] | null | null | null |
func(max=100)
| 21.947368 | 34 | 0.448441 |
562ef59e8f3331ef65babdfc148475b7ce285811 | 545 | py | Python | backend/config.py | Xingwd/seer | 41c8a4571af3422eea1bc1befd5b60a9e4bd889b | [
"MIT"
] | null | null | null | backend/config.py | Xingwd/seer | 41c8a4571af3422eea1bc1befd5b60a9e4bd889b | [
"MIT"
] | null | null | null | backend/config.py | Xingwd/seer | 41c8a4571af3422eea1bc1befd5b60a9e4bd889b | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# https://dormousehole.readthedocs.io/en/latest/config.html#config
| 45.416667 | 108 | 0.73578 |
562f521bc543c349ce98082080bb5aacbf7c8b15 | 1,467 | py | Python | problems/324.Wiggle_Sort_II/try.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/324.Wiggle_Sort_II/try.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/324.Wiggle_Sort_II/try.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | # coding=utf-8
# Author: Jianghan LI
# Question: 324.Wiggle_Sort_II
# Date:
# Complexity: O(N)
import random
############ test case ###########
s = Solution()
nums = [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2]
nums = [2, 1, 1, 2, 2, 3]
nums = [1, 3, 2, 2, 3, 1]
nums = [5, 5, 4, 6]
nums = [1, 2, 9, 5, 5, 5, 5, 5, 8, 2]
s... | 24.864407 | 74 | 0.362645 |
5630a4c81106573eaa38ee99d4ca858b8ad5300d | 26,164 | py | Python | proxy_switcher/chain.py | spumer/ProxySwitcher | 33650481455de3a152fc8f4d310d1e17a5672176 | [
"Apache-2.0"
] | 1 | 2017-03-25T03:56:38.000Z | 2017-03-25T03:56:38.000Z | proxy_switcher/chain.py | spumer/ProxySwitcher | 33650481455de3a152fc8f4d310d1e17a5672176 | [
"Apache-2.0"
] | null | null | null | proxy_switcher/chain.py | spumer/ProxySwitcher | 33650481455de3a152fc8f4d310d1e17a5672176 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
import os
import re
import sys
import gzip
import time
import json
import socket
import random
import weakref
import datetime
import functools
import threading
import collections
import urllib.error
import urllib.parse
import urllib.request
import collections.abc
import json_dict
from . import util... | 31.946276 | 119 | 0.592264 |
563180190caf55a7c50c9f90638cceb54f64efb2 | 759 | py | Python | scripts/json2numpy.py | shannonfenn/data-tools | c730c2f88b8443f3c84a41467a40b2cc59dd8e87 | [
"MIT"
] | null | null | null | scripts/json2numpy.py | shannonfenn/data-tools | c730c2f88b8443f3c84a41467a40b2cc59dd8e87 | [
"MIT"
] | null | null | null | scripts/json2numpy.py | shannonfenn/data-tools | c730c2f88b8443f3c84a41467a40b2cc59dd8e87 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import json
import argparse
import os.path
import numpy as np
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Convert old json dataset to numpy binary file.')
parser.add_argument(
'filename', type=str,
help='name of file to convert (sh... | 23.71875 | 69 | 0.666667 |
563378f9927ab2c4212b302cc8dcfd23528fc8a2 | 1,667 | py | Python | mount_point.py | janglapuk/smstools-bot | e1bc4ee486b1425326028b68ce6d075cdcd6726d | [
"MIT"
] | null | null | null | mount_point.py | janglapuk/smstools-bot | e1bc4ee486b1425326028b68ce6d075cdcd6726d | [
"MIT"
] | null | null | null | mount_point.py | janglapuk/smstools-bot | e1bc4ee486b1425326028b68ce6d075cdcd6726d | [
"MIT"
] | 1 | 2019-02-06T08:56:11.000Z | 2019-02-06T08:56:11.000Z | import spf, os
from email.parser import Parser
__author__ = "TRA"
__doc__ = '''Modified mount point module'''
RECEIVED = 'RECEIVED'
SENT = 'SENT'
FAILED = 'FAILED'
REPORT = 'REPORT'
| 20.084337 | 58 | 0.627475 |
56344b09cad7454dd54d59e381ae4000b2b9a1c3 | 2,831 | py | Python | 3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/10.04.2021/project/controller.py | kzborisov/SoftUni | ccb2b8850adc79bfb2652a45124c3ff11183412e | [
"MIT"
] | 1 | 2021-02-07T07:51:12.000Z | 2021-02-07T07:51:12.000Z | 3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/10.04.2021/project/controller.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | 3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/10.04.2021/project/controller.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | from project.aquarium.freshwater_aquarium import FreshwaterAquarium # noqa
from project.aquarium.saltwater_aquarium import SaltwaterAquarium # noqa
from project.decoration.decoration_repository import DecorationRepository
from project.decoration.ornament import Ornament # noqa
from project.decoration.plant import Pl... | 38.256757 | 81 | 0.686683 |
563500829c4d069d25d29e122217af76c93ab51d | 174 | py | Python | api/Note_test.py | gracejiang/note-sharing | 3785ab4f3f6f805e8cd0f6556c2b0faf6ed6d8da | [
"MIT"
] | null | null | null | api/Note_test.py | gracejiang/note-sharing | 3785ab4f3f6f805e8cd0f6556c2b0faf6ed6d8da | [
"MIT"
] | null | null | null | api/Note_test.py | gracejiang/note-sharing | 3785ab4f3f6f805e8cd0f6556c2b0faf6ed6d8da | [
"MIT"
] | 1 | 2021-03-02T12:34:11.000Z | 2021-03-02T12:34:11.000Z | import json
from Note import Note
n = Note("Friction", "introduction to friction", "UC Berkeley", 0, True, False, False, "https://google.com", 'lec.pdf')
print(n.toJSON())
| 24.857143 | 119 | 0.689655 |
56350d0cffaeeeab6f58137df24d239cd5b8c7f1 | 21,319 | py | Python | pairDataGen.py | sunny-Codes/MotionBuilderScript | 2663d079d0be0c8f5f7f5239488a2a095a0463fa | [
"MIT"
] | 4 | 2021-10-08T06:40:23.000Z | 2021-12-13T10:08:54.000Z | pairDataGen.py | sunny-Codes/MotionBuilderScript | 2663d079d0be0c8f5f7f5239488a2a095a0463fa | [
"MIT"
] | null | null | null | pairDataGen.py | sunny-Codes/MotionBuilderScript | 2663d079d0be0c8f5f7f5239488a2a095a0463fa | [
"MIT"
] | null | null | null | # Reference/tutorial to take a look at
# https://help.autodesk.com/view/MOBPRO/2019/ENU/?guid=__py_ref__tasks_2_assign_rigid_body_8py_example_html
# https://help.autodesk.com/view/MOBPRO/2019/ENU/?guid=__files_GUID_A1189AA0_3816_4350_B8F3_5383DEC25A33_htm
# https://mocappys.com/complete-guide-to-poses-in-motionbuilder... | 40.45351 | 161 | 0.597964 |
5635d316ae1600085877e1bab2f66a80fe2d556b | 2,478 | py | Python | tests/test_gon.py | slacAdpai/pcdsdevices | 7d79821f8b5652a7fd457b9a73d22ef37b2043d3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/test_gon.py | slacAdpai/pcdsdevices | 7d79821f8b5652a7fd457b9a73d22ef37b2043d3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/test_gon.py | slacAdpai/pcdsdevices | 7d79821f8b5652a7fd457b9a73d22ef37b2043d3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | import logging
import pytest
from ophyd.sim import make_fake_device
from pcdsdevices.gon import (BaseGon, Goniometer, GonWithDetArm, Kappa, SamPhi,
XYZStage)
logger = logging.getLogger(__name__)
| 43.473684 | 79 | 0.622276 |
563622ebdafcee114dcd4f8d646eaefcd1ec07cb | 3,396 | py | Python | day11/main.py | Floozutter/aoc-2019-speedrun | e5704b03afccc6edb8f43f19fdf3a338c43a3507 | [
"Unlicense"
] | null | null | null | day11/main.py | Floozutter/aoc-2019-speedrun | e5704b03afccc6edb8f43f19fdf3a338c43a3507 | [
"Unlicense"
] | null | null | null | day11/main.py | Floozutter/aoc-2019-speedrun | e5704b03afccc6edb8f43f19fdf3a338c43a3507 | [
"Unlicense"
] | null | null | null | INPUTPATH = "input.txt"
with open(INPUTPATH) as ifile:
raw = ifile.read()
program = tuple(map(int, raw.strip().split(",")))
from enum import Enum
from itertools import chain, repeat, islice
from collections import defaultdict
from typing import Dict, Callable, List, Iterable, Optional, ClassVar
from typing import Tu... | 27.609756 | 71 | 0.628092 |
563706565749ad43c628bf252a7756bcdec9196b | 3,006 | py | Python | src/morphforge/constants/standardtags.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | 1 | 2021-01-21T11:31:59.000Z | 2021-01-21T11:31:59.000Z | src/morphforge/constants/standardtags.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | src/morphforge/constants/standardtags.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | 37.575 | 77 | 0.678643 |
56390f75138128855007e115d42af136f69b1740 | 30 | py | Python | tests/assets/sample_tasks/sample.py | MarcoJHB/ploomber | 4849ef6915572f7934392443b4faf138172b9596 | [
"Apache-2.0"
] | 2,141 | 2020-02-14T02:34:34.000Z | 2022-03-31T22:43:20.000Z | tests/assets/sample_tasks/sample.py | MarcoJHB/ploomber | 4849ef6915572f7934392443b4faf138172b9596 | [
"Apache-2.0"
] | 660 | 2020-02-06T16:15:57.000Z | 2022-03-31T22:55:01.000Z | tests/assets/sample_tasks/sample.py | MarcoJHB/ploomber | 4849ef6915572f7934392443b4faf138172b9596 | [
"Apache-2.0"
] | 122 | 2020-02-14T18:53:05.000Z | 2022-03-27T22:33:24.000Z | # + tags=["parameters"]
1 + 1
| 10 | 23 | 0.533333 |
56391ea4c9edbc6455210a2b504acc81e6823867 | 24,821 | py | Python | emgproc.py | jonpas/EMGProc | 6d62d923abd1fa6450729e73d4d09f3b59890f39 | [
"MIT"
] | null | null | null | emgproc.py | jonpas/EMGProc | 6d62d923abd1fa6450729e73d4d09f3b59890f39 | [
"MIT"
] | null | null | null | emgproc.py | jonpas/EMGProc | 6d62d923abd1fa6450729e73d4d09f3b59890f39 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import os
import argparse
import time
import serial
import csv
import math
import pickle
from collections import defaultdict
import numpy as np
from sklearn.decomposition import PCA, FastICA
from sklearn.svm import SVC
# Graph
WINDOW_WIDTH = 800
WINDOW_HEIGHT = 800
PLOT_SCROLL = 3 ... | 35.662356 | 119 | 0.574554 |
563baa38f664c5c73846e34b2069a712b336a1fa | 22,898 | py | Python | 201805_Programs/XDF_RecruitsNum_v1.py | MOMOKO606/XDF | 534a3d2812caf4f1bd1dc048bcf1a3e451bd3973 | [
"MIT"
] | null | null | null | 201805_Programs/XDF_RecruitsNum_v1.py | MOMOKO606/XDF | 534a3d2812caf4f1bd1dc048bcf1a3e451bd3973 | [
"MIT"
] | null | null | null | 201805_Programs/XDF_RecruitsNum_v1.py | MOMOKO606/XDF | 534a3d2812caf4f1bd1dc048bcf1a3e451bd3973 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 26 14:41:52 2018
@author: bianl
"""
import datetime
import xlrd
import math
import numpy as np
from openpyxl import Workbook
from openpyxl import load_workbook
from openpyxl.styles import Font
from openpyxl.styles.colors import RED, BLUE
# Set global variables
SCHEDUL... | 33.872781 | 113 | 0.536597 |
563bf2b79fef0004381c4dcb7c9f61bebc58adb9 | 3,273 | py | Python | main.py | moritztng/hedgy | 39064935b71c70e19fc3a4420136f8c96ba7512b | [
"MIT"
] | 3 | 2021-09-08T17:08:41.000Z | 2021-10-04T10:12:31.000Z | main.py | moritztng/hedgy | 39064935b71c70e19fc3a4420136f8c96ba7512b | [
"MIT"
] | null | null | null | main.py | moritztng/hedgy | 39064935b71c70e19fc3a4420136f8c96ba7512b | [
"MIT"
] | null | null | null | import numpy as np
from preprocess import Vectorizer
from flask import render_template, make_response
from google.oauth2.id_token import verify_oauth2_token
from google.auth.transport.requests import Request
from google.cloud import firestore
from os.path import join, abspath, dirname
from random import randint
from pi... | 47.434783 | 178 | 0.664833 |
5640196c7db56804d0a66e0c9c76ed6ea84ee917 | 3,472 | py | Python | constants.py | HugoSchtr/lepidemo | 550c14cbdbd1300d810c5fd37fb0f8e7824c55e9 | [
"CC-BY-4.0"
] | 2 | 2021-10-11T14:06:37.000Z | 2021-10-12T07:12:05.000Z | constants.py | HugoSchtr/lepidemo | 550c14cbdbd1300d810c5fd37fb0f8e7824c55e9 | [
"CC-BY-4.0"
] | 3 | 2021-10-20T14:24:40.000Z | 2021-12-07T16:32:08.000Z | constants.py | HugoSchtr/lepidemo | 550c14cbdbd1300d810c5fd37fb0f8e7824c55e9 | [
"CC-BY-4.0"
] | null | null | null | MONTHS_MAPS = {"janvier" : '01',
"fvrier": '02',
"fevrier": '02',
"mars": '03',
"avril": '04',
"mai": '05',
"juin": '06',
"juillet": '07',
"aot": '08',
"aout": '08',
... | 50.318841 | 119 | 0.413018 |
564124cab865da25819f725850fcd01e601316a7 | 1,551 | py | Python | src/core_backend/service/plugin.py | jhchen3121/wechat_shop | c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328 | [
"Apache-2.0"
] | null | null | null | src/core_backend/service/plugin.py | jhchen3121/wechat_shop | c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328 | [
"Apache-2.0"
] | 5 | 2021-01-28T21:18:27.000Z | 2022-03-25T19:10:01.000Z | src/core_backend/service/plugin.py | jhchen3121/wechat_shop | c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328 | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8 -*-
import sys, traceback
from core_backend import context
from core_backend.libs.exception import Error
import logging
#logger = Log.getDebugLogger()
#logger.setLevel(logging.INFO)
logger = logging.getLogger(__name__)
| 27.696429 | 70 | 0.646035 |
5641524cca628a6734754f26a7871db7c5355c16 | 2,035 | py | Python | source/predict.py | thomasly/neutrophil | eed69e713257ed7d1bb48ddc3e1a393bdab6a724 | [
"MIT"
] | null | null | null | source/predict.py | thomasly/neutrophil | eed69e713257ed7d1bb48ddc3e1a393bdab6a724 | [
"MIT"
] | null | null | null | source/predict.py | thomasly/neutrophil | eed69e713257ed7d1bb48ddc3e1a393bdab6a724 | [
"MIT"
] | null | null | null | '''
Filename: predict.py
Python Version: 3.6.5
Project: Neutrophil Identifier
Author: Yang Liu
Created date: Sep 5, 2018 4:13 PM
-----
Last Modified: Oct 9, 2018 3:48 PM
Modified By: Yang Liu
-----
License: MIT
http://www.opensource.org/licenses/MIT
'''
import os
import sys
import logging
from math import ceil
from ke... | 26.776316 | 79 | 0.6457 |
5644630c33145dc381fa9ffa8ae5e80b19f52981 | 3,164 | py | Python | src/athene/rte/utils/fill_gold_sentences.py | UKPLab/fever-2018-team-athene | 730e4055899680c2ce5d5be1881e36913041d490 | [
"Apache-2.0"
] | 41 | 2019-02-11T13:49:54.000Z | 2022-01-25T19:37:29.000Z | src/athene/rte/utils/fill_gold_sentences.py | j6mes/fever-athene-system | e2b3cd731e5675c78745d918fd2d194cfd4191ca | [
"Apache-2.0"
] | 22 | 2019-02-20T13:42:28.000Z | 2022-02-09T23:29:32.000Z | src/athene/rte/utils/fill_gold_sentences.py | j6mes/fever-athene-system | e2b3cd731e5675c78745d918fd2d194cfd4191ca | [
"Apache-2.0"
] | 13 | 2019-03-27T08:42:40.000Z | 2022-03-27T14:14:30.000Z | import argparse
import json
from tqdm import tqdm
from common.dataset.reader import JSONLineReader
from common.util.log_helper import LogHelper
if __name__ == '__main__':
LogHelper.setup()
logger = LogHelper.get_logger('fill_gold_sentences')
parser = argparse.ArgumentParser()
parser.add_argument(... | 34.391304 | 89 | 0.633692 |
5647879cd19c81376ef9d67a6f374862abcb03cc | 2,568 | py | Python | tests/test_bloomfilter.py | anexplore/pyredisbloomfilter | 35f2aa98a95837e7609c30e78d81c08753701a91 | [
"Apache-2.0"
] | 1 | 2020-12-03T04:23:34.000Z | 2020-12-03T04:23:34.000Z | tests/test_bloomfilter.py | anexplore/pyredisbloomfilter | 35f2aa98a95837e7609c30e78d81c08753701a91 | [
"Apache-2.0"
] | null | null | null | tests/test_bloomfilter.py | anexplore/pyredisbloomfilter | 35f2aa98a95837e7609c30e78d81c08753701a91 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import redis
import src.bloomfilter as bf
import src.exceptions as ep
if __name__ == '__main__':
unittest.main() | 37.764706 | 122 | 0.684579 |
564972393480d24b55b21815eb789d50277da209 | 1,630 | py | Python | tfx/orchestration/portable/input_resolution/exceptions.py | ajmarcus/tfx | 28ac2be5ace31ca733f6292495f8be83484a1730 | [
"Apache-2.0"
] | null | null | null | tfx/orchestration/portable/input_resolution/exceptions.py | ajmarcus/tfx | 28ac2be5ace31ca733f6292495f8be83484a1730 | [
"Apache-2.0"
] | null | null | null | tfx/orchestration/portable/input_resolution/exceptions.py | ajmarcus/tfx | 28ac2be5ace31ca733f6292495f8be83484a1730 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC. 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 law or a... | 38.809524 | 80 | 0.784663 |
56521af6f787122a9235b0899f31bb8d50512114 | 376 | py | Python | catalearn/__init__.py | Catalearn/Catalearn | 01587241bf9b6809975a560e654d3ef3a47965e8 | [
"MIT"
] | null | null | null | catalearn/__init__.py | Catalearn/Catalearn | 01587241bf9b6809975a560e654d3ef3a47965e8 | [
"MIT"
] | null | null | null | catalearn/__init__.py | Catalearn/Catalearn | 01587241bf9b6809975a560e654d3ef3a47965e8 | [
"MIT"
] | null | null | null | import sys
import warnings
from .upgrade import isLatestVersion
sys.setrecursionlimit(50000)
warnings.filterwarnings('ignore')
# if not isLatestVersion():
# print('This version of catalearn is no longer compatible with the backend')
# print('Please use \'pip3 install -U catalearn\' to upgrade to the latest ve... | 19.789474 | 88 | 0.736702 |
565274e7a247ce9df0fcb35d9a9f6d219965676e | 1,532 | py | Python | pip_update.py | esitarski/CrossMgr | de33b5ed662556ec659e6e2910f5fd0f88f25fa0 | [
"MIT"
] | 25 | 2015-02-26T01:26:10.000Z | 2022-03-25T15:46:55.000Z | pip_update.py | esitarski/CrossMgr | de33b5ed662556ec659e6e2910f5fd0f88f25fa0 | [
"MIT"
] | 76 | 2015-12-09T04:24:30.000Z | 2022-02-18T16:39:28.000Z | pip_update.py | esitarski/CrossMgr | de33b5ed662556ec659e6e2910f5fd0f88f25fa0 | [
"MIT"
] | 17 | 2015-04-23T07:37:13.000Z | 2020-01-22T17:47:16.000Z | import re
import os
import sys
import shutil
import subprocess
if __name__ == '__main__':
#pip_update()
process_dependencies()
| 30.039216 | 118 | 0.656005 |
565335fb9620bf0598367467d8297d92cc9ff070 | 8,131 | py | Python | docxx/text/paragraph.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | 1 | 2022-01-19T22:09:25.000Z | 2022-01-19T22:09:25.000Z | docxx/text/paragraph.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | null | null | null | docxx/text/paragraph.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
Paragraph-related proxy types.
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
from docxx.enum.style import WD_STYLE_TYPE
from docxx.text.run import Run, same_run
from docxx.shared import Parented
from docxx.element import insert_element_next, inse... | 32.394422 | 80 | 0.612102 |
56533fe5b15bdd66df26e88fca626ab1f93eecfc | 6,270 | py | Python | shop/views.py | edytafraszczak/dj-shop | 02938aeca69a7cc65428f752fed3afee37429783 | [
"MIT"
] | null | null | null | shop/views.py | edytafraszczak/dj-shop | 02938aeca69a7cc65428f752fed3afee37429783 | [
"MIT"
] | null | null | null | shop/views.py | edytafraszczak/dj-shop | 02938aeca69a7cc65428f752fed3afee37429783 | [
"MIT"
] | null | null | null | import string
import weasyprint
from django.conf import settings
from django.contrib import messages
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_... | 37.54491 | 104 | 0.578309 |
565396c20414a45a7b60faed824ce5d1bc750a09 | 621 | py | Python | kubernetes_typed/client/models/v1_iscsi_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1_iscsi_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1_iscsi_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1ISCSIVolumeSourceDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import V1LocalObjectReferenceDict
V1ISCSIVolumeSourceDict = TypedDict(
"V1ISCSIVolumeSourceDict",
{
"chapAuthDiscovery": bool,
"chapAut... | 25.875 | 62 | 0.634461 |
5653a2f0dbfc504f7d3081780efaecc1f60b9ed6 | 100 | py | Python | django_basics/apps.py | pinehq/django_basics | fae7f66ece3f8b4c3e6f24ca461622a2dd44d586 | [
"MIT"
] | null | null | null | django_basics/apps.py | pinehq/django_basics | fae7f66ece3f8b4c3e6f24ca461622a2dd44d586 | [
"MIT"
] | null | null | null | django_basics/apps.py | pinehq/django_basics | fae7f66ece3f8b4c3e6f24ca461622a2dd44d586 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.666667 | 36 | 0.78 |
5653b81f79a6a91a1dbe61fae71b29a0c0c15120 | 142 | py | Python | krogon_gocd/hash.py | enamrik/krogon-gocd | fa4d836691f8fb4882c3385ec1fd41c2cb9a98f2 | [
"MIT"
] | null | null | null | krogon_gocd/hash.py | enamrik/krogon-gocd | fa4d836691f8fb4882c3385ec1fd41c2cb9a98f2 | [
"MIT"
] | null | null | null | krogon_gocd/hash.py | enamrik/krogon-gocd | fa4d836691f8fb4882c3385ec1fd41c2cb9a98f2 | [
"MIT"
] | null | null | null | import bcrypt
| 23.666667 | 87 | 0.711268 |
5655c4d68c05c384af2ae00b3b33213584082485 | 2,208 | py | Python | pytpp/attributes/adaptable_workflow.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | 4 | 2022-02-04T23:58:55.000Z | 2022-02-15T18:53:08.000Z | pytpp/attributes/adaptable_workflow.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | pytpp/attributes/adaptable_workflow.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | from pytpp.attributes._helper import IterableMeta, Attribute
from pytpp.attributes.workflow import WorkflowAttributes
| 76.137931 | 101 | 0.806612 |
565614ca2b9af499b20bb651ae6211ffa0d6c2af | 1,507 | py | Python | src/readers/read_giza.py | LalicUfscar/WE-PE-tool | e90ef8a098809a58d17347da6a88fd980e99416f | [
"MIT"
] | 1 | 2021-11-18T02:09:05.000Z | 2021-11-18T02:09:05.000Z | src/readers/read_giza.py | LalicUfscar/WE-PE-tool | e90ef8a098809a58d17347da6a88fd980e99416f | [
"MIT"
] | null | null | null | src/readers/read_giza.py | LalicUfscar/WE-PE-tool | e90ef8a098809a58d17347da6a88fd980e99416f | [
"MIT"
] | null | null | null | import re
| 40.72973 | 97 | 0.44791 |
565750554eff1bb2688cfcb1a7166ccecdf9142b | 3,772 | py | Python | giving/executors.py | breuleux/giving | bc8988c9faa19df9c79a48c946a65a09e1ca94a3 | [
"MIT"
] | 3 | 2021-09-24T17:59:32.000Z | 2022-03-08T00:02:51.000Z | giving/executors.py | breuleux/giving | bc8988c9faa19df9c79a48c946a65a09e1ca94a3 | [
"MIT"
] | null | null | null | giving/executors.py | breuleux/giving | bc8988c9faa19df9c79a48c946a65a09e1ca94a3 | [
"MIT"
] | null | null | null | import hashlib
import os
import pdb
from datetime import datetime
try:
import breakword as bw
except ImportError: # pragma: no cover
bw = None
def _term_color(key):
"""Generate a terminal color for this group."""
return 30 + (_dethash(key) % 8)
_path_replacements = {
"PWD": "",
"CONDA_PRE... | 27.333333 | 85 | 0.532609 |
5658704d496ba6a239b9d84b012db09df2861a3f | 1,143 | py | Python | pages/themes/loopsAndComprehensions/examples/slides/while_loop.py | WWWCourses/ProgressBG-Python-UniCredit-Slides | 87539aa2f73738370ac8df865cf3a1adac447391 | [
"MIT"
] | null | null | null | pages/themes/loopsAndComprehensions/examples/slides/while_loop.py | WWWCourses/ProgressBG-Python-UniCredit-Slides | 87539aa2f73738370ac8df865cf3a1adac447391 | [
"MIT"
] | null | null | null | pages/themes/loopsAndComprehensions/examples/slides/while_loop.py | WWWCourses/ProgressBG-Python-UniCredit-Slides | 87539aa2f73738370ac8df865cf3a1adac447391 | [
"MIT"
] | null | null | null | # print("{:~^45}".format(" Simple while loop "))
# i = 1
# while i<=5 :
# print(i)
# i += 1
# print("\n{:~^45}".format(" Example: sum all numbers in [1..100] "))
# i = 1
# sum = 0
# while i <= 100:
# sum += i
# i += 1
# print("sum = ", sum)
# print("\n{:~^45}".format(" Task: sum even numbers in [1..100] "))
# i ... | 21.566038 | 73 | 0.577428 |
5658ab7b24fbbc0c083f951f0b6a2a80579889fa | 295 | py | Python | aula8/aula08.py | matheusluz071098/Curso-de-Python | 633bcfd3b444327d969e3e6fd6ad37cef910e048 | [
"MIT"
] | null | null | null | aula8/aula08.py | matheusluz071098/Curso-de-Python | 633bcfd3b444327d969e3e6fd6ad37cef910e048 | [
"MIT"
] | null | null | null | aula8/aula08.py | matheusluz071098/Curso-de-Python | 633bcfd3b444327d969e3e6fd6ad37cef910e048 | [
"MIT"
] | null | null | null | # aula 8
# tuplas
numeros = [1,4,6]
usuario = {'nome:''user','passwd',:123456}
pessoa = ('matheus','luz',0,45,5,numeros)
print(numeros)
print(usuario)
print(pessoa)
numeros[1] = 5
usuario ['passwd'] = 456123
lista_pessoa = []
lista_pessoa.append(pessoa)
#pessoa[4][1] =6
print(pessoa)[4][1]) | 16.388889 | 42 | 0.664407 |
565a8e72f97f59d4d17b5f3072a465791dfcf20f | 1,753 | py | Python | sources/algorithms/sweepln/cyclesweep.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | sources/algorithms/sweepln/cyclesweep.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | 1 | 2018-10-07T08:06:01.000Z | 2018-10-07T08:06:01.000Z | sources/algorithms/sweepln/cyclesweep.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | #!/usr/env/python
"""
Generalized Cyclic Multi-Pass Sweep-line Algorithm
The cyclic multi-pass sweep-line algorithm, simply repeatedly
sweeps across the same Timeline, until a specified number of passes
has been completed or some signal is given to stop sweeping.
Classes:
- CycleSweep
"""
from typing import TypeVar... | 24.690141 | 78 | 0.674273 |
565ae1f8b7e982db0f90201b80b9c8e1a4418619 | 101 | py | Python | codesamples/apps.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 911 | 2015-01-03T22:16:06.000Z | 2022-03-31T23:56:22.000Z | codesamples/apps.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 1,342 | 2015-01-02T16:14:45.000Z | 2022-03-28T08:01:20.000Z | codesamples/apps.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 551 | 2015-01-04T02:17:31.000Z | 2022-03-23T11:59:25.000Z | from django.apps import AppConfig
| 14.428571 | 38 | 0.772277 |
565b3414bd10f50172aa545a65370f34330dc559 | 939 | py | Python | project/server/users/userIndex.py | mjqPauli/cs501-t1-assessment | c1184efffa043967fd7c5f9bc71bd6a3ff224ba6 | [
"MIT"
] | null | null | null | project/server/users/userIndex.py | mjqPauli/cs501-t1-assessment | c1184efffa043967fd7c5f9bc71bd6a3ff224ba6 | [
"MIT"
] | null | null | null | project/server/users/userIndex.py | mjqPauli/cs501-t1-assessment | c1184efffa043967fd7c5f9bc71bd6a3ff224ba6 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, make_response, jsonify
from flask.views import MethodView
from project.server import bcrypt, db
from project.server.models import User
index_blueprint = Blueprint('index', __name__)
# define the API resources
registration_view = IndexAPI.as_view('register_api')
# a... | 29.34375 | 171 | 0.665602 |
565b9b1a002d5665c226dafbc1dfe39078716112 | 4,197 | py | Python | boo/dataframe/canonic.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | 1 | 2019-12-06T21:13:22.000Z | 2019-12-06T21:13:22.000Z | boo/dataframe/canonic.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | null | null | null | boo/dataframe/canonic.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | null | null | null | import numpy
import pandas as pd
from boo.columns import SHORT_COLUMNS
from boo.errors import UnclassifiableCodeError
QUOTE_CHAR = '"'
EMPTY = int(0)
NUMERIC_COLUMNS = SHORT_COLUMNS.numeric
def dequote(name: str):
"""Split company *name* to organisation and title."""
# Warning: will not work well on compan... | 27.077419 | 78 | 0.612104 |
5661a33625cc5603279a33d28fbe1adc8c4c009a | 39 | py | Python | tasks/models/__init__.py | csdevsc/colcat_crowdsourcing_application | ad6015ca9cfc2a91063408280978a4c2eb4d6bc0 | [
"MIT"
] | null | null | null | tasks/models/__init__.py | csdevsc/colcat_crowdsourcing_application | ad6015ca9cfc2a91063408280978a4c2eb4d6bc0 | [
"MIT"
] | null | null | null | tasks/models/__init__.py | csdevsc/colcat_crowdsourcing_application | ad6015ca9cfc2a91063408280978a4c2eb4d6bc0 | [
"MIT"
] | null | null | null | from data import *
from tasks import *
| 13 | 19 | 0.74359 |
5661c6804914c15d603e844d6981737c518a63ec | 1,238 | py | Python | tests/test_create_repo.py | domdfcoding/repo_helper_github | 938f598d3a16ecc25d6efc3f075226b7fb042662 | [
"MIT"
] | 1 | 2021-05-27T14:20:28.000Z | 2021-05-27T14:20:28.000Z | tests/test_create_repo.py | domdfcoding/repo_helper_github | 938f598d3a16ecc25d6efc3f075226b7fb042662 | [
"MIT"
] | 32 | 2020-12-11T09:20:09.000Z | 2021-10-01T22:40:40.000Z | tests/test_create_repo.py | domdfcoding/repo_helper_github | 938f598d3a16ecc25d6efc3f075226b7fb042662 | [
"MIT"
] | null | null | null | # 3rd party
import pytest
from coincidence.regressions import AdvancedFileRegressionFixture
from consolekit.testing import CliRunner, Result
from domdf_python_tools.paths import in_directory
from github3.exceptions import UnprocessableEntity
# this package
from repo_helper_github.cli import new
| 30.195122 | 83 | 0.813409 |
5662d3938ff8e404030a6d6ea2a1d667c72a9b61 | 173 | py | Python | flask_mysql/crud/biolerplate_code/flask_app/__init__.py | ZhouSusan/CodingDojoPython | 8d89c9a94a3be18e79fbf24e25348eae8c96a338 | [
"MIT"
] | null | null | null | flask_mysql/crud/biolerplate_code/flask_app/__init__.py | ZhouSusan/CodingDojoPython | 8d89c9a94a3be18e79fbf24e25348eae8c96a338 | [
"MIT"
] | null | null | null | flask_mysql/crud/biolerplate_code/flask_app/__init__.py | ZhouSusan/CodingDojoPython | 8d89c9a94a3be18e79fbf24e25348eae8c96a338 | [
"MIT"
] | null | null | null | from flask_app import app
from flask_app.controllers import
if __name__ == "__main__":
app.run(debug=True)
from flask import Flask
from flask_bcrypt import Bcrypt
| 19.222222 | 34 | 0.768786 |
5663c930b66c34eeb322ee2ec6c7b1de80575ac1 | 1,062 | py | Python | Graph/Bar_revenue/exbar3.py | hashtagSELFIE/That-s-a-Wrap- | 31c8b824742fee01c384eefa49f9f82d85518651 | [
"MIT"
] | 2 | 2018-11-30T04:13:04.000Z | 2018-11-30T13:01:12.000Z | Graph/Bar_revenue/exbar3.py | hashtagSELFIE/That-s-a-Wrap- | 31c8b824742fee01c384eefa49f9f82d85518651 | [
"MIT"
] | 1 | 2022-02-12T05:05:55.000Z | 2022-02-12T05:05:55.000Z | Graph/Bar_revenue/exbar3.py | hashtagSELFIE/That-s-a-Wrap- | 31c8b824742fee01c384eefa49f9f82d85518651 | [
"MIT"
] | 1 | 2018-12-03T07:33:39.000Z | 2018-12-03T07:33:39.000Z | """Project"""
import pygal
import pandas as pd
from ast import literal_eval
def open(dir_name):
"""openfile,last_data"""
movie_type = {}
filedata = pd.read_csv('completed_movie_database_for_PSIT.csv')
top1 = filedata.loc[filedata['director'] == dir_name, ["title", "vote_average", "revenue"]]
for i... | 27.230769 | 95 | 0.62806 |
56652a3f2f66a1231f6a204eaf9d6850162ca2d6 | 2,710 | py | Python | Project1/project_1.py | spencerperley/CPE_101 | 9ae3c5a0042780f824de5edee275b35cdb0bbaec | [
"MIT"
] | 1 | 2022-01-12T21:48:23.000Z | 2022-01-12T21:48:23.000Z | Project1/project_1.py | spencerperley/CPE_101 | 9ae3c5a0042780f824de5edee275b35cdb0bbaec | [
"MIT"
] | null | null | null | Project1/project_1.py | spencerperley/CPE_101 | 9ae3c5a0042780f824de5edee275b35cdb0bbaec | [
"MIT"
] | null | null | null | aqiRanges = (0, 50, 100, 150, 200, 300, 500)
aqiDescriptions = ("Good", "Moderate", "Unhealthy for Sensitive Groups",
"Unhealthy", "Very Unhealthy", "Hazardous")
aqiDescription = ""
pm25ranges = (0, 12, 35.4, 55.4, 150.4, 250.4, 500.4)
pm10ranges = (0, 54, 154, 254, 354, 424, 604)
no2ranges = (0, ... | 30.795455 | 101 | 0.614022 |
5669be41a2eca5e043dc7d889e12c60a2e71c408 | 204 | py | Python | desktop/core/ext-py/nose-1.3.7/unit_tests/test_issue_786.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/nose-1.3.7/unit_tests/test_issue_786.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/nose-1.3.7/unit_tests/test_issue_786.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z |
check_even_cls = Check()
| 15.692308 | 28 | 0.671569 |
566cedf181185a5623b8e612a300cf6ce2603fc1 | 550 | py | Python | libra_client/lbrtypes/account_config/resources/dual_attestation.py | violas-core/violas-client | e8798f7d081ac218b78b81fd7eb2f8da92631a16 | [
"MIT"
] | null | null | null | libra_client/lbrtypes/account_config/resources/dual_attestation.py | violas-core/violas-client | e8798f7d081ac218b78b81fd7eb2f8da92631a16 | [
"MIT"
] | null | null | null | libra_client/lbrtypes/account_config/resources/dual_attestation.py | violas-core/violas-client | e8798f7d081ac218b78b81fd7eb2f8da92631a16 | [
"MIT"
] | 1 | 2022-01-05T06:49:42.000Z | 2022-01-05T06:49:42.000Z | from libra_client.lbrtypes.event import EventHandle
from libra_client.canoser import Struct, Uint64
from libra_client.move_core_types.move_resource import MoveResource
| 32.352941 | 67 | 0.710909 |
566d185f6f870a3a7fe49c1c6de4ae4a9ac38fdd | 12,040 | py | Python | MyProjects/Python/python-ba-PythonCheetSheet.py | JohanChane/JohanChane.github.io | 89b69291e19b5e8ad5b3884da20f2bf0b04b3c41 | [
"MIT"
] | 6 | 2021-04-29T05:20:15.000Z | 2022-03-06T05:04:48.000Z | MyProjects/Python/python-ba-PythonCheetSheet.py | JohanChane/JohanChane.github.io | 89b69291e19b5e8ad5b3884da20f2bf0b04b3c41 | [
"MIT"
] | 4 | 2020-08-31T21:03:54.000Z | 2020-08-31T21:32:37.000Z | MyProjects/Python/python-ba-PythonCheetSheet.py | JohanChane/JohanChane.github.io | 89b69291e19b5e8ad5b3884da20f2bf0b04b3c41 | [
"MIT"
] | 2 | 2020-08-31T21:21:39.000Z | 2021-04-06T07:47:39.000Z | #!/usr/bin/env python3
# -*- coding: utf8 -*-
## # Python Cheet Sheet
# Python version Python3.8
#
# `##` markdown
import math
## ## Basic
funcForDebug()
funcForOutput()
funcForStringConcaten()
funcForEscapeChar()
## ### data type
funcForDataType()
## ### Branch Control
funcForBranchControl()
## ### F... | 19.294872 | 89 | 0.6 |
566ec1bf1ae6e1b81925b4f94a8b70dae24c3bb5 | 2,525 | py | Python | atss4po/auth/views.py | kaiueo/atss4po | 56248339bcb50779e386e25ac04202e2df8b5e10 | [
"BSD-3-Clause"
] | null | null | null | atss4po/auth/views.py | kaiueo/atss4po | 56248339bcb50779e386e25ac04202e2df8b5e10 | [
"BSD-3-Clause"
] | null | null | null | atss4po/auth/views.py | kaiueo/atss4po | 56248339bcb50779e386e25ac04202e2df8b5e10 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Public section, including homepage and signup."""
from flask import Blueprint, flash, redirect, render_template, request, url_for, session, make_response
from flask_login import login_required, login_user, logout_user, current_user
from atss4po.extensions import login_manager
from atss4po.au... | 32.792208 | 144 | 0.674851 |
566f2a9c2268f79fa287add0acde1811f664f85d | 2,381 | py | Python | geoportal/geoportailv3_geoportal/views/upload.py | Geoportail-Luxembourg/geoportailv3 | a3797a426e263683cdebe371753e655604789474 | [
"MIT"
] | 17 | 2015-01-14T08:40:22.000Z | 2021-05-08T04:39:50.000Z | geoportal/geoportailv3_geoportal/views/upload.py | Geoportail-Luxembourg/geoportailv3 | a3797a426e263683cdebe371753e655604789474 | [
"MIT"
] | 1,477 | 2015-01-05T09:58:41.000Z | 2022-03-18T11:07:09.000Z | geoportal/geoportailv3_geoportal/views/upload.py | Geoportail-Luxembourg/geoportailv3 | a3797a426e263683cdebe371753e655604789474 | [
"MIT"
] | 14 | 2015-07-24T07:33:13.000Z | 2021-03-02T13:51:48.000Z | # -*- coding: utf-8 -*-
from pyramid.view import view_config
import os
import uuid
import json
from pyramid.response import Response
from pyramid.httpexceptions import HTTPBadRequest
| 31.746667 | 171 | 0.559009 |
566f2ff74737d0f14315124f3043c13acfc0881f | 3,603 | py | Python | array_observation/sac_discrete_gb/core.py | prateekiiest/discreteminimalistsac | c38ec3f1b67885f82703e38248940ab07dfb8fdd | [
"MIT"
] | 81 | 2020-02-20T13:14:25.000Z | 2022-03-30T12:36:05.000Z | array_observation/sac_discrete_gb/core.py | prateekiiest/discreteminimalistsac | c38ec3f1b67885f82703e38248940ab07dfb8fdd | [
"MIT"
] | 3 | 2020-07-28T07:10:05.000Z | 2021-04-29T18:37:43.000Z | array_observation/sac_discrete_gb/core.py | prateekiiest/discreteminimalistsac | c38ec3f1b67885f82703e38248940ab07dfb8fdd | [
"MIT"
] | 7 | 2020-07-06T21:46:05.000Z | 2021-09-15T13:11:55.000Z | import numpy as np
import os
import tensorflow as tf
EPS = 1e-8
"""
Policies
"""
"""
Actor-Critics
"""
| 35.323529 | 111 | 0.662503 |
56700e57818953003d07b25e398460473fe1926b | 525 | py | Python | src/web_homepage/jinja.py | Mattan-Qwer/test1 | 16bc7642a18d632181480644d1f188c9fb3785bc | [
"Apache-2.0"
] | 1 | 2021-07-25T12:46:08.000Z | 2021-07-25T12:46:08.000Z | src/web_homepage/jinja.py | Mattan-Qwer/test1 | 16bc7642a18d632181480644d1f188c9fb3785bc | [
"Apache-2.0"
] | 3 | 2021-03-04T21:15:32.000Z | 2021-05-15T22:01:11.000Z | src/web_homepage/jinja.py | Mattan-Qwer/test1 | 16bc7642a18d632181480644d1f188c9fb3785bc | [
"Apache-2.0"
] | 2 | 2021-03-17T18:02:58.000Z | 2021-07-15T17:58:28.000Z | from django.templatetags.static import static
from django.urls import reverse
from jinja2 import Environment
from fontawesome_5.templatetags import fontawesome_5
from wissenslandkarte.settings import DEBUG, ENABLE_LIVE_JS
| 26.25 | 67 | 0.727619 |
5671326c276d2e23216bc6e77ae1e2508c743236 | 273 | py | Python | app.py | EGeorge2021r/nft-marketplace | cc6a31f67e4657da72e59d5106a85b4d7dd0eb7f | [
"MIT"
] | null | null | null | app.py | EGeorge2021r/nft-marketplace | cc6a31f67e4657da72e59d5106a85b4d7dd0eb7f | [
"MIT"
] | 5 | 2022-02-20T00:49:34.000Z | 2022-02-25T21:29:49.000Z | app.py | EGeorge2021r/nft-marketplace | cc6a31f67e4657da72e59d5106a85b4d7dd0eb7f | [
"MIT"
] | 2 | 2022-02-21T03:29:34.000Z | 2022-03-04T00:46:46.000Z | import streamlit as st
from multiapp import MultiApp
from apps import buyer, home,creator # import your app modules here
app = MultiApp()
app.add_app("Home", home.home)
app.add_app("Creator", creator.creator)
app.add_app("Buyer", buyer.buyer)
# The main app
app.run()
| 18.2 | 67 | 0.747253 |
56721a21d88665f27b61aff6cca650492e5300f3 | 691 | py | Python | S4/S4 Library/simulation/objects/lighting/lighting_object_interactions.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/objects/lighting/lighting_object_interactions.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/objects/lighting/lighting_object_interactions.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from objects.lighting.lighting_interactions import SwitchLightImmediateInteraction
from objects.object_state_utils import ObjectStateHelper
import sims4
logger = sims4.log.Logger('LightingAndObjectState', default_owner='mkartika')
| 57.583333 | 224 | 0.778582 |
5672de26f5694100741fb9f5dfa3ea076cc4ffad | 5,692 | py | Python | python/utils/CAN.py | TSO-team/StationDePesage | 03ae3db54efebb8a8a3fefcbe78dadeb0851af63 | [
"Apache-2.0"
] | null | null | null | python/utils/CAN.py | TSO-team/StationDePesage | 03ae3db54efebb8a8a3fefcbe78dadeb0851af63 | [
"Apache-2.0"
] | 8 | 2020-12-08T23:52:23.000Z | 2020-12-14T22:04:26.000Z | python/utils/CAN.py | TSO-team/StationDePesage | 03ae3db54efebb8a8a3fefcbe78dadeb0851af63 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# File: python/utils/CAN.py
# By: Samuel Duclos
# For: My team.
# Description: TSO protocol for CAN bus.
from __future__ import print_function
import os, signal, subprocess, time, utils.drivers.CAN
| 39.527778 | 225 | 0.682186 |
567518c0fb9c154ac5935c2be231aa9edbadb63e | 46 | py | Python | stade/tracker/models/__init__.py | ImageMarkup/stade | d930e8c7487754b2babd6a3be69f2c614cd7f609 | [
"Apache-2.0"
] | 4 | 2019-09-25T22:57:32.000Z | 2021-03-03T16:49:30.000Z | stade/tracker/models/__init__.py | ImageMarkup/stade | d930e8c7487754b2babd6a3be69f2c614cd7f609 | [
"Apache-2.0"
] | 55 | 2019-10-30T16:58:43.000Z | 2021-10-09T23:26:03.000Z | stade/tracker/models/__init__.py | ImageMarkup/stade | d930e8c7487754b2babd6a3be69f2c614cd7f609 | [
"Apache-2.0"
] | 1 | 2020-02-03T17:14:32.000Z | 2020-02-03T17:14:32.000Z | from .email import Email
__all__ = ['Email']
| 11.5 | 24 | 0.695652 |
56751bf83e23ee1f59d7cb7602bc4e9a2548390d | 587 | py | Python | library/tests/test_setup.py | edalatpour/unicornhatmini-python | d1bbfe8d4fdabad5a14489505ba3751386e2f990 | [
"MIT"
] | 32 | 2020-05-01T16:07:22.000Z | 2022-03-18T13:02:54.000Z | library/tests/test_setup.py | edalatpour/unicornhatmini-python | d1bbfe8d4fdabad5a14489505ba3751386e2f990 | [
"MIT"
] | 10 | 2020-04-26T13:40:50.000Z | 2022-01-06T14:22:03.000Z | library/tests/test_setup.py | edalatpour/unicornhatmini-python | d1bbfe8d4fdabad5a14489505ba3751386e2f990 | [
"MIT"
] | 19 | 2020-05-05T15:12:18.000Z | 2022-03-31T09:18:20.000Z | import mock
| 23.48 | 65 | 0.739353 |
56755210cd15d2e4b5e1097a0bec472c5d6b5bc0 | 2,520 | py | Python | botfw/bybit/order.py | lzpel/btc_bot_framework | abb585e1cd8b70297ef29d529e2da75046409f4b | [
"MIT"
] | 115 | 2019-11-29T23:48:37.000Z | 2022-03-25T11:07:21.000Z | botfw/bybit/order.py | lzpel/btc_bot_framework | abb585e1cd8b70297ef29d529e2da75046409f4b | [
"MIT"
] | 15 | 2019-12-05T07:31:05.000Z | 2022-02-07T02:34:47.000Z | botfw/bybit/order.py | lzpel/btc_bot_framework | abb585e1cd8b70297ef29d529e2da75046409f4b | [
"MIT"
] | 38 | 2019-11-30T00:06:04.000Z | 2022-03-22T08:40:03.000Z | import time
from ..base import order as od
from .api import BybitApi
# Future
| 29.302326 | 72 | 0.57619 |
567623cb9ed052108f25459249cc04c6c1183245 | 4,633 | py | Python | clip/__init__.py | AgentMaker/Paddle-CLIP | 45b10f1170ac648609980cf982319b33605ce552 | [
"Apache-2.0"
] | 57 | 2021-03-10T14:56:33.000Z | 2022-01-16T11:53:53.000Z | clip/__init__.py | AgentMaker/CLIP_Paddle | 45b10f1170ac648609980cf982319b33605ce552 | [
"Apache-2.0"
] | 1 | 2021-03-28T02:59:48.000Z | 2021-03-28T02:59:48.000Z | clip/__init__.py | AgentMaker/CLIP_Paddle | 45b10f1170ac648609980cf982319b33605ce552 | [
"Apache-2.0"
] | 1 | 2021-12-01T08:01:40.000Z | 2021-12-01T08:01:40.000Z | import os
import wget
import paddle
from .tokenizer import Tokenizer
from .model import CLIP
from paddle.vision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize
tokenizer = Tokenizer()
def tokenize(texts, context_length=77):
"""
Returns the tokenized representation of given input stri... | 32.626761 | 235 | 0.673646 |
5676a65ea8022f36eb9c443924fcb1b6a1fa8a6d | 796,813 | py | Python | sdk/python/pulumi_yandex/_inputs.py | pulumi/pulumi-yandex | 559a0c82fd2b834bb5f1dc3abbf0dab689b13a3e | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2021-04-20T15:39:41.000Z | 2022-02-20T09:14:39.000Z | sdk/python/pulumi_yandex/_inputs.py | pulumi/pulumi-yandex | 559a0c82fd2b834bb5f1dc3abbf0dab689b13a3e | [
"ECL-2.0",
"Apache-2.0"
] | 56 | 2021-04-20T11:31:03.000Z | 2022-03-31T15:53:06.000Z | sdk/python/pulumi_yandex/_inputs.py | pulumi/pulumi-yandex | 559a0c82fd2b834bb5f1dc3abbf0dab689b13a3e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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 ... | 41.576468 | 406 | 0.670742 |
5677260d854e8a3d08a795a45b41123f84dee95e | 8,343 | py | Python | shared/tools/snapshot/ia/project.py | DougMahoney/metatools | 112340102962ff0c3e323564357cc4e848939cf7 | [
"Apache-2.0"
] | 12 | 2020-04-10T07:09:24.000Z | 2022-03-04T09:22:40.000Z | shared/tools/snapshot/ia/project.py | DougMahoney/metatools | 112340102962ff0c3e323564357cc4e848939cf7 | [
"Apache-2.0"
] | 5 | 2020-05-16T18:22:23.000Z | 2022-03-29T13:19:27.000Z | shared/tools/snapshot/ia/project.py | DougMahoney/metatools | 112340102962ff0c3e323564357cc4e848939cf7 | [
"Apache-2.0"
] | 2 | 2020-12-10T15:17:40.000Z | 2021-12-02T17:34:56.000Z | """
Project resources
Many configuration and scripting resources are extracted here.
"""
from shared.tools.snapshot.utils import encode, hashmapToDict
# Ready for the dispatcher
EXTRACTORS = {
'sr.script.project': extract_project_script,
'named-query': extract_namedquery,
'client.event.scripts': ex... | 34.333333 | 104 | 0.708139 |
5678b7bf08f40883e5891e50741497dd50fc7869 | 69,043 | py | Python | pybaselines/polynomial.py | derb12/pybaselines | 801e417d698e5e05c53372a4359f3642f34e19ac | [
"BSD-3-Clause"
] | 18 | 2021-08-16T20:22:19.000Z | 2022-03-19T05:30:37.000Z | pybaselines/polynomial.py | derb12/pybaselines | 801e417d698e5e05c53372a4359f3642f34e19ac | [
"BSD-3-Clause"
] | 4 | 2021-05-23T01:26:22.000Z | 2022-02-06T01:01:24.000Z | pybaselines/polynomial.py | derb12/pybaselines | 801e417d698e5e05c53372a4359f3642f34e19ac | [
"BSD-3-Clause"
] | 5 | 2021-05-22T22:57:10.000Z | 2022-01-28T21:55:56.000Z | # -*- coding: utf-8 -*-
"""Polynomial techniques for fitting baselines to experimental data.
Created on Feb. 27, 2021
@author: Donald Erb
The function penalized_poly was adapted from MATLAB code from
https://www.mathworks.com/matlabcentral/fileexchange/27429-background-correction
(accessed March 18, 2021), which was... | 41.818898 | 98 | 0.659531 |
5679b51f6118b18e3e4e239059714dfed0909e87 | 196 | py | Python | contacts/urls.py | melodyPereira05/PropertyDekho | 9cc860cd9645de4c21efbb755dd2312ffea684b0 | [
"MIT"
] | null | null | null | contacts/urls.py | melodyPereira05/PropertyDekho | 9cc860cd9645de4c21efbb755dd2312ffea684b0 | [
"MIT"
] | null | null | null | contacts/urls.py | melodyPereira05/PropertyDekho | 9cc860cd9645de4c21efbb755dd2312ffea684b0 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('<int:sproperty_id>/',views.contact,name="contact"),
path('',views.contact_submit,name="contact-submit"),
] | 19.6 | 61 | 0.673469 |
567bb981871e1748a08b51accf9647ba7bcc514d | 37 | py | Python | dataset_seam/__init__.py | lonestar686/pytorch-saltnet | aa75581567ccd5643b854cfb4d54c8881ed2a0d6 | [
"MIT"
] | null | null | null | dataset_seam/__init__.py | lonestar686/pytorch-saltnet | aa75581567ccd5643b854cfb4d54c8881ed2a0d6 | [
"MIT"
] | null | null | null | dataset_seam/__init__.py | lonestar686/pytorch-saltnet | aa75581567ccd5643b854cfb4d54c8881ed2a0d6 | [
"MIT"
] | null | null | null | from .seam_data import SEAM, TileBase | 37 | 37 | 0.837838 |
567bcfdb694290f895bf395e9cbebe9b725dbb36 | 4,192 | py | Python | namebench/appengine/models.py | chicks-net/namebench | 8dd5e67ba3077650d49aa47a75a257e3286c8044 | [
"Apache-2.0"
] | 2 | 2017-12-13T00:39:46.000Z | 2018-05-02T14:35:48.000Z | namebench/appengine/models.py | chicks-net/namebench | 8dd5e67ba3077650d49aa47a75a257e3286c8044 | [
"Apache-2.0"
] | null | null | null | namebench/appengine/models.py | chicks-net/namebench | 8dd5e67ba3077650d49aa47a75a257e3286c8044 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2010 Google 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 o... | 37.428571 | 101 | 0.76479 |
567dc74cca5ce962c42e1ff80a6d92dca8715b6b | 209 | py | Python | py3rijndael/__init__.py | squaresmile/py3rijndael | 569fe2a4b2ab5ccb4768e2fabcd0fa398e3c97fc | [
"MIT"
] | null | null | null | py3rijndael/__init__.py | squaresmile/py3rijndael | 569fe2a4b2ab5ccb4768e2fabcd0fa398e3c97fc | [
"MIT"
] | null | null | null | py3rijndael/__init__.py | squaresmile/py3rijndael | 569fe2a4b2ab5ccb4768e2fabcd0fa398e3c97fc | [
"MIT"
] | null | null | null | from py3rijndael.paddings import Pkcs7Padding, ZeroPadding
from py3rijndael.rijndael import Rijndael, RijndaelCbc
__version__ = "0.3.5"
__all__ = ["Pkcs7Padding", "ZeroPadding", "Rijndael", "RijndaelCbc"]
| 23.222222 | 68 | 0.779904 |
567e401d765049cad6d02b346822be9a585a34c5 | 17,700 | py | Python | MontyExtractor.py | treatmesubj/MontyLingua | 795047733334b0f5c354eb8a2152f81546a3aac0 | [
"MIT"
] | null | null | null | MontyExtractor.py | treatmesubj/MontyLingua | 795047733334b0f5c354eb8a2152f81546a3aac0 | [
"MIT"
] | null | null | null | MontyExtractor.py | treatmesubj/MontyLingua | 795047733334b0f5c354eb8a2152f81546a3aac0 | [
"MIT"
] | null | null | null |
__author__="Hugo Liu <hugo@media.mit.edu>"
__version__="2.0"
import sys,string,os,re
| 41.35514 | 190 | 0.572881 |
567e66953f9087009e3135f6fcd09362a85c10a2 | 416 | py | Python | PE/PE77.py | bristy/codemania | ceaacce07cb1b66202e17ad313a3467bd591bdc1 | [
"MIT"
] | null | null | null | PE/PE77.py | bristy/codemania | ceaacce07cb1b66202e17ad313a3467bd591bdc1 | [
"MIT"
] | null | null | null | PE/PE77.py | bristy/codemania | ceaacce07cb1b66202e17ad313a3467bd591bdc1 | [
"MIT"
] | null | null | null | # https://projecteuler.net/problem=77
from prime_util import sieve
MAX = 5000
INF = 1 << 31
if __name__ == '__main__':
pe77()
| 16 | 37 | 0.463942 |
567f0b521b2717f8b584e40dce457469dd2d45d1 | 13,280 | py | Python | lcms_results_processor/charts.py | domdfcoding/PhD-Data | 8402f9f26a81d2b68cf5bc1867ec0064e3d08ce2 | [
"MIT"
] | null | null | null | lcms_results_processor/charts.py | domdfcoding/PhD-Data | 8402f9f26a81d2b68cf5bc1867ec0064e3d08ce2 | [
"MIT"
] | 1 | 2020-11-12T19:44:34.000Z | 2020-11-17T09:45:11.000Z | lcms_results_processor/charts.py | domdfcoding/PhD-Data | 8402f9f26a81d2b68cf5bc1867ec0064e3d08ce2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# charts.py
#
# Copyright 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# 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, includin... | 27.609148 | 107 | 0.730798 |
5680f6047c8eab0b5da63c350c131f57ec18e94a | 2,061 | py | Python | grav_tele/d_focal.py | mvtea/sgl | b6307e6fe9db536b392f181ca113128c7f0f1821 | [
"MIT"
] | null | null | null | grav_tele/d_focal.py | mvtea/sgl | b6307e6fe9db536b392f181ca113128c7f0f1821 | [
"MIT"
] | null | null | null | grav_tele/d_focal.py | mvtea/sgl | b6307e6fe9db536b392f181ca113128c7f0f1821 | [
"MIT"
] | null | null | null | #Program to compute the minimum focal distance of light passing the sun at a distance equal to the
#radius of the sun
import matplotlib.pyplot as plt
#Constants
G = 6.67e-11 #Gravitational constant [m^3 kg^-1 s^-2]
M_sun = 1.989e30 #Mass of the sun [kg]
c = 3e8 #Speed of light... | 29.028169 | 102 | 0.684134 |
56814ce173bfc1737c58d3660eb21312b88d0b60 | 2,474 | py | Python | examples/PyGame/avoid_joint_limits.py | elsuizo/abr_control | d7d47a1c152dfcb8d1a3093083d53f19cc4922d6 | [
"BSD-3-Clause"
] | 1 | 2021-07-07T13:26:38.000Z | 2021-07-07T13:26:38.000Z | examples/PyGame/avoid_joint_limits.py | elsuizo/abr_control | d7d47a1c152dfcb8d1a3093083d53f19cc4922d6 | [
"BSD-3-Clause"
] | null | null | null | examples/PyGame/avoid_joint_limits.py | elsuizo/abr_control | d7d47a1c152dfcb8d1a3093083d53f19cc4922d6 | [
"BSD-3-Clause"
] | null | null | null | """
Running operational space control with the PyGame display, using an exponential
additive signal when to push away from joints.
The target location can be moved by clicking on the background.
"""
import numpy as np
from abr_control.arms import threejoint as arm
# from abr_control.arms import twojoint as arm
from ab... | 29.452381 | 79 | 0.672999 |
5683f938e7eeefc9e75b94fdc3d8a1fc14161acb | 1,124 | py | Python | ManualTest/eventCheckAndActionTest.py | terapotan/NewBreakingBlocks | 72927942d4a5088eae2191ce1d46562599f05cc8 | [
"MIT"
] | null | null | null | ManualTest/eventCheckAndActionTest.py | terapotan/NewBreakingBlocks | 72927942d4a5088eae2191ce1d46562599f05cc8 | [
"MIT"
] | null | null | null | ManualTest/eventCheckAndActionTest.py | terapotan/NewBreakingBlocks | 72927942d4a5088eae2191ce1d46562599f05cc8 | [
"MIT"
] | null | null | null | import unittest
# import
if __name__ == "__main__":
unittest.main() | 53.52381 | 135 | 0.790925 |
5684a310c51a1e2d97f50e8936dbb47ee124d402 | 3,157 | py | Python | tests/utils/data/test_image_utils.py | chenwenxiao/DOI | 14bdedd0b1b886efe77737cfb62695f03ee17c58 | [
"MIT"
] | 1 | 2021-08-13T22:14:10.000Z | 2021-08-13T22:14:10.000Z | tests/utils/data/test_image_utils.py | chenwenxiao/DOI | 14bdedd0b1b886efe77737cfb62695f03ee17c58 | [
"MIT"
] | null | null | null | tests/utils/data/test_image_utils.py | chenwenxiao/DOI | 14bdedd0b1b886efe77737cfb62695f03ee17c58 | [
"MIT"
] | null | null | null | import itertools
from unittest import TestCase
import numpy as np
from utils.data import ArrayInfo, image_array_to_rgb
from utils.data.mappers import *
| 35.47191 | 84 | 0.519797 |
568571c41663dd009844bdc623dd3cbb483f94fa | 125 | py | Python | closeness_server/wsgi.py | wligtenberg/closeness-server | b9d7fba57264fb87e6a5be94dcf9f9a97f1156ca | [
"MIT"
] | null | null | null | closeness_server/wsgi.py | wligtenberg/closeness-server | b9d7fba57264fb87e6a5be94dcf9f9a97f1156ca | [
"MIT"
] | null | null | null | closeness_server/wsgi.py | wligtenberg/closeness-server | b9d7fba57264fb87e6a5be94dcf9f9a97f1156ca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# closeness-server (c) Willem Ligtenberg
from closeness_server import create_app
app = create_app()
| 20.833333 | 40 | 0.728 |
56887c191046d293831578b1ba492a974431002a | 1,276 | py | Python | apps/gsekit/admin.py | iSecloud/bk-process-config-manager | f44c01b7a28dd9328cce6e6066eae42d5365070d | [
"MIT"
] | 8 | 2021-07-08T06:53:57.000Z | 2022-03-14T04:05:27.000Z | apps/gsekit/admin.py | iSecloud/bk-process-config-manager | f44c01b7a28dd9328cce6e6066eae42d5365070d | [
"MIT"
] | 107 | 2021-07-22T02:20:07.000Z | 2022-03-14T08:37:23.000Z | apps/gsekit/admin.py | iSecloud/bk-process-config-manager | f44c01b7a28dd9328cce6e6066eae42d5365070d | [
"MIT"
] | 12 | 2021-07-09T08:59:01.000Z | 2022-03-08T13:40:41.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making (Blueking) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may o... | 39.875 | 115 | 0.776646 |
56895f4fb9823046a7bf8c684a86b42ce414d383 | 7,215 | py | Python | src/vision/stereo.py | hb-jones/rp1-ros | afc2888f5da7a2b4cc6d9e07ce017f26996e58c3 | [
"Apache-2.0"
] | null | null | null | src/vision/stereo.py | hb-jones/rp1-ros | afc2888f5da7a2b4cc6d9e07ce017f26996e58c3 | [
"Apache-2.0"
] | null | null | null | src/vision/stereo.py | hb-jones/rp1-ros | afc2888f5da7a2b4cc6d9e07ce017f26996e58c3 | [
"Apache-2.0"
] | null | null | null | from logging import config
import threading, cv2, time, json
from .stereocam import StereoCam
from .vision_config import BallConfig, StereoConfig, MonocularConfig
from . import preprocessing, trajectory_estimation, monocular
def test_publisher_pixel_coordinate(stereo: Stereo):
"""Test file that saves coords... | 41.947674 | 208 | 0.639085 |