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
15fe3264637abe95d2ebc65314bec5a68f45721f
13,222
py
Python
cvat/settings/base.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
cvat/settings/base.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
cvat/settings/base.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2021-09-17T10:19:30.000Z
2021-09-17T10:19:30.000Z
# Copyright (C) 2018-2019 Intel Corporation # # SPDX-License-Identifier: MIT """ Django settings for CVAT project. Generated by 'django-admin startproject' using Django 2.0.1. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values...
31.037559
117
0.644607
b21e9c99c6a2707981369de65c3756116ceb260c
22,778
py
Python
bin/user/weatherlink_live/mappers.py
nickbp/weewx-weatherlink-live
2c18b5da578e175cec3c893bf73450e53da71fd4
[ "MIT" ]
12
2021-01-10T12:00:25.000Z
2022-01-22T09:20:05.000Z
bin/user/weatherlink_live/mappers.py
nickbp/weewx-weatherlink-live
2c18b5da578e175cec3c893bf73450e53da71fd4
[ "MIT" ]
19
2020-10-21T12:38:27.000Z
2022-03-02T13:33:19.000Z
bin/user/weatherlink_live/mappers.py
nickbp/weewx-weatherlink-live
2c18b5da578e175cec3c893bf73450e53da71fd4
[ "MIT" ]
2
2021-02-19T13:09:04.000Z
2022-03-01T20:16:55.000Z
# Copyright © 2020-2021 Michael Schantl and contributors # # 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,...
41.414545
119
0.661998
7c3a97080a949eb4e87f5a2e69cd7e08b4cc6120
216
py
Python
maiusculas.py
carlos-moreno/algorithms
1b202dc853f2e00982de0882a5af498c6cefad31
[ "MIT" ]
null
null
null
maiusculas.py
carlos-moreno/algorithms
1b202dc853f2e00982de0882a5af498c6cefad31
[ "MIT" ]
null
null
null
maiusculas.py
carlos-moreno/algorithms
1b202dc853f2e00982de0882a5af498c6cefad31
[ "MIT" ]
null
null
null
def maiusculas(frase): """ Retorna as letras em maiúsculo da frase. """ result = [] for letra in frase: if letra.isupper(): result.append(letra) return ''.join(result)
21.6
48
0.550926
4b70834e6f4aa06f73bb356a2a9286f9ae3b5676
7,192
py
Python
experiments/budget/MCTS_bot_budget_50.py
ernestvmo/botbowl
8b70faf615fc70eb40aa8b3519a7d2339872ea15
[ "Apache-2.0" ]
1
2022-03-29T09:53:03.000Z
2022-03-29T09:53:03.000Z
experiments/budget/MCTS_bot_budget_50.py
ernestvmo/botbowl
8b70faf615fc70eb40aa8b3519a7d2339872ea15
[ "Apache-2.0" ]
null
null
null
experiments/budget/MCTS_bot_budget_50.py
ernestvmo/botbowl
8b70faf615fc70eb40aa8b3519a7d2339872ea15
[ "Apache-2.0" ]
null
null
null
import botbowl from botbowl.core import Action, Agent import numpy as np from copy import deepcopy import random import time from botbowl.core.model import Team PRINT = False IGNORE_IN_GAME = [botbowl.ActionType.PLACE_PLAYER, botbowl.ActionType.END_SETUP, botbowl.ActionType.SETUP_FORMATION_SPREAD, b...
38.05291
248
0.616379
af75099a3768361c0ee9f9d369ad1d904dbf9b77
1,089
py
Python
asyncio_gevent/async_to_sync.py
steverice/asyncio-gevent
6978ecaab63b957361bca2b2e6e87703c50fde89
[ "MIT" ]
null
null
null
asyncio_gevent/async_to_sync.py
steverice/asyncio-gevent
6978ecaab63b957361bca2b2e6e87703c50fde89
[ "MIT" ]
null
null
null
asyncio_gevent/async_to_sync.py
steverice/asyncio-gevent
6978ecaab63b957361bca2b2e6e87703c50fde89
[ "MIT" ]
null
null
null
from typing import Callable, Optional from .future_to_greenlet import future_to_greenlet def async_to_sync( coroutine: Optional[Callable] = None, autostart_future: bool = True, autocancel_future: bool = True, autokill_greenlet: bool = True, ): """ Wrap a coroutine function in a blocking funct...
27.923077
112
0.637282
131c3ea26cac6972757e10c993324a9b8338a82a
1,916
py
Python
var/spack/repos/builtin/packages/r-hmisc/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-02-22T18:04:31.000Z
2021-02-22T18:04:31.000Z
var/spack/repos/builtin/packages/r-hmisc/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-01-11T09:16:43.000Z
2021-01-12T20:07:23.000Z
var/spack/repos/builtin/packages/r-hmisc/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-09-21T14:35:49.000Z
2020-09-21T14:35:49.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RHmisc(RPackage): """Contains many functions useful for data analysis, high-level grap...
46.731707
95
0.680585
c38fc218d1a667abb31f0aaff1e9851ac311886d
11,101
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest import functools from azure.core.exceptions import HttpResponseError from azure.ai.formrecognizer._generated.models import CopyOperationRes...
47.038136
157
0.756238
b986581a75d6e77342ffb7d23b1f42458660eb4b
16,025
py
Python
source/result/file_3_7.py
lintongtong123/JackokiePapers
65a4be9c9b636c7c3d0c4ab24096572a737480c7
[ "MIT" ]
null
null
null
source/result/file_3_7.py
lintongtong123/JackokiePapers
65a4be9c9b636c7c3d0c4ab24096572a737480c7
[ "MIT" ]
null
null
null
source/result/file_3_7.py
lintongtong123/JackokiePapers
65a4be9c9b636c7c3d0c4ab24096572a737480c7
[ "MIT" ]
1
2019-09-24T01:32:44.000Z
2019-09-24T01:32:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/3/11 15:23 # @Author : Jackokie Zhao # @Site : www.jackokie.com # @File : file_3_7.py # @Software: PyCharm # @contact: jackokie@gmail.com import os import pickle import numpy as np import tensorflow as tf import matplotlib from sklearn.manifold im...
35.065646
117
0.641685
134a38233fbed1864a2130e993b80235bad8fce8
932
py
Python
py/py_0679_freefarea.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0679_freefarea.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0679_freefarea.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 679: Freefarea # https://projecteuler.net/problem=679 # # Let $S$ be the set consisting of the four letters # $\{\texttt{`A'},\texttt{`E'},\texttt{`F'},\texttt{`R'}\}$. For $n\ge 0$, let # $S^*(n)$ denote the set of words of length $n$ consisting of letters # belonging to $S$....
33.285714
79
0.656652
4f7a0cab6d4f0169abeb46234e6f0864d6c7ef54
2,169
py
Python
tests/test_pgbmut.py
intendo/pygbe
6ac43ebfb3a4d342a380d7938af119cfba587746
[ "BSD-3-Clause" ]
36
2015-02-17T15:45:23.000Z
2019-10-28T15:14:23.000Z
tests/test_pgbmut.py
intendo/pygbe
6ac43ebfb3a4d342a380d7938af119cfba587746
[ "BSD-3-Clause" ]
48
2016-02-04T22:50:36.000Z
2019-06-25T17:01:06.000Z
tests/test_pgbmut.py
intendo/pygbe
6ac43ebfb3a4d342a380d7938af119cfba587746
[ "BSD-3-Clause" ]
26
2015-05-15T22:14:50.000Z
2019-02-07T19:00:47.000Z
import os import pickle import pytest import functools import sys import atexit def report_e(): print('PGBmut sensor test could not run using GPU because pycuda were not found. CPU were used instead.') def report_g(): print('PGBmut sensor test had run using GPU.') def report_c(): print('PGBmut sensor test...
31.897059
109
0.578608
99bce0b5adda970c23bc14d9cae4bedc06d7fd13
19,266
py
Python
tests/unit_tests/test_ef_version.py
momoneko/ef-open
6b679bc48922988a4a4ddc1872205d1f1800c192
[ "Apache-2.0" ]
null
null
null
tests/unit_tests/test_ef_version.py
momoneko/ef-open
6b679bc48922988a4a4ddc1872205d1f1800c192
[ "Apache-2.0" ]
null
null
null
tests/unit_tests/test_ef_version.py
momoneko/ef-open
6b679bc48922988a4a4ddc1872205d1f1800c192
[ "Apache-2.0" ]
1
2020-11-13T13:26:41.000Z
2020-11-13T13:26:41.000Z
""" Copyright 2016-2017 Ellation, 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 writing, sof...
43.294382
129
0.677307
eaec47195410207093b2bee34ffdc05cc3214bb8
8,447
py
Python
softlearning/environments/adapters/softlearning_env.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
null
null
null
softlearning/environments/adapters/softlearning_env.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
7
2020-09-25T22:41:46.000Z
2022-03-12T00:37:25.000Z
softlearning/environments/adapters/softlearning_env.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
null
null
null
"""Implements the SoftlearningEnv that is usable in softlearning algorithms.""" from abc import ABCMeta, abstractmethod from collections import defaultdict, OrderedDict import copy import numpy as np import tensorflow as tf from gym import spaces class SoftlearningEnv(metaclass=ABCMeta): """The abstract Softlea...
34.904959
123
0.623061
3dbbed9e49b0f5d602e74d7cc65cc155ec40cff3
1,727
py
Python
theano_ctc/__init__.py
deeplearningtoolkit/theano-ctc
31660d462ed569093801b69dc6700db0e12b34f7
[ "BSD-3-Clause" ]
null
null
null
theano_ctc/__init__.py
deeplearningtoolkit/theano-ctc
31660d462ed569093801b69dc6700db0e12b34f7
[ "BSD-3-Clause" ]
null
null
null
theano_ctc/__init__.py
deeplearningtoolkit/theano-ctc
31660d462ed569093801b69dc6700db0e12b34f7
[ "BSD-3-Clause" ]
null
null
null
import theano from theano_ctc.cpu_ctc import CpuCtc import os from ctypes import cdll cdll.LoadLibrary(os.path.join(os.environ["CTC_LIB"], "build", "libwarpctc.so")) def ctc_cost(acts, labels, input_lengths = None): """ Given sequences of output layer activations and labels, compute the softmax output at each ti...
47.972222
106
0.729589
f7d17b69180bd9f32c7a77e9e4c7314b69b02a02
16,368
py
Python
botorch/acquisition/monte_carlo.py
shalijiang/bo
af13f0a38b579ab504f49a01f1ced13532a3ad49
[ "MIT" ]
3
2020-08-07T17:15:57.000Z
2021-07-12T11:16:44.000Z
botorch/acquisition/monte_carlo.py
shalijiang/bo
af13f0a38b579ab504f49a01f1ced13532a3ad49
[ "MIT" ]
1
2021-06-07T08:22:11.000Z
2021-07-07T23:02:14.000Z
botorch/acquisition/monte_carlo.py
shalijiang/bo
af13f0a38b579ab504f49a01f1ced13532a3ad49
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. r""" Batch acquisition functions using the reparameterization trick in combination with (quasi) Monte-Carlo sampling. S...
39.346154
86
0.627077
005d75f97fe749116d2c741874220f8976062e66
321
py
Python
2_Python Advanced/7_Gui/17_labelframe.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
null
null
null
2_Python Advanced/7_Gui/17_labelframe.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
1
2021-06-02T00:58:47.000Z
2021-06-02T00:58:47.000Z
2_Python Advanced/7_Gui/17_labelframe.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri May 25 09:56:31 2018 @author: SilverDoe """ from tkinter import * root = Tk() labelframe = LabelFrame(root, text = "This is a LabelFrame") labelframe.pack(fill = "both", expand = "yes") left = Label(labelframe, text = "Inside the LabelFrame") left.pack() root.mainloop(...
17.833333
60
0.663551
f56417bdf6023afc15ca0a484e8a89a479dd9f08
35,478
py
Python
test/functional/swift_test_client.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
test/functional/swift_test_client.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
test/functional/swift_test_client.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
33.438266
79
0.522493
d05d3df2cd3f63a844ce605a658bf818c64a69b9
2,846
py
Python
MNIST/TF_handwriting_convolutional.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
MNIST/TF_handwriting_convolutional.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
MNIST/TF_handwriting_convolutional.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 13 10:57:52 2018 @author: zyv57124 """ import scipy.io as sio import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers.convolutional import Conv2D from k...
28.747475
111
0.721363
5d9b07f23d659b00864ced60f8279c3befaf99ca
3,400
py
Python
examples/expectations/column_aggregate_expectation_template.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
null
null
null
examples/expectations/column_aggregate_expectation_template.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
null
null
null
examples/expectations/column_aggregate_expectation_template.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
null
null
null
""" This is a template for creating custom ColumnExpectations. For detailed instructions on how to use it, please see: https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_aggregate_expectations """ from typing import Dict from great_expectations.core...
40
153
0.756176
b7a5b4e7e027ddc784ef714a76cd98a9f6074bbd
3,330
py
Python
code/tools/external/python/pygccxml/declarations/type_visitor.py
jgresula/jagpdf
6c36958b109e6522e6b57d04144dd83c024778eb
[ "MIT" ]
54
2015-02-16T14:25:16.000Z
2022-03-16T07:54:25.000Z
code/tools/external/python/pygccxml/declarations/type_visitor.py
jgresula/jagpdf
6c36958b109e6522e6b57d04144dd83c024778eb
[ "MIT" ]
null
null
null
code/tools/external/python/pygccxml/declarations/type_visitor.py
jgresula/jagpdf
6c36958b109e6522e6b57d04144dd83c024778eb
[ "MIT" ]
30
2015-03-05T08:52:25.000Z
2022-02-17T13:49:15.000Z
# Copyright 2004 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) """ defines types visitor class interface """ class type_visitor_t(object): """ types visitor interface All functi...
25.227273
75
0.627628
f7930f37fe1811c075b7ec3976fe12faf6721d9e
404
py
Python
datastructures/trees/binary/lca_recursion.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
datastructures/trees/binary/lca_recursion.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
datastructures/trees/binary/lca_recursion.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
""" Standard recipe to find the lowest common ancestor """ def lca(self, root, a, b): # Standard Recipe to find the lowest-common ancestor if root is None or root is a or root is b: return root left = self.lca(root.left, a, b) right = self.lca(root.right, a, b) if left is not No...
26.933333
57
0.626238
48e7a64c643d6c73d67723f7d381d422e42d4a4a
463
py
Python
nomadgram/users/migrations/0004_user_profile_image.py
kcrossfitter/nomadgram
a75d83c4421249ca25527ef7817ccb3e3f4213e5
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0004_user_profile_image.py
kcrossfitter/nomadgram
a75d83c4421249ca25527ef7817ccb3e3f4213e5
[ "MIT" ]
18
2020-06-05T17:05:48.000Z
2022-03-11T23:26:59.000Z
nomadgram/users/migrations/0004_user_profile_image.py
kcrossfitter/nomadgram
a75d83c4421249ca25527ef7817ccb3e3f4213e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-01-28 15:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20180127_1042'), ] operations = [ migrations.AddField( ...
22.047619
61
0.615551
67d26e64b89cc40dc53f5014b3f41d3c371fa0e2
56,659
py
Python
openprocurement/tender/openuadefense/tests/auction.py
Leits/openprocurement.tender.openuadefense
e7c512ed21166ae1928950bce80a11106fa2e545
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/openuadefense/tests/auction.py
Leits/openprocurement.tender.openuadefense
e7c512ed21166ae1928950bce80a11106fa2e545
[ "Apache-2.0" ]
2
2021-03-26T00:34:56.000Z
2022-03-21T22:20:41.000Z
openprocurement/tender/openuadefense/tests/auction.py
leits/openprocurement.tender.openuadefense
e7c512ed21166ae1928950bce80a11106fa2e545
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from datetime import timedelta from openprocurement.api.models import get_now from openprocurement.tender.openuadefense.tests.base import ( BaseTenderUAContentWebTest, test_tender_data, test_features_tender_ua_data) from openprocurement.api.tests.base import test_features_te...
53.451887
173
0.611147
645afd4eaac9343b36b5c47de6fc4ec110676f19
1,265
py
Python
nginxpla/module/search_engine.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
nginxpla/module/search_engine.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
nginxpla/module/search_engine.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
from nginxpla.module_config import ModuleConfig from nginxpla.module.simple import SimpleModule from functools import lru_cache class SearchEngineModule(SimpleModule): def handle_record(self, record): if self.is_needed is False: return record required = ['se'] if self.is_neede...
27.5
81
0.592885
e58713521b5f756e6da04e7786cfec76d9e823c8
3,192
py
Python
recipes/docopt.cpp/all/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
null
null
null
recipes/docopt.cpp/all/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
5
2021-03-25T01:49:56.000Z
2021-03-28T16:42:12.000Z
recipes/docopt.cpp/all/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
4
2021-06-03T23:24:03.000Z
2022-03-03T17:16:09.000Z
from conans import ConanFile, CMake, tools import os class DocoptCppConan(ConanFile): name = "docopt.cpp" license = "MIT" url = "https://github.com/conan-io/conan-center-index" homepage = "https://github.com/docopt/docopt.cpp" settings = "os", "compiler", "build_type", "arch" description = "C+...
38.457831
92
0.642231
0dafdbf49cbdaf084e9d0c0ea9b21c160ec98361
15,407
py
Python
gym_collision_avoidance/envs/config.py
cmubig/Social-Navigation-Simulator
5b91b4b1a3d88748ffa3d08689fec60e78ea0634
[ "MIT" ]
3
2021-12-16T05:39:14.000Z
2022-02-25T06:07:51.000Z
gym_collision_avoidance/envs/config.py
cmubig/Social-Navigation-Simulator
5b91b4b1a3d88748ffa3d08689fec60e78ea0634
[ "MIT" ]
null
null
null
gym_collision_avoidance/envs/config.py
cmubig/Social-Navigation-Simulator
5b91b4b1a3d88748ffa3d08689fec60e78ea0634
[ "MIT" ]
1
2021-11-09T18:04:01.000Z
2021-11-09T18:04:01.000Z
import numpy as np #from gym_collision_avoidance.experiments.src.master_config import Master_Config from gym_collision_avoidance.experiments.src.master_config_deploy import Master_Config master_config = Master_Config() class Config(object): def __init__(self): ##############################################...
48.602524
165
0.58058
88d9d0bbffdaafb81a1d7b42bc0d930b8010810f
173,519
py
Python
windows/generated_def/meta.py
1orenz0/PythonForWindows
f3de7b528b020b45ac6a871c975006fc1db1c3b0
[ "BSD-3-Clause" ]
1
2021-06-22T16:50:31.000Z
2021-06-22T16:50:31.000Z
windows/generated_def/meta.py
1orenz0/PythonForWindows
f3de7b528b020b45ac6a871c975006fc1db1c3b0
[ "BSD-3-Clause" ]
null
null
null
windows/generated_def/meta.py
1orenz0/PythonForWindows
f3de7b528b020b45ac6a871c975006fc1db1c3b0
[ "BSD-3-Clause" ]
1
2021-05-12T12:58:27.000Z
2021-05-12T12:58:27.000Z
windef = set(['STATUS_SUSPEND_COUNT_EXCEEDED', 'ERROR_BAD_NET_NAME', 'CMSG_ENVELOPED', 'STANDARD_RIGHTS_WRITE', 'RRF_RT_REG_QWORD', 'ERROR_SYSTEM_SHUTDOWN', 'PROV_FORTEZZA', 'STATUS_TRANSPORT_FULL', 'STATUS_ACPI_INCORRECT_ARGUMENT_COUNT', 'DBG_REPLY_LATER', 'AF_HYLINK', 'ERROR_INVALID_VARIANT', 'CMSG_HASH_DATA_PARAM', ...
7,544.304348
124,672
0.855399
1df8a39d1f8c408d3f53c69ae3ff79ade2548192
1,057
py
Python
duckql/functions/convert_timezone.py
Sibyx/duckql-python
7780f145d643e6884178f146218551731984eea3
[ "MIT" ]
4
2020-04-15T09:35:15.000Z
2021-11-11T13:03:46.000Z
duckql/functions/convert_timezone.py
Sibyx/duckql-python
7780f145d643e6884178f146218551731984eea3
[ "MIT" ]
2
2020-04-08T12:10:56.000Z
2020-04-15T09:14:44.000Z
duckql/functions/convert_timezone.py
Sibyx/duckql-python
7780f145d643e6884178f146218551731984eea3
[ "MIT" ]
1
2020-04-15T09:11:39.000Z
2020-04-15T09:11:39.000Z
from typing import Union try: from typing import Literal except ImportError: from typing_extensions import Literal from ..functions.base import BaseFunction from ..properties.constant import Constant from ..properties.property import Property from ..structures.cast_operator import CastOperator from ..structur...
30.2
102
0.698202
259a8b898575aecbeca4f2c355d5bbd6a72d6d56
1,298
py
Python
test/test_ec2_configuration.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
11
2016-05-30T17:16:45.000Z
2021-06-11T19:32:59.000Z
test/test_ec2_configuration.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
25
2016-05-02T23:05:19.000Z
2020-11-18T22:43:20.000Z
test/test_ec2_configuration.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
30
2016-04-29T17:17:11.000Z
2022-02-11T04:58:37.000Z
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
31.658537
409
0.738829
604cce555e29403e3e88e3d278df919e0167ba99
5,438
py
Python
vurf/cli.py
ViliamV/vurf
2d56471366c6ed3e69f951cd5415e304d9865c7d
[ "MIT" ]
1
2021-12-28T17:50:51.000Z
2021-12-28T17:50:51.000Z
vurf/cli.py
ViliamV/vurf
2d56471366c6ed3e69f951cd5415e304d9865c7d
[ "MIT" ]
null
null
null
vurf/cli.py
ViliamV/vurf
2d56471366c6ed3e69f951cd5415e304d9865c7d
[ "MIT" ]
null
null
null
import sys from functools import wraps from types import SimpleNamespace from typing import Callable, Iterable, Optional import click from vurf.constants import APP_NAME, CONFIG_NAME from vurf.lib import ensure_config, expand_path from vurf.nodes import Root from vurf.parser import parse from vurf.types import Confi...
25.895238
99
0.726186
12c6e9f11fc88f9ba9590eb1b332fba8e9332cc0
1,322
py
Python
test/plugins/test_rope_rename.py
borisbarath/python-language-server
b03f2d791e0ed66d5f1cc544869c0383cfdc3d9d
[ "MIT" ]
null
null
null
test/plugins/test_rope_rename.py
borisbarath/python-language-server
b03f2d791e0ed66d5f1cc544869c0383cfdc3d9d
[ "MIT" ]
null
null
null
test/plugins/test_rope_rename.py
borisbarath/python-language-server
b03f2d791e0ed66d5f1cc544869c0383cfdc3d9d
[ "MIT" ]
null
null
null
import os import pytest from pyls import uris from pyls.plugins.rope_rename import pyls_rename from pyls.workspace import Document DOC_NAME = "test1.py" DOC = """class Test1(): pass class Test2(Test1): pass """ @pytest.fixture def tmp_workspace(workspace): def create_file(name, content): fn = o...
26.44
105
0.627837
74c5c5fa64de2ffbc884d445ed770b4f2a61985c
20,942
py
Python
ppcls/arch/backbone/legendary_models/resnet.py
zhusonghe/PaddleClas-1
e2e492f9c78ed5084cc50d7c45eef4cc41e1eeaf
[ "Apache-2.0" ]
150
2021-11-02T05:31:51.000Z
2022-03-24T06:22:22.000Z
ppcls/arch/backbone/legendary_models/resnet.py
zhusonghe/PaddleClas-1
e2e492f9c78ed5084cc50d7c45eef4cc41e1eeaf
[ "Apache-2.0" ]
4
2021-12-01T11:55:58.000Z
2022-02-24T16:14:37.000Z
ppcls/arch/backbone/legendary_models/resnet.py
zhusonghe/PaddleClas-1
e2e492f9c78ed5084cc50d7c45eef4cc41e1eeaf
[ "Apache-2.0" ]
33
2021-11-03T00:29:41.000Z
2022-03-15T13:15:56.000Z
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applica...
35.375
114
0.605577
e8957fa2d8ce44c186f4ebc7f82f40c4f39634e6
2,245
py
Python
hedwig/callback.py
eytanhanig/pr-hedwig-python
972cf918101db7ed2cd980450f76216a77b448c6
[ "Apache-2.0" ]
null
null
null
hedwig/callback.py
eytanhanig/pr-hedwig-python
972cf918101db7ed2cd980450f76216a77b448c6
[ "Apache-2.0" ]
null
null
null
hedwig/callback.py
eytanhanig/pr-hedwig-python
972cf918101db7ed2cd980450f76216a77b448c6
[ "Apache-2.0" ]
null
null
null
import inspect import typing from hedwig import Message, ConfigurationError, MessageType, CallbackNotFound from hedwig.conf import settings class Callback: def __init__(self, fn: typing.Callable) -> None: self._fn = fn signature = inspect.signature(fn) message_found = False for p ...
34.538462
115
0.621381
fdbd75daa981f2748e6535821616b487e34ab153
162
py
Python
mysite/urls.py
kunlun-bird/pythonlearning-django
fcdfe1b420a744dee47817f6f15d5044673dd248
[ "Apache-2.0" ]
null
null
null
mysite/urls.py
kunlun-bird/pythonlearning-django
fcdfe1b420a744dee47817f6f15d5044673dd248
[ "Apache-2.0" ]
null
null
null
mysite/urls.py
kunlun-bird/pythonlearning-django
fcdfe1b420a744dee47817f6f15d5044673dd248
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('blog.urls')) ]
20.25
37
0.685185
b7ac370cdbfd7afef0b615e5fe8292b6851c6b91
20,674
py
Python
src/skspatial/objects/line.py
CristianoPizzamiglio/scikit-spatial
95ca2d4f2948cf6a69ec4bc7236b70fd66db1de5
[ "BSD-3-Clause" ]
35
2019-08-22T04:25:29.000Z
2022-03-10T16:23:45.000Z
src/skspatial/objects/line.py
CristianoPizzamiglio/scikit-spatial
95ca2d4f2948cf6a69ec4bc7236b70fd66db1de5
[ "BSD-3-Clause" ]
241
2019-03-04T23:08:26.000Z
2022-03-27T13:25:30.000Z
src/skspatial/objects/line.py
CristianoPizzamiglio/scikit-spatial
95ca2d4f2948cf6a69ec4bc7236b70fd66db1de5
[ "BSD-3-Clause" ]
7
2020-11-13T21:40:05.000Z
2022-02-07T00:38:30.000Z
"""Module for the Line class.""" from __future__ import annotations from typing import Optional import numpy as np from matplotlib.axes import Axes from mpl_toolkits.mplot3d import Axes3D from skspatial.objects._base_line_plane import _BaseLinePlane from skspatial.objects.point import Point from skspatial.objects.po...
27.060209
93
0.539373
1633a57866b9ac6b9e401581ce89b3a72aa8b732
10,949
py
Python
src/bin/plots/plot_inception_cka_vs_crossentropy.py
asd249180/similarity_and_matching
225cbc4850a790a37ea18d4c519a4306e9db3590
[ "Apache-2.0" ]
null
null
null
src/bin/plots/plot_inception_cka_vs_crossentropy.py
asd249180/similarity_and_matching
225cbc4850a790a37ea18d4c519a4306e9db3590
[ "Apache-2.0" ]
null
null
null
src/bin/plots/plot_inception_cka_vs_crossentropy.py
asd249180/similarity_and_matching
225cbc4850a790a37ea18d4c519a4306e9db3590
[ "Apache-2.0" ]
null
null
null
import pandas as pd from matplotlib import pyplot as plt import os import sys import seaborn as sns import json import argparse from dotmap import DotMap import numpy as np # ================================================================ # SETTINGS # ================================================================ ...
31.553314
98
0.615125
4761b35b44c48ce9a261e0f6f3a4d0904c089b06
1,658
py
Python
src/tests/test_click_config_merge.py
ndejong/pyvboxmanage
6cb49546782ae97f177e7035982b1dc86b8f61db
[ "BSD-2-Clause" ]
1
2020-12-28T02:19:35.000Z
2020-12-28T02:19:35.000Z
src/tests/test_click_config_merge.py
ndejong/pyvboxmanage
6cb49546782ae97f177e7035982b1dc86b8f61db
[ "BSD-2-Clause" ]
null
null
null
src/tests/test_click_config_merge.py
ndejong/pyvboxmanage
6cb49546782ae97f177e7035982b1dc86b8f61db
[ "BSD-2-Clause" ]
null
null
null
import os import pytest from click.testing import CliRunner from pyvboxmanage.cli import click def test_pyvboxmanage_dryrun_test01_merge_test02(): runner = CliRunner() config01_filename = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'test01config.yml') config02_filename = os.path.join(os.path...
82.9
644
0.767793
65a5b5c275bdf931708c131fcec5a61d8b7df8dc
4,462
py
Python
gitee/models/body.py
pygitee/pygitee
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
[ "MIT" ]
null
null
null
gitee/models/body.py
pygitee/pygitee
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
[ "MIT" ]
null
null
null
gitee/models/body.py
pygitee/pygitee
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
[ "MIT" ]
null
null
null
# coding: utf-8 import pprint import re # noqa: F401 import six class Body(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name ...
27.374233
97
0.548633
720fb70c201343c2a3f7a4786e75f6db8b12cba3
4,852
py
Python
source/CreateRevisionFunction/app.py
kwwaikar/aws-data-exchange-publisher-coordinator
6626f198f2fc433418debf25a6fab5a9b26d2b57
[ "MIT-0" ]
3
2020-12-29T18:37:09.000Z
2021-12-10T02:08:15.000Z
source/CreateRevisionFunction/app.py
kwwaikar/aws-data-exchange-publisher-coordinator
6626f198f2fc433418debf25a6fab5a9b26d2b57
[ "MIT-0" ]
null
null
null
source/CreateRevisionFunction/app.py
kwwaikar/aws-data-exchange-publisher-coordinator
6626f198f2fc433418debf25a6fab5a9b26d2b57
[ "MIT-0" ]
4
2021-03-01T20:37:25.000Z
2021-12-09T17:26:01.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ############################################################################## # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this #...
43.711712
124
0.570692
1e4c384f0500582fa7d925aad7319c5a5ffc3453
3,363
py
Python
hpe3d/utils/renderer.py
dorianhenning/hpe3d
14ea2b0f76145793e2b15ce6fd31736c4be26b5b
[ "MIT" ]
2
2020-05-27T08:21:20.000Z
2021-06-28T15:42:58.000Z
hpe3d/utils/renderer.py
dorianhenning/hpe3d
14ea2b0f76145793e2b15ce6fd31736c4be26b5b
[ "MIT" ]
1
2022-03-22T14:07:05.000Z
2022-03-22T14:07:08.000Z
hpe3d/utils/renderer.py
dorianhenning/hpe3d
14ea2b0f76145793e2b15ce6fd31736c4be26b5b
[ "MIT" ]
4
2020-05-27T08:21:21.000Z
2021-08-08T19:17:13.000Z
import torch from torchvision.utils import make_grid import numpy as np import pyrender import trimesh import hpe3d.utils.constants as C class Renderer: ''' Renderer used for visualizing the SMPL model Code adapted from https://github.com/vchoutas/smplify-x ''' def __init__( self, ...
36.554348
94
0.559917
1e6fc48510a4b6dc67c1fb82dceb56acc72b4060
6,482
py
Python
tests/loader/test_olsson_loader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
122
2021-02-07T23:01:58.000Z
2022-03-30T13:10:35.000Z
tests/loader/test_olsson_loader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
273
2021-01-30T16:45:26.000Z
2022-03-16T15:02:33.000Z
tests/loader/test_olsson_loader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
13
2021-03-12T03:01:27.000Z
2022-03-11T03:16:54.000Z
"""Unit tests for the Olsson Loader class. Authors: John Lambert """ import unittest from pathlib import Path from unittest.mock import MagicMock, patch import dask import numpy as np import pytest from gtsam import Cal3Bundler, Rot3, Pose3 import gtsfm.utils.io as io_utils from gtsfm.loader.olsson_loader import Ols...
40.26087
120
0.693613
2be4f8301abfbbfe85af6245730d54ba3ffe9d45
5,367
py
Python
pytorchvideo/models/hub/x3d.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
2,391
2021-04-13T18:10:18.000Z
2022-03-31T15:07:09.000Z
pytorchvideo/models/hub/x3d.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
156
2021-04-13T18:51:49.000Z
2022-03-31T08:05:50.000Z
pytorchvideo/models/hub/x3d.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
231
2021-04-14T05:04:55.000Z
2022-03-22T09:35:46.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from typing import Any, Optional import torch.nn as nn from pytorchvideo.models.x3d import create_x3d from torch.hub import load_state_dict_from_url root_dir = "https://dl.fbaipublicfiles.com/pytorchvideo/model_zoo/kinetics" checkpoint_paths = ...
32.92638
87
0.680455
2b121abb100f78a39359b341bc923a75ce77edaa
2,978
py
Python
data-science-not/weeks/m01_introduction/phone_book.py
nurseiit/comm-unist
e7a122c910bf12eddf5c0ffc2c666995b4989408
[ "MIT" ]
4
2019-07-03T00:57:01.000Z
2020-12-11T23:06:11.000Z
data-science-not/weeks/m01_introduction/phone_book.py
nurseiit/comm-unist
e7a122c910bf12eddf5c0ffc2c666995b4989408
[ "MIT" ]
1
2019-10-19T17:42:42.000Z
2019-10-19T17:42:42.000Z
data-science-not/weeks/m01_introduction/phone_book.py
nurseiit/comm-unist
e7a122c910bf12eddf5c0ffc2c666995b4989408
[ "MIT" ]
1
2019-11-05T04:14:08.000Z
2019-11-05T04:14:08.000Z
""" Your objective is to implement a simple Phone Book. Phone numbers are stored in a dictionary, e.g. { "Adam" : "010-0000-1111", "Alice" : "010-0011-2233"} """ def add_contact(phone_book, name, number): """ This function allows to store a new contact in the phone book :param phone_book: the phone book (d...
39.184211
107
0.629617
c3a129ba5941f083eb6e36a06f255b2dab07c6af
1,172
py
Python
deploy-agent/deployd/common/caller.py
jsoref/pinterest-teletraan
e1093a8fc232c66b01595f46ed5f2f2ff42d6dc6
[ "Apache-2.0" ]
1
2020-07-31T10:51:29.000Z
2020-07-31T10:51:29.000Z
deploy-agent/deployd/common/caller.py
jsoref/pinterest-teletraan
e1093a8fc232c66b01595f46ed5f2f2ff42d6dc6
[ "Apache-2.0" ]
null
null
null
deploy-agent/deployd/common/caller.py
jsoref/pinterest-teletraan
e1093a8fc232c66b01595f46ed5f2f2ff42d6dc6
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pinterest, 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...
32.555556
74
0.673208
47c2e7bc9728f450efef02b4fcf7a9a98b1e801a
3,234
py
Python
pymatgen/vis/structure_chemview.py
cajfisher/pymatgen
286c304e38102d567723a71f733e0c304b72035d
[ "MIT" ]
6
2015-02-06T08:27:09.000Z
2021-02-28T14:42:52.000Z
pymatgen/vis/structure_chemview.py
cajfisher/pymatgen
286c304e38102d567723a71f733e0c304b72035d
[ "MIT" ]
null
null
null
pymatgen/vis/structure_chemview.py
cajfisher/pymatgen
286c304e38102d567723a71f733e0c304b72035d
[ "MIT" ]
3
2015-10-21T08:04:40.000Z
2019-03-19T23:11:15.000Z
""" Visualization for structures using chemview. """ import numpy as np from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.analysis.molecule_structure_comparator import CovalentRadius from monty.dev import requires try: from chemview import MolecularViewer from chemview.utils import get_a...
40.425
102
0.592455
57812817af07b5843a52812826630ce432c76344
3,257
py
Python
jumboSmash/users/views.py
wolfep15/arith
14e628210e54d8f171dff796e7c71d3ea1574067
[ "MIT" ]
1
2020-08-04T01:10:56.000Z
2020-08-04T01:10:56.000Z
jumboSmash/users/views.py
wolfep15/arith
14e628210e54d8f171dff796e7c71d3ea1574067
[ "MIT" ]
null
null
null
jumboSmash/users/views.py
wolfep15/arith
14e628210e54d8f171dff796e7c71d3ea1574067
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import AllowAny from users.models import User, Profile from users.serializers import ( UserIdSerializer, SimpleUserSerializer, ProfileSerializer, SetUpS...
30.157407
85
0.657353
254f9a7ca77fc0661d244ac0b85f2dd7b0dc260e
2,281
py
Python
app/process/exp_center.py
HansBug/dgdvapp
f3142d2c265afda427bbeee46c8073e1126eeef5
[ "Apache-2.0" ]
null
null
null
app/process/exp_center.py
HansBug/dgdvapp
f3142d2c265afda427bbeee46c8073e1126eeef5
[ "Apache-2.0" ]
null
null
null
app/process/exp_center.py
HansBug/dgdvapp
f3142d2c265afda427bbeee46c8073e1126eeef5
[ "Apache-2.0" ]
null
null
null
import glob import os import pandas as pd from app.proto import MpsProtoData def find_expdata_in_directory(directory: str): matchings = glob.glob1(directory, 'expdata_*') if matchings: return os.path.join(directory, matchings[0]) else: raise FileNotFoundError(f'No expdata file found in {...
28.873418
79
0.530907
5edbf1abbd9b01f17e7def7211c00eac72f2b6f9
435
py
Python
0311_intentional_error.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
0311_intentional_error.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
0311_intentional_error.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys def main(): guest_lists = ['senthil', 'raj', 'ameen'] guest_lists.insert(0, 'naveen') guest_lists.insert(2, 'prabhu') guest_lists.append('ragu') print('list item:', guest_lists[-1]) new_guests = [] new_guests.append(guest_lists[-2]) ...
18.913043
46
0.558621
7ab33c44e643fb860b4f84327659af2debbe5ca3
302
py
Python
awwardsApp/admin.py
derrickmacharia/Awwards
3e07d6e78ba1628fc087e0f865f7930e39891d11
[ "MIT" ]
null
null
null
awwardsApp/admin.py
derrickmacharia/Awwards
3e07d6e78ba1628fc087e0f865f7930e39891d11
[ "MIT" ]
null
null
null
awwardsApp/admin.py
derrickmacharia/Awwards
3e07d6e78ba1628fc087e0f865f7930e39891d11
[ "MIT" ]
null
null
null
from typing import Callable from django.contrib import admin from .models import Category, Location, Profile, Project, Rating # Register your models here. admin.site.register(Project) admin.site.register(Profile) admin.site.register(Category) admin.site.register(Location) admin.site.register(Rating)
27.454545
64
0.817881
0192dfd5eca3ad2dd22df3d187267dfb450c5ba5
1,545
py
Python
lastVer/urls.py
aymanexpo/mini-GED
de23fb57c902bfcc39329fbe4eda647c8d7bf016
[ "MIT" ]
1
2020-09-14T00:54:52.000Z
2020-09-14T00:54:52.000Z
lastVer/urls.py
aymanexpo/mini-GED
de23fb57c902bfcc39329fbe4eda647c8d7bf016
[ "MIT" ]
null
null
null
lastVer/urls.py
aymanexpo/mini-GED
de23fb57c902bfcc39329fbe4eda647c8d7bf016
[ "MIT" ]
null
null
null
"""lastVer URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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='home') Class-based...
39.615385
80
0.70356
59ed4c65b2aaa08599c3a95e0798942319457d67
1,283
py
Python
stockscraper.py
abdu997/StockScraper
24f98a93e13e93cceb743ba7509e769021977c9e
[ "MIT" ]
null
null
null
stockscraper.py
abdu997/StockScraper
24f98a93e13e93cceb743ba7509e769021977c9e
[ "MIT" ]
null
null
null
stockscraper.py
abdu997/StockScraper
24f98a93e13e93cceb743ba7509e769021977c9e
[ "MIT" ]
null
null
null
import sys import csv import requests import json from datetime import datetime from pandas.tseries.offsets import BDay def to_integer(dt_time): return str(10000 * dt_time.year + 100 * dt_time.month + dt_time.day) def GetData(symbol, startdate, days): # Get your token from https://iexcloud.io/cloud-login#/re...
26.183673
108
0.582229
146673a4233746bd7870a270bd1bfc7607b96d2a
2,300
py
Python
src/default/saver.py
Nkzono99/emses_inp_generator
ca9ea33619f1425840a4ba14500705e7199f2356
[ "MIT" ]
null
null
null
src/default/saver.py
Nkzono99/emses_inp_generator
ca9ea33619f1425840a4ba14500705e7199f2356
[ "MIT" ]
null
null
null
src/default/saver.py
Nkzono99/emses_inp_generator
ca9ea33619f1425840a4ba14500705e7199f2356
[ "MIT" ]
null
null
null
import math from utils import UnitConversionKey, Units class Saver: def __init__(self): self.savers = [] self.exceptors = [] def add_saver(self, saver, exceptor=None): if exceptor is None: def exceptor(inp, values, unit): return True self.savers.append(saver) ...
27.380952
64
0.605652
7a4469e08074f68f81fa00d50603bea0e1b3d9a6
12,495
py
Python
docs/conf.py
esert-g/python-bigquery-storage
fd454e6c60f410b1bd4fbc37bda3bcbcb708538b
[ "Apache-2.0" ]
44
2020-02-12T21:28:37.000Z
2022-03-31T06:16:30.000Z
docs/conf.py
esert-g/python-bigquery-storage
fd454e6c60f410b1bd4fbc37bda3bcbcb708538b
[ "Apache-2.0" ]
178
2020-02-05T10:49:45.000Z
2022-03-31T01:48:44.000Z
docs/conf.py
esert-g/python-bigquery-storage
fd454e6c60f410b1bd4fbc37bda3bcbcb708538b
[ "Apache-2.0" ]
23
2020-02-05T23:12:15.000Z
2022-02-24T08:33:14.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
32.709424
88
0.706202
def8904d2c7dd58dedbc787032a9a79323d3e018
3,449
py
Python
MetamorphicTests/all_mutants/load_model_forecast_file/19.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/load_model_forecast_file/19.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/load_model_forecast_file/19.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
1
2022-02-06T14:59:43.000Z
2022-02-06T14:59:43.000Z
def gen_mutant(): import tensorflow as tf from tensorflow.python.saved_model import tag_constants import pandas as pd import numpy as np DATAFILE_VALIDATE = '/home/ubuntu/anurag/rn...
27.592
163
0.635547
b40fe89dc0f0d599e3f7558af830ce29754fa920
6,498
py
Python
whoville/cloudbreak/models/stack_descriptor.py
balazsgaspar/whoville
0d26853bf5cfd3485067b0c23f886e2b4ab742f8
[ "Apache-2.0" ]
30
2017-06-12T13:05:24.000Z
2021-08-03T09:00:48.000Z
whoville/cloudbreak/models/stack_descriptor.py
balazsgaspar/whoville
0d26853bf5cfd3485067b0c23f886e2b4ab742f8
[ "Apache-2.0" ]
6
2017-12-27T23:12:45.000Z
2019-03-07T22:14:24.000Z
whoville/cloudbreak/models/stack_descriptor.py
balazsgaspar/whoville
0d26853bf5cfd3485067b0c23f886e2b4ab742f8
[ "Apache-2.0" ]
31
2017-06-12T13:05:28.000Z
2019-09-20T01:50:29.000Z
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
28.5
984
0.58895
5739d3d841171247f1e2d0e65a66600d1bc25d60
28,966
py
Python
bingads/v13/bulk/entities/bulk_ads.py
wbrp/BingAds-Python-SDK
8262f24f3ef3111ccf3b35b8fd0ef31030fd6621
[ "MIT" ]
null
null
null
bingads/v13/bulk/entities/bulk_ads.py
wbrp/BingAds-Python-SDK
8262f24f3ef3111ccf3b35b8fd0ef31030fd6621
[ "MIT" ]
null
null
null
bingads/v13/bulk/entities/bulk_ads.py
wbrp/BingAds-Python-SDK
8262f24f3ef3111ccf3b35b8fd0ef31030fd6621
[ "MIT" ]
null
null
null
from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13 from bingads.v13.internal.bulk.string_table import _StringTable from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity from bingads.v13.internal.bulk.mappings import _SimpleBulkMapping from bingads.v13.internal.ext...
38.013123
154
0.660395
c90d7e77663332d19369fe943c4825caf3ffad82
370
py
Python
src/app/utils.py
vendari12/Quantified-self
533ffe8e1706c4cde6087c3d3953debc27b41186
[ "Apache-2.0" ]
1
2022-03-26T18:55:20.000Z
2022-03-26T18:55:20.000Z
src/app/utils.py
vendari12/Quantified-self
533ffe8e1706c4cde6087c3d3953debc27b41186
[ "Apache-2.0" ]
null
null
null
src/app/utils.py
vendari12/Quantified-self
533ffe8e1706c4cde6087c3d3953debc27b41186
[ "Apache-2.0" ]
1
2022-03-14T08:59:09.000Z
2022-03-14T08:59:09.000Z
from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() login_manager = LoginManager() def register_template_utils(app): """Register Jinja 2 helpers (called from __init__.py).""" #app.add_template_global(index_for_role) #app.jinja_env.globals.update(json_l...
16.818182
77
0.754054
683ca113c8dd3c94f78ce464193b25e04ba98a19
27,383
py
Python
conftest.py
meghana-sesetti/adversarial-robustness-toolbox
6a5ce9e4142734ad9004e5c093ef8fa754ea6b39
[ "MIT" ]
1
2020-12-26T10:02:05.000Z
2020-12-26T10:02:05.000Z
conftest.py
Tikquuss/adversarial-robustness-toolbox
62ffe7c951d8a60d49a9ea6ac7b04aa4432a3fb7
[ "MIT" ]
33
2021-01-18T08:30:34.000Z
2022-03-11T07:05:13.000Z
conftest.py
Tikquuss/adversarial-robustness-toolbox
62ffe7c951d8a60d49a9ea6ac7b04aa4432a3fb7
[ "MIT" ]
1
2020-09-28T12:58:01.000Z
2020-09-28T12:58:01.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
37.510959
120
0.674397
ee9c6c16b4900505b6a09c0bf7a2dae5293e7576
17,726
py
Python
third_party/tools/trendx_tool/str_unigram_cc_on/tokenizer.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
third_party/tools/trendx_tool/str_unigram_cc_on/tokenizer.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
third_party/tools/trendx_tool/str_unigram_cc_on/tokenizer.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
1
2021-06-16T07:32:17.000Z
2021-06-16T07:32:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function #from __future__ import unicode_literals import logging import string import sys import time # Fall back to default JSON lib if third-party libs is not found. try: import ujson as json except ImportError: try: import...
32.704797
123
0.542649
9a92133b54b41ef6ce7342543bc88b938e290514
9,130
py
Python
3rdParty/V8/V8-5.0.71.39/tools/swarming_client/tools/swarming_load_test_client.py
mikestaub/arangodb
1bdf414de29b31bcaf80769a095933f66f8256ce
[ "ICU", "BSL-1.0", "Zlib", "Apache-2.0" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
3rdParty/V8/V8-5.0.71.39/tools/swarming_client/tools/swarming_load_test_client.py
mikestaub/arangodb
1bdf414de29b31bcaf80769a095933f66f8256ce
[ "ICU", "BSL-1.0", "Zlib", "Apache-2.0" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
3rdParty/V8/V8-5.0.71.39/tools/swarming_client/tools/swarming_load_test_client.py
mikestaub/arangodb
1bdf414de29b31bcaf80769a095933f66f8256ce
[ "ICU", "BSL-1.0", "Zlib", "Apache-2.0" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
#!/usr/bin/env python # Copyright 2013 The Swarming Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 that # can be found in the LICENSE file. """Triggers a ton of fake jobs to test its handling under high load. Generates an histogram with the latencies to proce...
32.491103
80
0.647645
eb23d7a17ff5950ca374f6cb8a76b6940898330d
5,140
py
Python
kubernetes/client/models/v1_env_from_source.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_env_from_source.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
4
2019-11-19T10:33:47.000Z
2022-03-01T03:33:52.000Z
kubernetes/client/models/v1_env_from_source.py
mohramadan911/PythonClientAPI
5d111812c81b7a573ac8661d1aec60bb97072412
[ "Apache-2.0" ]
2
2021-08-10T16:35:31.000Z
2021-09-14T04:53:06.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.20 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
29.371429
124
0.604475
8e3c61d098dcb79591172d5d798be6c7ba001049
28,650
py
Python
tb_rest_client/api/api_pe/role_controller_api.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
30
2020-06-19T06:42:50.000Z
2021-08-23T21:16:36.000Z
tb_rest_client/api/api_pe/role_controller_api.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
25
2021-08-30T01:17:27.000Z
2022-03-16T14:10:14.000Z
tb_rest_client/api/api_pe/role_controller_api.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
23
2020-07-06T13:41:54.000Z
2021-08-23T21:04:50.000Z
# coding: utf-8 """ ThingsBoard REST API ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 OpenAPI spec version: 3.3.3PAAS-RC1 Contact: info@thingsboard.io Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_impo...
53.752345
2,058
0.646806
0e2d7ff42d8230ea0b7194a7ae7e69884eeeca2c
1,402
py
Python
example_random_art.py
maxispeicher/docker_simulation_pipeline_example
4537b036297a8fb591b7ae5656b100da541baace
[ "MIT" ]
6
2020-12-08T10:42:29.000Z
2022-03-25T19:34:37.000Z
example_random_art.py
maxispeicher/docker_simulation_pipeline_example
4537b036297a8fb591b7ae5656b100da541baace
[ "MIT" ]
1
2020-11-26T08:52:40.000Z
2020-11-26T08:52:40.000Z
example_random_art.py
maxispeicher/docker_simulation_pipeline_example
4537b036297a8fb591b7ae5656b100da541baace
[ "MIT" ]
2
2020-11-25T14:30:24.000Z
2020-11-26T09:39:32.000Z
#!/usr/bin/env python """Example code to demonstrate DockerSimManager This example generates random art in different scales and sizes """ from docker_sim_manager import DockerSimManager from pathlib import Path from docker_sim_manager import SimJob __author__ = "Michael Wittmann" __copyright__ = "Copyright 2020, Mic...
35.948718
127
0.708987
b2a17853f79264fdea48f2c004ee05c5bebc8abb
48
py
Python
cfdata/tabular/processors/min_max/__init__.py
carefree0910/carefree-data
ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19
[ "MIT" ]
9
2020-10-25T11:52:34.000Z
2022-01-23T02:45:41.000Z
cfdata/tabular/processors/min_max/__init__.py
carefree0910/carefree-data
ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19
[ "MIT" ]
2
2020-08-02T01:58:48.000Z
2021-02-26T11:24:19.000Z
cfdata/tabular/processors/min_max/__init__.py
carefree0910/carefree-data
ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19
[ "MIT" ]
1
2021-11-04T14:34:13.000Z
2021-11-04T14:34:13.000Z
from .core import MinMax __all__ = ["MinMax"]
9.6
24
0.6875
0a21ed321e23f78e7323df868d974e6f85f082e8
13,714
py
Python
sdk/python/pulumi_azure_native/web/v20160301/get_certificate.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20160301/get_certificate.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20160301/get_certificate.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
36.184697
465
0.638763
32c4f2ff6e6b726ad8286672a093b1873ea8acc6
8,489
py
Python
autoPredictSimple.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
autoPredictSimple.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
autoPredictSimple.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
#IMPORT from keras.models import load_model from PIL import Image import numpy as np import time import matplotlib.pyplot as plt import cv2 import sys from visualizer import visualize from sklearn.metrics import confusion_matrix, plot_confusion_matrix import itertools """ # Classe permettant de réaliser une prédictio...
31.095238
150
0.659795
b754f826c4708a2d49c27e2125b2552eeb71f33b
1,709
py
Python
setoptconf/setting.py
carlio/setoptconf-tmp
959733fa2babe3ae0afe3f8826977fdcf7b8c09a
[ "MIT" ]
null
null
null
setoptconf/setting.py
carlio/setoptconf-tmp
959733fa2babe3ae0afe3f8826977fdcf7b8c09a
[ "MIT" ]
null
null
null
setoptconf/setting.py
carlio/setoptconf-tmp
959733fa2babe3ae0afe3f8826977fdcf7b8c09a
[ "MIT" ]
null
null
null
# pylint: disable=W0401,W0223 import re from .datatype import * from .exception import NamingError __all__ = ( "Setting", "StringSetting", "IntegerSetting", "FloatSetting", "BooleanSetting", "ListSetting", "ChoiceSetting", ) class Setting(DataType): RE_NAME = re.compile(r"^[a-z](?:...
21.3625
68
0.617905
71d097087d8843b67adb12f4cbc261a11f212b20
718
py
Python
setup.py
megacoder/fns
7f3aae85bfff6c322ad895bae94131eda01f1afb
[ "MIT" ]
1
2018-11-27T14:10:38.000Z
2018-11-27T14:10:38.000Z
setup.py
megacoder/fns
7f3aae85bfff6c322ad895bae94131eda01f1afb
[ "MIT" ]
null
null
null
setup.py
megacoder/fns
7f3aae85bfff6c322ad895bae94131eda01f1afb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim: noet sw=4 ts=4 from setuptools import setup import glob import os NAME = 'fns' VERSION = '1.0.2' with open( '{0}/version.py'.format( NAME ), 'w') as f: print >>f, 'Version="{0}"'.format( VERSION ) setup( name = NAME, version = VERSION, description = 'Trave...
23.16129
92
0.586351
d9aa76907831e086c366637615c425b63881eb5b
1,875
py
Python
rir-delegated-latest-requests.py
bashrootshell/ip-country-codes
ed286092dcd2f55c52f329abf76a9a2f509ee8d6
[ "BSD-3-Clause" ]
null
null
null
rir-delegated-latest-requests.py
bashrootshell/ip-country-codes
ed286092dcd2f55c52f329abf76a9a2f509ee8d6
[ "BSD-3-Clause" ]
null
null
null
rir-delegated-latest-requests.py
bashrootshell/ip-country-codes
ed286092dcd2f55c52f329abf76a9a2f509ee8d6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from requests import get from sys import argv from re import search from math import log2 """ Programmed with requests. Global RIR IPv4 CIDR prefix extractor, by country. It now searches for a particular CC in all RIRs: RIPE NCC, APNIC, ARIN, LACNIC and AFRINIC Usage: ./pro...
39.0625
79
0.621333
a00f82f9ea722f36bc22e99b42a9b97612b4f4a4
18,467
py
Python
ects/consensus/difficulty_adjustment.py
ects-io/ects-blockchain
a798034a8c8bce34d4b87fb2c98351d06f9eaf8e
[ "Apache-2.0" ]
null
null
null
ects/consensus/difficulty_adjustment.py
ects-io/ects-blockchain
a798034a8c8bce34d4b87fb2c98351d06f9eaf8e
[ "Apache-2.0" ]
null
null
null
ects/consensus/difficulty_adjustment.py
ects-io/ects-blockchain
a798034a8c8bce34d4b87fb2c98351d06f9eaf8e
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Tuple from ects.consensus.block_record import BlockRecord from ects.consensus.blockchain_interface import BlockchainInterface from ects.consensus.constants import ConsensusConstants from ects.types.blockchain_format.sized_bytes import bytes32 from ects.util.ints import uint8, uint32,...
44.931873
120
0.720583
f7683bfe7c98c1157843468c70095dc610eced0e
9,067
py
Python
custom_scripts/skipgram_modified.py
aday651/embed-asym-exeriments
986f147425c3e4f42c04a25f69577bbeef6b3c23
[ "MIT" ]
2
2021-07-13T05:14:47.000Z
2021-07-14T20:11:18.000Z
custom_scripts/skipgram_modified.py
aday651/embed-asym-exeriments
986f147425c3e4f42c04a25f69577bbeef6b3c23
[ "MIT" ]
null
null
null
custom_scripts/skipgram_modified.py
aday651/embed-asym-exeriments
986f147425c3e4f42c04a25f69577bbeef6b3c23
[ "MIT" ]
null
null
null
import tensorflow as tf from custom_scripts.node_classifier_modified import make_node_classifier def make_skipgram(**kwargs): """ Uses the skipgram objective for relational data Returns ------- A model function for skipgram edge prediction (with a nonsense vertex classifier attached for testing conve...
38.096639
119
0.656667
3fea20dbdcbb61cd724817eecc436dde24e0214c
1,631
py
Python
api/app/resources/bookings/exam/exam_post.py
neilz0r/queue-management
45226bdc4bd547c48c6df2e11a751133d48e0855
[ "Apache-2.0" ]
1
2019-10-04T23:30:14.000Z
2019-10-04T23:30:14.000Z
api/app/resources/bookings/exam/exam_post.py
Alireja2/queue-management
b133b9ca279d03b6ebe8900fd9c73a97f6a0863b
[ "Apache-2.0" ]
null
null
null
api/app/resources/bookings/exam/exam_post.py
Alireja2/queue-management
b133b9ca279d03b6ebe8900fd9c73a97f6a0863b
[ "Apache-2.0" ]
null
null
null
'''Copyright 2018 Province of British Columbia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
30.773585
78
0.694666
ad276f63404272925e9e00ac3454cd6f10e0aa74
1,499
py
Python
joongram/users/tests/test_views.py
joonoaspdosa/joongram
6901e2fb829eff5eae01d38b6cd969032d6e8101
[ "MIT" ]
1
2019-05-04T06:20:24.000Z
2019-05-04T06:20:24.000Z
joongram/users/tests/test_views.py
joonoaspdosa/joongram
6901e2fb829eff5eae01d38b6cd969032d6e8101
[ "MIT" ]
null
null
null
joongram/users/tests/test_views.py
joonoaspdosa/joongram
6901e2fb829eff5eae01d38b6cd969032d6e8101
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.test import RequestFactory from joongram.users.views import UserRedirectView, UserUpdateView pytestmark = pytest.mark.django_db class TestUserUpdateView: """ TODO: extracting view initialization code as class-scoped fixture would be ...
28.283019
77
0.675117
dece6092697de5098460dfeb9b6e12027b479c97
477
py
Python
NST_Hotbox/W_hotbox/Single/BlacksMatch/001.py
CreativeLyons/NST_Hotbox
48d23a651d9578a70b16bcc2c034de4b3586883f
[ "MIT" ]
null
null
null
NST_Hotbox/W_hotbox/Single/BlacksMatch/001.py
CreativeLyons/NST_Hotbox
48d23a651d9578a70b16bcc2c034de4b3586883f
[ "MIT" ]
null
null
null
NST_Hotbox/W_hotbox/Single/BlacksMatch/001.py
CreativeLyons/NST_Hotbox
48d23a651d9578a70b16bcc2c034de4b3586883f
[ "MIT" ]
null
null
null
#---------------------------------------------------------------------------------------------------------- # # AUTOMATICALLY GENERATED FILE TO BE USED BY W_HOTBOX # # NAME: Toggle Premult Input # #---------------------------------------------------------------------------------------------------------- ns = nuke.sele...
31.8
107
0.381551
81334859f46800e94afb5d19afb41fd05332cbd9
5,140
py
Python
parlai/tasks/light_dialog/worlds.py
kifish/ParlAI
93a0f31f3d6b03a97c1a081927427dbe1eb1242e
[ "MIT" ]
7
2020-04-23T06:43:45.000Z
2021-01-22T12:24:07.000Z
parlai/tasks/light_dialog/worlds.py
kifish/ParlAI
93a0f31f3d6b03a97c1a081927427dbe1eb1242e
[ "MIT" ]
14
2020-03-13T19:08:56.000Z
2020-05-12T07:38:41.000Z
parlai/tasks/light_dialog/worlds.py
kifish/ParlAI
93a0f31f3d6b03a97c1a081927427dbe1eb1242e
[ "MIT" ]
4
2020-08-06T19:38:51.000Z
2021-07-08T11:36:48.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.worlds import create_task from parlai.core.worlds import DialogPartnerWorld, validate from parlai.tasks...
32.125
79
0.52607
85a3b52ea18e6bf61f28f7ddbe412707a262e2e6
45,410
py
Python
sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.288364
349
0.646906
ddb7b6648d38dbcacd8aef05e97ebb22e7cbfcca
781
py
Python
src/reversion/migrations/0003_auto_20150805_2140.py
matllubos/django-reversion
d80a24b6a195c8a68bfc3100ba533419226fa18d
[ "BSD-3-Clause" ]
null
null
null
src/reversion/migrations/0003_auto_20150805_2140.py
matllubos/django-reversion
d80a24b6a195c8a68bfc3100ba533419226fa18d
[ "BSD-3-Clause" ]
2
2016-04-29T10:19:24.000Z
2017-08-17T15:16:14.000Z
src/reversion/migrations/0003_auto_20150805_2140.py
druids/django-reversion
d80a24b6a195c8a68bfc3100ba533419226fa18d
[ "BSD-3-Clause" ]
3
2017-05-30T14:27:46.000Z
2021-06-23T15:32:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('reversion', '0002_auto_20141216_1509'), ] operations = [ migrations.AlterModelOptions( name='revision', ...
26.033333
115
0.565941
a000b1994624933dfe28e280a162d4c967ad9b12
99
py
Python
SciFiReaders/readers/spectroscopy/__init__.py
itsalexis962/SciFiReaders
483b228d1f79aafac85cbadd4d0aea488b563902
[ "MIT" ]
8
2021-05-07T00:59:39.000Z
2021-12-10T21:03:59.000Z
SciFiReaders/readers/spectroscopy/__init__.py
itsalexis962/SciFiReaders
483b228d1f79aafac85cbadd4d0aea488b563902
[ "MIT" ]
31
2021-02-19T21:16:25.000Z
2022-03-04T22:28:09.000Z
SciFiReaders/readers/spectroscopy/__init__.py
itsalexis962/SciFiReaders
483b228d1f79aafac85cbadd4d0aea488b563902
[ "MIT" ]
6
2021-05-07T01:48:09.000Z
2022-01-21T21:14:36.000Z
from .SpeReader import RamanSpeReader __all__ = ['RamanSpeReader'] all_readers = [ RamanSpeReader]
24.75
37
0.79798
88e33ae66b1993bcc6a5c271ffbd8da19de20093
38,407
py
Python
pysnmp/INFORMANT-PERF-CITRIX.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/INFORMANT-PERF-CITRIX.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/INFORMANT-PERF-CITRIX.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module INFORMANT-PERF-CITRIX (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/INFORMANT-PERF-CITRIX # Produced by pysmi-0.3.4 at Mon Apr 29 19:42:19 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
121.541139
8,338
0.793137
3cd7b51a403639c5b90863b67cc95efd4dd1f094
5,269
py
Python
activitysim/examples/example_multiple_zone/scripts/two_zone_example_data.py
mxndrwgrdnr/activitysim
722d6e36b2210d5d24dfa2ac4a3504c1e8f75336
[ "BSD-3-Clause" ]
85
2018-02-16T15:08:13.000Z
2022-03-23T15:08:08.000Z
activitysim/examples/example_multiple_zone/scripts/two_zone_example_data.py
mxndrwgrdnr/activitysim
722d6e36b2210d5d24dfa2ac4a3504c1e8f75336
[ "BSD-3-Clause" ]
311
2018-01-16T01:59:47.000Z
2022-03-29T00:46:40.000Z
activitysim/examples/example_multiple_zone/scripts/two_zone_example_data.py
mxndrwgrdnr/activitysim
722d6e36b2210d5d24dfa2ac4a3504c1e8f75336
[ "BSD-3-Clause" ]
63
2018-02-05T15:27:51.000Z
2022-03-04T20:36:33.000Z
# Creating the Two Zone Example Data # # Transform the TM1 TAZ-based model 25 zone inputs to a two-zone (MAZ and TAZ) set of inputs for software development. # # The 25 zones are downtown San Francisco and they are converted to 25 MAZs. # MAZs 1,2,3,4 are small and adjacent and assigned TAZ 2 and TAP 10002. # MAZs 13,1...
34.664474
118
0.709812
856fe8dd9cdeb97a549429bb7b7f3c2635e9c426
41,882
py
Python
lib/galaxy/tools/data/__init__.py
davelsan/galaxy
fc8bef2810f89ea0dbc5f24aaa31fed22230cb74
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/data/__init__.py
davelsan/galaxy
fc8bef2810f89ea0dbc5f24aaa31fed22230cb74
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/data/__init__.py
davelsan/galaxy
fc8bef2810f89ea0dbc5f24aaa31fed22230cb74
[ "CC-BY-3.0" ]
null
null
null
""" Manage tool data tables, which store (at the application level) data that is used by tools, for example in the generation of dynamic options. Tables are loaded and stored by names which tools use to refer to them. This allows users to configure data tables for a local Galaxy instance without needing to modify the t...
46.432373
210
0.620362
d7b57b55788fc6e46a1ebd33f96951602b635edd
4,387
py
Python
src/bobbit/protocol/slack.py
ginglis13/bobbit
0d59b1ec4cae0560da4bd7dc71e1fd825f839852
[ "MIT" ]
null
null
null
src/bobbit/protocol/slack.py
ginglis13/bobbit
0d59b1ec4cae0560da4bd7dc71e1fd825f839852
[ "MIT" ]
null
null
null
src/bobbit/protocol/slack.py
ginglis13/bobbit
0d59b1ec4cae0560da4bd7dc71e1fd825f839852
[ "MIT" ]
null
null
null
''' bobbit.protocol.slack ''' import itertools import json import logging import re import aiohttp from bobbit.message import Message from bobbit.protocol.base import BaseClient # Slack Constants SLACK_API_DOMAIN = 'https://api.slack.com' SLACK_CHANNEL_RX = r'<#[0-9A-Z]+\|([^>]+)>' # Slack Client class Sla...
29.843537
85
0.49168
69bb3a683d7de07bd563a299b5fe24eb1fbd4a05
12,869
py
Python
experiments/1dt_shallowwater/pred.py
flabowski/POD-UQNN
1c81be432e69d24ae894828f42918fbc1fe54bc1
[ "MIT" ]
15
2020-05-29T11:42:14.000Z
2022-03-20T03:53:44.000Z
experiments/1dt_shallowwater/pred.py
flabowski/POD-UQNN
1c81be432e69d24ae894828f42918fbc1fe54bc1
[ "MIT" ]
null
null
null
experiments/1dt_shallowwater/pred.py
flabowski/POD-UQNN
1c81be432e69d24ae894828f42918fbc1fe54bc1
[ "MIT" ]
11
2020-06-09T01:16:22.000Z
2021-04-27T08:53:02.000Z
"""POD-NN modeling for 1D Shekel Equation.""" #%% Imports import sys import os import numpy as np import meshio import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable from scipy.interpolate import griddata sys.path.append(os.path.join("..", "..")) from poduqnn.podnnmodel import PodnnMo...
47.662963
119
0.52102
fc9ed4d15ec37eaa816a6defefa8090b8393dc6c
5,930
py
Python
lib/platform.py
haribommi/vaapi-fits
cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23
[ "BSD-3-Clause" ]
null
null
null
lib/platform.py
haribommi/vaapi-fits
cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23
[ "BSD-3-Clause" ]
null
null
null
lib/platform.py
haribommi/vaapi-fits
cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23
[ "BSD-3-Clause" ]
null
null
null
### ### Copyright (C) 2018-2019 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ### from __future__ import absolute_import import os JPEG_DECODE_PLATFORMS = [] JPEG_ENCODE_PLATFORMS = [] MPEG2_DECODE_PLATFORMS = [] MPEG2_ENCODE_PLATFORMS = [] VC1_DECODE_PLATFORMS ...
59.89899
118
0.424621
08052b639b76fe0dfc3a7811d3db52cba9256c07
632
py
Python
manage.py
Ashik19aug/Open-Library
f0faf14561c73fc6b7afdf28a126dd767f5b9a46
[ "MIT" ]
null
null
null
manage.py
Ashik19aug/Open-Library
f0faf14561c73fc6b7afdf28a126dd767f5b9a46
[ "MIT" ]
4
2021-03-19T00:58:30.000Z
2021-09-22T18:44:56.000Z
manage.py
Ashik19aug/Open-Library
f0faf14561c73fc6b7afdf28a126dd767f5b9a46
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'open_library.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
28.727273
76
0.685127
4dd00ec06bb8c60029dd811b5f3555e9346205b1
2,126
py
Python
posts/renderers.py
fr33mang/vas3k.club
c37dae5a8ec7ac1a5fb328e023b1474cc956f13c
[ "MIT" ]
null
null
null
posts/renderers.py
fr33mang/vas3k.club
c37dae5a8ec7ac1a5fb328e023b1474cc956f13c
[ "MIT" ]
null
null
null
posts/renderers.py
fr33mang/vas3k.club
c37dae5a8ec7ac1a5fb328e023b1474cc956f13c
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.template import TemplateDoesNotExist from comments.forms import CommentForm, ReplyForm, BattleCommentForm from comments.models import Comment from posts.models import PostVote, Post, PostSubscription POSSIBLE_COMMENT_ORDERS = {"creat...
36.655172
137
0.689558
63d1786539a1a23c38088be23d0fc6e8c818489d
666
py
Python
bot/exts/dev.py
rmenai/project-e.m
7428b1c2bde5c33918553b4a779435e0c9beebbc
[ "MIT" ]
null
null
null
bot/exts/dev.py
rmenai/project-e.m
7428b1c2bde5c33918553b4a779435e0c9beebbc
[ "MIT" ]
7
2022-02-28T19:11:25.000Z
2022-03-25T13:37:59.000Z
bot/exts/dev.py
rmenai/project-e.m
7428b1c2bde5c33918553b4a779435e0c9beebbc
[ "MIT" ]
null
null
null
import logging from discord.commands import ApplicationContext, permissions, slash_command from discord.ext import commands from bot import settings from bot.bot import Bot log = logging.getLogger(__name__) class Dev(commands.Cog): """Test different commands and pycord features.""" def __init__(self, bot:...
23.785714
75
0.701201
67c9619672e3e9df37d657207859b3f02d978f59
692
py
Python
Assignments/Assignment 8/2d_arrays.py
kaceyvolmar/CMPT-120L-910-20F
40bc0901614f4a4e0b0e420ffade5164376a7b05
[ "MIT" ]
null
null
null
Assignments/Assignment 8/2d_arrays.py
kaceyvolmar/CMPT-120L-910-20F
40bc0901614f4a4e0b0e420ffade5164376a7b05
[ "MIT" ]
1
2020-09-18T01:20:58.000Z
2020-09-18T01:20:58.000Z
Assignments/Assignment 8/2d_arrays.py
kaceyvolmar/CMPT-120L-910-20F
40bc0901614f4a4e0b0e420ffade5164376a7b05
[ "MIT" ]
null
null
null
def sum_2d_array(two_d_array): """ - Add code in the defined function to sum up the internal arrays. Returning an array of the sums. - Your input will be a 2d array - Output should be a 1d array - If a sub array is empty the sum is 0 """ arr = [] for array in two_d_array: ...
23.066667
101
0.520231
52faf466bc0de28cc04e07e79dc61586496ef4fe
1,540
py
Python
third-party/gtd/gtd/ml/torch/recurrent.py
timpowellgit/phrasenode
a4dc105a69785f289a4e7998d078d6727686b94d
[ "Apache-2.0" ]
81
2018-02-21T15:53:38.000Z
2022-03-20T21:25:49.000Z
third-party/gtd/gtd/ml/torch/recurrent.py
timpowellgit/phrasenode
a4dc105a69785f289a4e7998d078d6727686b94d
[ "Apache-2.0" ]
14
2018-03-09T19:04:43.000Z
2020-12-06T13:54:40.000Z
third-party/gtd/gtd/ml/torch/recurrent.py
timpowellgit/phrasenode
a4dc105a69785f289a4e7998d078d6727686b94d
[ "Apache-2.0" ]
38
2018-03-09T19:42:32.000Z
2022-03-15T15:39:51.000Z
import torch from gtd.ml.torch.utils import GPUVariable from torch.nn import Module from gtd.ml.torch.utils import conditional def tile_state(h, batch_size): """Tile a given hidden state batch_size times. Args: h (Variable): a single hidden state of shape (hidden_dim,) batch_size (int) ...
28.518519
71
0.652597
eefd605e85294332e4476eee352cd24725b97c60
50
py
Python
preprocessing/__init__.py
sayanpr8175/KNN-implementation-for-Cats-dogs-panda-classification
c6fd11d6d9670c5deeffa9b137c10db01b322522
[ "MIT" ]
null
null
null
preprocessing/__init__.py
sayanpr8175/KNN-implementation-for-Cats-dogs-panda-classification
c6fd11d6d9670c5deeffa9b137c10db01b322522
[ "MIT" ]
null
null
null
preprocessing/__init__.py
sayanpr8175/KNN-implementation-for-Cats-dogs-panda-classification
c6fd11d6d9670c5deeffa9b137c10db01b322522
[ "MIT" ]
null
null
null
from .simplepreprocessor import SimplePreprocessor
50
50
0.92
9e228b890f7e58726cffb2b7b323d8d7470558e4
15,627
py
Python
tests/transformations/state_fusion_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
tests/transformations/state_fusion_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
tests/transformations/state_fusion_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace from dace.transformation import transformation from dace.transformation.interstate import StateFusion import networkx as nx import numpy as np # Inter-state condition tests def test_fuse_assignments(): """ Two states in wh...
37.929612
80
0.612338
c53bc48eeae019c5442cf1e93a2009cabf77c1c5
32,892
py
Python
Packs/RTIR/Integrations/RTIR/RTIR.py
mchasepan/content
177c7fe86c4872141107f48075c6578daffc4bd4
[ "MIT" ]
1
2020-07-22T05:55:11.000Z
2020-07-22T05:55:11.000Z
Packs/RTIR/Integrations/RTIR/RTIR.py
mchasepan/content
177c7fe86c4872141107f48075c6578daffc4bd4
[ "MIT" ]
null
null
null
Packs/RTIR/Integrations/RTIR/RTIR.py
mchasepan/content
177c7fe86c4872141107f48075c6578daffc4bd4
[ "MIT" ]
2
2020-07-15T06:41:52.000Z
2020-07-19T18:45:23.000Z
from CommonServerPython import * ''' IMPORTS ''' import requests import json import re import urllib ''' GLOBAL VARS ''' SERVER = None BASE_URL = None USERNAME = None PASSWORD = None USE_SSL = None FETCH_PRIORITY = 0 FETCH_STATUS = None FETCH_QUEUE = None CURLY_BRACKETS_REGEX = r'\{(.*?)\}' # Extracts string in curl...
33.874356
128
0.611364
b94d5d6f8b79aa97fa4e6cc0500bf00e8e2e8e74
26,948
py
Python
pyapprox_dev/pyapprox_dev/fenics_models/advection_diffusion_wrappers.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
26
2019-12-16T02:21:15.000Z
2022-03-17T09:59:18.000Z
pyapprox_dev/pyapprox_dev/fenics_models/advection_diffusion_wrappers.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
9
2020-03-03T03:04:55.000Z
2021-08-19T22:50:42.000Z
pyapprox_dev/pyapprox_dev/fenics_models/advection_diffusion_wrappers.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
7
2020-03-02T03:49:17.000Z
2021-02-17T02:07:53.000Z
import sys if sys.platform == 'win32': raise ImportError('Not available on Windows') from pyapprox_dev.fenics_models.advection_diffusion import * def dl_qoi_functional_misc(u): r""" Use the QoI from [JEGGIJNME2020] To reproduce adaptive multi index results use following expr = dl.Expression( ...
41.522342
280
0.656004
63be28f3531518f4b55f87e2dfb865e1a38b1537
1,097
py
Python
imagehost/imagehost/main.py
bijualbert/NodeVid.com
b5fae2d8a0a47052f012b2d5ae7c67431f5314e8
[ "Apache-2.0" ]
1
2018-04-30T17:07:14.000Z
2018-04-30T17:07:14.000Z
imagehost/imagehost/main.py
NavinF/NodeVid.com
b5fae2d8a0a47052f012b2d5ae7c67431f5314e8
[ "Apache-2.0" ]
null
null
null
imagehost/imagehost/main.py
NavinF/NodeVid.com
b5fae2d8a0a47052f012b2d5ae7c67431f5314e8
[ "Apache-2.0" ]
null
null
null
from flask import Flask, url_for, request, send_file import ffmpy import requests import os.path import posixpath # Workflow # Delete video and keyframes (from previous try) # Accept input url via json # Download video # Feed video into FFMpeg, create keyframes # Serve keyframes out # Repeat # internal.atube.co...
26.119048
92
0.646308
157044cbf54a6160f6109e4420f85916e19c8b0e
5,771
py
Python
fig/project.py
KyleAMathews/fig
a8bc51b22994928482b4d5dd4824abd9133736ce
[ "BSD-3-Clause" ]
1
2020-12-26T07:55:13.000Z
2020-12-26T07:55:13.000Z
fig/project.py
KyleAMathews/fig
a8bc51b22994928482b4d5dd4824abd9133736ce
[ "BSD-3-Clause" ]
null
null
null
fig/project.py
KyleAMathews/fig
a8bc51b22994928482b4d5dd4824abd9133736ce
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from __future__ import absolute_import import logging from .service import Service log = logging.getLogger(__name__) def sort_service_dicts(services): # Get all services that are dependant on another. dependent_services = [s for s in services if s.get('links')] fla...
36.295597
112
0.621209
c26a53c0b3649d06f428ccf4507ac2f9636a7cc7
628
py
Python
stringss/string compression.py
PayalSasmal10/datastructures-algorithms
8b73ad0e0a6c9bcb860183615ebbda510549fb1f
[ "MIT" ]
2
2022-02-04T04:18:13.000Z
2022-02-21T10:05:15.000Z
stringss/string compression.py
PayalSasmal10/Datastructures-Algorithms
8b73ad0e0a6c9bcb860183615ebbda510549fb1f
[ "MIT" ]
1
2022-01-07T18:52:22.000Z
2022-01-07T18:52:22.000Z
stringss/string compression.py
PayalSasmal10/datastructures-algorithoms
8b73ad0e0a6c9bcb860183615ebbda510549fb1f
[ "MIT" ]
null
null
null
# input = ["a", "a", "b", "b", "c", "c", "c"] # o/p = a2b2c3 # O(n) time complexity string_chr = ["a", "a", "b", "b", "c", "c", "c"] def stringCompression(string_chr): newString = '' count = 1 for i in range(len(string_chr)-1): print(i) print(string_chr[i]) if string_chr[i] == str...
21.655172
49
0.490446
96fca01cd42b473cbe505aaca2f805d677694126
1,797
py
Python
PythonLearn/basic/list.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
PythonLearn/basic/list.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
PythonLearn/basic/list.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
#! python3 # -*- coding: UTF-8 -*- ''' list.py Basics of list object. ''' # リスト宣言 JavaScriptと同じ squares = [1, 4, 9, 16, 25] print(squares) # 文字列や他シーケンスオブジェクト同様の添え字アクセスが可能。 print(squares[0]) print(squares[-1]) print(squares[-3:]) # 全リスト要素をスライスした場合は新しいリストコピーを返却する。 newSqu = squares[:] print("Ori...
23.038462
68
0.636617
ad8ca90e0939c88232da35c9dd0d816207c3d22b
4,531
py
Python
unit_tests.py
robertsmd/secret-sharing
5acd3d49e096a51ee3392532e6dd886d38400139
[ "MIT" ]
null
null
null
unit_tests.py
robertsmd/secret-sharing
5acd3d49e096a51ee3392532e6dd886d38400139
[ "MIT" ]
null
null
null
unit_tests.py
robertsmd/secret-sharing
5acd3d49e096a51ee3392532e6dd886d38400139
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Secret Sharing ~~~~~ :copyright: (c) 2014 by Halfmoon Labs :license: MIT, see LICENSE for more details. """ import random import unittest from test import test_support from secretsharing import secret_int_to_points, points_to_secret_int, \ point_to_share_string, share_s...
37.758333
87
0.716177
ce32033c857c78bf32504c9865a9e2a54577a695
4,901
py
Python
scripts/plugin_base.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/plugin_base.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/plugin_base.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
""" Base class for an artefact plugin system. """ from scripts.ilapfuncs import * from scripts import search_files import os import traceback class ArtefactPlugin: """ Base class that each artefact plugin must inherit from. Each plugin must: * Provide a category. * Provide a name. ...
37.128788
128
0.637421
e3ea36c99c948f7334d1e44e00421858ce68b74d
2,558
py
Python
Experimental/Test_ast_python_file_classes.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
9
2017-10-05T23:36:23.000Z
2021-08-09T15:40:03.000Z
Experimental/Test_ast_python_file_classes.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
21
2018-01-02T09:33:03.000Z
2018-08-27T11:09:52.000Z
Experimental/Test_ast_python_file_classes.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
4
2018-06-23T09:05:45.000Z
2021-01-22T15:36:50.000Z
from __future__ import print_function import ast def show_info(functionNode): print("Function name:", functionNode.name) print("f=", functionNode) print("f=", dir(functionNode)) print("Args:") for arg in functionNode.args.args: #import pdb; pdb.set_trace() print("\tParameter name:"...
38.757576
146
0.57154
de34b7c3e9aef3142e76d9a470ea025755de9989
1,313
py
Python
acme_test.py
WillHK/DS-Unit-3-Sprint-1-Software-Engineering
a0cb1bcb8ff2ce04bee68424da771ea7ffaa662c
[ "MIT" ]
null
null
null
acme_test.py
WillHK/DS-Unit-3-Sprint-1-Software-Engineering
a0cb1bcb8ff2ce04bee68424da771ea7ffaa662c
[ "MIT" ]
null
null
null
acme_test.py
WillHK/DS-Unit-3-Sprint-1-Software-Engineering
a0cb1bcb8ff2ce04bee68424da771ea7ffaa662c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from acme import Product from acme_report import generate_products, ADJECTIVES, NOUNS class AcmeProductTests(unittest.TestCase): """Acme Products Testing Suite""" def test_default_product_price(self): """Test default product price""" prod = Product('Test P...
33.666667
60
0.658035