hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f75db080595c6f348fe7e9302041bf19f72a301f
48,816
py
Python
tensorflow/python/training/optimizer.py
elielhojman/tensorflow
163aae337c875efce2518c3cd0fecb61968fe408
[ "Apache-2.0" ]
8
2017-03-20T12:04:21.000Z
2021-06-24T20:34:30.000Z
tensorflow/python/training/optimizer.py
AKIRA-MIYAKE/tensorflow
89e06304aad35bfb019a8c10f39fc1ead83e0f99
[ "Apache-2.0" ]
4
2019-08-14T22:32:51.000Z
2020-03-09T14:59:18.000Z
tensorflow/python/training/optimizer.py
AKIRA-MIYAKE/tensorflow
89e06304aad35bfb019a8c10f39fc1ead83e0f99
[ "Apache-2.0" ]
2
2017-03-20T12:10:56.000Z
2017-11-12T00:15:54.000Z
# 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...
39.947627
115
0.697271
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc from tensorflow.python.eager import backprop from tensorflow.python.eager import context from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow....
true
true
f75db1b91f61f3cc98844f8d9309def204d7001b
14,775
py
Python
python/ccxt/__init__.py
lead4good/ccxt
b9d35f6c7b4ef5af438587cfb153f334122cdab9
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
lead4good/ccxt
b9d35f6c7b4ef5af438587cfb153f334122cdab9
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
lead4good/ccxt
b9d35f6c7b4ef5af438587cfb153f334122cdab9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library""" # MIT License # Copyright (c) 2017 Igor Kroitor # 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 restricti...
46.171875
80
0.53313
__version__ = '1.27.37' from ccxt.base.exchange import Exchange from ccxt.base.decimal_to_precision import decimal_to_precision from ccxt.base.decimal_to_precision import TRUNCATE from ccxt.base.decimal_to_precision import ROUND from ccxt.base.decimal_to_precisio...
true
true
f75db2240c2fc9a137f7ab1b425bdf25a4c7ee08
7,478
py
Python
plugins/filters.py
sahansbandaralk/Auto-Filter-Bot-V2
1045117f55b4af4bca440bfc1eaa32f18b0b1f5e
[ "MIT" ]
null
null
null
plugins/filters.py
sahansbandaralk/Auto-Filter-Bot-V2
1045117f55b4af4bca440bfc1eaa32f18b0b1f5e
[ "MIT" ]
null
null
null
plugins/filters.py
sahansbandaralk/Auto-Filter-Bot-V2
1045117f55b4af4bca440bfc1eaa32f18b0b1f5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @NetflixMovieslk import re import pyrogram from pyrogram import ( filters, Client ) from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup, Message, CallbackQuery ) from bot import Bot from script import script from databas...
32.942731
179
0.539583
import re import pyrogram from pyrogram import ( filters, Client ) from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup, Message, CallbackQuery ) from bot import Bot from script import script from database.mdb import searchquery from plugins.channel import deleteallfilt...
true
true
f75db3370929574ff38933db6cac1f303fca633b
467
py
Python
tests/test_client.py
andrewmccall/atlasclient
c4d922ae5b5287afeb802d4d6990868092cdeeb3
[ "Apache-2.0" ]
21
2018-04-20T08:57:29.000Z
2021-06-15T20:35:14.000Z
tests/test_client.py
andrewmccall/atlasclient
c4d922ae5b5287afeb802d4d6990868092cdeeb3
[ "Apache-2.0" ]
197
2018-02-12T15:09:35.000Z
2022-03-18T12:51:16.000Z
tests/test_client.py
andrewmccall/atlasclient
c4d922ae5b5287afeb802d4d6990868092cdeeb3
[ "Apache-2.0" ]
8
2018-12-28T05:15:24.000Z
2021-11-07T19:17:16.000Z
from atlasclient.client import Atlas class TestClient(): def test_atlas_client(self): client = Atlas('localhost', port=21000, username='admin', password='admin') assert client.base_url == 'http://localhost:21000' assert 'headers' in client.client.request_params.keys() assert 'X-R...
31.133333
83
0.678801
from atlasclient.client import Atlas class TestClient(): def test_atlas_client(self): client = Atlas('localhost', port=21000, username='admin', password='admin') assert client.base_url == 'http://localhost:21000' assert 'headers' in client.client.request_params.keys() assert 'X-R...
true
true
f75db354f9c33f73520ae759ff4e406a532673ee
2,176
py
Python
tests/unit/test_process_handler.py
pi-top/Further-Link
9356fa719ee706fce68859c82ab89694f2497975
[ "Apache-2.0" ]
null
null
null
tests/unit/test_process_handler.py
pi-top/Further-Link
9356fa719ee706fce68859c82ab89694f2497975
[ "Apache-2.0" ]
20
2021-08-11T19:08:59.000Z
2022-03-21T20:14:41.000Z
tests/unit/test_process_handler.py
pi-top/pt-further-link
9356fa719ee706fce68859c82ab89694f2497975
[ "Apache-2.0" ]
null
null
null
import asyncio import getpass import logging import os import sys from asyncio.subprocess import Process import pytest from aiofiles.threadpool.binary import AsyncFileIO from mock import AsyncMock from further_link.runner.process_handler import ProcessHandler logging.basicConfig( stream=sys.stdout, level=(lo...
24.177778
84
0.692096
import asyncio import getpass import logging import os import sys from asyncio.subprocess import Process import pytest from aiofiles.threadpool.binary import AsyncFileIO from mock import AsyncMock from further_link.runner.process_handler import ProcessHandler logging.basicConfig( stream=sys.stdout, level=(lo...
true
true
f75db37c087b7b8ea8337dccc1de264d8b79cbb7
2,565
py
Python
testClasses.py
vmlane/jobMatcher
f5929134e6e14786ca9f71cc0329f0fed59b35da
[ "MIT" ]
null
null
null
testClasses.py
vmlane/jobMatcher
f5929134e6e14786ca9f71cc0329f0fed59b35da
[ "MIT" ]
null
null
null
testClasses.py
vmlane/jobMatcher
f5929134e6e14786ca9f71cc0329f0fed59b35da
[ "MIT" ]
null
null
null
from person import Person from job import Job jobprefers = { 'sunday': ['amber', 'lisa', 'ana','matt', 'rob', 'kyle', 'kevin', 'abi', 'amy', 'jack', 'hope', 'mike'], 'monday': ['abi', 'kevin', 'rob', 'matt','amy', 'amber', 'lisa', 'kyle', 'jack','ana', 'hope', 'mike'], 'tuesday': ['rob', 'hope', 'abi', 'matt','lis...
48.396226
117
0.607797
from person import Person from job import Job jobprefers = { 'sunday': ['amber', 'lisa', 'ana','matt', 'rob', 'kyle', 'kevin', 'abi', 'amy', 'jack', 'hope', 'mike'], 'monday': ['abi', 'kevin', 'rob', 'matt','amy', 'amber', 'lisa', 'kyle', 'jack','ana', 'hope', 'mike'], 'tuesday': ['rob', 'hope', 'abi', 'matt','lis...
false
true
f75db39f92ae86dd27ef48db6cec921381cdf8b9
13,077
py
Python
conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py
deadash/conan
6c0a71ebe0f1b3d00701d9138a5905673921eb11
[ "MIT" ]
null
null
null
conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py
deadash/conan
6c0a71ebe0f1b3d00701d9138a5905673921eb11
[ "MIT" ]
null
null
null
conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py
deadash/conan
6c0a71ebe0f1b3d00701d9138a5905673921eb11
[ "MIT" ]
null
null
null
from os import chdir import pytest from conan.tools.files import load_toolchain_args from conan.tools.gnu import AutotoolsToolchain from conans.errors import ConanException from conans.model.conf import Conf from conans.test.utils.mocks import ConanFileMock, MockSettings, MockOptions from conans.test.utils.test_files...
32.856784
97
0.614514
from os import chdir import pytest from conan.tools.files import load_toolchain_args from conan.tools.gnu import AutotoolsToolchain from conans.errors import ConanException from conans.model.conf import Conf from conans.test.utils.mocks import ConanFileMock, MockSettings, MockOptions from conans.test.utils.test_files...
true
true
f75db46742872e1c757d06b98eb06f65d4f2adb7
1,452
py
Python
kubernetes/test/test_authorization_v1_api.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/test/test_authorization_v1_api.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/test/test_authorization_v1_api.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
22.6875
124
0.700413
from __future__ import absolute_import import unittest import kubernetes.client from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api from kubernetes.client.rest import ApiException class TestAuthorizationV1Api(unittest.TestCase): def setUp(self): self.api = kubernetes.client.ap...
true
true
f75db599f9805fdf402f1c52ebdc078c854ed6cf
65
py
Python
src/lib/pytornado/fileio/cpacs/__init__.py
aarondettmann/pytornado
d9f7341f118a5033596d94dce7786912e1ff535f
[ "Apache-2.0" ]
16
2019-08-13T18:49:14.000Z
2022-01-11T15:41:12.000Z
src/lib/pytornado/fileio/cpacs/__init__.py
aarondettmann/pytornado
d9f7341f118a5033596d94dce7786912e1ff535f
[ "Apache-2.0" ]
24
2019-09-11T14:48:01.000Z
2022-03-18T08:17:52.000Z
_OLD_VERSION/src/lib/pytornado/fileio/cpacs/__init__.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
5
2019-09-20T18:45:45.000Z
2020-12-08T01:44:43.000Z
from . import aircraft from . import state from . import results
16.25
22
0.769231
from . import aircraft from . import state from . import results
true
true
f75db6299a5ed0addd5ff5a12667870efa4df1c7
26,011
py
Python
trax/rl/actor_critic_joint.py
Nishant-Pall/trax
f714a271111578d4e6b3ac445eef86ca03dc7fa6
[ "Apache-2.0" ]
2
2020-12-01T08:40:17.000Z
2021-08-10T05:33:21.000Z
trax/rl/actor_critic_joint.py
Nishant-Pall/trax
f714a271111578d4e6b3ac445eef86ca03dc7fa6
[ "Apache-2.0" ]
null
null
null
trax/rl/actor_critic_joint.py
Nishant-Pall/trax
f714a271111578d4e6b3ac445eef86ca03dc7fa6
[ "Apache-2.0" ]
1
2020-11-01T11:22:54.000Z
2020-11-01T11:22:54.000Z
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.650915
80
0.674676
import functools from trax import data from trax import layers as tl from trax import supervised from trax.fastmath import numpy as jnp from trax.fastmath import stop_gradient from trax.rl import actor_critic from trax.rl import distributions from trax.rl import rl_layers from trax.rl import training as rl_training ...
true
true
f75db67617e32e64633a2d6a9e9fa81312093a5b
850
py
Python
DPGAnalysis/SiStripTools/python/apvcyclephaseproducerfroml1tsDB_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DPGAnalysis/SiStripTools/python/apvcyclephaseproducerfroml1tsDB_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DPGAnalysis/SiStripTools/python/apvcyclephaseproducerfroml1tsDB_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms APVPhases = cms.EDProducer('APVCyclePhaseProducerFromL1TS', defaultPartitionNames = cms.vstring("TI", "TO", "TP", ...
50
83
0.429412
import FWCore.ParameterSet.Config as cms APVPhases = cms.EDProducer('APVCyclePhaseProducerFromL1TS', defaultPartitionNames = cms.vstring("TI", "TO", "TP", ...
true
true
f75db67821e0117bc60f8c504cddb6fdfdcea224
1,533
py
Python
tests/test_response.py
marcusrbrown/aspen
5229bef0d9c76ec1c990532e8d4f8e8a858d3724
[ "MIT" ]
1
2021-07-07T11:49:35.000Z
2021-07-07T11:49:35.000Z
tests/test_response.py
marcusrbrown/aspen
5229bef0d9c76ec1c990532e8d4f8e8a858d3724
[ "MIT" ]
null
null
null
tests/test_response.py
marcusrbrown/aspen
5229bef0d9c76ec1c990532e8d4f8e8a858d3724
[ "MIT" ]
null
null
null
from aspen import Response from aspen.testing import assert_raises from aspen.testing.fsfix import attach_teardown def test_response_is_a_wsgi_callable(): response = Response(body="Greetings, program!") def start_response(status, headers): pass expected = ["Greetings, program!"] actual = respo...
32.617021
73
0.716243
from aspen import Response from aspen.testing import assert_raises from aspen.testing.fsfix import attach_teardown def test_response_is_a_wsgi_callable(): response = Response(body="Greetings, program!") def start_response(status, headers): pass expected = ["Greetings, program!"] actual = respo...
true
true
f75db6d92b4879ecfdc8c7bce21b887d2c00195c
4,100
py
Python
hw4/cs285/agents/mb_agent.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
1
2020-08-16T13:01:27.000Z
2020-08-16T13:01:27.000Z
hw4/cs285/agents/mb_agent.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
null
null
null
hw4/cs285/agents/mb_agent.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
3
2020-12-16T15:24:39.000Z
2022-01-27T21:29:34.000Z
from .base_agent import BaseAgent from cs285.models.ff_model import FFModel from cs285.policies.MPC_policy import MPCPolicy from cs285.infrastructure.replay_buffer import ReplayBuffer from cs285.infrastructure.utils import * class MBAgent(BaseAgent): def __init__(self, sess, env, agent_params): super(MBAg...
46.590909
102
0.579756
from .base_agent import BaseAgent from cs285.models.ff_model import FFModel from cs285.policies.MPC_policy import MPCPolicy from cs285.infrastructure.replay_buffer import ReplayBuffer from cs285.infrastructure.utils import * class MBAgent(BaseAgent): def __init__(self, sess, env, agent_params): super(MBAg...
true
true
f75db6d9e8a80bd3cd70a90fd584ba217d3ed0d4
25,710
py
Python
weasyprint/tests/test_pdf.py
szmenpro/WeasyPrint
80c5a8287133259f5deff4442adf8dc64dd4f65c
[ "BSD-3-Clause" ]
2
2019-12-06T15:40:14.000Z
2020-07-29T21:30:35.000Z
weasyprint/tests/test_pdf.py
szmenpro/WeasyPrint
80c5a8287133259f5deff4442adf8dc64dd4f65c
[ "BSD-3-Clause" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
weasyprint/tests/test_pdf.py
szmenpro/WeasyPrint
80c5a8287133259f5deff4442adf8dc64dd4f65c
[ "BSD-3-Clause" ]
null
null
null
""" weasyprint.tests.test_pdf ------------------------- Test PDF-related code, including metadata, bookmarks and hyperlinks. :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ import hashlib import io import os import re import...
34.325768
79
0.595449
import hashlib import io import os import re import cairocffi import pytest from .. import Attachment, pdf from ..urls import path2url from .testing_utils import ( FakeHTML, assert_no_logs, capture_logs, requires, resource_filename) TOP = 842 RIGHT = 595 def assert_rect_almost_equal(rect, values): if isin...
true
true
f75db7d9c06164da33440cbd19c329789c5e29ef
4,350
py
Python
train.py
sayandipdutta/sphereface_pytorch
762c458f9258a8d85210a92c2ae0548942e4e062
[ "MIT" ]
722
2017-09-27T06:14:53.000Z
2022-03-25T00:39:27.000Z
train.py
sayandipdutta/sphereface_pytorch
762c458f9258a8d85210a92c2ae0548942e4e062
[ "MIT" ]
58
2017-10-02T14:26:40.000Z
2022-02-01T20:32:56.000Z
train.py
sayandipdutta/sphereface_pytorch
762c458f9258a8d85210a92c2ae0548942e4e062
[ "MIT" ]
207
2017-09-29T03:14:29.000Z
2022-02-01T19:51:43.000Z
from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable torch.backends.cudnn.bencmark = True import os,sys,cv2,random,datetime import argparse import numpy as np from dataset import ImageDataset from matl...
29.591837
97
0.630575
from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable torch.backends.cudnn.bencmark = True import os,sys,cv2,random,datetime import argparse import numpy as np from dataset import ImageDataset from matl...
true
true
f75db8f1f5d9db31f964ab0620a4bae3d7672122
7,082
py
Python
official/cv/crnn_seq2seq_ocr/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/crnn_seq2seq_ocr/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/crnn_seq2seq_ocr/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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 agreed to...
48.841379
108
0.621152
import cv2 import numpy as np from PIL import Image import mindspore.dataset as de import mindspore.dataset.vision.c_transforms as C import mindspore.dataset.vision.py_transforms as P import mindspore.dataset.transforms.c_transforms as ops import mindspore.common.dtype as mstype from src.model_utils.config import co...
true
true
f75db92c39b04e86c8874aa27dfa80f38130f253
27,617
py
Python
python/tvm/target/target.py
wyushun/tvm
f88e3d6daae03643dbc970219b3770e690663e71
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
90
2021-11-30T11:58:10.000Z
2022-03-31T02:24:04.000Z
python/tvm/target/target.py
wyushun/tvm
f88e3d6daae03643dbc970219b3770e690663e71
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
64
2021-11-22T23:58:23.000Z
2022-03-31T03:19:22.000Z
python/tvm/target/target.py
wyushun/tvm
f88e3d6daae03643dbc970219b3770e690663e71
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
27
2021-12-09T22:39:27.000Z
2022-03-24T23:21:48.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...
35.588918
100
0.595539
import json import os import re import warnings import tvm._ffi from tvm._ffi import register_func as _register_func from tvm.runtime import Object, convert from tvm.runtime.container import String from tvm.ir.container import Map from . import _ffi_api @tvm._ffi.register_object class TargetKind(Object): @prop...
true
true
f75dba030ba08a988734f418d09a194201b099bd
3,374
py
Python
profiles_project/settings.py
suyogguragain/profile-rest-api
e1d81730251083bd963b79dfc7b3dbd614fdd1bf
[ "MIT" ]
null
null
null
profiles_project/settings.py
suyogguragain/profile-rest-api
e1d81730251083bd963b79dfc7b3dbd614fdd1bf
[ "MIT" ]
null
null
null
profiles_project/settings.py
suyogguragain/profile-rest-api
e1d81730251083bd963b79dfc7b3dbd614fdd1bf
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ fro...
26.777778
91
0.70658
from pathlib import Path from decouple import config BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = config('SECRET_KEY') DEBUG = config('DEBUG') ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes'...
true
true
f75dbb5e56b10ca4d6b8959bcde163ebada1047d
21,828
py
Python
app/screens/home.py
zshanahmed/mobileinsight-mobile
ae466c72d17655609539dfec2318b2de5c6786a8
[ "Apache-2.0" ]
null
null
null
app/screens/home.py
zshanahmed/mobileinsight-mobile
ae466c72d17655609539dfec2318b2de5c6786a8
[ "Apache-2.0" ]
null
null
null
app/screens/home.py
zshanahmed/mobileinsight-mobile
ae466c72d17655609539dfec2318b2de5c6786a8
[ "Apache-2.0" ]
null
null
null
import kivy kivy.require('1.4.0') import os import threading import time import datetime from android import AndroidService from android.broadcast import BroadcastReceiver from collections import deque from jnius import autoclass from kivy.utils import platform from kivy.logger import Logger from kivy.core.text import...
39.832117
195
0.571605
import kivy kivy.require('1.4.0') import os import threading import time import datetime from android import AndroidService from android.broadcast import BroadcastReceiver from collections import deque from jnius import autoclass from kivy.utils import platform from kivy.logger import Logger from kivy.core.text import...
false
true
f75dbb87af8c40544367b06dfb065ceeab7429a5
4,371
py
Python
tests/test_remarks.py
skruger/AVWX-Engine
c3c0b90a3aa57d43bea47d07b977d71b90f987b9
[ "MIT" ]
null
null
null
tests/test_remarks.py
skruger/AVWX-Engine
c3c0b90a3aa57d43bea47d07b977d71b90f987b9
[ "MIT" ]
3
2019-11-21T17:59:14.000Z
2019-12-04T03:45:05.000Z
tests/test_remarks.py
AirbusDriver/avwx-engine
e3fed8f744a48faca58c3e94ddbf214f9c719d3d
[ "MIT" ]
null
null
null
""" Michael duPont - michael@mdupont.com tests/test_remarks.py """ # library import unittest # module from avwx import _core, remarks, static, structs class TestRemarks(unittest.TestCase): def test_tdec(self): """ Tests that a 4-digit number gets decoded into a readable temperature """ ...
36.731092
96
0.507664
import unittest from avwx import _core, remarks, static, structs class TestRemarks(unittest.TestCase): def test_tdec(self): for code, temp in (("1045", "-4.5°C"), ("0237", "23.7°C"), ("0987", "98.7°C")): self.assertEqual(remarks._tdec(code), temp) def test_temp_minmax(self): for...
true
true
f75dbc31f7fda70e467ad479fb505e4106a7e8a5
579
py
Python
baro_tests/barometer.py
cloud-guru/barometer-opnfv
d4fba81ef5feca4200920ce2c4a47fd76d36fdd0
[ "Apache-2.0" ]
9
2017-07-18T15:32:44.000Z
2021-05-29T12:25:11.000Z
baro_tests/barometer.py
cloud-guru/barometer-opnfv
d4fba81ef5feca4200920ce2c4a47fd76d36fdd0
[ "Apache-2.0" ]
2
2018-01-04T23:05:43.000Z
2018-10-16T17:22:35.000Z
baro_tests/barometer.py
cloud-guru/barometer-opnfv
d4fba81ef5feca4200920ce2c4a47fd76d36fdd0
[ "Apache-2.0" ]
16
2017-07-04T11:42:26.000Z
2021-05-27T10:36:22.000Z
#!/usr/bin/env python # # Copyright 2017 OPNFV # # 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 import logging from baro_tests import collectd ...
21.444444
66
0.727116
import logging from baro_tests import collectd from xtesting.core import feature class BarometerCollectd(feature.Feature): __logger = logging.getLogger(__name__) def execute(self): return collectd.main(self.__logger)
true
true
f75dbe1e8f24faa3d22df29c91058becf44968ab
778
py
Python
training/gpu_util_sampler.py
toolkmit/algotrading
693f84b67d1b5bf07450f37295053f32550ac9cf
[ "MIT" ]
1
2019-06-04T20:18:13.000Z
2019-06-04T20:18:13.000Z
training/gpu_util_sampler.py
toolkmit/algotrading
693f84b67d1b5bf07450f37295053f32550ac9cf
[ "MIT" ]
null
null
null
training/gpu_util_sampler.py
toolkmit/algotrading
693f84b67d1b5bf07450f37295053f32550ac9cf
[ "MIT" ]
null
null
null
import gpustat import numpy as np from keras.callbacks import Callback class GPUUtilizationSampler(Callback): """ Measure GPU utilization at the end of 1% of all batches. (The more frequent the measuring, the slower and less accurate this callback becomes.) If GPU is not present, report 0 utilization....
31.12
90
0.633676
import gpustat import numpy as np from keras.callbacks import Callback class GPUUtilizationSampler(Callback): def __init__(self, gpu_ind): self.gpu_ind = gpu_ind super() def on_train_begin(self, logs={}): self.samples = [] def on_batch_end(self, batch, logs={}): if np.ran...
true
true
f75dbe437673731de6ca1f64539e0b83d4edb77c
276
py
Python
data_process/data_process_txt_to_csv.py
zczllw5/wclient
d03943b7060150662123b8a7d3918f08fcfac25d
[ "MIT" ]
null
null
null
data_process/data_process_txt_to_csv.py
zczllw5/wclient
d03943b7060150662123b8a7d3918f08fcfac25d
[ "MIT" ]
null
null
null
data_process/data_process_txt_to_csv.py
zczllw5/wclient
d03943b7060150662123b8a7d3918f08fcfac25d
[ "MIT" ]
null
null
null
import csv import pandas as pd with open("1_3_connected.txt") as fin, open("1_3_connected.csv", 'w') as fout: o=csv.writer(fout) for line in fin: o.writerow(line.split()) df = pd.read_csv('1_3_connected.csv') df1 = df.T df1.to_csv('1_3_connected_output.csv')
25.090909
78
0.692029
import csv import pandas as pd with open("1_3_connected.txt") as fin, open("1_3_connected.csv", 'w') as fout: o=csv.writer(fout) for line in fin: o.writerow(line.split()) df = pd.read_csv('1_3_connected.csv') df1 = df.T df1.to_csv('1_3_connected_output.csv')
true
true
f75dbe4a0abf10e7e38027e835bd9bb794b86e86
9,069
py
Python
quantitativetrader/api/websocket/websocket_client.py
tonyyang0504/streamlit-backtesting
447d20a25ee724944a92e27c79d07a123049b63b
[ "MIT" ]
null
null
null
quantitativetrader/api/websocket/websocket_client.py
tonyyang0504/streamlit-backtesting
447d20a25ee724944a92e27c79d07a123049b63b
[ "MIT" ]
null
null
null
quantitativetrader/api/websocket/websocket_client.py
tonyyang0504/streamlit-backtesting
447d20a25ee724944a92e27c79d07a123049b63b
[ "MIT" ]
1
2021-10-01T08:47:26.000Z
2021-10-01T08:47:26.000Z
import json import logging import socket import ssl import sys import traceback from datetime import datetime from threading import Lock, Thread from time import sleep from typing import Optional import websocket from quantitativetrader.trader.utility import get_file_logger class WebsocketClient: """ Websoc...
27.819018
82
0.536774
import json import logging import socket import ssl import sys import traceback from datetime import datetime from threading import Lock, Thread from time import sleep from typing import Optional import websocket from quantitativetrader.trader.utility import get_file_logger class WebsocketClient: def __init__(...
true
true
f75dbe9e372ddd21f93865145460f8d1cfb3bd3e
2,498
py
Python
xblock/internal.py
ffedoroff/XBlock
ce5a02aff444bb2c3134ae03853f5b7add0ba308
[ "Apache-2.0" ]
null
null
null
xblock/internal.py
ffedoroff/XBlock
ce5a02aff444bb2c3134ae03853f5b7add0ba308
[ "Apache-2.0" ]
null
null
null
xblock/internal.py
ffedoroff/XBlock
ce5a02aff444bb2c3134ae03853f5b7add0ba308
[ "Apache-2.0" ]
null
null
null
""" Internal machinery used to make building XBlock family base classes easier. """ from __future__ import absolute_import, division, print_function, unicode_literals import functools import inspect import six class LazyClassProperty: """ A descriptor that acts as a class-level @lazy. That is, it beha...
33.306667
84
0.67454
from __future__ import absolute_import, division, print_function, unicode_literals import functools import inspect import six class LazyClassProperty: def __init__(self, constructor): self.__constructor = constructor self.__cache = {} functools.wraps(self.__constructor)(self) def _...
true
true
f75dbfc256606a26f2c0b23ae911b7617bd446a8
4,822
py
Python
web/kwmo/kwmo/model/user.py
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
web/kwmo/kwmo/model/user.py
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
web/kwmo/kwmo/model/user.py
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
from kwmo.model.meta import metadata, Session __metadata__ = metadata __session__ = Session from elixir import * from sqlalchemy.databases.postgres import PGBigInteger from kpg import escape_pg_string # Workspace user, this is a weak entity. class User(Entity): # Options using_options(shortnames=True) # R...
31.723684
95
0.562422
from kwmo.model.meta import metadata, Session __metadata__ = metadata __session__ = Session from elixir import * from sqlalchemy.databases.postgres import PGBigInteger from kpg import escape_pg_string class User(Entity): using_options(shortnames=True) id = Field(Integer, primary_key=True, autoincremen...
true
true
f75dc176fe882bc437ff77dd244e77ecf571a1ec
10,780
py
Python
scripts/common.py
regehr/yarpgen
025a8cb90df018578c892ec82051ddf74388ec2f
[ "Apache-2.0" ]
null
null
null
scripts/common.py
regehr/yarpgen
025a8cb90df018578c892ec82051ddf74388ec2f
[ "Apache-2.0" ]
null
null
null
scripts/common.py
regehr/yarpgen
025a8cb90df018578c892ec82051ddf74388ec2f
[ "Apache-2.0" ]
1
2021-03-02T08:54:02.000Z
2021-03-02T08:54:02.000Z
#!/usr/bin/python3 ############################################################################### # # Copyright (c) 2015-2020, Intel Corporation # Copyright (c) 2019-2020, University of Utah # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
35
127
0.636456
import collections import datetime import enum import errno import logging import os import shutil import signal import subprocess import sys scripts_dir_name = "scripts" yarpgen_home = os.environ["YARPGEN_HOME"] if "YARPGEN_HOME" in os.environ else os.getcwd() yarpgen_scripts = os.path.join(os.environ["YARPGEN_HOME"]...
true
true
f75dc1ae017a885425f18222628db38d22302723
3,597
py
Python
monocle/cleanup.py
Matzexxxxx/Monocle
af2b1dd163a33c3ea3bb4bdacf37622df65f4b8e
[ "MIT" ]
null
null
null
monocle/cleanup.py
Matzexxxxx/Monocle
af2b1dd163a33c3ea3bb4bdacf37622df65f4b8e
[ "MIT" ]
null
null
null
monocle/cleanup.py
Matzexxxxx/Monocle
af2b1dd163a33c3ea3bb4bdacf37622df65f4b8e
[ "MIT" ]
null
null
null
import sys from time import time from sqlalchemy import func from sqlalchemy.dialects.mysql.mysqldb import MySQLDialect_mysqldb from sqlalchemy.dialects.postgresql.psycopg2 import PGDialect_psycopg2 from .db import session_scope, _engine, Sighting, Mystery, FortSighting, Raid, Spawnpoint from .shared import get_logger ...
41.825581
192
0.69419
import sys from time import time from sqlalchemy import func from sqlalchemy.dialects.mysql.mysqldb import MySQLDialect_mysqldb from sqlalchemy.dialects.postgresql.psycopg2 import PGDialect_psycopg2 from .db import session_scope, _engine, Sighting, Mystery, FortSighting, Raid, Spawnpoint from .shared import get_logger ...
true
true
f75dc216012fc92639d8364e068dbacf1beb3c59
1,122
py
Python
ingest/sensornet.py
brianhouse/okavango
4006940ddead3f31eea701efb9b9dcdc7b19402e
[ "MIT" ]
2
2015-01-25T06:20:03.000Z
2015-02-15T23:54:41.000Z
ingest/sensornet.py
brianhouse/okavango_15
4006940ddead3f31eea701efb9b9dcdc7b19402e
[ "MIT" ]
null
null
null
ingest/sensornet.py
brianhouse/okavango_15
4006940ddead3f31eea701efb9b9dcdc7b19402e
[ "MIT" ]
3
2017-11-14T21:18:23.000Z
2021-06-20T21:08:31.000Z
import json from housepy import util, log, config, strings from ingest import ingest_json_body, ingest_data def parse(request): log.info("sensornet.parse") data = ingest_json_body(request) try: t_local = strings.as_numeric(data['t_local']) data = data['data'] log.debug(json....
29.526316
81
0.588235
import json from housepy import util, log, config, strings from ingest import ingest_json_body, ingest_data def parse(request): log.info("sensornet.parse") data = ingest_json_body(request) try: t_local = strings.as_numeric(data['t_local']) data = data['data'] log.debug(json....
true
true
f75dc24815642430b24b94c6fb51a121fb54eb19
4,024
py
Python
configs/top_down/seresnet/coco/seresnet50_coco_384x288.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
configs/top_down/seresnet/coco/seresnet50_coco_384x288.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
configs/top_down/seresnet/coco/seresnet50_coco_384x288.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=10) evaluation = dict(interval=10, metric='mAP', key_indicator='AP') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_clip=None...
28.742857
80
0.605865
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=10) evaluation = dict(interval=10, metric='mAP', key_indicator='AP') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_clip=None...
true
true
f75dc3238c0f285c4dd7822670595a2ec2430d44
4,679
py
Python
nbdev/cli.py
kai-tub/nbdev
62b24aab851d4bdf5431055821281646fd8948f4
[ "Apache-2.0" ]
1
2020-03-04T04:34:55.000Z
2020-03-04T04:34:55.000Z
nbdev/cli.py
kai-tub/nbdev
62b24aab851d4bdf5431055821281646fd8948f4
[ "Apache-2.0" ]
null
null
null
nbdev/cli.py
kai-tub/nbdev
62b24aab851d4bdf5431055821281646fd8948f4
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/06_cli.ipynb (unless otherwise specified). __all__ = ['bump_version', 'nbdev_bump_version', 'nbdev_install_git_hooks', 'extract_tgz', 'nbdev_new'] # Cell from .imports import * from .export import * from .sync import * from .merge import * from .export2html import * fro...
37.432
219
0.685189
__all__ = ['bump_version', 'nbdev_bump_version', 'nbdev_install_git_hooks', 'extract_tgz', 'nbdev_new'] from .imports import * from .export import * from .sync import * from .merge import * from .export2html import * from .clean import * from .test import * from fastcore.script import * from ghapi.all import GhApi fr...
true
true
f75dc37a34691efd3efec28c1765ae786c9b083d
6,085
py
Python
src/rule_checker_test.py
kevinjihwanlee/pummel_poker
926e38c8dff99ae724dcd81ab4148527f65d5c33
[ "MIT" ]
null
null
null
src/rule_checker_test.py
kevinjihwanlee/pummel_poker
926e38c8dff99ae724dcd81ab4148527f65d5c33
[ "MIT" ]
null
null
null
src/rule_checker_test.py
kevinjihwanlee/pummel_poker
926e38c8dff99ae724dcd81ab4148527f65d5c33
[ "MIT" ]
null
null
null
import unittest from rule_checker import RuleChecker from game_objects import Card from constants import jack, queen, king, ace, spades, hearts, diamonds, clubs, ranks, suits class TestRuleCheckerMethods(unittest.TestCase): def test_analyze_hand(self): rc = RuleChecker() hand_one = [Card(2, spades), Card(7, spade...
46.450382
110
0.698767
import unittest from rule_checker import RuleChecker from game_objects import Card from constants import jack, queen, king, ace, spades, hearts, diamonds, clubs, ranks, suits class TestRuleCheckerMethods(unittest.TestCase): def test_analyze_hand(self): rc = RuleChecker() hand_one = [Card(2, spades), Card(7, spade...
true
true
f75dc66d0783f16bb8b14109be7c0aa66c036bd0
11,096
py
Python
openshift_tools/monitoring/zabbix_metric_processor.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
openshift_tools/monitoring/zabbix_metric_processor.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
openshift_tools/monitoring/zabbix_metric_processor.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
# vim: expandtab:tabstop=4:shiftwidth=4 # # Copyright 2015 Red Hat 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 # # Unl...
35.678457
100
0.624009
"""zabbix_metric_processor Module The purpose of this module is to process metrics and send them to Zabbix. """ import logging from openshift_tools.monitoring.metricmanager import UniqueMetric from zbxsend import send_to_zabbix # the size that the zabbix sender uses. CHUNK_SIZE = 250 # Reason: disable pylint too-f...
false
true
f75dc9b3f80a155f1a380f229c2cf3f4ab3f1df2
5,265
py
Python
sandbox/test/test_open.py
yingted/pysandbox
cb20c202459fc1b22a81e879c0efafc66e1ddd8a
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-05T13:13:09.000Z
2019-02-05T13:13:09.000Z
sandbox/test/test_open.py
yingted/pysandbox
cb20c202459fc1b22a81e879c0efafc66e1ddd8a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
sandbox/test/test_open.py
yingted/pysandbox
cb20c202459fc1b22a81e879c0efafc66e1ddd8a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from __future__ import with_statement from sandbox import Sandbox, SandboxError, HAVE_CSANDBOX, HAVE_PYPY from sandbox.test import (createSandbox, createSandboxConfig, SkipTest, TestException, skipIf) from sandbox.test.tools import read_first_line, READ_FILENAME from sys import version_info import os def _get_file...
31.526946
110
0.647483
from __future__ import with_statement from sandbox import Sandbox, SandboxError, HAVE_CSANDBOX, HAVE_PYPY from sandbox.test import (createSandbox, createSandboxConfig, SkipTest, TestException, skipIf) from sandbox.test.tools import read_first_line, READ_FILENAME from sys import version_info import os def _get_file...
true
true
f75dca61e8e8091aa597658fef93b4056a518ec6
4,130
py
Python
azure-iot-device/tests/common/pipeline/helpers.py
cartertinney/azure-iot-sdk-python
a5572b93047b4a54c5b990d9e25905398418c4fd
[ "MIT" ]
null
null
null
azure-iot-device/tests/common/pipeline/helpers.py
cartertinney/azure-iot-sdk-python
a5572b93047b4a54c5b990d9e25905398418c4fd
[ "MIT" ]
null
null
null
azure-iot-device/tests/common/pipeline/helpers.py
cartertinney/azure-iot-sdk-python
a5572b93047b4a54c5b990d9e25905398418c4fd
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import ins...
41.3
153
0.719855
import inspect import pytest import functools from threading import Event from azure.iot.device.common.pipeline import ( pipeline_events_base, pipeline_ops_base, pipeline_stages_base, pipeline_events_mqtt, pipeline_ops_mqtt, config, ) try: from inspect import getfullargspec as getargspec ex...
true
true
f75dccb370115eece258ab080803faf10ceeb3e4
213
py
Python
43.multiply-strings.py
dely2p/Leetcode
2463f512d9051707df9864dffe7f3f3c12d18eab
[ "MIT" ]
1
2020-07-08T05:13:05.000Z
2020-07-08T05:13:05.000Z
43.multiply-strings.py
dely2p/Leetcode
2463f512d9051707df9864dffe7f3f3c12d18eab
[ "MIT" ]
null
null
null
43.multiply-strings.py
dely2p/Leetcode
2463f512d9051707df9864dffe7f3f3c12d18eab
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=43 lang=python3 # # [43] Multiply Strings # # @lc code=start class Solution: def multiply(self, num1: str, num2: str) -> str: return str(int(num1) * int(num2)) # @lc code=end
16.384615
52
0.624413
class Solution: def multiply(self, num1: str, num2: str) -> str: return str(int(num1) * int(num2))
true
true
f75dce4678ba07c9503e114f5cec8200c8d8f8a1
11,006
py
Python
pari/settings/base.py
PARINetwork/pari
08e4c42475ab62b37f3c3ab3ae6369acc2685ecc
[ "BSD-3-Clause" ]
35
2015-10-04T17:07:20.000Z
2022-03-23T08:10:13.000Z
pari/settings/base.py
PARINetwork/pari
08e4c42475ab62b37f3c3ab3ae6369acc2685ecc
[ "BSD-3-Clause" ]
322
2015-07-31T17:06:47.000Z
2022-02-10T07:17:55.000Z
pari/settings/base.py
PARINetwork/pari
08e4c42475ab62b37f3c3ab3ae6369acc2685ecc
[ "BSD-3-Clause" ]
14
2016-05-09T10:50:20.000Z
2021-05-08T14:48:51.000Z
""" Django settings for pari project. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # coding: utf-8 from os.path import abspath, dirname, join from django.utils...
27.515
101
0.615301
from os.path import abspath, dirname, join from django.utils.translation import ugettext_lazy as _ from wagtail.embeds.oembed_providers import youtube PROJECT_ROOT = dirname(dirname(dirname(abspath(__file__)))) SECRET_KEY = 'vcg^g$-6bce@3hk+bmiyn^exoe4r()+a9g%ypo7p(+fy*q*8em' DEBUG = True ALLOWED_HOSTS = [] # ...
true
true
f75dceae74e5e533ae547feb7cf8437cff601025
12,174
py
Python
sawyer/garage/misc/logger.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
35
2018-10-29T07:19:34.000Z
2021-02-05T16:24:00.000Z
sawyer/garage/misc/logger.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
21
2018-10-24T05:51:35.000Z
2020-09-11T10:40:31.000Z
sawyer/garage/misc/logger.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
9
2018-11-12T14:28:59.000Z
2020-04-13T12:49:21.000Z
import base64 from contextlib import contextmanager import csv import datetime from enum import Enum import json import os import os.path as osp import pickle import sys import types import dateutil.tz import joblib import numpy as np from sawyer.garage.misc.autoargs import get_all_parameters from sawyer.garage.misc....
29.765281
79
0.655824
import base64 from contextlib import contextmanager import csv import datetime from enum import Enum import json import os import os.path as osp import pickle import sys import types import dateutil.tz import joblib import numpy as np from sawyer.garage.misc.autoargs import get_all_parameters from sawyer.garage.misc....
true
true
f75dcf3d3bf7d107b48918b382bc6d803d31acaa
8,379
py
Python
desktop/libs/hadoop/src/hadoop/fs/__init__.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
2
2021-04-27T03:57:00.000Z
2021-06-18T09:39:58.000Z
desktop/libs/hadoop/src/hadoop/fs/__init__.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
null
null
null
desktop/libs/hadoop/src/hadoop/fs/__init__.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
2
2021-09-06T18:44:45.000Z
2022-02-24T04:10:10.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
31.382022
89
0.674663
""" Interfaces and abstractions for filesystem access. We should be agnostic whether we're using a "temporary" file system, rooted in a local tmp dir, or whether we're using a true HDFS. This file defines the interface. Note that PEP 355 (Path - object oriented filesystem paths) did not pass. Many file system metho...
false
true
f75dcfb9d69ee3d0f890652c0ed9d69642a58b28
150
py
Python
compass.py
winged/oed-workshop
f562e24257c0eb24ade902fb842ebb8109e10c4c
[ "BSD-2-Clause" ]
null
null
null
compass.py
winged/oed-workshop
f562e24257c0eb24ade902fb842ebb8109e10c4c
[ "BSD-2-Clause" ]
null
null
null
compass.py
winged/oed-workshop
f562e24257c0eb24ade902fb842ebb8109e10c4c
[ "BSD-2-Clause" ]
null
null
null
from microbit import * compass.calibrate() while True: needle = ((15 - compass.heading()) // 30) % 12 display.show(Image.ALL_CLOCKS[needle])
21.428571
50
0.673333
from microbit import * compass.calibrate() while True: needle = ((15 - compass.heading()) // 30) % 12 display.show(Image.ALL_CLOCKS[needle])
true
true
f75dcfcba4cab1ab4b0003219abe0f7683ca514b
885
py
Python
examples/basic/colormap_list.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
1
2022-03-22T21:49:29.000Z
2022-03-22T21:49:29.000Z
examples/basic/colormap_list.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
examples/basic/colormap_list.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
from vedo import * n = 256 i, grids, vnames1, vnames2 = 0, [], [], [] for name in colors.cmaps_names: if '_r' in name: continue # skip reversed maps cols = colorMap(range(n), name) # make a strip of n cells and assing them individual colors gr = Grid(s=[50,1], res=[n,1]).cellIndividualColors(...
30.517241
76
0.633898
from vedo import * n = 256 i, grids, vnames1, vnames2 = 0, [], [], [] for name in colors.cmaps_names: if '_r' in name: continue cols = colorMap(range(n), name) gr = Grid(s=[50,1], res=[n,1]).cellIndividualColors(cols*255) gr.lineWidth(0).wireframe(False).y(-i*1.2) grids.append([gr, gr...
true
true
f75dd1ccb5cd90dfa8eed29effa6aa3da7b5ff99
37,356
py
Python
metaMIC/metaMIC.py
Seny-l/metaMIC
eef5f151c49b1a306d143e3c524ea4bb90ad2efb
[ "MIT" ]
4
2021-07-05T05:44:57.000Z
2021-07-13T07:15:18.000Z
metaMIC/metaMIC.py
Seny-l/metaMIC
eef5f151c49b1a306d143e3c524ea4bb90ad2efb
[ "MIT" ]
null
null
null
metaMIC/metaMIC.py
Seny-l/metaMIC
eef5f151c49b1a306d143e3c524ea4bb90ad2efb
[ "MIT" ]
2
2021-06-09T05:12:27.000Z
2021-07-27T01:35:46.000Z
#!/usr/bin/env python import pandas as pd import numpy as np import multiprocessing from optparse import OptionParser import argparse import operator import os import random import sys import time import random import subprocess import pysam import collections import re import math from Bio import SeqIO import joblib ...
40.124597
154
0.594389
import pandas as pd import numpy as np import multiprocessing from optparse import OptionParser import argparse import operator import os import random import sys import time import random import subprocess import pysam import collections import re import math from Bio import SeqIO import joblib import warnings from s...
true
true
f75dd1d7c28acb3c9a9c0c29f06d11c8df6230bf
1,298
py
Python
Python/kraken/core/objects/attributes/string_attribute.py
FabricExile/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
7
2017-12-04T16:57:42.000Z
2021-09-07T07:02:38.000Z
Python/kraken/core/objects/attributes/string_attribute.py
xtvjxk123456/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
null
null
null
Python/kraken/core/objects/attributes/string_attribute.py
xtvjxk123456/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
6
2017-11-14T06:50:48.000Z
2021-08-21T22:47:29.000Z
"""Kraken - objects.Attributes.StringAttribute module. Classes: StringAttribute - Base Attribute. """ from kraken.core.objects.attributes.attribute import Attribute from kraken.core.kraken_system import ks class StringAttribute(Attribute): """String Attribute. Implemented value type checking.""" def __ini...
21.633333
79
0.622496
from kraken.core.objects.attributes.attribute import Attribute from kraken.core.kraken_system import ks class StringAttribute(Attribute): def __init__(self, name, value="", parent=None): super(StringAttribute, self).__init__(name, value=value, parent=parent) if not isinstance(value, basestring)...
true
true
f75dd2052bace89b37fb4706c1aa66d042259e66
8,135
py
Python
feedback-robot-learning/husky_stadium_discrete_states.py
junyaoshi/feedbcak-navigation
dc64d7422aa9590325013bdac61db8c58d343599
[ "MIT" ]
1
2020-07-28T15:49:53.000Z
2020-07-28T15:49:53.000Z
feedback-robot-learning/husky_stadium_discrete_states.py
junyaoshi/feedback-navigation
dc64d7422aa9590325013bdac61db8c58d343599
[ "MIT" ]
null
null
null
feedback-robot-learning/husky_stadium_discrete_states.py
junyaoshi/feedback-navigation
dc64d7422aa9590325013bdac61db8c58d343599
[ "MIT" ]
null
null
null
# Import Libraries from gibson.envs.husky_env import HuskyNavigateEnv import inspect from pprint import pprint import pybullet as p import os import math import random from time import sleep from math import pi # from transforms3d.euler import quat2euler # Parse config and object arguments config_file = os.path.join(o...
28.847518
138
0.627289
from gibson.envs.husky_env import HuskyNavigateEnv import inspect from pprint import pprint import pybullet as p import os import math import random from time import sleep from math import pi config_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'configs', 'husky_stadium.yaml') green_cube_file = os.p...
true
true
f75dd233428a23191f08448db2760e6867f46c1a
4,456
py
Python
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.56
152
0.646993
from .resource_py3 import Resource class Registry(Resource): _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, 'sku': {'required': True}, 'login_server': {'readonly': True}, 'c...
true
true
f75dd23dcd96e95b74253c951fd2a53dce5a2c6a
709
py
Python
examples/01-filter/poly-ray-trace.py
larsoner/vtki
7f44fff54f8a4a12a20b588445a0dca4fb2566a4
[ "MIT" ]
1
2021-09-21T09:32:21.000Z
2021-09-21T09:32:21.000Z
examples/01-filter/poly-ray-trace.py
mmagnuski/vtki
069a4ae2fe14c0ed6895f7f7a4e1403f1f230b82
[ "MIT" ]
null
null
null
examples/01-filter/poly-ray-trace.py
mmagnuski/vtki
069a4ae2fe14c0ed6895f7f7a4e1403f1f230b82
[ "MIT" ]
null
null
null
""" Ray Tracing ~~~~~~~~~~~ Single line segment ray tracing for PolyData objects. """ import vtki # Create source to ray trace sphere = vtki.Sphere(radius=0.85) # Define line segment start = [0, 0, 0] stop = [0.25, 1, 0.5] # Perfrom ray trace points, ind = sphere.ray_trace(start, stop) # Create geometry to repres...
22.870968
94
0.712271
import vtki sphere = vtki.Sphere(radius=0.85) start = [0, 0, 0] stop = [0.25, 1, 0.5] points, ind = sphere.ray_trace(start, stop) ray = vtki.Line(start, stop) intersection = vtki.PolyData(points) p = vtki.Plotter() p.add_mesh(sphere, show_edges=True, opacity=0.5, color='w', lighting=False, label='Test Mesh') p.ad...
true
true
f75dd278661c4cc6699951024f3c57267e9acacb
2,770
py
Python
trainer/args_getter.py
artefactory/train-fastai-custom-aiplatform
71c17c0b79f8ab04eda380334f10cfe988e5ac26
[ "MIT" ]
null
null
null
trainer/args_getter.py
artefactory/train-fastai-custom-aiplatform
71c17c0b79f8ab04eda380334f10cfe988e5ac26
[ "MIT" ]
null
null
null
trainer/args_getter.py
artefactory/train-fastai-custom-aiplatform
71c17c0b79f8ab04eda380334f10cfe988e5ac26
[ "MIT" ]
1
2021-06-03T14:25:05.000Z
2021-06-03T14:25:05.000Z
import argparse def get_args(): """Argument parser. Returns: Dictionary of arguments. """ parser = argparse.ArgumentParser(description='Arguments to train the model') # GCS arguments parser.add_argument( '--bucket-name', default=None, help='The name of your bu...
31.477273
108
0.605054
import argparse def get_args(): parser = argparse.ArgumentParser(description='Arguments to train the model') parser.add_argument( '--bucket-name', default=None, help='The name of your bucket in GCS') parser.add_argument( '--model-dir', default=None, ...
true
true
f75dd3aa82e917fa51a75d286a05c3e3352001e8
114
py
Python
10_processes/code/supervisor1.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
10_processes/code/supervisor1.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
10_processes/code/supervisor1.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time print "Daemon runs for 3 seconds, then dies" time.sleep(3) print "Daemons dies"
19
44
0.745614
import time print "Daemon runs for 3 seconds, then dies" time.sleep(3) print "Daemons dies"
false
true
f75dd464debb81cce0a9e9a8e9eb63d5e5d39037
157
py
Python
apps/health_check/views/health_check.py
bergran/places
0b11e329a263878ef51c6ffd4ca252e905b1e85f
[ "MIT" ]
null
null
null
apps/health_check/views/health_check.py
bergran/places
0b11e329a263878ef51c6ffd4ca252e905b1e85f
[ "MIT" ]
null
null
null
apps/health_check/views/health_check.py
bergran/places
0b11e329a263878ef51c6ffd4ca252e905b1e85f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from fastapi.routing import APIRouter router = APIRouter() @router.get("/health-check") async def health_check(): return {}
13.083333
37
0.66242
from fastapi.routing import APIRouter router = APIRouter() @router.get("/health-check") async def health_check(): return {}
true
true
f75dd4c331f2855e9a9f6b1245d2dd168ca1e918
17,998
py
Python
main.py
RafaeISilva/Message_LeaderBot
6cc4f4c58c0f7f03c3f02938f0159a880efffce1
[ "0BSD" ]
null
null
null
main.py
RafaeISilva/Message_LeaderBot
6cc4f4c58c0f7f03c3f02938f0159a880efffce1
[ "0BSD" ]
null
null
null
main.py
RafaeISilva/Message_LeaderBot
6cc4f4c58c0f7f03c3f02938f0159a880efffce1
[ "0BSD" ]
null
null
null
import json import discord from discord.ext import commands, tasks from utils import * class HelpCmd(commands.HelpCommand): async def send_bot_help(self, mapping): ctx = self.context bot = ctx.bot commands = bot.commands result = [] for cmd in commands: sign ...
30.713311
115
0.586287
import json import discord from discord.ext import commands, tasks from utils import * class HelpCmd(commands.HelpCommand): async def send_bot_help(self, mapping): ctx = self.context bot = ctx.bot commands = bot.commands result = [] for cmd in commands: sign ...
true
true
f75dd57a6cdb14765b4e607367e09ff31468774d
1,355
py
Python
spdx/writers/write_anything.py
quaresmajose/tools-python
53c917a1a2491a373efa23e4ef8570b5e863fabc
[ "Apache-2.0" ]
74
2015-12-25T09:43:18.000Z
2022-03-30T00:23:30.000Z
spdx/writers/write_anything.py
quaresmajose/tools-python
53c917a1a2491a373efa23e4ef8570b5e863fabc
[ "Apache-2.0" ]
184
2016-11-23T15:57:16.000Z
2022-03-15T05:25:59.000Z
spdx/writers/write_anything.py
quaresmajose/tools-python
53c917a1a2491a373efa23e4ef8570b5e863fabc
[ "Apache-2.0" ]
98
2015-12-13T12:20:34.000Z
2022-03-18T15:28:35.000Z
# Copyright (c) spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
34.74359
78
0.709963
from spdx.writers import json from spdx.writers import yaml from spdx.writers import rdf from spdx.writers import xml from spdx.writers import tagvalue from spdx.parsers.builderexceptions import FileTypeError def write_file(doc, fn): out_mode = "w" if fn.endswith(".rdf") or fn.endswith(".rdf.xml") or fn.end...
true
true
f75dd76138d07de2cbc93141864a84937c2113c1
1,030
py
Python
draft/use_collections.py
gorgeousbubble/Nightmare
b374b48877898b6193081b7a8a6d2fb571816c75
[ "Apache-2.0" ]
1
2019-10-24T15:47:18.000Z
2019-10-24T15:47:18.000Z
draft/use_collections.py
gorgeousbubble/Nightmare
b374b48877898b6193081b7a8a6d2fb571816c75
[ "Apache-2.0" ]
null
null
null
draft/use_collections.py
gorgeousbubble/Nightmare
b374b48877898b6193081b7a8a6d2fb571816c75
[ "Apache-2.0" ]
3
2019-10-24T15:47:25.000Z
2020-11-01T01:26:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from collections import namedtuple from collections import deque from collections import defaultdict from collections import OrderedDict from collections import Counter def test_namedtuple(): Point = namedtuple('Point', ['x', 'y']) p = Point(1, 2) print('p:',...
20.6
56
0.593204
from collections import namedtuple from collections import deque from collections import defaultdict from collections import OrderedDict from collections import Counter def test_namedtuple(): Point = namedtuple('Point', ['x', 'y']) p = Point(1, 2) print('p:', p) print('isinstance(p, Point):', isinstan...
true
true
f75dd7b4ab83790d92be8aba6f7daeee310d6951
385
py
Python
HMBBF/migrations/0034_auto_20161205_1045.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
HMBBF/migrations/0034_auto_20161205_1045.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
HMBBF/migrations/0034_auto_20161205_1045.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('HMBBF', '0033_auto_20161205_1043'), ] operations = [ migrations.RenameField( model_name='theme', old...
19.25
45
0.592208
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('HMBBF', '0033_auto_20161205_1043'), ] operations = [ migrations.RenameField( model_name='theme', old_name='type_info', ...
true
true
f75dd818d7d1203763364628566cb62806812df2
82,175
py
Python
flask/app.py
elenita1221/flask
e7367c9bbf7187d1e3650093fd4aaf96d879a331
[ "BSD-3-Clause" ]
1
2016-02-01T20:31:35.000Z
2016-02-01T20:31:35.000Z
flask/app.py
fagensden/flask
e7367c9bbf7187d1e3650093fd4aaf96d879a331
[ "BSD-3-Clause" ]
null
null
null
flask/app.py
fagensden/flask
e7367c9bbf7187d1e3650093fd4aaf96d879a331
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flask.app ~~~~~~~~~ This module implements the central WSGI application object. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os import sys from threading import Lock from datetime import timedelta from itertools import ...
41.356316
92
0.622537
import os import sys from threading import Lock from datetime import timedelta from itertools import chain from functools import update_wrapper from collections import deque from werkzeug.datastructures import ImmutableDict from werkzeug.routing import Map, Rule, RequestRedirect, BuildError from werkzeug.exceptions im...
true
true
f75dd81df0b14f46a146f7ac21f6ebd4b9a07888
5,738
py
Python
sqlserver/tests/test_high_cardinality.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/test_high_cardinality.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/test_high_cardinality.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import logging import threading import time from copy import copy import pytest from datadog_checks.sqlserver import SQLServer from .common import CHECK_NAME from .utils import HighCardinalityQueries, h...
38.253333
115
0.712618
import logging import threading import time from copy import copy import pytest from datadog_checks.sqlserver import SQLServer from .common import CHECK_NAME from .utils import HighCardinalityQueries, high_cardinality_only @pytest.fixture def dbm_instance(instance_docker): instance_docker['dbm'] = True ins...
true
true
f75dd884af1fa9d1ce775c4857d20a0fbb8c09de
10,182
py
Python
image_classification_pipeline/dataset_builder.py
kaanberke/AI-pipelines
a60c6bbe0bc0bd441f6486fcc0d513acece7fed4
[ "Apache-2.0" ]
null
null
null
image_classification_pipeline/dataset_builder.py
kaanberke/AI-pipelines
a60c6bbe0bc0bd441f6486fcc0d513acece7fed4
[ "Apache-2.0" ]
null
null
null
image_classification_pipeline/dataset_builder.py
kaanberke/AI-pipelines
a60c6bbe0bc0bd441f6486fcc0d513acece7fed4
[ "Apache-2.0" ]
null
null
null
# %% LIBRARIES import glob import os import random from pathlib import Path from typing import Union import cv2 import pandas as pd import tensorflow as tf from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split from sklearn.utils import class_weight from tensorflow.python.data import...
42.425
115
0.55274
import glob import os import random from pathlib import Path from typing import Union import cv2 import pandas as pd import tensorflow as tf from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split from sklearn.utils import class_weight from tensorflow.python.data import AUTOTUNE from ...
true
true
f75dd8b20e12045dd015f6d20ac9d216c4bd1a19
23,416
py
Python
flask_admin/form/upload.py
iulian-moraru/flask-admin
2a30b9df2245f506ff3f203edc2d6254625cba89
[ "BSD-3-Clause" ]
null
null
null
flask_admin/form/upload.py
iulian-moraru/flask-admin
2a30b9df2245f506ff3f203edc2d6254625cba89
[ "BSD-3-Clause" ]
null
null
null
flask_admin/form/upload.py
iulian-moraru/flask-admin
2a30b9df2245f506ff3f203edc2d6254625cba89
[ "BSD-3-Clause" ]
null
null
null
import os import os.path as op import ast from werkzeug.utils import secure_filename from werkzeug.datastructures import FileStorage from wtforms import ValidationError, fields from wtforms.widgets import html_params, HTMLString try: from wtforms.fields.core import _unset_value as unset_value except ImportError...
33.308677
117
0.57465
import os import os.path as op import ast from werkzeug.utils import secure_filename from werkzeug.datastructures import FileStorage from wtforms import ValidationError, fields from wtforms.widgets import html_params, HTMLString try: from wtforms.fields.core import _unset_value as unset_value except ImportError...
true
true
f75dd937d079b5a330c06d26db5d00c8bf671cce
679
py
Python
pyhap/characteristics/name.py
drakebrian/pyhap
67ab2df4361aaacb6935a39270a16d3d4ac35c8d
[ "MIT" ]
null
null
null
pyhap/characteristics/name.py
drakebrian/pyhap
67ab2df4361aaacb6935a39270a16d3d4ac35c8d
[ "MIT" ]
null
null
null
pyhap/characteristics/name.py
drakebrian/pyhap
67ab2df4361aaacb6935a39270a16d3d4ac35c8d
[ "MIT" ]
null
null
null
# Autogenerated, do not edit. All changes will be undone. from typing import List from uuid import UUID from pyhap.characteristic import ( Characteristic, CharacteristicPermission, ) class Name(Characteristic): @property def characteristic_uuid(self) -> UUID: return UUID('00000023-0000-1000-...
22.633333
60
0.686303
from typing import List from uuid import UUID from pyhap.characteristic import ( Characteristic, CharacteristicPermission, ) class Name(Characteristic): @property def characteristic_uuid(self) -> UUID: return UUID('00000023-0000-1000-8000-0026BB765291') @property def characteristic_...
true
true
f75dd9a08c7fa439982b629a64b9e7dacc3cff9d
23,871
py
Python
test/unit/account/test_backend.py
tsg-/swift-ec
d5cc4d274696b587e820050774db4ca2c3d9c85c
[ "Apache-2.0" ]
null
null
null
test/unit/account/test_backend.py
tsg-/swift-ec
d5cc4d274696b587e820050774db4ca2c3d9c85c
[ "Apache-2.0" ]
null
null
null
test/unit/account/test_backend.py
tsg-/swift-ec
d5cc4d274696b587e820050774db4ca2c3d9c85c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
43.71978
79
0.57484
import hashlib import unittest from time import sleep, time from uuid import uuid4 from swift.account.backend import AccountBroker from swift.common.utils import normalize_timestamp from swift.common.db import DatabaseConnectionError class TestAccountBroker(unittest.TestCase): def test_creation(self): ...
true
true
f75dd9c818743cb34a32262685302da31797a64f
10,457
py
Python
src/compas_3gs/datastructures/volmesh3gs.py
BlockResearchGroup/compas_3gs
66bd1545ce0f0034bd629753da9b8cd45fff6abd
[ "MIT" ]
9
2020-04-29T03:21:45.000Z
2022-01-23T02:54:27.000Z
src/compas_3gs/datastructures/volmesh3gs.py
BlockResearchGroup/compas_3gs
66bd1545ce0f0034bd629753da9b8cd45fff6abd
[ "MIT" ]
8
2020-01-30T15:17:17.000Z
2021-09-28T16:56:42.000Z
src/compas_3gs/datastructures/volmesh3gs.py
BlockResearchGroup/compas_3gs
66bd1545ce0f0034bd629753da9b8cd45fff6abd
[ "MIT" ]
5
2020-03-31T12:53:29.000Z
2020-12-07T21:57:50.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.datastructures import VolMesh from compas.geometry import centroid_points from compas.geometry import normalize_vector __all__ = ['VolMesh3gs'] class VolMesh3gs(VolMesh): """Inherits and ext...
35.327703
120
0.470785
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.datastructures import VolMesh from compas.geometry import centroid_points from compas.geometry import normalize_vector __all__ = ['VolMesh3gs'] class VolMesh3gs(VolMesh): def __init__(self)...
true
true
f75ddb7e9e2c89ad6c7b05c2be1316a2988831a2
1,948
py
Python
hope-python-script/network/windows/keylogger.py
Hope6537/hope-battlepack
503ba3a42c5899130d496a4693d05fca27136e9b
[ "Apache-2.0" ]
5
2015-01-27T02:52:48.000Z
2015-10-26T11:38:59.000Z
hope-python-script/network/windows/keylogger.py
Hope6537/hope-battlepack
503ba3a42c5899130d496a4693d05fca27136e9b
[ "Apache-2.0" ]
null
null
null
hope-python-script/network/windows/keylogger.py
Hope6537/hope-battlepack
503ba3a42c5899130d496a4693d05fca27136e9b
[ "Apache-2.0" ]
2
2016-06-19T09:21:37.000Z
2017-03-13T04:30:51.000Z
# coding=utf-8 """ windows下键盘记录器 前置依赖 sudo pip install pyHook(Just in Windows) """ from ctypes import * import pyHook import pythoncom import win32clipboard user32 = windll.user32 kernel32 = windll.kernel32 psapi = windll.psapi current_window = None def get_current_process(): # 获取到到前台窗口的句柄 hwnd = user32.Ge...
20.723404
86
0.646304
""" windows下键盘记录器 前置依赖 sudo pip install pyHook(Just in Windows) """ from ctypes import * import pyHook import pythoncom import win32clipboard user32 = windll.user32 kernel32 = windll.kernel32 psapi = windll.psapi current_window = None def get_current_process(): hwnd = user32.GetForegroundWindow() ...
false
true
f75ddbb2f74c5a3e6e44cd125a4528ab335065bf
1,199
py
Python
test.py
ddlee-cn/SemIA
46114d37b09df3675d4a8285bf9d3de5242758b6
[ "MIT" ]
3
2020-12-03T01:33:38.000Z
2021-08-14T00:17:08.000Z
test.py
ddlee-cn/SemIA
46114d37b09df3675d4a8285bf9d3de5242758b6
[ "MIT" ]
null
null
null
test.py
ddlee-cn/SemIA
46114d37b09df3675d4a8285bf9d3de5242758b6
[ "MIT" ]
null
null
null
import os from collections import OrderedDict import torch from options.test_options import TestOptions from semia.model import SemIAModel from semia.dataset import TestImgDataset from util.visualizer import Visualizer from util.util import read_image, pil2tensor, pil2np, np2tensor if __name__ == "__main__": Tes...
28.547619
123
0.720601
import os from collections import OrderedDict import torch from options.test_options import TestOptions from semia.model import SemIAModel from semia.dataset import TestImgDataset from util.visualizer import Visualizer from util.util import read_image, pil2tensor, pil2np, np2tensor if __name__ == "__main__": Tes...
true
true
f75ddbc860e09d4c2be8baea5754730b120629b3
938
py
Python
pcapkit/const/ipv4/tos_ecn.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
131
2018-10-12T09:45:44.000Z
2022-03-31T18:58:14.000Z
pcapkit/const/ipv4/tos_ecn.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
39
2018-08-18T12:15:04.000Z
2022-03-07T20:28:08.000Z
pcapkit/const/ipv4/tos_ecn.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
23
2018-10-12T09:45:52.000Z
2022-03-05T15:23:00.000Z
# -*- coding: utf-8 -*- # pylint: disable=line-too-long """ToS ECN Field""" from aenum import IntEnum, extend_enum __all__ = ['ToSECN'] class ToSECN(IntEnum): """[ToSECN] ToS ECN Field""" Not_ECT = 0b00 ECT_0b01 = 0b01 ECT_0b10 = 0b10 CE = 0b11 @staticmethod def get(key, default=-1)...
25.351351
76
0.601279
from aenum import IntEnum, extend_enum __all__ = ['ToSECN'] class ToSECN(IntEnum): Not_ECT = 0b00 ECT_0b01 = 0b01 ECT_0b10 = 0b10 CE = 0b11 @staticmethod def get(key, default=-1): if isinstance(key, int): return ToSECN(key) if key not in ToSECN._member_map_: ...
true
true
f75ddd83bbbdb79643ecaca64767c649ff74c687
9,283
py
Python
BayesOpt/BayesOpt-GraphCNN.py
Saoge123/ccgnet
9359c642bd1faa4c15cae829615385761ebd8d92
[ "MIT" ]
17
2020-11-09T08:07:36.000Z
2022-03-17T13:53:46.000Z
BayesOpt/BayesOpt-GraphCNN.py
Saoge123/ccgnet
9359c642bd1faa4c15cae829615385761ebd8d92
[ "MIT" ]
2
2021-05-05T14:18:36.000Z
2021-10-22T02:58:53.000Z
BayesOpt/BayesOpt-GraphCNN.py
Saoge123/ccgnet
9359c642bd1faa4c15cae829615385761ebd8d92
[ "MIT" ]
2
2021-10-16T14:34:17.000Z
2021-10-21T06:49:32.000Z
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from ccgnet import experiment as exp from ccgnet import layers import tensorflow as tf import numpy as np import time from sklearn.metrics import balanced_accuracy_score from ccgnet.Dataset import Dataset, DataLoader d...
45.063107
150
0.614995
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from ccgnet import experiment as exp from ccgnet import layers import tensorflow as tf import numpy as np import time from sklearn.metrics import balanced_accuracy_score from ccgnet.Dataset import Dataset, DataLoader d...
true
true
f75ddf831b02e03f012089cc09e669831309293f
4,536
bzl
Python
repositories.bzl
fis/bracket
add16cde381fb2f68854d690246dc15aec9be3cd
[ "MIT" ]
null
null
null
repositories.bzl
fis/bracket
add16cde381fb2f68854d690246dc15aec9be3cd
[ "MIT" ]
null
null
null
repositories.bzl
fis/bracket
add16cde381fb2f68854d690246dc15aec9be3cd
[ "MIT" ]
null
null
null
"""External dependencies for the bracket library.""" load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def bracket_repositories( omit_bazel_skylib=False, omit_boringssl=False, omit_civetweb=False, omit_com_github_...
37.180328
124
0.727954
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def bracket_repositories( omit_bazel_skylib=False, omit_boringssl=False, omit_civetweb=False, omit_com_github_jupp0r_prometheus_cpp=False, omit_com_google_goog...
true
true
f75de2197f793e55056178f918f341e30fa8c8b4
13,449
py
Python
python/mxnet/gluon/model_zoo/vision/mobilenet.py
xudong-sun/mxnet
fe42d30d5885dd576cb871fd70594c53efce9b42
[ "Apache-2.0" ]
31
2016-04-29T09:13:44.000Z
2021-02-16T21:27:00.000Z
python/mxnet/gluon/model_zoo/vision/mobilenet.py
xudong-sun/mxnet
fe42d30d5885dd576cb871fd70594c53efce9b42
[ "Apache-2.0" ]
4
2016-04-25T13:01:30.000Z
2017-07-31T10:18:17.000Z
python/mxnet/gluon/model_zoo/vision/mobilenet.py
xudong-sun/mxnet
fe42d30d5885dd576cb871fd70594c53efce9b42
[ "Apache-2.0" ]
47
2016-04-19T22:46:09.000Z
2020-09-30T08:09:16.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...
37.049587
98
0.638932
__all__ = ['MobileNet', 'MobileNetV2', 'mobilenet1_0', 'mobilenet_v2_1_0', 'mobilenet0_75', 'mobilenet_v2_0_75', 'mobilenet0_5', 'mobilenet_v2_0_5', 'mobilenet0_25', 'mobilenet_v2_0_25', 'get_mobilenet', 'get_mobilenet_v2'] __modify__ = 'dwSun' __modified_date__ = '18/01/31' import os from ......
true
true
f75de2760574fbe9e06bc7d7e043b0bab4c524aa
1,485
py
Python
test/test_tile.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
6
2018-07-09T00:33:52.000Z
2019-11-14T16:36:39.000Z
test/test_tile.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
1
2018-06-11T19:35:07.000Z
2018-06-11T19:35:07.000Z
test/test_tile.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
2
2018-06-11T17:59:03.000Z
2018-07-09T00:33:54.000Z
from ccdc import tile from pyspark.sql import Row import datetime import json import test rows = [Row(tx=0, ty=1, name='test model', model='model coefficients', updated='0001-01-01')] def test_table(): assert 'tile' == tile.table() def test_schema(): s = til...
32.282609
124
0.579798
from ccdc import tile from pyspark.sql import Row import datetime import json import test rows = [Row(tx=0, ty=1, name='test model', model='model coefficients', updated='0001-01-01')] def test_table(): assert 'tile' == tile.table() def test_schema(): s = til...
true
true
f75de3afd427f8183962c017b7fa6ed6c175940d
2,941
py
Python
tests/resolution/evaluation/test_evaluate_container.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
1
2022-02-08T21:32:33.000Z
2022-02-08T21:32:33.000Z
tests/resolution/evaluation/test_evaluate_container.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
310
2020-03-12T16:02:13.000Z
2022-03-31T06:01:49.000Z
tests/resolution/evaluation/test_evaluate_container.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
2
2021-09-22T00:13:58.000Z
2021-09-22T15:06:27.000Z
"""Test evaluation base.""" # pylint: disable=import-error,protected-access from unittest.mock import MagicMock, patch from docker.errors import DockerException from supervisor.const import CoreState from supervisor.coresys import CoreSys from supervisor.resolution.evaluations.container import EvaluateContainer def...
32.318681
87
0.65998
from unittest.mock import MagicMock, patch from docker.errors import DockerException from supervisor.const import CoreState from supervisor.coresys import CoreSys from supervisor.resolution.evaluations.container import EvaluateContainer def test_get_images(coresys: CoreSys): container = EvaluateContainer(coresy...
true
true
f75de3c7cf2b8025aabe163daa914ddd67bff399
1,513
py
Python
hypernets/utils/common.py
qigj/Hypernets
534150e682f09df11ac3363e6aa7cd5e4a294c1d
[ "Apache-2.0" ]
1
2020-11-06T07:52:14.000Z
2020-11-06T07:52:14.000Z
hypernets/utils/common.py
frankbaul/Hypernets
534150e682f09df11ac3363e6aa7cd5e4a294c1d
[ "Apache-2.0" ]
null
null
null
hypernets/utils/common.py
frankbaul/Hypernets
534150e682f09df11ac3363e6aa7cd5e4a294c1d
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- __author__ = 'yangjian' """ """ import math import os import sys import uuid def generate_id(): return str(uuid.uuid1()) def combinations(n, m_max, m_min=1): if m_max > n or m_max <= 0: m_max = n if m_min < 1: m_min = 1 if m_min == 1 and m_max == n: r...
21.309859
79
0.542631
__author__ = 'yangjian' import math import os import sys import uuid def generate_id(): return str(uuid.uuid1()) def combinations(n, m_max, m_min=1): if m_max > n or m_max <= 0: m_max = n if m_min < 1: m_min = 1 if m_min == 1 and m_max == n: return 2 ** n - 1 else: ...
true
true
f75de4224d1407b36322648548bea9d9660d62db
8,833
py
Python
battery_storage/main.py
locuslab/e2e-model-learning
2bf43848ac26e25321fea7bfeddf2a24135aa192
[ "Apache-2.0" ]
163
2017-03-14T17:43:48.000Z
2022-03-22T12:47:27.000Z
battery_storage/main.py
locuslab/e2e-model-learning
2bf43848ac26e25321fea7bfeddf2a24135aa192
[ "Apache-2.0" ]
7
2017-07-14T01:56:36.000Z
2021-08-31T09:18:16.000Z
battery_storage/main.py
locuslab/e2e-model-learning
2bf43848ac26e25321fea7bfeddf2a24135aa192
[ "Apache-2.0" ]
47
2017-03-15T00:17:39.000Z
2022-03-10T20:27:23.000Z
#!/usr/bin/env python3 import argparse import setproctitle import scipy.io as sio import numpy as np import torch import importlib try: import setGPU except ImportError: pass import os import model_classes, nets, calc_stats from constants import * from torch.utils.data import DataLoader, TensorDataset import pa...
36.804167
109
0.658666
import argparse import setproctitle import scipy.io as sio import numpy as np import torch import importlib try: import setGPU except ImportError: pass import os import model_classes, nets, calc_stats from constants import * from torch.utils.data import DataLoader, TensorDataset import pandas as pd from datetim...
true
true
f75de4327916551754582302b8e57b1b811bfd84
6,202
py
Python
grr/server/flows/general/find_test.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/server/flows/general/find_test.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/server/flows/general/find_test.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- """Tests for the Find flow.""" from grr.client.client_actions import searching from grr.lib import flags from grr.lib import type_info from grr.lib import utils from grr.lib.rdfvalues import client as rdf_client from grr.lib.rdfvalues import paths as rdf_pat...
30.70297
77
0.687359
from grr.client.client_actions import searching from grr.lib import flags from grr.lib import type_info from grr.lib import utils from grr.lib.rdfvalues import client as rdf_client from grr.lib.rdfvalues import paths as rdf_paths from grr.server import flow from grr.server.flows.general import find from grr.test_lib im...
true
true
f75de59575b5403a37c2104b2565c99adfed57c6
22,408
py
Python
pysnmp/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Nortel-MsCarrier-MscPassport-DataCollectionMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-DataCollectionMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:20:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 ...
134.987952
3,370
0.763433
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.impo...
true
true
f75de5a1777e1b469339573baa04d925fe8249fe
330
py
Python
Linkedin/min_sum_unique_array.py
YufeiHu/Online-Accessment
fa94b7eb54e217db5fc08a92251b9197e5339374
[ "MIT" ]
null
null
null
Linkedin/min_sum_unique_array.py
YufeiHu/Online-Accessment
fa94b7eb54e217db5fc08a92251b9197e5339374
[ "MIT" ]
null
null
null
Linkedin/min_sum_unique_array.py
YufeiHu/Online-Accessment
fa94b7eb54e217db5fc08a92251b9197e5339374
[ "MIT" ]
null
null
null
from collections import Counter def solution(nums): cnt = Counter(nums) ans = 0 cur = -1 for k in sorted(cnt.keys()): cur = max(cur, k) while cnt[k]: ans += cur cur += 1 cnt[k] -= 1 return ans nums = [3, 2, 1, 2, 7] print(solut...
18.333333
33
0.463636
from collections import Counter def solution(nums): cnt = Counter(nums) ans = 0 cur = -1 for k in sorted(cnt.keys()): cur = max(cur, k) while cnt[k]: ans += cur cur += 1 cnt[k] -= 1 return ans nums = [3, 2, 1, 2, 7] print(solut...
true
true
f75de5c61d61b5cc82c1df97ba7f702b95966a67
10,172
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowcontroller/field.py
kakkotetsu/IxNetwork
f9fb614b51bb8988af035967991ad36702933274
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowcontroller/field.py
kakkotetsu/IxNetwork
f9fb614b51bb8988af035967991ad36702933274
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowcontroller/field.py
kakkotetsu/IxNetwork
f9fb614b51bb8988af035967991ad36702933274
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # 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, p...
36.199288
233
0.733681
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class Field(Base): _SDM_NAME = 'field' def __init__(self, parent): super(Field, self).__init__(parent) @property def Count(self): return self._get_attribute('count') @property def Description(self): ...
true
true
f75de5f13c9c1ac6e281724cdf86f9675eaf53e4
908
py
Python
nnef_tools/io/tensorflow/tflite_fb/LogicalOrOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/LogicalOrOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/LogicalOrOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite_fb import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class LogicalOrOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsLogicalOrOptions(cls, buf, offset): n = fl...
31.310345
114
0.732379
import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class LogicalOrOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsLogicalOrOptions(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = LogicalOrOptions()...
true
true
f75de63c6af7d1b026ac2c6e2d953f264b1c0abb
841
py
Python
authmechanics/urls.py
shafi2263/drf-auth-mechanisms
e721972300cf8227823c85ea011838a12a01810b
[ "MIT" ]
1
2022-01-18T09:03:36.000Z
2022-01-18T09:03:36.000Z
authmechanics/urls.py
shafi2263/drf-auth-mechanisms
e721972300cf8227823c85ea011838a12a01810b
[ "MIT" ]
null
null
null
authmechanics/urls.py
shafi2263/drf-auth-mechanisms
e721972300cf8227823c85ea011838a12a01810b
[ "MIT" ]
null
null
null
"""authmechanics URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
33.64
77
0.715815
from django.contrib import admin from django.urls import path from myapp.views import AuthenticatedView urlpatterns = [ path('admin/', admin.site.urls), path('', AuthenticatedView.as_view()), ]
true
true
f75de6cdc25888c60d1943738442b53cd01b4c71
30,562
py
Python
atomic_reactor/core.py
jcajka/atomic-reactor
b864a39ec91fe27c3724f09af0041ecc0980c77e
[ "BSD-3-Clause" ]
null
null
null
atomic_reactor/core.py
jcajka/atomic-reactor
b864a39ec91fe27c3724f09af0041ecc0980c77e
[ "BSD-3-Clause" ]
1
2018-04-25T12:42:14.000Z
2018-04-29T20:31:00.000Z
atomic_reactor/core.py
sosiouxme/atomic-reactor
91414bb8ffd988321cfa7120167636757e265a39
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Naming Conventions ================== registry.somewhere/namespace/image_name:tag |-----------------| registry, reg_ur...
39.846154
98
0.597245
import os import shutil import logging import tempfile import json import requests import time import docker import atomic_reactor.util from docker.errors import APIError from functools import wraps from atomic_reactor.constants import CONTAINER_SHARE_PATH, CONTAINER_SHARE_SOURCE_SUBDIR,\ BUILD_JSON, DOCKER_SO...
true
true
f75de75d3b45feb64753d96f62bd3ac18e54770a
19,609
py
Python
kornia/geometry/bbox.py
EStorm21/kornia
b2bba7950d748ba0b8ce0cc68035a248799a1044
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/geometry/bbox.py
EStorm21/kornia
b2bba7950d748ba0b8ce0cc68035a248799a1044
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/geometry/bbox.py
EStorm21/kornia
b2bba7950d748ba0b8ce0cc68035a248799a1044
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from typing import Tuple import torch import kornia @torch.jit.ignore def validate_bbox(boxes: torch.Tensor) -> bool: """Validate if a 2D bounding box usable or not. This function checks if the boxes are rectangular or not. Args: boxes: a tensor containing the coordinates of the bounding boxes to b...
42.169892
120
0.533989
from typing import Tuple import torch import kornia @torch.jit.ignore def validate_bbox(boxes: torch.Tensor) -> bool: if not (len(boxes.shape) == 3 and boxes.shape[1:] == torch.Size([4, 2])): raise AssertionError(f"Box shape must be (B, 4, 2). Got {boxes.shape}.") if not torch.allclose((boxes[:, 1,...
true
true
f75de77e65acdcd52d74d4e153cf71fd8bf54ec1
420
py
Python
packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="alignsrc", parent_name="splom.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=...
30
78
0.654762
import _plotly_utils.basevalidators class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="alignsrc", parent_name="splom.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=...
true
true
f75de7840f3359947bfd333433858a150b76d75e
593
py
Python
lib/graph.py
jDan735/covid-19_bot
a359e1b611031dab6070dea9dee68092a02ca7d8
[ "MIT" ]
null
null
null
lib/graph.py
jDan735/covid-19_bot
a359e1b611031dab6070dea9dee68092a02ca7d8
[ "MIT" ]
null
null
null
lib/graph.py
jDan735/covid-19_bot
a359e1b611031dab6070dea9dee68092a02ca7d8
[ "MIT" ]
null
null
null
data["procent"] = { "active": (data["active"] / (data["cases"] // 100) / 5), "recovered": (data["recovered"] / (data["cases"] // 100) / 5), "deaths": (data["deaths"] / (data["cases"] // 100) / 5), } def getFalseSymbol (i, symbol): string = "" i = int(str(round(i, 0)).replace(".0", "")) ...
32.944444
67
0.53457
data["procent"] = { "active": (data["active"] / (data["cases"] // 100) / 5), "recovered": (data["recovered"] / (data["cases"] // 100) / 5), "deaths": (data["deaths"] / (data["cases"] // 100) / 5), } def getFalseSymbol (i, symbol): string = "" i = int(str(round(i, 0)).replace(".0", "")) ...
true
true
f75de7f0a0ae043495444b45ba9f3f2bfd58b0a4
1,847
py
Python
aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/SwitchHbaseHaSlbRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/SwitchHbaseHaSlbRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/SwitchHbaseHaSlbRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "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...
33.581818
78
0.75582
from aliyunsdkcore.request import RpcRequest from aliyunsdkhbase.endpoint import endpoint_data class SwitchHbaseHaSlbRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'HBase', '2019-01-01', 'SwitchHbaseHaSlb','hbase') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_d...
true
true
f75de82bd470c9db3f2f36f2378f6ea257c816c9
4,149
py
Python
day-10.py
alexa-infra/advent-of-code-2019
78cd317409abe0273d6c63b8c893f9d7f79e7fd4
[ "MIT" ]
null
null
null
day-10.py
alexa-infra/advent-of-code-2019
78cd317409abe0273d6c63b8c893f9d7f79e7fd4
[ "MIT" ]
null
null
null
day-10.py
alexa-infra/advent-of-code-2019
78cd317409abe0273d6c63b8c893f9d7f79e7fd4
[ "MIT" ]
null
null
null
import math from itertools import cycle import pytest def read_map(lines): data = set() for j, line in enumerate(lines): for i, ch in enumerate(line.strip()): p = (i, j) if ch == '#': data.add(p) return data def vectoring(a, b): x1, y1 = a x2, y2 =...
20.043478
72
0.429983
import math from itertools import cycle import pytest def read_map(lines): data = set() for j, line in enumerate(lines): for i, ch in enumerate(line.strip()): p = (i, j) if ch == '#': data.add(p) return data def vectoring(a, b): x1, y1 = a x2, y2 =...
true
true
f75de8730149c6d2045fed0840148f76ff945116
3,304
py
Python
sdk/python/pulumi_aws/ses/get_email_identity.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ses/get_email_identity.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ses/get_email_identity.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
27.533333
135
0.638317
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'GetEmailIdentityResult', 'AwaitableGetEmailIdentityResult', 'get_email_identity', 'get_email_identity_output', ] @pulumi.output_type class Ge...
true
true
f75de955419b4c69ad0052b5e7b95553fbcb860c
1,594
py
Python
motor/__init__.py
vimfun/motor
6886e844cdb3af56f3d5c015480b207ecda81830
[ "Apache-2.0" ]
null
null
null
motor/__init__.py
vimfun/motor
6886e844cdb3af56f3d5c015480b207ecda81830
[ "Apache-2.0" ]
null
null
null
motor/__init__.py
vimfun/motor
6886e844cdb3af56f3d5c015480b207ecda81830
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-present MongoDB, 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 wri...
31.88
80
0.68946
from __future__ import unicode_literals, absolute_import from motor.motor_py2_compat import text_type version_tuple = (2, 2, 0, 'dev0') def get_version_string(): return '.'.join(map(str, version_tuple)) version = get_version_string() try: import tornado except ImportError: tornado = None else: ...
true
true
f75deaa587e49a64e21cdf34793160f9d016855f
16,406
py
Python
Sounds.py
phixtyseven/OoT-Randomizer
eed4d9b0b329f53ebba060d279e35ead9833711c
[ "MIT" ]
2
2019-07-07T00:36:47.000Z
2020-05-11T10:48:42.000Z
Sounds.py
phixtyseven/OoT-Randomizer
eed4d9b0b329f53ebba060d279e35ead9833711c
[ "MIT" ]
5
2019-02-09T09:58:06.000Z
2021-04-30T12:59:09.000Z
Sounds.py
phixtyseven/OoT-Randomizer
eed4d9b0b329f53ebba060d279e35ead9833711c
[ "MIT" ]
1
2020-05-09T18:50:48.000Z
2020-05-09T18:50:48.000Z
# SOUNDS.PY # # A data-oriented module created to avoid cluttering (and entangling) other, # more important modules with sound data. # # Tags # To easily fetch related sounds by their properties. This seems generally # better than the alternative of defining long lists by hand. You still can, of # course. Categorizing ...
55.802721
134
0.515909
# you get the picture. # # Sound Pools # These are just groups of sounds, to be referenced by sfx settings. Could # potentially merit enumerating later on. ¯\_(ツ)_/¯ # # Sound Hooks # These are intended to gear themselves toward configurable settings, rather # than to document every location where a particular sound is...
true
true
f75deacca9b2f09d6284e19623e4cb6580603590
2,091
py
Python
Assignments/Assignment-4/Code/Question_4/panorama.py
kshitijsriv/Computer-Vision-Spring-19
7e84726d51d30ecf8a22e890aced5a48e3b5b7e5
[ "MIT" ]
null
null
null
Assignments/Assignment-4/Code/Question_4/panorama.py
kshitijsriv/Computer-Vision-Spring-19
7e84726d51d30ecf8a22e890aced5a48e3b5b7e5
[ "MIT" ]
null
null
null
Assignments/Assignment-4/Code/Question_4/panorama.py
kshitijsriv/Computer-Vision-Spring-19
7e84726d51d30ecf8a22e890aced5a48e3b5b7e5
[ "MIT" ]
null
null
null
# ref: https://pylessons.com/OpenCV-image-stiching-continue/ import cv2 import numpy as np img_ = cv2.imread('1a.jpg') # img_ = cv2.resize(img_, (0,0), fx=1, fy=1) img1 = cv2.cvtColor(img_, cv2.COLOR_BGR2GRAY) img = cv2.imread('1b.jpg') # img = cv2.resize(img, (0,0), fx=1, fy=1) img2 = cv2.cvtColor(img, cv2.COLOR_BG...
32.671875
88
0.673362
import cv2 import numpy as np img_ = cv2.imread('1a.jpg') img1 = cv2.cvtColor(img_, cv2.COLOR_BGR2GRAY) img = cv2.imread('1b.jpg') img2 = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) min_shape = img2.shape print(img1.shape, img2.shape, min_shape) img1 = cv2.resize(img1, (min_shape[1], min_shape[0])) print(img1.shape) sif...
true
true
f75deb1570100767b3ee59649e68fdc4f42c181f
189
py
Python
pyramda/dictionary/map_dict.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/dictionary/map_dict.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
pyramda/dictionary/map_dict.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from pyramda.function import curry from pyramda.iterable import map @curry def map_dict(f, dict): f_dict = {} for k, v in dict.items(): f_dict[k] = f(v) return f_dict
17.181818
34
0.645503
from pyramda.function import curry from pyramda.iterable import map @curry def map_dict(f, dict): f_dict = {} for k, v in dict.items(): f_dict[k] = f(v) return f_dict
true
true
f75deb1ada7a408f2ea2507f28cb2a75ffb58868
3,874
py
Python
plugins/modules/oci_resource_manager_job_tf_state_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_resource_manager_job_tf_state_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_resource_manager_job_tf_state_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
28.910448
155
0.703924
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: oci_resource_manager_job_tf_state_facts short_description: Fetches details about a ...
true
true
f75deb697c3c4461eb2fd54ef183dfa7d575e827
9,688
py
Python
mmdetection/configs/htc/htc_dconv_c3-c5_mstrain_400_1400_x101_64x4d_fpn_20e.py
xiexiangxiang/OD-Product-Data
42efba4315e5a630b33a0a6895059a155e189ac8
[ "MIT" ]
null
null
null
mmdetection/configs/htc/htc_dconv_c3-c5_mstrain_400_1400_x101_64x4d_fpn_20e.py
xiexiangxiang/OD-Product-Data
42efba4315e5a630b33a0a6895059a155e189ac8
[ "MIT" ]
null
null
null
mmdetection/configs/htc/htc_dconv_c3-c5_mstrain_400_1400_x101_64x4d_fpn_20e.py
xiexiangxiang/OD-Product-Data
42efba4315e5a630b33a0a6895059a155e189ac8
[ "MIT" ]
null
null
null
# model settings model = dict( type='HybridTaskCascade', num_stages=3, pretrained='open-mmlab://resnext101_64x4d', interleaved=True, mask_info_flow=True, backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(...
31.454545
79
0.548927
model = dict( type='HybridTaskCascade', num_stages=3, pretrained='open-mmlab://resnext101_64x4d', interleaved=True, mask_info_flow=True, backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), ...
true
true
f75deb9b6ac0dae59fbc478756585d6448926c6c
3,575
py
Python
create_dataset.py
bayartsogt-ya/TransformerTTS
2f3a1b580515a8b33a624bcdf163e549916065d6
[ "MIT" ]
1
2021-09-06T14:45:43.000Z
2021-09-06T14:45:43.000Z
create_dataset.py
datitran/TransformerTTS
2f3a1b580515a8b33a624bcdf163e549916065d6
[ "MIT" ]
null
null
null
create_dataset.py
datitran/TransformerTTS
2f3a1b580515a8b33a624bcdf163e549916065d6
[ "MIT" ]
1
2020-11-05T02:12:45.000Z
2020-11-05T02:12:45.000Z
import argparse import os from pathlib import Path import librosa import numpy as np import tqdm import ruamel.yaml from preprocessing.text_processing import Phonemizer, TextCleaner from utils.audio import melspectrogram parser = argparse.ArgumentParser() parser.add_argument('--config', dest='CONFIG', type=str, requ...
39.722222
97
0.691748
import argparse import os from pathlib import Path import librosa import numpy as np import tqdm import ruamel.yaml from preprocessing.text_processing import Phonemizer, TextCleaner from utils.audio import melspectrogram parser = argparse.ArgumentParser() parser.add_argument('--config', dest='CONFIG', type=str, requ...
true
true
f75debe4a29ea663c5668cb06bc7e6d426a2ae78
1,518
py
Python
pyprofile.py
stephen-bunn/anicode
67c4ce5a425ec853506eb057d90f83e496d88471
[ "MIT" ]
1
2019-11-25T12:50:38.000Z
2019-11-25T12:50:38.000Z
pyprofile.py
stephen-bunn/anicode
67c4ce5a425ec853506eb057d90f83e496d88471
[ "MIT" ]
11
2018-01-31T10:30:33.000Z
2019-10-04T16:37:17.000Z
pyprofile.py
stephen-bunn/anicode
67c4ce5a425ec853506eb057d90f83e496d88471
[ "MIT" ]
1
2019-10-01T17:14:37.000Z
2019-10-01T17:14:37.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- import os import sys import tempfile import cProfile # initial error handling begins # missing cprofilev try: import cprofilev except ImportError as exc: sys.stderr.write(('error: python package "cprofilev" not found\n')) sys.exit(1) # no script given if l...
24.483871
71
0.677207
import os import sys import tempfile import cProfile try: import cprofilev except ImportError as exc: sys.stderr.write(('error: python package "cprofilev" not found\n')) sys.exit(1) if len(sys.argv) != 2: sys.stderr.write(('error: no python script given\n')) sys.exit(1) script_path = os.path.ab...
true
true
f75decfe699530022da8986a030302011f9351f1
1,560
py
Python
algorithms/others/spiral_matrix.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/others/spiral_matrix.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/others/spiral_matrix.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
# Spiral Matrix class Solution(object): def spiralOrder(self, matrix): if not any(matrix): return [] # mark the boundary lines top, bottom = 0, len(matrix) - 1 left, right = 0, len(matrix[0]) - 1 result = [] while True: for j in range(left, r...
24.761905
53
0.435897
class Solution(object): def spiralOrder(self, matrix): if not any(matrix): return [] top, bottom = 0, len(matrix) - 1 left, right = 0, len(matrix[0]) - 1 result = [] while True: for j in range(left, right + 1): result.append(m...
true
true
f75ded35180b5e4edcabc8163126e8d15933d0f2
581
py
Python
pytypos/__init__.py
PApostol/pytypos
3a1adf268434e1b9f0a4ce8f5020bd976d09beeb
[ "MIT" ]
null
null
null
pytypos/__init__.py
PApostol/pytypos
3a1adf268434e1b9f0a4ce8f5020bd976d09beeb
[ "MIT" ]
null
null
null
pytypos/__init__.py
PApostol/pytypos
3a1adf268434e1b9f0a4ce8f5020bd976d09beeb
[ "MIT" ]
null
null
null
"""pytypos module""" from typing import List import enchant from .__info__ import (__author__, __author_email__, __bugtrack_url__, __description__, __license__, __maintainer__, __title__, __url__, __version__) from ._pytypos import Pytypos def available_languages() -> ...
25.26087
87
0.693632
from typing import List import enchant from .__info__ import (__author__, __author_email__, __bugtrack_url__, __description__, __license__, __maintainer__, __title__, __url__, __version__) from ._pytypos import Pytypos def available_languages() -> List[str]: return...
true
true
f75ded489558f8c82b41cac658d2ba1d1980f293
4,038
py
Python
docusign_esign/models/return_url_request.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/return_url_request.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/return_url_request.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from p...
35.113043
523
0.608222
from pprint import pformat from six import iteritems import re class ReturnUrlRequest(object): def __init__(self, return_url=None): self.swagger_types = { 'return_url': 'str' } self.attribute_map = { 'return_url': 'returnUrl' } self._return_url ...
true
true
f75dedbdd0c41fbe0488d19fddefdee57b0db77e
261
py
Python
scatterplot.py
jnduli/edx_anaconda_machine_learning
5eb1d967c0bbff545baf86860a6bd4074840747f
[ "MIT" ]
null
null
null
scatterplot.py
jnduli/edx_anaconda_machine_learning
5eb1d967c0bbff545baf86860a6bd4074840747f
[ "MIT" ]
null
null
null
scatterplot.py
jnduli/edx_anaconda_machine_learning
5eb1d967c0bbff545baf86860a6bd4074840747f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 8 12:40:35 2016 @author: rookie """ import pandas as pd import matplotlib as mpl mpl.style.use('ggplot') student_dataset = pd.read_csv("students.data",index_col=0) student_dataset.plot.scatter(x='G1', y='G3')
17.4
58
0.693487
import pandas as pd import matplotlib as mpl mpl.style.use('ggplot') student_dataset = pd.read_csv("students.data",index_col=0) student_dataset.plot.scatter(x='G1', y='G3')
true
true
f75dee2989575f46e957dda43465f22c278d0c61
534
py
Python
culqi/schemas/plan.py
culqi/culqi-python
26d65fcc609ad2f1fdfddfe7961f126414bd64fd
[ "MIT" ]
14
2016-03-07T03:50:07.000Z
2021-01-10T23:52:50.000Z
culqi/schemas/plan.py
culqi/culqi-python
26d65fcc609ad2f1fdfddfe7961f126414bd64fd
[ "MIT" ]
14
2016-03-12T00:51:33.000Z
2021-11-02T19:07:47.000Z
culqi/schemas/plan.py
culqi/culqi-python
26d65fcc609ad2f1fdfddfe7961f126414bd64fd
[ "MIT" ]
21
2016-04-01T05:12:34.000Z
2021-03-04T19:31:00.000Z
SCHEMA = { "type": "object", "properties": { "name": {"type" : "string"}, "amount": {"type" : "number"}, "currency_code": {"type" : "string"}, "interval": {"type" : "string"}, "interval_count": {"type" : "number"}, "trial_days": ...
38.142857
81
0.425094
SCHEMA = { "type": "object", "properties": { "name": {"type" : "string"}, "amount": {"type" : "number"}, "currency_code": {"type" : "string"}, "interval": {"type" : "string"}, "interval_count": {"type" : "number"}, "trial_days": ...
true
true
f75deee36d92d45a618b4a42de58eac90b8a52ce
1,075
py
Python
openstack_dashboard/dashboards/admin/auditlog/tabs.py
shhui/horizon
fd8cf6e31c07b147289bfb86c90133599eb2906e
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/auditlog/tabs.py
shhui/horizon
fd8cf6e31c07b147289bfb86c90133599eb2906e
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/auditlog/tabs.py
shhui/horizon
fd8cf6e31c07b147289bfb86c90133599eb2906e
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, 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 # # ...
31.617647
78
0.723721
from django.utils.translation import ugettext_lazy as _ from horizon import tabs class OverviewTab(tabs.Tab): name = _("Overview") slug = "overview" template_name = "admin/auditlog/_detail_overview.html" def get_context_data(self, request): return {"auditlogs": self.tab_group.kwargs['audit...
true
true
f75def10cf77b976555930c7f4afab03837779c6
100
py
Python
Colorizing-with-GANs-master/test-eval.py
adityajain28/Colorizing-with-GANs
7657da967ee29e53a8344b554b3d817bea215e69
[ "Apache-2.0" ]
262
2018-03-04T20:25:55.000Z
2022-03-17T11:31:07.000Z
Colorizing-with-GANs-master/test-eval.py
adityajain28/Colorizing-with-GANs
7657da967ee29e53a8344b554b3d817bea215e69
[ "Apache-2.0" ]
29
2018-05-03T15:30:15.000Z
2021-07-19T01:06:12.000Z
Colorizing-with-GANs-master/test-eval.py
adityajain28/Colorizing-with-GANs
7657da967ee29e53a8344b554b3d817bea215e69
[ "Apache-2.0" ]
92
2018-04-14T18:00:36.000Z
2022-01-27T22:08:24.000Z
from src import ModelOptions, main options = ModelOptions().parse() options.mode = 1 main(options)
16.666667
34
0.76
from src import ModelOptions, main options = ModelOptions().parse() options.mode = 1 main(options)
true
true
f75defa170c03991867e4ce8dfed6ace69bd14f3
1,699
py
Python
config/urls.py
gncare/iop-docker
888773fc462dcec1f77c21f34bbd7bbfca96175f
[ "MIT" ]
null
null
null
config/urls.py
gncare/iop-docker
888773fc462dcec1f77c21f34bbd7bbfca96175f
[ "MIT" ]
null
null
null
config/urls.py
gncare/iop-docker
888773fc462dcec1f77c21f34bbd7bbfca96175f
[ "MIT" ]
null
null
null
from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ path("", TemplateView.as_view(template_name="pages/home...
32.056604
85
0.629194
from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ path("", TemplateView.as_view(template_name="pages/home...
true
true
f75df08d625d8e004944d91fe60ce351deea3375
4,170
py
Python
code_stats.py
tommccallum/cpp_starter_kit
8713125e905ccb019e5949e58d6623439c1c1ea9
[ "MIT" ]
null
null
null
code_stats.py
tommccallum/cpp_starter_kit
8713125e905ccb019e5949e58d6623439c1c1ea9
[ "MIT" ]
null
null
null
code_stats.py
tommccallum/cpp_starter_kit
8713125e905ccb019e5949e58d6623439c1c1ea9
[ "MIT" ]
null
null
null
""" Provide statistics about our code files such as: - functions per file - classes per file - lines per file - blank lines per file - enums """ import os import glob import re path = "src" verbose=0 class StatCounter: def __init__(self, filename): self.filename=filename self.classes =0 s...
34.180328
124
0.500959
import os import glob import re path = "src" verbose=0 class StatCounter: def __init__(self, filename): self.filename=filename self.classes =0 self.structs=0 self.functions=0 self.enums=0 self.total_lines = 0 self.blank_lines=0 self.code_lines=0 ...
true
true