hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7941ca02292fe3ca47bb22618c5c7a4b82c83a41
4,201
py
Python
keystone/common/sql/migrate_repo/versions/009_normalize_identity.py
ioram7/keystone
81b5ad22cc8b85d622a332e62e5c4cb63155b654
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/009_normalize_identity.py
ioram7/keystone
81b5ad22cc8b85d622a332e62e5c4cb63155b654
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/009_normalize_identity.py
ioram7/keystone
81b5ad22cc8b85d622a332e62e5c4cb63155b654
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack 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 requ...
37.176991
75
0.677458
7941ca2f56affdacd097a5e003117b6cea905853
11,976
py
Python
tests/test_subjects/test_asyncsubject.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_subjects/test_asyncsubject.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_subjects/test_asyncsubject.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-04T11:13:49.000Z
2021-11-04T11:13:49.000Z
from nose.tools import assert_raises, raises from rx import Observable, Observer from rx.testing import TestScheduler, ReactiveTest, is_prime, MockDisposable from rx.disposables import Disposable, SerialDisposable from rx.subjects import AsyncSubject from rx.internal.exceptions import DisposedException on_next = Reac...
30.629156
76
0.672512
7941ca7196c438b5a8a5a44a7e20ecce35ee8c63
1,159
py
Python
nz_django/day6/model_form_demo/front/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day6/model_form_demo/front/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day6/model_form_demo/front/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# Generated by Django 2.0 on 2020-02-25 07:32 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ...
34.088235
131
0.582399
7941ccda2f94efa176a95a3ca15e713b203b9779
8,221
py
Python
sdk/python/pulumi_azure_native/customerinsights/v20170101/get_connector.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/customerinsights/v20170101/get_connector.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/customerinsights/v20170101/get_connector.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables __a...
34.542017
263
0.634716
7941cd0e0369fdb139f70dfc106604a172155464
285
py
Python
conftest.py
testinggg-art/Cyberbrain
e38c74c174e23aa386d005b03f09b30aa1b3a0ae
[ "MIT" ]
null
null
null
conftest.py
testinggg-art/Cyberbrain
e38c74c174e23aa386d005b03f09b30aa1b3a0ae
[ "MIT" ]
null
null
null
conftest.py
testinggg-art/Cyberbrain
e38c74c174e23aa386d005b03f09b30aa1b3a0ae
[ "MIT" ]
null
null
null
import sys # test_outside_func.py is ignored because it has code in global scope, and is always # executed if not ignored. collect_ignore = ["test/test_outside_func.py", "test/test_generator.py"] if sys.version_info[:2] < (3, 8): collect_ignore.append("test/test_block_py38.py")
31.666667
84
0.754386
7941cd222382d46946f904ece31cbd55d3b2512b
21,013
py
Python
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
techthiyanes/adapter-transformers
04aeaf63c4c54856d416925258393d9e06866b46
[ "Apache-2.0" ]
null
null
null
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
techthiyanes/adapter-transformers
04aeaf63c4c54856d416925258393d9e06866b46
[ "Apache-2.0" ]
null
null
null
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
techthiyanes/adapter-transformers
04aeaf63c4c54856d416925258393d9e06866b46
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team. 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...
41.282908
126
0.695046
7941cef42bc9fabf52923f41cff0efd8032e3f4b
32,499
py
Python
tests/utilities/test_build_client_schema.py
hspedro/graphql-core
2b27e641d51789f532f989d3e125e04b33d24564
[ "MIT" ]
null
null
null
tests/utilities/test_build_client_schema.py
hspedro/graphql-core
2b27e641d51789f532f989d3e125e04b33d24564
[ "MIT" ]
null
null
null
tests/utilities/test_build_client_schema.py
hspedro/graphql-core
2b27e641d51789f532f989d3e125e04b33d24564
[ "MIT" ]
null
null
null
from pytest import raises # type: ignore from graphql import graphql_sync from graphql.pyutils import dedent from graphql.type import ( GraphQLArgument, GraphQLBoolean, GraphQLEnumType, GraphQLEnumValue, GraphQLField, GraphQLFloat, GraphQLID, GraphQLInt, GraphQLObjectType, Grap...
31.644596
88
0.525893
7941cf9492d448499691f6cc928bf28124e1e587
1,059
py
Python
benchmarks/convnet/nets/overfeat.py
kmaehashi/chainer-benchmark
7af2005d71253d236f7f239119d7130f22b26bb4
[ "MIT" ]
9
2018-04-09T10:26:45.000Z
2019-07-13T11:31:49.000Z
benchmarks/convnet/nets/overfeat.py
chainer/chainer-benchmark
8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb
[ "MIT" ]
19
2018-04-09T10:35:12.000Z
2018-08-30T08:49:40.000Z
benchmarks/convnet/nets/overfeat.py
chainer/chainer-benchmark
8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb
[ "MIT" ]
2
2018-04-09T10:26:53.000Z
2019-03-20T01:35:26.000Z
import chainer import chainer.functions as F import chainer.links as L class overfeat(chainer.Chain): insize = 231 def __init__(self): super(overfeat, self).__init__() with self.init_scope(): self.conv1 = L.Convolution2D(3, 96, 11, stride=4) self.conv2 = L.Convolu...
35.3
66
0.564684
7941d09a5f29369cad0714aab7050d6fd1a58a9b
4,362
py
Python
contrib/devtools/logprint-scanner.py
Gh0st-N1njA/PactumCoin
bf9b86e9f4015b9edce0a662b3b0ea3e243d866f
[ "MIT" ]
null
null
null
contrib/devtools/logprint-scanner.py
Gh0st-N1njA/PactumCoin
bf9b86e9f4015b9edce0a662b3b0ea3e243d866f
[ "MIT" ]
null
null
null
contrib/devtools/logprint-scanner.py
Gh0st-N1njA/PactumCoin
bf9b86e9f4015b9edce0a662b3b0ea3e243d866f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The PCTM developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import os, sys from subprocess import check_output def countRelevantCommas(line): openParensPosStack = [] ...
42.349515
167
0.568088
7941d10480099da01f8e1544b4dcc77abcc72a85
30,741
py
Python
sahara/tests/integration/tests/base.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
sahara/tests/integration/tests/base.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
sahara/tests/integration/tests/base.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis 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 writ...
42.226648
79
0.560489
7941d295aa85e160e8382d424eaa3e3f6df7164c
2,846
py
Python
nbr/models.py
johnmwangi/Nbr_Hood
7a4be73db001560a2a17f37166a544381fe07581
[ "MIT" ]
null
null
null
nbr/models.py
johnmwangi/Nbr_Hood
7a4be73db001560a2a17f37166a544381fe07581
[ "MIT" ]
3
2021-03-19T01:03:21.000Z
2022-01-13T01:16:52.000Z
nbr/models.py
johnmwangi/Nbr_Hood
7a4be73db001560a2a17f37166a544381fe07581
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class Location(models.Model): name = models.CharField(max_length=100,null=True) def __str__(self): return self.name c...
29.957895
90
0.711525
7941d2ba01ba9a99ddc42ff4ed2404d541fdfbfc
162
py
Python
app/gpt/gptauto.py
toratoradora/sukima
456fb160b5455ed9f3a1eac648cd1ad1c9fcc2f1
[ "BSD-2-Clause" ]
null
null
null
app/gpt/gptauto.py
toratoradora/sukima
456fb160b5455ed9f3a1eac648cd1ad1c9fcc2f1
[ "BSD-2-Clause" ]
null
null
null
app/gpt/gptauto.py
toratoradora/sukima
456fb160b5455ed9f3a1eac648cd1ad1c9fcc2f1
[ "BSD-2-Clause" ]
null
null
null
class GPTAuto: def __init__(self, model_name='generic'): self.model_name = model_name def generate(self, args): return 'Not implemented'
23.142857
45
0.660494
7941d31624033994a517c40e2ab0ec5b9de9c537
15,881
py
Python
app/enquiries/tests/test_auth.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
3
2020-04-03T12:16:56.000Z
2020-12-09T18:18:49.000Z
app/enquiries/tests/test_auth.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
173
2020-03-18T09:31:50.000Z
2022-03-26T04:19:41.000Z
app/enquiries/tests/test_auth.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
null
null
null
import datetime from collections.abc import Mapping, Sequence import mohawk import pytest from django.urls import reverse, path from freezegun import freeze_time from rest_framework import status from rest_framework.response import Response from rest_framework.test import APIRequestFactory from rest_framework.views im...
34.300216
99
0.607707
7941d32dbc9a6d8f5f932f59da624b6f97dc0965
24,953
py
Python
modules/tools/prediction/data_pipelines/cruiseMLP_train.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
27
2019-04-06T02:27:14.000Z
2021-11-27T13:47:06.000Z
modules/tools/prediction/data_pipelines/cruiseMLP_train.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
7
2021-03-10T18:14:25.000Z
2022-02-27T04:46:46.000Z
modules/tools/prediction/data_pipelines/cruiseMLP_train.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
38
2019-04-15T10:58:37.000Z
2022-01-27T08:52:39.000Z
############################################################################### # Copyright 2018 The Apollo 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 # # h...
36.374636
111
0.625135
7941d3f85c65a9427a9c5a3bb6de94f55fab2624
5,157
py
Python
support/blink1_ctypes.py
fullphat/redsquare
cd0114e605a90930210e61ea31a88f8fbc1325b9
[ "MIT" ]
1
2020-05-25T21:32:35.000Z
2020-05-25T21:32:35.000Z
support/blink1_ctypes.py
fullphat/redsquare
cd0114e605a90930210e61ea31a88f8fbc1325b9
[ "MIT" ]
null
null
null
support/blink1_ctypes.py
fullphat/redsquare
cd0114e605a90930210e61ea31a88f8fbc1325b9
[ "MIT" ]
null
null
null
""" blink1_ctypes.py -- blink(1) Python library Uses ctypes wrapper around blink1-lib C library (which in turn wraps HIDAPI) Make sure you have the blink1-lib shared library in the same directory as blink1_ctypes.py or in your LD_LIBRARY_PATH Based on Stephen Youndt's script on how to wrap the C library 2013, Tod ...
28.65
85
0.696529
7941d4c41897eefbb29ff935d1b88637e441b89e
7,302
py
Python
venv/lib/python3.6/site-packages/sqlalchemy/dialects/mysql/mysqldb.py
tchengatcincoai/cryptocoin-prices-compare
f295fecc7213a877bf717af0eb98414e9137b554
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
desktop/core/ext-py/SQLAlchemy-1.2.0b3/lib/sqlalchemy/dialects/mysql/mysqldb.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
desktop/core/ext-py/SQLAlchemy-1.2.0b3/lib/sqlalchemy/dialects/mysql/mysqldb.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
43
2018-02-05T23:23:46.000Z
2021-07-28T22:51:42.000Z
# mysql/mysqldb.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: mysql+mysqldb :name: MySQL-Python :dbapi: mysqldb :co...
33.040724
95
0.618461
7941d5639f8d2aa0213dc65774928f1e91249cec
1,254
py
Python
mbrl/third_party/pytorch_sac/agent/critic.py
pecey/mbrl-lib
ebca518b35a1370dbaede2a1c96fcde714bc5489
[ "MIT" ]
592
2021-04-20T04:30:18.000Z
2022-03-30T13:34:54.000Z
mbrl/third_party/pytorch_sac/agent/critic.py
pecey/mbrl-lib
ebca518b35a1370dbaede2a1c96fcde714bc5489
[ "MIT" ]
57
2021-04-21T17:20:05.000Z
2022-03-28T15:31:45.000Z
mbrl/third_party/pytorch_sac/agent/critic.py
pecey/mbrl-lib
ebca518b35a1370dbaede2a1c96fcde714bc5489
[ "MIT" ]
76
2021-04-20T15:50:14.000Z
2022-03-25T19:05:25.000Z
import torch from torch import nn from mbrl.third_party.pytorch_sac import utils class DoubleQCritic(nn.Module): """Critic network, employes double Q-learning.""" def __init__(self, obs_dim, action_dim, hidden_dim, hidden_depth): super().__init__() self.Q1 = utils.mlp(obs_dim + action_dim, ...
30.585366
78
0.606858
7941d58023e4359b860a8ca02acfd8a6374c3557
3,016
py
Python
dmonscikit/dmonscikitdbscan.py
dice-project/DICE-Anomaly-Detection-Tool
a5eeacb9e888348adbe97be0c26a500f2f03ec6f
[ "Apache-2.0" ]
4
2017-02-06T15:33:06.000Z
2018-05-08T01:43:03.000Z
dmonscikit/dmonscikitdbscan.py
dice-project/DICE-Anomaly-Detection-Tool
a5eeacb9e888348adbe97be0c26a500f2f03ec6f
[ "Apache-2.0" ]
null
null
null
dmonscikit/dmonscikitdbscan.py
dice-project/DICE-Anomaly-Detection-Tool
a5eeacb9e888348adbe97be0c26a500f2f03ec6f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ =================================== Demo of DBSCAN clustering algorithm =================================== Finds core samples of high density and expands clusters from them. """ print(__doc__) import numpy as np from sklearn.cluster import DBSCAN from sklearn import metrics from sklearn...
30.16
80
0.623674
7941d5c82199f6fd04f65d3d6c085ae095c8c9aa
2,814
py
Python
var/spack/repos/builtin/packages/rocm-device-libs/package.py
keerthana4708/spack
b3deaed2b32fe410b40537d969460f084dddadbb
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rocm-device-libs/package.py
keerthana4708/spack
b3deaed2b32fe410b40537d969460f084dddadbb
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rocm-device-libs/package.py
keerthana4708/spack
b3deaed2b32fe410b40537d969460f084dddadbb
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2022-02-22T12:42:18.000Z
2022-02-22T12:42:18.000Z
# Copyright 2013-2021 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 RocmDeviceLibs(CMakePackage): """set of AMD specific device-side language runtime librari...
51.163636
123
0.712154
7941d6045c4b9e330b505217ea29784c96ff6a30
2,710
py
Python
elasticutils/contrib/django/tests/__init__.py
peopledoc/elasticutils
17e3f97b0ea36a7159ce806f48a662a3f8d678b3
[ "BSD-3-Clause" ]
59
2015-01-04T07:39:01.000Z
2019-12-27T14:10:32.000Z
elasticutils/contrib/django/tests/__init__.py
tictail/elasticutils
de2987ff0bc2ee15cdfea13899d9c5e1347d75f0
[ "BSD-3-Clause" ]
11
2015-01-03T17:39:07.000Z
2019-02-19T16:42:53.000Z
elasticutils/contrib/django/tests/__init__.py
tictail/elasticutils
de2987ff0bc2ee15cdfea13899d9c5e1347d75f0
[ "BSD-3-Clause" ]
21
2015-01-05T13:14:02.000Z
2022-02-16T06:44:42.000Z
# We need to put these in a separate module so they're easy to import # on a test-by-test basis so that we can skip django-requiring tests # if django isn't installed. from elasticutils.contrib.django import MappingType, Indexable _model_cache = [] def reset_model_cache(): del _model_cache[0:] class Meta(ob...
25.809524
75
0.593727
7941d667ee65669cbeb144fb621a256dcef07879
4,206
py
Python
setup.py
smacken/mockportfolio
bb7ef73ba19be52e22adf5b22e30fd1e9e0e585f
[ "MIT" ]
null
null
null
setup.py
smacken/mockportfolio
bb7ef73ba19be52e22adf5b22e30fd1e9e0e585f
[ "MIT" ]
297
2019-10-21T17:26:33.000Z
2021-07-19T17:19:23.000Z
setup.py
smacken/trading-mock-portfolio
bb7ef73ba19be52e22adf5b22e30fd1e9e0e585f
[ "MIT" ]
null
null
null
''' mock portfolio ''' import os.path # import codecs # To use a consistent encoding import setuptools import re import time here = os.path.abspath(os.path.dirname(__file__)) now = str(round(time.time())) with open("README.md", "r") as f: desc = f.read() desc = desc.split("<!-- content -->")[-1] desc = r...
35.644068
107
0.651213
7941d728ba3052ec7d68f3352b7aae2b6daea405
4,128
py
Python
san/transform.py
Singularity-DAO/sanpy
51cffce07bd36548cb1d7eb8dc40136cf075729d
[ "MIT" ]
1
2022-03-21T22:38:43.000Z
2022-03-21T22:38:43.000Z
san/transform.py
Singularity-DAO/sanpy
51cffce07bd36548cb1d7eb8dc40136cf075729d
[ "MIT" ]
null
null
null
san/transform.py
Singularity-DAO/sanpy
51cffce07bd36548cb1d7eb8dc40136cf075729d
[ "MIT" ]
null
null
null
""" In order to have metrics, which require different order, we need to have transform functions, which reorder or make different dictionaries in general. """ import operator import pandas as pd from san.pandas_utils import convert_to_datetime_idx_df from functools import reduce from collections import OrderedDict fro...
32.25
97
0.626211
7941d736623b035efc0ec533604ca0753310c982
2,874
py
Python
transform/stacked_autoencoder_tf.py
kashefy/transform
bb0855d06c878b5015810bbf6e1f9c7b6b1414a3
[ "BSD-2-Clause" ]
null
null
null
transform/stacked_autoencoder_tf.py
kashefy/transform
bb0855d06c878b5015810bbf6e1f9c7b6b1414a3
[ "BSD-2-Clause" ]
null
null
null
transform/stacked_autoencoder_tf.py
kashefy/transform
bb0855d06c878b5015810bbf6e1f9c7b6b1414a3
[ "BSD-2-Clause" ]
null
null
null
''' Created on May 26, 2017 @author: kashefy ''' from nideep.nets.abstract_net_tf import AbstractNetTF from autoencoder_tf import Autoencoder as AE class StackedAutoencoder(AbstractNetTF): ''' classdocs ''' def _init_learning_params_scoped(self): pass def _init_ops(self): pass...
26.127273
70
0.533403
7941d74b3a31046e7e3b166d5f847511c699425a
78
py
Python
dream/game/__init__.py
icyblade/dream
818e77f1c25e51f8cd966f7aa4eb1bcd4207b208
[ "MIT" ]
null
null
null
dream/game/__init__.py
icyblade/dream
818e77f1c25e51f8cd966f7aa4eb1bcd4207b208
[ "MIT" ]
null
null
null
dream/game/__init__.py
icyblade/dream
818e77f1c25e51f8cd966f7aa4eb1bcd4207b208
[ "MIT" ]
null
null
null
class Game(object): """Abstract class of Texas Hold'em game.""" pass
15.6
47
0.628205
7941d7629d93b12b7ca31af401c1c19f4609c054
6,117
py
Python
engine/migrations/0001_initial.py
ainterr/scoring_engine
d986eef08dcb819add20ed87d91239f887f62daa
[ "MIT" ]
null
null
null
engine/migrations/0001_initial.py
ainterr/scoring_engine
d986eef08dcb819add20ed87d91239f887f62daa
[ "MIT" ]
7
2016-02-24T21:01:22.000Z
2017-01-04T03:22:44.000Z
engine/migrations/0001_initial.py
ainterr/scoring_engine
d986eef08dcb819add20ed87d91239f887f62daa
[ "MIT" ]
2
2016-03-04T17:04:48.000Z
2020-01-30T21:03:49.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-30 19:11 from __future__ import unicode_literals import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
52.732759
329
0.614353
7941d7bcf6767496d6e77091790a358a3a167815
10,355
py
Python
codes/informed-ID-man-conflict.py
hamedwaezi01/ai
74257b732eb2457ab98d93e5acd6ce37e8eb1d01
[ "MIT" ]
1
2020-10-30T08:28:30.000Z
2020-10-30T08:28:30.000Z
codes/informed-ID-man-conflict.py
hamedwaezi01/ai
74257b732eb2457ab98d93e5acd6ce37e8eb1d01
[ "MIT" ]
null
null
null
codes/informed-ID-man-conflict.py
hamedwaezi01/ai
74257b732eb2457ab98d93e5acd6ce37e8eb1d01
[ "MIT" ]
null
null
null
''' Hamed Waezi AI HW1 IDA* Heuristic => Manhattan Distance + Linear Conflicts Cutoff => f(n) ''' import heapq import copy print('Dimensions:') dim = int(input()) tiles = dim*dim class Node: # Node is the state def __init__(self, n, data, pp, blank, g): self.n = n self.data = data # A 2D array ...
38.069853
220
0.499083
7941d88daf9ae8f320d610a717cdeed4551427bd
2,065
py
Python
src/panoptoindexconnector/implementations/debug_implementation.py
Panopto/panopto-index-connector
8fc5597c42e4dd4ee0001ec8d1b67750cf5eab1f
[ "Apache-2.0" ]
2
2020-09-30T06:42:34.000Z
2021-11-05T15:19:06.000Z
src/panoptoindexconnector/implementations/debug_implementation.py
Panopto/panopto-index-connector
8fc5597c42e4dd4ee0001ec8d1b67750cf5eab1f
[ "Apache-2.0" ]
4
2021-08-03T21:29:21.000Z
2022-03-11T19:51:51.000Z
src/panoptoindexconnector/implementations/debug_implementation.py
Panopto/panopto-index-connector
8fc5597c42e4dd4ee0001ec8d1b67750cf5eab1f
[ "Apache-2.0" ]
2
2020-09-29T15:17:42.000Z
2021-08-02T04:04:36.000Z
""" Methods for the connector application to convert and sync content to the target endpoint Implement these methods for the connector application """ # Standard Library Imports import json import logging import os # Third party # import requests # Global constants DIR = os.path.dirname(os.path.realpath(__file__)) ...
26.139241
97
0.621792
7941d8d7297023314ec46851ba8569eb75c28abc
112,254
py
Python
src/metpy/calc/thermo.py
gerritholl/MetPy
3f08b770485835982989f34aedb87791af250301
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/thermo.py
gerritholl/MetPy
3f08b770485835982989f34aedb87791af250301
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/thermo.py
gerritholl/MetPy
3f08b770485835982989f34aedb87791af250301
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Contains a collection of thermodynamic calculations.""" import contextlib import warnings import numpy as np import scipy.integrate as si import scipy.op...
33.538691
95
0.66607
7941d8fb2d5f70a785138454856ad5b071f37c07
4,077
py
Python
datasets/lj_speech/lj_speech.py
MitchellTesla/datasets
bf08ea3f95e8209a7afd2b50410ad5db51409d11
[ "Apache-2.0" ]
3,395
2020-05-13T21:16:50.000Z
2020-09-10T14:36:50.000Z
datasets/lj_speech/lj_speech.py
MitchellTesla/datasets
bf08ea3f95e8209a7afd2b50410ad5db51409d11
[ "Apache-2.0" ]
370
2020-05-13T21:28:57.000Z
2020-09-10T11:03:38.000Z
datasets/lj_speech/lj_speech.py
MitchellTesla/datasets
bf08ea3f95e8209a7afd2b50410ad5db51409d11
[ "Apache-2.0" ]
258
2020-05-15T01:17:09.000Z
2020-09-10T12:41:43.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
34.846154
109
0.640177
7941d90d5d685319d17da28a739766de1175b9c9
1,209
py
Python
models/command_wrapper.py
Minigrim0/DiscordReminderBot
9b94c989fd3573fc2b2f8e2f389505bfa6e5eb85
[ "MIT" ]
2
2021-04-02T12:44:30.000Z
2021-04-02T12:50:50.000Z
models/command_wrapper.py
Minigrim0/DiscordReminderBot
9b94c989fd3573fc2b2f8e2f389505bfa6e5eb85
[ "MIT" ]
4
2021-04-02T22:54:20.000Z
2021-04-26T09:02:36.000Z
models/command_wrapper.py
Minigrim0/DiscordReminderBot
9b94c989fd3573fc2b2f8e2f389505bfa6e5eb85
[ "MIT" ]
2
2021-03-02T17:07:14.000Z
2021-03-27T15:29:30.000Z
from discord import Embed class CommandWrapper: """Represents a command, with its help text, its description and the command in itself""" def __init__(self, fun: callable): self.description = None self.command = None self.fun = fun self.help = "" async def __call__(self, ...
27.477273
107
0.598015
7941d915b6363ecbdf98bde2599ec77ea5305f91
343
py
Python
0x04-python-more_data_structures/102-complex_delete.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x04-python-more_data_structures/102-complex_delete.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x04-python-more_data_structures/102-complex_delete.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # 102-complex_delete.py def complex_delete(a_dictionary, value): """Delete keys with a specific value in a dictionary.""" while value in a_dictionary.values(): for k, v in a_dictionary.items(): if v == value: del a_dictionary[k] break ...
24.5
60
0.606414
7941dae7b60ce8980c84d9a03156e4431838e8f7
652
py
Python
analyzer/models/v3.py
AmirSalari/DoHLyzer
07e0a1e64310dad779934a97ebe7db2a03eff3d9
[ "Unlicense" ]
23
2021-04-14T23:46:19.000Z
2022-03-31T04:46:47.000Z
analyzer/models/v3.py
AmirSalari/DoHLyzer
07e0a1e64310dad779934a97ebe7db2a03eff3d9
[ "Unlicense" ]
5
2021-04-19T20:12:20.000Z
2022-02-10T02:12:12.000Z
analyzer/models/v3.py
AmirSalari/DoHLyzer
07e0a1e64310dad779934a97ebe7db2a03eff3d9
[ "Unlicense" ]
8
2021-04-15T06:50:35.000Z
2022-01-15T00:44:45.000Z
from tensorflow.keras import Sequential from tensorflow.keras.layers import Dense, Dropout, LSTM, Conv1D, MaxPool1D, Flatten def create_model(segment_size): model = Sequential() model.add(Conv1D(segment_size * 2, kernel_size=3, input_shape=(segment_size, 5), activation='relu')) model.add(MaxPool1D()) ...
38.352941
104
0.70092
7941db5edd18eca063a39158e20d1754a4bd61cd
4,509
py
Python
tests/app_test.py
jimtheplant/bioplatform
5097fae3a03c48338b552ad15d02b29e408ddbb9
[ "Apache-2.0" ]
null
null
null
tests/app_test.py
jimtheplant/bioplatform
5097fae3a03c48338b552ad15d02b29e408ddbb9
[ "Apache-2.0" ]
null
null
null
tests/app_test.py
jimtheplant/bioplatform
5097fae3a03c48338b552ad15d02b29e408ddbb9
[ "Apache-2.0" ]
null
null
null
import datetime import uuid from unittest.mock import Mock import graphene import pytest from bioplatform.app import app_factory from bioplatform.util import Status BASE_SCALAR_TEST_DATA = [ { "queries": [ { "class_name": "SimpleStringSingleField", "query_field...
26.839286
94
0.556886
7941dba5828a88f19e8edd7999d205c7dc73817e
1,019
py
Python
manga_py/providers/readcomiconline_to.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
337
2019-08-27T16:14:50.000Z
2022-03-29T09:58:22.000Z
manga_py/providers/readcomiconline_to.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
225
2019-08-25T15:02:01.000Z
2022-03-31T06:36:09.000Z
manga_py/providers/readcomiconline_to.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
41
2019-10-04T13:28:02.000Z
2022-03-19T08:18:34.000Z
from manga_py.provider import Provider from .helpers.std import Std class ReadComicOnlineTo(Provider, Std): def get_archive_name(self) -> str: chapter = self.re.search(r'id=(\d+)', self.chapter).group(1) return self.normal_arc_name([self.chapter_id, chapter]) def get_chapter_index(self, no_in...
29.114286
75
0.651619
7941dc35ed19bdd429a600103d6142c5d347f9ff
11,855
py
Python
rdflib/plugins/parsers/pyRdfa/property.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
4
2019-01-07T06:55:58.000Z
2021-07-16T13:34:58.000Z
rdflib/plugins/parsers/pyRdfa/property.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
null
null
null
rdflib/plugins/parsers/pyRdfa/property.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
2
2018-05-01T13:18:13.000Z
2018-11-15T04:58:05.000Z
# -*- coding: utf-8 -*- """ Implementation of the C{@property} value handling. RDFa 1.0 and RDFa 1.1 are fairly different. RDFa 1.0 generates only literals, see U{RDFa Task Force's wiki page<http://www.w3.org/2006/07/SWD/wiki/RDFa/LiteralObject>} for the details. On the other hand, RDFa 1.1, beyond literals, can also ...
38.868852
184
0.677436
7941dce19c4a933853cfcaeead8c12a4d93dd05d
1,555
py
Python
tests/test_base.py
jonancm/django-quantity-field
a1966b2db4e25358ef6520b80cc6b57f90cc847a
[ "MIT" ]
4
2018-02-24T02:54:44.000Z
2021-10-09T12:40:58.000Z
tests/test_base.py
jonancm/django-quantity-field
a1966b2db4e25358ef6520b80cc6b57f90cc847a
[ "MIT" ]
1
2021-10-20T02:40:24.000Z
2021-10-20T02:40:24.000Z
tests/test_base.py
jonancm/django-quantity-field
a1966b2db4e25358ef6520b80cc6b57f90cc847a
[ "MIT" ]
2
2019-02-05T02:19:17.000Z
2019-11-06T21:47:32.000Z
# coding: utf-8 import unittest from quantity_field import ureg from quantity_field.base import MultiQuantity class MultiQuantityTest(unittest.TestCase): def test_single_value(self): self.assertIsInstance(MultiQuantity(0), ureg.Quantity) self.assertEqual(MultiQuantity(3.5, ureg.kg), 3.5 * ureg....
35.340909
86
0.626367
7941dd126eaaf30d0da82004367c9b0aa09ffb30
28,247
py
Python
dataset_reader.py
DREAM-ODA-OS/CloudfreeCoverage
ab1fcac9c94c9a876c8294f968c8fe2e4ba17266
[ "Unlicense", "MIT" ]
null
null
null
dataset_reader.py
DREAM-ODA-OS/CloudfreeCoverage
ab1fcac9c94c9a876c8294f968c8fe2e4ba17266
[ "Unlicense", "MIT" ]
null
null
null
dataset_reader.py
DREAM-ODA-OS/CloudfreeCoverage
ab1fcac9c94c9a876c8294f968c8fe2e4ba17266
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # #------------------------------------------------------------------------------ # -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # # # Dataset reader module of the create_cloudless.py # --- currently containing Readers for: # ...
37.763369
136
0.540659
7941ddf01269aa1b65e2cc1702e4afa3dfdd2a20
11,769
py
Python
envycontrol.py
mphe/envycontrol
ab567d623e58e71a80db10cf01fda4046d14e237
[ "MIT" ]
null
null
null
envycontrol.py
mphe/envycontrol
ab567d623e58e71a80db10cf01fda4046d14e237
[ "MIT" ]
null
null
null
envycontrol.py
mphe/envycontrol
ab567d623e58e71a80db10cf01fda4046d14e237
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import sys import os import re import subprocess # constants declaration VERSION = '1.2.1' # for integrated mode BLACKLIST_PATH = '/etc/modprobe.d/blacklist-nvidia.conf' BLACKLIST_CONTENT = '''# Do not modify this file # Generated by EnvyControl blacklist nouveau blacklist nvi...
30.808901
155
0.633019
7941df7ee157705072049a880567ebe91c62aea4
1,576
py
Python
Macropad_Hotkeys/macros/win-edge.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Macropad_Hotkeys/macros/win-edge.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Macropad_Hotkeys/macros/win-edge.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# MACROPAD Hotkeys example: Microsoft Edge web browser for Windows from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values app = { # REQUIRED dict, must be named 'app' 'name' : 'Windows Edge', # Application name 'macros' : [ # List of button macros... ...
49.25
77
0.521574
7941e13004cbd1b3c30644ced9bb63039b4bcfa3
2,330
py
Python
WebKit/Tools/gtk/common.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
1
2019-06-18T06:52:54.000Z
2019-06-18T06:52:54.000Z
WebKit/Tools/gtk/common.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
WebKit/Tools/gtk/common.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2011 Igalia S.L. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This...
29.493671
81
0.707725
7941e1a47f8bfd3693956b90a156b5c63e99d1a3
883
py
Python
Medeina/config.py
Daniel-Davies/Medeina
94ee3f083032f65570e6073b874aba1820451f26
[ "MIT" ]
1
2020-06-28T00:18:15.000Z
2020-06-28T00:18:15.000Z
Medeina/config.py
Daniel-Davies/Medeina
94ee3f083032f65570e6073b874aba1820451f26
[ "MIT" ]
null
null
null
Medeina/config.py
Daniel-Davies/Medeina
94ee3f083032f65570e6073b874aba1820451f26
[ "MIT" ]
null
null
null
import os.path DATASETS = "datasets" WEB = "interactionWeb" TAXA = "taxonomicIndex" # CONFIDENCE = 'confidences' LINKS = "links" EXCEPTIONS = "reorderedTaxaInteractions" REALNAMES = "speciesStringNames" IDTRACKER = ( "numericCounter-b2ca94aee362f455a41493a0d28b98bc5074065b0f96cbb95028ead20b1c72ea" ) my_path = o...
22.641026
85
0.732729
7941e1eeef41a7113b9de950ba38f7fac8277a12
7,556
py
Python
pgmpy/estimators/CITests.py
predictive-analytics-lab/pgmpy
6c2a31641adc72793acd130d007190fdb1632271
[ "MIT" ]
null
null
null
pgmpy/estimators/CITests.py
predictive-analytics-lab/pgmpy
6c2a31641adc72793acd130d007190fdb1632271
[ "MIT" ]
null
null
null
pgmpy/estimators/CITests.py
predictive-analytics-lab/pgmpy
6c2a31641adc72793acd130d007190fdb1632271
[ "MIT" ]
null
null
null
from warnings import warn import numpy as np import pandas as pd from scipy import stats def chi_square(X, Y, Z, data, **kwargs): """ Chi-square conditional independence test. Tests the null hypothesis that X is independent from Y given Zs. This is done by comparing the observed frequencies with th...
39.560209
106
0.645844
7941e283964f544bb443152b4877c38a9edc6cae
4,105
py
Python
template_site_name/settings.py
Hack3rOneness/django-site-template
90f9649d4130a5c0c5e105071f1338663a2e239b
[ "MIT" ]
8
2019-04-22T04:37:39.000Z
2021-05-20T02:49:10.000Z
template_site_name/settings.py
Hack3rOneness/django-site-template
90f9649d4130a5c0c5e105071f1338663a2e239b
[ "MIT" ]
2
2021-03-25T23:53:40.000Z
2021-06-10T23:04:55.000Z
template_site_name/settings.py
Hack3rOneness/django-site-template
90f9649d4130a5c0c5e105071f1338663a2e239b
[ "MIT" ]
15
2018-07-09T01:11:39.000Z
2022-03-23T19:12:29.000Z
""" Django settings for template_site_name project. Generated by 'django-admin startproject' using Django 1.9.2. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ impo...
27.92517
91
0.709622
7941e3446d22ac84d389605fa04fe1097e041c11
1,257
py
Python
django_template_obfuscator/tests.py
rafahuelin/django-template-obfuscator
5211bda5b9f37e8da6a44425f0362837e9d5a6ad
[ "MIT" ]
3
2019-09-20T14:39:17.000Z
2022-03-15T06:41:51.000Z
django_template_obfuscator/tests.py
rafahuelin/django-template-obfuscator
5211bda5b9f37e8da6a44425f0362837e9d5a6ad
[ "MIT" ]
5
2020-03-31T07:01:09.000Z
2021-06-02T00:25:48.000Z
example/django_template_obfuscator/tests.py
rafahuelin/django-template-obfuscator
5211bda5b9f37e8da6a44425f0362837e9d5a6ad
[ "MIT" ]
1
2019-09-20T14:39:01.000Z
2019-09-20T14:39:01.000Z
import unittest from os import path from selenium import webdriver from templatetags.encoder import obfuscation APP_DIR = path.dirname(path.abspath(__file__)) class ObfuscationTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.quit...
27.933333
97
0.666667
7941e36ec83f81d453e71f7189dab4f2a571513f
1,852
py
Python
neutron/agent/l3/dvr_snat_ns.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_snat_ns.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
3
2015-02-27T00:48:55.000Z
2015-04-21T05:29:37.000Z
neutron/agent/l3/dvr_snat_ns.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
3
2015-02-26T00:55:17.000Z
2020-03-01T17:05:40.000Z
# 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...
38.583333
78
0.683585
7941e3fb6202d27762536634a13a14dd20ad336d
3,896
py
Python
token_management_system/token_manager/api/views.py
pawanvirsingh/token_management
b1ef01e19e37a61c627c6712917807424e77b823
[ "Apache-2.0" ]
null
null
null
token_management_system/token_manager/api/views.py
pawanvirsingh/token_management
b1ef01e19e37a61c627c6712917807424e77b823
[ "Apache-2.0" ]
null
null
null
token_management_system/token_manager/api/views.py
pawanvirsingh/token_management
b1ef01e19e37a61c627c6712917807424e77b823
[ "Apache-2.0" ]
null
null
null
from rest_framework import status from rest_framework.decorators import action from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.mixins import DestroyModelMixin, RetrieveModelMixin, \ UpdateModelMixin from rest_framework.viewsets import GenericViewSet f...
41.892473
130
0.719969
7941e4f457d8f77bb56910fca9c64f649b0a699f
1,963
py
Python
src/plot/plot_int.py
Zimiao1025/Sesica
8b96a9e35a423ef6bd8561ba296ca3f55057af06
[ "BSD-2-Clause" ]
null
null
null
src/plot/plot_int.py
Zimiao1025/Sesica
8b96a9e35a423ef6bd8561ba296ca3f55057af06
[ "BSD-2-Clause" ]
null
null
null
src/plot/plot_int.py
Zimiao1025/Sesica
8b96a9e35a423ef6bd8561ba296ca3f55057af06
[ "BSD-2-Clause" ]
null
null
null
from itertools import cycle import joblib import matplotlib.pyplot as plt def bar_fig(model_path, feats_name, fig_path): # 利用shap打印特征重要度 gbm = joblib.load(model_path) scores = gbm.feature_importances_ print(scores) plt.figure(0) bar_width = 0.4 x1 = [] for i in range(len(scores)): ...
35.053571
113
0.642384
7941e76e08aefc2c14e31c6a4a136434704c67f8
467
py
Python
users/migrations/0002_auto_20210313_1801.py
ezekieltech/eduTech-backend
33b82f57add98285b73d89bc9d97f499cdb3f1e4
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20210313_1801.py
ezekieltech/eduTech-backend
33b82f57add98285b73d89bc9d97f499cdb3f1e4
[ "MIT" ]
15
2021-01-02T17:43:37.000Z
2021-02-13T12:02:11.000Z
users/migrations/0002_auto_20210313_1801.py
ezekieltech/eduTech-backend
33b82f57add98285b73d89bc9d97f499cdb3f1e4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-13 17:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customuser', name='role', f...
24.578947
142
0.593148
7941e9f7e10a1ea7006e313a82152b07ba584c86
6,311
py
Python
.vscode/arctictern.py
Code-Institute-Submissions/patmcdonald-PP1-HTML-CSS_FebResub
ba2d69f3ca0f670a34cee6471f90d905115e493d
[ "BSD-Source-Code" ]
1
2022-01-13T13:51:02.000Z
2022-01-13T13:51:02.000Z
.vscode/arctictern.py
Code-Institute-Submissions/patmcdonald-PP1-HTML-CSS_FebResub
ba2d69f3ca0f670a34cee6471f90d905115e493d
[ "BSD-Source-Code" ]
29
2022-01-22T19:05:56.000Z
2022-03-01T08:57:14.000Z
.vscode/arctictern.py
Code-Institute-Submissions/patmcdonald-PP1-HTML-CSS_FebResub
ba2d69f3ca0f670a34cee6471f90d905115e493d
[ "BSD-Source-Code" ]
1
2022-02-21T12:06:01.000Z
2022-02-21T12:06:01.000Z
""" arctictern.py A little script that does a big migration """ import json import os import requests import shutil import subprocess import sys from os.path import exists BASE_URL = "https://raw.githubusercontent.com/Code-Institute-Org/gitpod-full-template/master/" BACKUP = True MIGRATE = False CURRENT_VERSION = 1....
31.873737
101
0.524164
7941ebf7d25e463c031750c846f7658d800f0e9d
4,608
py
Python
tests/ut/python/parallel/test_sparse_feature_bprop.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/parallel/test_sparse_feature_bprop.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/parallel/test_sparse_feature_bprop.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 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 agreed to...
34.133333
104
0.657552
7941ec507bc59e002087d8508825b95e65385c1f
14,927
py
Python
volttrontesting/platform/dbutils/test_influxdbutils.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
volttrontesting/platform/dbutils/test_influxdbutils.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
4
2021-05-28T19:12:54.000Z
2022-02-18T03:07:40.000Z
volttrontesting/platform/dbutils/test_influxdbutils.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
3
2021-06-12T19:49:56.000Z
2022-02-12T20:14:38.000Z
from time import time import os from gevent import sleep import pytest try: from influxdb import InfluxDBClient except ImportError: pytest.skip( "Required imports for testing are not installed; thus, not running tests. " "If on Ubuntu or Debian OS, install imports with: services/core/InfluxdbHi...
29.21135
126
0.521337
7941ecad8e09ba911447c83dad5cd6e27dc30684
1,868
py
Python
tutorials/tutorial_code/debugging_info/custom_metrics.py
xuweichn/docs
794227e1b7d2dcbf3fc82cd203d32c59c6b933c6
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-02-08T14:07:25.000Z
2021-02-08T14:07:25.000Z
tutorials/tutorial_code/debugging_info/custom_metrics.py
xuweichn/docs
794227e1b7d2dcbf3fc82cd203d32c59c6b933c6
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tutorials/tutorial_code/debugging_info/custom_metrics.py
xuweichn/docs
794227e1b7d2dcbf3fc82cd203d32c59c6b933c6
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# 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 agreed to...
39.744681
84
0.707709
7941ee29faaa1d81c4a590a2c30b76d8330dd495
3,205
py
Python
options/train_options.py
joverwey/Diverse-Motion-Stylization
4791914046a953158f7430541670b8537924e893
[ "MIT" ]
7
2021-11-02T16:56:10.000Z
2022-03-23T05:11:42.000Z
options/train_options.py
joverwey/Diverse-Motion-Stylization
4791914046a953158f7430541670b8537924e893
[ "MIT" ]
null
null
null
options/train_options.py
joverwey/Diverse-Motion-Stylization
4791914046a953158f7430541670b8537924e893
[ "MIT" ]
2
2022-03-04T01:10:40.000Z
2022-03-24T10:56:15.000Z
import os from .base_options import BaseOptions class TrainOptions(BaseOptions): def __init__(self): BaseOptions.__init__(self) def initialize(self, parser): parser = BaseOptions.initialize(self, parser) # dataset parameter parser.add_argument('--num_workers', type=int, defau...
54.322034
138
0.671139
7941ee5e74935bab16b9ee91538200dace1c1509
7,479
py
Python
plugins/aha.plugin.twitteroauth/twitteroauth/twitter.py
Letractively/aha-gae
e1209f7d44d1c59ff9d373b7d89d414f31a9c28b
[ "BSD-3-Clause" ]
null
null
null
plugins/aha.plugin.twitteroauth/twitteroauth/twitter.py
Letractively/aha-gae
e1209f7d44d1c59ff9d373b7d89d414f31a9c28b
[ "BSD-3-Clause" ]
null
null
null
plugins/aha.plugin.twitteroauth/twitteroauth/twitter.py
Letractively/aha-gae
e1209f7d44d1c59ff9d373b7d89d414f31a9c28b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ tipfy.ext.auth.twitter ~~~~~~~~~~~~~~~~~~~~~~ Implementation of Twitter authentication scheme. Ported from `tornado.auth <http://github.com/facebook/tornado/blob/master/tornado/auth.py>`_. :copyright: 2009 Facebook. :copyright: 2010 tipfy.org. :license: Apache ...
35.614286
97
0.649151
7941eec5004d0b5d1a61f495f98eee698dc9ab1d
44,959
py
Python
tests/python/unittest/test_module.py
connorgoggins/incubator-mxnet
37280e4ddf00cacdac50c1e798fd2a14da38ae8d
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_module.py
connorgoggins/incubator-mxnet
37280e4ddf00cacdac50c1e798fd2a14da38ae8d
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_module.py
connorgoggins/incubator-mxnet
37280e4ddf00cacdac50c1e798fd2a14da38ae8d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.564922
120
0.608888
7941ef012dcf5f29b55a4c4879aa4704f5b3ee6b
227
py
Python
examples/jeans_damping.py
DDMGNI/viVlasov1D
901dd058711f6943eb6497b941bc115a64e822de
[ "MIT" ]
2
2018-09-13T12:39:07.000Z
2019-04-05T04:55:59.000Z
examples/jeans_damping.py
DDMGNI/viVlasov1D
901dd058711f6943eb6497b941bc115a64e822de
[ "MIT" ]
null
null
null
examples/jeans_damping.py
DDMGNI/viVlasov1D
901dd058711f6943eb6497b941bc115a64e822de
[ "MIT" ]
null
null
null
""" Jeans Damping Initial density: :math:`n(x) = 1 + A \, \cos{( k_{x} \, ( x - L_{x}/2)) }` with :math:`A = 0.1, k = 2.0` """ import numpy as np def density(x, L): return 1. + 0.1 * np.cos(2.0 * (x - 0.5 * L))
15.133333
77
0.46696
7941ef68de04d3af1c493b2d1d50cf54abb1feeb
2,887
py
Python
app/auth/services/reauthentication.py
Arjun-sna/flask-forum-api-service
9c33c10269a147d7c5225e9c9106ccc43eb31705
[ "BSD-3-Clause" ]
null
null
null
app/auth/services/reauthentication.py
Arjun-sna/flask-forum-api-service
9c33c10269a147d7c5225e9c9106ccc43eb31705
[ "BSD-3-Clause" ]
1
2021-11-25T17:25:19.000Z
2021-11-25T17:25:19.000Z
app/auth/services/reauthentication.py
Arjun-sna/flask-forum-api-service
9c33c10269a147d7c5225e9c9106ccc43eb31705
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ app.auth.services.reauthentication ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tools for handling reauthentication needs inside app. :copyright: (c) 2014-2018 the FlaskForum Team :license: BSD, see LICENSE for more details """ import logging from flask_babelplus import gett...
31.725275
79
0.63353
7941efa04030bfd63e292cb3de20933c30f4773a
17,515
py
Python
musicbot/config.py
GoSeungUk/subot
e1e9b6566d20b6ed81acd646f7528437c5306f24
[ "MIT" ]
4
2020-07-14T15:06:00.000Z
2021-09-23T16:41:14.000Z
musicbot/config.py
GoSeungUk/subot
e1e9b6566d20b6ed81acd646f7528437c5306f24
[ "MIT" ]
3
2021-11-16T05:58:18.000Z
2022-03-30T11:41:19.000Z
musicbot/config.py
GoSeungUk/subot
e1e9b6566d20b6ed81acd646f7528437c5306f24
[ "MIT" ]
1
2021-09-15T00:53:02.000Z
2021-09-15T00:53:02.000Z
import os import sys import codecs import shutil import logging import configparser from .exceptions import HelpfulError log = logging.getLogger(__name__) class Config: # noinspection PyUnresolvedReferences def __init__(self, config_file): self.config_file = config_file self.find_config() ...
45.611979
160
0.64539
7941f01538fb161a16c91ba29d0aaaa2a518c3f4
1,058
py
Python
kubernetes_asyncio/test/test_extensions_v1beta1_scale_spec.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_extensions_v1beta1_scale_spec.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_extensions_v1beta1_scale_spec.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
26.45
124
0.749527
7941f03b00f559059b0ba186cb20e7a4718b8aaf
3,149
py
Python
calculators/settings.py
nathantheinventor/calculators
32a5785cb21e313950961d7388b0d493293f5b3f
[ "Apache-2.0" ]
null
null
null
calculators/settings.py
nathantheinventor/calculators
32a5785cb21e313950961d7388b0d493293f5b3f
[ "Apache-2.0" ]
null
null
null
calculators/settings.py
nathantheinventor/calculators
32a5785cb21e313950961d7388b0d493293f5b3f
[ "Apache-2.0" ]
null
null
null
""" Django settings for calculators project. Generated by 'django-admin startproject' using Django 2.0.2. 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, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import o...
25.811475
91
0.697682
7941f053294ae962dad8e57a0ea9004542cb60c0
6,615
py
Python
mm/src/mm.py
madmachineio/mm-sdk
e587ffd60508699283cd5fcded971ffcc124e115
[ "MIT" ]
13
2020-09-09T04:13:45.000Z
2021-10-01T10:15:31.000Z
mm/src/mm.py
madmachineio/mm-sdk
e587ffd60508699283cd5fcded971ffcc124e115
[ "MIT" ]
null
null
null
mm/src/mm.py
madmachineio/mm-sdk
e587ffd60508699283cd5fcded971ffcc124e115
[ "MIT" ]
1
2021-03-18T10:02:07.000Z
2021-03-18T10:02:07.000Z
import os, sys, platform, argparse from pathlib import Path import log, util, spm, mmp, download PROJECT_PATH = '' def init_project(args): mmp_manifest = Path(PROJECT_PATH / 'Package.mmp') spm_manifest = Path(PROJECT_PATH / 'Package.swift') if mmp_manifest.is_file(): log.die('Package.mmp already ...
38.911765
174
0.674981
7941f0d06b5f7a7c38a31e929f441d0d9e436215
23,930
py
Python
src/indra_cogex/client/neo4j_client.py
bgyori/indra_cogex
04a72d7941d4acd31ebfe73568114415d43394ea
[ "BSD-2-Clause" ]
2
2021-05-27T02:44:09.000Z
2022-01-12T21:34:07.000Z
src/indra_cogex/client/neo4j_client.py
bgyori/indra_cogex
04a72d7941d4acd31ebfe73568114415d43394ea
[ "BSD-2-Clause" ]
33
2021-08-29T18:23:26.000Z
2022-03-29T21:56:08.000Z
src/indra_cogex/client/neo4j_client.py
bgyori/indra_cogex
04a72d7941d4acd31ebfe73568114415d43394ea
[ "BSD-2-Clause" ]
5
2021-06-15T09:01:23.000Z
2022-03-13T14:26:09.000Z
__all__ = ["Neo4jClient"] import logging from typing import Any, Iterable, List, Mapping, Optional, Set, Tuple, Union import neo4j import neo4j.graph from neo4j import GraphDatabase from indra.config import get_config from indra.databases import identifiers from indra.ontology.standardize import get_standard_agent f...
30.100629
92
0.547263
7941f2119393f0343f05fa480a555cdddad49f29
2,040
py
Python
syft_proto/types/syft/v1/shape_pb2.py
gmuraru/syft-proto
b78d9a7ae91cb040b7aaacaf0a0b73589e1f37a1
[ "Apache-2.0" ]
null
null
null
syft_proto/types/syft/v1/shape_pb2.py
gmuraru/syft-proto
b78d9a7ae91cb040b7aaacaf0a0b73589e1f37a1
[ "Apache-2.0" ]
null
null
null
syft_proto/types/syft/v1/shape_pb2.py
gmuraru/syft-proto
b78d9a7ae91cb040b7aaacaf0a0b73589e1f37a1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: syft_proto/types/syft/v1/shape.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message f...
28.732394
172
0.748529
7941f28e8ba987850b922cf33e0e0a2f20b9e87d
214
py
Python
Python/04. Sets/011. The Captain's Room.py
H2u-Hwng/HackerRank-Practice
abe02d04b3e60d30637403204b8735b2b13888a3
[ "MIT" ]
null
null
null
Python/04. Sets/011. The Captain's Room.py
H2u-Hwng/HackerRank-Practice
abe02d04b3e60d30637403204b8735b2b13888a3
[ "MIT" ]
null
null
null
Python/04. Sets/011. The Captain's Room.py
H2u-Hwng/HackerRank-Practice
abe02d04b3e60d30637403204b8735b2b13888a3
[ "MIT" ]
null
null
null
# Problem: https://www.hackerrank.com/challenges/py-the-captains-room/problem # Score: 10.0 k = int(input()) arr = list(map(int, input().split())) s = set(arr) result = (sum(s)*k - sum(arr))//(k-1) print(result)
21.4
77
0.649533
7941f366b8942a5f32bd77e91dd4551066a1090e
380
py
Python
apps/Application/views/htmlview.py
flowl/django-init
ee6cefe2ee14ab5fd2dcdc3deabbbcfdd040f36c
[ "MIT" ]
null
null
null
apps/Application/views/htmlview.py
flowl/django-init
ee6cefe2ee14ab5fd2dcdc3deabbbcfdd040f36c
[ "MIT" ]
null
null
null
apps/Application/views/htmlview.py
flowl/django-init
ee6cefe2ee14ab5fd2dcdc3deabbbcfdd040f36c
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView class HtmlView(TemplateView): template_name = 'sites/hello_world.html' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['page_title'] = 'HTML Title' # context['headline'] = 'Headline' # con...
27.142857
52
0.663158
7941f41f19cac86591be7302ca905c44a33d4a6b
9,729
py
Python
torch/nn/utils/parametrizations.py
raven38/pytorch
3a56758e1fdbc928be3754d5b60e63c7fc55ea45
[ "Intel" ]
5
2021-08-17T17:44:20.000Z
2021-08-21T05:03:42.000Z
torch/nn/utils/parametrizations.py
raven38/pytorch
3a56758e1fdbc928be3754d5b60e63c7fc55ea45
[ "Intel" ]
1
2021-09-03T09:35:27.000Z
2021-09-03T09:35:27.000Z
torch/nn/utils/parametrizations.py
raven38/pytorch
3a56758e1fdbc928be3754d5b60e63c7fc55ea45
[ "Intel" ]
null
null
null
import torch from ..utils import parametrize from ..modules import Module from .. import functional as F from typing import Optional class _SpectralNorm(Module): def __init__( self, weight: torch.Tensor, n_power_iterations: int = 1, dim: int = 0, eps: float = 1e-12 ) ->...
45.891509
118
0.62031
7941f5fcd3fec70be9521e4a5ff72675827a5bfc
593
py
Python
project_euler/problem_01/sol4.py
ELR424/Python
a212efee5b44312c8b4b626ae412bacc5f4117fd
[ "MIT" ]
1,568
2019-04-25T11:54:45.000Z
2022-03-31T23:35:23.000Z
project_euler/problem_01/sol4.py
rayenough/Python
2fc2ae3f32fad16226c88358cb7c9e4e5c790a8f
[ "MIT" ]
58
2019-02-20T10:45:50.000Z
2020-09-30T12:18:45.000Z
project_euler/problem_01/sol4.py
rayenough/Python
2fc2ae3f32fad16226c88358cb7c9e4e5c790a8f
[ "MIT" ]
464
2019-04-17T04:57:16.000Z
2022-03-31T04:12:57.000Z
def mulitples(limit): xmulti = [] zmulti = [] z = 3 x = 5 temp = 1 while True: result = z * temp if (result < limit): zmulti.append(result) temp += 1 else: temp = 1 break while True: result = x * t...
19.129032
42
0.403035
7941f6b5d72f23868dc32feab18a943f1f0c948d
170,326
py
Python
tensorflow/python/keras/backend.py
santhoshkumarvs/tensorflow
5581b91ada226f1ec20f55cd6423853072b2813c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/backend.py
santhoshkumarvs/tensorflow
5581b91ada226f1ec20f55cd6423853072b2813c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/backend.py
santhoshkumarvs/tensorflow
5581b91ada226f1ec20f55cd6423853072b2813c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.304172
112
0.662829
7941f762528b4b8f00d12a834fc791b54d351b32
4,984
py
Python
actionserver/actions/action_complaintform.py
Ajju2211/Restaurant-Bot-Automation
64eed75f26bebaf7cf755790d3f6d012b452c2d3
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_complaintform.py
Ajju2211/Restaurant-Bot-Automation
64eed75f26bebaf7cf755790d3f6d012b452c2d3
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_complaintform.py
Ajju2211/Restaurant-Bot-Automation
64eed75f26bebaf7cf755790d3f6d012b452c2d3
[ "Apache-2.0" ]
null
null
null
from typing import Any, Text, Dict, List, Union from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction from rasa_sdk.events import UserUtteranceReverted, UserUttered, FollowupAction # from rasa_core.events import (UserUtteranceReverted, UserUttered...
35.347518
163
0.626003
7941f77ef781fe41ec398d9da1f9e75100b44022
5,575
py
Python
seq2seq/encoders/rnn_encoder.py
Aniruddha-Tapas/seq2seq
29e4557860a7c6e997c039251195d9104a15585c
[ "Apache-2.0" ]
53
2018-01-03T09:18:09.000Z
2022-03-24T22:47:19.000Z
seq2seq/encoders/rnn_encoder.py
liyc7711/seq2seq
1592b842b652ae648b96c164bead38eb089ce08e
[ "Apache-2.0" ]
9
2018-01-29T19:14:54.000Z
2020-11-03T23:41:05.000Z
seq2seq/encoders/rnn_encoder.py
liyc7711/seq2seq
1592b842b652ae648b96c164bead38eb089ce08e
[ "Apache-2.0" ]
31
2018-11-19T15:52:08.000Z
2021-12-04T13:35:29.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.145251
76
0.717668
7941f7839c3c76d1ccf1f1a4c4f3b6dec269fa4a
2,515
py
Python
bayesian-ab-django/bayesian_ab/abtest/models.py
robinsonkwame/csdt_fora_experiments
fd3f9b208feac5c26457d69ed54e3fe39158614b
[ "MIT" ]
null
null
null
bayesian-ab-django/bayesian_ab/abtest/models.py
robinsonkwame/csdt_fora_experiments
fd3f9b208feac5c26457d69ed54e3fe39158614b
[ "MIT" ]
null
null
null
bayesian-ab-django/bayesian_ab/abtest/models.py
robinsonkwame/csdt_fora_experiments
fd3f9b208feac5c26457d69ed54e3fe39158614b
[ "MIT" ]
null
null
null
import uuid import numpy as np import scipy.stats from django.utils import timezone from django.db import models class Campaign(models.Model): ''' Record for AB Tests conducted ''' timestamp = models.DateTimeField( default=timezone.now, help_text='timestamp of creation of campaign' ) ...
27.637363
83
0.6167
7941f7ccd12200d0df5cfab83740581efb0eee71
2,662
py
Python
app/utils6L/utils6L.py
bvbgrad/fpq02
4bd4017913dd2bcb0d39e24002f5ddbe4cde3c09
[ "MIT" ]
null
null
null
app/utils6L/utils6L.py
bvbgrad/fpq02
4bd4017913dd2bcb0d39e24002f5ddbe4cde3c09
[ "MIT" ]
null
null
null
app/utils6L/utils6L.py
bvbgrad/fpq02
4bd4017913dd2bcb0d39e24002f5ddbe4cde3c09
[ "MIT" ]
null
null
null
""" Copyright 6L LLC (2021) - See MIT LICENSE Cross project features or decorators, similar to Spring Aspect-Oriented Programming(AOP) https://docs.spring.io/spring-framework/docs/4.3.12.RELEASE/spring-framework-reference/html/aop.html usage - copy/paste package directory into the project file structure and Special...
32.864198
100
0.739669
7941f8656f09ac1fd4fcbae6a4d62a52c76b7b57
563
py
Python
Leetcode/0244. Shortest Word Distance II/0244.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0244. Shortest Word Distance II/0244.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0244. Shortest Word Distance II/0244.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class WordDistance: def __init__(self, wordsDict: List[str]): self.wordToIndices = defaultdict(list) for i, word in enumerate(wordsDict): self.wordToIndices[word].append(i) def shortest(self, word1: str, word2: str) -> int: indices1 = self.wordToIndices[word1] indices2 = self.wordToIndices[wo...
25.590909
52
0.609236
7941f8a979178c61230a588ad0dc604992638b46
5,424
py
Python
migrations/versions/017bc688b20f_.py
CatsAreEvil/box-office-studio
0fcf19ccd4f65622d94c6cf0c6ac2ef4fd1bd5f8
[ "MIT" ]
null
null
null
migrations/versions/017bc688b20f_.py
CatsAreEvil/box-office-studio
0fcf19ccd4f65622d94c6cf0c6ac2ef4fd1bd5f8
[ "MIT" ]
1
2019-06-12T01:25:39.000Z
2019-06-12T01:25:40.000Z
migrations/versions/017bc688b20f_.py
CatsAreEvil/box-office-studio
0fcf19ccd4f65622d94c6cf0c6ac2ef4fd1bd5f8
[ "MIT" ]
null
null
null
"""empty message Revision ID: 017bc688b20f Revises: 270947efbfd8 Create Date: 2019-03-15 19:17:26.979166 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '017bc688b20f' down_revision = '270947efbfd8' branch_labels = None depends_on = None def upgrade(): # ...
52.660194
86
0.696718
7941f91e26de2aac163060b5e0be558e7a97c99a
4,317
py
Python
examples/seismic/cemeai/dados_marmousi.py
pedrospeixoto/devito
7abc42202214c534eb962c27cf294ec9893615e1
[ "MIT" ]
1
2021-03-25T21:23:03.000Z
2021-03-25T21:23:03.000Z
examples/seismic/cemeai/dados_marmousi.py
pedrospeixoto/devito
7abc42202214c534eb962c27cf294ec9893615e1
[ "MIT" ]
40
2021-04-09T07:57:02.000Z
2022-03-21T08:15:33.000Z
examples/seismic/cemeai/dados_marmousi.py
pedrospeixoto/devito
7abc42202214c534eb962c27cf294ec9893615e1
[ "MIT" ]
null
null
null
#============================================================================== # Bibliotecas Python #============================================================================== import numpy as np import segyio import sys from scipy.interpolate import CubicSpline from scipy.interpolate im...
38.891892
98
0.4795
7941fdfe0526748b158f22f2562bb2a55456666d
2,088
py
Python
gym_wmgds/envs/mujoco/thrower.py
ozcell/gym_wmgds_ma
c2cb22943913361947216b908d50decc46616e99
[ "Python-2.0", "OLDAP-2.7" ]
1
2020-12-23T16:38:15.000Z
2020-12-23T16:38:15.000Z
gym_wmgds/envs/mujoco/thrower.py
ozcell/gym_wmgds_ma
c2cb22943913361947216b908d50decc46616e99
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
gym_wmgds/envs/mujoco/thrower.py
ozcell/gym_wmgds_ma
c2cb22943913361947216b908d50decc46616e99
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
import numpy as np from gym_wmgds import utils from gym_wmgds.envs.mujoco import mujoco_env class ThrowerEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self): utils.EzPickle.__init__(self) self._ball_hit_ground = False self._ball_hit_location = None mujoco_env.MujocoEnv.__i...
34.229508
78
0.603927
7941ffd1968459e324946a62464c24e505ce0167
4,935
py
Python
lm_experiment.py
cbamann/language-model
d14410c2302bf42bb771abc4a6b859704847798e
[ "MIT" ]
null
null
null
lm_experiment.py
cbamann/language-model
d14410c2302bf42bb771abc4a6b859704847798e
[ "MIT" ]
null
null
null
lm_experiment.py
cbamann/language-model
d14410c2302bf42bb771abc4a6b859704847798e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import tensorflow as tf PROJECT_FOLDER = "./" # READ AND PREPROCESS LOCAL FILES exec(open(PROJECT_FOLDER + "setup.py").read()) fname_nn_out = FOLDER_NN_MODELS + "exp" BATCHES_TO_PROCESS = 500 ############################################################################...
32.045455
104
0.581155
7942041aff96367e77da0611a309d4a2f7844726
5,724
py
Python
examples/model_compression/distill_lstm/bert_distill.py
zhengya01/PaddleNLP
b28bfb7b864781cc871e2fb910bd55ea705d3fec
[ "Apache-2.0" ]
null
null
null
examples/model_compression/distill_lstm/bert_distill.py
zhengya01/PaddleNLP
b28bfb7b864781cc871e2fb910bd55ea705d3fec
[ "Apache-2.0" ]
null
null
null
examples/model_compression/distill_lstm/bert_distill.py
zhengya01/PaddleNLP
b28bfb7b864781cc871e2fb910bd55ea705d3fec
[ "Apache-2.0" ]
null
null
null
# 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 applic...
35.116564
128
0.608491
794204381a4bba89b40b82dc0f329c68012f0d0a
3,552
py
Python
alipay/aop/api/domain/SaleProduct.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/domain/SaleProduct.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/domain/SaleProduct.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.constant.ParamConstants import * from alipay.aop.api.domain.ProductProvider import ProductProvider class SaleProduct(object): def __init__(self): self._channel_type = None self._id = None self._market_price = N...
29.6
83
0.589245
7942046203526ad9416db1b07c180a6da49a45f9
1,070
py
Python
savepagenow/exceptions.py
palewire/savepagenow
33c57916393e9697cf31dae485efc3f4cfbe21d4
[ "MIT" ]
8
2021-10-04T17:20:34.000Z
2022-03-27T23:57:20.000Z
savepagenow/exceptions.py
palewire/savepagenow
33c57916393e9697cf31dae485efc3f4cfbe21d4
[ "MIT" ]
5
2021-10-03T23:11:02.000Z
2022-03-28T23:37:08.000Z
savepagenow/exceptions.py
palewire/savepagenow
33c57916393e9697cf31dae485efc3f4cfbe21d4
[ "MIT" ]
3
2021-12-12T17:57:09.000Z
2022-01-28T15:25:52.000Z
class CachedPage(Exception): """Raised when archive.org declines to make a new capture and instead returns the cached version of most recent archive.""" pass class WaybackRuntimeError(Exception): """An error returned by the Wayback Machine.""" pass class BlockedByRobots(WaybackRuntimeError): "...
26.097561
127
0.740187
794204a0687ab68af88e0c22e037b4d8e173452b
874
py
Python
tensorflow_datasets/core/community/__init__.py
sumanthd17/datasets-1
6c84ccca956d8f134a42aa12c0b4caa18c730ed0
[ "Apache-2.0" ]
1
2021-02-04T10:07:18.000Z
2021-02-04T10:07:18.000Z
tensorflow_datasets/core/community/__init__.py
sumanthd17/datasets-1
6c84ccca956d8f134a42aa12c0b4caa18c730ed0
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/community/__init__.py
sumanthd17/datasets-1
6c84ccca956d8f134a42aa12c0b4caa18c730ed0
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
33.615385
82
0.776888
794205d539a94144f88cfe00a601e3baf9d210d0
1,388
py
Python
src/dispatch/metrics.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
3,417
2020-02-23T22:54:47.000Z
2022-03-31T13:01:01.000Z
src/dispatch/metrics.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
607
2020-02-24T14:27:02.000Z
2022-03-30T19:15:39.000Z
src/dispatch/metrics.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
359
2020-02-24T19:04:43.000Z
2022-03-29T06:48:12.000Z
import logging from dispatch.plugins.base import plugins from .config import METRIC_PROVIDERS log = logging.getLogger(__file__) class Metrics(object): _providers = [] def __init__(self): if not METRIC_PROVIDERS: log.info( "No metric providers defined via METRIC_PROVIDER...
29.531915
101
0.581412
794207a0f1402180cd7a47948ed10aea9066378a
63
py
Python
Other_AIMA_Scripts/test.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
12
2015-06-17T05:15:40.000Z
2021-05-18T15:39:33.000Z
Other_AIMA_Scripts/test.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
1
2020-03-14T08:45:49.000Z
2020-03-14T08:45:49.000Z
Other_AIMA_Scripts/test.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
5
2016-09-10T19:16:56.000Z
2018-10-10T05:09:03.000Z
__author__ = 'erensezener' def print_test(): print "test"
12.6
26
0.68254
794208a86d66398d6117b7f8230bd7f2bd9cd4fa
68,962
py
Python
openstack/tests/unit/cloud/test_baremetal_node.py
gouthampacha/openstacksdk
f4dd6fe5fd21fb866b43330ecbbafee5cf553ded
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/cloud/test_baremetal_node.py
gouthampacha/openstacksdk
f4dd6fe5fd21fb866b43330ecbbafee5cf553ded
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/cloud/test_baremetal_node.py
gouthampacha/openstacksdk
f4dd6fe5fd21fb866b43330ecbbafee5cf553ded
[ "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 # distributed under t...
38.100552
78
0.506409
79420abd25c5129c9f8aae600cda2f0be80adb36
753
py
Python
napari/plugins/_tests/conftest.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/_tests/conftest.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/_tests/conftest.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
import pytest import os import sys from napari.plugins import NapariPluginManager import napari.plugins._builtins @pytest.fixture def plugin_manager(): """PluginManager fixture that loads some test plugins""" fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures') plugin_manager = NapariPluginM...
31.375
77
0.763612
79420b687945d19c0d5ddae5c3336081cc37dac9
483
py
Python
breathing.py
dotimothy/TPIOPi
13a68ca88f5a71f1d6984c5f6c3c84d107b12fd8
[ "MIT" ]
3
2020-09-24T22:33:20.000Z
2021-08-29T06:08:33.000Z
breathing.py
dotimothy/TPIOPi
13a68ca88f5a71f1d6984c5f6c3c84d107b12fd8
[ "MIT" ]
null
null
null
breathing.py
dotimothy/TPIOPi
13a68ca88f5a71f1d6984c5f6c3c84d107b12fd8
[ "MIT" ]
null
null
null
try: import RPi.GPIO as GPIO except ModuleNotFoundError: print("You don't have GPIO Pins, so you can't run this program!"), exit() import time led = input("Please Input Led '+' Pin: ") GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) GPIO.setup(led,GPIO.OUT) pwm = GPIO.PWM(led, 100) pwm.start(0) while(True): for ...
20.125
67
0.701863
79420b6a99bd5cfb6f4b3977b635a516c2aa5821
6,677
py
Python
lib/tests/test_client.py
OneIdentity/safeguard-sessions-plugin-duo-mfa
d388e06def8ef79e56e8fcde6726fa9e4738e679
[ "MIT" ]
3
2019-04-16T12:41:36.000Z
2020-08-17T20:45:10.000Z
lib/tests/test_client.py
OneIdentity/safeguard-sessions-plugin-duo-mfa
d388e06def8ef79e56e8fcde6726fa9e4738e679
[ "MIT" ]
2
2019-11-04T11:23:25.000Z
2020-04-03T16:28:58.000Z
lib/tests/test_client.py
OneIdentity/safeguard-sessions-plugin-duo-mfa
d388e06def8ef79e56e8fcde6726fa9e4738e679
[ "MIT" ]
2
2019-04-16T12:28:52.000Z
2020-07-22T08:54:09.000Z
# # Copyright (c) 2019 One Identity # # 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, merge, publish, di...
37.723164
119
0.759623
79420ba289da56d1dea625837978cc3906322fc1
8,578
py
Python
nion/ui/TreeCanvasItem.py
icbicket/nionui
d4a839d6c5978032e6b5108b058fbe62c33f632d
[ "Apache-2.0" ]
3
2018-12-18T23:05:00.000Z
2019-11-26T19:48:04.000Z
nion/ui/TreeCanvasItem.py
icbicket/nionui
d4a839d6c5978032e6b5108b058fbe62c33f632d
[ "Apache-2.0" ]
36
2017-07-15T02:07:18.000Z
2022-03-01T16:59:08.000Z
nion/ui/TreeCanvasItem.py
icbicket/nionui
d4a839d6c5978032e6b5108b058fbe62c33f632d
[ "Apache-2.0" ]
12
2017-04-03T20:05:46.000Z
2021-06-09T05:14:44.000Z
"""Display a tree of drawable cells. """ from __future__ import annotations # standard libraries import copy import dataclasses import functools import json import typing # third party libraries # none # local libraries from nion.ui import CanvasItem from nion.ui import UserInterface from nion.utils import Geometry...
39.712963
147
0.671019
79420c4f6ac17b9af0afd3ab60d5c30154187af6
193
py
Python
flegeapp/flegeapp/doctype/pflege_patient/pflege_patient.py
oderao/flegeapp
5fa7ea17feb271bd84dffe45a58278a4b35813f2
[ "MIT" ]
1
2022-03-16T18:15:48.000Z
2022-03-16T18:15:48.000Z
flegeapp/flegeapp/doctype/pflege_patient/pflege_patient.py
oderao/flegeapp
5fa7ea17feb271bd84dffe45a58278a4b35813f2
[ "MIT" ]
null
null
null
flegeapp/flegeapp/doctype/pflege_patient/pflege_patient.py
oderao/flegeapp
5fa7ea17feb271bd84dffe45a58278a4b35813f2
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Flege and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class PflegePatient(Document): pass
21.444444
49
0.792746
79420c905a93f413c5e25fd6ece77a65862cbc2a
718
py
Python
afm/reaction.py
lily90502/AutoFragmentModeling
c18b65e57d311c416121bdd5325bc8cae522cb55
[ "MIT" ]
3
2019-09-25T16:35:04.000Z
2021-03-16T13:15:46.000Z
afm/reaction.py
lily90502/AutoFragmentModeling
c18b65e57d311c416121bdd5325bc8cae522cb55
[ "MIT" ]
1
2019-08-29T14:13:55.000Z
2019-08-29T14:13:55.000Z
afm/reaction.py
lily90502/AutoFragmentModeling
c18b65e57d311c416121bdd5325bc8cae522cb55
[ "MIT" ]
2
2020-05-25T14:41:24.000Z
2021-04-09T06:32:17.000Z
class FragmentReaction(object): def __init__(self, index=-1, reactants=None, products=None, kinetics=None, reversible=False, pairs=None, family=None, reaction_repr=None ): self.index = index self.reactants = reactants self.products = products self.kinetics = kinetics ...
22.4375
112
0.640669
79420d6f30388d7e7c26edf7699284fec6ee827f
48,020
py
Python
tests/components/samsungtv/test_config_flow.py
rklomp/home-assistant-core
e7b05ef452dc574a209bbbb79d008e1c85a807a7
[ "Apache-2.0" ]
null
null
null
tests/components/samsungtv/test_config_flow.py
rklomp/home-assistant-core
e7b05ef452dc574a209bbbb79d008e1c85a807a7
[ "Apache-2.0" ]
15
2021-11-23T16:10:30.000Z
2022-03-31T06:25:27.000Z
tests/components/samsungtv/test_config_flow.py
rklomp/home-assistant-core
e7b05ef452dc574a209bbbb79d008e1c85a807a7
[ "Apache-2.0" ]
null
null
null
"""Tests for Samsung TV config flow.""" import socket from unittest.mock import Mock, PropertyMock, call, patch from samsungctl.exceptions import AccessDenied, UnhandledResponse from samsungtvws.exceptions import ConnectionFailure, HttpApiError from websocket import WebSocketException, WebSocketProtocolException from...
37.081081
90
0.66414
79420e8e6de3c6320ac6bbcfa2354afd7b8779fd
21
py
Python
tests/__init__.py
radiasoft/opal
28fe320c0b9f9d65e78a95df59daa5126304b184
[ "Apache-2.0" ]
1
2017-04-27T12:59:52.000Z
2017-04-27T12:59:52.000Z
tests/interpolaters_depositers/__init__.py
radiasoft/opal
28fe320c0b9f9d65e78a95df59daa5126304b184
[ "Apache-2.0" ]
null
null
null
tests/interpolaters_depositers/__init__.py
radiasoft/opal
28fe320c0b9f9d65e78a95df59daa5126304b184
[ "Apache-2.0" ]
null
null
null
__author__ = 'swebb'
10.5
20
0.714286
79420f9fb31348502c2e70ea073a43f4881c43e5
1,221
py
Python
build/mbf_simple_nav/catkin_generated/pkg.develspace.context.pc.py
6RiverSystems/darknet_ros
03c72b96afa99f7cc75f7792b51deb4a7f4ed379
[ "BSD-3-Clause" ]
null
null
null
build/mbf_simple_nav/catkin_generated/pkg.develspace.context.pc.py
6RiverSystems/darknet_ros
03c72b96afa99f7cc75f7792b51deb4a7f4ed379
[ "BSD-3-Clause" ]
null
null
null
build/mbf_simple_nav/catkin_generated/pkg.develspace.context.pc.py
6RiverSystems/darknet_ros
03c72b96afa99f7cc75f7792b51deb4a7f4ed379
[ "BSD-3-Clause" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kalyco/mfp_workspace/src/move_base_flex/mbf_simple_nav/include;/usr/include".split(';') if "/home/kalyco/mfp_workspace/src/move_base_flex/mbf_simple_nav/include;/usr/include" != "" else [] PROJEC...
135.666667
562
0.812449
7942105450bf1ddce7294bffb107b17bebb5056a
19,229
py
Python
tf_slim/data/tfexample_decoder.py
englertbruno/tf-slim
d0eb4075a8e18b8c29004dd5eb3035c36a8d9784
[ "Apache-2.0" ]
9
2020-04-21T12:31:23.000Z
2020-11-20T15:07:29.000Z
tf_slim/data/tfexample_decoder.py
englertbruno/tf-slim
d0eb4075a8e18b8c29004dd5eb3035c36a8d9784
[ "Apache-2.0" ]
1
2020-11-23T07:38:07.000Z
2020-11-23T07:38:07.000Z
tf_slim/data/tfexample_decoder.py
englertbruno/tf-slim
d0eb4075a8e18b8c29004dd5eb3035c36a8d9784
[ "Apache-2.0" ]
3
2020-05-08T02:55:11.000Z
2021-12-10T07:16:28.000Z
# coding=utf-8 # Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
36.487666
80
0.690884
7942116c96121ccd6101eb2f9100e95301f497a4
4,883
py
Python
python/scannerpy/protobufs.py
agirbau/scanner
04a0c4b4196341995985acd729c0788aab823e1c
[ "Apache-2.0" ]
618
2017-02-15T02:49:25.000Z
2022-03-26T13:22:08.000Z
python/scannerpy/protobufs.py
agirbau/scanner
04a0c4b4196341995985acd729c0788aab823e1c
[ "Apache-2.0" ]
258
2017-02-14T23:37:35.000Z
2020-01-17T07:50:30.000Z
python/scannerpy/protobufs.py
agirbau/scanner
04a0c4b4196341995985acd729c0788aab823e1c
[ "Apache-2.0" ]
108
2017-02-23T01:43:33.000Z
2022-03-23T02:44:10.000Z
import os.path import imp import sys from scannerpy.common import * import scanner.metadata_pb2 as metadata_types import scanner.source_args_pb2 as source_types import scanner.sink_args_pb2 as sink_types import scanner.sampler_args_pb2 as sampler_types import scanner.engine.rpc_pb2 as rpc_types import scanner.engine....
34.387324
88
0.581814
79421248e97a6c2799e686dc111cb49bdac5f21f
41,181
py
Python
python/graphscope/tests/unittest/test_udf_app.py
pwrliang/GraphScope
56979ed5109ee0344fee8877460927e47147a62f
[ "Apache-2.0" ]
null
null
null
python/graphscope/tests/unittest/test_udf_app.py
pwrliang/GraphScope
56979ed5109ee0344fee8877460927e47147a62f
[ "Apache-2.0" ]
null
null
null
python/graphscope/tests/unittest/test_udf_app.py
pwrliang/GraphScope
56979ed5109ee0344fee8877460927e47147a62f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
34.3175
106
0.58629
794212daa58e3054b8c1671b0faac4412b1ab3cd
2,427
py
Python
1000-1100q/1034.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
1000-1100q/1034.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
1000-1100q/1034.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' Given a 2-dimensional grid of integers, each value in the grid represents the color of the grid square at that location. Two squares belong to the same connected component if and only if they have the same color and are next to each other in any of the 4 directions. The border of a connected component is all the ...
34.671429
222
0.530284
79421477f139cbe753580f6ba988d5552b4d2f23
10,666
py
Python
models/official/unet3d/tpu_executor.py
stefsietz/tpu
1f8029b7849ccaafd121529a37a7c24613db7453
[ "Apache-2.0" ]
null
null
null
models/official/unet3d/tpu_executor.py
stefsietz/tpu
1f8029b7849ccaafd121529a37a7c24613db7453
[ "Apache-2.0" ]
null
null
null
models/official/unet3d/tpu_executor.py
stefsietz/tpu
1f8029b7849ccaafd121529a37a7c24613db7453
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.229391
117
0.698387
7942148814f66eadf0bc58b4b738d4e7672e3946
1,694
py
Python
networks/cis_depth4.py
rfww/EfficientChangeDetection
42d466c56ed262980c27fd6cde6ffe65314e638f
[ "BSD-Source-Code" ]
null
null
null
networks/cis_depth4.py
rfww/EfficientChangeDetection
42d466c56ed262980c27fd6cde6ffe65314e638f
[ "BSD-Source-Code" ]
null
null
null
networks/cis_depth4.py
rfww/EfficientChangeDetection
42d466c56ed262980c27fd6cde6ffe65314e638f
[ "BSD-Source-Code" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F from torch.utils import model_zoo from torchvision import models from utils.spp_layer import spatial_pyramid_pool class CIS_VGGBN(nn.Module): def __init__(self, backbone='vgg16_bn', pretrained=True, freeze_backbone=Fal...
33.215686
89
0.578512
794215fe8e739599f3a1be55fd7682d28ffc6021
4,450
py
Python
src/moveit2/moveit_demo_nodes/run_moveit_cpp/launch/run_moveit_cpp2.launch.py
iamrajee/ros2eloquent_moveit_ws
210d7d6d90c19e68a3ea17aee3a3dc9ee13c8a89
[ "MIT" ]
17
2020-03-03T14:38:20.000Z
2021-08-13T08:28:16.000Z
src/moveit2/moveit_demo_nodes/run_moveit_cpp/launch/run_moveit_cpp2.launch.py
iamrajee/ros2eloquent_moveit_ws
210d7d6d90c19e68a3ea17aee3a3dc9ee13c8a89
[ "MIT" ]
1
2020-03-12T08:10:13.000Z
2020-03-30T16:20:33.000Z
src/moveit2/moveit_demo_nodes/run_moveit_cpp/launch/run_moveit_cpp2.launch.py
iamrajee/ros2eloquent_moveit_ws
210d7d6d90c19e68a3ea17aee3a3dc9ee13c8a89
[ "MIT" ]
2
2020-04-03T06:56:01.000Z
2021-08-13T08:28:18.000Z
import os import yaml from launch import LaunchDescription from launch_ros.actions import Node from ament_index_python.packages import get_package_share_directory # Helper function to load file def load_file(package_name, file_path): package_path = get_package_share_directory(package_name) absolute_file_path =...
75.423729
455
0.760225