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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
525a2422bd8be6f7826ece79661f8b6cc564ee5b | 6,337 | py | Python | pyrichlet/weight_models/_pitman_yor_process.py | cabo40/pyrichlet | 941b84e3fcf3c92de2239767e96ee235ff165adb | [
"Apache-2.0"
] | 13 | 2022-02-13T00:33:47.000Z | 2022-03-08T16:28:27.000Z | pyrichlet/weight_models/_pitman_yor_process.py | cabo40/pyrichlet | 941b84e3fcf3c92de2239767e96ee235ff165adb | [
"Apache-2.0"
] | null | null | null | pyrichlet/weight_models/_pitman_yor_process.py | cabo40/pyrichlet | 941b84e3fcf3c92de2239767e96ee235ff165adb | [
"Apache-2.0"
] | null | null | null | from ._base import BaseWeight
from ..exceptions import NotFittedError
from ..utils.functions import mean_log_beta
import numpy as np
from scipy.special import loggamma
| 39.117284 | 79 | 0.515544 |
525a8b00826a337a4c293642d7c027ab056d2b82 | 2,259 | py | Python | nlp/router.py | kirollosHossam/MachineLearningTask | 3780513af04cf7bb97432436b4714c32d1c271e6 | [
"MIT"
] | null | null | null | nlp/router.py | kirollosHossam/MachineLearningTask | 3780513af04cf7bb97432436b4714c32d1c271e6 | [
"MIT"
] | null | null | null | nlp/router.py | kirollosHossam/MachineLearningTask | 3780513af04cf7bb97432436b4714c32d1c271e6 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Dict, List, Optional, Union
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
from nlp.nlp import Trainer
app = FastAPI()
trainer = Trainer()
#BaseModel is used as data validator when using fast api it cares all about exception handilng and ... | 30.527027 | 107 | 0.715803 |
525ce95ea9b89a99563ce003f523651a65ff4155 | 2,359 | py | Python | alibabacloud/endpoint/default_endpoint_resolver.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | null | null | null | alibabacloud/endpoint/default_endpoint_resolver.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | null | null | null | alibabacloud/endpoint/default_endpoint_resolver.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Alibaba Cloud Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 41.385965 | 98 | 0.757948 |
525db5cd98632fab60967c35aa4c83a509cd65b6 | 1,891 | py | Python | src/experiment_collector.py | Context-Aware-Monitoring/Efficient-Stream-Monitoring | f08faaa87ac2ffe74014a9a6e864b641e4a160f5 | [
"MIT"
] | null | null | null | src/experiment_collector.py | Context-Aware-Monitoring/Efficient-Stream-Monitoring | f08faaa87ac2ffe74014a9a6e864b641e4a160f5 | [
"MIT"
] | null | null | null | src/experiment_collector.py | Context-Aware-Monitoring/Efficient-Stream-Monitoring | f08faaa87ac2ffe74014a9a6e864b641e4a160f5 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import glob
import os
import global_config
import yaml
import time
import sys
import collections
if __name__ == "__main__":
filestart = sys.argv[1]
os.chdir(global_config.EXPERIMENT_SERIALIZATION_DIR)
experiment_files = glob.glob("*.yml")
df =pd.DataFrame()
... | 28.651515 | 87 | 0.601269 |
525e027715d3144b67819590485c36cad49673b9 | 1,757 | py | Python | coord2vec/pipelines/lagoon_utils/auto_stage.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | null | null | null | coord2vec/pipelines/lagoon_utils/auto_stage.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | null | null | null | coord2vec/pipelines/lagoon_utils/auto_stage.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | 1 | 2021-01-25T09:21:17.000Z | 2021-01-25T09:21:17.000Z | from typing import Union, List
from lagoon import Stage, Task
from coord2vec.pipelines.lagoon_utils.lambda_task import LambdaTask
| 37.382979 | 87 | 0.660216 |
525e67e026d94931f78e27fc1fb5b2d70f989a43 | 19,045 | py | Python | recipes/Python/576708_DVMVersusCAPM/recipe-576708.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576708_DVMVersusCAPM/recipe-576708.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576708_DVMVersusCAPM/recipe-576708.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #On the name of ALLAH and may the blessing and peace of Allah
#be upon the Messenger of Allah Mohamed Salla Allahu Aliahi Wassalam.
#Author : Fouad Teniou
#Date : 07/03/09
#version :2.6.1
"""
collections module's extras in python 2.6.1 were used in my program, DVMextrapolating
DVMgordonsModel and CAPM subclasses of n... | 35.798872 | 131 | 0.582463 |
525e847c9953f41e6f37f2f968fe49ecb18a88d9 | 141,262 | py | Python | nexinfosys/restful_service/service_main.py | ENVIRO-Module/nis-backend | fd86cf30f79f53cdccddd2a5479507d32f914d4e | [
"BSD-3-Clause"
] | 4 | 2021-04-15T08:45:00.000Z | 2022-02-04T18:12:06.000Z | nexinfosys/restful_service/service_main.py | ENVIRO-Module/nis-backend | fd86cf30f79f53cdccddd2a5479507d32f914d4e | [
"BSD-3-Clause"
] | null | null | null | nexinfosys/restful_service/service_main.py | ENVIRO-Module/nis-backend | fd86cf30f79f53cdccddd2a5479507d32f914d4e | [
"BSD-3-Clause"
] | null | null | null | import binascii
import csv
import io
import json
import logging
import os
import traceback
import urllib
from pathlib import Path
import openpyxl
import pandas as pd
import pyximport
import redis
# from flask import (jsonify, abort, redirect, url_for,
#
# )
from NamedAtomicLock import NamedAtomicLoc... | 38.585632 | 227 | 0.625427 |
525f8b5dc9574fa7b8d0c0648ce46ac800350ccf | 3,198 | py | Python | readthedocs/doc_builder/backends/mkdocs.py | storagebot/readthedocs.org | caaec6c341cfb0e99838386ae65e3042d690e38e | [
"MIT"
] | null | null | null | readthedocs/doc_builder/backends/mkdocs.py | storagebot/readthedocs.org | caaec6c341cfb0e99838386ae65e3042d690e38e | [
"MIT"
] | null | null | null | readthedocs/doc_builder/backends/mkdocs.py | storagebot/readthedocs.org | caaec6c341cfb0e99838386ae65e3042d690e38e | [
"MIT"
] | null | null | null | import os
import shutil
import codecs
import logging
import zipfile
from django.template import Template, Context
from django.contrib.auth.models import SiteProfileNotAvailable
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings
from builds import utils as version_utils
from core.ut... | 38.071429 | 115 | 0.613196 |
52600d13d8ef93a468c1d0ff6267509d796630cf | 1,108 | py | Python | resources/trials/maya/rotateOrderSym.py | adrienparis/Gapalion | 35d66c2d0de05ffb493a4d8753f675999ff9eaab | [
"MIT"
] | null | null | null | resources/trials/maya/rotateOrderSym.py | adrienparis/Gapalion | 35d66c2d0de05ffb493a4d8753f675999ff9eaab | [
"MIT"
] | null | null | null | resources/trials/maya/rotateOrderSym.py | adrienparis/Gapalion | 35d66c2d0de05ffb493a4d8753f675999ff9eaab | [
"MIT"
] | null | null | null | #!/bin/env mayapy
# -- coding: utf-8 --
u"""Ce test vrifie que le transform [LEFT] a bien le mme rotateOrder que le transform [RIGHT]
Les [does not exist] indique un problme dans la nomenclature des noms et donc qu'il ne peut tester la symtrie des rotateOrders"""
__author__ = "Adrien PARIS"
__email__ = "a.... | 34.625 | 131 | 0.548736 |
5260b4128c7ce3de3c890338aef16057091e2b2c | 898 | py | Python | prompt2.py | lreicher/astr-19 | 1fed38bdc76c2033d97084e35fce3585148f0917 | [
"MIT"
] | null | null | null | prompt2.py | lreicher/astr-19 | 1fed38bdc76c2033d97084e35fce3585148f0917 | [
"MIT"
] | 1 | 2022-03-31T17:57:09.000Z | 2022-03-31T18:04:56.000Z | prompt2.py | lreicher/astr-19 | 1fed38bdc76c2033d97084e35fce3585148f0917 | [
"MIT"
] | null | null | null | # Lucas Reicher Prompt #3 - Coding Journal #1
if __name__ == "__main__":
main()
| 29.933333 | 119 | 0.567929 |
5261c07136e65ccd2846c650bf8fdec8aaae6fb9 | 7,575 | py | Python | kinbot/hir.py | rubenvdvijver/KinBot | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | [
"BSD-3-Clause"
] | null | null | null | kinbot/hir.py | rubenvdvijver/KinBot | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | [
"BSD-3-Clause"
] | null | null | null | kinbot/hir.py | rubenvdvijver/KinBot | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | [
"BSD-3-Clause"
] | null | null | null | ###################################################
## ##
## This file is part of the KinBot code v2.0 ##
## ##
## The contents are covered by the terms of the ##
## BSD 3-clause license included in the LICENSE ##
## file,... | 38.451777 | 134 | 0.525413 |
52634bcaed64b83728892e97207f26eb73bea3e6 | 21,504 | py | Python | data/ffnet.py | starrybouquet/sj-fanfic-recs | c2120c1461f53947cba4b5c5bdec634ae2b0b144 | [
"MIT"
] | null | null | null | data/ffnet.py | starrybouquet/sj-fanfic-recs | c2120c1461f53947cba4b5c5bdec634ae2b0b144 | [
"MIT"
] | null | null | null | data/ffnet.py | starrybouquet/sj-fanfic-recs | c2120c1461f53947cba4b5c5bdec634ae2b0b144 | [
"MIT"
] | null | null | null | import re, requests, bs4, unicodedata
from datetime import timedelta, date, datetime
from time import time
# Constants
root = 'https://www.fanfiction.net'
# REGEX MATCHES
# STORY REGEX
_STORYID_REGEX = r"var\s+storyid\s*=\s*(\d+);"
_CHAPTER_REGEX = r"var\s+chapter\s*=\s*(\d+);"
_CHAPTERS_REGEX = r"Chapters:\s*(\d+)\... | 39.098182 | 248 | 0.606213 |
52638e3a09f767e9f0fd09e303642391fc9189e4 | 1,506 | py | Python | maglearn_back/database.py | maglearn/maglearn-back | cb5d8623f26e207b870c09c80cbc59911ab23794 | [
"MIT"
] | null | null | null | maglearn_back/database.py | maglearn/maglearn-back | cb5d8623f26e207b870c09c80cbc59911ab23794 | [
"MIT"
] | null | null | null | maglearn_back/database.py | maglearn/maglearn-back | cb5d8623f26e207b870c09c80cbc59911ab23794 | [
"MIT"
] | null | null | null | import sqlite3
from datetime import datetime
import click
from flask import current_app, g
from flask.cli import with_appcontext
from flask_sqlalchemy import SQLAlchemy, Model
from sqlalchemy import Column, Integer, TIMESTAMP, Boolean
db = SQLAlchemy(model_class=Base)
def get_db():
"""Creates if needed, store... | 23.904762 | 78 | 0.687915 |
52643d3c51f0d9cbab7251a5238d3b6d7605e95b | 5,667 | py | Python | legacy/models/ioc_mlp.py | gsc2001/ConvexNet | a17609bd5bca0a02b6330b1ad8035f2b280109f0 | [
"MIT"
] | null | null | null | legacy/models/ioc_mlp.py | gsc2001/ConvexNet | a17609bd5bca0a02b6330b1ad8035f2b280109f0 | [
"MIT"
] | null | null | null | legacy/models/ioc_mlp.py | gsc2001/ConvexNet | a17609bd5bca0a02b6330b1ad8035f2b280109f0 | [
"MIT"
] | null | null | null | import torch.utils.data
from torch.utils.tensorboard import SummaryWriter
from torch import nn
from tqdm import tqdm
import numpy as np
from datasets.preprocess import DatasetWrapper
from utils import AverageMeter
#
#
| 34.554878 | 81 | 0.498853 |
5265a4488bcea1fc3304e5e8203a8bdc21c56960 | 485 | py | Python | Lesson04_CrypoTools_pt1/1_julius/solution.py | Alyoninthecity/Cybersecurity2021UNIPD | 456a0ff70357266902556627522cc8f41888907c | [
"BSD-3-Clause"
] | null | null | null | Lesson04_CrypoTools_pt1/1_julius/solution.py | Alyoninthecity/Cybersecurity2021UNIPD | 456a0ff70357266902556627522cc8f41888907c | [
"BSD-3-Clause"
] | null | null | null | Lesson04_CrypoTools_pt1/1_julius/solution.py | Alyoninthecity/Cybersecurity2021UNIPD | 456a0ff70357266902556627522cc8f41888907c | [
"BSD-3-Clause"
] | null | null | null | import base64
import re
for i in range(0, 127):
message = "}{[l^KlwOmwZjmOKW9"
print(shiftASCII(message, i))
# ecCTF3T_7U_BRU73?! | 21.086957 | 50 | 0.635052 |
5265f7fb300d1d6611ad4be7e87983eb5c5ee653 | 568 | py | Python | freyr_app/core/forms.py | blanchefort/freyrmonitoring | 5bf10ba86d3f88390f91106426dd964289f5aee6 | [
"MIT"
] | 2 | 2021-06-01T20:27:14.000Z | 2021-10-01T23:24:45.000Z | freyr_app/core/forms.py | blanchefort/freyrmonitoring | 5bf10ba86d3f88390f91106426dd964289f5aee6 | [
"MIT"
] | null | null | null | freyr_app/core/forms.py | blanchefort/freyrmonitoring | 5bf10ba86d3f88390f91106426dd964289f5aee6 | [
"MIT"
] | null | null | null | from django import forms
| 31.555556 | 81 | 0.705986 |
52681931ece663f1a9a6fa741b530f332c045a60 | 2,264 | py | Python | src/putil/test/test_timer.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 2 | 2015-10-05T20:36:35.000Z | 2018-11-21T11:45:24.000Z | src/putil/test/test_timer.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 21 | 2015-03-18T14:39:32.000Z | 2016-07-01T17:16:29.000Z | src/putil/test/test_timer.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 12 | 2015-03-18T10:53:49.000Z | 2018-06-21T11:19:57.000Z | import time
from math import fabs
import putil.timer
from putil.testing import UtilTest
| 30.186667 | 85 | 0.619258 |
52685c541e22ce454e9ae9ee85d7869bba20eee6 | 5,122 | py | Python | google/api/endpoint_pb2.py | LaudateCorpus1/python-api-common-protos | d9d8a9fc3543ef90b69bc1a79467daca3a0d220e | [
"Apache-2.0"
] | null | null | null | google/api/endpoint_pb2.py | LaudateCorpus1/python-api-common-protos | d9d8a9fc3543ef90b69bc1a79467daca3a0d220e | [
"Apache-2.0"
] | 1 | 2022-03-18T21:45:58.000Z | 2022-03-18T21:45:58.000Z | google/api/endpoint_pb2.py | LaudateCorpus1/python-api-common-protos | d9d8a9fc3543ef90b69bc1a79467daca3a0d220e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 33.045161 | 398 | 0.641742 |
5268e2e7c321088280b18102a1f9b67bb8260b9f | 966 | py | Python | flexget/plugins/filter/imdb_required.py | Konubinix/Flexget | 1379e346370ef144b9a02f761fc187497b6097e2 | [
"MIT"
] | 1 | 2017-08-25T07:17:04.000Z | 2017-08-25T07:17:04.000Z | flexget/plugins/filter/imdb_required.py | Konubinix/Flexget | 1379e346370ef144b9a02f761fc187497b6097e2 | [
"MIT"
] | 1 | 2015-11-10T01:07:54.000Z | 2015-11-10T01:07:54.000Z | flexget/plugins/filter/imdb_required.py | Konubinix/Flexget | 1379e346370ef144b9a02f761fc187497b6097e2 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
import logging
from flexget import plugin
from flexget.event import event
log = logging.getLogger('imdb_required')
| 25.421053 | 79 | 0.656315 |
5269a1caf0be2c82d1b57ef29ea750514c38cbea | 1,795 | py | Python | tools/make_folders.py | leonzucchini/recipes | d11d1ee589bbea89b0d587e056c17718de25e9f3 | [
"MIT"
] | 8 | 2017-09-17T10:39:37.000Z | 2021-12-29T11:46:03.000Z | tools/make_folders.py | leonzucchini/Recipes | d11d1ee589bbea89b0d587e056c17718de25e9f3 | [
"MIT"
] | null | null | null | tools/make_folders.py | leonzucchini/Recipes | d11d1ee589bbea89b0d587e056c17718de25e9f3 | [
"MIT"
] | null | null | null | import os
import sys
import shutil
import re
def make_output_folder(folder_path, debug=False):
""" Make folder for output, checking for previous results """
# Skip if debug (avoids replace prompt)
if debug:
print "FolderSetup warning: Not creating directory because debug = True"
... | 35.9 | 93 | 0.485794 |
526b26f211436d7f0e5e0e9e0897c31bf38dfd65 | 6,748 | py | Python | emit_main/workflow/l3_tasks.py | emit-sds/emit-main | 7c2f6feacc68b8a962309d8a3a7f6decc571c69d | [
"Apache-2.0"
] | 1 | 2022-02-11T17:05:52.000Z | 2022-02-11T17:05:52.000Z | emit_main/workflow/l3_tasks.py | emit-sds/emit-main | 7c2f6feacc68b8a962309d8a3a7f6decc571c69d | [
"Apache-2.0"
] | null | null | null | emit_main/workflow/l3_tasks.py | emit-sds/emit-main | 7c2f6feacc68b8a962309d8a3a7f6decc571c69d | [
"Apache-2.0"
] | null | null | null | """
This code contains tasks for executing EMIT Level 3 PGEs and helper utilities.
Author: Philip G. Brodrick, philip.brodrick@jpl.nasa.gov
"""
import datetime
import logging
import os
import luigi
import spectral.io.envi as envi
from emit_main.workflow.output_targets import AcquisitionTarget
from emit_main.workflo... | 42.440252 | 114 | 0.636633 |
526b485dc264415947150a42644b3ef978ed20b1 | 2,843 | py | Python | src/python/backends/py/runtime/graph/copy.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | 1 | 2022-03-16T16:37:11.000Z | 2022-03-16T16:37:11.000Z | src/python/backends/py/runtime/graph/copy.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | src/python/backends/py/runtime/graph/copy.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | '''
Code to copy Curry expressions.
'''
from __future__ import absolute_import
from .....common import T_SETGRD, T_FWD
from copy import copy, deepcopy
from ..... import inspect
from . import node
__all__ = ['copygraph', 'copynode', 'GraphCopier', 'Skipper']
def copygraph(expr, memo=None, **kwds):
'''
Copies a Cu... | 26.324074 | 76 | 0.651425 |
526d20bd4beb813f088b8c300d75c3314be9fe9d | 1,325 | py | Python | src/dynamic_programming/python/coins/tests/test_coins.py | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | 2 | 2021-05-31T13:01:33.000Z | 2021-12-20T19:48:18.000Z | src/dynamic_programming/python/coins/tests/test_coins.py | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | null | null | null | src/dynamic_programming/python/coins/tests/test_coins.py | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | null | null | null | import unittest
import os
import sys
file_dir = os.path.dirname(os.path.dirname(__file__))
sys.path.append(file_dir + "/src")
from coins import coin_change_basic, coin_change_memo, coin_change_tab
if __name__ == "__main__":
unittest.main()
| 23.660714 | 70 | 0.621132 |
526d4d40cd6f4c695d138adad233c6be53e5ca14 | 359 | py | Python | tutorials/W1D3_MultiLayerPerceptrons/solutions/W1D3_Tutorial1_Solution_d58d2933.py | amita-kapoor/course-content-dl | bba5c8f6fa38a83c4e452be30791f3a6399d5b83 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 473 | 2021-04-13T18:27:42.000Z | 2022-03-28T14:14:35.000Z | tutorials/W1D3_MultiLayerPerceptrons/solutions/W1D3_Tutorial1_Solution_d58d2933.py | amita-kapoor/course-content-dl | bba5c8f6fa38a83c4e452be30791f3a6399d5b83 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 399 | 2021-06-07T20:56:59.000Z | 2022-01-26T23:05:06.000Z | tutorials/W1D3_MultiLayerPerceptrons/solutions/W1D3_Tutorial1_Solution_d58d2933.py | amita-kapoor/course-content-dl | bba5c8f6fa38a83c4e452be30791f3a6399d5b83 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 170 | 2021-04-16T11:09:32.000Z | 2022-03-31T12:13:52.000Z |
"""
At infinite membrane resistance, the Neuron does not leak any current out,
and hence it starts firing with the slightest input current,
This shifts the transfer function towards 0, similar to ReLU activation (centered at 0).
Also, when there is minimal refractory time, the neuron can keep firing
at a high input cu... | 44.875 | 88 | 0.788301 |
526ee635b3e57242e052bcbb6a2a6c1ce49cfd69 | 1,377 | py | Python | clients/listen.py | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | clients/listen.py | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | clients/listen.py | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | #
# Visualize the audio of an Elixoids game:
#
# pip3 install websocket-client
# python3 clients/listen.py --host example.com
#
import argparse
import sys
import websocket
try:
import thread
except ImportError:
import _thread as thread
import sound_pb2
if __name__ == "__main__":
args = optio... | 25.036364 | 78 | 0.606391 |
52702373891582e4ba0d662955581802a9e0d1a1 | 12,915 | py | Python | find_duplicates.py | dallascard/LN_tools | 66be00f1fd11517f7bbf2949cc70f9552f3af4f4 | [
"Apache-2.0"
] | 1 | 2019-09-29T20:48:51.000Z | 2019-09-29T20:48:51.000Z | find_duplicates.py | dallascard/LN_tools | 66be00f1fd11517f7bbf2949cc70f9552f3af4f4 | [
"Apache-2.0"
] | null | null | null | find_duplicates.py | dallascard/LN_tools | 66be00f1fd11517f7bbf2949cc70f9552f3af4f4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This script looks through the JSON files created by parse_LN_to_JSON.py and looks
for duplicates using the Jaccard Coefficient f k-grams of the article text (body).
It creates a CSV file with all of the cases listed and duplicates marked, and
optionally stores the same information in a JSO... | 36.176471 | 170 | 0.602787 |
527099d9e70699816c427356c1e9f6bf0065bca5 | 160 | py | Python | QARealtimeCollector/clients/test.py | dizzy21c/QUANTAXIS_RealtimeCollector | bb55a3852fe437b51ce92a9cbbc4e89c5e317f6c | [
"MIT"
] | 1 | 2020-02-03T14:10:38.000Z | 2020-02-03T14:10:38.000Z | QARealtimeCollector/clients/test.py | daqing526533/QUANTAXIS_RealtimeCollector | e234669ac680fa59775598df2ee84a61085b79ed | [
"MIT"
] | null | null | null | QARealtimeCollector/clients/test.py | daqing526533/QUANTAXIS_RealtimeCollector | e234669ac680fa59775598df2ee84a61085b79ed | [
"MIT"
] | null | null | null |
from QAPUBSUB.consumer import subscriber
sub = subscriber(host='192.168.2.116',user='admin', password='admin' ,exchange= 'realtime_60min_rb1910')
sub.start() | 32 | 104 | 0.7625 |
5270c0102b69687b11a4659208c542e286ce0456 | 356 | py | Python | artifacttemplates/http%3A%2F%2Fopentosca.org%2Fartifacttemplates/PennyLaneAlgo_DA_AT/files/pennylane_app_algo.py | OpenTOSCA/tosca-definitions-public | abc4240499f143b0cb0fdd8a1f1400b2172e95b9 | [
"Apache-2.0"
] | null | null | null | artifacttemplates/http%3A%2F%2Fopentosca.org%2Fartifacttemplates/PennyLaneAlgo_DA_AT/files/pennylane_app_algo.py | OpenTOSCA/tosca-definitions-public | abc4240499f143b0cb0fdd8a1f1400b2172e95b9 | [
"Apache-2.0"
] | null | null | null | artifacttemplates/http%3A%2F%2Fopentosca.org%2Fartifacttemplates/PennyLaneAlgo_DA_AT/files/pennylane_app_algo.py | OpenTOSCA/tosca-definitions-public | abc4240499f143b0cb0fdd8a1f1400b2172e95b9 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:04:24.000Z | 2020-04-30T15:04:24.000Z | import pennylane as qml
import numpy as np | 23.733333 | 71 | 0.660112 |
5272823ab83e4c5f82c505ea22fae1f24153577c | 14,389 | py | Python | baseline/deep_ed_PyTorch/deep_ed_PyTorch/ed/model/model_global.py | yifding/e2e_EL_evaluate | 48e12a93c98daf99bb560efcc267749247f590ba | [
"MIT"
] | 5 | 2021-11-30T02:19:52.000Z | 2021-12-10T14:38:17.000Z | baseline/deep_ed_PyTorch/deep_ed_PyTorch/ed/model/model_global.py | yifding/e2e_EL_evaluate | 48e12a93c98daf99bb560efcc267749247f590ba | [
"MIT"
] | 1 | 2021-11-15T02:18:41.000Z | 2021-12-01T13:36:26.000Z | baseline/deep_ed_PyTorch/deep_ed_PyTorch/ed/model/model_global.py | yifding/e2e_EL_evaluate | 48e12a93c98daf99bb560efcc267749247f590ba | [
"MIT"
] | null | null | null | # **YD** the model to train deep-ed-global for entity disambiguation
import copy
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
from deep_ed_PyTorch.utils import utils
from deep_ed_PyTorch.ed.args import arg_parse
def test():
parser = argparse.ArgumentParser(
descr... | 36.335859 | 120 | 0.640698 |
5273f884bdde093ed253a7bc5d4d0356e46a62b0 | 4,349 | py | Python | 11_cnnInceptionMNIST.py | cwangjiang/PyTorch_Basics | bdc4dfb2a8565c3b86320c9c56cf57ef812387f1 | [
"MIT"
] | null | null | null | 11_cnnInceptionMNIST.py | cwangjiang/PyTorch_Basics | bdc4dfb2a8565c3b86320c9c56cf57ef812387f1 | [
"MIT"
] | null | null | null | 11_cnnInceptionMNIST.py | cwangjiang/PyTorch_Basics | bdc4dfb2a8565c3b86320c9c56cf57ef812387f1 | [
"MIT"
] | null | null | null | # this code use cnn with inception unit + softmax to predict handwriting 0-9
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
batch_size = 64
# download the dataset, don't need to construc... | 36.855932 | 184 | 0.721315 |
52779a9cdce9f94293477ea1630e84c3ba8660ce | 2,842 | py | Python | LovelyFlask/App/views.py | legendary6666/AxfFlask | a93aa8a17fd8a04e4b6510bbb66b317e0da2bdd8 | [
"Apache-2.0"
] | null | null | null | LovelyFlask/App/views.py | legendary6666/AxfFlask | a93aa8a17fd8a04e4b6510bbb66b317e0da2bdd8 | [
"Apache-2.0"
] | null | null | null | LovelyFlask/App/views.py | legendary6666/AxfFlask | a93aa8a17fd8a04e4b6510bbb66b317e0da2bdd8 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint, request, render_template, url_for
from LovelyFlask.App.models import HomeWheel, HomeNav, HomeMustBuy, HomeMainShow, HomeShop, FoodTypes, Goods, CartModel
blue = Blueprint("first_blue", __name__, url_prefix="/api/")
ALL_TYPE = 0
| 22.555556 | 119 | 0.63582 |
527a60539e80aabfa5ad82b97a6806b4bb9a6026 | 3,546 | py | Python | tests/test_benchmark_config.py | chayim/redisbench-admin | 11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f | [
"Apache-2.0"
] | null | null | null | tests/test_benchmark_config.py | chayim/redisbench-admin | 11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f | [
"Apache-2.0"
] | null | null | null | tests/test_benchmark_config.py | chayim/redisbench-admin | 11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f | [
"Apache-2.0"
] | null | null | null | import json
import yaml
from redisbench_admin.utils.benchmark_config import (
results_dict_kpi_check,
check_required_modules,
extract_redis_dbconfig_parameters,
)
| 37.326316 | 88 | 0.64608 |
527aa6734f670a7305701a9491f740dd20386e1e | 4,982 | py | Python | thornpy/utilities.py | bthornton191/thorpy | 3f5ffac31ef2d6d5763eb1a1abb3328c23ce5612 | [
"MIT"
] | null | null | null | thornpy/utilities.py | bthornton191/thorpy | 3f5ffac31ef2d6d5763eb1a1abb3328c23ce5612 | [
"MIT"
] | null | null | null | thornpy/utilities.py | bthornton191/thorpy | 3f5ffac31ef2d6d5763eb1a1abb3328c23ce5612 | [
"MIT"
] | null | null | null | """Miscellaneous tools.
"""
import os
import csv
from typing import Union
from subprocess import Popen
from pathlib import Path
from scipy.io import loadmat
import pandas as pd
def num_to_ith(num):
"""Converts an integer to a string containing an ordinal number (1st, 2nd, 3rd, ect.)
Parameters
-----... | 27.988764 | 153 | 0.580891 |
527b6c5e2d8ecc9a252bf2b0696deaac0d511759 | 25,521 | py | Python | python/paddle/fluid/tests/unittests/test_rnn_cell_api.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 11 | 2016-08-29T07:43:26.000Z | 2016-08-29T07:51:24.000Z | python/paddle/fluid/tests/unittests/test_rnn_cell_api.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_rnn_cell_api.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-12-09T08:59:17.000Z | 2021-12-09T08:59:17.000Z | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.323575 | 117 | 0.528819 |
527bc4d5ab9a34fe4787a9eb7ce66708aaf90dff | 4,591 | py | Python | pyfsdb/dbheatmap.py | samihaija/pyfsdb | a993adf54fa5fe61fb74c544f0899fb37586fb13 | [
"MIT"
] | null | null | null | pyfsdb/dbheatmap.py | samihaija/pyfsdb | a993adf54fa5fe61fb74c544f0899fb37586fb13 | [
"MIT"
] | null | null | null | pyfsdb/dbheatmap.py | samihaija/pyfsdb | a993adf54fa5fe61fb74c544f0899fb37586fb13 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, FileType
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pyfsdb
if __name__ == "__main__":
main()
| 33.028777 | 79 | 0.566543 |
527dc5a4f8f8e32f762c34d938c444eff18aaebe | 1,912 | py | Python | cheatsheeter/extensions/embed_img.py | jorgebg/cheatsheets | fbcb9f09d9ece79d297870ce0623c1824613aad0 | [
"MIT"
] | null | null | null | cheatsheeter/extensions/embed_img.py | jorgebg/cheatsheets | fbcb9f09d9ece79d297870ce0623c1824613aad0 | [
"MIT"
] | null | null | null | cheatsheeter/extensions/embed_img.py | jorgebg/cheatsheets | fbcb9f09d9ece79d297870ce0623c1824613aad0 | [
"MIT"
] | null | null | null |
import base64
import mimetypes
import os
from urllib.parse import unquote
import xml.etree.ElementTree as etree
from markdown.inlinepatterns import LinkInlineProcessor
from markdown.extensions import Extension
def remove_namespace(doc, namespace):
"""Remove namespace in the passed document in place."""
ns = u... | 32.965517 | 104 | 0.621339 |
527ea97496890c3d4c2ba0cde080bddf0bb1b16e | 675 | py | Python | algorithm/util.py | Scott-Huang/SemEval-2021-Task-6 | d9dfac1b30d7926d614d18be29db3fcd4bc8f84f | [
"MIT"
] | null | null | null | algorithm/util.py | Scott-Huang/SemEval-2021-Task-6 | d9dfac1b30d7926d614d18be29db3fcd4bc8f84f | [
"MIT"
] | null | null | null | algorithm/util.py | Scott-Huang/SemEval-2021-Task-6 | d9dfac1b30d7926d614d18be29db3fcd4bc8f84f | [
"MIT"
] | null | null | null | import json
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Convert model prediction into acceptable format.')
parser.add_argument('in_path', metavar='i', type=str)
parser.add_argument('out_path', metavar='o', type=str)
args = parser.parse_args()
to_output(... | 30.681818 | 100 | 0.634074 |
527eb99dfa2b028f29819a3104c6f9c9adfe7aae | 2,886 | py | Python | pyxlsb2/cell.py | cccs-jh/pyxlsb2 | 6c5a2990a62e0d80a366d87eb65cbc20573c7b08 | [
"Apache-2.0",
"MIT"
] | 16 | 2020-04-24T20:07:12.000Z | 2022-02-03T18:58:11.000Z | pyxlsb2/cell.py | cccs-jh/pyxlsb2 | 6c5a2990a62e0d80a366d87eb65cbc20573c7b08 | [
"Apache-2.0",
"MIT"
] | 12 | 2020-06-08T14:10:13.000Z | 2022-03-31T14:58:06.000Z | pyxlsb2/cell.py | cccs-jh/pyxlsb2 | 6c5a2990a62e0d80a366d87eb65cbc20573c7b08 | [
"Apache-2.0",
"MIT"
] | 13 | 2020-06-06T07:58:06.000Z | 2021-12-24T11:39:43.000Z | import sys
if sys.version_info > (3,):
basestring = (str, bytes)
long = int
| 27.226415 | 94 | 0.582814 |
527f0ea921ffa6f195d05d140e655588c4f82a9e | 7,234 | py | Python | 2018/vis/simple_test.py | vais-ral/WorkExperience | 74cb47645a1c524230648fce465ece25e1a4d713 | [
"BSD-2-Clause"
] | null | null | null | 2018/vis/simple_test.py | vais-ral/WorkExperience | 74cb47645a1c524230648fce465ece25e1a4d713 | [
"BSD-2-Clause"
] | 1 | 2018-07-10T16:03:42.000Z | 2018-07-10T16:03:42.000Z | 2018/vis/simple_test.py | vais-ral/WorkExperience | 74cb47645a1c524230648fce465ece25e1a4d713 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 27 13:59:43 2018
@author: ofn77899
"""
import numpy
from ccpi.segmentation.SimpleflexSegmentor import SimpleflexSegmentor
from ccpi.viewer.CILViewer import CILViewer
from ccpi.viewer.CILViewer2D import CILViewer2D, Converter
import vtk
#Text-based input s... | 34.61244 | 105 | 0.64971 |
528090f5687885fbfb1c8e3d60235e9fb42ea50b | 1,081 | py | Python | Scripts/day12.py | HarrisonGreen/Advent-of-Code-2015 | 6a81395882c79135548eb7984bfd98c279c5f258 | [
"MIT"
] | null | null | null | Scripts/day12.py | HarrisonGreen/Advent-of-Code-2015 | 6a81395882c79135548eb7984bfd98c279c5f258 | [
"MIT"
] | null | null | null | Scripts/day12.py | HarrisonGreen/Advent-of-Code-2015 | 6a81395882c79135548eb7984bfd98c279c5f258 | [
"MIT"
] | null | null | null | import json
if __name__ == "__main__":
accounts = read_input()
print(f"Part one: {calculate_sum(accounts)}")
print(f"Part two: {calculate_sum_no_red(accounts)}")
| 30.027778 | 81 | 0.60407 |
52813eb5a92147299029b6f56c0318355c220c8b | 131 | py | Python | backend/app/admin/components/__init__.py | griviala/garpix_page | 55f1d9bc6d1de29d18e15369bebcbef18811b5a4 | [
"MIT"
] | null | null | null | backend/app/admin/components/__init__.py | griviala/garpix_page | 55f1d9bc6d1de29d18e15369bebcbef18811b5a4 | [
"MIT"
] | null | null | null | backend/app/admin/components/__init__.py | griviala/garpix_page | 55f1d9bc6d1de29d18e15369bebcbef18811b5a4 | [
"MIT"
] | null | null | null | from .text_component import TextComponentAdmin # noqa
from .text_description_component import TextDescriptionComponentAdmin # noqa
| 43.666667 | 76 | 0.877863 |
5282a5299abff7b8701b16a10c2c45a9be1078cc | 27 | py | Python | portal/pulsar/__init__.py | bbhunter/pulsar | 1f6384482eebc71137716e27ba7a010f3aea7241 | [
"Apache-2.0",
"BSD-3-Clause"
] | 12 | 2021-12-28T14:15:27.000Z | 2022-03-29T00:45:00.000Z | portal/pulsar/__init__.py | bbhunter/pulsar | 1f6384482eebc71137716e27ba7a010f3aea7241 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2022-02-09T12:47:14.000Z | 2022-02-09T12:47:14.000Z | portal/pulsar/__init__.py | bbhunter/pulsar | 1f6384482eebc71137716e27ba7a010f3aea7241 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2022-01-18T03:59:11.000Z | 2022-01-18T03:59:11.000Z |
from .celeryapp import *
| 6.75 | 24 | 0.703704 |
528428e2a5380d1c525ea3a3731e3cf65f022c14 | 377 | py | Python | src/tests/wikipedia.py | alexseitsinger/page-scrapers | 20898c487fa2dae72e17c10d51b7481e62c72202 | [
"BSD-2-Clause"
] | 1 | 2019-02-23T13:25:22.000Z | 2019-02-23T13:25:22.000Z | src/tests/wikipedia.py | alexseitsinger/page_scrapers | 20898c487fa2dae72e17c10d51b7481e62c72202 | [
"BSD-2-Clause"
] | null | null | null | src/tests/wikipedia.py | alexseitsinger/page_scrapers | 20898c487fa2dae72e17c10d51b7481e62c72202 | [
"BSD-2-Clause"
] | 1 | 2019-08-28T18:16:45.000Z | 2019-08-28T18:16:45.000Z | from page_scrapers.wikipedia.scrapers.film import WikipediaFilmScraper
query_1 = "hellraiser 2"
scraper_1 = WikipediaFilmScraper(query_1)
scraped_1 = scraper_1.scrape()
filtered_1 = scraper_1.filter()
print(filtered_1)
query_2 = "hellraiser judgement"
scraper_2 = WikipediaFilmScraper(query_2)
scraped_2 = scraper_2.sc... | 26.928571 | 70 | 0.816976 |
5284ceab6fbd7910c2633d7b5d3b387b689554f1 | 42,835 | py | Python | mobilkit/temporal.py | mindearth/mobilkit | 26a426f0bc071c6cefc4a07f0901a3f9af6e62ae | [
"MIT"
] | 12 | 2021-08-02T15:55:13.000Z | 2022-03-27T12:23:59.000Z | mobilkit/temporal.py | datapartnership/mobilkit | 26a426f0bc071c6cefc4a07f0901a3f9af6e62ae | [
"MIT"
] | 1 | 2021-08-02T16:04:41.000Z | 2021-08-11T14:37:55.000Z | mobilkit/temporal.py | datapartnership/mobilkit | 26a426f0bc071c6cefc4a07f0901a3f9af6e62ae | [
"MIT"
] | 2 | 2021-05-19T09:47:56.000Z | 2021-09-28T15:11:48.000Z | # Copyright (C) MindEarth <enrico.ubaldi@mindearth.org> @ Mindearth 2020-2021
#
# This file is part of mobilkit.
#
# mobilkit is distributed under the MIT license.
'''Tools and functions to analyze the data in time.
'''
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
impor... | 44.994748 | 373 | 0.591806 |
5286e720b93035006a31236bf9586f44cd981b61 | 5,591 | py | Python | tests/test_mat2.py | TovarnovM/easyvec | 25a67a37907140c07feace02dd85d68fc59824a6 | [
"MIT"
] | 1 | 2021-06-24T18:12:51.000Z | 2021-06-24T18:12:51.000Z | tests/test_mat2.py | TovarnovM/easyvec | 25a67a37907140c07feace02dd85d68fc59824a6 | [
"MIT"
] | null | null | null | tests/test_mat2.py | TovarnovM/easyvec | 25a67a37907140c07feace02dd85d68fc59824a6 | [
"MIT"
] | null | null | null | from easyvec import Mat2, Vec2
import numpy as np
from pytest import approx
| 27.273171 | 62 | 0.514398 |
5287530feaff051b883de6c50b928b9265f12103 | 1,664 | py | Python | tests/test_static_maze.py | agarwalishika/two-d-nav-gym | 7b16d16d6944f1ac7b832137096ab56cc5228b2f | [
"MIT"
] | 2 | 2021-09-09T15:59:32.000Z | 2021-09-09T16:03:48.000Z | tests/test_static_maze.py | agarwalishika/two-d-nav-gym | 7b16d16d6944f1ac7b832137096ab56cc5228b2f | [
"MIT"
] | null | null | null | tests/test_static_maze.py | agarwalishika/two-d-nav-gym | 7b16d16d6944f1ac7b832137096ab56cc5228b2f | [
"MIT"
] | null | null | null | import numpy as np
from two_d_nav.envs.static_maze import StaticMazeNavigation
if __name__ == '__main__':
test_goal()
test_obstacle()
test_wall()
| 22.794521 | 63 | 0.53125 |
528a9e7052216cb329d6d29d4440112a9d78b9fe | 146 | py | Python | starter_code/api_keys.py | bjouellette/python-api-challenge | 855c31769893596211ef072df8412cd47a557e19 | [
"ADSL"
] | 1 | 2022-01-27T00:04:14.000Z | 2022-01-27T00:04:14.000Z | starter_code/api_keys.py | bjouellette/python-api-challenge | 855c31769893596211ef072df8412cd47a557e19 | [
"ADSL"
] | null | null | null | starter_code/api_keys.py | bjouellette/python-api-challenge | 855c31769893596211ef072df8412cd47a557e19 | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
weather_api_key = "e1067d92d6b631a16363bf4db3023b19"
# Google API Key
g_key = "AIzaSyA4RYdQ1nxoMTIW854C7wvVJMf0Qz5qjNk"
| 24.333333 | 52 | 0.842466 |
528bb07e2da917115605e5bd86611d0e0fcfeb76 | 13,099 | py | Python | dist-packages/dtk/ui/paned.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | null | null | null | dist-packages/dtk/ui/paned.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | null | null | null | dist-packages/dtk/ui/paned.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
# 2011 ~ 2012 Xia Bin
# 2011 ~ 2012 Wang Yong
#
# Author: Xia Bin <xiabin@linuxdeepin.com>
# Maintainer: Wang Yong <lazycat.manatee@gmail.com>
#
# This program is free software: you can redistribute ... | 35.789617 | 128 | 0.578517 |
528ee35af89eb53ba2db896f868d4961ba685fff | 801 | py | Python | sghymnal/players/tests/test_drf_views.py | shortnd/sghymnal | c10d9a7e2fda803dcb5046b9f7bc099f32b6c603 | [
"MIT"
] | null | null | null | sghymnal/players/tests/test_drf_views.py | shortnd/sghymnal | c10d9a7e2fda803dcb5046b9f7bc099f32b6c603 | [
"MIT"
] | null | null | null | sghymnal/players/tests/test_drf_views.py | shortnd/sghymnal | c10d9a7e2fda803dcb5046b9f7bc099f32b6c603 | [
"MIT"
] | null | null | null | import pytest
from django.contrib.auth.models import AnonymousUser
from django.test import RequestFactory
from sghymnal.players.api.views import PlayersViewSet
from sghymnal.players.models import Player
pytestmark = pytest.mark.django_db
| 27.62069 | 68 | 0.70412 |
528f89ddb026f558a4cd118b62bb3b0e6ebc6dd4 | 2,351 | py | Python | arviz/plots/backends/matplotlib/separationplot.py | sudojarvis/arviz | 73531be4f23df7d764b2e3bec8c5ef5cb882590d | [
"Apache-2.0"
] | 1,159 | 2018-04-03T08:50:54.000Z | 2022-03-31T18:03:52.000Z | arviz/plots/backends/matplotlib/separationplot.py | sudojarvis/arviz | 73531be4f23df7d764b2e3bec8c5ef5cb882590d | [
"Apache-2.0"
] | 1,656 | 2018-03-23T14:15:05.000Z | 2022-03-31T14:00:28.000Z | arviz/plots/backends/matplotlib/separationplot.py | sudojarvis/arviz | 73531be4f23df7d764b2e3bec8c5ef5cb882590d | [
"Apache-2.0"
] | 316 | 2018-04-03T14:25:52.000Z | 2022-03-25T10:41:29.000Z | """Matplotlib separation plot."""
import matplotlib.pyplot as plt
import numpy as np
from ...plot_utils import _scale_fig_size
from . import backend_kwarg_defaults, backend_show, create_axes_grid
def plot_separation(
y,
y_hat,
y_hat_line,
label_y_hat,
expected_events,
figsize,
textsize,
... | 24.237113 | 98 | 0.630795 |
528fa27732c9c401781702d54b0c3389d8dc1cbd | 5,053 | py | Python | mesonwrap/tools/import_from_hosted.py | Calinou/wrapweb | 12ef53e9628aeb5a8db105f3a9f31d8ab4f30af3 | [
"Apache-2.0"
] | null | null | null | mesonwrap/tools/import_from_hosted.py | Calinou/wrapweb | 12ef53e9628aeb5a8db105f3a9f31d8ab4f30af3 | [
"Apache-2.0"
] | null | null | null | mesonwrap/tools/import_from_hosted.py | Calinou/wrapweb | 12ef53e9628aeb5a8db105f3a9f31d8ab4f30af3 | [
"Apache-2.0"
] | null | null | null | import argparse
import git
import github
import os.path
from mesonwrap import gitutils
from mesonwrap import tempfile
from mesonwrap import webapi
from mesonwrap import wrap
from mesonwrap.tools import environment
from retrying import retry
| 35.090278 | 79 | 0.578864 |
52905893b96180e3446a9e907db7c405fc9797c3 | 10,843 | py | Python | Cogs/GuideCog.py | BloomAutist47/bloom-bo | e3b298dc7ba27b8e526b18c2750b494b8a66ab3b | [
"CC0-1.0"
] | 1 | 2021-09-07T09:51:16.000Z | 2021-09-07T09:51:16.000Z | Cogs/GuideCog.py | BloomAutist47/bloom-bo | e3b298dc7ba27b8e526b18c2750b494b8a66ab3b | [
"CC0-1.0"
] | null | null | null | Cogs/GuideCog.py | BloomAutist47/bloom-bo | e3b298dc7ba27b8e526b18c2750b494b8a66ab3b | [
"CC0-1.0"
] | 3 | 2021-02-19T20:13:21.000Z | 2022-02-04T03:56:43.000Z | import os
from .Base import *
from discord.ext import commands
| 48.40625 | 120 | 0.507793 |
529075584e7e7f5b22b46ff655d558470509c089 | 83,766 | py | Python | eden/modifier/rna/lib_forgi.py | zaidurrehman/EDeN | 1f29d4c9d458edb2bd62a98e57254d78a1f2093f | [
"MIT"
] | null | null | null | eden/modifier/rna/lib_forgi.py | zaidurrehman/EDeN | 1f29d4c9d458edb2bd62a98e57254d78a1f2093f | [
"MIT"
] | null | null | null | eden/modifier/rna/lib_forgi.py | zaidurrehman/EDeN | 1f29d4c9d458edb2bd62a98e57254d78a1f2093f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""bulge_graph.py: A graph representation of RNA secondary structure based
on its decomposition into primitive structure types: stems, hairpins,
interior loops, multiloops, etc...
for eden and graphlearn we stripped forgi down to this single file.
forgi: https://github.com/pkerpedj... | 31.69353 | 105 | 0.514899 |
52935524fdd04ab3aad5b99a96020fa25d8790c3 | 3,215 | py | Python | tools/test_net.py | Willy0919/Evovling_Boxes | a8543227f9e715d67dde1ffe62ee6d0400cca517 | [
"BSD-3-Clause"
] | 74 | 2017-04-07T13:18:39.000Z | 2021-05-20T01:35:31.000Z | tools/test_net.py | Willy0919/Evovling_Boxes | a8543227f9e715d67dde1ffe62ee6d0400cca517 | [
"BSD-3-Clause"
] | 10 | 2017-06-22T12:54:17.000Z | 2021-06-28T11:28:11.000Z | tools/test_net.py | Willy0919/Evovling_Boxes | a8543227f9e715d67dde1ffe62ee6d0400cca517 | [
"BSD-3-Clause"
] | 26 | 2017-06-02T05:54:44.000Z | 2021-03-12T07:53:54.000Z | #!/usr/bin/env python
import _init_paths
from evb.test import test_net
from evb.config import cfg, cfg_from_file, cfg_from_list
from datasets.factory import get_imdb
import caffe
import argparse
import pprint
import time, os, sys
def parse_args():
"""
Parse input arguments
"""
parser = argparse.Argumen... | 36.954023 | 90 | 0.597823 |
52964f8e82619896f05ff838aec7c2f18d6b3605 | 2,030 | py | Python | GameStore/product/migrations/0001_initial.py | hossein9090/gamestore | 62d20b1d32c52c68dfe587ae8b6de5c36c122a37 | [
"MIT"
] | null | null | null | GameStore/product/migrations/0001_initial.py | hossein9090/gamestore | 62d20b1d32c52c68dfe587ae8b6de5c36c122a37 | [
"MIT"
] | null | null | null | GameStore/product/migrations/0001_initial.py | hossein9090/gamestore | 62d20b1d32c52c68dfe587ae8b6de5c36c122a37 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-24 09:26
from django.db import migrations, models
import django.db.models.deletion
| 43.191489 | 169 | 0.578818 |
529658a483417869521cdbb5cf8a291986f401d8 | 85 | py | Python | personal_assistant/constants.py | avryhof/personal-assistant | 115b384a405ee6b2c5099619beff433b113e24ff | [
"MIT"
] | null | null | null | personal_assistant/constants.py | avryhof/personal-assistant | 115b384a405ee6b2c5099619beff433b113e24ff | [
"MIT"
] | 2 | 2021-04-06T17:59:11.000Z | 2021-06-01T23:40:39.000Z | personal_assistant/constants.py | avryhof/personal-assistant | 115b384a405ee6b2c5099619beff433b113e24ff | [
"MIT"
] | null | null | null | RECOGNIZER_SNOWBOY = 'snowboy'
RECOGNIZER_SPHINX = 'sphinx'
RECOGNIZER_WIT = 'wit.ai' | 28.333333 | 30 | 0.788235 |
5297b606a1bd8dcbc70078cca628b648831434d4 | 1,023 | py | Python | src/content-processor.py | rionaldichandraseta/anti-clickbait | 77dbaab8a64c81957d2d98b7d0b7476b814f6f49 | [
"MIT"
] | null | null | null | src/content-processor.py | rionaldichandraseta/anti-clickbait | 77dbaab8a64c81957d2d98b7d0b7476b814f6f49 | [
"MIT"
] | null | null | null | src/content-processor.py | rionaldichandraseta/anti-clickbait | 77dbaab8a64c81957d2d98b7d0b7476b814f6f49 | [
"MIT"
] | null | null | null | # Processor for kompas-data-contents.txt
MIN_IDX = 100
contentfile = open('../data/kompas-data-contents.txt', 'r')
content_data = []
for line in contentfile:
content_data.append(line)
processed_contentfile = open('../data/kompas-data-contents-processed.txt', 'w+')
for id, content in enumerate(content_data):
... | 26.921053 | 80 | 0.602151 |
52984fb6886845bba544a9e79802fb55bac1da12 | 10,296 | py | Python | app/home/routes.py | ajietrid/network-monitoring-using-pysnmp | 095ad60b43c1e0f165a834d167e5679b886907d6 | [
"MIT"
] | null | null | null | app/home/routes.py | ajietrid/network-monitoring-using-pysnmp | 095ad60b43c1e0f165a834d167e5679b886907d6 | [
"MIT"
] | null | null | null | app/home/routes.py | ajietrid/network-monitoring-using-pysnmp | 095ad60b43c1e0f165a834d167e5679b886907d6 | [
"MIT"
] | 1 | 2021-03-08T02:52:22.000Z | 2021-03-08T02:52:22.000Z | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from app.home import blueprint
from flask import render_template, redirect, url_for, request, flash, send_file
from flask_login import login_required, current_user
from app import login_manager
from jinja2 import TemplateNotFound
i... | 40.535433 | 423 | 0.716783 |
52998add29338eeb164775a55420f1427cccf228 | 2,730 | py | Python | src/aws_cloudformation_power_switch/rds_cluster.py | binxio/aws-cloudformation-stack-power-off | 9faebd77e76aedb2c2cb84db47417d5a4d77bfc4 | [
"Apache-2.0"
] | 1 | 2020-01-22T21:52:13.000Z | 2020-01-22T21:52:13.000Z | src/aws_cloudformation_power_switch/rds_cluster.py | binxio/aws-cloudformation-stack-power-off | 9faebd77e76aedb2c2cb84db47417d5a4d77bfc4 | [
"Apache-2.0"
] | 3 | 2020-03-31T10:37:26.000Z | 2021-04-07T08:26:50.000Z | src/aws_cloudformation_power_switch/rds_cluster.py | binxio/aws-cloudformation-stack-power-off | 9faebd77e76aedb2c2cb84db47417d5a4d77bfc4 | [
"Apache-2.0"
] | null | null | null | import logging
from botocore.exceptions import ClientError
from aws_cloudformation_power_switch.power_switch import PowerSwitch
from aws_cloudformation_power_switch.tag import logical_id
| 35 | 86 | 0.588645 |
bfdb1ec3bcf1251777d5b7ee5b6352813b38dd21 | 435 | py | Python | src/organ_match_app/matchapp/migrations/0004_auto_20190509_1708.py | ajmengistu/organmatch | 0b1549bde715eb2e44cbb6dcd34fc5e0ce315e4e | [
"bzip2-1.0.6"
] | 1 | 2019-05-07T21:47:54.000Z | 2019-05-07T21:47:54.000Z | src/organ_match_app/matchapp/migrations/0004_auto_20190509_1708.py | ajmengistu/organmatch | 0b1549bde715eb2e44cbb6dcd34fc5e0ce315e4e | [
"bzip2-1.0.6"
] | 7 | 2019-12-04T22:51:59.000Z | 2022-02-10T08:28:35.000Z | src/organ_match_app/matchapp/migrations/0004_auto_20190509_1708.py | ajmengistu/organmatch | 0b1549bde715eb2e44cbb6dcd34fc5e0ce315e4e | [
"bzip2-1.0.6"
] | 1 | 2020-07-23T03:43:46.000Z | 2020-07-23T03:43:46.000Z | # Generated by Django 2.2.1 on 2019-05-09 21:08
from django.conf import settings
from django.db import migrations
| 21.75 | 66 | 0.648276 |
bfdb50593c6e1e9d0effbbd8845a4184d945a3b0 | 547 | py | Python | plugins/minfraud/komand_minfraud/actions/__init__.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/minfraud/komand_minfraud/actions/__init__.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/minfraud/komand_minfraud/actions/__init__.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | # GENERATED BY KOMAND SDK - DO NOT EDIT
from .account_lookup.action import AccountLookup
from .all_lookup.action import AllLookup
from .billing_lookup.action import BillingLookup
from .card_lookup.action import CardLookup
from .cart_lookup.action import CartLookup
from .device_lookup.action import DeviceLookup
from .em... | 42.076923 | 50 | 0.859232 |
bfdbb2b1ddde5a49cf9aef5ea8e6fde1ea4245c1 | 3,630 | py | Python | catkin_ws/src/deep_learning/img_recognition/src/inference_to_reaction.py | CIRCUSPi/ROSKY | d0328e19cb65416b9353a1faabc725c1ac01c9f6 | [
"MIT"
] | 3 | 2021-08-03T07:08:24.000Z | 2021-09-12T14:33:41.000Z | catkin_ws/src/deep_learning/img_recognition/src/inference_to_reaction.py | kjoelovelife/ROSKY | d0328e19cb65416b9353a1faabc725c1ac01c9f6 | [
"MIT"
] | 1 | 2021-09-03T13:27:33.000Z | 2021-09-06T03:28:16.000Z | catkin_ws/src/deep_learning/img_recognition/src/inference_to_reaction.py | kjoelovelife/ROSKY | d0328e19cb65416b9353a1faabc725c1ac01c9f6 | [
"MIT"
] | 4 | 2020-12-28T08:20:07.000Z | 2021-08-10T06:55:30.000Z | #!/usr/bin/env python
import os, sys, argparse, errno, yaml, time, datetime
import rospy, rospkg
import torch, torchvision, cv2
import numpy as np
from rosky_msgs.msg import WheelsCmdStamped, Twist2DStamped
from img_recognition.msg import Inference
from cv_bridge import CvBridge, CvBridgeError
from jetcam_ros.utils imp... | 40.333333 | 112 | 0.649311 |
bfdc8c682e1d83d06a3dc94d8bf229024b62cde2 | 2,395 | py | Python | examples/quickstart.py | farbod1277/imitation | eba376771963ce3f13b17fe23457d7235b9afc99 | [
"MIT"
] | null | null | null | examples/quickstart.py | farbod1277/imitation | eba376771963ce3f13b17fe23457d7235b9afc99 | [
"MIT"
] | null | null | null | examples/quickstart.py | farbod1277/imitation | eba376771963ce3f13b17fe23457d7235b9afc99 | [
"MIT"
] | null | null | null | """Loads CartPole-v1 demonstrations and trains BC, GAIL, and AIRL models on that data.
"""
import os
import pathlib
import pickle
import tempfile
import seals # noqa: F401
import stable_baselines3 as sb3
from imitation.algorithms import adversarial, bc
from imitation.data import rollout
from imitation.util import ... | 33.263889 | 109 | 0.772443 |
bfde0530e9195e24f4af021d544ddf9f69b16e9f | 38,456 | py | Python | tests/integration/resources_permissions/test_epics_resources.py | aavcc/taiga-openshift | 7c33284573ceed38f755b8159ad83f3f68d2f7cb | [
"MIT"
] | null | null | null | tests/integration/resources_permissions/test_epics_resources.py | aavcc/taiga-openshift | 7c33284573ceed38f755b8159ad83f3f68d2f7cb | [
"MIT"
] | 12 | 2019-11-25T14:08:32.000Z | 2021-06-24T10:35:51.000Z | tests/integration/resources_permissions/test_epics_resources.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | 1 | 2018-06-07T10:58:15.000Z | 2018-06-07T10:58:15.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2017 Jess Espino <jespinog@gmail.com>
# Copyright (C) 2014-2017 David Barragn <bameda@dbarragan.com>
# Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# Copyright (C) 2014-2017 Anler Hernndez <he... | 42.120482 | 122 | 0.661145 |
bfe27fe9229cd07b93680b62a614ccd6ac91ab8a | 208 | py | Python | wmt-etl/config.py | ministryofjustice/hmpps-wmt | 66a85b029e2fc2b525b299f9e2ac1803b9cf8516 | [
"MIT"
] | 3 | 2017-02-27T17:09:20.000Z | 2017-03-27T08:23:50.000Z | wmt-etl/config.py | ministryofjustice/hmpps-wmt | 66a85b029e2fc2b525b299f9e2ac1803b9cf8516 | [
"MIT"
] | 3 | 2017-03-03T16:08:20.000Z | 2017-03-16T17:19:34.000Z | wmt-etl/config.py | ministryofjustice/noms-wmt-alpha | 66a85b029e2fc2b525b299f9e2ac1803b9cf8516 | [
"MIT"
] | 1 | 2021-04-11T06:54:44.000Z | 2021-04-11T06:54:44.000Z | import os
DB_SERVER = os.getenv('WMT_DB_SERVER', 'localhost')
DB_NAME = os.getenv('WMT_DB_NAME', 'wmt_db')
DB_USERNAME = os.getenv('WMT_DB_USERNAME', 'wmt')
DB_PASSWORD = os.getenv('WMT_DB_PASSWORD', 'wmt')
| 29.714286 | 51 | 0.735577 |
bfe2baa9a9cbbb83b453c87c86d2b93ecfcf0cc5 | 484 | py | Python | apps/teacheres/adminx.py | ECNU-Studio/emoc | b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c | [
"MIT"
] | 1 | 2018-03-10T08:50:18.000Z | 2018-03-10T08:50:18.000Z | apps/teacheres/adminx.py | ECNU-Studio/emoc | b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c | [
"MIT"
] | 13 | 2018-04-28T02:33:21.000Z | 2018-05-04T09:05:38.000Z | apps/teacheres/adminx.py | ECNU-Studio/emoc | b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c | [
"MIT"
] | null | null | null | # _*_ coding:utf-8 _*_
import xadmin
from .models import Teacheres
from courses.models import Courses
#
xadmin.site.register(Teacheres, TeacheresAdmin) | 23.047619 | 79 | 0.677686 |
bfe336aabdbb7507441477f437b0274a9584341b | 1,710 | py | Python | app/jitsi/main.py | RibhiEl-Zaru/jitsi-party | d51b827304f97010dcf82673d124c8f68f98cb02 | [
"MIT"
] | null | null | null | app/jitsi/main.py | RibhiEl-Zaru/jitsi-party | d51b827304f97010dcf82673d124c8f68f98cb02 | [
"MIT"
] | null | null | null | app/jitsi/main.py | RibhiEl-Zaru/jitsi-party | d51b827304f97010dcf82673d124c8f68f98cb02 | [
"MIT"
] | null | null | null | import os
import json
from .models import User
from flask import Blueprint, send_from_directory, redirect, url_for, current_app, request, jsonify
main = Blueprint('main', __name__)
def compute_ip():
headers_list = request.headers.getlist("X-Forwarded-For")
# using the 0th index of headers_list is dangerous f... | 36.382979 | 140 | 0.654386 |
bfe38fe20ac1fc18d323396f06464e2c237b6a00 | 2,728 | py | Python | easyai/data_loader/pc_cls/classify_pc_augment.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | 1 | 2020-09-05T09:18:56.000Z | 2020-09-05T09:18:56.000Z | easyai/data_loader/pc_cls/classify_pc_augment.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | 8 | 2020-04-20T02:18:55.000Z | 2022-03-12T00:24:50.000Z | easyai/data_loader/pc_cls/classify_pc_augment.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:
import numpy as np
| 38.422535 | 92 | 0.610337 |
bfe3cef09bab657f1130a7fa99db7d1c27c3b2b2 | 2,436 | py | Python | Examples/Image/Detection/FastRCNN/BrainScript/B3_VisualizeOutputROIs.py | shyamalschandra/CNTK | 0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d | [
"MIT"
] | 17,702 | 2016-01-25T14:03:01.000Z | 2019-05-06T09:23:41.000Z | Examples/Image/Detection/FastRCNN/BrainScript/B3_VisualizeOutputROIs.py | shyamalschandra/CNTK | 0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d | [
"MIT"
] | 3,489 | 2016-01-25T13:32:09.000Z | 2019-05-03T11:29:15.000Z | Examples/Image/Detection/FastRCNN/BrainScript/B3_VisualizeOutputROIs.py | shyamalschandra/CNTK | 0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d | [
"MIT"
] | 5,180 | 2016-01-25T14:02:12.000Z | 2019-05-06T04:24:28.000Z | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
from __future__ import print_function
import os, importlib, sys
from cntk_helpers i... | 41.288136 | 142 | 0.654351 |
bfe43a1f982ed9fd7da447c90684b4c6aa5f68e2 | 48 | py | Python | src/deepke/name_entity_re/__init__.py | johncolezhang/DeepKE | ea4552ec42cb003a835f00fc14fb454f9a9a7183 | [
"MIT"
] | 710 | 2021-08-01T16:43:59.000Z | 2022-03-31T08:39:17.000Z | src/deepke/name_entity_re/__init__.py | johncolezhang/DeepKE | ea4552ec42cb003a835f00fc14fb454f9a9a7183 | [
"MIT"
] | 66 | 2019-06-09T12:14:31.000Z | 2021-07-27T05:54:35.000Z | src/deepke/name_entity_re/__init__.py | johncolezhang/DeepKE | ea4552ec42cb003a835f00fc14fb454f9a9a7183 | [
"MIT"
] | 183 | 2018-09-07T06:57:13.000Z | 2021-08-01T08:50:15.000Z | from .standard import *
from .few_shot import *
| 16 | 23 | 0.75 |
bfe632653e44b0565da8ed9cef1a5b13a8e77385 | 3,756 | py | Python | tests/test_momentum.py | DanielDaCosta/optimization-algorithms | f06c67c218050926fd099ed255d73c19871b9a9a | [
"MIT"
] | 6 | 2020-05-03T00:55:45.000Z | 2021-06-26T15:34:57.000Z | tests/test_momentum.py | DanielDaCosta/optimization-algorithms | f06c67c218050926fd099ed255d73c19871b9a9a | [
"MIT"
] | null | null | null | tests/test_momentum.py | DanielDaCosta/optimization-algorithms | f06c67c218050926fd099ed255d73c19871b9a9a | [
"MIT"
] | 2 | 2020-08-03T17:53:48.000Z | 2020-12-24T22:05:27.000Z | import unittest
import numpy as np
from gradient_descent.Momentum import Momentum
if __name__ == '__main__':
unittest.main()
| 33.238938 | 79 | 0.502929 |
bfe67e7a43775352603cca8735626be5e0303770 | 2,436 | py | Python | recipes/Python/299133_bubblebabble/recipe-299133.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/299133_bubblebabble/recipe-299133.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/299133_bubblebabble/recipe-299133.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #! /usr/bin/env python
"""Compute a (somewhat more) human readable format for message
digests. This is port of the perl module Digest-BubbleBabble-0.01
(http://search.cpan.org/~btrott/Digest-BubbleBabble-0.01/)
"""
vowels = "aeiouy"
consonants = "bcdfghklmnprstvzx"
def bubblebabble(digest):
"""compute bubblebabb... | 33.369863 | 101 | 0.610016 |
bfe7c1cb3ac794391c15b7a6667e0e0823022367 | 657 | py | Python | jq/jq/schema.py | Thousif-S/J-Q | 478d69181bf22f23b56c75d50c212d9d4aa0b1a9 | [
"MIT"
] | null | null | null | jq/jq/schema.py | Thousif-S/J-Q | 478d69181bf22f23b56c75d50c212d9d4aa0b1a9 | [
"MIT"
] | 18 | 2020-02-12T01:05:41.000Z | 2022-03-11T23:58:14.000Z | jq/jq/schema.py | Thousif-S/J-Q | 478d69181bf22f23b56c75d50c212d9d4aa0b1a9 | [
"MIT"
] | null | null | null | import graphene
import graphql_jwt
import works.schema
import users.schema
import works.schema_relay
import people.schema
schema = graphene.Schema(query=Query, mutation=Mutation)
| 20.53125 | 56 | 0.750381 |
bfea18a49a910958928ffae603d2f21aece25fb7 | 7,497 | py | Python | t3f/batch_ops.py | KhrulkovV/t3f | 6fb7ac695d55c302dbd6930baec8c61b5aac54e3 | [
"MIT"
] | 1 | 2021-04-25T07:10:44.000Z | 2021-04-25T07:10:44.000Z | t3f/batch_ops.py | KhrulkovV/t3f | 6fb7ac695d55c302dbd6930baec8c61b5aac54e3 | [
"MIT"
] | null | null | null | t3f/batch_ops.py | KhrulkovV/t3f | 6fb7ac695d55c302dbd6930baec8c61b5aac54e3 | [
"MIT"
] | null | null | null | import tensorflow as tf
from t3f.tensor_train_base import TensorTrainBase
from t3f.tensor_train_batch import TensorTrainBatch
from t3f import ops
def concat_along_batch_dim(tt_list):
"""Concat all TensorTrainBatch objects along batch dimension.
Args:
tt_list: a list of TensorTrainBatch objects.
Returns:
... | 40.306452 | 87 | 0.657596 |
bfea29daaa8ed7a57cb3e9e6b1260c8d7dea0cc2 | 3,496 | py | Python | examples/python/sso/esi_oauth_native.py | Dusty-Meg/esi-docs | 43d2c07a371ea5b71ed51ba4e5be7dabda18ec3c | [
"MIT"
] | 130 | 2018-10-01T12:33:39.000Z | 2022-03-16T07:26:30.000Z | examples/python/sso/esi_oauth_native.py | Dusty-Meg/esi-docs | 43d2c07a371ea5b71ed51ba4e5be7dabda18ec3c | [
"MIT"
] | 30 | 2018-10-01T14:51:43.000Z | 2022-03-29T15:50:50.000Z | examples/python/sso/esi_oauth_native.py | Dusty-Meg/esi-docs | 43d2c07a371ea5b71ed51ba4e5be7dabda18ec3c | [
"MIT"
] | 59 | 2018-09-28T17:59:19.000Z | 2022-03-29T14:08:24.000Z | """ Python 3 native (desktop/mobile) OAuth 2.0 example.
This example can be run from the command line and will show you how the
OAuth 2.0 flow should be handled if you are a web based application.
Prerequisites:
* Create an SSO application at developers.eveonline.com with the scope
"esi-characters.re... | 39.280899 | 80 | 0.678776 |
bfea6d4f7615680bd982d58e764a76dea6be50fb | 1,763 | py | Python | queue_services/entity-emailer/tests/unit/email_processors/test_affiliation_notification.py | argush3/lear | 804820ea93a9ca44d1a474ce7a903bb0a808aacb | [
"Apache-2.0"
] | 8 | 2019-06-19T16:16:15.000Z | 2021-08-28T23:56:40.000Z | queue_services/entity-emailer/tests/unit/email_processors/test_affiliation_notification.py | argush3/lear | 804820ea93a9ca44d1a474ce7a903bb0a808aacb | [
"Apache-2.0"
] | 796 | 2019-03-07T19:25:50.000Z | 2022-03-31T20:32:57.000Z | queue_services/entity-emailer/tests/unit/email_processors/test_affiliation_notification.py | argush3/lear | 804820ea93a9ca44d1a474ce7a903bb0a808aacb | [
"Apache-2.0"
] | 82 | 2019-01-30T20:06:14.000Z | 2022-03-29T20:38:31.000Z | # Copyright 2021 Province of British Columbia
#
# 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 agre... | 36.729167 | 94 | 0.653999 |
bfebea815f2a5344d8b51e99f3afdbd91a02e2b8 | 756 | py | Python | examples/resourcetracking/client.py | brubbel/Pyro4 | 791f5aff6e0c89e74264843defdd694cdaf99cc5 | [
"MIT"
] | 638 | 2015-01-04T14:59:55.000Z | 2022-03-29T02:28:39.000Z | examples/resourcetracking/client.py | brubbel/Pyro4 | 791f5aff6e0c89e74264843defdd694cdaf99cc5 | [
"MIT"
] | 173 | 2015-01-05T17:29:19.000Z | 2021-12-25T01:47:07.000Z | examples/resourcetracking/client.py | brubbel/Pyro4 | 791f5aff6e0c89e74264843defdd694cdaf99cc5 | [
"MIT"
] | 103 | 2015-01-10T10:00:08.000Z | 2022-03-06T14:19:20.000Z | from __future__ import print_function
import sys
import random
import Pyro4
if sys.version_info < (3, 0):
input = raw_input
uri = input("Enter the URI of the server object: ")
with Pyro4.Proxy(uri) as proxy:
print("currently allocated resources:", proxy.list())
name1 = hex(random.randint(0, 999999))[-4... | 26.068966 | 97 | 0.685185 |
bfedec9341ad808415e8f390392546b8caf1b03c | 1,843 | py | Python | config_manager.py | jbytes1027/notify-mirror | b4a6bb94578dd4c9130731f153f901868f26cded | [
"CC0-1.0"
] | null | null | null | config_manager.py | jbytes1027/notify-mirror | b4a6bb94578dd4c9130731f153f901868f26cded | [
"CC0-1.0"
] | null | null | null | config_manager.py | jbytes1027/notify-mirror | b4a6bb94578dd4c9130731f153f901868f26cded | [
"CC0-1.0"
] | null | null | null | import pathlib
import configparser
| 32.910714 | 74 | 0.580033 |
bfeeaef350523448c6cf158714c62a0d2c908669 | 714 | py | Python | ass_tag_parser/draw_struct.py | bubblesub/ass_tag_parser | 89bd9ac47aa51a954604c41c6e633c938b2a1d62 | [
"MIT"
] | 10 | 2020-04-14T15:58:25.000Z | 2022-03-26T05:38:09.000Z | ass_tag_parser/draw_struct.py | rr-/ass_tag_parser | a758a3871b8904879a2588162335aa61863b370e | [
"MIT"
] | 4 | 2019-11-07T15:03:39.000Z | 2021-08-04T21:11:20.000Z | ass_tag_parser/draw_struct.py | rr-/ass_tag_parser | a758a3871b8904879a2588162335aa61863b370e | [
"MIT"
] | 1 | 2019-11-07T14:30:56.000Z | 2019-11-07T14:30:56.000Z | from dataclasses import dataclass
from typing import Optional
from ass_tag_parser.common import Meta
| 15.521739 | 59 | 0.768908 |
bfefe39bcfdb486b0d377809401f5593f41268c6 | 4,710 | py | Python | feedparser/parsers/json.py | briangedev/feedparser | de4f786b0c726380af825610da833e0dc76cf282 | [
"BSD-2-Clause"
] | 1 | 2022-01-26T06:45:59.000Z | 2022-01-26T06:45:59.000Z | feedparser/parsers/json.py | briangedev/feedparser | de4f786b0c726380af825610da833e0dc76cf282 | [
"BSD-2-Clause"
] | null | null | null | feedparser/parsers/json.py | briangedev/feedparser | de4f786b0c726380af825610da833e0dc76cf282 | [
"BSD-2-Clause"
] | null | null | null | # The JSON feed parser
# Copyright 2017 Beat Bolli
# All rights reserved.
#
# This file is a part of feedparser.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above... | 35.681818 | 86 | 0.614225 |
bff00f35cfa0182f724bf836ca255a2bb5de2883 | 4,211 | py | Python | aux/testUnicode.py | AlainLich/logtools | 584e575d25f0ebcd7a51cc6d5aefb530f80f6d22 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:48:18.000Z | 2022-03-09T05:50:13.000Z | aux/testUnicode.py | AlainLich/logtools | 584e575d25f0ebcd7a51cc6d5aefb530f80f6d22 | [
"Apache-2.0"
] | null | null | null | aux/testUnicode.py | AlainLich/logtools | 584e575d25f0ebcd7a51cc6d5aefb530f80f6d22 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -*- mode: Python -*-
#
# (C) Alain Lichnewsky, 2021
#
import os
import sys
import re
import unicodedata
import unittest
from hypothesis import given, assume, settings, HealthCheck
import hypothesis.strategies as st
# using a try block so that this makes sense if exp... | 28.452703 | 96 | 0.647827 |
bff1b2f3bc2fa9c88c4478ee4d6e6619827c343f | 2,586 | py | Python | pawlytics.py | damjess/ssb-bunnies-page | ef7fcfd195acaa8ef9e6630b9dacef77599d25cf | [
"MIT"
] | null | null | null | pawlytics.py | damjess/ssb-bunnies-page | ef7fcfd195acaa8ef9e6630b9dacef77599d25cf | [
"MIT"
] | null | null | null | pawlytics.py | damjess/ssb-bunnies-page | ef7fcfd195acaa8ef9e6630b9dacef77599d25cf | [
"MIT"
] | null | null | null | """
Pawlytics API retreival tool
Author: jess@menidae.com
Requires crontab to run tool hourly:
0 * * * * /path/to/python3 /path/to/file/pawlytics.py
"""
from urllib.request import Request
from urllib.request import urlopen
from typing import Dict
from urllib.request import HTTPError
import json
from json import dump... | 19.590909 | 53 | 0.658546 |
bff34ed954bb535419e69d62635bb3311abae523 | 1,099 | py | Python | vault_updater.py | alchem1ster/AddOns-Update-Tool | 82976d1e444b03f50010ff3272f7758317168f31 | [
"Unlicense"
] | 8 | 2021-12-06T14:27:16.000Z | 2022-01-17T22:17:06.000Z | vault_updater.py | alchem1ster/AddOns-Update-Tool | 82976d1e444b03f50010ff3272f7758317168f31 | [
"Unlicense"
] | 2 | 2021-12-28T20:08:33.000Z | 2022-01-05T22:42:32.000Z | vault_updater.py | alchem1ster/AddOns-Update-Tool | 82976d1e444b03f50010ff3272f7758317168f31 | [
"Unlicense"
] | null | null | null | """Vault update CLI"""
import sys
from argparse import ArgumentParser, FileType, _ArgumentGroup
from yaml import safe_load
from utils.log import log
from utils.vault import Vault
parser = ArgumentParser(description="Manual update of repositories Vault")
required: _ArgumentGroup = parser.add_argument_group("required... | 23.382979 | 74 | 0.629663 |
bff3b90a3063963cf92d3a3b5bb3b7ba2a7f479c | 13,004 | py | Python | tf-lstm-crf-batch/model.py | adapt-sjtu/novelner | a8f54ffe3360a4fdfa4b154a6668e74459a61ec3 | [
"Apache-2.0"
] | 8 | 2017-06-08T09:48:25.000Z | 2020-07-09T10:51:36.000Z | tf-lstm-crf-batch/model.py | adapt-sjtu/novelner | a8f54ffe3360a4fdfa4b154a6668e74459a61ec3 | [
"Apache-2.0"
] | 1 | 2018-07-07T12:38:25.000Z | 2018-07-07T12:38:25.000Z | tf-lstm-crf-batch/model.py | adapt-sjtu/novelner | a8f54ffe3360a4fdfa4b154a6668e74459a61ec3 | [
"Apache-2.0"
] | 4 | 2018-01-13T01:37:51.000Z | 2019-08-05T12:25:32.000Z | import os
import numpy as np
import tensorflow as tf
import cPickle
from utils import shared, get_name
from nn import HiddenLayer, EmbeddingLayer, LSTM, forward
| 49.823755 | 163 | 0.607967 |
bff41132c693f640921216d313ea2aaf31ff07fc | 1,076 | py | Python | revolt/plugins/commands/context.py | ppotatoo/revolt.py | 56d09b050e26898c6051eaee3fdd268a5b16bc22 | [
"MIT"
] | null | null | null | revolt/plugins/commands/context.py | ppotatoo/revolt.py | 56d09b050e26898c6051eaee3fdd268a5b16bc22 | [
"MIT"
] | null | null | null | revolt/plugins/commands/context.py | ppotatoo/revolt.py | 56d09b050e26898c6051eaee3fdd268a5b16bc22 | [
"MIT"
] | null | null | null | from revolt.types.file import File
from revolt.embed import Embed
from revolt.message import Message
from typing import Optional
| 37.103448 | 178 | 0.635688 |
bff7028914bc52a8b384670d2126ddb356c5fd23 | 2,860 | py | Python | 372_palanced.py | RLeary/rdp_challenges | b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05 | [
"MIT"
] | null | null | null | 372_palanced.py | RLeary/rdp_challenges | b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05 | [
"MIT"
] | null | null | null | 372_palanced.py | RLeary/rdp_challenges | b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05 | [
"MIT"
] | null | null | null | """Given a string containing only the characters x and y, find whether there are the same number of xs and ys.
balanced("xxxyyy") => true
balanced("yyyxxx") => true
balanced("xxxyyyy") => false
balanced("yyxyxxyxxyyyyxxxyxyx") => true
balanced("xyxxxxyyyxyxxyxxyy") => false
balanced("") => true
balanced("x") =... | 35.308642 | 193 | 0.662587 |
bff7d21b750936973cbd6252e64cc8e48e9a1836 | 4,108 | py | Python | src/gnnff/utils/data.py | ken2403/gnnff | 13e2428ef2fe6524572356f8df8412e91a3690af | [
"MIT"
] | null | null | null | src/gnnff/utils/data.py | ken2403/gnnff | 13e2428ef2fe6524572356f8df8412e91a3690af | [
"MIT"
] | null | null | null | src/gnnff/utils/data.py | ken2403/gnnff | 13e2428ef2fe6524572356f8df8412e91a3690af | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torch.utils.data import DataLoader
from torch.utils.data.sampler import RandomSampler
from gnnff.data.keys import Keys
from gnnff.data.split import train_test_split
__all__ = ["get_loader"]
def get_loader(dataset, args, split_path, logging=None):
"""
Parameters
----... | 28.136986 | 90 | 0.590798 |
bff840c3000c3f2fd947707aa1ec3f8be36ae525 | 1,510 | py | Python | setup.py | canvasslabs/packageurl-python | ea036912050ddeecff4741486de0d992fbe6bb0c | [
"MIT"
] | null | null | null | setup.py | canvasslabs/packageurl-python | ea036912050ddeecff4741486de0d992fbe6bb0c | [
"MIT"
] | null | null | null | setup.py | canvasslabs/packageurl-python | ea036912050ddeecff4741486de0d992fbe6bb0c | [
"MIT"
] | 1 | 2018-10-06T21:40:41.000Z | 2018-10-06T21:40:41.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# SPDX-License-Identifier: MIT
from __future__ import absolute_import
from __future__ import print_function
from glob import glob
from os.path import basename
from os.path import splitext
from setuptools import find_packages
from setuptools import setup
setup(
na... | 32.826087 | 90 | 0.660927 |
bff9635e2cdc0eb91f5d1e1167976170aacd1110 | 747 | py | Python | fduser/cms_plugins.py | ForumDev/forumdev-user | 1d5e03531466c30160c2b4cb9a48ca9e7bda61ba | [
"MIT"
] | null | null | null | fduser/cms_plugins.py | ForumDev/forumdev-user | 1d5e03531466c30160c2b4cb9a48ca9e7bda61ba | [
"MIT"
] | null | null | null | fduser/cms_plugins.py | ForumDev/forumdev-user | 1d5e03531466c30160c2b4cb9a48ca9e7bda61ba | [
"MIT"
] | 1 | 2020-10-12T06:28:18.000Z | 2020-10-12T06:28:18.000Z | from cms.plugin_base import CMSPluginBase
from cms.models.pluginmodel import CMSPlugin
from cms.plugin_pool import plugin_pool
from fduser import models
from django.utils.translation import ugettext as _
from django.contrib.sites.models import Site
plugin_pool.register_plugin(Users) # register the plugin
| 35.571429 | 78 | 0.740295 |
bff996f616a6fc45be900334f0ea9b69e69ce5c8 | 5,214 | py | Python | us_pls/_download/download_service.py | drawjk705/us-pls | 6b9a696b18c18de81b279862f182fb990604b998 | [
"MIT"
] | null | null | null | us_pls/_download/download_service.py | drawjk705/us-pls | 6b9a696b18c18de81b279862f182fb990604b998 | [
"MIT"
] | null | null | null | us_pls/_download/download_service.py | drawjk705/us-pls | 6b9a696b18c18de81b279862f182fb990604b998 | [
"MIT"
] | null | null | null | # pyright: reportUnknownMemberType=false
import logging
import zipfile
from pathlib import Path
from typing import Dict
import requests
from us_pls._config import Config
from us_pls._download.interface import IDownloadService
from us_pls._download.models import DatafileType, DownloadType
from us_pls._logger.interfac... | 30.670588 | 88 | 0.615075 |
bff9a7b958be7c7bb61197dabe8314ce6f7b3270 | 332 | py | Python | dlbot/dlbot.py | sergyp/dlbot | 6b23e14fc3022189d7ba2e7e2b70434c11e9af99 | [
"MIT"
] | null | null | null | dlbot/dlbot.py | sergyp/dlbot | 6b23e14fc3022189d7ba2e7e2b70434c11e9af99 | [
"MIT"
] | 1 | 2017-11-28T04:29:46.000Z | 2017-11-28T04:29:46.000Z | dlbot/dlbot.py | sergyp/dlbot | 6b23e14fc3022189d7ba2e7e2b70434c11e9af99 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from dlbot import default_settings
from flask import Flask
app = Flask(__name__, instance_relative_config=True)
app.config.from_object(default_settings)
app.config.from_pyfile('dlbot.cfg', silent=True)
if __name__ == '__main__':
app.run()
| 19.529412 | 52 | 0.740964 |
bffa85e9bedbc5efa7cc9534442416b01817938b | 95 | py | Python | sourcecode/pathwaysearch/fingerprint/__init__.py | CC-SXF/PyMiner | d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7 | [
"MIT"
] | 2 | 2022-01-20T07:38:00.000Z | 2022-01-20T07:56:39.000Z | sourcecode/pathwaysearch/fingerprint/__init__.py | CC-SXF/PyMiner | d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7 | [
"MIT"
] | null | null | null | sourcecode/pathwaysearch/fingerprint/__init__.py | CC-SXF/PyMiner | d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7 | [
"MIT"
] | 1 | 2022-01-11T14:29:48.000Z | 2022-01-11T14:29:48.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 28 10:15:21 2021
@author: CC-SXF
"""
| 10.555556 | 36 | 0.505263 |
bffadd5ef9ed55259f862e153a071bf79963137d | 5,742 | py | Python | lib/pyfrc/sim/robot_controller.py | prensing/pyfrc | 3b84a9a66ed97ee6531489baee26ce6c8478865b | [
"MIT"
] | null | null | null | lib/pyfrc/sim/robot_controller.py | prensing/pyfrc | 3b84a9a66ed97ee6531489baee26ce6c8478865b | [
"MIT"
] | null | null | null | lib/pyfrc/sim/robot_controller.py | prensing/pyfrc | 3b84a9a66ed97ee6531489baee26ce6c8478865b | [
"MIT"
] | null | null | null |
from hal_impl import mode_helpers
from hal_impl.data import hal_data
import threading
import time
import wpilib
from ..physics.core import PhysicsInterface
from .sim_manager import SimManager
| 32.258427 | 112 | 0.590038 |
bffb4ca3bb22fbd938fe7554fd918c6bfaaf6614 | 1,053 | py | Python | tests/core/engine/test_hybrid.py | halk/recowise | 3fd7c33182a79b3f7bea2d7ff1f3fd734764f04d | [
"MIT-0"
] | 1 | 2015-08-24T11:25:01.000Z | 2015-08-24T11:25:01.000Z | tests/core/engine/test_hybrid.py | halk/recowise | 3fd7c33182a79b3f7bea2d7ff1f3fd734764f04d | [
"MIT-0"
] | null | null | null | tests/core/engine/test_hybrid.py | halk/recowise | 3fd7c33182a79b3f7bea2d7ff1f3fd734764f04d | [
"MIT-0"
] | null | null | null | import unittest
from core.engine.hybrid import HybridEngine
from core.engine.simple import Engine
from core.taxonomy import Taxonomy
| 39 | 76 | 0.661918 |
bfff911df94e2189787b5ca569a10579a5dcb4c2 | 11,611 | py | Python | DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_7.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | 1 | 2019-06-27T04:05:59.000Z | 2019-06-27T04:05:59.000Z | DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_7.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | null | null | null | DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_7.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | null | null | null | # CHAPTER 7 (CNN)
#
# .
# . , Affine .
##########################################
# 2 #@#!@#!$!$!@#@!$%!@#!@#
##########################################
import numpy as np
data = np.array(range(0,81)).reshape(9,9)
filter = np.array(range(0,16)).reshape(4,4)
f_p = find_pad(data, filter, 1, 9) # St... | 35.39939 | 113 | 0.551977 |
8701baa38dbace3db22665ae3165e5ae00163f86 | 1,303 | py | Python | handlers/userProvider.py | saraheisa/RishaCar | 5e74b4996f956944fdf6733fc13efa0cc37cd7e1 | [
"MIT"
] | 1 | 2020-01-02T09:39:55.000Z | 2020-01-02T09:39:55.000Z | handlers/userProvider.py | prosarahgamal/RishaCar | 5e74b4996f956944fdf6733fc13efa0cc37cd7e1 | [
"MIT"
] | 3 | 2021-02-08T20:53:43.000Z | 2021-06-02T00:13:47.000Z | handlers/userProvider.py | prosarahgamal/RishaCar | 5e74b4996f956944fdf6733fc13efa0cc37cd7e1 | [
"MIT"
] | null | null | null | import json
import logging
from bson import json_util
from handlers.base import BaseHandler
from lib.DBConnection import DriveFunctions
from lib.DBConnection import UserFunctions
logger = logging.getLogger('rishacar.' + __name__)
| 28.326087 | 63 | 0.606293 |
8701d9777abb9867105564e069f85e55ea2668a5 | 806 | py | Python | project/settings/general/databases.py | danielbraga/hcap | a3ca0d6963cff19ed6ec0436cce84e2b41615454 | [
"MIT"
] | null | null | null | project/settings/general/databases.py | danielbraga/hcap | a3ca0d6963cff19ed6ec0436cce84e2b41615454 | [
"MIT"
] | null | null | null | project/settings/general/databases.py | danielbraga/hcap | a3ca0d6963cff19ed6ec0436cce84e2b41615454 | [
"MIT"
] | null | null | null | """
django:
https://docs.djangoproject.com/en/3.0/ref/settings/#databases
"""
from ..env import env
from .paths import SQLITE_PATH
DATABASE_TYPE = env("HCAP__DATABASE_TYPE", default="sqlite")
if DATABASE_TYPE == "sqlite":
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": str(SQLITE_PA... | 32.24 | 95 | 0.626551 |
8703dc62fa5bebbb67aa2d61d8d7ec816c00964c | 16,217 | py | Python | wbia_cnn/netrun.py | WildMeOrg/wbia-plugin-cnn | c31ff09e77b731be4dffc348a1c40303e8c05994 | [
"Apache-2.0"
] | null | null | null | wbia_cnn/netrun.py | WildMeOrg/wbia-plugin-cnn | c31ff09e77b731be4dffc348a1c40303e8c05994 | [
"Apache-2.0"
] | null | null | null | wbia_cnn/netrun.py | WildMeOrg/wbia-plugin-cnn | c31ff09e77b731be4dffc348a1c40303e8c05994 | [
"Apache-2.0"
] | 1 | 2021-05-27T15:33:26.000Z | 2021-05-27T15:33:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
r"""
FIXME:
sometimes you have to chown -R user:user ~/.theano or run with sudo the
first time after roboot, otherwise you get errors
CommandLineHelp:
python -m wbia_cnn --tf netrun <networkmodel>
--dataset, --ds = <dstag>:<subtag>
dstag is the main da... | 40.441397 | 194 | 0.635444 |
8703e2d3131fbbf507719f582a432f8703d7572d | 537 | py | Python | exerciciosPython/Mundo1GB/ex035.py | gutembergdomingos13/ExerciciosPhyton | 67e046d3ed91d1c10d8227bc5a89735ed6a0abff | [
"MIT"
] | null | null | null | exerciciosPython/Mundo1GB/ex035.py | gutembergdomingos13/ExerciciosPhyton | 67e046d3ed91d1c10d8227bc5a89735ed6a0abff | [
"MIT"
] | null | null | null | exerciciosPython/Mundo1GB/ex035.py | gutembergdomingos13/ExerciciosPhyton | 67e046d3ed91d1c10d8227bc5a89735ed6a0abff | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia o comprimento de trs retas
# e diga ao usurio se elas podem ou no formar um tringulo.
print("-=-" * 15)
print("Vamos analisar um tringulo...")
print('-=-' * 15)
r1 = float(input('Informe o primeiro segmento: '))
r2 = float(input('Informe o segundo seguimento: '))
r3 = float(input('In... | 33.5625 | 61 | 0.687151 |
870471c2d2cfa3694cd35571e655bc89ffdfcb61 | 1,032 | py | Python | python/test/test_super_multiple_order_api.py | ashwinkp/ksapi | c348765cefb4d51fd90febcbfa9ff890b67bdc7d | [
"Apache-2.0"
] | 7 | 2022-02-05T16:20:37.000Z | 2022-02-27T16:48:28.000Z | python/test/test_super_multiple_order_api.py | ashwinkp/ksapi | c348765cefb4d51fd90febcbfa9ff890b67bdc7d | [
"Apache-2.0"
] | 19 | 2022-02-03T12:40:08.000Z | 2022-03-30T09:12:46.000Z | python/test/test_super_multiple_order_api.py | ashwinkp/ksapi | c348765cefb4d51fd90febcbfa9ff890b67bdc7d | [
"Apache-2.0"
] | 12 | 2021-12-23T06:14:21.000Z | 2022-03-28T07:47:19.000Z | # coding: utf-8
from __future__ import absolute_import
import unittest
import ks_api_client
from ks_api_client.api.super_multiple_order_api import SuperMultipleOrderApi # noqa: E501
from ks_api_client.rest import ApiException
if __name__ == '__main__':
unittest.main()
| 21.5 | 99 | 0.679264 |