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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6cd191f4e7eeaa1d075d528c9e2ada0827d674f | 4,618 | py | Python | HW2/dbsys-hw2/Database.py | yliu120/dbsystem | d1b008f411929058a34a1dd2c44c9ee2cf899865 | [
"Apache-2.0"
] | null | null | null | HW2/dbsys-hw2/Database.py | yliu120/dbsystem | d1b008f411929058a34a1dd2c44c9ee2cf899865 | [
"Apache-2.0"
] | null | null | null | HW2/dbsys-hw2/Database.py | yliu120/dbsystem | d1b008f411929058a34a1dd2c44c9ee2cf899865 | [
"Apache-2.0"
] | null | null | null | import json, io, os, os.path
from Catalog.Schema import DBSchema, DBSchemaEncoder, DBSchemaDecoder
from Query.Plan import PlanBuilder
from Storage.StorageEngine import StorageEngine
if __name__ == "__main__":
import doctest
doctest.testmod()
| 31.848276 | 107 | 0.707016 |
e6cda14ca91ba1556d929a926bfc87a16ab1f726 | 371 | py | Python | tests/test_arr_add_value.py | dboyliao/TaipeiPy-pybind11-buffer-array | 22e764d9fbf605950c0de10e3a341de36bc9bf89 | [
"MIT"
] | 1 | 2022-03-17T10:01:45.000Z | 2022-03-17T10:01:45.000Z | tests/test_arr_add_value.py | dboyliao/TaipeiPy-pybind11-buffer-array | 22e764d9fbf605950c0de10e3a341de36bc9bf89 | [
"MIT"
] | null | null | null | tests/test_arr_add_value.py | dboyliao/TaipeiPy-pybind11-buffer-array | 22e764d9fbf605950c0de10e3a341de36bc9bf89 | [
"MIT"
] | null | null | null | import numpy as np
import mylib
| 28.538462 | 80 | 0.638814 |
e6ce056f0a84e4b655921e3c42a24774c81e07e4 | 619 | py | Python | moderngl_window/resources/data.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 142 | 2019-11-11T23:14:28.000Z | 2022-03-29T08:37:03.000Z | moderngl_window/resources/data.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 107 | 2019-10-31T20:31:45.000Z | 2022-03-23T15:01:41.000Z | moderngl_window/resources/data.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 36 | 2019-12-12T16:14:10.000Z | 2022-01-18T22:58:21.000Z | """
Registry general data files
"""
from typing import Any
from moderngl_window.resources.base import BaseRegistry
from moderngl_window.meta import DataDescription
data = DataFiles()
| 23.807692 | 99 | 0.678514 |
e6cea1b013c7155bc06629fbf31e017bbe14f52f | 658 | py | Python | tests/test_units/test_mapper_str.py | frewsxcv/routes | 7690fc1016e56739855435fb54c96acccfa29009 | [
"MIT"
] | 1 | 2015-11-08T12:58:16.000Z | 2015-11-08T12:58:16.000Z | tests/test_units/test_mapper_str.py | frewsxcv/routes | 7690fc1016e56739855435fb54c96acccfa29009 | [
"MIT"
] | null | null | null | tests/test_units/test_mapper_str.py | frewsxcv/routes | 7690fc1016e56739855435fb54c96acccfa29009 | [
"MIT"
] | null | null | null | import unittest
from routes import Mapper
| 34.631579 | 91 | 0.582067 |
e6cebeadc3ade385a017e0f9c9ce037d2f450345 | 2,106 | py | Python | quarkchain/tools/config_slave.py | HAOYUatHZ/pyquarkchain | b2c7c02e4415aa26917c2cbb5e7571c9fef16c5b | [
"MIT"
] | 1 | 2018-10-23T05:48:42.000Z | 2018-10-23T05:48:42.000Z | quarkchain/tools/config_slave.py | skji/pyquarkchain | 090f9981b89b8873daaed36171a9bc9f27b10473 | [
"MIT"
] | 3 | 2020-03-12T18:09:40.000Z | 2021-02-26T02:33:09.000Z | quarkchain/tools/config_slave.py | skji/pyquarkchain | 090f9981b89b8873daaed36171a9bc9f27b10473 | [
"MIT"
] | null | null | null | """
python config_slave.py 127.0.0.1 38000 38006 127.0.0.2 18999 18002
will generate 4 slave server configs accordingly. will be used in deployment automation to configure a cluster.
usage: python config_slave.py <host1> <port1> <port2> <host2> <port3> ...
"""
import argparse
import collections
import json
import ... | 28.459459 | 111 | 0.597816 |
e6cfd0714854720779418d4a80b8997e25e611e3 | 3,227 | py | Python | python-function-files-dictionaries/week4-assignment1.py | MauMendes/python3-programming-specialization | 8bd259f0ac559c6004baa0e759b6ec4bc25e1320 | [
"MIT"
] | null | null | null | python-function-files-dictionaries/week4-assignment1.py | MauMendes/python3-programming-specialization | 8bd259f0ac559c6004baa0e759b6ec4bc25e1320 | [
"MIT"
] | null | null | null | python-function-files-dictionaries/week4-assignment1.py | MauMendes/python3-programming-specialization | 8bd259f0ac559c6004baa0e759b6ec4bc25e1320 | [
"MIT"
] | null | null | null | #1) Write a function, sublist, that takes in a list of numbers as the parameter. In the function, use a while loop to return a sublist of the input list.
# The sublist should contain the same values of the original list up until it reaches the number 5 (it should not contain the number 5).
#2) Write a function called... | 37.091954 | 168 | 0.664084 |
e6d14bad54d6d5d7401435412b7045fd99c1fc0a | 25,605 | py | Python | saas/backend/apps/group/views.py | Canway-shiisa/bk-iam-saas | 73c3770d9647c9cc8d515427cd1d053d8af9d071 | [
"MIT"
] | null | null | null | saas/backend/apps/group/views.py | Canway-shiisa/bk-iam-saas | 73c3770d9647c9cc8d515427cd1d053d8af9d071 | [
"MIT"
] | null | null | null | saas/backend/apps/group/views.py | Canway-shiisa/bk-iam-saas | 73c3770d9647c9cc8d515427cd1d053d8af9d071 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making -(BlueKing-IAM) 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 Licens... | 36.216407 | 117 | 0.696348 |
e6d16a8a093216b78956e0c3642e48c0a64c8778 | 5,188 | py | Python | towers.py | fillest/7drl2013 | 96d291dce08a85d3871713c99f3a036de482d6ca | [
"MIT"
] | 1 | 2015-05-19T08:12:49.000Z | 2015-05-19T08:12:49.000Z | towers.py | fillest/7drl2013 | 96d291dce08a85d3871713c99f3a036de482d6ca | [
"MIT"
] | null | null | null | towers.py | fillest/7drl2013 | 96d291dce08a85d3871713c99f3a036de482d6ca | [
"MIT"
] | null | null | null | import util
import libtcodpy as tcod
import enemies
import operator
| 24.018519 | 92 | 0.664418 |
e6d351ce6a88251c74a7d12532c34a2b0ba6f8b1 | 795 | py | Python | python/mandelbrot.py | lukasjoc/random | 5be080b424f02491fb219634902fc0cc192aff6c | [
"0BSD"
] | 1 | 2020-11-09T19:32:43.000Z | 2020-11-09T19:32:43.000Z | python/mandelbrot.py | lukasjoc/random | 5be080b424f02491fb219634902fc0cc192aff6c | [
"0BSD"
] | null | null | null | python/mandelbrot.py | lukasjoc/random | 5be080b424f02491fb219634902fc0cc192aff6c | [
"0BSD"
] | null | null | null | #!/usr/bin/python3
from PIL import Image
from numpy import complex, array
from tqdm import tqdm
import colorsys
W=512
#W=142
if __name__ == "__main__":
img = Image.new("RGB", (W, int(W / 2)))
pixels = img.load()
for x in tqdm(range(img.size[0])):
for y in tqdm(range(img.size[1])):
xx... | 22.714286 | 69 | 0.52956 |
e6d3938d66694895ff110b11b2560698b6722338 | 9,672 | py | Python | tests/unit/commands/test_deploy.py | tonyreina/mlt | ee490ebdeb5aa6924dbfc0a067a0653754c470f4 | [
"Apache-2.0"
] | 1 | 2021-11-29T10:35:20.000Z | 2021-11-29T10:35:20.000Z | tests/unit/commands/test_deploy.py | tonyreina/mlt | ee490ebdeb5aa6924dbfc0a067a0653754c470f4 | [
"Apache-2.0"
] | null | null | null | tests/unit/commands/test_deploy.py | tonyreina/mlt | ee490ebdeb5aa6924dbfc0a067a0653754c470f4 | [
"Apache-2.0"
] | 1 | 2020-02-22T01:04:15.000Z | 2020-02-22T01:04:15.000Z | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 34.791367 | 85 | 0.652089 |
e6d61cff66c7d3846169dfff6eca952a90b72ddd | 1,940 | py | Python | packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2010 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 23.373494 | 80 | 0.491753 |
e6d6837b46baf712793275d6754e0dab0bf209be | 602 | py | Python | baseline/ns-vqa/reason/options/test_options.py | robinzixuan/Video-Question-Answering-HRI | ae68ffee1e6fc1eb13229e457e3b8e3bc3a11579 | [
"MIT"
] | 52 | 2019-12-04T22:26:56.000Z | 2022-03-31T17:04:15.000Z | reason/options/test_options.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 6 | 2020-08-25T07:35:14.000Z | 2021-09-09T04:57:09.000Z | reason/options/test_options.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 5 | 2020-02-10T07:39:24.000Z | 2021-06-23T02:53:42.000Z | from .base_options import BaseOptions
| 43 | 107 | 0.699336 |
e6d751bc3f23bc91c2716777ca9ac12139d4b799 | 6,325 | py | Python | Model_setup/NEISO_data_file/downsampling_generators_v1.py | keremakdemir/ISONE_UCED | 11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9 | [
"MIT"
] | null | null | null | Model_setup/NEISO_data_file/downsampling_generators_v1.py | keremakdemir/ISONE_UCED | 11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9 | [
"MIT"
] | null | null | null | Model_setup/NEISO_data_file/downsampling_generators_v1.py | keremakdemir/ISONE_UCED | 11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 24 18:45:34 2020
@author: kakdemi
"""
import pandas as pd
#importing generators
all_generators = pd.read_excel('generators2.xlsx', sheet_name='NEISO generators (dispatch)')
#getting all oil generators
all_oil = all_generators[all_generators['typ']=='oil'].copy()
#gett... | 47.201493 | 100 | 0.68253 |
e6d7ef175de941485b4682919229774de09d58bb | 307 | py | Python | GUI1.py | otmanabdoun/IHM-Python | 624e961c2f6966b98bf2c1bc4dd276b812954ba1 | [
"Apache-2.0"
] | 3 | 2021-12-08T10:34:55.000Z | 2022-01-17T21:02:40.000Z | GUI1.py | otmanabdoun/IHM-Python | 624e961c2f6966b98bf2c1bc4dd276b812954ba1 | [
"Apache-2.0"
] | null | null | null | GUI1.py | otmanabdoun/IHM-Python | 624e961c2f6966b98bf2c1bc4dd276b812954ba1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 16 19:47:41 2021
@author: User
"""
import tkinter as tk
racine = tk . Tk ()
label = tk . Label ( racine , text ="J ' adore Python !")
bouton = tk . Button ( racine , text =" Quitter ", command = racine . destroy )
label . pack ()
bouton . pack () | 23.615385 | 80 | 0.579805 |
e6d83253f8c1c21cef502fbe86bb43dc1f2be4ac | 2,579 | py | Python | app/routes/v1/endpoints/clickup.py | ertyurk/bugme | 5a3ef3e089e0089055074c1c896c3fdc76600e93 | [
"MIT"
] | null | null | null | app/routes/v1/endpoints/clickup.py | ertyurk/bugme | 5a3ef3e089e0089055074c1c896c3fdc76600e93 | [
"MIT"
] | null | null | null | app/routes/v1/endpoints/clickup.py | ertyurk/bugme | 5a3ef3e089e0089055074c1c896c3fdc76600e93 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, status, Body, HTTPException
from fastapi.encoders import jsonable_encoder
from starlette.responses import JSONResponse
from app.models.common import *
from app.models.clickup import *
from app.database.crud.clickup import *
router = APIRouter()
| 31.839506 | 88 | 0.6867 |
e6d9219a9f3da8435460a41632a908023dbaa338 | 2,668 | py | Python | cellfinder_core/main.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 5 | 2021-01-22T11:40:01.000Z | 2021-09-10T07:16:05.000Z | cellfinder_core/main.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 38 | 2021-01-22T11:50:29.000Z | 2022-03-11T11:04:06.000Z | cellfinder_core/main.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 12 | 2021-06-18T09:57:24.000Z | 2022-03-06T13:03:18.000Z | """
N.B imports are within functions to prevent tensorflow being imported before
it's warnings are silenced
"""
import os
import logging
from imlib.general.logging import suppress_specific_logs
tf_suppress_log_messages = [
"multiprocessing can interact badly with TensorFlow"
]
def suppress_tf_logging(tf_suppre... | 25.653846 | 78 | 0.664168 |
e6d9b9257b4bb7dd1463fcb578829bc893311e39 | 1,378 | py | Python | server.py | rezist-ro/rezistenta.tv | 0c0dfa4842061baf2b575688588c5d77cfdba427 | [
"MIT"
] | null | null | null | server.py | rezist-ro/rezistenta.tv | 0c0dfa4842061baf2b575688588c5d77cfdba427 | [
"MIT"
] | null | null | null | server.py | rezist-ro/rezistenta.tv | 0c0dfa4842061baf2b575688588c5d77cfdba427 | [
"MIT"
] | null | null | null | # coding=utf-8
import dateutil.parser
import flask
import json
import os
import time
import urllib
import yaml
EPISODES = yaml.load(open("episodes.yaml").read())
app = flask.Flask(__name__,
static_path="/assets",
static_folder="assets")
app.jinja_env.filters["strftime"] = \
... | 25.054545 | 68 | 0.592163 |
e6dbab8094c7c2aea35411b5ea545eabb3be8db0 | 273 | py | Python | problem020.py | mazayus/ProjectEuler | 64aebd5d80031fab2f0ef3c44c3a1118212ab613 | [
"MIT"
] | null | null | null | problem020.py | mazayus/ProjectEuler | 64aebd5d80031fab2f0ef3c44c3a1118212ab613 | [
"MIT"
] | null | null | null | problem020.py | mazayus/ProjectEuler | 64aebd5d80031fab2f0ef3c44c3a1118212ab613 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from functools import *
import operator
print(sum(digits(factorial(100))))
| 19.5 | 52 | 0.70696 |
e6dce6f716b933d2a36c1e77462d5b0eb2326793 | 5,449 | py | Python | transformer.py | ghafran/KerasPersonLab | fcd80b62247aee8bd1d41ff91e31c822950f561e | [
"MIT"
] | null | null | null | transformer.py | ghafran/KerasPersonLab | fcd80b62247aee8bd1d41ff91e31c822950f561e | [
"MIT"
] | null | null | null | transformer.py | ghafran/KerasPersonLab | fcd80b62247aee8bd1d41ff91e31c822950f561e | [
"MIT"
] | null | null | null | import numpy as np
from math import cos, sin, pi
import cv2
import random
from config import config, TransformationParams
from data_prep import map_coco_to_personlab
class Transformer:
| 41.915385 | 142 | 0.599193 |
e6ddfeb2d231878165ecef38a814ab51e23d6978 | 412 | py | Python | enan/__init__.py | mizuno-group/enan | 3c9dbe60bebf98e384e858db56980928b5897775 | [
"MIT"
] | null | null | null | enan/__init__.py | mizuno-group/enan | 3c9dbe60bebf98e384e858db56980928b5897775 | [
"MIT"
] | null | null | null | enan/__init__.py | mizuno-group/enan | 3c9dbe60bebf98e384e858db56980928b5897775 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 25 15:46:32 2019
@author: tadahaya
"""
from .binom import BT
from .connect import Connect
from .fet import FET
from .gsea import GSEA
from .ssgsea import ssGSEA
__copyright__ = 'Copyright (C) 2020 MIZUNO Tadahaya'
__version__ = '1.0.3'
__license__... | 22.888889 | 56 | 0.662621 |
e6de80977f40faa2f17ffea735e4529c245402b4 | 320 | py | Python | app/helpers/__init__.py | Hacker-1202/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 14 | 2021-11-05T11:27:25.000Z | 2022-02-28T02:04:32.000Z | app/helpers/__init__.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 2 | 2022-01-24T22:00:44.000Z | 2022-01-31T13:13:27.000Z | app/helpers/__init__.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 5 | 2022-01-02T13:33:17.000Z | 2022-02-26T13:09:50.000Z |
"""
Selfium Helper Files
~~~~~~~~~~~~~~~~~~~
All Helper Files used in Selfium project;
:copyright: (c) 2021 - Caillou and ZeusHay;
:license: MIT, see LICENSE for more details.
"""
from .getUser import *
from .getGuild import *
from .params import *
from .notify import *
from .sendEmbed import *
from .isStaff import * | 21.333333 | 44 | 0.6875 |
e6dee5544a49eb20feb56cbcfdbdf81cda6aae63 | 10,859 | py | Python | NLP/UNIMO/src/finetune/visual_entailment.py | zhangyimi/Research | 866f91d9774a38d205d6e9a3b1ee6293748261b3 | [
"Apache-2.0"
] | 1,319 | 2020-02-14T10:42:07.000Z | 2022-03-31T15:42:18.000Z | NLP/UNIMO/src/finetune/visual_entailment.py | green9989/Research | 94519a72e7936c77f62a31709634b72c09aabf74 | [
"Apache-2.0"
] | 192 | 2020-02-14T02:53:34.000Z | 2022-03-31T02:25:48.000Z | NLP/UNIMO/src/finetune/visual_entailment.py | green9989/Research | 94519a72e7936c77f62a31709634b72c09aabf74 | [
"Apache-2.0"
] | 720 | 2020-02-14T02:12:38.000Z | 2022-03-31T12:21:15.000Z | # Copyright (c) 2021 PaddlePaddle 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 app... | 38.644128 | 115 | 0.634773 |
e6df360b607f7a2f24c1ab6bf355ca5d23eb73f0 | 856 | py | Python | src/records.py | oth-datapipeline/ingestion-scripts | 48eecf63b0bf06200aa59be63de6839599ec51df | [
"Apache-2.0"
] | null | null | null | src/records.py | oth-datapipeline/ingestion-scripts | 48eecf63b0bf06200aa59be63de6839599ec51df | [
"Apache-2.0"
] | 4 | 2022-03-31T16:41:33.000Z | 2022-03-31T22:58:11.000Z | src/records.py | oth-datapipeline/ingestion-scripts | 48eecf63b0bf06200aa59be63de6839599ec51df | [
"Apache-2.0"
] | null | null | null | from faust import Record
| 18.608696 | 46 | 0.627336 |
e6df6e5deaed8c701c0957596bd842d1b7c2b65f | 923 | py | Python | leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 25 | 2018-05-22T15:18:50.000Z | 2022-01-08T02:41:46.000Z | leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 1 | 2019-05-24T16:55:27.000Z | 2019-05-24T16:55:27.000Z | leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 18 | 2018-09-20T15:39:26.000Z | 2022-03-02T21:38:22.000Z | #!/usr/bin/python3
#------------------------------------------------------------------------------
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#-------------------------------------------------------... | 26.371429 | 79 | 0.40195 |
e6dfce648d291a8622a4863d4137f07d19b0910a | 320 | py | Python | setup.py | shirayu/fitbit-dumper | 21cee614e294d84204ad06d81dae9adf9853a135 | [
"Apache-2.0"
] | null | null | null | setup.py | shirayu/fitbit-dumper | 21cee614e294d84204ad06d81dae9adf9853a135 | [
"Apache-2.0"
] | null | null | null | setup.py | shirayu/fitbit-dumper | 21cee614e294d84204ad06d81dae9adf9853a135 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name="",
version="0.01",
packages=find_packages(),
install_requires=[
"fitbit"
],
dependency_links=[
],
extras_require={
"tests": [
"flake8",
"autopep8",
]
}
)
| 15.238095 | 43 | 0.515625 |
e6dfe1b17aaabced195ba909adb862f6d72a3bd2 | 214 | py | Python | src/main.py | mtnmunuklu/SigmaToExcel | 7d11fda19c0075122928ff5f1dbaab7775d30fe9 | [
"MIT"
] | 10 | 2021-05-26T11:24:27.000Z | 2022-01-14T16:42:25.000Z | src/main.py | mtnmunuklu/SigmaToExcel | 7d11fda19c0075122928ff5f1dbaab7775d30fe9 | [
"MIT"
] | null | null | null | src/main.py | mtnmunuklu/SigmaToExcel | 7d11fda19c0075122928ff5f1dbaab7775d30fe9 | [
"MIT"
] | null | null | null | import sys
sys.path.append("../")
from src.app.sigma import SigmaConverter
if __name__ == "__main__":
sigmaconverter = SigmaConverter()
sigmaconverter.read_from_file()
sigmaconverter.write_to_excel()
| 21.4 | 40 | 0.742991 |
e6e002827d5c227b7c36fcd9b7c86eda019324e4 | 449 | py | Python | server/processes/migrations/0132_auto_20201108_0540.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | server/processes/migrations/0132_auto_20201108_0540.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | 6 | 2021-11-01T01:35:40.000Z | 2022-02-11T03:33:06.000Z | server/processes/migrations/0132_auto_20201108_0540.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | # Generated by Django 2.2.14 on 2020-11-08 05:40
from django.db import migrations
| 24.944444 | 134 | 0.623608 |
e6e0a15a9ec84da1c3d497af8bd4ec8d117edbbd | 4,291 | py | Python | sparsely_lstmvae_main.py | pengkangzaia/usad | 937a29c24632cfa31e0c626cd5b058b3af74ef94 | [
"BSD-3-Clause"
] | null | null | null | sparsely_lstmvae_main.py | pengkangzaia/usad | 937a29c24632cfa31e0c626cd5b058b3af74ef94 | [
"BSD-3-Clause"
] | null | null | null | sparsely_lstmvae_main.py | pengkangzaia/usad | 937a29c24632cfa31e0c626cd5b058b3af74ef94 | [
"BSD-3-Clause"
] | null | null | null | from model.sparsely_lstm_vae import *
import torch.utils.data as data_utils
from sklearn import preprocessing
from utils.eval_methods import *
device = get_default_device()
# Read data
# normal = pd.read_csv("data/SWaT_Dataset_Normal_v1.csv") # , nrows=1000)
normal = pd.read_csv("data/SWaT/SWaT_Dataset_Normal_v1.csv... | 41.660194 | 152 | 0.723141 |
e6e20c3e769f1a5e89011c872f7f4c1dc10d94e8 | 542 | py | Python | src/demo/tasks.py | MexsonFernandes/AsynchronousTasks-Django-Celery-RabbitMQ-Redis | b64b31cec4ccf8e0dca2cfe9faba40da647b94f7 | [
"Apache-2.0"
] | 1 | 2019-01-17T09:16:06.000Z | 2019-01-17T09:16:06.000Z | src/demo/tasks.py | MexsonFernandes/Asynchronous_Tasks-Django-Celery-RabbitMQ-Redis | b64b31cec4ccf8e0dca2cfe9faba40da647b94f7 | [
"Apache-2.0"
] | 7 | 2019-10-20T18:47:34.000Z | 2022-02-10T07:42:18.000Z | src/demo/tasks.py | MexsonFernandes/AsynchronousTasks-Django-Celery-RabbitMQ-Redis | b64b31cec4ccf8e0dca2cfe9faba40da647b94f7 | [
"Apache-2.0"
] | 2 | 2019-10-20T18:47:59.000Z | 2022-03-02T12:31:54.000Z | from __future__ import absolute_import, unicode_literals
from dcs.celeryconf import app
import time
from django.core.mail import EmailMessage
| 25.809524 | 91 | 0.680812 |
e6e370a3613328a0a9c46c0e262a69e05fcae601 | 355 | py | Python | pytorch_translate/models/__init__.py | Ayansam1152/translate | 33d397fc25fb1072abd2975c77c602a2d031c6c4 | [
"BSD-3-Clause"
] | 748 | 2018-05-02T17:12:53.000Z | 2022-03-26T04:44:44.000Z | pytorch_translate/models/__init__.py | Ayansam1152/translate | 33d397fc25fb1072abd2975c77c602a2d031c6c4 | [
"BSD-3-Clause"
] | 352 | 2018-05-02T19:05:59.000Z | 2022-02-25T16:54:27.000Z | pytorch_translate/models/__init__.py | Ayansam1152/translate | 33d397fc25fb1072abd2975c77c602a2d031c6c4 | [
"BSD-3-Clause"
] | 193 | 2018-05-02T17:14:56.000Z | 2022-02-24T21:10:56.000Z | #!/usr/bin/env python3
import importlib
import os
# automatically import any Python files in the models/ directory
for file in sorted(os.listdir(os.path.dirname(__file__))):
if file.endswith(".py") and not file.startswith("_"):
model_name = file[: file.find(".py")]
importlib.import_module("pytorc... | 29.583333 | 73 | 0.712676 |
e6e3cdee410d18c73bf42cae95012d7ea773e4ae | 808 | py | Python | app/config/secure.py | mapeimapei/awesome-flask-webapp | d0474f447a41e9432a14f9110989166c6595f0fa | [
"MIT"
] | 2 | 2020-05-08T15:58:44.000Z | 2020-05-09T19:36:34.000Z | app/config/secure.py | mapeimapei/awesome-flask-webapp | d0474f447a41e9432a14f9110989166c6595f0fa | [
"MIT"
] | null | null | null | app/config/secure.py | mapeimapei/awesome-flask-webapp | d0474f447a41e9432a14f9110989166c6595f0fa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = ''
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:mapei123@127.0.0.1:3306/awesome'
SECRET_KEY = '\x88D\xf09\x91\x07\x98\x89\x87\x96\xa0A\xc68\xf9\xecJ:U\x17\xc5V\xbe\x8b\xef\xd7\xd8\xd3\xe6\x98*4'
# Email
MAIL_SERVER = 'smtp.exmail.qq.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAI... | 22.444444 | 113 | 0.762376 |
e6e519c34806df836f150fb2649703603da92026 | 1,580 | py | Python | src/users/migrations/0014_auto_20200801_1008.py | aliharby12/Simple-vezeeta-project | feb6df8b354ac284edc645059bea17021169dcfa | [
"MIT"
] | null | null | null | src/users/migrations/0014_auto_20200801_1008.py | aliharby12/Simple-vezeeta-project | feb6df8b354ac284edc645059bea17021169dcfa | [
"MIT"
] | 5 | 2021-03-19T12:06:16.000Z | 2022-02-10T11:44:27.000Z | src/users/migrations/0014_auto_20200801_1008.py | aliharby12/Simple-vezeeta-project | feb6df8b354ac284edc645059bea17021169dcfa | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-08-01 08:08
from django.db import migrations, models
import django.db.models.deletion
| 49.375 | 444 | 0.599367 |
e6e54d8b26245cebf1276442b433cc49edf1fc78 | 762 | py | Python | caller_v3/app/api/v1/docker.py | tienthegainz/pipeline_executor_docker_call | b2b9478056e4b818f5963b0b266375fe6d39627a | [
"MIT"
] | null | null | null | caller_v3/app/api/v1/docker.py | tienthegainz/pipeline_executor_docker_call | b2b9478056e4b818f5963b0b266375fe6d39627a | [
"MIT"
] | null | null | null | caller_v3/app/api/v1/docker.py | tienthegainz/pipeline_executor_docker_call | b2b9478056e4b818f5963b0b266375fe6d39627a | [
"MIT"
] | null | null | null | from typing import Any, List, Callable
from fastapi import APIRouter, HTTPException, status, BackgroundTasks
from app import schemas
from app.core import docker_client
import json
from copy import deepcopy
router = APIRouter()
| 28.222222 | 99 | 0.732283 |
e6e829827c4e2ffcbb07be400f025860fb9ae813 | 10,409 | py | Python | keras/models.py | kalyc/keras-apache-mxnet | 5497ebd50a45ccc446b8944ebbe11fb7721a5533 | [
"MIT"
] | 300 | 2018-04-04T05:01:21.000Z | 2022-02-25T18:56:04.000Z | keras/models.py | kalyc/keras-apache-mxnet | 5497ebd50a45ccc446b8944ebbe11fb7721a5533 | [
"MIT"
] | 163 | 2018-04-03T17:41:22.000Z | 2021-09-03T16:44:04.000Z | keras/models.py | kalyc/keras-apache-mxnet | 5497ebd50a45ccc446b8944ebbe11fb7721a5533 | [
"MIT"
] | 72 | 2018-04-21T06:42:30.000Z | 2021-12-26T06:02:42.000Z | """Model-related utilities.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from . import backend as K
from .utils.generic_utils import has_arg
from .utils.generic_utils import to_list
from .engine.input_layer import Input
from .engine.input_layer import... | 41.142292 | 77 | 0.593525 |
e6e833fb51a1ec7a1130669c82455b2f1f57a22e | 53,602 | py | Python | pythonFiles/tests/testing_tools/adapter/test_functional.py | erinxocon/vscode-python | e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1 | [
"MIT"
] | null | null | null | pythonFiles/tests/testing_tools/adapter/test_functional.py | erinxocon/vscode-python | e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1 | [
"MIT"
] | null | null | null | pythonFiles/tests/testing_tools/adapter/test_functional.py | erinxocon/vscode-python | e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from __future__ import unicode_literals
import json
import os
import os.path
import subprocess
import sys
import unittest
import pytest
from ...__main__ import TESTING_TOOLS_ROOT
CWD = os.getcwd()
DATA_DIR = os.path.join... | 43.828291 | 96 | 0.491605 |
e6e86dd990b3c5cac611e5ac9c031855b2eafefb | 2,223 | py | Python | mmgp/kernels/wavelet_slice.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | mmgp/kernels/wavelet_slice.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | mmgp/kernels/wavelet_slice.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | '''
Wavelet kernel
slice allows kernel operation on feature subset
active_dims is iterable of feature dimensions to extract
input_dim must equal dimension defined by active_dims
'''
import numpy as np
import tensorflow as tf
from .. import util
from . import kernel
from .kernel_extras import *
| 34.734375 | 113 | 0.597391 |
e6e91782ecbf3d082de6c4e80c1d94b9a36175e3 | 8,084 | py | Python | transform.py | latenite4/python3 | 30e367471ba48e5fc0fb07327b636fcb9959e3e0 | [
"Apache-2.0"
] | null | null | null | transform.py | latenite4/python3 | 30e367471ba48e5fc0fb07327b636fcb9959e3e0 | [
"Apache-2.0"
] | null | null | null | transform.py | latenite4/python3 | 30e367471ba48e5fc0fb07327b636fcb9959e3e0 | [
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
#program to parse png images and change images
# cmd: python3 transform.py
# you must have local input/ and output/ directories
#
# name: R. Melton
# date: 12/27/20
# cmdline: python transform.py cmd show image='city.png' --ulx=1 --uly=2 --brx=0 --bry=9
# python transform.py show city.png
#... | 35.30131 | 162 | 0.671326 |
e6e98c6da8123831026901d34d51a2a66f9be3c8 | 4,563 | py | Python | plugins/wyr.py | Jeglet/pcbot | 89178d4982151adb2fadfacdc3080e46cda9e891 | [
"MIT"
] | null | null | null | plugins/wyr.py | Jeglet/pcbot | 89178d4982151adb2fadfacdc3080e46cda9e891 | [
"MIT"
] | null | null | null | plugins/wyr.py | Jeglet/pcbot | 89178d4982151adb2fadfacdc3080e46cda9e891 | [
"MIT"
] | null | null | null | """ Would you rather? This plugin includes would you rather functionality
"""
import asyncio
import random
import re
import discord
import bot
import plugins
from pcbot import Config
client = plugins.client # type: bot.Client
db = Config("would-you-rather", data=dict(timeout=10, responses=["**{name}** would **{cho... | 34.308271 | 114 | 0.601359 |
e6e9911a23d6bd5acc93e8e6fe7c90d813721358 | 5,690 | py | Python | suit_tool/argparser.py | bergzand/suit-manifest-generator | da82651a8b02fd4d7261e826cc70b5c862dd94ea | [
"Apache-2.0"
] | 16 | 2018-03-16T23:56:47.000Z | 2022-01-23T14:14:09.000Z | suit_tool/argparser.py | bergzand/suit-manifest-generator | da82651a8b02fd4d7261e826cc70b5c862dd94ea | [
"Apache-2.0"
] | 23 | 2018-06-05T14:30:23.000Z | 2021-02-15T20:53:09.000Z | suit_tool/argparser.py | bergzand/suit-manifest-generator | da82651a8b02fd4d7261e826cc70b5c862dd94ea | [
"Apache-2.0"
] | 10 | 2018-03-16T23:56:52.000Z | 2020-07-21T16:36:46.000Z | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Copyright 2019-2020 ARM Limited or its affiliates
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the... | 55.784314 | 142 | 0.649561 |
e6e9b0500db4a76f7cfddf89a8acd023b1673bdb | 437 | py | Python | python/process/process_pool.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/process/process_pool.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/process/process_pool.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | import random
import time
from multiprocessing import Pool
if __name__ == '__main__':
process_names = [f'computer_{i}' for i in range(15)]
pool = Pool(processes=5)
pool.map(worker, process_names)
# pool.terminate()
| 24.277778 | 61 | 0.686499 |
e6e9e879bcf76ce5cfbee781823873ae94cc9222 | 45,541 | py | Python | Project/Support-NotSourced/generic_pydicom_ns.py | mazalgarab-git/OSICpypy | 003fb0b146c9ed711f05475e6cc7563bf549f230 | [
"CC0-1.0"
] | 1 | 2020-12-18T14:39:24.000Z | 2020-12-18T14:39:24.000Z | Project/Support-NotSourced/generic_pydicom_ns.py | mazalgarab-git/OSICpypy | 003fb0b146c9ed711f05475e6cc7563bf549f230 | [
"CC0-1.0"
] | null | null | null | Project/Support-NotSourced/generic_pydicom_ns.py | mazalgarab-git/OSICpypy | 003fb0b146c9ed711f05475e6cc7563bf549f230 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 7 11:48:59 2020
@author: mazal
"""
"""
=========================================
Support functions of pydicom (Not sourced)
=========================================
Purpose: Create support functions for the pydicom project
"""
"""
Test mode 1 | Basics... | 41.973272 | 186 | 0.603215 |
e6e9ffb5e0649025342ebb242012d9b21913b192 | 8,378 | py | Python | paperscraper/scrapers/keywords.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:22.000Z | 2021-11-19T02:56:22.000Z | paperscraper/scrapers/keywords.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T03:42:58.000Z | 2022-03-29T16:32:16.000Z | paperscraper/scrapers/keywords.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:28.000Z | 2021-11-19T02:56:28.000Z | import re
regex = re.compile(r'[\n\r\t]')
| 38.608295 | 247 | 0.62509 |
e6ea376dac46236ea3d4ce92ad3215d1dbffb660 | 6,642 | py | Python | topobank/publication/models.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | 3 | 2021-12-03T19:11:07.000Z | 2021-12-27T17:14:39.000Z | topobank/publication/models.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | 268 | 2021-03-19T13:57:00.000Z | 2022-03-31T20:58:26.000Z | topobank/publication/models.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.safestring import mark_safe
from django.conf import settings
MAX_LEN_AUTHORS_FIELD = 512
CITATION_FORMAT_FLAVORS = ['html', 'ris', 'bibtex', 'biblatex']
DEFAULT_KEYWORDS = ['surface', 'topography']
| 36.696133 | 107 | 0.579645 |
e6ea40233a3bb49f837e23e4f39a0fd85da9fe09 | 489 | py | Python | vendor/migrations/0003_store_password.py | rayhu-osu/vcube | ff1af048adb8a9f1007368150a78b309b4d821af | [
"MIT"
] | 1 | 2019-02-20T18:47:04.000Z | 2019-02-20T18:47:04.000Z | vendor/migrations/0003_store_password.py | rayhu-osu/vcube | ff1af048adb8a9f1007368150a78b309b4d821af | [
"MIT"
] | null | null | null | vendor/migrations/0003_store_password.py | rayhu-osu/vcube | ff1af048adb8a9f1007368150a78b309b4d821af | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-07-24 19:36
from __future__ import unicode_literals
from django.db import migrations, models
| 22.227273 | 61 | 0.609407 |
e6eadd6e5aefadc0d052f84f6f0acadbd4bc7e84 | 440 | py | Python | lec2.py | widnerlr/isat252 | 4196a8b1c6f4c75c3f5d8f64164014103b695077 | [
"MIT"
] | null | null | null | lec2.py | widnerlr/isat252 | 4196a8b1c6f4c75c3f5d8f64164014103b695077 | [
"MIT"
] | null | null | null | lec2.py | widnerlr/isat252 | 4196a8b1c6f4c75c3f5d8f64164014103b695077 | [
"MIT"
] | null | null | null | """
Your module description
"""
"""
this is my second py code
for my second lecture
"""
#print ('hello world') # this is a single line commment
# this is my second line comment
#print(type("123."))
#print ("Hello World".upper())
#print("Hello World".lower())
#print("hello" + "world" + ".")
#print(2**3)
#my_st... | 12.941176 | 56 | 0.638636 |
e6eb31b711fe08af2de8afcc37c668f59c3bdd16 | 1,579 | py | Python | day_22_b.py | Gyaha/AOC2020 | fbabae9acd7d274b84bc0c64f2665dfba9f008ca | [
"MIT"
] | null | null | null | day_22_b.py | Gyaha/AOC2020 | fbabae9acd7d274b84bc0c64f2665dfba9f008ca | [
"MIT"
] | null | null | null | day_22_b.py | Gyaha/AOC2020 | fbabae9acd7d274b84bc0c64f2665dfba9f008ca | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
run_tests()
import time
time_start = time.perf_counter()
print(run())
time_end = time.perf_counter() - time_start
print(f"Time: {time_end:0.4f} sec")
| 17.544444 | 62 | 0.542115 |
e6ecb90ea1c9f175831984d63548bf549ba7937d | 335 | py | Python | Auth/Constants/LoginOpCode.py | sundayz/idewave-core | 5bdb88892173c9c3e8c85f431cf9b5dbd9f23941 | [
"Apache-2.0"
] | null | null | null | Auth/Constants/LoginOpCode.py | sundayz/idewave-core | 5bdb88892173c9c3e8c85f431cf9b5dbd9f23941 | [
"Apache-2.0"
] | null | null | null | Auth/Constants/LoginOpCode.py | sundayz/idewave-core | 5bdb88892173c9c3e8c85f431cf9b5dbd9f23941 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
| 18.611111 | 49 | 0.641791 |
e6ee19c46029883010bf024e3e8dd551854a83e8 | 80 | py | Python | LINETOKEN/__init__.py | pratannaimjoi/tokenIpad | f03969c05427bc1804d05c42823a28725c7e38a0 | [
"Apache-2.0"
] | null | null | null | LINETOKEN/__init__.py | pratannaimjoi/tokenIpad | f03969c05427bc1804d05c42823a28725c7e38a0 | [
"Apache-2.0"
] | null | null | null | LINETOKEN/__init__.py | pratannaimjoi/tokenIpad | f03969c05427bc1804d05c42823a28725c7e38a0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from .LineApi import LINE
from .lib.Gen.ttypes import *
| 20 | 29 | 0.6625 |
e6ee404e9353e9098c1662d7447e96af2b5999cf | 164 | py | Python | main.py | seton-develops/PDF-Camelot-Folder-Executable | 168b5c24afe8884cf121a4207d7d3cb3ee7cc626 | [
"MIT"
] | null | null | null | main.py | seton-develops/PDF-Camelot-Folder-Executable | 168b5c24afe8884cf121a4207d7d3cb3ee7cc626 | [
"MIT"
] | null | null | null | main.py | seton-develops/PDF-Camelot-Folder-Executable | 168b5c24afe8884cf121a4207d7d3cb3ee7cc626 | [
"MIT"
] | null | null | null | '''
Created on Jun 17, 2021
@author: Sean
'''
import PDF2CSV_GUI
if __name__ == "__main__":
main() | 12.615385 | 34 | 0.591463 |
e6ee7c4e821041f353c4df40b51b9e9fed815d11 | 325 | py | Python | Part1/bot_read.py | Mildlyoffbeat/RedditBot-1 | f65c3c4d0f3d6d3a468069d4a009b44a20e33797 | [
"MIT"
] | null | null | null | Part1/bot_read.py | Mildlyoffbeat/RedditBot-1 | f65c3c4d0f3d6d3a468069d4a009b44a20e33797 | [
"MIT"
] | null | null | null | Part1/bot_read.py | Mildlyoffbeat/RedditBot-1 | f65c3c4d0f3d6d3a468069d4a009b44a20e33797 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import praw
reddit = praw.Reddit('mob-secondbot')
subreddit = reddit.subreddit("learnpython")
for submission in subreddit.hot(limit=5):
print("Title: ", submission.title)
print("Text: ", submission.selftext)
print("Score: ", submission.score)
print("---------------------------------... | 25 | 48 | 0.618462 |
e6ee864c778e3c7bd05d01ccaa072084d9d7a6f7 | 1,052 | py | Python | 17/kazuate_liar.cpp.py | Siketyan/Programming-I | 0749c1ae045d53cd8a67f0de7ab13c26030ddd74 | [
"Apache-2.0"
] | null | null | null | 17/kazuate_liar.cpp.py | Siketyan/Programming-I | 0749c1ae045d53cd8a67f0de7ab13c26030ddd74 | [
"Apache-2.0"
] | null | null | null | 17/kazuate_liar.cpp.py | Siketyan/Programming-I | 0749c1ae045d53cd8a67f0de7ab13c26030ddd74 | [
"Apache-2.0"
] | null | null | null | from subprocess import Popen, PIPE, call
name = "kazuate_liar.o"
src = """
#include <iostream>
#include <random>
using namespace std;
int main()
{
random_device rd;
mt19937 mt(rd());
uniform_int_distribution<int> randfive(0, 4);
uniform_int_distribution<int> randint(1, 100);
int count = 0;
... | 17.533333 | 66 | 0.439163 |
e6eeea99216e21aebde0241d03385a480d8c6df4 | 649 | py | Python | src/terrafort/main.py | silvercar/terrafort | bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c | [
"MIT"
] | 1 | 2019-06-18T00:40:40.000Z | 2019-06-18T00:40:40.000Z | src/terrafort/main.py | silvercar/terrafort | bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c | [
"MIT"
] | null | null | null | src/terrafort/main.py | silvercar/terrafort | bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c | [
"MIT"
] | 1 | 2021-08-25T02:15:28.000Z | 2021-08-25T02:15:28.000Z | """
Terrafort
Generate terraform templates for specific resources
"""
import click
from .providers.aws import Aws
cli.add_command(Aws.aws_db_instance)
cli.add_command(Aws.aws_iam_instance_profile)
cli.add_command(Aws.aws_instance)
cli.add_command(Aws.aws_security_group)
if __name__ == "__main__":
# pylint: di... | 22.37931 | 76 | 0.731895 |
e6efe17c4e6e08ec55040433cf5ea1ff20fecb68 | 528 | py | Python | src/ping.py | jnsougata/rich-embed | 95901e590f00c4e4eabeb99c8f06bb5f90718d80 | [
"MIT"
] | null | null | null | src/ping.py | jnsougata/rich-embed | 95901e590f00c4e4eabeb99c8f06bb5f90718d80 | [
"MIT"
] | null | null | null | src/ping.py | jnsougata/rich-embed | 95901e590f00c4e4eabeb99c8f06bb5f90718d80 | [
"MIT"
] | null | null | null | import discord
import app_util
| 24 | 94 | 0.662879 |
e6f05425230fc70414cb78c1b2738e7f0e282ac0 | 2,017 | py | Python | 2020/24/visualization.py | AlbertVeli/AdventOfCode | 3d3473695318a0686fac720a1a21dd3629f09e33 | [
"Unlicense"
] | null | null | null | 2020/24/visualization.py | AlbertVeli/AdventOfCode | 3d3473695318a0686fac720a1a21dd3629f09e33 | [
"Unlicense"
] | null | null | null | 2020/24/visualization.py | AlbertVeli/AdventOfCode | 3d3473695318a0686fac720a1a21dd3629f09e33 | [
"Unlicense"
] | 1 | 2021-12-04T10:37:09.000Z | 2021-12-04T10:37:09.000Z | #!/usr/bin/env python3
import sys
import re
import numpy as np
from PIL import Image
moves = { 'e': (2, 0), 'se': (1, 2), 'sw': (-1, 2), 'w': (-2, 0), 'nw': (-1, -2), 'ne': (1, -2) }
# Save (x, y): True/False in tiles. True = black, False = white.
tiles = {}
for line in open(sys.argv[1]).read().splitlines():
po... | 24.901235 | 97 | 0.511155 |
e6f0fc4f8d5c7522b3b6e45957a0edd9bcec2662 | 16,451 | py | Python | experimental/tracing/bin/diff_heap_profiler.py | BearerPipelineTest/catapult | 3800a67cd916200046a50748893bbd0dcf3d7f4a | [
"BSD-3-Clause"
] | 1,894 | 2015-04-17T18:29:53.000Z | 2022-03-28T22:41:06.000Z | experimental/tracing/bin/diff_heap_profiler.py | BearerPipelineTest/catapult | 3800a67cd916200046a50748893bbd0dcf3d7f4a | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | experimental/tracing/bin/diff_heap_profiler.py | atuchin-m/catapult | 108ea3e2ec108e68216b1250a3d79cc642600294 | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import absolute_import
from __future__ import print_function
import argparse
import gzip
import json
import os
import s... | 32.005837 | 152 | 0.636253 |
e6f21f20dc1c7283a540aac397169a7429e851b1 | 3,743 | py | Python | mne_bids/commands/mne_bids_raw_to_bids.py | kingjr/mne-bids | 3a4543076912cebbc89a5f0b9433cda1b9e288b8 | [
"BSD-3-Clause"
] | null | null | null | mne_bids/commands/mne_bids_raw_to_bids.py | kingjr/mne-bids | 3a4543076912cebbc89a5f0b9433cda1b9e288b8 | [
"BSD-3-Clause"
] | null | null | null | mne_bids/commands/mne_bids_raw_to_bids.py | kingjr/mne-bids | 3a4543076912cebbc89a5f0b9433cda1b9e288b8 | [
"BSD-3-Clause"
] | null | null | null | """Write raw files to BIDS format.
example usage: $ mne_bids raw_to_bids --subject_id sub01 --task rest
--raw data.edf --bids_root new_path
"""
# Authors: Teon Brooks <teon.brooks@gmail.com>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
import mne_bids
from mne_bids import wr... | 41.588889 | 77 | 0.594176 |
e6f290178fbe89e1c3a852359d5e4b95ce0dd4ec | 1,460 | py | Python | lab1oop.py | NastiaK/NewRepository | d1907fc2e159dc1831071d7c79e20bbfb47fb822 | [
"MIT"
] | null | null | null | lab1oop.py | NastiaK/NewRepository | d1907fc2e159dc1831071d7c79e20bbfb47fb822 | [
"MIT"
] | null | null | null | lab1oop.py | NastiaK/NewRepository | d1907fc2e159dc1831071d7c79e20bbfb47fb822 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
main()
| 29.795918 | 119 | 0.489041 |
e6f2fef589655b9bf1c7a2c668ca919bfd152a24 | 460 | py | Python | Arrays/cyclic_rotation.py | Jeans212/codility-dev-training | 9c5118c6433ea210d1485a6127712a92496e2bc2 | [
"MIT"
] | null | null | null | Arrays/cyclic_rotation.py | Jeans212/codility-dev-training | 9c5118c6433ea210d1485a6127712a92496e2bc2 | [
"MIT"
] | null | null | null | Arrays/cyclic_rotation.py | Jeans212/codility-dev-training | 9c5118c6433ea210d1485a6127712a92496e2bc2 | [
"MIT"
] | null | null | null | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
'''
Rotate an array A to the right by a given number of steps K.
Covert the array to a deque
Apply the rotate() method the rotate the deque in positive K steps
Convert the deque to array
'''
from collec... | 23 | 70 | 0.669565 |
e6f36e3d6234b36ef09fd70fd1be755548b506ba | 37,741 | py | Python | tests/test_apis.py | hatzel/markdown-spoilers | 1964f298f0e8b99f1202d36ccc7d8cf7d613ad26 | [
"BSD-3-Clause"
] | 2 | 2020-06-21T12:02:58.000Z | 2020-09-02T15:21:19.000Z | tests/test_apis.py | hatzel/markdown-spoilers | 1964f298f0e8b99f1202d36ccc7d8cf7d613ad26 | [
"BSD-3-Clause"
] | null | null | null | tests/test_apis.py | hatzel/markdown-spoilers | 1964f298f0e8b99f1202d36ccc7d8cf7d613ad26 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Python Markdown
A Python implementation of John Gruber's Markdown.
Documentation: https://python-markdown.github.io/
GitHub: https://github.com/Python-Markdown/markdown/
PyPI: https://pypi.org/project/Markdown/
Started by Manfred Stienstra (http://www.dwerg.net/).
Maintained for a few yea... | 36.081262 | 116 | 0.601123 |
e6f5ecde56dec14d70d3fec0b36dc822d497cba7 | 2,230 | py | Python | nervous/utility/config.py | csxeba/nervous | f7aeb9b2ff875835c346c607722fab517ef6df61 | [
"MIT"
] | 1 | 2018-09-24T11:29:19.000Z | 2018-09-24T11:29:19.000Z | nervous/utility/config.py | csxeba/nervous | f7aeb9b2ff875835c346c607722fab517ef6df61 | [
"MIT"
] | null | null | null | nervous/utility/config.py | csxeba/nervous | f7aeb9b2ff875835c346c607722fab517ef6df61 | [
"MIT"
] | null | null | null | import os
| 33.283582 | 98 | 0.673991 |
e6f658acae15a3e9ea6e4c377ee45743db7b0897 | 6,365 | py | Python | mindspore/nn/optim/ftrl.py | XinYao1994/mindspore | 2c1a2bf752a1fde311caddba22633d2f4f63cb4e | [
"Apache-2.0"
] | 2 | 2020-04-28T03:49:10.000Z | 2020-04-28T03:49:13.000Z | mindspore/nn/optim/ftrl.py | XinYao1994/mindspore | 2c1a2bf752a1fde311caddba22633d2f4f63cb4e | [
"Apache-2.0"
] | null | null | null | mindspore/nn/optim/ftrl.py | XinYao1994/mindspore | 2c1a2bf752a1fde311caddba22633d2f4f63cb4e | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | 50.11811 | 116 | 0.692066 |
e6f688088bfa1088bfe7257d2cece961dd478353 | 5,106 | py | Python | aws_utils/region_selector.py | skimhub/aws-utils | 5496a7594ab90b1e658e8f9f8137e8943a39be1e | [
"Apache-2.0"
] | null | null | null | aws_utils/region_selector.py | skimhub/aws-utils | 5496a7594ab90b1e658e8f9f8137e8943a39be1e | [
"Apache-2.0"
] | 13 | 2016-01-05T14:48:38.000Z | 2017-08-14T10:17:41.000Z | aws_utils/region_selector.py | skimhub/aws-utils | 5496a7594ab90b1e658e8f9f8137e8943a39be1e | [
"Apache-2.0"
] | null | null | null | import datetime
import boto3
US_EAST_REGION = {'us-east-1'}
US_EAST_AVAILABILITY_ZONES = {'us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1e'} # note d is missing
INSTANCE_VERSION = 'Linux/UNIX (Amazon VPC)'
def fetch_price_stats_per_availability_zone(region, start_time, end_time, instance_type, instance_vers... | 44.4 | 138 | 0.604387 |
e6f6e592f45ce51ed72972736b1981a35d6ad662 | 81 | py | Python | pynn/__init__.py | jkae/knn-exercise | ae569e3f6a0e23669369d99e032270e72f8fbb66 | [
"MIT"
] | null | null | null | pynn/__init__.py | jkae/knn-exercise | ae569e3f6a0e23669369d99e032270e72f8fbb66 | [
"MIT"
] | null | null | null | pynn/__init__.py | jkae/knn-exercise | ae569e3f6a0e23669369d99e032270e72f8fbb66 | [
"MIT"
] | null | null | null |
from .nearest_neighbor_index import NearestNeighborIndex
from .kd_tree import *
| 20.25 | 56 | 0.851852 |
e6f7da2b0c80534457eb53c6aaa04a6eb69ac541 | 2,562 | py | Python | tests/test_try.py | threecifanggen/python-functional-programming | bd17281e5f24db826266f509bc54b25362c0d2a1 | [
"MIT"
] | 3 | 2021-10-05T09:12:36.000Z | 2021-11-30T07:11:58.000Z | tests/test_try.py | threecifanggen/python-functional-programming | bd17281e5f24db826266f509bc54b25362c0d2a1 | [
"MIT"
] | 14 | 2021-10-11T05:31:15.000Z | 2021-12-16T12:52:47.000Z | tests/test_try.py | threecifanggen/python-functional-programming | bd17281e5f24db826266f509bc54b25362c0d2a1 | [
"MIT"
] | null | null | null | '''
Author: huangbaochen<huangbaochenwo@live.com>
Date: 2021-12-11 20:04:19
LastEditTime: 2021-12-11 21:46:16
LastEditors: huangbaochen<huangbaochenwo@live.com>
Description: Try
No MERCY
'''
import pytest
from fppy.try_monad import Try, Success, Fail
from fppy.option import Just, Nothing
def test_try_monad_map():
... | 29.790698 | 66 | 0.673692 |
e6f805f6f11f261c37210a559213d4def9f1debd | 952 | py | Python | app/internal/daily_quotes.py | yammesicka/calendar | 7c15a24883dbdffb563b6d3286c2d458e4a1c9c0 | [
"Apache-2.0"
] | null | null | null | app/internal/daily_quotes.py | yammesicka/calendar | 7c15a24883dbdffb563b6d3286c2d458e4a1c9c0 | [
"Apache-2.0"
] | null | null | null | app/internal/daily_quotes.py | yammesicka/calendar | 7c15a24883dbdffb563b6d3286c2d458e4a1c9c0 | [
"Apache-2.0"
] | null | null | null | from datetime import date
from typing import Dict, Optional
from sqlalchemy.orm import Session
from sqlalchemy.sql.expression import func
from app.database.models import Quote
TOTAL_DAYS = 366
def create_quote_object(quotes_fields: Dict[str, Optional[str]]) -> Quote:
"""This function create a quote object from... | 30.709677 | 74 | 0.711134 |
e6fa166658f7b4a5f652c93e09a1ac34583195f0 | 123 | py | Python | src/789A.py | viing937/codeforces | d694eb6967cd56af02963c3a662066048cb78d07 | [
"MIT"
] | 2 | 2016-08-19T09:47:03.000Z | 2016-10-01T10:15:03.000Z | src/789A.py | viing937/codeforces | d694eb6967cd56af02963c3a662066048cb78d07 | [
"MIT"
] | null | null | null | src/789A.py | viing937/codeforces | d694eb6967cd56af02963c3a662066048cb78d07 | [
"MIT"
] | 1 | 2015-07-01T23:57:32.000Z | 2015-07-01T23:57:32.000Z | n, k = map(int, input().split())
w = list(map(int, input().split()))
r = sum(map(lambda x: (x+k-1)//k, w))
print((r+1)//2)
| 24.6 | 37 | 0.536585 |
e6fab2043b0b6fa907bee5da86873ddbf2cfe3cf | 1,432 | py | Python | platform/server/detect.py | leyyin/godot | 68325d7254db711beaedddad218e2cddb405c42c | [
"CC-BY-3.0",
"MIT"
] | 24 | 2016-10-14T16:54:01.000Z | 2022-01-15T06:39:17.000Z | platform/server/detect.py | leyyin/godot | 68325d7254db711beaedddad218e2cddb405c42c | [
"CC-BY-3.0",
"MIT"
] | 17 | 2016-12-30T14:35:53.000Z | 2017-03-07T21:07:50.000Z | platform/server/detect.py | leyyin/godot | 68325d7254db711beaedddad218e2cddb405c42c | [
"CC-BY-3.0",
"MIT"
] | 9 | 2017-08-04T12:00:16.000Z | 2021-12-10T06:48:28.000Z |
import os
import sys
| 17.679012 | 81 | 0.609637 |
e6fc051294ab288b08cbb146da00f8c04ac171dd | 413 | py | Python | telemetry/Truck.py | SnipsMine/ETS2-Speedrun-Tool | 5ac87e4bc88be67ff4954b2b98772ff14a65eb48 | [
"MIT"
] | null | null | null | telemetry/Truck.py | SnipsMine/ETS2-Speedrun-Tool | 5ac87e4bc88be67ff4954b2b98772ff14a65eb48 | [
"MIT"
] | null | null | null | telemetry/Truck.py | SnipsMine/ETS2-Speedrun-Tool | 5ac87e4bc88be67ff4954b2b98772ff14a65eb48 | [
"MIT"
] | null | null | null | from telemetry.TruckConstants import ConstantValues
from telemetry.TruckCurrent import CurrentValues
from telemetry.TruckPositioning import Positioning
| 21.736842 | 51 | 0.750605 |
e6fc32c8a31669a37234337e3418a714af3c26bd | 1,483 | py | Python | IntroToSpark/Assign4_Q1-6_action.py | petersontylerd/spark-courses | e8dcb4968ea31a50206739e6af3006889f8c3c6c | [
"MIT"
] | null | null | null | IntroToSpark/Assign4_Q1-6_action.py | petersontylerd/spark-courses | e8dcb4968ea31a50206739e6af3006889f8c3c6c | [
"MIT"
] | null | null | null | IntroToSpark/Assign4_Q1-6_action.py | petersontylerd/spark-courses | e8dcb4968ea31a50206739e6af3006889f8c3c6c | [
"MIT"
] | 1 | 2021-03-26T11:47:37.000Z | 2021-03-26T11:47:37.000Z |
import csv
from pyspark.sql import SparkSession
from pyspark.sql.types import IntegerType
spark = SparkSession.builder.appName("Assignment4").getOrCreate()
sc = spark.sparkContext
# load data to dataframe
path = 'fake_data.csv'
df = spark.read.format('csv').option('header','true').load(path)
# cast income as an int... | 26.017544 | 157 | 0.652057 |
e6fc5742d6236482be2f3020d03479a9c33e3222 | 274 | py | Python | src/firebot/tests/factories.py | zipmex/fire | a41bbdbc86085c055ae4706fadea4f142e881a85 | [
"Apache-2.0"
] | 52 | 2017-03-15T16:25:14.000Z | 2022-03-01T16:50:14.000Z | src/firebot/tests/factories.py | zipmex/fire | a41bbdbc86085c055ae4706fadea4f142e881a85 | [
"Apache-2.0"
] | 239 | 2017-03-16T17:10:22.000Z | 2022-03-06T07:24:24.000Z | src/firebot/tests/factories.py | zipmex/fire | a41bbdbc86085c055ae4706fadea4f142e881a85 | [
"Apache-2.0"
] | 8 | 2017-03-15T17:45:18.000Z | 2022-01-26T14:51:03.000Z | import factory
from django.contrib.auth import get_user_model
| 21.076923 | 46 | 0.715328 |
e6fc7870ccb1bbdefca5d31e7c6358dd9b6c9578 | 482 | py | Python | reamber/o2jam/O2JHold.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | reamber/o2jam/O2JHold.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | reamber/o2jam/O2JHold.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from reamber.base.Hold import Hold, HoldTail
from reamber.o2jam.O2JNoteMeta import O2JNoteMeta
| 21.909091 | 54 | 0.73029 |
e6fc89e2fb95df50b778c64242f30654175e9df4 | 566 | py | Python | peacebot/core/plugins/Miscellaneous/__init__.py | Peacebot-Development/Peacebot-v2 | 79ab87b12cd60b708631d96021ac3d3eaeee01c9 | [
"MIT"
] | 3 | 2021-11-13T06:26:06.000Z | 2022-01-23T13:03:30.000Z | peacebot/core/plugins/Miscellaneous/__init__.py | Peacebot-Development/Peacebot-v2 | 79ab87b12cd60b708631d96021ac3d3eaeee01c9 | [
"MIT"
] | 32 | 2021-11-12T15:29:04.000Z | 2022-01-23T14:44:19.000Z | peacebot/core/plugins/Miscellaneous/__init__.py | Peacebot-Development/Peacebot-v2 | 79ab87b12cd60b708631d96021ac3d3eaeee01c9 | [
"MIT"
] | 1 | 2021-11-13T06:34:03.000Z | 2021-11-13T06:34:03.000Z | import lightbulb
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from peacebot.core.utils.time import TimeConverter
| 25.727273 | 68 | 0.738516 |
e6fe319ea41fa303d91576c379f5911e22bf4307 | 855 | py | Python | example/android/python/msite_simple_default_browser.py | laichimirum/docker-appium-emulator | 3549c5f1fc09bbc650dd30351ad4f509a72a90fa | [
"Apache-2.0"
] | 8 | 2019-04-26T04:09:40.000Z | 2022-01-04T05:24:12.000Z | example/android/python/msite_simple_default_browser.py | laichimirum/docker-appium-emulator | 3549c5f1fc09bbc650dd30351ad4f509a72a90fa | [
"Apache-2.0"
] | null | null | null | example/android/python/msite_simple_default_browser.py | laichimirum/docker-appium-emulator | 3549c5f1fc09bbc650dd30351ad4f509a72a90fa | [
"Apache-2.0"
] | 2 | 2019-12-16T15:34:57.000Z | 2020-10-22T07:03:15.000Z | import unittest
from appium import webdriver
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(MSiteDefaultBrowserAndroidUITests)
unittest.TextTestRunner(verbosity=2).run(suite)
| 29.482759 | 90 | 0.65614 |
e6fe636ebee73df95de2568536aed7f6f3927fad | 458 | py | Python | src/nn/dataset_utils/types_processing.py | sola-st/Nalin | 3a6f95cec95d9152a65af970cfbb145179b0bd72 | [
"MIT"
] | null | null | null | src/nn/dataset_utils/types_processing.py | sola-st/Nalin | 3a6f95cec95d9152a65af970cfbb145179b0bd72 | [
"MIT"
] | null | null | null | src/nn/dataset_utils/types_processing.py | sola-st/Nalin | 3a6f95cec95d9152a65af970cfbb145179b0bd72 | [
"MIT"
] | null | null | null | """
Created on 17-June-2020
@author Jibesh Patra
The types extracted during runtime usually look something like --> <class 'numpy.ndarray'> or
<class 'seaborn.palettes._ColorPalette'> change them to --> ndarray, ColorPalette
"""
import re
remove_chars = re.compile(r'>|\'|<|(class )|_|(type)')
| 24.105263 | 93 | 0.696507 |
e6fee516b4253e139cd1d42c7d2077b96248a564 | 4,254 | py | Python | src/canvas.py | soootaleb/spare | b454b9a8861df55c29fe55b4b584248a2ffe79cb | [
"Apache-2.0"
] | 1 | 2019-05-21T16:04:08.000Z | 2019-05-21T16:04:08.000Z | src/canvas.py | soootaleb/school-spacial-relations | b454b9a8861df55c29fe55b4b584248a2ffe79cb | [
"Apache-2.0"
] | null | null | null | src/canvas.py | soootaleb/school-spacial-relations | b454b9a8861df55c29fe55b4b584248a2ffe79cb | [
"Apache-2.0"
] | null | null | null | from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from matplotlib import pyplot as plt
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
import matplotlib.ticker as ticker
import numpy as np
import random, matplotlib... | 35.157025 | 107 | 0.609074 |
fc0054805adf6c4edaa7b274d8d98323387b2aa1 | 7,561 | py | Python | src/cpg_scpi/test/__init__.py | GeorgBraun/cpg_scpi_python | ec74c15beaac0b002fb996a42f4e66ea369e1fc6 | [
"MIT"
] | null | null | null | src/cpg_scpi/test/__init__.py | GeorgBraun/cpg_scpi_python | ec74c15beaac0b002fb996a42f4e66ea369e1fc6 | [
"MIT"
] | null | null | null | src/cpg_scpi/test/__init__.py | GeorgBraun/cpg_scpi_python | ec74c15beaac0b002fb996a42f4e66ea369e1fc6 | [
"MIT"
] | null | null | null | '''Functional tests for CPG'''
from .. import CircuitPlayground
from .. import __version__ as CircuitPlaygroundVersion
import time
def test_led(cpg) -> None:
'''Flash LEDs and run a short chasing light.'''
_printFuncTestHeadingWithDeliLine('LED-Test: Flash LEDs and run a short chasing light...')
print('fl... | 37.616915 | 151 | 0.61923 |
fc01125ff8253bbaef2b133518f03e3663e85d73 | 216 | py | Python | main/models.py | yejun1060/SbjctSclctn | eca6a9d09cf81fce262ea58ca90e69ee5735ab16 | [
"MIT"
] | null | null | null | main/models.py | yejun1060/SbjctSclctn | eca6a9d09cf81fce262ea58ca90e69ee5735ab16 | [
"MIT"
] | null | null | null | main/models.py | yejun1060/SbjctSclctn | eca6a9d09cf81fce262ea58ca90e69ee5735ab16 | [
"MIT"
] | 1 | 2021-06-08T17:41:42.000Z | 2021-06-08T17:41:42.000Z | from django.db import models
| 21.6 | 42 | 0.689815 |
fc01bbc538287134d61e574ed4af064a81cfdf43 | 1,307 | py | Python | test/utils/test_geodesic.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | 2 | 2020-12-06T13:10:52.000Z | 2021-07-06T06:50:10.000Z | test/utils/test_geodesic.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | null | null | null | test/utils/test_geodesic.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | 1 | 2019-05-31T02:45:38.000Z | 2019-05-31T02:45:38.000Z | from math import sqrt
import torch
from torch_geometric.utils import geodesic_distance
| 30.395349 | 76 | 0.574598 |
fc01d88d24681ec66a1cf06a3a055252d072afd3 | 31,292 | py | Python | gridfs/grid_file.py | naomielst/mongo-python-driver | e3d1d6f5b48101654a05493fd6eec7fe3fa014bd | [
"Apache-2.0"
] | 2 | 2022-01-19T21:00:48.000Z | 2022-01-27T05:54:13.000Z | gridfs/grid_file.py | naomielst/mongo-python-driver | e3d1d6f5b48101654a05493fd6eec7fe3fa014bd | [
"Apache-2.0"
] | 1 | 2021-12-24T11:32:17.000Z | 2021-12-24T11:32:17.000Z | gridfs/grid_file.py | naomielst/mongo-python-driver | e3d1d6f5b48101654a05493fd6eec7fe3fa014bd | [
"Apache-2.0"
] | null | null | null | # Copyright 2009-present MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 35.721461 | 103 | 0.599035 |
fc021cb14dd8b84a0a6873924f2194048e2791f0 | 1,415 | py | Python | forte/processors/tests/stanfordnlp_processor_test.py | tcl326/forte | d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8 | [
"Apache-2.0"
] | null | null | null | forte/processors/tests/stanfordnlp_processor_test.py | tcl326/forte | d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8 | [
"Apache-2.0"
] | null | null | null | forte/processors/tests/stanfordnlp_processor_test.py | tcl326/forte | d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8 | [
"Apache-2.0"
] | null | null | null | """This module tests Stanford NLP processors."""
import os
import unittest
from texar.torch import HParams
from forte.pipeline import Pipeline
from forte.data.readers import StringReader
from forte.processors.stanfordnlp_processor import StandfordNLPProcessor
from ft.onto.base_ontology import Token, Sentence
| 36.282051 | 77 | 0.638869 |
fc02e2f67f44eb696a821c6397117531267c2ddc | 496 | py | Python | src/serve_files.py | eventh/m3u8looper | 9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5 | [
"MIT"
] | null | null | null | src/serve_files.py | eventh/m3u8looper | 9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5 | [
"MIT"
] | null | null | null | src/serve_files.py | eventh/m3u8looper | 9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Serve current folder files in a HTTP webserver.
"""
import socketserver
from threading import Thread
from http.server import SimpleHTTPRequestHandler
PORT = 8000
if __name__ == '__main__':
thread = start_http_server()
thread.join()
| 20.666667 | 76 | 0.709677 |
fc03078d9d14b23c740018bcdf9069c213af00f0 | 7,393 | py | Python | pypy/module/__builtin__/test/test_compile.py | yxzoro/pypy | 6e47b3d3e5513d9639a21554963a6ace172ccfee | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/module/__builtin__/test/test_compile.py | yxzoro/pypy | 6e47b3d3e5513d9639a21554963a6ace172ccfee | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/module/__builtin__/test/test_compile.py | yxzoro/pypy | 6e47b3d3e5513d9639a21554963a6ace172ccfee | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | # coding: utf-8
# TODO: Check the value of __debug__ inside of the compiled block!
# According to the documentation, it should follow the optimize flag.
# However, cpython3.5.0a0 behaves the same way as PyPy (__debug__ follows
# -O, -OO flags of the interpreter).
| 34.226852 | 79 | 0.538212 |
fc035a3b69dad59dad81dc8e5b68a8db4a2f4aff | 12,207 | py | Python | tickers_graphing_module.py | huangbrandon432/Investing-Trading-Tool | 370015b906b7ee90c0fb48ca69865ac7428b3917 | [
"BSD-3-Clause"
] | null | null | null | tickers_graphing_module.py | huangbrandon432/Investing-Trading-Tool | 370015b906b7ee90c0fb48ca69865ac7428b3917 | [
"BSD-3-Clause"
] | null | null | null | tickers_graphing_module.py | huangbrandon432/Investing-Trading-Tool | 370015b906b7ee90c0fb48ca69865ac7428b3917 | [
"BSD-3-Clause"
] | null | null | null |
import yfinance as yf
import matplotlib.pyplot as plt
import plotly.express as px
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import pandas as pd
from IPython.display import Markdown
import numpy as np
from datetime import date, timedelta
| 35.178674 | 169 | 0.530843 |
fc045ba1073202cd1ab4f6738b3709fb28279ff8 | 5,008 | py | Python | flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py | amsks/generic_flexbe_states | f7be84105d3370c943ed17fc19af672b330726de | [
"BSD-3-Clause"
] | null | null | null | flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py | amsks/generic_flexbe_states | f7be84105d3370c943ed17fc19af672b330726de | [
"BSD-3-Clause"
] | null | null | null | flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py | amsks/generic_flexbe_states | f7be84105d3370c943ed17fc19af672b330726de | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | 34.777778 | 131 | 0.659145 |
fc070f80801a319fdf697b23e027ce45aa2d558c | 26,632 | py | Python | text2cc/xml_assessment.py | dlehman83/text2cc | 303798993590bceaeb5238a6cce82893c37cdfc7 | [
"BSD-3-Clause"
] | 1 | 2021-02-12T09:34:07.000Z | 2021-02-12T09:34:07.000Z | text2cc/xml_assessment.py | dlehman83/text2cc | 303798993590bceaeb5238a6cce82893c37cdfc7 | [
"BSD-3-Clause"
] | null | null | null | text2cc/xml_assessment.py | dlehman83/text2cc | 303798993590bceaeb5238a6cce82893c37cdfc7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2021, Dana Lehman
# Copyright (c) 2020, Geoffrey M. Poore
# All rights reserved.
#
# Licensed under the BSD 3-Clause License:
# http://opensource.org/licenses/BSD-3-Clause
#
from .quiz import Quiz, Question, GroupStart, GroupEnd, TextRegion
BEFORE_ITEMS = '''\
<?xml version... | 40.474164 | 260 | 0.629769 |
fc072ef6a205b171dfc4d3510829d73d11a5f833 | 2,360 | py | Python | tests/test_aggregate_stats_design.py | bids-standard/bids-statsmodels-design-synthesizer | d8a1dac3891760990082c2d3aa75a1edda44ffa0 | [
"MIT"
] | null | null | null | tests/test_aggregate_stats_design.py | bids-standard/bids-statsmodels-design-synthesizer | d8a1dac3891760990082c2d3aa75a1edda44ffa0 | [
"MIT"
] | 1 | 2021-05-12T21:53:53.000Z | 2021-05-12T22:26:09.000Z | tests/test_aggregate_stats_design.py | bids-standard/bids-statsmodels-design-synthesizer | d8a1dac3891760990082c2d3aa75a1edda44ffa0 | [
"MIT"
] | 3 | 2021-05-06T12:44:04.000Z | 2021-05-12T21:42:59.000Z | #!/usr/bin/env python
"""Tests for `bids_statsmodels_design_synthesizer` package."""
import pytest
import subprocess as sp
from pathlib import Path
SYNTHESIZER = "aggregate_stats_design.py"
from bids_statsmodels_design_synthesizer import aggregate_stats_design as synth_mod
# from bids_statsmodels_design_synthesizer... | 36.875 | 199 | 0.715678 |
fc084ddbb4a5b92a2c3c4c62cd1d09d582bd5892 | 689 | py | Python | skynet-agent/plugins/plugin_api.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | 3 | 2016-09-12T08:54:46.000Z | 2016-09-18T07:54:10.000Z | skynet-agent/plugins/plugin_api.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | skynet-agent/plugins/plugin_api.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
__author__ = 'whoami'
"""
@version: 1.0
@author: whoami
@license: Apache Licence 2.0
@contact: skutil@gmail.com
@site: http://www.itweet.cn
@software: PyCharm Community Edition
@file: plugin_api.py
@time: 2015-11-28 1:52
"""
from linux import cpu,disk,iostats,loadavg,memory,netst... | 17.225 | 63 | 0.71553 |
fc09cc4c599dae963fa070fbe9dc0b9a5e9e17c9 | 1,425 | py | Python | code/figure_warp.py | jwcarr/drift | a514c5970ba53025cc142257e953c1bda3cd049c | [
"CC-BY-4.0"
] | 2 | 2021-11-19T10:12:58.000Z | 2021-11-30T03:33:59.000Z | code/figure_warp.py | jwcarr/vertical_drift | 5b4b6c475b5118950514dc01960391ef0d95bd19 | [
"CC-BY-4.0"
] | null | null | null | code/figure_warp.py | jwcarr/vertical_drift | 5b4b6c475b5118950514dc01960391ef0d95bd19 | [
"CC-BY-4.0"
] | null | null | null | import numpy as np
import eyekit
import algorithms
import core
data = eyekit.io.load(core.FIXATIONS / 'sample.json')
passages = eyekit.io.load(core.DATA / 'passages.json')
original_sequence = data['trial_5']['fixations']
fixation_XY = np.array([fixation.xy for fixation in original_sequence], dtype=int)
word_XY = np.... | 39.583333 | 102 | 0.781754 |
fc0a7d892ee7ccba2ec10d7aa3adc47150da3dac | 98,817 | py | Python | storm/Nimbus.py | krux/python-storm | 1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd | [
"BSD-3-Clause"
] | null | null | null | storm/Nimbus.py | krux/python-storm | 1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd | [
"BSD-3-Clause"
] | null | null | null | storm/Nimbus.py | krux/python-storm | 1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd | [
"BSD-3-Clause"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
... | 30.182346 | 188 | 0.668508 |
fc0c40028b9c4945addfec469dd5871c8f82e05b | 52 | py | Python | gemucator/__init__.py | philipwfowler/genucator | d43a79afe1aa81ca24d7ab4370ed230e08aa89bf | [
"MIT"
] | null | null | null | gemucator/__init__.py | philipwfowler/genucator | d43a79afe1aa81ca24d7ab4370ed230e08aa89bf | [
"MIT"
] | null | null | null | gemucator/__init__.py | philipwfowler/genucator | d43a79afe1aa81ca24d7ab4370ed230e08aa89bf | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from .core import gemucator
| 13 | 27 | 0.730769 |
fc0db1d4c1d538c8a8da3398414e346edd37ebe8 | 166 | py | Python | client/checkout/schema/types.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | 6 | 2019-11-21T10:09:49.000Z | 2021-06-19T09:52:59.000Z | client/checkout/schema/types.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | null | null | null | client/checkout/schema/types.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | null | null | null | import graphene
from graphene_django import DjangoObjectType
from graphene_django.converter import convert_django_field
from pyuploadcare.dj.models import ImageField
| 33.2 | 58 | 0.89759 |
fc0e5695633a29e1789efba016b66fc96fcedf4a | 15,518 | py | Python | pangenome_fluidity.py | PlantDr430/CSU_scripts | 8ed9e1dc014b099ce68d77ce5c8747217c230e61 | [
"MIT"
] | 1 | 2020-03-02T04:26:21.000Z | 2020-03-02T04:26:21.000Z | pangenome_fluidity.py | PlantDr430/CSU_scripts | 8ed9e1dc014b099ce68d77ce5c8747217c230e61 | [
"MIT"
] | null | null | null | pangenome_fluidity.py | PlantDr430/CSU_scripts | 8ed9e1dc014b099ce68d77ce5c8747217c230e61 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
This script follows formulas put forth in Kislyuk et al. (2011) to calculate genome
fluidity of a pangenome dataset. Variance and standard error are estimated as total
variance containing both the variance due to subsampling all possible combinations
(without replacement) of N genomes from th... | 46.322388 | 135 | 0.669738 |
fc100b64b37cc26f7af79a394d9e388ede43f204 | 7,610 | py | Python | osvolbackup/backup.py | CCSGroupInternational/osvolbackup | d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5 | [
"Apache-2.0"
] | 1 | 2019-02-27T12:59:49.000Z | 2019-02-27T12:59:49.000Z | osvolbackup/backup.py | CCSGroupInternational/osvolbackup | d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5 | [
"Apache-2.0"
] | 4 | 2019-03-07T09:31:51.000Z | 2019-03-12T15:19:40.000Z | osvolbackup/backup.py | CCSGroupInternational/osvolbackup | d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5 | [
"Apache-2.0"
] | null | null | null | #
# This module provides the Instance class that encapsulate some complex server instances related operations
#
from __future__ import print_function
from json import loads
from neutronclient.v2_0 import client as neutron_client
from novaclient import client as nova_client
from cinderclient import client as cinder_cli... | 42.044199 | 107 | 0.642181 |
fc107e595b21342f82e5161a579e155e45e95a50 | 13,314 | py | Python | gammapy/estimators/profile.py | JohannesBuchner/gammapy | 48769519f04b7df7b3e4580ebb61396445790bc3 | [
"BSD-3-Clause"
] | 1 | 2021-02-02T21:35:27.000Z | 2021-02-02T21:35:27.000Z | gammapy/estimators/profile.py | kabartay/gammapy | 015206d2418b1d254f1c9d3ea819ab0c5ece99e9 | [
"BSD-3-Clause"
] | 2 | 2018-08-09T20:49:13.000Z | 2019-01-23T17:30:49.000Z | gammapy/estimators/profile.py | kabartay/gammapy | 015206d2418b1d254f1c9d3ea819ab0c5ece99e9 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Tools to create profiles (i.e. 1D "slices" from 2D images)."""
import numpy as np
import scipy.ndimage
from astropy import units as u
from astropy.convolution import Box1DKernel, Gaussian1DKernel
from astropy.coordinates import Angle
from astropy.table ... | 31.928058 | 84 | 0.570828 |
fc109f21dbb2efc4b477a59e275c911d6c56316e | 221 | py | Python | ABC/abc001-abc050/abc007/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ABC/abc001-abc050/abc007/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ABC/abc001-abc050/abc007/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
if __name__ == '__main__':
main()
| 13 | 48 | 0.466063 |
fc1121d14735ee8c8c982d686f96751beb66af86 | 7,270 | py | Python | env/lib/python3.8/site-packages/versatileimagefield/mixins.py | crimergio/linux_test | 5e688a06884ab10b4eaaad10a5d0df417a1c9b31 | [
"CC-BY-4.0"
] | 1 | 2021-04-07T16:25:20.000Z | 2021-04-07T16:25:20.000Z | env/lib/python3.8/site-packages/versatileimagefield/mixins.py | crimergio/linux_test | 5e688a06884ab10b4eaaad10a5d0df417a1c9b31 | [
"CC-BY-4.0"
] | 9 | 2021-03-19T03:06:53.000Z | 2022-03-12T00:37:04.000Z | myvenv/lib/python3.6/site-packages/versatileimagefield/mixins.py | yog240597/saleor | b75a23827a4ec2ce91637f0afe6808c9d09da00a | [
"CC-BY-4.0"
] | 1 | 2021-04-23T15:01:05.000Z | 2021-04-23T15:01:05.000Z | """versatileimagefield Field mixins."""
import os
import re
from .datastructures import FilterLibrary
from .registry import autodiscover, versatileimagefield_registry
from .settings import (
cache,
VERSATILEIMAGEFIELD_CREATE_ON_DEMAND,
VERSATILEIMAGEFIELD_SIZED_DIRNAME,
VERSATILEIMAGEFIELD_FILTERED_DIR... | 34.454976 | 90 | 0.599037 |
fc11ec393a7dcebc05211e5be317a56b62dc07c0 | 9,450 | py | Python | differential_privacy/run_federated.py | HanGuo97/federated | 7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9 | [
"BSD-3-Clause"
] | 330 | 2020-09-14T23:10:16.000Z | 2022-03-30T19:49:19.000Z | differential_privacy/run_federated.py | HanGuo97/federated | 7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9 | [
"BSD-3-Clause"
] | 52 | 2020-09-30T06:10:51.000Z | 2022-03-31T19:25:16.000Z | differential_privacy/run_federated.py | HanGuo97/federated | 7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9 | [
"BSD-3-Clause"
] | 119 | 2020-09-24T04:54:46.000Z | 2022-03-31T21:46:57.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... | 42.760181 | 91 | 0.742963 |
fc11f9759b82ea3a650e3c9261504b9c80e953f0 | 417 | py | Python | waymo_kitti_converter/tools/visual_point_cloud.py | anhvth/Pseudo_Lidar_V2 | d7a29ffc811e315df25bba2a43acf288d4ceb30e | [
"MIT"
] | null | null | null | waymo_kitti_converter/tools/visual_point_cloud.py | anhvth/Pseudo_Lidar_V2 | d7a29ffc811e315df25bba2a43acf288d4ceb30e | [
"MIT"
] | null | null | null | waymo_kitti_converter/tools/visual_point_cloud.py | anhvth/Pseudo_Lidar_V2 | d7a29ffc811e315df25bba2a43acf288d4ceb30e | [
"MIT"
] | null | null | null | import open3d as o3d
import numpy as np
pc_load_pathname = '/home/caizhongang/github/waymo_kitti_converter/007283-000.bin'
pc = np.fromfile(pc_load_pathname, dtype=np.float32).reshape(-1, 3)
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(pc)
axis = o3d.geometry.TriangleMesh.create_coordinat... | 34.75 | 82 | 0.781775 |
fc11f9bf036f8314167de520f758c42b9fa4aa63 | 2,306 | py | Python | designate-8.0.0/designate/tests/test_api/test_v2/test_limits.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 145 | 2015-01-02T09:35:53.000Z | 2021-12-14T17:03:53.000Z | designate/tests/test_api/test_v2/test_limits.py | sapcc/designate | c3f084751006a2fe7562f137930542c4759d6fd9 | [
"Apache-2.0"
] | 6 | 2015-03-15T00:22:27.000Z | 2019-12-16T09:37:38.000Z | designate/tests/test_api/test_v2/test_limits.py | sapcc/designate | c3f084751006a2fe7562f137930542c4759d6fd9 | [
"Apache-2.0"
] | 109 | 2015-01-13T16:47:34.000Z | 2021-03-15T13:18:48.000Z | # Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# Author: Kiall Mac Innes <kiall@managedit.ie>
#
# 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/lice... | 41.927273 | 76 | 0.667823 |
fc1210baa0e8a8267a154dad6a47b17fe2942673 | 1,696 | py | Python | pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | 1 | 2015-07-12T07:24:17.000Z | 2015-07-12T07:24:17.000Z | pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | null | null | null | pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | 1 | 2016-02-19T21:55:53.000Z | 2016-02-19T21:55:53.000Z | """node-path implementation for OpenGLContext
"""
from vrml.vrml97 import nodepath, nodetypes
from vrml.cache import CACHE
from OpenGLContext import quaternion
from OpenGL.GL import glMultMatrixf
| 32 | 69 | 0.630896 |