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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c61ecd42ed59f6a2c7fd49a38719e52edaf2a1f | 845 | py | Python | orion/modules/active/wolfram.py | isathish/ai_opesource | cdccd882306c45712fcdd40e15937b5a9571028a | [
"MIT"
] | null | null | null | orion/modules/active/wolfram.py | isathish/ai_opesource | cdccd882306c45712fcdd40e15937b5a9571028a | [
"MIT"
] | null | null | null | orion/modules/active/wolfram.py | isathish/ai_opesource | cdccd882306c45712fcdd40e15937b5a9571028a | [
"MIT"
] | null | null | null | """
Handles most general questions (including math!)
Requires:
- WolframAlpha API key
Usage Examples:
- "How tall is Mount Everest?"
- "What is the derivative of y = 2x?"
"""
import wolframalpha
from orion.classes.module import Module
from orion.classes.task import ActiveTask
from orion i... | 21.666667 | 68 | 0.639053 |
4c624ee7a6d344a15a579b043c3cb6fef1c9aa3b | 1,035 | py | Python | polymatch/matchers/standard.py | linuxdaemon/poly-match | 66d967999de982d5ee9463c46b0ff8040d91dc67 | [
"MIT"
] | null | null | null | polymatch/matchers/standard.py | linuxdaemon/poly-match | 66d967999de982d5ee9463c46b0ff8040d91dc67 | [
"MIT"
] | 26 | 2020-05-13T17:46:45.000Z | 2022-03-18T16:07:14.000Z | polymatch/matchers/standard.py | TotallyNotRobots/poly-match | 66d967999de982d5ee9463c46b0ff8040d91dc67 | [
"MIT"
] | null | null | null | from polymatch import PolymorphicMatcher
| 23.522727 | 46 | 0.696618 |
4c6289a028d756ccd03ac220d11a9d33117ee573 | 6,530 | py | Python | djcorsche/settings_default.py | carthage-college/django-djcorsche | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | [
"BSD-3-Clause"
] | null | null | null | djcorsche/settings_default.py | carthage-college/django-djcorsche | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | [
"BSD-3-Clause"
] | null | null | null | djcorsche/settings_default.py | carthage-college/django-djcorsche | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for project.
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# Debug
#DEBUG = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG
INFORMIX_DEBUG = "debug"
ADMINS = (
('', ''),
)
MANAGERS = ADMINS
SECRET_KEY = ''
ALLOWED_HOSTS = []
LANGUAGE_CODE = 'en-us'
TIME_ZONE... | 27.552743 | 96 | 0.620214 |
4c6339b396838bba425536d8c48a53a76850151f | 956 | py | Python | records/12-09/ffff.py | AaronYang2333/CSCI_570 | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | [
"Apache-2.0"
] | 36 | 2020-07-25T00:13:25.000Z | 2022-02-28T17:48:15.000Z | records/12-09/ffff.py | AaronYang2333/LeetCode | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | [
"Apache-2.0"
] | 6 | 2020-06-06T04:39:37.000Z | 2021-04-03T01:45:39.000Z | records/12-09/ffff.py | AaronYang2333/LeetCode | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | [
"Apache-2.0"
] | 16 | 2020-12-16T02:38:16.000Z | 2022-02-28T17:48:16.000Z | __author__ = 'Aaron Yang'
__email__ = 'byang971@usc.edu'
__date__ = '12/9/2020 4:18 PM'
from abc import abstractmethod
if __name__ == '__main__':
ss = Factory().produce()
pc = PCFactory().produce()
laptop = LAPTOPFactory().produce()
pc.info()
laptop.info()
ss.info()
| 16.20339 | 41 | 0.624477 |
4c63d036bfd0e51ade860a3521aecee117e88f7d | 7,064 | py | Python | tests/test_users.py | fastapi-users/fastapi-users-db-sqlmodel | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | [
"MIT"
] | 18 | 2021-09-09T09:35:30.000Z | 2022-03-19T04:58:17.000Z | tests/test_users.py | fastapi-users/fastapi-users-db-sqlmodel | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | [
"MIT"
] | null | null | null | tests/test_users.py | fastapi-users/fastapi-users-db-sqlmodel | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | [
"MIT"
] | 3 | 2021-11-01T16:58:54.000Z | 2022-02-15T16:17:11.000Z | import uuid
from typing import AsyncGenerator
import pytest
from sqlalchemy import exc
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker
from sqlmodel import Session, SQLModel, create_engine
from fastapi_users_db_sqlmodel import (
NotSetOAuthAccountTableE... | 30.982456 | 88 | 0.709513 |
4c64a40785307d838c76dd7877d9296fa9590e81 | 623 | py | Python | copy_reg.py | rtbo/vkdgen | 04a228961bb091b59dc6f741eee703cd81724ca3 | [
"MIT"
] | 2 | 2021-01-08T15:05:27.000Z | 2021-10-12T08:44:01.000Z | copy_reg.py | rtbo/vkdgen | 04a228961bb091b59dc6f741eee703cd81724ca3 | [
"MIT"
] | null | null | null | copy_reg.py | rtbo/vkdgen | 04a228961bb091b59dc6f741eee703cd81724ca3 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import os
from os import path
root_dir = path.dirname(path.realpath(__file__))
local_reg_dir = path.join(root_dir, 'registry')
os.makedirs(local_reg_dir, exist_ok=True)
vk_files = [ 'registry/vk.xml', 'registry/reg.py', 'registry/generator.py' ]
copy_reg(path.join(root_dir, 'Vulkan-Headers'),... | 31.15 | 76 | 0.704655 |
4c64de6df990440fb9bf292eb702bdb614dfcfae | 22,653 | py | Python | utils.py | atward424/ASCVD_ML | 39404dd5f50a527576b91e8f53f5157f76382712 | [
"Apache-2.0"
] | 1 | 2021-04-08T07:05:18.000Z | 2021-04-08T07:05:18.000Z | utils.py | atward424/ASCVD_ML | 39404dd5f50a527576b91e8f53f5157f76382712 | [
"Apache-2.0"
] | null | null | null | utils.py | atward424/ASCVD_ML | 39404dd5f50a527576b91e8f53f5157f76382712 | [
"Apache-2.0"
] | 1 | 2021-04-08T07:07:53.000Z | 2021-04-08T07:07:53.000Z | import numpy as np
import pandas as pd
import scipy.stats as st
#from medical_ML import Experiment
import matplotlib.pyplot as plt
import xgboost as xgb
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
from sklearn.dummy import DummyClassifier
from sklearn.tree import DecisionTreeClassif... | 48.821121 | 147 | 0.382201 |
4c656802f3785c807e752895a2d07dd94b79c82b | 4,377 | py | Python | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | hwoarang/caasp-container-manifests | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | [
"Apache-2.0"
] | 5 | 2017-03-16T10:47:39.000Z | 2018-01-17T13:07:03.000Z | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | hwoarang/caasp-container-manifests | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | [
"Apache-2.0"
] | 138 | 2017-03-08T12:43:51.000Z | 2019-04-15T12:57:30.000Z | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | hwoarang/caasp-container-manifests | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | [
"Apache-2.0"
] | 26 | 2017-03-09T08:24:03.000Z | 2019-03-08T00:26:52.000Z | import json
import logging
import re
import susepubliccloudinfoclient.infoserverrequests as ifsrequest
import yaml
import sys
RELEASE_DATE = re.compile('^.*-v(\d{8})-*.*')
def get_caasp_release_version():
"""Return the version from os-release"""
os_release = open('/etc/os-release', 'r').readlines()
for e... | 37.732759 | 80 | 0.631026 |
4c66a4345821de6dcbba5bb0bbb633c3ee79daa3 | 2,219 | py | Python | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | simewu/bitcoin_researcher | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | [
"MIT"
] | 1 | 2020-02-15T21:44:04.000Z | 2020-02-15T21:44:04.000Z | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | # Copyright (C) 2015-2016 The bitcoin-blockchain-parser developers
#
# This file is part of bitcoin-blockchain-parser.
#
# It is subject to the license terms in the LICENSE file found in the top-level
# directory of this distribution.
#
# No part of bitcoin-blockchain-parser, including this file, may be copied,
# modif... | 43.509804 | 79 | 0.68995 |
4c66dd7c5bb758efe86e3099648aa0be4405bfa6 | 75 | py | Python | genegenie/admin/__init__.py | genegeniebio/genegenie-admin | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | [
"MIT"
] | null | null | null | genegenie/admin/__init__.py | genegeniebio/genegenie-admin | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | [
"MIT"
] | null | null | null | genegenie/admin/__init__.py | genegeniebio/genegenie-admin | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | [
"MIT"
] | null | null | null | '''
DNA++ (c) DNA++ 2017
All rights reserved.
@author: neilswainston
'''
| 9.375 | 22 | 0.626667 |
4c69488448856c1dbc829f26d69379083cb5c7c7 | 600 | py | Python | tests/conftest.py | pkavousi/similar-users | 8434e0a03dc8dfa218a34601431c564dff3e80b6 | [
"FTL",
"RSA-MD"
] | null | null | null | tests/conftest.py | pkavousi/similar-users | 8434e0a03dc8dfa218a34601431c564dff3e80b6 | [
"FTL",
"RSA-MD"
] | null | null | null | tests/conftest.py | pkavousi/similar-users | 8434e0a03dc8dfa218a34601431c564dff3e80b6 | [
"FTL",
"RSA-MD"
] | null | null | null | import os
import pandas as pd
import pytest
from user_similarity_model.config.core import DATASET_DIR, config
| 27.272727 | 78 | 0.716667 |
4c6a6e28161a83ca0b9ef2212d453c1bc1cfcfd6 | 232 | py | Python | weather/apps.py | chrisjen83/rfb_weather_obs | 8eab16358c5059655d208ef41aa38692fa21776f | [
"Apache-2.0"
] | 1 | 2020-12-05T05:23:26.000Z | 2020-12-05T05:23:26.000Z | weather/apps.py | chrisjen83/rfb_weather_obs | 8eab16358c5059655d208ef41aa38692fa21776f | [
"Apache-2.0"
] | null | null | null | weather/apps.py | chrisjen83/rfb_weather_obs | 8eab16358c5059655d208ef41aa38692fa21776f | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
import logging
logger = logging.getLogger(__name__)
| 17.846154 | 43 | 0.715517 |
4c6a77a19021a586afe308be8abcbb50f2c090fd | 26 | py | Python | projects/django-filer/test.py | fleimgruber/python | 2e735762c73651cffc027ca850b2a58d87d54b49 | [
"Unlicense"
] | 25 | 2021-10-30T19:54:59.000Z | 2022-03-29T06:11:02.000Z | projects/django-filer/test.py | fleimgruber/python | 2e735762c73651cffc027ca850b2a58d87d54b49 | [
"Unlicense"
] | 21 | 2021-10-19T01:09:38.000Z | 2022-03-24T16:08:53.000Z | projects/django-filer/test.py | fleimgruber/python | 2e735762c73651cffc027ca850b2a58d87d54b49 | [
"Unlicense"
] | 3 | 2022-01-25T20:25:13.000Z | 2022-03-08T02:58:50.000Z | import filer
import tests
| 8.666667 | 12 | 0.846154 |
4c6c5b767e3d2e7d380bed49701614a213de873b | 8,063 | py | Python | examples/plots/plot_pass_network.py | DymondFormation/mplsoccer | 544300857ec5936781e12fda203cf2df8a3d00b9 | [
"MIT"
] | null | null | null | examples/plots/plot_pass_network.py | DymondFormation/mplsoccer | 544300857ec5936781e12fda203cf2df8a3d00b9 | [
"MIT"
] | null | null | null | examples/plots/plot_pass_network.py | DymondFormation/mplsoccer | 544300857ec5936781e12fda203cf2df8a3d00b9 | [
"MIT"
] | null | null | null | """
============
Pass Network
============
This example shows how to plot passes between players in a set formation.
"""
import pandas as pd
from mplsoccer.pitch import Pitch
from matplotlib.colors import to_rgba
import numpy as np
from mplsoccer.statsbomb import read_event, EVENT_SLUG
##############################... | 55.226027 | 116 | 0.615032 |
4c6cd0ca287f397e656cbb934079a5d03bb867b9 | 2,786 | py | Python | jsfiddle_factory/__init__.py | andrewp-as-is/jsfiddle-factory.py | 7b8b883676f3330f5714b15157819b583a753ba1 | [
"Unlicense"
] | null | null | null | jsfiddle_factory/__init__.py | andrewp-as-is/jsfiddle-factory.py | 7b8b883676f3330f5714b15157819b583a753ba1 | [
"Unlicense"
] | null | null | null | jsfiddle_factory/__init__.py | andrewp-as-is/jsfiddle-factory.py | 7b8b883676f3330f5714b15157819b583a753ba1 | [
"Unlicense"
] | null | null | null | __all__ = ['Factory']
import jsfiddle_build
import jsfiddle_github
import jsfiddle_generator
import jsfiddle_readme_generator
import getdirs
import getfiles
import os
import popd
import yaml
class Factory:
"""attrs: `path`. methods: `detox()`, `init()`, `build()`, `readme()`, `update_resources()`"""
path... | 30.955556 | 98 | 0.578248 |
4c6d7d5083c40236ec67c12d5db46eb9b81e4185 | 5,774 | py | Python | spellnn/train.py | MartinXPN/SpellNN | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | [
"MIT"
] | null | null | null | spellnn/train.py | MartinXPN/SpellNN | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | [
"MIT"
] | null | null | null | spellnn/train.py | MartinXPN/SpellNN | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | [
"MIT"
] | null | null | null | import logging
import os
from datetime import datetime
from inspect import signature, Parameter
from pathlib import Path
from pprint import pprint
from textwrap import dedent
from typing import Optional, Union
import fire
import tensorflow as tf
from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint, Te... | 46.943089 | 118 | 0.662799 |
4c6e61959c8414eed50a9b983937c8b1f9cf4b26 | 3,711 | py | Python | flax/core/frozen_dict.py | juliuskunze/flax | 929395cf5c7391bca3e33ef6760ff9591401d19e | [
"Apache-2.0"
] | null | null | null | flax/core/frozen_dict.py | juliuskunze/flax | 929395cf5c7391bca3e33ef6760ff9591401d19e | [
"Apache-2.0"
] | null | null | null | flax/core/frozen_dict.py | juliuskunze/flax | 929395cf5c7391bca3e33ef6760ff9591401d19e | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The Flax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 25.770833 | 80 | 0.68041 |
4c72d8c0b48b4984dfd1c6e64ae6bd05f864f9ea | 1,273 | py | Python | pybb/middleware.py | grigi/pybbm | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | [
"BSD-2-Clause"
] | null | null | null | pybb/middleware.py | grigi/pybbm | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | [
"BSD-2-Clause"
] | null | null | null | pybb/middleware.py | grigi/pybbm | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.utils import translation
from django.db.models import ObjectDoesNotExist
from pybb import util
from pybb.signals import user_saved
| 37.441176 | 69 | 0.624509 |
4c72f9ae2886173a745e73873beb49821cbc3a3f | 691 | py | Python | streetlite/common/constants.py | s0h3ck/streetlite | 21db388702f828417dd3dc0fbfa5af757216e1e0 | [
"MIT"
] | null | null | null | streetlite/common/constants.py | s0h3ck/streetlite | 21db388702f828417dd3dc0fbfa5af757216e1e0 | [
"MIT"
] | 1 | 2021-06-01T22:23:13.000Z | 2021-06-01T22:23:13.000Z | streetlite/common/constants.py | s0h3ck/streetlite | 21db388702f828417dd3dc0fbfa5af757216e1e0 | [
"MIT"
] | null | null | null | from enum import Enum | 18.675676 | 55 | 0.622287 |
4c73a2fb986309ca0a2f6912149adaf74509a6fc | 716 | py | Python | day5.py | achien/advent-of-code-2021 | 8851e1727975ea8124db78b54fe577fbf2e5883d | [
"MIT"
] | null | null | null | day5.py | achien/advent-of-code-2021 | 8851e1727975ea8124db78b54fe577fbf2e5883d | [
"MIT"
] | null | null | null | day5.py | achien/advent-of-code-2021 | 8851e1727975ea8124db78b54fe577fbf2e5883d | [
"MIT"
] | null | null | null | import fileinput
counts = {}
for line in fileinput.input():
line = line.strip()
p1, p2 = line.split('>')
p1 = p1[:-2]
x1, y1 = p1.split(',')
x1 = int(x1)
y1 = int(y1)
p2 = p2[1:]
x2, y2 = p2.split(',')
x2 = int(x2)
y2 = int(y2)
if x1 == x2:
dx = 0
elif x1 > x2:... | 15.911111 | 42 | 0.391061 |
4c73c6bd43cad4b6997238ea62e6e2c529f20e54 | 1,635 | py | Python | meditation_example.py | sodapopinsky/dfk | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | [
"MIT"
] | 90 | 2021-10-17T19:36:45.000Z | 2022-03-31T17:19:43.000Z | meditation_example.py | sodapopinsky/dfk | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | [
"MIT"
] | 13 | 2021-11-13T00:19:31.000Z | 2022-03-20T15:13:22.000Z | meditation_example.py | sodapopinsky/dfk | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | [
"MIT"
] | 71 | 2021-11-05T03:00:41.000Z | 2022-03-30T06:16:25.000Z | import logging
from web3 import Web3
import sys
import time
import meditation.meditation as meditation
if __name__ == "__main__":
log_format = '%(asctime)s|%(name)s|%(levelname)s: %(message)s'
logger = logging.getLogger("DFK-meditation")
logger.setLevel(logging.DEBUG)
logging.basicConfig(level=loggin... | 41.923077 | 127 | 0.720489 |
4c752c3e0e33ba7c7da469ab66cb6adfa9bb958a | 669 | py | Python | python/johnstarich/interval.py | JohnStarich/dotfiles | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | [
"Apache-2.0"
] | 3 | 2018-02-28T14:22:53.000Z | 2022-01-24T02:38:22.000Z | python/johnstarich/interval.py | JohnStarich/dotfiles | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | [
"Apache-2.0"
] | null | null | null | python/johnstarich/interval.py | JohnStarich/dotfiles | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | [
"Apache-2.0"
] | null | null | null | import time
| 24.777778 | 67 | 0.606876 |
4c76367fcd11568b786d20b9e43e17b970ff6e48 | 2,329 | py | Python | servers/python/coweb/bot/wrapper/object.py | opencoweb/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 83 | 2015-01-05T19:02:57.000Z | 2021-11-19T02:48:09.000Z | servers/python/coweb/bot/wrapper/object.py | xuelingxiao/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 3 | 2015-12-16T13:49:33.000Z | 2019-06-17T13:38:50.000Z | servers/python/coweb/bot/wrapper/object.py | xuelingxiao/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 14 | 2015-04-29T22:36:53.000Z | 2021-11-18T03:24:29.000Z | '''
Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved.
'''
# tornado
import tornado.ioloop
# std lib
import logging
import time
import weakref
import functools
# coweb
from .base import BotWrapperBase
log = logging.getLogger('coweb.bot')
| 35.287879 | 78 | 0.653499 |
4c76baa8499aec4813a3d47e851bd3cbe62268bf | 6,193 | py | Python | battle_tut5.py | lankotiAditya/RPG_battle_main | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | [
"MIT"
] | 22 | 2021-01-13T10:21:42.000Z | 2022-03-10T00:06:05.000Z | battle_tut5.py | lankotiAditya/RPG_battle_main | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | [
"MIT"
] | 1 | 2021-01-14T17:02:41.000Z | 2021-01-14T20:23:38.000Z | battle_tut5.py | lankotiAditya/RPG_battle_main | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | [
"MIT"
] | 33 | 2021-01-17T08:52:38.000Z | 2022-03-28T10:36:36.000Z | import pygame
import random
pygame.init()
clock = pygame.time.Clock()
fps = 60
#game window
bottom_panel = 150
screen_width = 800
screen_height = 400 + bottom_panel
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption('Battle')
#define game variables
current_fighter = 1
total... | 23.911197 | 101 | 0.707089 |
4c791be103564830f1d4250200840c0dccc964ac | 651 | py | Python | curso_em_video/0087a.py | marinaoliveira96/python-exercises | 13fc0ec30dec9bb6531cdeb41c80726971975835 | [
"MIT"
] | null | null | null | curso_em_video/0087a.py | marinaoliveira96/python-exercises | 13fc0ec30dec9bb6531cdeb41c80726971975835 | [
"MIT"
] | null | null | null | curso_em_video/0087a.py | marinaoliveira96/python-exercises | 13fc0ec30dec9bb6531cdeb41c80726971975835 | [
"MIT"
] | null | null | null | matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
soma = col3 = maior = 0
for l in range(0, 3):
for c in range(0, 3):
matriz[l][c] = int(input(f'[{l}][{c}]: '))
for l in range(0, 3):
for c in range(0, 3):
print(f'[{matriz[l][c]:^5}]', end='')
if matriz[l][c] % 2 == 0:
soma += matriz... | 31 | 50 | 0.506912 |
4c79ab828e049f734329ac9fd7817c526a06676d | 6,777 | py | Python | custom_components/tapo_control/utils.py | david-kalbermatten/HomeAssistant-Tapo-Control | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | [
"Apache-2.0"
] | null | null | null | custom_components/tapo_control/utils.py | david-kalbermatten/HomeAssistant-Tapo-Control | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | [
"Apache-2.0"
] | null | null | null | custom_components/tapo_control/utils.py | david-kalbermatten/HomeAssistant-Tapo-Control | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | [
"Apache-2.0"
] | null | null | null | import onvif
import os
import asyncio
import urllib.parse
from onvif import ONVIFCamera
from pytapo import Tapo
from .const import ENABLE_MOTION_SENSOR, DOMAIN, LOGGER, CLOUD_PASSWORD
from homeassistant.const import CONF_IP_ADDRESS, CONF_USERNAME, CONF_PASSWORD
from homeassistant.components.onvif.event import EventMana... | 34.93299 | 86 | 0.665044 |
4c79db5803090229f5cee46e595e5f692bd63c32 | 1,652 | py | Python | camd3/infrastructure/component/tests/test_uidattr.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_uidattr.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_uidattr.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Name: test_uidattr
# Purpose: Test driver for module 'uidattr'
#
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) 2018 Michael Amrhein
# -------------------... | 23.6 | 78 | 0.578087 |
4c7a9873c160d856f0a448855b2b79215e8191fc | 883 | py | Python | s.py | tn012604409/HW3_chatRobot | 97762e53bfccd8b30c6b263792919c679e53b404 | [
"MIT"
] | null | null | null | s.py | tn012604409/HW3_chatRobot | 97762e53bfccd8b30c6b263792919c679e53b404 | [
"MIT"
] | null | null | null | s.py | tn012604409/HW3_chatRobot | 97762e53bfccd8b30c6b263792919c679e53b404 | [
"MIT"
] | null | null | null | import requests
import time
from bs4 import BeautifulSoup
| 22.641026 | 76 | 0.551529 |
4c7abb53711251283db1d2b1869388b7608f3858 | 21,493 | py | Python | awstin/dynamodb/orm.py | k2bd/awstin | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | [
"MIT"
] | 1 | 2020-12-29T20:49:27.000Z | 2020-12-29T20:49:27.000Z | awstin/dynamodb/orm.py | k2bd/awstin | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | [
"MIT"
] | 69 | 2020-11-16T21:16:44.000Z | 2021-04-14T17:16:33.000Z | awstin/dynamodb/orm.py | k2bd/awstin | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | [
"MIT"
] | null | null | null | import uuid
from abc import ABC, abstractmethod
from collections import defaultdict
from typing import Union
from boto3.dynamodb.conditions import Attr as BotoAttr
from boto3.dynamodb.conditions import Key as BotoKey
from awstin.dynamodb.utils import from_decimal, to_decimal
NOT_SET = NotSet()
def size_query(... | 27.912987 | 88 | 0.579258 |
d5b22ea34f0bbc299fab73839184251258eecd69 | 310 | py | Python | Losses/__init__.py | SimonTheVillain/ActiveStereoNet | 708bddce844998b366be1a1ec8a72a31ccd26f8c | [
"MIT"
] | 17 | 2019-08-23T04:00:32.000Z | 2022-02-06T13:37:02.000Z | Losses/__init__.py | SimonTheVillain/ActiveStereoNet | 708bddce844998b366be1a1ec8a72a31ccd26f8c | [
"MIT"
] | null | null | null | Losses/__init__.py | SimonTheVillain/ActiveStereoNet | 708bddce844998b366be1a1ec8a72a31ccd26f8c | [
"MIT"
] | 7 | 2019-12-20T07:46:41.000Z | 2021-11-01T04:18:19.000Z | from .supervise import *
| 22.142857 | 79 | 0.580645 |
d5b25fcda4db3927e0504a3caa222468f8e2eb7c | 6,766 | py | Python | model/src/recurrent.py | qkaren/converse_reading_cmr | d06d981be12930cff8458e2b1b81be4f5df3a329 | [
"MIT"
] | 87 | 2019-06-07T18:16:30.000Z | 2021-11-27T08:18:45.000Z | model/src/recurrent.py | qkaren/converse_reading_cmr | d06d981be12930cff8458e2b1b81be4f5df3a329 | [
"MIT"
] | 11 | 2019-06-19T20:53:27.000Z | 2021-05-07T01:05:01.000Z | model/src/recurrent.py | qkaren/converse_reading_cmr | d06d981be12930cff8458e2b1b81be4f5df3a329 | [
"MIT"
] | 17 | 2019-06-08T01:50:23.000Z | 2022-02-16T07:12:15.000Z | import torch
import torch.nn as nn
from torch.nn.parameter import Parameter
from torch.nn.utils.rnn import pad_packed_sequence as unpack
from torch.nn.utils.rnn import pack_padded_sequence as pack
from .my_optim import weight_norm as WN
# TODO: use system func to bind ~
RNN_MAP = {'lstm': nn.LSTM, 'gru': nn.GR... | 45.716216 | 134 | 0.619125 |
d5b27d5f6e6878759cb3ab473c4702b3507a5b67 | 2,810 | py | Python | kmcsim/sim/events_old.py | vlcekl/kmcpy | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | [
"MIT"
] | null | null | null | kmcsim/sim/events_old.py | vlcekl/kmcpy | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | [
"MIT"
] | null | null | null | kmcsim/sim/events_old.py | vlcekl/kmcpy | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | [
"MIT"
] | null | null | null | #!//anaconda/envs/py36/bin/python
#
# File name: kmc_pld.py
# Date: 2018/08/03 09:07
# Author: Lukas Vlcek
#
# Description:
#
import numpy as np
from collections import Counter
| 26.509434 | 82 | 0.56548 |
d5b2899060598acf5361fb2c9db968e61435c9da | 2,181 | py | Python | env/lib/python3.6/site-packages/odf/meta.py | anthowen/duplify | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | [
"MIT"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | env/lib/python3.6/site-packages/odf/meta.py | anthowen/duplify | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | [
"MIT"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | env/lib/python3.6/site-packages/odf/meta.py | anthowen/duplify | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | [
"MIT"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Sren Roug, European Environment Agency
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your... | 32.073529 | 80 | 0.707474 |
d5b2a5e3c1f4caec8e1b4e760aef349c24f989cf | 7,293 | py | Python | scripts/my_inference.py | Mr-TalhaIlyas/Scaled-YOLOv4 | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | [
"MIT"
] | null | null | null | scripts/my_inference.py | Mr-TalhaIlyas/Scaled-YOLOv4 | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | [
"MIT"
] | null | null | null | scripts/my_inference.py | Mr-TalhaIlyas/Scaled-YOLOv4 | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | [
"MIT"
] | null | null | null | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
import torch
torch.rand(10)
import torch.nn as nn
import torch.nn.functional as F
import glob
from tqdm import tqdm, trange
print(torch.cuda.is_available())
print(torch.cuda.get_device_name())
print(torch.cuda.current_device())
device = torch.device('cuda' if torch.cu... | 36.833333 | 135 | 0.680927 |
d5b2ddd3598b303bcb8230980f8ef5b2b4388ef0 | 5,712 | py | Python | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | fslds/carbon-black-cloud-sdk-python | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | [
"MIT"
] | 24 | 2020-10-16T22:07:38.000Z | 2022-03-24T14:58:03.000Z | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | fslds/carbon-black-cloud-sdk-python | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | [
"MIT"
] | 63 | 2020-10-26T18:26:15.000Z | 2022-03-31T17:31:02.000Z | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | fslds/carbon-black-cloud-sdk-python | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | [
"MIT"
] | 10 | 2020-11-09T11:54:23.000Z | 2022-03-24T20:44:00.000Z | """Mock responses for recommendations."""
SEARCH_REQ = {
"criteria": {
"policy_type": ['reputation_override'],
"status": ['NEW', 'REJECTED', 'ACCEPTED'],
"hashes": ['111', '222']
},
"rows": 50,
"sort": [
{
"field": "impact_score",
"order": "DESC"
... | 31.043478 | 98 | 0.500525 |
d5b36222e5f117b24edaf10265aa3e6b8fc6c46c | 7,351 | py | Python | monasca/microservice/notification_engine.py | TeamZenith/python-monasca | badc86fbe2c4424deb15b84eabd3248e899ef4ee | [
"Apache-2.0"
] | null | null | null | monasca/microservice/notification_engine.py | TeamZenith/python-monasca | badc86fbe2c4424deb15b84eabd3248e899ef4ee | [
"Apache-2.0"
] | null | null | null | monasca/microservice/notification_engine.py | TeamZenith/python-monasca | badc86fbe2c4424deb15b84eabd3248e899ef4ee | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Carnegie Mellon University
#
# Author: Han Chen <hanc@andrew.cmu.edu>
#
# 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
#
# ... | 39.951087 | 119 | 0.522786 |
d5b52472e7e5df33cf0c5865ffdc86c08a3ea627 | 1,881 | py | Python | dhf_wrapper/base_client.py | Enflow-io/dhf-pay-python | 7c32461d3b2a5018151b2a16a0cc0ad6850b88b1 | [
"Apache-2.0"
] | null | null | null | dhf_wrapper/base_client.py | Enflow-io/dhf-pay-python | 7c32461d3b2a5018151b2a16a0cc0ad6850b88b1 | [
"Apache-2.0"
] | null | null | null | dhf_wrapper/base_client.py | Enflow-io/dhf-pay-python | 7c32461d3b2a5018151b2a16a0cc0ad6850b88b1 | [
"Apache-2.0"
] | null | null | null | from typing import Optional, Callable
import requests
from requests.auth import AuthBase
from requests.exceptions import RequestException
| 25.767123 | 94 | 0.576289 |
d5b58f8a34e9535374ceecc69e4b47358c97ddb9 | 1,395 | py | Python | flametree/utils.py | Edinburgh-Genome-Foundry/Flametree | a189de5d83ca1eb3526a439320e41df9e2a1162e | [
"MIT"
] | 165 | 2017-02-04T00:40:01.000Z | 2021-06-08T03:51:58.000Z | flametree/utils.py | Edinburgh-Genome-Foundry/Flametree | a189de5d83ca1eb3526a439320e41df9e2a1162e | [
"MIT"
] | 8 | 2017-02-10T00:47:09.000Z | 2021-05-30T04:38:41.000Z | flametree/utils.py | Edinburgh-Genome-Foundry/Flametree | a189de5d83ca1eb3526a439320e41df9e2a1162e | [
"MIT"
] | 19 | 2017-02-09T17:38:31.000Z | 2021-03-23T16:04:32.000Z | import os
import shutil
from .ZipFileManager import ZipFileManager
from .DiskFileManager import DiskFileManager
from .Directory import Directory
import string
printable = set(string.printable) - set("\x0b\x0c")
def file_tree(target, replace=False):
"""Open a connection to a file tree which can be either a dis... | 32.44186 | 86 | 0.703226 |
d5b74bc11e212074f29e2869fb5c41c2c3cd585b | 628 | py | Python | audio/audio_client.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_client.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_client.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | import sys
import socket
import time
ip = '127.0.0.1'
port = 9001
if (len(sys.argv)>1):
ip = sys.argv[1]
if (len(sys.argv)>2):
port = int(sys.argv[2])
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((ip,port))
sock.send('bip\n\r')
data = sock.recv(80)
print data
sock.send('TTS[it-IT... | 14.604651 | 56 | 0.66879 |
d5b8242c634dcf60f9e745fdadd1c86fe716bf6e | 3,461 | py | Python | qmotor/message/matcher.py | yulinfeng000/qmotor | ad3e9eea291f5b87e09fcdd5e42f1eb13d752565 | [
"MIT"
] | null | null | null | qmotor/message/matcher.py | yulinfeng000/qmotor | ad3e9eea291f5b87e09fcdd5e42f1eb13d752565 | [
"MIT"
] | null | null | null | qmotor/message/matcher.py | yulinfeng000/qmotor | ad3e9eea291f5b87e09fcdd5e42f1eb13d752565 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
from .common import (
AtCell,
BasicMessage,
GroupMessage,
FriendMessage,
MsgCellType,
MessageType,
PlainCell,
)
from ..utils import is_str_blank, str_contains
if __name__ == "__main__":
msg_matcher = JustAtMeMsg(123)... | 25.637037 | 74 | 0.612251 |
d5b96915a161658ab58f977d3518461eda8624b2 | 1,407 | py | Python | main/admin.py | sinahmr/childf | 4e01f46867425b36b6431713b79debf585d69d37 | [
"MIT"
] | null | null | null | main/admin.py | sinahmr/childf | 4e01f46867425b36b6431713b79debf585d69d37 | [
"MIT"
] | null | null | null | main/admin.py | sinahmr/childf | 4e01f46867425b36b6431713b79debf585d69d37 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from django.contrib.auth.models import Group
from django.utils.translation import ugettext_lazy as _
from main.models import UserInfo, User, Child, Volunteer, Donor, Letter, Need, PurchaseForInstitute, PurchaseForNeed, ... | 31.977273 | 119 | 0.687278 |
d5b9d02c239d39cdf1dcff5670b5cc5e359e73a5 | 2,515 | py | Python | hunting/display/render.py | MoyTW/RL_Arena_Experiment | fb79c67576cd4de3e4a58278b4515098f38fb584 | [
"MIT"
] | null | null | null | hunting/display/render.py | MoyTW/RL_Arena_Experiment | fb79c67576cd4de3e4a58278b4515098f38fb584 | [
"MIT"
] | null | null | null | hunting/display/render.py | MoyTW/RL_Arena_Experiment | fb79c67576cd4de3e4a58278b4515098f38fb584 | [
"MIT"
] | null | null | null | import tdl
import time
import hunting.constants as c
| 36.985294 | 120 | 0.603579 |
d5ba579f0453b95d1e8c11d5b88d94830943af72 | 1,732 | py | Python | ideas/models.py | neosergio/hackatrix-api | 27f0180415efa97bd7345d100b314d8807486b67 | [
"Apache-2.0"
] | 1 | 2021-02-12T10:25:28.000Z | 2021-02-12T10:25:28.000Z | ideas/models.py | neosergio/hackatrix-api | 27f0180415efa97bd7345d100b314d8807486b67 | [
"Apache-2.0"
] | 7 | 2020-02-21T00:53:38.000Z | 2022-02-10T12:22:53.000Z | ideas/models.py | neosergio/hackatrix-api | 27f0180415efa97bd7345d100b314d8807486b67 | [
"Apache-2.0"
] | null | null | null | from django.db import models
| 39.363636 | 108 | 0.560624 |
d5ba81a91490ddb0a286042ea3d0c0e723e0af52 | 2,348 | py | Python | section2/out/src/data_prep/SlicesDataset.py | ssheikh85/AIHCND_c3_3d_imaging | 6502985d4199244328a683459b4d819090d58f3c | [
"MIT"
] | null | null | null | section2/out/src/data_prep/SlicesDataset.py | ssheikh85/AIHCND_c3_3d_imaging | 6502985d4199244328a683459b4d819090d58f3c | [
"MIT"
] | null | null | null | section2/out/src/data_prep/SlicesDataset.py | ssheikh85/AIHCND_c3_3d_imaging | 6502985d4199244328a683459b4d819090d58f3c | [
"MIT"
] | null | null | null | """
Module for Pytorch dataset representations
"""
import torch
from torch.utils.data import Dataset
| 35.044776 | 103 | 0.609881 |
d5bb9bbb0fed4afc892e132a8963124e532f19f2 | 845 | py | Python | zenslackchat/zendesk_webhooks.py | uktrade/zenslackchat | 8071757e1ea20a433783c6a7c47f25b046692682 | [
"MIT"
] | 2 | 2020-12-30T07:46:12.000Z | 2022-02-01T16:37:34.000Z | zenslackchat/zendesk_webhooks.py | uktrade/zenslackchat | 8071757e1ea20a433783c6a7c47f25b046692682 | [
"MIT"
] | 7 | 2021-04-14T16:17:29.000Z | 2022-01-25T11:48:18.000Z | zenslackchat/zendesk_webhooks.py | uktrade/zenslackchat | 8071757e1ea20a433783c6a7c47f25b046692682 | [
"MIT"
] | 1 | 2021-06-06T09:46:47.000Z | 2021-06-06T09:46:47.000Z | from zenslackchat.zendesk_base_webhook import BaseWebHook
from zenslackchat.zendesk_email_to_slack import email_from_zendesk
from zenslackchat.zendesk_comments_to_slack import comments_from_zendesk
| 33.8 | 72 | 0.744379 |
d5bbaeac59cde7e794de669fe4ec0942d528fc8d | 699 | py | Python | Examples/PagesOperations/MovePage.py | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | af736c94240eeefef28bd81012c96ab2ea779088 | [
"MIT"
] | null | null | null | Examples/PagesOperations/MovePage.py | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | af736c94240eeefef28bd81012c96ab2ea779088 | [
"MIT"
] | null | null | null | Examples/PagesOperations/MovePage.py | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | af736c94240eeefef28bd81012c96ab2ea779088 | [
"MIT"
] | null | null | null | # Import modules
import groupdocs_merger_cloud
from Common import Common
# This example demonstrates how to move document page to a new position | 36.789474 | 93 | 0.711016 |
d5bbb325b8069e32756e2756a7150bcc81d9e24f | 221 | py | Python | src/models/predict_model.py | joseluistello/Regression-Analysis-Apple-Data | 85952edd22ba8c382f43357efc510763185fd6d1 | [
"MIT"
] | null | null | null | src/models/predict_model.py | joseluistello/Regression-Analysis-Apple-Data | 85952edd22ba8c382f43357efc510763185fd6d1 | [
"MIT"
] | null | null | null | src/models/predict_model.py | joseluistello/Regression-Analysis-Apple-Data | 85952edd22ba8c382f43357efc510763185fd6d1 | [
"MIT"
] | null | null | null | y_pred=ml.predict(x_test)
print(y_pred)
from sklearn.metrics import r2_score
r2_score(y_test,y_pred)
pred_y_df=pd.DataFrame({'Actual Value':y_test,'Predicted Value':y_pred, 'Difference': y_test-y_pred})
pred_y_df[0:20] | 24.555556 | 101 | 0.791855 |
d5bd90ba6b204f06ed13dd7eaecdd9ec577e33cb | 5,512 | py | Python | src/models/utils_func.py | Soufiane-Fartit/cars-prices | 8eee8aa168251adab7f4947c45a78752e4145041 | [
"MIT"
] | null | null | null | src/models/utils_func.py | Soufiane-Fartit/cars-prices | 8eee8aa168251adab7f4947c45a78752e4145041 | [
"MIT"
] | null | null | null | src/models/utils_func.py | Soufiane-Fartit/cars-prices | 8eee8aa168251adab7f4947c45a78752e4145041 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" This module offers util functions to be called and used
in other modules
"""
from datetime import datetime
import os
import json
import pickle
import string
import random
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns
from sklearn impo... | 33.815951 | 90 | 0.649492 |
d5c0292ca1d781849b4c6bb27642731423800d86 | 7,504 | py | Python | modules/finance.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | modules/finance.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | modules/finance.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | import asyncio
import discord
from discord.ext import commands
import re
import sqlite3
from urllib.parse import quote as uriquote
import html
CURR = ["AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR",
"GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN",
"MYR", "NOK", "NZD", "P... | 40.344086 | 166 | 0.518124 |
d5c051b72ce68a91896ab21b2fd4b6e93e7e9a10 | 174 | py | Python | SG_GetDataForClassifier.py | shubha1593/MovieReviewAnalysis | c485eea0c8b35e554027cce7a431212b406e672c | [
"MIT"
] | 7 | 2015-04-01T12:41:55.000Z | 2019-08-01T18:13:56.000Z | SG_GetDataForClassifier.py | shubha1593/MovieReviewAnalysis | c485eea0c8b35e554027cce7a431212b406e672c | [
"MIT"
] | null | null | null | SG_GetDataForClassifier.py | shubha1593/MovieReviewAnalysis | c485eea0c8b35e554027cce7a431212b406e672c | [
"MIT"
] | null | null | null | from SG_GetFeatureMatrix import *
from SG_VectorY import *
featureMatrix = featureMatrixFromReviews()
Y = getYVector() | 21.75 | 42 | 0.804598 |
d5c05a70d2bfb21530d973639155b0914281d250 | 1,882 | py | Python | greenbounty/bounties/migrations/0001_initial.py | Carnales/green-bounty | beb765082b32c096139463bf75ccc1ec3d530692 | [
"MIT"
] | 1 | 2021-01-18T21:43:05.000Z | 2021-01-18T21:43:05.000Z | greenbounty/bounties/migrations/0001_initial.py | Thinkr3/green-bounty | c74fe79121d211728c9f70ffd87e239c8ba5d131 | [
"MIT"
] | 1 | 2021-01-18T06:35:07.000Z | 2021-01-18T06:35:07.000Z | greenbounty/bounties/migrations/0001_initial.py | Thinkr3/green-bounty | c74fe79121d211728c9f70ffd87e239c8ba5d131 | [
"MIT"
] | 2 | 2021-01-18T06:22:50.000Z | 2021-01-18T06:24:22.000Z | # Generated by Django 3.1.4 on 2021-01-17 19:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 40.042553 | 144 | 0.584485 |
d5c06f16c3fcc96993938e0c35fe7c62d8dfa422 | 8,621 | py | Python | nova/tests/virt/docker/test_driver.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | nova/tests/virt/docker/test_driver.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | nova/tests/virt/docker/test_driver.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (c) 2013 dotCloud, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache... | 40.85782 | 79 | 0.629741 |
d5c1a9c69d580b85cf1676ca01e443acef7eb239 | 9,048 | py | Python | pyx/tests/test_http.py | l04m33/pyx | b70efec605832ba3c7079e991584db3f5d1da8cb | [
"MIT"
] | 2 | 2015-08-25T11:31:42.000Z | 2015-10-16T11:30:15.000Z | pyx/tests/test_http.py | l04m33/pyx | b70efec605832ba3c7079e991584db3f5d1da8cb | [
"MIT"
] | null | null | null | pyx/tests/test_http.py | l04m33/pyx | b70efec605832ba3c7079e991584db3f5d1da8cb | [
"MIT"
] | null | null | null | import unittest
import unittest.mock as mock
import asyncio
import pyx.http as http
| 33.511111 | 92 | 0.59527 |
d5c40e739be914cd8694a4a6735e497e975d7778 | 1,791 | py | Python | tests/test_webdriver_chrome.py | kidosoft/splinter | 6d5052fd73c0a626299574cea76924e367c67faa | [
"BSD-3-Clause"
] | 1 | 2016-09-21T19:32:47.000Z | 2016-09-21T19:32:47.000Z | tests/test_webdriver_chrome.py | kidosoft/splinter | 6d5052fd73c0a626299574cea76924e367c67faa | [
"BSD-3-Clause"
] | null | null | null | tests/test_webdriver_chrome.py | kidosoft/splinter | 6d5052fd73c0a626299574cea76924e367c67faa | [
"BSD-3-Clause"
] | 1 | 2019-12-02T15:19:07.000Z | 2019-12-02T15:19:07.000Z | # -*- coding: utf-8 -*-
# Copyright 2013 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import os
import unittest
from splinter import Browser
from .fake_webapp import EXAMPLE_APP
from .base import WebDriverTests
from selen... | 25.225352 | 69 | 0.672808 |
d5c480f55405e4b344842fed3a1082b875de03dd | 1,349 | py | Python | main.py | DuskXi/ArkX | 7b416ae0c4ec2b383c6f414ed475930dd228909f | [
"Apache-2.0"
] | 2 | 2022-02-18T03:08:38.000Z | 2022-03-03T04:20:08.000Z | main.py | DuskXi/ArkX | 7b416ae0c4ec2b383c6f414ed475930dd228909f | [
"Apache-2.0"
] | null | null | null | main.py | DuskXi/ArkX | 7b416ae0c4ec2b383c6f414ed475930dd228909f | [
"Apache-2.0"
] | null | null | null | import os
import json
from File.file import File
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
if __name__ == "__main__":
main()
| 30.659091 | 127 | 0.681987 |
d5c5f4f5c79da67180264a12457b76158e4ccc4b | 4,814 | py | Python | tests/test_simple.py | cprogrammer1994/miniglm | 696764ff200dd106dd533264ff45a060d5f7b230 | [
"MIT"
] | 4 | 2017-11-03T14:48:52.000Z | 2019-03-07T03:48:11.000Z | tests/test_simple.py | cprogrammer1994/miniglm | 696764ff200dd106dd533264ff45a060d5f7b230 | [
"MIT"
] | 2 | 2017-11-27T15:40:01.000Z | 2021-01-30T08:40:51.000Z | tests/test_simple.py | cprogrammer1994/miniglm | 696764ff200dd106dd533264ff45a060d5f7b230 | [
"MIT"
] | 3 | 2017-11-27T15:25:07.000Z | 2021-03-02T10:31:30.000Z | import struct
import numpy as np
import pytest
import miniglm
| 28.826347 | 91 | 0.623598 |
d5c61844c85a34a814f44efd7ddfec47f1e2a5e5 | 1,131 | py | Python | flaskbb/plugins/news/views.py | konstantin1985/forum | 7d4de24ccc932e9764699d89c8cc9d210b7fac7f | [
"BSD-3-Clause"
] | null | null | null | flaskbb/plugins/news/views.py | konstantin1985/forum | 7d4de24ccc932e9764699d89c8cc9d210b7fac7f | [
"BSD-3-Clause"
] | null | null | null | flaskbb/plugins/news/views.py | konstantin1985/forum | 7d4de24ccc932e9764699d89c8cc9d210b7fac7f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, redirect
from flaskbb.utils.helpers import render_template
from .forms import AddForm, DeleteForm
from .models import MyPost
from flaskbb.extensions import db
news = Blueprint("news", __name__, template_folder="templates")
| 26.928571 | 72 | 0.660477 |
d5c64f687d9f59ed689fc14b8df6d5ee61f23931 | 23,742 | py | Python | stix_shifter_modules/aws_athena/tests/stix_translation/test_aws_athena_json_to_stix.py | nkhetia31/stix-shifter | ace07581cb227fd35e450b2f8871475227a041d0 | [
"Apache-2.0"
] | 33 | 2018-05-25T17:07:28.000Z | 2019-09-30T10:08:53.000Z | stix_shifter_modules/aws_athena/tests/stix_translation/test_aws_athena_json_to_stix.py | nkhetia31/stix-shifter | ace07581cb227fd35e450b2f8871475227a041d0 | [
"Apache-2.0"
] | 54 | 2018-06-01T18:17:24.000Z | 2019-09-30T18:36:15.000Z | stix_shifter_modules/aws_athena/tests/stix_translation/test_aws_athena_json_to_stix.py | subbyte/stix-shifter | 36d71c172a5fc5b97d872e623753b0dd1bf4fe6c | [
"Apache-2.0"
] | 37 | 2018-07-24T13:29:46.000Z | 2019-09-29T19:06:27.000Z | from stix_shifter_utils.stix_translation.src.json_to_stix import json_to_stix_translator
from stix_shifter_utils.stix_translation.src.utils.transformer_utils import get_module_transformers
from stix_shifter_modules.aws_athena.entry_point import EntryPoint
import unittest
MODULE = "aws_athena"
entry_point = EntryPoint(... | 52.18022 | 126 | 0.539087 |
d5c68966a759ee86d163e95dee1679657c063de3 | 2,236 | py | Python | Python Spider/xpath/03 login.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | 1 | 2020-01-31T15:57:29.000Z | 2020-01-31T15:57:29.000Z | Python Spider/xpath/03 login.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | null | null | null | Python Spider/xpath/03 login.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#file: 03 login.py
#@author: Gorit
#@contact: gorit@qq.com
#@time: 2020/1/20 12:44
import requests
from lxml import etree
#
obj = lMonKey()
| 27.268293 | 175 | 0.549195 |
d5c72a3c1f9827cd7d71f3da809f2313db6f0a32 | 9,730 | py | Python | src/gui/MultiplayerPlayerInfo.py | fireclawthefox/AnkandoraLight | 05b71e1a2919141cce02cb1aade95fbac682614b | [
"BSD-2-Clause"
] | 3 | 2020-07-31T10:27:06.000Z | 2022-01-11T20:28:55.000Z | src/gui/MultiplayerPlayerInfo.py | fireclawthefox/AnkandoraLight | 05b71e1a2919141cce02cb1aade95fbac682614b | [
"BSD-2-Clause"
] | null | null | null | src/gui/MultiplayerPlayerInfo.py | fireclawthefox/AnkandoraLight | 05b71e1a2919141cce02cb1aade95fbac682614b | [
"BSD-2-Clause"
] | 1 | 2020-07-30T08:23:28.000Z | 2020-07-30T08:23:28.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file was created using the DirectGUI Designer
from direct.gui import DirectGuiGlobals as DGG
from direct.gui.DirectFrame import DirectFrame
from direct.gui.DirectLabel import DirectLabel
from direct.gui.DirectButton import DirectButton
from direct.gui.DirectOptionMenu... | 35.126354 | 104 | 0.528777 |
d5c7e9662e071c24633307f69bc18856ffa49ecf | 634 | py | Python | publications/time_mag.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | null | null | null | publications/time_mag.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | 1 | 2021-06-01T23:47:57.000Z | 2021-06-01T23:47:57.000Z | publications/time_mag.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | null | null | null | from . import FROM_FEED_PUBLISHED_TODAY, STRINGIFY
| 28.818182 | 93 | 0.594637 |
d5c8ad01f8962aad9216b71e8846b60294d68306 | 3,017 | py | Python | 2020/21/code.py | irobin591/advent-of-code-2019 | 279c28a2863558bd014b289802fff4b444c5d6cf | [
"MIT"
] | null | null | null | 2020/21/code.py | irobin591/advent-of-code-2019 | 279c28a2863558bd014b289802fff4b444c5d6cf | [
"MIT"
] | null | null | null | 2020/21/code.py | irobin591/advent-of-code-2019 | 279c28a2863558bd014b289802fff4b444c5d6cf | [
"MIT"
] | null | null | null | # Advent of Code 2020
# Day 21
# Author: irobin591
import os
import doctest
import re
re_entry = re.compile(r'^([a-z ]+) \(contains ([a-z, ]*)\)$')
with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file:
input_data = input_file.read().strip().split('\n')
def part1(input_data):
"... | 30.785714 | 114 | 0.599271 |
d5c9c3dcfd93144a733bdffa2a7d7a7dc364d51d | 2,807 | py | Python | tests/test_html_escaping.py | copart/pandoc-mustache | f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa | [
"CC0-1.0"
] | 43 | 2017-12-27T05:57:00.000Z | 2022-03-18T10:07:28.000Z | tests/test_html_escaping.py | copart/pandoc-mustache | f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa | [
"CC0-1.0"
] | 10 | 2018-02-07T11:20:37.000Z | 2021-04-22T21:44:19.000Z | tests/test_html_escaping.py | copart/pandoc-mustache | f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa | [
"CC0-1.0"
] | 8 | 2018-11-05T13:10:35.000Z | 2021-08-30T18:14:02.000Z | """
Test that escaping characters for HTML is disabled.
"""
import os, subprocess
| 28.642857 | 139 | 0.617385 |
d5cb7cb45edf1a90b51258da74fc6a1d2b6758fa | 2,761 | py | Python | app.py | iandees/microdata2osm | 1505b8072880055033ddbb85626fcdb857c97d4e | [
"MIT"
] | 1 | 2019-11-05T16:02:17.000Z | 2019-11-05T16:02:17.000Z | app.py | iandees/microdata2osm | 1505b8072880055033ddbb85626fcdb857c97d4e | [
"MIT"
] | null | null | null | app.py | iandees/microdata2osm | 1505b8072880055033ddbb85626fcdb857c97d4e | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request
from w3lib.html import get_base_url
import extruct
import requests
app = Flask(__name__)
| 25.803738 | 75 | 0.589279 |
d5cdc3a0f5e46ad0ab740a282e0265f0e1bb27d5 | 702 | py | Python | dags/simple_python_taskflow_api.py | davemasino/airflow101 | f940e169b9c562e3834a201827b615744a99b86d | [
"Apache-2.0"
] | null | null | null | dags/simple_python_taskflow_api.py | davemasino/airflow101 | f940e169b9c562e3834a201827b615744a99b86d | [
"Apache-2.0"
] | null | null | null | dags/simple_python_taskflow_api.py | davemasino/airflow101 | f940e169b9c562e3834a201827b615744a99b86d | [
"Apache-2.0"
] | null | null | null | """
A simple Python DAG using the Taskflow API.
"""
import logging
import time
from datetime import datetime
from airflow import DAG
from airflow.decorators import task
log = logging.getLogger(__name__)
with DAG(
dag_id='simple_python_taskflow_api',
schedule_interval=None,
start_date=datetime(2021, 1, 1)... | 20.057143 | 43 | 0.665242 |
d5cdc4a618ee4e3bc14a1bf765626931e9530f36 | 1,744 | py | Python | pyunmarked/roylenichols.py | kenkellner/pyunmarked | 485bd96b4ca12a019b478fc19f68f577279ac9b8 | [
"MIT"
] | null | null | null | pyunmarked/roylenichols.py | kenkellner/pyunmarked | 485bd96b4ca12a019b478fc19f68f577279ac9b8 | [
"MIT"
] | null | null | null | pyunmarked/roylenichols.py | kenkellner/pyunmarked | 485bd96b4ca12a019b478fc19f68f577279ac9b8 | [
"MIT"
] | null | null | null | from . import model
import numpy as np
from scipy import special, stats
| 37.913043 | 91 | 0.544151 |
d5cdf640db99a0e2d2dcf804807be669d9939f1e | 75,933 | py | Python | proc_chords_xarray.py | pgriewank/ASR_tools | 306a7d92725888485a35f8824433ad7b0451b569 | [
"MIT"
] | null | null | null | proc_chords_xarray.py | pgriewank/ASR_tools | 306a7d92725888485a35f8824433ad7b0451b569 | [
"MIT"
] | null | null | null | proc_chords_xarray.py | pgriewank/ASR_tools | 306a7d92725888485a35f8824433ad7b0451b569 | [
"MIT"
] | null | null | null | #Contains the functions needed to process both chords and regularized beards
# proc_chords is used for chords
#proc_beard_regularize for generating beards
#proc_pdf saves pdfs of a variable below cloud base
#Both have a large overlap, but I split them in two to keep the one script from getting to confusing.
import nu... | 40.605882 | 218 | 0.563326 |
d5ce012afb2ebb7c4522ad96e38d4259432b472d | 1,656 | py | Python | expression-atlas-wf/scripts/dmel_tau_housekeeping.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2019-09-13T13:24:18.000Z | 2019-09-13T13:24:18.000Z | expression-atlas-wf/scripts/dmel_tau_housekeeping.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 65 | 2019-07-24T16:23:08.000Z | 2020-03-06T22:18:47.000Z | expression-atlas-wf/scripts/dmel_tau_housekeeping.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2021-06-02T19:09:35.000Z | 2021-06-02T19:09:35.000Z | """D. mel housekeeping genes based on tau.
Uses the intersection of w1118 and orgR to create a list of
D. mel housekeeping genes.
"""
import os
from functools import partial
import pandas as pd
from larval_gonad.io import pickle_load, pickle_dump
if __name__ == "__main__":
if os.getenv("SNAKE_DEBUG", False):... | 30.109091 | 96 | 0.630435 |
d5ce93a21169fedfe3df6edeca6f8d5d29633b0f | 2,226 | py | Python | api-server/server/core/key.py | TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021 | 7a3d78d4067303d61c4a25d45c0671ae7e984222 | [
"MIT"
] | 75 | 2020-07-22T15:24:56.000Z | 2022-03-30T08:34:06.000Z | api-server/server/core/key.py | TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021 | 7a3d78d4067303d61c4a25d45c0671ae7e984222 | [
"MIT"
] | null | null | null | api-server/server/core/key.py | TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021 | 7a3d78d4067303d61c4a25d45c0671ae7e984222 | [
"MIT"
] | 34 | 2020-07-23T02:54:03.000Z | 2022-03-29T09:51:21.000Z | """
Api Key validation
"""
from typing import Optional
from fastapi.security.api_key import APIKeyHeader
from fastapi import HTTPException, Security, Depends
from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_400_BAD_REQUEST, HTTP_403_FORBIDDEN
from server.core.security import verify_key
from server.db.mongodb ... | 33.223881 | 92 | 0.666667 |
d5cee84d7663e55b77b23428667b37ccfb80fbf9 | 1,253 | py | Python | scripts/kconfig-split.py | Osirium/linuxkit | b710224cdf9a8425a7129cdcb84fc1af00f926d7 | [
"Apache-2.0"
] | 7,798 | 2017-04-18T15:19:24.000Z | 2022-03-30T19:34:42.000Z | scripts/kconfig-split.py | Osirium/linuxkit | b710224cdf9a8425a7129cdcb84fc1af00f926d7 | [
"Apache-2.0"
] | 1,673 | 2017-04-18T16:15:20.000Z | 2022-03-31T06:14:17.000Z | scripts/kconfig-split.py | Osirium/linuxkit | b710224cdf9a8425a7129cdcb84fc1af00f926d7 | [
"Apache-2.0"
] | 1,099 | 2017-04-18T15:19:33.000Z | 2022-03-31T20:23:20.000Z | #!/usr/bin/env python
# This is a slightly modified version of ChromiumOS' splitconfig
# https://chromium.googlesource.com/chromiumos/third_party/kernel/+/stabilize-5899.B-chromeos-3.14/chromeos/scripts/splitconfig
"""See this page for more details:
http://dev.chromium.org/chromium-os/how-tos-and-troubleshooting/kern... | 27.844444 | 127 | 0.651237 |
d5cef9720c8cb2b94870da749da3f4cf31757f01 | 1,631 | py | Python | src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 2 | 2021-06-05T17:51:26.000Z | 2021-11-17T11:17:56.000Z | src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 3 | 2020-05-27T20:16:26.000Z | 2020-07-23T19:46:49.000Z | src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 5 | 2020-05-09T17:47:09.000Z | 2020-10-01T19:52:06.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 33.285714 | 76 | 0.563458 |
d5d04044860f90c923e15fee006637515d70252d | 6,215 | py | Python | src/main.py | mafshar/sub-puppo | 20fe5bf3ca3d250d846c545085f748e706c4a33e | [
"MIT"
] | 1 | 2018-03-02T04:24:33.000Z | 2018-03-02T04:24:33.000Z | src/main.py | mafshar/sub-puppo | 20fe5bf3ca3d250d846c545085f748e706c4a33e | [
"MIT"
] | null | null | null | src/main.py | mafshar/sub-puppo | 20fe5bf3ca3d250d846c545085f748e706c4a33e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Notes:
- Weak implies weakly supervised learning (4 classes)
- Strong implies strongly (fully) superversied learning (10 classes)
- frame number is set to 22ms (default); that is the "sweet spot" based on dsp literature
- sampling rate is 16kHz (for the MFCC of each track)
... | 32.710526 | 187 | 0.665809 |
d5d07c6912264faadbd6b41b6918a6a30e91f2bc | 8,638 | py | Python | plugins/Operations/Crypto/blowfish_encrypt_dialog.py | nmantani/FileInsight-plugins | a6b036672e4c72ed06678729a86293212b7213db | [
"BSD-2-Clause",
"CC0-1.0",
"MIT"
] | 120 | 2015-02-28T14:49:12.000Z | 2022-03-27T07:13:24.000Z | plugins/Operations/Crypto/blowfish_encrypt_dialog.py | nmantani/FileInsight-plugins | a6b036672e4c72ed06678729a86293212b7213db | [
"BSD-2-Clause",
"CC0-1.0",
"MIT"
] | null | null | null | plugins/Operations/Crypto/blowfish_encrypt_dialog.py | nmantani/FileInsight-plugins | a6b036672e4c72ed06678729a86293212b7213db | [
"BSD-2-Clause",
"CC0-1.0",
"MIT"
] | 17 | 2016-04-04T15:53:03.000Z | 2021-12-10T18:07:59.000Z | #
# Blowfish encrypt - Encrypt selected region with Blowfish
#
# Copyright (c) 2019, Nobutaka Mantani
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code... | 44.297436 | 210 | 0.678629 |
d5d16bd87f7bfb96643e0e75dbd1d494645de558 | 5,734 | py | Python | dns/rdtypes/IN/IPSECKEY.py | preo/dnspython | 465785f85f87508209117264c677080e901e957c | [
"0BSD"
] | null | null | null | dns/rdtypes/IN/IPSECKEY.py | preo/dnspython | 465785f85f87508209117264c677080e901e957c | [
"0BSD"
] | null | null | null | dns/rdtypes/IN/IPSECKEY.py | preo/dnspython | 465785f85f87508209117264c677080e901e957c | [
"0BSD"
] | null | null | null | # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED ... | 38.743243 | 81 | 0.591734 |
d5d20f7a81be3ee7ffae45e074584da66ec78259 | 210 | py | Python | multistream_select/__init__.py | Projjol/py-multistream-select | 624becaaeefa0a76d6841e27fbf7dea3240d2fe0 | [
"MIT"
] | null | null | null | multistream_select/__init__.py | Projjol/py-multistream-select | 624becaaeefa0a76d6841e27fbf7dea3240d2fe0 | [
"MIT"
] | null | null | null | multistream_select/__init__.py | Projjol/py-multistream-select | 624becaaeefa0a76d6841e27fbf7dea3240d2fe0 | [
"MIT"
] | null | null | null | __version = '0.1.0'
__all__ = ['MultiStreamSelect', 'hexify']
__author__ = 'Natnael Getahun (connect@ngetahun.me)'
__name__ = 'multistream'
from .multistream import MultiStreamSelect
from .utils import hexify
| 26.25 | 52 | 0.766667 |
d5d2163f998824781f4cf67aa89ebfc2260b9f51 | 42,648 | py | Python | python/input_reader.py | dagesundholm/DAGE | 0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138 | [
"MIT"
] | 3 | 2018-03-29T08:48:57.000Z | 2020-02-16T22:40:22.000Z | python/input_reader.py | dagesundholm/DAGE | 0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138 | [
"MIT"
] | null | null | null | python/input_reader.py | dagesundholm/DAGE | 0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138 | [
"MIT"
] | 1 | 2019-04-08T14:40:57.000Z | 2019-04-08T14:40:57.000Z |
"""---------------------------------------------------------------------------------*
* Copyright (c) 2010-2018 Pauli Parkkinen, Eelis Solala, Wen-Hua Xu, *
* Sergio Losilla, Elias Toivanen, Jonas Juselius *
* ... | 47.020948 | 179 | 0.559487 |
d5d27a9aec4e8518393324c6681b93cf4f6993a5 | 506 | py | Python | tests/test_mate_hashes_methods.py | MacHu-GWU/pathlib_mate-project | 5b8f5441e681730d02209211cce7f46986147418 | [
"MIT"
] | 9 | 2017-09-07T21:21:43.000Z | 2020-10-11T09:47:24.000Z | tests/test_mate_hashes_methods.py | MacHu-GWU/pathlib_mate-project | 5b8f5441e681730d02209211cce7f46986147418 | [
"MIT"
] | 2 | 2018-10-16T14:30:26.000Z | 2020-12-05T02:40:46.000Z | tests/test_mate_hashes_methods.py | MacHu-GWU/pathlib_mate-project | 5b8f5441e681730d02209211cce7f46986147418 | [
"MIT"
] | 2 | 2017-09-05T14:06:01.000Z | 2021-06-29T15:31:13.000Z | # -*- coding: utf-8 -*-
import pytest
from pathlib_mate.pathlib2 import Path
if __name__ == "__main__":
import os
basename = os.path.basename(__file__)
pytest.main([basename, "-s", "--tb=native"])
| 23 | 59 | 0.592885 |
d5d2a60bb0dcf9c3c7f564f0707f97c252020d5c | 4,183 | py | Python | tools/lib/auth.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 121 | 2019-03-27T06:34:51.000Z | 2021-06-15T14:37:29.000Z | tools/lib/auth.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 54 | 2019-04-11T08:51:58.000Z | 2021-06-13T17:04:22.000Z | tools/lib/auth.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 139 | 2019-07-16T07:25:05.000Z | 2021-06-09T11:27:53.000Z | #!/usr/bin/env python3
"""
Usage::
usage: auth.py [-h] [{google,apple,github,jwt}] [jwt]
Login to your comma account
positional arguments:
{google,apple,github,jwt}
jwt
optional arguments:
-h, --help show this help message and exit
Examples::
./auth.py # Log in with google accou... | 28.650685 | 140 | 0.672962 |
d5d313602da6567472c45152b7f1fb43db070947 | 901 | py | Python | datedfolder.py | IgorRidanovic/flapi | 7eb35cc670a5d1a06b01fb13982ffa63345369de | [
"MIT"
] | 3 | 2020-09-21T13:07:05.000Z | 2021-01-29T19:44:02.000Z | datedfolder.py | IgorRidanovic/flapi | 7eb35cc670a5d1a06b01fb13982ffa63345369de | [
"MIT"
] | null | null | null | datedfolder.py | IgorRidanovic/flapi | 7eb35cc670a5d1a06b01fb13982ffa63345369de | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
Create a Baselight folder with current date and time stamp.
You must refresh the Job Manager after running the script.
Copyright (c) 2020 Igor Rianovi, Igor [at] hdhead.com, www.metafide.com
'''
import flapi
from getflapi import getflapi
from datetime import datetime... | 23.710526 | 73 | 0.662597 |
d5d51d8a99234145a06442d575334e8b8cd54c32 | 4,762 | py | Python | elastica/wrappers/callbacks.py | zhidou2/PyElastica | 0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6 | [
"MIT"
] | 71 | 2020-04-15T17:02:42.000Z | 2022-03-26T04:53:51.000Z | elastica/wrappers/callbacks.py | zhidou2/PyElastica | 0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6 | [
"MIT"
] | 59 | 2020-05-15T03:51:46.000Z | 2022-03-28T13:53:01.000Z | elastica/wrappers/callbacks.py | zhidou2/PyElastica | 0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6 | [
"MIT"
] | 57 | 2020-06-17T20:34:02.000Z | 2022-03-16T08:09:54.000Z | __doc__ = """
CallBacks
-----------
Provides the callBack interface to collect data over time (see `callback_functions.py`).
"""
from elastica.callback_functions import CallBackBaseClass
| 29.214724 | 94 | 0.584208 |
d5d580ea25dd4fecd8cfeb8103bdbe268c389416 | 2,961 | py | Python | vitrage/evaluator/template_data.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | vitrage/evaluator/template_data.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | vitrage/evaluator/template_data.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 - Nokia
#
# 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, sof... | 27.933962 | 77 | 0.667342 |
d5d5b53df6261a4974bd6d3bb678fc4435a6413e | 15,032 | py | Python | scripts/summarize-kmer-counts.py | rpetit3/anthrax-metagenome-study | b4a6f2c4d49b57aeae898afd6a95c8f6cb437945 | [
"MIT"
] | null | null | null | scripts/summarize-kmer-counts.py | rpetit3/anthrax-metagenome-study | b4a6f2c4d49b57aeae898afd6a95c8f6cb437945 | [
"MIT"
] | null | null | null | scripts/summarize-kmer-counts.py | rpetit3/anthrax-metagenome-study | b4a6f2c4d49b57aeae898afd6a95c8f6cb437945 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""Parse through the simulated sequencing group specific kmer counts."""
import argparse as ap
from collections import OrderedDict
import glob
import gzip
import os
import sys
import time
import numpy as np
import multiprocessing as mp
SAMPLES = OrderedDict()
KMERS = {}
HAMMING = OrderedDict()
... | 40.408602 | 87 | 0.549494 |
d5d6cadbdf0418e7793af6364477d1005bd12ded | 327 | py | Python | movies/exceptions.py | te0dor/netguru-movies | 8e2cc4585851ad31794ec9e6a3e4dd70cc0980c5 | [
"MIT"
] | null | null | null | movies/exceptions.py | te0dor/netguru-movies | 8e2cc4585851ad31794ec9e6a3e4dd70cc0980c5 | [
"MIT"
] | null | null | null | movies/exceptions.py | te0dor/netguru-movies | 8e2cc4585851ad31794ec9e6a3e4dd70cc0980c5 | [
"MIT"
] | null | null | null | from marshmallow.exceptions import ValidationError
__all__ = ('ValidationError', 'ObjectDoesNotExist', 'CommunicationError')
| 21.8 | 73 | 0.75841 |
d5d747b80a8ea5e6c6c092c35a44d7f1c0635eb8 | 117 | py | Python | music_api/apps/music_app/admin.py | fejiroofficial/Simple_music | 2dd9dcf8e5c7374e29dcf96987c053eebf1cba2a | [
"MIT"
] | null | null | null | music_api/apps/music_app/admin.py | fejiroofficial/Simple_music | 2dd9dcf8e5c7374e29dcf96987c053eebf1cba2a | [
"MIT"
] | 8 | 2019-12-04T23:40:12.000Z | 2022-02-10T07:58:28.000Z | music_api/apps/music_app/admin.py | fejiroofficial/simple_music | 2dd9dcf8e5c7374e29dcf96987c053eebf1cba2a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Songs
admin.site.register(Songs)
# Register your models here.
| 16.714286 | 32 | 0.794872 |
d5d9540eff941a339f643e59edbea5708ee6a194 | 2,354 | py | Python | scripts/generate_image_series.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | scripts/generate_image_series.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | scripts/generate_image_series.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | # Draw image time series for one or more plots
from jicbioimage.core.image import Image
import dtoolcore
import click
from translate_labels import rack_plot_to_image_plot
from image_utils import join_horizontally, join_vertically
if __name__ == '__main__':
main()
| 26.75 | 75 | 0.712404 |
d5d98de44dcdd3336c05cb1bd2a44010685446b0 | 4,505 | py | Python | pytpp/properties/response_objects/system_status.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | 4 | 2022-02-04T23:58:55.000Z | 2022-02-15T18:53:08.000Z | pytpp/properties/response_objects/system_status.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | pytpp/properties/response_objects/system_status.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | from pytpp.properties.response_objects.dataclasses import system_status
from pytpp.tools.helpers.date_converter import from_date_string
| 42.102804 | 116 | 0.668368 |
d5d9b42548010e4777afbfec7a0536b09a13b146 | 1,883 | py | Python | src/data/dataModule.py | mikkelfo/Title-prediction-from-abstract | 45c9b64c963ae9b00c6b34a3f2b9f7c25496350e | [
"MIT"
] | null | null | null | src/data/dataModule.py | mikkelfo/Title-prediction-from-abstract | 45c9b64c963ae9b00c6b34a3f2b9f7c25496350e | [
"MIT"
] | null | null | null | src/data/dataModule.py | mikkelfo/Title-prediction-from-abstract | 45c9b64c963ae9b00c6b34a3f2b9f7c25496350e | [
"MIT"
] | null | null | null | from typing import Optional
import pytorch_lightning as pl
import torch
from omegaconf import OmegaConf
from torch.utils.data import DataLoader, random_split
from transformers import T5Tokenizer
from src.data.PaperDataset import PaperDataset
if __name__ == "__main__":
dm = ArvixDataModule()
| 32.465517 | 73 | 0.669676 |
d5d9d4fd434e21de06a534a9b7ddf3881191564e | 10,573 | py | Python | shs/gui/RootFrame.py | ansobolev/shs | 7a5f61bd66fe1e8ae047a4d3400b055175a53f4e | [
"MIT"
] | 1 | 2016-06-22T13:30:25.000Z | 2016-06-22T13:30:25.000Z | shs/gui/RootFrame.py | ansobolev/shs | 7a5f61bd66fe1e8ae047a4d3400b055175a53f4e | [
"MIT"
] | 1 | 2017-12-01T04:49:45.000Z | 2017-12-01T04:49:45.000Z | shs/gui/RootFrame.py | ansobolev/shs | 7a5f61bd66fe1e8ae047a4d3400b055175a53f4e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import time
import subprocess
import wx
import ConfigParser
from wx.lib.mixins.listctrl import getListCtrlSelection
from wx.lib.pubsub import pub
from gui.RootGUI import RootGUI
from StepsDialog import StepsDialog
from PlotFrame import PlotFuncFrame, PlotCorrFrame
import i... | 39.01476 | 120 | 0.608909 |
d5da19776d7a24ff632b755eb644da772dbdd1cc | 6,063 | py | Python | saleor/order/migrations/0015_auto_20170206_0407.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 6 | 2019-01-06T08:39:20.000Z | 2022-03-04T18:07:47.000Z | saleor/order/migrations/0015_auto_20170206_0407.py | valentine217/saleor | 323963748e6a2702265ec6635b930a234abde4f5 | [
"BSD-3-Clause"
] | 5 | 2021-03-09T16:22:37.000Z | 2022-02-10T19:10:03.000Z | saleor/order/migrations/0015_auto_20170206_0407.py | valentine217/saleor | 323963748e6a2702265ec6635b930a234abde4f5 | [
"BSD-3-Clause"
] | 1 | 2020-12-26T10:25:37.000Z | 2020-12-26T10:25:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-06 10:07
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_prices.models
| 45.586466 | 181 | 0.626752 |
d5dac56aef00dcc6cc7a0b56db80a25f82caafb4 | 3,357 | py | Python | testrail_client/api/configurations.py | tonybearpan/testrail-lib | 267070bd017bb1d80ac40e1b84ea40dc2c2e3956 | [
"MIT"
] | null | null | null | testrail_client/api/configurations.py | tonybearpan/testrail-lib | 267070bd017bb1d80ac40e1b84ea40dc2c2e3956 | [
"MIT"
] | null | null | null | testrail_client/api/configurations.py | tonybearpan/testrail-lib | 267070bd017bb1d80ac40e1b84ea40dc2c2e3956 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .base import TestRailAPIBase
| 36.48913 | 165 | 0.597557 |
d5dbc4975d95ff84c0f9a2e3857f8af1ed9103e1 | 40,713 | py | Python | tools/proto/transaction_pb2.py | ctring/Detock | a1171a511d9cd1f79cc3a8d54ec17f759d088de4 | [
"MIT"
] | null | null | null | tools/proto/transaction_pb2.py | ctring/Detock | a1171a511d9cd1f79cc3a8d54ec17f759d088de4 | [
"MIT"
] | null | null | null | tools/proto/transaction_pb2.py | ctring/Detock | a1171a511d9cd1f79cc3a8d54ec17f759d088de4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/transaction.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | 42.277259 | 4,079 | 0.759315 |
d5dc3b0ac30486b996b5ad01fe0ad1a247834e86 | 1,411 | py | Python | srl/simulation_test.py | google/simple-reinforcement-learning | 9bdac29427cd5c556d7ea7531b807645f043aae3 | [
"Apache-2.0"
] | 60 | 2017-01-10T06:35:11.000Z | 2020-12-19T07:33:40.000Z | srl/simulation_test.py | google/simple-reinforcement-learning | 9bdac29427cd5c556d7ea7531b807645f043aae3 | [
"Apache-2.0"
] | null | null | null | srl/simulation_test.py | google/simple-reinforcement-learning | 9bdac29427cd5c556d7ea7531b807645f043aae3 | [
"Apache-2.0"
] | 29 | 2017-01-11T22:15:36.000Z | 2022-03-17T02:17:37.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.068182 | 74 | 0.722892 |
d5dc76ad37d386c3045e8ed5404e25dd2364d605 | 26,564 | py | Python | src/xmltollvm.py | Tejvinder/thesis-ghidra | 2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216 | [
"MIT"
] | 101 | 2019-10-22T09:48:19.000Z | 2022-03-30T07:03:40.000Z | src/xmltollvm.py | Tejvinder/thesis-ghidra | 2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216 | [
"MIT"
] | 4 | 2020-03-06T14:18:47.000Z | 2021-11-05T04:10:59.000Z | src/xmltollvm.py | Tejvinder/thesis-ghidra | 2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216 | [
"MIT"
] | 15 | 2019-10-22T13:12:39.000Z | 2022-03-04T20:08:06.000Z | from llvmlite import ir
import xml.etree.ElementTree as et
int32 = ir.IntType(32)
int64 = ir.IntType(64)
int1 = ir.IntType(1)
void_type = ir.VoidType()
function_names = []
registers, functions, uniques, extracts = {}, {}, {}, {}
internal_functions = {}
memory = {}
flags = ["ZF", "CF", "OF", "SF"]
pointers = ["RSP", "R... | 49.932331 | 118 | 0.571074 |
d5dc93546bee372b907de208f03583a6f68c3b62 | 925 | py | Python | modules/WPSeku/modules/discovery/generic/wplisting.py | Farz7/Darkness | 4f3eb5fee3d8a476d001ad319ca22bca274eeac9 | [
"MIT"
] | 18 | 2020-04-24T06:50:23.000Z | 2022-03-14T08:00:38.000Z | modules/WPSeku/modules/discovery/generic/wplisting.py | Farz7/Darkness | 4f3eb5fee3d8a476d001ad319ca22bca274eeac9 | [
"MIT"
] | null | null | null | modules/WPSeku/modules/discovery/generic/wplisting.py | Farz7/Darkness | 4f3eb5fee3d8a476d001ad319ca22bca274eeac9 | [
"MIT"
] | 5 | 2020-06-28T16:21:22.000Z | 2022-01-30T14:17:32.000Z | #/usr/bin/env python
# -*- Coding: UTF-8 -*-
#
# WPSeku: Wordpress Security Scanner
#
# @url: https://github.com/m4ll0k/WPSeku
# @author: Momo Outaadi (M4ll0k)
import re
from lib import wphttp
from lib import wpprint | 24.342105 | 82 | 0.656216 |
d5deac526ab7e57ca5c90998d8462e6ef3d52eff | 350 | py | Python | tw2/jit/widgets/__init__.py | toscawidgets/tw2.jit | c5e8059975115385f225029ba5c7380673524122 | [
"MIT"
] | 1 | 2020-01-12T05:11:24.000Z | 2020-01-12T05:11:24.000Z | tw2/jit/widgets/__init__.py | toscawidgets/tw2.jit | c5e8059975115385f225029ba5c7380673524122 | [
"MIT"
] | null | null | null | tw2/jit/widgets/__init__.py | toscawidgets/tw2.jit | c5e8059975115385f225029ba5c7380673524122 | [
"MIT"
] | null | null | null |
from tw2.jit.widgets.chart import (AreaChart, BarChart, PieChart)
from tw2.jit.widgets.graph import (ForceDirectedGraph, RadialGraph)
from tw2.jit.widgets.tree import (SpaceTree, HyperTree, Sunburst,
Icicle, TreeMap)
from tw2.jit.widgets.ajax import AjaxRadialGraph
from tw2.jit.widget... | 43.75 | 67 | 0.742857 |
d5dfc52594a99b2ee5b9d8578f257b3fdecb0fcf | 4,726 | py | Python | bot.py | tiianprb/TikTok-Downloader-Bot | 91b6fd64d5a151c3e439772c69850a18b7562ceb | [
"MIT"
] | null | null | null | bot.py | tiianprb/TikTok-Downloader-Bot | 91b6fd64d5a151c3e439772c69850a18b7562ceb | [
"MIT"
] | null | null | null | bot.py | tiianprb/TikTok-Downloader-Bot | 91b6fd64d5a151c3e439772c69850a18b7562ceb | [
"MIT"
] | null | null | null | import json, requests, os, shlex, asyncio, uuid, shutil
from typing import Tuple
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery
# Configs
API_HASH = os.environ['API_HASH']
APP_ID = int(os.environ['APP_ID'])
BOT_TOKEN = os.environ['BOT_T... | 33.757143 | 152 | 0.643039 |
d5e12ba6cbfd755e451e70540ba00bbbd7d6bc8c | 24,254 | py | Python | frontend-gui/rpanel.py | skyu0221/660-iot | d31f973c93871bfa8122f1b83364d0147d402e9e | [
"Apache-2.0"
] | null | null | null | frontend-gui/rpanel.py | skyu0221/660-iot | d31f973c93871bfa8122f1b83364d0147d402e9e | [
"Apache-2.0"
] | 8 | 2021-03-19T01:36:06.000Z | 2022-03-12T00:22:43.000Z | frontend-gui/rpanel.py | skyu0221/660-iot | d31f973c93871bfa8122f1b83364d0147d402e9e | [
"Apache-2.0"
] | null | null | null | import wx
import wx.adv
import random
import util
import config
import time
import datetime
import threading
import requests
import json
from functools import partial
| 34.599144 | 158 | 0.580564 |
d5e19c75c00ba0d6d2f1c4a0eb15f229a98c4904 | 7,259 | py | Python | webapp/search.py | henchan/memfinity | 3860985e29b203f0569f60eea68ffb22aaf34b1f | [
"MIT"
] | null | null | null | webapp/search.py | henchan/memfinity | 3860985e29b203f0569f60eea68ffb22aaf34b1f | [
"MIT"
] | null | null | null | webapp/search.py | henchan/memfinity | 3860985e29b203f0569f60eea68ffb22aaf34b1f | [
"MIT"
] | null | null | null | """High-level search API.
This module implements application-specific search semantics on top of
App Engine's search API. There are two chief operations: querying for
entities, and managing entities in the search facility.
Add and remove Card entities in the search facility:
insert_cards([models.Card])
delete_ca... | 37.035714 | 81 | 0.667998 |
d5e280ff84ed8b441621c5c137faf53691c8d37c | 3,422 | py | Python | Bot/Bot/board.py | Baidi96/AI-Agent-for-Light-Rider | 6ae0cd4ea07248751c0f015ed74123ae3dec33d1 | [
"MIT"
] | 1 | 2019-12-18T08:24:22.000Z | 2019-12-18T08:24:22.000Z | Bot/Bot/board.py | Baidi96/AI-Agent-for-Light-Rider | 6ae0cd4ea07248751c0f015ed74123ae3dec33d1 | [
"MIT"
] | null | null | null | Bot/Bot/board.py | Baidi96/AI-Agent-for-Light-Rider | 6ae0cd4ea07248751c0f015ed74123ae3dec33d1 | [
"MIT"
] | null | null | null | import copy
import sys
PLAYER1, PLAYER2, EMPTY, BLOCKED = [0, 1, 2, 3]
S_PLAYER1, S_PLAYER2, S_EMPTY, S_BLOCKED, = ['0', '1', '.', 'x']
CHARTABLE = [(PLAYER1, S_PLAYER1), (PLAYER2, S_PLAYER2), (EMPTY, S_EMPTY), (BLOCKED, S_BLOCKED)]
DIRS = [
((-1, 0), "up"),
((1, 0), "down"),
((0, 1), "right"),
((0, ... | 29.247863 | 124 | 0.504383 |
d5e2b128cd1d2cb827ad4460d329a4ebc4a12998 | 884 | py | Python | baekjoon/1012.py | wonnerky/coteMaster | 360e491e6342c1ee42ff49750b838a2ead865613 | [
"Apache-2.0"
] | null | null | null | baekjoon/1012.py | wonnerky/coteMaster | 360e491e6342c1ee42ff49750b838a2ead865613 | [
"Apache-2.0"
] | null | null | null | baekjoon/1012.py | wonnerky/coteMaster | 360e491e6342c1ee42ff49750b838a2ead865613 | [
"Apache-2.0"
] | null | null | null | import sys
sys.setrecursionlimit(10000)
T = int(input())
for _ in range(T):
M, N, K = map(int, input().split())
board = [[0] * M for _ in range(N)]
for _ in range(K):
c, r = map(int, input().split())
board[r][c] = 1
visit = [[False] * M for _ in range(N)]
cnt = 0
for... | 27.625 | 90 | 0.417421 |