hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
033d682c669fb557f338c99f7669afd189b0d3ca
8,274
py
Python
web-testing/web_automate.py
Tak-Man/ML-rapid-text-labeling
c5fa5439bfcd3ba652be1dfdd101831fbd02d9d4
[ "MIT" ]
null
null
null
web-testing/web_automate.py
Tak-Man/ML-rapid-text-labeling
c5fa5439bfcd3ba652be1dfdd101831fbd02d9d4
[ "MIT" ]
null
null
null
web-testing/web_automate.py
Tak-Man/ML-rapid-text-labeling
c5fa5439bfcd3ba652be1dfdd101831fbd02d9d4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Oct 23 08:58:37 2021 @author: michp-ai """ # This script is web automation for the Capstone project on ML rapid text labeling # Before running this script in a different console start the web server by running main.py for the web app # This is a simple demo script to illustr...
29.133803
123
0.708847
5e7589ead1adc5d0500dc2238af267855fccc73e
9,666
py
Python
Bitcoin_bot.py
Tunjii10/RL_Bitcoin_Bot
6b048d8ced1f7ff1c9b5c9c5535aedf67ab1c4b5
[ "MIT" ]
2
2021-06-28T17:53:56.000Z
2021-11-28T10:14:02.000Z
Bitcoin_bot.py
Tunjii10/RL_Bitcoin_Bot
6b048d8ced1f7ff1c9b5c9c5535aedf67ab1c4b5
[ "MIT" ]
null
null
null
Bitcoin_bot.py
Tunjii10/RL_Bitcoin_Bot
6b048d8ced1f7ff1c9b5c9c5535aedf67ab1c4b5
[ "MIT" ]
null
null
null
#import libraries import os import numpy as np import pandas as pd import random import gym from gym import spaces from collections import deque from datetime import datetime from stable_baselines3.common.vec_env import DummyVecEnv from stable_baselines3 import A2C, PPO from stable_baselines3.common.env_checker imp...
40.613445
142
0.698221
27cbe75738854cd43e4b3a28eb4c6650dcfd3a7f
2,468
py
Python
dizoo/atari/config/serial/qbert/qbert_acer_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
dizoo/atari/config/serial/qbert/qbert_acer_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
dizoo/atari/config/serial/qbert/qbert_acer_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict qbert_acer_config = dict( exp_name='qbert_acer_seed0', env=dict( collector_env_num=16, evaluator_env_num=8, n_evaluator_episode=8, stop_value=int(1e6), env_id='QbertNoFrameskip-v4', frame_stack=4, manager=dict(shared_memory=F...
34.277778
105
0.612237
f75238d6457c8357a5da67ab39ff93226c3f90cb
1,266
py
Python
checkov/cloudformation/checks/resource/aws/EKSSecretsEncryption.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/cloudformation/checks/resource/aws/EKSSecretsEncryption.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/cloudformation/checks/resource/aws/EKSSecretsEncryption.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.common.models.enums import CheckResult, CheckCategories from checkov.cloudformation.checks.resource.base_resource_check import BaseResourceCheck class EKSSecretsEncryption(BaseResourceCheck): def __init__(self): name = "Ensure EKS Cluster has Secrets Encryption Enabled" id = "CKV_AWS_...
45.214286
123
0.71564
f42a1d137e9b308cdc85df7f43b0e2fee0f1e57d
20,294
py
Python
lib/python2.7/site-packages/pip/_internal/commands/install.py
DPNT-Sourcecode/CHK-uimw01
87144ae10115d7a8df565f5109666f00bc001ce4
[ "Apache-2.0" ]
694
2018-11-30T01:06:30.000Z
2022-03-31T14:46:26.000Z
virtual/lib/python3.6/site-packages/pip/_internal/commands/install.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
374
2015-12-25T05:38:28.000Z
2022-03-03T05:03:36.000Z
lib/python2.7/site-packages/pip/_internal/commands/install.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
131
2016-03-30T09:13:35.000Z
2022-01-24T10:30:18.000Z
from __future__ import absolute_import import errno import logging import operator import os import shutil from optparse import SUPPRESS_HELP from pip._vendor import pkg_resources from pip._internal import cmdoptions from pip._internal.basecommand import RequirementCommand from pip._internal.cache import WheelCache ...
39.253385
79
0.54691
4152c222686b482f1356e479a78e5f795e8d4c3b
74,100
py
Python
pymeasure/instruments/ni/virtualbench.py
NeoBeats/pymeasure
e48f9d679d6ee970e2e875d2fc9a5679378b07aa
[ "MIT" ]
null
null
null
pymeasure/instruments/ni/virtualbench.py
NeoBeats/pymeasure
e48f9d679d6ee970e2e875d2fc9a5679378b07aa
[ "MIT" ]
null
null
null
pymeasure/instruments/ni/virtualbench.py
NeoBeats/pymeasure
e48f9d679d6ee970e2e875d2fc9a5679378b07aa
[ "MIT" ]
null
null
null
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2020 PyMeasure Developers # pyvirtualbench library: Copyright (c) 2015 Charles Armstrap <charles@armstrap.org> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
42.906775
84
0.568988
b82a9c9533bd1da0e1118016917ab95fe392feaf
14,467
py
Python
spax/ops/ops_test.py
jackd/spax
bc55a2660d468838aa1c080d6152d0be73eab118
[ "Apache-2.0" ]
1
2021-08-11T23:25:15.000Z
2021-08-11T23:25:15.000Z
spax/ops/ops_test.py
jackd/spax
bc55a2660d468838aa1c080d6152d0be73eab118
[ "Apache-2.0" ]
null
null
null
spax/ops/ops_test.py
jackd/spax
bc55a2660d468838aa1c080d6152d0be73eab118
[ "Apache-2.0" ]
null
null
null
import jax import jax.numpy as jnp import numpy as np from absl.testing import absltest, parameterized # pylint: disable=no-name-in-module from jax import test_util as jtu from jax.config import config from jax.experimental.sparse.ops import COO, CSR from spax import ops from spax.test_utils import random_uniform # ...
36.625316
88
0.532177
05d43af5057b468b56f5f6b0cc3a796249cad0d7
30,073
py
Python
aesara/tensor/shape.py
danhphan/aesara
5a0fb0e731358d54648823170acd911cc1534d6a
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/shape.py
danhphan/aesara
5a0fb0e731358d54648823170acd911cc1534d6a
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/shape.py
danhphan/aesara
5a0fb0e731358d54648823170acd911cc1534d6a
[ "BSD-3-Clause" ]
null
null
null
import warnings from numbers import Number from typing import Dict, List, Tuple, Union import numpy as np import aesara from aesara.gradient import DisconnectedType from aesara.graph.basic import Apply, Constant, Variable from aesara.link.c.op import COp from aesara.link.c.params_type import ParamsType from aesara.mi...
32.830786
129
0.576697
b2b89e2ea2ebf42189e5b47c2746d75d9cfce451
3,797
py
Python
src/clikit/ui/components/exception_trace.py
abn/clikit
c9f96ee7a39a0d59d6cf7b5888589a030f36f051
[ "MIT" ]
null
null
null
src/clikit/ui/components/exception_trace.py
abn/clikit
c9f96ee7a39a0d59d6cf7b5888589a030f36f051
[ "MIT" ]
null
null
null
src/clikit/ui/components/exception_trace.py
abn/clikit
c9f96ee7a39a0d59d6cf7b5888589a030f36f051
[ "MIT" ]
null
null
null
import ast import inspect import keyword import math import sys import traceback from clikit.api.io import IO class ExceptionTrace(object): """ Renders the trace of an exception. """ THEME = { "comment": "<fg=black;options=bold>", "keyword": "<fg=yellow>", "builtin": "<fg=blu...
29.664063
82
0.553595
64a595d8e6954ed7fa0018496fd27f1fb17173b6
12,440
py
Python
src/Products/PluggableAuthService/tests/test_UserFolder.py
perrinjerome/Products.PluggableAuthService
d77e403ca53b8b915d47c5a72549e1a3cde84934
[ "ZPL-2.1" ]
null
null
null
src/Products/PluggableAuthService/tests/test_UserFolder.py
perrinjerome/Products.PluggableAuthService
d77e403ca53b8b915d47c5a72549e1a3cde84934
[ "ZPL-2.1" ]
null
null
null
src/Products/PluggableAuthService/tests/test_UserFolder.py
perrinjerome/Products.PluggableAuthService
d77e403ca53b8b915d47c5a72549e1a3cde84934
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this # distribution. # THIS SOFTWARE IS PROVIDED "AS ...
36.374269
78
0.648633
2c6b07a791d67c725514c5e007fafc782845d51e
1,540
py
Python
transformers/LastStateTransformer.py
verenich/time-prediction-benchmark
6075e4dc25077f26b679106bc569f99975cad825
[ "Apache-2.0" ]
11
2020-05-26T12:15:05.000Z
2022-03-04T14:48:46.000Z
transformers/LastStateTransformer.py
samadeusfp/prescriptiveProcessMonitoring
7b39c9b3cb20208d409e733e91cb91fb69dbf238
[ "MIT" ]
2
2019-05-28T08:59:33.000Z
2020-05-23T09:43:05.000Z
transformers/LastStateTransformer.py
samadeusfp/prescriptiveProcessMonitoring
7b39c9b3cb20208d409e733e91cb91fb69dbf238
[ "MIT" ]
7
2018-09-27T02:30:54.000Z
2021-11-19T14:22:31.000Z
from sklearn.base import TransformerMixin import pandas as pd from time import time class LastStateTransformer(TransformerMixin): def __init__(self, case_id_col, cat_cols, num_cols, fillna=True): self.case_id_col = case_id_col self.cat_cols = cat_cols self.num_cols = num_cols s...
29.056604
93
0.584416
73a7a9b6e995c6904b551d774ff0dea693e41f92
8,127
py
Python
experimentmanager/models.py
sciexpem/sciexpem
6de9a8039356588a5e817f0fa6bafd948220fc8f
[ "MIT" ]
null
null
null
experimentmanager/models.py
sciexpem/sciexpem
6de9a8039356588a5e817f0fa6bafd948220fc8f
[ "MIT" ]
3
2019-05-10T14:57:30.000Z
2021-06-10T21:14:21.000Z
experimentmanager/models.py
sciexpem/sciexpem
6de9a8039356588a5e817f0fa6bafd948220fc8f
[ "MIT" ]
1
2020-09-11T09:16:15.000Z
2020-09-11T09:16:15.000Z
from django.db import models from django.contrib.postgres.fields import JSONField from django.contrib.postgres.fields import ArrayField from django.urls import reverse from enum import Enum MAX_DIGITS = 42 DECIMAL_PLACES = 10 class EType(Enum): batch_idt = "batch_idt" stirred_parT = "stirred_parT" flow_...
38.885167
124
0.698782
fb3de9286cc3f0cb1cb0881d21edb5d603b6cc97
219
py
Python
wuhan/20180403/h6.py
python20180319howmework/homework
c826d7aa4c52f8d22f739feb134d20f0b2c217cd
[ "Apache-2.0" ]
null
null
null
wuhan/20180403/h6.py
python20180319howmework/homework
c826d7aa4c52f8d22f739feb134d20f0b2c217cd
[ "Apache-2.0" ]
null
null
null
wuhan/20180403/h6.py
python20180319howmework/homework
c826d7aa4c52f8d22f739feb134d20f0b2c217cd
[ "Apache-2.0" ]
null
null
null
":87, “caoxu”:90, “caohuan”:98, “wuhan”:82, “zhijia”:89} 1)将以上字典按成绩排名 ''' # sorted 排序 d = {"chaoqian":87,"caoxu":90,"caohuan":98,"wuhan":82,"zhijia":89} print(sorted(d.items(),key = lambda i:i[1],reverse = True))
24.333333
66
0.611872
111888adba749e4ed3f8d2f9379abd6947b275f2
1,233
py
Python
profiles_api/serializers.py
dshaunak/profiles-rest-api-proj
e4619669f2ab5e8cb9fc4847c6b4e4873355b4e5
[ "MIT" ]
1
2021-04-29T03:54:17.000Z
2021-04-29T03:54:17.000Z
profiles_api/serializers.py
dshaunak/profiles-rest-api-proj
e4619669f2ab5e8cb9fc4847c6b4e4873355b4e5
[ "MIT" ]
null
null
null
profiles_api/serializers.py
dshaunak/profiles-rest-api-proj
e4619669f2ab5e8cb9fc4847c6b4e4873355b4e5
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializers a name field from testing our API View""" name = serializers.CharField(max_length=15) class UserProfileSerializer(serializers.ModelSerializer): class Meta: model...
30.073171
88
0.627737
c8e3eeacb5504a62a56c53025a769c118e155a56
45,421
py
Python
tests/security_tests.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
3
2021-02-19T01:43:50.000Z
2021-08-14T04:56:41.000Z
tests/security_tests.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
39
2019-07-28T09:49:37.000Z
2022-03-31T09:37:13.000Z
tests/security_tests.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
1
2021-03-02T13:05:26.000Z
2021-03-02T13:05:26.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.492373
118
0.650008
854e5667c642e31ff9995470b51fcb7d5e2ef24e
7,345
py
Python
push_notifications/gcm.py
esauro/django-push-notifications
9abb342c5c9ead91e8c7f7cd82417936ebe234da
[ "MIT" ]
3
2019-11-09T13:11:00.000Z
2020-01-07T03:02:58.000Z
push_notifications/gcm.py
esauro/django-push-notifications
9abb342c5c9ead91e8c7f7cd82417936ebe234da
[ "MIT" ]
1
2020-01-17T20:42:19.000Z
2020-01-17T20:42:19.000Z
push_notifications/gcm.py
esauro/django-push-notifications
9abb342c5c9ead91e8c7f7cd82417936ebe234da
[ "MIT" ]
3
2018-05-30T12:48:35.000Z
2022-03-03T16:30:07.000Z
""" Firebase Cloud Messaging Previously known as GCM / C2DM Documentation is available on the Firebase Developer website: https://firebase.google.com/docs/cloud-messaging/ """ import json from django.core.exceptions import ImproperlyConfigured from .compat import Request, urlopen from .conf import get_manager from ....
34.483568
99
0.75194
d50e6361862b8c61ec0b4f22ef0ef8f72b1b44fe
1,228
py
Python
tests/parsers/sqlite_plugins/kodi.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
tests/parsers/sqlite_plugins/kodi.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
tests/parsers/sqlite_plugins/kodi.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Kodi videos plugin.""" import unittest from plaso.lib import definitions from plaso.parsers.sqlite_plugins import kodi from tests.parsers.sqlite_plugins import test_lib class KodiVideosTest(test_lib.SQLitePluginTestCase): """Tests for the Kodi video...
30.7
79
0.73127
3bb761c55ee39e3e74f8f9858d257644386c4be9
1,520
py
Python
teslakit/util/operations.py
teslakit/teslak
3f3dda08c5c5998cb2a7debbf22f2be675a4ff8b
[ "MIT" ]
12
2019-11-14T22:19:12.000Z
2022-03-04T01:25:33.000Z
teslakit/util/operations.py
anderdyl/teslaCoSMoS
1495bfa2364ddbacb802d145b456a35213abfb7c
[ "MIT" ]
5
2020-03-24T18:21:41.000Z
2021-08-23T20:39:43.000Z
teslakit/util/operations.py
anderdyl/teslaCoSMoS
1495bfa2364ddbacb802d145b456a35213abfb7c
[ "MIT" ]
2
2021-03-06T07:54:41.000Z
2021-06-30T14:33:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import numpy as np from math import sqrt def GetDivisors(x): l_div = [] i = 1 while i<x: if x%i == 0: l_div.append(i) i = i + 1 return l_div def GetUniqueRows(np_array): d = collections.OrderedDict() ...
20.540541
72
0.542105
2db5ec85b013138c52c34c6c1d714a9b7c51ce20
35,521
py
Python
brian2/tests/test_functions.py
Debilski/brian2
560377aba16d8ddaba55fd50432b1142f6233f66
[ "BSD-2-Clause" ]
null
null
null
brian2/tests/test_functions.py
Debilski/brian2
560377aba16d8ddaba55fd50432b1142f6233f66
[ "BSD-2-Clause" ]
null
null
null
brian2/tests/test_functions.py
Debilski/brian2
560377aba16d8ddaba55fd50432b1142f6233f66
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import import os import pytest from numpy.testing import assert_equal from brian2 import * from brian2.core.functions import timestep from brian2.parsing.sympytools import str_to_sympy, sympy_to_str from brian2.utils.logger import catch_logs from b...
32.350638
100
0.585485
083f667265a00673e8a5f99da84d6d745b3f2d6d
13,398
py
Python
maize/daemon/keychain_proxy.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
14
2021-07-21T19:45:05.000Z
2022-02-09T04:29:51.000Z
maize/daemon/keychain_proxy.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
9
2021-07-24T09:30:46.000Z
2021-12-05T19:51:29.000Z
maize/daemon/keychain_proxy.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
5
2021-10-04T17:33:47.000Z
2022-03-15T08:37:51.000Z
import logging import ssl from blspy import AugSchemeMPL, PrivateKey from maize.cmds.init_funcs import check_keys from maize.daemon.client import DaemonProxy from maize.daemon.keychain_server import ( KEYCHAIN_ERR_KEYERROR, KEYCHAIN_ERR_LOCKED, KEYCHAIN_ERR_MALFORMED_REQUEST, KEYCHAIN_ERR_NO_KEYS, ) fr...
37.634831
115
0.574489
50e1a0397133e1de381235c9aed505e58846bc9c
115
py
Python
s3tail/__init__.py
bradrf/s3tail
8b978880a0f6e7ce584f43caeaf2eef9d69aa865
[ "MIT" ]
2
2018-02-27T21:39:26.000Z
2019-10-16T00:02:44.000Z
s3tail/__init__.py
bradrf/s3tail
8b978880a0f6e7ce584f43caeaf2eef9d69aa865
[ "MIT" ]
17
2016-10-01T17:23:28.000Z
2017-02-26T08:01:36.000Z
s3tail/__init__.py
bradrf/s3tail
8b978880a0f6e7ce584f43caeaf2eef9d69aa865
[ "MIT" ]
null
null
null
__author__ = 'Brad Robel-Forrest' __email__ = 'brad@bitpony.com' __version__ = '0.2.1' from .s3tail import S3Tail
19.166667
33
0.73913
3fedd7fbb60ae4cba31053eea0273d0709acc06c
589
py
Python
scripts/report_data_usage.py
int-brain-lab/iblalyx
645f3eedab5d90f9694da811044c3e7920a3818a
[ "MIT" ]
null
null
null
scripts/report_data_usage.py
int-brain-lab/iblalyx
645f3eedab5d90f9694da811044c3e7920a3818a
[ "MIT" ]
1
2022-03-18T13:29:38.000Z
2022-03-18T13:42:50.000Z
scripts/report_data_usage.py
int-brain-lab/iblalyx
645f3eedab5d90f9694da811044c3e7920a3818a
[ "MIT" ]
null
null
null
from pathlib import Path from django.db.models import Sum from data.models import DatasetType import pandas as pd dtypes = DatasetType.objects.all().annotate(size=Sum('dataset__file_size')) df_types = pd.DataFrame.from_records(dtypes.values()) df_types['size'] = df_types['size'] / 1024 ** 3 df_types.to_csv(Path.hom...
29.45
90
0.731749
6e7e60ad1b8cdf33c0c36bee4827ecf69b747310
841
py
Python
uncurl_app/utils.py
yjzhang/uncurl_app
e432f85f017839df6f082a127e4ec8dd08074ce0
[ "MIT" ]
7
2020-04-17T07:34:38.000Z
2021-12-25T23:04:13.000Z
uncurl_app/utils.py
yjzhang/uncurl_app
e432f85f017839df6f082a127e4ec8dd08074ce0
[ "MIT" ]
1
2021-07-30T23:05:31.000Z
2021-07-30T23:05:31.000Z
uncurl_app/utils.py
yjzhang/uncurl_app
e432f85f017839df6f082a127e4ec8dd08074ce0
[ "MIT" ]
null
null
null
import json import numpy as np # to encode numpy stuff... class SimpleEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, np.integer): return int(o) elif isinstance(o, np.floating): return float(o) elif isinstance(o, np.ndarray): return o....
24.735294
64
0.54459
965a0bc620009e7a43b74500cc3d55b90200bc3e
1,239
py
Python
src/rpg_trajectory_evaluation/trajectory_utils.py
XueLianjie/rpg_trajectory_evaluation
7f49501d0fa09b5fa3790635ce68653ad8420d93
[ "MIT" ]
636
2018-10-03T10:37:54.000Z
2022-03-29T12:36:11.000Z
src/rpg_trajectory_evaluation/trajectory_utils.py
XueLianjie/rpg_trajectory_evaluation
7f49501d0fa09b5fa3790635ce68653ad8420d93
[ "MIT" ]
32
2018-10-12T07:43:39.000Z
2022-03-18T09:46:56.000Z
src/rpg_trajectory_evaluation/trajectory_utils.py
XueLianjie/rpg_trajectory_evaluation
7f49501d0fa09b5fa3790635ce68653ad8420d93
[ "MIT" ]
275
2018-10-06T12:48:46.000Z
2022-03-14T07:52:48.000Z
#!/usr/bin/env python2 """ @author: Christian Forster """ import os import numpy as np import transformations as tf def get_rigid_body_trafo(quat, trans): T = tf.quaternion_matrix(quat) T[0:3, 3] = trans return T def get_distance_from_start(gt_translation): distances = np.diff(gt_translation[:, 0:3...
26.361702
75
0.63519
6ac8ac462c7a04df3af43e9754deb8a941429af3
536
py
Python
src/bitcoin_acks/github_data/graphql_queries/__init__.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
43
2018-04-29T03:30:18.000Z
2021-02-11T05:24:49.000Z
src/bitcoin_acks/github_data/graphql_queries/__init__.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
46
2018-05-02T01:27:34.000Z
2022-03-26T13:29:55.000Z
src/bitcoin_acks/github_data/graphql_queries/__init__.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
11
2018-05-15T23:47:47.000Z
2021-01-27T14:57:54.000Z
import os def get_query(query_file: str): path = os.path.dirname(os.path.abspath(__file__)) graphql_file = os.path.join(path, query_file) with open(graphql_file, 'r') as query_file: query = query_file.read() return query comments_graphql_query = get_query('comments.graphql') pull_request...
31.529412
64
0.761194
8aef56566ddbdff32fc36c642589742b45b38699
1,699
py
Python
fresh365/apps/goods/admin.py
rehth/MyDjango
59f6d1fc667ecaf902c8d8c3571a633cce80490e
[ "MIT" ]
null
null
null
fresh365/apps/goods/admin.py
rehth/MyDjango
59f6d1fc667ecaf902c8d8c3571a633cce80490e
[ "MIT" ]
null
null
null
fresh365/apps/goods/admin.py
rehth/MyDjango
59f6d1fc667ecaf902c8d8c3571a633cce80490e
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.goods.models import GoodsType, IndexPromotionBanner, GoodsSKU,\ GoodsSPU, IndexTypeGoodsBanner, IndexGoodsBanner from django.core.cache import cache # Register your models here. class BaseModelAdmin(admin.ModelAdmin): """数据表中的数据发生改变时调用 生产新的静态页面index.html""" def s...
30.339286
73
0.717481
7cba1b063f117f322643b16d16e9e0897c40d9b2
2,819
py
Python
silx/gui/utils/test/test_image.py
vallsv/silx
834bfe9272af99096faa360e1ad96291bf46a2ac
[ "CC0-1.0", "MIT" ]
1
2017-08-03T15:51:42.000Z
2017-08-03T15:51:42.000Z
silx/gui/utils/test/test_image.py
vallsv/silx
834bfe9272af99096faa360e1ad96291bf46a2ac
[ "CC0-1.0", "MIT" ]
7
2016-10-19T09:27:26.000Z
2020-01-24T13:26:56.000Z
silx/gui/utils/test/test_image.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2017-2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
37.586667
79
0.682512
621983a5d3ac686f3eda84aacdbea12b81198fcf
811
py
Python
alfastaff_products/forms.py
spanickroon/Alfa-Staff
4db9332634f278bac2fb7b543bcd86a2651214e2
[ "MIT" ]
1
2020-12-22T12:14:44.000Z
2020-12-22T12:14:44.000Z
alfastaff_products/forms.py
ZayJob/Alfa-Staff
4db9332634f278bac2fb7b543bcd86a2651214e2
[ "MIT" ]
6
2020-12-20T01:32:44.000Z
2021-07-08T10:11:14.000Z
alfastaff_products/forms.py
spanickroon/Alfa-Staff
4db9332634f278bac2fb7b543bcd86a2651214e2
[ "MIT" ]
1
2020-12-06T18:28:36.000Z
2020-12-06T18:28:36.000Z
"""This module contain classes for work with forms.""" from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from alfastaff_account.models import Profile class PasswordChangeForm(UserCreationForm): """PasswordChangeForm class with meta data fo...
26.16129
74
0.667078
2f2465f92b2b0357d3dd635326dca630272d63c8
21,072
py
Python
tests/test_triples_factory.py
cthoyt/pykeen
e2164149492291ba5e4b130ab8d2f9babfc55a50
[ "MIT" ]
null
null
null
tests/test_triples_factory.py
cthoyt/pykeen
e2164149492291ba5e4b130ab8d2f9babfc55a50
[ "MIT" ]
null
null
null
tests/test_triples_factory.py
cthoyt/pykeen
e2164149492291ba5e4b130ab8d2f9babfc55a50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for triples factories.""" import itertools as itt import unittest from unittest.mock import patch import numpy as np import pytest import torch from pykeen.datasets import Nations from pykeen.datasets.nations import NATIONS_TRAIN_PATH from pykeen.triples import LCWAInstances, T...
38.878229
119
0.614085
9af19b33b7030563c0ca3b6cf1721b8660f38d0a
4,644
py
Python
mne/io/tree.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
null
null
null
mne/io/tree.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
23
2017-09-12T11:08:26.000Z
2019-10-04T11:11:29.000Z
mne/io/tree.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2019-01-28T13:48:00.000Z
2019-07-10T16:02:11.000Z
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # # License: BSD (3-clause) import numpy as np from .constants import FIFF from .tag import Tag from .tag import read_tag from .write import write_id, start_block, end_block, _write from ..utils import lo...
30.155844
79
0.5323
6f6275eab5561f4adc84ccc37aa66d77a77ac594
4,271
py
Python
src/garage/tf/models/mlp_dueling_model.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
1
2020-02-19T00:01:29.000Z
2020-02-19T00:01:29.000Z
src/garage/tf/models/mlp_dueling_model.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
src/garage/tf/models/mlp_dueling_model.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
1
2020-02-13T12:05:35.000Z
2020-02-13T12:05:35.000Z
"""MLP Dueling Model.""" import tensorflow as tf from garage.tf.models.base import Model from garage.tf.models.mlp import mlp class MLPDuelingModel(Model): """MLP Model with dueling network structure. Args: output_dim (int): Dimension of the network output. hidden_sizes (list[int]): Output d...
46.934066
78
0.621634
c38fade245fcb1a65b03c375d27a64d43b64e52f
47,660
py
Python
built-in/TensorFlow/Official/nlp/ALBERT-lcqmc-ZH_ID1461_for_TensorFlow/modeling_google_fast.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/nlp/ALBERT-lcqmc-ZH_ID1461_for_TensorFlow/modeling_google_fast.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/nlp/ALBERT-lcqmc-ZH_ID1461_for_TensorFlow/modeling_google_fast.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 Huawei Technologies Co., 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-2.0 # # Unless required by applicable law or agree...
40.458404
150
0.678619
250ba1daa17db9cfd798048235d77561bb259598
244
py
Python
federated_aggregations/paillier/placement.py
tf-encrypted/federated-aggregations
b4ab7a15c2719d4119db7d9d609f8c06d9df8958
[ "Apache-2.0" ]
16
2020-08-07T05:40:09.000Z
2022-01-08T20:32:07.000Z
federated_aggregations/paillier/placement.py
tf-encrypted/federated-aggregations
b4ab7a15c2719d4119db7d9d609f8c06d9df8958
[ "Apache-2.0" ]
1
2020-10-14T00:18:39.000Z
2020-10-19T14:13:03.000Z
federated_aggregations/paillier/placement.py
tf-encrypted/federated-aggregations
b4ab7a15c2719d4119db7d9d609f8c06d9df8958
[ "Apache-2.0" ]
2
2020-09-08T10:16:28.000Z
2021-01-14T12:33:01.000Z
from tensorflow_federated.python.core.impl.types import placement_literals AGGREGATOR = placement_literals.PlacementLiteral( 'AGGREGATOR', 'aggregator', default_all_equal=True, description='An "unplacement" for aggregations.')
30.5
74
0.782787
e25096a02eb0192940f359b5f239ae28ffc1f7a1
206
py
Python
backend/src/baserow/api/applications/errors.py
calvinchengx/baserow
0340d5abf0a3b48154d41fd05cd2e1e05814cd66
[ "MIT" ]
1
2021-04-13T16:27:58.000Z
2021-04-13T16:27:58.000Z
backend/src/baserow/api/applications/errors.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
7
2021-03-19T12:07:13.000Z
2022-02-10T14:47:21.000Z
backend/src/baserow/api/applications/errors.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
null
null
null
from rest_framework.status import HTTP_404_NOT_FOUND ERROR_APPLICATION_DOES_NOT_EXIST = ( 'ERROR_APPLICATION_DOES_NOT_EXIST', HTTP_404_NOT_FOUND, 'The requested application does not exist.' )
22.888889
52
0.800971
1094e92b2feb0e0c1e430aca0ec9f41f7aebc5f3
23,485
py
Python
src/lib/packet/script/code_generator.py
DerangedMonkeyNinja/openperf
cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16
[ "Apache-2.0" ]
20
2019-12-04T01:28:52.000Z
2022-03-17T14:09:34.000Z
src/lib/packet/script/code_generator.py
DerangedMonkeyNinja/openperf
cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16
[ "Apache-2.0" ]
115
2020-02-04T21:29:54.000Z
2022-02-17T13:33:51.000Z
src/lib/packet/script/code_generator.py
DerangedMonkeyNinja/openperf
cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16
[ "Apache-2.0" ]
16
2019-12-03T16:41:18.000Z
2021-11-06T04:44:11.000Z
import argparse import re import os import pathlib import sys import textwrap import yaml HEADER_GUARD="_LIB_PACKET_PROTOCOL_{}_HPP_" HEADER_NAMESPACE="libpacket::protocol" INCLUDE_BASE_DIR="packet/type" def write_file_header(output, name, kind): header=''' /** * {name} {kind} for the packet header C++ ...
32.215364
133
0.601703
6431222561a1b7fc69b06f0cef26846d9aa4c4f4
1,121
bzl
Python
tests/src_utils_tests.bzl
cgrindel/rules_swiftformat
4ee27436efbd88f8a072e555d6b5e0384c23721d
[ "Apache-2.0" ]
1
2021-11-02T22:28:10.000Z
2021-11-02T22:28:10.000Z
tests/src_utils_tests.bzl
cgrindel/rules_swiftformat
4ee27436efbd88f8a072e555d6b5e0384c23721d
[ "Apache-2.0" ]
17
2021-10-09T19:33:51.000Z
2022-03-07T16:17:51.000Z
tests/src_utils_tests.bzl
cgrindel/rules_swiftformat
4ee27436efbd88f8a072e555d6b5e0384c23721d
[ "Apache-2.0" ]
null
null
null
"""Tests for src_utils module.""" load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//swiftformat:defs.bzl", "src_utils") def _is_label_test(ctx): env = unittest.begin(ctx) asserts.true(env, src_utils.is_label("//Sources/Foo")) asserts.true(env, src_utils.is_label(":Foo")) asserts....
29.5
63
0.695807
8b09cf4d791c0173749419e41934712d6553e33a
989
py
Python
var/spack/repos/builtin/packages/sas/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/sas/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/sas/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-06T11:04:37.000Z
2020-03-06T11:04:37.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 Sas(CMakePackage): """SAS (Static Analysis Suite) is a powerful tool for running static ...
34.103448
95
0.701719
4306dacbafa60704f07c505bdf331f464fa6e8c5
742
py
Python
ct-ep100/v1.0.x/ja/autogen-openapi-generator/python/test/test_alert_target.py
y2kblog/poe-webapi-sensor-api
7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458
[ "MIT" ]
null
null
null
ct-ep100/v1.0.x/ja/autogen-openapi-generator/python/test/test_alert_target.py
y2kblog/poe-webapi-sensor-api
7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458
[ "MIT" ]
null
null
null
ct-ep100/v1.0.x/ja/autogen-openapi-generator/python/test/test_alert_target.py
y2kblog/poe-webapi-sensor-api
7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458
[ "MIT" ]
null
null
null
""" PoE対応 WebAPI CO2センサ API仕様 \"Try it out\"機能は、API仕様を製品と同一ネットワーク上のローカルPCにダウンロードしブラウザで開くことで利用できます。 # noqa: E501 The version of the OpenAPI document: 1.0.x Generated by: https://openapi-generator.tech """ import sys import unittest import ct_ep100_client from ct_ep100_client.model.alert_target imp...
20.611111
87
0.681941
e4331de6a2d9b126a63e55d898f688c2f482d013
1,266
py
Python
python/test/function/test_maximum_scalar.py
tasugi/nnabla
cf54d64cc0448c8ea63b2a8e9a7999963f3c169e
[ "Apache-2.0" ]
1
2018-10-27T11:45:43.000Z
2018-10-27T11:45:43.000Z
python/test/function/test_maximum_scalar.py
tasugi/nnabla
cf54d64cc0448c8ea63b2a8e9a7999963f3c169e
[ "Apache-2.0" ]
null
null
null
python/test/function/test_maximum_scalar.py
tasugi/nnabla
cf54d64cc0448c8ea63b2a8e9a7999963f3c169e
[ "Apache-2.0" ]
1
2020-08-19T08:32:51.000Z
2020-08-19T08:32:51.000Z
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.235294
74
0.733807
cd0041c512292d83d35013273371751a1ca02944
1,963
py
Python
tests/commands/test_boards.py
ysoyipek/platformio-core
1b2e410f12bd7770d6415264d750e2fd63f697b7
[ "Apache-2.0" ]
null
null
null
tests/commands/test_boards.py
ysoyipek/platformio-core
1b2e410f12bd7770d6415264d750e2fd63f697b7
[ "Apache-2.0" ]
null
null
null
tests/commands/test_boards.py
ysoyipek/platformio-core
1b2e410f12bd7770d6415264d750e2fd63f697b7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
36.351852
79
0.738665
2b71591838a076fbbb757011b26ca8ad21672823
3,027
py
Python
woeip/apps/air_quality/models.py
kdoby/woeip
036d56dd7e031ca40583d4e551871c80adc36be0
[ "MIT" ]
null
null
null
woeip/apps/air_quality/models.py
kdoby/woeip
036d56dd7e031ca40583d4e551871c80adc36be0
[ "MIT" ]
null
null
null
woeip/apps/air_quality/models.py
kdoby/woeip
036d56dd7e031ca40583d4e551871c80adc36be0
[ "MIT" ]
null
null
null
import os.path as op from django.contrib.gis.db.models import LineStringField, PointField from django.db import models from django_extensions.db.models import TimeStampedModel from woeip.apps.core.models import User class Route(models.Model): name = models.CharField(max_length=256, unique=True) path = LineS...
37.8375
99
0.694087
10310ec5c8e235cd47457cd317163d7765c2e10d
2,840
py
Python
Models.py
shivgahlout/SDCT-AuxNet-theta-DCT-Augmented-Stain-Deconvolutional-CNN-with-Auxiliary-Classifier-for-Cancer
c44536e6a88a90adbe3759da36ec8991db899245
[ "MIT" ]
1
2021-07-01T23:00:01.000Z
2021-07-01T23:00:01.000Z
Models.py
shivgahlout/SDCT-AuxNet-theta-DCT-Augmented-Stain-Deconvolutional-CNN-with-Auxiliary-Classifier-for-Cancer
c44536e6a88a90adbe3759da36ec8991db899245
[ "MIT" ]
null
null
null
Models.py
shivgahlout/SDCT-AuxNet-theta-DCT-Augmented-Stain-Deconvolutional-CNN-with-Auxiliary-Classifier-for-Cancer
c44536e6a88a90adbe3759da36ec8991db899245
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from sd_layer import * class BasicConv(nn.Module): def __init__(self, in_f, out_f, kernel_size, stride=1, padding=1): super(BasicConv, self).__init__() self.conv = nn.Conv2d(in_f, out_f, kernel_size, stride, pa...
32.272727
89
0.684859
f44445d57009d496ba1c85798bc4501ad6d8eac6
536
py
Python
balsam/service/schedulers/__init__.py
felker/balsam
2a4d2f217daa6265d31a6574ee0228ebedc6381c
[ "BSD-Source-Code" ]
29
2019-03-26T20:54:59.000Z
2021-02-12T20:25:35.000Z
balsam/service/schedulers/__init__.py
felker/balsam
2a4d2f217daa6265d31a6574ee0228ebedc6381c
[ "BSD-Source-Code" ]
25
2019-03-27T18:44:12.000Z
2021-03-16T18:05:02.000Z
balsam/service/schedulers/__init__.py
felker/balsam
2a4d2f217daa6265d31a6574ee0228ebedc6381c
[ "BSD-Source-Code" ]
18
2019-08-13T19:43:07.000Z
2021-02-24T22:48:57.000Z
from django.conf import settings from importlib import import_module from balsam.service.schedulers import JobEnvironment, JobTemplate _schedClass = settings.SCHEDULER_CLASS.strip() _temp = import_module('balsam.service.schedulers.'+_schedClass) scheduler = _temp.new_scheduler() JobEnv = JobEnvironment.JobEnvironment(...
35.733333
74
0.833955
5e547915d1a0a164a8e4ad8667109fb32aeff05a
626
py
Python
hackathon/migrations/0010_award.py
calixo888/hackcollab
e3250b658420e84b6c106bde3f84523e4347e4df
[ "MIT" ]
null
null
null
hackathon/migrations/0010_award.py
calixo888/hackcollab
e3250b658420e84b6c106bde3f84523e4347e4df
[ "MIT" ]
7
2020-02-12T02:29:34.000Z
2022-02-10T09:12:06.000Z
hackathon/migrations/0010_award.py
calixo888/hackcollab
e3250b658420e84b6c106bde3f84523e4347e4df
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-12-03 20:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hackathon', '0009_teamsubmission'), ] operations = [ migrations.CreateModel( name='Award', fields=[ ...
27.217391
114
0.567093
ade78540040d16ac98b41bc475b91646e8a2798c
9,165
py
Python
setup.py
RomRuben/corbel-py
12cc6c6b202f1d246f5af36253d7c3c03e616d41
[ "MIT" ]
null
null
null
setup.py
RomRuben/corbel-py
12cc6c6b202f1d246f5af36253d7c3c03e616d41
[ "MIT" ]
null
null
null
setup.py
RomRuben/corbel-py
12cc6c6b202f1d246f5af36253d7c3c03e616d41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys import imp import subprocess # Python 2.6 subprocess.check_output compatibility. Thanks Greg Hewgill! if 'check_output' not in dir(subprocess): def check_output(cmd_args, *args, **kwargs): proc = subprocess.Popen( ...
31.603448
113
0.657501
aa7e43fed13c706b5a4d1a42e29e2910ed3e9323
534
py
Python
plotly/validators/scattergl/marker/line/_color.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scattergl/marker/line/_color.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scattergl/marker/line/_color.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='color', parent_name='scattergl.marker.line', **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, ...
25.428571
66
0.597378
e29e2ef84116672d63fb9fac3d32a892f9056b14
355
py
Python
database.py
sixfwa/fastapi-jwt
23d1b1d96c56e9cf91265494d4edf77ee505a8b7
[ "MIT" ]
1
2022-03-26T16:34:10.000Z
2022-03-26T16:34:10.000Z
database.py
sixfwa/fastapi-jwt
23d1b1d96c56e9cf91265494d4edf77ee505a8b7
[ "MIT" ]
null
null
null
database.py
sixfwa/fastapi-jwt
23d1b1d96c56e9cf91265494d4edf77ee505a8b7
[ "MIT" ]
null
null
null
import sqlalchemy as _sql import sqlalchemy.ext.declarative as _declarative import sqlalchemy.orm as _orm DATABASE_URL = "sqlite:///./database.db" engine = _sql.create_engine(DATABASE_URL, connect_args={"check_same_thread": False}) SessionLocal = _orm.sessionmaker(autocommit=False, autoflush=False, bind=engine) Bas...
32.272727
84
0.808451
6335b8ed8665abc5d24b3d73ebff1697109716cb
2,313
py
Python
venv/Lib/site-packages/pygments/lexers/sieve.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
9
2019-05-29T23:50:28.000Z
2021-01-29T20:51:05.000Z
venv/Lib/site-packages/pygments/lexers/sieve.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
5
2021-02-27T21:31:47.000Z
2021-04-05T21:49:38.000Z
venv/Lib/site-packages/pygments/lexers/sieve.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
3
2021-01-31T16:40:52.000Z
2021-08-29T18:32:34.000Z
# -*- coding: utf-8 -*- """ pygments.lexers.sieve ~~~~~~~~~~~~~~~~~~~~~ Lexer for Sieve file format. https://tools.ietf.org/html/rfc5228 https://tools.ietf.org/html/rfc5173 https://tools.ietf.org/html/rfc5229 https://tools.ietf.org/html/rfc5230 https://tools.ietf.org/html/rfc5232 h...
33.042857
293
0.555123
c5ac393592b434da034303f258c52ed80f7104b0
3,899
py
Python
alipay/aop/api/request/AlipayTradeRefundRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayTradeRefundRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayTradeRefundRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayTradeRefundModel import AlipayTradeRefundModel class AlipayTradeRefundRequest(object): def __init__(self, biz_model=None)...
26.889655
148
0.638625
165ec793228e3706f5d2ae6985104660e7099965
49
py
Python
TrainingRestnet18withTinyImagenetDataset/poc/__init__.py
csharpshooter/DeepLearning
c1d20660c32076468970f7376931e1fcd0d2644e
[ "MIT" ]
null
null
null
TrainingRestnet18withTinyImagenetDataset/poc/__init__.py
csharpshooter/DeepLearning
c1d20660c32076468970f7376931e1fcd0d2644e
[ "MIT" ]
null
null
null
TrainingRestnet18withTinyImagenetDataset/poc/__init__.py
csharpshooter/DeepLearning
c1d20660c32076468970f7376931e1fcd0d2644e
[ "MIT" ]
null
null
null
from .gradcamexperiment import GradcamExperiment
24.5
48
0.897959
909730ab9952881cfff6ed4415009286c86b65bc
954
py
Python
Sorting/HeapSort.py
alstn2468/Python_Data_Structure
7a092c2b7a3ac5fbc735b51ce8d639ed7c2ecfce
[ "MIT" ]
2
2020-08-10T09:31:13.000Z
2020-08-11T07:03:18.000Z
Sorting/HeapSort.py
SikSo1897/Python_Data_Structure
7a092c2b7a3ac5fbc735b51ce8d639ed7c2ecfce
[ "MIT" ]
null
null
null
Sorting/HeapSort.py
SikSo1897/Python_Data_Structure
7a092c2b7a3ac5fbc735b51ce8d639ed7c2ecfce
[ "MIT" ]
4
2019-03-19T06:59:01.000Z
2020-09-02T04:38:22.000Z
# HeapSort.py ''' 힙정렬(HeapSort) O(nlogn) ''' def heapify(list, n, i) : largest = i l = 2 * i + 1 r = 2 * i + 2 if l < n and list[i] < list[l] : largest = l if r < n and list[largest] < list[r] : largest = r if largest != i : list[i], list[largest] = list[largest], lis...
17.035714
55
0.458071
3eed15dd52a3de94b43c3dac3334383ceb8e9902
1,100
py
Python
geotrek/core/migrations/0014_auto_20200228_1755.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/core/migrations/0014_auto_20200228_1755.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/core/migrations/0014_auto_20200228_1755.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2020-02-28 16:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0013_auto_20200211_1011'), ] operations = [ migrations.AlterField(...
30.555556
97
0.610909
87cf2c5da49348aafedd64b7e1fa1cff7d55fa0d
1,096
py
Python
fluiddyn/io/test/test_txt.py
fluiddyn/fluiddyn
04d125cb4590da7d5db80dac1d20577ce012a005
[ "CECILL-B" ]
20
2018-05-07T13:40:13.000Z
2022-03-30T10:40:42.000Z
fluiddyn/io/test/test_txt.py
fluiddyn/fluiddyn
04d125cb4590da7d5db80dac1d20577ce012a005
[ "CECILL-B" ]
null
null
null
fluiddyn/io/test/test_txt.py
fluiddyn/fluiddyn
04d125cb4590da7d5db80dac1d20577ce012a005
[ "CECILL-B" ]
1
2018-11-14T20:41:14.000Z
2018-11-14T20:41:14.000Z
""" Test txt functions ================== """ import os import unittest from shutil import rmtree from ..txt import quantities_from_txt_file, save_quantities_in_txt_file txt_example = """ zekfzlnfk zklflzefk 1 3. 1 2 5. 3 4. 9 """ t_example = ([1, 2, 3], [3.0, 5.0, 4.0], [1, 9]) class TestTxt(unittest.Te...
17.967213
71
0.588504
fdf0ee3868b9c195bd53b54fa0cb50f272b4bbd1
1,441
py
Python
Metrics/Show these in Context-Space.py
laerm0/wei-glyphs-scripts
d2e53004805847722f4ba07072fa50400a7cc4d6
[ "Apache-2.0" ]
1
2020-06-11T00:29:50.000Z
2020-06-11T00:29:50.000Z
Metrics/Show these in Context-Space.py
laerm0/wei-glyphs-scripts
d2e53004805847722f4ba07072fa50400a7cc4d6
[ "Apache-2.0" ]
null
null
null
Metrics/Show these in Context-Space.py
laerm0/wei-glyphs-scripts
d2e53004805847722f4ba07072fa50400a7cc4d6
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Show these in Context (Space separated items) # -*- coding: utf-8 -*- __doc__=""" Show selected items, each separated by /space, in spacing context in a new tab. """ import GlyphsApp import kernMakerFunc reload(kernMakerFunc) from kernMakerFunc import kernMaker # Glyphs.clearLog() Font = Glyphs.font Doc = ...
34.309524
145
0.734906
11f0ead1c32c5b8e182ef257932489114b82701e
8,234
py
Python
src/_stories/failures.py
gtors/stories
0614624f472151f20617afa4e6c4a0af9b409b6d
[ "BSD-2-Clause" ]
null
null
null
src/_stories/failures.py
gtors/stories
0614624f472151f20617afa4e6c4a0af9b409b6d
[ "BSD-2-Clause" ]
null
null
null
src/_stories/failures.py
gtors/stories
0614624f472151f20617afa4e6c4a0af9b409b6d
[ "BSD-2-Clause" ]
null
null
null
from _stories.compat import Enum from _stories.compat import EnumMeta from _stories.exceptions import FailureProtocolError # Data type. def check_data_type(failures): if failures is None: return if isinstance(failures, EnumMeta): return if isinstance(failures, (list, tuple, set, frozense...
28.590278
88
0.681321
e942ca19ebbe7f849985928133e793af9608a3f5
1,785
py
Python
src/datafinder/gui/admin/__init__.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
9
2016-05-25T06:12:52.000Z
2021-04-30T07:22:48.000Z
src/datafinder/gui/admin/__init__.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
6
2016-03-29T13:38:18.000Z
2017-01-18T15:57:42.000Z
src/datafinder/gui/admin/__init__.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
7
2016-06-15T12:01:22.000Z
2022-03-05T08:50:25.000Z
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # All rights reserved. # #Redistribution and use in source and binary forms, with or without # #modification, are permitted provided that the following conditions are #met: # ...
40.568182
73
0.747339
c40e9b0e89dfb18b40f1d5d75b08ed644759708d
9,409
py
Python
scripts/deployment/deploy_testnet.py
demmojo/curve-dao-contracts
6922cd98c7403cc7c6302f5379194c5418c5cb66
[ "MIT" ]
1
2021-07-22T16:28:56.000Z
2021-07-22T16:28:56.000Z
scripts/deployment/deploy_testnet.py
demmojo/curve-dao-contracts
6922cd98c7403cc7c6302f5379194c5418c5cb66
[ "MIT" ]
null
null
null
scripts/deployment/deploy_testnet.py
demmojo/curve-dao-contracts
6922cd98c7403cc7c6302f5379194c5418c5cb66
[ "MIT" ]
1
2021-03-07T15:13:49.000Z
2021-03-07T15:13:49.000Z
# Testnet deployment script import json import time from brownie import ( ERC20, ERC20CRV, ERC20LP, CurvePool, CurveRewards, GaugeController, LiquidityGauge, LiquidityGaugeReward, Minter, PoolProxy, VestingEscrow, VotingEscrow, accounts, web3, ) from web3 import...
29.403125
100
0.623977
db4a0248e151a8ad8b1394d2cbe5e868ee7116a1
94
py
Python
biovis_media_extension/convertors/__init__.py
go-choppy/choppy-report
f233ba3b2eaaa9af8936b736ede25233a043dde5
[ "MIT" ]
1
2019-07-02T08:37:30.000Z
2019-07-02T08:37:30.000Z
biovis_media_extension/convertors/__init__.py
go-choppy/choppy-report
f233ba3b2eaaa9af8936b736ede25233a043dde5
[ "MIT" ]
null
null
null
biovis_media_extension/convertors/__init__.py
go-choppy/choppy-report
f233ba3b2eaaa9af8936b736ede25233a043dde5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals internal_convertors = { }
15.666667
39
0.691489
aea969de4f7973681f0ea655b28ca7dbf6e60396
2,069
py
Python
tests/regressiontests/null_fk_ordering/tests.py
kix/django
5262a288df07daa050a0e17669c3f103f47a8640
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.5/tests/regressiontests/null_fk_ordering/tests.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.5/tests/regressiontests/null_fk_ordering/tests.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from __future__ import absolute_import from django.test import TestCase from .models import Author, Article, SystemInfo, Forum, Post, Comment class NullFkOrderingTests(TestCase): def test_ordering_across_null_fk(self): """ Regression test for #7512 ordering across nullable Foreign Keys...
48.116279
102
0.692122
82479bfdafd34ce36b9ce0e1e18d5e62e25e681f
3,836
py
Python
tests/test_annotate.py
pwwang/pyppl_annotate
6eb9a51e3acef2bc3b79b33eec572d6b66b01f9d
[ "MIT" ]
1
2021-09-09T22:12:31.000Z
2021-09-09T22:12:31.000Z
tests/test_annotate.py
pwwang/pyppl_annotate
6eb9a51e3acef2bc3b79b33eec572d6b66b01f9d
[ "MIT" ]
null
null
null
tests/test_annotate.py
pwwang/pyppl_annotate
6eb9a51e3acef2bc3b79b33eec572d6b66b01f9d
[ "MIT" ]
1
2021-09-10T00:16:48.000Z
2021-09-10T00:16:48.000Z
import pytest from diot import Diot import pyppl_annotate as pan from pyppl.proc import Proc @pytest.mark.parametrize('text,expect', [ ("""\ desc1 desc2 @section1: sec1 subsec sec2 """, dict(description = """\ desc1 desc2 """, section1 = """\ sec1 subsec sec2 """)), ("""\ @description: desc1 desc2 @section1: s...
29.736434
130
0.623306
3bd86ee66f29f779f85aae44cb08b2a151cda0d6
30,854
py
Python
airflow/models/dagrun.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
airflow/models/dagrun.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
airflow/models/dagrun.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.957071
110
0.613891
e0359a24992e4416ad0d17d3a9d4364fc129ed6f
16,642
py
Python
oscar_ecomenv/Lib/site-packages/faker/providers/job/fr_FR/__init__.py
PamilerinId/Ecommerce-Boiler
1d706f88c8c828e86309793cb33ea102f385bf2f
[ "Apache-2.0" ]
null
null
null
oscar_ecomenv/Lib/site-packages/faker/providers/job/fr_FR/__init__.py
PamilerinId/Ecommerce-Boiler
1d706f88c8c828e86309793cb33ea102f385bf2f
[ "Apache-2.0" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
oscar_ecomenv/Lib/site-packages/faker/providers/job/fr_FR/__init__.py
PamilerinId/Ecommerce-Boiler
1d706f88c8c828e86309793cb33ea102f385bf2f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as BaseProvider # Source: ONISEP # data.gouv.fr/s/resources/liste-des-metiers-onisep/20150112-173428/metier.csv class Provider(BaseProvider): jobs=["Accessoiriste", "Accompagnateur de moyenne montagne", "Accompagnateur de tourisme éques...
24.728083
78
0.766915
748b86687a2fbc17ac64107176d78e96231bebbb
25,826
py
Python
python/resq/slo/policy.py
NetSys/resq
6bfa19ee3d39b4a9e75c98c91435f270289d0955
[ "MIT" ]
13
2018-03-30T04:56:34.000Z
2022-03-17T02:09:06.000Z
python/resq/slo/policy.py
NetSys/resq
6bfa19ee3d39b4a9e75c98c91435f270289d0955
[ "MIT" ]
1
2018-10-16T16:07:04.000Z
2019-05-30T11:15:17.000Z
python/resq/slo/policy.py
NetSys/resq
6bfa19ee3d39b4a9e75c98c91435f270289d0955
[ "MIT" ]
4
2019-01-25T02:18:47.000Z
2022-03-21T08:47:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import division import glob from gurobipy import * import math import time import numpy as np import matplotlib.pyplot as plt import pandas as pd from numpy import array from pprint import pprint from resq.profile import Profile from resq.run import Run...
39.30898
216
0.487261
c040232bdea3ff576e96d8df2eede9a7e1ccd56f
10,540
py
Python
tools/api-key-rotation/api_key_rotation_checker/main.py
marcosgm/professional-services
f332b425c2f3b6538ebf65afda7e67de3bed1b3d
[ "Apache-2.0" ]
2,116
2017-05-18T19:33:05.000Z
2022-03-31T13:34:48.000Z
tools/api-key-rotation/api_key_rotation_checker/main.py
hyuatpc/professional-services
e5c811a8752e91fdf9f959a0414931010b0ea1ba
[ "Apache-2.0" ]
548
2017-05-20T05:05:35.000Z
2022-03-28T16:38:12.000Z
tools/api-key-rotation/api_key_rotation_checker/main.py
hyuatpc/professional-services
e5c811a8752e91fdf9f959a0414931010b0ea1ba
[ "Apache-2.0" ]
1,095
2017-05-19T00:02:36.000Z
2022-03-31T05:21:39.000Z
#!/usr/bin/env python3 # 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 appli...
30.550725
150
0.645351
88cc10bbfc1cbe5dbee1765885cf7b717a380735
1,822
py
Python
samples/generated_samples/aiplatform_generated_aiplatform_v1_tensorboard_service_update_tensorboard_time_series_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1_tensorboard_service_update_tensorboard_time_series_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/aiplatform_generated_aiplatform_v1_tensorboard_service_update_tensorboard_time_series_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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...
36.44
97
0.789791
65c1d37f49b21fda86202a5e4616917bc72a97ce
407
py
Python
src/core/migrations/0126_auto_20191220_1844.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0126_auto_20191220_1844.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0126_auto_20191220_1844.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-12-20 18:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0125_auto_20191208_0843'), ] operations = [ migrations.AlterField( model_name='reference', name='url', ...
21.421053
74
0.604423
1a8b5b81084bc69184e78290368aa341e8aa5093
65,886
py
Python
CPAC/qc/utils.py
ccraddock/C-PAC
bc94baaa2aa83926b47f20d51f7044bc3b810273
[ "BSD-3-Clause" ]
null
null
null
CPAC/qc/utils.py
ccraddock/C-PAC
bc94baaa2aa83926b47f20d51f7044bc3b810273
[ "BSD-3-Clause" ]
null
null
null
CPAC/qc/utils.py
ccraddock/C-PAC
bc94baaa2aa83926b47f20d51f7044bc3b810273
[ "BSD-3-Clause" ]
1
2017-02-21T18:16:06.000Z
2017-02-21T18:16:06.000Z
import commands import numpy as np import matplotlib import pkg_resources as p matplotlib.use('Agg') import os import nipype.pipeline.engine as pe from nipype.interfaces import afni import nipype.interfaces.utility as util def append_to_files_in_dict_way(list_files, file_): """Combine files so at each resource in...
28.338065
137
0.5756
febbc434a9d151ba12b67c97eb7ced62135d9788
815
py
Python
tomviz/python/BinTiltSeriesByTwo.py
sankhesh/tomviz
7116f4eb75b30534a24462f4ddfb1694fe41c308
[ "BSD-3-Clause" ]
284
2015-01-05T08:53:20.000Z
2022-03-31T07:35:16.000Z
tomviz/python/BinTiltSeriesByTwo.py
sankhesh/tomviz
7116f4eb75b30534a24462f4ddfb1694fe41c308
[ "BSD-3-Clause" ]
1,579
2015-03-19T15:56:44.000Z
2022-03-21T11:29:04.000Z
tomviz/python/BinTiltSeriesByTwo.py
sankhesh/tomviz
7116f4eb75b30534a24462f4ddfb1694fe41c308
[ "BSD-3-Clause" ]
74
2015-01-29T16:24:32.000Z
2022-03-07T21:52:29.000Z
def transform(dataset): """Downsample tilt images by a factor of 2""" from tomviz import utils import scipy.ndimage import numpy as np import warnings array = dataset.active_scalars zoom = (0.5, 0.5, 1) result_shape = utils.zoom_shape(array, zoom) result = np.empty(result_shape, a...
33.958333
65
0.568098
ed8d22a4785e477ff876801f2daa3479e978d87e
10,069
py
Python
Cura/Cura/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import json from json import JSONDecodeError from time import time from typing import Callable, List, Type, TypeVar, Union, Optional, Tuple, Dict, Any, cast from PyQt5.QtCore import QUrl from PyQt5.QtNetwork import QNetwork...
54.722826
120
0.686364
d737d9c13ee7b3a3ca1bb4cf74af7726899cb69c
1,356
py
Python
DatabaseConnection/firebasecontroller.py
Varun8216889/Indra_Bot
e31643206c48a63b2cb934bc4c1de2f2f569ca30
[ "MIT" ]
13
2021-03-04T03:09:21.000Z
2021-04-13T10:28:31.000Z
DatabaseConnection/firebasecontroller.py
Varun8216889/Indra_Bot
e31643206c48a63b2cb934bc4c1de2f2f569ca30
[ "MIT" ]
49
2021-02-21T10:37:06.000Z
2021-04-21T16:03:56.000Z
DatabaseConnection/firebasecontroller.py
Varun8216889/Indra_Bot
e31643206c48a63b2cb934bc4c1de2f2f569ca30
[ "MIT" ]
36
2021-03-03T21:59:49.000Z
2021-07-22T08:55:30.000Z
import pyrebase import logging from DatabaseConnection import CredentialHelper as credential class firebase_controller(object): def __init__(self, service): super().__init__() self.service = service # this is to make a DatabaseConnection Connection with firebase DatabaseConnection service ...
30.818182
94
0.64233
f4637ee3d38c83db5d93d9441454b56e929dfcb1
12,004
py
Python
reagent/test/prediction/test_predictor_wrapper.py
ananthsub/ReAgent
92f223a135b8fbc0942a217acb117ad0935897a3
[ "BSD-3-Clause" ]
1
2021-05-03T15:18:58.000Z
2021-05-03T15:18:58.000Z
reagent/test/prediction/test_predictor_wrapper.py
ananthsub/ReAgent
92f223a135b8fbc0942a217acb117ad0935897a3
[ "BSD-3-Clause" ]
null
null
null
reagent/test/prediction/test_predictor_wrapper.py
ananthsub/ReAgent
92f223a135b8fbc0942a217acb117ad0935897a3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import random import unittest import reagent.models as models import reagent.types as rlt import torch from reagent.model_utils.seq2slate_utils import Seq2SlateMode, Seq2SlateOutputArch from reagent.models.seq2slate import ...
40.829932
88
0.678857
2a3b5bf3fa7b59fbf7a0aaea7979513ad8179237
1,201
py
Python
tools/studio/cvra_studio/network/UavcanNode.py
romainreignier/robot-software
9cd2ffedb5dec99e913d77b8b58b24d451510632
[ "MIT" ]
null
null
null
tools/studio/cvra_studio/network/UavcanNode.py
romainreignier/robot-software
9cd2ffedb5dec99e913d77b8b58b24d451510632
[ "MIT" ]
null
null
null
tools/studio/cvra_studio/network/UavcanNode.py
romainreignier/robot-software
9cd2ffedb5dec99e913d77b8b58b24d451510632
[ "MIT" ]
null
null
null
import threading import time import uavcan class UavcanNode: def __init__(self, interface, node_id): self.handlers = [] self.node_lock = threading.RLock() self.node = uavcan.make_node(interface, node_id=node_id) def add_handler(self, topic, callback): self.handlers.append(self....
28.595238
68
0.610325
57073f68bd7ba3323950704edbaa27f63f514fb7
3,886
py
Python
argo/workflows/client/models/v1alpha1_executor_config.py
zgs225/argo-client-python
2e49a0df9b4f8fc9e90f7808caf22819ff54166c
[ "Apache-2.0" ]
75
2020-03-17T03:55:23.000Z
2021-11-08T09:38:37.000Z
argo/workflows/client/models/v1alpha1_executor_config.py
zgs225/argo-client-python
2e49a0df9b4f8fc9e90f7808caf22819ff54166c
[ "Apache-2.0" ]
24
2020-04-18T13:02:36.000Z
2021-10-20T09:01:23.000Z
argo/workflows/client/models/v1alpha1_executor_config.py
zgs225/argo-client-python
2e49a0df9b4f8fc9e90f7808caf22819ff54166c
[ "Apache-2.0" ]
26
2020-04-18T12:56:28.000Z
2022-01-05T04:47:30.000Z
# coding: utf-8 """ Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: v2.12.2 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 ...
31.593496
134
0.61966
32dfc804b70e5450c6a81ca4ee4f928e0c9fa24e
8,375
py
Python
perturbations_torch/perturbations.py
nlml/perturbations-torch
55a3c5ce0ec9c6ab3def4f015691f302a5dcd826
[ "Apache-2.0" ]
1
2021-11-20T23:46:18.000Z
2021-11-20T23:46:18.000Z
perturbations_torch/perturbations.py
nlml/perturbations-torch
55a3c5ce0ec9c6ab3def4f015691f302a5dcd826
[ "Apache-2.0" ]
null
null
null
perturbations_torch/perturbations.py
nlml/perturbations-torch
55a3c5ce0ec9c6ab3def4f015691f302a5dcd826
[ "Apache-2.0" ]
null
null
null
import torch import functools from typing import Tuple _GUMBEL = "gumbel" _NORMAL = "normal" SUPPORTED_NOISES = (_GUMBEL, _NORMAL) def sample_noise_with_gradients(noise, shape): """Samples a noise tensor according to a distribution with its gradient. Args: noise: (str) a type of supported noise distributi...
42.948718
121
0.54806
756b52c3c57a618897f2c26cb77bc3c2bd7f79a2
66,378
py
Python
Tools/gdb/libpython.py
holmanb/cpython
9405a02f4c50e235d01d942bd91eb4bea2a86e96
[ "0BSD" ]
2
2021-06-06T08:11:15.000Z
2021-06-14T11:25:48.000Z
Tools/gdb/libpython.py
holmanb/cpython
9405a02f4c50e235d01d942bd91eb4bea2a86e96
[ "0BSD" ]
14
2020-03-12T01:10:53.000Z
2022-01-01T14:00:53.000Z
Tools/gdb/libpython.py
holmanb/cpython
9405a02f4c50e235d01d942bd91eb4bea2a86e96
[ "0BSD" ]
1
2021-11-20T00:02:09.000Z
2021-11-20T00:02:09.000Z
#!/usr/bin/python ''' From gdb 7 onwards, gdb's build can be configured --with-python, allowing gdb to be extended with Python code e.g. for library-specific data visualizations, such as for the C++ STL types. Documentation on this API can be seen at: http://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html ...
33.575114
102
0.576938
bc6655c76acee5216c554a12d8bbeb5016b73f49
570
py
Python
example/test_settings.py
imtapps/django-attachment
8a56dd61ca950b24ad6f2c731009e02528f6c474
[ "BSD-2-Clause" ]
null
null
null
example/test_settings.py
imtapps/django-attachment
8a56dd61ca950b24ad6f2c731009e02528f6c474
[ "BSD-2-Clause" ]
null
null
null
example/test_settings.py
imtapps/django-attachment
8a56dd61ca950b24ad6f2c731009e02528f6c474
[ "BSD-2-Clause" ]
null
null
null
from settings import * SOUTH_TESTS_MIGRATE = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'test_db', } } PROJECT_APPS = ('attachments', ) try: import django_jenkins INSTALLED_APPS = INSTALLED_APPS + ('django_jenkins',) JENKINS_TASKS = ( ...
20.357143
57
0.649123
55664403f4359e78b5a7667017e7698f335c90ea
15,017
py
Python
yaml_conversion/lib/google/appengine/api/yaml_builder.py
RichieEscarez/appengine-config-transformer
f893de9e9afb7aa28eb231de75ab2e3590279226
[ "Apache-2.0" ]
9
2016-07-27T22:50:32.000Z
2020-01-13T19:32:09.000Z
yaml_conversion/lib/google/appengine/api/yaml_builder.py
RichieEscarez/appengine-config-transformer
f893de9e9afb7aa28eb231de75ab2e3590279226
[ "Apache-2.0" ]
5
2017-03-17T17:02:41.000Z
2020-01-07T12:09:11.000Z
yaml_conversion/lib/google/appengine/api/yaml_builder.py
RichieEscarez/appengine-config-transformer
f893de9e9afb7aa28eb231de75ab2e3590279226
[ "Apache-2.0" ]
18
2016-01-26T21:06:26.000Z
2021-10-09T15:02:43.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.156317
80
0.694546
98af15fdaa30f8d450a9e74188b55916a1fa1a65
9,917
py
Python
core/modules/modul/build.py
michaelwang123/PaddleRec
4feb0a7f962e918bdfa4f7289a9ddfd08d459824
[ "Apache-2.0" ]
2
2020-06-05T15:53:07.000Z
2020-12-14T07:03:45.000Z
core/modules/modul/build.py
michaelwang123/PaddleRec
4feb0a7f962e918bdfa4f7289a9ddfd08d459824
[ "Apache-2.0" ]
null
null
null
core/modules/modul/build.py
michaelwang123/PaddleRec
4feb0a7f962e918bdfa4f7289a9ddfd08d459824
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 required by appli...
39.987903
84
0.531512
840a0e596946dae689c8f6a1812c608b5c398ecc
7,412
py
Python
ngx_tail.py
billowqiu/nginx_log_stat
e2a58cf432cbd4147a4a64697df71d35f518a79d
[ "MIT" ]
null
null
null
ngx_tail.py
billowqiu/nginx_log_stat
e2a58cf432cbd4147a4a64697df71d35f518a79d
[ "MIT" ]
null
null
null
ngx_tail.py
billowqiu/nginx_log_stat
e2a58cf432cbd4147a4a64697df71d35f518a79d
[ "MIT" ]
null
null
null
#!/bin/env python # -*- coding: utf-8 -*- """nginx_log_stat - realtime parse nginx log, send stat metric to statsd modify from ngx_top https://github.com/lebinh/ngxtop Usage: nginx_log_stat [options] config --access-log=<access-log> --vhost-prefix=<vhost-prefix> --statsd-port=<statsd-port> nginx_log_stat i...
32.508772
121
0.65286
b6bd01e6ac5c67a0e5ebddf3cba54896b7cd4b88
646
py
Python
signing/bin/dump_image_config.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
signing/bin/dump_image_config.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
signing/bin/dump_image_config.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chrome OS Image kernel cmdline dump.""" from __future__ import print_function from chromite.lib import commandline from chrom...
28.086957
72
0.739938
c549f614abf555c3a3f28c6f3142c66cd2470ee1
14,744
py
Python
linda/linda_app/migrations/0001_initial.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
linda/linda_app/migrations/0001_initial.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
linda/linda_app/migrations/0001_initial.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
106.84058
5,758
0.569384
2915043b8e672314b6d9de6539bb9ca497a1983d
3,436
py
Python
jaxrl/networks/common.py
ethanluoyc/jax-rl
93b41f8038675b5364f89688643f439a21f8e1b8
[ "MIT" ]
null
null
null
jaxrl/networks/common.py
ethanluoyc/jax-rl
93b41f8038675b5364f89688643f439a21f8e1b8
[ "MIT" ]
null
null
null
jaxrl/networks/common.py
ethanluoyc/jax-rl
93b41f8038675b5364f89688643f439a21f8e1b8
[ "MIT" ]
null
null
null
import os from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Union import flax import flax.linen as nn import jax import jax.numpy as jnp import optax def default_init(scale: Optional[float] = jnp.sqrt(2)): return nn.initializers.orthogonal(scale) PRNGKey = Any Params = flax.core.FrozenDict[str...
32.415094
88
0.597788
98d9e2740f28b3cc8cc643fbf90cf9b439a1fc53
4,331
py
Python
strategy_and_environment/strategy_banditsMETC.py
ShenGroup/MPMAB_BEACON
5045a4921cf178380d7ecb8d9aca7de2fa7c3641
[ "MIT" ]
1
2022-01-10T02:05:37.000Z
2022-01-10T02:05:37.000Z
strategy_and_environment/strategy_banditsMETC.py
WeiXiongUST/MPMAB_BEACON
5045a4921cf178380d7ecb8d9aca7de2fa7c3641
[ "MIT" ]
null
null
null
strategy_and_environment/strategy_banditsMETC.py
WeiXiongUST/MPMAB_BEACON
5045a4921cf178380d7ecb8d9aca7de2fa7c3641
[ "MIT" ]
1
2021-12-05T13:32:18.000Z
2021-12-05T13:32:18.000Z
from .communication_helper import * class METC_FullSensingMultiPlayerMAB(object): """ Structure of stochastic MPMAB in the full sensing model. The model can be either Homogeneous or Heterogeneous. """ def __init__(self, means, nplayers, na...
43.31
179
0.56592
33e69109c61a310441c6f32b622fe9bc8c44e090
2,291
py
Python
make.py
lyan-pi/python-pawncc
3eaf15d1959fb50343a48dca0e082ed064fb3658
[ "MIT" ]
null
null
null
make.py
lyan-pi/python-pawncc
3eaf15d1959fb50343a48dca0e082ed064fb3658
[ "MIT" ]
null
null
null
make.py
lyan-pi/python-pawncc
3eaf15d1959fb50343a48dca0e082ed064fb3658
[ "MIT" ]
null
null
null
# # https://spdx.org/licenses/MIT.html # https://opensource.org/licenses/MIT # # Full name: MIT License # Short identifier: MIT # # Copyright (c) 2021 - 2022 Lyan. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Sof...
32.267606
97
0.693147
38ac132375ecb2ab0d618825b099ea062fdfcb1f
2,140
py
Python
run_model.py
qinglanDeku/SRN-Deblur
5855e3fb7053753a78a7a128a9ccd9321c03ab0c
[ "MIT" ]
null
null
null
run_model.py
qinglanDeku/SRN-Deblur
5855e3fb7053753a78a7a128a9ccd9321c03ab0c
[ "MIT" ]
null
null
null
run_model.py
qinglanDeku/SRN-Deblur
5855e3fb7053753a78a7a128a9ccd9321c03ab0c
[ "MIT" ]
null
null
null
import os import argparse import tensorflow as tf # import models.model_gray as model # import models.model_color as model import models.model as model def parse_args(): parser = argparse.ArgumentParser(description='deblur arguments') parser.add_argument('--phase', type=str, default='test', help='determine wh...
41.960784
109
0.664019
c15207c76b7da73cc1243d8abe9e8a479041157b
1,116
py
Python
grin-py/grinlib/pool.py
davidftv/grin-pool
800ff06e541a06726957fb323a4a8b982d70d371
[ "Apache-2.0" ]
null
null
null
grin-py/grinlib/pool.py
davidftv/grin-pool
800ff06e541a06726957fb323a4a8b982d70d371
[ "Apache-2.0" ]
null
null
null
grin-py/grinlib/pool.py
davidftv/grin-pool
800ff06e541a06726957fb323a4a8b982d70d371
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2018 Blade M. Doyle # 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 ag...
29.368421
74
0.721326
762f8ee5dc1c607e6a9fd41fa39d4869cc3803b5
7,345
py
Python
tools_2/inferring/flask_infer.py
hukefei/chongqing_contest
c38ae3e6f25230282c65cdd568de93f28e88c6d6
[ "Apache-2.0" ]
1
2021-04-12T13:29:54.000Z
2021-04-12T13:29:54.000Z
tools_2/inferring/flask_infer.py
hukefei/chongqing_contest
c38ae3e6f25230282c65cdd568de93f28e88c6d6
[ "Apache-2.0" ]
1
2021-04-12T13:31:27.000Z
2021-04-12T13:33:10.000Z
tools_2/inferring/flask_infer.py
hukefei/chongqing_contest
c38ae3e6f25230282c65cdd568de93f28e88c6d6
[ "Apache-2.0" ]
1
2021-04-21T10:14:15.000Z
2021-04-21T10:14:15.000Z
#!/usr/bin/env python # encoding:utf-8 """ author: liusili @l@icense: (C) Copyright 2019, Union Big Data Co. Ltd. All rights reserved. @contact: liusili@unionbigdata.com @software: @file: flask_infer @time: 2019/12/2 @desc: """ import os import cv2 import numpy as np import time, datetime from mmdet.apis import init_de...
34.646226
109
0.567325
44d1297cdfe6b2143cdd41be7c0d59cf55fc4942
1,452
py
Python
common/error.py
voloshanenko/smsgateway
a1509c7b98d844bc483a47173223062e6e1c2bc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
common/error.py
voloshanenko/smsgateway
a1509c7b98d844bc483a47173223062e6e1c2bc6
[ "ECL-2.0", "Apache-2.0" ]
3
2021-03-26T00:43:30.000Z
2022-03-29T22:03:58.000Z
common/error.py
voloshanenko/smsgateway
a1509c7b98d844bc483a47173223062e6e1c2bc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2015 Neuhold Markus and Kleinsasser Mario # # 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 ...
28.470588
74
0.714187
9f4e08b1c92ecbf7f11f38d3b61af74f28121e96
395
py
Python
scripts/op_data_test.py
smilelight/lightLabel
18aeaf49e1aba7c8857f6182e52f9418651d15dc
[ "Apache-2.0" ]
3
2020-02-21T10:55:20.000Z
2021-03-31T18:12:20.000Z
scripts/op_data_test.py
smilelight/lightLabel
18aeaf49e1aba7c8857f6182e52f9418651d15dc
[ "Apache-2.0" ]
null
null
null
scripts/op_data_test.py
smilelight/lightLabel
18aeaf49e1aba7c8857f6182e52f9418651d15dc
[ "Apache-2.0" ]
4
2020-02-27T12:24:38.000Z
2021-07-09T08:33:17.000Z
# -*- coding: utf-8 -*- # @Time : 2020/2/17 15:23 # @Author : lightsmile # @FileName: op_data_test.py # @Software: PyCharm from lightlabel.db.mongodb import MongoDB db = MongoDB('light_label_corpus', 'ttt_demo') result = db.update({ 'raw_data.word': '李白' }, {'labeled_data': '诗人'}) print(result) print(db.query...
20.789474
46
0.64557
5818cb554a8babbbe4d9ded9f26da106e112acdb
565
py
Python
bitwise.py
kigane/opencv-tutorial
90f21e0a82a6db00b1c3b3982891eeac477beb3c
[ "MIT" ]
null
null
null
bitwise.py
kigane/opencv-tutorial
90f21e0a82a6db00b1c3b3982891eeac477beb3c
[ "MIT" ]
null
null
null
bitwise.py
kigane/opencv-tutorial
90f21e0a82a6db00b1c3b3982891eeac477beb3c
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np img = cv.imread('images/cat.jpg') resized = cv.resize(img, (400, 400), interpolation=cv.INTER_AREA) blank = np.zeros((400, 400), dtype='uint8') rect = cv.rectangle(blank.copy(), (30, 30), (370, 370), 255, thickness=-1) circle = cv.circle(blank.copy(), (200, 200), 200, 255, thickne...
26.904762
74
0.700885
2fbebc00fe352812eb28e80ce0420acf7df63bba
35,015
py
Python
trankit/adapter_transformers/modeling_roberta.py
jsteggink/trankit
61ef593999bfa29751990d0d4bcf259daed05db4
[ "Apache-2.0" ]
613
2021-01-12T14:21:13.000Z
2022-03-29T19:51:47.000Z
trankit/adapter_transformers/modeling_roberta.py
jsteggink/trankit
61ef593999bfa29751990d0d4bcf259daed05db4
[ "Apache-2.0" ]
38
2021-01-13T12:01:15.000Z
2022-03-31T14:13:44.000Z
trankit/adapter_transformers/modeling_roberta.py
jsteggink/trankit
61ef593999bfa29751990d0d4bcf259daed05db4
[ "Apache-2.0" ]
77
2021-01-13T07:33:26.000Z
2022-03-29T19:51:50.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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...
45.65189
150
0.658089
ceadc210b1e5f8e05ce931c695ff14c2ca5babbe
235
py
Python
chapter16/example/example14.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter16/example/example14.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter16/example/example14.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
import tkinter window = tkinter.Tk() frame = tkinter.Frame(window) frame.pack() label = tkinter.Label(frame, text='Name:') label.grid(row = 0, column = 0) entry = tkinter.Entry(frame) entry.grid(row = 1, column = 1) window.mainloop()
21.363636
42
0.706383
a1fd979bf19333a73509a82a93c32dfcce5beea3
8,350
py
Python
pghoard/rohmu/delta/common.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
731
2018-06-01T21:48:43.000Z
2022-03-29T08:21:42.000Z
pghoard/rohmu/delta/common.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
124
2018-06-19T05:59:50.000Z
2022-03-31T18:17:59.000Z
pghoard/rohmu/delta/common.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
64
2018-06-26T14:12:53.000Z
2022-03-20T07:33:33.000Z
# Copyright (c) 2021 Aiven, Helsinki, Finland. https://aiven.io/ import functools import hashlib import json as _json import logging import math import os from datetime import datetime from multiprocessing.dummy import Pool from pathlib import Path from typing import List, Optional from pydantic import BaseModel, Fiel...
29.5053
104
0.64491
e8c118c89929ea78169e5f4b0c728f4b402f226d
5,639
py
Python
crazyflie-lib-python/examples/basiclog.py
manikamakam/swarm
3d3f4692f1969e0973fa8929660a8d0da53cafa7
[ "MIT" ]
null
null
null
crazyflie-lib-python/examples/basiclog.py
manikamakam/swarm
3d3f4692f1969e0973fa8929660a8d0da53cafa7
[ "MIT" ]
null
null
null
crazyflie-lib-python/examples/basiclog.py
manikamakam/swarm
3d3f4692f1969e0973fa8929660a8d0da53cafa7
[ "MIT" ]
1
2019-12-02T01:00:18.000Z
2019-12-02T01:00:18.000Z
# -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 2014 Bitcraze AB # # Cr...
39.159722
79
0.665721
308dc35faf80171297ec21cc02646b4db9909458
1,623
py
Python
setup.py
JojoDevel/depthai-lightning
8146c477a62b9b6ffe4cd4b222988441381bdb62
[ "MIT" ]
null
null
null
setup.py
JojoDevel/depthai-lightning
8146c477a62b9b6ffe4cd4b222988441381bdb62
[ "MIT" ]
null
null
null
setup.py
JojoDevel/depthai-lightning
8146c477a62b9b6ffe4cd4b222988441381bdb62
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import find_packages, setup with open("README.md", encoding="utf-8") as readme_file: readme = readme_file.read() with open("HISTORY.rst", encoding="utf-8") as history_file: history = history_file.read() with open("requirements.txt", encoding="ut...
31.823529
103
0.666051
76e60cc7cb9b157fb1d801cd980cdd4b381878db
1,415
py
Python
schoolport/app_core/migrations/0004_auto_20210505_1932.py
yotink522/schoolport
c6cfd0230ca05fb44f77c2f27c7e200828547bd5
[ "MIT" ]
null
null
null
schoolport/app_core/migrations/0004_auto_20210505_1932.py
yotink522/schoolport
c6cfd0230ca05fb44f77c2f27c7e200828547bd5
[ "MIT" ]
null
null
null
schoolport/app_core/migrations/0004_auto_20210505_1932.py
yotink522/schoolport
c6cfd0230ca05fb44f77c2f27c7e200828547bd5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-05 11:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_core', '0003_auto_20210505_1923'), ] operations = [ migrations.CreateModel( name='TB_Param_Course', fields=[ ...
36.282051
114
0.592226
12a485bdd58c047248e781c48c1e18281a531810
953
py
Python
openstack_dashboard/dashboards/project/volumes/snapshots/urls.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/volumes/snapshots/urls.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/volumes/snapshots/urls.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "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 # d...
35.296296
78
0.695698
8505ec94b4c206aaa6a6593ccc9d3c1ea28d3a2e
1,265
py
Python
setup.py
mtanghu/URF
4c541e9b20b0e3faabdae84b956faf61a8ef31d7
[ "Apache-2.0" ]
7
2018-08-27T13:11:02.000Z
2022-03-19T18:38:50.000Z
setup.py
mtanghu/URF
4c541e9b20b0e3faabdae84b956faf61a8ef31d7
[ "Apache-2.0" ]
null
null
null
setup.py
mtanghu/URF
4c541e9b20b0e3faabdae84b956faf61a8ef31d7
[ "Apache-2.0" ]
2
2018-08-27T13:11:07.000Z
2022-02-08T23:20:51.000Z
from setuptools import setup from codecs import open from os import path import re here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() def read(*parts): with open(path.join(here, *parts), 'r') as fp: return fp.read(...
28.75
82
0.640316
7b198b911f4442f8907c8728e9f23a5468a7fedf
1,007
py
Python
Chapter08/casestudy/casestudy2.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
31
2020-08-10T22:37:41.000Z
2022-03-09T21:35:56.000Z
Chapter08/casestudy/casestudy2.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
null
null
null
Chapter08/casestudy/casestudy2.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
21
2020-08-10T22:37:44.000Z
2022-03-07T07:26:28.000Z
#casestudy2.py: word count application import matplotlib.pyplot as plt from pyspark.sql import SparkSession from wordcloud import WordCloud spark = SparkSession.builder.master("local[*]")\ .appName("word cloud app")\ .getOrCreate() wc_threshold = 1 wl_threshold = 3 textRDD = spark.sparkContext.textFile('wordc...
30.515152
64
0.724926
f17e11c307eded55515afbd23062f63088f6d001
9,370
py
Python
scripts/dvas-integration.py
actris-cloudnet/data-processing
8ab6fccd5cf48e10e985addcf339b9698a9b09cd
[ "MIT" ]
null
null
null
scripts/dvas-integration.py
actris-cloudnet/data-processing
8ab6fccd5cf48e10e985addcf339b9698a9b09cd
[ "MIT" ]
5
2020-08-27T12:34:08.000Z
2021-09-28T14:49:20.000Z
scripts/dvas-integration.py
actris-cloudnet/data-processing
8ab6fccd5cf48e10e985addcf339b9698a9b09cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from sys import argv from urllib.error import HTTPError from data_processing import utils from datetime import datetime import re import requests import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') def create_title(file): ret...
48.298969
289
0.611846