hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
40cdb6d00dede9b1cde10c8048300ae6845d230b
3,288
py
Python
jina/excepts.py
abellimz/jina
010789331ce896ffcaea897402d698944f1a9d40
[ "Apache-2.0" ]
null
null
null
jina/excepts.py
abellimz/jina
010789331ce896ffcaea897402d698944f1a9d40
[ "Apache-2.0" ]
null
null
null
jina/excepts.py
abellimz/jina
010789331ce896ffcaea897402d698944f1a9d40
[ "Apache-2.0" ]
null
null
null
"""This modules defines all kinds of exceptions raised in Jina.""" class NoExplicitMessage(Exception): """Waiting until all partial messages are received.""" class ChainedPodException(Exception): """Chained exception from the last Pod.""" class MismatchedVersion(SystemError): """When the jina version ...
27.173554
102
0.742092
4dfd8ca5cab13273dbd085d07f4d8fdb406d2fbc
4,268
py
Python
nnunet/experiment_planning/summarize_plans.py
gasperpodobnik/nnUNet
f11906b13344db9f54e303378748a0defdea8331
[ "Apache-2.0" ]
null
null
null
nnunet/experiment_planning/summarize_plans.py
gasperpodobnik/nnUNet
f11906b13344db9f54e303378748a0defdea8331
[ "Apache-2.0" ]
null
null
null
nnunet/experiment_planning/summarize_plans.py
gasperpodobnik/nnUNet
f11906b13344db9f54e303378748a0defdea8331
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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 # # ht...
53.35
226
0.638472
f717772bd33c93521c158ce38b78042fe52c2ff5
52
py
Python
subjects/__init__.py
ankit0tech/Research-Productivity-Tool
c08e39daaaa8dfa08f5eb2607986d9f6bf9f02fa
[ "MIT" ]
1
2021-12-12T04:54:05.000Z
2021-12-12T04:54:05.000Z
subjects/__init__.py
ankit0tech/Research-Productivity-Tool
c08e39daaaa8dfa08f5eb2607986d9f6bf9f02fa
[ "MIT" ]
null
null
null
subjects/__init__.py
ankit0tech/Research-Productivity-Tool
c08e39daaaa8dfa08f5eb2607986d9f6bf9f02fa
[ "MIT" ]
null
null
null
default_app_config = 'subjects.apps.SubjectsConfig'
26
51
0.846154
fa3467138c2dedfd7822639a059eb8f809d1a844
870
py
Python
Python/Algorithms/937.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
2
2021-01-15T17:22:54.000Z
2021-05-16T19:58:02.000Z
Python/Algorithms/937.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
null
null
null
Python/Algorithms/937.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
null
null
null
class Solution: def reorderLogFiles(self, logs): # special case, empty or logs with 1 log. if len(logs) < 2: return logs # bring these in local scope. digit, letter, join = ( str.isdigit, str.isalpha, " ".join ) # Spli...
33.461538
63
0.548276
13288891f8065b5378e2bd56b45741bf481d26cd
6,269
py
Python
src/python/pants/init/extension_loader.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
null
null
null
src/python/pants/init/extension_loader.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
16
2022-01-13T10:40:30.000Z
2022-03-30T10:20:44.000Z
src/python/pants/init/extension_loader.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import importlib import traceback from typing import Dict, List, Optional from pkg_resources import Requirement, WorkingSet from pants.base.exceptions import BackendConfigurationError fr...
40.707792
102
0.720211
f5d5f8b676cf14f9dfddbddc2a42154aca061b02
7,752
py
Python
pipeline/templatetags/pipeline.py
mhl/django-pipeline
2f983772fa12c861cee8cb170c7f67b2a7973eff
[ "MIT" ]
null
null
null
pipeline/templatetags/pipeline.py
mhl/django-pipeline
2f983772fa12c861cee8cb170c7f67b2a7973eff
[ "MIT" ]
null
null
null
pipeline/templatetags/pipeline.py
mhl/django-pipeline
2f983772fa12c861cee8cb170c7f67b2a7973eff
[ "MIT" ]
null
null
null
import logging import subprocess from django.contrib.staticfiles.storage import staticfiles_storage from django import template from django.template.base import Context, VariableDoesNotExist from django.template.loader import render_to_string from django.utils.safestring import mark_safe from ..collector import defa...
36.224299
163
0.658153
3892498f9a7a0da6c0cf3abf4cc6b908eb16fbfc
7,551
py
Python
darts/base_engines/fr.py
GabrielAmare/Darts
182748d821b8c1838071f3b28724d0d9b095dcf9
[ "MIT" ]
null
null
null
darts/base_engines/fr.py
GabrielAmare/Darts
182748d821b8c1838071f3b28724d0d9b095dcf9
[ "MIT" ]
null
null
null
darts/base_engines/fr.py
GabrielAmare/Darts
182748d821b8c1838071f3b28724d0d9b095dcf9
[ "MIT" ]
null
null
null
from text_engine import * from darts.commands import * from darts.constants import KW, CTX from .utils import set_parser_identifiers PNC = PlayerNameCompound.__name__ PN = PlayerName.__name__ lexer, parser, astb, engine_fr = base( # COMMANDS [Quit, match(KW.QUIT)], [SaveParty, match(KW.SAVE_PARTY)], ...
48.716129
120
0.545491
48d530b993ffa1f0c3f8a879fda689d61b6cbf06
163
py
Python
Exercices/Secao04/exercicio10.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio10.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio10.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
print('Digite uma velocidade em Km/h, que será convertido em m/s') K = float(input('Velocidade: ')) M = K / 3.6 print(f'A velocidade em m/s é: {M} e m km/h é {K}')
40.75
66
0.644172
39ee8e39291d69ae937db69dca7008ef2ef9c8db
4,054
py
Python
aiotractive/api.py
Danielhiversen/aiotractive
20fe0be6bc63b44e3fedbc25c0e2533ca39132bf
[ "MIT" ]
null
null
null
aiotractive/api.py
Danielhiversen/aiotractive
20fe0be6bc63b44e3fedbc25c0e2533ca39132bf
[ "MIT" ]
null
null
null
aiotractive/api.py
Danielhiversen/aiotractive
20fe0be6bc63b44e3fedbc25c0e2533ca39132bf
[ "MIT" ]
null
null
null
"""Low level client for the Tractive REST API.""" import asyncio import aiohttp from aiohttp.client_exceptions import ClientResponseError from yarl import URL import json from .exceptions import TractiveError, UnauthorizedError, NotFoundError class API: API_URL = URL("https://graph.tractive.com/3/") CLIENT...
33.783333
92
0.578194
0a31c242db86516e5eb136cf639cba8d4e5a455c
3,471
py
Python
examplefuncsplayer-python/run.py
golfbag/bc
f16601d90b7ad5e4ba5344e00cb5f54358526bd2
[ "MIT" ]
null
null
null
examplefuncsplayer-python/run.py
golfbag/bc
f16601d90b7ad5e4ba5344e00cb5f54358526bd2
[ "MIT" ]
null
null
null
examplefuncsplayer-python/run.py
golfbag/bc
f16601d90b7ad5e4ba5344e00cb5f54358526bd2
[ "MIT" ]
null
null
null
import battlecode as bc import random import sys import traceback import time import os print(os.getcwd()) print("pystarting") #Test # A GameController is the main type that you talk to the game with. # Its constructor will connect to a running game. gc = bc.GameController() directions = list(bc.Direction) print("p...
36.925532
123
0.597234
f16f77a92d8f2c5878087e55779ac908cb9dde2a
3,024
py
Python
2020/day_05/solution_p2.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
2020/day_05/solution_p2.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
2020/day_05/solution_p2.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This code holds the solution for part 2 of day 5 of the Advent of Code for 2020. """ import sys def identify_row(boarding_pass): min_row = 0 max_row = 127 for letter in boarding_pass[:-4]: # print(letter, min_row, max_row) if letter == 'F': max_row = m...
24.192
118
0.640542
72077609aefe5fe08a2d0d67784d937a77cca034
10,271
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/net_tools/ldap/ldap_attrs.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/net_tools/ldap/ldap_attrs.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/net_tools/ldap/ldap_attrs.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Maciej Delmanowski <drybjed@gmail.com> # Copyright: (c) 2017, Alexander Korinek <noles@a3k.net> # Copyright: (c) 2016, Peter Sagerson <psagers@ignorare.net> # Copyright: (c) 2016, Jiri Tyr <jiri.tyr@gmail.com> # GNU General Public License v3.0+ (see COPY...
31.603077
112
0.628663
f65e7a9c9952517b13bec043357d167a3585e9fa
10,111
py
Python
qstkutil/qsdateutil.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
1
2015-12-04T14:40:33.000Z
2015-12-04T14:40:33.000Z
qstkutil/qsdateutil.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
null
null
null
qstkutil/qsdateutil.py
grahesh/Stock-Market-Event-Analysis
57dc06e087c29b9c134df8886c97377b3d99f05b
[ "BSD-3-Clause" ]
null
null
null
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Jan 1, 2011 @author:Drew Bratcher @contact: dbratcher@gatech.edu @summary: Contains tutorial for backteste...
29.392442
85
0.649392
da97df93883c684e17fcc6e29b8a40a2d86e4838
3,678
py
Python
tmoga/algorithm/Feature_Extraction.py
zjg540066169/tmoga
a3c3ecd0d72fc7c57fd5e5a624780e7ebf199c61
[ "Apache-2.0" ]
2
2021-10-06T04:45:52.000Z
2022-03-20T01:18:05.000Z
tmoga/algorithm/Feature_Extraction.py
zjg540066169/tmoga
a3c3ecd0d72fc7c57fd5e5a624780e7ebf199c61
[ "Apache-2.0" ]
1
2022-03-20T01:45:09.000Z
2022-03-21T15:17:21.000Z
tmoga/algorithm/Feature_Extraction.py
zjg540066169/tmoga
a3c3ecd0d72fc7c57fd5e5a624780e7ebf199c61
[ "Apache-2.0" ]
3
2021-10-09T08:08:44.000Z
2022-03-20T01:18:07.000Z
# -*- coding: utf-8 -*- """ Extract transfered feature in communities. (feature extraction) @auth: Jungang Zou @date: 2018/05/10 """ import networkx as nx from tmoga.utils.evaluation import evaluation import multiprocessing from joblib import Parallel, delayed class Clique_Discover(object): def __ini...
37.151515
163
0.516041
79f2a199c8946f68a88d6fb20a518c31136e520b
2,444
py
Python
v1.0.0.test/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex4_C', 'wantDoors': 1}, 10...
35.941176
80
0.434124
94fd1ea9cb4b9f851411121d4a8960ecfe9ad0ea
23,410
py
Python
test/functional/test_framework/test_node.py
butterkitty/buttcoin
a9ab9e2a2e2722a2364944391a343f248efdadd7
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
butterkitty/buttcoin
a9ab9e2a2e2722a2364944391a343f248efdadd7
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
butterkitty/buttcoin
a9ab9e2a2e2722a2364944391a343f248efdadd7
[ "MIT" ]
1
2021-05-19T01:58:52.000Z
2021-05-19T01:58:52.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for buttcoind node under test""" import contextlib import decimal import errno from enum import ...
41.070175
166
0.625288
e0b77036d8ef3df9339b7bbfc8f9d8e4c1935c9f
8,678
py
Python
ramses/acl.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
178
2016-01-29T10:59:56.000Z
2021-09-17T18:28:24.000Z
ramses/acl.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
35
2015-03-31T19:52:23.000Z
2016-01-11T22:44:30.000Z
ramses/acl.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
24
2016-02-12T02:38:28.000Z
2020-06-20T23:35:38.000Z
import logging import six from pyramid.security import ( Allow, Deny, Everyone, Authenticated, ALL_PERMISSIONS) from nefertari.acl import CollectionACL from nefertari.resource import PERMISSIONS from nefertari.elasticsearch import ES from .utils import resolve_to_callable, is_callable_tag log = logging....
32.74717
76
0.633326
4649e40cb56d32f9e28eb780786d15626bf91552
214
py
Python
Mundo #01/ex-035- a010 -triangulos-a010.py
freitasSystemOutPrint/Python3
e5e88fbe8e7e0c5472573d2c901844270385194b
[ "MIT" ]
1
2020-06-02T07:31:16.000Z
2020-06-02T07:31:16.000Z
Mundo #01/ex-035- a010 -triangulos-a010.py
freitasSystemOutPrint/Python3
e5e88fbe8e7e0c5472573d2c901844270385194b
[ "MIT" ]
null
null
null
Mundo #01/ex-035- a010 -triangulos-a010.py
freitasSystemOutPrint/Python3
e5e88fbe8e7e0c5472573d2c901844270385194b
[ "MIT" ]
null
null
null
n1 = float(input('Comprimento 01: ')) n2 = float(input('Comprimento 02: ')) n3 = float(input('Comprimento 03: ')) if n1 == n2 and n2 == n3: print('fomrma triangulo ! ') else: print('Não forma triangulo !')
26.75
37
0.626168
4b1fbf9b180d4cf51e99c01f4927a5bab041ed82
11,784
py
Python
roro/cli.py
Sunda001/roro-client
2d265a830b7ed2f32e46f9a9687a545a333e254e
[ "Apache-2.0" ]
1
2018-06-27T13:23:17.000Z
2018-06-27T13:23:17.000Z
roro/cli.py
Sunda001/roro-client
2d265a830b7ed2f32e46f9a9687a545a333e254e
[ "Apache-2.0" ]
3
2017-09-18T10:49:00.000Z
2018-09-27T09:06:34.000Z
roro/cli.py
Sunda001/roro-client
2d265a830b7ed2f32e46f9a9687a545a333e254e
[ "Apache-2.0" ]
2
2018-06-27T13:22:19.000Z
2019-07-01T18:12:22.000Z
from __future__ import print_function import time import itertools import click import datetime import os import sys import logging from tabulate import tabulate from . import config from . import projects from . import helpers as h from .projects import Project from . import auth from .path import Path from . import ...
28.601942
132
0.639087
d1d3bc124e81144461f1456decb40d45cdd5d8fa
730
py
Python
tyrell/venv/lib/python3.8/site-packages/rpy2/tests/robjects/test_formula.py
YuehanLee/CS190I
c5e3dca9f3b936a15b254abfd0c245c470e8c27e
[ "Apache-2.0" ]
null
null
null
tyrell/venv/lib/python3.8/site-packages/rpy2/tests/robjects/test_formula.py
YuehanLee/CS190I
c5e3dca9f3b936a15b254abfd0c245c470e8c27e
[ "Apache-2.0" ]
null
null
null
tyrell/venv/lib/python3.8/site-packages/rpy2/tests/robjects/test_formula.py
YuehanLee/CS190I
c5e3dca9f3b936a15b254abfd0c245c470e8c27e
[ "Apache-2.0" ]
null
null
null
import pytest import rpy2.robjects as robjects rinterface = robjects.rinterface def test_init(): fml = robjects.Formula('y ~ x') assert fml.rclass[0] == 'formula' def test_getenvironment(): fml = robjects.Formula('y ~ x') env = fml.getenvironment() assert env.rclass[0] == 'environment' def tes...
23.548387
49
0.680822
b94164a7208d393ad14fd16f6eca9cbdb916ae52
11,663
py
Python
tests/test_auth.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
178
2016-01-29T10:59:56.000Z
2021-09-17T18:28:24.000Z
tests/test_auth.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
35
2015-03-31T19:52:23.000Z
2016-01-11T22:44:30.000Z
tests/test_auth.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
24
2016-02-12T02:38:28.000Z
2020-06-20T23:35:38.000Z
import pytest from mock import Mock, patch from nefertari.utils import dictset from pyramid.security import Allow, ALL_PERMISSIONS from .fixtures import engine_mock, guards_engine_mock @pytest.mark.usefixtures('engine_mock') class TestACLAssignRegisterMixin(object): def _dummy_view(self): from ramses im...
38.747508
81
0.638944
57d420262a2dc3ba0cf40199963753050c0a2240
7,449
py
Python
mkdocs/__main__.py
UnsolvedCypher/mkdocs
eb31d4c0d70259755b779bd6bf34609ac2adca7b
[ "BSD-2-Clause" ]
null
null
null
mkdocs/__main__.py
UnsolvedCypher/mkdocs
eb31d4c0d70259755b779bd6bf34609ac2adca7b
[ "BSD-2-Clause" ]
null
null
null
mkdocs/__main__.py
UnsolvedCypher/mkdocs
eb31d4c0d70259755b779bd6bf34609ac2adca7b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys import logging import click from mkdocs import __version__ from mkdocs import utils from mkdocs import exceptions from mkdocs import config from mkdocs.commands import build, gh_deploy, new, serve log = logging.getLogger(__name__) class State: ''' Maintain logging lev...
37.812183
118
0.680226
cd409dcba34ad80acf6e2beb47eccaf651c72a2f
6,079
py
Python
parseAndPopulate/integrity.py
richardzilincikPantheon/backend
d70d9aa3baa113f5c8fc05fba84ae8b18b857b0c
[ "Apache-2.0" ]
2
2020-08-19T16:44:48.000Z
2021-04-30T06:48:16.000Z
parseAndPopulate/integrity.py
richardzilincikPantheon/backend
d70d9aa3baa113f5c8fc05fba84ae8b18b857b0c
[ "Apache-2.0" ]
243
2018-08-21T09:12:57.000Z
2022-03-31T12:31:48.000Z
parseAndPopulate/integrity.py
richardzilincikPantheon/backend
d70d9aa3baa113f5c8fc05fba84ae8b18b857b0c
[ "Apache-2.0" ]
25
2018-08-21T08:45:43.000Z
2021-12-12T13:51:47.000Z
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright 2018 Cisco and its affiliates # # 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...
41.353741
120
0.627735
8624fa7f888ac33a70693b1e2bfa2ce3bae7b68f
898
py
Python
tflite-onnx/onnx_tflite/tflite/FloorModOptions.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
193
2017-12-20T16:46:20.000Z
2022-03-29T07:40:54.000Z
tinyengine/tflite/FloorModOptions.py
liuyy3364/mcunet
f53f9e20e8e912bdb111b4c32da75e71e9a59597
[ "Apache-2.0" ]
141
2017-12-21T08:00:20.000Z
2021-06-15T14:53:03.000Z
tinyengine/tflite/FloorModOptions.py
liuyy3364/mcunet
f53f9e20e8e912bdb111b4c32da75e71e9a59597
[ "Apache-2.0" ]
55
2017-12-22T18:40:13.000Z
2022-01-17T05:43:51.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class FloorModOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsFloorModOptions(cls, buf, offset): n = flatbuf...
30.965517
114
0.729399
1468b825470371880ac76e40ee39f899167bed28
4,942
py
Python
app/user/tests/test_user_api.py
BenoCharlo/recipe-app-api_2
071673c6080db43359973e7ce9612489408e50c6
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
BenoCharlo/recipe-app-api_2
071673c6080db43359973e7ce9612489408e50c6
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
BenoCharlo/recipe-app-api_2
071673c6080db43359973e7ce9612489408e50c6
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse("user:create") TOKEN_URL = reverse("user:token") ME_URL = reverse("user:me") def create_user(**params...
34.802817
86
0.648928
46201649b1d1aeb31ca6f9f60acb7ff390d766dc
1,150
py
Python
macgraph/regression_test.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
116
2018-07-11T13:19:56.000Z
2021-07-26T17:22:44.000Z
macgraph/regression_test.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
1
2019-02-11T02:25:02.000Z
2019-02-11T17:05:19.000Z
macgraph/regression_test.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
21
2018-10-11T23:03:22.000Z
2021-07-14T22:42:08.000Z
try: # import comet_ml in the top of your file from comet_ml import Experiment except: # It's ok if we didn't install it pass import yaml import tensorflow as tf from .args import get_args from .estimator import get_estimator from .input import gen_input_fn from .train import train # Make TF be quiet import o...
20.535714
100
0.697391
cb0eff88e9d676b495b5707f8d81edcd6ae3634f
1,275
py
Python
presentation/shapely_bool_ops.py
bendemott/Python-Shapely-Examples
feda19bb4bf32e6d387d717bcc95bfc39057696f
[ "MIT" ]
3
2017-11-21T14:51:16.000Z
2018-12-06T08:07:09.000Z
presentation/shapely_bool_ops.py
deep0072/Python-Shapely-Examples
feda19bb4bf32e6d387d717bcc95bfc39057696f
[ "MIT" ]
null
null
null
presentation/shapely_bool_ops.py
deep0072/Python-Shapely-Examples
feda19bb4bf32e6d387d717bcc95bfc39057696f
[ "MIT" ]
4
2016-09-20T06:00:34.000Z
2021-05-18T09:42:53.000Z
''' @author Ben DeMott @file shapely_bool_ops.py Shapely Boolean Operations are methods associated with a geometric object that return True/False ''' from shapely.geometry import * import sys point1 = Point((1, 1)) # See if another point is almost equal to our point... # The second argument determines variance in ...
25.5
141
0.773333
94cb5c9d203a4f91adab6e708aa656e2b0f95203
921
py
Python
bookmarks/bookmarks/account/models.py
EssaAlshammri/django-by-example
d1a1cba9308d4f19bbb1228dbd191ad5540b2c78
[ "MIT" ]
3
2017-04-25T10:19:02.000Z
2017-06-07T12:50:30.000Z
bookmarks/bookmarks/account/models.py
EssaAlshammri/django-by-example
d1a1cba9308d4f19bbb1228dbd191ad5540b2c78
[ "MIT" ]
null
null
null
bookmarks/bookmarks/account/models.py
EssaAlshammri/django-by-example
d1a1cba9308d4f19bbb1228dbd191ad5540b2c78
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import User from django.db import models class Profile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL) date_of_birth = models.DateField(blank=True, null=True) photo = models.ImageField(upload_to="users/%Y/%m/%d", blank=T...
31.758621
74
0.724213
f09e1a6ae51d48a3383e45dd244a717ebe97e6a9
99
py
Python
predict/admin.py
ehsangh7/Django-ML-Iris
c65930e5044aa83c3b3062dd512d7f6cff24b1b9
[ "Apache-2.0" ]
2
2021-03-24T00:22:13.000Z
2021-06-22T08:51:54.000Z
predict/admin.py
ehsangh7/Django-ML-Iris
c65930e5044aa83c3b3062dd512d7f6cff24b1b9
[ "Apache-2.0" ]
null
null
null
predict/admin.py
ehsangh7/Django-ML-Iris
c65930e5044aa83c3b3062dd512d7f6cff24b1b9
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import PredResults admin.site.register(PredResults)
19.8
32
0.838384
4b084ac5368f5c8fed8ae06c5d74cbec4d898694
4,592
py
Python
utils/utils.py
hoangnt2601/RAPiD
8e765ccec45e192305ca3d9d547967dbb4299cc3
[ "MIT" ]
null
null
null
utils/utils.py
hoangnt2601/RAPiD
8e765ccec45e192305ca3d9d547967dbb4299cc3
[ "MIT" ]
null
null
null
utils/utils.py
hoangnt2601/RAPiD
8e765ccec45e192305ca3d9d547967dbb4299cc3
[ "MIT" ]
null
null
null
from PIL import Image import random import torch from torchvision import transforms from utils.iou_mask import iou_mask, iou_rle def normalize_bbox(xywha, w, h, max_angle=1): ''' Normalize bounding boxes to 0~1 range Args: xywha: torch.tensor, bounding boxes, shape(...,5) w: image width ...
31.238095
83
0.601263
4a4a820d1a73ee65c3431f9f1dc42f592ada3644
13,635
py
Python
packages/snet_cli/snet_cli/mpe_service_command.py
vforvalerio87/snet-cli
9c3d028dd82fcc8a2f009527aa9925499646580a
[ "MIT" ]
null
null
null
packages/snet_cli/snet_cli/mpe_service_command.py
vforvalerio87/snet-cli
9c3d028dd82fcc8a2f009527aa9925499646580a
[ "MIT" ]
1
2019-06-04T15:56:03.000Z
2019-06-04T15:56:03.000Z
packages/snet_cli/snet_cli/mpe_service_command.py
vforvalerio87/snet-cli
9c3d028dd82fcc8a2f009527aa9925499646580a
[ "MIT" ]
null
null
null
import web3 import json import grpc from collections import defaultdict from grpc_health.v1 import health_pb2 as heartb_pb2 from grpc_health.v1 import health_pb2_grpc as heartb_pb2_grpc from snet_cli.commands import BlockchainCommand import snet.snet_cli.utils_ipfs as utils_ipfs from snet.snet_cli.utils_ipfs import ...
48.870968
139
0.678475
6df993e92822cb33a38c466fef30ad48163f32a7
825,508
py
Python
packages/python/plotly/plotly/graph_objs/_figurewidget.py
grootstebozewolf/plotly.py
06873b7c14754963cf700050759b2eadd2859979
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/_figurewidget.py
grootstebozewolf/plotly.py
06873b7c14754963cf700050759b2eadd2859979
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/_figurewidget.py
grootstebozewolf/plotly.py
06873b7c14754963cf700050759b2eadd2859979
[ "MIT" ]
null
null
null
from plotly.basewidget import BaseFigureWidget class FigureWidget(BaseFigureWidget): def __init__( self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs ): """ Create a new :class:FigureWidget instance Parameters ---------- data ...
42.451301
88
0.585288
fc14a2b34a7f19adcaa0e680ea67d1682268aa83
42
py
Python
benchmarking/awrams/benchmarking/meta/__init__.py
Zac-HD/awra_cms
ebc51df859ee665d936cf9600ea29dc8e45321d7
[ "NetCDF" ]
20
2016-12-01T03:13:50.000Z
2021-12-02T23:43:38.000Z
benchmarking/awrams/benchmarking/meta/__init__.py
Zac-HD/awra_cms
ebc51df859ee665d936cf9600ea29dc8e45321d7
[ "NetCDF" ]
2
2018-02-05T03:42:11.000Z
2018-04-27T05:49:44.000Z
benchmarking/awrams/benchmarking/meta/__init__.py
Zac-HD/awra_cms
ebc51df859ee665d936cf9600ea29dc8e45321d7
[ "NetCDF" ]
22
2016-12-13T19:57:43.000Z
2021-12-08T02:52:19.000Z
''' Metadata for observation datasets '''
10.5
33
0.714286
0845d480d8607dce1e9bfcd30b48ae255a461e2e
9,001
py
Python
inception_resnet_v2.py
kentsommer/keras-inception-resnetV2
14994dfca36ca09725998a1abf81ea2027dbcb76
[ "Apache-2.0" ]
19
2017-02-08T12:42:50.000Z
2022-03-25T12:37:07.000Z
inception_resnet_v2.py
kentsommer/keras-inception-resnetV2
14994dfca36ca09725998a1abf81ea2027dbcb76
[ "Apache-2.0" ]
5
2017-02-09T08:57:14.000Z
2020-02-28T08:57:41.000Z
inception_resnet_v2.py
kentsommer/keras-inception-resnetV2
14994dfca36ca09725998a1abf81ea2027dbcb76
[ "Apache-2.0" ]
9
2017-05-07T06:38:54.000Z
2020-02-18T14:08:30.000Z
''' Copyright 2017 TensorFlow Authors and Kent Sommer 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 t...
33.337037
142
0.661482
de72a22cb48afce070d22cea650269165b43482e
804
py
Python
examples/vtk/pyevtk_grid.py
lanahuong/dubrayn.github.io
fd78edb38442966395161cfcf9dfd9b464703ddd
[ "MIT" ]
7
2019-04-12T07:46:05.000Z
2022-03-30T06:11:47.000Z
examples/vtk/pyevtk_grid.py
lanahuong/dubrayn.github.io
fd78edb38442966395161cfcf9dfd9b464703ddd
[ "MIT" ]
3
2018-03-05T20:35:50.000Z
2022-03-28T13:09:44.000Z
examples/vtk/pyevtk_grid.py
lanahuong/dubrayn.github.io
fd78edb38442966395161cfcf9dfd9b464703ddd
[ "MIT" ]
10
2017-10-04T07:05:51.000Z
2020-12-15T12:08:32.000Z
#!/usr/bin/env python3 import numpy as np from pyevtk.hl import gridToVTK def mandelbrot_set(X, Y, maxiter, horizon = 2.0): C = X + Y[:, None] * 1j N = np.zeros(C.shape, dtype = int) Z = np.zeros(C.shape, np.complex64) for n in range(maxiter): if n % (maxiter / 10) == 0: print('progress: %d/%d' % (n...
25.935484
84
0.598259
30ddc9541098abb20a9d81382d10c525bbc2aa4e
2,170
py
Python
Test_Cases/Remover_Producto_Carrito_Compras.py
w2k31984/Swag_Labs_Automation_QA
fbed455dc1b3d4e5894a9e47b6d8e31e9689f11b
[ "MIT" ]
null
null
null
Test_Cases/Remover_Producto_Carrito_Compras.py
w2k31984/Swag_Labs_Automation_QA
fbed455dc1b3d4e5894a9e47b6d8e31e9689f11b
[ "MIT" ]
null
null
null
Test_Cases/Remover_Producto_Carrito_Compras.py
w2k31984/Swag_Labs_Automation_QA
fbed455dc1b3d4e5894a9e47b6d8e31e9689f11b
[ "MIT" ]
null
null
null
import time import HtmlTestRunner import unittest from selenium import webdriver class myTestRemoveProductToCart(unittest.TestCase): def testRemoverProductoCarrito(self): driver = webdriver.Chrome(executable_path=r'C:\\Users\\cristian_parada\\Desktop\\Automatizacion_Test_Cases_Ecommerce\\chromedriver.exe'...
41.730769
147
0.724885
ddf8121e218cbdf7a65c5ea3427b2ae8e7c30b82
1,005
py
Python
investment_dashboard/investment_dashboard/urls.py
mjenrungrot/investment-dashboard
89b296a635ee3c29171f7bf88cc8e49250981637
[ "MIT" ]
null
null
null
investment_dashboard/investment_dashboard/urls.py
mjenrungrot/investment-dashboard
89b296a635ee3c29171f7bf88cc8e49250981637
[ "MIT" ]
4
2017-12-19T08:39:10.000Z
2017-12-20T10:59:38.000Z
investment_dashboard/investment_dashboard/urls.py
mjenrungrot/investment-dashboard
89b296a635ee3c29171f7bf88cc8e49250981637
[ "MIT" ]
null
null
null
"""investment_dashboard URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name...
37.222222
78
0.690547
88ef526a46829c74495dd1265be36a3390aff55e
510
py
Python
cursoemvideo/exercicios/ex075.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/exercicios/ex075.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/exercicios/ex075.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
num = (int(input(f'Digite um número:')), \ int(input('Digite outro número: ')), int(input('Digite mais um número: ')), int(input('Digite outro número: '))) print(f'Você digitou os valores {num}') print(f'O valor 9 aparece {num.count(9)} vezes') if 3 in num: print(f'O valor 3 apareceu na {num.index...
34
61
0.615686
102236ba33a72fa35463093b6c39bfa7b50d559a
450
py
Python
data/scripts/templates/object/tangible/food/spice/shared_spice_giggledust.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/food/spice/shared_spice_giggledust.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/food/spice/shared_spice_giggledust.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/food/spice/shared_spice_giggledust.iff" result.attribute_template_i...
26.470588
75
0.728889
9fa4bd36b1b13aededb23ae2f12bcbe75967698d
1,213
py
Python
cosmosis-standard-library/boltzmann/class/class_v2.4.1/python/setup.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
3
2017-04-26T07:17:53.000Z
2020-01-31T02:41:06.000Z
21cmMG_hi_class/python/setup.py
evanjarena/21cmMG
6b5e43932b552d5b9cb352774d404a7cff2206f5
[ "BSD-4-Clause-UC" ]
null
null
null
21cmMG_hi_class/python/setup.py
evanjarena/21cmMG
6b5e43932b552d5b9cb352774d404a7cff2206f5
[ "BSD-4-Clause-UC" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy as nm import os import subprocess as sbp import os.path as osp # Recover the gcc compiler GCCPATH_STRING = sbp.Popen( ['gcc', '-print-libgcc-file-name'], stdout=sbp.PIPE).communicate(...
31.921053
76
0.587799
07178552a9fc1382367f8e6bca0ce618f846890d
4,801
py
Python
test/test_igraph.py
cpacker/graphzip
d10549dd8eb5c08777f2fd8309238ded9a65cb3f
[ "MIT" ]
13
2017-02-28T21:55:11.000Z
2022-01-01T20:43:38.000Z
test/test_igraph.py
cpacker/graphzip
d10549dd8eb5c08777f2fd8309238ded9a65cb3f
[ "MIT" ]
null
null
null
test/test_igraph.py
cpacker/graphzip
d10549dd8eb5c08777f2fd8309238ded9a65cb3f
[ "MIT" ]
3
2018-10-16T20:41:01.000Z
2021-12-28T08:58:44.000Z
import unittest from collections import defaultdict from igraph import Graph class TestiGraph(unittest.TestCase): """ Basic tests to make sure iGraph is working the way we expect for the purposes of compress.py """ def setUp(self): """ Simple example graph: 1010,A ----- ...
34.789855
77
0.556134
805120e9421d438ee5b62353f8f711c8faaa58a0
11,536
py
Python
SWAG/config/fail2ban/action.d/badips.py
krzwiatrzyk/blog
ff1bc28abb5474cf76fba495f0ab00fc6f993736
[ "MIT" ]
null
null
null
SWAG/config/fail2ban/action.d/badips.py
krzwiatrzyk/blog
ff1bc28abb5474cf76fba495f0ab00fc6f993736
[ "MIT" ]
null
null
null
SWAG/config/fail2ban/action.d/badips.py
krzwiatrzyk/blog
ff1bc28abb5474cf76fba495f0ab00fc6f993736
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*- # vi: set ft=python sts=4 ts=4 sw=4 noet : # This file is part of Fail2Ban. # # Fail2Ban is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation;...
29.428571
95
0.691141
1b66367bba7643712a2730343f60e1a71e82bfbe
1,496
py
Python
tests/fixtures.py
xdb64/dpaster
dbc6c4023de1a0fbe446fbc54b930f182bcc0c44
[ "MIT" ]
1
2019-01-16T19:36:17.000Z
2019-01-16T19:36:17.000Z
tests/fixtures.py
xdb64/dpaster
dbc6c4023de1a0fbe446fbc54b930f182bcc0c44
[ "MIT" ]
3
2019-01-16T16:58:43.000Z
2019-01-16T19:35:23.000Z
tests/fixtures.py
xdb64/dpaster
dbc6c4023de1a0fbe446fbc54b930f182bcc0c44
[ "MIT" ]
1
2020-12-30T12:43:18.000Z
2020-12-30T12:43:18.000Z
import json import textwrap import pytest from dpaster import ( cli, core, ) class FakeRequests: def post(self, *args, **kwargs): return FakeResponse() class FakeResponse: text = "http://dpaste.com/" def raise_for_status(self): pass class FakePyperclip: def copy(self, te...
18.024096
58
0.606283
6159017c148d831b016fbe03bceaac876d3d10c7
1,949
py
Python
tests/test_generator.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
197
2015-04-29T16:29:03.000Z
2022-03-28T01:14:55.000Z
tests/test_generator.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
305
2015-04-21T18:03:31.000Z
2022-03-10T22:21:45.000Z
tests/test_generator.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
84
2015-04-21T18:00:18.000Z
2022-03-28T13:31:06.000Z
# Copyright 2015 0xc0170 # # 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, soft...
32.483333
89
0.689584
483cd59288e0643869158427bfc7c54a59de249b
2,878
py
Python
aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/QueryRIUtilizationDetailRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/QueryRIUtilizationDetailRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/QueryRIUtilizationDetailRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# 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...
38.891892
84
0.761987
3753f001bacb54bdf617a687f430286e5b4f0068
79,842
py
Python
Evalutaion/Plot.py
ToyasDhake/Intelligent-job-scheduling-using-HTN-planning
67ab64b9ac7c9315ec63fac1238fbca1e306d1b3
[ "MIT" ]
null
null
null
Evalutaion/Plot.py
ToyasDhake/Intelligent-job-scheduling-using-HTN-planning
67ab64b9ac7c9315ec63fac1238fbca1e306d1b3
[ "MIT" ]
null
null
null
Evalutaion/Plot.py
ToyasDhake/Intelligent-job-scheduling-using-HTN-planning
67ab64b9ac7c9315ec63fac1238fbca1e306d1b3
[ "MIT" ]
1
2021-07-14T13:12:55.000Z
2021-07-14T13:12:55.000Z
distance = [0, 0, 6.541640786499874, 11.541640786499874, 11.541640786499874, 11.541640786499874, 11.541640786499874, 11.541640786499874, 11.541640786499874, 11.541640786499874, 11.541640786499874, 13.107326211449113, 14.107326211449113, 14.107326211449113, 15.390168923923731, 16.39016892392373, 16.39016892392373, 16.39...
1,228.338462
19,506
0.842702
bc0f6edd6bee87e7193ce2de511e7a0d7a76f97f
31,813
py
Python
package_control/providers/repository_provider.py
Shekharrajak/my_sublime_packages
4627b7faa47b0b03578c339fb5081be9d92867a6
[ "Unlicense", "MIT" ]
1
2018-06-23T08:07:39.000Z
2018-06-23T08:07:39.000Z
package_control/providers/repository_provider.py
Shekharrajak/my_sublime_packages
4627b7faa47b0b03578c339fb5081be9d92867a6
[ "Unlicense", "MIT" ]
null
null
null
package_control/providers/repository_provider.py
Shekharrajak/my_sublime_packages
4627b7faa47b0b03578c339fb5081be9d92867a6
[ "Unlicense", "MIT" ]
null
null
null
import json import re import os from itertools import chain try: # Python 3 from urllib.parse import urljoin, urlparse str_cls = str except (ImportError): # Python 2 from urlparse import urljoin, urlparse str_cls = unicode from ..console_write import console_write from .provider_exception impo...
40.785897
233
0.517933
cfc41cb88ff439bbcc7cbe3715dc377e004f769b
526
py
Python
pyqtlet/leaflet/layer/tile/tilelayer.py
samhattangady/pyqtlet
2242f63b0dce6dd6357aaa0c6fe23a991451bfdd
[ "BSD-2-Clause-FreeBSD" ]
30
2018-05-24T17:38:11.000Z
2021-11-02T19:34:03.000Z
pyqtlet/leaflet/layer/tile/tilelayer.py
samhattangady/pyqtlet
2242f63b0dce6dd6357aaa0c6fe23a991451bfdd
[ "BSD-2-Clause-FreeBSD" ]
27
2018-02-21T07:22:11.000Z
2021-10-12T06:24:18.000Z
pyqtlet/leaflet/layer/tile/tilelayer.py
samhattangady/pyqtlet
2242f63b0dce6dd6357aaa0c6fe23a991451bfdd
[ "BSD-2-Clause-FreeBSD" ]
9
2018-06-11T06:50:44.000Z
2021-05-17T15:26:26.000Z
from . import GridLayer class TileLayer(GridLayer): def __init__(self, urlTemplate, options=None): super().__init__() self.urlTemplate = urlTemplate self.options = options self._initJs() def _initJs(self): leafletJsObject = 'L.tileLayer("{urlTemplate}"'.format(u...
30.941176
92
0.640684
e8bc7e2e793de248bb5a7cebfd827ea4916c747e
4,345
py
Python
pybin/crawler.py
Sea-n/GPE-Helper
4e5d51f57ace01361ac852887ac4cc1aed880885
[ "MIT" ]
1
2021-12-08T14:47:00.000Z
2021-12-08T14:47:00.000Z
pybin/crawler.py
Sea-n/GPE-Helper
4e5d51f57ace01361ac852887ac4cc1aed880885
[ "MIT" ]
null
null
null
pybin/crawler.py
Sea-n/GPE-Helper
4e5d51f57ace01361ac852887ac4cc1aed880885
[ "MIT" ]
null
null
null
import requests import click import datetime import logging import json from bs4 import BeautifulSoup logging.basicConfig(level=logging.INFO, format='[*] %(asctime)s %(levelname)s: %(message)s', datefmt="%Y-%m-%d %H:%M:%S") # necessary cookie cookies = {} def parseCid(startY, endY, cookies): ...
33.423077
183
0.61542
98e5a82d6ff2a772163830a775e8748f40e77c06
9,515
py
Python
vis_imagine_static_voxels/lib/modules/try.py
mihirp1998/EmbLang
169b0468ccda554896973bcc226afb3e762a70e7
[ "Apache-2.0" ]
3
2020-07-12T02:15:27.000Z
2021-07-18T06:00:49.000Z
vis_imagine_static_voxels/lib/modules/try.py
mihirp1998/EmbLang
169b0468ccda554896973bcc226afb3e762a70e7
[ "Apache-2.0" ]
1
2021-07-18T06:00:10.000Z
2021-07-24T11:51:17.000Z
vis_imagine_static_voxels/lib/modules/try.py
mihirp1998/EmbLang
169b0468ccda554896973bcc226afb3e762a70e7
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import torch import cv2 import numpy as np import torch.nn.functional as F from tensorflow.keras import backend as K def _transform(X, affine_transformation, output_size): batch_size, num_channels = K.shape(X)[0], K.shape(X)[3] transformations = K.reshape(affine_transformation, shape=(...
30.993485
90
0.665581
e0b511c91bd0fea9ff68d21775cc555c4cf6d85e
2,035
py
Python
lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
""" Test std::vector functionality when it's contents are vectors. """ from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestVectorOfVectors(TestBase): mydir = TestBase.compute_mydir(__file__) @add_test_categories(["libc++"]) @skipIf...
37
80
0.49828
4dd21e673ac4eddcca1b65cdfb0162c64e50712b
2,103
py
Python
tests/test_rand_spatial_cropd.py
sudohainguyen/MONAI
89f8a39a1c0bc6f480522c443ee7813cea21df47
[ "Apache-2.0" ]
1
2020-07-09T08:03:22.000Z
2020-07-09T08:03:22.000Z
tests/test_rand_spatial_cropd.py
Scitator/MONAI
a42b563acf0c7504cee18ee84c8af2eff6e948a7
[ "Apache-2.0" ]
null
null
null
tests/test_rand_spatial_cropd.py
Scitator/MONAI
a42b563acf0c7504cee18ee84c8af2eff6e948a7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # 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, s...
36.894737
117
0.642416
e6c7b9406ea0df419870acae965f4090e97fd9b9
8,305
py
Python
SCODE-R/dpr/models/biencoder.py
rizwan09/REDCODER
e889b3d3f37573be8418c0ac536c2201e8f1be26
[ "MIT" ]
22
2021-11-15T06:00:13.000Z
2022-03-25T14:33:15.000Z
SCODE-R/dpr/models/biencoder.py
rizwan09/REDCODER
e889b3d3f37573be8418c0ac536c2201e8f1be26
[ "MIT" ]
2
2021-12-02T19:22:51.000Z
2022-02-19T10:50:58.000Z
SCODE-R/dpr/models/biencoder.py
rizwan09/REDCODER
e889b3d3f37573be8418c0ac536c2201e8f1be26
[ "MIT" ]
2
2021-10-07T15:27:25.000Z
2021-12-08T07:12:13.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """ BiEncoder component + loss function for 'all-in-batch' training """ import collections import l...
41.113861
119
0.629862
74949c8610d11ba09575d209de80dc8087d1df19
2,363
py
Python
src/start_rpc.py
sunoru/splatoon-privates
453508668ff630579cbc290b0c41b1d40346986e
[ "MIT" ]
1
2018-10-10T16:44:43.000Z
2018-10-10T16:44:43.000Z
src/start_rpc.py
sunoru/splatoon-privas
453508668ff630579cbc290b0c41b1d40346986e
[ "MIT" ]
null
null
null
src/start_rpc.py
sunoru/splatoon-privas
453508668ff630579cbc290b0c41b1d40346986e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import uuid import zerorpc from privas import Privas, PrivaError class PrivaRPC: priva_pool = {} @staticmethod def list_priva_types(): return { x: { 'names': Privas[x].Meta.names, 'args': [ ...
28.817073
85
0.561997
032d8936e1a2388be0616a26e6e148632f1aab3e
13,555
py
Python
client/protocols/backup.py
akshitdewan/ok-client
3c5eca17100eed808023a815654cfe1c95179080
[ "Apache-2.0" ]
30
2018-07-10T17:32:49.000Z
2022-01-03T16:50:56.000Z
client/protocols/backup.py
akshitdewan/ok-client
3c5eca17100eed808023a815654cfe1c95179080
[ "Apache-2.0" ]
62
2018-08-07T18:43:33.000Z
2022-02-17T20:53:03.000Z
client/protocols/backup.py
akshitdewan/ok-client
3c5eca17100eed808023a815654cfe1c95179080
[ "Apache-2.0" ]
26
2018-11-13T22:12:47.000Z
2022-03-20T00:42:26.000Z
from display_timedelta import display_timedelta from client import exceptions from client.protocols.common import models from client.utils import network import client import datetime import logging import time import os import sys from subprocess import Popen import pickle import requests from filelock import Timeou...
39.40407
125
0.58045
0a1f65209f38e0e206b547dfb7e3c7298ab0fcd9
2,643
py
Python
lib/surface/kuberun/core/brokers/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/kuberun/core/brokers/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/kuberun/core/brokers/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. 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 requir...
35.24
79
0.730988
f35a35d66810398b55dabca807796e55f8de2466
412
py
Python
custom/icds_reports/migrations/0131_update_views_For_thr_colums.py
tobiasmcnulty/commcare-hq
234aa1fba98a96de1b625bbd70b2066fc877eed1
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/migrations/0131_update_views_For_thr_colums.py
tobiasmcnulty/commcare-hq
234aa1fba98a96de1b625bbd70b2066fc877eed1
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/migrations/0131_update_views_For_thr_colums.py
tobiasmcnulty/commcare-hq
234aa1fba98a96de1b625bbd70b2066fc877eed1
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 1.11.16 on 2019-06-17 16:38 from corehq.sql_db.operations import RawSQLMigration from django.db import migrations from custom.icds_reports.const import SQL_TEMPLATES_ROOT migrator = RawSQLMigration((SQL_TEMPLATES_ROOT, 'database_views')) class Migration(migrations.Migration): dependencies...
24.235294
66
0.762136
4034b143bf33cc4452626bcc8963654c6c375013
1,561
py
Python
saleor/core/views.py
TysonRV/saleor
83d3ca5ae163fa853ab311d0ebcdbc22f4788166
[ "BSD-3-Clause" ]
3
2018-06-14T22:52:38.000Z
2019-01-24T03:48:46.000Z
saleor/core/views.py
TysonRV/saleor
83d3ca5ae163fa853ab311d0ebcdbc22f4788166
[ "BSD-3-Clause" ]
null
null
null
saleor/core/views.py
TysonRV/saleor
83d3ca5ae163fa853ab311d0ebcdbc22f4788166
[ "BSD-3-Clause" ]
1
2018-06-29T10:54:09.000Z
2018-06-29T10:54:09.000Z
import json from django.contrib import messages from django.template.response import TemplateResponse from django.utils.translation import pgettext_lazy from impersonate.views import impersonate as orig_impersonate from ..account.models import User from ..dashboard.views import staff_member_required from ..product.ut...
31.22
72
0.737348
ebb9b69a1b72df29cb903ced948371d39043927b
3,098
py
Python
src/toil/test/src/resumabilityTest.py
cmarkello/toil
756c45c773c5bd95d48d5d2fd7986d467781f09b
[ "Apache-2.0" ]
null
null
null
src/toil/test/src/resumabilityTest.py
cmarkello/toil
756c45c773c5bd95d48d5d2fd7986d467781f09b
[ "Apache-2.0" ]
null
null
null
src/toil/test/src/resumabilityTest.py
cmarkello/toil
756c45c773c5bd95d48d5d2fd7986d467781f09b
[ "Apache-2.0" ]
1
2021-03-24T16:56:54.000Z
2021-03-24T16:56:54.000Z
# Copyright (C) 2016 UCSC Computational Genomics Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.023256
105
0.685604
f6bbd1ebb8c1d356dc2db313e29814c94b219452
3,596
py
Python
tests/test_observable/test_skipuntilwithtime.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
tests/test_observable/test_skipuntilwithtime.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
tests/test_observable/test_skipuntilwithtime.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
import unittest from datetime import datetime from rx import operators as ops from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = R...
32.690909
101
0.622636
7a9d7911006b7e70767df60850f59f2a893d044b
1,394
py
Python
python/fingerprint_similarity.py
carpenterlab/puma_project
70e82c23f6cfec866298df31f54fe1ea2884ee9c
[ "MIT" ]
null
null
null
python/fingerprint_similarity.py
carpenterlab/puma_project
70e82c23f6cfec866298df31f54fe1ea2884ee9c
[ "MIT" ]
null
null
null
python/fingerprint_similarity.py
carpenterlab/puma_project
70e82c23f6cfec866298df31f54fe1ea2884ee9c
[ "MIT" ]
null
null
null
import csv import numpy as np from tqdm import tqdm from rdkit import Chem from rdkit import DataStructs from chemprop.data.utils import get_data_from_smiles from chemprop.features.features_generators import morgan_binary_features_generator ### Paths to assay matrices here assay_train_file = 'assay_matrix_discrete_tra...
27.333333
82
0.716643
5ece1a9285303397842f3fb3d58824f71e90b4d5
2,753
py
Python
qutip/tests/test_simdiag.py
camponogaraviera/qutip
1b1f6dffcb3ab97f11b8c6114293e09f378d2e8f
[ "BSD-3-Clause" ]
1,205
2015-01-02T16:23:42.000Z
2022-03-31T03:21:21.000Z
qutip/tests/test_simdiag.py
camponogaraviera/qutip
1b1f6dffcb3ab97f11b8c6114293e09f378d2e8f
[ "BSD-3-Clause" ]
1,361
2015-01-09T23:38:25.000Z
2022-03-31T12:26:07.000Z
qutip/tests/test_simdiag.py
camponogaraviera/qutip
1b1f6dffcb3ab97f11b8c6114293e09f378d2e8f
[ "BSD-3-Clause" ]
569
2015-01-19T06:15:33.000Z
2022-03-28T20:43:39.000Z
import pytest import numpy as np import qutip @pytest.mark.parametrize('num_mat', [1, 2, 3, 5]) def test_simdiag(num_mat): N = 10 U = qutip.rand_unitary(N) commuting_matrices = [U * qutip.qdiags(np.random.rand(N), 0) * U.dag() for _ in range(num_mat)] all_evals, evecs = quti...
31.284091
79
0.585543
87a372e6201aadfb2e714df7aec38183b76d3eee
683
py
Python
app/core/migrations/0002_tag.py
shadow-smoke/recipe-app-api
b5a75be5eb2a541accc39772a23d542fac1d5a69
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
shadow-smoke/recipe-app-api
b5a75be5eb2a541accc39772a23d542fac1d5a69
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
shadow-smoke/recipe-app-api
b5a75be5eb2a541accc39772a23d542fac1d5a69
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-10-14 12:24 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.458333
118
0.616398
2738c885c0a57b46632234e1af1522c4ee3a58f8
13,686
py
Python
astropy/coordinates/builtin_frames/icrs_cirs_transforms.py
CosmicTiger/astropy
88b6bd4879e81ccd55be4f2a3c20e78624c7d208
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/builtin_frames/icrs_cirs_transforms.py
CosmicTiger/astropy
88b6bd4879e81ccd55be4f2a3c20e78624c7d208
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/builtin_frames/icrs_cirs_transforms.py
CosmicTiger/astropy
88b6bd4879e81ccd55be4f2a3c20e78624c7d208
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Contains the transformation functions for getting from ICRS/HCRS to CIRS and anything in between (currently that means GCRS) """ import numpy as np from astropy import units as u from astropy.coordinates.baseframe import frame...
47.030928
99
0.662429
f339bd738cb9849a096a0e2e1b3bc03215e0a050
2,701
py
Python
qcodes/instrument_drivers/QuTech/M2j.py
GateBuilder/Qcodes
b3729f188847f9a7db77f23f8c1b3a2a635a2ac2
[ "MIT" ]
2
2019-04-09T09:39:22.000Z
2019-10-24T19:07:19.000Z
qcodes/instrument_drivers/QuTech/M2j.py
GateBuilder/Qcodes
b3729f188847f9a7db77f23f8c1b3a2a635a2ac2
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/QuTech/M2j.py
GateBuilder/Qcodes
b3729f188847f9a7db77f23f8c1b3a2a635a2ac2
[ "MIT" ]
1
2019-11-19T12:32:29.000Z
2019-11-19T12:32:29.000Z
from qcodes.instrument.base import Instrument from qcodes.utils.validators import Numbers import numpy as np try: from spirack import M2j_module, SPI_rack except ImportError: raise ImportError(('The M2j_module class could not be found. ' 'Try installing it using pip install spirack')) ...
36.5
79
0.562384
8f6bd8a24dd226f7988cea53a10102062aaf9c87
8,174
py
Python
funciones.py
JCGALVIS/ProyectoProgramacionCorte120191
4edfb2a5b250a9cadf87607232b869a60d4edc20
[ "MIT" ]
null
null
null
funciones.py
JCGALVIS/ProyectoProgramacionCorte120191
4edfb2a5b250a9cadf87607232b869a60d4edc20
[ "MIT" ]
null
null
null
funciones.py
JCGALVIS/ProyectoProgramacionCorte120191
4edfb2a5b250a9cadf87607232b869a60d4edc20
[ "MIT" ]
null
null
null
def calcular_precio_producto(coste_producto): """ num -> num se ingresa un numero y se obtiene el precio del producto sumandole el 50% al coste :param coste_producto: valor numerico del coste :return: precio del producto >>> calcular_precio_producto(1000) 1500.0 >>> calcular_precio_...
31.929688
184
0.692195
224f3e53f583aa38159fe24af0c26287c1430e1c
4,798
py
Python
tests/fast_tests/test_traffic_light_grid.py
SHITIANYU-hue/flow
6fb5697868517fea7098a81b78c1be8e925f09f7
[ "MIT" ]
805
2018-08-16T22:30:51.000Z
2022-03-31T09:25:50.000Z
tests/fast_tests/test_traffic_light_grid.py
SHITIANYU-hue/flow
6fb5697868517fea7098a81b78c1be8e925f09f7
[ "MIT" ]
879
2018-08-22T17:37:06.000Z
2022-03-29T01:06:11.000Z
tests/fast_tests/test_traffic_light_grid.py
SHITIANYU-hue/flow
6fb5697868517fea7098a81b78c1be8e925f09f7
[ "MIT" ]
325
2018-08-22T06:48:00.000Z
2022-03-21T15:09:04.000Z
import unittest from flow.core.experiment import Experiment from tests.setup_scripts import traffic_light_grid_mxn_exp_setup class Test1x1Environment(unittest.TestCase): def setUp(self): # create the environment and network classes for a traffic light grid network self.env, _, flow_params = tra...
34.028369
89
0.610463
7a40cc802a3cd7440afc689538a3120307c2b308
4,770
py
Python
Dataset/ToyExample/Control/UVS/uvs.py
atlas-jj/state-representation-robotics
04e381d534d9544101addcf502426fcb8f253643
[ "MIT-0" ]
2
2020-03-13T22:25:26.000Z
2021-12-29T12:42:52.000Z
Dataset/ToyExample/Control/UVS/uvs.py
atlas-jj/state-representation-robotics
04e381d534d9544101addcf502426fcb8f253643
[ "MIT-0" ]
null
null
null
Dataset/ToyExample/Control/UVS/uvs.py
atlas-jj/state-representation-robotics
04e381d534d9544101addcf502426fcb8f253643
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provides training and testing module for Bayesian Inference used in visual imitation learning. ============================================================================= * paper: Robot Visual Imitation Learning using Variational Bayesian Inference * Author: Jun Jin (j...
40.769231
132
0.639832
338bb693099b86d452f675b3b919c130de2231c4
3,215
py
Python
yatube/yatube/settings.py
schactye/yatube_project
2079644fd183d925cbbac99815a78d69cdb65a19
[ "BSD-3-Clause" ]
1
2021-12-09T14:39:34.000Z
2021-12-09T14:39:34.000Z
yatube/yatube/settings.py
schactye/yatube_project
2079644fd183d925cbbac99815a78d69cdb65a19
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/settings.py
schactye/yatube_project
2079644fd183d925cbbac99815a78d69cdb65a19
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for yatube project. Generated by 'django-admin startproject' using Django 2.2.19. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
25.72
91
0.696423
18233d29b8d797b1ab138c8b7f6972fb4d3fd56b
4,952
py
Python
tests/styles/parser/document_matcher_parser_tests.py
heekentertainment/python-mammoth
e8f71fc40b74e613c1737bf499076a0fc750283a
[ "BSD-2-Clause" ]
557
2015-01-19T20:06:31.000Z
2022-03-27T16:13:42.000Z
tests/styles/parser/document_matcher_parser_tests.py
heekentertainment/python-mammoth
e8f71fc40b74e613c1737bf499076a0fc750283a
[ "BSD-2-Clause" ]
111
2015-03-27T13:57:05.000Z
2022-03-09T21:06:51.000Z
tests/styles/parser/document_matcher_parser_tests.py
heekentertainment/python-mammoth
e8f71fc40b74e613c1737bf499076a0fc750283a
[ "BSD-2-Clause" ]
111
2015-03-26T11:47:23.000Z
2022-03-26T17:12:50.000Z
from nose.tools import istest, assert_equal from mammoth import documents, document_matchers from mammoth.styles.parser.document_matcher_parser import parse_document_matcher from mammoth.styles.parser.errors import LineParseError from mammoth.styles.parser.tokeniser import tokenise from mammoth.styles.parser.token_ite...
24.27451
103
0.723142
c9fc7d773dfee37537a1c51fba03da0e73c47324
6,144
py
Python
utils/models.py
OmidSaj/HyDRA
de7c3fefd90fb965b47f3db75ed9c9349f4e54c8
[ "MIT" ]
2
2022-03-01T09:00:09.000Z
2022-03-01T09:00:23.000Z
utils/models.py
OmidSaj/HyDRA
de7c3fefd90fb965b47f3db75ed9c9349f4e54c8
[ "MIT" ]
null
null
null
utils/models.py
OmidSaj/HyDRA
de7c3fefd90fb965b47f3db75ed9c9349f4e54c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 19 13:26:47 2022 @author: Seyed Omid Sajedi """ from tensorflow.keras.regularizers import L1L2 from tensorflow.keras.layers import Input, Dense from tensorflow.keras.layers import concatenate as concat from tensorflow.keras.models import Model from tensorflow.keras.layer...
42.666667
109
0.585124
e1004ac953162ef3b2f72ded543e6683993ea206
756
py
Python
RecipeRecordingApp/urls.py
cs-fullstack-2019-spring/django-mini-project5-tdude0175
ebee9588a957e7bb44e3dfbe6877062c2a3f1402
[ "Apache-2.0" ]
null
null
null
RecipeRecordingApp/urls.py
cs-fullstack-2019-spring/django-mini-project5-tdude0175
ebee9588a957e7bb44e3dfbe6877062c2a3f1402
[ "Apache-2.0" ]
null
null
null
RecipeRecordingApp/urls.py
cs-fullstack-2019-spring/django-mini-project5-tdude0175
ebee9588a957e7bb44e3dfbe6877062c2a3f1402
[ "Apache-2.0" ]
null
null
null
from django.urls import path , include from . import views urlpatterns = \ [ # added all paths edir and recipe details want to go to specific pages # so they need id numbers for specific recipes path('',views.index, name='index'), path('NewUser/',views.NewUser , name='NewUser'), ...
44.470588
89
0.652116
48262c5e1de281cfb09feaf38ece035d6a17d11c
1,972
py
Python
Python/countStuff.py
kbroman/Paper_Rqtl_Experiences
9414b3826b242ce2f4f0306333cd108dcfd4680d
[ "CC-BY-3.0" ]
1
2021-11-06T05:34:34.000Z
2021-11-06T05:34:34.000Z
Python/countStuff.py
kbroman/Paper_Rqtl_Experiences
9414b3826b242ce2f4f0306333cd108dcfd4680d
[ "CC-BY-3.0" ]
null
null
null
Python/countStuff.py
kbroman/Paper_Rqtl_Experiences
9414b3826b242ce2f4f0306333cd108dcfd4680d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # count stuff: # x- no. software releases # x- currently: no. lines C, R and doc code # x- amount of R vs C, rounded to tens # - scantwo R function: no. lines, as proportion of R code # - C code no. lines, as proportion of C code # and "more than x%" import re lines_file = "Data/lines_code_...
27.013699
103
0.682049
244fd00430f170d78197da778ea3d298b2f9aaba
254
py
Python
advent_of_code_ocr/__version__.py
bsoyka/advent-of-code-ocr
b5a86d8284a58b76bf1c85fcdd8b38531c01cc08
[ "MIT" ]
4
2020-12-13T17:40:32.000Z
2021-12-13T13:26:19.000Z
advent_of_code_ocr/__version__.py
bsoyka/advent-of-code-ocr
b5a86d8284a58b76bf1c85fcdd8b38531c01cc08
[ "MIT" ]
11
2020-12-13T17:47:36.000Z
2022-01-30T03:51:59.000Z
advent_of_code_ocr/__version__.py
bsoyka/advent-of-code-ocr
b5a86d8284a58b76bf1c85fcdd8b38531c01cc08
[ "MIT" ]
3
2021-12-13T05:38:52.000Z
2021-12-13T12:23:38.000Z
__title__ = "advent-of-code-ocr" __description__ = "Convert Advent of Code ASCII art" __version__ = "0.2.0" __author__ = "Ben Soyka" __author_email__ = "bensoyka@icloud.com" __license__ = "MIT" __copyright__ = "Copyright (c) 2020-present Benjamin Soyka"
31.75
59
0.755906
669f40f26c1a535a3ca21a01faa11fd0eb1c814f
412
py
Python
algorithm/challenges/insertionsort.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
null
null
null
algorithm/challenges/insertionsort.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
null
null
null
algorithm/challenges/insertionsort.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
1
2020-01-30T06:47:09.000Z
2020-01-30T06:47:09.000Z
def arrprint(arr): for i in arr: print(i, end=' ') print() def InsertionSort(arr, e): for i in range(len(arr)-2,-1,-1): if arr[i] > e: arr[i+1] = arr[i] arrprint(arr) elif arr[i] < e: arr[i+1] = e arrprint(arr) break if e not in arr: arr[0] = e arrprint(arr) size = int(inp...
19.619048
51
0.548544
19d94ca91b70b7ad3ef51d8f505b7d1beb7b7039
5,860
py
Python
test/functional/p2p_fingerprint.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various fingerprinting protections. If a stale block more than a month old or its header are requ...
38.552632
79
0.689249
6c9a4a78d51844e20a2dde506761ac16178962a6
11,864
py
Python
geomstats/geometry/positive_lower_triangular_matrices.py
chicken-biryani/geomstats
414b6832c63df60788eda934c694d68fc939708f
[ "MIT" ]
null
null
null
geomstats/geometry/positive_lower_triangular_matrices.py
chicken-biryani/geomstats
414b6832c63df60788eda934c694d68fc939708f
[ "MIT" ]
null
null
null
geomstats/geometry/positive_lower_triangular_matrices.py
chicken-biryani/geomstats
414b6832c63df60788eda934c694d68fc939708f
[ "MIT" ]
null
null
null
"""The manifold of lower triangular matrices with positive diagonal elements. Lead author: Saiteja Utpala. """ import geomstats.backend as gs from geomstats.geometry.base import OpenSet from geomstats.geometry.lower_triangular_matrices import LowerTriangularMatrices from geomstats.geometry.matrices import Matrices fr...
33.139665
88
0.600556
a22dffa1a75cccbcf07c24fcf5ae00e66e64a9fd
3,604
py
Python
ivory/utils/range.py
daizutabi/ivory
d961e6c05ece112d99b8f8c2d6dad530f60b7303
[ "MIT" ]
1
2019-05-16T10:38:53.000Z
2019-05-16T10:38:53.000Z
ivory/utils/range.py
daizutabi/ivory
d961e6c05ece112d99b8f8c2d6dad530f60b7303
[ "MIT" ]
null
null
null
ivory/utils/range.py
daizutabi/ivory
d961e6c05ece112d99b8f8c2d6dad530f60b7303
[ "MIT" ]
null
null
null
import ast import re import numpy as np class Range: def __init__(self, start, stop=None, step=1, num: int = 0, log: bool = False): if isinstance(start, str): start, stop, step, num, log = parse(start) elif stop is None: start, stop = 0, start self.start = start ...
29.785124
86
0.498058
d531223163e1754d1caf2a781a0cad6d80c3ba96
1,286
py
Python
gentelella/app/auth/utils.py
Dhvani35729/Trofi-Dashboard
a49b4cbac964e60ea3124e4808ba88ef7256a8fe
[ "MIT" ]
null
null
null
gentelella/app/auth/utils.py
Dhvani35729/Trofi-Dashboard
a49b4cbac964e60ea3124e4808ba88ef7256a8fe
[ "MIT" ]
null
null
null
gentelella/app/auth/utils.py
Dhvani35729/Trofi-Dashboard
a49b4cbac964e60ea3124e4808ba88ef7256a8fe
[ "MIT" ]
null
null
null
from ..config import authe, db def forgot_password(email): authe.send_password_reset_email(email) # check if user is logged in def logged_in(request): try: return request.session['uid'] except KeyError: return None def get_res_public_id(uid): map_ref = db.collection(u'general').doc...
24.730769
72
0.650078
1e8238171712b4886efff86eb753d4cc2c788f8f
1,114
py
Python
python/proxy2.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
python/proxy2.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
python/proxy2.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Create a SSH connection import paramiko import os import pprint pp = pprint.PrettyPrinter(indent=4) ssh = paramiko.SSHClient() ssh._policy = paramiko.WarningPolicy() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh_config = paramiko.SSHConfig() user_config_file = os.path.expand...
24.217391
67
0.728905
774de5e49a408e88a335706a1084002148f2bf44
863
py
Python
app/config_dev.py
xtianmcd/coca_coda_app
66c24f95340df80df7fb9c0393ad486cb22c7dd8
[ "MIT" ]
null
null
null
app/config_dev.py
xtianmcd/coca_coda_app
66c24f95340df80df7fb9c0393ad486cb22c7dd8
[ "MIT" ]
null
null
null
app/config_dev.py
xtianmcd/coca_coda_app
66c24f95340df80df7fb9c0393ad486cb22c7dd8
[ "MIT" ]
null
null
null
import logging from app.config_common import * # DEBUG can only be set to True in a development environment for security reasons DEBUG = True # Secret key for generating tokens SECRET_KEY = 'houdini' # Admin credentials ADMIN_CREDENTIALS = ('admin', 'pa$$word') # Database choice SQLALCHEMY_DATABASE_URI = 'sqlite:...
23.324324
81
0.780997
5d63cdf3c132b705c839d94469457f2d11d325ab
2,147
py
Python
quora_parser/filter_question_links.py
ilkoretskiy/Parsers
46528f88b3784c9cc26b05b8b8ae9ac7d974de45
[ "MIT" ]
null
null
null
quora_parser/filter_question_links.py
ilkoretskiy/Parsers
46528f88b3784c9cc26b05b8b8ae9ac7d974de45
[ "MIT" ]
null
null
null
quora_parser/filter_question_links.py
ilkoretskiy/Parsers
46528f88b3784c9cc26b05b8b8ae9ac7d974de45
[ "MIT" ]
null
null
null
import os import json import logging import shutil from quoraparser.utils import create_logger logger = logging.getLogger("parser") def exist_questions(): path = "/Users/jesterilianight/Documents/sources/projects/quora_parser/result_processed" files = [] for item in os.listdir(path): if "json" i...
30.671429
92
0.630647
81f193605569023827614b4ff30ba9973931d5b4
1,145
py
Python
deploy/streetwise-prod/versions/8ce4e9d93356_.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
1
2020-05-28T06:50:01.000Z
2020-05-28T06:50:01.000Z
deploy/streetwise-prod/versions/8ce4e9d93356_.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
72
2020-05-01T11:11:17.000Z
2022-02-14T09:01:50.000Z
deploy/streetwise-prod/versions/8ce4e9d93356_.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
3
2020-05-06T20:35:32.000Z
2020-05-07T15:00:51.000Z
"""empty message Revision ID: 8ce4e9d93356 Revises: ae4855a2d99d Create Date: 2020-05-08 16:01:11.797745 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8ce4e9d93356' down_revision = 'ae4855a2d99d' branch_labels = None depends_on = None def upgrade(): # ...
28.625
74
0.670742
893fc5419f99e4e2c0a995b951b734f3c1786ac8
10,429
py
Python
venv/Lib/site-packages/matplotlib/tests/test_category.py
AdarshSai/Final_project
f966834ca72dd232102ed500ef47ef2b3bdbed5b
[ "MIT" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
venv/Lib/site-packages/matplotlib/tests/test_category.py
AdarshSai/Final_project
f966834ca72dd232102ed500ef47ef2b3bdbed5b
[ "MIT" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
venv/Lib/site-packages/matplotlib/tests/test_category.py
AdarshSai/Final_project
f966834ca72dd232102ed500ef47ef2b3bdbed5b
[ "MIT" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
"""Catch all for categorical functions""" import pytest import numpy as np from matplotlib.axes import Axes import matplotlib.pyplot as plt import matplotlib.category as cat class TestUnitData: test_cases = [('single', (["hello world"], [0])), ('unicode', (["Здравствуйте мир"], [0]))...
37.379928
79
0.561415
902ceb279788bd1470bd2b1497a98986fb456e28
1,371
py
Python
src/breakpad/src/tools/gyp/test/generator-output/gyptest-top-all.py
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
46
2015-01-08T14:32:34.000Z
2022-02-05T16:48:26.000Z
src/breakpad/src/tools/gyp/test/generator-output/gyptest-top-all.py
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
7
2015-01-20T14:28:12.000Z
2017-01-18T17:21:44.000Z
src/breakpad/src/tools/gyp/test/generator-output/gyptest-top-all.py
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
22
2015-01-04T10:37:36.000Z
2021-08-16T11:46:32.000Z
#!/usr/bin/env python # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies building a project hierarchy created when the --generator-output= option is used to put the build configuration files in a sepa...
25.388889
74
0.706054
00da75b3daaf23e61b4c1810808c405d9dfc9826
1,743
py
Python
app/app.py
joelkyu/SantaComingToTown
c93bca9158459243205b26cb36f1b19346eeb058
[ "MIT" ]
null
null
null
app/app.py
joelkyu/SantaComingToTown
c93bca9158459243205b26cb36f1b19346eeb058
[ "MIT" ]
3
2019-09-09T14:55:12.000Z
2019-09-10T14:51:52.000Z
app/app.py
joelkyu/SantaComingToTowne
c93bca9158459243205b26cb36f1b19346eeb058
[ "MIT" ]
null
null
null
import os os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "auth.json" from flask import Flask, render_template, request, url_for, jsonify from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS from config import app from models import db, Person, Characteristic @app.route('/') def index(): db.cre...
28.112903
89
0.685026
2209b35923b076d29d354f6c10fe5b3f67bfbb3f
1,490
py
Python
modules/retrieval/text_classification/libs/transforms/crop.py
martinhoang11/vietnamese-ocr-toolbox
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
[ "Apache-2.0" ]
14
2021-09-05T10:42:14.000Z
2022-03-10T16:27:26.000Z
modules/retrieval/text_classification/libs/transforms/crop.py
martinhoang11/vietnamese-ocr-toolbox
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
[ "Apache-2.0" ]
1
2021-06-16T11:35:24.000Z
2021-06-16T11:35:24.000Z
modules/retrieval/text_classification/libs/transforms/crop.py
martinhoang11/vietnamese-ocr-toolbox
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
[ "Apache-2.0" ]
5
2021-09-05T13:26:51.000Z
2022-03-09T07:49:45.000Z
import torch import torchvision.transforms as tvtf class RandomCrop: def __init__(self, crop_size): assert isinstance(crop_size, (int, float, list, tuple)), \ f'Invalid type, expect (int, float, list, tuple), get {type(crop_size)}' if isinstance(crop_size, int): crop_size =...
31.041667
84
0.552349
6faa4e962d3b10212ce2c9c6e08a00c2181f00c9
3,531
py
Python
users/migrations/0005_auto__add_field_questruserprofile_rating.py
donvvo/questr-master
6363ffb4c11ef61f3b6976e75c86a5cbc7f38590
[ "MIT" ]
null
null
null
users/migrations/0005_auto__add_field_questruserprofile_rating.py
donvvo/questr-master
6363ffb4c11ef61f3b6976e75c86a5cbc7f38590
[ "MIT" ]
null
null
null
users/migrations/0005_auto__add_field_questruserprofile_rating.py
donvvo/questr-master
6363ffb4c11ef61f3b6976e75c86a5cbc7f38590
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'QuestrUserProfile.rating' db.add_column(u'users_questruse...
59.847458
129
0.582271
2b04b739ea1ba78ccd8c7732776351a202a94f0c
2,881
py
Python
workon/contrib/user/admin.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/user/admin.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/user/admin.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime import operator from django.contrib import admin from django.db import models from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.functional import curry from django.conf import settings from django.contrib import admin from django.contrib.admin.model...
26.431193
82
0.582784
de687d4995414a28660ef2a8364312228e93b43d
2,481
py
Python
examples/classic_controllers/classic_controllers_synch_motor_example.py
RaviPandey33/gym-electric-motor-1
999e18dceed709decf43d646fb29dc7602b9a89c
[ "MIT" ]
null
null
null
examples/classic_controllers/classic_controllers_synch_motor_example.py
RaviPandey33/gym-electric-motor-1
999e18dceed709decf43d646fb29dc7602b9a89c
[ "MIT" ]
null
null
null
examples/classic_controllers/classic_controllers_synch_motor_example.py
RaviPandey33/gym-electric-motor-1
999e18dceed709decf43d646fb29dc7602b9a89c
[ "MIT" ]
null
null
null
from classic_controllers import Controller from externally_referenced_state_plot import ExternallyReferencedStatePlot import gym_electric_motor as gem from gym_electric_motor.visualization import MotorDashboard if __name__ == '__main__': """ motor type: 'PMSM' Permanent Magnet Synchronous Motor ...
38.169231
128
0.627973
3a0db597bdce015ad08c701e80d8088bf8a4885d
5,184
py
Python
runtime/client_runtime.py
epfl-dcsl/persona-orig
d94a8b60f07622bb61736127ff328329c7b131a9
[ "Apache-2.0" ]
null
null
null
runtime/client_runtime.py
epfl-dcsl/persona-orig
d94a8b60f07622bb61736127ff328329c7b131a9
[ "Apache-2.0" ]
null
null
null
runtime/client_runtime.py
epfl-dcsl/persona-orig
d94a8b60f07622bb61736127ff328329c7b131a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 École Polytechnique Fédérale de Lausanne. 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 r...
45.078261
202
0.677469
c3fd33aabb86da5679ac646aa35f0f10b81fefcc
1,938
py
Python
tests/test_utils.py
oubiga/respect
550554ec4d3139379d03cb8f82a8cd2d80c3ad62
[ "BSD-3-Clause" ]
1
2017-06-25T19:09:05.000Z
2017-06-25T19:09:05.000Z
tests/test_utils.py
oubiga/respect
550554ec4d3139379d03cb8f82a8cd2d80c3ad62
[ "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
oubiga/respect
550554ec4d3139379d03cb8f82a8cd2d80c3ad62
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_utils ---------- Tests for `respect.utils` module. """ import sys import types import requests from respect import utils if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest class TestEmptyQualifiers(unittest.TestCase)...
26.916667
89
0.707946
dd505cdff2e34053a80d71da356afc6360cb953b
346
py
Python
plugin/rasa_test.py
mayflower/err-rasa
a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e
[ "Apache-2.0" ]
1
2018-08-04T17:32:49.000Z
2018-08-04T17:32:49.000Z
plugin/rasa_test.py
mayflower/err-rasa
a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e
[ "Apache-2.0" ]
4
2019-12-26T16:41:50.000Z
2020-03-24T15:43:45.000Z
plugin/rasa_test.py
mayflower/err-rasa
a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e
[ "Apache-2.0" ]
2
2019-05-17T20:15:01.000Z
2019-08-08T03:08:25.000Z
import os import unittest from plugin.rasa import Rasa from errbot.backends.test import testbot from errbot.plugin_manager import PluginManager class TestRasa(object): extra_plugin_dir = '../plugin' def test_message_callback(self, testbot): testbot.push_message('test it') assert 'Test Result'...
24.714286
53
0.754335
46b08ee69c3134b10e787afad7ee5f2e76eeda9f
17,834
py
Python
homeassistant/components/http/__init__.py
robaston9/core
c76d2c4283234f6b434bea8348d1cc8cd17ab4b3
[ "Apache-2.0" ]
null
null
null
homeassistant/components/http/__init__.py
robaston9/core
c76d2c4283234f6b434bea8348d1cc8cd17ab4b3
[ "Apache-2.0" ]
null
null
null
homeassistant/components/http/__init__.py
robaston9/core
c76d2c4283234f6b434bea8348d1cc8cd17ab4b3
[ "Apache-2.0" ]
null
null
null
"""Support to serve the Home Assistant API as WSGI application.""" from __future__ import annotations import datetime from ipaddress import IPv4Network, IPv6Network, ip_network import logging import os import ssl from tempfile import NamedTemporaryFile from typing import Any, Final, Optional, TypedDict, Union, cast f...
36.247967
160
0.654761
9aa2e02bf599836b622b80fde0386b3dfcaacfe5
16,172
py
Python
Twitter/requests_oauthlib/oauth2_session.py
piscesfantasy/SocialNetworkSearchEngine
6ec04fd367020f74ef506b5927a0cf6d2bdbec7a
[ "BSD-3-Clause" ]
null
null
null
Twitter/requests_oauthlib/oauth2_session.py
piscesfantasy/SocialNetworkSearchEngine
6ec04fd367020f74ef506b5927a0cf6d2bdbec7a
[ "BSD-3-Clause" ]
null
null
null
Twitter/requests_oauthlib/oauth2_session.py
piscesfantasy/SocialNetworkSearchEngine
6ec04fd367020f74ef506b5927a0cf6d2bdbec7a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import logging from oauthlib.common import generate_token, urldecode from oauthlib.oauth2 import WebApplicationClient, InsecureTransportError from oauthlib.oauth2 import TokenExpiredError, is_secure_transport import requests log = logging.getLogger(__name__) class TokenUpdat...
44.674033
87
0.623361
9b18d79de7bd0f6cb32c77181ff6aa488bc58669
3,262
py
Python
tests/instantiation/native/qiskit/test_synthesize.py
BQSKit/qfast-qiskit
dd562f809f86d8a2b2633001f78a3ddb0bf3a3af
[ "BSD-3-Clause-LBNL" ]
3
2020-11-18T20:42:32.000Z
2021-03-22T15:52:56.000Z
tests/instantiation/native/qiskit/test_synthesize.py
BQSKit/qfast-qiskit
dd562f809f86d8a2b2633001f78a3ddb0bf3a3af
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/instantiation/native/qiskit/test_synthesize.py
BQSKit/qfast-qiskit
dd562f809f86d8a2b2633001f78a3ddb0bf3a3af
[ "BSD-3-Clause-LBNL" ]
null
null
null
import numpy as np import unittest as ut from qiskit import * from qfast import perm from qfast.instantiation.native.qiskit import QiskitTool def get_utry ( circ ): """Converts a qiskit circuit into a numpy unitary.""" backend = qiskit.BasicAer.get_backend( 'unitary_simulator' ) utry = qiskit.execute...
42.363636
83
0.514408
ff8ac4d8b711b83be4b1c81d758df29145d453c9
5,057
py
Python
unity-environment/Learning/utils/nn.py
KooroshNaderi/UnityClimberAgent
1953dc6786872304a2fd19140f685895557ad052
[ "Apache-2.0" ]
null
null
null
unity-environment/Learning/utils/nn.py
KooroshNaderi/UnityClimberAgent
1953dc6786872304a2fd19140f685895557ad052
[ "Apache-2.0" ]
6
2019-12-23T21:43:11.000Z
2022-02-10T00:40:39.000Z
unity-environment/Learning/utils/nn.py
KooroshNaderi/UnityClimberAgent
1953dc6786872304a2fd19140f685895557ad052
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf def dropout(x, std=0.05): return tf.multiply(x, tf.truncated_normal(shape=tf.shape(x), mean=1.0, stddev=std, dtype=tf.float32)) def selu(x, _lambda=1.0507, _alpha=1.6733): return _lambda * tf.where(x >= 0.0, x, _alpha * tf.nn.elu(x)) class CNN: def __init__(self, input_data, la...
38.603053
112
0.598378
d13c6a3b803d086f105eb489e5be0f46a6695bba
3,190
py
Python
rhw/urls.py
misli/rhw
928c9d5ba5649c987c255cf8370d92fcee88031c
[ "BSD-3-Clause" ]
null
null
null
rhw/urls.py
misli/rhw
928c9d5ba5649c987c255cf8370d92fcee88031c
[ "BSD-3-Clause" ]
null
null
null
rhw/urls.py
misli/rhw
928c9d5ba5649c987c255cf8370d92fcee88031c
[ "BSD-3-Clause" ]
null
null
null
"""rhw URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based v...
63.8
121
0.520376
5f651f973da8c9712c12f44fc55f83c70deb1a39
23,614
py
Python
image_generation/treeutils.py
mihirp1998/blender_emblang
4b7092b8f4dfdc5240ed8ecf8e18ec75b9e0141c
[ "BSD-3-Clause" ]
null
null
null
image_generation/treeutils.py
mihirp1998/blender_emblang
4b7092b8f4dfdc5240ed8ecf8e18ec75b9e0141c
[ "BSD-3-Clause" ]
null
null
null
image_generation/treeutils.py
mihirp1998/blender_emblang
4b7092b8f4dfdc5240ed8ecf8e18ec75b9e0141c
[ "BSD-3-Clause" ]
null
null
null
import _init_paths import os import sys import argparse import os.path as osp import random import numpy as np import utils from mathutils import Vector from lib.tree import Tree from modules import Layout, Combine, Describe # Made changes to expand_tree(), sample_tree_flexible(), refine_tree_info(), _set_describe_bbo...
37.96463
191
0.607902
1e2369717aa0ac2565fd6fb38fa64b90419dc9db
85,131
py
Python
Blender 2.91/2.91/scripts/addons/measureit/measureit_main.py
calculusrobotics/RNNs-for-Bayesian-State-Estimation
2aacf86d2e447e10c840b4926d4de7bc5e46d9bc
[ "MIT" ]
1
2021-06-30T00:39:40.000Z
2021-06-30T00:39:40.000Z
release/scripts/addons/measureit/measureit_main.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/measureit/measureit_main.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
39.595814
120
0.463638