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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a46747ae7276835ae2706f03b8508ab150be2555 | 7,535 | py | Python | src/discriminator_cnn_ver.py | samirsahoo007/Conditional-SeqGAN-Tensorflow | 3610e606e845ebf40ac8a832aa5d5ca16fbf9013 | [
"MIT"
] | 51 | 2018-11-30T11:02:02.000Z | 2021-06-09T03:06:04.000Z | src/discriminator_cnn_ver.py | samirsahoo007/Conditional-SeqGAN-Tensorflow | 3610e606e845ebf40ac8a832aa5d5ca16fbf9013 | [
"MIT"
] | 4 | 2018-12-12T08:05:23.000Z | 2020-08-10T12:42:45.000Z | src/discriminator_cnn_ver.py | samirsahoo007/Conditional-SeqGAN-Tensorflow | 3610e606e845ebf40ac8a832aa5d5ca16fbf9013 | [
"MIT"
] | 18 | 2018-11-29T03:16:41.000Z | 2021-12-24T05:32:48.000Z | # -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ discriminator.py ]
# Synopsis [ Discriminator model ]
# Author [ Ting-Wei Liu (Andi611) ]
# Copyright [ Copyleft(c), NTUEE, NTU, Taiwan ]
"""***************... | 36.57767 | 143 | 0.637425 |
a4674eb728453fc3db1153276106d2ede4cb7d7a | 2,833 | py | Python | simple-fsm.py | jasonmpittman/100-days-of-alife-code | 296bc558f0289041bd5418467cc1c1ffc17cbda8 | [
"MIT"
] | null | null | null | simple-fsm.py | jasonmpittman/100-days-of-alife-code | 296bc558f0289041bd5418467cc1c1ffc17cbda8 | [
"MIT"
] | null | null | null | simple-fsm.py | jasonmpittman/100-days-of-alife-code | 296bc558f0289041bd5418467cc1c1ffc17cbda8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Created on 05/01/2018
# @author: Jason M. Pittman
# @license: MIT-license
# Purpose: example of a simple finite state machine with a text-based game agent
# Explanation:
from enum import Enum
import time
import random
def is_enemy_present():
present = random.randint(0,1)
if present =... | 28.616162 | 80 | 0.605365 |
a468bc3f8c7872a6af3170d81c5d24594468a8d8 | 850 | py | Python | custom_imports/importer/simple_finder.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | null | null | null | custom_imports/importer/simple_finder.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | 1 | 2020-05-21T02:36:07.000Z | 2020-05-21T12:55:24.000Z | custom_imports/importer/simple_finder.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from types import ModuleType
from typing import Callable, Iterable, Optional, TypeVar
from custom_imports.importer.types import Finder
from custom_imports.utils import field_required
__all__ = ["SimpleFinder"]
LT = TypeVar("LT") # Locator type.
| 25.757576 | 85 | 0.708235 |
a46ac1576eecd0be7b5baf81fa38cae27edd7701 | 481 | py | Python | libraries/api.py | dulibrarytech/oclc-reclamation | c753fe5dfa74109a95a45485b3eeb0bc59d5ffc6 | [
"Apache-2.0"
] | null | null | null | libraries/api.py | dulibrarytech/oclc-reclamation | c753fe5dfa74109a95a45485b3eeb0bc59d5ffc6 | [
"Apache-2.0"
] | null | null | null | libraries/api.py | dulibrarytech/oclc-reclamation | c753fe5dfa74109a95a45485b3eeb0bc59d5ffc6 | [
"Apache-2.0"
] | null | null | null | import logging
import logging.config
import requests
logging.config.fileConfig('logging.conf', disable_existing_loggers=False)
logger = logging.getLogger(__name__)
| 32.066667 | 73 | 0.713098 |
a46bebce2e5af6624fe2efad9d1562b2a2de61f2 | 910 | py | Python | script/sklearn_like_toolkit/warpper/skClf_wrapper/skRidgeCVClf.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/sklearn_like_toolkit/warpper/skClf_wrapper/skRidgeCVClf.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/sklearn_like_toolkit/warpper/skClf_wrapper/skRidgeCVClf.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | from sklearn.linear_model import RidgeClassifierCV as _RidgeClassifierCV
from script.sklearn_like_toolkit.warpper.base.BaseWrapperClf import BaseWrapperClf
from script.sklearn_like_toolkit.warpper.base.MixIn import MetaBaseWrapperClfWithABC
| 36.4 | 108 | 0.679121 |
a46c3d59438bb052be0c9db4f00c4b2c9b5dac99 | 2,056 | py | Python | nlp/if-paragraphs.py | bislai/lab | 3b47eee33dea5a6aa73fd320ccafb4db16cbe244 | [
"MIT"
] | 2 | 2018-11-16T16:53:29.000Z | 2018-11-21T14:05:54.000Z | nlp/if-paragraphs.py | bislai/lab | 3b47eee33dea5a6aa73fd320ccafb4db16cbe244 | [
"MIT"
] | 1 | 2018-11-21T07:20:02.000Z | 2018-11-21T07:20:02.000Z | nlp/if-paragraphs.py | bislai/scraping | 3b47eee33dea5a6aa73fd320ccafb4db16cbe244 | [
"MIT"
] | null | null | null | '''
Script que parsea el texto de un pdf a un string
Se convierte cada parrafo en un elemento de una lista
Se busca el nombre de un/una concejal/concejala en cada parrafo,
si se encuentra se guarda en un fichero TXT
'''
import re
import pdftotext
clean_list = []
dp_list = []
list_pln = [
'plenos/acta-pleno-280915... | 35.448276 | 160 | 0.639591 |
a46fece92eb439f540a183cb148c1526e11c96ba | 1,889 | py | Python | src/data/show_results.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | src/data/show_results.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | src/data/show_results.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | import pandas as pd
import plotly.graph_objects as go
import numpy as np
UMAP_TSNE_FOLDER = "reports_from_tobias/reports/fashion_natural_umap_tsne/"
TSNE_FOLDER = "reports/Noiselevel_experiment_pca_tsne/Fashion/"
TRIMAP_FOLDER = "reports_from_pranjal/aml_results/mnist-strat/"
files = ["results_sigma0.csv", "results... | 52.472222 | 168 | 0.761779 |
a4700301483444225df6a95a6f6b9cf4939094fe | 1,992 | py | Python | powerup.py | borgaster/SpaceWarsEvolved | 5d8683769a699e041c3d05f9e9bf48920345ce19 | [
"MIT"
] | null | null | null | powerup.py | borgaster/SpaceWarsEvolved | 5d8683769a699e041c3d05f9e9bf48920345ce19 | [
"MIT"
] | null | null | null | powerup.py | borgaster/SpaceWarsEvolved | 5d8683769a699e041c3d05f9e9bf48920345ce19 | [
"MIT"
] | null | null | null | import random
from loader import *
import pygame
from spritesheet import *
| 28.869565 | 72 | 0.508534 |
a470a79360573d74a59d7ee1dfec90bd343c616f | 2,800 | py | Python | 7i92/src/lib7i92/buildfiles.py | jethornton/7i92 | da93d3ae8ae9c73d070ae0271c6b60358c30ab7d | [
"MIT"
] | 3 | 2019-06-21T20:42:52.000Z | 2022-03-06T18:34:17.000Z | 7i92/src/lib7i92/buildfiles.py | jethornton/7i92 | da93d3ae8ae9c73d070ae0271c6b60358c30ab7d | [
"MIT"
] | 3 | 2019-12-11T15:47:48.000Z | 2022-03-13T10:51:10.000Z | 7i92/src/lib7i92/buildfiles.py | jethornton/7i92 | da93d3ae8ae9c73d070ae0271c6b60358c30ab7d | [
"MIT"
] | null | null | null | import os, subprocess
from datetime import datetime
| 41.176471 | 113 | 0.733571 |
a470c032b61f59b7611b51089adfd6173e3f70d9 | 5,366 | py | Python | scripts/make_easysrl_lexicon.py | marbles-ai/ie | b3fef462d3418580c827c94bc206bd2991500c1f | [
"MIT"
] | null | null | null | scripts/make_easysrl_lexicon.py | marbles-ai/ie | b3fef462d3418580c827c94bc206bd2991500c1f | [
"MIT"
] | null | null | null | scripts/make_easysrl_lexicon.py | marbles-ai/ie | b3fef462d3418580c827c94bc206bd2991500c1f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os
import re
import sys
# Modify python path
projdir = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
pypath = os.path.join(projdir, 'src', 'python')
datapath = os.path.join(pypath, 'marbles', 'ie... | 32.521212 | 84 | 0.522922 |
a47121f0380799ec909c56de36f20feecafdbe34 | 686 | py | Python | cwmud/core/commands/development/spawn.py | whutch/cwmud | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 11 | 2016-03-03T03:56:59.000Z | 2021-11-19T15:38:51.000Z | cwmud/core/commands/development/spawn.py | whutch/atria | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 26 | 2016-08-31T23:19:45.000Z | 2019-10-19T21:50:33.000Z | cwmud/core/commands/development/spawn.py | whutch/atria | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 2 | 2016-01-22T21:22:34.000Z | 2016-02-09T06:03:57.000Z | # -*- coding: utf-8 -*-
"""Spawn command."""
# Part of Clockwork MUD Server (https://github.com/whutch/cwmud)
# :copyright: (c) 2008 - 2017 Will Hutcheson
# :license: MIT (https://github.com/whutch/cwmud/blob/master/LICENSE.txt)
from .. import Command, COMMANDS
from ...characters import CharacterShell
CharacterShel... | 27.44 | 73 | 0.680758 |
a4720787109a5792563be8066fa21224a16b2464 | 377 | py | Python | utils/get_image.py | Mingqi-Yuan/ADMP | 788fce7d7134b948448550d6fe7b3267398ad163 | [
"MIT"
] | null | null | null | utils/get_image.py | Mingqi-Yuan/ADMP | 788fce7d7134b948448550d6fe7b3267398ad163 | [
"MIT"
] | null | null | null | utils/get_image.py | Mingqi-Yuan/ADMP | 788fce7d7134b948448550d6fe7b3267398ad163 | [
"MIT"
] | 3 | 2019-03-20T04:11:29.000Z | 2019-04-06T14:31:50.000Z | """
Encoding = UTF-8
By Mingqi, Yuan, 2019/3/18
Usage: get image file from the onstage
"""
from flask import request
import cv2
import os
| 22.176471 | 63 | 0.676393 |
a473ab9287986198b1629143c97ff9c6d16bd95a | 7,937 | py | Python | ipset.py | InsaLan/langate2000-netcontrol | ea6c831d9ffb228c61e2c4a6cd11f719377f41c2 | [
"Apache-2.0"
] | null | null | null | ipset.py | InsaLan/langate2000-netcontrol | ea6c831d9ffb228c61e2c4a6cd11f719377f41c2 | [
"Apache-2.0"
] | 4 | 2019-10-03T12:13:24.000Z | 2021-03-13T15:51:11.000Z | ipset.py | InsaLan/langate2000-netcontrol | ea6c831d9ffb228c61e2c4a6cd11f719377f41c2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from subprocess import run, PIPE, TimeoutExpired
from xmltodict import parse as parsexml
# timeout
# errorcode
def _run_cmd(command, args=[]):
"""
Helper function to help calling and decoding ipset output
:param command: command to run
:param args: li... | 29.396296 | 137 | 0.538743 |
a473e9963fdbb904402673df149e2f6f8f980818 | 1,114 | py | Python | 02-Coding-skills-swagger/swagger_server/test/test_default_controller.py | igor-voitov/inspectorio-devtest | a68c52f634069f499ee30aa2fe9224fc7fce67ae | [
"MIT"
] | null | null | null | 02-Coding-skills-swagger/swagger_server/test/test_default_controller.py | igor-voitov/inspectorio-devtest | a68c52f634069f499ee30aa2fe9224fc7fce67ae | [
"MIT"
] | null | null | null | 02-Coding-skills-swagger/swagger_server/test/test_default_controller.py | igor-voitov/inspectorio-devtest | a68c52f634069f499ee30aa2fe9224fc7fce67ae | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from flask import json
from six import BytesIO
from swagger_server.models.aws_info import AwsInfo # noqa: E501
from swagger_server.test import BaseTestCase
if __name__ == '__main__':
import unittest
unittest.main()
| 25.318182 | 77 | 0.606822 |
a4747ae9d0f1e204d3f6a51fac8839007788185d | 481 | py | Python | app/libs/loaderConfig.py | nrshapiro/openpubarchive | f6d3b7da6cd23e51b32e16e17ccb55b8511d32a6 | [
"Apache-2.0"
] | 1 | 2019-04-01T14:45:33.000Z | 2019-04-01T14:45:33.000Z | app/libs/loaderConfig.py | nrshapiro/openpubarchive | f6d3b7da6cd23e51b32e16e17ccb55b8511d32a6 | [
"Apache-2.0"
] | 46 | 2019-05-14T14:16:15.000Z | 2020-08-06T03:45:12.000Z | app/libs/loaderConfig.py | nrshapiro/openpubarchive | f6d3b7da6cd23e51b32e16e17ccb55b8511d32a6 | [
"Apache-2.0"
] | null | null | null |
# Configuration file for opasDataLoader
default_build_pattern = "(bEXP_ARCH1|bSeriesTOC)"
default_process_pattern = "(bKBD3|bSeriesTOC)"
# Global variables (for data and instances)
options = None
# Source codes (books/journals) which should store paragraphs
SRC_CODES_TO_INCLUDE_PARAS = ["GW", "SE"]
# for these code... | 32.066667 | 121 | 0.769231 |
a477cbe56b0f143b53d9193de114c7aa2f5db5ad | 2,195 | py | Python | app.py | 10239847509238470925387z/tmp123 | e899272ab0da746d7d31e3f2323530fb4e0272e9 | [
"Apache-2.0"
] | null | null | null | app.py | 10239847509238470925387z/tmp123 | e899272ab0da746d7d31e3f2323530fb4e0272e9 | [
"Apache-2.0"
] | null | null | null | app.py | 10239847509238470925387z/tmp123 | e899272ab0da746d7d31e3f2323530fb4e0272e9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import urllib
import json
import os
import constants
import accounts
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
PERSON = constants.TEST_1
if __name__ == '__main__':
port = int(os.geten... | 26.768293 | 144 | 0.636446 |
a4786c1160b07faa683e6e05ed183ddb5816146a | 2,545 | py | Python | commands/move/rps_move.py | hdm-dt-fb/rvt_model_services | af911b66add106b4135bfbe2b0f3af2547a2c127 | [
"MIT"
] | 28 | 2017-06-08T11:58:59.000Z | 2020-08-12T15:02:01.000Z | commands/move/rps_move.py | hdm-dt-fb/rvt_model_services | af911b66add106b4135bfbe2b0f3af2547a2c127 | [
"MIT"
] | 13 | 2017-07-31T07:36:15.000Z | 2020-04-17T15:19:47.000Z | commands/move/rps_move.py | hdm-dt-fb/rvt_model_services | af911b66add106b4135bfbe2b0f3af2547a2c127 | [
"MIT"
] | 13 | 2017-06-22T17:47:36.000Z | 2020-01-03T20:58:50.000Z | import os
import sys
import json
import clr
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import OpenOptions, DetachFromCentralOption, FilePath, ModelPathUtils
from Autodesk.Revit.DB import WorksetConfiguration, WorksetConfigurationOption
from Autodesk.Revit.DB import SaveAsOptions, WorksharingSaveAsOptions, Tran... | 33.486842 | 92 | 0.727701 |
a478bf882737f0a0d7a106e32f226dec1f85ff8f | 12,755 | py | Python | classes/tail_ec2_instance.py | remyh1369/aws-eb-log-retrieval | 677c13194c4d5738644732c620e56b7bcff159a3 | [
"MIT"
] | 1 | 2017-02-27T20:38:35.000Z | 2017-02-27T20:38:35.000Z | classes/tail_ec2_instance.py | remyh1369/aws-eb-log-retrieval | 677c13194c4d5738644732c620e56b7bcff159a3 | [
"MIT"
] | null | null | null | classes/tail_ec2_instance.py | remyh1369/aws-eb-log-retrieval | 677c13194c4d5738644732c620e56b7bcff159a3 | [
"MIT"
] | null | null | null | import os
import paramiko
import queue
from botocore.exceptions import EndpointConnectionError
from ebcli.objects.exceptions import NoRegionError
from ebcli.objects.exceptions import ServiceError
from os.path import expanduser
from paramiko.ssh_exception import SSHException
from threading import Thread
from queue impo... | 45.881295 | 183 | 0.629165 |
a47a32ae334c420ac07c4b9ac1bc03a676e204b5 | 2,297 | py | Python | ENIAC/api/models.py | Ahrli/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 1 | 2021-12-11T16:33:47.000Z | 2021-12-11T16:33:47.000Z | ENIAC/api/models.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | null | null | null | ENIAC/api/models.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 3 | 2021-11-22T09:46:43.000Z | 2022-01-28T22:33:07.000Z | from sanic_openapi import doc
'''**********************************************************
>>> model <<<
StrategyDtotradeConditionriskControl
tradeCondition:{
'params':{
'args':[],
'logic':logic
... | 37.655738 | 86 | 0.611667 |
a47bdf903d2754956ac1b8f8f95ac8eaca153b62 | 24,318 | py | Python | plugins/games/dueler.py | KVSword/mankabot | fc7e379db96f327eb5df8d730ba05e440460531b | [
"MIT"
] | null | null | null | plugins/games/dueler.py | KVSword/mankabot | fc7e379db96f327eb5df8d730ba05e440460531b | [
"MIT"
] | null | null | null | plugins/games/dueler.py | KVSword/mankabot | fc7e379db96f327eb5df8d730ba05e440460531b | [
"MIT"
] | null | null | null | from handler.base_plugin import BasePlugin
from vk.helpers import parse_user_id
import peewee_async, peewee, asyncio, random, time
# Requirements:
# PeeweePlugin
#
| 40.597663 | 324 | 0.538326 |
a47d6bfe819ded66253723a137d5f16ea4ccfb43 | 1,211 | py | Python | dist/assets/code/seance3/8.py | Mistergix/deficode | 6460ec3e22d36b67cef6815d9977fba973ab139b | [
"MIT"
] | null | null | null | dist/assets/code/seance3/8.py | Mistergix/deficode | 6460ec3e22d36b67cef6815d9977fba973ab139b | [
"MIT"
] | 10 | 2018-07-11T22:40:57.000Z | 2018-11-24T21:05:14.000Z | dist/assets/code/seance3/8.py | Mistergix/deficode | 6460ec3e22d36b67cef6815d9977fba973ab139b | [
"MIT"
] | null | null | null |
cadeau = (Chocolatine(), "Nicolas", "Julian")
#dplier un tuple
objet, destinataire, expediteur = cadeau
#afficher un tuple
print(cadeau)
#fonction qui mange un objet de type: tuple(objet, destinataire, expediteur)
truc_pour_untel = offrir(cadeau)
print(truc_pour_untel)
##exercice avanc##
cadeau = (Chocolatine... | 22.849057 | 104 | 0.652353 |
a47fa029a36ff0c32a340f11c3e4c167cc005848 | 17,038 | py | Python | lib/datasets/tpod_dataset.py | junjuew/py-faster-rcnn | cee50460078ea9756e03babc598a2fcbd18430b2 | [
"BSD-2-Clause"
] | 4 | 2017-01-24T01:02:40.000Z | 2020-05-19T02:32:16.000Z | lib/datasets/tpod_dataset.py | junjuew/py-faster-rcnn | cee50460078ea9756e03babc598a2fcbd18430b2 | [
"BSD-2-Clause"
] | 3 | 2016-09-04T20:07:31.000Z | 2018-03-31T20:25:21.000Z | lib/datasets/tpod_dataset.py | junjuew/py-faster-rcnn | cee50460078ea9756e03babc598a2fcbd18430b2 | [
"BSD-2-Clause"
] | 2 | 2017-04-03T02:00:54.000Z | 2020-05-14T17:09:57.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os, time
from datasets.imdb import imdb
import datasets.ds_utils... | 41.055422 | 118 | 0.560042 |
a481b64959d21f5b1a8b5aa4d7dbc677eb8568f2 | 2,850 | py | Python | MNIST.py | ConorTighe1995/Image-Identifier | 4b14dc530f80a92f88075dd0a101c3b209fba134 | [
"MIT"
] | null | null | null | MNIST.py | ConorTighe1995/Image-Identifier | 4b14dc530f80a92f88075dd0a101c3b209fba134 | [
"MIT"
] | null | null | null | MNIST.py | ConorTighe1995/Image-Identifier | 4b14dc530f80a92f88075dd0a101c3b209fba134 | [
"MIT"
] | null | null | null | # Conor Tighe - G00314417
import gzip
import numpy as np
import PIL.Image as pil
main() | 45.238095 | 141 | 0.645965 |
a4843a33cd0e6f3131f05b60bb7a9870ea68d5af | 7,323 | py | Python | vqc_pennylane/qdata.py | QML-HEP/ae_qml | f9061fe4eca76aaf0945255c48e13ced2fb6c24c | [
"MIT"
] | 7 | 2021-11-17T12:52:08.000Z | 2022-02-03T14:49:44.000Z | vqc_pennylane/qdata.py | QML-HEP/ae_qml | f9061fe4eca76aaf0945255c48e13ced2fb6c24c | [
"MIT"
] | 2 | 2022-01-21T15:18:37.000Z | 2022-02-11T13:24:34.000Z | vqc_pennylane/qdata.py | QML-HEP/ae_qml | f9061fe4eca76aaf0945255c48e13ced2fb6c24c | [
"MIT"
] | 1 | 2021-12-01T09:22:38.000Z | 2021-12-01T09:22:38.000Z | # Loads the data and an autoencoder model. The original data is passed
# through the AE and the latent space is fed to the qsvm network.
import sys
import os
import numpy as np
sys.path.append("..")
from .terminal_colors import tcols
from autoencoders import data as aedata
from autoencoders import util as aeutil
| 36.798995 | 87 | 0.582412 |
a484bdd1eb403382f98fb22c6f6ec574c6778758 | 529 | py | Python | octopus/constants.py | Fletch498ma/octopus | f2de0204a92b8cd9424805454212003f037d2984 | [
"MIT"
] | 12 | 2015-08-31T22:57:40.000Z | 2022-02-07T19:18:09.000Z | octopus/constants.py | Fletch498ma/octopus | f2de0204a92b8cd9424805454212003f037d2984 | [
"MIT"
] | 8 | 2017-12-17T18:56:23.000Z | 2021-08-23T13:26:16.000Z | octopus/constants.py | Fletch498ma/octopus | f2de0204a92b8cd9424805454212003f037d2984 | [
"MIT"
] | 10 | 2015-09-22T23:06:12.000Z | 2021-04-06T06:24:06.000Z | # Twisted Imports
from twisted.python.constants import ValueConstant, Values
| 27.842105 | 58 | 0.742911 |
a485203eed7da9af1f3d07a900bf441e21f54870 | 376 | py | Python | lang/py/pylib/code/fractions/fractions_limit_denominator.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/fractions/fractions_limit_denominator.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/fractions/fractions_limit_denominator.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2009 Doug Hellmann All rights reserved.
#
"""
"""
#end_pymotw_header
import fractions
import math
print 'PI =', math.pi
f_pi = fractions.Fraction(str(math.pi))
print 'No limit =', f_pi
for i in [ 1, 6, 11, 60, 70, 90, 100 ]:
limited = f_pi.limit_de... | 17.904762 | 55 | 0.640957 |
a4853590b32198c558f175a5e81689ec36bb3469 | 1,829 | py | Python | src/utils/utils.py | fangqyi/ROMA | 1a5a7456c54c3521ff54e6eed8c30904b051fe5a | [
"Apache-2.0"
] | null | null | null | src/utils/utils.py | fangqyi/ROMA | 1a5a7456c54c3521ff54e6eed8c30904b051fe5a | [
"Apache-2.0"
] | null | null | null | src/utils/utils.py | fangqyi/ROMA | 1a5a7456c54c3521ff54e6eed8c30904b051fe5a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
from torch import nn
def product_of_gaussians(mus, sigmas_squared):
'''
compute mu, sigma of product of gaussians
'''
sigmas_squared = torch.clamp(sigmas_squared, min=1e-7)
sigma_squared = 1. / torch.sum(torch.reciprocal(sigmas_squared), dim=0)
mu = sigma_squar... | 26.128571 | 75 | 0.605796 |
a488060539cff854d95648b82e1c48d584fd4649 | 75 | py | Python | client/gateway/__init__.py | crazyfacka/iseeyou | 0ab47bb5c7c190bb161887bdfa12ce099c79a7cf | [
"MIT"
] | null | null | null | client/gateway/__init__.py | crazyfacka/iseeyou | 0ab47bb5c7c190bb161887bdfa12ce099c79a7cf | [
"MIT"
] | null | null | null | client/gateway/__init__.py | crazyfacka/iseeyou | 0ab47bb5c7c190bb161887bdfa12ce099c79a7cf | [
"MIT"
] | null | null | null | """This imports all the lib package classes"""
from gateway import Gateway
| 25 | 46 | 0.773333 |
a488dc29c675a4fd1c8bedf3b0f85893d391af8e | 20,480 | py | Python | openamundsen/fileio/griddedoutput.py | openamundsen/openamundsen | 2ac09eb34b0c72c84c421a0dac08d114a05b7b1c | [
"MIT"
] | 3 | 2021-05-28T06:46:36.000Z | 2021-06-14T13:39:25.000Z | openamundsen/fileio/griddedoutput.py | openamundsen/openamundsen | 2ac09eb34b0c72c84c421a0dac08d114a05b7b1c | [
"MIT"
] | 22 | 2021-04-28T12:31:58.000Z | 2022-03-09T18:29:12.000Z | openamundsen/fileio/griddedoutput.py | openamundsen/openamundsen | 2ac09eb34b0c72c84c421a0dac08d114a05b7b1c | [
"MIT"
] | 1 | 2021-06-01T12:48:54.000Z | 2021-06-01T12:48:54.000Z | from dataclasses import dataclass
import netCDF4
import numpy as np
from openamundsen import constants, errors, fileio, util
import pandas as pd
import pandas.tseries.frequencies
import pyproj
import xarray as xr
_ALLOWED_OFFSETS = [
pd.tseries.offsets.YearEnd,
pd.tseries.offsets.YearBegin,
pd.tseries.off... | 37.034358 | 116 | 0.511426 |
a48a978010878e0af222f955c60047e8c7e7b87e | 2,725 | py | Python | onnx_model_maker/ops/op_ver_2.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 66 | 2021-05-05T08:03:22.000Z | 2022-03-10T07:03:02.000Z | onnx_model_maker/ops/op_ver_2.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 21 | 2021-05-06T02:56:42.000Z | 2021-11-25T03:52:14.000Z | onnx_model_maker/ops/op_ver_2.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 18 | 2021-05-05T11:54:09.000Z | 2022-03-25T17:42:32.000Z | # Autogenerated by onnx-model-maker. Don't modify it manually.
import onnx
import onnx.helper
import onnx.numpy_helper
from onnx_model_maker import omm
from onnx_model_maker import onnx_mm_export
from onnx_model_maker.ops.op_helper import _add_input
| 28.989362 | 101 | 0.57945 |
a48ad2aafdf7800c9a3314792ee9c32ba45187dc | 3,155 | py | Python | tests/presets/test_remove.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2022-02-24T06:21:18.000Z | 2022-02-24T06:21:18.000Z | tests/presets/test_remove.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2020-10-26T12:33:05.000Z | 2020-10-26T12:33:05.000Z | tests/presets/test_remove.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | null | null | null | import shutil
import os
import filecmp
from src.masonite.commands.presets.Remove import Remove
import unittest
| 43.819444 | 124 | 0.634231 |
a48ae7336ee1d7ff7f6b28c9bedae865b8e88589 | 3,350 | py | Python | modules/spotify.py | montarion/athena | ae8bd49786be613acc59e60edc758094bd26e7f4 | [
"Unlicense"
] | 3 | 2019-04-10T21:06:02.000Z | 2020-04-15T15:46:45.000Z | modules/spotify.py | montarion/athena | ae8bd49786be613acc59e60edc758094bd26e7f4 | [
"Unlicense"
] | 1 | 2019-05-21T13:45:35.000Z | 2019-05-21T13:45:35.000Z | modules/spotify.py | montarion/athena | ae8bd49786be613acc59e60edc758094bd26e7f4 | [
"Unlicense"
] | 2 | 2019-05-21T13:44:03.000Z | 2020-04-15T10:45:11.000Z | from components.logger import Logger
import requests
| 38.505747 | 117 | 0.565373 |
a48b04eff1e908d66a80013ba7003adb62c730cf | 1,083 | py | Python | insta/forms.py | CheropS/instagram-clone | 6e9ca1dcf0438991f3ee80efb4ee38cdc8eb5d32 | [
"MIT"
] | null | null | null | insta/forms.py | CheropS/instagram-clone | 6e9ca1dcf0438991f3ee80efb4ee38cdc8eb5d32 | [
"MIT"
] | null | null | null | insta/forms.py | CheropS/instagram-clone | 6e9ca1dcf0438991f3ee80efb4ee38cdc8eb5d32 | [
"MIT"
] | null | null | null | from django.contrib.auth import forms
from django.contrib.auth import models
from django.contrib.auth.models import User
from django import forms
from django.forms import fields, widgets
from .models import Comment, Post, Profile
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit,Layout,F... | 23.543478 | 75 | 0.65097 |
a48b8d8cba8d89e0d7d26e09e3e988db1dcbd798 | 5,090 | py | Python | services/base_image/fixed/fast_oci_object_storage_models__init__.py | samle-appsbroker/acquire | 34f29dc4173cb87f8e2f49864559b35efb48b21b | [
"Apache-2.0"
] | 21 | 2019-01-29T17:18:45.000Z | 2021-11-07T19:29:31.000Z | services/base_image/fixed/fast_oci_object_storage_models__init__.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | 229 | 2020-09-30T15:08:39.000Z | 2022-03-31T14:23:55.000Z | services/base_image/fixed/fast_oci_object_storage_models__init__.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | 4 | 2019-06-20T07:49:05.000Z | 2020-03-31T18:11:56.000Z | # coding: utf-8
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
from __future__ import absolute_import
import lazy_import as _lazy_import
Bucket = _lazy_import.lazy_class("oci.object_storage.models.bucket.Bucket")
BucketSummary = _lazy_import.lazy_class("oci.object_storage.models.bucke... | 74.852941 | 168 | 0.862672 |
a48ba12bffe580f2003d6f3f50fbca6fd9e323fb | 5,253 | py | Python | task1.py | ronakkkk/Distillation-using-Random-Forest-Classifier-on-Decision-Tree-Classifier-with-Comparison | 76e1d0a247a8e53774ec977519fb99304bf91684 | [
"Apache-2.0"
] | 1 | 2022-02-21T11:55:51.000Z | 2022-02-21T11:55:51.000Z | task1.py | ronakkkk/Distillation-using-Random-Forest-Classifier-on-Decision-Tree-Classifier-with-Comparison | 76e1d0a247a8e53774ec977519fb99304bf91684 | [
"Apache-2.0"
] | null | null | null | task1.py | ronakkkk/Distillation-using-Random-Forest-Classifier-on-Decision-Tree-Classifier-with-Comparison | 76e1d0a247a8e53774ec977519fb99304bf91684 | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sns
import pandas
import sklearn.tree
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import accuracy_score
from sklearn.model_selection impo... | 35.734694 | 133 | 0.662288 |
a48c219fde4023c589bf844ace8f4d76ec10e149 | 3,947 | py | Python | mountains/file/__init__.py | restran/mountains | ec121379ab1c13b5102348419080ca16decd67e1 | [
"MIT"
] | 5 | 2017-09-25T03:41:46.000Z | 2021-12-14T08:33:04.000Z | mountains/file/__init__.py | restran/mountains | ec121379ab1c13b5102348419080ca16decd67e1 | [
"MIT"
] | null | null | null | mountains/file/__init__.py | restran/mountains | ec121379ab1c13b5102348419080ca16decd67e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Created by restran on 2017/8/23
from __future__ import unicode_literals, absolute_import
import os
import shutil
from collections import deque
from .. import json
from ..datetime.converter import timestamp2datetime
from ..encoding import force_text, force_bytes
def read_dict(file_name, cle... | 23.217647 | 70 | 0.573093 |
a48db7ab9e0a53028d02e0ed93323eeb429408de | 7,099 | py | Python | dialogue/pytorch/modules.py | ishine/nlp-dialogue | d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c | [
"Apache-2.0"
] | 59 | 2021-02-15T09:15:12.000Z | 2022-03-29T01:48:24.000Z | dialogue/pytorch/modules.py | ishine/nlp-dialogue | d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c | [
"Apache-2.0"
] | null | null | null | dialogue/pytorch/modules.py | ishine/nlp-dialogue | d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c | [
"Apache-2.0"
] | 15 | 2021-02-15T09:16:04.000Z | 2022-02-21T07:18:02.000Z | # Copyright 2021 DengBoCong. 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 law or a... | 40.107345 | 118 | 0.652627 |
a490ee06ead230bb7e33a1e2e7cac9e8ebdd5c26 | 5,961 | py | Python | pytorch_intermediate_layers/intermediate_feature_module.py | janfreyberg/pytorch-intermediate-layers | 7b5c98588862f2b8a1ecb92f95082face06d26d1 | [
"Apache-2.0"
] | null | null | null | pytorch_intermediate_layers/intermediate_feature_module.py | janfreyberg/pytorch-intermediate-layers | 7b5c98588862f2b8a1ecb92f95082face06d26d1 | [
"Apache-2.0"
] | null | null | null | pytorch_intermediate_layers/intermediate_feature_module.py | janfreyberg/pytorch-intermediate-layers | 7b5c98588862f2b8a1ecb92f95082face06d26d1 | [
"Apache-2.0"
] | null | null | null | from typing import Union, Tuple, List, Dict
from typing_extensions import Literal
from collections import OrderedDict
import torch
from .recursive_getattr import _recursive_getattr
ReturnContainerTypes = Union[
Literal["dict"], Literal["list"], Literal["tensor"]
]
| 37.25625 | 79 | 0.597047 |
a4920af4ab5f1dec6c0dfdacb5323ca805590b4c | 1,554 | py | Python | succolib/visualisation/hist2d_tools.py | mattiasoldani/succolib | 95581fb9e4fabcc6d4232a63f5e92df49aab939a | [
"MIT"
] | null | null | null | succolib/visualisation/hist2d_tools.py | mattiasoldani/succolib | 95581fb9e4fabcc6d4232a63f5e92df49aab939a | [
"MIT"
] | 13 | 2020-06-23T08:57:58.000Z | 2022-03-25T16:11:39.000Z | succolib/visualisation/hist2d_tools.py | mattiasoldani/succolib | 95581fb9e4fabcc6d4232a63f5e92df49aab939a | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
########################################################################################################################
| 37.902439 | 167 | 0.579794 |
a492245bccb566824c5e19b8eb1f2297a1ac1aa1 | 14,504 | py | Python | engine.py | allexlima/AutomataTranslator | cd823b71f651947815e84595766e7e24235ea153 | [
"MIT"
] | 1 | 2019-04-12T15:24:15.000Z | 2019-04-12T15:24:15.000Z | engine.py | danielbispov/AutomataTranslator | cd823b71f651947815e84595766e7e24235ea153 | [
"MIT"
] | 2 | 2016-10-13T16:59:47.000Z | 2016-10-15T01:42:25.000Z | engine.py | danielbispov/AutomataTranslator | cd823b71f651947815e84595766e7e24235ea153 | [
"MIT"
] | 2 | 2016-09-28T15:21:34.000Z | 2016-10-15T23:09:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Importa as bibliotecas bsicas para o funcionamento da traduo
import json
import xml
import xmltodict
import jsonschema
# Classe Model responsvel por validar o Input/Output, i.e., a estrutura do autmato
# Jflap a classe responsvel por realizar a Importao e Exportao... | 45.043478 | 251 | 0.597559 |
a49283430cac9a784c6081915a579abb8cc1365e | 1,049 | py | Python | json_t.py | aaparikh/Intermediate-Python-Practice | 6f49bea8f677e7ed500cd1ec91df4c8531832abb | [
"Apache-2.0"
] | 1 | 2022-03-08T16:35:51.000Z | 2022-03-08T16:35:51.000Z | json_t.py | aaparikh/Intermediate-Python-Practice | 6f49bea8f677e7ed500cd1ec91df4c8531832abb | [
"Apache-2.0"
] | null | null | null | json_t.py | aaparikh/Intermediate-Python-Practice | 6f49bea8f677e7ed500cd1ec91df4c8531832abb | [
"Apache-2.0"
] | null | null | null | from inspect import ClassFoundException
import json
#read json file to dictionary
person = json.load(open('./sample.json'))
print(type(person))
#convert dict to json str with pretty formatting (provided by indentation)
#sort_keys prints the keys in alphabetical order
wperson = json.dumps(person,indent=4,sort_keys=Tru... | 26.225 | 77 | 0.697807 |
a4929242f0c900a114f168cbf0acf788017ff4c3 | 724 | py | Python | src/utils/download_test_assets.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | src/utils/download_test_assets.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | src/utils/download_test_assets.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | import urllib.request
import zipfile
import os
import shutil
url = "https://github.com/mgleed/botty-test-assets/archive/refs/heads/main.zip"
extract_dir = "tmp"
asset_dir = "test/assets"
if not os.path.exists(asset_dir):
print(f"Downloading test assets...")
try:
zip_path, _ = urllib.request.urlretriev... | 31.478261 | 79 | 0.668508 |
a49518db39a03563c8c189bc72fe10750d630bac | 2,732 | py | Python | examples/tutorial.py | alulujasmine/mc3 | d4c7581b3ce6a0009882cfb102278e15032bfcad | [
"MIT"
] | 6 | 2019-11-20T05:32:26.000Z | 2021-04-29T15:15:15.000Z | examples/tutorial.py | alulujasmine/mc3 | d4c7581b3ce6a0009882cfb102278e15032bfcad | [
"MIT"
] | 15 | 2019-08-30T14:47:11.000Z | 2022-03-13T17:10:47.000Z | examples/tutorial.py | alulujasmine/mc3 | d4c7581b3ce6a0009882cfb102278e15032bfcad | [
"MIT"
] | 3 | 2020-06-13T15:32:47.000Z | 2022-03-27T00:34:02.000Z | import sys
import numpy as np
import mc3
def quad(p, x):
"""
Quadratic polynomial function.
Parameters
p: Polynomial constant, linear, and quadratic coefficients.
x: Array of dependent variables where to evaluate the polynomial.
Returns
y: Polinomial evaluated at x: y(x) = p0... | 26.784314 | 75 | 0.627013 |
a495b9287cef3b1495deb0a17f3ccdbbcfee8124 | 11,838 | py | Python | model/run_GRU.py | Liang-Qiu/GRU_Android | 5ebab518fb700f49fa181eeff09cc030114d2992 | [
"MIT"
] | 11 | 2017-12-04T08:55:22.000Z | 2021-06-24T09:21:33.000Z | model/run_GRU.py | Liang-Qiu/GRU_Android | 5ebab518fb700f49fa181eeff09cc030114d2992 | [
"MIT"
] | 1 | 2017-12-13T11:09:59.000Z | 2021-01-21T19:59:00.000Z | model/run_GRU.py | LiangKlausQiu/GRU_Android | 5ebab518fb700f49fa181eeff09cc030114d2992 | [
"MIT"
] | 3 | 2017-07-21T10:53:52.000Z | 2017-10-03T06:24:15.000Z | #copyright 2016 LiangKlausQiu. 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 law or... | 39.328904 | 163 | 0.688207 |
a4967d174d0a18e78ed6cd486861863e94b773ac | 822 | py | Python | lib/tagger/exceptions.py | shunf4/pys60v1-pymusic | 6bf03e296c7faae67dbe1d59ef563190b56ace5b | [
"MIT"
] | 3 | 2016-08-18T22:10:55.000Z | 2022-03-12T15:19:52.000Z | lib/tagger/exceptions.py | shunf4/pys60v1-pymusic | 6bf03e296c7faae67dbe1d59ef563190b56ace5b | [
"MIT"
] | null | null | null | lib/tagger/exceptions.py | shunf4/pys60v1-pymusic | 6bf03e296c7faae67dbe1d59ef563190b56ace5b | [
"MIT"
] | 3 | 2015-04-30T22:35:26.000Z | 2019-06-11T13:06:48.000Z | """ Custom Exceptions """
__author__ = "Alastair Tse <alastair@tse.id.au>"
__license__ = "BSD"
__copyright__ = "Copyright (c) 2004, Alastair Tse"
__revision__ = "$Id: exceptions.py,v 1.2 2004/05/04 12:18:21 acnt2 Exp $"
| 22.216216 | 73 | 0.754258 |
a496e48848f357b4ade065a3766b10cd2ce5bcec | 1,848 | py | Python | pydish/http_server.py | failsafe89/pydish | bdb335d4496a344191b22f0cccca952103b894a2 | [
"Apache-2.0"
] | 1 | 2020-05-14T03:50:39.000Z | 2020-05-14T03:50:39.000Z | pydish/http_server.py | failsafe89/pydish | bdb335d4496a344191b22f0cccca952103b894a2 | [
"Apache-2.0"
] | null | null | null | pydish/http_server.py | failsafe89/pydish | bdb335d4496a344191b22f0cccca952103b894a2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2020 Mathew Young
# 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 ... | 41.066667 | 97 | 0.718074 |
a4974678c1ab9a1a8f72ebf507d934e30b79f05b | 554 | py | Python | api/routers.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 5 | 2017-09-25T21:24:59.000Z | 2021-12-18T17:08:13.000Z | api/routers.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 304 | 2015-03-24T17:44:22.000Z | 2022-03-29T14:09:41.000Z | api/routers.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 10 | 2017-10-24T02:18:12.000Z | 2021-09-20T20:40:25.000Z | from rest_framework.routers import Route, DynamicRoute, SimpleRouter
| 22.16 | 68 | 0.50722 |
a497860a22e4635156226ce70e46fe3eba81239c | 1,799 | py | Python | level/routes.py | Mineorbit/DungeonsAndDungeonsLevelServer | 11ee12f7dd948454702df98eefb4a2bc51cb3815 | [
"MIT"
] | null | null | null | level/routes.py | Mineorbit/DungeonsAndDungeonsLevelServer | 11ee12f7dd948454702df98eefb4a2bc51cb3815 | [
"MIT"
] | 10 | 2021-02-02T19:34:52.000Z | 2021-10-16T20:46:02.000Z | level/routes.py | Mineorbit/DungeonsAndDungeonsLevelServer | 11ee12f7dd948454702df98eefb4a2bc51cb3815 | [
"MIT"
] | null | null | null | from typing import List
from fastapi import APIRouter, UploadFile, File, Depends
import file.controllers as file_controller
import level.controllers as level_controller
from decorators import proto_resp
from level.models import Level
from file.models import File as FileT
from level.views import LevelMetaDataOut, Leve... | 32.125 | 158 | 0.778766 |
a497bc4e7e818255c65d9b9421ba448d1b064d29 | 5,023 | py | Python | 34_NextWordPrediction.py | bjascob/SmartLMVocabs | 9989cccc67387d38fc829f34022c66a7d9bba415 | [
"Apache-2.0"
] | 10 | 2019-04-10T09:44:10.000Z | 2021-05-03T21:13:44.000Z | 34_NextWordPrediction.py | bjascob/SmartLMVocabs | 9989cccc67387d38fc829f34022c66a7d9bba415 | [
"Apache-2.0"
] | null | null | null | 34_NextWordPrediction.py | bjascob/SmartLMVocabs | 9989cccc67387d38fc829f34022c66a7d9bba415 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# Copyright 2018 Brad Jascob
#
# 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... | 39.865079 | 95 | 0.657774 |
a499f43d7b3ae08fe01505f69164e54b9e3840f0 | 9,230 | py | Python | python/marvin/contrib/vacs/hi.py | elicharlese/marvin | 4c16e413dade5bb6e9273adcc414bc79cfec8ba1 | [
"BSD-3-Clause"
] | 49 | 2016-11-04T19:20:50.000Z | 2022-03-13T08:43:05.000Z | python/marvin/contrib/vacs/hi.py | elicharlese/marvin | 4c16e413dade5bb6e9273adcc414bc79cfec8ba1 | [
"BSD-3-Clause"
] | 703 | 2016-11-02T01:25:14.000Z | 2022-03-31T19:20:03.000Z | python/marvin/contrib/vacs/hi.py | elicharlese/marvin | 4c16e413dade5bb6e9273adcc414bc79cfec8ba1 | [
"BSD-3-Clause"
] | 37 | 2016-11-09T08:51:48.000Z | 2022-02-22T22:49:45.000Z | # !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2018-10-11 17:51:43
# @Last modified by: Brian Cherinka
# @Last Modified time: 2018-11-29 17:23:15
from __future__ import print_function, division, absolute_import
import numpy as np
impor... | 35.775194 | 110 | 0.623727 |
a49aa154e520ad02781fd6c1bb4f0593818acda8 | 600 | py | Python | circleguard/config.py | wmpmiles/circleguard | c49a278cf2d5a001d2287c02e308ab79b3483d6e | [
"MIT"
] | null | null | null | circleguard/config.py | wmpmiles/circleguard | c49a278cf2d5a001d2287c02e308ab79b3483d6e | [
"MIT"
] | null | null | null | circleguard/config.py | wmpmiles/circleguard | c49a278cf2d5a001d2287c02e308ab79b3483d6e | [
"MIT"
] | null | null | null | import pathlib
from secret import API_KEY
PATH_ROOT = pathlib.Path(__file__).parent
PATH_REPLAYS_STUB = PATH_ROOT / "replays"
API_BASE = "https://osu.ppy.sh/api/"
API_REPLAY = API_BASE + "get_replay?k=" + API_KEY + "&m=0&b={}&u={}"
API_SCORES_ALL = API_BASE + "get_scores?k=" + API_KEY + "&m=0&b={}&limit={}"
API_SCOR... | 31.578947 | 76 | 0.636667 |
a49b9a3bf89e8e52c235f972667f207df7eaa41d | 333 | py | Python | pyslab/core/locations.py | benhorsburgh/pyslab | d495ca87110f1ac0fb1b49df49024f590bbb6c5c | [
"MIT"
] | null | null | null | pyslab/core/locations.py | benhorsburgh/pyslab | d495ca87110f1ac0fb1b49df49024f590bbb6c5c | [
"MIT"
] | null | null | null | pyslab/core/locations.py | benhorsburgh/pyslab | d495ca87110f1ac0fb1b49df49024f590bbb6c5c | [
"MIT"
] | null | null | null | from typing import List
from .types import Cell
| 16.65 | 51 | 0.633634 |
a49fce1f95f38d7808365570b6d980f3cd1c9609 | 13,136 | py | Python | tiles.py | SouthFACT/southfact_tiles | edffcb1f1cac983d22e52e30a8a442f47207d697 | [
"MIT"
] | null | null | null | tiles.py | SouthFACT/southfact_tiles | edffcb1f1cac983d22e52e30a8a442f47207d697 | [
"MIT"
] | null | null | null | tiles.py | SouthFACT/southfact_tiles | edffcb1f1cac983d22e52e30a8a442f47207d697 | [
"MIT"
] | null | null | null | import sys, os, glob, time, uuid, csv, warnings, itertools, processing, numpy, boto3
start_time = time.time()
S3 = boto3.client('s3')
from processing.core.Processing import Processing
from osgeo import gdal
from osgeo import osr
from qgis.utils import *
from qgis.core import (
QgsApplication,
QgsProcessing,... | 34.93617 | 343 | 0.613886 |
a4a1341a47418ffee6ba8d4388fa1e153f30467e | 714 | py | Python | quokka/utils/__init__.py | mutita/FlaskPyCMS | cf87c7f2a55fc2df0be427764819b5df4d375520 | [
"MIT"
] | 1 | 2015-11-05T17:33:16.000Z | 2015-11-05T17:33:16.000Z | quokka/utils/__init__.py | laborautonomo/quokka | d6e08f15e8b35ce69ea1f0c9c294d5141f34c53a | [
"MIT"
] | null | null | null | quokka/utils/__init__.py | laborautonomo/quokka | d6e08f15e8b35ce69ea1f0c9c294d5141f34c53a | [
"MIT"
] | 2 | 2019-10-06T14:07:43.000Z | 2021-07-08T20:27:24.000Z | # -*- coding: utf-8 -*-
import logging
from speaklater import make_lazy_string
from quokka.modules.accounts.models import User
logger = logging.getLogger()
| 23.8 | 55 | 0.677871 |
a4a2a2a2b2d54e6113a78c2cd41a0782b40fca23 | 22,920 | py | Python | parla/parray/core.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | null | null | null | parla/parray/core.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | null | null | null | parla/parray/core.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from parla.cpu_impl import cpu
from parla.task_runtime import get_current_devices, get_scheduler_context
from parla.device import Device
from .coherence import MemoryOperation, Coherence, CPU_INDEX
import threading
import numpy
try: # if the system has no GPU
import cupy
n... | 34.727273 | 117 | 0.595375 |
a4a44c07ccc7878448c0aae7909908b40f8bca88 | 5,088 | py | Python | Stage 3 Transfer Learning with Keras Application /output_plot/train_50_epoch_keras.py | imxiaow/Deep-Learning-Based-Analysis-on-Histopathology-Images-of-Lung-Cancer | 3e2d96bdf095f99d6a8d800babafe72b2bf6b895 | [
"MIT"
] | 1 | 2020-08-24T19:55:35.000Z | 2020-08-24T19:55:35.000Z | Stage 3 Transfer Learning with Keras Application /output_plot/train_50_epoch_keras.py | imxiaow/Deep-Learning-Based-Analysis-on-Histopathology-Images-of-Lung-Cancer | 3e2d96bdf095f99d6a8d800babafe72b2bf6b895 | [
"MIT"
] | null | null | null | Stage 3 Transfer Learning with Keras Application /output_plot/train_50_epoch_keras.py | imxiaow/Deep-Learning-Based-Analysis-on-Histopathology-Images-of-Lung-Cancer | 3e2d96bdf095f99d6a8d800babafe72b2bf6b895 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.applications.inception_resnet_v2 import InceptionResNetV2
from tensorflow.keras.applications.inception_resnet_v2 import preprocess_input
from tensorflow.keras.optimizers import Adam
import matplotlib
matplotlib.use('agg')
impo... | 41.704918 | 188 | 0.688286 |
a4a4806c0f26942854d6736a2bed167e72d43f93 | 1,352 | py | Python | tests/regressions/issue_61/test_issue_61.py | bitranox/Arpeggio | 62151cb8ef2cfe5113a4388da09892e7714c5e96 | [
"MIT"
] | null | null | null | tests/regressions/issue_61/test_issue_61.py | bitranox/Arpeggio | 62151cb8ef2cfe5113a4388da09892e7714c5e96 | [
"MIT"
] | null | null | null | tests/regressions/issue_61/test_issue_61.py | bitranox/Arpeggio | 62151cb8ef2cfe5113a4388da09892e7714c5e96 | [
"MIT"
] | null | null | null | # stdlib
import pytest # type: ignore
# proj
from arpeggio import *
| 25.509434 | 79 | 0.60429 |
a4a51161da395cb642968996bd39887142236598 | 3,854 | py | Python | dataReader/dataset.py | chupengrocky/HackthonClimate | 3011c18fd2a3901625064f30e213f16dab4304c3 | [
"MIT"
] | null | null | null | dataReader/dataset.py | chupengrocky/HackthonClimate | 3011c18fd2a3901625064f30e213f16dab4304c3 | [
"MIT"
] | null | null | null | dataReader/dataset.py | chupengrocky/HackthonClimate | 3011c18fd2a3901625064f30e213f16dab4304c3 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
import torch
import numpy as np
from sklearn.preprocessing import StandardScaler, MinMaxScaler, OneHotEncoder
import pandas as pd
np.random.seed(0) | 34.106195 | 194 | 0.665023 |
a4a7927d50da1a7190517b09dd5e16658342666a | 3,494 | py | Python | client_onedrive/src/setup.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 15 | 2016-10-28T13:56:52.000Z | 2022-01-31T19:07:49.000Z | client_onedrive/src/setup.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 56 | 2017-03-16T03:52:32.000Z | 2022-03-12T01:05:28.000Z | client_onedrive/src/setup.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 11 | 2016-05-31T16:22:02.000Z | 2020-10-05T14:37:10.000Z | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2013 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "L... | 31.477477 | 80 | 0.574986 |
a4a80fe8d20da2268e461d8ff77f3d1e541a4785 | 1,885 | py | Python | src/dataloader/bsd_patches.py | nrupatunga/pytorch-deaf | 751a37669e78f6671a26cb5cff42c05139bf3c41 | [
"MIT"
] | 8 | 2020-08-29T17:52:37.000Z | 2022-01-05T09:11:58.000Z | src/dataloader/bsd_patches.py | nrupatunga/pytorch-deaf | 751a37669e78f6671a26cb5cff42c05139bf3c41 | [
"MIT"
] | null | null | null | src/dataloader/bsd_patches.py | nrupatunga/pytorch-deaf | 751a37669e78f6671a26cb5cff42c05139bf3c41 | [
"MIT"
] | 1 | 2021-11-11T07:56:46.000Z | 2021-11-11T07:56:46.000Z | """
File: bsd_patches.py
Author: Nrupatunga
Email: nrupatunga.s@byjus.com
Github: https://github.com/nrupatunga
Description: BSDS500 patches
"""
import time
from pathlib import Path
import h5py
import numpy as np
from tqdm import tqdm
mode = 'train'
mat_root_dir = f'/media/nthere/datasets/DIV_superres/patches/train/'... | 30.901639 | 77 | 0.55756 |
a4a8a24eb6a3149f51bbf5416fa7ca44460923c6 | 635 | py | Python | BI_eyes_django/eyes/oracle.py | KameniAlexNea/ETL-Python | fd1220a0d22fdecd55c13e6ac33c39c7bab4043f | [
"MIT"
] | null | null | null | BI_eyes_django/eyes/oracle.py | KameniAlexNea/ETL-Python | fd1220a0d22fdecd55c13e6ac33c39c7bab4043f | [
"MIT"
] | null | null | null | BI_eyes_django/eyes/oracle.py | KameniAlexNea/ETL-Python | fd1220a0d22fdecd55c13e6ac33c39c7bab4043f | [
"MIT"
] | null | null | null | import pandas_oracle.tools as pt
def read_oracle_example():
"""
Lire les donnes d'une bd oracle
"""
query1 = "select id, name from students where name like '%Oscar%'"
query2 = "select class, avg(age) from students group by class"
## opening conn
conn = pt.open_connection("config.yml") ... | 31.75 | 88 | 0.683465 |
a4a941f3dde56c43a60247a1dbf2338cf3ad155a | 2,431 | py | Python | src/adventofcode2021/solutions/day03.py | RoelAdriaans/adventofcode2021 | d9c01ca9b855ca7e15c7d334c715d322601b8e19 | [
"MIT"
] | null | null | null | src/adventofcode2021/solutions/day03.py | RoelAdriaans/adventofcode2021 | d9c01ca9b855ca7e15c7d334c715d322601b8e19 | [
"MIT"
] | 26 | 2021-11-30T21:39:56.000Z | 2022-03-31T04:31:32.000Z | src/adventofcode2021/solutions/day03.py | RoelAdriaans/adventofcode2021 | d9c01ca9b855ca7e15c7d334c715d322601b8e19 | [
"MIT"
] | null | null | null | from collections import Counter
from adventofcode2021.utils.abstract import FileReaderSolution
| 31.571429 | 87 | 0.518717 |
8ef620d25e139d90023f0be743c33c64d489c6c0 | 1,810 | py | Python | utils/mysqlTools.py | kalenforn/MMVA | 1e4ec5417d4497a14f226fab8a66fe065a9f0f65 | [
"MIT"
] | 4 | 2021-12-16T08:17:49.000Z | 2022-03-12T10:14:50.000Z | utils/mysqlTools.py | kalenforn/video-content-clean | 4b6e572ec034fbe2e668c250cff8e1c9a13dd0e0 | [
"MIT"
] | null | null | null | utils/mysqlTools.py | kalenforn/video-content-clean | 4b6e572ec034fbe2e668c250cff8e1c9a13dd0e0 | [
"MIT"
] | 1 | 2021-12-14T08:17:41.000Z | 2021-12-14T08:17:41.000Z | import pymysql
| 31.206897 | 104 | 0.583425 |
8ef77e8d75a3c261c64fd61537512a6b1e170eda | 5,429 | py | Python | plur/stage_1/dummy_dataset.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 52 | 2021-12-03T17:54:27.000Z | 2022-03-30T13:38:16.000Z | plur/stage_1/dummy_dataset.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 2 | 2022-02-18T01:04:45.000Z | 2022-03-31T17:20:25.000Z | plur/stage_1/dummy_dataset.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 6 | 2021-12-21T06:00:44.000Z | 2022-03-30T21:10:46.000Z | # Copyright 2021 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 or agreed to in writing, ... | 39.34058 | 83 | 0.709707 |
8ef85708ab32d77d250dc4442a1b579f02e718b3 | 498 | py | Python | Tests/get_url_test.py | by09115/Flask-URLshortener | 860eef75d86658f91a9316c253b512bf3aad0a6c | [
"MIT"
] | 1 | 2019-01-02T08:50:07.000Z | 2019-01-02T08:50:07.000Z | Tests/get_url_test.py | by09115/Flask-URLshortener | 860eef75d86658f91a9316c253b512bf3aad0a6c | [
"MIT"
] | null | null | null | Tests/get_url_test.py | by09115/Flask-URLshortener | 860eef75d86658f91a9316c253b512bf3aad0a6c | [
"MIT"
] | null | null | null | from Tests import TestCaseBase, check_status_code
| 26.210526 | 76 | 0.680723 |
8ef87bb956a2d95887f7f188afbe2f9f90fc4a70 | 6,675 | py | Python | experiments_track/ab_bayes/src/implem/plots.py | elisarchodorov/ML-Recipes | a648151f6c88b3e0068df551c41a0c84081645f1 | [
"BSD-2-Clause"
] | null | null | null | experiments_track/ab_bayes/src/implem/plots.py | elisarchodorov/ML-Recipes | a648151f6c88b3e0068df551c41a0c84081645f1 | [
"BSD-2-Clause"
] | null | null | null | experiments_track/ab_bayes/src/implem/plots.py | elisarchodorov/ML-Recipes | a648151f6c88b3e0068df551c41a0c84081645f1 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import plotly.graph_objects as go
from scipy import stats
from tqdm import tqdm
from src.implem.data import DataTransformers
from src.implem.orchester import AdmissionGroup
PLOT_LEGEND_LAYOUT = { "height":800,
"width":1500,
"legend_orientation":"h"}
| 38.80814 | 102 | 0.53588 |
8efa27465ee70bfbc56c901b2eb3966989f9f4a9 | 3,206 | py | Python | tests/test_testing.py | LaudateCorpus1/windlass | 721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5 | [
"Apache-2.0"
] | 4 | 2018-09-11T15:57:10.000Z | 2019-06-17T08:01:51.000Z | tests/test_testing.py | LaudateCorpus1/windlass | 721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5 | [
"Apache-2.0"
] | 8 | 2019-06-11T10:17:29.000Z | 2021-05-04T16:59:28.000Z | tests/test_testing.py | LaudateCorpus1/windlass | 721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5 | [
"Apache-2.0"
] | 1 | 2019-05-30T15:33:42.000Z | 2019-05-30T15:33:42.000Z | #
# (c) Copyright 2018 Hewlett Packard Enterprise Development LP
#
# 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 applicab... | 33.747368 | 79 | 0.618528 |
8efbb08c7ad125b8828d06cf94ccfe9911bc9524 | 1,589 | py | Python | ir_axioms/axiom/cache.py | webis-de/ir_axioms | 9c1b3ed4e47c6c4f3405ebd49fff0ceeb431a753 | [
"MIT"
] | 11 | 2022-02-20T12:10:12.000Z | 2022-03-11T15:45:19.000Z | ir_axioms/axiom/cache.py | heinrichreimer/ir_axioms | f7349c4adde96cfa19c7247824a70a4662c07582 | [
"MIT"
] | 3 | 2022-02-28T15:47:29.000Z | 2022-03-02T09:14:59.000Z | ir_axioms/axiom/cache.py | heinrichreimer/ir_axioms | f7349c4adde96cfa19c7247824a70a4662c07582 | [
"MIT"
] | 1 | 2022-02-20T15:42:42.000Z | 2022-02-20T15:42:42.000Z | from dataclasses import dataclass
from diskcache import Cache
from ir_axioms.axiom.base import Axiom
from ir_axioms.model import RankedDocument, Query, IndexContext
| 25.222222 | 78 | 0.567653 |
8efc98d7e4eb141fef0607960a15a9bd4ca69fc1 | 6,659 | py | Python | addons/loop.py | noirscape/Kurisu | 9e74067252767db0320c564bcef5ba3ff663b2ad | [
"Apache-2.0"
] | null | null | null | addons/loop.py | noirscape/Kurisu | 9e74067252767db0320c564bcef5ba3ff663b2ad | [
"Apache-2.0"
] | null | null | null | addons/loop.py | noirscape/Kurisu | 9e74067252767db0320c564bcef5ba3ff663b2ad | [
"Apache-2.0"
] | null | null | null | import asyncio
import copy
import discord
import feedparser
import sys
import time
import datetime
import traceback
import os
import json
from discord.ext import commands
from urllib.parse import urlparse, parse_qs
| 52.433071 | 211 | 0.499324 |
8efcb07f31cdfd94de1b43df75d06bb21b637b78 | 1,748 | py | Python | lilac/__init__.py | mba811/lilac | ce7a4e19f7f73c07b2e6b4b33fb19b3812e8e131 | [
"MIT"
] | 1 | 2019-05-07T15:09:39.000Z | 2019-05-07T15:09:39.000Z | lilac/__init__.py | mba811/lilac | ce7a4e19f7f73c07b2e6b4b33fb19b3812e8e131 | [
"MIT"
] | null | null | null | lilac/__init__.py | mba811/lilac | ce7a4e19f7f73c07b2e6b4b33fb19b3812e8e131 | [
"MIT"
] | null | null | null | # coding=utf8
#
# OOO$QHHHQ$$$$$$$$$QQQHHHHNHHHNNNNNNNNNNN
# OO$$QHHNHQ$$$$$O$$$QQQHHHNNHHHNNNNNNMNNN
# $$$QQHHHH$$$OOO$$$$QQQQHHHHHHHNHNNNMNNNN
# HHQQQHHH--:!OOO$$$QQQQQQQHHHHHNNNNNNNNNN
# NNNHQHQ-;-:-:O$$$$$QQQ$QQQQHHHHNNNNNNNNN
# NMNHHQ;-;----:$$$$$$$:::OQHHHHHNNNNHHNNN
# NNNHH;;;-----:C$$$$$::----::-::>NNNNNNNN
# N... | 36.416667 | 50 | 0.521167 |
8efe95eafa908d3169cdc68b35a5197eefd70eb8 | 25,006 | py | Python | tests/unit/metadata/test_table.py | bjg290/SDV | 0a7c88b6743207bd3f193f7e60686fd5c03c1dfb | [
"MIT"
] | null | null | null | tests/unit/metadata/test_table.py | bjg290/SDV | 0a7c88b6743207bd3f193f7e60686fd5c03c1dfb | [
"MIT"
] | null | null | null | tests/unit/metadata/test_table.py | bjg290/SDV | 0a7c88b6743207bd3f193f7e60686fd5c03c1dfb | [
"MIT"
] | null | null | null | from unittest.mock import Mock, patch
import pandas as pd
import pytest
from faker import Faker
from faker.config import DEFAULT_LOCALE
from rdt.transformers.numerical import NumericalTransformer
from sdv.constraints.base import Constraint
from sdv.constraints.errors import MissingConstraintColumnError
from sdv.error... | 35.621083 | 100 | 0.603975 |
f100d09d5dd0ea20c9825e6a6951cbbe2a921a4d | 4,351 | py | Python | kensu/client/models/field_def.py | vidma/kensu-py | aae1e04373f03c988d55772fde6563de3ca9f375 | [
"Apache-2.0"
] | 16 | 2021-04-28T13:22:41.000Z | 2022-03-02T10:45:19.000Z | kensu/client/models/field_def.py | vidma/kensu-py | aae1e04373f03c988d55772fde6563de3ca9f375 | [
"Apache-2.0"
] | 12 | 2021-05-17T08:06:42.000Z | 2022-02-28T22:43:04.000Z | kensu/client/models/field_def.py | vidma/kensu-py | aae1e04373f03c988d55772fde6563de3ca9f375 | [
"Apache-2.0"
] | 5 | 2021-04-27T15:02:16.000Z | 2021-10-15T16:07:21.000Z | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: beta
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
def to_str(self... | 24.307263 | 105 | 0.536199 |
f100e025fe6a6a4febc5095140e62400215c08f0 | 5,605 | py | Python | computing/ch03-budget-app/budget.py | chaudha4/python-projects | baba3235069b7d6b084f28904f0662c043762175 | [
"MIT"
] | null | null | null | computing/ch03-budget-app/budget.py | chaudha4/python-projects | baba3235069b7d6b084f28904f0662c043762175 | [
"MIT"
] | 3 | 2021-11-23T22:19:19.000Z | 2022-03-12T00:52:34.000Z | computing/ch03-budget-app/budget.py | chaudha4/python-projects | baba3235069b7d6b084f28904f0662c043762175 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
food = Category("Foods")
food.deposit(1000, "initial deposit")
food.withdraw(10.15, "groceries")
food.withdraw(15.89, "restaurant and more food for dessert")
# print(food.get_balance())
clothing = Category("Clothing")
food.transfer(50, clothing)
clothing.wi... | 30.134409 | 77 | 0.525245 |
f10129be0e71ad8c5f65e28b28ca3e29eeb39bb1 | 94 | py | Python | client/console/task_cs.py | eonuallain/dcomp | 49e65b8576ef663b8566566000b24f634ddf33aa | [
"MIT"
] | null | null | null | client/console/task_cs.py | eonuallain/dcomp | 49e65b8576ef663b8566566000b24f634ddf33aa | [
"MIT"
] | null | null | null | client/console/task_cs.py | eonuallain/dcomp | 49e65b8576ef663b8566566000b24f634ddf33aa | [
"MIT"
] | null | null | null | from task_base import TaskBase
| 13.428571 | 30 | 0.691489 |
f10140909d7c9a6eafd24e2fedc3e6277375a929 | 21 | py | Python | mielelogic/__init__.py | PTST/MieleLogic | 25ff2d2f2d59c6e944db9d9804c3fe62894a312a | [
"MIT"
] | null | null | null | mielelogic/__init__.py | PTST/MieleLogic | 25ff2d2f2d59c6e944db9d9804c3fe62894a312a | [
"MIT"
] | null | null | null | mielelogic/__init__.py | PTST/MieleLogic | 25ff2d2f2d59c6e944db9d9804c3fe62894a312a | [
"MIT"
] | null | null | null | from .miele import *
| 10.5 | 20 | 0.714286 |
f101a0069caa43d107f6a15ff23c4991f93e9068 | 6,301 | py | Python | chemical_formula_to_reading_periodic_table.py | tomo835g/Deep-Learning-to-find-Superconductors | a35b71c6eddc6a2a5157ba4f499ff5fb247e032b | [
"MIT"
] | 4 | 2020-12-22T16:16:34.000Z | 2022-02-18T19:21:07.000Z | chemical_formula_to_reading_periodic_table.py | tomo835g/Superconductors | 90b977d95740e2462bbcd2c05a259857ac552f61 | [
"MIT"
] | null | null | null | chemical_formula_to_reading_periodic_table.py | tomo835g/Superconductors | 90b977d95740e2462bbcd2c05a259857ac552f61 | [
"MIT"
] | 2 | 2021-01-23T04:26:55.000Z | 2021-02-09T03:34:43.000Z | import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import os
from pymatgen import Composition
'''here is an example'''
"""
test_formula = 'H2He5'
reading_periodic_table = TransformReadingPeriodicTable(formula=test_formula)
reading_periodic_table_form_data = reading_periodic_table.... | 43.756944 | 401 | 0.487383 |
f103f3beff058ebe048a170aa0243ec816ff577e | 3,007 | py | Python | spotpy/database/sql.py | cheginit/spotpy | 38feaf7dbb0ddcbf31e138519ef649f07ac0cded | [
"MIT"
] | 182 | 2016-04-16T16:38:21.000Z | 2022-03-18T16:12:57.000Z | spotpy/database/sql.py | cheginit/spotpy | 38feaf7dbb0ddcbf31e138519ef649f07ac0cded | [
"MIT"
] | 234 | 2015-12-08T10:58:52.000Z | 2021-12-21T17:54:34.000Z | spotpy/database/sql.py | cheginit/spotpy | 38feaf7dbb0ddcbf31e138519ef649f07ac0cded | [
"MIT"
] | 137 | 2015-12-23T09:32:13.000Z | 2022-03-31T13:44:29.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import sqlite3
import sys
from .base import database
if sys.version_info[0] >= 3:
unicode = str
| 33.786517 | 111 | 0.598271 |
f10416747a1ff8f4a4affe6681c94660775c7e00 | 5,472 | py | Python | nominations/migrations/0001_initial.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | 911 | 2015-01-03T22:16:06.000Z | 2022-03-31T23:56:22.000Z | nominations/migrations/0001_initial.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | 1,342 | 2015-01-02T16:14:45.000Z | 2022-03-28T08:01:20.000Z | nominations/migrations/0001_initial.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | 551 | 2015-01-04T02:17:31.000Z | 2022-03-23T11:59:25.000Z | # Generated by Django 2.0.9 on 2019-03-18 20:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import markupfield.fields
| 36.238411 | 86 | 0.41356 |
f106143a7db16b5f00e1dab51a69a934bb8ab617 | 212 | py | Python | Lib/Scripts/font/layers/import.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:43:56.000Z | 2019-07-27T00:35:20.000Z | hTools2.roboFontExt/lib/Scripts/current font/layers/import.py | gferreira/hTools2_extension | 9e5150082a0a39847c1078aac3dc38d914a44f83 | [
"BSD-3-Clause"
] | 2 | 2017-08-08T21:02:17.000Z | 2019-12-18T15:55:48.000Z | Lib/Scripts/font/layers/import.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 4 | 2015-01-10T13:58:50.000Z | 2019-12-18T15:40:14.000Z | # [h] import ufo into layer
import hTools2.dialogs.font.layer_import
reload(hTools2.dialogs.font.layer_import)
from hTools2.dialogs.font.layer_import import importUFOIntoLayerDialog
importUFOIntoLayerDialog()
| 23.555556 | 70 | 0.84434 |
f10b49aaee68e7293e9a1314d7972c5caea9edb2 | 750 | py | Python | neighbor/migrations/0002_auto_20210412_2210.py | LewisNjagi/neighborhood | cbefac55b930999629dba202a784a096799949a4 | [
"MIT"
] | null | null | null | neighbor/migrations/0002_auto_20210412_2210.py | LewisNjagi/neighborhood | cbefac55b930999629dba202a784a096799949a4 | [
"MIT"
] | null | null | null | neighbor/migrations/0002_auto_20210412_2210.py | LewisNjagi/neighborhood | cbefac55b930999629dba202a784a096799949a4 | [
"MIT"
] | 2 | 2021-04-14T05:56:06.000Z | 2021-04-15T14:20:02.000Z | # Generated by Django 3.2 on 2021-04-12 22:10
from django.db import migrations, models
import django.db.models.deletion
| 30 | 145 | 0.64 |
f10b59083b7a666ccfb09cd20f7fcb67fcb7777c | 3,156 | py | Python | home_application/biz_utils.py | kevinwen24/examPorject | 8f4d6cb305949301988c4851558aaf1af8c5cf1c | [
"Apache-2.0"
] | null | null | null | home_application/biz_utils.py | kevinwen24/examPorject | 8f4d6cb305949301988c4851558aaf1af8c5cf1c | [
"Apache-2.0"
] | null | null | null | home_application/biz_utils.py | kevinwen24/examPorject | 8f4d6cb305949301988c4851558aaf1af8c5cf1c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import requests
from django.utils.translation import ugettext as _
from django.utils import translation
from django.core.cache import cache
from common.log import logger
from conf.default import APP_ID, APP_TOKEN, BK_PAAS_HOST
from constants import (HEADERS)
def get_data_by_api(... | 33.221053 | 96 | 0.579531 |
f10c79f2e66be2d31bb61e574317d2eef21da993 | 4,068 | py | Python | pylps/core.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 1 | 2018-05-19T18:28:12.000Z | 2018-05-19T18:28:12.000Z | pylps/core.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 12 | 2018-04-26T00:58:11.000Z | 2018-05-13T22:03:39.000Z | pylps/core.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | null | null | null | from pylps.constants import *
from pylps.config import CONFIG
from pylps.kb import KB
from pylps.engine import ENGINE
from pylps.lps_objects import GoalClause, Observation, ReactiveRule
import pylps.creator as creator
''' Declarations '''
''' Core loop '''
def execute(
n_solutions=CONFIG_DEFAULT... | 21.1875 | 79 | 0.682645 |
f10d7af7d4bebbf857ae84697ac625165c495280 | 1,349 | py | Python | livia/input/FrameInputDecorator.py | sing-group/livia-core | 5f0db6ea0e1791703719c49f0cbd0f3e559d42a6 | [
"MIT"
] | null | null | null | livia/input/FrameInputDecorator.py | sing-group/livia-core | 5f0db6ea0e1791703719c49f0cbd0f3e559d42a6 | [
"MIT"
] | null | null | null | livia/input/FrameInputDecorator.py | sing-group/livia-core | 5f0db6ea0e1791703719c49f0cbd0f3e559d42a6 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Tuple, Optional
from numpy import ndarray
from livia.input.FrameInput import FrameInput
| 29.326087 | 84 | 0.704225 |
f10df601a7c5749970e3056bb9860eea4ebaf2e2 | 1,186 | py | Python | pyuwb/client_id_utils.py | Jiangshan00001/pyuwb | 9253c9f7481199eddac37dec544723fba31ba996 | [
"MIT"
] | 1 | 2022-03-24T03:08:46.000Z | 2022-03-24T03:08:46.000Z | pyuwb/client_id_utils.py | Jiangshan00001/pyuwb | 9253c9f7481199eddac37dec544723fba31ba996 | [
"MIT"
] | null | null | null | pyuwb/client_id_utils.py | Jiangshan00001/pyuwb | 9253c9f7481199eddac37dec544723fba31ba996 | [
"MIT"
] | null | null | null | __author__ = "songjiangshan"
__copyright__ = "Copyright (C) 2021 songjiangshan \n All Rights Reserved."
__license__ = ""
__version__ = "1.0"
DEVICE_TYPE_TAG=0 #OLD3
DEVICE_TYPE_ANCHOR=1 #OLD2
DEVICE_TYPE_ANCHORZ=2 #OLD1
def client_id_get_no(client_id: str):
"""
:param client_id:
:return: int
""... | 23.72 | 86 | 0.667791 |
f10f5a5558344607d8e17f931b04638a32470cce | 2,751 | py | Python | minesweep_python3.py | andonis1616/python_minesweep | 479fe50bff5754f4b425c35fa2d3299be2725edc | [
"MIT"
] | null | null | null | minesweep_python3.py | andonis1616/python_minesweep | 479fe50bff5754f4b425c35fa2d3299be2725edc | [
"MIT"
] | null | null | null | minesweep_python3.py | andonis1616/python_minesweep | 479fe50bff5754f4b425c35fa2d3299be2725edc | [
"MIT"
] | null | null | null | import random
from os import system, name
dx = [-1,-1,-1,0,0,1,1,1]
dy = [-1,0,1,-1,1,-1,0,1]
#Clearing the console
n = user_input("Board size:")
k = user_input("Number of bombs:")
Board = [[0 for i in range(n+2)] for i in range(n+2)]
VisibleBoard = [['X' for i in range(n+2)] for i in range(n+2)]
VisitedBoard = [[0 ... | 21.492188 | 93 | 0.592148 |
f10f9d27421300b1fdd0a309643ad08a50750df9 | 1,323 | py | Python | tests/test_k2.py | LanzLagman/chronos | 3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470 | [
"MIT"
] | null | null | null | tests/test_k2.py | LanzLagman/chronos | 3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470 | [
"MIT"
] | null | null | null | tests/test_k2.py | LanzLagman/chronos | 3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pandas as pd
import lightkurve as lk
from chronos.k2 import K2, Everest, K2sff
EPICID = 211916756 # k2-95
CAMPAIGN = 5 # or 18
def test_k2_attributes():
"""
"""
# test inherited attributes
s = K2(epicid=EPICID, campaign=CAMPAIGN)
assert s.epicid is not None
as... | 24.5 | 70 | 0.692366 |
f11004b8b2440fc97ec0e3b374da4a63264ff26e | 388 | py | Python | ch22-直方图/22.3.4.hsv_hist-绘制2D直方图.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 2,875 | 2016-10-21T01:33:22.000Z | 2022-03-30T12:15:28.000Z | ch22-直方图/22.3.4.hsv_hist-绘制2D直方图.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 12 | 2017-07-18T14:24:27.000Z | 2021-07-04T10:32:25.000Z | ch22-直方图/22.3.4.hsv_hist-绘制2D直方图.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 1,066 | 2017-03-11T01:43:28.000Z | 2022-03-29T14:52:41.000Z | # -*-coding:utf8-*-#
__author__ = 'play4fun'
"""
create time:15-11-8 4:44
2D
"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('../data/home.jpg')
# cv2.imshow("src", img)
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
hist = cv2.calcHist([hsv], [0, 1], None, [180, 256], [0, 180, 0,... | 19.4 | 70 | 0.667526 |
f110129af89d79bf9ca90e80ac76cb3aa6153784 | 585 | py | Python | joinnector/service/lead_service.py | joinnector/rewardpythonsdk | b0f51023597fc5eb1c3c663d3e53b88598c3ea95 | [
"MIT"
] | null | null | null | joinnector/service/lead_service.py | joinnector/rewardpythonsdk | b0f51023597fc5eb1c3c663d3e53b88598c3ea95 | [
"MIT"
] | null | null | null | joinnector/service/lead_service.py | joinnector/rewardpythonsdk | b0f51023597fc5eb1c3c663d3e53b88598c3ea95 | [
"MIT"
] | null | null | null | # pylint: disable=useless-super-delegation
from joinnector.service.base_sdk_service import BaseSDKService
lead_service = LeadService("lead")
| 27.857143 | 66 | 0.717949 |
f1107e14eb95b62e250a40cd6d588b10b4876251 | 3,577 | py | Python | sylver/backend/postgres.py | jdclarke5/sylver | 181f151480855882b2d74b21a4360472213324a6 | [
"MIT"
] | null | null | null | sylver/backend/postgres.py | jdclarke5/sylver | 181f151480855882b2d74b21a4360472213324a6 | [
"MIT"
] | 1 | 2022-02-13T20:48:28.000Z | 2022-02-13T20:48:28.000Z | sylver/backend/postgres.py | jdclarke5/sylver | 181f151480855882b2d74b21a4360472213324a6 | [
"MIT"
] | null | null | null | """PostgreSQL backend."""
from .backend import BaseBackend
import psycopg2
from psycopg2 import sql
| 43.621951 | 77 | 0.514957 |
f111e8f8ba25e9c2ff8287a1f8d7026ab95f0fc1 | 2,012 | py | Python | apitest/api_test/migrations/0012_auto_20200219_1756.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | null | null | null | apitest/api_test/migrations/0012_auto_20200219_1756.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | 3 | 2020-06-06T01:57:41.000Z | 2021-06-10T22:57:58.000Z | apitest/api_test/migrations/0012_auto_20200219_1756.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.2 on 2020-02-19 17:56
from django.db import migrations, models
import django.db.models.deletion
| 36.581818 | 183 | 0.60835 |
f113bc3867136bab6f6070ecf2922c70504f996e | 574 | py | Python | submission/counter_reactionary.py | leomaurodesenv/rock-paper-scissors-kaggle | c9690378757481b2ab1bce0911a50101e1bdacde | [
"CC0-1.0"
] | null | null | null | submission/counter_reactionary.py | leomaurodesenv/rock-paper-scissors-kaggle | c9690378757481b2ab1bce0911a50101e1bdacde | [
"CC0-1.0"
] | null | null | null | submission/counter_reactionary.py | leomaurodesenv/rock-paper-scissors-kaggle | c9690378757481b2ab1bce0911a50101e1bdacde | [
"CC0-1.0"
] | null | null | null |
import random
from kaggle_environments.envs.rps.utils import get_score
last_counter_action = None
| 31.888889 | 88 | 0.770035 |
f1157ffc66c6e4f44c17fd05600b7c5ec92da8b7 | 5,722 | py | Python | molesq/transform.py | clbarnes/molesq | b3e1edf11efcd30d08732380d586ec47b020d1c7 | [
"MIT"
] | 4 | 2021-04-08T20:35:32.000Z | 2021-12-29T12:08:28.000Z | molesq/transform.py | clbarnes/molesq | b3e1edf11efcd30d08732380d586ec47b020d1c7 | [
"MIT"
] | 7 | 2021-04-08T15:04:31.000Z | 2021-09-10T08:50:49.000Z | molesq/transform.py | clbarnes/molesq | b3e1edf11efcd30d08732380d586ec47b020d1c7 | [
"MIT"
] | 1 | 2021-04-12T13:56:08.000Z | 2021-04-12T13:56:08.000Z | import sys
import numpy as np
from scipy.spatial.distance import cdist
from typing import Optional
from numpy.typing import ArrayLike
# try:
# from enum import StrEnum
# except ImportError:
# from backports.strenum import StrEnum
# class Strategy(StrEnum):
# AFFINE = "affine"
# # SIMILARITY = "sim... | 29.958115 | 87 | 0.630724 |
f116089ecf2bb5fb467db74f3b6faff5bf16e4d1 | 4,758 | py | Python | tests/test_moleculerize.py | rcbops/moleculerize | f58336b2cc0da63dc63906b3161c5a851eb36111 | [
"Apache-2.0"
] | 3 | 2019-03-06T15:18:06.000Z | 2021-02-06T02:54:55.000Z | tests/test_moleculerize.py | rcbops/moleculerize | f58336b2cc0da63dc63906b3161c5a851eb36111 | [
"Apache-2.0"
] | 2 | 2019-01-25T23:32:17.000Z | 2019-01-28T16:25:52.000Z | tests/test_moleculerize.py | rcbops/moleculerize | f58336b2cc0da63dc63906b3161c5a851eb36111 | [
"Apache-2.0"
] | 2 | 2018-05-23T15:12:12.000Z | 2018-12-17T18:15:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ======================================================================================================================
# Imports
# ======================================================================================================================
import json
import ya... | 42.482143 | 120 | 0.581337 |
f11661d3e06ca6623292187d20ea54656ae9f8e8 | 1,176 | py | Python | python3-simple-http-server/simple_http_server/protocols.py | t2y/simple-http-server | 4573490cab16abe61bf07cc78efa1fe91421c3b9 | [
"Apache-2.0"
] | 9 | 2017-11-26T11:42:06.000Z | 2018-09-19T01:57:25.000Z | python3-simple-http-server/simple_http_server/protocols.py | t2y/simple-http-server | 4573490cab16abe61bf07cc78efa1fe91421c3b9 | [
"Apache-2.0"
] | null | null | null | python3-simple-http-server/simple_http_server/protocols.py | t2y/simple-http-server | 4573490cab16abe61bf07cc78efa1fe91421c3b9 | [
"Apache-2.0"
] | null | null | null | import argparse
import logging
import os.path
from asyncio.streams import StreamReader, StreamWriter
from typing import Awaitable, Callable, Optional
from .handler import handle_request
from .parser import parse_http
log = logging.getLogger('simple-http-server')
| 30.947368 | 79 | 0.681973 |
f117075e07842471348d81d05f288d7dcff8d9a8 | 1,816 | py | Python | PyFlowPackages/PyFlowFreeCAD/Nodes/FreeCAD_Object.py | awgrover/NodeEditor | 7e1826b1f80879f7eb5f35857582b5e13212a80a | [
"MIT"
] | 53 | 2019-07-17T17:42:13.000Z | 2022-02-07T20:19:48.000Z | PyFlowPackages/PyFlowFreeCAD/Nodes/FreeCAD_Object.py | awgrover/NodeEditor | 7e1826b1f80879f7eb5f35857582b5e13212a80a | [
"MIT"
] | 13 | 2019-07-10T11:15:34.000Z | 2020-12-31T05:03:48.000Z | PyFlowPackages/PyFlowFreeCAD/Nodes/FreeCAD_Object.py | awgrover/NodeEditor | 7e1826b1f80879f7eb5f35857582b5e13212a80a | [
"MIT"
] | 12 | 2019-07-10T11:03:39.000Z | 2022-02-15T11:58:14.000Z | '''
all still not categorized nodes
'''
from PyFlow.Packages.PyFlowFreeCAD.Nodes import *
from PyFlow.Packages.PyFlowFreeCAD.Nodes.FreeCAD_Base import timer, FreeCadNodeBase, FreeCadNodeBase2
# hack wird irgendwo geladen warun #+#
# muss wieder raus, weil schon in information !!!
| 29.290323 | 101 | 0.675661 |
f1176eb07a1e4cf0bcd5287f3a762e2084246342 | 126 | py | Python | WebMirror/management/rss_parser_funcs/feed_parse_extractExpandablefemaleBlogspotCom.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 193 | 2016-08-02T22:04:35.000Z | 2022-03-09T20:45:41.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractExpandablefemaleBlogspotCom.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 533 | 2016-08-23T20:48:23.000Z | 2022-03-28T15:55:13.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractExpandablefemaleBlogspotCom.py | rrosajp/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 19 | 2015-08-13T18:01:08.000Z | 2021-07-12T17:13:09.000Z | def extractExpandablefemaleBlogspotCom(item):
'''
DISABLED
Parser for 'expandablefemale.blogspot.com'
'''
return None | 15.75 | 45 | 0.753968 |
f118ab6fe117fde800f9a346ebf9d9692538566f | 3,492 | py | Python | django_cradmin/demo/project/test/settings.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 11 | 2015-07-05T16:57:58.000Z | 2020-11-24T16:58:19.000Z | django_cradmin/demo/project/test/settings.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 91 | 2015-01-08T22:38:13.000Z | 2022-02-10T10:25:27.000Z | django_cradmin/demo/project/test/settings.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 3 | 2016-12-07T12:19:24.000Z | 2018-10-03T14:04:18.000Z | """
Django settings for running the django_cradmin tests.
"""
from django_dbdev.backends.sqlite import DBSETTINGS
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'y%j0x%=7a^sf53m*s^5nbmfe0_t13d*oibfx#m#*wz1x+k6+m1'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG... | 32.333333 | 92 | 0.725086 |
f1192e093f0d778414a35fa545f60933b168512b | 18,002 | py | Python | archive/tournament.py | maxwilliams94/ultimatePy | 1582f1666f05d75b103a0fd4913c115157cd462d | [
"MIT"
] | 1 | 2020-01-26T15:21:29.000Z | 2020-01-26T15:21:29.000Z | archive/tournament.py | maxwilliams94/ultimatePy | 1582f1666f05d75b103a0fd4913c115157cd462d | [
"MIT"
] | null | null | null | archive/tournament.py | maxwilliams94/ultimatePy | 1582f1666f05d75b103a0fd4913c115157cd462d | [
"MIT"
] | null | null | null | from archive.groups import Group
from archive.teams import Team
from logging import Logging
from itertools import cycle
import datetime
from copy import deepcopy
from sys import exit
import collections
from os import path, getcwd
Timings = collections.namedtuple('Timings', ['group_game_length',
... | 42.55792 | 124 | 0.553494 |
f1199a475f7fe949f2e82b18f6a68f9ca3373db0 | 3,812 | py | Python | demo/demo/tagging_data_view.py | RayL0707/Finance_KG | c4614bfb12a7ce20e05b42ab81ab6038ab5143f4 | [
"MIT"
] | null | null | null | demo/demo/tagging_data_view.py | RayL0707/Finance_KG | c4614bfb12a7ce20e05b42ab81ab6038ab5143f4 | [
"MIT"
] | null | null | null | demo/demo/tagging_data_view.py | RayL0707/Finance_KG | c4614bfb12a7ce20e05b42ab81ab6038ab5143f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import render
from django.views.decorators import csrf
import thulac
import sys
sys.path.append("..")
from toolkit.pre_load import neo_con
# view
# GET
| 30.496 | 120 | 0.622246 |
f11b98c4cbad0c6ce3b3cacf5a4c884e14ed54bb | 363 | py | Python | blog/migrations/0002_auto_20190719_0620.py | Sedherthe/Dj-Blog | 43d24e2a3654ba080da0be233d2e6f51c9baf4d4 | [
"MIT"
] | null | null | null | blog/migrations/0002_auto_20190719_0620.py | Sedherthe/Dj-Blog | 43d24e2a3654ba080da0be233d2e6f51c9baf4d4 | [
"MIT"
] | null | null | null | blog/migrations/0002_auto_20190719_0620.py | Sedherthe/Dj-Blog | 43d24e2a3654ba080da0be233d2e6f51c9baf4d4 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-07-19 00:50
from django.db import migrations
| 19.105263 | 47 | 0.584022 |