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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd6886234faad7d13a25db1a64648df33f93d540 | 635 | py | Python | scripts/install_html5.py | proydakov/zeptobird | c9e64aa8bd11e4ed9254bea222b03c6d027b6145 | [
"MIT"
] | 6 | 2016-09-18T18:31:45.000Z | 2020-10-18T04:44:50.000Z | scripts/install_html5.py | proydakov/zeptobird | c9e64aa8bd11e4ed9254bea222b03c6d027b6145 | [
"MIT"
] | 1 | 2019-06-16T17:07:52.000Z | 2019-06-16T17:07:52.000Z | scripts/install_html5.py | proydakov/zeptobird | c9e64aa8bd11e4ed9254bea222b03c6d027b6145 | [
"MIT"
] | 1 | 2019-06-16T16:55:40.000Z | 2019-06-16T16:55:40.000Z | #!/usr/bin/env python3
import os
import sys
import shutil
if len(sys.argv) < 2:
print("usage", sys.argv[0], "[install path]")
sys.exit(1)
files = []
htmls = ["html5/index.html"]
sounds = os.listdir("shared/resources/music")
bins = ["build-html5/html5/zeptobird.data",
"build-html5/html5/zeptobir... | 21.166667 | 53 | 0.625197 |
bd68f08cf905675ae312e587ddb3042d2c634c66 | 622 | py | Python | test/python/read16PCM.py | dwaybright/g729a_python | a9c78d9a6b2934c9742f63e3ade225fe4aee245e | [
"Unlicense"
] | null | null | null | test/python/read16PCM.py | dwaybright/g729a_python | a9c78d9a6b2934c9742f63e3ade225fe4aee245e | [
"Unlicense"
] | null | null | null | test/python/read16PCM.py | dwaybright/g729a_python | a9c78d9a6b2934c9742f63e3ade225fe4aee245e | [
"Unlicense"
] | null | null | null |
method1 = []
method2 = []
with open("out.raw", "rb") as file:
byteValue = file.read(2)
while byteValue != b"":
intValueOne = int.from_bytes(byteValue, "big", signed=True)
intValueTwo = int.from_bytes(byteValue, "little", signed=True)
method1.append(intValueOne)
method2.append... | 24.88 | 70 | 0.630225 |
bd6b4fb9f46d8aea2e624d7011bc1180c37d9c42 | 1,188 | py | Python | Stepper.py | low2by/holofan | 48e1ba50be8e969d053ecaa61dbc9c571ef6c8fc | [
"MIT"
] | null | null | null | Stepper.py | low2by/holofan | 48e1ba50be8e969d053ecaa61dbc9c571ef6c8fc | [
"MIT"
] | null | null | null | Stepper.py | low2by/holofan | 48e1ba50be8e969d053ecaa61dbc9c571ef6c8fc | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
from PololuDriver import PololuDriver
res = 1.8
step_amount = 1
if __name__=="__main__":
stepper = Stepper()
while True:
inp = raw_input()
if(inp=="f"):
stepper.step("forward")
else:
stepper.st... | 30.461538 | 90 | 0.59596 |
bd6cf44639bd7b248e2d39953f0168af755793b5 | 939 | py | Python | sdk/boost_1_30_0/libs/python/test/str.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/python/test/str.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/python/test/str.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | """
>>> from str_ext import *
>>> def printer(*args):
... for x in args: print x,
... print
...
>>> work_with_string(printer)
['this', 'is', 'a', 'demo', 'string']
['this', 'is', 'a', 'demo string']
this<->is<->a<->demo<->string
This is a demo string
[ this is a demo string ]
2
this is a dem... | 17.716981 | 54 | 0.5623 |
bd6d334f88b5e7371741c0d91d9be992aad41f85 | 360 | py | Python | interstellar/server/exceptions.py | crazytruth/interstellar | 48b26293eebe680c03cf0c7e2571a39a3b7f1628 | [
"MIT"
] | null | null | null | interstellar/server/exceptions.py | crazytruth/interstellar | 48b26293eebe680c03cf0c7e2571a39a3b7f1628 | [
"MIT"
] | null | null | null | interstellar/server/exceptions.py | crazytruth/interstellar | 48b26293eebe680c03cf0c7e2571a39a3b7f1628 | [
"MIT"
] | null | null | null | from interstellar.exceptions import InterstellarError
| 24 | 66 | 0.641667 |
bd70edc5635306888d6c4c7c60acd5eb65e47a01 | 13,684 | py | Python | hypermax/optimizer.py | 00sapo/hypermax | 2cb6615cbd6801a7e2e9ad6463708380fffec6c8 | [
"BSD-3-Clause"
] | 107 | 2018-08-08T01:58:31.000Z | 2022-03-03T17:00:01.000Z | hypermax/optimizer.py | 00sapo/hypermax | 2cb6615cbd6801a7e2e9ad6463708380fffec6c8 | [
"BSD-3-Clause"
] | 8 | 2018-10-02T05:07:54.000Z | 2021-11-07T21:02:36.000Z | hypermax/optimizer.py | 00sapo/hypermax | 2cb6615cbd6801a7e2e9ad6463708380fffec6c8 | [
"BSD-3-Clause"
] | 17 | 2018-08-08T02:03:53.000Z | 2022-01-03T14:51:55.000Z | import hyperopt
import csv
import json
import traceback
import os.path
from pprint import pprint
import datetime
import time
import numpy.random
import threading
import queue
import copy
import tempfile
import random
import subprocess
import concurrent.futures
import tempfile
import functools
import math
import atexit
... | 42.629283 | 296 | 0.629275 |
bd724987521df0fcdac8ba4c64986bf0ca60f7b0 | 3,566 | py | Python | src/doddq/qpe.py | tomdodd4598/doddq | 10b859a2029b3f29f27f82b9b4d22ff5d8c331a8 | [
"MIT"
] | null | null | null | src/doddq/qpe.py | tomdodd4598/doddq | 10b859a2029b3f29f27f82b9b4d22ff5d8c331a8 | [
"MIT"
] | null | null | null | src/doddq/qpe.py | tomdodd4598/doddq | 10b859a2029b3f29f27f82b9b4d22ff5d8c331a8 | [
"MIT"
] | null | null | null | import doddq.helpers as helpers
import numpy as np
from qiskit import QuantumCircuit, QuantumRegister
from qiskit.circuit.library import HGate, PhaseGate, QFT
from typing import Callable
def standard_qpe(
num_eval_qubits: int,
num_state_qubits: int,
unitary: QuantumCircuit,
name: s... | 36.020202 | 117 | 0.700785 |
bd7296575889784868618f14db8687ff341b387d | 26 | py | Python | grow/settings/__init__.py | jpk0727/growApp | 016d56de740c14e89440a6bf61fccc937e792473 | [
"MIT"
] | null | null | null | grow/settings/__init__.py | jpk0727/growApp | 016d56de740c14e89440a6bf61fccc937e792473 | [
"MIT"
] | null | null | null | grow/settings/__init__.py | jpk0727/growApp | 016d56de740c14e89440a6bf61fccc937e792473 | [
"MIT"
] | null | null | null | """ Settings for grow """
| 13 | 25 | 0.576923 |
bd75cc5a20f2987b98f7f224d97b0b1ea50efed5 | 2,365 | py | Python | ttools/preprocessing.py | IlyaBizyaev/ttools | b1435b19f397ce1baff9daed3cb287e52a029fdb | [
"MIT"
] | 11 | 2018-11-15T05:33:35.000Z | 2022-01-11T16:18:35.000Z | ttools/preprocessing.py | IlyaBizyaev/ttools | b1435b19f397ce1baff9daed3cb287e52a029fdb | [
"MIT"
] | 2 | 2019-10-02T16:20:31.000Z | 2021-06-28T06:57:17.000Z | ttools/preprocessing.py | IlyaBizyaev/ttools | b1435b19f397ce1baff9daed3cb287e52a029fdb | [
"MIT"
] | 6 | 2019-06-28T00:07:24.000Z | 2021-08-22T15:51:07.000Z | """Utilities to preprocess data."""
from . import get_logger
import numpy as np
import torch as th
__all__ = ["extract_tiles"]
LOG = get_logger(__name__)
| 33.785714 | 76 | 0.561099 |
bd76192aec3956fca73b3e7cf805d6fbc0f7f3ab | 2,812 | py | Python | test/integration/dppl/target_py/mlp.py | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | 17 | 2020-11-26T00:53:58.000Z | 2021-08-20T18:56:39.000Z | test/integration/dppl/target_py/mlp.py | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | null | null | null | test/integration/dppl/target_py/mlp.py | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | 3 | 2020-12-09T20:16:16.000Z | 2021-05-28T04:30:28.000Z | from stanpyro.distributions import *
from stanpyro.dppllib import sample, param, observe, factor, array, zeros, ones, empty, matmul, true_divide, floor_divide, transpose, dtype_long, dtype_float, vmap, register_network, random_module
from stanpyro.stanlib import exp_array
| 46.866667 | 196 | 0.633713 |
bd767db9b6f302cda84fdccb673d677adaa3588b | 163 | py | Python | task/urls.py | bubaley/air-drf-relation | 6f40c481fcabe9162aa1ad1a7635f3d79b855582 | [
"MIT"
] | 4 | 2021-07-06T11:09:39.000Z | 2021-09-01T12:58:40.000Z | task/urls.py | bubaley/air-drf-relation | 6f40c481fcabe9162aa1ad1a7635f3d79b855582 | [
"MIT"
] | null | null | null | task/urls.py | bubaley/air-drf-relation | 6f40c481fcabe9162aa1ad1a7635f3d79b855582 | [
"MIT"
] | null | null | null | from rest_framework import routers
from .views import TaskViewSet
router = routers.SimpleRouter()
router.register('tasks', TaskViewSet)
urlpatterns = router.urls
| 23.285714 | 37 | 0.815951 |
bd79a9542ec57433ed33371b67babc804c88b2f5 | 2,420 | py | Python | alipay/aop/api/domain/AlipayCommerceTransportTaxiDriverlevelQueryModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayCommerceTransportTaxiDriverlevelQueryModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayCommerceTransportTaxiDriverlevelQueryModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
| 28.139535 | 75 | 0.592562 |
bd7a6d48442b5566cca1fabdc9c977750c3f6aeb | 5,202 | py | Python | tools/RAiDER/models/plotWeather.py | EJFielding/RAiDER | 864ca3641e803dc397dea5dab9bb4a7d3e03e959 | [
"Apache-2.0"
] | 32 | 2020-01-24T02:57:23.000Z | 2022-03-24T22:33:42.000Z | tools/RAiDER/models/plotWeather.py | EJFielding/RAiDER | 864ca3641e803dc397dea5dab9bb4a7d3e03e959 | [
"Apache-2.0"
] | 244 | 2020-02-18T17:16:51.000Z | 2022-02-16T20:26:06.000Z | tools/RAiDER/models/plotWeather.py | jlmaurer/RAiDER-1 | 76aeeaf5275016bc5e2b1a4fd9fc21c6e65add2d | [
"Apache-2.0"
] | 27 | 2020-03-09T20:29:55.000Z | 2022-02-16T18:31:28.000Z | """
This set of functions is designed to for plotting WeatherModel
class objects. It is not designed to be used on its own apart
from this class.
"""
from RAiDER.interpolator import RegularGridInterpolator as Interpolator
from mpl_toolkits.axes_grid1 import make_axes_locatable as mal
import numpy as np
import matplotl... | 35.630137 | 149 | 0.610919 |
bd7c3fb677047a5d5cb50122cccdd67f90daa694 | 2,086 | py | Python | collider_fork/data/generator.py | cryptexis/causal_inference | d20217a6020477987d1efb6ed77ccccb59893634 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:07:38.000Z | 2021-03-15T11:07:38.000Z | collider_fork/data/generator.py | cryptexis/causal_inference | d20217a6020477987d1efb6ed77ccccb59893634 | [
"Apache-2.0"
] | null | null | null | collider_fork/data/generator.py | cryptexis/causal_inference | d20217a6020477987d1efb6ed77ccccb59893634 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from .scm import SCM
| 35.355932 | 89 | 0.576702 |
bd7c81d7603809e95fceec6361bdcc84ab909f41 | 202 | py | Python | selim_sef-solution/lucid/misc/io/__init__.py | Hulihrach/RoadDetector | 9fedd537d7d3a5c81a60562a185fc13370af9a99 | [
"Apache-2.0"
] | 4,537 | 2018-02-08T22:58:30.000Z | 2022-03-31T13:24:05.000Z | selim_sef-solution/lucid/misc/io/__init__.py | Hulihrach/RoadDetector | 9fedd537d7d3a5c81a60562a185fc13370af9a99 | [
"Apache-2.0"
] | 260 | 2018-02-08T22:06:50.000Z | 2022-03-24T18:05:09.000Z | selim_sef-solution/lucid/misc/io/__init__.py | Hulihrach/RoadDetector | 9fedd537d7d3a5c81a60562a185fc13370af9a99 | [
"Apache-2.0"
] | 636 | 2018-02-09T09:50:58.000Z | 2022-03-17T22:49:59.000Z | from lucid.misc.io.showing import show
from lucid.misc.io.loading import load
from lucid.misc.io.saving import save, CaptureSaveContext, batch_save
from lucid.misc.io.scoping import io_scope, scope_url
| 40.4 | 69 | 0.831683 |
bd7efc3b5e694980ce24cb3ad348d9307ef75590 | 4,882 | py | Python | flower/views/__init__.py | alexsilva/flower | f9a2040ce9e011fc0d2c01c0c6a2df6dd3faac0b | [
"BSD-3-Clause"
] | 7 | 2019-10-07T11:16:06.000Z | 2021-09-24T11:57:56.000Z | flower/views/__init__.py | alexsilva/flower | f9a2040ce9e011fc0d2c01c0c6a2df6dd3faac0b | [
"BSD-3-Clause"
] | null | null | null | flower/views/__init__.py | alexsilva/flower | f9a2040ce9e011fc0d2c01c0c6a2df6dd3faac0b | [
"BSD-3-Clause"
] | 8 | 2019-08-27T16:05:32.000Z | 2021-12-15T17:29:03.000Z | from __future__ import absolute_import
import copy
import inspect
import re
import traceback
from base64 import b64decode
from distutils.util import strtobool
from django.conf import settings
from django.http import Http404, JsonResponse, HttpResponse
from django.shortcuts import render
from django.urls import revers... | 34.624113 | 76 | 0.597911 |
bd7f8ef44e491935627d736a84d1d5f379a62fa4 | 536 | py | Python | image-similarity/hand.py | jianchengwang/todo-ml | fe6efa9042fa4190e9c5bad399295f91a05da379 | [
"MIT"
] | null | null | null | image-similarity/hand.py | jianchengwang/todo-ml | fe6efa9042fa4190e9c5bad399295f91a05da379 | [
"MIT"
] | null | null | null | image-similarity/hand.py | jianchengwang/todo-ml | fe6efa9042fa4190e9c5bad399295f91a05da379 | [
"MIT"
] | null | null | null | import cv2
image = cv2.imread("database-tea-cake/1018-1-a.jpg")
cv2.imshow("palm",image) #to view the palm in python
cv2.waitKey(0)
gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray,60,65,apertureSize = 3)
cv2.imshow("edges",edges)
cv2.waitKey(0)
edges = cv2.bitwise_not(edges)
cv2.imshow("change ... | 25.52381 | 52 | 0.733209 |
bd805c2565604a739a0aa08854d23262a4f36749 | 5,417 | py | Python | inference_video_v2.py | apark263/arXiv2020-RIFE | 04a39a3aa009568e45918ef68dd9398f17753ebc | [
"MIT"
] | null | null | null | inference_video_v2.py | apark263/arXiv2020-RIFE | 04a39a3aa009568e45918ef68dd9398f17753ebc | [
"MIT"
] | null | null | null | inference_video_v2.py | apark263/arXiv2020-RIFE | 04a39a3aa009568e45918ef68dd9398f17753ebc | [
"MIT"
] | null | null | null | import time
import os
import cv2
import torch
import numpy as np
from tqdm import tqdm
from torch.nn import functional as F
import warnings
import _thread
from queue import Queue, Empty
from model.pytorch_msssim import ssim_matlab
from model.RIFE_HDv3 import Model
from absl import app
from absl import flags
warnings.f... | 29.763736 | 100 | 0.6247 |
bd826f06fa05db4e8283cfd07172cf2a2e3a0ec9 | 956 | py | Python | docker_interface/plugins/__init__.py | tillahoffmann/docker_interface | ed9ac691ca22dc2937e717af7f6b5fc7de19c660 | [
"Apache-2.0"
] | 32 | 2018-03-11T01:09:47.000Z | 2022-03-20T19:21:17.000Z | docker_interface/plugins/__init__.py | tillahoffmann/docker_interface | ed9ac691ca22dc2937e717af7f6b5fc7de19c660 | [
"Apache-2.0"
] | 7 | 2018-05-01T15:28:55.000Z | 2018-09-24T13:16:33.000Z | docker_interface/plugins/__init__.py | tillahoffmann/docker_interface | ed9ac691ca22dc2937e717af7f6b5fc7de19c660 | [
"Apache-2.0"
] | 14 | 2018-03-09T12:40:46.000Z | 2022-03-19T09:59:08.000Z | # Copyright 2018 Spotify AB
# 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, soft... | 43.454545 | 96 | 0.803347 |
bd83fc524801bf8d46b580dc48d08980682ce6eb | 683 | py | Python | rl/agents/policy/random_policy_agent.py | ManuelMeraz/ReinforcementLearning | 5d42a88776428308d35c8031c01bf5afdf080079 | [
"MIT"
] | 1 | 2020-04-19T15:29:47.000Z | 2020-04-19T15:29:47.000Z | rl/agents/policy/random_policy_agent.py | ManuelMeraz/ReinforcementLearning | 5d42a88776428308d35c8031c01bf5afdf080079 | [
"MIT"
] | null | null | null | rl/agents/policy/random_policy_agent.py | ManuelMeraz/ReinforcementLearning | 5d42a88776428308d35c8031c01bf5afdf080079 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy
from rl.agents.policy.policy_agent import PolicyAgent
| 32.52381 | 103 | 0.691069 |
bd851fe59d03419ff41cb551ebf9da8287cb8dc8 | 16,163 | py | Python | bot/commands.py | SuRoryz/surbot-osu | 2b27697417d2a69f40937b4c463530f2a6b98166 | [
"MIT"
] | null | null | null | bot/commands.py | SuRoryz/surbot-osu | 2b27697417d2a69f40937b4c463530f2a6b98166 | [
"MIT"
] | 1 | 2020-05-01T17:56:27.000Z | 2020-05-01T17:56:27.000Z | bot/commands.py | SuRoryz/surbot-osu | 2b27697417d2a69f40937b4c463530f2a6b98166 | [
"MIT"
] | null | null | null | import PP_Calculator
from pppredict.predict import predict
from util import str_to_dict, mod_convert, add_spaces
from re import findall
from lang_init import Initialization
from get_local import get_sample
import users
import maps
# List of commands and functions
cmd_list = {'pp': (Commands.calc, True),
... | 37.414352 | 157 | 0.428633 |
bd856e2983a88fc1f94de70a9fb1f0659fb53007 | 28,911 | py | Python | container_service_extension/configure_cse.py | YiouZhu1010/container-service-extension | f36bc250d226609b9a64e99073bb7a752ffb9f9b | [
"BSD-2-Clause"
] | null | null | null | container_service_extension/configure_cse.py | YiouZhu1010/container-service-extension | f36bc250d226609b9a64e99073bb7a752ffb9f9b | [
"BSD-2-Clause"
] | null | null | null | container_service_extension/configure_cse.py | YiouZhu1010/container-service-extension | f36bc250d226609b9a64e99073bb7a752ffb9f9b | [
"BSD-2-Clause"
] | null | null | null | # container-service-extension
# Copyright (c) 2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
import pika
from pyvcloud.vcd.api_extension import APIExtension
from pyvcloud.vcd.client import BasicLoginCredentials
from pyvcloud.vcd.client import Client
from pyvcloud.vcd.exceptions import E... | 45.963434 | 131 | 0.63398 |
bd85b17590e6d608aa95e29efdf6e825a3d39587 | 1,487 | py | Python | kita/tests/test_models.py | FelixTheC/beak_emailer_list | 8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06 | [
"MIT"
] | null | null | null | kita/tests/test_models.py | FelixTheC/beak_emailer_list | 8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06 | [
"MIT"
] | null | null | null | kita/tests/test_models.py | FelixTheC/beak_emailer_list | 8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@created: 20.09.20
@author: felix
"""
from django.core.exceptions import ValidationError
from django.test import TestCase
from kita.models import Kita
| 24.783333 | 50 | 0.516476 |
bd862504ce5c7156ab2580502e38186564ab7398 | 71,057 | py | Python | pysnmp-with-texts/CISCO-TELEPRESENCE-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/CISCO-TELEPRESENCE-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/CISCO-TELEPRESENCE-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 CISCO-TELEPRESENCE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TELEPRESENCE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:14:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 175.017241 | 6,685 | 0.800625 |
bd869a48b0d10ca34f77228cccfd27fe890bbfc7 | 5,776 | py | Python | lib_fslock/datamart_fslock/unix.py | VIDA-NYU/auctus | 49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2 | [
"Apache-2.0"
] | 15 | 2020-12-22T15:28:56.000Z | 2022-03-29T08:13:49.000Z | lib_fslock/datamart_fslock/unix.py | VIDA-NYU/auctus | 49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2 | [
"Apache-2.0"
] | 4 | 2021-04-09T18:08:36.000Z | 2022-03-21T17:51:05.000Z | lib_fslock/datamart_fslock/unix.py | VIDA-NYU/auctus | 49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2 | [
"Apache-2.0"
] | 4 | 2021-08-12T09:34:29.000Z | 2022-01-03T22:30:50.000Z | """File locking implementation using flock(2).
"""
# This whole module exists as stand-alone, without the Prometheus metrics
# https://pypi.org/project/fslock/
import contextlib
import fcntl
import logging
import multiprocessing
import os
import prometheus_client
import signal
import time
logger = logging.getLogger... | 29.927461 | 79 | 0.603186 |
bd874b32967b1d55c17e3c3189ccc98501c7c9a7 | 3,751 | py | Python | Intermediate-Python/04-Loops.py | vntborgesjr/Python-Fundamentals | 24051e45533af5f55990f1a6e69d5c378b82eb4c | [
"MIT"
] | null | null | null | Intermediate-Python/04-Loops.py | vntborgesjr/Python-Fundamentals | 24051e45533af5f55990f1a6e69d5c378b82eb4c | [
"MIT"
] | null | null | null | Intermediate-Python/04-Loops.py | vntborgesjr/Python-Fundamentals | 24051e45533af5f55990f1a6e69d5c378b82eb4c | [
"MIT"
] | null | null | null | # ---------------------------------------------------
# Intermediate Python - Loops
# 22 set 2020
# VNTBJR
# ---------------------------------------------------
#
# Load packages
library(reticulate)
# while loop -------------------------------------------
# Basic while loop
# Initialize offset
offset = 8
# Code... | 23.740506 | 82 | 0.541722 |
bd87d35dc8ef1a62928df58d50d1b4875fac32f4 | 297 | py | Python | tests/test_rocket_powered_landing.py | yuokamoto/PythonRobotics | 754256d15e074f6091bc6c9b7e8e6499df865fb6 | [
"MIT"
] | 11 | 2019-03-21T17:55:19.000Z | 2021-11-18T01:25:48.000Z | tests/test_rocket_powered_landing.py | yuokamoto/PythonRobotics | 754256d15e074f6091bc6c9b7e8e6499df865fb6 | [
"MIT"
] | null | null | null | tests/test_rocket_powered_landing.py | yuokamoto/PythonRobotics | 754256d15e074f6091bc6c9b7e8e6499df865fb6 | [
"MIT"
] | 5 | 2019-03-26T10:36:14.000Z | 2020-04-16T07:24:25.000Z | from unittest import TestCase
import sys
sys.path.append("./AerialNavigation/rocket_powered_landing/")
from AerialNavigation.rocket_powered_landing import rocket_powered_landing as m
print(__file__)
| 19.8 | 79 | 0.760943 |
bd87e5118853b7af46b50bc79022e6b55f8e9618 | 70 | py | Python | clash-of-code/reverse/number_pyramid.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 30 | 2016-04-30T01:56:05.000Z | 2022-03-09T22:19:12.000Z | clash-of-code/reverse/number_pyramid.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 1 | 2021-05-19T19:36:45.000Z | 2021-05-19T19:36:45.000Z | clash-of-code/reverse/number_pyramid.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 17 | 2020-01-28T13:54:06.000Z | 2022-03-26T09:49:27.000Z | n = int(input())
for i in range(0, n):
print(str(n) * (i + 1))
| 17.5 | 28 | 0.471429 |
bd898412c038f7c786ceffd162695255b440477f | 10,668 | py | Python | pyscript/script/doubleRule.py | Accelsnow/phonogenesis | 6ab86ad789fe0903f4b43aa5817f1f9417828f10 | [
"Apache-2.0"
] | 1 | 2021-12-03T17:19:31.000Z | 2021-12-03T17:19:31.000Z | pyscript/script/doubleRule.py | Accelsnow/phonogenesis | 6ab86ad789fe0903f4b43aa5817f1f9417828f10 | [
"Apache-2.0"
] | 3 | 2021-04-06T18:13:18.000Z | 2021-06-14T17:00:10.000Z | pyscript/script/doubleRule.py | Accelsnow/phonogenesis | 6ab86ad789fe0903f4b43aa5817f1f9417828f10 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import logging
import random
from abc import ABCMeta, abstractmethod
from enum import Enum, IntEnum
from typing import List, Dict
from script import Word, Rule, Sound, Template, Generator, GenMode
from serializable import Serializable
LOGGER = logging.getLogger("app.logger")
... | 36.409556 | 116 | 0.601237 |
bd8a76490209c343f629dfb82494a65f49d6f76f | 5,921 | py | Python | odoo-13.0/addons/website_sale_delivery/controllers/main.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/website_sale_delivery/controllers/main.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/website_sale_delivery/controllers/main.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import http, _
from odoo.http import request
from odoo.addons.website_sale.controllers.main import WebsiteSale
from odoo.exceptions import UserError
def order_2_return_dict(self, order):
""" Retur... | 48.532787 | 141 | 0.648201 |
bd8d12ccd7aabdd9687346d7d11226b2e4651f7f | 1,840 | py | Python | vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 40 | 129 | 0.56413 |
bd8d17116154c96b169d01b068ef594507d101ec | 30,774 | py | Python | pytorch3d/implicitron/dataset/json_index_dataset.py | ParikhKadam/pytorch3d | 5cd70067e2ba642d98fd36e8e31273366d1599cb | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pytorch3d/implicitron/dataset/json_index_dataset.py | ParikhKadam/pytorch3d | 5cd70067e2ba642d98fd36e8e31273366d1599cb | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pytorch3d/implicitron/dataset/json_index_dataset.py | ParikhKadam/pytorch3d | 5cd70067e2ba642d98fd36e8e31273366d1599cb | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import functools
import gzip
import hashlib
import json
import logging
import os
import random
import warnings
... | 38.758186 | 88 | 0.629557 |
bd8d5d12d8df62f7f4139ac3d2d21f9e3a1bb21a | 1,527 | py | Python | app/__init__.py | Ferocity/flask-oidc-example | 61bc860725d91675ee00c585d942f0bccf690044 | [
"MIT"
] | null | null | null | app/__init__.py | Ferocity/flask-oidc-example | 61bc860725d91675ee00c585d942f0bccf690044 | [
"MIT"
] | null | null | null | app/__init__.py | Ferocity/flask-oidc-example | 61bc860725d91675ee00c585d942f0bccf690044 | [
"MIT"
] | 1 | 2020-11-13T06:33:48.000Z | 2020-11-13T06:33:48.000Z | import os
from flask import Flask, request, current_app, json
from flask_bootstrap import Bootstrap
from config import Config
from flask_pyoidc import OIDCAuthentication
from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata
base_uri = os.environ.get("BASE_URI")
if not base_uri:
r... | 33.195652 | 126 | 0.668631 |
bd8eb2222168ef4cda254cfc3c473878947a0542 | 765 | py | Python | discord_bot.py | PrivatPinguin/discord_bot_example | 06de229306832a52b7dfaf2698fded105e9b1788 | [
"MIT"
] | 1 | 2021-12-24T18:08:12.000Z | 2021-12-24T18:08:12.000Z | discord_bot.py | PrivatPinguin/discord_bot_example | 06de229306832a52b7dfaf2698fded105e9b1788 | [
"MIT"
] | null | null | null | discord_bot.py | PrivatPinguin/discord_bot_example | 06de229306832a52b7dfaf2698fded105e9b1788 | [
"MIT"
] | null | null | null | import discord
import os
import requests
import json
# init bot
client = discord.Client()
# API request
# console:: bot ready
# responses
# edit bot token here
client.run('TOKEN')
| 20.675676 | 59 | 0.713725 |
bd91b1561fe94e4713c52cb039d7fd690c7a3a37 | 4,820 | py | Python | playstream.py | magnetikonline/docker-acestream-server | f78e83bd9fb9392dfb9bfd8f8692a8bbc1ae1d19 | [
"MIT"
] | 97 | 2018-05-13T19:37:40.000Z | 2022-03-19T12:03:38.000Z | playstream.py | magnetikonline/docker-acestream-server | f78e83bd9fb9392dfb9bfd8f8692a8bbc1ae1d19 | [
"MIT"
] | 8 | 2018-07-29T10:58:10.000Z | 2022-02-18T14:44:29.000Z | playstream.py | magnetikonline/docker-acestream-server | f78e83bd9fb9392dfb9bfd8f8692a8bbc1ae1d19 | [
"MIT"
] | 25 | 2018-06-15T13:51:54.000Z | 2022-02-27T19:19:40.000Z | #!/usr/bin/env python3
import argparse
import hashlib
import json
import re
import signal
import subprocess
import sys
import time
import urllib.request
DEFAULT_SERVER_HOSTNAME = "127.0.0.1"
DEFAULT_SERVER_PORT = 6878
SERVER_POLL_TIME = 2
SERVER_STATUS_STREAM_ACTIVE = "dl"
if __name__ == "__main__":
... | 25.502646 | 119 | 0.648133 |
bd91fe8e99e0df0490b864f1ab29fd3c2696704a | 74 | py | Python | Software/qlocktoo/timewords/__init__.py | tfeldmann/QlockToo | 778a955ac84348342db036b1989931c6d9be9242 | [
"MIT"
] | 1 | 2019-10-12T16:26:25.000Z | 2019-10-12T16:26:25.000Z | Software/qlocktoo/timewords/__init__.py | tfeldmann/QlockToo | 778a955ac84348342db036b1989931c6d9be9242 | [
"MIT"
] | null | null | null | Software/qlocktoo/timewords/__init__.py | tfeldmann/QlockToo | 778a955ac84348342db036b1989931c6d9be9242 | [
"MIT"
] | 1 | 2020-02-02T23:42:55.000Z | 2020-02-02T23:42:55.000Z | from qlocktoo.assets import assets_rc
from .timewords import TimeWordsApp
| 24.666667 | 37 | 0.864865 |
bd92990fd73314da8f718cba9508b15142da4624 | 2,436 | py | Python | multispinsys/CalculationsCode/TimeCorrelation.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | multispinsys/CalculationsCode/TimeCorrelation.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | multispinsys/CalculationsCode/TimeCorrelation.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 13 13:10:41 2018
@author: crius
"""
import Hamiltonians as H
import numpy as np
import tools as t
import spintensor as st
import spinops as so
import time
import Expand as ex
from matplotlib import pyplot as plt
exp = np.exp
N = 8
nlegs = 4
S = 0.5
c = np.sqrt(2)
Jcu... | 19.645161 | 84 | 0.552956 |
bd9343ad685819102ff36b3ce45b15729270fb8d | 791 | py | Python | server/src/weaverbird/backends/pandas_executor/steps/convert.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 54 | 2019-11-20T15:07:39.000Z | 2022-03-24T22:13:51.000Z | server/src/weaverbird/backends/pandas_executor/steps/convert.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 786 | 2019-10-20T11:48:37.000Z | 2022-03-23T08:58:18.000Z | server/src/weaverbird/backends/pandas_executor/steps/convert.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 10 | 2019-11-21T10:16:16.000Z | 2022-03-21T10:34:06.000Z | from pandas import DataFrame
from weaverbird.backends.pandas_executor.types import DomainRetriever, PipelineExecutor
from weaverbird.pipeline.steps import ConvertStep
from .utils.cast import cast_to_bool, cast_to_datetime, cast_to_float, cast_to_int, cast_to_str
CAST_FUNCTIONS = {
'integer': cast_to_int,
'fl... | 30.423077 | 95 | 0.764855 |
bd982fc4d3c3b1d4aee795e8c2ec2a42e27a8386 | 1,246 | py | Python | hillmaker/testing/test_obsim_log.py | misken/hillmaker | 463460f3d0a2022a54bdd49da4a5c85bdf881ea1 | [
"Apache-2.0"
] | 2 | 2016-03-13T21:50:39.000Z | 2016-07-21T20:28:56.000Z | hillmaker/testing/test_obsim_log.py | misken/hillmaker | 463460f3d0a2022a54bdd49da4a5c85bdf881ea1 | [
"Apache-2.0"
] | 10 | 2016-01-19T02:04:02.000Z | 2020-02-27T21:52:45.000Z | hillmaker/testing/test_obsim_log.py | misken/hillmaker | 463460f3d0a2022a54bdd49da4a5c85bdf881ea1 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from pandas import Timestamp
import hillmaker
file_stopdata = '../data/unit_stop_log_Experiment1_Scenario138_Rep17.csv'
scenario_name = 'log_unitocc_test_5'
in_fld_name = 'EnteredTS'
out_fld_name = 'ExitedTS'
cat_fld_name = 'Unit'
start_analysis = '12/12/2015 00:00'
end_analysis = '12/19/2021 00:... | 32.789474 | 112 | 0.67175 |
bd990d0abd0390853c206f72899814a8ffeeb6c6 | 2,357 | py | Python | augment_features.py | Ads2020Group6/gender-pay-gap-modelling | 9c6ffbc022ab0dffd7ac9dcaeafb511da21121fe | [
"MIT"
] | null | null | null | augment_features.py | Ads2020Group6/gender-pay-gap-modelling | 9c6ffbc022ab0dffd7ac9dcaeafb511da21121fe | [
"MIT"
] | null | null | null | augment_features.py | Ads2020Group6/gender-pay-gap-modelling | 9c6ffbc022ab0dffd7ac9dcaeafb511da21121fe | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
if __name__ == "__main__":
main()
| 52.377778 | 118 | 0.708104 |
bd9cd11c096830195d80372fe73f8f161e81dfcc | 864 | py | Python | hooks/post_gen_project.py | tartiflette/cookiecutter-tartiflette-plugin | 554207f48da1ffd56ce4d04fb7c51ac27366ee64 | [
"MIT"
] | 1 | 2019-07-02T07:07:40.000Z | 2019-07-02T07:07:40.000Z | hooks/post_gen_project.py | tartiflette/cookiecutter-tartiflette-plugin | 554207f48da1ffd56ce4d04fb7c51ac27366ee64 | [
"MIT"
] | 3 | 2019-10-11T09:27:59.000Z | 2019-10-21T10:52:55.000Z | hooks/post_gen_project.py | tartiflette/cookiecutter-tartiflette-plugin | 554207f48da1ffd56ce4d04fb7c51ac27366ee64 | [
"MIT"
] | 1 | 2019-09-18T13:26:13.000Z | 2019-09-18T13:26:13.000Z | #!/usr/bin/env python
import os
from typing import List, Union
_PROJECT_DIRECTORY = os.path.realpath(os.path.curdir)
def _remove_files(files: Union[List[str], str]) -> None:
"""
Removes the list of files provided.
:param files: list of filepath to remove
:type files: Union[List[str], str]
"""
... | 24.685714 | 69 | 0.611111 |
bd9da45ad4b3eba43cd3c922d7241eaaa25de291 | 1,056 | py | Python | app/dashboard/views/mfa_cancel.py | fariszr/app | 932134c2123714cf1d1b7090998fbdf27344cce0 | [
"MIT"
] | 5 | 2021-01-13T16:50:46.000Z | 2021-11-29T04:01:46.000Z | app/dashboard/views/mfa_cancel.py | fariszr/app | 932134c2123714cf1d1b7090998fbdf27344cce0 | [
"MIT"
] | 1 | 2021-07-24T18:06:49.000Z | 2021-07-24T18:06:49.000Z | app/dashboard/views/mfa_cancel.py | fariszr/app | 932134c2123714cf1d1b7090998fbdf27344cce0 | [
"MIT"
] | 4 | 2021-02-08T23:04:33.000Z | 2022-01-05T12:02:34.000Z | from flask import render_template, flash, redirect, url_for, request
from flask_login import login_required, current_user
from app.dashboard.base import dashboard_bp
from app.dashboard.views.enter_sudo import sudo_required
from app.extensions import db
from app.models import RecoveryCode
| 33 | 76 | 0.726326 |
bd9eee4ee9738708798aa7488a942d713aab919a | 259 | py | Python | apimux/__init__.py | zeeguu-ecosystem/apimux | 4a0f28921615d713d976af1d2078efca5c51a4bd | [
"MIT"
] | null | null | null | apimux/__init__.py | zeeguu-ecosystem/apimux | 4a0f28921615d713d976af1d2078efca5c51a4bd | [
"MIT"
] | 1 | 2019-04-12T11:35:46.000Z | 2019-04-12T11:35:46.000Z | apimux/__init__.py | zeeguu-ecosystem/apimux | 4a0f28921615d713d976af1d2078efca5c51a4bd | [
"MIT"
] | 1 | 2019-04-07T21:10:05.000Z | 2019-04-07T21:10:05.000Z | import sys
from apimux.log import logger
logger.debug("==== API Multiplexer imported ====")
major = sys.version_info.major
minor = sys.version_info.minor
micro = sys.version_info.micro
logger.debug("Running Python version %s.%s.%s" % (major, minor, micro))
| 25.9 | 71 | 0.737452 |
bda07f1bfa8b9f9ad5ee2e11e116aecbb8270292 | 1,062 | py | Python | apps/user/views.py | AlexFire-Dev/OnlineChat | 2411baffeee2abd90931e66e736081b23411082b | [
"MIT"
] | null | null | null | apps/user/views.py | AlexFire-Dev/OnlineChat | 2411baffeee2abd90931e66e736081b23411082b | [
"MIT"
] | null | null | null | apps/user/views.py | AlexFire-Dev/OnlineChat | 2411baffeee2abd90931e66e736081b23411082b | [
"MIT"
] | null | null | null | import json
import channels.layers
from asgiref.sync import async_to_sync
from django.conf import settings
from django.core.paginator import Paginator
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.urls import reverse, reverse_lazy
from django.views.gene... | 24.697674 | 83 | 0.719397 |
bda13b7535a08ec9cc603b09e3c5c2f070046903 | 733 | py | Python | kYPython/Django/myblog/blog/views.py | kyaing/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | 10 | 2017-02-23T07:42:20.000Z | 2017-02-23T07:42:25.000Z | kYPython/Django/myblog/blog/views.py | kaideyi/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | null | null | null | kYPython/Django/myblog/blog/views.py | kaideyi/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | null | null | null | from django.shortcuts import render, render_to_response, get_object_or_404
from .models import Blog, BlogType
# Create your views here. | 36.65 | 74 | 0.74352 |
bda1ae9b14ff5d227952065e800df48523049c79 | 1,952 | py | Python | HPCWatchdog/__init__.py | brockpalen/hpc-watchdog | 6b0c6d6e748c7f89a4e5a04ef81e186f4053a042 | [
"MIT"
] | null | null | null | HPCWatchdog/__init__.py | brockpalen/hpc-watchdog | 6b0c6d6e748c7f89a4e5a04ef81e186f4053a042 | [
"MIT"
] | 2 | 2020-11-01T20:40:28.000Z | 2020-11-01T21:09:34.000Z | HPCWatchdog/__init__.py | brockpalen/hpc-watchdog | 6b0c6d6e748c7f89a4e5a04ef81e186f4053a042 | [
"MIT"
] | null | null | null | # /usr/bin/python3
import logging
import sched
import signal
import sys
import time
from functools import partial
import watchdog.events
import watchdog.observers
from watchdog.observers.polling import PollingObserver as PollingObserver
from GlobusTransfer import GlobusTransfer
from .args import Args
from .handler ... | 26.026667 | 95 | 0.674693 |
bda1c913dd71fdaae8cea5ba341b0ca310904dcd | 3,228 | py | Python | py/qxcomscroll/web/playground.py | wthie/qxcomscroll | 7001cd82939622807abf62ec7b8f4aba51b2ebc0 | [
"BSD-2-Clause"
] | null | null | null | py/qxcomscroll/web/playground.py | wthie/qxcomscroll | 7001cd82939622807abf62ec7b8f4aba51b2ebc0 | [
"BSD-2-Clause"
] | null | null | null | py/qxcomscroll/web/playground.py | wthie/qxcomscroll | 7001cd82939622807abf62ec7b8f4aba51b2ebc0 | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
#-*- coding: iso-8859-1 -*-
"""
playground - the basic object which serves as the root
author : Werner Thie, wth
last edit: wth, 21.03.2011
modhistory:
03.06.2009 - wth, thinking about disconnecting
21.03.2011 - wth, reworked for qxcomscroll
"""
import os, sys, ... | 29.614679 | 167 | 0.61803 |
bda1edb67c862833c2ca17bb17ea3e65c2c9e56c | 170 | py | Python | Foundation/magic_method/del_method.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Foundation/magic_method/del_method.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Foundation/magic_method/del_method.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | 1 | 2019-11-05T01:10:15.000Z | 2019-11-05T01:10:15.000Z | #!usr/bin/python
# -*- coding:utf8 -*-
"""
__del__:, ,
"""
obj = Foo() #
| 12.142857 | 33 | 0.594118 |
bda2e8efb3b192e6f2de5785a7b9b74c47a0a815 | 159 | py | Python | python_modules/dagster/dagster/core/types/builtin_enum.py | vishvananda/dagster | f6aa44714246bc770fe05a9c986fe8b7d848956b | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/types/builtin_enum.py | vishvananda/dagster | f6aa44714246bc770fe05a9c986fe8b7d848956b | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/types/builtin_enum.py | vishvananda/dagster | f6aa44714246bc770fe05a9c986fe8b7d848956b | [
"Apache-2.0"
] | null | null | null | from enum import Enum
| 14.454545 | 24 | 0.553459 |
bda2e9b71af224fdc2f699d8284603c05c38d52d | 1,230 | py | Python | backend/backend/settings/prod.py | ealmonte32/api | 702254c48677cf5a6f2fe298bced854299868eef | [
"MIT"
] | null | null | null | backend/backend/settings/prod.py | ealmonte32/api | 702254c48677cf5a6f2fe298bced854299868eef | [
"MIT"
] | 7 | 2020-12-04T22:01:16.000Z | 2022-02-10T09:47:59.000Z | backend/backend/settings/prod.py | ealmonte32/api | 702254c48677cf5a6f2fe298bced854299868eef | [
"MIT"
] | 2 | 2020-12-21T20:01:54.000Z | 2021-01-13T07:08:01.000Z | from backend.settings.base import *
if DEBUG:
ALLOWED_HOSTS += [
'localhost'
]
DASH_URL = 'https://dash.wott.io'
if IS_DASH or DEBUG:
ALLOWED_HOSTS += [
'dash.wott.io'
]
if IS_API or DEBUG:
ALLOWED_HOSTS += [
'api.wott.io'
]
if IS_MTLS_API or DEBUG:
ALLOWED_HOSTS... | 20.847458 | 79 | 0.626016 |
bda4f1a44c94fa18f51657fd918dd75074dd82ca | 3,230 | py | Python | src/static.py | topores/UnifiedTrader | 47066ab84b1b05bae2865ac48eab92467a261b9b | [
"MIT"
] | null | null | null | src/static.py | topores/UnifiedTrader | 47066ab84b1b05bae2865ac48eab92467a261b9b | [
"MIT"
] | null | null | null | src/static.py | topores/UnifiedTrader | 47066ab84b1b05bae2865ac48eab92467a261b9b | [
"MIT"
] | null | null | null | import datetime
| 29.363636 | 152 | 0.49195 |
bda815c5ce55db768b758a437693848b5f9cc213 | 9,119 | py | Python | train.py | djangbahevans/Image-Classifier | 518891f5600de5ac91ad3096b175f6423830cce6 | [
"MIT"
] | null | null | null | train.py | djangbahevans/Image-Classifier | 518891f5600de5ac91ad3096b175f6423830cce6 | [
"MIT"
] | null | null | null | train.py | djangbahevans/Image-Classifier | 518891f5600de5ac91ad3096b175f6423830cce6 | [
"MIT"
] | null | null | null | import argparse
import os
import sys
import torch
from torch import nn, optim
from torch.optim import optimizer
from torchvision import datasets, models, transforms
parser = argparse.ArgumentParser(description="Trains a neural network")
parser.add_argument('data_dir', metavar='dir', type=str,
help... | 36.62249 | 99 | 0.613444 |
bdaaab0b38435da46661a7869ffacac2fe1a2fba | 1,706 | py | Python | django/views/defaults.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 3 | 2016-07-08T23:49:32.000Z | 2018-04-15T22:55:01.000Z | django/views/defaults.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 27 | 2017-02-05T15:57:04.000Z | 2018-04-15T22:57:26.000Z | django/views/defaults.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | null | null | null | from django import http
from django.views.decorators.csrf import requires_csrf_token
from django.template import Context, RequestContext, loader
# This can be called when CsrfViewMiddleware.process_view has not run, therefore
# need @requires_csrf_token in case the template needs {% csrf_token %}.
def sh... | 38.772727 | 104 | 0.716882 |
bdab06659f6e1e61c708d46b2c0ccb475f99aa05 | 32 | py | Python | ledger/__main__.py | Funk66/ledger | b06f39281b81cebb75a6c5f92fa3b8e47b65800c | [
"MIT"
] | null | null | null | ledger/__main__.py | Funk66/ledger | b06f39281b81cebb75a6c5f92fa3b8e47b65800c | [
"MIT"
] | 3 | 2021-11-16T06:38:48.000Z | 2021-11-16T06:43:18.000Z | ledger/__main__.py | Funk66/ledger | b06f39281b81cebb75a6c5f92fa3b8e47b65800c | [
"MIT"
] | null | null | null | from .client import run
run()
| 6.4 | 23 | 0.6875 |
bdac61447e42eb10d7b8148834f629ed07279ddc | 1,389 | py | Python | Clases/Lab03/GraphTimeBinarySearch.py | PaulAlexander19/LabADAGrupoB | dd984381e336961501384d712705680a78182fc4 | [
"BSD-3-Clause"
] | null | null | null | Clases/Lab03/GraphTimeBinarySearch.py | PaulAlexander19/LabADAGrupoB | dd984381e336961501384d712705680a78182fc4 | [
"BSD-3-Clause"
] | null | null | null | Clases/Lab03/GraphTimeBinarySearch.py | PaulAlexander19/LabADAGrupoB | dd984381e336961501384d712705680a78182fc4 | [
"BSD-3-Clause"
] | null | null | null | # Ejercicio 04
import time
import matplotlib.pyplot as plt
# Algoritmo
# Retorna lo que tardo el algoritmo
__main__ = main() | 27.235294 | 86 | 0.62995 |
bdaf20850eee3665959dc54f480d2cf615d57be3 | 5,654 | py | Python | grail/app.py | farwydi/animated-octo-robot | 37fa5ad25152dd1de2a87c6e62c6ce0e7588955d | [
"MIT"
] | null | null | null | grail/app.py | farwydi/animated-octo-robot | 37fa5ad25152dd1de2a87c6e62c6ce0e7588955d | [
"MIT"
] | null | null | null | grail/app.py | farwydi/animated-octo-robot | 37fa5ad25152dd1de2a87c6e62c6ce0e7588955d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import wx
from grail import Grail
from pages import LoginPage, MainFrame
from protocol import GrailProtocol
<<<<<<< Updated upstream
chain = self.grail.get_last_hash()
id = self.push_row(chain)
=======
chain = self.grail.get_last_hash()
id = self.pus... | 27.580488 | 99 | 0.600814 |
bdaf4e09a2a32c3379727790c1bab5c96acfae21 | 2,100 | py | Python | rest_framework_security/otp/migrations/0001_initial.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 7 | 2020-09-01T09:55:25.000Z | 2021-11-04T06:59:04.000Z | rest_framework_security/otp/migrations/0001_initial.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 32 | 2020-10-28T17:09:18.000Z | 2022-03-12T00:55:09.000Z | rest_framework_security/otp/migrations/0001_initial.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 2 | 2020-12-18T01:26:53.000Z | 2021-11-04T06:59:07.000Z | # Generated by Django 2.2.4 on 2020-06-29 10:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
| 47.727273 | 166 | 0.616667 |
bdb11c09373f6f4e447a8fff8ed660a43e138e63 | 4,755 | py | Python | bot/constants.py | LockPickersUnited/BeltBot | 81560f928c0bbdcd40fb9fcd9ad96fefa8aebd9b | [
"MIT"
] | null | null | null | bot/constants.py | LockPickersUnited/BeltBot | 81560f928c0bbdcd40fb9fcd9ad96fefa8aebd9b | [
"MIT"
] | null | null | null | bot/constants.py | LockPickersUnited/BeltBot | 81560f928c0bbdcd40fb9fcd9ad96fefa8aebd9b | [
"MIT"
] | null | null | null | from os import getenv
from dataclasses import dataclass
from collections import ChainMap
from dotenv import load_dotenv
from bot.structs import CaseInsensitiveDict
load_dotenv()
MY_NAME = "LPUBeltbot"
MY_REDDIT_PW = getenv("BELTBOT_REDDIT_PW")
MY_REDDIT_CLIENT_ID = getenv("BELTBOT_REDDIT_CID")
MY_REDDIT_SECRET... | 40.991379 | 110 | 0.576025 |
bdb1409078880e05ee8810addc7a00e657d8510c | 1,380 | py | Python | cnn.py | teralion/explore-ml-cnn | 009f556ec8de006977a11123e57ef7edc781695f | [
"MIT"
] | 1 | 2022-01-01T12:04:36.000Z | 2022-01-01T12:04:36.000Z | cnn.py | teralion/explore-ml-cnn | 009f556ec8de006977a11123e57ef7edc781695f | [
"MIT"
] | null | null | null | cnn.py | teralion/explore-ml-cnn | 009f556ec8de006977a11123e57ef7edc781695f | [
"MIT"
] | null | null | null | import mnist
import numpy as np
from PIL import Image
from conv import Conv3x3
from maxpool import MaxPool2
from softmax import Softmax
train_images = mnist.train_images()[:100]
train_labels = mnist.train_labels()[:100]
test_images = mnist.test_images()[:1000]
test_labels = mnist.test_labels()[:1000]
conv = Conv3x3(8... | 24.210526 | 93 | 0.665942 |
bdb23d35c15e4c6bf6a753371d207cbbf372a4ab | 1,743 | py | Python | services/simcct/tests/test_api_base.py | NeuralDev-io/arclytics_simcct | e04eaa315c76b0295d3d7450cf59b8b0b4a7f22b | [
"MIT"
] | 2 | 2020-01-18T04:59:29.000Z | 2020-01-20T23:16:58.000Z | services/simcct/tests/test_api_base.py | NeuralDev-io/arclytics_simcct | e04eaa315c76b0295d3d7450cf59b8b0b4a7f22b | [
"MIT"
] | 1 | 2022-02-10T20:55:13.000Z | 2022-02-10T20:55:13.000Z | services/simcct/tests/test_api_base.py | NeuralDev-io/arclytics_simcct | e04eaa315c76b0295d3d7450cf59b8b0b4a7f22b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# arclytics_sim
# base.py
#
# Attributions:
# [1]
# -----------------------------------------------------------------------------
__author__ = [
'Andrew Che <@codeninja55>', 'David Matthews <@tree1004>',
'Din... | 28.112903 | 79 | 0.600115 |
bdb83e73a16dd064163bd65b6c3a02bd6b06ceb5 | 187 | py | Python | 1. Python/1. Getting Started with Python/5. print_variables.py | theparitoshkumar/Data-Structures-Algorithms-using-python | 445b9dee56bca637f21267114cc1686d333ea4c4 | [
"Apache-2.0"
] | 1 | 2021-12-05T18:02:15.000Z | 2021-12-05T18:02:15.000Z | 1. Python/1. Getting Started with Python/5. print_variables.py | theparitoshkumar/Data-Structures-Algorithms-using-python | 445b9dee56bca637f21267114cc1686d333ea4c4 | [
"Apache-2.0"
] | null | null | null | 1. Python/1. Getting Started with Python/5. print_variables.py | theparitoshkumar/Data-Structures-Algorithms-using-python | 445b9dee56bca637f21267114cc1686d333ea4c4 | [
"Apache-2.0"
] | null | null | null | """ Write a program to display values of variables in Python. """
message = "Keep Smiling!"
print(message)
userNo = 101
print("User No is ", userNo)
gender = 'M'
print("Gender: ",gender)
| 23.375 | 65 | 0.68984 |
bdb89a5b3b9a8c81931d0e9c43b2cf9ece272375 | 762 | py | Python | test/test_metadata.py | rockyplum/vampy-host | a410d680be2c15d76e31488db789ed30e6f34910 | [
"BSD-4-Clause-UC"
] | 16 | 2016-11-19T07:24:54.000Z | 2021-07-09T23:30:48.000Z | test/test_metadata.py | rockyplum/vampy-host | a410d680be2c15d76e31488db789ed30e6f34910 | [
"BSD-4-Clause-UC"
] | 6 | 2017-04-05T12:00:38.000Z | 2022-01-13T17:51:34.000Z | test/test_metadata.py | rockyplum/vampy-host | a410d680be2c15d76e31488db789ed30e6f34910 | [
"BSD-4-Clause-UC"
] | 1 | 2017-04-03T16:33:51.000Z | 2017-04-03T16:33:51.000Z |
import vampyhost as vh
plugin_key = "vamp-test-plugin:vamp-test-plugin"
##!!! could use: plugin version
| 26.275862 | 122 | 0.670604 |
bdb8c4218f6b67e3b1a98e47bc03b25454504691 | 2,233 | py | Python | simpletype/utils/Supply.py | rzalegal/pytypes | 70405db4a55769583293ce02a9a4aaf19200d831 | [
"MIT"
] | 1 | 2020-05-14T21:03:21.000Z | 2020-05-14T21:03:21.000Z | simpletype/utils/Supply.py | rzalegal/simpletype | 70405db4a55769583293ce02a9a4aaf19200d831 | [
"MIT"
] | null | null | null | simpletype/utils/Supply.py | rzalegal/simpletype | 70405db4a55769583293ce02a9a4aaf19200d831 | [
"MIT"
] | null | null | null | from random import randint, random, choice
from string import ascii_letters
| 24.538462 | 80 | 0.566502 |
bdbbd2376fa53f718d2e0ea6f73fafe056fb5a2b | 2,426 | py | Python | trader/backtest/position.py | Ricky294/trader | 5f5ecc047fb3ff82476cb751ac9fc3d5fa749dc5 | [
"MIT"
] | null | null | null | trader/backtest/position.py | Ricky294/trader | 5f5ecc047fb3ff82476cb751ac9fc3d5fa749dc5 | [
"MIT"
] | null | null | null | trader/backtest/position.py | Ricky294/trader | 5f5ecc047fb3ff82476cb751ac9fc3d5fa749dc5 | [
"MIT"
] | null | null | null | from trader.core.model import Position, Balance
from trader.core.const.trade_actions import LONG, SHORT
| 32.346667 | 108 | 0.630668 |
bdbdffb8d5a6c27b50f218d5b692d0f7f8c5a5d7 | 185 | py | Python | utils/language_modeling/__init__.py | Lednik7/data_fusion | 2cac8ee2ca6c144218731795bc118f6c355bd477 | [
"MIT"
] | 1 | 2022-01-23T10:18:16.000Z | 2022-01-23T10:18:16.000Z | utils/language_modeling/__init__.py | Lednik7/data_fusion | 2cac8ee2ca6c144218731795bc118f6c355bd477 | [
"MIT"
] | null | null | null | utils/language_modeling/__init__.py | Lednik7/data_fusion | 2cac8ee2ca6c144218731795bc118f6c355bd477 | [
"MIT"
] | null | null | null | from .data import (
get_dataloaders,
Collator
)
from .train import Trainer
from .model import get_model
__all__ = ['get_dataloaders', 'Collator', 'Trainer', 'get_model'] | 23.125 | 65 | 0.697297 |
bdbe0c5bb646922265a009acce1a63f0b127fa7f | 1,885 | py | Python | encode_gaps_as_characters.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | null | null | null | encode_gaps_as_characters.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | 1 | 2015-07-22T15:53:11.000Z | 2015-07-22T16:49:54.000Z | encode_gaps_as_characters.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | 3 | 2015-07-01T22:39:55.000Z | 2019-08-13T21:23:20.000Z | #!/usr/bin/env python3
__description__ = \
"""
Take an alignment and create an R-readable table in which each site is mapped
a gap (0) or non-gap (1) for each taxon. This can then be fed to APE for a
character reconstruction.
"""
__author__ = "Michael J. Harms"
__date__ = "2015-07-28"
__usage__ = "encode_gaps_as_cha... | 24.802632 | 78 | 0.558621 |
bdbea3d1c2121ab830bb6c460533854ddcf2cae4 | 9,238 | py | Python | deploy.py | T8840/configCenter | cdba08d45b0dc2a55fa3503ac97aea93fd194aeb | [
"MIT"
] | null | null | null | deploy.py | T8840/configCenter | cdba08d45b0dc2a55fa3503ac97aea93fd194aeb | [
"MIT"
] | null | null | null | deploy.py | T8840/configCenter | cdba08d45b0dc2a55fa3503ac97aea93fd194aeb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:author: T8840
:tag: Thinking is a good thing!
:description:
1.nacos
{
"server_info": {
"host": "10.201.5.161",
"port":22,
"user" : "user",
"password": "... | 36.513834 | 159 | 0.575666 |
bdbef62721c57f4ff1f45784b7fdfb725c1df881 | 637 | py | Python | utils/database.py | JustUndertaker/tuanzi_bot | 8bb989aceb1a89569f2fcb804c73f7b650feb1f0 | [
"MIT"
] | 8 | 2021-07-22T02:57:02.000Z | 2021-12-30T03:55:38.000Z | utils/database.py | JustUndertaker/tuanzi_bot | 8bb989aceb1a89569f2fcb804c73f7b650feb1f0 | [
"MIT"
] | 1 | 2021-12-05T17:58:07.000Z | 2021-12-06T12:59:36.000Z | utils/database.py | JustUndertaker/tuanzi_bot | 8bb989aceb1a89569f2fcb804c73f7b650feb1f0 | [
"MIT"
] | 3 | 2021-07-22T02:57:05.000Z | 2022-01-30T12:18:59.000Z | from peewee import SqliteDatabase
from configs.pathConfig import DATABASE_PATH
from modules.user_info import UserInfo
from modules.group_info import GroupInfo
from modules.user_level import UserLevel
from modules.plugin_info import PluginInfo
from nonebot.log import logger
from modules.duel_history import DuelHistory... | 21.965517 | 44 | 0.717425 |
bdc213067babab163ebb098b21ef2236725354e5 | 229 | py | Python | flask_app/commands.py | loganathanengrr/FlaskBasicRestfulAPI | 4d80cee638a2da7d808f3a0da62ffc3a6d31aeff | [
"MIT"
] | null | null | null | flask_app/commands.py | loganathanengrr/FlaskBasicRestfulAPI | 4d80cee638a2da7d808f3a0da62ffc3a6d31aeff | [
"MIT"
] | null | null | null | flask_app/commands.py | loganathanengrr/FlaskBasicRestfulAPI | 4d80cee638a2da7d808f3a0da62ffc3a6d31aeff | [
"MIT"
] | null | null | null | import click
from flask.cli import with_appcontext
from .extensions import db | 17.615385 | 37 | 0.772926 |
bdc3191c5a27d01ad5628a96d1cd35dc68c60b85 | 11,900 | py | Python | src/checkrs/reliability.py | timothyb0912/checkrs | 213ac39b5dccc0c38d984a66286174de070af00d | [
"BSD-3-Clause"
] | 2 | 2021-08-31T17:07:12.000Z | 2021-09-02T09:20:33.000Z | src/checkrs/reliability.py | timothyb0912/checkrs | 213ac39b5dccc0c38d984a66286174de070af00d | [
"BSD-3-Clause"
] | 28 | 2020-09-26T01:38:14.000Z | 2020-12-03T00:47:22.000Z | src/checkrs/reliability.py | timothyb0912/checkrs | 213ac39b5dccc0c38d984a66286174de070af00d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Functions for plotting reliability diagrams: smooths of simulated vs observed
outcomes on the y-axis against predicted probabilities on the x-axis.
"""
from __future__ import absolute_import
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sbn
from .plot_utils import _l... | 38.511327 | 79 | 0.661597 |
bdc38f283a3c77df2e3f461aa39d50fc32d9dfb8 | 4,293 | py | Python | scripts/api-lambda-tasks/background_handler.py | knowmetools/km-api-deployment | 04004f7934de805ef30df7905dfca54ea1377331 | [
"MIT"
] | 1 | 2019-07-21T15:31:10.000Z | 2019-07-21T15:31:10.000Z | scripts/api-lambda-tasks/background_handler.py | knowmetools/km-api-deployment | 04004f7934de805ef30df7905dfca54ea1377331 | [
"MIT"
] | 20 | 2018-10-28T15:40:16.000Z | 2019-04-24T22:57:38.000Z | scripts/api-lambda-tasks/background_handler.py | knowmetools/km-api-deployment | 04004f7934de805ef30df7905dfca54ea1377331 | [
"MIT"
] | 1 | 2019-05-02T15:56:43.000Z | 2019-05-02T15:56:43.000Z | """
An AWS Lambda function used to run periodic background jobs on ECS.
The complication with running these tasks is that we need to run them on
the same version of the Docker image that the web servers are currently
running on.
"""
import logging
import boto3
from utils import env_list, env_param
# Logging setup... | 31.108696 | 78 | 0.6471 |
bdc57bbf00711568b69e1c297c15152be9edf45c | 903 | py | Python | pype/hosts/resolve/utility_scripts/__test_subprocess.py | kalisp/pype | 28bbffaf2d12ccee48313cd9985e8dfa05e81a5c | [
"MIT"
] | null | null | null | pype/hosts/resolve/utility_scripts/__test_subprocess.py | kalisp/pype | 28bbffaf2d12ccee48313cd9985e8dfa05e81a5c | [
"MIT"
] | null | null | null | pype/hosts/resolve/utility_scripts/__test_subprocess.py | kalisp/pype | 28bbffaf2d12ccee48313cd9985e8dfa05e81a5c | [
"MIT"
] | null | null | null | #! python3
# -*- coding: utf-8 -*-
import os
from pypeapp import execute, Logger
from pype.hosts.resolve.utils import get_resolve_module
log = Logger().get_logger("Resolve")
CURRENT_DIR = os.getenv("RESOLVE_UTILITY_SCRIPTS_DIR", "")
python_dir = os.getenv("PYTHON36_RESOLVE")
python_exe = os.path.normpath(
os.path... | 25.083333 | 64 | 0.751938 |
bdc5844645346783e54e248ff78672cbab8ddee8 | 531 | py | Python | faker_tax/de_DE/__init__.py | mastacheata/faker_tax | 178cbb106cac1fc215857438da667560f9d0d8d3 | [
"MIT"
] | null | null | null | faker_tax/de_DE/__init__.py | mastacheata/faker_tax | 178cbb106cac1fc215857438da667560f9d0d8d3 | [
"MIT"
] | null | null | null | faker_tax/de_DE/__init__.py | mastacheata/faker_tax | 178cbb106cac1fc215857438da667560f9d0d8d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .. import Provider as TaxProvider
| 21.24 | 98 | 0.532957 |
bdc6a21df96948967bd912d69f2b58d22c52640e | 6,647 | bzl | Python | xunit/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | 1 | 2021-10-10T17:17:27.000Z | 2021-10-10T17:17:27.000Z | xunit/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | null | null | null | xunit/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | null | null | null | load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_library", "core_resource")
filegroup(
name = "core_common",
srcs = [
":src/common/ExceptionExtensions.cs",
":src/common/Guard.cs",
":src/common/TestMethodDisplay.cs",
":src/common/TestMethodDisplayOptions.cs",
] + ["@xuni... | 28.285106 | 92 | 0.595607 |
bdc90650dfd34fb9ce606afa37edf327db8e1df2 | 9,539 | py | Python | preprocessing/libs/networks/DCFNet_bk.py | vision4robotics/UDAT | f06971ec7d6794d0572864cf9fd6d49a66201303 | [
"Apache-2.0"
] | 81 | 2022-03-06T05:10:46.000Z | 2022-03-30T09:43:41.000Z | preprocessing/libs/networks/DCFNet_bk.py | JayYe99/UDAT | f06971ec7d6794d0572864cf9fd6d49a66201303 | [
"Apache-2.0"
] | null | null | null | preprocessing/libs/networks/DCFNet_bk.py | JayYe99/UDAT | f06971ec7d6794d0572864cf9fd6d49a66201303 | [
"Apache-2.0"
] | 13 | 2022-03-07T12:11:44.000Z | 2022-03-31T06:16:01.000Z | from collections import OrderedDict
import torch
import torch.nn as nn
import torch.nn.functional as F
import logging
from libs.modules.FuseBlock import MakeFB
from .resnet_dilation import resnet50, resnet101, Bottleneck, conv1x1
BN_MOMENTUM = 0.1
logger = logging.getLogger(__name__)
def conv3x3(in_planes, out_plan... | 37.261719 | 114 | 0.595136 |
bdcac396d2bb477cbb6a26d42312e0d9c7ee842a | 1,078 | py | Python | authentik/flows/api/bindings.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/flows/api/bindings.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/flows/api/bindings.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | """Flow Binding API Views"""
from rest_framework.serializers import ModelSerializer
from rest_framework.viewsets import ModelViewSet
from authentik.core.api.used_by import UsedByMixin
from authentik.flows.api.stages import StageSerializer
from authentik.flows.models import FlowStageBinding
| 27.641026 | 63 | 0.679963 |
bdcaeae6b1b062a8a148a1dd3ff038f6a084729a | 2,707 | py | Python | lecture5/recording_utils.py | zodoctor/lectures-fall2018 | 84efbc0ed95143e5db4f81432e4afe2a5cf4d962 | [
"MIT"
] | 4 | 2018-10-18T02:11:42.000Z | 2021-07-20T14:51:04.000Z | lecture5/recording_utils.py | zodoctor/lectures-fall2018 | 84efbc0ed95143e5db4f81432e4afe2a5cf4d962 | [
"MIT"
] | 1 | 2018-10-18T00:10:55.000Z | 2018-10-18T00:10:55.000Z | lecture5/recording_utils.py | zodoctor/lectures-fall2018 | 84efbc0ed95143e5db4f81432e4afe2a5cf4d962 | [
"MIT"
] | 4 | 2018-10-18T00:09:45.000Z | 2018-12-09T02:52:15.000Z | import pyaudio
import wave
import time
def record_wav_file(CHUNK = 1024,
FORMAT = pyaudio.paInt16,
CHANNELS = 2,
RATE = 44100,
RECORD_SECONDS = 5,
WAVE_OUTPUT_FILENAME = "voice.wav"):
"""
Creates a wav audio fi... | 24.169643 | 76 | 0.534171 |
bdcaf4a5a8cb5e8e9f9ef295e59e7b1a6bea94e1 | 260 | py | Python | python/Util/test.py | zhclwr/demo | c6ddd2f3f3752e4badeab05eaeb1c0adf5e66201 | [
"MIT"
] | null | null | null | python/Util/test.py | zhclwr/demo | c6ddd2f3f3752e4badeab05eaeb1c0adf5e66201 | [
"MIT"
] | 2 | 2020-06-03T02:31:02.000Z | 2021-07-15T01:59:10.000Z | python/Util/test.py | zhclwr/demo | c6ddd2f3f3752e4badeab05eaeb1c0adf5e66201 | [
"MIT"
] | null | null | null | res = []
with open('test.txt', mode='r', encoding="utf-8") as f:
for line in f:
arr = line.split()
print(arr)
res.append(arr[1])
r = '\t'.join(res)
with open('res.txt', mode='w', encoding="utf-8") as f:
# print(r)
f.write(r) | 26 | 55 | 0.526923 |
bdcd8e26ddd13dd4ce1c1861d96a8cb46d3fcca3 | 2,396 | py | Python | meowth/settings.py | bheuair/Professeurchen | 2e582962172c631d2ca8f276c51a0a206f37b678 | [
"MIT"
] | 1 | 2021-05-22T01:45:50.000Z | 2021-05-22T01:45:50.000Z | meowth/settings.py | bheuair/Professeurchen | 2e582962172c631d2ca8f276c51a0a206f37b678 | [
"MIT"
] | null | null | null | meowth/settings.py | bheuair/Professeurchen | 2e582962172c631d2ca8f276c51a0a206f37b678 | [
"MIT"
] | null | null | null |
def trainer(self, member_id=None):
member_id = member_id or self.ctx.author.id
trainer_data = self.trainers.get(member_id)
if not trainer_data:
return None
return TrainerData(self.ctx.bot, trainer_data)
| 27.54023 | 62 | 0.624791 |
bdcfc8f785228d954f5cb6cfe7bd69297b349ece | 386 | py | Python | blog/migrations/0013_auto_20191023_1808.py | mogubudu/django_blog_backend | 88147135607e8119def1126dff34977f21bc0b6d | [
"MIT"
] | null | null | null | blog/migrations/0013_auto_20191023_1808.py | mogubudu/django_blog_backend | 88147135607e8119def1126dff34977f21bc0b6d | [
"MIT"
] | 11 | 2020-02-12T02:51:13.000Z | 2022-03-12T00:05:58.000Z | blog/migrations/0013_auto_20191023_1808.py | NecrOctopuS/sensive_blog_templates | 180636d8f0340d8bd8f3e902335c07a16fe77c78 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-23 15:08
from django.db import migrations
| 18.380952 | 47 | 0.551813 |
bdd0af6c2f2015fb2a443ee97ac3bac542ad026f | 1,441 | py | Python | drf_admin/apps/monitor/serializers/crud.py | guohaihan/myproject | 0ec105d0bd48477faddf93bd62a8ede800419ae6 | [
"MIT"
] | 228 | 2020-06-20T10:07:03.000Z | 2022-03-29T07:11:01.000Z | drf_admin/apps/monitor/serializers/crud.py | guohaihan/myproject | 0ec105d0bd48477faddf93bd62a8ede800419ae6 | [
"MIT"
] | 25 | 2020-07-16T12:29:04.000Z | 2022-02-16T06:31:06.000Z | drf_admin/apps/monitor/serializers/crud.py | guohaihan/myproject | 0ec105d0bd48477faddf93bd62a8ede800419ae6 | [
"MIT"
] | 82 | 2020-10-26T07:14:15.000Z | 2022-03-29T07:53:23.000Z | # -*- coding: utf-8 -*-
"""
@author : Wang Meng
@github : https://github.com/tianpangji
@software : PyCharm
@file : crud.py
@create : 2020/12/9 20:44
"""
from django.contrib.contenttypes.models import ContentType
from easyaudit.models import CRUDEvent
from rest_framework import serializers
| 32.75 | 106 | 0.674532 |
bdd11ff80932a282699920a25ee271c0f0edc2ad | 181 | py | Python | __init__.py | benjaoming/sushi-chef-elejandria-libros | 02b7518985805e8ddd2f3ae1985e6321216946f7 | [
"MIT"
] | null | null | null | __init__.py | benjaoming/sushi-chef-elejandria-libros | 02b7518985805e8ddd2f3ae1985e6321216946f7 | [
"MIT"
] | 1 | 2020-04-13T14:37:10.000Z | 2020-04-23T15:23:09.000Z | __init__.py | benjaoming/sushi-chef-elejandria-libros | 02b7518985805e8ddd2f3ae1985e6321216946f7 | [
"MIT"
] | 1 | 2020-04-23T14:52:02.000Z | 2020-04-23T14:52:02.000Z | # -*- coding: utf-8 -*-
"""Top-level package for Elejandria Libros chef."""
__author__ = """Learning Equality"""
__email__ = 'benjamin@learningequality.org'
__version__ = '0.1.0'
| 22.625 | 51 | 0.685083 |
bdd2370f8441545d816945ef9ee513efcf9cd12d | 701 | py | Python | Interview-Preparation/Facebook/Explore/3-Trees-and-Graphs/Trees-09-Convert-Binary-Search-Tree-to-Sorted-Doubly-Linked-List.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Interview-Preparation/Facebook/Explore/3-Trees-and-Graphs/Trees-09-Convert-Binary-Search-Tree-to-Sorted-Doubly-Linked-List.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Interview-Preparation/Facebook/Explore/3-Trees-and-Graphs/Trees-09-Convert-Binary-Search-Tree-to-Sorted-Doubly-Linked-List.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | """
# Definition for a Node.
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
"""
| 25.035714 | 55 | 0.495007 |
bdd279599e1187ff595e03201dfe2b321502e136 | 212 | py | Python | py/solutions/goorm/financial_crisis.py | aid95/algorithm-diary | ee7df895761b095d02a08f762c682af5b93add4b | [
"MIT"
] | null | null | null | py/solutions/goorm/financial_crisis.py | aid95/algorithm-diary | ee7df895761b095d02a08f762c682af5b93add4b | [
"MIT"
] | null | null | null | py/solutions/goorm/financial_crisis.py | aid95/algorithm-diary | ee7df895761b095d02a08f762c682af5b93add4b | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
user_input = input()
param = [int(x) for x in user_input.split()]
print(solution(salaries=param))
| 23.555556 | 48 | 0.65566 |
bdd63a280bbc4fadd3fbfb055d01eb74b5acc991 | 3,490 | py | Python | pyPing.py | michael080808/pyPing | c1f9b6f505c8f0b3d521741153ccb737a63735b6 | [
"Apache-2.0"
] | null | null | null | pyPing.py | michael080808/pyPing | c1f9b6f505c8f0b3d521741153ccb737a63735b6 | [
"Apache-2.0"
] | null | null | null | pyPing.py | michael080808/pyPing | c1f9b6f505c8f0b3d521741153ccb737a63735b6 | [
"Apache-2.0"
] | null | null | null | """
ICMP(Internet Control Message Protocol) - Echo Request:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0|0|0|0|0|0|0|0|0|0|1|1|1|1|1|1|1|1|1|1|2|2|2|2|2|2|2|2|2|2|3|3|
|0|1|2|3|4|5|6|7|8|9|0|1|2|3|4|5|6|7|8|9|0|1|2|3|4|5|6|7|8|9|0|1|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+... | 40.581395 | 150 | 0.408023 |
bdd7520bd4fd277b0dd3e2771fe64818bf6849b9 | 2,400 | py | Python | test/test_to_delete_contact_from_group.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | test/test_to_delete_contact_from_group.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | test/test_to_delete_contact_from_group.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | import random
from model.contact import Contact
from model.group import Group
| 52.173913 | 103 | 0.705833 |
bdd76358fcc8d2bd59b4278ed90e7d8f34de241a | 6,640 | py | Python | spreadsplug/web/__init__.py | atomotic/spreads | 754a5b21ec6d1bf83bd0137195a468b387670d16 | [
"MIT"
] | 1 | 2019-05-03T11:58:10.000Z | 2019-05-03T11:58:10.000Z | spreadsplug/web/__init__.py | atomotic/spreads | 754a5b21ec6d1bf83bd0137195a468b387670d16 | [
"MIT"
] | null | null | null | spreadsplug/web/__init__.py | atomotic/spreads | 754a5b21ec6d1bf83bd0137195a468b387670d16 | [
"MIT"
] | null | null | null | import gzip
import logging
import logging.handlers
import os
from cStringIO import StringIO as IO
from spreads.vendor.huey import SqliteHuey
from spreads.vendor.huey.consumer import Consumer
from spreads.vendor.pathlib import Path
from flask import Flask, request
from spreads.plugin import (HookPlugin, SubcommandHook... | 34.764398 | 77 | 0.612199 |
bdd80dfc3e071839933ba47a882a96a4513d0dc0 | 359 | py | Python | src/pyrin/users/internal/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/users/internal/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/users/internal/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
users internal package.
"""
from pyrin.packaging.base import Package
| 18.894737 | 47 | 0.610028 |
bdd95548fe506437e03c5f8630769e55e0fd2be5 | 12,556 | py | Python | data_preprocessing/cvat_annotation_converter.py | Hoclor/CoSADUV-Contextual-Saliency-for-Detecting-Anomalies-in-UAV-Video | 674b72af15ba8833317b8daa9d1e614ea63151c1 | [
"MIT"
] | 4 | 2019-07-01T14:55:33.000Z | 2021-01-18T02:34:38.000Z | data_preprocessing/cvat_annotation_converter.py | Hoclor/CoSADUV-Contextual-Saliency-for-Detecting-Anomalies-in-UAV-Video | 674b72af15ba8833317b8daa9d1e614ea63151c1 | [
"MIT"
] | null | null | null | data_preprocessing/cvat_annotation_converter.py | Hoclor/CoSADUV-Contextual-Saliency-for-Detecting-Anomalies-in-UAV-Video | 674b72af15ba8833317b8daa9d1e614ea63151c1 | [
"MIT"
] | null | null | null | """A tool to convert annotation files created with CVAT into ground-truth style images
for machine learning. The initial code was copied from:
https://gist.github.com/cheind/9850e35bb08cfe12500942fb8b55531f
originally written for a similar purpose for the tool BeaverDam (which produces json),
and was then adapted f... | 39.115265 | 151 | 0.564352 |
bdd9c72377d30ece20cd9fbef8ea7614bac17e4f | 2,426 | py | Python | 爬虫小demo/22 JDPython.py | lb2281075105/Python-Spider | be5b75c5a9c0338fbac26f929f8121ff6f184ef7 | [
"Apache-2.0"
] | 713 | 2017-11-20T03:04:54.000Z | 2022-03-08T15:18:38.000Z | 爬虫小demo/22 JDPython.py | looio/Python-Spider-1 | be5b75c5a9c0338fbac26f929f8121ff6f184ef7 | [
"Apache-2.0"
] | null | null | null | 爬虫小demo/22 JDPython.py | looio/Python-Spider-1 | be5b75c5a9c0338fbac26f929f8121ff6f184ef7 | [
"Apache-2.0"
] | 279 | 2017-11-30T09:57:12.000Z | 2022-03-19T15:01:54.000Z | import time
from selenium import webdriver
from lxml import etree
driver = webdriver.PhantomJS(executable_path='./phantomjs-2.1.1-macosx/bin/phantomjs')
#
data = get_html()
#
commens = get_comments(data)
#
gettotalpagecomments(commens)
| 27.885057 | 151 | 0.637263 |
bdd9de934ee9fd434eefbe9fe3875d38a23ceaf3 | 4,010 | py | Python | tools/mufom.py | asterick/pokemon-tc | 17a1f189bf3bcd65ab6834f2bc8f40c99c82c97a | [
"MIT"
] | null | null | null | tools/mufom.py | asterick/pokemon-tc | 17a1f189bf3bcd65ab6834f2bc8f40c99c82c97a | [
"MIT"
] | null | null | null | tools/mufom.py | asterick/pokemon-tc | 17a1f189bf3bcd65ab6834f2bc8f40c99c82c97a | [
"MIT"
] | null | null | null | from struct import unpack
import sys, re
# Not listed:
# @SPLT
# @CALL
6# ?
FUNCTIONS = {
0x90: "<<",
0x91: ">>",
0x92: "@UDEF2",
0x93: "@DUPL",
0x94: "@EXCH",
0x95: "@UDEF5",
0x96: "@UDEF6",
0x97: "@UDEF7",
0x98: "@UDEF8",
0x99: "@UDEF9",
0x9A: "@UDEFA",
0x9B: "@UDEFB",
0x9C: "@UDEFC",
0x9D: "@UDEFD",
... | 18.144796 | 84 | 0.587032 |
bddb7f4a0ba96bba53445caadd940ad99757da27 | 83 | py | Python | codetest.py | Shannon-NJIT/PyCharmsHW | a2f97c0298bc0c52ea4c44e4aa0eed8add1dd546 | [
"MIT"
] | null | null | null | codetest.py | Shannon-NJIT/PyCharmsHW | a2f97c0298bc0c52ea4c44e4aa0eed8add1dd546 | [
"MIT"
] | null | null | null | codetest.py | Shannon-NJIT/PyCharmsHW | a2f97c0298bc0c52ea4c44e4aa0eed8add1dd546 | [
"MIT"
] | null | null | null | #adding two numbers
num1 = 2
num2 = 3
sum = num1 + num2
print("The sum is:", sum) | 11.857143 | 25 | 0.638554 |
bddca6ab8bbe9dcf087ad709791d9514a1b13485 | 1,575 | py | Python | molder/__init__.py | lukasturcani/molder | a5a3e8e3958dd0daa83576ec7a21cfc73f5b75d2 | [
"MIT"
] | null | null | null | molder/__init__.py | lukasturcani/molder | a5a3e8e3958dd0daa83576ec7a21cfc73f5b75d2 | [
"MIT"
] | null | null | null | molder/__init__.py | lukasturcani/molder | a5a3e8e3958dd0daa83576ec7a21cfc73f5b75d2 | [
"MIT"
] | null | null | null | """
"""
from flask import Flask
import os
import json
from molder import db, site
def create_app(instance_path=None, test_config=None):
"""
Create and configure the molder Flask application.
Parameters
----------
instance_path : :class:`str`, optional
Path to the instance directory of t... | 26.25 | 67 | 0.652698 |
bdde56a5f3d286d1bafe98ef4b315a28e95bec3c | 126 | py | Python | Tensorflow/Test Project/basic classification.py | iggy12345/Neural-Network-Vault | 01e6826ea674599c847fd8f2128d326fdea2fe44 | [
"MIT"
] | null | null | null | Tensorflow/Test Project/basic classification.py | iggy12345/Neural-Network-Vault | 01e6826ea674599c847fd8f2128d326fdea2fe44 | [
"MIT"
] | null | null | null | Tensorflow/Test Project/basic classification.py | iggy12345/Neural-Network-Vault | 01e6826ea674599c847fd8f2128d326fdea2fe44 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plt
print(tf.__version__) | 21 | 31 | 0.833333 |
bddfd7946c2849638a10f390898a0315181e3ce4 | 2,689 | py | Python | _scripts/generate_og.py | sp301415/sp301415.github.io | 0b66ae5a5890cacab10780b84511a6e51fbb5189 | [
"MIT"
] | 2 | 2017-06-25T05:34:27.000Z | 2020-11-23T08:09:52.000Z | _scripts/generate_og.py | sp301415/sp301415.github.io | 0b66ae5a5890cacab10780b84511a6e51fbb5189 | [
"MIT"
] | 3 | 2021-11-13T06:20:31.000Z | 2022-02-20T11:51:29.000Z | _scripts/generate_og.py | sp301415/sp301415.github.io | 0b66ae5a5890cacab10780b84511a6e51fbb5189 | [
"MIT"
] | null | null | null | from PIL import Image, ImageDraw, ImageFont
from urllib.request import urlopen
from textwrap import wrap
import os
BOLD_FONT_URL = "https://cdn.jsdelivr.net/gh/spoqa/spoqa-han-sans@latest/Subset/SpoqaHanSansNeo/SpoqaHanSansNeo-Bold.ttf"
LIGHT_FONT_URL = "https://cdn.jsdelivr.net/gh/spoqa/spoqa-han-sans@latest/Subset/S... | 28.913978 | 125 | 0.666791 |
bde034cc56effa2226dd050d0510bc87cde947d8 | 1,682 | py | Python | molecule/layouts/tests/test_minio_default.py | Cloud-Temple/ansible-minio | 401e45be33428e6502b9dcf28cbc717ea410f5a5 | [
"MIT"
] | 4 | 2019-06-11T22:10:43.000Z | 2022-01-26T04:55:01.000Z | molecule/layouts/tests/test_minio_default.py | Cloud-Temple/ansible-minio | 401e45be33428e6502b9dcf28cbc717ea410f5a5 | [
"MIT"
] | 5 | 2020-10-29T22:01:21.000Z | 2021-03-30T15:59:27.000Z | molecule/layouts/tests/test_minio_default.py | Cloud-Temple/ansible-minio | 401e45be33428e6502b9dcf28cbc717ea410f5a5 | [
"MIT"
] | 5 | 2019-09-10T12:46:17.000Z | 2022-01-14T15:47:11.000Z | import os
import yaml
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
dir_path = os.path.dirname(os.path.abspath(__file__))
def test_minio_server_data_directory(host, AnsibleDefaults, An... | 30.035714 | 85 | 0.689655 |
bde3bd9756acd1104d36ea8d6996f2de2d55c5e2 | 4,562 | py | Python | src/test.py | sriteja777/megathon2k19-qualcom | 42b673a52cda8a164ab9f2c1dfeaf69a6b203cdd | [
"MIT"
] | null | null | null | src/test.py | sriteja777/megathon2k19-qualcom | 42b673a52cda8a164ab9f2c1dfeaf69a6b203cdd | [
"MIT"
] | 5 | 2020-03-24T17:39:51.000Z | 2021-08-23T20:22:11.000Z | src/test.py | sriteja777/megathon2k19-qualcom | 42b673a52cda8a164ab9f2c1dfeaf69a6b203cdd | [
"MIT"
] | null | null | null | # from final import dictionary, corpus, lda
import pandas as pd
import numpy as np
import nltk
from nltk.corpus import stopwords
import gensim
from gensim.models import LdaModel
from gensim import models, corpora, similarities
import re
from nltk.stem.porter import PorterStemmer
import time
from nltk import FreqDist
fr... | 25.486034 | 101 | 0.687856 |
bde4dfe4fd22f363c49050c7975fcf9fba9ed474 | 494 | py | Python | setup.py | yongzx/labelmodels | 78d27e2b5cc56ec167f6f485b811b93c8f5b2c26 | [
"Apache-2.0"
] | 12 | 2019-11-01T19:00:58.000Z | 2022-01-18T20:53:53.000Z | setup.py | yongzx/labelmodels | 78d27e2b5cc56ec167f6f485b811b93c8f5b2c26 | [
"Apache-2.0"
] | 3 | 2021-06-09T01:22:05.000Z | 2021-07-15T03:18:22.000Z | setup.py | yongzx/labelmodels | 78d27e2b5cc56ec167f6f485b811b93c8f5b2c26 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:31:57.000Z | 2022-01-10T23:31:57.000Z | from setuptools import setup, find_packages
setup(
name='labelmodels',
version='0.0.1',
url='https://github.com/BatsResearch/labelmodels.git',
author='Shiying Luo, Stephen Bach',
author_email='shiying_luo@brown.edu, sbach@cs.brown.edu',
description='Lightweight implementations of generative lab... | 35.285714 | 77 | 0.682186 |
bde6e989e07bb55ab16b23d172da5b495fbbd5e6 | 1,369 | py | Python | experiment.py | tansey/tstd0 | a59bc3edad452a47d5ad35c22ab68c5ccafbb4c0 | [
"MIT"
] | 13 | 2015-05-09T14:15:07.000Z | 2021-09-18T07:39:59.000Z | experiment.py | tansey/tstd0 | a59bc3edad452a47d5ad35c22ab68c5ccafbb4c0 | [
"MIT"
] | null | null | null | experiment.py | tansey/tstd0 | a59bc3edad452a47d5ad35c22ab68c5ccafbb4c0 | [
"MIT"
] | 2 | 2017-12-07T03:05:54.000Z | 2018-06-19T16:23:17.000Z | import sys
import csv
from gridworld import *
import qlearning
import tstd
if __name__ == "__main__":
build_rewards()
outfile = sys.argv[1]
bandits = int(sys.argv[2])
episodes = int(sys.argv[3])
world = GridWorld(num_bandits = bandits)
"""
# TESTING WITH DETERMINISTIC WORLD
world.band... | 27.938776 | 65 | 0.585829 |
bdea78d60279d807585b9f632444f5b5bc4aafb3 | 17,605 | py | Python | remedy/admin_views/resourceview.py | AllieDeford/radremedy | 8ef41fe150938a449ba3494efe0e954d2c03436f | [
"BSD-3-Clause"
] | null | null | null | remedy/admin_views/resourceview.py | AllieDeford/radremedy | 8ef41fe150938a449ba3494efe0e954d2c03436f | [
"BSD-3-Clause"
] | null | null | null | remedy/admin_views/resourceview.py | AllieDeford/radremedy | 8ef41fe150938a449ba3494efe0e954d2c03436f | [
"BSD-3-Clause"
] | null | null | null | """
resourceview.py
Contains administrative views for working with resources.
"""
from datetime import date
from admin_helpers import *
from sqlalchemy import or_, not_, func
from flask import current_app, redirect, flash, request, url_for
from flask.ext.admin import BaseView, expose
from flask.ext.admin.actions im... | 35.21 | 139 | 0.586311 |