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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1207575defc5d03469e62a79d6627247fbf73ef2 | 108 | py | Python | teampy/__init__.py | arcward/teampy | 34097dfca2cf6eb2a405ff0346b46e7ab9520444 | [
"MIT"
] | null | null | null | teampy/__init__.py | arcward/teampy | 34097dfca2cf6eb2a405ff0346b46e7ab9520444 | [
"MIT"
] | null | null | null | teampy/__init__.py | arcward/teampy | 34097dfca2cf6eb2a405ff0346b46e7ab9520444 | [
"MIT"
] | null | null | null | from teampy.client import APIClient
__version__ = '0.1'
__author__ = 'Edward Wells'
__all__ = ['APIClient'] | 21.6 | 35 | 0.75 |
120789fe010c8cdb8e79c4be3739e15f479811eb | 1,032 | py | Python | app/housekeeping.py | openpeoria/covid-19-il-data-scraper | f1978f08f4451398ef6d892593d6259745237073 | [
"MIT"
] | 2 | 2020-06-16T16:36:21.000Z | 2020-06-28T16:38:15.000Z | app/housekeeping.py | openpeoria/covid-19-il-data-scraper | f1978f08f4451398ef6d892593d6259745237073 | [
"MIT"
] | 15 | 2020-05-09T20:42:02.000Z | 2020-08-06T17:12:06.000Z | app/housekeeping.py | openpeoria/covid-19-il-data-scraper | f1978f08f4451398ef6d892593d6259745237073 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
app.housekeeping
~~~~~~~~~~~~~~~~
Provides additional housekeeping endpoints
"""
from flask import Blueprint, redirect, request
from werkzeug.exceptions import HTTPException
from app.helpers import exception_hook
from app.utils import jsonify
blueprint = Blueprint("Housekeepin... | 25.170732 | 56 | 0.694767 |
12097bfd1d23d0ffaac136238da16dcbf5b48204 | 10,463 | py | Python | game.py | MisterL2/WarzoneAI | eeae8975f58d11bcce5acf2556e5c47b7e6e4c7c | [
"MIT"
] | null | null | null | game.py | MisterL2/WarzoneAI | eeae8975f58d11bcce5acf2556e5c47b7e6e4c7c | [
"MIT"
] | null | null | null | game.py | MisterL2/WarzoneAI | eeae8975f58d11bcce5acf2556e5c47b7e6e4c7c | [
"MIT"
] | null | null | null | from aiplayer import *
from player import *
from gameclasses import *
#The core game logic.
#This processes the actions after both players have finalised them
NA = Bonus("North America",5)
EU = Bonus("Europe",5)
SA = Bonus("South America",2)
AF = Bonus("Afrika",3)
AS = Bonus("Asia",7)
AU = Bonus("Aus... | 42.706122 | 208 | 0.67409 |
1209c55c292fdc6dbe7e74d85cb44c48a7a0980f | 1,678 | py | Python | src/pretix/plugins/stripe/views.py | abrock/pretix | cd9c048458afce1198276e5936bf583578855a4f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-06-23T07:44:54.000Z | 2021-06-23T07:44:54.000Z | src/pretix/plugins/stripe/views.py | awg24/pretix | b1d67a48601838bac0d4e498cbe8bdcd16013d60 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/plugins/stripe/views.py | awg24/pretix | b1d67a48601838bac0d4e498cbe8bdcd16013d60 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import json
import logging
import stripe
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from pretix.base.models import Event, Order
from pretix.plugins.stripe.payment import Stripe
logger = logging.getLogger('pretix.plug... | 30.509091 | 96 | 0.694875 |
120b31cd9b8d0a2588dcab759b2ad94681f0fd60 | 389 | py | Python | meerkat_backend_interface/logger.py | rubyvanrooyen/meerkat-backend-interface | 3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2 | [
"MIT"
] | null | null | null | meerkat_backend_interface/logger.py | rubyvanrooyen/meerkat-backend-interface | 3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2 | [
"MIT"
] | 7 | 2019-03-20T23:36:11.000Z | 2021-12-13T19:49:02.000Z | meerkat_backend_interface/logger.py | rubyvanrooyen/meerkat-backend-interface | 3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2 | [
"MIT"
] | 3 | 2019-03-20T23:35:10.000Z | 2019-04-17T23:27:54.000Z | import logging
def get_logger():
"""Get the logger."""
return logging.getLogger("BLUSE.interface")
log = get_logger()
def set_logger(log_level=logging.DEBUG):
"""Set up logging."""
FORMAT = "[ %(levelname)s - %(asctime)s - %(filename)s:%(lineno)s] %(message)s"
logging.basicConfig(format=FORMAT... | 19.45 | 83 | 0.650386 |
120c2eff5a8ca3795d5975762849b5022164abd8 | 4,749 | py | Python | alipay/aop/api/domain/AlipayUserApplepayMerchantauthtokenGetModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayUserApplepayMerchantauthtokenGetModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayUserApplepayMerchantauthtokenGetModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.OpenApiAppleRequestHeader import OpenApiAppleRequestHeader
| 39.575 | 121 | 0.692777 |
120fe27f1b5e75a52f5b34455fea3d4051d4c84c | 2,239 | py | Python | sloth/lexer.py | TueHaulund/SLOTH | bd6ce343b22719f58d746768eda36a7164ec0446 | [
"MIT"
] | null | null | null | sloth/lexer.py | TueHaulund/SLOTH | bd6ce343b22719f58d746768eda36a7164ec0446 | [
"MIT"
] | null | null | null | sloth/lexer.py | TueHaulund/SLOTH | bd6ce343b22719f58d746768eda36a7164ec0446 | [
"MIT"
] | null | null | null | import re
from sloth.grammar import LexicalGrammar
from sloth.token import Token
| 27.304878 | 86 | 0.567664 |
12103e0a24c1302957392f23e845952a37e61e1d | 577 | py | Python | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 128 | 2018-10-29T04:11:47.000Z | 2022-03-07T02:19:14.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 40 | 2018-11-02T00:40:48.000Z | 2021-12-07T09:33:56.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 118 | 2018-10-29T08:43:57.000Z | 2022-01-07T06:49:25.000Z | from com.huawei.iotplatform.client.dto.DeviceCommandCancelTaskRespV4 import DeviceCommandCancelTaskRespV4
from com.huawei.iotplatform.client.dto.Pagination import Pagination
| 25.086957 | 105 | 0.729636 |
1213c2cda4d18aa24aaef90a3765df3d511ac853 | 4,872 | py | Python | utils/file_utils.py | hardore007/FeedSDK-Python | c94795f75c0654d160e77301bb15ce055fe81e96 | [
"Apache-2.0"
] | 27 | 2019-04-18T18:56:11.000Z | 2022-03-27T14:33:05.000Z | utils/file_utils.py | hardore007/FeedSDK-Python | c94795f75c0654d160e77301bb15ce055fe81e96 | [
"Apache-2.0"
] | 1 | 2021-12-12T10:50:19.000Z | 2021-12-12T10:50:19.000Z | utils/file_utils.py | hardore007/FeedSDK-Python | c94795f75c0654d160e77301bb15ce055fe81e96 | [
"Apache-2.0"
] | 14 | 2019-06-13T17:56:28.000Z | 2022-01-11T22:32:13.000Z | # **************************************************************************
# Copyright 2018-2019 eBay Inc.
# Author/Developers: --
# 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
# https:... | 39.934426 | 117 | 0.654557 |
1214ad1ddf30b9d8eafe82e3eadd72d6db36b769 | 1,040 | py | Python | tests/licenses/test_tasks.py | GitKlip/python-common | b44d1aaba5db3e1aa571b189999a8edea54c96bb | [
"MIT"
] | null | null | null | tests/licenses/test_tasks.py | GitKlip/python-common | b44d1aaba5db3e1aa571b189999a8edea54c96bb | [
"MIT"
] | null | null | null | tests/licenses/test_tasks.py | GitKlip/python-common | b44d1aaba5db3e1aa571b189999a8edea54c96bb | [
"MIT"
] | null | null | null | import os
import subprocess
| 35.862069 | 104 | 0.653846 |
12181341c970163cc0fc0af88683d0ae2d3ab386 | 959 | py | Python | src/config.py | raywu60kg/credit-card-fraud-detection | 83d8e4ce6afeb9f74cccbd98286103a5ee874308 | [
"MIT"
] | 4 | 2021-04-16T08:16:38.000Z | 2021-12-24T14:21:38.000Z | src/config.py | raywu60kg/credit-card-fraud-detection | 83d8e4ce6afeb9f74cccbd98286103a5ee874308 | [
"MIT"
] | 3 | 2021-03-31T19:56:04.000Z | 2021-12-13T21:00:30.000Z | src/config.py | raywu60kg/lightgbm-project-demo | 83d8e4ce6afeb9f74cccbd98286103a5ee874308 | [
"MIT"
] | null | null | null | import os
from ray import tune
package_dir = os.path.dirname(os.path.abspath(__file__))
identity_dir = os.path.join(package_dir, "..", "data/train_identity.csv")
transaction_dir = os.path.join(package_dir, "..", "data/train_transaction.csv")
data_primary_key = "TransactionID"
label_name = ["isFraud"]
feature_names = [... | 22.833333 | 79 | 0.611053 |
121852da41e3319cf6adc7aeb0809f6d3f289225 | 64 | py | Python | app/chat/__init__.py | B-T-S/Build | c6fae1fc44ec6a1ec3c2f01784ac2a1e67017ccc | [
"MIT"
] | 1 | 2020-09-06T11:21:43.000Z | 2020-09-06T11:21:43.000Z | app/chat/__init__.py | B-T-S/Build | c6fae1fc44ec6a1ec3c2f01784ac2a1e67017ccc | [
"MIT"
] | null | null | null | app/chat/__init__.py | B-T-S/Build | c6fae1fc44ec6a1ec3c2f01784ac2a1e67017ccc | [
"MIT"
] | null | null | null | from . import guest
from . import pusherauth
from . import admin | 21.333333 | 24 | 0.78125 |
121859643d9d38314cf2b4f7dd98311a26fc6f87 | 22,481 | py | Python | dataloader/statetransformer_Guidance.py | proroklab/magat_pathplanning | a2cab3b11abc46904bc45be1762a780becb1e8c7 | [
"MIT"
] | 40 | 2021-07-01T03:14:20.000Z | 2022-03-23T23:45:22.000Z | dataloader/statetransformer_Guidance.py | QingbiaoLi/magat_pathplanning | f28429b1a2ab7866c3001b82e6ae9ca3f072c106 | [
"MIT"
] | null | null | null | dataloader/statetransformer_Guidance.py | QingbiaoLi/magat_pathplanning | f28429b1a2ab7866c3001b82e6ae9ca3f072c106 | [
"MIT"
] | 13 | 2021-07-14T07:57:16.000Z | 2022-03-03T10:43:25.000Z | import numpy as np
import torch
from offlineExpert.a_star import PathPlanner
| 45.2334 | 129 | 0.637294 |
121923d1e8491eca43f62c50b434300d0afbbc05 | 1,713 | py | Python | Algorithms/0212_Word_Search_II/Python/Word_Search_II_Solution_1.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null | Algorithms/0212_Word_Search_II/Python/Word_Search_II_Solution_1.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null | Algorithms/0212_Word_Search_II/Python/Word_Search_II_Solution_1.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null |
# Space: O(n)
# Time: O(n)
import collections
| 28.081967 | 159 | 0.50613 |
12192a5c4a0869098ef5a2f6114fc9d572aaa5ab | 2,101 | py | Python | training/pl_logger.py | stdiff/emo-classifier | 211731a44022408c750b611383216ce0578f2d41 | [
"MIT"
] | null | null | null | training/pl_logger.py | stdiff/emo-classifier | 211731a44022408c750b611383216ce0578f2d41 | [
"MIT"
] | null | null | null | training/pl_logger.py | stdiff/emo-classifier | 211731a44022408c750b611383216ce0578f2d41 | [
"MIT"
] | null | null | null | from typing import Dict, Any, Optional
import pandas as pd
from pytorch_lightning.loggers import LightningLoggerBase
from pytorch_lightning.loggers.base import rank_zero_experiment
from pytorch_lightning.utilities import rank_zero_only
| 29.180556 | 91 | 0.611614 |
121a371d11810daf15b49cd12a5b51615558c5c2 | 13,225 | py | Python | exec/tests/unit/runners/test_evaluators.py | AndersonReyes/klio | 758c80daa2c537a42a72e5ba061e8686b68de111 | [
"Apache-2.0"
] | 705 | 2020-10-02T17:25:31.000Z | 2022-03-24T15:26:53.000Z | exec/tests/unit/runners/test_evaluators.py | AndersonReyes/klio | 758c80daa2c537a42a72e5ba061e8686b68de111 | [
"Apache-2.0"
] | 63 | 2020-10-02T17:53:47.000Z | 2022-03-23T21:36:40.000Z | exec/tests/unit/runners/test_evaluators.py | isabella232/klio | 4b8b96b03948235c0b28af96fc85de17cb679e8c | [
"Apache-2.0"
] | 49 | 2020-10-13T18:44:34.000Z | 2022-03-18T08:38:15.000Z | # Copyright 2021 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 35.172872 | 79 | 0.707977 |
121b43822422f72f27023efc96df9a7d9e66a9dd | 218 | py | Python | tests/test_test.py | pthomson88/drug_design | d92ed4c06cd036c83fe60ada05b493f4581d24d6 | [
"MIT"
] | 1 | 2020-07-06T10:50:17.000Z | 2020-07-06T10:50:17.000Z | tests/test_test.py | pthomson88/drug_design | d92ed4c06cd036c83fe60ada05b493f4581d24d6 | [
"MIT"
] | 3 | 2020-04-06T22:06:07.000Z | 2020-04-23T23:07:43.000Z | tests/test_test.py | pthomson88/drug_design | d92ed4c06cd036c83fe60ada05b493f4581d24d6 | [
"MIT"
] | null | null | null | import pytest
#This test will always fail
| 16.769231 | 39 | 0.715596 |
121c0a3df995d20450310ecffb8591aaab406cd8 | 3,812 | py | Python | tic-tac-toe.py | aaditkapoor/tic-tac-toe-ml-project | 21071af048486198bedcf4c775c3e44136b1a62f | [
"MIT"
] | 4 | 2020-09-27T15:15:07.000Z | 2022-02-02T22:07:18.000Z | tic-tac-toe.py | aaditkapoor/tic-tac-toe-ml-project | 21071af048486198bedcf4c775c3e44136b1a62f | [
"MIT"
] | null | null | null | tic-tac-toe.py | aaditkapoor/tic-tac-toe-ml-project | 21071af048486198bedcf4c775c3e44136b1a62f | [
"MIT"
] | 2 | 2020-10-01T04:06:04.000Z | 2021-12-12T15:07:23.000Z |
# coding: utf-8
# - We are creating a very simple machine learning model.<br>
# - Using dataset: tic-tac-toe.data.txt with user-defined columns.<br>
# - We are treating this problem as a supervised learning problem.<br>
# In[74]:
# This the rough sketch of the processing that happened in my brain while creating the... | 15.883333 | 207 | 0.726653 |
12205785847781fdf91f2f5c239b4afc1705b168 | 566 | py | Python | murel/models/networks/control.py | gokcengokceoglu/murel.bootstrap.pytorch | e3f1cfde377969a872a8f930fbaedf3f814f8fe0 | [
"BSD-3-Clause"
] | 1 | 2019-05-13T17:28:36.000Z | 2019-05-13T17:28:36.000Z | murel/models/networks/control.py | gokcengokceoglu/murel.bootstrap.pytorch | e3f1cfde377969a872a8f930fbaedf3f814f8fe0 | [
"BSD-3-Clause"
] | null | null | null | murel/models/networks/control.py | gokcengokceoglu/murel.bootstrap.pytorch | e3f1cfde377969a872a8f930fbaedf3f814f8fe0 | [
"BSD-3-Clause"
] | null | null | null | import torch.nn as nn
import torch
| 25.727273 | 102 | 0.680212 |
1220d274182a0990223702c61d3c21c277645d4a | 452 | py | Python | uim/model/helpers/__init__.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | 5 | 2021-09-06T11:45:37.000Z | 2022-03-24T15:56:06.000Z | uim/model/helpers/__init__.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | null | null | null | uim/model/helpers/__init__.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | 2 | 2021-09-03T09:08:45.000Z | 2021-12-15T14:03:16.000Z | # -*- coding: utf-8 -*-
"""
Helpers
=======
The helpers are simple functions to support with:
- Catmull-Rom splines
- Extracting text and named entities from Ink Model
- Iterate over the Ink Tree
"""
__all__ = ['spline', 'text_extractor', 'treeiterator', 'policy']
from uim.model.helpers import ... | 25.111111 | 64 | 0.710177 |
1221a67d2afbaeaa06f032e92f261758edc08659 | 1,544 | py | Python | matrix_traversal/get_matrix.py | SiberiaMan/Avitotech | 0f17bedd157973ad3f5a3fa748a4892eb1a42204 | [
"MIT"
] | null | null | null | matrix_traversal/get_matrix.py | SiberiaMan/Avitotech | 0f17bedd157973ad3f5a3fa748a4892eb1a42204 | [
"MIT"
] | null | null | null | matrix_traversal/get_matrix.py | SiberiaMan/Avitotech | 0f17bedd157973ad3f5a3fa748a4892eb1a42204 | [
"MIT"
] | null | null | null | import aiohttp
from matrix_traversal.utils import (
traverse_matrix_counterclockwise,
get_formatted_matrix,
check_url)
from typing import List
from aiohttp import ClientError
from asyncio.exceptions import TimeoutError
| 31.510204 | 75 | 0.626943 |
1222227113bac1587e2d7de9daa11d0c8149596e | 366 | py | Python | wildlifecompliance/migrations/0431_merge_20200218_1801.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0431_merge_20200218_1801.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0431_merge_20200218_1801.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-02-18 10:01
from __future__ import unicode_literals
from django.db import migrations
| 21.529412 | 63 | 0.688525 |
12228e3b63d5800fdd397f990213ba8df82669bd | 23 | py | Python | python/testData/copyPaste/LineToPrev.after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/copyPaste/LineToPrev.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/copyPaste/LineToPrev.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | print
print 21
print 3
| 5.75 | 8 | 0.782609 |
12229d09733f5a8668d4db1077a04761f8c6c6e6 | 1,234 | py | Python | pdfencrypter.py | kamimura/pdfendecrypter | 0fc93b8234d7e94cd42267eb05f97ba398f08e1e | [
"MIT"
] | null | null | null | pdfencrypter.py | kamimura/pdfendecrypter | 0fc93b8234d7e94cd42267eb05f97ba398f08e1e | [
"MIT"
] | null | null | null | pdfencrypter.py | kamimura/pdfendecrypter | 0fc93b8234d7e94cd42267eb05f97ba398f08e1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import PyPDF2
length = len(sys.argv)
if length >= 2:
PASSWORD = sys.argv[1]
else:
print('usage: cmd password [path]')
sys.exit(1)
if length == 3:
PATH = sys.argv[2]
else:
PATH = os.curdir
for folder_name, _, filenames in os.walk... | 32.473684 | 74 | 0.523501 |
1223017e27fe3759d3dd4b76699ecf7642b1cb0c | 112 | py | Python | Term2/15-5-square-for-input.py | theseana/apondaone | 7cbf3572a86c73220329804fee1f3d03842ae902 | [
"MIT"
] | null | null | null | Term2/15-5-square-for-input.py | theseana/apondaone | 7cbf3572a86c73220329804fee1f3d03842ae902 | [
"MIT"
] | null | null | null | Term2/15-5-square-for-input.py | theseana/apondaone | 7cbf3572a86c73220329804fee1f3d03842ae902 | [
"MIT"
] | null | null | null | import turtle as t
zel = float(input("What is your Zel: "))
for i in range(4):
t.fd(zel)
t.lt(90)
t.done()
| 14 | 40 | 0.616071 |
12233f2f13fb8938280813abd35f4446b1be890a | 691 | py | Python | src/ashley/urls.py | openfun/ashley | 33af6a46bc22c86417c200fdd84876c2c46b02ce | [
"MIT"
] | 6 | 2020-05-05T11:50:29.000Z | 2021-09-19T06:01:39.000Z | src/ashley/urls.py | openfun/ashley | 33af6a46bc22c86417c200fdd84876c2c46b02ce | [
"MIT"
] | 93 | 2020-02-17T16:28:57.000Z | 2022-03-18T14:06:45.000Z | src/ashley/urls.py | openfun/ashley | 33af6a46bc22c86417c200fdd84876c2c46b02ce | [
"MIT"
] | 1 | 2020-03-02T04:36:12.000Z | 2020-03-02T04:36:12.000Z | """
Ashley URLs (that includes django machina urls)
"""
from django.urls import include, path, re_path
from machina import urls as machina_urls
from ashley.api import urls as api_urls
from ashley.views import ChangeUsernameView, ForumLTIView, ManageModeratorsView
API_PREFIX = "v1.0"
urlpatterns = [
path("lti/fo... | 28.791667 | 81 | 0.704776 |
1225b42f1a8d25d36977830638476dfe2a802c62 | 11,992 | py | Python | schemes/mkcap.py | gold2718/ccpp-framework | 66f1a069b6b15748e08adbe940b8ceb9b39619ab | [
"Apache-2.0"
] | null | null | null | schemes/mkcap.py | gold2718/ccpp-framework | 66f1a069b6b15748e08adbe940b8ceb9b39619ab | [
"Apache-2.0"
] | 39 | 2019-01-25T21:50:33.000Z | 2021-09-03T16:57:43.000Z | schemes/mkcap.py | gold2718/ccpp-framework | 66f1a069b6b15748e08adbe940b8ceb9b39619ab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Script to generate a cap module and subroutines
# from a scheme xml file.
#
from __future__ import print_function
import os
import sys
import getopt
import xml.etree.ElementTree as ET
#################### Main program routine
#################### Parse the command line arguments
##########... | 30.827763 | 94 | 0.532688 |
122659abc409041390c5c76b00e76f1745c0df5d | 2,457 | py | Python | setup.py | CertiFire/certifire | 722da20bade41b8cc8553177e70e1f56015fe335 | [
"MIT"
] | null | null | null | setup.py | CertiFire/certifire | 722da20bade41b8cc8553177e70e1f56015fe335 | [
"MIT"
] | null | null | null | setup.py | CertiFire/certifire | 722da20bade41b8cc8553177e70e1f56015fe335 | [
"MIT"
] | 1 | 2021-02-06T03:29:56.000Z | 2021-02-06T03:29:56.000Z | #!/usr/bin/env python
import certifire
import certifire.plugins.acme
import certifire.plugins.dns_providers
from codecs import open
from setuptools import setup, find_packages
import sys
try:
# for pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# for pip <= 9.0.3
print(... | 34.125 | 80 | 0.635328 |
12274afee7b6bda951b1ffa4cfd48248c01b1033 | 2,687 | py | Python | kanka/utils.py | rbtnx/python-kanka | 74e75243094816a5d0ddc33575951749a090c673 | [
"MIT"
] | 3 | 2020-07-26T22:05:06.000Z | 2021-09-14T12:58:45.000Z | kanka/utils.py | rbtnx/python-kanka | 74e75243094816a5d0ddc33575951749a090c673 | [
"MIT"
] | 3 | 2021-09-13T21:08:12.000Z | 2021-09-18T15:00:58.000Z | kanka/utils.py | rbtnx/python-kanka | 74e75243094816a5d0ddc33575951749a090c673 | [
"MIT"
] | 2 | 2021-09-14T22:27:21.000Z | 2022-01-07T01:35:45.000Z | """
:mod: `kanka.utils` - Helper functions
"""
from datetime import datetime
from requests_toolbelt.sessions import BaseUrlSession
from dacite import from_dict, Config
from .exceptions import KankaAPIError
API_BASE_ENDPOINT = 'https://kanka.io/api/1.0/'
def to_datetime(dict_date):
""" Convert json date entry to ... | 33.5875 | 93 | 0.66431 |
12276b102b462739e46f7a9646d34ec66d31bbd9 | 3,599 | py | Python | day2/exercises/Jamila/pi_estimate/plots.py | lavjams/BI-Demo | 2ff4aeb9dc71eeb1aa9e1f6510a79994c6c20ef1 | [
"MIT"
] | null | null | null | day2/exercises/Jamila/pi_estimate/plots.py | lavjams/BI-Demo | 2ff4aeb9dc71eeb1aa9e1f6510a79994c6c20ef1 | [
"MIT"
] | null | null | null | day2/exercises/Jamila/pi_estimate/plots.py | lavjams/BI-Demo | 2ff4aeb9dc71eeb1aa9e1f6510a79994c6c20ef1 | [
"MIT"
] | null | null | null | ######
###BACKGROUND
#Below Section: Imports necessary functions
import numpy as np
import matplotlib.pyplot as graph
import random as rand
import time as watch
import sims
pi = np.pi
######
###PLOTS
#FUNCTION: drawdarts
#PURPOSE: This function is meant to draw the darts for a given simulation within the unit square.... | 33.635514 | 107 | 0.734371 |
122a8bcfb8def21ca6542908e7ec0138c02aea09 | 1,803 | py | Python | scripts/animate_demo.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 23 | 2015-08-25T19:40:18.000Z | 2020-12-27T09:23:06.000Z | scripts/animate_demo.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | null | null | null | scripts/animate_demo.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 8 | 2016-05-18T20:13:06.000Z | 2020-11-03T16:09:50.000Z | #!/usr/bin/env python
"""
Animate demonstration trajectory
"""
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("h5file")
parser.add_argument("--seg")
parser.add_argument("--nopause", action="store_true")
args = parser.parse_args()
import h5py, openravepy,trajoptpy
from rapprentice import ani... | 24.04 | 91 | 0.661675 |
122ae92db8c0fba7f33754fcbab35f9e25571cce | 1,032 | py | Python | rsp2/src/python/rsp2/io/structure_dir.py | colin-daniels/agnr-ml | fc936cb8b6a68c37dfaf64c74796e0cf795c1bb8 | [
"MIT"
] | null | null | null | rsp2/src/python/rsp2/io/structure_dir.py | colin-daniels/agnr-ml | fc936cb8b6a68c37dfaf64c74796e0cf795c1bb8 | [
"MIT"
] | null | null | null | rsp2/src/python/rsp2/io/structure_dir.py | colin-daniels/agnr-ml | fc936cb8b6a68c37dfaf64c74796e0cf795c1bb8 | [
"MIT"
] | null | null | null | import json
import os
from pymatgen.io.vasp import Poscar
| 32.25 | 102 | 0.643411 |
122bf0e224108c95adcbb96cb64e305c57af3a8b | 891 | py | Python | scripts/generate_mapping_summary.py | BleekerLab/snakemake_rnaseq | 1b9db81ca82a3f3df5978c87f8ef76bfea00f584 | [
"MIT"
] | 4 | 2020-06-26T08:59:07.000Z | 2022-02-02T15:24:25.000Z | scripts/generate_mapping_summary.py | BleekerLab/snakemake_rnaseq | 1b9db81ca82a3f3df5978c87f8ef76bfea00f584 | [
"MIT"
] | 11 | 2020-07-28T07:40:26.000Z | 2021-08-05T07:52:00.000Z | scripts/generate_mapping_summary.py | BleekerLab/snakemake_rnaseq | 1b9db81ca82a3f3df5978c87f8ef76bfea00f584 | [
"MIT"
] | 3 | 2020-10-30T14:09:19.000Z | 2022-02-02T15:16:41.000Z | #!/usr/bin/env python
# coding: utf-8
import pandas as pd
import os
from functools import reduce
import sys
directory_with_mapping_reports = sys.argv[1]
mapping_summary = sys.argv[2]
############################################################
# Reads each file. Add sample name in the column with values
###########... | 24.75 | 134 | 0.641975 |
122e92d89d689afb07f2870e5616b184ec228c74 | 74 | py | Python | Chapter2_Python/fStrings.py | dependencyInversion/UdemyML | 9e1a0a01688a82c61ef006a592a58c12fb186552 | [
"MIT"
] | null | null | null | Chapter2_Python/fStrings.py | dependencyInversion/UdemyML | 9e1a0a01688a82c61ef006a592a58c12fb186552 | [
"MIT"
] | null | null | null | Chapter2_Python/fStrings.py | dependencyInversion/UdemyML | 9e1a0a01688a82c61ef006a592a58c12fb186552 | [
"MIT"
] | null | null | null | my_name = "Jan"
my_age = 23
print(f"Age: { my_age }, Name: { my_name }")
| 14.8 | 44 | 0.594595 |
122f641d2932f57d9055b11d54666d81eb9d402f | 1,140 | py | Python | src/models/predict_text_model.py | eyosyaswd/disaster-response | 836f40119e0795d35747c0fd3f975e7a13e46258 | [
"RSA-MD"
] | null | null | null | src/models/predict_text_model.py | eyosyaswd/disaster-response | 836f40119e0795d35747c0fd3f975e7a13e46258 | [
"RSA-MD"
] | null | null | null | src/models/predict_text_model.py | eyosyaswd/disaster-response | 836f40119e0795d35747c0fd3f975e7a13e46258 | [
"RSA-MD"
] | null | null | null | from ast import literal_eval
from performance_metrics import get_performance_metrics
from tensorflow.keras.models import load_model
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' # Ignore tf info messages
import pandas as pd
if __name__ == "__main__":
TASK = "humanitarian"
print("\nLoading in testing... | 29.230769 | 80 | 0.710526 |
122fc0c14857deefada9ab37db5cbbaade40f9f1 | 9,795 | py | Python | pygsti/tools/lindbladtools.py | pyGSTi-Developers/pyGSTi | bfedc1de4d604f14b0f958615776fb80ddb59e33 | [
"Apache-2.0"
] | null | null | null | pygsti/tools/lindbladtools.py | pyGSTi-Developers/pyGSTi | bfedc1de4d604f14b0f958615776fb80ddb59e33 | [
"Apache-2.0"
] | null | null | null | pygsti/tools/lindbladtools.py | pyGSTi-Developers/pyGSTi | bfedc1de4d604f14b0f958615776fb80ddb59e33 | [
"Apache-2.0"
] | null | null | null | """
Utility functions relevant to Lindblad forms and projections
"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the ... | 42.038627 | 112 | 0.611434 |
1230448ffec588d42b768d0919ac0104f451a382 | 1,490 | py | Python | quality_dataset.py | Phoenix-Chen/butterflies | 06abf393c69f7a7c54d4e8a8775de81de7908285 | [
"MIT"
] | 45 | 2019-12-26T10:36:47.000Z | 2022-03-30T12:17:45.000Z | quality_dataset.py | Phoenix-Chen/butterflies | 06abf393c69f7a7c54d4e8a8775de81de7908285 | [
"MIT"
] | 1 | 2022-02-04T02:54:05.000Z | 2022-02-04T02:54:05.000Z | quality_dataset.py | Phoenix-Chen/butterflies | 06abf393c69f7a7c54d4e8a8775de81de7908285 | [
"MIT"
] | 8 | 2019-12-27T08:51:40.000Z | 2022-02-04T01:29:23.000Z | import torch
from torch.utils.data import Dataset
import numpy as np
import csv
import random
from config import *
import itertools
import torch
from skimage import io
import os | 32.391304 | 107 | 0.631544 |
12313e062dbc6cb84fe76bc3653621f0ba161998 | 40 | py | Python | tests/components/geofency/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/geofency/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | tests/components/geofency/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Tests for the Geofency component."""
| 20 | 39 | 0.7 |
12329373ceaaf62c2595b60a93477f6c3c56faed | 5,564 | py | Python | examples/nn_opt.py | jjakimoto/BBoptimizer | fcc58393905ee72184ad3759ea444bc52b9a3a2d | [
"MIT"
] | 1 | 2019-01-28T00:16:55.000Z | 2019-01-28T00:16:55.000Z | examples/nn_opt.py | jjakimoto/BBoptimizer | fcc58393905ee72184ad3759ea444bc52b9a3a2d | [
"MIT"
] | null | null | null | examples/nn_opt.py | jjakimoto/BBoptimizer | fcc58393905ee72184ad3759ea444bc52b9a3a2d | [
"MIT"
] | 1 | 2019-11-05T00:56:12.000Z | 2019-11-05T00:56:12.000Z | from sklearn.preprocessing import OneHotEncoder
import numpy as np
import tensorflow as tf
from keras.models import Sequential
from keras.layers import Dense, BatchNormalization, Dropout
from keras.layers import Activation, Reshape
from keras.optimizers import Adam, Adadelta, SGD, RMSprop
from keras.regularizers import... | 33.518072 | 92 | 0.608735 |
1234396a6bb8250f31699a3c56eb0bb2cef11b8c | 1,070 | py | Python | tests/library/register_expansion_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T13:36:34.000Z | 2022-03-11T13:36:34.000Z | tests/library/register_expansion_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | tests/library/register_expansion_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import dace
import dace.library
from dace.transformation import transformation as xf
import pytest
if __name__ == '__main__':
test_register_expansion()
| 26.75 | 89 | 0.696262 |
1234bf219e24ad436242f38b48011626c907f01c | 2,390 | py | Python | utils/db_manipulate.py | DSSG-EUROPE/wef_oceans | 53121808b0191015f6808ac5d57c2bf433f55b57 | [
"MIT"
] | 3 | 2018-11-09T16:18:04.000Z | 2019-04-08T06:43:49.000Z | utils/db_manipulate.py | DSSG-EUROPE/wef_oceans | 53121808b0191015f6808ac5d57c2bf433f55b57 | [
"MIT"
] | null | null | null | utils/db_manipulate.py | DSSG-EUROPE/wef_oceans | 53121808b0191015f6808ac5d57c2bf433f55b57 | [
"MIT"
] | 1 | 2020-06-20T12:28:45.000Z | 2020-06-20T12:28:45.000Z | """
Functions to manipulate data from PostgreSQL database includes a
parallelise dataframe that runs a function on a pandas data frame
in parallel, as well as a loop_chunks function. This reads a chunk
from the database performs an operation and uploads to a new
table in the database.
"""
import numpy as np
import pa... | 33.194444 | 81 | 0.702929 |
123588ad730aafa13b29dfb9d8148d8bd7ecbc3e | 4,633 | py | Python | dialogue-engine/test/programytest/mappings/test_properties.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 104 | 2020-03-30T09:40:00.000Z | 2022-03-06T22:34:25.000Z | dialogue-engine/test/programytest/mappings/test_properties.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 25 | 2020-06-12T01:36:35.000Z | 2022-02-19T07:30:44.000Z | dialogue-engine/test/programytest/mappings/test_properties.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 10 | 2020-04-02T23:43:56.000Z | 2021-05-14T13:47:01.000Z | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
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 without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | 44.980583 | 154 | 0.725448 |
1235cfb823eaf0316261db4734ea4c699278e3e7 | 2,006 | py | Python | arango/mixins.py | joymax/arango-python | 7bdb8a1a0fa0a4bd00a71e27a5b48e0b9dd7b465 | [
"ISC"
] | 6 | 2015-07-26T20:25:04.000Z | 2020-05-04T17:43:01.000Z | arango/mixins.py | appscluster/arango-python | 280a6e18ebeff22e4e991acd8957d9372fffe4b5 | [
"0BSD"
] | 1 | 2015-03-18T10:40:52.000Z | 2015-03-18T10:40:52.000Z | arango/mixins.py | appscluster/arango-python | 280a6e18ebeff22e4e991acd8957d9372fffe4b5 | [
"0BSD"
] | 6 | 2015-02-11T18:27:47.000Z | 2020-08-04T07:30:08.000Z |
__all__ = ("ComparsionMixin", "LazyLoadMixin")
| 29.5 | 78 | 0.584247 |
12363f66dfb844f667ebb8ec1017ade26b9cd03a | 237 | py | Python | gherkin_to_markdown/expressions/second_header_expression.py | LeandreArseneault/gherkin_to_markdown | 157a6a7ba5b7f1f3a159bc163bf1b1187401243a | [
"MIT"
] | 6 | 2022-02-14T22:10:50.000Z | 2022-03-10T20:42:29.000Z | gherkin_to_markdown/expressions/second_header_expression.py | LeandreArseneault/gherkin_to_markdown | 157a6a7ba5b7f1f3a159bc163bf1b1187401243a | [
"MIT"
] | null | null | null | gherkin_to_markdown/expressions/second_header_expression.py | LeandreArseneault/gherkin_to_markdown | 157a6a7ba5b7f1f3a159bc163bf1b1187401243a | [
"MIT"
] | null | null | null | from gherkin_to_markdown.expressions.expression import Expression
| 33.857143 | 83 | 0.725738 |
123715b12a5b1cf1e72dca351d0afec4057e4c1c | 1,965 | py | Python | deephub/resources/__init__.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 8 | 2019-10-17T12:46:13.000Z | 2020-03-12T08:09:40.000Z | deephub/resources/__init__.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 12 | 2019-10-22T13:11:56.000Z | 2022-02-10T00:23:30.000Z | deephub/resources/__init__.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 1 | 2019-10-17T13:21:27.000Z | 2019-10-17T13:21:27.000Z | from __future__ import unicode_literals
from __future__ import absolute_import
import os
from pathlib import Path
DEFAULT_USER_RESOURCES_DIRECTORY = 'runtime_resources'
_default_package_dir = Path(__file__).resolve().parent / 'blobs'
_user_resources_dir = Path(os.getcwd()).resolve() / DEFAULT_USER_RESOURCES_DIREC... | 26.554054 | 116 | 0.711959 |
12376f57cbbdd06f4b31de54e8c71b1b3af17063 | 7,334 | py | Python | kaggle-lung-cancer-approach2/modules/ImagePreprocessing3d.py | flaviostutz/datascience-snippets | 768083c4eda972bc1f6548baa86751e0405bda9b | [
"MIT"
] | 2 | 2017-06-05T17:25:55.000Z | 2018-02-04T04:01:13.000Z | kaggle-lung-cancer-approach2/modules/ImagePreprocessing3d.py | flaviostutz/datascience-snippets | 768083c4eda972bc1f6548baa86751e0405bda9b | [
"MIT"
] | null | null | null | kaggle-lung-cancer-approach2/modules/ImagePreprocessing3d.py | flaviostutz/datascience-snippets | 768083c4eda972bc1f6548baa86751e0405bda9b | [
"MIT"
] | null | null | null | from tflearn.data_preprocessing import DataPreprocessing
import numpy as np
import random | 38.197917 | 95 | 0.559176 |
1238f5782c007b0342cf7631189d532a4f5471d2 | 640 | py | Python | rpicamera/usepygame.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | rpicamera/usepygame.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | rpicamera/usepygame.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | import pygame
import pygame.camera
#from pygame.locals import *
pygame.init()
pygame.camera.init()
screen = pygame.display.set_mode((640, 480), 0)
if __name__ == '__main__':
main()
| 22.857143 | 58 | 0.590625 |
123bccff69a049fadbfe73510677148e9ddcb731 | 1,210 | py | Python | AI502/ScAI/lstm.py | sungnyun/AI-assignments | 6451fd6db33fd8671ca362b4ad4c190979a98c22 | [
"MIT"
] | null | null | null | AI502/ScAI/lstm.py | sungnyun/AI-assignments | 6451fd6db33fd8671ca362b4ad4c190979a98c22 | [
"MIT"
] | null | null | null | AI502/ScAI/lstm.py | sungnyun/AI-assignments | 6451fd6db33fd8671ca362b4ad4c190979a98c22 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import torch.nn as nn
# In[ ]:
| 28.139535 | 134 | 0.591736 |
123cdad2272e052e427dddd3ee2cb08bee5b4d82 | 573 | py | Python | dracoon/public_models.py | Quirinwierer/dracoon-python-api | 7fad8cdb95069fb80069e76c740547f3ad02b910 | [
"Apache-2.0"
] | 3 | 2020-10-05T14:34:46.000Z | 2020-11-27T07:44:57.000Z | dracoon/public_models.py | Quirinwierer/dracoon-python-api | 7fad8cdb95069fb80069e76c740547f3ad02b910 | [
"Apache-2.0"
] | 1 | 2022-02-15T16:01:12.000Z | 2022-02-15T16:01:12.000Z | dracoon/public_models.py | Quirinwierer/dracoon-python-api | 7fad8cdb95069fb80069e76c740547f3ad02b910 | [
"Apache-2.0"
] | 1 | 2021-03-04T08:16:07.000Z | 2021-03-04T08:16:07.000Z | from dataclasses import dataclass
from typing import List
| 17.363636 | 40 | 0.743455 |
123e85539b0232e897726505c073ee908b36655f | 3,315 | py | Python | col_validation.py | scouvreur/pyspark-rdd-csv-parser | 59fa9ee5202ebb10c05b14d638234036e5139332 | [
"Apache-2.0"
] | null | null | null | col_validation.py | scouvreur/pyspark-rdd-csv-parser | 59fa9ee5202ebb10c05b14d638234036e5139332 | [
"Apache-2.0"
] | null | null | null | col_validation.py | scouvreur/pyspark-rdd-csv-parser | 59fa9ee5202ebb10c05b14d638234036e5139332 | [
"Apache-2.0"
] | null | null | null | import csv
import codecs
import StringIO
import cStringIO
import sys
import time
import argparse
from pyspark import SparkContext
parser = argparse.ArgumentParser(description='Count columns and lines existing in file')
parser.add_argument('-df','--DATAFILE', dest="DATAFILE", type=str,
help='the pat... | 33.15 | 115 | 0.634389 |
123fd7b7b9f4d286bd20d4bce4dab814f4d0a36c | 254 | py | Python | Fibonacci.py | Eziowrf/project555 | a8c883b55186f59d7fe1d953c404522a17985f98 | [
"MIT"
] | 1 | 2019-07-21T06:05:09.000Z | 2019-07-21T06:05:09.000Z | Fibonacci.py | Eziowrf/project555 | a8c883b55186f59d7fe1d953c404522a17985f98 | [
"MIT"
] | 5 | 2018-09-21T01:15:26.000Z | 2018-09-26T18:37:32.000Z | Fibonacci.py | Eziowrf/project555 | a8c883b55186f59d7fe1d953c404522a17985f98 | [
"MIT"
] | 1 | 2018-09-23T15:57:26.000Z | 2018-09-23T15:57:26.000Z | # Yunfan Ye 10423172
# arr = [1,2,3,4,5,6,7,8,9,10]
# for i in arr:
# print(Fibonacci(i))
| 19.538462 | 51 | 0.484252 |
1242151ef65549586db3bf65bc0bd27cfd616b7b | 9,415 | py | Python | seek/dbtable_content_blobs.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | seek/dbtable_content_blobs.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | seek/dbtable_content_blobs.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | '''
Created on July 12, 2016
@author: Huiming Ding
Email: huiming@mit.edu
Description:
This script is implemented for the Content_blobs database/table.
Input: No typical input to define.
Output: No typical output to define.
Example command line:
Log of changes:
'''
#!/usr/bin/env pytho... | 34.613971 | 101 | 0.585024 |
1242b70d24751dd58f2e174b2b6dafa4b0cf5800 | 600 | py | Python | netbox_secretstore/__init__.py | motad333/netbox-secretstore | 6ddb3f7bd1b83cc96f140338926aa56a99ce21f3 | [
"Apache-2.0"
] | null | null | null | netbox_secretstore/__init__.py | motad333/netbox-secretstore | 6ddb3f7bd1b83cc96f140338926aa56a99ce21f3 | [
"Apache-2.0"
] | null | null | null | netbox_secretstore/__init__.py | motad333/netbox-secretstore | 6ddb3f7bd1b83cc96f140338926aa56a99ce21f3 | [
"Apache-2.0"
] | null | null | null | from extras.plugins import PluginConfig
from django.utils.translation import gettext_lazy as _
config = NetBoxSecretStore
| 24 | 54 | 0.638333 |
124700ddcb80e0e1797e3dbe2cb967b7c32e7eb3 | 722 | py | Python | functions/load_respiratory_disease_data.py | rlbarter/covid19-severity-prediction | 8846958576fe9cb54a5e111b5c6c71ab8cc8cd08 | [
"MIT"
] | 2 | 2020-05-15T14:42:02.000Z | 2020-05-22T08:51:47.000Z | functions/load_respiratory_disease_data.py | rahul263-stack/covid19-severity-prediction | f581adb2fccb12d5ab3f3c59ee120f484703edf5 | [
"MIT"
] | null | null | null | functions/load_respiratory_disease_data.py | rahul263-stack/covid19-severity-prediction | f581adb2fccb12d5ab3f3c59ee120f484703edf5 | [
"MIT"
] | null | null | null | import pandas as pd | 51.571429 | 116 | 0.634349 |
1247081add64badc149af8da67683a988746de63 | 111,647 | py | Python | angr/procedures/definitions/win32_mfplat.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_mfplat.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_mfplat.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | 360.151613 | 8,410 | 0.736276 |
1247b2646a2dc945b275a2796fe324446a123943 | 9,319 | py | Python | src/flows.py | act65/mri-reconstruction | 2dcf30e10c37a482f1aab2524c5966d03eb72085 | [
"MIT"
] | 8 | 2018-12-30T10:33:44.000Z | 2021-07-16T09:59:09.000Z | src/flows.py | gongjizhang/mri-reconstruction | 2dcf30e10c37a482f1aab2524c5966d03eb72085 | [
"MIT"
] | 1 | 2018-06-01T03:51:35.000Z | 2018-08-27T03:39:34.000Z | src/flows.py | gongjizhang/mri-reconstruction | 2dcf30e10c37a482f1aab2524c5966d03eb72085 | [
"MIT"
] | 5 | 2018-12-30T10:33:45.000Z | 2021-11-15T11:19:56.000Z | import os
import numpy as np
import urllib
from absl import flags
import tensorflow as tf
import tensorflow_probability as tfp
tfb = tfp.bijectors
tfd = tfp.distributions
flags.DEFINE_float(
"learning_rate", default=0.001, help="Initial learning rate.")
flags.DEFINE_integer(
"epochs", default=100, help="Numb... | 32.81338 | 102 | 0.63054 |
124ab5ee13504d68a3d114c277fcb2d99863ce77 | 5,229 | py | Python | data/model.py | depowered/mndot-bid-abstracts | bb02c005e7cbd5645502e21c4baebd76170d4be1 | [
"MIT"
] | null | null | null | data/model.py | depowered/mndot-bid-abstracts | bb02c005e7cbd5645502e21c4baebd76170d4be1 | [
"MIT"
] | null | null | null | data/model.py | depowered/mndot-bid-abstracts | bb02c005e7cbd5645502e21c4baebd76170d4be1 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Float, ForeignKey
from sqlalchemy.engine.create import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
CONNECTION_STRING = "sqlite+pysqlite:///data/db.sqlite"
engine = create_engine(CONNECTION_STRING)
Sess... | 29.542373 | 98 | 0.646969 |
124b91dae4ca83e7c2890e0dcfbf5f3b352095cb | 3,436 | py | Python | guess_number_bo/guess_number.py | scumabo/Number-Guessing-Game | 690bb1e6c1cb7705c4be6ef21306aa63ea015c33 | [
"MIT"
] | null | null | null | guess_number_bo/guess_number.py | scumabo/Number-Guessing-Game | 690bb1e6c1cb7705c4be6ef21306aa63ea015c33 | [
"MIT"
] | null | null | null | guess_number_bo/guess_number.py | scumabo/Number-Guessing-Game | 690bb1e6c1cb7705c4be6ef21306aa63ea015c33 | [
"MIT"
] | null | null | null | import random
from enum import Enum, auto
| 30.678571 | 104 | 0.501746 |
124cdc7703ebf2ea82fe5e53d675710d5f9da0a2 | 706 | py | Python | attic/concurrency/timer2.py | matteoshen/example-code | b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3 | [
"MIT"
] | 5,651 | 2015-01-06T21:58:46.000Z | 2022-03-31T13:39:07.000Z | attic/concurrency/timer2.py | matteoshen/example-code | b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3 | [
"MIT"
] | 42 | 2016-12-11T19:17:11.000Z | 2021-11-23T19:41:16.000Z | attic/concurrency/timer2.py | matteoshen/example-code | b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3 | [
"MIT"
] | 2,394 | 2015-01-18T10:57:38.000Z | 2022-03-31T11:41:12.000Z | import asyncio
import sys
import contextlib
def main():
with contextlib.closing(asyncio.get_event_loop()) as loop:
dots_task = asyncio.Task(dots())
coros = [show_remaining(dots_task), dots_task]
loop.run_until_complete(asyncio.wait(coros))
if __name__ == '__main__':
main()
| 22.774194 | 62 | 0.634561 |
124d0147a05244a749391c0acf979893ea8c65d5 | 6,372 | py | Python | nexpose_rest/nexpose_policy.py | Patralos/nexpose-rest | c03431a408afd1528b0ca5a00859467574953ea0 | [
"MIT"
] | null | null | null | nexpose_rest/nexpose_policy.py | Patralos/nexpose-rest | c03431a408afd1528b0ca5a00859467574953ea0 | [
"MIT"
] | null | null | null | nexpose_rest/nexpose_policy.py | Patralos/nexpose-rest | c03431a408afd1528b0ca5a00859467574953ea0 | [
"MIT"
] | null | null | null | from nexpose_rest.nexpose import _GET
| 37.482353 | 164 | 0.694131 |
124f69015efa6812e6854a40b97d1f640b2aa516 | 3,785 | py | Python | cybld/cybld_command_stats.py | dcvetko/cybld | 678979543bb3b1f6be696ae9ae2c97ba4d17bc8a | [
"MIT"
] | null | null | null | cybld/cybld_command_stats.py | dcvetko/cybld | 678979543bb3b1f6be696ae9ae2c97ba4d17bc8a | [
"MIT"
] | null | null | null | cybld/cybld_command_stats.py | dcvetko/cybld | 678979543bb3b1f6be696ae9ae2c97ba4d17bc8a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# --------------------------------------------------------------------------
#
# MIT License
#
# --------------------------------------------------------------------------
from cybld import cybld_helpers
# --------------------------------------------------------------------------
# --------------... | 32.076271 | 87 | 0.566182 |
124f826646c61b86d4bd5ee114177b7081ca0f74 | 130 | py | Python | core/src/zeit/content/article/edit/browser/interfaces.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/content/article/edit/browser/interfaces.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | src/zeit/content/article/edit/browser/interfaces.py | ZeitOnline/zeit.content.article | 4375baec7e7ff1f013402f4b920cc37305e44379 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | import zope.interface
| 21.666667 | 62 | 0.753846 |
124f9adbc3629f60192bbc345789c5fe360c9cdf | 190 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/utils/context_processor.py | abahnihi/kn-django-cookiecutter | bf85aa47b6aae450d25551fdf68c943f41b5c6bd | [
"MIT"
] | 2 | 2020-07-26T07:33:08.000Z | 2020-08-14T09:40:21.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/utils/context_processor.py | abahnihi/kn-django-cookiecutter | bf85aa47b6aae450d25551fdf68c943f41b5c6bd | [
"MIT"
] | 7 | 2020-02-12T01:19:42.000Z | 2022-03-11T23:26:05.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/utils/context_processor.py | abahnihi/kn-django-cookiecutter | bf85aa47b6aae450d25551fdf68c943f41b5c6bd | [
"MIT"
] | 9 | 2020-09-22T10:42:23.000Z | 2021-07-28T05:52:26.000Z | from django.conf import settings
| 19 | 58 | 0.763158 |
12545f6564e3ca3f83db07ea8b386b6c9ab46b3f | 4,256 | py | Python | src/search/src/search-service/app.py | Young-ook/retail-demo-store | c54108d5d56566f766514cab77ee68e91b202360 | [
"MIT-0"
] | 1 | 2021-04-26T14:29:36.000Z | 2021-04-26T14:29:36.000Z | src/search/src/search-service/app.py | Young-ook/retail-demo-store | c54108d5d56566f766514cab77ee68e91b202360 | [
"MIT-0"
] | null | null | null | src/search/src/search-service/app.py | Young-ook/retail-demo-store | c54108d5d56566f766514cab77ee68e91b202360 | [
"MIT-0"
] | 2 | 2021-06-22T12:45:05.000Z | 2021-11-23T22:40:14.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
from aws_xray_sdk.core import xray_recorder
from aws_xray_sdk.ext.flask.middleware import XRayMiddleware
from aws_xray_sdk.core import patch_all
patch_all()
from flask import Flask
from flask import request
from fla... | 29.351724 | 114 | 0.528195 |
1254a9857e6bd6e919dc89f8ba7391c2e619fe3c | 1,605 | py | Python | utils/iou.py | taimur1871/cutter_detect_app | dd4b2251645b1a1c588739fc60e8c943f40b70df | [
"MIT"
] | null | null | null | utils/iou.py | taimur1871/cutter_detect_app | dd4b2251645b1a1c588739fc60e8c943f40b70df | [
"MIT"
] | null | null | null | utils/iou.py | taimur1871/cutter_detect_app | dd4b2251645b1a1c588739fc60e8c943f40b70df | [
"MIT"
] | 1 | 2022-01-19T03:17:26.000Z | 2022-01-19T03:17:26.000Z | # check for duplicate detections
import numpy as np
| 30.283019 | 68 | 0.58567 |
1254d16c4e176a58c1a20487d3f11f36c8056c00 | 256 | py | Python | tests/i18n/patterns/urls/path_unused.py | webjunkie/django | 5dbca13f3baa2e1bafd77e84a80ad6d8a074712e | [
"BSD-3-Clause"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/lib/django-1.5/tests/regressiontests/i18n/patterns/urls/path_unused.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/lib/django-1.5/tests/regressiontests/i18n/patterns/urls/path_unused.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | from django.conf.urls import url
from django.conf.urls import patterns
from django.views.generic import TemplateView
view = TemplateView.as_view(template_name='dummy.html')
urlpatterns = patterns('',
url(r'^nl/foo/', view, name='not-translated'),
)
| 23.272727 | 55 | 0.753906 |
12569e9c0d171a9d7527cfe600f2b89b30a16992 | 222 | py | Python | backend/profiles/serializers.py | stevethompsonstar/django-react-blog | 88af926454901c826acc9e2996addd0d53b0626a | [
"MIT"
] | 592 | 2017-03-07T04:29:08.000Z | 2020-09-21T00:36:58.000Z | backend/profiles/serializers.py | stevethompsonstar/django-react-blog | 88af926454901c826acc9e2996addd0d53b0626a | [
"MIT"
] | 8 | 2017-03-08T01:22:36.000Z | 2020-08-20T15:45:42.000Z | backend/profiles/serializers.py | stevethompsonstar/django-react-blog | 88af926454901c826acc9e2996addd0d53b0626a | [
"MIT"
] | 102 | 2017-03-07T05:42:47.000Z | 2020-08-28T20:02:20.000Z | from rest_framework import serializers
from .models import Subscriber
| 20.181818 | 56 | 0.662162 |
1256d712ac9ca51e3deef82acc5b59bca5098eea | 4,592 | py | Python | src/opendr/perception/activity_recognition/datasets/utils/transforms.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 3 | 2021-06-24T01:54:25.000Z | 2021-12-12T16:21:24.000Z | src/opendr/perception/activity_recognition/datasets/utils/transforms.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 79 | 2021-06-23T10:40:10.000Z | 2021-12-16T07:59:42.000Z | src/opendr/perception/activity_recognition/datasets/utils/transforms.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 5 | 2021-07-04T07:38:50.000Z | 2021-12-12T16:18:47.000Z | # Copyright 2020-2021 OpenDR Project
#
# 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... | 37.950413 | 107 | 0.635017 |
1257bf72104e89e7cfc8426086636e97ad97788b | 799 | py | Python | coinbase/models/util.py | EU-institution/coinbase_python | 1e0d5d162cb40c1094775ceb5c267a5bdedf0949 | [
"Unlicense",
"MIT"
] | 53 | 2015-01-05T08:42:17.000Z | 2022-03-01T20:52:41.000Z | coinbase/models/util.py | EU-institution/coinbase_python | 1e0d5d162cb40c1094775ceb5c267a5bdedf0949 | [
"Unlicense",
"MIT"
] | 10 | 2015-01-08T04:09:25.000Z | 2021-10-08T21:43:17.000Z | coinbase/models/util.py | mhluongo/coinbase_python | 2e29d4fa1c501495b41005bbcc770cb29fba6ad1 | [
"MIT",
"Unlicense"
] | 34 | 2016-09-18T23:18:44.000Z | 2022-02-19T17:31:05.000Z | import collections
try:
stringtype = basestring # python 2
except:
stringtype = str # python 3
| 24.212121 | 63 | 0.625782 |
1258185b72665406006c911438c249e31103916b | 632 | py | Python | main.py | Spain-AI/dark_helper | c2a5d774b455b2a374d6ca5e2715f7a560f5fe5b | [
"Apache-2.0"
] | null | null | null | main.py | Spain-AI/dark_helper | c2a5d774b455b2a374d6ca5e2715f7a560f5fe5b | [
"Apache-2.0"
] | 8 | 2020-11-13T18:59:55.000Z | 2022-03-12T00:39:43.000Z | main.py | Spain-AI/dark_helper | c2a5d774b455b2a374d6ca5e2715f7a560f5fe5b | [
"Apache-2.0"
] | 1 | 2020-07-10T19:16:37.000Z | 2020-07-10T19:16:37.000Z | from capture_monitor import CaptureMonitor
from face_lib import FaceSystem
from visualizer import Visualizer #MainWindow
#from PyQt5 import QtCore, QtGui, QtWidgets
import os
monitor = CaptureMonitor(bb=(0, 0, 600, 480))
face_system = FaceSystem(os.path.abspath("./bio/bio.json"))
if __name__ == '__main__':
# app = Q... | 23.407407 | 59 | 0.738924 |
12582c39f2a4992d63610ad2f63f31ac78eb799c | 4,454 | py | Python | tests/mixins.py | armstrong/armstrong.apps.embeds | 6042f4ab39e752c4e78826e44f7c2aa82bc04e6a | [
"Apache-2.0"
] | 1 | 2016-08-02T09:33:35.000Z | 2016-08-02T09:33:35.000Z | tests/mixins.py | armstrong/armstrong.apps.embeds | 6042f4ab39e752c4e78826e44f7c2aa82bc04e6a | [
"Apache-2.0"
] | null | null | null | tests/mixins.py | armstrong/armstrong.apps.embeds | 6042f4ab39e752c4e78826e44f7c2aa82bc04e6a | [
"Apache-2.0"
] | 1 | 2018-03-04T20:30:15.000Z | 2018-03-04T20:30:15.000Z | import fudge
from armstrong.apps.embeds.mixins import TemplatesByEmbedTypeMixin
from .support.models import Parent, Child, TypeModel
from ._utils import TestCase
| 41.626168 | 84 | 0.662101 |
12597459b30dbd3bd8a1d404996a35025ae53e68 | 196 | py | Python | app/api/__init__.py | correaleyval/Telezon-S3 | 1a6de581c73f7b2391207bfd717f0dfc42de0223 | [
"MIT"
] | 12 | 2021-03-18T20:42:19.000Z | 2021-06-08T18:43:05.000Z | app/api/__init__.py | luiscib3r/Telezon-S3 | 1a6de581c73f7b2391207bfd717f0dfc42de0223 | [
"MIT"
] | 1 | 2021-03-19T14:08:51.000Z | 2021-03-19T23:09:55.000Z | app/api/__init__.py | luiscib3r/Telezon-S3 | 1a6de581c73f7b2391207bfd717f0dfc42de0223 | [
"MIT"
] | 1 | 2021-04-11T04:35:14.000Z | 2021-04-11T04:35:14.000Z | from fastapi import APIRouter
from app.api.auth import router as auth
from app.api.v1 import router as v1
router = APIRouter(prefix='/api')
router.include_router(auth)
router.include_router(v1)
| 21.777778 | 39 | 0.795918 |
125c6575edea789ef3f36e0a837caccf4d5a15ab | 1,439 | py | Python | TestData/Soccer/ImageDownloader.py | hundyoung/yolo3_keras | e0f306e579c2a1515e9e9eedaeabc2fb4a9773eb | [
"MIT"
] | null | null | null | TestData/Soccer/ImageDownloader.py | hundyoung/yolo3_keras | e0f306e579c2a1515e9e9eedaeabc2fb4a9773eb | [
"MIT"
] | null | null | null | TestData/Soccer/ImageDownloader.py | hundyoung/yolo3_keras | e0f306e579c2a1515e9e9eedaeabc2fb4a9773eb | [
"MIT"
] | null | null | null | import requests
import urllib
import os
import re
from bs4 import BeautifulSoup
import json
# save_path = "./foul/"
save_path = "./non_foul/"
url="https://images.api.press.net/api/v2/search/?category=A,S,E&ck=public&cond=not&crhPriority=1&fields_0=all&fields_1=all&imagesonly=1&limit=2000&orientation=both&page=1&q=foo... | 34.261905 | 268 | 0.71647 |
125d654e6f98cfb2e9d1009b4b18f7574fef6306 | 785 | py | Python | twitchchatbot/lib/commands/addcom.py | Amperture/twitch-sbc-integration | 71ee86688a7735e6bb3d18c9896c1b8c7a3662d7 | [
"MIT"
] | 10 | 2017-04-20T15:15:51.000Z | 2021-11-17T20:08:01.000Z | twitchchatbot/lib/commands/addcom.py | Amperture/twitch-sbc-integration | 71ee86688a7735e6bb3d18c9896c1b8c7a3662d7 | [
"MIT"
] | null | null | null | twitchchatbot/lib/commands/addcom.py | Amperture/twitch-sbc-integration | 71ee86688a7735e6bb3d18c9896c1b8c7a3662d7 | [
"MIT"
] | 2 | 2020-02-08T04:15:43.000Z | 2021-11-04T09:18:43.000Z | from twitchchatbot.lib.commands.parsing import commands
import json
| 26.166667 | 77 | 0.540127 |
125da2debfb3bcd25523d38067e1548fefba9b8b | 858 | py | Python | fog/fog-client/setup.py | breakEval13/tor_dev | 1040d906474d1da463f4de57b3c5f72ae14f550d | [
"Apache-2.0"
] | 1 | 2020-07-21T01:23:28.000Z | 2020-07-21T01:23:28.000Z | fog/fog-client/setup.py | breakEval13/tor_dev | 1040d906474d1da463f4de57b3c5f72ae14f550d | [
"Apache-2.0"
] | null | null | null | fog/fog-client/setup.py | breakEval13/tor_dev | 1040d906474d1da463f4de57b3c5f72ae14f550d | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
import py2exe
# if py2exe complains "can't find P", try one of the following workarounds:
#
# a. py2exe doesn't support zipped eggs - http://www.py2exe.org/index.cgi/ExeWithEggs
# You should give the --always-unzip option to easy_install, or you can use setup.py directly
# $ python s... | 35.75 | 94 | 0.67366 |
125f0b131e3fd90aefb488268f7b2509f369413b | 16,807 | py | Python | generate_imagery.py | AnthonyLapadula/pytorch-GANs | 81e5138a0e1e97c35a29b9d3ac6a79de6e9dfd6f | [
"MIT"
] | 278 | 2020-09-07T20:17:47.000Z | 2021-01-31T10:24:33.000Z | generate_imagery.py | AnthonyLapadula/pytorch-GANs | 81e5138a0e1e97c35a29b9d3ac6a79de6e9dfd6f | [
"MIT"
] | 1 | 2020-09-08T08:49:15.000Z | 2020-09-09T07:51:02.000Z | generate_imagery.py | AnthonyLapadula/pytorch-GANs | 81e5138a0e1e97c35a29b9d3ac6a79de6e9dfd6f | [
"MIT"
] | 23 | 2020-09-07T21:50:29.000Z | 2021-01-08T01:25:26.000Z | import os
import shutil
import argparse
import torch
from torch import nn
from torchvision.utils import save_image, make_grid
import matplotlib.pyplot as plt
import numpy as np
import cv2 as cv
import utils.utils as utils
from utils.constants import *
def spherical_interpolation(t, p0, p1):
""" Spherical... | 51.873457 | 187 | 0.699292 |
125fa03a8c2ad33884edfc2ff0b21e48fff11c77 | 2,207 | py | Python | toontown/dmenu/DMenuDisclaimer.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 1 | 2018-06-16T23:06:38.000Z | 2018-06-16T23:06:38.000Z | toontown/dmenu/DMenuDisclaimer.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | toontown/dmenu/DMenuDisclaimer.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | 4 | 2019-06-20T23:45:23.000Z | 2020-10-14T20:30:15.000Z | from direct.gui.DirectGui import OnscreenText, DirectButton
from panda3d.core import *
from direct.interval.IntervalGlobal import *
from direct.showbase.DirectObject import DirectObject
from toontown.toonbase import ToontownGlobals | 63.057143 | 329 | 0.660172 |
125fbe96b358bea289f744b98621a56277d4b0a4 | 7,012 | py | Python | geomloss/sinkhorn_images.py | ismedina/geomloss | bbd6289a139174effedb6855e1e992eb77772c67 | [
"MIT"
] | null | null | null | geomloss/sinkhorn_images.py | ismedina/geomloss | bbd6289a139174effedb6855e1e992eb77772c67 | [
"MIT"
] | null | null | null | geomloss/sinkhorn_images.py | ismedina/geomloss | bbd6289a139174effedb6855e1e992eb77772c67 | [
"MIT"
] | null | null | null | import torch
from .utils import log_dens, pyramid, upsample, softmin_grid
from .sinkhorn_divergence import epsilon_schedule, scaling_parameters
from .sinkhorn_divergence import sinkhorn_cost, sinkhorn_loop
def sinkhorn_divergence(
a,
b,
p=2,
blur=None,
reach=None,
axes=None,
scaling=0.5,
... | 36.331606 | 100 | 0.591557 |
125ff27f92e4698c1a23719a23bf8d2e592956d2 | 31,947 | py | Python | time_trials/indexedvalues_timetrials.py | eric-s-s/share-with-z | 60a4c9788085ba55c6214114447e1c16bc49f7ce | [
"MIT"
] | 5 | 2016-07-29T18:28:04.000Z | 2019-06-17T19:49:11.000Z | time_trials/indexedvalues_timetrials.py | eric-s-s/dice-tables | 60a4c9788085ba55c6214114447e1c16bc49f7ce | [
"MIT"
] | 16 | 2015-11-12T02:13:30.000Z | 2020-12-05T21:35:00.000Z | time_trials/indexedvalues_timetrials.py | eric-s-s/dice-tables | 60a4c9788085ba55c6214114447e1c16bc49f7ce | [
"MIT"
] | null | null | null | """a module solely for finding how add_a_list and add_tuple_list compare.
it's effectively the empirical proof for how LongIntTable.add() chooses
the fastest method with it's get_fastest_method() function."""
from __future__ import print_function
from math import log10
import time
import random
from os import getcwd
... | 39.538366 | 120 | 0.644348 |
12613531f2e6b78eb8019166a8391274bea54aaa | 14,814 | py | Python | orangecontrib/wonder/widgets/wonder/ow_lorentz_polarization.py | WONDER-project/OASYS1-WONDER | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | [
"Unlicense"
] | null | null | null | orangecontrib/wonder/widgets/wonder/ow_lorentz_polarization.py | WONDER-project/OASYS1-WONDER | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | [
"Unlicense"
] | null | null | null | orangecontrib/wonder/widgets/wonder/ow_lorentz_polarization.py | WONDER-project/OASYS1-WONDER | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# #########################################################################
# Copyright (c) 2020, UChicago Argonne, LLC. All rights reserved. #
# #
# Copyright 2020. UChicago Argonne, LLC. This ... | 56.976923 | 201 | 0.64115 |
126232b6ea1b59bc9e926fc7b1a66519b1a1e9b1 | 2,891 | py | Python | tests/test_local_tile_server.py | FlorianPignol/telluric | 285c7e195b2da630b4c76f2552465a424bcdaeb2 | [
"MIT"
] | null | null | null | tests/test_local_tile_server.py | FlorianPignol/telluric | 285c7e195b2da630b4c76f2552465a424bcdaeb2 | [
"MIT"
] | null | null | null | tests/test_local_tile_server.py | FlorianPignol/telluric | 285c7e195b2da630b4c76f2552465a424bcdaeb2 | [
"MIT"
] | null | null | null | from os import path
from unittest import mock
from common_for_tests import make_test_raster
from tornado.testing import gen_test, AsyncHTTPTestCase
from tornado.concurrent import Future
import telluric as tl
from telluric.util.local_tile_server import TileServer, make_app, TileServerHandler
tiles = [(131072, 131072, ... | 38.546667 | 97 | 0.662746 |
12630eab0d2633dd229a8455f46121e72a20a96c | 437 | py | Python | skypy/galaxies/__init__.py | itrharrison/skypy-itrharrison | cea1f02d1b2cd3b689266d7ae9bca1a4cfe986a2 | [
"BSD-3-Clause"
] | 88 | 2020-04-06T15:48:17.000Z | 2022-02-16T12:01:54.000Z | skypy/galaxies/__init__.py | itrharrison/skypy-itrharrison | cea1f02d1b2cd3b689266d7ae9bca1a4cfe986a2 | [
"BSD-3-Clause"
] | 332 | 2020-04-04T07:30:08.000Z | 2022-03-30T14:49:08.000Z | skypy/galaxies/__init__.py | itrharrison/skypy-itrharrison | cea1f02d1b2cd3b689266d7ae9bca1a4cfe986a2 | [
"BSD-3-Clause"
] | 41 | 2020-04-03T13:50:43.000Z | 2022-03-24T16:10:03.000Z | """
This module contains methods that model the intrinsic properties of galaxy
populations.
"""
__all__ = [
'schechter_lf',
]
from . import luminosity # noqa F401,F403
from . import morphology # noqa F401,F403
from . import redshift # noqa F401,F403
from . import spectrum # noqa F401,F403
from . import stella... | 24.277778 | 74 | 0.743707 |
1263a63dc231b8ecbb32bb0b79ff0d5017758d64 | 84 | py | Python | tests/__init__.py | s-leroux/sql-moins | beb65300e4602a0d1dcaccf534df39c071060d40 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | s-leroux/sql-moins | beb65300e4602a0d1dcaccf534df39c071060d40 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | s-leroux/sql-moins | beb65300e4602a0d1dcaccf534df39c071060d40 | [
"Apache-2.0"
] | null | null | null | from tests.parser import *
from tests.formatter import *
from tests.utils import *
| 16.8 | 29 | 0.77381 |
126834642203c16a6f094647812a7f04fd742d0c | 853 | py | Python | appshell/endpoints.py | adh/appshell | 94901df8045336e3217eb2fd5eae77cb7c639340 | [
"MIT"
] | 3 | 2015-08-21T22:22:52.000Z | 2018-07-14T03:32:51.000Z | appshell/endpoints.py | adh/appshell | 94901df8045336e3217eb2fd5eae77cb7c639340 | [
"MIT"
] | null | null | null | appshell/endpoints.py | adh/appshell | 94901df8045336e3217eb2fd5eae77cb7c639340 | [
"MIT"
] | 1 | 2015-08-21T22:22:57.000Z | 2015-08-21T22:22:57.000Z | from appshell.base import View
from appshell.templates import confirmation, message
from flask import request, flash, redirect
from flask_babelex import Babel, Domain
mydomain = Domain('appshell')
_ = mydomain.gettext
lazy_gettext = mydomain.lazy_gettext
| 25.848485 | 58 | 0.629543 |
12684e56d013768e4b5f7ed73f9dc1448a2cbf04 | 2,679 | py | Python | flask_cc_api/utils/requests_utils.py | suAdminWen/cc-api | a00d9b82583fae57a3cd92ec0478d434f141f172 | [
"MIT"
] | 6 | 2019-03-04T03:08:07.000Z | 2019-07-16T13:43:12.000Z | flask_cc_api/utils/requests_utils.py | suAdminWen/cc-api | a00d9b82583fae57a3cd92ec0478d434f141f172 | [
"MIT"
] | 1 | 2021-11-22T15:02:09.000Z | 2021-11-22T15:02:09.000Z | flask_cc_api/utils/requests_utils.py | suAdminWen/cc-api | a00d9b82583fae57a3cd92ec0478d434f141f172 | [
"MIT"
] | 1 | 2019-07-01T01:01:27.000Z | 2019-07-01T01:01:27.000Z | from flask import g, request
from flask_restful import reqparse
from werkzeug import datastructures
from ..exceptions.system_error import SystemError
from ..exceptions.system_exception import SystemException
from ..exceptions.service_error import ServiceError
from ..exceptions.service_exception import ServiceException... | 37.208333 | 92 | 0.679731 |
126906c97bbb7a462f9c0fa424b98a75ba2bd8b2 | 3,422 | py | Python | grouper_lib/parent.py | Saevon/Recipes | ab8ca9b5244805d545da2dd1d80d249f1ec6057d | [
"MIT"
] | null | null | null | grouper_lib/parent.py | Saevon/Recipes | ab8ca9b5244805d545da2dd1d80d249f1ec6057d | [
"MIT"
] | null | null | null | grouper_lib/parent.py | Saevon/Recipes | ab8ca9b5244805d545da2dd1d80d249f1ec6057d | [
"MIT"
] | null | null | null | import itertools
| 29.756522 | 105 | 0.585622 |
126a9e516f4b1e45a50ac7e8798792874a6e0626 | 2,385 | py | Python | tests/test_memory.py | Lewuathe/algernon | 23d3aef69d701ddd33cd90451ec8738032396430 | [
"MIT"
] | null | null | null | tests/test_memory.py | Lewuathe/algernon | 23d3aef69d701ddd33cd90451ec8738032396430 | [
"MIT"
] | null | null | null | tests/test_memory.py | Lewuathe/algernon | 23d3aef69d701ddd33cd90451ec8738032396430 | [
"MIT"
] | null | null | null | from algernon.memory import Memory
import pytest
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense
from keras.optimizers import sgd
| 31.381579 | 88 | 0.635639 |
126d6c2189f9741ed9c6b294aeb788442cc5308c | 4,235 | py | Python | m2critic/parse.py | z33kz33k/m2critic | c57914a53286e10a2082406379aa2535164a1e49 | [
"MIT"
] | null | null | null | m2critic/parse.py | z33kz33k/m2critic | c57914a53286e10a2082406379aa2535164a1e49 | [
"MIT"
] | null | null | null | m2critic/parse.py | z33kz33k/m2critic | c57914a53286e10a2082406379aa2535164a1e49 | [
"MIT"
] | null | null | null | """
m2critic.parse
~~~~~~~~~~~~~~~
Scrape page.
@author: z33k
"""
from pathlib import Path
from typing import List, Tuple
from bs4 import BeautifulSoup
from bs4.element import Tag
from m2critic import BasicUser
FORBIDDENSTR = "403 Forbidden"
class UserPageParser(PageParser):
"""Parse use... | 31.37037 | 85 | 0.608501 |
126f3570c8ca400c14dbf8aadb5953428e90972f | 86 | py | Python | droidlet/dialog/robot/dialogue_objects/__init__.py | CowherdChris/droidlet | 8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1 | [
"MIT"
] | null | null | null | droidlet/dialog/robot/dialogue_objects/__init__.py | CowherdChris/droidlet | 8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1 | [
"MIT"
] | null | null | null | droidlet/dialog/robot/dialogue_objects/__init__.py | CowherdChris/droidlet | 8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1 | [
"MIT"
] | null | null | null | from .loco_dialogue_object import LocoBotCapabilities
__all__ = [LocoBotCapabilities] | 28.666667 | 53 | 0.872093 |
126fc6c0e704141c3768c167da733628103ad816 | 248 | py | Python | yo_fluq_ds/_fluq/_common.py | okulovsky/yo_ds | 9e1fa2e7a1b9746c3982afc152c024169fec45ca | [
"MIT"
] | 16 | 2019-09-26T09:05:42.000Z | 2021-02-04T01:39:09.000Z | yo_fluq_ds/_fluq/_common.py | okulovsky/yo_ds | 9e1fa2e7a1b9746c3982afc152c024169fec45ca | [
"MIT"
] | 2 | 2019-10-23T19:01:23.000Z | 2020-06-11T09:08:45.000Z | yo_fluq_ds/_fluq/_common.py | okulovsky/yo_ds | 9e1fa2e7a1b9746c3982afc152c024169fec45ca | [
"MIT"
] | 2 | 2019-09-26T09:05:50.000Z | 2019-10-23T18:46:11.000Z | from .._common import *
from yo_fluq import *
Queryable = lambda *args, **kwargs: FlupFactory.QueryableFactory(*args, **kwargs)
T = TypeVar('T')
TOut = TypeVar('TOut')
TKey = TypeVar('TKey')
TValue = TypeVar('TValue')
TFactory = TypeVar('TFactory') | 31 | 81 | 0.71371 |
127066403d0bd62ed2b3f09d8857586e3f55d73e | 7,423 | py | Python | tools/BlenderProc/src/object/ObjectPoseSampler.py | GeorgSchenzel/pose-detector | 32aff471e2591726bbe52140915255af6dc4f1a1 | [
"MIT"
] | null | null | null | tools/BlenderProc/src/object/ObjectPoseSampler.py | GeorgSchenzel/pose-detector | 32aff471e2591726bbe52140915255af6dc4f1a1 | [
"MIT"
] | null | null | null | tools/BlenderProc/src/object/ObjectPoseSampler.py | GeorgSchenzel/pose-detector | 32aff471e2591726bbe52140915255af6dc4f1a1 | [
"MIT"
] | null | null | null | import bpy
import mathutils
from src.main.Module import Module
from src.utility.BlenderUtility import check_intersection, check_bb_intersection, get_all_mesh_objects
| 41.937853 | 116 | 0.580224 |
1271a5b636e4e2a4b34227856118cd1f4633a6d6 | 872 | py | Python | models.py | harmonyinnovationhub/project-beta | f98a08972ffb9c01123aa4849dc06a8b0beec171 | [
"MIT"
] | null | null | null | models.py | harmonyinnovationhub/project-beta | f98a08972ffb9c01123aa4849dc06a8b0beec171 | [
"MIT"
] | null | null | null | models.py | harmonyinnovationhub/project-beta | f98a08972ffb9c01123aa4849dc06a8b0beec171 | [
"MIT"
] | null | null | null | from core import app
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
db = SQLAlchemy(app)
migrate = Migrate(app, db)
# user table
| 28.129032 | 49 | 0.692661 |
1272e8c25f35ec0988e71a71e9975672d9b50122 | 6,285 | py | Python | create_swag/lm/load_data.py | gauravkmr/swagaf | 0613674cca3612664c3a77a7d26a888ca7d3b127 | [
"MIT"
] | 182 | 2018-08-10T23:40:41.000Z | 2022-03-25T11:23:17.000Z | create_swag/lm/load_data.py | gauravkmr/swagaf | 0613674cca3612664c3a77a7d26a888ca7d3b127 | [
"MIT"
] | 3 | 2018-10-08T02:35:56.000Z | 2019-11-19T23:24:22.000Z | create_swag/lm/load_data.py | gauravkmr/swagaf | 0613674cca3612664c3a77a7d26a888ca7d3b127 | [
"MIT"
] | 40 | 2018-08-18T14:50:55.000Z | 2022-03-07T23:49:54.000Z | # First make the vocabulary, etc.
import os
import pickle as pkl
import random
import simplejson as json
from allennlp.common.util import get_spacy_model
from allennlp.data import Instance
from allennlp.data import Token
from allennlp.data import Vocabulary
from allennlp.data.dataset import Batch
from allennlp.data.f... | 41.622517 | 118 | 0.590294 |
12732154001636677778fe83629d7b02a01b585b | 148 | py | Python | psana/psana/momentum/Energy.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psana/psana/momentum/Energy.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psana/psana/momentum/Energy.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | import numpy as np
| 24.666667 | 65 | 0.668919 |
12732acde8058d66a7523c9ed83348d21998d829 | 357 | py | Python | timer.py | davidbarkhuizen/simagora | 43d44dc058adcde4738574cb1132abaa02e6516e | [
"MIT"
] | 1 | 2017-04-30T23:31:43.000Z | 2017-04-30T23:31:43.000Z | timer.py | davidbarkhuizen/simagora | 43d44dc058adcde4738574cb1132abaa02e6516e | [
"MIT"
] | null | null | null | timer.py | davidbarkhuizen/simagora | 43d44dc058adcde4738574cb1132abaa02e6516e | [
"MIT"
] | null | null | null | from time import clock
import logging
#~ class Timer(object):
#~
#~ def start(self,s):
#~ self.s = s
#~ self.started = clock()
#~
#~ def stop(self):
#~ self.stopped = clock()
#~ t = self.stopped - self.started
#~ self.log(t)
#~
#~ def log(self, t):
#~ line = self.s + ',... | 19.833333 | 38 | 0.504202 |
89bf882df35c847766d8e10365b7efa85c803827 | 173 | py | Python | prototype/data/datasets/__init__.py | Sense-GVT/BigPretrain | d8d9b43d94dd1364c18c1e5ba21b85a31cdbba9e | [
"Apache-2.0"
] | 8 | 2021-10-18T05:11:55.000Z | 2021-11-10T11:54:13.000Z | prototype/data/datasets/__init__.py | Sense-GVT/BigPretrain | d8d9b43d94dd1364c18c1e5ba21b85a31cdbba9e | [
"Apache-2.0"
] | null | null | null | prototype/data/datasets/__init__.py | Sense-GVT/BigPretrain | d8d9b43d94dd1364c18c1e5ba21b85a31cdbba9e | [
"Apache-2.0"
] | 1 | 2021-09-10T03:17:19.000Z | 2021-09-10T03:17:19.000Z | from .imagenet_dataset import ImageNetDataset, RankedImageNetDataset # noqa
from .custom_dataset import CustomDataset # noqa
from .imagnetc import ImageNet_C_Dataset
| 28.833333 | 76 | 0.82659 |
89c3edf7f3339956ac7cca062ad64b1b9a40814b | 1,457 | py | Python | setup.py | BCD65/electricityLoadForecasting | 07a6ed060afaf7cc2906c0389b5c9e9b0fede193 | [
"MIT"
] | null | null | null | setup.py | BCD65/electricityLoadForecasting | 07a6ed060afaf7cc2906c0389b5c9e9b0fede193 | [
"MIT"
] | null | null | null | setup.py | BCD65/electricityLoadForecasting | 07a6ed060afaf7cc2906c0389b5c9e9b0fede193 | [
"MIT"
] | null | null | null |
import setuptools
from distutils.core import setup
setup(
name = 'electricityLoadForecasting',
version = '0.1.dev0',
packages = setuptools.find_packages(),
scripts = ['scripts/main_forecasting.py',
'scripts/preprocessing_eCO2mix.p... | 35.536585 | 61 | 0.320522 |
89c4524ab54cd0dacd5f166c3bbe02a8a3454498 | 5,966 | py | Python | google/ads/google_ads/v3/proto/services/shopping_performance_view_service_pb2.py | andy0937/google-ads-python | cb5da7f4a75076828d1fc3524b08cc167670435a | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v3/proto/services/shopping_performance_view_service_pb2.py | andy0937/google-ads-python | cb5da7f4a75076828d1fc3524b08cc167670435a | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v3/proto/services/shopping_performance_view_service_pb2.py | andy0937/google-ads-python | cb5da7f4a75076828d1fc3524b08cc167670435a | [
"Apache-2.0"
] | 1 | 2020-03-13T00:14:31.000Z | 2020-03-13T00:14:31.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/services/shopping_performance_view_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from go... | 53.267857 | 1,127 | 0.826852 |
89c4bc4a43842e2dc017090ed080633222516f16 | 18,930 | py | Python | python-client/trustedanalytics/core/graph.py | skavulya/atk | c83f0bee2530282e39bf28d4a15355561b5eca4d | [
"Apache-2.0"
] | null | null | null | python-client/trustedanalytics/core/graph.py | skavulya/atk | c83f0bee2530282e39bf28d4a15355561b5eca4d | [
"Apache-2.0"
] | null | null | null | python-client/trustedanalytics/core/graph.py | skavulya/atk | c83f0bee2530282e39bf28d4a15355561b5eca4d | [
"Apache-2.0"
] | null | null | null | # vim: set encoding=utf-8
#
# Copyright(c)2015 IntelCorporation
#
# LicensedundertheApacheLicense,Version2.0(the"License");
# youmaynotusethisfileexceptincompliancewiththeLicense.
# YoumayobtainacopyoftheLicenseat
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unlessrequiredbyapplicablelaworagreedtoinwriting... | 32.469983 | 134 | 0.539356 |
89c56780209adbe0387cf368029ab9a32fd8735c | 377 | py | Python | sound_play/scripts/test/test_sound_client.py | iory/audio_common | 1db0394dcef452b93474665ee902ab80c3e7e439 | [
"BSD-3-Clause"
] | 742 | 2017-07-05T02:49:36.000Z | 2022-03-30T12:55:43.000Z | sound_play/scripts/test/test_sound_client.py | iory/audio_common | 1db0394dcef452b93474665ee902ab80c3e7e439 | [
"BSD-3-Clause"
] | 124 | 2015-06-25T22:52:21.000Z | 2022-02-28T15:02:23.000Z | sound_play/scripts/test/test_sound_client.py | iory/audio_common | 1db0394dcef452b93474665ee902ab80c3e7e439 | [
"BSD-3-Clause"
] | 425 | 2017-07-04T22:03:29.000Z | 2022-03-29T06:59:06.000Z | #!/usr/bin/env python
import unittest
import rospy
import rostest
from sound_play.libsoundplay import SoundClient
if __name__ == '__main__':
rostest.rosrun('sound_play', 'test_sound_client', TestCase)
__author__ = 'Felix Duvallet'
| 20.944444 | 63 | 0.745358 |