hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794a337fa34ea05c4b7db962287254e39caa5cfe
935
py
Python
slybot/setup.py
ruairif/portia
175b1f5bbec50fda6adda042481bd09c77d12bf0
[ "BSD-3-Clause" ]
null
null
null
slybot/setup.py
ruairif/portia
175b1f5bbec50fda6adda042481bd09c77d12bf0
[ "BSD-3-Clause" ]
null
null
null
slybot/setup.py
ruairif/portia
175b1f5bbec50fda6adda042481bd09c77d12bf0
[ "BSD-3-Clause" ]
null
null
null
from slybot import __version__ from setuptools import setup, find_packages install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema'] tests_requires = install_requires setup(name='slybot', version=__version__, license='BSD', description='Slybot crawler', author='Scrapy projec...
34.62963
76
0.635294
794a347def02cfe42aebfd0ddec9c3c6b5623633
579
py
Python
var/spack/repos/builtin/packages/py-editdistance/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-editdistance/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-editdistance/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyEditdistance(PythonPackage): """Fast implementation of the edit distance (Levenshtein di...
32.166667
93
0.756477
794a35105ef7c5e401f1e0a7fade262f4d84d207
3,195
py
Python
sympy/matrices/expressions/tests/test_applyfunc.py
bigfooted/sympy
1fb2490fa2fa9b476da450f02a25b03c1dc07cf0
[ "BSD-3-Clause" ]
2
2021-05-04T16:34:36.000Z
2021-05-04T16:34:39.000Z
sympy/matrices/expressions/tests/test_applyfunc.py
bigfooted/sympy
1fb2490fa2fa9b476da450f02a25b03c1dc07cf0
[ "BSD-3-Clause" ]
10
2021-07-21T20:56:57.000Z
2021-07-31T16:35:28.000Z
sympy/matrices/expressions/tests/test_applyfunc.py
bigfooted/sympy
1fb2490fa2fa9b476da450f02a25b03c1dc07cf0
[ "BSD-3-Clause" ]
2
2020-09-22T13:23:08.000Z
2020-09-25T05:12:28.000Z
from sympy.core.symbol import symbols, Dummy from sympy.matrices.expressions.applyfunc import ElementwiseApplyFunction from sympy import Matrix, Lambda, MatrixSymbol, exp, MatMul, sin, simplify from sympy.testing.pytest import raises from sympy.matrices.common import ShapeError X = MatrixSymbol("X", 3, 3) Y = MatrixS...
30.141509
97
0.644444
794a35bc84cf1f1dea8b8368eede33986c3273d9
7,368
py
Python
nipype/pipeline/plugins/slurmgraph.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2019-01-25T18:20:51.000Z
2019-07-30T20:51:51.000Z
nipype/pipeline/plugins/slurmgraph.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/pipeline/plugins/slurmgraph.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2018-01-25T19:48:17.000Z
2019-01-25T18:20:52.000Z
# -*- coding: utf-8 -*- """Parallel workflow execution via SLURM """ from __future__ import print_function, division, unicode_literals, absolute_import from builtins import open import os import sys from ...interfaces.base import CommandLine from .base import (GraphPluginBase, logger) def node_completed_status(chec...
48.156863
189
0.55361
794a35f5f75387b51a3a29b51fb88c676ccb7170
6,859
py
Python
src/ansible_navigator/ui_framework/curses_window.py
ekmixon/ansible-navigator
9903d82ac76a4aee61a64c2e5f19f5ccca3cf136
[ "Apache-2.0", "MIT" ]
134
2021-03-26T17:44:49.000Z
2022-03-31T13:15:52.000Z
src/ansible_navigator/ui_framework/curses_window.py
cidrblock/ansible-navigator
674e5edce4d4181e6f79b6f24b590a347156665d
[ "Apache-2.0", "MIT" ]
631
2021-03-26T19:38:32.000Z
2022-03-31T22:57:36.000Z
src/ansible_navigator/ui_framework/curses_window.py
cidrblock/ansible-navigator
674e5edce4d4181e6f79b6f24b590a347156665d
[ "Apache-2.0", "MIT" ]
48
2021-03-26T17:44:29.000Z
2022-03-08T21:12:26.000Z
"""type for curses window """ import curses import json import logging from typing import TYPE_CHECKING from typing import Union from .colorize import hex_to_rgb_curses from .curses_defs import CursesLine from .ui_config import UIConfig if TYPE_CHECKING: # pylint: disable= no-name-in-module from _curses im...
33.788177
98
0.56568
794a3666f7e17d950abdcbaf432b2e76abd3c097
1,137
py
Python
esusu/api/migrations/0005_credit.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/migrations/0005_credit.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/migrations/0005_credit.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.3 on 2019-07-29 12:27 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('api', '0004_auto_20190729_1209'), ] operations = [ ...
42.111111
155
0.668426
794a37e0eda0eca084dd91ce7c2752b71ea780d5
1,515
py
Python
eth/vm/logic/storage.py
SAYONG/py-evm
f205ed099c5534892c3afbbd1b14a2fa7f597673
[ "MIT" ]
null
null
null
eth/vm/logic/storage.py
SAYONG/py-evm
f205ed099c5534892c3afbbd1b14a2fa7f597673
[ "MIT" ]
null
null
null
eth/vm/logic/storage.py
SAYONG/py-evm
f205ed099c5534892c3afbbd1b14a2fa7f597673
[ "MIT" ]
null
null
null
from eth_utils import ( encode_hex, ) from eth import constants from eth.vm.computation import BaseComputation def sstore(computation: BaseComputation) -> None: slot, value = computation.stack_pop_ints(2) current_value = computation.state.get_storage( address=computation.msg.storage_address, ...
24.836066
84
0.680528
794a3821ed07f9a0ae80af1ccb9585c1c71b9ce9
7,288
py
Python
populate_database.py
Jabors/financial-data-damodaran
0b3e94429faed352a6ee3c7524e7fbde79668703
[ "Unlicense", "MIT" ]
8
2018-01-06T08:33:08.000Z
2021-11-08T12:19:18.000Z
populate_database.py
Jabors/financial-data-damodaran
0b3e94429faed352a6ee3c7524e7fbde79668703
[ "Unlicense", "MIT" ]
null
null
null
populate_database.py
Jabors/financial-data-damodaran
0b3e94429faed352a6ee3c7524e7fbde79668703
[ "Unlicense", "MIT" ]
3
2020-05-28T19:02:31.000Z
2022-02-22T20:08:33.000Z
import sys import csv import xlrd from pymongo import MongoClient from os import listdir from os.path import isfile, join import config def populate_currencies(db): sheet = xlrd.open_workbook(config.currency_file).sheet_by_index(0) currency={} currency['countries']=[sheet.cell(4,0).value] currency[...
32.977376
118
0.700741
794a38c115570bdb13552999d1b3e404fb251adf
12,541
py
Python
test/functional/feature_fee_estimation.py
minerscore/Ritocoin
cf4e1570b2bab487b9a70f2e8cf6f98fb42fd4b7
[ "MIT" ]
18
2018-11-30T19:07:06.000Z
2021-05-17T11:06:12.000Z
test/functional/feature_fee_estimation.py
minerscore/Ritocoin
cf4e1570b2bab487b9a70f2e8cf6f98fb42fd4b7
[ "MIT" ]
1
2018-12-08T19:41:43.000Z
2018-12-08T19:41:43.000Z
test/functional/feature_fee_estimation.py
minerscore/Ritocoin
cf4e1570b2bab487b9a70f2e8cf6f98fb42fd4b7
[ "MIT" ]
17
2018-11-30T17:16:21.000Z
2021-10-30T17:33:14.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Copyright (c) 2017 The Raven Core developers # Copyright (c) 2018 The Rito Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test fee estima...
47.324528
113
0.646838
794a390fd81e73160cac0b65a01acb5a4717a1f0
1,534
py
Python
Fig2_Scheme_tapping/Fig_tapping.py
ealopez/flat_punch
3b41865ebd60d22cb0e32a8ef200ec790b578d08
[ "MIT-0" ]
null
null
null
Fig2_Scheme_tapping/Fig_tapping.py
ealopez/flat_punch
3b41865ebd60d22cb0e32a8ef200ec790b578d08
[ "MIT-0" ]
null
null
null
Fig2_Scheme_tapping/Fig_tapping.py
ealopez/flat_punch
3b41865ebd60d22cb0e32a8ef200ec790b578d08
[ "MIT-0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Nov 12 09:37:42 2016 @author: Enrique Alejandro """ import numpy as np import matplotlib.pyplot as plt amph = np.loadtxt('summary.txt', skiprows=1) amp = amph[3]*10.0*1.0e-9 #multiplying by free amplitude and then converting to m phi = amph[4]*np.pi/180.0 #converting phase...
35.674419
88
0.664276
794a39ecdcafd8c63cbeb24459efcd02761b3afb
1,146
py
Python
src/01.py
sorabatake/article_15701_convert_optical_and_sar
62c21b43e6e364f0131bea6f14e6e4bc0697deb2
[ "CC0-1.0" ]
null
null
null
src/01.py
sorabatake/article_15701_convert_optical_and_sar
62c21b43e6e364f0131bea6f14e6e4bc0697deb2
[ "CC0-1.0" ]
null
null
null
src/01.py
sorabatake/article_15701_convert_optical_and_sar
62c21b43e6e364f0131bea6f14e6e4bc0697deb2
[ "CC0-1.0" ]
null
null
null
import os, requests, subprocess from osgeo import gdal from osgeo import gdal_array # Entry point def main(): cmd = "find ./data/ALOS* | grep tif" process = (subprocess.Popen(cmd, stdout=subprocess.PIPE,shell=True).communicate()[0]).decode('utf-8') file_name_list = process.rsplit() for _file_name in fi...
42.444444
148
0.623909
794a3a46a91e33875e346027db2c7b987abc7d59
2,818
py
Python
appengine/predator/analysis/test/occurrence_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/analysis/test/occurrence_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/analysis/test/occurrence_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from analysis.analysis_testcase import AnalysisTestCase from analysis.occurrence import Occurrence from analysis.occurrence import DefaultOccurrenceRanking f...
33.152941
78
0.660752
794a3a53d739a3d720e829dc7df66efd2f3f14a0
5,979
py
Python
plivo/resources/applications.py
burhanahmed-plivo/plivo-python
61f86f20efb2bdd30a9ae40ed837c20af42f20b9
[ "MIT" ]
42
2015-01-16T07:56:16.000Z
2021-08-20T04:45:39.000Z
plivo/resources/applications.py
burhanahmed-plivo/plivo-python
61f86f20efb2bdd30a9ae40ed837c20af42f20b9
[ "MIT" ]
70
2015-01-30T04:11:04.000Z
2022-03-29T21:04:55.000Z
plivo/resources/applications.py
burhanahmed-plivo/plivo-python
61f86f20efb2bdd30a9ae40ed837c20af42f20b9
[ "MIT" ]
65
2015-04-10T22:17:57.000Z
2021-06-06T13:09:31.000Z
# -*- coding: utf-8 -*- """ Application class - along with its list class """ from plivo.base import (ListResponseObject, PlivoResource, PlivoResourceInterface) from plivo.resources.accounts import Subaccount from plivo.utils import to_param_dict from plivo.utils.validators import * class App...
38.326923
122
0.59893
794a3b0ca0d1f2457c7dd119487ece205f093953
1,126
py
Python
logger/networking/websockets/WebsocketHandler.py
LandonPatmore/iracing-live-telemetry
f5296194fb7c7e051bce0102960d988a020a7223
[ "MIT" ]
null
null
null
logger/networking/websockets/WebsocketHandler.py
LandonPatmore/iracing-live-telemetry
f5296194fb7c7e051bce0102960d988a020a7223
[ "MIT" ]
null
null
null
logger/networking/websockets/WebsocketHandler.py
LandonPatmore/iracing-live-telemetry
f5296194fb7c7e051bce0102960d988a020a7223
[ "MIT" ]
null
null
null
import asyncio from asyncio import Queue import websockets class WebsocketHandler: def __init__(self, url: str, receiver_queue: Queue, streaming_queue: Queue): self.receiver_queue: Queue = receiver_queue self.streaming_queue: Queue = streaming_queue self.url = url async def consumer_h...
33.117647
80
0.672291
794a3bd38580f98d41f6e8e373fca2465a718bab
2,090
py
Python
TNUCrawler.py
thviet79/MutilLanguage
758f87ed9d0802864c2930e01e2bf014a09c7a67
[ "MIT" ]
null
null
null
TNUCrawler.py
thviet79/MutilLanguage
758f87ed9d0802864c2930e01e2bf014a09c7a67
[ "MIT" ]
null
null
null
TNUCrawler.py
thviet79/MutilLanguage
758f87ed9d0802864c2930e01e2bf014a09c7a67
[ "MIT" ]
1
2021-09-28T23:34:46.000Z
2021-09-28T23:34:46.000Z
import Punctuation import os import ConvertHtmlToText import datetime import SeparateDocumentToSentences def extractContentNews(src_link, language): content = "" if (language == "zh" or language == "en"): content = ConvertHtmlToText.getTextFromTagsWithId(src_link= src_link,tag= "div",id= "wrapper") ...
36.666667
102
0.632057
794a3c82068161562dddbee42ff4034459b47f9a
157
py
Python
test2/app.py
josephernest/vversioning
de09ab66c018a5aceee787101c5e307f957a2601
[ "MIT" ]
null
null
null
test2/app.py
josephernest/vversioning
de09ab66c018a5aceee787101c5e307f957a2601
[ "MIT" ]
null
null
null
test2/app.py
josephernest/vversioning
de09ab66c018a5aceee787101c5e307f957a2601
[ "MIT" ]
null
null
null
""" ==CHANGELOG== * currently in development * new feature xyz ==CHANGELOG== """ sqdgfhsqgfksqfkjgsqfkqsgdkfsqkgfqsdf sqgjdfjsqdhfqgskdgfkqgsdjfsqdfggdsqjf
15.7
37
0.802548
794a3d3601ff0a74d9d45c8f9c89423fb5b06b5c
4,878
py
Python
necrobot/match/matchutil.py
incnone/necrobot
e97b582b36e07001ee63f5e952230e41568f5acb
[ "MIT" ]
8
2016-01-15T00:28:55.000Z
2020-02-10T21:23:11.000Z
necrobot/match/matchutil.py
incnone/necrobot
e97b582b36e07001ee63f5e952230e41568f5acb
[ "MIT" ]
12
2017-01-01T22:14:54.000Z
2021-02-10T00:09:51.000Z
necrobot/match/matchutil.py
incnone/necrobot
e97b582b36e07001ee63f5e952230e41568f5acb
[ "MIT" ]
18
2016-02-05T22:19:46.000Z
2020-02-12T05:11:57.000Z
import datetime from typing import Optional from necrobot.match.matchgsheetinfo import MatchGSheetInfo from necrobot.match import matchdb from necrobot.match.match import Match from necrobot.match.matchinfo import MatchInfo from necrobot.race import racedb from necrobot.race.raceinfo import RaceInfo match_library = {...
31.070064
113
0.676917
794a3d872db93bc02608500f1904eac33f346ad7
18,987
py
Python
tests/python/contrib/test_cudnn.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
tests/python/contrib/test_cudnn.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
tests/python/contrib/test_cudnn.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.234076
112
0.612998
794a3df2463e2c75328187fb456614a72b083fa3
3,917
py
Python
Codes/Python32/Lib/importlib/test/source/test_source_encoding.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
Codes/Python32/Lib/importlib/test/source/test_source_encoding.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
Codes/Python32/Lib/importlib/test/source/test_source_encoding.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
from importlib import _bootstrap from . import util as source_util import codecs import re import sys # Because sys.path gets essentially blanked, need to have unicodedata already # imported for the parser to use. import unicodedata import unittest CODING_RE = re.compile(r'coding[:=]\s*([-\w.]+)') class EncodingTe...
31.58871
80
0.642584
794a3e24600cba3f59bb737a8852209e375ed193
18
py
Python
bioviz/__init__.py
BioWiz/msa
634a99b2a36393dbec75ff008997de0ebd6cb2cb
[ "BSD-3-Clause" ]
1
2021-04-01T05:50:44.000Z
2021-04-01T05:50:44.000Z
bioviz/__init__.py
BioWiz/msa
634a99b2a36393dbec75ff008997de0ebd6cb2cb
[ "BSD-3-Clause" ]
null
null
null
bioviz/__init__.py
BioWiz/msa
634a99b2a36393dbec75ff008997de0ebd6cb2cb
[ "BSD-3-Clause" ]
null
null
null
__all__ = ["msa"]
9
17
0.555556
794a402bcece8fef79bbcdff5187f9e52bfa3fc1
3,113
py
Python
pinax/apps/blog/templatetags/switchcase.py
ericholscher/pinax
6ba4585671c6a3d9ac154441296f8a403453469f
[ "MIT" ]
1
2015-11-08T11:32:53.000Z
2015-11-08T11:32:53.000Z
pinax/apps/blog/templatetags/switchcase.py
ericholscher/pinax
6ba4585671c6a3d9ac154441296f8a403453469f
[ "MIT" ]
null
null
null
pinax/apps/blog/templatetags/switchcase.py
ericholscher/pinax
6ba4585671c6a3d9ac154441296f8a403453469f
[ "MIT" ]
null
null
null
""" Simplistic switch/case tag for Django. Usage:: {% load switchcase %} {% switch meal %} {% case "spam" %}...{% endcase %} {% case "eggs" %}...{% endcase %} {% endswitch %} """ from django import template register = template.Library() @register.tag def switch(parser, token): """ Switch tag. Usag...
31.444444
88
0.60167
794a408ee5ed3aa8c5d8ef9335e90eb681836837
14,581
py
Python
cpovc_ovc/migrations/0001_initial.py
TimzOwen/cpims-ovc-3.0
41e65175e8a72b2a6bd61555ecc97e45409f5170
[ "Apache-2.0" ]
2
2022-02-26T14:04:40.000Z
2022-03-23T17:33:32.000Z
cpovc_ovc/migrations/0001_initial.py
TimzOwen/cpims-ovc-3.0
41e65175e8a72b2a6bd61555ecc97e45409f5170
[ "Apache-2.0" ]
null
null
null
cpovc_ovc/migrations/0001_initial.py
TimzOwen/cpims-ovc-3.0
41e65175e8a72b2a6bd61555ecc97e45409f5170
[ "Apache-2.0" ]
19
2022-02-26T13:44:58.000Z
2022-03-26T17:20:22.000Z
# Generated by Django 4.0.2 on 2022-04-25 12:11 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('cpovc_main', '0002_initial'), ...
53.215328
208
0.573898
794a408eeac7b869380c11a21da3e0f4f05bfb54
13,930
py
Python
pytests/bucket_collections/collections_base.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
pytests/bucket_collections/collections_base.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
pytests/bucket_collections/collections_base.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
from math import ceil from Cb_constants import CbServer, DocLoading from basetestcase import ClusterSetup from collections_helper.collections_spec_constants import \ MetaConstants, MetaCrudParams from couchbase_helper.durability_helper import DurabilityHelper from membase.api.rest_client import RestConnection from...
47.220339
80
0.603733
794a413487332e25d9e4671a3f84cf70ed55b5ae
740
py
Python
us2/python/fehler.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
us1/python/fehler.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
us1/python/fehler.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import sympy import numpy as np def error(f, err_vars=None): from sympy import Symbol, latex s = 0 latex_names = dict() if err_vars == None: err_vars = f.free_symbols for v in err_vars: err = Symbol('latex_std_' + v.name) s += f.diff(v)**2 * err**2 latex_names[err...
23.125
90
0.643243
794a41c1e6e41ffe8181654bbc24992600fae848
288
py
Python
lfluxproject/lstory/forms.py
lutoma/lflux
5cb51d4dfda8caf7be3bb621bcb991bc175f5e38
[ "MIT" ]
null
null
null
lfluxproject/lstory/forms.py
lutoma/lflux
5cb51d4dfda8caf7be3bb621bcb991bc175f5e38
[ "MIT" ]
null
null
null
lfluxproject/lstory/forms.py
lutoma/lflux
5cb51d4dfda8caf7be3bb621bcb991bc175f5e38
[ "MIT" ]
null
null
null
from django import forms from .models import StorySummary from django.utils.translation import ugettext_lazy as _ class StorySummaryForm(forms.Form): body = forms.CharField(widget=forms.Textarea, help_text=_('markdown-formatted summary text consistiong of 2 or 3 list items only!'))
41.142857
136
0.805556
794a4310d74335ee35ea8dde2ec424fb8798cda9
3,852
py
Python
qa/rpc-tests/test_framework/blocktools.py
modong/qtum
e2d7f5e7b588443ac10ac31f7af18527e54abcb5
[ "MIT" ]
2
2017-07-31T14:18:36.000Z
2021-07-19T21:35:56.000Z
qa/rpc-tests/test_framework/blocktools.py
yelongbao/qtum
e2d7f5e7b588443ac10ac31f7af18527e54abcb5
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/blocktools.py
yelongbao/qtum
e2d7f5e7b588443ac10ac31f7af18527e54abcb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # blocktools.py - utilities for manipulating blocks and transactions # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from .mininode import * from .script...
36.339623
104
0.705867
794a43cede21670f88a796af1e4b25eb996289bc
4,466
py
Python
netbox/tenancy/models.py
paxio/netbox
55dbbdc4a59f8c1efb87d3d86cef828fd8492aeb
[ "Apache-2.0" ]
1
2018-11-07T21:52:41.000Z
2018-11-07T21:52:41.000Z
netbox/tenancy/models.py
paxio/netbox
55dbbdc4a59f8c1efb87d3d86cef828fd8492aeb
[ "Apache-2.0" ]
2
2018-02-13T11:58:07.000Z
2018-03-07T10:45:44.000Z
netbox/tenancy/models.py
paxio/netbox
55dbbdc4a59f8c1efb87d3d86cef828fd8492aeb
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.contrib.contenttypes.fields import GenericRelation from django.db import models from django.urls import reverse from django.utils.encoding import python_2_unicode_compatible from taggit.managers import TaggableManager from extras.models import CustomFieldModel from ...
28.628205
148
0.654277
794a43f716b0060e7469210bd74d8fe0deead749
1,471
py
Python
pylark/api_service_drive_sheet_protected_dimension_delete.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
7
2021-08-18T00:42:05.000Z
2022-03-14T09:49:15.000Z
pylark/api_service_drive_sheet_protected_dimension_delete.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
null
null
null
pylark/api_service_drive_sheet_protected_dimension_delete.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
1
2022-03-14T09:49:20.000Z
2022-03-14T09:49:20.000Z
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s class DeleteSheetProtectedDimensionReq(object): spreadsheet_token: str = attr.ib( ...
37.717949
114
0.728756
794a45321e9d7243d64bcec36e3fe39374e15842
560
py
Python
front/migrations/0002_auto_20201201_1631.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
null
null
null
front/migrations/0002_auto_20201201_1631.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
null
null
null
front/migrations/0002_auto_20201201_1631.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
1
2021-01-15T19:56:41.000Z
2021-01-15T19:56:41.000Z
# Generated by Django 3.1.2 on 2020-12-01 15:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('front', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='MatchStats', new_name='Match_Stats', ), ...
21.538462
47
0.560714
794a45e1be8eb8b5a93a3957c328fcacab624832
458
py
Python
feature_engineering/utils/preprocessing.py
ThorbenJensen/feature-engineering
a5f73b29289dd982ab89ea5080186b833c362cfa
[ "MIT" ]
15
2019-10-09T08:12:32.000Z
2021-01-11T08:20:55.000Z
feature_engineering/utils/preprocessing.py
ThorbenJensen/feature-engineering
a5f73b29289dd982ab89ea5080186b833c362cfa
[ "MIT" ]
null
null
null
feature_engineering/utils/preprocessing.py
ThorbenJensen/feature-engineering
a5f73b29289dd982ab89ea5080186b833c362cfa
[ "MIT" ]
2
2021-03-17T17:30:00.000Z
2021-04-07T07:36:21.000Z
import pandas as pd def time_features(dt_series: pd.Series) -> pd.DataFrame: df = pd.DataFrame({ 'year': dt_series.dt.year, 'month': dt_series.dt.month, 'week': dt_series.dt.week, 'weekday': dt_series.dt.weekday, 'hour': dt_series.dt.hour, }) df_dummies = pd.get_dum...
25.444444
74
0.624454
794a46d8087238d60bbc4db61ca0e8b5f19b3d05
1,560
py
Python
Example5.py
cpgoncalves/gameplayer
c53c5163bdc00e06c51e2b3532e3e4df6eb96cf5
[ "MIT" ]
1
2015-12-28T13:09:03.000Z
2015-12-28T13:09:03.000Z
Example5.py
cpgoncalves/gameplayer
c53c5163bdc00e06c51e2b3532e3e4df6eb96cf5
[ "MIT" ]
null
null
null
Example5.py
cpgoncalves/gameplayer
c53c5163bdc00e06c51e2b3532e3e4df6eb96cf5
[ "MIT" ]
null
null
null
# Carlos Pedro Gonçalves (2015), Game Theory with Python # Game Theory and Applied A.I. Classes # Instituto Superior de Ciências Sociais e Políticas (ISCSP) # University of Lisbon # cgoncalves@iscsp.ulisboa.pt # # New Entrant vs Market Leader (payoffs correspond to strategic value) # # For more details see the user man...
47.272727
97
0.740385
794a46dc123663c191e7028e7938dccacc1f8175
5,760
py
Python
moha/posthf/pt/mp3.py
ZhaoYilin/moha
d701fd921839474380982db1478e66f0dc8cbd98
[ "MIT" ]
12
2019-12-07T18:37:34.000Z
2022-03-30T14:23:38.000Z
moha/posthf/pt/mp3.py
ZhaoYilin/moha
d701fd921839474380982db1478e66f0dc8cbd98
[ "MIT" ]
null
null
null
moha/posthf/pt/mp3.py
ZhaoYilin/moha
d701fd921839474380982db1478e66f0dc8cbd98
[ "MIT" ]
2
2019-12-08T05:48:47.000Z
2021-10-31T21:40:21.000Z
from moha.system.hamiltonian.chemical_hamiltonian import * from moha.posthf.pt.auxiliary import * from moha.io.log import log, timer import numpy as np import copy __all__ = ['MP3Solver'] class MP3Solver(object): """Third-order Moller-Plesset perturbation solver. Attributes ---------- ham Ch...
32.914286
93
0.522396
794a4743d44c3713b8e763be94c58817de2696d9
4,984
py
Python
mkdocs/commands/serve.py
UnsolvedCypher/mkdocs
eb31d4c0d70259755b779bd6bf34609ac2adca7b
[ "BSD-2-Clause" ]
null
null
null
mkdocs/commands/serve.py
UnsolvedCypher/mkdocs
eb31d4c0d70259755b779bd6bf34609ac2adca7b
[ "BSD-2-Clause" ]
null
null
null
mkdocs/commands/serve.py
UnsolvedCypher/mkdocs
eb31d4c0d70259755b779bd6bf34609ac2adca7b
[ "BSD-2-Clause" ]
null
null
null
import logging import shutil import tempfile import sys from os.path import isfile, join from mkdocs.commands.build import build from mkdocs.config import load_config log = logging.getLogger(__name__) def _init_asyncio_patch(): """ Select compatible event loop for Tornado 5+. As of Python 3.8, the defa...
32.789474
117
0.656701
794a4827b0c5c9313acefd3a365a2dc083876c64
4,710
py
Python
mars/tensor/random/uniform.py
chineking/mars
660098c65bcb389c6bbebc26b2502a9b3af43cf9
[ "Apache-2.0" ]
null
null
null
mars/tensor/random/uniform.py
chineking/mars
660098c65bcb389c6bbebc26b2502a9b3af43cf9
[ "Apache-2.0" ]
null
null
null
mars/tensor/random/uniform.py
chineking/mars
660098c65bcb389c6bbebc26b2502a9b3af43cf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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-...
35.681818
85
0.663057
794a48d05c208a9725ec7da9be6a381ac95c7fd3
2,072
py
Python
eve_sqlalchemy/structures.py
gllmbernard/eve-sqlalchemy
48a58efdb335bd881e6e67f3b01e62c8443e90af
[ "BSD-3-Clause" ]
126
2017-03-09T07:29:32.000Z
2022-02-08T07:56:07.000Z
eve_sqlalchemy/structures.py
gllmbernard/eve-sqlalchemy
48a58efdb335bd881e6e67f3b01e62c8443e90af
[ "BSD-3-Clause" ]
114
2015-01-09T15:19:48.000Z
2017-03-08T13:36:17.000Z
eve_sqlalchemy/structures.py
gllmbernard/eve-sqlalchemy
48a58efdb335bd881e6e67f3b01e62c8443e90af
[ "BSD-3-Clause" ]
55
2017-03-16T11:12:44.000Z
2021-12-28T00:19:03.000Z
# -*- coding: utf-8 -*- """ These classes provide a middle layer to transform a SQLAlchemy query into a series of object that Eve understands and can be rendered as JSON. :copyright: (c) 2013 by Andrew Mleczko and Tomasz Jezierski (Tefnet) :license: BSD, see LICENSE for more details. """ from __future...
37
78
0.643822
794a48d80b9373f10e21af0300b5377a017308f3
4,126
py
Python
src/apps/metas/forms.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/metas/forms.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/metas/forms.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# coding: utf-8 # app: metas # module: forms # fecha: miércoles, 23 de mayo de 2018 - 10:22 # description: Formularios de las Metas SPEN # pylint: disable=W0613,R0201,R0903 from crispy_forms.layout import Layout, Submit, Div, Field from crispy_forms.helper import FormHelper from django import forms ...
31.257576
68
0.517208
794a4abedaf6772fe72ada5d76078460687c97f7
559
py
Python
Session2_2019/deleteAndEarn.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
1
2018-09-21T10:51:15.000Z
2018-09-21T10:51:15.000Z
Session2_2019/deleteAndEarn.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
null
null
null
Session2_2019/deleteAndEarn.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
null
null
null
class Solution(object): def deleteAndEarn(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 if len(nums) == 1: return nums[0] maxval = max(nums) freqs = [0]*(maxval + 1) sums = [0]*(maxval + 1...
21.5
60
0.440072
794a4aef3004aa9ee4aafcb4aca32ea0bb255b64
343
py
Python
Desafios/Desafio010.py
OtavioCampagnoli/Aprendendo-Python
37bf341d3edbb5392c1ccf866ac0109d5905f68f
[ "MIT" ]
null
null
null
Desafios/Desafio010.py
OtavioCampagnoli/Aprendendo-Python
37bf341d3edbb5392c1ccf866ac0109d5905f68f
[ "MIT" ]
null
null
null
Desafios/Desafio010.py
OtavioCampagnoli/Aprendendo-Python
37bf341d3edbb5392c1ccf866ac0109d5905f68f
[ "MIT" ]
null
null
null
#Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos Dólares ela pode comprar # Cotação do dia 25/11/2021 $5.56. real = float(input('Informe a quantidade de dinheiro que você tem na carteira:')) conversaoDolar: float = real / 5.56 print(f'O valor de R${real:.2f} convertido em dólar é ...
57.166667
111
0.752187
794a4b58ff5e12a28b6d758a8e203c96ddfaa911
3,069
py
Python
src/orion/core/utils/singleton.py
obilaniu/orion
bc886daf791d66490b59e43657f6f6db45d34ea8
[ "BSD-3-Clause" ]
1
2021-04-10T16:18:03.000Z
2021-04-10T16:18:03.000Z
src/orion/core/utils/singleton.py
obilaniu/orion
bc886daf791d66490b59e43657f6f6db45d34ea8
[ "BSD-3-Clause" ]
null
null
null
src/orion/core/utils/singleton.py
obilaniu/orion
bc886daf791d66490b59e43657f6f6db45d34ea8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Singleton helpers and boilerplate ================================= """ from abc import ABCMeta from orion.core.utils import Factory class SingletonAlreadyInstantiatedError(ValueError): """Exception to be raised when someone provides arguments to build an object from a already-in...
33
94
0.687195
794a4b8acaef2b9ff3cf99eee2ba6720ecc65e25
12,076
py
Python
src/oscar/apps/customer/wishlists/views.py
capme/d-shp
b1614032f945ab82594729e177885784148f7605
[ "BSD-3-Clause" ]
68
2016-11-06T05:07:57.000Z
2021-12-17T09:17:38.000Z
src/oscar/apps/customer/wishlists/views.py
capme/d-shp
b1614032f945ab82594729e177885784148f7605
[ "BSD-3-Clause" ]
1
2017-07-28T19:35:07.000Z
2017-07-28T19:35:07.000Z
src/oscar/apps/customer/wishlists/views.py
capme/d-shp
b1614032f945ab82594729e177885784148f7605
[ "BSD-3-Clause" ]
28
2016-12-04T07:12:50.000Z
2021-02-06T21:13:15.000Z
# -*- coding: utf-8 -*- from django.contrib import messages from django.core.exceptions import ( MultipleObjectsReturned, ObjectDoesNotExist, PermissionDenied) from django.core.urlresolvers import reverse from django.http import Http404 from django.shortcuts import get_object_or_404, redirect from django.utils.tran...
36.264264
79
0.637628
794a4c0e10693385b05de46189e9aa2556806019
1,021
py
Python
management/wwwconfig.py
kiekerjan/mailinabox
acc9ebd68f351209b5fc895f50b2b998c9fb9d18
[ "CC0-1.0" ]
null
null
null
management/wwwconfig.py
kiekerjan/mailinabox
acc9ebd68f351209b5fc895f50b2b998c9fb9d18
[ "CC0-1.0" ]
null
null
null
management/wwwconfig.py
kiekerjan/mailinabox
acc9ebd68f351209b5fc895f50b2b998c9fb9d18
[ "CC0-1.0" ]
null
null
null
import os.path, idna, sys, collections def get_www_domains(domains_to_skip): # Returns the domain names (IDNA-encoded) of all of the domains that are configured to serve www # on the system. domains = [] try: # read a line from text file with open("/etc/miabwwwdomains.conf") as file_i...
29.171429
100
0.5857
794a4c7f15dbe76816e3d257ddc55d4020a30450
2,052
py
Python
zeppelin_comm_layer/kernel.py
bernhard-42/zeppelin-ipython-shim
2358cb8e7be3fe6e25f9e44a5557b4d8c08d6607
[ "Apache-2.0" ]
4
2017-04-06T17:28:13.000Z
2018-07-16T19:46:15.000Z
zeppelin_comm_layer/kernel.py
bernhard-42/zeppelin-ipython-shim
2358cb8e7be3fe6e25f9e44a5557b4d8c08d6607
[ "Apache-2.0" ]
null
null
null
zeppelin_comm_layer/kernel.py
bernhard-42/zeppelin-ipython-shim
2358cb8e7be3fe6e25f9e44a5557b4d8c08d6607
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Bernhard Walter # # 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 writin...
36
104
0.701267
794a4e496964e9a48da06c33e480266f34ae440f
15,757
py
Python
projects/tutorials/minigrid_tutorial.py
brandontrabucco/allenact
0f323ac6f67a84a9de76359f5506c44eff64e0a1
[ "MIT" ]
187
2020-08-28T16:59:41.000Z
2022-03-27T19:10:11.000Z
projects/tutorials/minigrid_tutorial.py
brandontrabucco/allenact
0f323ac6f67a84a9de76359f5506c44eff64e0a1
[ "MIT" ]
120
2020-08-28T15:30:36.000Z
2022-03-13T00:38:44.000Z
projects/tutorials/minigrid_tutorial.py
964728623/robothor_challenge_objnav21
f75ed98f7d5bcc87b460f0c13e24dafc18edc895
[ "MIT" ]
45
2020-08-28T18:30:04.000Z
2022-03-29T11:13:28.000Z
# literate: tutorials/minigrid-tutorial.md # %% """# Tutorial: Navigation in MiniGrid.""" # %% """ In this tutorial, we will train an agent to complete the `MiniGrid-Empty-Random-5x5-v0` task within the [MiniGrid](https://github.com/maximecb/gym-minigrid) environment. We will demonstrate how to: * Write an experiment...
42.471698
148
0.71822
794a4f88b3d2030dc741eee4fb322599a6148f76
5,257
py
Python
examples/networking/simulation.py
gtataranni/bcc
b090f5f9eee62796829184ec862e3378a3b7e425
[ "Apache-2.0" ]
58
2015-08-28T08:46:35.000Z
2022-02-27T14:31:55.000Z
examples/networking/simulation.py
gtataranni/bcc
b090f5f9eee62796829184ec862e3378a3b7e425
[ "Apache-2.0" ]
9
2021-07-29T21:15:28.000Z
2022-02-16T18:17:49.000Z
examples/networking/simulation.py
gtataranni/bcc
b090f5f9eee62796829184ec862e3378a3b7e425
[ "Apache-2.0" ]
12
2017-02-28T02:50:31.000Z
2021-07-26T17:54:07.000Z
import os import subprocess import pyroute2 from pyroute2 import IPRoute, NetNS, IPDB, NSPopen class Simulation(object): """ Helper class for controlling multiple namespaces. Inherit from this class and setup your namespaces. """ def __init__(self, ipdb): self.ipdb = ipdb self.ipdb...
41.393701
105
0.536618
794a4fc247ed6508872ef32a9f9e4cc7cbe952c6
653
py
Python
c++调用py/test2模板/testpy.py
keetsky/c_c-_python_mutprog
f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd
[ "Apache-2.0" ]
3
2021-01-26T07:52:50.000Z
2021-11-25T11:28:36.000Z
c++调用py/test2模板/testpy.py
keetsky/c_c-_python_mutprog
f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd
[ "Apache-2.0" ]
null
null
null
c++调用py/test2模板/testpy.py
keetsky/c_c-_python_mutprog
f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: test.py print("start c++_py:") int_data=5; def HelloWorld(): print ("Hello World!") def sayhi(name): print ('hi',name); return name def add(a, b): return a+b def AddMult(a,b): print("addmuilt in python") return (a+b,a*b) def TestDict(dict): ...
20.40625
59
0.578867
794a4fc80646101cbe626d9214c8b46b281568c6
3,618
py
Python
gallery/tests.py
gabyxbinnaeah/Photo-Gallery
6155df3a70d0955a01e6f2257789076c6a85abf4
[ "MIT" ]
null
null
null
gallery/tests.py
gabyxbinnaeah/Photo-Gallery
6155df3a70d0955a01e6f2257789076c6a85abf4
[ "MIT" ]
null
null
null
gallery/tests.py
gabyxbinnaeah/Photo-Gallery
6155df3a70d0955a01e6f2257789076c6a85abf4
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Location,Category,Image # Create your tests here. class LocationTestClass(TestCase): def setUp(self): ''' method that creates instance of location ''' self.bondo = Location(name = 'bondo') def test_instance(self): '...
30.661017
69
0.621338
794a4fcac056b97fa04f6488930308a027a50a02
2,421
py
Python
tools/test_init.py
moranxiachong/PersonReID-VAAL
86948ef70793455487cd61709486653827e51bda
[ "Apache-2.0" ]
2
2022-01-03T07:34:49.000Z
2022-01-19T08:42:56.000Z
tools/test_init.py
moranxiachong/PersonReID-VAAL
86948ef70793455487cd61709486653827e51bda
[ "Apache-2.0" ]
null
null
null
tools/test_init.py
moranxiachong/PersonReID-VAAL
86948ef70793455487cd61709486653827e51bda
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: sherlock @contact: sherlockliao01@gmail.com """ import argparse import os import sys from os import mkdir import torch from torch.backends import cudnn sys.path.append('.') from config import cfg from data import make_data_loader from engine.inference import inference from modeling im...
31.441558
110
0.697233
794a50118ef7a5118db2b8d9956a8ca85e2c2278
2,436
py
Python
quik/preprocess.py
alexanderarcha95/py2quik
cd2933bc52ac3876dddce32bb17f33323a3eb60f
[ "Apache-2.0" ]
null
null
null
quik/preprocess.py
alexanderarcha95/py2quik
cd2933bc52ac3876dddce32bb17f33323a3eb60f
[ "Apache-2.0" ]
null
null
null
quik/preprocess.py
alexanderarcha95/py2quik
cd2933bc52ac3876dddce32bb17f33323a3eb60f
[ "Apache-2.0" ]
1
2021-11-06T08:35:48.000Z
2021-11-06T08:35:48.000Z
import numpy as np import pandas as pd from sklearn import preprocessing as prep from sklearn.preprocessing import MinMaxScaler from collections import deque from quik import prices import random def classify(current,future,thres = 100): # Returns 0 when price less than before. diff = (float(f...
19.645161
120
0.582923
794a501754f22508fd193edd78c318b84b153a86
1,839
py
Python
reinvent-2019/rhythm-cloud/lib/ABElectronics_Python_Libraries/ExpanderPi/demos/demo_adcspeed.py
kienpham2000/aws-builders-fair-projects
6c4075c0945a6318b217355a6fc663e35ffb9dba
[ "Apache-2.0" ]
2
2019-12-17T03:38:38.000Z
2021-05-28T06:23:58.000Z
reinvent-2019/rhythm-cloud/lib/ABElectronics_Python_Libraries/ExpanderPi/demos/demo_adcspeed.py
kienpham2000/aws-builders-fair-projects
6c4075c0945a6318b217355a6fc663e35ffb9dba
[ "Apache-2.0" ]
8
2021-05-09T06:05:46.000Z
2022-03-02T09:53:20.000Z
reinvent-2019/rhythm-cloud/lib/ABElectronics_Python_Libraries/ExpanderPi/demos/demo_adcspeed.py
kienpham2000/aws-builders-fair-projects
6c4075c0945a6318b217355a6fc663e35ffb9dba
[ "Apache-2.0" ]
3
2020-09-30T18:46:59.000Z
2020-10-21T21:20:26.000Z
#!/usr/bin/env python """ ================================================ # ABElectronics Expander Pi | ADC Speed Demo # # Requires python smbus to be installed # For Python 2 install with: sudo apt-get install python-smbus # For Python 3 install with: sudo apt-get install python3-smbus # # run with: python demo_adcs...
24.52
73
0.637847
794a51c5673e74a2a5fce127ddc3185ecf3b3af6
5,460
py
Python
sympy/concrete/gosper.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2021-01-09T23:11:25.000Z
2021-01-11T15:04:22.000Z
sympy/concrete/gosper.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2020-08-18T15:21:59.000Z
2020-08-18T19:35:29.000Z
sympy/concrete/gosper.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2021-01-08T23:03:23.000Z
2021-01-13T18:57:02.000Z
"""Gosper's algorithm for hypergeometric summation. """ from sympy.core import S, Dummy, symbols from sympy.core.compatibility import is_sequence from sympy.polys import Poly, parallel_poly_from_expr, factor from sympy.solvers import solve from sympy.simplify import hypersimp def gosper_normal(f, g, n, polys=True): ...
24.931507
69
0.540293
794a52a0b427ace27050e2cf5f8987317a4309d4
3,011
py
Python
qiskit/visualization/tools/pi_check.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
1
2019-10-14T00:59:19.000Z
2019-10-14T00:59:19.000Z
qiskit/visualization/tools/pi_check.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
null
null
null
qiskit/visualization/tools/pi_check.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
28.67619
84
0.536367
794a5348293cf204a0aa8804abdb4ee00844448e
5,140
py
Python
test.py
RogerZhangzz/CAG_UDA
422f99e2e0a5cb26a40d4f17ee5832f81580f7f0
[ "MIT" ]
126
2019-10-30T00:58:02.000Z
2022-01-26T06:29:10.000Z
test.py
liyongsheng-tech/CAG_UDA
422f99e2e0a5cb26a40d4f17ee5832f81580f7f0
[ "MIT" ]
14
2019-11-05T15:10:22.000Z
2022-02-08T09:05:53.000Z
test.py
liyongsheng-tech/CAG_UDA
422f99e2e0a5cb26a40d4f17ee5832f81580f7f0
[ "MIT" ]
26
2019-12-02T09:41:11.000Z
2022-01-29T10:46:41.000Z
import os import sys import yaml import time import shutil import torch import random import argparse import datetime import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # import torchvision.models as models # import torchvision import matplotlib.pyplot as plt import matplotlib.cm as c...
33.376623
117
0.699222
794a53682b9463070b66a7fbdb83641ac799c9a0
6,384
py
Python
cs_gan/gan.py
kawa-work/deepmind-research
8fb75643598f680fdde8d20342b1b82bd2c0abb2
[ "Apache-2.0" ]
10,110
2019-08-27T20:05:30.000Z
2022-03-31T16:31:56.000Z
cs_gan/gan.py
ibex-training/deepmind-research
6f8ae40b2626b30f5f80dfc92f5676689eff5599
[ "Apache-2.0" ]
317
2019-11-09T10:19:10.000Z
2022-03-31T00:05:19.000Z
cs_gan/gan.py
ibex-training/deepmind-research
6f8ae40b2626b30f5f80dfc92f5676689eff5599
[ "Apache-2.0" ]
2,170
2019-08-28T12:53:36.000Z
2022-03-31T13:15:11.000Z
# Copyright 2019 DeepMind Technologies Limited and 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
37.775148
79
0.724937
794a538c401821ebe9ede9ba71c220885645a40a
2,058
py
Python
core/urls.py
dakinwerneburg/gradify
276f20ba2830918eac13cb5cafe7261cd1d21e70
[ "Apache-2.0" ]
null
null
null
core/urls.py
dakinwerneburg/gradify
276f20ba2830918eac13cb5cafe7261cd1d21e70
[ "Apache-2.0" ]
6
2021-01-15T20:59:11.000Z
2022-02-10T11:51:17.000Z
core/urls.py
dakinwerneburg/gradify
276f20ba2830918eac13cb5cafe7261cd1d21e70
[ "Apache-2.0" ]
null
null
null
""" URLs file for core Gradify app. """ from django.urls import path, re_path from django.views.generic import TemplateView from . import views urlpatterns = [ path('', TemplateView.as_view(template_name="core/index.html"), name='home'), path('import/', views.gc_ingest_and_redirect, name='gc-import'), path...
54.157895
101
0.714286
794a5457b17658533b879b25f75f819af0888606
463
py
Python
solving_equations.py
ioyy900205/PyTorch_mess-around
90d255e17158699fd7902f7746b35fa18975112e
[ "MIT" ]
null
null
null
solving_equations.py
ioyy900205/PyTorch_mess-around
90d255e17158699fd7902f7746b35fa18975112e
[ "MIT" ]
null
null
null
solving_equations.py
ioyy900205/PyTorch_mess-around
90d255e17158699fd7902f7746b35fa18975112e
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable x=torch.Tensor([100.]) #建立一个张量 tensor([1.], requires_grad=True) x=Variable(x,requires_grad=True) print('grad',x.grad,'data',x.data) learning_rate=0.01 epochs=5000 for epoch in range(epochs): y = x**2 y.backward() print('grad',x.grad.dat...
24.368421
45
0.641469
794a54f001b7720bc5abaf17b0998cb1e6058405
9,576
py
Python
xen/xen-4.2.2/tools/python/xen/xend/XendDSCSI.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/xend/XendDSCSI.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/xend/XendDSCSI.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
31.92
85
0.56934
794a54ffa64a4aa56fa5fc7c59cb5e23fd4ceadb
1,295
py
Python
Configuration/broadcast_sendfiles.py
adrien-bellaiche/Interceptor
ff6c9674141082b55a711df67a625759304a9b1b
[ "Apache-2.0" ]
null
null
null
Configuration/broadcast_sendfiles.py
adrien-bellaiche/Interceptor
ff6c9674141082b55a711df67a625759304a9b1b
[ "Apache-2.0" ]
null
null
null
Configuration/broadcast_sendfiles.py
adrien-bellaiche/Interceptor
ff6c9674141082b55a711df67a625759304a9b1b
[ "Apache-2.0" ]
null
null
null
import sys import pexpect from Interceptor.JogCommand.Utils import make_mission_file nArgs = len(sys.argv)-1 if nArgs != 1: print "enter parameters : jogNumber" else: files_paths = file("broadcast_sendfiles", 'r').readlines() ids = [int(_) for _ in file("broacast_init_config", 'r').readline().split() if ...
39.242424
102
0.59305
794a557289a3afd52ee68905fb637bdaf6bf7c97
3,768
py
Python
app/recipe/views.py
JirkaFait/recepty-app-api
4a5f85ff58ec52190692f761ea2dcd4b255f4f4c
[ "MIT" ]
null
null
null
app/recipe/views.py
JirkaFait/recepty-app-api
4a5f85ff58ec52190692f761ea2dcd4b255f4f4c
[ "MIT" ]
null
null
null
app/recipe/views.py
JirkaFait/recepty-app-api
4a5f85ff58ec52190692f761ea2dcd4b255f4f4c
[ "MIT" ]
null
null
null
from rest_framework import viewsets, mixins, status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.decorators import action from rest_framework.response import Response from core.models import Tag, Ingredient, Recipe, Units from...
33.642857
74
0.669055
794a55c4b2bdac9be4f7238959c7e6fa16eb0947
12,194
py
Python
bgboard.py
zacharytower/Backgammon
085b64bcbd220199d799832696422a50c2c0c2dc
[ "Apache-2.0" ]
null
null
null
bgboard.py
zacharytower/Backgammon
085b64bcbd220199d799832696422a50c2c0c2dc
[ "Apache-2.0" ]
null
null
null
bgboard.py
zacharytower/Backgammon
085b64bcbd220199d799832696422a50c2c0c2dc
[ "Apache-2.0" ]
null
null
null
import bgspace, pygame, time from global_vars import * class BGBoard(object): ''' The BGBoard Class is the object that contains the game state. That is, the position of each piece on the board. This class deals with drawing the board onto DISPLAYSURF and processing BGMove requests. This class can also reset the bo...
28.292343
181
0.678038
794a570eaf15ca26efc54c173d2eeaed507a0476
12,395
py
Python
cvap/module/encoder/clip_head.py
zhaoyanpeng/lvamodel
93b06ff43ae6a76323cecea4c10cf457945c2711
[ "MIT" ]
6
2021-12-20T06:01:56.000Z
2022-03-25T06:44:50.000Z
cvap/module/encoder/clip_head.py
zhaoyanpeng/vipant
93b06ff43ae6a76323cecea4c10cf457945c2711
[ "MIT" ]
null
null
null
cvap/module/encoder/clip_head.py
zhaoyanpeng/vipant
93b06ff43ae6a76323cecea4c10cf457945c2711
[ "MIT" ]
null
null
null
from fvcore.common.registry import Registry from omegaconf.listconfig import ListConfig from collections import OrderedDict import re import math import copy import threading import numpy as np import torch import torch.nn.functional as F from torch import nn from .. import ( build_encoder_module, interp_clip_vp_...
42.303754
136
0.572166
794a5753ba8737ead1f0997480e430a83ff0d385
1,302
py
Python
blog/migrations/0001_initial.py
rachelhs/wagtail-starter
2363517fd91e279d564ff899dfa3cdfd7ec01aa9
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
rachelhs/wagtail-starter
2363517fd91e279d564ff899dfa3cdfd7ec01aa9
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
rachelhs/wagtail-starter
2363517fd91e279d564ff899dfa3cdfd7ec01aa9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-08 16:16 from django.db import migrations, models import django.db.models.deletion import wagtail.core.fields class Migration(migrations.Migration): initial = True dependencies = [ ('wagtailcore', '0059_apply_collection_ordering'), ] operations = [ ...
32.55
191
0.582949
794a57879e0ee3cd81f3736c33b99a54f1584013
10,018
py
Python
allennlp/commands/predict.py
uysalelif/allennlp
9de5fb19a0f37c5ad394b4cc600e2335f00cdc74
[ "Apache-2.0" ]
null
null
null
allennlp/commands/predict.py
uysalelif/allennlp
9de5fb19a0f37c5ad394b4cc600e2335f00cdc74
[ "Apache-2.0" ]
null
null
null
allennlp/commands/predict.py
uysalelif/allennlp
9de5fb19a0f37c5ad394b4cc600e2335f00cdc74
[ "Apache-2.0" ]
null
null
null
""" The ``predict`` subcommand allows you to make bulk JSON-to-JSON or dataset to JSON predictions using a trained model and its :class:`~allennlp.predictors.predictor.Predictor` wrapper. .. code-block:: bash $ allennlp predict --help usage: allennlp predict [-h] [--output-file OUTPUT_FILE] ...
39.132813
99
0.609004
794a57d1822de2e2074ff932cfa874dcbba9a428
5,332
py
Python
Name_Popularity_Searching/babygraphics.py
tzuling/sc101-project
04991505d43b1f998851141bfaf8af083ee9a6c2
[ "MIT" ]
null
null
null
Name_Popularity_Searching/babygraphics.py
tzuling/sc101-project
04991505d43b1f998851141bfaf8af083ee9a6c2
[ "MIT" ]
null
null
null
Name_Popularity_Searching/babygraphics.py
tzuling/sc101-project
04991505d43b1f998851141bfaf8af083ee9a6c2
[ "MIT" ]
null
null
null
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. YOUR DESCRIPTION HERE """ import tkinter import babynames import babygraphicsgui as gui FILENAMES = [ 'data/full/baby-1900.txt', 'data/full/baby-1910.txt', 'data/full/baby-1920.txt', 'data/full/baby-1930.txt', ...
33.325
106
0.632033
794a57f28fa24620d12066693f9e984ec6691d77
9,714
py
Python
emu8/tui8.py
dreary-dugong/emu8
ae852c1126dd9d332d677ad050b50c0ef4b67dee
[ "MIT" ]
null
null
null
emu8/tui8.py
dreary-dugong/emu8
ae852c1126dd9d332d677ad050b50c0ef4b67dee
[ "MIT" ]
null
null
null
emu8/tui8.py
dreary-dugong/emu8
ae852c1126dd9d332d677ad050b50c0ef4b67dee
[ "MIT" ]
1
2022-02-22T20:51:13.000Z
2022-02-22T20:51:13.000Z
import curses import debug8 class Tui: """represent the terminal user interface for a chip8 Chip object""" def __init__(self, stdscr, chip, compmode): """inintialize instance data and set curses settings""" self.stdscr = stdscr self.chip = chip self.compmode = compmode # are ...
31.84918
99
0.56434
794a5a02d705e8b9eb4b065a24249b2634cf296a
2,477
py
Python
pyFileFixity/lib/gooey/python_bindings/gooey_parser.py
lrq3000/rfigc
a68021a506fee1aabea6b2fb88e685de347d900f
[ "MIT" ]
82
2015-03-20T18:43:37.000Z
2022-03-05T13:23:12.000Z
pyFileFixity/lib/gooey/python_bindings/gooey_parser.py
lrq3000/rfigc
a68021a506fee1aabea6b2fb88e685de347d900f
[ "MIT" ]
9
2015-12-05T17:32:14.000Z
2021-06-11T15:51:38.000Z
pyFileFixity/lib/gooey/python_bindings/gooey_parser.py
hadi-f90/pyFileFixity
2cb3dd6225a6b062a98fa2d61c4a0a29d8010428
[ "MIT" ]
10
2015-12-13T18:51:44.000Z
2022-02-21T10:50:28.000Z
from argparse import ArgumentParser, _SubParsersAction class GooeySubParser(_SubParsersAction): def __init__(self, *args, **kwargs): super(GooeySubParser, self).__init__(*args, **kwargs) class GooeyParser(object): def __init__(self, **kwargs): self.__dict__['parser'] = ArgumentParser(**kwargs) self....
32.592105
68
0.715785
794a5a3decf59c3a9824d940b5a16b079c9c3eea
3,201
py
Python
app/hid/write.py
tank0226/tinypilot
624d39e7c186418f80b6b1f4e61ee7f25a79cd3c
[ "MIT" ]
1,334
2020-07-14T01:53:02.000Z
2021-06-08T09:48:28.000Z
app/hid/write.py
tank0226/tinypilot
624d39e7c186418f80b6b1f4e61ee7f25a79cd3c
[ "MIT" ]
320
2020-07-07T20:18:05.000Z
2021-06-07T21:18:42.000Z
app/hid/write.py
tank0226/tinypilot
624d39e7c186418f80b6b1f4e61ee7f25a79cd3c
[ "MIT" ]
124
2020-07-23T16:39:06.000Z
2021-06-04T10:22:53.000Z
import dataclasses import logging import multiprocessing import typing logger = logging.getLogger(__name__) class Error(Exception): pass class WriteError(Error): pass @dataclasses.dataclass class ProcessResult: return_value: typing.Any = None exception: Exception = None def was_successful(se...
31.382353
80
0.659169
794a5b0293c875e8ef1b7105100a8e23c1399bd4
1,975
py
Python
python/nagcat/merlintest.py
marineam/nagcat
445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf
[ "Apache-2.0" ]
null
null
null
python/nagcat/merlintest.py
marineam/nagcat
445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf
[ "Apache-2.0" ]
null
null
null
python/nagcat/merlintest.py
marineam/nagcat
445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf
[ "Apache-2.0" ]
null
null
null
# Copyright 2008-2011 Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
35.267857
80
0.673418
794a5b25241e6626eba0022fc469f72e616a17bc
704
py
Python
vrmjobs/probe_init.py
thanhledev/vrmjobs
3f9e19238516a3536e98c1fd1ce2c3ad8dbc1aa1
[ "MIT" ]
null
null
null
vrmjobs/probe_init.py
thanhledev/vrmjobs
3f9e19238516a3536e98c1fd1ce2c3ad8dbc1aa1
[ "MIT" ]
null
null
null
vrmjobs/probe_init.py
thanhledev/vrmjobs
3f9e19238516a3536e98c1fd1ce2c3ad8dbc1aa1
[ "MIT" ]
null
null
null
from .host_info import HostInfo from .vrm_type import VrmType class ProbeInit(object): """ System job that will be encapsulated inside an UDP packet and broadcast to all worker hosts inside a single network segment by a collector host """ def __init__(self, packet_id: str, info: 'HostInfo', p...
29.333333
81
0.575284
794a5fe45515ce9238d96e7dd216d4e499dfb4c2
9,796
py
Python
pyrate/core/ref_phs_est.py
adu461386118/PyRate
0428dba9e2b3d4b6807f8c62d55c161c0dd4d75a
[ "Apache-2.0" ]
1
2021-03-22T17:25:55.000Z
2021-03-22T17:25:55.000Z
pyrate/core/ref_phs_est.py
adu461386118/PyRate
0428dba9e2b3d4b6807f8c62d55c161c0dd4d75a
[ "Apache-2.0" ]
null
null
null
pyrate/core/ref_phs_est.py
adu461386118/PyRate
0428dba9e2b3d4b6807f8c62d55c161c0dd4d75a
[ "Apache-2.0" ]
null
null
null
# This Python module is part of the PyRate software package. # # Copyright 2020 Geoscience Australia # # 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/...
37.247148
114
0.669763
794a609afe6ea97a40256c190920a59c1c654ffd
2,733
py
Python
get_model.py
Tan90degrees/Blink-detection
d0cfda76730a7fabc5aadd2c39bb2785739d076d
[ "MIT" ]
null
null
null
get_model.py
Tan90degrees/Blink-detection
d0cfda76730a7fabc5aadd2c39bb2785739d076d
[ "MIT" ]
null
null
null
get_model.py
Tan90degrees/Blink-detection
d0cfda76730a7fabc5aadd2c39bb2785739d076d
[ "MIT" ]
null
null
null
import requests import os import bz2 import getpath def download_landmarks_model(): models = getpath.get_2rd_path("models") if os.path.isdir(models): pass else: os.mkdir(models) model = getpath.get_3rd_path("models", "shape_predictor_68_face_landmarks.dat.bz2") dat = g...
33.329268
88
0.554336
794a60e15438fd30814a70a95cee849927abb198
2,803
py
Python
bench/test_attrs_nested.py
bibajz/cattrs
59edafdac38d4f9acd9ab2769380e3ec128a16a7
[ "MIT" ]
364
2016-09-10T16:09:23.000Z
2021-10-20T03:26:06.000Z
bench/test_attrs_nested.py
bibajz/cattrs
59edafdac38d4f9acd9ab2769380e3ec128a16a7
[ "MIT" ]
167
2016-09-22T08:45:12.000Z
2021-10-21T13:34:35.000Z
bench/test_attrs_nested.py
bibajz/cattrs
59edafdac38d4f9acd9ab2769380e3ec128a16a7
[ "MIT" ]
65
2016-12-31T11:21:59.000Z
2021-09-29T10:07:38.000Z
"""Benchmark attrs containing other attrs classes.""" import attr import pytest from cattr import Converter, GenConverter, UnstructureStrategy @pytest.mark.parametrize("converter_cls", [Converter, GenConverter]) @pytest.mark.parametrize( "unstructure_strat", [UnstructureStrategy.AS_DICT, UnstructureStrategy....
21.728682
79
0.579022
794a6151292479d4a60669333a429bea3d8e3738
8,184
py
Python
cmdb/asset.py
touchgold/adminset
3568693a4ea43312a3d3f04c843723b20b50ec93
[ "Apache-2.0" ]
1
2018-04-27T07:24:49.000Z
2018-04-27T07:24:49.000Z
cmdb/asset.py
touchgold/adminset
3568693a4ea43312a3d3f04c843723b20b50ec93
[ "Apache-2.0" ]
null
null
null
cmdb/asset.py
touchgold/adminset
3568693a4ea43312a3d3f04c843723b20b50ec93
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import csv import datetime import sys from accounts.permission import permission_verify from cmdb.api import get_object, pages, str2gb from config.views import get_dir from django.contrib.auth.decorators import login_required from django.db.models import Q from django.sh...
36.535714
118
0.580156
794a61aa0e8c009ce7e26eed796c397ad9c05029
764
py
Python
source/pyromocc/tests/pyromocc/test_calibration.py
SINTEFMedtek/libromocc
65a10849401cec02fc1c9ac8b1bdebbbfc4ff1c0
[ "BSD-2-Clause" ]
2
2019-07-03T10:02:11.000Z
2020-04-20T09:01:42.000Z
source/pyromocc/tests/pyromocc/test_calibration.py
SINTEFMedtek/libromocc
65a10849401cec02fc1c9ac8b1bdebbbfc4ff1c0
[ "BSD-2-Clause" ]
4
2019-08-05T07:55:22.000Z
2020-05-11T11:05:59.000Z
source/pyromocc/tests/pyromocc/test_calibration.py
SINTEFMedtek/libromocc
65a10849401cec02fc1c9ac8b1bdebbbfc4ff1c0
[ "BSD-2-Clause" ]
1
2020-06-22T09:55:47.000Z
2020-06-22T09:55:47.000Z
from unittest import TestCase import numpy as np from pyromocc import CalibrationMethods class TestCalibration(TestCase): def setUp(self) -> None: pass def test_calibration_shah(self): poses_a = np.random.random((100, 4, 4)) poses_b = poses_a calib_matrices = CalibrationMeth...
36.380952
114
0.668848
794a61d9fe3283a77f6f470a261d1124cd8c3132
3,743
py
Python
src/Django/venv/ShopCart/shopcart/shopcart/settings/base.py
KarateJB/Python.Practice
a5f00f669dc4b815601c093ce0753a0a82b4328a
[ "MIT" ]
1
2020-08-14T07:21:05.000Z
2020-08-14T07:21:05.000Z
src/Django/venv/ShopCart/shopcart/shopcart/settings/base.py
KarateJB/Python.Practice
a5f00f669dc4b815601c093ce0753a0a82b4328a
[ "MIT" ]
null
null
null
src/Django/venv/ShopCart/shopcart/shopcart/settings/base.py
KarateJB/Python.Practice
a5f00f669dc4b815601c093ce0753a0a82b4328a
[ "MIT" ]
3
2018-04-08T13:35:20.000Z
2019-09-01T04:59:03.000Z
""" Django settings for shopcart project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import o...
27.123188
91
0.67486
794a62688747ff21da3408067411216ed0207a91
20,826
py
Python
unittests/test_rfc4287.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-09-16T11:17:43.000Z
2016-10-19T11:15:53.000Z
unittests/test_rfc4287.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2018-06-29T10:53:50.000Z
2021-04-06T07:55:54.000Z
unittests/test_rfc4287.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-10-13T15:12:50.000Z
2021-01-13T11:58:18.000Z
#! /usr/bin/env python import os import unittest from io import BytesIO import pyslet.rfc4287 as atom from pyslet import iso8601 from pyslet.py2 import dict_keys from pyslet.xml import namespace as xmlns def suite(): return unittest.TestSuite(( unittest.makeSuite(AtomElementTests, 'test'), uni...
39.668571
79
0.615289
794a62693f1665ee6672b50e7d20f40575d2c150
27,778
py
Python
prod-stack.py
Olympic1/NetKAN-Infra
ddad74c4942664e22719930a71ff5cc43f229352
[ "MIT" ]
null
null
null
prod-stack.py
Olympic1/NetKAN-Infra
ddad74c4942664e22719930a71ff5cc43f229352
[ "MIT" ]
null
null
null
prod-stack.py
Olympic1/NetKAN-Infra
ddad74c4942664e22719930a71ff5cc43f229352
[ "MIT" ]
null
null
null
import os import sys from troposphere import GetAtt, Output, Ref, Template, Sub, Base64 from troposphere.iam import Group, Policy, PolicyType, Role, InstanceProfile from troposphere.sqs import Queue from troposphere.dynamodb import Table, KeySchema, AttributeDefinition, \ ProvisionedThroughput from troposphere.ecs ...
31.002232
108
0.4505
794a62bdae414f559d8fced1bd06ee5124e698d6
1,597
py
Python
Funny_Js_Crack/76-openlaw(RSA)/openlaw_login.py
qqizai/Func_Js_Crack
8cc8586107fecace4b71d0519cfbc760584171b1
[ "MIT" ]
18
2020-12-09T06:49:46.000Z
2022-01-27T03:20:36.000Z
Funny_Js_Crack/76-openlaw(RSA)/openlaw_login.py
sumerzhang/Func_Js_Crack
8cc8586107fecace4b71d0519cfbc760584171b1
[ "MIT" ]
null
null
null
Funny_Js_Crack/76-openlaw(RSA)/openlaw_login.py
sumerzhang/Func_Js_Crack
8cc8586107fecace4b71d0519cfbc760584171b1
[ "MIT" ]
9
2020-12-20T08:52:09.000Z
2021-12-19T09:13:09.000Z
# -*- coding: utf-8 -*- # @Time: 2019/12/17 10:54 # @Version: 1.0 # @Email: nnlcccc@outlook.com # 代码千万条,整洁第一条,代码不规范,调试两行泪 import re import requests import execjs userName = 'user' password = 'password' with open('./openlaw_login.js','r',encoding='utf-8') as f: login_js = execjs.compile(f.read()) session = reque...
31.94
149
0.720726
794a62d5979c4b293cda9759a1f59752d08d2e92
45,031
py
Python
python/tests/phonenumbermatchertest.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
1
2021-02-16T10:02:00.000Z
2021-02-16T10:02:00.000Z
python/tests/phonenumbermatchertest.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
null
null
null
python/tests/phonenumbermatchertest.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Unit tests for phonenumbermatcher.py""" # Based on original Java code: # java/test/com/google/i18n/phonenumbers/PhoneNumberMatchTest.java # java/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java # Copyright (C) 2011 The Libphonenumber Authors # # Licensed under the Apache L...
48.893594
137
0.629078
794a6438a733b35e720bd6d8c6e691a41d833fcc
2,914
py
Python
jdcloud_cli/controllers/websocket/attach_request.py
Tanc009/jdcloud-cli
4e11de77c68501f44e7026c0ad1c24e5d043197e
[ "Apache-2.0" ]
95
2018-06-05T10:49:32.000Z
2019-12-31T11:07:36.000Z
jdcloud_cli/controllers/websocket/attach_request.py
Tanc009/jdcloud-cli
4e11de77c68501f44e7026c0ad1c24e5d043197e
[ "Apache-2.0" ]
22
2018-06-05T10:58:59.000Z
2020-07-31T12:13:19.000Z
jdcloud_cli/controllers/websocket/attach_request.py
Tanc009/jdcloud-cli
4e11de77c68501f44e7026c0ad1c24e5d043197e
[ "Apache-2.0" ]
21
2018-06-04T12:50:27.000Z
2020-11-05T10:55:28.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
44.151515
136
0.734386
794a64623e1858e685dc62057737c7a660c60a99
5,964
py
Python
basic_transactions_gp/blockchain.py
Robdowski/Blockchain
06c35ee51eb38733e87540abd1633b2045105eeb
[ "MIT" ]
null
null
null
basic_transactions_gp/blockchain.py
Robdowski/Blockchain
06c35ee51eb38733e87540abd1633b2045105eeb
[ "MIT" ]
null
null
null
basic_transactions_gp/blockchain.py
Robdowski/Blockchain
06c35ee51eb38733e87540abd1633b2045105eeb
[ "MIT" ]
null
null
null
# Paste your version of blockchain.py from the basic_block_gp # folder here import hashlib import json from time import time from uuid import uuid4 from flask import Flask, jsonify, request from flask_cors import CORS class Blockchain(object): def __init__(self): self.chain = [] self.current_tra...
29.37931
77
0.605634
794a648e11b52c4650243e7c7c8dfae080ce018c
295
py
Python
EmployeeApp/urls.py
cs-fullstack-2019-spring/django-formclassv2-cw-MelaatiJ
50d53ac2d2ba2f305687898e1686ef23d945fd1d
[ "Apache-2.0" ]
null
null
null
EmployeeApp/urls.py
cs-fullstack-2019-spring/django-formclassv2-cw-MelaatiJ
50d53ac2d2ba2f305687898e1686ef23d945fd1d
[ "Apache-2.0" ]
null
null
null
EmployeeApp/urls.py
cs-fullstack-2019-spring/django-formclassv2-cw-MelaatiJ
50d53ac2d2ba2f305687898e1686ef23d945fd1d
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views #paths to two pages urlpatterns = [ path("", views.index, name="index"), path("apply/", views.apply, name="apply"), path("applicant/", views.applicant, name="applicant") # path("applicant/", views.applicant, name="applicant"), ]
26.818182
60
0.664407
794a6608ff9894b41446fa4f3ac2cfc8e09c3a12
11,657
py
Python
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_product_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_product_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_product_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateProductResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.293689
237
0.612336
794a66200f5207f38eaaa8e4960d08021e44e172
1,245
py
Python
ivi/extra/__init__.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/extra/__init__.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/extra/__init__.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2014-2017 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
35.571429
77
0.771888
794a676e5550b241f480f09a3cc9014b2df6eaa6
334
gyp
Python
binding.gyp
dickmao/tree-sitter-perl
5308d95b43160c896410c886706c9aaf4d17d81d
[ "MIT" ]
16
2020-12-07T22:38:43.000Z
2022-01-26T09:11:53.000Z
binding.gyp
dickmao/tree-sitter-perl
5308d95b43160c896410c886706c9aaf4d17d81d
[ "MIT" ]
18
2022-02-24T17:03:28.000Z
2022-03-16T23:12:49.000Z
binding.gyp
dickmao/tree-sitter-perl
5308d95b43160c896410c886706c9aaf4d17d81d
[ "MIT" ]
4
2021-06-30T20:47:32.000Z
2022-02-15T16:26:18.000Z
{ "targets": [ { "target_name": "tree_sitter_perl_binding", "include_dirs": [ "<!(node -e \"require('nan')\")", "src" ], "sources": [ "src/parser.c", "src/scanner.cc", "bindings/node/binding.cc" ], "cflags_c": [ "-std=c99", ...
16.7
48
0.407186
794a6ba78d1b002329a8228e26711dab7c679707
5,251
py
Python
paragraph_encoder/multi_corpus.py
rajarshd/Multi-Step-Reasoning
3218d626839f7217554f38d82e00e4f460b508e4
[ "Apache-2.0" ]
122
2019-03-12T13:57:10.000Z
2022-03-25T08:19:56.000Z
paragraph_encoder/multi_corpus.py
rajarshd/Multi-Step-Reasoning
3218d626839f7217554f38d82e00e4f460b508e4
[ "Apache-2.0" ]
5
2019-09-25T00:55:20.000Z
2021-06-15T09:43:58.000Z
paragraph_encoder/multi_corpus.py
rajarshd/Multi-Step-Reasoning
3218d626839f7217554f38d82e00e4f460b508e4
[ "Apache-2.0" ]
12
2019-04-08T03:04:09.000Z
2020-08-17T14:49:35.000Z
import numpy as np import os import pickle from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics import pairwise_distances from tqdm import tqdm from pathlib import Path import argparse import time class MultiCorpus: class Paragraph: def __init__(self, args, pid, text, answer_spa...
34.774834
116
0.582746
794a6c48d0b369cc2c7998a2f0baf5d95804c3ff
9,598
py
Python
suap_ead/template_settings.py
suap-ead/lib_suap_ead
480027d2bd1682e6f707c0638155f53e19f0a225
[ "MIT" ]
null
null
null
suap_ead/template_settings.py
suap-ead/lib_suap_ead
480027d2bd1682e6f707c0638155f53e19f0a225
[ "MIT" ]
3
2020-10-02T16:47:06.000Z
2021-11-04T00:55:30.000Z
suap_ead/template_settings.py
suap-ead/suap_ead
480027d2bd1682e6f707c0638155f53e19f0a225
[ "MIT" ]
null
null
null
from sc4py.env import env, env_as_int, env_as_bool, env_as_list, env_from_json import sc4net # Development DEBUG = env_as_bool('DJANGO_DEBUG', True) LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'class': 'logging.StreamHandler'}, }, 'loggers': { '': {'ha...
48.231156
120
0.715982
794a6c87fe3e370c7407a46b548b1154bee13b61
8,469
py
Python
src/pretalx/mail/context.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
null
null
null
src/pretalx/mail/context.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
null
null
null
src/pretalx/mail/context.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
null
null
null
from django.dispatch import receiver from django.template.defaultfilters import date as _date from django.utils.timezone import now from django.utils.translation import gettext_lazy as _ from pretalx.mail.placeholders import SimpleFunctionalMailTextPlaceholder from pretalx.mail.signals import register_mail_placeholder...
37.30837
88
0.572205
794a6d8d058179be1920c957cdaf70dff8908c0c
5,182
py
Python
training.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
training.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
3
2022-01-13T03:13:37.000Z
2022-03-12T00:48:18.000Z
training.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
""" This file is part of the OpenProtein project. For license information, please see the LICENSE file in the root directory. """ import json import time import numpy as np import requests import torch.optim as optim from util import set_experiment_id, write_out, write_model_to_disk, write_result_summary def train_...
42.47541
118
0.642609
794a6daa4fa6bedfe3855453fb2f7ae6a3432899
61
py
Python
tests/__init__.py
Pandelytics/pandelytics
5950d4a95595dadf076ac9270be0dbcdcfa59a1a
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
Pandelytics/pandelytics
5950d4a95595dadf076ac9270be0dbcdcfa59a1a
[ "Apache-2.0" ]
11
2020-04-02T22:36:36.000Z
2020-09-27T11:19:23.000Z
tests/__init__.py
Pandelytics/pandelytics
5950d4a95595dadf076ac9270be0dbcdcfa59a1a
[ "Apache-2.0" ]
1
2020-10-07T15:48:06.000Z
2020-10-07T15:48:06.000Z
from pandelytics import __version__ import pandelytics.search
30.5
35
0.901639
794a6e0ccb640a9f5d410a879ab1a129f2099d33
459
py
Python
store_backend/plugins/migrations/0003_plugin_icon.py
EUGINELETHAL/ChRIS_store
b842dbfa80f29f86468fe0ebd3514aaac4898717
[ "MIT" ]
11
2018-03-23T19:27:10.000Z
2021-04-30T16:40:04.000Z
store_backend/plugins/migrations/0003_plugin_icon.py
EUGINELETHAL/ChRIS_store
b842dbfa80f29f86468fe0ebd3514aaac4898717
[ "MIT" ]
46
2018-05-21T14:54:43.000Z
2022-01-28T01:37:57.000Z
store_backend/plugins/migrations/0003_plugin_icon.py
EUGINELETHAL/ChRIS_store
b842dbfa80f29f86468fe0ebd3514aaac4898717
[ "MIT" ]
11
2018-03-28T04:37:25.000Z
2021-05-28T06:40:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2018-07-20 15:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('plugins', '0002_auto_20180503_1606'), ] operations = [ migrations.AddField(...
21.857143
62
0.616558
794a6ed6586e8b15df7b2d5199b0a4f374b7028b
196
py
Python
Django_Project/django/Scripts/django-admin.py
mitchrule/Miscellaneous
57f7453e0f97b6fe8f186620ebe94f0ca736cc1f
[ "MIT" ]
null
null
null
Django_Project/django/Scripts/django-admin.py
mitchrule/Miscellaneous
57f7453e0f97b6fe8f186620ebe94f0ca736cc1f
[ "MIT" ]
null
null
null
Django_Project/django/Scripts/django-admin.py
mitchrule/Miscellaneous
57f7453e0f97b6fe8f186620ebe94f0ca736cc1f
[ "MIT" ]
null
null
null
#!C:\Users\Mitch\Google Drive\Programming\Python\Django_Project\django\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
32.666667
89
0.806122
794a6f025f2d9e02b7c4a0b62cfb0469302e464b
813
py
Python
events/CreationSex.py
crexodon/rating.chat
d3f2b2cea6761c51041d0a96856cc1e4f8eb138f
[ "MIT" ]
null
null
null
events/CreationSex.py
crexodon/rating.chat
d3f2b2cea6761c51041d0a96856cc1e4f8eb138f
[ "MIT" ]
null
null
null
events/CreationSex.py
crexodon/rating.chat
d3f2b2cea6761c51041d0a96856cc1e4f8eb138f
[ "MIT" ]
1
2018-12-02T09:43:55.000Z
2018-12-02T09:43:55.000Z
from event_base.event import EventBase class CreationSex(EventBase): def __init__(self, chat_id: int): super().__init__(chat_id=chat_id, prev_event_ids=['creation_age'], event_id="creation_sex", message_text="Wähle dein Geschlect" , buttons=[{'text': 'Mä...
35.347826
113
0.587946
794a6f414d20e5b4a1e0bd226ca6f154a5c7b328
3,581
py
Python
noise.py
dave-leblanc/pytile
0584a10a2895245dd4515e00e153673bd40cbdbc
[ "BSD-3-Clause" ]
8
2018-04-01T17:40:57.000Z
2021-08-13T07:01:17.000Z
noise.py
dave-leblanc/pytile
0584a10a2895245dd4515e00e153673bd40cbdbc
[ "BSD-3-Clause" ]
null
null
null
noise.py
dave-leblanc/pytile
0584a10a2895245dd4515e00e153673bd40cbdbc
[ "BSD-3-Clause" ]
5
2018-01-27T01:57:35.000Z
2021-03-07T08:20:51.000Z
#!/usr/bin/python import sys, os, random, math from numpy import * # Perlin noise object, allows for generation of either an arbitrary amount of # non-repetitive noise or for the generation of tileable textures class Perlin2D(object): """Extensible Perlin noise, non-repeating""" def __init__(self, xdims, yd...
34.76699
83
0.556269
794a6fb8af80af0ccbd98d6f42a33590f5c9a58e
1,756
py
Python
spirit/utils/forms.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
3
2017-12-01T08:17:38.000Z
2021-01-29T15:40:06.000Z
spirit/utils/forms.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
9
2020-06-05T17:44:02.000Z
2022-01-13T00:42:34.000Z
spirit/utils/forms.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
1
2020-11-08T21:47:32.000Z
2020-11-08T21:47:32.000Z
#-*- coding: utf-8 -*- from django import forms from django.utils.html import conditional_escape, mark_safe from django.utils.encoding import smart_text class NestedModelChoiceField(forms.ModelChoiceField): """A ModelChoiceField that groups parents and childrens""" # TODO: subclass ModelChoiceIterator, remov...
40.837209
106
0.677677
794a705ef9e0fd05d8bf7d1590461bb5ba81d849
746
py
Python
runs/snort/10KB/src8-tgt1/ssl-par-ssl-iter00200.cfg.py
Largio/broeval
89e831d07f066100afdd1a5b220f9f08f1c10b3d
[ "MIT" ]
null
null
null
runs/snort/10KB/src8-tgt1/ssl-par-ssl-iter00200.cfg.py
Largio/broeval
89e831d07f066100afdd1a5b220f9f08f1c10b3d
[ "MIT" ]
null
null
null
runs/snort/10KB/src8-tgt1/ssl-par-ssl-iter00200.cfg.py
Largio/broeval
89e831d07f066100afdd1a5b220f9f08f1c10b3d
[ "MIT" ]
null
null
null
# Write results to this file OUTFILE = 'runs/snort/10KB/src8-tgt1/ssl-par-ssl-iter00200.result.csv' # Source computers for the request SOURCE = ['10.0.0.11', '10.0.0.12', '10.0.0.13', '10.0.0.14', '10.0.0.31', '10.0.0.32', '10.0.0.33', '10.0.0.34'] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'...
27.62963
113
0.672922
794a7075ba4728502c15384bc56216871f997972
4,377
py
Python
tests/functional/conftest.py
william-richard/chili-pepper
812081fafe443f0a16ac017e1386e4725be9f576
[ "Apache-2.0" ]
2
2020-06-22T15:47:18.000Z
2021-06-30T12:24:07.000Z
tests/functional/conftest.py
william-richard/chili-pepper
812081fafe443f0a16ac017e1386e4725be9f576
[ "Apache-2.0" ]
null
null
null
tests/functional/conftest.py
william-richard/chili-pepper
812081fafe443f0a16ac017e1386e4725be9f576
[ "Apache-2.0" ]
null
null
null
import importlib import os import sys import boto3 import pytest from moto import mock_cloudformation, mock_iam, mock_lambda, mock_s3, mock_kms @pytest.fixture(autouse=True) def apply_moto_mocks(): with mock_cloudformation(), mock_iam(), mock_s3(), mock_lambda(), mock_kms(): boto3.setup_default_session()...
37.09322
139
0.71533
794a718fd2137c35d1d51ee018de9d611cc5a6c0
5,595
py
Python
metar.py
danielwise904/METARMap
7e61e3a5d16adc6413c4f71e494033b4c64edbc4
[ "MIT" ]
null
null
null
metar.py
danielwise904/METARMap
7e61e3a5d16adc6413c4f71e494033b4c64edbc4
[ "MIT" ]
null
null
null
metar.py
danielwise904/METARMap
7e61e3a5d16adc6413c4f71e494033b4c64edbc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import urllib.request import xml.etree.ElementTree as ET import board import neopixel import time # NeoPixel LED Configuration LED_COUNT = 150 # Number of LED pixels. LED_PIN = board.D18 # GPIO pin connected to the pixels (18 is PCM). LED_BRIGHTNESS = 0.1 # Float from 0.0 (min) t...
47.415254
243
0.741912
794a727be486d16611dbdc87189210ccc4ce986d
19,800
py
Python
ml-agents/mlagents/trainers/tests/test_ppo.py
MisterPiggy/ml-agents
ab0336244d757745312c3077814064d40fb0b0e8
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/tests/test_ppo.py
MisterPiggy/ml-agents
ab0336244d757745312c3077814064d40fb0b0e8
[ "Apache-2.0" ]
4
2020-01-10T19:44:04.000Z
2021-05-21T16:06:01.000Z
ml-agents/mlagents/trainers/tests/test_ppo.py
kayloshai/MachineLearning
c9385d0db79665449af6c7566d9bb4da2434d8ab
[ "MIT" ]
1
2021-09-02T07:21:57.000Z
2021-09-02T07:21:57.000Z
from unittest import mock import pytest import numpy as np from mlagents.tf_utils import tf import yaml from mlagents.trainers.ppo.models import PPOModel from mlagents.trainers.ppo.trainer import PPOTrainer, discount_rewards from mlagents.trainers.ppo.policy import PPOPolicy from mlagents.trainers.models import Enco...
35.231317
95
0.634293
794a7338289c8245c01ea0e624f0c6b026971643
11,636
py
Python
insta/views.py
careymwarabu/Insta-Piktures
3bbac8d89f4badbb67bfac6d9fb96fd85128704a
[ "MIT" ]
null
null
null
insta/views.py
careymwarabu/Insta-Piktures
3bbac8d89f4badbb67bfac6d9fb96fd85128704a
[ "MIT" ]
null
null
null
insta/views.py
careymwarabu/Insta-Piktures
3bbac8d89f4badbb67bfac6d9fb96fd85128704a
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.contrib.auth.models import User from .models import Image, Profile, Follow, Comment from django.http import HttpResponseRedirect, Http404 from django.urls import reverse from .forms import CreateProfileForm,UploadImageForm, EditBioForm, FollowForm, UnfollowForm,C...
41.116608
199
0.645583
794a7361b2a4c141166333ffaec7fbe0cf711df7
178
py
Python
server/setup.py
jojo-31/peakdb
9c4dd1c1e10ce26f705b85b554e581119b07ea5f
[ "MIT" ]
null
null
null
server/setup.py
jojo-31/peakdb
9c4dd1c1e10ce26f705b85b554e581119b07ea5f
[ "MIT" ]
null
null
null
server/setup.py
jojo-31/peakdb
9c4dd1c1e10ce26f705b85b554e581119b07ea5f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="peakdb", version="0.0.1", description=("A simple module."), packages=find_packages(exclude=["tests"]), )
22.25
46
0.674157