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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e52d6019fd994380e0d9a2736246d284c148e9ba | 443 | py | Python | manufacturer/migrations/0002_manufacturer_website.py | skaaldig/borrowing | 70a19a1f3db3719247e42814176ed6b69afe081c | [
"MIT"
] | null | null | null | manufacturer/migrations/0002_manufacturer_website.py | skaaldig/borrowing | 70a19a1f3db3719247e42814176ed6b69afe081c | [
"MIT"
] | null | null | null | manufacturer/migrations/0002_manufacturer_website.py | skaaldig/borrowing | 70a19a1f3db3719247e42814176ed6b69afe081c | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-05-06 17:02
from django.db import migrations, models
| 22.15 | 62 | 0.611738 |
e52e7114c4c8002c2b57e4ffbd0cc8038d0f43cb | 3,656 | py | Python | download/ABCD_download.py | ThomasYeoLab/ABCD_scripts | 980097b3d89e63dd4efd037841f135ade7d3750e | [
"MIT"
] | 2 | 2021-08-08T06:49:04.000Z | 2021-11-05T02:36:08.000Z | download/ABCD_download.py | ThomasYeoLab/ABCD_scripts | 980097b3d89e63dd4efd037841f135ade7d3750e | [
"MIT"
] | null | null | null | download/ABCD_download.py | ThomasYeoLab/ABCD_scripts | 980097b3d89e63dd4efd037841f135ade7d3750e | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[36]:
import pandas
import os
import sys
import datetime
from nda_aws_token_generator import *
from pathlib import Path
# In[37]:
# In[38]:
def ABCD_download(id_list,table_file,username,password,save_dir,mod):
'''
Download image from ABCD dataset
Input:
id_list: list... | 30.214876 | 108 | 0.596827 |
e5305625c9e9dae45c52f19c66a53acf6a2aebc6 | 264 | py | Python | scripts/common/base.py | gokhankesler/python-etl-design | 155e1d693310a71c808e3b56c369d8ebac30fb6d | [
"MIT"
] | null | null | null | scripts/common/base.py | gokhankesler/python-etl-design | 155e1d693310a71c808e3b56c369d8ebac30fb6d | [
"MIT"
] | 1 | 2022-03-25T21:19:29.000Z | 2022-03-25T22:26:03.000Z | scripts/common/base.py | gokhankesler/python-etl-design | 155e1d693310a71c808e3b56c369d8ebac30fb6d | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from sqlalchemy.orm import declarative_base
engine = create_engine(
'postgresql+psycopg2://postgres:password@localhost:1234/postgres'
)
session = Session(engine)
Base = declarative_base() | 29.333333 | 69 | 0.818182 |
e531b710168000fb19686b8427b5f08f5ee87495 | 1,953 | py | Python | main.py | projectweekend/3spot | 807ebd801a47f65e63d1e46534682bc24cc4e179 | [
"MIT"
] | null | null | null | main.py | projectweekend/3spot | 807ebd801a47f65e63d1e46534682bc24cc4e179 | [
"MIT"
] | null | null | null | main.py | projectweekend/3spot | 807ebd801a47f65e63d1e46534682bc24cc4e179 | [
"MIT"
] | null | null | null | import json
from time import sleep
from boto import sqs
from boto.dynamodb2.table import Table
from boto.dynamodb2.exceptions import ConditionalCheckFailedException
from worker import config
from worker.models import Account
from worker.logs import get_logger
LOGGER = get_logger()
FEED_ITEMS = Table('feed_items')
... | 26.753425 | 93 | 0.668203 |
e53582b8080f18a79a7df6f46b64c6c7e69f7c3c | 8,383 | py | Python | pytest_railflow_testrail_reporter/plugin.py | athulvis/railflow-pytest-plugin | d975f207ad2aae868b20191ecbe4afba65663fa8 | [
"MIT"
] | null | null | null | pytest_railflow_testrail_reporter/plugin.py | athulvis/railflow-pytest-plugin | d975f207ad2aae868b20191ecbe4afba65663fa8 | [
"MIT"
] | null | null | null | pytest_railflow_testrail_reporter/plugin.py | athulvis/railflow-pytest-plugin | d975f207ad2aae868b20191ecbe4afba65663fa8 | [
"MIT"
] | null | null | null | import re
from datetime import datetime
from collections import OrderedDict
import warnings
import json
import pytest
from _pytest.mark.structures import Mark
_py_ext_re = re.compile(r"\.py$")
warnings.formatwarning = warning_on_one_line
def pytest_addoption(parser):
"""
Adds commandline option for creat... | 31.397004 | 84 | 0.515448 |
e535bfc9c7f90126dc6673931be676d210960e59 | 12,582 | py | Python | procHeaders.py | pummelator/flipnote-id | 18ddf403099ee96f268c65f31fae6b7ad94d021d | [
"MIT"
] | 1 | 2022-02-13T04:51:03.000Z | 2022-02-13T04:51:03.000Z | procHeaders.py | pummelator/flipnote-id | 18ddf403099ee96f268c65f31fae6b7ad94d021d | [
"MIT"
] | null | null | null | procHeaders.py | pummelator/flipnote-id | 18ddf403099ee96f268c65f31fae6b7ad94d021d | [
"MIT"
] | null | null | null |
from math import ceil
from objects import *
global VERBOSE_OUT
VERBOSE_OUT = False
# Converts a series of bytes from a list into a String by interpreting them as ASCII values
# Converts a series of little-endian words (byte pairs) into a String by interpreting them as UCS-2/UTF-16 values
# Converts a little-endia... | 53.540426 | 198 | 0.635511 |
e53611edeaf9a9312d525eca0b0095cd4b72fe17 | 2,084 | py | Python | tests/futures/account/test_cancel_batch_orders.py | leozaragoza/binance-connector-python | 3311d102c9e788e3d71047f0af103c00d1ae2162 | [
"MIT"
] | 3 | 2021-08-16T15:29:09.000Z | 2021-09-14T16:25:03.000Z | tests/futures/account/test_cancel_batch_orders.py | leozaragoza/binance-connector-python | 3311d102c9e788e3d71047f0af103c00d1ae2162 | [
"MIT"
] | null | null | null | tests/futures/account/test_cancel_batch_orders.py | leozaragoza/binance-connector-python | 3311d102c9e788e3d71047f0af103c00d1ae2162 | [
"MIT"
] | null | null | null | import responses
from urllib.parse import urlencode
from tests.util import random_str
from tests.util import mock_http_response
from binance.futures import Futures as Client
from binance.error import ParameterRequiredError, ClientError
mock_item = {"key_1": "value_1", "key_2": "value_2"}
mock_exception = {"code": -11... | 33.612903 | 119 | 0.756238 |
e537e375e2fa64824d956760c021d153f182f061 | 271 | py | Python | code/print_built_ins.py | runxel/archicad-python | 46a87e6de7c383dc9e406da4f8010d07ca50e00f | [
"BlueOak-1.0.0"
] | 1 | 2021-03-31T18:06:58.000Z | 2021-03-31T18:06:58.000Z | code/print_built_ins.py | runxel/archicad-python | 46a87e6de7c383dc9e406da4f8010d07ca50e00f | [
"BlueOak-1.0.0"
] | null | null | null | code/print_built_ins.py | runxel/archicad-python | 46a87e6de7c383dc9e406da4f8010d07ca50e00f | [
"BlueOak-1.0.0"
] | null | null | null | # <https://
# Prints all built-in property names into a file
from archicad import ACConnection
conn = ACConnection.connect()
assert conn
acc = conn.commands
built_ins = acc.GetAllPropertyNames()
with open('built_ins_list.txt', 'w') as f:
print(built_ins, file=f)
| 19.357143 | 48 | 0.738007 |
e53b49bfd7c059f1cbd94012c5553483fcf394e0 | 1,089 | py | Python | specializers/array_map/array_map.py | shoaibkamil/asp | 2bc5fd5595c475d43b9ee4451db1b51eb9165fdb | [
"BSD-3-Clause"
] | 12 | 2015-03-20T17:39:23.000Z | 2021-03-17T17:14:25.000Z | specializers/array_map/array_map.py | shoaibkamil/asp | 2bc5fd5595c475d43b9ee4451db1b51eb9165fdb | [
"BSD-3-Clause"
] | 1 | 2015-12-28T11:22:48.000Z | 2015-12-28T11:22:48.000Z | specializers/array_map/array_map.py | shoaibkamil/asp | 2bc5fd5595c475d43b9ee4451db1b51eb9165fdb | [
"BSD-3-Clause"
] | 9 | 2015-01-06T00:36:53.000Z | 2020-09-19T14:31:26.000Z | # really dumb example of using tree transformations w/asp
import asp.codegen.ast_tools as ast_tools
import asp.codegen.python_ast as ast
import asp.codegen.cpp_ast as cpp
#import asp.codegen.ast_explorer as ast_explorer
| 32.029412 | 100 | 0.699725 |
e53e115fb4255c3efc01ed07a09e367ac123e829 | 2,505 | py | Python | House_Prices_model 1.py | GauravRajwada/Machine | 6dff587a293cb2ca1e68c2a1704284a6d63974f4 | [
"Apache-2.0"
] | null | null | null | House_Prices_model 1.py | GauravRajwada/Machine | 6dff587a293cb2ca1e68c2a1704284a6d63974f4 | [
"Apache-2.0"
] | 1 | 2021-09-30T16:52:18.000Z | 2021-09-30T16:52:18.000Z | House_Prices_model 1.py | GauravRajwada/Machine | 6dff587a293cb2ca1e68c2a1704284a6d63974f4 | [
"Apache-2.0"
] | 1 | 2021-10-02T11:53:12.000Z | 2021-10-02T11:53:12.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 25 17:31:47 2020
@author: Gaurav
"""
import pandas as pd
import numpy as np
df=pd.read_csv("E:/Kaggel compitiion/House Prices Advanced Regression Techniques/After analizing/train.csv")
df1=pd.read_csv("E:/Kaggel compitiion/House Prices Advanced Regression Techn... | 30.925926 | 149 | 0.643513 |
e53e1ddf1ca570ccb7d5d49732fffcd4fe1ad53e | 619 | py | Python | pylisten/correlation.py | deeuu/pylisten | 3b8f9db7b7311a5a42ef7811acff284ca6854f30 | [
"MIT"
] | null | null | null | pylisten/correlation.py | deeuu/pylisten | 3b8f9db7b7311a5a42ef7811acff284ca6854f30 | [
"MIT"
] | null | null | null | pylisten/correlation.py | deeuu/pylisten | 3b8f9db7b7311a5a42ef7811acff284ca6854f30 | [
"MIT"
] | null | null | null | import krippendorff
import pandas as pd
import numpy as np
from . import utils
| 19.34375 | 72 | 0.675283 |
e53ec15f1d844c105391ad092076a6bdf9d26a34 | 1,194 | py | Python | tests/test_extract.py | Andrew-Chen-Wang/words-in-political-media | 61a3779188c01d3ec4c9dfb55a293686967fefb7 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | tests/test_extract.py | Andrew-Chen-Wang/words-in-political-media | 61a3779188c01d3ec4c9dfb55a293686967fefb7 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | tests/test_extract.py | Andrew-Chen-Wang/words-in-political-media | 61a3779188c01d3ec4c9dfb55a293686967fefb7 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | import pytest
from dotenv import dotenv_values
from src import BASE_DIR
from src.extract import extract_youtube_videos
from src.models import Channel, Video
from tests.utils import get_db_uri
| 35.117647 | 88 | 0.690117 |
e53ffa8559a6302d0825134979cfdab0f28e4630 | 477 | py | Python | backend/examples/admin.py | daobook/doccano | 45122687740f74f19e2578c5cf28507f0839bf16 | [
"MIT"
] | 2 | 2021-12-11T22:25:27.000Z | 2021-12-20T01:02:16.000Z | backend/examples/admin.py | daobook/doccano | 45122687740f74f19e2578c5cf28507f0839bf16 | [
"MIT"
] | 1 | 2022-02-15T10:50:18.000Z | 2022-02-15T10:50:18.000Z | backend/examples/admin.py | daobook/doccano | 45122687740f74f19e2578c5cf28507f0839bf16 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Example, Comment
admin.site.register(Example, ExampleAdmin)
admin.site.register(Comment, CommentAdmin)
| 23.85 | 62 | 0.689727 |
e540c206d4cc480b95a5b58e3d73052eeb598ac1 | 2,739 | py | Python | partools/utils/header.py | paularnaud2/PyTools | 09accc33e1dcfdde45671ad5962727554648b30c | [
"MIT"
] | null | null | null | partools/utils/header.py | paularnaud2/PyTools | 09accc33e1dcfdde45671ad5962727554648b30c | [
"MIT"
] | null | null | null | partools/utils/header.py | paularnaud2/PyTools | 09accc33e1dcfdde45671ad5962727554648b30c | [
"MIT"
] | null | null | null | from . import g
from .log import log
from .log import log_print
from .csv import csv_to_list
def get_header(in_path, csv=False):
"""Returns the header of a file
- csv: if True, the returned header is a list containing each csv field
"""
with open(in_path, 'r', encoding='utf-8') as in_file:
h... | 29.451613 | 90 | 0.615553 |
e5411285dd40466069ba2a8ee625afaa460ac90a | 125 | py | Python | main.py | hsnakkaya/XpyFollowers | 17e6acdeffb9f6a6df956fe725283b93c8e2fc89 | [
"MIT"
] | null | null | null | main.py | hsnakkaya/XpyFollowers | 17e6acdeffb9f6a6df956fe725283b93c8e2fc89 | [
"MIT"
] | null | null | null | main.py | hsnakkaya/XpyFollowers | 17e6acdeffb9f6a6df956fe725283b93c8e2fc89 | [
"MIT"
] | null | null | null | from XpyFollowers import*
# scraper(27, 28, 'twitter_list')
nodes_process(27, 'twitter_list')
edges_process(27)
| 6.944444 | 33 | 0.696 |
e54460f82677a82a4c20f2a3e31d8914c449db71 | 1,463 | py | Python | tests/test_subprocess_extension.py | npcole/latexbuild | 596a2a0a4c42eaa5eb9503d64f9073ad5d0640d5 | [
"MIT"
] | 27 | 2016-04-15T22:38:04.000Z | 2022-02-06T12:13:37.000Z | tests/test_subprocess_extension.py | npcole/latexbuild | 596a2a0a4c42eaa5eb9503d64f9073ad5d0640d5 | [
"MIT"
] | 6 | 2017-04-06T00:32:56.000Z | 2021-07-09T04:16:37.000Z | tests/test_subprocess_extension.py | pappasam/latexbuild | 596a2a0a4c42eaa5eb9503d64f9073ad5d0640d5 | [
"MIT"
] | 6 | 2016-09-30T17:20:47.000Z | 2021-01-28T20:52:19.000Z | import os
import unittest
from subprocess import CalledProcessError
from latexbuild.subprocess_extension import check_output_cwd
#######################################################################
# Define constants
#######################################################################
PATH_FILE = os.path.abspath... | 34.833333 | 77 | 0.518797 |
e545c987961ef987cbf7bd7af98052eacf914e76 | 2,131 | py | Python | FastAutoAugment/nas/arch_trainer.py | sytelus/fast-autoaugment | a53708699dce1233ce2a0bf0416ae2278007d506 | [
"MIT"
] | null | null | null | FastAutoAugment/nas/arch_trainer.py | sytelus/fast-autoaugment | a53708699dce1233ce2a0bf0416ae2278007d506 | [
"MIT"
] | null | null | null | FastAutoAugment/nas/arch_trainer.py | sytelus/fast-autoaugment | a53708699dce1233ce2a0bf0416ae2278007d506 | [
"MIT"
] | null | null | null | from typing import Optional, Callable
import os
import torch
from torch.utils.data import DataLoader
from torch import Tensor
from torch.optim.optimizer import Optimizer
from torch.optim.lr_scheduler import _LRScheduler
from overrides import overrides, EnforceOverrides
from ..common.config import Config
from ..commo... | 38.053571 | 83 | 0.661661 |
e5467c6fe9f4009ffc34be835ec10c581393ed84 | 12,337 | py | Python | pydpi/utils.py | hchsiao/python-svlog | ea207688570fa6ea668edd894d6946d8ca3068ca | [
"MIT"
] | 3 | 2020-05-23T14:44:36.000Z | 2022-03-18T16:42:14.000Z | pydpi/utils.py | hchsiao/python-svlog | ea207688570fa6ea668edd894d6946d8ca3068ca | [
"MIT"
] | null | null | null | pydpi/utils.py | hchsiao/python-svlog | ea207688570fa6ea668edd894d6946d8ca3068ca | [
"MIT"
] | null | null | null | import os.path
import subprocess
import shutil
import anyconfig
from ruamel.yaml import YAML
import sys
this_dir, this_filename = os.path.split(__file__)
tmpl_dir = os.path.join(this_dir, "templates/")
home_dir = os.path.expanduser('~')
config_file = os.path.join(home_dir, '.python-svlog-cfg')
config_file = 'svlog-cf... | 35.863372 | 202 | 0.642296 |
e547a43a31f8d08ff1dadd100b2b71f483a15550 | 83 | py | Python | fastapi_amis_admin/__init__.py | cnss63/fastapi_amis_admin | 52537d153a002b3c468cb2634779010be956a9b4 | [
"Apache-2.0"
] | null | null | null | fastapi_amis_admin/__init__.py | cnss63/fastapi_amis_admin | 52537d153a002b3c468cb2634779010be956a9b4 | [
"Apache-2.0"
] | null | null | null | fastapi_amis_admin/__init__.py | cnss63/fastapi_amis_admin | 52537d153a002b3c468cb2634779010be956a9b4 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.0.16"
__url__ = "https://github.com/amisadmin/fastapi_amis_admin"
| 27.666667 | 59 | 0.759036 |
e547e877ea0b546cad0a6abe04c73ce96240387b | 896 | py | Python | pytan3/tests/test_utils/test_crypt.py | lifehackjim/pytan3 | ca8223facb3797261655645fb4ecba6e13856b5e | [
"MIT"
] | 3 | 2020-06-15T15:34:07.000Z | 2021-09-21T15:22:00.000Z | pytan3/tests/test_utils/test_crypt.py | lifehackjim/pytan3 | ca8223facb3797261655645fb4ecba6e13856b5e | [
"MIT"
] | null | null | null | pytan3/tests/test_utils/test_crypt.py | lifehackjim/pytan3 | ca8223facb3797261655645fb4ecba6e13856b5e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test suite for pytan3."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import pytest
import pytan3
import re
def test_encrypt_decrypt():
"""Test encrypt / decrypt with valid key."""
... | 29.866667 | 71 | 0.689732 |
e549392ee5f3fd69edffe73886a7cd55fa69fec4 | 5,437 | py | Python | tests/test_convert.py | sairamkiran9/table2ascii | 9829e77c2e7ce7ff764cb80dd1d7775a28fc2f16 | [
"MIT"
] | 24 | 2021-04-27T07:10:32.000Z | 2022-03-13T04:32:22.000Z | tests/test_convert.py | sairamkiran9/table2ascii | 9829e77c2e7ce7ff764cb80dd1d7775a28fc2f16 | [
"MIT"
] | 11 | 2021-04-27T07:49:28.000Z | 2022-02-27T12:46:56.000Z | tests/test_convert.py | sairamkiran9/table2ascii | 9829e77c2e7ce7ff764cb80dd1d7775a28fc2f16 | [
"MIT"
] | 5 | 2021-07-30T00:19:29.000Z | 2022-02-01T07:39:50.000Z | from table2ascii import alignment, table2ascii as t2a
import pytest
| 26.915842 | 76 | 0.307523 |
e54c28e31b4b4c56e93933ccf0dd21e1a1a1a372 | 815 | py | Python | tartiflette/language/ast/base.py | remorses/tartiflette-whl | 92bed13de130a7a88278d7019314135e01281259 | [
"MIT"
] | 530 | 2019-06-04T11:45:36.000Z | 2022-03-31T09:29:56.000Z | tartiflette/language/ast/base.py | remorses/tartiflette-whl | 92bed13de130a7a88278d7019314135e01281259 | [
"MIT"
] | 242 | 2019-06-04T11:53:08.000Z | 2022-03-28T07:06:27.000Z | tartiflette/language/ast/base.py | remorses/tartiflette-whl | 92bed13de130a7a88278d7019314135e01281259 | [
"MIT"
] | 36 | 2019-06-21T06:40:27.000Z | 2021-11-04T13:11:16.000Z | __all__ = (
"Node",
"DefinitionNode",
"ExecutableDefinitionNode",
"TypeSystemDefinitionNode",
"TypeSystemExtensionNode",
"TypeDefinitionNode",
"TypeExtensionNode",
"SelectionNode",
"ValueNode",
"TypeNode",
)
| 15.377358 | 51 | 0.687117 |
e54d26678218e56586a416feb9b45a4d21e7530a | 914 | py | Python | apps/areas/migrations/0003_auto_20210215_1959.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | apps/areas/migrations/0003_auto_20210215_1959.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | apps/areas/migrations/0003_auto_20210215_1959.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-15 11:59
from django.db import migrations, models
import django.utils.timezone
| 29.483871 | 129 | 0.612691 |
e54d30c9387c89a4896a9b3c359d877b95d8740d | 432 | py | Python | Python/Algorithms/1805.py | DimitrisJim/leetcode_solutions | 765ea578748f8c9b21243dec9dc8a16163e85c0c | [
"Unlicense"
] | 2 | 2021-01-15T17:22:54.000Z | 2021-05-16T19:58:02.000Z | Python/Algorithms/1805.py | DimitrisJim/leetcode_solutions | 765ea578748f8c9b21243dec9dc8a16163e85c0c | [
"Unlicense"
] | null | null | null | Python/Algorithms/1805.py | DimitrisJim/leetcode_solutions | 765ea578748f8c9b21243dec9dc8a16163e85c0c | [
"Unlicense"
] | null | null | null | from string import ascii_lowercase
| 27 | 58 | 0.592593 |
e54d5b3f2aac53b21334089232ef96961ee731ed | 639 | py | Python | opcvCapImg01_drawID_outImg.py | zgw426/OpenCV_SamplesForMyself | 92a936a792658565f63c2054a2291017e39bd553 | [
"MIT"
] | null | null | null | opcvCapImg01_drawID_outImg.py | zgw426/OpenCV_SamplesForMyself | 92a936a792658565f63c2054a2291017e39bd553 | [
"MIT"
] | null | null | null | opcvCapImg01_drawID_outImg.py | zgw426/OpenCV_SamplesForMyself | 92a936a792658565f63c2054a2291017e39bd553 | [
"MIT"
] | 3 | 2021-09-26T05:50:41.000Z | 2021-12-30T06:53:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
from PIL import Image
targetImg = "test-img02.png"
aruco = cv2.aruco
dictionary = aruco.getPredefinedDictionary(aruco.DICT_4X4_50)
outputImg = "edit01-" + targetImg[0:-4]+".png"
arReader( targetImg , outputImg )
| 25.56 | 82 | 0.70579 |
e54e46c7c1ba8209fb4a106f07b6e98c0844c3ef | 6,673 | py | Python | testcases/sharpe_analyzer_test.py | tibkiss/pyalgotrade | 4979315281c362dcba2e6d53da27dc4a7377ebec | [
"Apache-2.0"
] | 2 | 2015-04-03T10:29:14.000Z | 2017-01-21T05:55:00.000Z | testcases/sharpe_analyzer_test.py | tibkiss/pyalgotrade | 4979315281c362dcba2e6d53da27dc4a7377ebec | [
"Apache-2.0"
] | null | null | null | testcases/sharpe_analyzer_test.py | tibkiss/pyalgotrade | 4979315281c362dcba2e6d53da27dc4a7377ebec | [
"Apache-2.0"
] | null | null | null | # PyAlgoTrade
#
# Copyright 2012 Gabriel Martin Becedillas Ruiz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 50.55303 | 178 | 0.703881 |
e550f4d5fb03eb8cb378fb56b59904fa75ad5cbc | 221 | py | Python | src/app_object.py | pockeleewout/DataCleaner-public | 242cd911b702a25fb2ad4751375c878e56127ef8 | [
"MIT"
] | 1 | 2019-05-09T15:38:29.000Z | 2019-05-09T15:38:29.000Z | src/app_object.py | pockeleewout/DataCleaner-public | 242cd911b702a25fb2ad4751375c878e56127ef8 | [
"MIT"
] | null | null | null | src/app_object.py | pockeleewout/DataCleaner-public | 242cd911b702a25fb2ad4751375c878e56127ef8 | [
"MIT"
] | null | null | null | import flask
import config
# The main flask app that will run the whole show
flask_app: flask.Flask = flask.Flask(__name__)
# Load the configuration from the Config class
flask_app.config.from_object(config.LocalConfig)
| 27.625 | 49 | 0.809955 |
e551ea3f2358259b745fb316c4076e428c8a0cc2 | 6,222 | py | Python | sphinx_github_changelog/changelog.py | mondeja/sphinx-github-changelog | ab28cacbfba94d60e87a5d51787519b1adfcd808 | [
"MIT"
] | 6 | 2021-04-17T11:39:38.000Z | 2021-07-15T22:34:38.000Z | sphinx_github_changelog/changelog.py | mondeja/sphinx-github-changelog | ab28cacbfba94d60e87a5d51787519b1adfcd808 | [
"MIT"
] | 45 | 2021-04-16T17:12:44.000Z | 2022-02-27T21:25:29.000Z | sphinx_github_changelog/changelog.py | mondeja/sphinx-github-changelog | ab28cacbfba94d60e87a5d51787519b1adfcd808 | [
"MIT"
] | 2 | 2021-11-11T09:22:05.000Z | 2021-12-21T14:05:45.000Z | from typing import Any, Dict, Iterable, List, Optional
import requests
from docutils import nodes
# types-docutils (from typeshed) is usable but incomplete.
# docutils-stubs is more complete but
# https://github.com/tk0miya/docutils-stubs/issues/33
from docutils.parsers.rst import Directive, directives # type: ignor... | 31.744898 | 87 | 0.633237 |
e552b2aa6e2861790fd5ca1716afd953fe27b43a | 1,076 | py | Python | genesets/search_indexes.py | greenelab/tribe | 7e499b03a56f8d5ae22b540dbccb071edd84d79c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T01:06:09.000Z | 2021-11-08T11:18:24.000Z | genesets/search_indexes.py | greenelab/tribe | 7e499b03a56f8d5ae22b540dbccb071edd84d79c | [
"BSD-3-Clause"
] | 49 | 2017-08-01T18:59:58.000Z | 2022-02-12T01:54:53.000Z | genesets/search_indexes.py | greenelab/tribe | 7e499b03a56f8d5ae22b540dbccb071edd84d79c | [
"BSD-3-Clause"
] | 3 | 2017-08-01T21:12:05.000Z | 2017-10-02T20:37:07.000Z | import re
from haystack import indexes
from genesets.models import Geneset
try:
from celery_haystack.indexes import CelerySearchIndex as SearchIndex
except ImportError:
from haystack.indexes import SearchIndex
NONWORD = re.compile('\W+')
| 29.081081 | 75 | 0.679368 |
e554df051fa3e217e12a6adeb439eea313c59ec0 | 418 | py | Python | ProjectEuler/problem12.py | SameerRao22/python | 62a0d7d6401152da4c5103668add13ca0f0fd8a3 | [
"bzip2-1.0.6"
] | null | null | null | ProjectEuler/problem12.py | SameerRao22/python | 62a0d7d6401152da4c5103668add13ca0f0fd8a3 | [
"bzip2-1.0.6"
] | null | null | null | ProjectEuler/problem12.py | SameerRao22/python | 62a0d7d6401152da4c5103668add13ca0f0fd8a3 | [
"bzip2-1.0.6"
] | null | null | null | import math
factors = 0
x = 1
num = 0
while True:
if factors >= 500:
print(num)
break
num = triangleNum(x)
factors = factorize(num)
x += 1 | 14.928571 | 44 | 0.602871 |
e55990f1b8fe2ffef3eee8d0535d849c05832134 | 2,127 | py | Python | server.py | Daerdemandt/blog | 2d9f95f57c84c1ac87ed62b449ddc4644d98c4bf | [
"MIT"
] | null | null | null | server.py | Daerdemandt/blog | 2d9f95f57c84c1ac87ed62b449ddc4644d98c4bf | [
"MIT"
] | null | null | null | server.py | Daerdemandt/blog | 2d9f95f57c84c1ac87ed62b449ddc4644d98c4bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import http.server
import socketserver
from urllib.parse import parse_qsl as parse_query, urlparse as parse_url
from abc import abstractmethod, ABC as abstractclass
import json
def run_server(info, port, encoder = JsonEncoder(), response_cache = {}):
httpd = socketserver.TCPServer(("", port), ... | 29.957746 | 118 | 0.716032 |
e55b00333f1d03a1830681b90bdf11aebe0e4245 | 6,286 | py | Python | energenie/Handlers/__init__.py | klattimer/pyenergenie | 1677bd2ac2bda9d0cd6960b5fb537a2d097eda4e | [
"MIT"
] | null | null | null | energenie/Handlers/__init__.py | klattimer/pyenergenie | 1677bd2ac2bda9d0cd6960b5fb537a2d097eda4e | [
"MIT"
] | 15 | 2020-03-22T13:55:00.000Z | 2021-12-14T09:07:56.000Z | energenie/Handlers/__init__.py | klattimer/pyenergenie | 1677bd2ac2bda9d0cd6960b5fb537a2d097eda4e | [
"MIT"
] | null | null | null | import os
import importlib, inspect
import logging
from ..Config import Config
def __getitem__(self, k):
return self.handlers[k]
class HandlerRegistry:
__single = None
def __init__(self):
# Load settings from config
self.__handler_factory = HandlerFactory.singleton()
ha... | 28.834862 | 99 | 0.579542 |
e55cc9f3656ea7401382119da9c756768a1718c8 | 20,356 | py | Python | tf_pwa/fit_improve.py | ReynLieu/tf-pwa | f354b5036bc8c37ffba95849de5ec3367934eef8 | [
"MIT"
] | 4 | 2021-05-10T15:17:24.000Z | 2021-08-16T07:40:06.000Z | tf_pwa/fit_improve.py | ReynLieu/tf-pwa | f354b5036bc8c37ffba95849de5ec3367934eef8 | [
"MIT"
] | 45 | 2020-10-24T08:26:19.000Z | 2022-03-20T06:14:58.000Z | tf_pwa/fit_improve.py | ReynLieu/tf-pwa | f354b5036bc8c37ffba95849de5ec3367934eef8 | [
"MIT"
] | 8 | 2020-10-24T06:41:06.000Z | 2022-01-03T01:29:49.000Z | from warnings import warn
import numpy as np
# from numpy import xrange
# from scipy.optimize.linesearch import line_search_wolfe1, line_search_wolfe2
from scipy.optimize import OptimizeResult
message_dict = {
0: "Optimization terminated successfully.",
3: "Maximum number of function evaluations has been e... | 27.545332 | 80 | 0.524121 |
e55cd8c9f0cd8ad18d5fcca0a55384a1b38334ad | 7,201 | py | Python | code/evaluate_trained_gans.py | alexban94/msci_project | 6f449e1462d0634ca6623f835c074702ed05054e | [
"MIT"
] | null | null | null | code/evaluate_trained_gans.py | alexban94/msci_project | 6f449e1462d0634ca6623f835c074702ed05054e | [
"MIT"
] | null | null | null | code/evaluate_trained_gans.py | alexban94/msci_project | 6f449e1462d0634ca6623f835c074702ed05054e | [
"MIT"
] | null | null | null | import os, sys, time
import shutil
import yaml
import random
import numpy as np
import cupy
from copy import deepcopy
import argparse
import chainer
from chainer import training, serializers
from chainer.training import extension
from chainer.training import extensions
sys.path.append(os.path.dirname(__file__))
from... | 33.966981 | 127 | 0.63269 |
e55ed07309d1bc4c4714e7e47ef852ae00e35aeb | 2,424 | py | Python | awkward_pandas/accessor.py | martindurant/awkward_extras | 5cad442d52e960768f16cdf64aae0f0c10cd33f4 | [
"BSD-3-Clause"
] | null | null | null | awkward_pandas/accessor.py | martindurant/awkward_extras | 5cad442d52e960768f16cdf64aae0f0c10cd33f4 | [
"BSD-3-Clause"
] | 1 | 2020-11-17T15:54:26.000Z | 2020-11-17T19:27:22.000Z | awkward_pandas/accessor.py | martindurant/awkward_extras | 5cad442d52e960768f16cdf64aae0f0c10cd33f4 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T08:52:09.000Z | 2020-11-23T08:52:09.000Z | import functools
import inspect
import pandas as pd
import awkward1 as ak
from .series import AwkwardSeries
from .dtype import AwkardType
funcs = [n for n in dir(ak) if inspect.isfunction(getattr(ak, n))]
| 35.130435 | 97 | 0.613861 |
e55f63b36dff239d71398610862b05a309d35dde | 2,580 | py | Python | awsrun/student/tasks.py | veb61/eec-289-ucd | fabd9c01c5e9dfaf869fe22e537fe08aafd4e622 | [
"MIT"
] | null | null | null | awsrun/student/tasks.py | veb61/eec-289-ucd | fabd9c01c5e9dfaf869fe22e537fe08aafd4e622 | [
"MIT"
] | null | null | null | awsrun/student/tasks.py | veb61/eec-289-ucd | fabd9c01c5e9dfaf869fe22e537fe08aafd4e622 | [
"MIT"
] | null | null | null | import os
import time
from abc import ABC, abstractmethod, ABCMeta
from common.commands import Compress, Upload, SendMsg, Download, Decompress
from common.configuration import AWSConfig
from common.protocol import IOTask, AWSMsg, AWSIDRegistration
from common.resources import Folder, File, OSPath
from multipledispatch... | 36.338028 | 115 | 0.673256 |
e55f883aacc628fe18908e5610fdc06068e2d96d | 2,108 | py | Python | test/unittests/plans_tests.py | sonntagsgesicht/dcf | 538e20ac5d4fe4762ee2762029e83443251dcfd6 | [
"Apache-2.0"
] | 16 | 2019-09-02T17:09:48.000Z | 2021-12-18T21:25:16.000Z | test/unittests/plans_tests.py | sonntagsgesicht/dcf | 538e20ac5d4fe4762ee2762029e83443251dcfd6 | [
"Apache-2.0"
] | null | null | null | test/unittests/plans_tests.py | sonntagsgesicht/dcf | 538e20ac5d4fe4762ee2762029e83443251dcfd6 | [
"Apache-2.0"
] | 4 | 2020-03-12T22:49:47.000Z | 2021-11-24T13:12:43.000Z | # -*- coding: utf-8 -*-
# dcf
# ---
# A Python library for generating discounted cashflows.
#
# Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk]
# Version: 0.4, copyright Saturday, 10 October 2020
# Website: https://github.com/sonntagsgesicht/dcf
# License: Apache License 2.0 (see LICENSE f... | 28.876712 | 104 | 0.608634 |
e560df64b6b9b00fbaed701ba5221f1910209ce4 | 1,319 | py | Python | Chapter08/transformers_textgen.py | arifmudi/Advanced-Deep-Learning-with-Python | 180cae0ec62857670bfc2a4d566857030adc4905 | [
"MIT"
] | 107 | 2019-12-09T13:49:33.000Z | 2021-08-31T03:23:39.000Z | Chapter08/transformers_textgen.py | bwantan/Advanced-Deep-Learning-with-Python | 083f63dfc0c5f404143552ea20d560b06ec303f5 | [
"MIT"
] | null | null | null | Chapter08/transformers_textgen.py | bwantan/Advanced-Deep-Learning-with-Python | 083f63dfc0c5f404143552ea20d560b06ec303f5 | [
"MIT"
] | 48 | 2019-12-05T05:30:51.000Z | 2022-03-22T02:03:00.000Z | import torch
from transformers import TransfoXLLMHeadModel, TransfoXLTokenizer
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
# Instantiate pre-trained model-specific tokenizer and the model itself
tokenizer = TransfoXLTokenizer.from_pretrained('transfo-xl-wt103')
model = TransfoXLLMHeadModel... | 31.404762 | 83 | 0.728582 |
e5630463cdc8f074c6759322e3e3c1827ebb6944 | 5,796 | py | Python | test/performance-regression/full-apps/qmcpack/src/GUI/Wavefunction.py | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 55 | 2015-07-28T01:32:58.000Z | 2022-02-27T16:27:46.000Z | test/performance-regression/full-apps/qmcpack/src/GUI/Wavefunction.py | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 66 | 2015-06-15T20:38:19.000Z | 2020-08-26T00:11:43.000Z | test/performance-regression/full-apps/qmcpack/src/GUI/Wavefunction.py | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 26 | 2015-10-26T22:11:51.000Z | 2021-03-02T22:09:15.000Z | import pygtk
import gtk
import IO
import numpy
| 33.50289 | 69 | 0.598171 |
e56ab6f523c0e56fee048e434b02d05c5574230f | 398 | py | Python | splikes/connections/__init__.py | bblais/Plasticnet | e450e56a9b993e361873b6a235fdcc55a5690abb | [
"MIT"
] | null | null | null | splikes/connections/__init__.py | bblais/Plasticnet | e450e56a9b993e361873b6a235fdcc55a5690abb | [
"MIT"
] | null | null | null | splikes/connections/__init__.py | bblais/Plasticnet | e450e56a9b993e361873b6a235fdcc55a5690abb | [
"MIT"
] | 1 | 2020-01-16T18:20:53.000Z | 2020-01-16T18:20:53.000Z | from .BCM import BCM_LawCooper
from .BCM import BCM
from .BCM import BCM_LawCooper_Offset
from .BCM import BCM_TwoThreshold
from .calcium import calcium
from .STDP import STDP
from .Triplet import Gerstner2006
from .Triplet import Triplet_BCM
from .Triplet import Triplet_BCM_LawCooper
from .Triplet import Triplet_BCM_L... | 33.166667 | 46 | 0.851759 |
e56b8ed38e282aa8df93b27ccf0331b4b9973643 | 469 | py | Python | variables_and_loops.py | justinerafa/ASTR-119-session-2 | 1091c297846297bff16d070f0485ebcf41832751 | [
"MIT"
] | null | null | null | variables_and_loops.py | justinerafa/ASTR-119-session-2 | 1091c297846297bff16d070f0485ebcf41832751 | [
"MIT"
] | null | null | null | variables_and_loops.py | justinerafa/ASTR-119-session-2 | 1091c297846297bff16d070f0485ebcf41832751 | [
"MIT"
] | null | null | null | import numpy as np #we use numpy alot
if __name__ == "__main__":
main() | 23.45 | 54 | 0.616205 |
e56e2dbc109790558e89cc347df23e74fd4c3177 | 5,844 | py | Python | lib/bot/question/detector.py | mageirakos/donkeybot | e7d2e273a05a394ead7d5e141cd1fb521769bc4b | [
"Apache-2.0"
] | 10 | 2020-10-28T13:47:46.000Z | 2022-01-20T02:01:09.000Z | lib/bot/question/detector.py | mageirakos/donkeybot | e7d2e273a05a394ead7d5e141cd1fb521769bc4b | [
"Apache-2.0"
] | 14 | 2020-08-26T19:06:25.000Z | 2022-01-13T03:14:50.000Z | lib/bot/question/detector.py | mageirakos/donkeybot | e7d2e273a05a394ead7d5e141cd1fb521769bc4b | [
"Apache-2.0"
] | 6 | 2020-08-26T19:07:40.000Z | 2021-01-20T08:26:41.000Z | # bot modules
from bot.question.emails import EmailQuestion
from bot.question.issues import IssueQuestion
from bot.question.comments import CommentQuestion
import bot.config as config
# general python
import re
import nltk
from nltk.tokenize import PunktSentenceTokenizer
if __name__ == "__main__":
pass
| 39.486486 | 106 | 0.614476 |
e56e4aa82f5a1d5402d1640264aa0627a5d42cc6 | 5,175 | py | Python | support/pushsources/publishtool.py | username-is-already-taken2/photon | 5be3d8c956156f494a2479274ca8eb9723fa2057 | [
"Apache-2.0"
] | 2 | 2019-05-24T14:13:59.000Z | 2019-05-24T14:20:59.000Z | support/pushsources/publishtool.py | username-is-already-taken2/photon | 5be3d8c956156f494a2479274ca8eb9723fa2057 | [
"Apache-2.0"
] | null | null | null | support/pushsources/publishtool.py | username-is-already-taken2/photon | 5be3d8c956156f494a2479274ca8eb9723fa2057 | [
"Apache-2.0"
] | 1 | 2020-09-17T00:43:35.000Z | 2020-09-17T00:43:35.000Z | #! /usr/bin/python3
#
# Copyright (C) 2015 VMware, Inc. All rights reserved.
# publishtool for working with photonpublish
#
# Author(s): Priyesh Padmavilasom
#
import sys
import getopt
from photonpublish import photonPublish
from publishconst import publishConst
const = publishConst()
#
if __name__ == "_... | 31.944444 | 91 | 0.550338 |
e56f721835eeb1c014f7eed61ff0b3aab278b97d | 2,313 | py | Python | src/controllers/search.py | bcartwri96/sermon-skeleton | 0f32e6f7acd5d2d82367b098d97d70a26e42a0fc | [
"MIT"
] | 1 | 2019-01-21T03:11:14.000Z | 2019-01-21T03:11:14.000Z | src/controllers/search.py | bcartwri96/sermon-skeleton | 0f32e6f7acd5d2d82367b098d97d70a26e42a0fc | [
"MIT"
] | 29 | 2019-01-21T05:48:09.000Z | 2022-03-11T23:45:01.000Z | src/controllers/search.py | bcartwri96/sermon-skeleton | 0f32e6f7acd5d2d82367b098d97d70a26e42a0fc | [
"MIT"
] | null | null | null | # page designed for the search implementation, to be cleaned up in
# the future!
import src.models.models as ml
import src.scripts.index as scripts
from sqlalchemy import and_, or_
| 38.55 | 93 | 0.651967 |
e56f95313666f0c69512af094eaacef1cd96f697 | 1,735 | py | Python | cassandra-helper/copy_keyspace.py | HolmesProcessing/toolbox | 7de75cf477e71fb433bf0c2e2a55c2a7c38100a2 | [
"Apache-2.0"
] | null | null | null | cassandra-helper/copy_keyspace.py | HolmesProcessing/toolbox | 7de75cf477e71fb433bf0c2e2a55c2a7c38100a2 | [
"Apache-2.0"
] | null | null | null | cassandra-helper/copy_keyspace.py | HolmesProcessing/toolbox | 7de75cf477e71fb433bf0c2e2a55c2a7c38100a2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
import pika
import json, os
import magic
import time
import ast
from sys import argv
from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
from cassandra import query
from sets import Set
if len(argv) != 8:
print_usage()
keyspace_from = argv[1]
keyspace_to ... | 27.539683 | 163 | 0.676657 |
e571dfc8f064be1cb41ad77510b528b26dec92c5 | 1,994 | py | Python | nets/vgg.py | bubbliiiing/faster-rcnn-tf2 | c3982016c7c209a3fa71a30facbe53396e6340ee | [
"MIT"
] | 133 | 2020-11-23T05:43:08.000Z | 2022-03-30T08:10:50.000Z | nets/vgg.py | Whale1024/faster-rcnn-tf2 | 6343860e5d44e8441fa736620762e4c256b27083 | [
"MIT"
] | 15 | 2020-12-01T12:07:14.000Z | 2021-09-30T02:27:37.000Z | nets/vgg.py | Whale1024/faster-rcnn-tf2 | 6343860e5d44e8441fa736620762e4c256b27083 | [
"MIT"
] | 40 | 2020-11-24T13:01:41.000Z | 2022-03-30T08:10:53.000Z | from tensorflow.keras.layers import (Conv2D, Dense, Flatten, MaxPooling2D,
TimeDistributed)
| 49.85 | 94 | 0.591274 |
e5724f648062b8be83fbf95d625eab674fb1f2a4 | 211 | py | Python | py3/classes/sysflow/sysflow/type/__init__.py | sthagen/sysflow-telemetry-sf-apis | d95c98b34e8896dc1774fbe283ef7db6b8a61bce | [
"Apache-2.0"
] | 12 | 2019-11-07T15:03:41.000Z | 2021-01-19T18:50:19.000Z | py3/classes/sysflow/sysflow/type/__init__.py | sthagen/sysflow-telemetry-sf-apis | d95c98b34e8896dc1774fbe283ef7db6b8a61bce | [
"Apache-2.0"
] | 3 | 2020-01-22T17:49:59.000Z | 2022-02-07T22:24:34.000Z | py3/classes/sysflow/sysflow/type/__init__.py | sthagen/sysflow-telemetry-sf-apis | d95c98b34e8896dc1774fbe283ef7db6b8a61bce | [
"Apache-2.0"
] | 7 | 2020-01-11T14:27:28.000Z | 2021-06-16T14:04:58.000Z | from ...schema_classes import SchemaClasses
ContainerType = SchemaClasses.sysflow.type.ContainerTypeClass
OID = SchemaClasses.sysflow.type.OIDClass
SFObjectState = SchemaClasses.sysflow.type.SFObjectStateClass
| 35.166667 | 61 | 0.862559 |
e5726f32898dbebcb3904086e7f5f0ccc32ada7c | 14,414 | py | Python | grand_tour.py | reedessick/pointy-Poisson | 376fd6054ccac19ac9945c9299dc1a45ecd46fb9 | [
"MIT"
] | null | null | null | grand_tour.py | reedessick/pointy-Poisson | 376fd6054ccac19ac9945c9299dc1a45ecd46fb9 | [
"MIT"
] | null | null | null | grand_tour.py | reedessick/pointy-Poisson | 376fd6054ccac19ac9945c9299dc1a45ecd46fb9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
usage = """grand_tour.py [--options] gps gps gps..."""
description="""a script that generates a pointed follow-up of possible auxiliary couplings, sweeping through a variety of windows and snr thresholds"""
import numpy as np
from laldetchar.idq import idq
from laldetchar.idq import event
import g... | 39.275204 | 211 | 0.55349 |
e572da2f2a7ca87ea284feddda92b470709ee671 | 25,068 | py | Python | powerpod/types.py | bucko909/powerpod | 829ad79a32f0041876c57f642d3d239947c3594a | [
"BSD-2-Clause"
] | 3 | 2016-12-18T20:51:02.000Z | 2019-12-29T12:47:41.000Z | powerpod/types.py | bucko909/powerpod | 829ad79a32f0041876c57f642d3d239947c3594a | [
"BSD-2-Clause"
] | null | null | null | powerpod/types.py | bucko909/powerpod | 829ad79a32f0041876c57f642d3d239947c3594a | [
"BSD-2-Clause"
] | null | null | null | from collections import namedtuple
import datetime
import calendar
import struct
import sys
def _encode(self):
""" data from self -> data for pack """
return self
def _encode(self):
""" data from self -> data for pack """
record_offset = self._fields.index('records')
return self[:record_offset] + self[rec... | 39.16875 | 489 | 0.678873 |
e5750fa91700f19925e5c0071b19108b43487848 | 5,080 | py | Python | unique_names_generator/data/animals.py | ravi-ojha/py-unique-names-generator | a17676db0da88ea29d741325b0109b9a70158255 | [
"MIT"
] | 2 | 2021-09-21T13:37:11.000Z | 2022-03-14T01:34:27.000Z | unique_names_generator/data/animals.py | ravi-ojha/py-unique-names-generator | a17676db0da88ea29d741325b0109b9a70158255 | [
"MIT"
] | null | null | null | unique_names_generator/data/animals.py | ravi-ojha/py-unique-names-generator | a17676db0da88ea29d741325b0109b9a70158255 | [
"MIT"
] | null | null | null | ANIMALS = [
"aardvark",
"aardwolf",
"albatross",
"alligator",
"alpaca",
"amphibian",
"anaconda",
"angelfish",
"anglerfish",
"ant",
"anteater",
"antelope",
"antlion",
"ape",
"aphid",
"armadillo",
"asp",
"baboon",
"badger",
"bandicoot",
"... | 14.309859 | 20 | 0.444291 |
e575c012f08e5a8055664cc644ae83131842c8cb | 2,142 | py | Python | cea/technologies/thermal_storage.py | VMarty/CityEnergyAnalyst | 5ab4385fc008f3b23f5bd5f9ba683d401cfcef38 | [
"MIT"
] | 1 | 2018-08-16T14:34:23.000Z | 2018-08-16T14:34:23.000Z | cea/technologies/thermal_storage.py | VMarty/CityEnergyAnalyst | 5ab4385fc008f3b23f5bd5f9ba683d401cfcef38 | [
"MIT"
] | null | null | null | cea/technologies/thermal_storage.py | VMarty/CityEnergyAnalyst | 5ab4385fc008f3b23f5bd5f9ba683d401cfcef38 | [
"MIT"
] | null | null | null | """
thermal storage
"""
from __future__ import division
import pandas as pd
from math import log
__author__ = "Thuy-An Nguyen"
__copyright__ = "Copyright 2015, Architecture and Building Systems - ETH Zurich"
__credits__ = ["Thuy-An Nguyen", "Tim Vollrath", "Jimeno A. Fonseca"]
__license__ = "MIT"
__version__ = "0.1"
... | 34.548387 | 117 | 0.668067 |
e5765b63498aedff82c2802f809cf6d2e6ee5e33 | 662 | py | Python | plugins/plugin_base.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 11 | 2020-04-15T07:47:34.000Z | 2022-03-30T21:47:36.000Z | plugins/plugin_base.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 20 | 2020-08-09T00:11:49.000Z | 2021-09-11T11:34:02.000Z | plugins/plugin_base.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 6 | 2020-02-21T04:45:19.000Z | 2021-07-18T22:13:55.000Z | from abc import abstractmethod
from typing import Any
| 36.777778 | 104 | 0.703927 |
e576c5757911b66b8f7967cc74b9fd3d2daf37b8 | 7,990 | py | Python | part1.py | sebastiankeshuqi/Apply-Classification-Tree-to-Red-Wine-Quality | f1e6f575d0f351bc5b3a5171bd2afbe3b8725bf1 | [
"MIT"
] | 1 | 2021-06-14T07:02:02.000Z | 2021-06-14T07:02:02.000Z | part1.py | sebastiankeshuqi/Apply-Classification-Tree-to-Red-Wine-Quality | f1e6f575d0f351bc5b3a5171bd2afbe3b8725bf1 | [
"MIT"
] | null | null | null | part1.py | sebastiankeshuqi/Apply-Classification-Tree-to-Red-Wine-Quality | f1e6f575d0f351bc5b3a5171bd2afbe3b8725bf1 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib as plt
from collections import Counter
from math import log
import sys
import time
if __name__ == '__main__':
data = np.genfromtxt('train.csv', dtype=np.float64,
encoding='utf-8-sig', delimiter=',')
X = data[1:51, :-2]
y = dat... | 30.730769 | 201 | 0.491865 |
e577e51b7533e7208a1d0b836b3eb5c9b542e2cf | 275 | py | Python | authors/apps/articles/migrations/0015_merge_20190122_1103.py | andela/Ah-backend-guardians | cc84c18f7c222bc69cf4a263a1c2296b6d335c8b | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0015_merge_20190122_1103.py | andela/Ah-backend-guardians | cc84c18f7c222bc69cf4a263a1c2296b6d335c8b | [
"BSD-3-Clause"
] | 32 | 2019-01-09T07:52:32.000Z | 2022-01-13T01:01:55.000Z | authors/apps/articles/migrations/0015_merge_20190122_1103.py | andela/Ah-backend-guardians | cc84c18f7c222bc69cf4a263a1c2296b6d335c8b | [
"BSD-3-Clause"
] | 3 | 2019-01-03T12:05:53.000Z | 2019-09-24T11:41:14.000Z | # Generated by Django 2.1.5 on 2019-01-22 11:03
from django.db import migrations
| 18.333333 | 48 | 0.650909 |
e578e07b6087b0490442fc7f10835227f21abec6 | 2,342 | py | Python | settings/iview.py | symeonp/choronzon | a9eed1ea2cab6bf2c3e020adf4951f6d01eecf72 | [
"BSD-3-Clause"
] | null | null | null | settings/iview.py | symeonp/choronzon | a9eed1ea2cab6bf2c3e020adf4951f6d01eecf72 | [
"BSD-3-Clause"
] | null | null | null | settings/iview.py | symeonp/choronzon | a9eed1ea2cab6bf2c3e020adf4951f6d01eecf72 | [
"BSD-3-Clause"
] | 1 | 2020-02-29T13:55:25.000Z | 2020-02-29T13:55:25.000Z | # Name of the campaign
CampaignName = 'iview-campaign'
# Name of the parser module. The parser module must be
# in the chromosome/parsers directory.
Parser = 'PNG'
# The path of the initial corpus
InitialPopulation = 'C:\\tmp\\png'
# The fitness algorithms that will be used by Chronzon
# and the weight of each one. ... | 33.457143 | 82 | 0.735696 |
e57953f7d080f6dd0d028b8c3c8f68f6eb411e7d | 4,366 | py | Python | one/image.py | OpenNebula/addon-linstor | 71cc6d5d625929f0350cec866ff07e953fcebe12 | [
"Apache-2.0"
] | 11 | 2018-10-18T19:53:52.000Z | 2021-11-08T11:42:56.000Z | one/image.py | OpenNebula/addon-linstor | 71cc6d5d625929f0350cec866ff07e953fcebe12 | [
"Apache-2.0"
] | 13 | 2018-11-26T16:15:35.000Z | 2021-08-02T18:24:14.000Z | one/image.py | OpenNebula/addon-linstor | 71cc6d5d625929f0350cec866ff07e953fcebe12 | [
"Apache-2.0"
] | 7 | 2018-11-08T03:44:59.000Z | 2021-05-16T20:47:19.000Z | # -*- coding: utf-8 -*-
"""
OpenNebula Driver for Linstor
Copyright 2018 LINBIT USA LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 25.383721 | 83 | 0.554741 |
e5796cb4b1baefe1e5538efc286580e86e13f85c | 4,366 | py | Python | utils/create_submissiontest_like.py | iarai/NeurIPS2019-traffic4cast | f684db5ca06f19e9205842b2aa0245cc5061c32a | [
"Apache-2.0"
] | 24 | 2019-07-13T20:12:34.000Z | 2020-10-18T01:38:47.000Z | utils/create_submissiontest_like.py | jvpoulos/NeurIPS2019-traffic4cast | 707ab2d2b3fcad8df19ab6e5443f0280c00a02c5 | [
"Apache-2.0"
] | 1 | 2020-10-02T17:40:58.000Z | 2020-10-02T17:40:58.000Z | utils/create_submissiontest_like.py | jvpoulos/NeurIPS2019-traffic4cast | 707ab2d2b3fcad8df19ab6e5443f0280c00a02c5 | [
"Apache-2.0"
] | 11 | 2019-07-16T07:42:23.000Z | 2021-02-17T07:55:39.000Z | #!/usr/bin/env/python3
# Copyright 2019 Institute of Advanced Research in Artificial Intelligence (IARAI) GmbH.
# IARAI licenses this file to You 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:/... | 38.298246 | 129 | 0.64109 |
e57a3231c5faac4b00ba7ac7b302984837454237 | 1,844 | py | Python | hyperspeed/video.py | bovesan/mistika-hyperspeed | 03ce9117036699b194696ef025794e25cbf4993e | [
"Apache-2.0"
] | 3 | 2018-01-24T17:04:04.000Z | 2019-03-17T07:34:53.000Z | hyperspeed/video.py | bovesan/mistika-hyperspeed | 03ce9117036699b194696ef025794e25cbf4993e | [
"Apache-2.0"
] | 13 | 2017-06-06T08:13:14.000Z | 2017-09-03T07:56:48.000Z | hyperspeed/video.py | bovesan/mistika-hyperspeed | 03ce9117036699b194696ef025794e25cbf4993e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys, os, subprocess, string, re, math | 34.792453 | 99 | 0.598156 |
e57aa2bef618d1871eb73c2b27d8c100f4c7c1b4 | 117 | py | Python | genie/cbs.py | karawoo/Genie | d39451655ec3632df6002c1d73b17dacba2a8720 | [
"MIT"
] | 10 | 2017-08-31T21:32:18.000Z | 2022-03-07T21:37:17.000Z | genie/cbs.py | karawoo/Genie | d39451655ec3632df6002c1d73b17dacba2a8720 | [
"MIT"
] | 216 | 2016-10-24T21:30:12.000Z | 2022-03-31T15:04:37.000Z | genie/cbs.py | karawoo/Genie | d39451655ec3632df6002c1d73b17dacba2a8720 | [
"MIT"
] | 12 | 2016-10-21T13:48:06.000Z | 2020-06-04T19:21:23.000Z | from .seg import seg
| 14.625 | 40 | 0.589744 |
e57de3bc7fa48291a8d0d04475b14d2ef81827fc | 1,715 | py | Python | nncf/__init__.py | gnomonsis/nncf_pytorch | 9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb | [
"Apache-2.0"
] | null | null | null | nncf/__init__.py | gnomonsis/nncf_pytorch | 9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb | [
"Apache-2.0"
] | 4 | 2020-07-17T11:12:35.000Z | 2021-12-15T15:20:24.000Z | nncf/__init__.py | vshampor/nncf_pytorch | 9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2019-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 43.974359 | 90 | 0.82449 |
e57e90edde840704d0ec943f37c0d9761a6a388d | 2,289 | py | Python | testcube_client/utils.py | tobyqin/testcube-client | be0fdf7436a527b4ad786f1b158f121f5d1b251e | [
"MIT"
] | 1 | 2017-07-25T14:05:16.000Z | 2017-07-25T14:05:16.000Z | testcube_client/utils.py | tobyqin/testcube-client | be0fdf7436a527b4ad786f1b158f121f5d1b251e | [
"MIT"
] | 17 | 2018-06-25T01:43:48.000Z | 2018-11-15T13:21:53.000Z | testcube_client/utils.py | tobyqin/testcube-client | be0fdf7436a527b4ad786f1b158f121f5d1b251e | [
"MIT"
] | 1 | 2020-05-11T09:07:08.000Z | 2020-05-11T09:07:08.000Z | import json
import logging
from os import environ
from os.path import basename, getsize, getmtime, splitext, exists
import arrow
from .settings import config
def env_to_json():
"""convert current env variables to json text."""
return json.dumps(dict(environ))
def get_default_run_name():
"""try to get ... | 27.25 | 88 | 0.63128 |
e580d01d3aa8a72e3c26bf42ef6e06a1887e8fa9 | 4,584 | py | Python | game.py | INE-UFSC/jogo-da-forca-grupo-2-2021-2-1 | ed14d6705128c43c253464a209e67fcdd7fb4dfe | [
"MIT"
] | 1 | 2021-11-09T17:46:22.000Z | 2021-11-09T17:46:22.000Z | game.py | INE-UFSC/jogo-da-forca-grupo-2-2021-2-1 | ed14d6705128c43c253464a209e67fcdd7fb4dfe | [
"MIT"
] | null | null | null | game.py | INE-UFSC/jogo-da-forca-grupo-2-2021-2-1 | ed14d6705128c43c253464a209e67fcdd7fb4dfe | [
"MIT"
] | 2 | 2021-11-01T15:08:52.000Z | 2021-11-01T16:19:53.000Z | import os
| 32.510638 | 78 | 0.378272 |
e581051fd2e6eca814ae819e49fdae659aae4fde | 4,346 | py | Python | Variation_to_Multihead_Attention/Decoder.py | namanjaswani27/Abstractive_Text_Summarization_using_Encoder-Decoder-Architecture | 8961b0f1ac05c664c3464b453bdf587cebfcb01e | [
"MIT"
] | null | null | null | Variation_to_Multihead_Attention/Decoder.py | namanjaswani27/Abstractive_Text_Summarization_using_Encoder-Decoder-Architecture | 8961b0f1ac05c664c3464b453bdf587cebfcb01e | [
"MIT"
] | null | null | null | Variation_to_Multihead_Attention/Decoder.py | namanjaswani27/Abstractive_Text_Summarization_using_Encoder-Decoder-Architecture | 8961b0f1ac05c664c3464b453bdf587cebfcb01e | [
"MIT"
] | null | null | null | # Code adapted from https://bastings.github.io/annotated_encoder_decoder/
import torch.nn as nn
import torch
import torch.nn.functional as F
from Attention import *
| 40.240741 | 114 | 0.598711 |
e581357571f04770b46aac44908e809d12003599 | 24,093 | py | Python | injectedConsole/plugin_util/xml_tkinter.py | ChenyangGao/SigilPlugin_injectedConsole | a35ee53671373db05e5ee66f0345d7ace06ddc0c | [
"BSD-3-Clause"
] | 11 | 2021-03-04T02:19:48.000Z | 2021-11-06T16:44:35.000Z | injectedConsole/plugin_util/xml_tkinter.py | fengdaokanhai/SigilPlugin_injectedConsole | a35ee53671373db05e5ee66f0345d7ace06ddc0c | [
"BSD-3-Clause"
] | 1 | 2021-08-02T13:13:52.000Z | 2021-08-02T13:13:52.000Z | injectedConsole/plugin_util/xml_tkinter.py | fengdaokanhai/SigilPlugin_injectedConsole | a35ee53671373db05e5ee66f0345d7ace06ddc0c | [
"BSD-3-Clause"
] | 4 | 2021-03-08T07:42:17.000Z | 2021-11-06T16:44:52.000Z | #!/usr/bin/env python3
# coding: utf-8
__author__ = 'ChenyangGao <https://chenyanggao.github.io/>'
__version__ = (0, 0, 3)
__all__ = ['TkinterXMLConfigParser']
# Reference:
# - [python > docs > tkinter](docs.python.org/3/library/tkinter.html)
# - [Tk tutorial](https://tk-tutorial.readthedocs.io/en/latest/)
# ... | 31.494118 | 109 | 0.532354 |
e5814e08c4bbef9dd023b2c150cd5634dfc5236a | 98 | py | Python | env/lib/python3.6/site-packages/pandas/computation/api.py | anthowen/duplify | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | [
"MIT"
] | 4 | 2016-12-06T20:22:28.000Z | 2018-05-04T09:51:45.000Z | env/lib/python3.6/site-packages/pandas/computation/api.py | anthowen/duplify | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | [
"MIT"
] | 11 | 2020-06-05T17:24:17.000Z | 2022-03-11T23:15:26.000Z | env/lib/python3.6/site-packages/pandas/computation/api.py | anthowen/duplify | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | [
"MIT"
] | 3 | 2019-12-24T18:46:58.000Z | 2021-09-04T11:57:13.000Z | # flake8: noqa
from pandas.computation.eval import eval
from pandas.computation.expr import Expr
| 19.6 | 40 | 0.816327 |
e583ac8fd7974e54d30580a602604c1eb91d36d2 | 2,106 | py | Python | server/sender.py | kleanlins/wireless-paint | d45e7a50dbe9a093610ae74c236321f6cfad2f24 | [
"MIT"
] | null | null | null | server/sender.py | kleanlins/wireless-paint | d45e7a50dbe9a093610ae74c236321f6cfad2f24 | [
"MIT"
] | null | null | null | server/sender.py | kleanlins/wireless-paint | d45e7a50dbe9a093610ae74c236321f6cfad2f24 | [
"MIT"
] | null | null | null | from _thread import start_new_thread
from time import sleep
import numpy as np
import simpleaudio as sa
import bitarray
import timeit
text = 'eae'
ba = bitarray.bitarray()
ba.frombytes(text.encode('utf-8'))
data = ba.tolist()
data_bit = []
for each in data:
if each:
data_bit.append(1)
else:
... | 25.682927 | 82 | 0.633428 |
e583d429f7f79fa5c0bd5f0c036974b94602f9d2 | 2,518 | py | Python | ROS/my_initials.py | PrathmeshBele/Autumn-of-Automation | c33a3725826807f3f9c9427a73922379b07f58b9 | [
"MIT"
] | null | null | null | ROS/my_initials.py | PrathmeshBele/Autumn-of-Automation | c33a3725826807f3f9c9427a73922379b07f58b9 | [
"MIT"
] | null | null | null | ROS/my_initials.py | PrathmeshBele/Autumn-of-Automation | c33a3725826807f3f9c9427a73922379b07f58b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from turtlesim.msg import Pose
import math
import time
from std_srvs.srv import Empty
x=0
y=0
yaw=0
if __name__ == '__main__':
try:
rospy.init_node('Painter')
cmd_vel_topic = '/turtle1/cmd_vel'
vel_pub = rospy.Publish... | 23.314815 | 86 | 0.622716 |
e58656a4c65591083cf0922e65119f0db2a03f9e | 863 | py | Python | data_cleanup/tests/test_views.py | yashpatel12/CPIMS-api-newtest | d5129eb3aa034f70414a2471a72c0a74ad95f6ca | [
"Apache-2.0"
] | 3 | 2022-02-18T13:25:29.000Z | 2022-02-25T11:49:11.000Z | data_cleanup/tests/test_views.py | yashpatel12/CPIMS-api-newtest | d5129eb3aa034f70414a2471a72c0a74ad95f6ca | [
"Apache-2.0"
] | null | null | null | data_cleanup/tests/test_views.py | yashpatel12/CPIMS-api-newtest | d5129eb3aa034f70414a2471a72c0a74ad95f6ca | [
"Apache-2.0"
] | 22 | 2022-02-05T13:43:53.000Z | 2022-02-26T14:29:06.000Z | from unittest import TestCase
from data_cleanup.views import validate_age
| 33.192308 | 65 | 0.707995 |
e5872824520f968c1621ab12c46ec58f4994f206 | 1,205 | py | Python | src/nebulo/lexer.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 76 | 2020-04-03T01:21:47.000Z | 2021-12-06T02:54:53.000Z | src/nebulo/lexer.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 7 | 2020-04-06T04:44:10.000Z | 2021-05-17T12:38:15.000Z | src/nebulo/lexer.py | olirice/nebulo | de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7 | [
"MIT"
] | 2 | 2020-10-23T10:25:16.000Z | 2020-10-28T14:16:57.000Z | from pygments.lexer import RegexLexer
from pygments.token import Comment, Keyword, Name, Number, Operator, Punctuation, String, Text
__all__ = ["GraphQLLexer"]
| 32.567568 | 114 | 0.443983 |
e587f4f03bf7974490210628876220e5a49a208c | 1,719 | py | Python | resources/test/mythboxtest/ui/test_livetv.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | null | null | null | resources/test/mythboxtest/ui/test_livetv.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 1 | 2015-04-21T22:05:02.000Z | 2015-04-22T22:27:15.000Z | resources/test/mythboxtest/ui/test_livetv.py | GetSomeBlocks/Score_Soccer | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 2 | 2015-09-29T16:31:43.000Z | 2020-07-26T03:41:10.000Z | import unittest
from mockito import Mock, when, any
from mythbox.ui.livetv import LiveTvWindow
from mythbox.mythtv.domain import Channel, TVProgram
if __name__ == '__main__':
import logging.config
logging.config.fileConfig('mythbox_log.ini')
unittest.main() | 28.65 | 82 | 0.507853 |
e5896561c75ca54acb654060cb261650c4d273df | 1,247 | py | Python | cru_robot/des_pub.py | chula-eic/NukeBot | 59ae793829d34dfa3abf8a95ac1054d645c134d8 | [
"Apache-2.0"
] | null | null | null | cru_robot/des_pub.py | chula-eic/NukeBot | 59ae793829d34dfa3abf8a95ac1054d645c134d8 | [
"Apache-2.0"
] | null | null | null | cru_robot/des_pub.py | chula-eic/NukeBot | 59ae793829d34dfa3abf8a95ac1054d645c134d8 | [
"Apache-2.0"
] | 1 | 2019-10-21T13:19:34.000Z | 2019-10-21T13:19:34.000Z | #!/usr/bin/env python3
import rospy
from std_msgs.msg import String
from cru_robot.msg import FloatList
pub = rospy.Publisher('destination', FloatList, queue_size=10)
servo_pub = rospy.Publisher('servo', String, queue_size=10)
queue = []; #DECLARE QUEUE/FLOATLIST QUEUE HERE
state = 0
if __name__ == '__main__':
... | 23.528302 | 62 | 0.621492 |
e589a8600a368923f52aab0b5b7240d2089f3ea2 | 1,927 | py | Python | lisp_s_expressions.py | nogumbi/LISP-Interpreter | ac4489456e91e1328fbde05d106df4caa8f5af08 | [
"MIT"
] | null | null | null | lisp_s_expressions.py | nogumbi/LISP-Interpreter | ac4489456e91e1328fbde05d106df4caa8f5af08 | [
"MIT"
] | null | null | null | lisp_s_expressions.py | nogumbi/LISP-Interpreter | ac4489456e91e1328fbde05d106df4caa8f5af08 | [
"MIT"
] | null | null | null | import re
import lisp_parser as lp
def cons(expression):
"""
cons
Is used to compose larger s-expressions from smaller expressions.
(cons a b), expects b to be a list and returns a new list with a as the
first element followed by all the elements of b
:param string
:return: string
"""
... | 26.763889 | 89 | 0.525169 |
e58a96c40fe834f5cc82996a0a1a171f940a6f52 | 2,612 | py | Python | l10n_br_eletronic_document/wizard/export_nfe.py | pedrogoncalvesk/odoo-brasil | 603aae00dfeef8087036dbcd2f8c9a5150576916 | [
"MIT"
] | null | null | null | l10n_br_eletronic_document/wizard/export_nfe.py | pedrogoncalvesk/odoo-brasil | 603aae00dfeef8087036dbcd2f8c9a5150576916 | [
"MIT"
] | null | null | null | l10n_br_eletronic_document/wizard/export_nfe.py | pedrogoncalvesk/odoo-brasil | 603aae00dfeef8087036dbcd2f8c9a5150576916 | [
"MIT"
] | 1 | 2020-08-09T21:06:31.000Z | 2020-08-09T21:06:31.000Z | import os
import io
import base64
import os.path
from zipfile import ZipFile
from odoo import api, fields, models
| 33.487179 | 73 | 0.561256 |
e58aba3d5b23d7559b2fb7b25761782d989acc1f | 3,807 | py | Python | server.py | health-line/health-line-backend | 07772a12ed0b131a57927d013fe56b052e9c72d5 | [
"MIT"
] | null | null | null | server.py | health-line/health-line-backend | 07772a12ed0b131a57927d013fe56b052e9c72d5 | [
"MIT"
] | null | null | null | server.py | health-line/health-line-backend | 07772a12ed0b131a57927d013fe56b052e9c72d5 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import jsonify
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import text
from flask_cors import CORS, cross_origin
import os
app = Flask(__name__)
CORS(app)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['SQLALCHEMY_DATABASE_URI']
db = SQLAlchemy(app)
db.engine.execute... | 32.538462 | 198 | 0.601524 |
e58b603f3270c8cd8bb40f3d52ba76dda553c385 | 1,357 | py | Python | example_runner.py | AmirPupko/pandas-to-sql | 12cb699d70acd368a284304d78c086fa0b1bc204 | [
"MIT"
] | 18 | 2021-01-21T17:10:29.000Z | 2022-03-30T19:48:00.000Z | example_runner.py | AmirPupko/pandas-to-sql | 12cb699d70acd368a284304d78c086fa0b1bc204 | [
"MIT"
] | null | null | null | example_runner.py | AmirPupko/pandas-to-sql | 12cb699d70acd368a284304d78c086fa0b1bc204 | [
"MIT"
] | null | null | null | from copy import copy
import sqlite3
import pandas as pd
import pandas_to_sql
from pandas_to_sql.testing.utils.fake_data_creation import create_fake_dataset
from pandas_to_sql.conventions import flatten_grouped_dataframe
# table_name = 'random_data'
# df, _ = create_fake_dataset()
# df_ = pandas_to_sql.wrap_df(df, tab... | 36.675676 | 102 | 0.791452 |
e58d1f142178486bdcbc6285b28e3ba9aa26e4a5 | 6,402 | py | Python | pymovingintelligence_ha/__init__.py | cyberjunky/python-movingintelligence-ha | bcb361c906172e711dbccc7e656fba0fa0d789a9 | [
"MIT"
] | null | null | null | pymovingintelligence_ha/__init__.py | cyberjunky/python-movingintelligence-ha | bcb361c906172e711dbccc7e656fba0fa0d789a9 | [
"MIT"
] | null | null | null | pymovingintelligence_ha/__init__.py | cyberjunky/python-movingintelligence-ha | bcb361c906172e711dbccc7e656fba0fa0d789a9 | [
"MIT"
] | null | null | null | """Home Assistant Python 3 API wrapper for Moving Intelligence."""
import datetime
import logging
from .utils import Utils
_LOGGER = logging.getLogger("pymovingintelligence_ha")
| 33.694737 | 116 | 0.584505 |
e58d760a1f443d62986b3bf6c17faec76fee1a3b | 7,781 | py | Python | function/omaseq.py | allmwh/the_return_of_the_rings | 75a7881d1e38882542b9ad2068262b51df6cf3d1 | [
"MIT"
] | null | null | null | function/omaseq.py | allmwh/the_return_of_the_rings | 75a7881d1e38882542b9ad2068262b51df6cf3d1 | [
"MIT"
] | null | null | null | function/omaseq.py | allmwh/the_return_of_the_rings | 75a7881d1e38882542b9ad2068262b51df6cf3d1 | [
"MIT"
] | null | null | null | import re
import json
import requests
from Bio import SeqIO
from Bio.Seq import Seq
from pathlib import Path
from tqdm.notebook import trange
from Bio.SeqRecord import SeqRecord
from function.utilities import fasta_to_seqlist
from function.utilities import find_human_sequence
| 34.892377 | 117 | 0.579231 |
e5900ab58ab8e7a67396a9fe2fe64e00c91a05bf | 448 | py | Python | min-blockchain/app/views/__init__.py | JoMingyu/Blockchain-py | 607e54c06eb9e4eb3667d18e32db736b2759ac46 | [
"MIT"
] | 12 | 2017-12-08T10:32:07.000Z | 2021-12-18T08:01:09.000Z | min-blockchain/app/views/__init__.py | JoMingyu/min-blockchain | 607e54c06eb9e4eb3667d18e32db736b2759ac46 | [
"MIT"
] | null | null | null | min-blockchain/app/views/__init__.py | JoMingyu/min-blockchain | 607e54c06eb9e4eb3667d18e32db736b2759ac46 | [
"MIT"
] | 5 | 2018-01-09T12:12:03.000Z | 2021-03-21T05:56:42.000Z | from flask_restful import Api
| 24.888889 | 71 | 0.627232 |
e590ebe69bc436fe59e39e7297df2c9fbdfdbad8 | 90 | py | Python | solaredge/__init__.py | sahilrajan81/alexa-solaredge | e43a1e3452422d0b5d87db2b5c720b32e9002a9f | [
"Apache-2.0"
] | 3 | 2019-04-05T02:15:46.000Z | 2021-04-28T21:22:48.000Z | solaredge/__init__.py | sahilrajan81/alexa-solaredge | e43a1e3452422d0b5d87db2b5c720b32e9002a9f | [
"Apache-2.0"
] | 1 | 2019-04-05T13:57:06.000Z | 2019-04-06T15:23:53.000Z | solaredge/__init__.py | sahilrajan81/alexa-solaredge | e43a1e3452422d0b5d87db2b5c720b32e9002a9f | [
"Apache-2.0"
] | 3 | 2020-02-08T20:48:33.000Z | 2022-03-08T04:56:36.000Z | """
This package contains a variety of utilities particular
to the SolarEdge portal
""" | 22.5 | 56 | 0.755556 |
e5911b5f19f89ac5924d1aa8f1aebc4e4604c187 | 57 | py | Python | pytest_monitor/__init__.py | ErnestinaQiu/pytest-monitor | 8e0fe5291acd94d301a66c75977d030f7ec135a7 | [
"MIT"
] | null | null | null | pytest_monitor/__init__.py | ErnestinaQiu/pytest-monitor | 8e0fe5291acd94d301a66c75977d030f7ec135a7 | [
"MIT"
] | null | null | null | pytest_monitor/__init__.py | ErnestinaQiu/pytest-monitor | 8e0fe5291acd94d301a66c75977d030f7ec135a7 | [
"MIT"
] | null | null | null | __version__ = "1.6.3"
__author__ = "Jean-Sebastien Dieu"
| 19 | 34 | 0.719298 |
e5949415cbb2a2ec585598fea8d9188639543f19 | 1,060 | py | Python | setup.py | r0cketr1kky/DeepPixel | 334eb551e32087cd3471111b86bf165a76868cb0 | [
"MIT"
] | 33 | 2020-03-03T15:29:41.000Z | 2021-04-05T18:09:42.000Z | setup.py | geekquad/DeepPixel | fa1430bb703f7d77296b054b6ee705c5d7bd3beb | [
"MIT"
] | 67 | 2020-03-03T16:08:31.000Z | 2021-03-25T04:29:24.000Z | setup.py | geekquad/DeepPixel | fa1430bb703f7d77296b054b6ee705c5d7bd3beb | [
"MIT"
] | 63 | 2020-03-03T21:23:54.000Z | 2021-06-10T13:00:17.000Z | from setuptools import setup, find_packages
import pathlib
HERE = pathlib.Path(__file__).parent
VERSION = '0.0.1'
PACKAGE_NAME = 'DeepPixel'
AUTHOR = 'Smaranjit Ghose'
AUTHOR_EMAIL = 'smaranjitghose@protonmail.com'
URL = 'https://github.com/smaranjitghose/deepixel'
KEYWORDS = "deep-pixel deeplearing computervision iq... | 31.176471 | 140 | 0.74434 |
e594d5464b3e5d719b95cbaa5e7a95d6b6fee164 | 1,608 | py | Python | tests/test_context.py | 20c/ngage | 0762f2b806b54878f19ca9ea4cc81770e503dad1 | [
"Apache-2.0"
] | 8 | 2016-05-12T20:14:22.000Z | 2021-03-10T00:46:07.000Z | tests/test_context.py | 20c/ngage | 0762f2b806b54878f19ca9ea4cc81770e503dad1 | [
"Apache-2.0"
] | 5 | 2016-07-27T03:57:21.000Z | 2021-08-06T20:03:53.000Z | tests/test_context.py | 20c/ngage | 0762f2b806b54878f19ca9ea4cc81770e503dad1 | [
"Apache-2.0"
] | 3 | 2016-12-02T08:33:58.000Z | 2021-08-06T19:36:49.000Z | import os
import pytest
import ngage.cli
this_dir = os.path.dirname(__file__)
data_dir = os.path.join(this_dir, "data")
host_tst0 = "tst0.example.com"
host_tst1 = "tst1.example.com"
host_tst2 = "tst2.example.com"
def hkwa(host):
"""make kwargs for host"""
return dict(
host=host,
# ... | 22.971429 | 75 | 0.671642 |
e594f58c382594d969ae896f651140e88f621f92 | 23,856 | py | Python | omd/versions/1.2.8p15.cre/share/check_mk/modules/packaging.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | omd/versions/1.2.8p15.cre/share/check_mk/modules/packaging.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | omd/versions/1.2.8p15.cre/share/check_mk/modules/packaging.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | 36.255319 | 117 | 0.577088 |
e596288313fff3859ad81134848a325ad0b56755 | 304 | py | Python | pms/student/admin.py | iammeliodas/pms_django | 535f59ff2dc5260ed9c6da62defa6d740afc0289 | [
"Apache-2.0"
] | null | null | null | pms/student/admin.py | iammeliodas/pms_django | 535f59ff2dc5260ed9c6da62defa6d740afc0289 | [
"Apache-2.0"
] | 7 | 2020-06-05T20:21:00.000Z | 2021-09-22T18:18:42.000Z | pms/student/admin.py | meet86/pms_django | 535f59ff2dc5260ed9c6da62defa6d740afc0289 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from import_export.admin import ImportExportModelAdmin
from .models import StudentDetails,RegisterdStudents
admin.site.register(RegisterdStudents) | 25.333333 | 54 | 0.848684 |
e598f30af78d83c0850f21960df36978aef36582 | 335 | py | Python | ci_test_settings.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 13 | 2020-12-14T19:56:04.000Z | 2021-11-06T13:24:48.000Z | ci_test_settings.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 5 | 2020-12-14T19:56:30.000Z | 2021-09-22T22:09:39.000Z | ci_test_settings.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 3 | 2021-03-24T03:55:08.000Z | 2022-01-13T15:22:34.000Z | # coding=utf-8
from datetime import date
from settings import *
DEBUG = True
ALLOWED_HOSTS = ['testserver', ]
DATABASES = {
'default': {
'HOST': '127.0.0.1',
'NAME': 'utopia',
'PASSWORD': 'citest',
'USER': 'utopiatest_django',
'ENGINE': 'django.contrib.gis.db.backends.pos... | 17.631579 | 59 | 0.573134 |
e599c7f4a812fe28fcb19fc70378acc1a1ead3f3 | 1,396 | py | Python | trialswithotherCV/RDFRandomCV.py | devs4v/DecisionTreeAndRDF | 9e630df0354712e6496a0b679b4b417f14acc689 | [
"MIT"
] | 1 | 2016-05-28T17:34:09.000Z | 2016-05-28T17:34:09.000Z | trialswithotherCV/RDFRandomCV.py | devs4v/DecisionTreeAndRDF | 9e630df0354712e6496a0b679b4b417f14acc689 | [
"MIT"
] | null | null | null | trialswithotherCV/RDFRandomCV.py | devs4v/DecisionTreeAndRDF | 9e630df0354712e6496a0b679b4b417f14acc689 | [
"MIT"
] | null | null | null | ''' crossvalidation.py
# Author : Shivam Chaturvedi
# Last Modified : 06:25 PM, 10th September 2013
# Purpose : Perform random cross validation [Machine Learning](Checking accuracy of classified decisions using k-fold validation)
# Copyright : (C) 2013
'''
from random import random
import sys
from rdforest import... | 37.72973 | 171 | 0.758596 |
e59a96f9cbef90916ed0e04cd8d6ed7564a75b9b | 83 | py | Python | core/dr_utils/dib_renderer_x/__init__.py | weiqi-luo/Self6D-Diff-Renderer | 1e1caad49f0f8de90a332995814de29261598982 | [
"Apache-2.0"
] | 90 | 2020-08-15T16:14:45.000Z | 2022-01-22T10:24:13.000Z | core/dr_utils/dib_renderer_x/__init__.py | weiqi-luo/Self6D-Diff-Renderer | 1e1caad49f0f8de90a332995814de29261598982 | [
"Apache-2.0"
] | 11 | 2020-09-07T17:31:18.000Z | 2021-11-25T12:07:30.000Z | core/dr_utils/dib_renderer_x/__init__.py | weiqi-luo/Self6D-Diff-Renderer | 1e1caad49f0f8de90a332995814de29261598982 | [
"Apache-2.0"
] | 13 | 2020-09-03T04:25:50.000Z | 2021-12-23T08:23:33.000Z | # NOTE: override the kaolin one
from .renderer.base import Renderer as DIBRenderer
| 27.666667 | 50 | 0.807229 |
e59c5d2fd8a3a321305e6e559d45e6227510d99d | 505 | py | Python | raiden/billing/invoices/util/encoding_util.py | marcosmartinez7/lumino | 2a5a74589aaf26172cee6ec23fde5f4fc1938a43 | [
"MIT"
] | 8 | 2019-06-12T14:50:06.000Z | 2022-02-15T16:20:07.000Z | raiden/billing/invoices/util/encoding_util.py | marcosmartinez7/lumino | 2a5a74589aaf26172cee6ec23fde5f4fc1938a43 | [
"MIT"
] | 141 | 2019-06-18T13:04:08.000Z | 2021-11-23T22:00:32.000Z | raiden/billing/invoices/util/encoding_util.py | marcosmartinez7/lumino | 2a5a74589aaf26172cee6ec23fde5f4fc1938a43 | [
"MIT"
] | 17 | 2019-05-21T18:09:05.000Z | 2020-10-29T13:01:01.000Z | import bitstring
# Bech32 spits out array of 5-bit values. Shim here.
# Map of classical and witness address prefixes
base58_prefix_map = {
'bc' : (0, 5),
'tb' : (111, 196)
}
| 19.423077 | 53 | 0.613861 |
e5a04c939b008bb6f604ccaea68821fc565267f3 | 11,412 | py | Python | notebooks-text-format/vdvae_jax_cifar_demo.py | arpitvaghela/probml-notebooks | 32ecb309dd474b989fd1c6ce4ad6dab7a25bbead | [
"MIT"
] | 166 | 2021-07-16T17:33:09.000Z | 2022-03-30T03:35:34.000Z | notebooks-text-format/vdvae_jax_cifar_demo.py | arpitvaghela/probml-notebooks | 32ecb309dd474b989fd1c6ce4ad6dab7a25bbead | [
"MIT"
] | 29 | 2021-07-21T16:31:51.000Z | 2022-03-31T19:50:13.000Z | notebooks-text-format/vdvae_jax_cifar_demo.py | arpitvaghela/probml-notebooks | 32ecb309dd474b989fd1c6ce4ad6dab7a25bbead | [
"MIT"
] | 48 | 2021-07-17T08:26:18.000Z | 2022-03-31T03:36:18.000Z | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.3
# kernelspec:
# display_name: Python 3
# name: python3
# ---
# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab... | 35.774295 | 249 | 0.720645 |
e5a15de438d9e84ae243630576c60f87a6909270 | 764 | py | Python | models.py | plumdog/mainstay_kanban | 1930573c9ca832c1e7f5883226b110929d331a85 | [
"MIT"
] | null | null | null | models.py | plumdog/mainstay_kanban | 1930573c9ca832c1e7f5883226b110929d331a85 | [
"MIT"
] | null | null | null | models.py | plumdog/mainstay_kanban | 1930573c9ca832c1e7f5883226b110929d331a85 | [
"MIT"
] | null | null | null | from django.db import models
from mainstay.models import UpdatedAndCreated
| 36.380952 | 104 | 0.742147 |
e5a22380ea01f24efd61719c4dfe26a7edea0460 | 4,672 | py | Python | Demo/facenet_align/align/align_dataset_mtcnn.py | swapnil96/BTP | fda254a8d83297698808857a78e2b9d091c195e3 | [
"MIT"
] | null | null | null | Demo/facenet_align/align/align_dataset_mtcnn.py | swapnil96/BTP | fda254a8d83297698808857a78e2b9d091c195e3 | [
"MIT"
] | null | null | null | Demo/facenet_align/align/align_dataset_mtcnn.py | swapnil96/BTP | fda254a8d83297698808857a78e2b9d091c195e3 | [
"MIT"
] | null | null | null | """Performs face alignment and stores face thumbnails in the output directory."""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software witho... | 45.359223 | 121 | 0.59375 |
e5a29762fbb3256d339e40567fe3e9918b5eab1e | 145 | py | Python | kivy/tests/pyinstaller/video_widget/main.py | Galland/kivy | 95a6bf279883d706f645e4629c16d5ee1038f0ec | [
"MIT"
] | 13,889 | 2015-01-01T06:43:41.000Z | 2022-03-31T17:37:56.000Z | kivy/tests/pyinstaller/video_widget/main.py | Galland/kivy | 95a6bf279883d706f645e4629c16d5ee1038f0ec | [
"MIT"
] | 4,570 | 2015-01-01T17:58:52.000Z | 2022-03-31T18:42:16.000Z | kivy/tests/pyinstaller/video_widget/main.py | Galland/kivy | 95a6bf279883d706f645e4629c16d5ee1038f0ec | [
"MIT"
] | 3,786 | 2015-01-01T09:20:45.000Z | 2022-03-30T21:15:05.000Z | from project import VideoApp
if __name__ == '__main__':
from kivy.core.video import Video
assert Video is not None
VideoApp().run()
| 20.714286 | 37 | 0.703448 |
e5a2d839b3fdc44cab076968a9a5709b8e060090 | 2,492 | py | Python | custom_conda_create/util/shell_funcs.py | bk-m/custom_conda_create | 8e2547570e35d1183c590f2bf3fc23f8da9bcf9a | [
"MIT"
] | null | null | null | custom_conda_create/util/shell_funcs.py | bk-m/custom_conda_create | 8e2547570e35d1183c590f2bf3fc23f8da9bcf9a | [
"MIT"
] | 1 | 2021-11-15T17:47:21.000Z | 2021-11-15T17:47:21.000Z | custom_conda_create/util/shell_funcs.py | bk-m/custom_conda_create | 8e2547570e35d1183c590f2bf3fc23f8da9bcf9a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Shell functions for the module.
"""
import pathlib
import re
import os
import sys
import subprocess
def run_in_shell_with_output(cmd):
"""
Runs a given command in a subshell and prints the ouput.
:param cmd: Command to run.
:returns: Returns the exit code of the subproces... | 31.948718 | 100 | 0.676565 |
e5a3c635e0952221d65d69a271eab4fe5fe11660 | 6,085 | py | Python | mnist/conv_tf.py | stallmanifold/kaggle | 8854d5b7ceb98908b48aaf0ad8ffb94196d059dd | [
"BSD-3-Clause"
] | null | null | null | mnist/conv_tf.py | stallmanifold/kaggle | 8854d5b7ceb98908b48aaf0ad8ffb94196d059dd | [
"BSD-3-Clause"
] | null | null | null | mnist/conv_tf.py | stallmanifold/kaggle | 8854d5b7ceb98908b48aaf0ad8ffb94196d059dd | [
"BSD-3-Clause"
] | 1 | 2018-09-11T19:38:05.000Z | 2018-09-11T19:38:05.000Z | """
Convnet classifier for MNIST data using TensorFlow.
"""
import tensorflow as tf
import mnist.mnist as mnist
import pandas as pd
DEFAULT_INPUT_DIMENSIONS = 784
DEFAULT_OUTPUT_DIMENSIONS = 10
DEFAULT_LEARNING_RATE = 0.1
DEFAULT_BATCH_SIZE = 50
DEFAULT_KEEP_PROB = 0.5
def conv_hlayer... | 26.806167 | 102 | 0.631224 |
e5a3d6bcc39cce295c327958db096f13362fda0f | 298 | py | Python | hawkbot/__main__.py | bmintz/hawkbot | 9dcace0d9f457353ad8081a12ac5e20279bb46d5 | [
"CC0-1.0"
] | 1 | 2019-05-19T18:21:04.000Z | 2019-05-19T18:21:04.000Z | hawkbot/__main__.py | bmintz/hawkbot | 9dcace0d9f457353ad8081a12ac5e20279bb46d5 | [
"CC0-1.0"
] | null | null | null | hawkbot/__main__.py | bmintz/hawkbot | 9dcace0d9f457353ad8081a12ac5e20279bb46d5 | [
"CC0-1.0"
] | null | null | null | from . import bot
from configparser import ConfigParser
import sys
if __name__ == '__main__':
main() | 15.684211 | 37 | 0.721477 |
e5a4e36ce23e839315a96cc318686ecce8accd46 | 193 | py | Python | AlgorithmTest/BOJ_STEP_PYTHON/Step10/BOJ10872.py | bluesky0960/AlgorithmTest | 35e6c01b1c25bf13d4c034c047f3dd3b67f1578e | [
"MIT"
] | null | null | null | AlgorithmTest/BOJ_STEP_PYTHON/Step10/BOJ10872.py | bluesky0960/AlgorithmTest | 35e6c01b1c25bf13d4c034c047f3dd3b67f1578e | [
"MIT"
] | null | null | null | AlgorithmTest/BOJ_STEP_PYTHON/Step10/BOJ10872.py | bluesky0960/AlgorithmTest | 35e6c01b1c25bf13d4c034c047f3dd3b67f1578e | [
"MIT"
] | null | null | null | # https://www.acmicpc.net/problem/10872
n = int(input())
if n == 0:
print(1)
else:
print(n_fac(n)) | 13.785714 | 39 | 0.528497 |
e5a615a31b2830a468f9c2ec4b38e9d1c132c97b | 3,870 | py | Python | tests/test_utils.py | msakai/DeepSentinel | b090a74a54b4f162ce6f078b57976353dc276dec | [
"MIT"
] | 7 | 2018-07-17T05:29:30.000Z | 2021-03-18T18:35:50.000Z | tests/test_utils.py | msakai/DeepSentinel | b090a74a54b4f162ce6f078b57976353dc276dec | [
"MIT"
] | null | null | null | tests/test_utils.py | msakai/DeepSentinel | b090a74a54b4f162ce6f078b57976353dc276dec | [
"MIT"
] | 2 | 2018-07-17T12:50:22.000Z | 2020-03-23T05:00:40.000Z | from pathlib import Path
from tempfile import TemporaryDirectory
import pytest
from deep_sentinel import utils
# pytest's temporary directory fixture (tmpdir) is a py.path.LocalPath object
# This is a workaround to use tempfile.TemporaryDirectory
| 26.689655 | 77 | 0.543411 |
e5a6e1742578b7dddfcb7f9f3b116b9682fe0ba7 | 10,252 | py | Python | module_api/rogertests/test_accounts.py | rogertalk/roger-api | 7228d96910ab0a96af53ca2830115d5fc5e1de79 | [
"MIT"
] | 3 | 2019-05-19T22:21:44.000Z | 2020-04-26T01:58:55.000Z | module_api/rogertests/test_accounts.py | rogertalk/roger-api | 7228d96910ab0a96af53ca2830115d5fc5e1de79 | [
"MIT"
] | null | null | null | module_api/rogertests/test_accounts.py | rogertalk/roger-api | 7228d96910ab0a96af53ca2830115d5fc5e1de79 | [
"MIT"
] | null | null | null | import mock
from roger import accounts, streams
from roger_common import errors
import rogertests
| 40.68254 | 96 | 0.668455 |
e5a9a9867a7b67ecb65337229a603aba10abfeaf | 187 | py | Python | tests/main_tests/main2/libraries/user/__init__.py | ruke47/squadron | 311bd93f11502917ce4e479cb89bde6764c83f27 | [
"MIT"
] | null | null | null | tests/main_tests/main2/libraries/user/__init__.py | ruke47/squadron | 311bd93f11502917ce4e479cb89bde6764c83f27 | [
"MIT"
] | null | null | null | tests/main_tests/main2/libraries/user/__init__.py | ruke47/squadron | 311bd93f11502917ce4e479cb89bde6764c83f27 | [
"MIT"
] | null | null | null | import os
| 13.357143 | 35 | 0.475936 |
e5aa4651626736cae0291004ae857c774922dfb4 | 418 | py | Python | app/admin.py | mugisha-thierry/online-shop | d6e9b1f5c9b031a87af50ff490d2222706530536 | [
"Unlicense"
] | 1 | 2021-03-26T07:35:57.000Z | 2021-03-26T07:35:57.000Z | app/admin.py | mugisha-thierry/online-shop | d6e9b1f5c9b031a87af50ff490d2222706530536 | [
"Unlicense"
] | null | null | null | app/admin.py | mugisha-thierry/online-shop | d6e9b1f5c9b031a87af50ff490d2222706530536 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import Profile,Category,Product,OrderItem,Order,Transaction,Rate,Delivery
# Register your models here.
admin.site.register(Category)
admin.site.register(Delivery)
admin.site.register(Profile)
admin.site.register(Product)
admin.site.register(OrderItem)
admin.site.register(... | 29.857143 | 86 | 0.827751 |