hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
265089d051d79b7e188444b24b33b351c383d4fa
440
py
Python
data/scripts/templates/object/mobile/shared_condor_dragon.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_condor_dragon.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_condor_dragon.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 = Creature() result.template = "object/mobile/shared_condor_dragon.iff" result.attribute_template_id = 9 result.st...
25.882353
59
0.727273
980ecb350be27083a206fb97c1664ff538525247
2,998
py
Python
mars/tensor/arithmetic/floordiv.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/arithmetic/floordiv.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/tensor/arithmetic/floordiv.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 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-...
31.557895
79
0.660107
f40eb5c04ad18b8af3a9c4f31f9334de399b8d92
2,252
py
Python
Dayyip/commands/music.py
TheDeadStalker/DiscordBot-Dayyip
6616cc003708a141885e4749f728abd96ba92d8a
[ "MIT" ]
null
null
null
Dayyip/commands/music.py
TheDeadStalker/DiscordBot-Dayyip
6616cc003708a141885e4749f728abd96ba92d8a
[ "MIT" ]
null
null
null
Dayyip/commands/music.py
TheDeadStalker/DiscordBot-Dayyip
6616cc003708a141885e4749f728abd96ba92d8a
[ "MIT" ]
null
null
null
from discord.ext import commands import lavalink from discord import utils from discord import Embed class MusicCog(commands.Cog): def __init__(self, bot): self.bot = bot self.bot.music = lavalink.Client(self.bot.user.id) self.bot.music.add_node('localhost', 7000, 'testing', 'na', 'music-node') self....
34.646154
97
0.669627
d15510c5b9448f7a78ee4783ae58a69306c98686
3,717
py
Python
recipes/Python/579097_Safely_atomically_write/recipe-579097.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/579097_Safely_atomically_write/recipe-579097.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/579097_Safely_atomically_write/recipe-579097.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import contextlib import os import stat import sys import tempfile @contextlib.contextmanager def atomic_write(filename, text=True, keep=True, owner=None, group=None, perms=None, suffix='.bak', prefix='tmp'): """Context manager for overwriting a file atomically. Usage: ...
39.126316
81
0.622007
90f9b2bec5a6f34c48792009687c790c48ecdee8
74
py
Python
__init__.py
akanametov/segmentation
1634bfdeb2e5ffcc932f15da80c5572b81f1cd94
[ "MIT" ]
null
null
null
__init__.py
akanametov/segmentation
1634bfdeb2e5ffcc932f15da80c5572b81f1cd94
[ "MIT" ]
null
null
null
__init__.py
akanametov/segmentation
1634bfdeb2e5ffcc932f15da80c5572b81f1cd94
[ "MIT" ]
null
null
null
from .evaluator import HRNetEvaluator from .trainer import HRNetTrainer
24.666667
38
0.837838
9c97eed0120a61a6bceb8c7d576404676ec7e870
5,436
py
Python
server/main.py
alejomongua/parquesBackend
5170f11b83d49944a16bfcd5928b1b2098562f02
[ "MIT" ]
1
2020-11-01T01:26:53.000Z
2020-11-01T01:26:53.000Z
server/main.py
alejomongua/parquesBackend
5170f11b83d49944a16bfcd5928b1b2098562f02
[ "MIT" ]
null
null
null
server/main.py
alejomongua/parquesBackend
5170f11b83d49944a16bfcd5928b1b2098562f02
[ "MIT" ]
1
2020-10-14T21:35:33.000Z
2020-10-14T21:35:33.000Z
"""Código del servidor web""" import asyncio from typing import Optional from fastapi import FastAPI, Response, Header, WebSocket from fastapi.middleware.cors import CORSMiddleware from juego import my_firebase from juego import Game app = FastAPI( title='Parqués a la colombiana', description="API para un j...
26.26087
100
0.637785
a9e7439d67694c5b99b9013a74df586a4493d73a
65
py
Python
aiohttp_cache/exceptions.py
vitalyserhienko/aiohttp-cache
a6af17cd0033de337843111897a917ea539196df
[ "BSD-3-Clause" ]
5
2018-05-10T19:50:29.000Z
2018-05-10T20:07:08.000Z
aiohttp-static-generated/aiohttp_static_builder/exceptions.py
cr0hn/TestingBench
37975343cf9ccb019e8dc42404b5b321285b04b3
[ "BSD-3-Clause" ]
null
null
null
aiohttp-static-generated/aiohttp_static_builder/exceptions.py
cr0hn/TestingBench
37975343cf9ccb019e8dc42404b5b321285b04b3
[ "BSD-3-Clause" ]
null
null
null
class HTTPCache(ValueError): pass __all__ = ("HTTPCache", )
13
28
0.676923
d1e47132aea46a5cfc2444d10f1a7311780c60b6
1,296
py
Python
Mon_Meg_goClimbing.py
mvermillion20/bsu_seg_chapter
e9e58cc1dd9146f9516f7d10fec10c01e7ec9388
[ "MIT" ]
null
null
null
Mon_Meg_goClimbing.py
mvermillion20/bsu_seg_chapter
e9e58cc1dd9146f9516f7d10fec10c01e7ec9388
[ "MIT" ]
null
null
null
Mon_Meg_goClimbing.py
mvermillion20/bsu_seg_chapter
e9e58cc1dd9146f9516f7d10fec10c01e7ec9388
[ "MIT" ]
null
null
null
# monica and megan climbing class #How to make default variable in class class climbing: def __init__(self, location='yosemite', rock='hard', height=100, grade=5.7): # makes it a module because the attributes are defined as # set values, modules already build the object and you can't change it # *args and **kargs ...
32.4
80
0.69213
0bb5cbaebc95cb2503dda0e8b59d1a97a25710e6
8,976
py
Python
my_plugins/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/test_evaluate/test_signature.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/test_evaluate/test_signature.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/test_evaluate/test_signature.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
from textwrap import dedent from operator import ge, lt import re import pytest from jedi.evaluate.gradual.conversion import _stub_to_python_context_set @pytest.mark.parametrize( 'code, sig, names, op, version', [ ('import math; math.cos', 'cos(x, /)', ['x'], ge, (2, 7)), ('next', 'next(iterato...
33.36803
105
0.506016
e43578d00b2d34c41714ba65ceb20f36a82541ef
6,165
py
Python
analysis/rt_mentions.py
jwheatp/twitter-riots
cc3aa5586560e1195e0adc4c58eb881446356958
[ "MIT" ]
null
null
null
analysis/rt_mentions.py
jwheatp/twitter-riots
cc3aa5586560e1195e0adc4c58eb881446356958
[ "MIT" ]
2
2015-02-12T13:11:16.000Z
2015-02-12T13:11:41.000Z
analysis/rt_mentions.py
jwheatp/twitter-riots
cc3aa5586560e1195e0adc4c58eb881446356958
[ "MIT" ]
null
null
null
"""Process RT mentions MIT License (MIT) Copyright (c) 2015 Julien BLEGEAN <julien.blegean@aalto.fi> """ import networkx as nx import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.patches as mpatches import re import datetime import redis import string import numpy as np import m...
23.711538
147
0.645093
75b27c308825a3f5b03548db0bc6fab43cc0d8aa
3,923
py
Python
lib/taurus/qt/qtgui/table/taurusdbtable.py
MikeFalowski/taurus
ef041bf35dd847caf08a7efbe072f4020d35522e
[ "CC-BY-3.0" ]
null
null
null
lib/taurus/qt/qtgui/table/taurusdbtable.py
MikeFalowski/taurus
ef041bf35dd847caf08a7efbe072f4020d35522e
[ "CC-BY-3.0" ]
1
2020-02-28T16:36:04.000Z
2020-03-02T07:51:12.000Z
lib/taurus/qt/qtgui/table/taurusdbtable.py
MikeFalowski/taurus
ef041bf35dd847caf08a7efbe072f4020d35522e
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################# ## # This file is part of Taurus ## # http://taurus-scada.org ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Taurus is free software: you can redistribute it and/or modify # it under the terms of t...
30.176923
78
0.667601
baf0c86b2ee2e3dc62d4f0a94a10e6ee44250755
10,377
py
Python
fidimag/common/driver_base.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
53
2016-02-27T09:40:21.000Z
2022-01-19T21:37:44.000Z
fidimag/common/driver_base.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
132
2016-02-26T13:18:58.000Z
2021-12-01T21:52:42.000Z
fidimag/common/driver_base.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
32
2016-02-26T13:21:40.000Z
2022-03-08T08:54:51.000Z
from __future__ import division from __future__ import print_function import os import numpy as np import zipfile import fidimag.common.helper as helper from fidimag.common.integrators import CvodeSolver, CvodeSolver_OpenMP, \ StepIntegrator, ScipyIntegrator class DriverBase(object): """ Common methods f...
37.193548
83
0.551508
75277019d115b6026f4dbbbab449ed952a8962c5
526
py
Python
Python OOP/9. Decorators/Exercise/02. Even Parameters.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python OOP/9. Decorators/Exercise/02. Even Parameters.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python OOP/9. Decorators/Exercise/02. Even Parameters.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
def even_parameters(func): def wrapper(*args): all_even = all([True if isinstance(n, int) and n % 2 == 0 else False for n in args]) if all_even: return func(*args) return 'Please use only even numbers!' return wrapper @even_parameters def add(a, b): return a + b print(...
20.230769
92
0.604563
daa4debb3a1a6dc5d75fb9be1af11b94995da826
1,649
py
Python
jobs/migrations/0004_auto_20200524_0219.py
yatselin/juINor
7072fea4bac8d207ddf42d9a5b7769a2aa17b362
[ "Apache-2.0" ]
null
null
null
jobs/migrations/0004_auto_20200524_0219.py
yatselin/juINor
7072fea4bac8d207ddf42d9a5b7769a2aa17b362
[ "Apache-2.0" ]
8
2021-03-19T11:09:55.000Z
2022-02-10T14:43:34.000Z
jobs/migrations/0004_auto_20200524_0219.py
yatselin/juINor
7072fea4bac8d207ddf42d9a5b7769a2aa17b362
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2020-05-23 23:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('jobs', '0003_auto_202005...
38.348837
172
0.613099
62480b07ca3dcbc66f9c413e598dbaa9b05e4a38
10,092
py
Python
Evaluation/Reddit/RedditGraphGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
Evaluation/Reddit/RedditGraphGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
Evaluation/Reddit/RedditGraphGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'Shay Lapid' __email__ = 'lapidshay@gmail.com' ################################## # Imports ################################## import networkx as nx from numpy.random import choice import numpy as np from copy import deepcopy import json import pandas as pd import os ################################## ...
35.914591
124
0.733353
329f6843fdcae99692e34306445c93f7097bfdda
1,225
py
Python
mayan/apps/statistics/classes.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
mayan/apps/statistics/classes.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
1
2022-03-12T01:03:39.000Z
2022-03-12T01:03:39.000Z
mayan/apps/statistics/classes.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
class StatisticNamespace(object): _registry = {} @classmethod def get_all(cls): return cls._registry.values() @classmethod def get(cls, name): return cls._registry[name] def __init__(self, name, label): self.name = name self.label = label self._statisti...
20.762712
45
0.613878
3141619f689ce3849ba233c3a27d0214450e7f61
5,931
py
Python
vimfiles/bundle/vim-python/submodules/pylint/tests/test_func.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
463
2015-01-15T08:17:42.000Z
2022-03-28T15:10:20.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/test_func.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
52
2015-01-06T02:43:59.000Z
2022-03-14T11:15:21.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/test_func.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
249
2015-01-07T22:49:49.000Z
2022-03-18T02:32:06.000Z
# Copyright (c) 2006-2010, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com> # Copyright (c) 2013-2014 Google, Inc. # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Michal Nowikowski <godfryd@gmail.com> # Copyright (c) ...
34.283237
88
0.653347
80e88329c12b2de3d96d3abe9b7b9298b969ebb6
7,633
py
Python
model/mosesdecoder/contrib/moses-speedtest/html_gen.py
saeedesm/UNMT_AH
cc171bf66933b5c0ad8a0ab87e57f7364312a7df
[ "Apache-2.0" ]
3
2019-12-02T14:53:29.000Z
2020-08-12T18:01:49.000Z
tools/mosesdecoder-master/contrib/moses-speedtest/html_gen.py
Pangeamt/nectm
6b84f048698f2530b9fdbb30695f2e2217c3fbfe
[ "Apache-2.0" ]
2
2020-11-06T14:40:10.000Z
2020-12-29T19:03:11.000Z
tools/mosesdecoder-master/contrib/moses-speedtest/html_gen.py
Pangeamt/nectm
6b84f048698f2530b9fdbb30695f2e2217c3fbfe
[ "Apache-2.0" ]
2
2020-03-26T16:05:11.000Z
2020-08-06T16:35:39.000Z
"""Generates HTML page containing the testresults""" from testsuite_common import Result, processLogLine, getLastTwoLines from runtests import parse_testconfig import os import sys from datetime import datetime, timedelta HTML_HEADING = """<html> <head> <title>Moses speed testing</title> <link rel="stylesheet" type="...
39.549223
104
0.612734
706cba9bd7f1483b3945e7eef723762d88ba8f08
1,845
py
Python
general_itests/steps/validate_steps.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
general_itests/steps/validate_steps.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
general_itests/steps/validate_steps.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 Yelp 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 writin...
32.368421
74
0.749593
6daf466d55d876c643ca53e7703e3c77bed55f6f
4,141
py
Python
kpredict/kpredict.py
diverse-project/kpredict
629350581a84adfad2d938336b3531ec6af6ded5
[ "MIT" ]
2
2021-04-29T11:41:31.000Z
2021-05-01T19:39:26.000Z
kpredict/kpredict.py
diverse-project/kpredict
629350581a84adfad2d938336b3531ec6af6ded5
[ "MIT" ]
1
2021-02-16T10:04:19.000Z
2021-02-16T10:07:05.000Z
kpredict/kpredict.py
diverse-project/kpredict
629350581a84adfad2d938336b3531ec6af6ded5
[ "MIT" ]
1
2021-03-23T19:26:21.000Z
2021-03-23T19:26:21.000Z
import warnings import json import os import pandas as pd from joblib import load from .exceptions import VersionNotSupported from .classes.config import ConfigParser from .helpers import formating_size available_versions = { "4.13.3": { "model": "model_413.joblib", "options_list": "tristate_opti...
23.528409
127
0.619657
dd5e4dc6e70fb0ca1946d3d3ffbad31678303fb4
894
py
Python
python3/koans/triangle.py
Longliveping/python_koans
149127630d69c54b94302fefc9a89914def17f6f
[ "MIT" ]
null
null
null
python3/koans/triangle.py
Longliveping/python_koans
149127630d69c54b94302fefc9a89914def17f6f
[ "MIT" ]
null
null
null
python3/koans/triangle.py
Longliveping/python_koans
149127630d69c54b94302fefc9a89914def17f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Triangle Project Code. # Triangle analyzes the lengths of the sides of a triangle # (represented by a, b and c) and returns the type of triangle. # # It returns: # 'equilateral' if all sides are equal # 'isosceles' if exactly 2 sides are equal # 'scalene' ...
25.542857
63
0.626398
cfe6fac4a400e392b06f93eb490b5c469ab184a7
7,129
py
Python
snips_nlu/default_configs/config_ja.py
deeiip/snips-nlu
63b9c42fe0fd2fde22bc10a0f4278a8f946ca1d8
[ "Apache-2.0" ]
null
null
null
snips_nlu/default_configs/config_ja.py
deeiip/snips-nlu
63b9c42fe0fd2fde22bc10a0f4278a8f946ca1d8
[ "Apache-2.0" ]
null
null
null
snips_nlu/default_configs/config_ja.py
deeiip/snips-nlu
63b9c42fe0fd2fde22bc10a0f4278a8f946ca1d8
[ "Apache-2.0" ]
null
null
null
CONFIG = { "unit_name": "nlu_engine", "intent_parsers_configs": [ { "unit_name": "deterministic_intent_parser", "max_queries": 100, "max_pattern_length": 1000 }, { "unit_name": "probabilistic_intent_parser", "slot_filler_config"...
33.469484
64
0.208024
f5f8c8ae27942dba9f66ef2c615296deb2972125
805
py
Python
backend/home/migrations/0002_customtext_homepage.py
crowdbotics-apps/witzs-29774
d80f2a4aa4b891373c2a5c9574f2e63b64f246c1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0002_customtext_homepage.py
crowdbotics-apps/witzs-29774
d80f2a4aa4b891373c2a5c9574f2e63b64f246c1
[ "FTL", "AML", "RSA-MD" ]
18
2021-08-16T05:27:46.000Z
2021-10-05T01:42:50.000Z
backend/home/migrations/0002_customtext_homepage.py
crowdbotics-apps/witzs-29774
d80f2a4aa4b891373c2a5c9574f2e63b64f246c1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.24 on 2021-08-13 02:04 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('home', '0001_load_initial_data'), ] operations = [ migrations.CreateModel( name='CustomText', f...
26.833333
114
0.552795
8337efa3e44967d295861bae2efa8559f5f1acb2
7,697
py
Python
arviz/plots/backends/bokeh/loopitplot.py
semohr/arviz
dd129a69c92c8a77952f6be09d3f7724cd63f29d
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/bokeh/loopitplot.py
semohr/arviz
dd129a69c92c8a77952f6be09d3f7724cd63f29d
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/bokeh/loopitplot.py
semohr/arviz
dd129a69c92c8a77952f6be09d3f7724cd63f29d
[ "Apache-2.0" ]
null
null
null
"""Bokeh loopitplot.""" import numpy as np from bokeh.models import BoxAnnotation from matplotlib.colors import hsv_to_rgb, rgb_to_hsv, to_hex, to_rgb from xarray import DataArray from ....stats.density_utils import kde from ...plot_utils import _scale_fig_size from .. import show_layout from . import backend_kwarg_de...
35.96729
99
0.54047
26e6f560a34ae0becd363a1de788ed4e602fb614
3,507
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/gallery_image_version_publishing_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/gallery_image_version_publishing_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/gallery_image_version_publishing_profile_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
48.708333
180
0.696322
1e2a0ea2d1532749db36e8fbb4d4e848ef38e733
3,539
py
Python
angr/analyses/decompiler/region_simplifiers/region_simplifier.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/decompiler/region_simplifiers/region_simplifier.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/decompiler/region_simplifiers/region_simplifier.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
import ailment from ....analyses import AnalysesHub from ...analysis import Analysis from ..empty_node_remover import EmptyNodeRemover from .goto import GotoSimplifier from .if_ import IfSimplifier from .cascading_ifs import CascadingIfsRemover from .ifelse import IfElseFlattener from .loop import LoopSimplifier from ...
31.318584
116
0.671376
e29df3fe0cdba5a05adeb09a0cc92dc04609dcfc
66
py
Python
scripts/__init__.py
bioimage-analysis/julia_clusters
e1686154d1e5331a927dae68cbbc1e915a128635
[ "MIT" ]
1
2019-01-24T19:42:07.000Z
2019-01-24T19:42:07.000Z
scripts/__init__.py
bioimage-analysis/julia_clusters
e1686154d1e5331a927dae68cbbc1e915a128635
[ "MIT" ]
1
2019-02-05T22:50:26.000Z
2019-02-13T18:48:11.000Z
scripts/__init__.py
bioimage-analysis/julia_clusters
e1686154d1e5331a927dae68cbbc1e915a128635
[ "MIT" ]
1
2020-11-24T12:35:16.000Z
2020-11-24T12:35:16.000Z
__all__=['io', 'processing', 'analysis', 'batch_analysis', 'log']
33
65
0.666667
332d499bdb9703f8d3d6fb99c1c50f486d010637
15,192
py
Python
sklearn/feature_selection/tests/test_from_model.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
2
2022-03-16T17:33:38.000Z
2022-03-17T11:50:21.000Z
sklearn/feature_selection/tests/test_from_model.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
10
2022-02-21T20:10:33.000Z
2022-03-26T16:31:33.000Z
sklearn/feature_selection/tests/test_from_model.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
1
2022-03-07T03:23:04.000Z
2022-03-07T03:23:04.000Z
import pytest import numpy as np from sklearn.utils._testing import assert_array_almost_equal from sklearn.utils._testing import assert_array_equal from sklearn.utils._testing import assert_allclose from sklearn.utils._testing import skip_if_32bit from sklearn.utils._testing import MinimalClassifier from sklearn impo...
33.098039
88
0.697407
0e1ca8ebe721c4114ee4a2ad54fce8694fd83bb5
182
py
Python
package/pack.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
package/pack.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
package/pack.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
import factorial import armstrong import greater import list_task import no_of_letters_in_string import palindrome import perfect_number import prijme import testttt import sumalter
16.545455
30
0.89011
d42e2bf99272974d77286f4229495aaf71ab0989
7,148
py
Python
HOME/views.py
pingArnab/django-rest-commerce
d737a325cad8cf32efbdc6304b95df1b0cb92717
[ "MIT" ]
null
null
null
HOME/views.py
pingArnab/django-rest-commerce
d737a325cad8cf32efbdc6304b95df1b0cb92717
[ "MIT" ]
1
2021-11-14T09:14:54.000Z
2021-11-14T17:07:12.000Z
HOME/views.py
pingPoltergeist/django-rest-commerce
d737a325cad8cf32efbdc6304b95df1b0cb92717
[ "MIT" ]
1
2022-02-28T10:54:29.000Z
2022-02-28T10:54:29.000Z
import json import logging import traceback from django.contrib import messages from django.template import loader from django.contrib.auth.models import User as authUser from django.shortcuts import render, redirect from django.urls import reverse from django.views.decorators.csrf import csrf_exempt from django.http ...
42.802395
106
0.608842
f5e878ce6cd6b1ec06631a6432ffe8cfcc9d4814
386
py
Python
apps/api/v1/users/fields.py
silverlogic/bit-tag-api
22bc1d79b3d48493ff3880f4c976c4e7c8135973
[ "MIT" ]
null
null
null
apps/api/v1/users/fields.py
silverlogic/bit-tag-api
22bc1d79b3d48493ff3880f4c976c4e7c8135973
[ "MIT" ]
null
null
null
apps/api/v1/users/fields.py
silverlogic/bit-tag-api
22bc1d79b3d48493ff3880f4c976c4e7c8135973
[ "MIT" ]
null
null
null
from avatar.templatetags.avatar_tags import avatar_url from apps.api.fields import ThumbnailImageField class AvatarField(ThumbnailImageField): def get_attribute(self, obj): return obj def to_representation(self, instance): user = instance return { 'full_size': avatar_url(...
24.125
54
0.663212
b0442dd29f5a28735351b1968d6426ca18dc6cb9
10,302
py
Python
mirdata/datasets/mtg_jamendo_autotagging_moodtheme.py
lucaspbastos/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
15
2019-03-30T18:04:52.000Z
2019-04-03T17:41:29.000Z
mirdata/datasets/mtg_jamendo_autotagging_moodtheme.py
oriolcolomefont/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
19
2019-04-03T18:21:05.000Z
2019-04-08T16:58:21.000Z
mirdata/datasets/mtg_jamendo_autotagging_moodtheme.py
oriolcolomefont/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
1
2019-04-02T15:39:41.000Z
2019-04-02T15:39:41.000Z
# -*- coding: utf-8 -*- """MTG jamendo autotagging moodtheme Dataset Loader .. admonition:: Dataset Info :class: dropdown The MTG Jamendo autotagging mood/theme Dataset is a new open dataset for music auto-tagging. It is built using music available at Jamendo under Creative Commons licenses and tags provi...
35.402062
141
0.620559
395ec379d3d0d4c21bae8c9c110e014e557dfdd9
285
py
Python
test/loiter.py
waTeim/gpsFlow
fedde7a9c8ad71532fbaae9438710f71786b52e2
[ "MIT" ]
1
2021-10-12T00:52:59.000Z
2021-10-12T00:52:59.000Z
test/loiter.py
waTeim/flying-monkey
fedde7a9c8ad71532fbaae9438710f71786b52e2
[ "MIT" ]
null
null
null
test/loiter.py
waTeim/flying-monkey
fedde7a9c8ad71532fbaae9438710f71786b52e2
[ "MIT" ]
3
2016-04-19T23:11:43.000Z
2022-01-22T22:47:50.000Z
#!/usr/bin/env python import dronekit import sys # Connect to UDP endpoint (and wait for default attributes to accumulate) def main(): target = "udpin:0.0.0.0:14550" vehicle = dronekit.connect(target) vehicle.mode = dronekit.VehicleMode("LOITER") vehicle.close() main()
20.357143
73
0.715789
f6d9c8f04c59c050bb16d0b0b21ee2fa50a5ecfc
1,036
py
Python
boncekeeb/front_buttons.py
headstrongsolutions/pico_devkeeb_circuitpython
4e4a364964628deb94fdc195e08d48badb201ee3
[ "Apache-2.0" ]
1
2021-03-25T05:02:36.000Z
2021-03-25T05:02:36.000Z
boncekeeb/front_buttons.py
headstrongsolutions/pico_devkeeb_circuitpython
4e4a364964628deb94fdc195e08d48badb201ee3
[ "Apache-2.0" ]
null
null
null
boncekeeb/front_buttons.py
headstrongsolutions/pico_devkeeb_circuitpython
4e4a364964628deb94fdc195e08d48badb201ee3
[ "Apache-2.0" ]
null
null
null
import time import board import digitalio class front_buttons: def __init__(self, pins_and_names): self.next_time_check = None self.pins_and_names = pins_and_names self.buttons = [] self.init_buttons() def init_buttons(self): buttons = [] for pin_and_name in sel...
31.393939
62
0.627413
f7d84659d16e82cd323a14b7541275ec7aee0ca4
3,057
py
Python
lab/lab06/cards.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
lab/lab06/cards.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
lab/lab06/cards.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
# All cards available in a standard deck. from classes import * #TAs aaron = TACard('Baron Aaron', 2100, 1300) albert = TACard('Albert, Lethargy Incarnate', 1000, 2000) alex = TACard('President Lieutenant Stennet for Senate', 1400, 2000) aman = TACard('Aman', 1000, 2100) anita = TACard("Anita, the Amazin' Avocado", 15...
47.765625
360
0.724567
3415dbe84ac2e0b859d076578e69d31d233d7642
2,933
py
Python
ucscsdk/mometa/firmware/FirmwareBundleInfo.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/firmware/FirmwareBundleInfo.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/firmware/FirmwareBundleInfo.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for FirmwareBundleInfo ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class FirmwareBundleInfoConsts(): TYPE_B_SERIES_BUNDLE = "b-series-bundle" TYPE_C_SE...
50.568966
343
0.67269
5fa14ca646162bbea147895b4169e1e42b69c664
8,411
py
Python
ludwig/models/modules/sequence_decoders.py
aan1092j/ludwig
98de513c1a6b18020cdcfc694bf238a34741bfa1
[ "Apache-2.0" ]
null
null
null
ludwig/models/modules/sequence_decoders.py
aan1092j/ludwig
98de513c1a6b18020cdcfc694bf238a34741bfa1
[ "Apache-2.0" ]
null
null
null
ludwig/models/modules/sequence_decoders.py
aan1092j/ludwig
98de513c1a6b18020cdcfc694bf238a34741bfa1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 applicabl...
37.382222
115
0.591963
4509fb541d5ee33a9e1949e3190663840626f52e
24,620
py
Python
cinder/volume/drivers/smbfs.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/smbfs.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/smbfs.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Cloudbase Solutions SRL # 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 # # Unle...
41.170569
79
0.620146
790018f581c8abddfcfdb7302b27ff01e6fbb81c
1,139
py
Python
1573_number_ways_to_split_string.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
1573_number_ways_to_split_string.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
1573_number_ways_to_split_string.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 1573. Number of Ways to Split a String # # Q: https://leetcode.com/problems/number-of-ways-to-split-a-string/ # A: https://leetcode.com/problems/number-of-ways-to-split-a-string/discuss/830433/Javascript-Python3-C%2B%2B-solutions # class Solution: def numWays(self, S: str, MOD = int(1e9 + 7)) -> int: N...
39.275862
124
0.543459
bc219ce165493672eec5aa7690e7d947b26f23fb
1,449
py
Python
program.py
DeeHants/pyBall
db998541a96b84bed56b2e6a86b01423924ac24d
[ "BSD-3-Clause" ]
1
2020-12-17T19:37:28.000Z
2020-12-17T19:37:28.000Z
program.py
DeeHants/pyBall
db998541a96b84bed56b2e6a86b01423924ac24d
[ "BSD-3-Clause" ]
null
null
null
program.py
DeeHants/pyBall
db998541a96b84bed56b2e6a86b01423924ac24d
[ "BSD-3-Clause" ]
1
2021-03-18T06:02:36.000Z
2021-03-18T06:02:36.000Z
import pyBallLib serial_port = 'COM3' zone_serial = '1026CCE9FBFDFBD8' zone_channel = 0 # Create the zone zone = pyBallLib.Zone(zone_serial, zone_channel) # First sequence sequence = zone.bank(0).sequence(0) # B0S0P0 black mouse clockwise image = sequence.append_image(100, image_filename='mouseb.pbi') position = se...
25.875
63
0.773637
bfa84736f861628f4c1aaef034876d8a30a73124
945
py
Python
laporte/app/event_id.py
vinklat/laporte
021a5636a285cca1cff5036e15a9f5415b9d8db4
[ "MIT" ]
8
2019-12-16T19:04:08.000Z
2022-01-10T00:30:31.000Z
laporte/app/event_id.py
vinklat/laporte
021a5636a285cca1cff5036e15a9f5415b9d8db4
[ "MIT" ]
null
null
null
laporte/app/event_id.py
vinklat/laporte
021a5636a285cca1cff5036e15a9f5415b9d8db4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Store event ID of sensor update in flask's G object ''' from flask import g from flask import _app_ctx_stack as stack _G_ATTR_EVENT_ID = 'event_id' class EventID(): def __init__(self): self.event_cnt = 0 def set(self, add_prefix="", add_suffix="", eid=None): ''' ...
20.543478
67
0.559788
8a072f7171de1baef9d372b86e52ea1933b2d3b7
423
py
Python
google_images_download/test2.py
chadn4u/python_downloader
958207eaca449f6cab33c1cee3fc5c8601e9d693
[ "MIT" ]
null
null
null
google_images_download/test2.py
chadn4u/python_downloader
958207eaca449f6cab33c1cee3fc5c8601e9d693
[ "MIT" ]
null
null
null
google_images_download/test2.py
chadn4u/python_downloader
958207eaca449f6cab33c1cee3fc5c8601e9d693
[ "MIT" ]
null
null
null
import google_images_download #importing the library response = google_images_download.googleimagesdownload() #class instantiation arguments = {"keywords":"halfmoon betta fish","limit":200,"print_urls":True,"chromedriver":"D:/app/chromedriver"} #creating list of arguments paths = response.download(arguments) ...
60.428571
143
0.794326
a56543baba3ad2f3a1b0072e4e8a687486c9c8c3
2,279
py
Python
mayan/apps/ocr/urls.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/ocr/urls.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
6
2020-06-05T22:45:29.000Z
2022-03-11T23:57:53.000Z
mayan/apps/ocr/urls.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import url from .api_views import ( APIDocumentOCRView, APIDocumentPageOCRContentView, APIDocumentVersionOCRView ) from .views import ( DocumentOCRContentView, DocumentOCRDownloadView, DocumentOCRErrorsListView, DocumentPageOCRContentView, ...
32.557143
107
0.652479
104b1ba2976bd679cca110939f3b091bd99b9c78
91
py
Python
linkpage/apps.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
2
2020-07-29T17:35:31.000Z
2021-06-06T11:37:49.000Z
linkpage/apps.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
4
2020-10-28T19:06:02.000Z
2021-01-11T16:06:46.000Z
linkpage/apps.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LinkpageConfig(AppConfig): name = 'linkpage'
15.166667
33
0.758242
4e1acdb691f5993dd50e4a6ad22206e0965e1b91
730
py
Python
nlu_model.py
ywaghmare5203/Chatbot
2d7fd6fb4d4539160c6f374676d19e0469e07122
[ "MIT" ]
null
null
null
nlu_model.py
ywaghmare5203/Chatbot
2d7fd6fb4d4539160c6f374676d19e0469e07122
[ "MIT" ]
null
null
null
nlu_model.py
ywaghmare5203/Chatbot
2d7fd6fb4d4539160c6f374676d19e0469e07122
[ "MIT" ]
null
null
null
from rasa_nlu.converters import load_data from rasa_nlu.config import RasaNLUConfig from rasa_nlu.model import Trainer from rasa_nlu.model import Metadata, Interpreter def train_nlu(data, config, model_dir): training_data = load_data(data) trainer = Trainer(RasaNLUConfig(config)) trainer.train(training_data) model...
38.421053
107
0.780822
fcf28dc6f6019d8f29d1a158ae61f768424d4898
3,648
py
Python
Dataset.py
YvetteGuo/ncf_mxnet
5f86390ac884b78cc115e75b5608ed24357e3f46
[ "Apache-2.0" ]
null
null
null
Dataset.py
YvetteGuo/ncf_mxnet
5f86390ac884b78cc115e75b5608ed24357e3f46
[ "Apache-2.0" ]
null
null
null
Dataset.py
YvetteGuo/ncf_mxnet
5f86390ac884b78cc115e75b5608ed24357e3f46
[ "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 ...
39.652174
93
0.569627
25777140f908de7807ec12f285f4d3bd73734827
29,558
py
Python
autoastro/galaxy/galaxy.py
woodyZootopia/PyAutoAstro
6500b9746b3e73c3f3129fcbaa3a0419bb400915
[ "MIT" ]
null
null
null
autoastro/galaxy/galaxy.py
woodyZootopia/PyAutoAstro
6500b9746b3e73c3f3129fcbaa3a0419bb400915
[ "MIT" ]
null
null
null
autoastro/galaxy/galaxy.py
woodyZootopia/PyAutoAstro
6500b9746b3e73c3f3129fcbaa3a0419bb400915
[ "MIT" ]
null
null
null
import numpy as np from astropy import cosmology as cosmo from itertools import count from scipy.optimize import root_scalar from autofit.mapper.model_object import ModelObject from autoastro.util import cosmology_util from autoastro import exc from autoastro import dimensions as dim from autoastro import lensing from...
34.25029
144
0.607314
4604498472bb47b438f582fed4c2868b46e658d1
1,570
py
Python
app/appapi/paths/execution_api.py
QuittyMR/etlas-collector
0d2c444f1f0e125ee4accd425591c5468041e7f1
[ "MIT" ]
null
null
null
app/appapi/paths/execution_api.py
QuittyMR/etlas-collector
0d2c444f1f0e125ee4accd425591c5468041e7f1
[ "MIT" ]
null
null
null
app/appapi/paths/execution_api.py
QuittyMR/etlas-collector
0d2c444f1f0e125ee4accd425591c5468041e7f1
[ "MIT" ]
null
null
null
from bottle import request from appapi.paths.base_api import BaseApi from appcore.helpers import PlatformInstantiationError from appcore.helpers.singleton import Singleton from appcore.services.factory import Factory # noinspection PyUnresolvedReferences @Singleton class ExecutionApi(BaseApi): def _path(self): ...
32.708333
99
0.606369
c293ed1393c37930987f5bebd99d08a4efc363f9
1,932
py
Python
care/life/api/viewsets/lifedata.py
anroopak/care
250589f0aa783997bb81f3d2fc30bd19573b434f
[ "MIT" ]
null
null
null
care/life/api/viewsets/lifedata.py
anroopak/care
250589f0aa783997bb81f3d2fc30bd19573b434f
[ "MIT" ]
null
null
null
care/life/api/viewsets/lifedata.py
anroopak/care
250589f0aa783997bb81f3d2fc30bd19573b434f
[ "MIT" ]
null
null
null
from django.db.models import F from drf_yasg.utils import swagger_auto_schema from rest_framework import serializers, status from rest_framework.decorators import action from rest_framework.mixins import RetrieveModelMixin from rest_framework.permissions import IsAuthenticatedOrReadOnly from rest_framework.response imp...
39.428571
106
0.744824
e5746ed24ffd31193f6488562c75c96d0af69319
919
py
Python
backend/api/models/borrowings.py
thiraphat-ps-dev/InventoryManagementSystem
f8d7a9df3a0e56928b4cbb5c3d73f0fd23390641
[ "MIT" ]
1
2020-10-01T02:50:59.000Z
2020-10-01T02:50:59.000Z
backend/api/models/borrowings.py
thiraphat-ps-dev/InventoryManagementSystem
f8d7a9df3a0e56928b4cbb5c3d73f0fd23390641
[ "MIT" ]
9
2020-07-02T17:45:50.000Z
2022-03-12T00:36:29.000Z
backend/api/models/borrowings.py
thiraphat-ps-dev/InventoryManagementSystem
f8d7a9df3a0e56928b4cbb5c3d73f0fd23390641
[ "MIT" ]
null
null
null
from django.db import models from api.models import Item , Employee class Borrowing(models.Model): start_date = models.DateField() end_date = models.DateField() status = models.CharField(max_length=50,default="wait approve") item = models.ForeignKey(Item, on_delete=models.CASCADE) employee = model...
34.037037
68
0.743199
407456138a8e986fd2308ba169b0eebbba89e668
577
py
Python
tests/test_skeleton.py
liu00david/easyurl
485bfb7dab9e78ae775b3b2e2a387a70ab1227b0
[ "MIT" ]
null
null
null
tests/test_skeleton.py
liu00david/easyurl
485bfb7dab9e78ae775b3b2e2a387a70ab1227b0
[ "MIT" ]
null
null
null
tests/test_skeleton.py
liu00david/easyurl
485bfb7dab9e78ae775b3b2e2a387a70ab1227b0
[ "MIT" ]
null
null
null
import pytest from easyurl.skeleton import fib, main __author__ = "David Liu" __copyright__ = "David Liu" __license__ = "MIT" def test_fib(): """API Tests""" assert fib(1) == 1 assert fib(2) == 1 assert fib(7) == 13 with pytest.raises(AssertionError): fib(-10) def test_main(capsys): ...
22.192308
73
0.655113
6d5efa34772037f78e85103b80024f3c5223ccbb
4,616
py
Python
calibration.py
ojalar/gnss-camera-calibration
9b06104f8d08eb12ef6933c4c474ce74cb876b79
[ "MIT" ]
2
2022-03-31T10:37:33.000Z
2022-03-31T11:00:08.000Z
calibration.py
ojalar/gnss-camera-calibration
9b06104f8d08eb12ef6933c4c474ce74cb876b79
[ "MIT" ]
null
null
null
calibration.py
ojalar/gnss-camera-calibration
9b06104f8d08eb12ef6933c4c474ce74cb876b79
[ "MIT" ]
1
2022-03-31T10:36:30.000Z
2022-03-31T10:36:30.000Z
import numpy as np # This class contains implementations for calibration procedures class Calibrator: def __init__(self, calibration_pixels, calibration_coordinates): # calibration pixels: numpy array [[u,v], [u,v]...] # calibration coordinates (ENU): numpy array [[x, y], [x, y]...] self.ca...
42.348624
96
0.594237
9149fb4c39f10a88aea0e8e76f3787b01b6361a8
1,414
py
Python
src/programy/dynamic/sets/numeric.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/dynamic/sets/numeric.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/dynamic/sets/numeric.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
44.1875
120
0.768741
5eff5e613076aa2c670d8d5d923879f32c825c04
24,430
py
Python
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
nirsky/opentelemetry-python
8d09319c43a24b05d14128361de2c9afe8c856b6
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
nirsky/opentelemetry-python
8d09319c43a24b05d14128361de2c9afe8c856b6
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
nirsky/opentelemetry-python
8d09319c43a24b05d14128361de2c9afe8c856b6
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # # 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 ...
33.013514
101
0.61359
9caac9a4f9f105f421b8149fc65862fbd68b100f
5,472
py
Python
docs/rangeseg.py
lessen/src
bc09a33d22e942214df5608806b11370e21ce7e8
[ "MIT" ]
null
null
null
docs/rangeseg.py
lessen/src
bc09a33d22e942214df5608806b11370e21ce7e8
[ "MIT" ]
1
2016-12-28T22:44:52.000Z
2016-12-28T22:44:52.000Z
docs/rangeseg.py
lessen/src
bc09a33d22e942214df5608806b11370e21ce7e8
[ "MIT" ]
null
null
null
""" <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/...
28.061538
119
0.501096
adcee97741086d39e74d130387386f4060c06dc7
220
py
Python
apps/users/urls.py
yktimes/YkForm
24ed846646336f2235a5d5e7ec66e420050a4eec
[ "Apache-2.0" ]
null
null
null
apps/users/urls.py
yktimes/YkForm
24ed846646336f2235a5d5e7ec66e420050a4eec
[ "Apache-2.0" ]
null
null
null
apps/users/urls.py
yktimes/YkForm
24ed846646336f2235a5d5e7ec66e420050a4eec
[ "Apache-2.0" ]
null
null
null
from tornado.web import url from apps.users.handler import SmsHandler,RegesterHandler,LoginHandler urlpattern = ( url('/code/',SmsHandler), url('/register/',RegesterHandler), url('/login/',LoginHandler), )
22
70
0.722727
00b9aa6afdf32c36d85ab8fbe34101ad29e322df
978
py
Python
extract_all_wikidata_qids.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
3
2021-04-14T13:31:12.000Z
2022-02-13T00:33:37.000Z
extract_all_wikidata_qids.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
10
2019-07-26T08:10:07.000Z
2021-06-10T17:53:43.000Z
extract_all_wikidata_qids.py
philsMINT/AnnoMathTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
2
2020-02-21T10:35:31.000Z
2020-05-27T06:13:35.000Z
import bz2 import codecs import re import time import json file = '/volumes/Stuff/latest-all.json.bz2' out_path = '/volumes/Stuff/unzipped/test.json' source_file = bz2.BZ2File(file, "r") output_file = codecs.open(out_path,'w+','utf-8') all_items = {} start = time.time() count = 0 for line in source_file: line_dec...
23.853659
107
0.629857
f42ee5a960f09090663cc2f65b1ebdcf4cebe5a1
12,512
py
Python
python/ccxt/bithumb.py
geometrybase/ccxt
1fa343a822e1f5be7304e82feeeecadec86fa9d5
[ "MIT" ]
null
null
null
python/ccxt/bithumb.py
geometrybase/ccxt
1fa343a822e1f5be7304e82feeeecadec86fa9d5
[ "MIT" ]
null
null
null
python/ccxt/bithumb.py
geometrybase/ccxt
1fa343a822e1f5be7304e82feeeecadec86fa9d5
[ "MIT" ]
1
2018-05-05T11:55:19.000Z
2018-05-05T11:55:19.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import base64 import hashlib from ccxt.base.errors import ExchangeError class bithumb (Exchange):...
38.030395
126
0.485374
1577482f439544984c843c3949c9070c42e3a7e8
397
py
Python
tests/func_kiel.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
1
2022-03-16T16:37:11.000Z
2022-03-16T16:37:11.000Z
tests/func_kiel.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
tests/func_kiel.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
'''Tests running the Kiel code examples.''' import cytest # from ./lib; must be first class TestKiel(cytest.FunctionalTestCase): SOURCE_DIR = 'data/curry/kiel/' PRINT_SKIPPED_GOALS = False CURRYPATH = 'data/curry/kiel/lib' CONVERTER = 'topython' CLEAN_KWDS = { 'diamond': {'keep_empty_lines': True, 'kee...
28.357143
86
0.672544
a6744d4a951f7eb15841e0a98c7be56bcbc569f4
6,948
py
Python
objmodel/step05_mem_optimize/test_objmodel.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
80
2020-06-04T01:34:30.000Z
2022-03-21T08:10:01.000Z
objmodel/step05_mem_optimize/test_objmodel.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
5
2021-02-09T01:02:09.000Z
2021-03-29T02:11:06.000Z
objmodel/step05_mem_optimize/test_objmodel.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
11
2020-11-06T01:11:11.000Z
2022-03-06T07:19:58.000Z
import math import unittest from .objmodel import define_class, create_instance, is_instance, Object, Type class ObjModelTest(unittest.TestCase): def test_get_set_field(self): # Python class A: pass obj = A() obj.a = 1 self.assertEqual(1, obj.a) obj.b ...
27.681275
89
0.534111
73ebae30517919e5252424ec9e19cd616145d283
48,761
py
Python
grpc-proto/gen/milvus_pb2_grpc.py
DragonDriver/pymilvus
0aa62073a688e515f3354db241bf5780c430ea23
[ "Apache-2.0" ]
null
null
null
grpc-proto/gen/milvus_pb2_grpc.py
DragonDriver/pymilvus
0aa62073a688e515f3354db241bf5780c430ea23
[ "Apache-2.0" ]
null
null
null
grpc-proto/gen/milvus_pb2_grpc.py
DragonDriver/pymilvus
0aa62073a688e515f3354db241bf5780c430ea23
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import common_pb2 as common__pb2 import milvus_pb2 as milvus__pb2 class MilvusServiceStub(object): """Missing associated documentation comment in .proto fi...
46.262808
124
0.657124
a57371c93eabf368b7893b70df8ee46fb218fc36
682
py
Python
onnx_pytorch/op_code_generators/Ceil.py
BernardJiang/onnx-pytorch
d5181b1267f16d540881caec4bdce1103d0630d6
[ "Apache-2.0" ]
66
2021-05-05T08:03:22.000Z
2022-03-10T07:03:02.000Z
onnx_pytorch/op_code_generators/Ceil.py
BernardJiang/onnx-pytorch
d5181b1267f16d540881caec4bdce1103d0630d6
[ "Apache-2.0" ]
21
2021-05-06T02:56:42.000Z
2021-11-25T03:52:14.000Z
onnx_pytorch/op_code_generators/Ceil.py
BernardJiang/onnx-pytorch
d5181b1267f16d540881caec4bdce1103d0630d6
[ "Apache-2.0" ]
18
2021-05-05T11:54:09.000Z
2022-03-25T17:42:32.000Z
import onnx import torch from onnx_pytorch.op_code_generators import OpCodeGenerator class CeilOpCodeGenerator(OpCodeGenerator): def __init__(self, onnx_ver=onnx.defs.onnx_opset_version(), torch_ver=torch.__version__): super(CeilOpCodeGenerator, self).__init__(onnx_ver, torch_ver...
32.47619
68
0.71261
d8c10e697a50b7309cfef7a690732d8b766ae1ef
2,794
py
Python
polecat/rest/schema_builder.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/rest/schema_builder.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/rest/schema_builder.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
from urllib.parse import urljoin import logging from polecat.model import default_blueprint from ..model import omit from .schema import RestSchema, RestView logger = logging.getLogger(__name__) class RestSchemaBuilder: def build(self): logger.debug('Building REST schema') self.post_build_hook...
28.222222
80
0.632427
b2544a5fb4c976e10b078f0e04357318f4af9d19
218
py
Python
tests/basic/raise.py
treeform/pystorm
3a2224bcdaccc5a2abf6a820c0bcf7afa3e6fed4
[ "MIT" ]
50
2015-03-24T19:45:34.000Z
2022-02-20T04:34:26.000Z
tests/basic/raise.py
MoonStarCZW/py2js
6cda2b1d3cf281a5ca92c18b08ac9fa1c389cbea
[ "MIT" ]
2
2017-02-26T09:43:07.000Z
2017-03-06T20:04:24.000Z
tests/basic/raise.py
Slater-Victoroff/pyjaco
89c4e3c46399c5023b0e160005d855a01241c58a
[ "MIT" ]
12
2016-03-07T09:30:49.000Z
2021-09-05T20:38:47.000Z
a = "hello" try: try: print "Trying illegal access" x = "abc" x.abc() except: print "Exception raised, re-raising" raise except: print "Exception raised" pass
13.625
44
0.522936
8b67ff131092e548657838bbad1390462b1648a6
1,509
py
Python
notify/__init__.py
aikikode/uspeak
1d288484a997a71a8ff63d6f52f88069d0225056
[ "MIT" ]
7
2015-07-24T09:51:47.000Z
2020-01-01T06:33:40.000Z
notify/__init__.py
aikikode/uspeak
1d288484a997a71a8ff63d6f52f88069d0225056
[ "MIT" ]
null
null
null
notify/__init__.py
aikikode/uspeak
1d288484a997a71a8ff63d6f52f88069d0225056
[ "MIT" ]
5
2017-11-15T06:22:26.000Z
2020-04-15T23:45:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from enum import Enum from gi.repository import Notify import os IMG_DIR = 'ico' MIC = 'mic.png' OK = 'ok.png' ERROR = 'error.png' CUR_DUR = os.path.dirname(os.path.realpath(__file__)) OK_ICON = os.path.join(CUR_DUR, IMG_DIR, OK) MIC_ICON = os.path.join(CUR_DUR, IMG_DI...
23.578125
98
0.658714
dbd77888876b8476d0e69a70c3d67227825cb6d8
999
py
Python
app/base/util.py
fsdev124/Flask_admin
e79e8b5d655733dd63dec8ad671b2687672559d9
[ "MIT" ]
null
null
null
app/base/util.py
fsdev124/Flask_admin
e79e8b5d655733dd63dec8ad671b2687672559d9
[ "MIT" ]
null
null
null
app/base/util.py
fsdev124/Flask_admin
e79e8b5d655733dd63dec8ad671b2687672559d9
[ "MIT" ]
null
null
null
import hashlib, binascii, os # Inspiration -> https://www.vitoshacademy.com/hashing-passwords-in-python/ def hash_pass( password ): """Hash a password for storing.""" salt = hashlib.sha256(os.urandom(60)).hexdigest().encode('ascii') pwdhash = hashlib.pbkdf2_hmac('sha512', password.encode('utf-8'), ...
39.96
75
0.621622
a98f9b9b365f7ab7ac7af54522796a20df39346e
40,602
py
Python
toontown/parties/DistributedPartyCannonActivity.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
1
2021-02-25T06:22:49.000Z
2021-02-25T06:22:49.000Z
toontown/parties/DistributedPartyCannonActivity.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
null
null
null
toontown/parties/DistributedPartyCannonActivity.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
2
2020-11-08T03:38:35.000Z
2021-09-02T07:03:47.000Z
import math from pandac.PandaModules import * from direct.distributed.ClockDelta import * from direct.interval.IntervalGlobal import * from direct.task.Task import Task from toontown.toontowngui import TTDialog from toontown.toonbase.ToonBaseGlobal import * from toontown.toonbase import ToontownGlobals from toontown.to...
42.559748
458
0.619428
50be60d4e4462041399a3a8d10e93dfde1cbca31
792
py
Python
samples/openapi3/client/petstore/python/test/test_readonly.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
11,868
2018-05-12T02:58:07.000Z
2022-03-31T21:19:39.000Z
samples/openapi3/client/petstore/python/test/test_readonly.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
9,672
2018-05-12T14:25:43.000Z
2022-03-31T23:59:30.000Z
samples/openapi3/client/petstore/python/test/test_readonly.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
4,776
2018-05-12T12:06:08.000Z
2022-03-31T19:52:51.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import sys impor...
22
174
0.674242
3f8aa91a4f4ad069cba25941cd45af64e24ad50a
810
py
Python
nxos_config_import/forms.py
j-sulliman/acici
25f20bf2cdc1ceb1b4752ef0608e9628035912d3
[ "BSD-3-Clause" ]
4
2019-07-20T11:37:32.000Z
2020-02-03T07:09:12.000Z
nxos_config_import/forms.py
j-sulliman/acici
25f20bf2cdc1ceb1b4752ef0608e9628035912d3
[ "BSD-3-Clause" ]
8
2019-12-04T23:46:30.000Z
2021-06-10T18:30:30.000Z
nxos_config_import/forms.py
j-sulliman/acici
25f20bf2cdc1ceb1b4752ef0608e9628035912d3
[ "BSD-3-Clause" ]
null
null
null
from django import forms from .models import FvAEPg, EpgInputForm, PushDataApic, Document from django.db import models from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ class EpgForm(forms.ModelForm): class Meta: model = EpgInputForm fields...
23.142857
64
0.6
31558d854e9bb2e4ae63741030b6bef18d2e139f
7,918
py
Python
ogr/services/github/pull_request.py
shreyaspapi/ogr
176add79eeb7d71e765550da76c9cdc8aced9e92
[ "MIT" ]
null
null
null
ogr/services/github/pull_request.py
shreyaspapi/ogr
176add79eeb7d71e765550da76c9cdc8aced9e92
[ "MIT" ]
null
null
null
ogr/services/github/pull_request.py
shreyaspapi/ogr
176add79eeb7d71e765550da76c9cdc8aced9e92
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018-2019 Red Hat, Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
34.277056
99
0.659384
f018f613ea3b8d4b09b84eea9d9c22fec05579e5
4,731
py
Python
heat/tests/openstack/neutron/test_neutron.py
larsks/heat
11064586e90166a037f8868835e6ce36f7306276
[ "Apache-2.0" ]
null
null
null
heat/tests/openstack/neutron/test_neutron.py
larsks/heat
11064586e90166a037f8868835e6ce36f7306276
[ "Apache-2.0" ]
null
null
null
heat/tests/openstack/neutron/test_neutron.py
larsks/heat
11064586e90166a037f8868835e6ce36f7306276
[ "Apache-2.0" ]
null
null
null
# # 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, software # ...
42.241071
78
0.617628
1c9a3a2c4175d26f12418b11afb7056bf59c97b1
2,758
py
Python
extract_api.py
jphacks/TK_1909
45c06c248d799a017c9784bcdf36774031a18aea
[ "MIT" ]
null
null
null
extract_api.py
jphacks/TK_1909
45c06c248d799a017c9784bcdf36774031a18aea
[ "MIT" ]
null
null
null
extract_api.py
jphacks/TK_1909
45c06c248d799a017c9784bcdf36774031a18aea
[ "MIT" ]
null
null
null
import pandas as pd from flask import Flask, jsonify, render_template, redirect, request, url_for,current_app import datetime import requests import matplotlib.pyplot as plt app = Flask(__name__) #if __name__ in "__main__": # app.run(debug=True, threaded=True, port=3000) @app.route("/jp_api/<manth_flg>", methods=...
31.340909
115
0.59971
3f6f4a3aa7b398715f4c101eb68c927dfa07c41f
5,972
py
Python
02_hsn_v1_lean/hsn_v1/histonet.py
EassonY/wsss-analysis
5b8bdc4e948b45785c1640273ca995001b81e4d7
[ "MIT" ]
1
2020-05-25T07:55:34.000Z
2020-05-25T07:55:34.000Z
02_hsn_v1_lean/hsn_v1/histonet.py
EassonY/wsss-analysis
5b8bdc4e948b45785c1640273ca995001b81e4d7
[ "MIT" ]
null
null
null
02_hsn_v1_lean/hsn_v1/histonet.py
EassonY/wsss-analysis
5b8bdc4e948b45785c1640273ca995001b81e4d7
[ "MIT" ]
null
null
null
import os import keras import numpy as np from keras.models import model_from_json from keras import optimizers import scipy from scipy import io class HistoNet: def __init__(self, params): # Set constant parameters # TODO: extract mean, std dynamically self.train_mean = 193.09203 s...
52.849558
120
0.680342
5807113194c4e3d8feff22261683000c90bb3288
4,305
py
Python
lingvo/tasks/car/summary_test.py
halostorm/lingvo
0919a77e4fb899e1adb65658523d49098aa9ae3b
[ "Apache-2.0" ]
1
2020-08-04T08:39:35.000Z
2020-08-04T08:39:35.000Z
lingvo/tasks/car/summary_test.py
halostorm/lingvo
0919a77e4fb899e1adb65658523d49098aa9ae3b
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/car/summary_test.py
halostorm/lingvo
0919a77e4fb899e1adb65658523d49098aa9ae3b
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.763158
80
0.642741
83b1016f6fea8f7dcfd178e630d04fd539d5df8c
6,117
py
Python
nb.py
ak53amod/sentiment-analysis-project
63b81f6f80b92d7f027f7853617f1e547b6cb898
[ "BSD-3-Clause" ]
null
null
null
nb.py
ak53amod/sentiment-analysis-project
63b81f6f80b92d7f027f7853617f1e547b6cb898
[ "BSD-3-Clause" ]
null
null
null
nb.py
ak53amod/sentiment-analysis-project
63b81f6f80b92d7f027f7853617f1e547b6cb898
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd from sklearn import metrics import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.preprocessing import LabelEncoder df_train = pd.read_csv("data/training.csv") positive_string = "" negative_string = "...
30.282178
270
0.645578
20105756ca4f3e224ba0a1b6af9eb311ff9a3c6d
30
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Mathieu and Related Functions/mathieu_modsem1 Odd modified Mathieu function of the first kind and its derivative.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Mathieu and Related Functions/mathieu_modsem1 Odd modified Mathieu function of the first kind and its derivative.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Mathieu and Related Functions/mathieu_modsem1 Odd modified Mathieu function of the first kind and its derivative.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
special.mathieu_modsem1(m,q,x)
30
30
0.833333
e09001013437372a1e163a2cf16e67dad2469a49
6,419
py
Python
social/tests/backends/test_github.py
ubergrape/python-social-auth
81179bd8755df1361d2d0fe219df26308dafa951
[ "BSD-3-Clause" ]
null
null
null
social/tests/backends/test_github.py
ubergrape/python-social-auth
81179bd8755df1361d2d0fe219df26308dafa951
[ "BSD-3-Clause" ]
null
null
null
social/tests/backends/test_github.py
ubergrape/python-social-auth
81179bd8755df1361d2d0fe219df26308dafa951
[ "BSD-3-Clause" ]
null
null
null
import json from httpretty import HTTPretty from social.exceptions import AuthFailed from social.tests.backends.oauth import OAuth2Test class GithubOAuth2Test(OAuth2Test): backend_path = 'social.backends.github.GithubOAuth2' user_data_url = 'https://api.github.com/user' expected_username = 'foobar' ...
33.962963
77
0.611154
189f6cdaaa58558c4d4be9815a88c8d8e9802b87
326
py
Python
build/check_discrepancies.py
nimishgautam/covid19sweden
0a7067779f95c67d558abfc2173200c3bcc16869
[ "MIT" ]
1
2020-05-28T15:11:45.000Z
2020-05-28T15:11:45.000Z
build/check_discrepancies.py
nimishgautam/covid19sweden
0a7067779f95c67d558abfc2173200c3bcc16869
[ "MIT" ]
null
null
null
build/check_discrepancies.py
nimishgautam/covid19sweden
0a7067779f95c67d558abfc2173200c3bcc16869
[ "MIT" ]
null
null
null
import sys input_csv = "../data/csv/deaths_by_region.csv" def return_totals(): with open(input_csv, 'r') as inputcsv: rows = [x.strip() for x in inputcsv.readlines()] header = rows[0] rows = rows[1:] total = 0 for row in rows: vals = row.split(',') total += int( vals[4] ) return ...
21.733333
52
0.59816
5cf5075b4ea2745aa5f01d88e4fa4478c04cd70f
4,088
py
Python
tests/tests_build_workflow/test_build_args.py
boktorbb-amzn/opensearch-build
ea5a964b2a570ac518b380ef6efd42c38ae9f911
[ "Apache-2.0" ]
62
2021-05-14T04:06:09.000Z
2022-03-23T03:30:13.000Z
tests/tests_build_workflow/test_build_args.py
boktorbb-amzn/opensearch-build
ea5a964b2a570ac518b380ef6efd42c38ae9f911
[ "Apache-2.0" ]
1,590
2021-05-07T20:21:19.000Z
2022-03-31T23:57:53.000Z
tests/tests_build_workflow/test_build_args.py
mch2/opensearch-build
39464ae1ded2b628d5b6cacb22064b715906520d
[ "Apache-2.0" ]
134
2021-05-07T19:27:56.000Z
2022-03-24T23:06:17.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import logging import os import unittest from unittest.mock import patch from build_workflow.build_args import BuildArgs cla...
37.504587
95
0.680773
3ff6b0d2d70988438193eb6f0e47834d23770cb6
691
py
Python
migrations/versions/bda189d9227c_adding_created_at_to_work_orders.py
Mozartted/flask_api_test
efeba165a1e4f9359658f7655b9cb8b3ec9e8ba4
[ "Apache-2.0" ]
null
null
null
migrations/versions/bda189d9227c_adding_created_at_to_work_orders.py
Mozartted/flask_api_test
efeba165a1e4f9359658f7655b9cb8b3ec9e8ba4
[ "Apache-2.0" ]
null
null
null
migrations/versions/bda189d9227c_adding_created_at_to_work_orders.py
Mozartted/flask_api_test
efeba165a1e4f9359658f7655b9cb8b3ec9e8ba4
[ "Apache-2.0" ]
null
null
null
"""Adding Created At to Work Orders. Revision ID: bda189d9227c Revises: 4abfafaf3d92 Create Date: 2021-06-23 00:51:09.847327 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bda189d9227c' down_revision = '4abfafaf3d92' branch_labels = None depends_on = None d...
23.827586
87
0.700434
a9f1e344424dc31c5769cbca71734145aafddb71
4,108
py
Python
model/densenet.py
unajun/cvlab-project
8447e2d6ab072ad8609b2a66d9395d6c9aa48888
[ "Apache-2.0" ]
null
null
null
model/densenet.py
unajun/cvlab-project
8447e2d6ab072ad8609b2a66d9395d6c9aa48888
[ "Apache-2.0" ]
null
null
null
model/densenet.py
unajun/cvlab-project
8447e2d6ab072ad8609b2a66d9395d6c9aa48888
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable import torchvision.datasets as dset import torchvision.transforms as transforms from torch.utils.data import DataLoader import torchvision.models as models import sys import math clas...
35.413793
87
0.616358
8a19e192f9da245f0fc6c77e1664bd28c53fcdea
2,253
py
Python
CS2/7350_inheritance/galaga_like_example/main.py
nealholt/python_programming_curricula
eda4432dab97178b4a5712b160f5b1da74c068cb
[ "MIT" ]
7
2020-10-14T03:23:12.000Z
2022-03-09T23:16:13.000Z
CS2/7350_inheritance/galaga_like_example/main.py
nealholt/python_programming_curricula
eda4432dab97178b4a5712b160f5b1da74c068cb
[ "MIT" ]
null
null
null
CS2/7350_inheritance/galaga_like_example/main.py
nealholt/python_programming_curricula
eda4432dab97178b4a5712b160f5b1da74c068cb
[ "MIT" ]
11
2021-02-21T20:50:56.000Z
2022-01-29T07:01:28.000Z
import pygame, math, random, sys, sprite, bullet import player as player_character from colors import * #Setup pygame.init() width = 900 height = 600 screen = pygame.display.set_mode((width,height)) clock = pygame.time.Clock() def userInputToPlayer(player): keys = pygame.key.get_pressed() if keys[pygame.K_UP]...
28.884615
86
0.627164
111ce8fbd6e6d62510ce4aec07150418fe197a95
5,674
py
Python
examples/imagenet_vgg_test.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
2
2021-05-29T11:18:14.000Z
2021-09-09T14:29:21.000Z
examples/imagenet_vgg_test.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
null
null
null
examples/imagenet_vgg_test.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
1
2021-05-01T16:34:37.000Z
2021-05-01T16:34:37.000Z
import numpy as np from athena import ndarray from athena import gpu_ops as ad import time import argparse executor_ctx = ndarray.gpu(0) variable_list = [] val_list = [] rand = np.random.RandomState(seed=123) def get_variable(name, size): global variable_list, val_list x = ad.Variable(name=name) x_val = ...
35.911392
95
0.645753
5f9d976b5b4cc817df2e9f0f0cb4084fd2eb1911
3,026
py
Python
app.py
seobeomjin/flask-mnist-8
844ee2cf4cf896a45f818157b7b2e320c75aaecc
[ "MIT" ]
null
null
null
app.py
seobeomjin/flask-mnist-8
844ee2cf4cf896a45f818157b7b2e320c75aaecc
[ "MIT" ]
null
null
null
app.py
seobeomjin/flask-mnist-8
844ee2cf4cf896a45f818157b7b2e320c75aaecc
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, render_template from torch_utils import transform_imgae, get_prediction app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/about') def about(): return render_template('about.html') ALLOWED_EXTENSIONS = {'png', 'jpg'...
32.537634
225
0.592531
ef1bb8df4e74b6bbda1962fa3eba7b27b5554955
520
py
Python
usa_greencard/users/admin.py
DancingChaos/USA_GreenCard
675bd54b003da548f4175d0c8121e5c0e3ea65ce
[ "MIT" ]
null
null
null
usa_greencard/users/admin.py
DancingChaos/USA_GreenCard
675bd54b003da548f4175d0c8121e5c0e3ea65ce
[ "MIT" ]
null
null
null
usa_greencard/users/admin.py
DancingChaos/USA_GreenCard
675bd54b003da548f4175d0c8121e5c0e3ea65ce
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from usa_greencard.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm ...
28.888889
83
0.75
64124f6c4cbd60e556a36a3e8e61e380fc62abd2
652
py
Python
modules/spotify-habits/satellipy/configuration/spotify.py
alanzanattadev/satellite
1c2592015bd60544584433df6f24c16780f10f24
[ "MIT" ]
2
2018-06-20T14:49:17.000Z
2018-08-07T08:17:02.000Z
modules/spotify-habits/satellipy/configuration/spotify.py
alanzanattadev/satellite
1c2592015bd60544584433df6f24c16780f10f24
[ "MIT" ]
5
2018-07-09T10:20:26.000Z
2018-09-03T15:13:54.000Z
modules/spotify-habits/satellipy/configuration/spotify.py
alanzanattadev/satellite
1c2592015bd60544584433df6f24c16780f10f24
[ "MIT" ]
1
2018-08-27T16:01:09.000Z
2018-08-27T16:01:09.000Z
import os import spotipy from spotipy.oauth2 import SpotifyClientCredentials def parse_env(): # Spotify token initialization token = os.environ.get('SPOTIFY_TOKEN', "") return { 'token': token } def get_client(configuration): client_credentials_manager = SpotifyClientCredentials() to...
24.148148
65
0.662577
538b9574a1147d70aee9a8931fa66a9bcb7e6c8e
167
py
Python
deeplearn-base-python/learn_chapter_1.py
lfkdsk/learning-ML
e297f03f506c61e55772a1f7e6b34f1daf7bdbec
[ "Apache-2.0" ]
1
2017-07-14T13:46:09.000Z
2017-07-14T13:46:09.000Z
deeplearn-base-python/learn_chapter_1.py
lfkdsk/MachineLearning-HomeWork
e297f03f506c61e55772a1f7e6b34f1daf7bdbec
[ "Apache-2.0" ]
null
null
null
deeplearn-base-python/learn_chapter_1.py
lfkdsk/MachineLearning-HomeWork
e297f03f506c61e55772a1f7e6b34f1daf7bdbec
[ "Apache-2.0" ]
1
2018-09-29T08:42:28.000Z
2018-09-29T08:42:28.000Z
import numpy as np def AND(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 tmp = np.sum(w * x) + b if tmp <= 0: return 0 else: return 1
11.928571
25
0.520958
0e5c1bf662c4baebb35092a8772f3f9c0f59f5f0
89
py
Python
rocketBench/Utilities.py
Exerkitus/RocketBench
d7d4f21352306fdf242e78519a89aebae3af30de
[ "MIT" ]
null
null
null
rocketBench/Utilities.py
Exerkitus/RocketBench
d7d4f21352306fdf242e78519a89aebae3af30de
[ "MIT" ]
null
null
null
rocketBench/Utilities.py
Exerkitus/RocketBench
d7d4f21352306fdf242e78519a89aebae3af30de
[ "MIT" ]
null
null
null
def counter(limit = 100): i = 1 while 1 <= limit: yield i i += 1
14.833333
25
0.438202
38abbdb1935c9ed60ce4f1b7fb5ba991492a2b79
3,920
py
Python
Calculator/Helpers/History.py
ArielCabib/python-tkinter-calculator
3bbe9c71dc8ac92b800c5fd249d6601a52b8e775
[ "BSD-3-Clause" ]
1
2015-03-22T02:59:44.000Z
2015-03-22T02:59:44.000Z
Calculator/Helpers/History.py
ArielCabib/python-tkinter-calculator
3bbe9c71dc8ac92b800c5fd249d6601a52b8e775
[ "BSD-3-Clause" ]
null
null
null
Calculator/Helpers/History.py
ArielCabib/python-tkinter-calculator
3bbe9c71dc8ac92b800c5fd249d6601a52b8e775
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # History.py # # Copyright 2010 Ariel Haviv <ariel.haviv@gmail.com> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # ...
31.612903
119
0.680867
374da578fb7300c8d68e65e3b357103a8b3551f9
5,290
py
Python
apps/dev/views.py
AlexFire-Dev/OnlineChat
2411baffeee2abd90931e66e736081b23411082b
[ "MIT" ]
null
null
null
apps/dev/views.py
AlexFire-Dev/OnlineChat
2411baffeee2abd90931e66e736081b23411082b
[ "MIT" ]
null
null
null
apps/dev/views.py
AlexFire-Dev/OnlineChat
2411baffeee2abd90931e66e736081b23411082b
[ "MIT" ]
null
null
null
import channels.layers from asgiref.sync import async_to_sync from django.http import HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.urls import reverse, reverse_lazy from django.views.generic import TemplateView, CreateView, UpdateView, RedirectView from apps.chat.models impor...
30.935673
101
0.612287
e3cae1afefbf4083ffda583ae6062274cae875d6
851
py
Python
test/test_v1_devices.py
gabriel-samfira/client-python
c2e184c3cad6797af35b0160a36ffcbba77284a7
[ "Apache-2.0" ]
21
2018-02-21T23:59:28.000Z
2021-12-08T05:47:37.000Z
test/test_v1_devices.py
gabriel-samfira/client-python
c2e184c3cad6797af35b0160a36ffcbba77284a7
[ "Apache-2.0" ]
47
2018-02-01T15:35:01.000Z
2022-02-11T07:45:54.000Z
test/test_v1_devices.py
gabriel-samfira/client-python
c2e184c3cad6797af35b0160a36ffcbba77284a7
[ "Apache-2.0" ]
19
2018-04-03T09:20:52.000Z
2021-06-01T06:07:28.000Z
# coding: utf-8 """ KubeVirt API This is KubeVirt API an add-on for Kubernetes. OpenAPI spec version: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest i...
18.911111
79
0.678026
d272202535fcd9b50791e35e16da7ce0fab144f2
95
py
Python
Python/First.py
6299481145/Neha-bharti
4f80498695a5ae8a16eda64fb73854c156a1d66a
[ "MIT" ]
null
null
null
Python/First.py
6299481145/Neha-bharti
4f80498695a5ae8a16eda64fb73854c156a1d66a
[ "MIT" ]
null
null
null
Python/First.py
6299481145/Neha-bharti
4f80498695a5ae8a16eda64fb73854c156a1d66a
[ "MIT" ]
null
null
null
a = input("Enter a number: ") b = input("Enter another number: ") c = int(a) + int(b) print(c)
19
35
0.6
7b72b6f2752e7eed353925babcfe6c3937cb258a
283
py
Python
bendeep/utils.py
sagorbrur/bendeep
083bd732a81f9932480dd8b0a7d3567b26e594d5
[ "MIT" ]
5
2020-06-08T11:17:47.000Z
2021-08-30T07:01:07.000Z
bendeep/utils.py
sagorbrur/bendeep
083bd732a81f9932480dd8b0a7d3567b26e594d5
[ "MIT" ]
2
2020-11-10T19:58:42.000Z
2021-05-19T18:48:58.000Z
bendeep/utils.py
sagorbrur/bendeep
083bd732a81f9932480dd8b0a7d3567b26e594d5
[ "MIT" ]
1
2021-11-26T02:23:45.000Z
2021-11-26T02:23:45.000Z
import logging logger = logging.getLogger(__name__) try: import torch _torch_available = True logger.info("PyTorch version {} available.".format(torch.__version__)) except ImportError: _torch_available = False def is_torch_available(): return _torch_available
21.769231
74
0.75265
8a6fd1dd2af99ca9ca751d9ce132c48a721bc290
230
py
Python
Week 5 - playList/shuffleplaylist.py
karmenrai2/BeginnerRoom-2020
399feb82f865baee2458019ef308ad5ffddb9fa4
[ "Unlicense" ]
5
2021-01-19T00:31:22.000Z
2021-03-05T02:31:10.000Z
Week 5 - playList/shuffleplaylist.py
karmenrai2/BeginnerRoom-2020
399feb82f865baee2458019ef308ad5ffddb9fa4
[ "Unlicense" ]
34
2021-01-14T21:00:18.000Z
2021-03-11T17:57:26.000Z
Week 5 - playList/shuffleplaylist.py
karmenrai2/BeginnerRoom-2020
399feb82f865baee2458019ef308ad5ffddb9fa4
[ "Unlicense" ]
43
2021-01-14T20:40:47.000Z
2021-03-11T02:29:30.000Z
song1 = input("Insert your first song: ") song2 = input("Insert your second song: ") shuffle = [song1, song2] shuffle.sort() song3 = input("Insert your third song: ") shuffle.append(song3) shuffle.reverse() print(shuffle)
25.555556
43
0.695652
4053e45d1e0db6f84be3a5541843d6bb91fcc4fe
13,742
py
Python
.test-infra/jenkins/dependency_check/dependency_check_report_generator.py
KangZhiDong/beam
f8f584e819ad7d681698d246cfb07029a29208cd
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-02-26T11:17:11.000Z
2021-02-26T11:17:11.000Z
.test-infra/jenkins/dependency_check/dependency_check_report_generator.py
KangZhiDong/beam
f8f584e819ad7d681698d246cfb07029a29208cd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
.test-infra/jenkins/dependency_check/dependency_check_report_generator.py
KangZhiDong/beam
f8f584e819ad7d681698d246cfb07029a29208cd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # 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 "Lic...
37.961326
143
0.680541
40049db174e40a0b120517c12c415a218830b606
6,752
py
Python
module/layers.py
baristahell/OBB-YOLOv3
7c60cf3c8ebcf55d3c1f405fbb135591ebd20802
[ "MIT" ]
null
null
null
module/layers.py
baristahell/OBB-YOLOv3
7c60cf3c8ebcf55d3c1f405fbb135591ebd20802
[ "MIT" ]
null
null
null
module/layers.py
baristahell/OBB-YOLOv3
7c60cf3c8ebcf55d3c1f405fbb135591ebd20802
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Created on Wed Jul 25 16:47:03 2018 @author: 60236 """ import torch import torch.nn as nn import torch.nn.functional as F from .util import predict_transform, get_target class conv_bn(nn.Module): def __init__(self,in_planes, planes, kernel=3, stride=1, padding...
45.013333
172
0.603673
9e9dc5bddf32e2bf0b3b315498e4e3591c330677
3,305
py
Python
Software/Estadística/MCMC/LCDM/AGN_nuisance/AGN_3params/MCMC_BAO_LCDM_2params.py
matiasleize/tesis_licenciatura
5df6e341314583702b466b8ed7977d410f0ee457
[ "MIT" ]
null
null
null
Software/Estadística/MCMC/LCDM/AGN_nuisance/AGN_3params/MCMC_BAO_LCDM_2params.py
matiasleize/tesis_licenciatura
5df6e341314583702b466b8ed7977d410f0ee457
[ "MIT" ]
null
null
null
Software/Estadística/MCMC/LCDM/AGN_nuisance/AGN_3params/MCMC_BAO_LCDM_2params.py
matiasleize/tesis_licenciatura
5df6e341314583702b466b8ed7977d410f0ee457
[ "MIT" ]
null
null
null
""" Created on Wed Feb 5 13:04:17 2020 @author: matias """ import numpy as np from matplotlib import pyplot as plt from scipy.optimize import minimize import emcee import corner from scipy.interpolate import interp1d import time np.random.seed(1) import sys import os from os.path import join as osjoin from pc_path ...
31.47619
96
0.720726
be770121bea4039dc3181628338c21c52c8de399
228
py
Python
output/models/nist_data/list_pkg/byte/schema_instance/nistschema_sv_iv_list_byte_pattern_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/byte/schema_instance/nistschema_sv_iv_list_byte_pattern_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/byte/schema_instance/nistschema_sv_iv_list_byte_pattern_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.byte.schema_instance.nistschema_sv_iv_list_byte_pattern_5_xsd.nistschema_sv_iv_list_byte_pattern_5 import NistschemaSvIvListBytePattern5 __all__ = [ "NistschemaSvIvListBytePattern5", ]
38
174
0.881579
a1e712e038c16eb348fab3fe9988d196df7865b9
1,980
py
Python
70_question/dynamic_programming/max_profit_with_k_transactions_test.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
26
2019-06-07T05:29:47.000Z
2022-03-19T15:32:27.000Z
70_question/dynamic_programming/max_profit_with_k_transactions_test.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
null
null
null
70_question/dynamic_programming/max_profit_with_k_transactions_test.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
6
2019-10-10T06:39:28.000Z
2020-05-12T19:50:55.000Z
import max_profit_with_k_transactions as program import unittest class TestProgram(unittest.TestCase): def test_case_1(self): self.assertEqual(program.maxProfitWithKTransactions([], 1), 0) def test_case_2(self): self.assertEqual(program.maxProfitWithKTransactions([1], 1), 0) def test_ca...
35.357143
118
0.670202
409c37e8b6df3265bb739b4e6eafdc427ba2aa2e
4,510
py
Python
rlexperiments/ppo/play_mujoco.py
asprenger/rl-experiments
738794b0c8f1151fd973a502bc3e512be7ec1213
[ "MIT" ]
6
2018-05-01T14:37:56.000Z
2021-08-19T09:24:03.000Z
rlexperiments/ppo/play_mujoco.py
asprenger/rl-experiments
738794b0c8f1151fd973a502bc3e512be7ec1213
[ "MIT" ]
null
null
null
rlexperiments/ppo/play_mujoco.py
asprenger/rl-experiments
738794b0c8f1151fd973a502bc3e512be7ec1213
[ "MIT" ]
null
null
null
import time import os import argparse from random import randint import numpy as np import pyglet, pyglet.window as pw, pyglet.window.key as pwk from pyglet import gl import gym from gym.wrappers.monitoring.video_recorder import VideoRecorder import tensorflow as tf from rlexperiments.common.util import ts_rand, ensure...
31.538462
129
0.626386