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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
872f98cf47eef197a5d79726f16c6d8e2cffb79b | 2,947 | py | Python | FootGramBot/modules/helpers/database.py | ssiyad/FootGramBot | bd14b2e1bfa2a7d50f22180c5c62eb9e556a6444 | [
"MIT"
] | 2 | 2020-01-19T11:44:20.000Z | 2021-12-12T18:40:17.000Z | FootGramBot/modules/helpers/database.py | ssiyad/FootGramBot | bd14b2e1bfa2a7d50f22180c5c62eb9e556a6444 | [
"MIT"
] | null | null | null | FootGramBot/modules/helpers/database.py | ssiyad/FootGramBot | bd14b2e1bfa2a7d50f22180c5c62eb9e556a6444 | [
"MIT"
] | 1 | 2019-12-15T01:39:18.000Z | 2019-12-15T01:39:18.000Z | import datetime
import peewee
db = peewee.SqliteDatabase("db.db")
# create_tables
Match.create_table()
Live.create_table()
Team.create_table()
Player.create_table()
Sub.create_table()
| 27.287037 | 63 | 0.68205 |
873021a845521edc67649b98ab32b6aacab1aaa3 | 1,589 | py | Python | core_modules/get_window.py | picass02005/PyMacro-async | 5945de7be39793c42d2e1d53a6050809d962338d | [
"MIT"
] | 1 | 2021-08-10T19:50:57.000Z | 2021-08-10T19:50:57.000Z | core_modules/get_window.py | picass02005/PyMacro-async | 5945de7be39793c42d2e1d53a6050809d962338d | [
"MIT"
] | null | null | null | core_modules/get_window.py | picass02005/PyMacro-async | 5945de7be39793c42d2e1d53a6050809d962338d | [
"MIT"
] | null | null | null | import sys
import psutil
from global_modules import logs
if sys.platform == "win32":
import ctypes
from ctypes import wintypes
elif sys.platform == "linux" or sys.platform == "linux2":
import subprocess
proc = subprocess.Popen(["/bin/bash", "-c", "which xdotool"], stdout=subprocess.PIPE, stderr=sub... | 31.156863 | 113 | 0.573946 |
8732060db510581dff28c7952b80edd466910f7c | 3,987 | py | Python | zhixuewang/session.py | lihaoze123/zhixuewang-python | 7a54bb1ae96f74d3bb3a0845f3b084bb5942f758 | [
"MIT"
] | 22 | 2019-01-21T03:49:44.000Z | 2020-02-13T08:43:01.000Z | zhixuewang/session.py | lihaoze123/zhixuewang-python | 7a54bb1ae96f74d3bb3a0845f3b084bb5942f758 | [
"MIT"
] | 10 | 2019-01-21T03:50:23.000Z | 2020-01-03T13:06:49.000Z | zhixuewang/session.py | lihaoze123/zhixuewang-python | 7a54bb1ae96f74d3bb3a0845f3b084bb5942f758 | [
"MIT"
] | 3 | 2019-02-17T06:12:35.000Z | 2019-10-29T13:24:06.000Z |
import json
import requests
from zhixuewang.exceptions import LoginError, UserNotFoundError, UserOrPassError
from zhixuewang.tools.password_helper import base64_encode, encode_password
from zhixuewang.urls import Url
def get_session(username: str, password: str, _type: str = "auto") -> requests.Session:
"""sessi... | 30.204545 | 93 | 0.558315 |
873485922e32080319183a1860c2b4881a5d1722 | 228 | py | Python | CursoEmVideo/Aula14/ex057.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula14/ex057.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula14/ex057.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | resp = str(input('Informe seu sexo [M/F]: ')).strip().upper()[0]
while resp not in 'MmFf':
resp = str(input('Dados invlidos! Informe seu sexo: ')).strip().upper()[0]
print('Sexo {} registrado com sucesso'.format(resp)) | 45.6 | 80 | 0.644737 |
873546bba21758a6bdeb7202c2fa9d5e03ead94d | 6,031 | py | Python | crawler/anidb_spider.py | Alter-0/MiraiHyoka | b1a21492a0f67a2db488aff9086e440ec65269ce | [
"Apache-2.0"
] | null | null | null | crawler/anidb_spider.py | Alter-0/MiraiHyoka | b1a21492a0f67a2db488aff9086e440ec65269ce | [
"Apache-2.0"
] | null | null | null | crawler/anidb_spider.py | Alter-0/MiraiHyoka | b1a21492a0f67a2db488aff9086e440ec65269ce | [
"Apache-2.0"
] | null | null | null | import time
import requests
import re
import pymysql
import urllib3
from lxml import etree
from fake_useragent import UserAgent
# from scrapy import Selector
from requests.adapters import HTTPAdapter
urllib3.disable_warnings()
db = pymysql.connect("localhost", "root", "", "miraihyoka")
cursor = db.cursor()
if... | 35.476471 | 122 | 0.503565 |
8736c28143447fda9d01e4dd913ba05e06747b0d | 1,637 | py | Python | main.py | okada39/pinn_projectile | 0c00a1ba5a1324abf0fc4de868fff106c53ee89e | [
"MIT"
] | null | null | null | main.py | okada39/pinn_projectile | 0c00a1ba5a1324abf0fc4de868fff106c53ee89e | [
"MIT"
] | null | null | null | main.py | okada39/pinn_projectile | 0c00a1ba5a1324abf0fc4de868fff106c53ee89e | [
"MIT"
] | 1 | 2022-03-05T05:35:59.000Z | 2022-03-05T05:35:59.000Z | import lib.tf_silent
import numpy as np
import matplotlib.pyplot as plt
from lib.pinn import PINN
from lib.network import Network
from lib.optimizer import L_BFGS_B
def theoretical_motion(input, g):
"""
Compute the theoretical projectile motion.
Args:
input: ndarray with shape (num_samples, 3) for... | 27.745763 | 85 | 0.64325 |
87385931bf180f383987d8f5225b1fd084f846ea | 1,889 | py | Python | utils/image_transformation.py | groverkds/hand_sign_recognition | 4ae05c43af869e990acc636b0a031f903709dfbc | [
"Apache-2.0"
] | 3 | 2020-02-18T07:12:42.000Z | 2022-01-07T14:35:42.000Z | utils/image_transformation.py | polawarrushi/hand_sign_recognition | 493b3568c462280533a33cab592008c91da1f999 | [
"Apache-2.0"
] | null | null | null | utils/image_transformation.py | polawarrushi/hand_sign_recognition | 493b3568c462280533a33cab592008c91da1f999 | [
"Apache-2.0"
] | 8 | 2019-05-22T15:45:17.000Z | 2021-09-15T17:28:50.000Z | import cv2
import numpy as np
import math | 25.527027 | 81 | 0.672843 |
873aac2e5f787d5a3ca6b31d3f26e38999e76248 | 2,357 | py | Python | models/xdog.py | jialuogao/ECE539FinalProject | 8feed1a1a606225dc9c55fccc09f41bf6767c3e0 | [
"BSD-3-Clause"
] | null | null | null | models/xdog.py | jialuogao/ECE539FinalProject | 8feed1a1a606225dc9c55fccc09f41bf6767c3e0 | [
"BSD-3-Clause"
] | null | null | null | models/xdog.py | jialuogao/ECE539FinalProject | 8feed1a1a606225dc9c55fccc09f41bf6767c3e0 | [
"BSD-3-Clause"
] | 1 | 2020-12-04T01:36:21.000Z | 2020-12-04T01:36:21.000Z | import cv2
import numpy as np
if __name__ == '__main__':
# Open image in grayscale
#img = cv2.imread('imgs/lena.jpg',cv2.CV_LOAD_IMAGE_GRAYSCALE)
img = cv2.imread('./imgs/horse.png',cv2.IMREAD_GRAYSCALE)
print(img.shape)
img = cv2.resize(img,(400,400))
print(img.shape)
# k = 1.6 as pro... | 35.712121 | 114 | 0.613492 |
873c67c1eac26d9929c452d0c7419948dcea5913 | 803 | py | Python | src/data/75.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/75.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/75.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
main()
| 20.589744 | 43 | 0.447073 |
873db11f74a1a1143dde3d98487cd6051dbe23cc | 4,483 | py | Python | simplipy/device/lock.py | gderrick/simplisafe-python | 7cdd9f92661e2e26bc1e5c6cb5689d5916807234 | [
"MIT"
] | 3 | 2017-05-21T16:49:38.000Z | 2018-07-05T16:16:45.000Z | simplipy/device/lock.py | gderrick/simplisafe-python | 7cdd9f92661e2e26bc1e5c6cb5689d5916807234 | [
"MIT"
] | 2 | 2017-07-20T11:57:23.000Z | 2018-09-24T03:03:19.000Z | simplipy/device/lock.py | gderrick/simplisafe-python | 7cdd9f92661e2e26bc1e5c6cb5689d5916807234 | [
"MIT"
] | 7 | 2017-04-15T05:52:09.000Z | 2018-08-19T01:49:54.000Z | """Define a SimpliSafe lock."""
from __future__ import annotations
from enum import Enum
from typing import TYPE_CHECKING, Any, Awaitable, Callable, cast
from simplipy.const import LOGGER
from simplipy.device import DeviceTypes, DeviceV3
if TYPE_CHECKING:
from simplipy.system import System
| 29.11039 | 86 | 0.602275 |
873db35964cb2109d64b02b821d39748400ca72b | 150 | py | Python | vcontrol/cli/providers/list_all.py | dannypadilla/vcontrol | fe929e6138ec87e23cabd69b5c97ddb29603d0c6 | [
"Apache-2.0"
] | 5 | 2016-08-01T23:25:18.000Z | 2019-06-02T00:10:32.000Z | vcontrol/cli/providers/list_all.py | dannypadilla/vcontrol | fe929e6138ec87e23cabd69b5c97ddb29603d0c6 | [
"Apache-2.0"
] | 120 | 2016-08-02T02:00:31.000Z | 2017-11-01T02:38:11.000Z | vcontrol/cli/providers/list_all.py | dannypadilla/vcontrol | fe929e6138ec87e23cabd69b5c97ddb29603d0c6 | [
"Apache-2.0"
] | 15 | 2016-08-01T23:26:00.000Z | 2019-11-09T13:17:54.000Z | import requests
| 21.428571 | 50 | 0.666667 |
873e2e534ceea6ba2ca685b8e535b0bf75b98bfc | 4,291 | py | Python | mxnet/alexnet.py | s0nghuiming/convnet-benchmarks | 5b91b6966714e8358292ae440d807c6d9d2cf7fe | [
"MIT"
] | 2,829 | 2015-01-02T19:34:27.000Z | 2022-02-22T03:42:06.000Z | mxnet/alexnet.py | Reddmist/convnet-benchmarks | b458aab61c0ac2257c0990119b5de15c1e886f02 | [
"MIT"
] | 90 | 2015-02-18T21:56:21.000Z | 2021-02-06T22:20:30.000Z | mxnet/alexnet.py | Reddmist/convnet-benchmarks | b458aab61c0ac2257c0990119b5de15c1e886f02 | [
"MIT"
] | 644 | 2015-01-02T19:31:23.000Z | 2022-01-07T23:53:45.000Z | # In[1]:
import mxnet as mx
import numpy as np
import time
# In[2]:
# Basic Info
dev = mx.gpu()
batch_size = 128
dshape = (batch_size, 3, 224, 224)
lshape = (batch_size)
num_epoch = 100
# Mock data iterator
tmp_data = np.random.uniform(-1, 1, dshape).astype("float32")
train_iter = mx.io.NDArrayIter(data=tmp_data,... | 30.006993 | 132 | 0.66255 |
873fd671c46e323d79a2f0109ba1aa6756c796ee | 23,213 | py | Python | nfv/nfv-vim/nfv_vim/api/controllers/v1/virtualised_resources/_computes_api.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2020-02-07T19:01:36.000Z | 2022-02-23T01:41:46.000Z | nfv/nfv-vim/nfv_vim/api/controllers/v1/virtualised_resources/_computes_api.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 1 | 2021-01-14T12:02:25.000Z | 2021-01-14T12:02:25.000Z | nfv/nfv-vim/nfv_vim/api/controllers/v1/virtualised_resources/_computes_api.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2021-01-13T08:39:21.000Z | 2022-02-09T00:21:55.000Z | # Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import json
import pecan
import six
from six.moves import http_client as httplib
from wsme import types as wsme_types
import wsmeext.pecan as wsme_pecan
from nfv_common import debug
from nfv_common import validate
from nfv_vim... | 39.477891 | 81 | 0.664283 |
87408a167f26c51ac79b4357fde6e86578607e21 | 5,219 | py | Python | ncm2-plugin/ncm2_neosnippet.py | oabt/ncm2-neosnippet | b7e516d6f50eda53147569e18068f1622d2720c9 | [
"MIT"
] | 6 | 2019-01-18T18:16:05.000Z | 2021-10-30T12:39:37.000Z | ncm2-plugin/ncm2_neosnippet.py | oabt/ncm2-neosnippet | b7e516d6f50eda53147569e18068f1622d2720c9 | [
"MIT"
] | 2 | 2019-01-24T18:22:01.000Z | 2019-03-01T16:33:32.000Z | ncm2-plugin/ncm2_neosnippet.py | oabt/ncm2-neosnippet | b7e516d6f50eda53147569e18068f1622d2720c9 | [
"MIT"
] | 2 | 2021-09-16T03:43:23.000Z | 2021-09-21T21:26:55.000Z | # -*- coding: utf-8 -*-
import sys
if __name__ == '__main__':
sys.path.append('./pythonx')
wrap()
# parser = Parser()
#
# snippets = ["""
# hello ${1:world}.
# ""","""
# hello ${1:world \${\}}.
# ""","""
# hello ${1:world ${2:\${foobar\}}}}.
# ""","""
# hello ${1:world ${2:\${`mode()`foobar\}}}}.
# """,
# ]
# ... | 29.822857 | 84 | 0.439356 |
8740a52f8aa78c859e8fa2b0a5e3bcbf09976324 | 317 | py | Python | jesse/models/__init__.py | laughingwithu/jesse | c21adf59074ad62e4aa775261b4ad86c542ec4d5 | [
"MIT"
] | 10 | 2020-05-24T17:31:11.000Z | 2022-03-18T00:31:14.000Z | jesse/models/__init__.py | laughingwithu/jesse | c21adf59074ad62e4aa775261b4ad86c542ec4d5 | [
"MIT"
] | null | null | null | jesse/models/__init__.py | laughingwithu/jesse | c21adf59074ad62e4aa775261b4ad86c542ec4d5 | [
"MIT"
] | 4 | 2020-07-08T19:24:45.000Z | 2022-01-26T12:53:04.000Z | from .Candle import Candle
from .Ticker import Ticker
from .Exchange import Exchange
from .Order import Order
from .Position import Position
from .Route import Route
from .CompletedTrade import CompletedTrade
from .utils import store_candle_into_db, store_ticker_into_db, store_trade_into_db, store_orderbook_into_db
| 35.222222 | 107 | 0.85489 |
8742cf27f615b8219c28a68120212e7fc935f9c3 | 4,385 | py | Python | get_students.py | pcbouman-eur/CanvasToTeams | 06fb78a794fd1353336ca05881f8018310388ffe | [
"MIT"
] | null | null | null | get_students.py | pcbouman-eur/CanvasToTeams | 06fb78a794fd1353336ca05881f8018310388ffe | [
"MIT"
] | null | null | null | get_students.py | pcbouman-eur/CanvasToTeams | 06fb78a794fd1353336ca05881f8018310388ffe | [
"MIT"
] | 1 | 2020-10-12T08:32:40.000Z | 2020-10-12T08:32:40.000Z | from canvasapi import Canvas
import json
import os
# Do `pip install canvasapi` first before running this script!
DEFAULT_CANVAS_URL = 'https://eur.instructure.com'
DEFAULT_REMOVE_PATTERN = 'groep'
DEFAULT_ADD_PREFIX = 'Tutorial '
DEFAULT_IGNORE = 'Default section'
print('Please enter the Canvas base URL you want to... | 37.478632 | 128 | 0.661574 |
87455c57eb45b58bac66481bce583370c48cdd3c | 7,219 | py | Python | training/train_ethnicity_race.py | sciosci/demographicx | 38c3d5511295414cc1bf58372398bb6ba78e9586 | [
"MIT"
] | 10 | 2021-06-06T18:43:14.000Z | 2021-11-30T03:31:00.000Z | training/train_ethnicity_race.py | sciosci/demographicx | 38c3d5511295414cc1bf58372398bb6ba78e9586 | [
"MIT"
] | 6 | 2021-05-07T03:28:18.000Z | 2021-06-03T22:18:03.000Z | training/train_ethnicity_race.py | sciosci/demographicx | 38c3d5511295414cc1bf58372398bb6ba78e9586 | [
"MIT"
] | 2 | 2021-05-06T19:16:18.000Z | 2021-05-10T21:34:04.000Z | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
import torch
from transformers import AutoModel, AutoTokenizer, BertTokenizer, BertForSequenceClassification
from torch.utils.data import TensorDataset
import transformers
from tqdm.notebook import tqdm
census10 = pd.read_csv(... | 34.21327 | 128 | 0.630835 |
8745cd5aecce86323314f1a025b4ce6f3f4d62bc | 2,771 | py | Python | schedule_lib/schedexport.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | schedule_lib/schedexport.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | 1 | 2020-02-05T13:00:29.000Z | 2020-02-05T13:00:29.000Z | schedule_lib/schedexport.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
# schedule_lib/schedexport.py
#
# system imports
import da... | 35.075949 | 108 | 0.638759 |
8746890290bf43894664b39192400836b2665b3c | 2,748 | py | Python | tests/test_model/test_select.py | klen/peewee-aio | 723c5f5333f5a814fefe682b175faadb9e86f747 | [
"MIT"
] | 5 | 2021-09-07T13:39:47.000Z | 2022-01-14T16:01:26.000Z | tests/test_model/test_select.py | klen/peewee-aio | 723c5f5333f5a814fefe682b175faadb9e86f747 | [
"MIT"
] | 1 | 2021-11-01T06:28:12.000Z | 2021-11-01T12:05:50.000Z | tests/test_model/test_select.py | klen/peewee-aio | 723c5f5333f5a814fefe682b175faadb9e86f747 | [
"MIT"
] | null | null | null | import pytest
import peewee
| 26.941176 | 82 | 0.671033 |
8746d96b9c229eb941dea75daa70eed79983ec48 | 1,102 | py | Python | unchaind/util/esi.py | xnlfgh/unchaind | af59c380c02401a7ac58139d7f82507b9fb59f75 | [
"MIT"
] | 2 | 2019-01-02T20:43:50.000Z | 2019-01-28T10:15:13.000Z | unchaind/util/esi.py | xnlfgh/unchaind | af59c380c02401a7ac58139d7f82507b9fb59f75 | [
"MIT"
] | 40 | 2018-12-26T16:20:57.000Z | 2019-03-31T13:47:32.000Z | unchaind/util/esi.py | xnlfgh/unchaind | af59c380c02401a7ac58139d7f82507b9fb59f75 | [
"MIT"
] | 4 | 2018-12-25T22:53:51.000Z | 2021-02-20T19:54:51.000Z | """Functions to query ESI with simple caching."""
import logging
import json
from typing import Dict, Any
from async_lru import alru_cache
from unchaind.http import HTTPSession
log = logging.getLogger(__name__)
_ESI = "https://esi.evetech.net/latest/"
| 24.488889 | 62 | 0.713249 |
8746ebe9ac343bc60b4bcbb4756f7bfd2a842179 | 1,460 | py | Python | uttut/toolkits/tests/test_get_kth_combination.py | Yoctol/uttut | 31ed12449d38fac58f50178c4ade8b011f1fcfbd | [
"MIT"
] | 2 | 2018-03-27T03:03:37.000Z | 2018-05-23T05:49:34.000Z | uttut/toolkits/tests/test_get_kth_combination.py | Yoctol/uttut | 31ed12449d38fac58f50178c4ade8b011f1fcfbd | [
"MIT"
] | 125 | 2018-04-06T14:07:36.000Z | 2019-12-19T03:54:19.000Z | uttut/toolkits/tests/test_get_kth_combination.py | Yoctol/uttut | 31ed12449d38fac58f50178c4ade8b011f1fcfbd | [
"MIT"
] | null | null | null | from unittest import TestCase
from functools import reduce
from operator import mul
from ..get_kth_combination import get_kth_combination
| 28.627451 | 65 | 0.404795 |
87470cd06712fce397942db7b39cc847b12c8619 | 3,191 | py | Python | cpims/cpovc_registry/admin.py | sizler20/cpims_update | 23b86e40ca779b751383e268ad4fbf6a321ab211 | [
"MIT"
] | null | null | null | cpims/cpovc_registry/admin.py | sizler20/cpims_update | 23b86e40ca779b751383e268ad4fbf6a321ab211 | [
"MIT"
] | null | null | null | cpims/cpovc_registry/admin.py | sizler20/cpims_update | 23b86e40ca779b751383e268ad4fbf6a321ab211 | [
"MIT"
] | 1 | 2022-02-27T13:36:47.000Z | 2022-02-27T13:36:47.000Z | """Admin backend for editing some admin details."""
from django.contrib import admin
from .models import (RegPerson, RegOrgUnit, RegOrgUnitsAuditTrail,
RegPersonsAuditTrail, RegPersonsTypes,
RegPersonsGeo, RegPersonsOrgUnits)
from cpovc_auth.models import AppUser
admin.... | 29.82243 | 74 | 0.67095 |
874715eb3f14435bebfd2dc5d5105c4dbfec947d | 15,605 | py | Python | src/nasty/_retriever/retriever.py | evhart/nasty | 1b14977d1ba61bdb78d0906c76dd57242a8c8923 | [
"Apache-2.0"
] | null | null | null | src/nasty/_retriever/retriever.py | evhart/nasty | 1b14977d1ba61bdb78d0906c76dd57242a8c8923 | [
"Apache-2.0"
] | null | null | null | src/nasty/_retriever/retriever.py | evhart/nasty | 1b14977d1ba61bdb78d0906c76dd57242a8c8923 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2019-2020 Lukas Schmelzeisen
#
# 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 t... | 39.0125 | 88 | 0.620058 |
8748f79e0f132f573ff8452bf4dc8ddcf5a7d493 | 459 | gyp | Python | trunk/build/temp_gyp/googleurl.gyp | goddino/libjingle | 9516bee51c73af4c3082e74b88ed1198a0eb2bb1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 7 | 2015-08-06T01:46:07.000Z | 2020-10-20T09:14:58.000Z | build/temp_gyp/googleurl.gyp | hujiajie/pa-chromium | 1816ff80336a6efd1616f9e936880af460b1e105 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | build/temp_gyp/googleurl.gyp | hujiajie/pa-chromium | 1816ff80336a6efd1616f9e936880af460b1e105 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 16 | 2015-01-08T01:47:24.000Z | 2022-02-25T06:06:06.000Z | # Copyright (c) 2012 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.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'googleurl',
'type': 'none',
'dependencies': [
... | 20.863636 | 72 | 0.551198 |
8749546a60191753751f4566ae41d416cd04bbb7 | 149 | py | Python | DailyLife/picOCR_toExcel/ExcelProcessing/__init__.py | Ayusummer/DailyNotes | af7d0c784eac4de28814eb89c8977f45334d6e62 | [
"MIT"
] | 2 | 2021-05-08T09:54:35.000Z | 2021-09-11T06:54:16.000Z | DailyLife/picOCR_toExcel/ExcelProcessing/__init__.py | Ayusummer/DailyNotes | af7d0c784eac4de28814eb89c8977f45334d6e62 | [
"MIT"
] | null | null | null | DailyLife/picOCR_toExcel/ExcelProcessing/__init__.py | Ayusummer/DailyNotes | af7d0c784eac4de28814eb89c8977f45334d6e62 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/5/13 22:53
# @Author : 233
# @File : __init__.py.py
# @Software: PyCharm
# @Function:
# @ChangeLog
| 18.625 | 28 | 0.57047 |
87496f81b610008db1d5c2d95fe6e8e7e5030953 | 1,411 | py | Python | saleor/account/migrations/0055_alter_user_options.py | BearerPipelineTest/saleor | 1257145235cd2f59e932ac067ee18673fd5b6a54 | [
"CC-BY-4.0"
] | null | null | null | saleor/account/migrations/0055_alter_user_options.py | BearerPipelineTest/saleor | 1257145235cd2f59e932ac067ee18673fd5b6a54 | [
"CC-BY-4.0"
] | null | null | null | saleor/account/migrations/0055_alter_user_options.py | BearerPipelineTest/saleor | 1257145235cd2f59e932ac067ee18673fd5b6a54 | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-25 10:29
from django.db import migrations
from django.db.models.signals import post_migrate
| 32.068182 | 83 | 0.615167 |
874b705419cf395df3f79f2899e5d1923206a536 | 165 | py | Python | src/Payload2Std.py | Hing9/Payload2Std-IDA | ffaaa903301cbc700667bd8052d3027e482d6601 | [
"MIT"
] | null | null | null | src/Payload2Std.py | Hing9/Payload2Std-IDA | ffaaa903301cbc700667bd8052d3027e482d6601 | [
"MIT"
] | null | null | null | src/Payload2Std.py | Hing9/Payload2Std-IDA | ffaaa903301cbc700667bd8052d3027e482d6601 | [
"MIT"
] | null | null | null | from __future__ import print_function
import idaapi
| 13.75 | 52 | 0.775758 |
874dd0ef2fc879a426a0de09a6582dbf87216983 | 7,242 | py | Python | cmmcdb/management/commands/importpdf.py | linville/cmmcdb | acb60fa7278711a2f685ccbadd3d6767689a8236 | [
"0BSD"
] | 1 | 2020-10-29T22:27:55.000Z | 2020-10-29T22:27:55.000Z | cmmcdb/management/commands/importpdf.py | linville/cmmcdb | acb60fa7278711a2f685ccbadd3d6767689a8236 | [
"0BSD"
] | 1 | 2020-02-12T02:34:56.000Z | 2020-02-12T02:34:56.000Z | cmmcdb/management/commands/importpdf.py | linville/cmmcdb | acb60fa7278711a2f685ccbadd3d6767689a8236 | [
"0BSD"
] | null | null | null | # This imports the CMMC pdf as distributed by OUSD(A&S).
from django.core.management.base import BaseCommand, CommandError
from django.db.models import IntegerField, Case, Sum, Value, When
from cmmcdb.models import *
import argparse
import camelot
import re
import pprint
| 32.475336 | 112 | 0.548743 |
874e4aee29d15243a99028c3d561c5293417a2a1 | 1,834 | py | Python | ModuleSolvers/Keypad.py | rjslater2000/KeepTalkingBot | 4d5fac633542f967384779b8049765a97f6a1cf8 | [
"MIT"
] | null | null | null | ModuleSolvers/Keypad.py | rjslater2000/KeepTalkingBot | 4d5fac633542f967384779b8049765a97f6a1cf8 | [
"MIT"
] | null | null | null | ModuleSolvers/Keypad.py | rjslater2000/KeepTalkingBot | 4d5fac633542f967384779b8049765a97f6a1cf8 | [
"MIT"
] | null | null | null | # ============================================================
# Title: Keep Talking and Nobody Explodes Solver: Keypad
# Author: Ryan J. Slater
# Date: 4/3/2019
# ============================================================
# Testing
if __name__ == '__main__':
keypadSymbols = ['backwardsc', 'lambda', 'resistor'... | 40.755556 | 110 | 0.553435 |
874fd1f2ba70228bca6680f864212ca6f601b7bc | 138 | py | Python | supervisor/tests/fixtures/spew.py | orgsea/supervisor-py3k | 34eec9cb4f6b8798155508bdf6b2e6f9e43466cf | [
"ZPL-2.1"
] | 29 | 2017-03-06T11:20:50.000Z | 2021-05-19T22:05:05.000Z | supervisor/tests/fixtures/spew.py | orgsea/supervisor-py3k | 34eec9cb4f6b8798155508bdf6b2e6f9e43466cf | [
"ZPL-2.1"
] | 1 | 2017-07-23T15:23:47.000Z | 2017-07-23T15:31:02.000Z | supervisor/tests/fixtures/spew.py | orgsea/supervisor-py3k | 34eec9cb4f6b8798155508bdf6b2e6f9e43466cf | [
"ZPL-2.1"
] | 13 | 2017-03-02T11:52:39.000Z | 2019-11-21T08:51:26.000Z | #!<<PYTHON>>
import time
counter = 0
while 1:
time.sleep(0.01)
print(("more spewage %s" % counter))
counter += 1
| 12.545455 | 40 | 0.536232 |
874fe6723780a293d95e2506de662b55ab1b2deb | 2,385 | py | Python | lib/cicdctl/utils/packer/driver.py | cicdenv/cicdenv | 5b72fd9ef000bf07c2052471b59edaa91af18778 | [
"MIT"
] | 8 | 2020-08-10T20:57:24.000Z | 2021-08-08T10:46:20.000Z | lib/cicdctl/utils/packer/driver.py | cicdenv/cicdenv | 5b72fd9ef000bf07c2052471b59edaa91af18778 | [
"MIT"
] | null | null | null | lib/cicdctl/utils/packer/driver.py | cicdenv/cicdenv | 5b72fd9ef000bf07c2052471b59edaa91af18778 | [
"MIT"
] | 1 | 2020-08-10T20:42:09.000Z | 2020-08-10T20:42:09.000Z | import json
from . import env, packer_dir, packer_templates, workspace
from ...commands.types.target import Target
from ..terraform.driver import TerraformDriver
from ..terraform.routing import routing_targets
# Supported packer sub-commands
packer_commands = [
'validate',
'build',
'console',
]
| 34.565217 | 117 | 0.615933 |
8750ee733ecb801c032c59be486b95a731ca328e | 3,776 | py | Python | src/tfi/cli/__init__.py | ajbouh/tfi | 6e89e8c8f1ca3b285c788cc6b802fc44f9001290 | [
"MIT"
] | 160 | 2017-09-13T00:32:05.000Z | 2018-05-21T18:17:32.000Z | src/tfi/cli/__init__.py | tesserai/tfi | 6e89e8c8f1ca3b285c788cc6b802fc44f9001290 | [
"MIT"
] | 6 | 2017-09-14T17:54:21.000Z | 2018-01-27T19:31:18.000Z | src/tfi/cli/__init__.py | ajbouh/tfi | 6e89e8c8f1ca3b285c788cc6b802fc44f9001290 | [
"MIT"
] | 11 | 2017-09-13T00:37:08.000Z | 2018-03-05T08:03:34.000Z | import ast
import argparse
import inspect
from collections import OrderedDict
from functools import partial
from tfi.base import _GetAttrAccumulator as _GetAttrAccumulator
from tfi.data import file as _tfi_data_file
from tfi.resolve.model import resolve_auto as _resolve_auto
| 34.018018 | 91 | 0.632945 |
8750ef6c1f8df8e5cfed4cf40f5f33bfd4632996 | 691 | py | Python | models.py | dragonfi/tutorboard | 0ab324c0950db0bdfdc1cc8f4af4b472739f7d4c | [
"MIT"
] | null | null | null | models.py | dragonfi/tutorboard | 0ab324c0950db0bdfdc1cc8f4af4b472739f7d4c | [
"MIT"
] | null | null | null | models.py | dragonfi/tutorboard | 0ab324c0950db0bdfdc1cc8f4af4b472739f7d4c | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
| 30.043478 | 77 | 0.654124 |
8751741b04da988eb0285b8a2d51d356dab136f2 | 3,941 | py | Python | trio_cdp/generated/animation.py | eNcacz/trio-chrome-devtools-protocol | 6b30e52d5617d56f397604f80d30a8fed45b7090 | [
"MIT"
] | null | null | null | trio_cdp/generated/animation.py | eNcacz/trio-chrome-devtools-protocol | 6b30e52d5617d56f397604f80d30a8fed45b7090 | [
"MIT"
] | null | null | null | trio_cdp/generated/animation.py | eNcacz/trio-chrome-devtools-protocol | 6b30e52d5617d56f397604f80d30a8fed45b7090 | [
"MIT"
] | null | null | null | # DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.
from __future__ import annotations
import typing
from ..context import get_connection_context, get_session_context
import cdp.animation
from cdp.animation imp... | 27.950355 | 89 | 0.705405 |
87524cfb18180e13d8c4e3dcda35f9acda0079e3 | 954 | py | Python | cg_pyrosetta/tests/test_sequence_mover_fac.py | shirtsgroup/cg_pyrosetta | bf69737e9bd88735e17c48629b9bc420e5ca2024 | [
"MIT"
] | null | null | null | cg_pyrosetta/tests/test_sequence_mover_fac.py | shirtsgroup/cg_pyrosetta | bf69737e9bd88735e17c48629b9bc420e5ca2024 | [
"MIT"
] | 17 | 2020-01-22T18:48:04.000Z | 2021-07-22T20:20:41.000Z | cg_pyrosetta/tests/test_sequence_mover_fac.py | shirtsgroup/cg_pyrosetta | bf69737e9bd88735e17c48629b9bc420e5ca2024 | [
"MIT"
] | null | null | null | import numpy as np
import pyrosetta
import pytest
from cg_pyrosetta.CG_monte_carlo import SequenceMoverFactory
import os
import sys
import warnings
current_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.abspath(current_path + '/../PyRosetta4.modified'))
| 28.909091 | 79 | 0.751572 |
8754c125fa1cff09a4ed9e9d885b2be469315ee3 | 6,337 | py | Python | app.py | daylinepp/building_energy_modeling | 9af8753a3b8c8f809c89335051caaec2e80353de | [
"Apache-2.0"
] | null | null | null | app.py | daylinepp/building_energy_modeling | 9af8753a3b8c8f809c89335051caaec2e80353de | [
"Apache-2.0"
] | null | null | null | app.py | daylinepp/building_energy_modeling | 9af8753a3b8c8f809c89335051caaec2e80353de | [
"Apache-2.0"
] | null | null | null | import streamlit as st
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import plotly.express as px
import os
from datetime import datetime
from fbprophet import Prophet
from fbprophet.plot import plot_plotly, plot_components_plotly
import pickle
st.set_page_config(layout="wide") # or "c... | 41.418301 | 148 | 0.655831 |
8755cd1b05ceffa0493eb022ef6a315245e9e2ab | 332 | py | Python | .ycm_extra_conf.py | solson/spideros | a9c34f3aec10283d5623e821d70c2d9fb5fce843 | [
"0BSD"
] | 9 | 2016-07-07T18:12:27.000Z | 2022-03-11T06:41:38.000Z | .ycm_extra_conf.py | solson/spideros | a9c34f3aec10283d5623e821d70c2d9fb5fce843 | [
"0BSD"
] | null | null | null | .ycm_extra_conf.py | solson/spideros | a9c34f3aec10283d5623e821d70c2d9fb5fce843 | [
"0BSD"
] | null | null | null | import os
| 23.714286 | 69 | 0.60241 |
875952b9744afa889de0c9dbfe04a7449fa2ee22 | 35 | py | Python | taboo/defender/__init__.py | haoxizhong/taboo | 62ff4bd172dcdd9ea7be68b6c63a639dcbf2b49d | [
"MIT"
] | null | null | null | taboo/defender/__init__.py | haoxizhong/taboo | 62ff4bd172dcdd9ea7be68b6c63a639dcbf2b49d | [
"MIT"
] | null | null | null | taboo/defender/__init__.py | haoxizhong/taboo | 62ff4bd172dcdd9ea7be68b6c63a639dcbf2b49d | [
"MIT"
] | null | null | null | from .defender import TabooDefender | 35 | 35 | 0.885714 |
875a0a16179324cc82e78ef539254663941e1147 | 28,824 | py | Python | test/integration/test_context.py | buddly27/nomenclator-nuke | 783a9ff9bba0a974cf4532ca5c14bb3fc0312af9 | [
"MIT"
] | 11 | 2021-09-06T15:41:28.000Z | 2022-03-21T23:52:59.000Z | test/integration/test_context.py | buddly27/nomenclator-nuke | 783a9ff9bba0a974cf4532ca5c14bb3fc0312af9 | [
"MIT"
] | 2 | 2021-09-14T02:56:55.000Z | 2021-09-14T03:00:03.000Z | test/integration/test_context.py | buddly27/nomenclator-nuke | 783a9ff9bba0a974cf4532ca5c14bb3fc0312af9 | [
"MIT"
] | 2 | 2021-09-07T06:53:06.000Z | 2021-09-13T19:20:22.000Z | # -*- coding: utf-8 -*-
import os
import pytest
def test_update_comp_scenario1():
"""Return updated context object.
Incoming context does not have any template configs.
"""
import nomenclator.context
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/s... | 34.769602 | 93 | 0.549438 |
875cb8cbaa0fe6b6a1719f73429c58c0603f7d8b | 1,168 | py | Python | contrib/performance/graph.py | eventable/CalendarServer | 384444edb1966b530bc391789afbe3fb9cd6fd3e | [
"Apache-2.0"
] | 1 | 2017-02-18T19:22:19.000Z | 2017-02-18T19:22:19.000Z | contrib/performance/graph.py | eventable/CalendarServer | 384444edb1966b530bc391789afbe3fb9cd6fd3e | [
"Apache-2.0"
] | null | null | null | contrib/performance/graph.py | eventable/CalendarServer | 384444edb1966b530bc391789afbe3fb9cd6fd3e | [
"Apache-2.0"
] | null | null | null | ##
# Copyright (c) 2010-2015 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 28.487805 | 76 | 0.689212 |
875ec9f5980ae4006e483fb09e4a32c7cc1d5558 | 1,599 | py | Python | data_gen.py | GNovich/InsightFace_Pytorch | 30ffb7bf3fddc2d2e6d740b4645926f65ba82f66 | [
"MIT"
] | null | null | null | data_gen.py | GNovich/InsightFace_Pytorch | 30ffb7bf3fddc2d2e6d740b4645926f65ba82f66 | [
"MIT"
] | null | null | null | data_gen.py | GNovich/InsightFace_Pytorch | 30ffb7bf3fddc2d2e6d740b4645926f65ba82f66 | [
"MIT"
] | null | null | null | import os
import pickle
import cv2 as cv
from PIL import Image
from torch.utils.data import Dataset
from torchvision import transforms
from Arc_coll_config import IMG_DIR
from Arc_coll_config import pickle_file
from image_aug import image_aug
# Data augmentation and normalization for training
# Just normalization fo... | 28.052632 | 93 | 0.62414 |
875f48a8750a8948ca911f41ca81eee06ebbf4f4 | 43 | py | Python | doctr/models/artefacts/__init__.py | mzeidhassan/doctr | 14b376e07d31b09b6bd31bceebf6ffb477c30f08 | [
"Apache-2.0"
] | 628 | 2021-02-13T21:49:37.000Z | 2022-03-31T19:48:57.000Z | doctr/models/artefacts/__init__.py | mzeidhassan/doctr | 14b376e07d31b09b6bd31bceebf6ffb477c30f08 | [
"Apache-2.0"
] | 694 | 2021-02-08T15:23:38.000Z | 2022-03-31T07:24:59.000Z | doctr/models/artefacts/__init__.py | mzeidhassan/doctr | 14b376e07d31b09b6bd31bceebf6ffb477c30f08 | [
"Apache-2.0"
] | 90 | 2021-04-28T05:39:02.000Z | 2022-03-31T06:48:36.000Z | from .barcode import *
from .face import *
| 14.333333 | 22 | 0.72093 |
87600684cfa7503e26d347dadd2d740320b15700 | 4,813 | py | Python | limix/mtset/core/splitter_bed.py | fpcasale/limix | a6bc2850f243fe779991bb53a24ddbebe0ab74d2 | [
"Apache-2.0"
] | null | null | null | limix/mtset/core/splitter_bed.py | fpcasale/limix | a6bc2850f243fe779991bb53a24ddbebe0ab74d2 | [
"Apache-2.0"
] | null | null | null | limix/mtset/core/splitter_bed.py | fpcasale/limix | a6bc2850f243fe779991bb53a24ddbebe0ab74d2 | [
"Apache-2.0"
] | null | null | null | import sys
import h5py
import pdb
import scipy as SP
import scipy.stats as ST
import scipy.linalg as LA
import time as TIME
import copy
import warnings
import os
import csv
def splitGeno(
pos,
method='slidingWindow',
size=5e4,
step=None,
annotation_file=None,
cis=1e4,
... | 30.462025 | 101 | 0.571161 |
8760be4a49dcada94b6edc683340f8b51aad145b | 4,021 | py | Python | python/birdVid/jetsonvid.py | plertvilai/birdCam_jetson | 8e74bbc81c289b3e0158edbd471fda0f3ed2b9fb | [
"MIT"
] | null | null | null | python/birdVid/jetsonvid.py | plertvilai/birdCam_jetson | 8e74bbc81c289b3e0158edbd471fda0f3ed2b9fb | [
"MIT"
] | null | null | null | python/birdVid/jetsonvid.py | plertvilai/birdCam_jetson | 8e74bbc81c289b3e0158edbd471fda0f3ed2b9fb | [
"MIT"
] | null | null | null | import os
import signal
import subprocess
import time
import argparse
#--------------Argument Parser-----------------------#
parser = argparse.ArgumentParser(description = "NVIDIA JETSON GSTREAMER VIDEO CONTROLLER")
parser.add_argument("-f", "--format", type=str, default="mp4",help="Select video format: mp4 or avi")
p... | 50.898734 | 108 | 0.671475 |
876363de67d7e19c2bc42088f35ad5bbb3552735 | 1,301 | py | Python | textual_widgets/status_bar.py | Cvaniak/RichWatch | 9190feff4771e2ab66bfc935c18b08832675ae0a | [
"MIT"
] | 19 | 2021-11-06T13:37:06.000Z | 2022-03-03T13:30:14.000Z | textual_widgets/status_bar.py | Cvaniak/RichWatch | 9190feff4771e2ab66bfc935c18b08832675ae0a | [
"MIT"
] | null | null | null | textual_widgets/status_bar.py | Cvaniak/RichWatch | 9190feff4771e2ab66bfc935c18b08832675ae0a | [
"MIT"
] | null | null | null | from textual.widget import Widget
from datetime import datetime, timedelta
import threading
from rich.panel import Panel
from rich.align import Align
| 31.731707 | 82 | 0.64412 |
8763ae338bb7899bfcebd3fd05cc212794853da9 | 550 | py | Python | cnki2bibtex/misc/Configure.py | SNBQT/CNKI_2_BibTeX | 433a7cd5e3b3904cf1ce08943acf0219a46d7f5b | [
"MIT"
] | null | null | null | cnki2bibtex/misc/Configure.py | SNBQT/CNKI_2_BibTeX | 433a7cd5e3b3904cf1ce08943acf0219a46d7f5b | [
"MIT"
] | null | null | null | cnki2bibtex/misc/Configure.py | SNBQT/CNKI_2_BibTeX | 433a7cd5e3b3904cf1ce08943acf0219a46d7f5b | [
"MIT"
] | null | null | null | import os
import re
| 28.947368 | 70 | 0.610909 |
87652a6548a857dcb3c2c0ce34f6a848940238f4 | 40 | py | Python | src/multitfa/data/__init__.py | biosustain/multitfa | ab5a9bf6c19a94a221c9a137cccfcacdc2c1cb50 | [
"Apache-2.0"
] | 4 | 2020-11-27T20:25:57.000Z | 2021-03-12T22:01:34.000Z | src/multitfa/data/__init__.py | biosustain/multitfa | ab5a9bf6c19a94a221c9a137cccfcacdc2c1cb50 | [
"Apache-2.0"
] | 8 | 2020-11-29T23:56:31.000Z | 2021-04-09T11:23:17.000Z | src/multitfa/data/__init__.py | biosustain/multitfa | ab5a9bf6c19a94a221c9a137cccfcacdc2c1cb50 | [
"Apache-2.0"
] | 1 | 2021-11-11T09:22:57.000Z | 2021-11-11T09:22:57.000Z | """Provide data file to the package."""
| 20 | 39 | 0.675 |
87653949be2b4676bd9984a9e858c1f1c37db637 | 226 | py | Python | setup.py | prise6/lincoln-psg-challenge | 5810f51ade6a0d73d5b2ed6e9ff5143fe88701d8 | [
"MIT"
] | null | null | null | setup.py | prise6/lincoln-psg-challenge | 5810f51ade6a0d73d5b2ed6e9ff5143fe88701d8 | [
"MIT"
] | 1 | 2021-03-25T23:11:26.000Z | 2021-03-25T23:11:26.000Z | setup.py | prise6/lincoln-psg-challenge | 5810f51ade6a0d73d5b2ed6e9ff5143fe88701d8 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Tentative pour repondre au challenge psh lincoln',
author='fvi',
license='MIT',
)
| 20.545455 | 67 | 0.676991 |
8766a6e9f00642b5a5fdfbdbd3dd11843e43e5fa | 679 | py | Python | pygmyui/pygmy/urls.py | ParikhKadam/pygmy | eecab36204d41f2c446b86e1e71d9e768b54dd1d | [
"MIT"
] | 571 | 2017-11-17T06:12:21.000Z | 2022-03-04T11:58:23.000Z | pygmyui/pygmy/urls.py | ParikhKadam/pygmy | eecab36204d41f2c446b86e1e71d9e768b54dd1d | [
"MIT"
] | 49 | 2017-11-19T08:25:14.000Z | 2022-02-10T07:55:27.000Z | pygmyui/pygmy/urls.py | ParikhKadam/pygmy | eecab36204d41f2c446b86e1e71d9e768b54dd1d | [
"MIT"
] | 104 | 2018-01-11T20:47:42.000Z | 2022-02-27T17:35:48.000Z |
from django.conf.urls import url
from django.views.generic.base import TemplateView
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^dashboard$', views.dashboard, name='dashboard'),
url(r'^shorten$', views.link_shortener, name='link_shortener'),
url(r'^shorten/(?P<cod... | 39.941176 | 79 | 0.661267 |
8767256081fc71f1d084a564f165d56367f8cd9c | 2,008 | py | Python | test/test_basic_arithmetics.py | jerry-le/computer-vision | bd81a0561680aa976c21c7902cf929257ffeedda | [
"MIT"
] | 1 | 2018-10-14T02:05:58.000Z | 2018-10-14T02:05:58.000Z | test/test_basic_arithmetics.py | jerry-le/computer-vision | bd81a0561680aa976c21c7902cf929257ffeedda | [
"MIT"
] | 1 | 2018-10-05T01:48:48.000Z | 2018-10-05T01:48:48.000Z | test/test_basic_arithmetics.py | jerry-le/computer-vision | bd81a0561680aa976c21c7902cf929257ffeedda | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from unittest import TestCase
from arithmetics import basic_arithmetics as ba
| 37.886792 | 72 | 0.667829 |
87675a6355b680d0db60fc1d904549ff0e81e47c | 217,622 | py | Python | pysnmp-with-texts/XYLAN-CSM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/XYLAN-CSM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/XYLAN-CSM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module XYLAN-CSM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XYLAN-CSM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:44:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 187.605172 | 13,661 | 0.798582 |
876766c561b859c70c957c43e586ea639ba523b8 | 329 | py | Python | libraryuir/web/__init__.py | lijin688/libraryuir_backend | c61f4d01bf8a813fb191752067fbeac49363d5d7 | [
"MIT"
] | null | null | null | libraryuir/web/__init__.py | lijin688/libraryuir_backend | c61f4d01bf8a813fb191752067fbeac49363d5d7 | [
"MIT"
] | null | null | null | libraryuir/web/__init__.py | lijin688/libraryuir_backend | c61f4d01bf8a813fb191752067fbeac49363d5d7 | [
"MIT"
] | null | null | null | import sys
from flask import Flask, request
from flask_cors import *
| 23.5 | 59 | 0.738602 |
8767c2defee1ddba9d152cc3799159ec8c08e936 | 14,354 | py | Python | beschi/writers/swift.py | sjml/beschi | f531c4bb182a1e0386c97a642cbf260b4173fae5 | [
"MIT"
] | 3 | 2022-02-22T12:21:28.000Z | 2022-02-22T12:21:39.000Z | beschi/writers/swift.py | sjml/beschi | f531c4bb182a1e0386c97a642cbf260b4173fae5 | [
"MIT"
] | null | null | null | beschi/writers/swift.py | sjml/beschi | f531c4bb182a1e0386c97a642cbf260b4173fae5 | [
"MIT"
] | 1 | 2022-02-22T23:51:02.000Z | 2022-02-22T23:51:02.000Z | from ..protocol import Protocol, Variable, Struct, NUMERIC_TYPE_SIZES
from ..writer import Writer
from .. import LIB_NAME, LIB_VERSION
LANGUAGE_NAME = "Swift"
| 42.847761 | 156 | 0.558451 |
8767c80a7746be422c50eab9a0a2b3e1924aecc9 | 2,006 | py | Python | modules/vulnerabilities/apache/apache-flink-unauth-rce.py | cckuailong/pocsploit | fe4a3154e59d2bebd55ccfdf62f4f7efb21b5a2a | [
"MIT"
] | 106 | 2022-03-18T06:51:09.000Z | 2022-03-31T19:11:41.000Z | modules/vulnerabilities/apache/apache-flink-unauth-rce.py | cckuailong/pocsploit | fe4a3154e59d2bebd55ccfdf62f4f7efb21b5a2a | [
"MIT"
] | 5 | 2022-03-27T07:37:32.000Z | 2022-03-31T13:56:11.000Z | modules/vulnerabilities/apache/apache-flink-unauth-rce.py | cckuailong/pocsploit | fe4a3154e59d2bebd55ccfdf62f4f7efb21b5a2a | [
"MIT"
] | 30 | 2022-03-21T01:27:08.000Z | 2022-03-31T12:28:01.000Z | import requests
# Vuln Base Info
# Vender Fingerprint
# Proof of Concept
# Exploit, can be same with poc()
# Utils | 27.108108 | 156 | 0.560818 |
87680095c411796de2122adf5dd6e5fdfea46b57 | 6,506 | py | Python | runner.py | RokoMijic/ExperimentRunner | db3a7a4d6fb94a5e04d6e036eb3093d0d6585882 | [
"MIT"
] | 1 | 2020-06-05T14:10:35.000Z | 2020-06-05T14:10:35.000Z | runner.py | RokoMijic/ExperimentRunner | db3a7a4d6fb94a5e04d6e036eb3093d0d6585882 | [
"MIT"
] | null | null | null | runner.py | RokoMijic/ExperimentRunner | db3a7a4d6fb94a5e04d6e036eb3093d0d6585882 | [
"MIT"
] | null | null | null | import joblib
from joblib import Parallel, delayed
from joblib import parallel_backend
import contextlib
from tqdm import tqdm
from itertools import product
from functools import cmp_to_key
from more_itertools import unique_everseen
import pandas as pd
import random
import time
def run_experime... | 45.180556 | 187 | 0.626806 |
8768c12dcf5136a2165949341f7a6e6c3de174c2 | 829 | py | Python | openslides_backend/action/actions/speaker/delete.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 5 | 2020-01-20T13:57:15.000Z | 2021-03-27T14:14:44.000Z | openslides_backend/action/actions/speaker/delete.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 859 | 2020-01-11T22:58:37.000Z | 2022-03-30T14:54:06.000Z | openslides_backend/action/actions/speaker/delete.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 16 | 2020-01-04T20:28:57.000Z | 2022-02-10T12:06:54.000Z | from typing import Any, Dict
from ....models.models import Speaker
from ....permissions.permissions import Permissions
from ....shared.patterns import FullQualifiedId
from ...generics.delete import DeleteAction
from ...util.default_schema import DefaultSchema
from ...util.register import register_action
| 34.541667 | 79 | 0.721351 |
8769ba1e000c17f1074edf2f90c4ce691acd0ade | 76 | py | Python | TSIS_1/topic_1/e.py | GMKanat/PP2_spring | 423617d559c5690f689741aaa152b9fee5082baf | [
"MIT"
] | null | null | null | TSIS_1/topic_1/e.py | GMKanat/PP2_spring | 423617d559c5690f689741aaa152b9fee5082baf | [
"MIT"
] | null | null | null | TSIS_1/topic_1/e.py | GMKanat/PP2_spring | 423617d559c5690f689741aaa152b9fee5082baf | [
"MIT"
] | null | null | null | import math
s = 0
for i in range(1, 11):
s += 1/(i*i)
print(math.sqrt(6*s)) | 15.2 | 22 | 0.592105 |
876a409c57c4b45c28cb622436406f6c3d3033b0 | 418 | py | Python | systemfixtures/tests/test_network.py | alejdg/systemfixtures | d1c42d83c3dca2a36b52e8fc214639ebcb1cd8a1 | [
"MIT"
] | 13 | 2017-01-24T15:25:47.000Z | 2022-01-06T23:56:06.000Z | systemfixtures/tests/test_network.py | cjwatson/systemfixtures | 6ff52e224585d8fab2908dc08a22fe36dcaf93d4 | [
"MIT"
] | 10 | 2017-03-08T09:36:01.000Z | 2022-02-09T11:08:00.000Z | systemfixtures/tests/test_network.py | cjwatson/systemfixtures | 6ff52e224585d8fab2908dc08a22fe36dcaf93d4 | [
"MIT"
] | 5 | 2017-03-08T09:30:51.000Z | 2022-02-05T23:22:25.000Z | import requests
from testtools import TestCase
from ..network import FakeNetwork
| 23.222222 | 56 | 0.672249 |
876b4a85a4bf452833f0afedb2e9e840f2ad8a96 | 8,054 | py | Python | tests/decorators/test_ready_to_wear.py | Kilerd/pydecor | 2a6169150a0a9b6a41fd88a6cb6885520d71e115 | [
"MIT"
] | 29 | 2017-06-13T13:58:06.000Z | 2022-01-18T05:24:28.000Z | tests/decorators/test_ready_to_wear.py | Kilerd/pydecor | 2a6169150a0a9b6a41fd88a6cb6885520d71e115 | [
"MIT"
] | 18 | 2017-09-04T04:43:12.000Z | 2021-05-17T06:32:07.000Z | tests/decorators/test_ready_to_wear.py | Kilerd/pydecor | 2a6169150a0a9b6a41fd88a6cb6885520d71e115 | [
"MIT"
] | 5 | 2019-12-27T01:17:38.000Z | 2020-11-10T06:30:47.000Z | """Test ready-to-use decorators."""
import typing as t
from logging import getLogger
from time import sleep
from unittest.mock import Mock, call
import pytest
from pydecor.caches import FIFOCache, LRUCache, TimedCache
from pydecor.constants import LOG_CALL_FMT_STR
from pydecor.decorators import (
log_call,
i... | 29.610294 | 74 | 0.586913 |
876bb31792d5bda715bba9f6833569c6590f7aa2 | 33,973 | py | Python | src/the_tale/the_tale/game/balance/constants.py | SilentWrangler/the-tale | a121128edd2a9e36133eb047946ccb9593801ea6 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/balance/constants.py | SilentWrangler/the-tale | a121128edd2a9e36133eb047946ccb9593801ea6 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/balance/constants.py | SilentWrangler/the-tale | a121128edd2a9e36133eb047946ccb9593801ea6 | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
TIME_TO_LVL_DELTA: float = 7 #
TIME_TO_LVL_MULTIPLIER: float = 1.02 # ,
INITIAL_HP: int = 500 #
HP_PER_LVL: int = 50 #
MOB_HP_MULTIPLIER: float = 0.25 #
BOSS_HP_MULTIPLIER: float = 0.5 #
TURN_DELTA: int = 10 # -
TURNS_IN... | 50.33037 | 215 | 0.791099 |
876c05276d4206f01cd3257543b6922a7f4d4074 | 5,485 | py | Python | pyissues/base.py | HuangFuSL/python-issues | d7c360e89503add9f56676326d628b80c7a84923 | [
"MIT"
] | null | null | null | pyissues/base.py | HuangFuSL/python-issues | d7c360e89503add9f56676326d628b80c7a84923 | [
"MIT"
] | null | null | null | pyissues/base.py | HuangFuSL/python-issues | d7c360e89503add9f56676326d628b80c7a84923 | [
"MIT"
] | null | null | null | """Base module of pyissues package
This module provides data model for issues and comments from the Python Issue
Tracker (https://bugs.python.org) with methods to save the issue in
base64-encoded XML format.
"""
from __future__ import annotations
import base64
import warnings
from typing import List
import lxml.etre... | 32.455621 | 86 | 0.572288 |
876cdd25bd6c170926affd14714731d33eb9c2f7 | 1,387 | py | Python | proteinStructureParser.py | fabridigua/ML-1D-Convolutional-NN-for-Proteins-Solvent-Accessibility-Prediction | 9e1b1d062d0195216999066cafa22ecdd355e4f9 | [
"Apache-2.0"
] | 2 | 2018-06-22T19:43:03.000Z | 2018-11-13T22:49:53.000Z | proteinStructureParser.py | fabridigua/ML-1D-Convolutional-NN-for-Proteins-Solvent-Accessibility-Prediction | 9e1b1d062d0195216999066cafa22ecdd355e4f9 | [
"Apache-2.0"
] | null | null | null | proteinStructureParser.py | fabridigua/ML-1D-Convolutional-NN-for-Proteins-Solvent-Accessibility-Prediction | 9e1b1d062d0195216999066cafa22ecdd355e4f9 | [
"Apache-2.0"
] | 1 | 2020-07-05T13:30:02.000Z | 2020-07-05T13:30:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 16 19:48:03 2018
@author: fabrizio
OLD: it is only a parser of dataset metadata
"""
import numpy as np
import random as rd
file='cullpdb+profile_6133_filtered.npy'
dataset = np.load('data/'+file)
print(('-'*10)+'dataset: '+file+('-'*10))
print('s... | 24.333333 | 131 | 0.596972 |
876cf5fd2d08bb1b880b8eefb9e65e2e38aa8a0b | 5,399 | py | Python | virgil_crypto/tests/card_crypto_test.py | VirgilSecurity/crypto-python | dce0a816c76201631917777fd11a841a27b484ba | [
"BSD-3-Clause"
] | 9 | 2016-11-07T07:01:04.000Z | 2021-08-31T06:58:43.000Z | virgil_crypto/tests/card_crypto_test.py | VirgilSecurity/crypto-python | dce0a816c76201631917777fd11a841a27b484ba | [
"BSD-3-Clause"
] | 2 | 2020-04-10T08:14:05.000Z | 2021-03-24T02:49:08.000Z | virgil_crypto/tests/card_crypto_test.py | VirgilSecurity/crypto-python | dce0a816c76201631917777fd11a841a27b484ba | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2016-2018 Virgil Security Inc.
#
# Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistribution... | 46.543103 | 128 | 0.764586 |
876d6a278d755862379ea5ca9e828a1fe542edf0 | 171 | py | Python | webserver/moduler/controller/controller.py | akhtarnabeel/ecoforecastCS | 31bfeb3d663fb113bac9efe86caea4bf908fa434 | [
"MIT"
] | null | null | null | webserver/moduler/controller/controller.py | akhtarnabeel/ecoforecastCS | 31bfeb3d663fb113bac9efe86caea4bf908fa434 | [
"MIT"
] | null | null | null | webserver/moduler/controller/controller.py | akhtarnabeel/ecoforecastCS | 31bfeb3d663fb113bac9efe86caea4bf908fa434 | [
"MIT"
] | 2 | 2020-05-01T17:58:17.000Z | 2020-07-27T20:38:40.000Z | #!usr/bin/python
import configparser; config = configparser.ConfigParser();config.read('config.cfg')
if __name__=="__main__":
print type(config['web-server']['port'])
| 21.375 | 83 | 0.730994 |
876eb547b3459facec759055ce7fa56b3f74684a | 428 | py | Python | docs/source/conf.py | macro1/usps-client | 2da52e898ec8cb7619194a4200aa1c55c1312a66 | [
"ISC"
] | null | null | null | docs/source/conf.py | macro1/usps-client | 2da52e898ec8cb7619194a4200aa1c55c1312a66 | [
"ISC"
] | null | null | null | docs/source/conf.py | macro1/usps-client | 2da52e898ec8cb7619194a4200aa1c55c1312a66 | [
"ISC"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
from usps_client.version import VERSION as version
release = version
project = "usps-client"
copyright = "2019, macro1"
author = "macro1"
extensions = ["sphinx.ext.autodoc", "sphinxcontrib.apidoc"]
templates_path = ["_templates"]
exclude_patterns = []
html_... | 22.526316 | 59 | 0.752336 |
876ede29782dcc03bd77b7f37401acb9803a8eda | 4,578 | py | Python | uavnoma/generate_values.py | fakenmc/uavnoma | b2b2729417c66cde93cd1692e539d565dacbf52c | [
"MIT"
] | 8 | 2021-11-26T06:40:01.000Z | 2022-03-27T05:52:13.000Z | uavnoma/generate_values.py | fakenmc/uavnoma | b2b2729417c66cde93cd1692e539d565dacbf52c | [
"MIT"
] | 6 | 2021-06-24T23:49:39.000Z | 2022-02-20T09:27:10.000Z | uavnoma/generate_values.py | fakenmc/uavnoma | b2b2729417c66cde93cd1692e539d565dacbf52c | [
"MIT"
] | 3 | 2021-09-25T13:45:48.000Z | 2021-12-14T11:52:18.000Z | """
This module contains functions to generate simulation parameters.
"""
import numpy as np
from numpy import sqrt
import math
def random_position_uav(number_UAV, radius_UAV, uav_height):
"""Returns a random UAV position based on 3D Cartesian coordinates.
x_r: x-axis | y_r: y-axis | z_r: height... | 28.434783 | 137 | 0.647007 |
876f9687ce17964a9b95e1f021971cdbe5981ac3 | 6,888 | py | Python | utils/cwbqpe.py | tingsyo/qpetw | e0f87a401649b367506370beeffaeffcc9484407 | [
"Unlicense"
] | null | null | null | utils/cwbqpe.py | tingsyo/qpetw | e0f87a401649b367506370beeffaeffcc9484407 | [
"Unlicense"
] | null | null | null | utils/cwbqpe.py | tingsyo/qpetw | e0f87a401649b367506370beeffaeffcc9484407 | [
"Unlicense"
] | null | null | null | import os, gzip, struct
import numpy as np
| 47.178082 | 233 | 0.558072 |
87717e4313134831e035a396909646739e4f9b6f | 676 | py | Python | main.py | SuperGarryGamer/open-salami | 82c77cfe32718da49cdfdbfdba668b278be80924 | [
"BSD-3-Clause"
] | null | null | null | main.py | SuperGarryGamer/open-salami | 82c77cfe32718da49cdfdbfdba668b278be80924 | [
"BSD-3-Clause"
] | null | null | null | main.py | SuperGarryGamer/open-salami | 82c77cfe32718da49cdfdbfdba668b278be80924 | [
"BSD-3-Clause"
] | null | null | null | import time
import uasyncio
from machine import Pin
import driver
FRAMERATE = 30
BOUNCE_DELAY = 0.05
DISPLAY = driver.Display(0x3C)
last_bounce_time = 0
DISPLAY.draw_bitmap(0, 0, '/title.pbm')
pointer_spr = driver.Sprite(DISPLAY, 30, 42)
pointer_spr.load_from_pbm('/pointer.pbm')
DISPLAY.on()
A_PIN = Pin(0, Pin.IN... | 18.27027 | 46 | 0.686391 |
87719faaac0b9d47604da6e340200e1581603f56 | 1,098 | py | Python | setup.py | hrpzcf/vidtoch | f7ef0253437223be9a6a1a6687bb0aec469738f2 | [
"MIT"
] | 1 | 2021-12-27T08:27:01.000Z | 2021-12-27T08:27:01.000Z | setup.py | hrpzcf/vidtoch | f7ef0253437223be9a6a1a6687bb0aec469738f2 | [
"MIT"
] | null | null | null | setup.py | hrpzcf/vidtoch | f7ef0253437223be9a6a1a6687bb0aec469738f2 | [
"MIT"
] | null | null | null | # coding: utf-8
from setuptools import find_packages, setup
from vidtoch import AUTHOR, EMAIL, NAME, VERSION, WEBSITE
description = ""
try:
with open("README.md", "r", encoding="utf-8") as mdfile:
long_description = mdfile.read()
except Exception:
long_description = description
setup(
name=NAME,... | 28.153846 | 60 | 0.659381 |
8772111eedb044054a5137527f58f3cbbf8cf376 | 259 | py | Python | NPS Exercise Files/Chapter 5/5-8.py | coderXeno/eric-matthes-py-book-solutions | 791a5f82f9d3bebcd8be919d54a7b592664c24d5 | [
"MIT"
] | null | null | null | NPS Exercise Files/Chapter 5/5-8.py | coderXeno/eric-matthes-py-book-solutions | 791a5f82f9d3bebcd8be919d54a7b592664c24d5 | [
"MIT"
] | null | null | null | NPS Exercise Files/Chapter 5/5-8.py | coderXeno/eric-matthes-py-book-solutions | 791a5f82f9d3bebcd8be919d54a7b592664c24d5 | [
"MIT"
] | null | null | null | usernames = ["rx","bb123","admin","helloooo","lolbro","uvvv"]
for name in usernames:
if name == "admin":
print("Hello admin, would you like to see a status report?")
else:
print("Hello "+name+", thank you for logging in again.") | 37 | 69 | 0.602317 |
8772a816426c89d517e6ce3effa48bd93c2dd2bb | 433 | py | Python | appg/api_messages.py | poxstone/appg | fe59b83d0f497e7d6033bde601bb1f61c95aba0c | [
"CNRI-Python",
"Condor-1.1",
"Naumen",
"Linux-OpenIB",
"MS-PL"
] | null | null | null | appg/api_messages.py | poxstone/appg | fe59b83d0f497e7d6033bde601bb1f61c95aba0c | [
"CNRI-Python",
"Condor-1.1",
"Naumen",
"Linux-OpenIB",
"MS-PL"
] | null | null | null | appg/api_messages.py | poxstone/appg | fe59b83d0f497e7d6033bde601bb1f61c95aba0c | [
"CNRI-Python",
"Condor-1.1",
"Naumen",
"Linux-OpenIB",
"MS-PL"
] | null | null | null | from protorpc import messages
import endpoints
STORED_GREETINGS = GreetingCollection(items=[
Greeting(message='hello world!'),
Greeting(message='goodbye world!'),
]) | 25.470588 | 61 | 0.734411 |
87738f3cbba8bb6fb3bd35ef57cb06f1d963828d | 508 | py | Python | minizoo/templates/codes/prophet.py | kasey-/minizoo | 4b24ab0b5760c0ac3f9b6e4c47f1bf6c4ca7bb1a | [
"Unlicense"
] | null | null | null | minizoo/templates/codes/prophet.py | kasey-/minizoo | 4b24ab0b5760c0ac3f9b6e4c47f1bf6c4ca7bb1a | [
"Unlicense"
] | 4 | 2020-07-16T17:59:25.000Z | 2022-02-12T06:33:52.000Z | minizoo/templates/codes/prophet.py | kasey-/minizoo | 4b24ab0b5760c0ac3f9b6e4c47f1bf6c4ca7bb1a | [
"Unlicense"
] | null | null | null | #Source: https://facebook.github.io/prophet/docs/quick_start.html
import pandas as pd
from fbprophet import Prophet
df = pd.read_csv('./example_wp_log_peyton_manning.csv')
df = df.rename(columns={df.columns[0]:"ds", df.columns[1]:"y"})
df.head()
m = Prophet()
m.fit(df)
future = m.make_future_dataframe(periods=365)
... | 22.086957 | 65 | 0.724409 |
8774d2ff578357700ec356c81bc564547e7db736 | 29 | py | Python | app/modules/__init__.py | janlycn/flask-restful-demo | 905301fe62cdbb17ddccc80aca0d9d16ec43dc64 | [
"Apache-2.0"
] | 1 | 2018-07-20T03:37:40.000Z | 2018-07-20T03:37:40.000Z | app/modules/__init__.py | janlycn/flask-restful-demo | 905301fe62cdbb17ddccc80aca0d9d16ec43dc64 | [
"Apache-2.0"
] | null | null | null | app/modules/__init__.py | janlycn/flask-restful-demo | 905301fe62cdbb17ddccc80aca0d9d16ec43dc64 | [
"Apache-2.0"
] | null | null | null | from lib.extensions import db | 29 | 29 | 0.862069 |
87798b38a92c9bf4f78ce7b360d570618511a1be | 1,371 | py | Python | config/urls.py | gurnitha/2022-django-eshopper | eb570215fffb67f1061cb1c32f9dd16a9dfc9f52 | [
"Unlicense"
] | null | null | null | config/urls.py | gurnitha/2022-django-eshopper | eb570215fffb67f1061cb1c32f9dd16a9dfc9f52 | [
"Unlicense"
] | null | null | null | config/urls.py | gurnitha/2022-django-eshopper | eb570215fffb67f1061cb1c32f9dd16a9dfc9f52 | [
"Unlicense"
] | null | null | null | # confit/urls.py
# Django modules
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
# Django locals
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('shop.urls')),
path('', include('blog.urls... | 32.642857 | 82 | 0.673961 |
877a802a5b8ecdef04600c8ce73a6b2f8a7bbe52 | 1,327 | py | Python | tests/transformers/add_key_values_test.py | santunioni/transformer | a34b8b40cba81382c8483d590050c3e36cee5bff | [
"MIT"
] | 1 | 2022-02-21T22:15:08.000Z | 2022-02-21T22:15:08.000Z | tests/transformers/add_key_values_test.py | santunioni/Transformer | a34b8b40cba81382c8483d590050c3e36cee5bff | [
"MIT"
] | null | null | null | tests/transformers/add_key_values_test.py | santunioni/Transformer | a34b8b40cba81382c8483d590050c3e36cee5bff | [
"MIT"
] | null | null | null | from typing import Any, Dict
import pytest
from transformer.transformers.add_key import AddKeyValues, AddKeyValuesConfig
def test_empiricus_dinamize_manipulation():
"""
Essa teste testa a demanda que nos passaram sobre como manipular dados que vo parar no Dinamize, para
a esteira da Empiricus.
"""... | 26.54 | 106 | 0.629239 |
877a9c066e653111dc5487f48676ab61735f5176 | 173 | py | Python | users/forms.py | frankdevelopero/django-frikr | 1845ea0a571f0285afc042618aacb6d7d87d7353 | [
"MIT"
] | null | null | null | users/forms.py | frankdevelopero/django-frikr | 1845ea0a571f0285afc042618aacb6d7d87d7353 | [
"MIT"
] | null | null | null | users/forms.py | frankdevelopero/django-frikr | 1845ea0a571f0285afc042618aacb6d7d87d7353 | [
"MIT"
] | null | null | null | from django import forms
| 24.714286 | 73 | 0.745665 |
5e3ee065e9e5db693cfc3ec2469a37a2244d540c | 427 | py | Python | users/tests.py | Gsopel/django-blog-app | 07fa110ae74171133acb62526f4f9886b01c73b8 | [
"MIT"
] | null | null | null | users/tests.py | Gsopel/django-blog-app | 07fa110ae74171133acb62526f4f9886b01c73b8 | [
"MIT"
] | 7 | 2020-02-11T23:13:36.000Z | 2022-03-11T23:30:09.000Z | users/tests.py | Gsopel/django-blog-app | 07fa110ae74171133acb62526f4f9886b01c73b8 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import resolve, reverse
from .views import signup | 30.5 | 52 | 0.714286 |
5e3fb62f1b3bbafa427fe26bd9b2c0bfdf528e3c | 2,048 | py | Python | sys_app/views/user.py | sf0402/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 6 | 2019-12-17T03:16:38.000Z | 2020-07-10T10:45:24.000Z | sys_app/views/user.py | fearlessfei/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 5 | 2021-03-19T01:10:11.000Z | 2022-02-10T13:37:29.000Z | sys_app/views/user.py | sf0402/horse-admin | dd3f5c2d317763a1daeef40ce7833371e6ed5ce0 | [
"MIT"
] | 1 | 2020-11-10T07:54:52.000Z | 2020-11-10T07:54:52.000Z | # *-* coding: utf-8 *-*
from django.contrib.auth import get_user_model
from .base import AuthAPIViewSet
from utils.perm import HasPerm
from sys_app.serializers.user import UserSerializer
User = get_user_model()
| 35.310345 | 85 | 0.657227 |
5e404d129d5d22feb5517829a79621dcc5b12ab8 | 238 | py | Python | output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_max_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_max_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_max_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.date.schema_instance.nistschema_sv_iv_list_date_max_length_3_xsd.nistschema_sv_iv_list_date_max_length_3 import NistschemaSvIvListDateMaxLength3
__all__ = [
"NistschemaSvIvListDateMaxLength3",
]
| 39.666667 | 182 | 0.886555 |
5e408b3e9e6971147d3597ad584a01e192b436c3 | 1,602 | py | Python | crslab/system/utils/functions.py | Zyh716/WSDM2022-C2CRS | 8ef2fa7c44bdba1799ab79f379ae7394bd468c02 | [
"MIT"
] | 4 | 2022-03-24T02:14:50.000Z | 2022-03-30T02:28:19.000Z | crslab/system/utils/functions.py | RUCAIBox/WSDM2022-C2CRS | 8ef2fa7c44bdba1799ab79f379ae7394bd468c02 | [
"MIT"
] | null | null | null | crslab/system/utils/functions.py | RUCAIBox/WSDM2022-C2CRS | 8ef2fa7c44bdba1799ab79f379ae7394bd468c02 | [
"MIT"
] | 2 | 2022-03-23T02:24:24.000Z | 2022-03-28T12:45:43.000Z | # @Time : 2020/11/22
# @Author : Kun Zhou
# @Email : francis_kun_zhou@163.com
# UPDATE:
# @Time : 2020/11/24, 2020/12/18
# @Author : Kun Zhou, Xiaolei Wang
# @Email : francis_kun_zhou@163.com, wxl1999@foxmail.com
import torch
def compute_grad_norm(parameters, norm_type=2.0):
"""
Compute norm over grad... | 29.666667 | 80 | 0.639201 |
5e40c9d94799eb50a25ba913c1d3c5522a23b1b9 | 1,465 | py | Python | common/python/linux_tail_f.py | EscapeLife/docker-hub-builder | c26422d63ca83c51e4d2c740c09ea9e1578b8dbf | [
"Apache-2.0"
] | 34 | 2020-04-22T04:33:44.000Z | 2022-02-16T03:53:53.000Z | common/python/linux_tail_f.py | EscapeLife/docker-hub-builder | c26422d63ca83c51e4d2c740c09ea9e1578b8dbf | [
"Apache-2.0"
] | 29 | 2020-01-21T04:06:45.000Z | 2021-08-19T10:15:03.000Z | common/python/linux_tail_f.py | EscapeLife/docker-hub-builder | c26422d63ca83c51e4d2c740c09ea9e1578b8dbf | [
"Apache-2.0"
] | 10 | 2020-04-28T00:09:59.000Z | 2021-11-16T12:11:06.000Z | #!/usr/bin/env python
# encoding: utf-8
#========================================================================================================
# [seek()]
# file.seek(off, whence=0)
# off
# whencewhence012
#========================================================================================================
im... | 26.636364 | 105 | 0.458703 |
5e40d95adf747944de112cce11bfc7680b5c7138 | 15 | py | Python | src/myapp/apps/__init__.py | JasonGiedymin/Flask-Module-Scaffold | b8d88bf81c0bca5f8f151ffd2d94ef339fe445c4 | [
"BSD-3-Clause"
] | 4 | 2015-09-09T23:57:54.000Z | 2019-06-21T12:32:36.000Z | src/myapp/apps/__init__.py | JasonGiedymin/Flask-Module-Scaffold | b8d88bf81c0bca5f8f151ffd2d94ef339fe445c4 | [
"BSD-3-Clause"
] | null | null | null | src/myapp/apps/__init__.py | JasonGiedymin/Flask-Module-Scaffold | b8d88bf81c0bca5f8f151ffd2d94ef339fe445c4 | [
"BSD-3-Clause"
] | null | null | null | # Leave Empty # | 15 | 15 | 0.666667 |
5e4245b835f369ca5ba78f02ae78ba1152a31da4 | 7,430 | py | Python | hyperion/model/tests/test_amr_checks.py | christopherlovell/hyperion | f65c253abf0bdf174a9302666bc2fec57f7ae7da | [
"BSD-2-Clause"
] | 37 | 2015-01-29T20:58:04.000Z | 2022-03-10T23:36:39.000Z | hyperion/model/tests/test_amr_checks.py | christopherlovell/hyperion | f65c253abf0bdf174a9302666bc2fec57f7ae7da | [
"BSD-2-Clause"
] | 83 | 2015-01-07T11:04:08.000Z | 2022-02-16T16:26:33.000Z | hyperion/model/tests/test_amr_checks.py | christopherlovell/hyperion | f65c253abf0bdf174a9302666bc2fec57f7ae7da | [
"BSD-2-Clause"
] | 17 | 2015-04-21T13:17:41.000Z | 2021-12-06T02:42:20.000Z | from distutils.version import LooseVersion
import pytest
import numpy as np
from .. import Model, ModelOutput
from .test_helpers import random_id, get_test_dust
from ...grid import AMRGrid
try:
import yt
except:
YT_VERSION = None
else:
if LooseVersion(yt.__version__) >= LooseVersion('3'):
YT_VERS... | 31.218487 | 179 | 0.630148 |
5e4320c42b205cf8fac729bae60ca26c77a94436 | 2,149 | py | Python | time_window_generator.py | alphagov/blocker | 7de98d38bf52e23d9a29c9cea2d956333b28f2dc | [
"MIT"
] | null | null | null | time_window_generator.py | alphagov/blocker | 7de98d38bf52e23d9a29c9cea2d956333b28f2dc | [
"MIT"
] | null | null | null | time_window_generator.py | alphagov/blocker | 7de98d38bf52e23d9a29c9cea2d956333b28f2dc | [
"MIT"
] | 2 | 2020-08-12T20:38:39.000Z | 2021-04-10T19:30:16.000Z | #!/usr/bin/env python
from datetime import datetime, timedelta, time
from day import Day
from window import Window
__author__ = "Aditya Pahuja"
__copyright__ = "Copyright (c) 2020"
__maintainer__ = "Aditya Pahuja"
__email__ = "aditya.s.pahuja@gmail.com"
__status__ = "Production"
| 42.137255 | 134 | 0.672871 |
5e4538ae3c50b4c457a9fa19bf22b5b1a7b666ee | 1,976 | py | Python | tests/test_numeric_batchnorm_v2.py | DTennant/Synchronized-BatchNorm-PyTorch | 8cba183f50b630b1c8baa33ddb2fafac61219acd | [
"MIT"
] | 1,443 | 2018-01-27T12:35:13.000Z | 2022-03-31T07:17:45.000Z | tests/test_numeric_batchnorm_v2.py | DTennant/Synchronized-BatchNorm-PyTorch | 8cba183f50b630b1c8baa33ddb2fafac61219acd | [
"MIT"
] | 45 | 2018-04-10T04:26:37.000Z | 2021-09-05T05:16:02.000Z | tests/test_numeric_batchnorm_v2.py | DTennant/Synchronized-BatchNorm-PyTorch | 8cba183f50b630b1c8baa33ddb2fafac61219acd | [
"MIT"
] | 182 | 2018-02-11T10:17:46.000Z | 2022-03-26T23:31:13.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : test_numeric_batchnorm_v2.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 11/01/2018
#
# Distributed under terms of the MIT license.
"""
Test the numerical implementation of batch normalization.
Author: acgtyrant.
See also: https://github... | 31.365079 | 80 | 0.697368 |
5e473bcf98d67cb78caa5464367510273160301b | 1,245 | py | Python | tools/platform-tools/systrace/catapult/common/py_utils/py_utils/refactor/annotated_symbol/base_symbol.py | rutherlesdev/android-spyware | ddcf6b73f48d78cbb201e749c1e5941f8efd90e6 | [
"MIT"
] | 138 | 2020-12-09T07:08:43.000Z | 2022-03-30T22:32:09.000Z | tools/platform-tools/systrace/catapult/common/py_utils/py_utils/refactor/annotated_symbol/base_symbol.py | rutherlesdev/android-spyware | ddcf6b73f48d78cbb201e749c1e5941f8efd90e6 | [
"MIT"
] | 20 | 2020-04-08T13:50:39.000Z | 2022-03-31T01:01:54.000Z | tools/platform-tools/systrace/catapult/common/py_utils/py_utils/refactor/annotated_symbol/base_symbol.py | rutherlesdev/android-spyware | ddcf6b73f48d78cbb201e749c1e5941f8efd90e6 | [
"MIT"
] | 43 | 2020-12-11T09:43:14.000Z | 2022-03-08T12:56:30.000Z | # Copyright 2015 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 division
from __future__ import print_function
from py_utils.refactor import snippet
from six.m... | 30.365854 | 72 | 0.715663 |
5e47d938019cb31787b0c2f9b6c9f2ffa216e83a | 2,081 | py | Python | learningPygame/Tyler/04-BouncingBall/BouncingBall.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Tyler/04-BouncingBall/BouncingBall.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Tyler/04-BouncingBall/BouncingBall.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | import pygame
import sys
import random
# TODO: Create a Ball class.
# TODO: Member variables: screen, color, x, y, radius, speed_x, speed_y
# TODO: Methods __init__, draw, move
main()
| 26.0125 | 240 | 0.588659 |
5e4902a1c36ea35fcc7670742a835b7d87381ad7 | 6,628 | py | Python | ground_truth_labeling_jobs/video_annotations_quality_assessment/quality_metrics_cli.py | fhirschmann/amazon-sagemaker-examples | bb4a4ed78cd4f3673bd6894f0b92ab08aa7f8f29 | [
"Apache-2.0"
] | 2 | 2021-07-20T18:25:10.000Z | 2022-01-20T00:04:07.000Z | ground_truth_labeling_jobs/video_annotations_quality_assessment/quality_metrics_cli.py | fhirschmann/amazon-sagemaker-examples | bb4a4ed78cd4f3673bd6894f0b92ab08aa7f8f29 | [
"Apache-2.0"
] | 1 | 2021-03-25T18:31:29.000Z | 2021-03-25T18:31:29.000Z | ground_truth_labeling_jobs/video_annotations_quality_assessment/quality_metrics_cli.py | fhirschmann/amazon-sagemaker-examples | bb4a4ed78cd4f3673bd6894f0b92ab08aa7f8f29 | [
"Apache-2.0"
] | 1 | 2021-04-10T01:56:37.000Z | 2021-04-10T01:56:37.000Z | import os
import json
import numpy as np
import argh
import boto3
from argh import arg
from tqdm import tqdm
from scipy.spatial import distance
from plotting_funcs import *
s3 = boto3.client('s3')
def get_problem_frames(lab_frame, flawed_labels, size_thresh=.25, iou_thresh=.4, embed=False, imgs=None, verbose=False, e... | 47.007092 | 260 | 0.62764 |
5e4a29e0939713e9060c029e4a316cd3042fdaf4 | 935 | py | Python | 2021-09-15/drafts/get_data_CT.py | cannlytics/cannabis-data-science | 8ff11330692d3c5a39e3a9f9843af917caf1a720 | [
"MIT"
] | 6 | 2021-02-17T02:27:28.000Z | 2022-02-21T20:35:39.000Z | 2021/2021-09-15/drafts/get_data_CT.py | GrahamAnto/cannabis-data-science | 1d5f3085e7b2858b6791840b90335be4669268b3 | [
"MIT"
] | null | null | null | 2021/2021-09-15/drafts/get_data_CT.py | GrahamAnto/cannabis-data-science | 1d5f3085e7b2858b6791840b90335be4669268b3 | [
"MIT"
] | 2 | 2021-12-22T17:18:18.000Z | 2022-03-10T17:36:17.000Z | """
Get Cannabis Data for Connecticut | Cannlytics
Author: Keegan Skeate <keegan@cannlytics.com>
Created: 9/14//2021
Updated: 9/15/2021
License: MIT License <https://opensource.org/licenses/MIT>
"""
# External imports
import pandas as pd
from dotenv import dotenv_values
from fredapi import Fred
state_data = {
'p... | 30.16129 | 112 | 0.625668 |
5e4a3e9a66a68d2616331c835300d200618cdcd2 | 3,483 | py | Python | tests/test_payment.py | istommao/wechatkit | e46341c29a69805a8e4c425dc620039fb06b1e45 | [
"MIT"
] | 11 | 2016-09-10T02:21:47.000Z | 2017-10-18T14:49:41.000Z | tests/test_payment.py | istommao/wechatkit | e46341c29a69805a8e4c425dc620039fb06b1e45 | [
"MIT"
] | 5 | 2016-09-10T03:47:26.000Z | 2019-10-02T19:07:50.000Z | tests/test_payment.py | istommao/wechatkit | e46341c29a69805a8e4c425dc620039fb06b1e45 | [
"MIT"
] | 1 | 2016-09-10T02:40:29.000Z | 2016-09-10T02:40:29.000Z | """Test wechat payment module."""
from unittest import TestCase
from unittest.mock import patch
from wechatkit.exceptions import WechatKitException
from wechatkit.payment import WechatPay
| 31.098214 | 75 | 0.585989 |
5e4a7fc5fcab7bdd5a11e8b8c9410751f69ce97d | 1,555 | py | Python | contests_atcoder/abc175/abc175_d.py | takelifetime/competitive-programming | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | [
"BSD-2-Clause"
] | null | null | null | contests_atcoder/abc175/abc175_d.py | takelifetime/competitive-programming | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | [
"BSD-2-Clause"
] | 1 | 2021-01-02T06:36:51.000Z | 2021-01-02T06:36:51.000Z | contests_atcoder/abc175/abc175_d.py | takelifetime/competitive-programming | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | [
"BSD-2-Clause"
] | null | null | null | from itertools import accumulate,chain,combinations,groupby,permutations,product
from collections import deque,Counter
from bisect import bisect_left,bisect_right
from math import gcd,sqrt,sin,cos,tan,degrees,radians
from fractions import Fraction
from decimal import Decimal
import sys
input = lambda: sys.stdin.readlin... | 26.810345 | 108 | 0.557556 |
5e4ce3937f385a6c6a274b4bf9572ffcab45fa8a | 1,131 | py | Python | aquami3D/meshgrid test.py | JStuckner/Aquami3D | 72dd59f2b62b008b48d3c6c25db76aa0c7607020 | [
"MIT"
] | null | null | null | aquami3D/meshgrid test.py | JStuckner/Aquami3D | 72dd59f2b62b008b48d3c6c25db76aa0c7607020 | [
"MIT"
] | null | null | null | aquami3D/meshgrid test.py | JStuckner/Aquami3D | 72dd59f2b62b008b48d3c6c25db76aa0c7607020 | [
"MIT"
] | null | null | null | import numpy as np
import time
#https://stackoverflow.com/questions/8956832/python-out-of-memory-on-large-csv-file-numpy?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
t0 = time.time()
path = r'E:\E_Documents\Research\Computer Vision Collaboration\Erica Lilleodden/indentor dump.pov'
# OVITO... | 40.392857 | 162 | 0.664898 |
5e4e4c81732ae52aa5f8c6cb2cea24ab58ab47d4 | 1,263 | py | Python | tests/test_plugin.py | winmasta/pylint-exception-var-name-plugin | 32d833970bd5352ce8f4d1defff2e5cfdd78dc96 | [
"MIT"
] | null | null | null | tests/test_plugin.py | winmasta/pylint-exception-var-name-plugin | 32d833970bd5352ce8f4d1defff2e5cfdd78dc96 | [
"MIT"
] | null | null | null | tests/test_plugin.py | winmasta/pylint-exception-var-name-plugin | 32d833970bd5352ce8f4d1defff2e5cfdd78dc96 | [
"MIT"
] | null | null | null | import astroid
import pylint.testutils
from pylint_exception_var_name_plugin import checker
| 26.3125 | 107 | 0.529691 |
5e4f11a8a0fef4e9e5dd4b645d0aefb0cd6c996e | 439 | py | Python | polymers/poly_hgraph/__init__.py | siboehm/hgraph2graph | 91d0dc763be1f9bc97e0c2473b0a00a058b4a9f9 | [
"MIT"
] | null | null | null | polymers/poly_hgraph/__init__.py | siboehm/hgraph2graph | 91d0dc763be1f9bc97e0c2473b0a00a058b4a9f9 | [
"MIT"
] | null | null | null | polymers/poly_hgraph/__init__.py | siboehm/hgraph2graph | 91d0dc763be1f9bc97e0c2473b0a00a058b4a9f9 | [
"MIT"
] | null | null | null | from poly_hgraph.mol_graph import MolGraph
from poly_hgraph.encoder import HierMPNEncoder
from poly_hgraph.decoder import HierMPNDecoder
from poly_hgraph.vocab import Vocab, PairVocab, common_atom_vocab
from poly_hgraph.hgnn import HierVAE, HierVGNN, HierCondVGNN
from poly_hgraph.dataset import (
MoleculeDataset,
... | 33.769231 | 65 | 0.835991 |
5e505fb7521795a28e6d07ae55611fcebb7d3571 | 2,043 | py | Python | setup.py | HynekPetrak/sshame | 2c0d55dbfa87a06f3d3f0e7de697b0f97cca7fb8 | [
"MIT"
] | 41 | 2019-08-26T12:29:41.000Z | 2022-03-31T22:02:46.000Z | setup.py | HynekPetrak/sshame | 2c0d55dbfa87a06f3d3f0e7de697b0f97cca7fb8 | [
"MIT"
] | null | null | null | setup.py | HynekPetrak/sshame | 2c0d55dbfa87a06f3d3f0e7de697b0f97cca7fb8 | [
"MIT"
] | 12 | 2019-09-11T16:21:46.000Z | 2022-03-27T02:15:22.000Z | #!/usr/bin/env python3
PROJECT = 'sshame'
VERSION = '0.11'
from setuptools import setup, find_packages
try:
long_description = open('README.md', 'rt').read()
except IOError:
long_description = ''
setup(
name=PROJECT,
version=VERSION,
description='SSH public key brute force tool',
long_desc... | 25.860759 | 73 | 0.547234 |
5e52b3ff840b6ce7077ecfa1de37a870b3194b6f | 3,525 | py | Python | src/lsys/lturtle.py | robertkist/lsystems_py | 9b0e3bb4530c9a3919da2c77b5da548fb50294d6 | [
"MIT"
] | null | null | null | src/lsys/lturtle.py | robertkist/lsystems_py | 9b0e3bb4530c9a3919da2c77b5da548fb50294d6 | [
"MIT"
] | null | null | null | src/lsys/lturtle.py | robertkist/lsystems_py | 9b0e3bb4530c9a3919da2c77b5da548fb50294d6 | [
"MIT"
] | null | null | null | import math
from typing import Union, Any
def left(self) -> None:
"""Rotates the turtle counter-clockwise"""
self.__rotate_func(self.__angle)
def right(self) -> None:
"""Rotates the turtle clockwise"""
self.__rotate_func(-self.__angle)
def __set_angle(self, a: float) -> N... | 34.558824 | 153 | 0.571348 |
5e53d71d9e98a6f966c437052f354783b4dab611 | 1,120 | py | Python | Flask/NationalEducationRadio/NationalEducationRadio/models/units/login.py | Jessieluu/WIRL_national_education_radio | edb8b63c25bc7bd5a9a7d074173f02913971f8a7 | [
"MIT"
] | null | null | null | Flask/NationalEducationRadio/NationalEducationRadio/models/units/login.py | Jessieluu/WIRL_national_education_radio | edb8b63c25bc7bd5a9a7d074173f02913971f8a7 | [
"MIT"
] | null | null | null | Flask/NationalEducationRadio/NationalEducationRadio/models/units/login.py | Jessieluu/WIRL_national_education_radio | edb8b63c25bc7bd5a9a7d074173f02913971f8a7 | [
"MIT"
] | null | null | null | from flask import redirect, url_for, session
from functools import wraps
from NationalEducationRadio.models.db.User import AccessLevel
def admin_required(f):
"""
:param f:
:return:
"""
return permission_required(AccessLevel.ADMIN_USER)(f)
def user_required(f):
"""
:param f: ... | 22.857143 | 61 | 0.608929 |
5e53fee59bd5ad207e8b11bbd8595b032fac6231 | 1,013 | py | Python | tests/test_priority_queue.py | ZachElkins/PythonDataStructures | ccc069de10aceaec1ddcf04a191791b28c364517 | [
"MIT"
] | 1 | 2022-01-08T21:01:48.000Z | 2022-01-08T21:01:48.000Z | tests/test_priority_queue.py | ZachElkins/PythonDataStructures | ccc069de10aceaec1ddcf04a191791b28c364517 | [
"MIT"
] | null | null | null | tests/test_priority_queue.py | ZachElkins/PythonDataStructures | ccc069de10aceaec1ddcf04a191791b28c364517 | [
"MIT"
] | null | null | null | from data_structures.priority_queue import PriorityQueue
| 20.26 | 56 | 0.607108 |
5e547d1e53380362ef3913a99e44e8f9d9a51953 | 4,295 | py | Python | location_register/models/ratu_models.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | location_register/models/ratu_models.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | location_register/models/ratu_models.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
from data_ocean.models import DataOceanModel
from location_register.models.koatuu_models import KoatuuCategory
| 55.779221 | 145 | 0.606985 |
5e54c26a3ddededff2248c316135a3f13e08115f | 2,334 | py | Python | plugins/reporter/app/reporter_svc.py | IGchra/caldera | 75f5a9c3f63139f8f3c6ee6e7cb4ce094e82b1b9 | [
"Apache-2.0"
] | null | null | null | plugins/reporter/app/reporter_svc.py | IGchra/caldera | 75f5a9c3f63139f8f3c6ee6e7cb4ce094e82b1b9 | [
"Apache-2.0"
] | null | null | null | plugins/reporter/app/reporter_svc.py | IGchra/caldera | 75f5a9c3f63139f8f3c6ee6e7cb4ce094e82b1b9 | [
"Apache-2.0"
] | null | null | null | import json
import uuid
import os
from socket import getfqdn
from aiohttp import web
from aiohttp_jinja2 import template
from app.service.auth_svc import check_authorization
# import of own modules
from plugins.reporter.app.detectionreport import create_detection
from plugins.reporter.app.CSVreport import create_csv... | 38.262295 | 149 | 0.628963 |