hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1398f25b903927afbd5b3f8829eb74cc2c52e6
633
py
Python
manage.py
maransowthri/docker_basics
f9becbda323eca91d508174904d6d211de032f48
[ "MIT" ]
null
null
null
manage.py
maransowthri/docker_basics
f9becbda323eca91d508174904d6d211de032f48
[ "MIT" ]
null
null
null
manage.py
maransowthri/docker_basics
f9becbda323eca91d508174904d6d211de032f48
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'docker_basics.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ...
28.772727
77
0.685624
4a1399f461234c317b9e03dd4c51c8d461a8a29a
2,412
py
Python
khrunner/logger.py
ParksProjets/kattis-hunter
c4990edf59fba6d91d22fdc126673781ab423d0f
[ "MIT" ]
null
null
null
khrunner/logger.py
ParksProjets/kattis-hunter
c4990edf59fba6d91d22fdc126673781ab423d0f
[ "MIT" ]
null
null
null
khrunner/logger.py
ParksProjets/kattis-hunter
c4990edf59fba6d91d22fdc126673781ab423d0f
[ "MIT" ]
null
null
null
""" Overwrite Python logger for a more beautiful one. Copyright (C) 2019, Guillaume Gonnet This project is under the MIT license. """ import os, sys import logging import ctypes import time from typing import Text # Check if we are on Windows. is_win32 = (os.name == "nt") if is_win32: handle = ctypes.windll.k...
23.417476
80
0.606136
4a139b0fd4ea1f0df6a6508963d8600f99812d13
3,040
py
Python
Main_V0.1.py
louisvathan/NSE-Stocks-Strategies-Tester
53d6bfd05cb46ebbdb19f88ed42a8aad4cafdfd8
[ "MIT" ]
null
null
null
Main_V0.1.py
louisvathan/NSE-Stocks-Strategies-Tester
53d6bfd05cb46ebbdb19f88ed42a8aad4cafdfd8
[ "MIT" ]
1
2021-08-07T14:47:25.000Z
2021-08-07T14:47:25.000Z
Main_V0.1.py
louisvathan/NSE-Stocks-Strategies-Tester
53d6bfd05cb46ebbdb19f88ed42a8aad4cafdfd8
[ "MIT" ]
1
2021-06-27T21:36:42.000Z
2021-06-27T21:36:42.000Z
import pandas as pd import os import time import datetime from datetime import timezone from datetime import datetime import requests from openpyxl import Workbook start = time.time() from Strategy_Management import * from Excel_Processing import full_summary import Stocks now = datetime.now() date =...
33.777778
164
0.651316
4a139caade2d3aeaa13792a12dd0e3bbee402b87
2,340
py
Python
twitoff/app.py
Frank-Howd/Twitoff-23
949b5a12f0f6f7bb8c9eb03e9948fd42a339e271
[ "MIT" ]
null
null
null
twitoff/app.py
Frank-Howd/Twitoff-23
949b5a12f0f6f7bb8c9eb03e9948fd42a339e271
[ "MIT" ]
null
null
null
twitoff/app.py
Frank-Howd/Twitoff-23
949b5a12f0f6f7bb8c9eb03e9948fd42a339e271
[ "MIT" ]
null
null
null
"""Main app/routing file for Twitoff""" from os import getenv from flask import Flask, render_template, request from .models import DB, User from .twitter import update_all_users, add_or_update_user from .predict import predict_user def create_app(): """Create Flask Application""" app = Flask(__name__) ...
32.054795
91
0.594444
4a139cadebfdf4fe442077a019cc651e27d3cab4
197
py
Python
gevent/alternatives/memcache.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
4
2015-11-25T09:06:44.000Z
2019-12-11T21:35:21.000Z
gevent/alternatives/memcache.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
null
null
null
gevent/alternatives/memcache.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
2
2015-11-25T09:19:38.000Z
2016-02-26T03:54:06.000Z
from geventmemcache.client import Memcache servers = [(("127.0.0.1", 11211), 100)] client = Memcache(servers) client.set("TestKey", 123) result = client.get("TestKey") print "Result is", result
19.7
42
0.71066
4a139cb4dc66080f85bee749ba92b6271242096b
1,791
py
Python
src/currency/api/serializers.py
kravchenko89/currency_exchange
22f60c4438615720418d1e6159697bea67c20962
[ "MIT" ]
1
2020-02-26T19:29:58.000Z
2020-02-26T19:29:58.000Z
src/currency/api/serializers.py
kravchenko89/currency_exchange
22f60c4438615720418d1e6159697bea67c20962
[ "MIT" ]
7
2021-03-19T08:37:13.000Z
2022-02-10T14:27:49.000Z
src/currency/api/serializers.py
kravchenko89/currency_exchange
22f60c4438615720418d1e6159697bea67c20962
[ "MIT" ]
null
null
null
import django_filters from account.tasks import send_email_task from rest_framework import serializers from django.conf import settings from currency.models import Rate from account.models import Contact class RateSerializer(serializers.ModelSerializer): class Meta: model = Rate fields = ( ...
28.887097
117
0.578448
4a139cb7ee978eb1eb966de49a952be5189462e5
6,307
py
Python
openunreid/apis/test.py
teamwong111/OpenUnReID
d9122261dbadd1a69d549040e768595947a26ec3
[ "Apache-2.0" ]
344
2020-07-01T03:11:21.000Z
2022-03-30T03:01:41.000Z
openunreid/apis/test.py
teamwong111/OpenUnReID
d9122261dbadd1a69d549040e768595947a26ec3
[ "Apache-2.0" ]
43
2020-07-14T05:03:25.000Z
2022-03-29T06:15:54.000Z
openunreid/apis/test.py
teamwong111/OpenUnReID
d9122261dbadd1a69d549040e768595947a26ec3
[ "Apache-2.0" ]
71
2020-07-01T06:54:30.000Z
2022-03-23T02:57:53.000Z
# Written by Yixiao Ge import os import os.path as osp import time import warnings from datetime import timedelta import numpy as np import torch import torchvision from ..core.metrics.rank import evaluate_rank from ..core.utils.compute_dist import build_dist from ..models.utils.dsbn_utils import switch_target_bn fr...
30.033333
111
0.60964
4a139e310b5adc1fd12efd21b74e641211960b10
23,676
py
Python
environment/lib/python3.8/site-packages/numba/core/pylowering.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
1
2021-02-27T20:33:37.000Z
2021-02-27T20:33:37.000Z
environment/lib/python3.8/site-packages/numba/core/pylowering.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
2
2021-05-11T16:00:55.000Z
2021-08-23T20:45:22.000Z
environment/lib/python3.8/site-packages/numba/core/pylowering.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
1
2021-04-17T15:28:25.000Z
2021-04-17T15:28:25.000Z
""" Lowering implementation for object mode. """ import builtins import operator from llvmlite.llvmpy.core import Type, Constant import llvmlite.llvmpy.core as lc from numba.core import types, utils, ir, generators, cgutils from numba.core.errors import ForbiddenConstruct, LoweringError from numba.core.lowering imp...
37.343849
86
0.576322
4a139e9bb42d49d4074ba882dadd7eec98a1b69c
4,756
bzl
Python
rollup-globals.bzl
phenomnomnominal/components
2f843891c9633660c91200621beb1366e3e59d15
[ "MIT" ]
1
2019-11-22T07:10:52.000Z
2019-11-22T07:10:52.000Z
rollup-globals.bzl
jinsts/components
aa2cbf79d3f49cf7a4f097a2960380a89e05e8b3
[ "MIT" ]
1
2022-01-15T02:47:22.000Z
2022-01-15T02:47:22.000Z
rollup-globals.bzl
3v1lW1th1n/components
818a8c7d6bb3f25d0637e5d6462cf9a84403b78f
[ "MIT" ]
null
null
null
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS") load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_ENTRYPOINTS") load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS") load( "//src/material-experimental:config.bzl", "MATERIAL_EXPERIMENTAL_ENTRYPOINTS", "MATERIAL_E...
40.305085
102
0.702902
4a139ed591ea394e7f9a8c14afebc9b5462fe5e5
3,132
py
Python
customs/strategies/basic_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
customs/strategies/basic_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
customs/strategies/basic_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
import base64 from typing import Any, Dict, Union from abc import abstractmethod from flask import Request as FlaskRequest from werkzeug.wrappers import Request from customs.helpers import parse_headers from customs.exceptions import UnauthorizedException from customs.strategies.base_strategy import BaseStrategy c...
36.847059
106
0.6341
4a139fbce09578759de8d5f5c97888d4ca24f4ea
20,144
py
Python
modules/search/search.py
haoyuchen1992/CourseBuilder
ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7
[ "Apache-2.0" ]
null
null
null
modules/search/search.py
haoyuchen1992/CourseBuilder
ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7
[ "Apache-2.0" ]
null
null
null
modules/search/search.py
haoyuchen1992/CourseBuilder
ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
39.190661
80
0.629468
4a13a093341e5366e2db3c0f54ff6020f738abda
91
py
Python
models/loss.py
APikielny/mannequinchallenge
686ec20d86210005f1481a2f7c179ccba48636c5
[ "Apache-2.0" ]
1
2022-02-18T17:09:25.000Z
2022-02-18T17:09:25.000Z
models/loss.py
APikielny/mannequinchallenge
686ec20d86210005f1481a2f7c179ccba48636c5
[ "Apache-2.0" ]
null
null
null
models/loss.py
APikielny/mannequinchallenge
686ec20d86210005f1481a2f7c179ccba48636c5
[ "Apache-2.0" ]
null
null
null
import torch def L2(latent_1, latent_2): return torch.mean((latent_1 - latent_2) ** 2)
22.75
49
0.703297
4a13a0a14367bb101a000e52f4c94cb0a9f9606d
16,999
py
Python
tests/test_options.py
AlbertUlysses/click
466d0add86f48502db9c02c32e30287d39ab866b
[ "BSD-3-Clause" ]
null
null
null
tests/test_options.py
AlbertUlysses/click
466d0add86f48502db9c02c32e30287d39ab866b
[ "BSD-3-Clause" ]
null
null
null
tests/test_options.py
AlbertUlysses/click
466d0add86f48502db9c02c32e30287d39ab866b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import re import os import click import pytest from click._compat import text_type def test_prefixes(runner): @click.command() @click.option('++foo', is_flag=True, help='das foo') @click.option('--bar', is_flag=True, help='das bar') def cli(foo, bar): click.echo('foo=%...
30.518851
87
0.605683
4a13a15ab798ee1edf7ac706b91f16dd741691ee
2,871
py
Python
art/art_T1218-8.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218-8.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218-8.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
1
2022-03-31T11:07:56.000Z
2022-03-31T11:07:56.000Z
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'DefenseEvasion/T1218-8' self.controller_type = '' self.external_id = 'T1218' ...
37.285714
104
0.510275
4a13a1f21edccfa28a017b43b1ae288229f52cdc
4,113
py
Python
fluid/gan/c_gan/network.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
null
null
null
fluid/gan/c_gan/network.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
null
null
null
fluid/gan/c_gan/network.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
2
2018-06-14T13:59:36.000Z
2018-11-14T12:34:47.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import paddle import paddle.fluid as fluid from utility import get_parent_function_name gf_dim = 64 df_dim = 64 gfc_dim = 1024 * 2 dfc_dim = 1024 img_dim = 28 c_dim = 3 y_dim = 1 output_height = 28 output_widt...
28.171233
80
0.581571
4a13a21016eb575f719063390a07d69d349c6c90
564
py
Python
setup.py
NCI-GDC/gdc-maf-tool
a3dcfda7a4a5cf2101acd7f44fa3cbca834e7adf
[ "Apache-2.0" ]
1
2020-08-28T20:29:19.000Z
2020-08-28T20:29:19.000Z
setup.py
NCI-GDC/gdc-maf-tool
a3dcfda7a4a5cf2101acd7f44fa3cbca834e7adf
[ "Apache-2.0" ]
4
2020-04-07T23:52:43.000Z
2020-08-26T21:06:07.000Z
setup.py
NCI-GDC/gdc-maf-tool
a3dcfda7a4a5cf2101acd7f44fa3cbca834e7adf
[ "Apache-2.0" ]
2
2020-04-08T12:53:50.000Z
2020-08-14T08:49:20.000Z
from setuptools import setup, find_packages from gdc_maf_tool import __version__ setup( name="gdc-maf-tool", version=__version__, description="GDC MAF Tool", license="Apache", packages=find_packages(), entry_points={"console_scripts": ["gdc-maf-tool=gdc_maf_tool.cli:main"]}, install_require...
31.333333
87
0.666667
4a13a2a5d2e4ea976e50256ebcc4270016afae4a
42,078
py
Python
aiida/backends/tests/test_restapi.py
lekah/aiida_core
54b22a221657b47044483dc9d4f51788ce8ab6b2
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/tests/test_restapi.py
lekah/aiida_core
54b22a221657b47044483dc9d4f51788ce8ab6b2
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/tests/test_restapi.py
lekah/aiida_core
54b22a221657b47044483dc9d4f51788ce8ab6b2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
41.091797
1,153
0.579994
4a13a35c3e92527ae8a179617265cbb3d541e111
1,931
py
Python
utils.py
scisneros/PasoAPasoBot
24596a744851b53bdeb3405088ef03aedd2e495a
[ "MIT" ]
null
null
null
utils.py
scisneros/PasoAPasoBot
24596a744851b53bdeb3405088ef03aedd2e495a
[ "MIT" ]
null
null
null
utils.py
scisneros/PasoAPasoBot
24596a744851b53bdeb3405088ef03aedd2e495a
[ "MIT" ]
null
null
null
from telegram import TelegramError, constants as tg_constants from telegram.error import BadRequest, Unauthorized from unidecode import unidecode from config.logger import logger def slugify(value): value = value.replace("\n", "").replace("\t", "").strip(" ") # Remove empty spaces value = value.replace(" - ...
31.655738
132
0.620404
4a13a46c75415d788dbcf1c068395e8ea014d76a
126,091
py
Python
MoQ/huggingface-transformers/src/transformers/models/longformer/modeling_tf_longformer.py
ganik/DeepSpeedExamples
174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5
[ "MIT" ]
309
2020-02-07T23:09:27.000Z
2022-03-31T08:01:53.000Z
MoQ/huggingface-transformers/src/transformers/models/longformer/modeling_tf_longformer.py
ganik/DeepSpeedExamples
174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5
[ "MIT" ]
93
2020-02-22T05:56:28.000Z
2022-03-27T08:43:38.000Z
MoQ/huggingface-transformers/src/transformers/models/longformer/modeling_tf_longformer.py
ganik/DeepSpeedExamples
174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5
[ "MIT" ]
148
2020-02-14T22:16:11.000Z
2022-03-22T17:08:04.000Z
# coding=utf-8 # Copyright 2020 The Allen Institute for AI team and The HuggingFace Inc. team. # # 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...
46.769659
327
0.663751
4a13a4746a9e2dd13f83d22ac738800c7953651b
8,220
py
Python
contrib/devtools/security-check.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
contrib/devtools/security-check.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
contrib/devtools/security-check.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015-2017 The Bytcoyn Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Perform basic ELF security checks on a series of executables. Exit status will be 0 if successful, and ...
37.880184
163
0.636983
4a13a4d011fc2d29e1068a9ae4a4b22f6011a27a
5,921
py
Python
rasa/nlu/training_data/formats/rasa.py
ibatura/rasa
e5e7bb7b2a6c4fedfbb20b4294593b2da573a3f2
[ "Apache-2.0" ]
null
null
null
rasa/nlu/training_data/formats/rasa.py
ibatura/rasa
e5e7bb7b2a6c4fedfbb20b4294593b2da573a3f2
[ "Apache-2.0" ]
null
null
null
rasa/nlu/training_data/formats/rasa.py
ibatura/rasa
e5e7bb7b2a6c4fedfbb20b4294593b2da573a3f2
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import logging import warnings import typing from typing import Any, Dict, Text, Tuple from rasa.constants import DOCS_BASE_URL from rasa.nlu.training_data.formats.readerwriter import ( JsonTrainingDataReader, TrainingDataWriter, ) from rasa.nlu.training_data.util import tr...
32.532967
87
0.535551
4a13a53428912789a35a8156e6b47c23301d0d2f
1,301
py
Python
dev.py
ChristianPresley/power-bi-python-api
f1bbb11986cfdabfd2ad0061e34fe74339a7dfe0
[ "MS-PL" ]
null
null
null
dev.py
ChristianPresley/power-bi-python-api
f1bbb11986cfdabfd2ad0061e34fe74339a7dfe0
[ "MS-PL" ]
null
null
null
dev.py
ChristianPresley/power-bi-python-api
f1bbb11986cfdabfd2ad0061e34fe74339a7dfe0
[ "MS-PL" ]
null
null
null
#!/usr/bin/env python import logging import time from pbi_rest_client.capacities import Capacities from pbi_rest_client.rest_client import RestClient from pbi_rest_client.workspaces import Workspaces from pbi_rest_client.pipelines import Pipelines from pbi_rest_client.dataflows import Dataflows from pbi_rest_client.i...
44.862069
213
0.815527
4a13a613ac4be0fdb107732836e253367271f364
4,520
py
Python
applications/pulumi-examples/azure-nextgen-py-static-website/__main__.py
ServiBench/ReplicationPackage
bfdec842f3789de095f1433fa484e29c255cc20a
[ "Apache-2.0" ]
null
null
null
applications/pulumi-examples/azure-nextgen-py-static-website/__main__.py
ServiBench/ReplicationPackage
bfdec842f3789de095f1433fa484e29c255cc20a
[ "Apache-2.0" ]
null
null
null
applications/pulumi-examples/azure-nextgen-py-static-website/__main__.py
ServiBench/ReplicationPackage
bfdec842f3789de095f1433fa484e29c255cc20a
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2021, Pulumi Corporation. All rights reserved. import pulumi import pulumi_azure_nextgen as azure_nextgen import pulumi_random as random # TODO: Remove after autonaming support is added. random_suffix = random.RandomString("randomSuffix", length=10, special=False, upper=False) config = ...
41.090909
96
0.765487
4a13a7bb4fde8146b0e918deb59255c2110159fe
25,129
py
Python
intersight/models/equipment_rack_enclosure.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/equipment_rack_enclosure.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/equipment_rack_enclosure.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class EquipmentRackEncl...
31.970738
738
0.634884
4a13a832d48d647eb6756774deed5d860b4072bb
8,220
py
Python
python3/madasterapi/model/folder_response.py
Madaster/examples
bd2e8e464172e0d47cac8ed1672501a24ba624c3
[ "MIT" ]
2
2021-04-13T12:19:26.000Z
2021-09-13T15:40:44.000Z
python3/madasterapi/model/folder_response.py
Madaster/examples
bd2e8e464172e0d47cac8ed1672501a24ba624c3
[ "MIT" ]
null
null
null
python3/madasterapi/model/folder_response.py
Madaster/examples
bd2e8e464172e0d47cac8ed1672501a24ba624c3
[ "MIT" ]
null
null
null
""" Madaster Private API - Build: 8815 Welcome to the **Madaster Private API** endpoint. This endpoint can be used to interact with the Madaster Platform and its resources. This API does not fully cover all functionality of the platform yet, please see below for the available functions and what they can be use...
45.666667
1,015
0.604136
4a13a8d6f28e4dc8e9d5a37f8b3c3da00c101eb7
238
py
Python
factory/SimpleFactory/autos/nullcar.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
factory/SimpleFactory/autos/nullcar.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
factory/SimpleFactory/autos/nullcar.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
from .abs_auto import AbsAuto class NullCar(AbsAuto): def __init__(self, carname): self._carname = carname def start(self): print('Unknown car "%s".' % self._carname) def stop(self): pass
19.833333
51
0.588235
4a13a8e16750cc2bc85c46e53f3f49115f32e826
2,661
py
Python
tests/test_L168_S4_Luo_2013.py
mdeagen/nanomine-graph
4c3ebec038a979129519ea8a81e36abb789eb6df
[ "MIT" ]
1
2019-07-03T20:18:30.000Z
2019-07-03T20:18:30.000Z
tests/test_L168_S4_Luo_2013.py
mdeagen/nanomine-graph
4c3ebec038a979129519ea8a81e36abb789eb6df
[ "MIT" ]
41
2019-08-06T16:54:36.000Z
2021-09-01T17:07:31.000Z
tests/test_L168_S4_Luo_2013.py
mdeagen/nanomine-graph
4c3ebec038a979129519ea8a81e36abb789eb6df
[ "MIT" ]
7
2019-02-28T13:44:07.000Z
2020-10-01T21:08:51.000Z
from . import ingest_tester from . import template import rdflib file_under_test = "L168_S4_Luo_2013" class L168Test(template.IngestTestTests): @classmethod def setUpClass(cls): cls.file_under_test = file_under_test super().setUpClass() def no_test_authors(self): expected_authors ...
41.578125
86
0.603157
4a13a9a2bd0c1a462cdda5e0c8bfa17e30d90af9
6,204
py
Python
meraki_v0/aio/api/cameras.py
zabrewer/dashboard-api-python
bc21b6852e3167dcdf79585928a963efebb9d0ee
[ "MIT" ]
null
null
null
meraki_v0/aio/api/cameras.py
zabrewer/dashboard-api-python
bc21b6852e3167dcdf79585928a963efebb9d0ee
[ "MIT" ]
null
null
null
meraki_v0/aio/api/cameras.py
zabrewer/dashboard-api-python
bc21b6852e3167dcdf79585928a963efebb9d0ee
[ "MIT" ]
null
null
null
class AsyncCameras: def __init__(self, session): super().__init__() self._session = session async def getDeviceCameraQualityAndRetentionSettings(self, serial: str): """ **Returns quality and retention settings for the given camera** https://api.meraki.com/api_docs#re...
50.439024
284
0.656028
4a13aad02294bce2e956b06aa9ba70a5e240256d
997
py
Python
examples/minimal_example/driver.py
erlendd/optomatic
315b18867925a3fd6fce30c923dfc09f6e1c8d2d
[ "MIT" ]
88
2016-07-04T17:17:23.000Z
2018-10-14T00:11:59.000Z
examples/minimal_example/driver.py
erlendd/optomatic
315b18867925a3fd6fce30c923dfc09f6e1c8d2d
[ "MIT" ]
3
2016-07-11T10:11:21.000Z
2019-03-24T07:03:12.000Z
examples/minimal_example/driver.py
erlendd/optomatic
315b18867925a3fd6fce30c923dfc09f6e1c8d2d
[ "MIT" ]
10
2016-07-05T16:01:13.000Z
2018-08-14T13:08:44.000Z
from sklearn.grid_search import ParameterSampler from optomatic.jobs import JobsDB from optomatic.utils import yread import argparse from user import get_param_space def parse_cli(): parser = argparse.ArgumentParser( description='Get new parameters from database and compute their corresponding score.') ...
29.323529
94
0.657974
4a13abcaa99f920946ee0e1663c5c20378cda4db
23,356
py
Python
enaml/enaml/core/lexer.py
ContinuumIO/ashiba
a93e7785d1fcf397baeb8a0b687a162a2b2aef3d
[ "BSD-3-Clause" ]
11
2015-03-14T14:30:51.000Z
2022-03-15T13:01:44.000Z
enaml/core/lexer.py
ContinuumIO/enaml
15c20b035a73187e8e66fa20a43c3a4372d008bd
[ "BSD-3-Clause-Clear" ]
3
2015-01-31T11:12:56.000Z
2022-03-14T00:53:25.000Z
enaml/enaml/core/lexer.py
ContinuumIO/ashiba
a93e7785d1fcf397baeb8a0b687a162a2b2aef3d
[ "BSD-3-Clause" ]
4
2015-01-27T01:56:14.000Z
2021-02-23T07:21:20.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
31.733696
83
0.494948
4a13aca846061d95fc97727280e81984c3f4de09
1,169
py
Python
scripts/kmer.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/kmer.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
scripts/kmer.py
akikuno/rosalind
7015dc63e493d870e5789e99f2ee523a9b1f5ab9
[ "MIT" ]
null
null
null
# https://rosalind.info/problems/kmer/ def fmtfa(fasta: list): prev = True header = [] seq = [] for f in fasta: if ">" in f: header.append(f[1:]) prev = True elif prev: seq.append(f) prev = False else: seq[-1] += f ...
19.483333
71
0.492729
4a13ae1c78750607ebe45f2344b3c894f7219824
17,694
py
Python
pysnmp/AISLCANALOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/AISLCANALOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/AISLCANALOG-MIB.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 AISLCANALOG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AISLCANALOG-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:00:52 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
146.231405
2,725
0.793489
4a13ae4d895b1e589afdbd968abbce193cf829d8
1,006
py
Python
cirque/capabilities/dockernetworkcapability.py
githanwang1/cirque
083751eaf554927ad95e364021ff288356d08dbc
[ "Apache-2.0" ]
null
null
null
cirque/capabilities/dockernetworkcapability.py
githanwang1/cirque
083751eaf554927ad95e364021ff288356d08dbc
[ "Apache-2.0" ]
null
null
null
cirque/capabilities/dockernetworkcapability.py
githanwang1/cirque
083751eaf554927ad95e364021ff288356d08dbc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.451613
74
0.733598
4a13af5188bb236b653222125648a400957330b5
2,447
py
Python
airflow/contrib/operators/file_to_wasb.py
mr-mcox/incubator-airflow
3f1bfd38cd5a1c9c58045004390a6a766bec5e8d
[ "Apache-2.0" ]
4
2015-11-12T10:58:54.000Z
2017-08-05T06:41:36.000Z
airflow/contrib/operators/file_to_wasb.py
mr-mcox/incubator-airflow
3f1bfd38cd5a1c9c58045004390a6a766bec5e8d
[ "Apache-2.0" ]
6
2015-12-08T21:41:51.000Z
2017-11-28T13:24:05.000Z
airflow/contrib/operators/file_to_wasb.py
mr-mcox/incubator-airflow
3f1bfd38cd5a1c9c58045004390a6a766bec5e8d
[ "Apache-2.0" ]
2
2015-12-14T11:38:49.000Z
2018-03-26T15:03:07.000Z
# -*- coding: utf-8 -*- # # 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 #...
38.84127
111
0.704536
4a13b30576977ac26ef42fe78434231ebf4e4a30
474
py
Python
tests/app/env_setup.py
Khan/agar
77ff2ccd79001630f74f04ce252faa408e7686a6
[ "MIT" ]
null
null
null
tests/app/env_setup.py
Khan/agar
77ff2ccd79001630f74f04ce252faa408e7686a6
[ "MIT" ]
null
null
null
tests/app/env_setup.py
Khan/agar
77ff2ccd79001630f74f04ce252faa408e7686a6
[ "MIT" ]
null
null
null
def setup_django(settings='settings', version='1.2', ): """ Sets up the django libraries. :param settings: The name of the settings file. Default: ``'settings'``. :param version: The django version to set up. Default: ``'1.2'``. """ import os os.environ['DJANGO_SETTINGS_MODULE'] = settings...
31.6
76
0.677215
4a13b35715e1d2b9093d3ca1e10d94195732bd94
1,659
py
Python
KRKE_BOT_Converters.py
DoesItRlyMatter/KRKE-BOT
c5fcb2b8e8962f4c28373255d8c79a5705ecd573
[ "WTFPL" ]
null
null
null
KRKE_BOT_Converters.py
DoesItRlyMatter/KRKE-BOT
c5fcb2b8e8962f4c28373255d8c79a5705ecd573
[ "WTFPL" ]
null
null
null
KRKE_BOT_Converters.py
DoesItRlyMatter/KRKE-BOT
c5fcb2b8e8962f4c28373255d8c79a5705ecd573
[ "WTFPL" ]
null
null
null
import datetime skips = ['/', 'skip', 's', 'none'] def validate_day(argument): # if arugment given is /, skip and make it todays date. if argument.lower() in skips: return datetime.datetime.now().day # if argument is not /, convert it to Int and check if its a valid number of day. else: ...
33.857143
88
0.614828
4a13b3684e7d57502e726fa46e7b3eb9f61950bd
176
py
Python
uploads/core/admin.py
Borna07/IFC2Data
8a3f287785b165ea4f0090c4f50c08a3d3b0c75c
[ "MIT" ]
null
null
null
uploads/core/admin.py
Borna07/IFC2Data
8a3f287785b165ea4f0090c4f50c08a3d3b0c75c
[ "MIT" ]
null
null
null
uploads/core/admin.py
Borna07/IFC2Data
8a3f287785b165ea4f0090c4f50c08a3d3b0c75c
[ "MIT" ]
null
null
null
from django.contrib import admin from uploads.core.models import Document, IfcModell # Register your models here. admin.site.register(Document) admin.site.register(IfcModell)
25.142857
51
0.823864
4a13b3781b04760166e672ba2e7ce7efd5807a8e
5,902
py
Python
build/lib.linux-x86_64-2.7/rboot/__init__.py
amirsani/rboot_python
346365b3911147a5f2a8e3fb8a771fedf7035433
[ "MIT" ]
null
null
null
build/lib.linux-x86_64-2.7/rboot/__init__.py
amirsani/rboot_python
346365b3911147a5f2a8e3fb8a771fedf7035433
[ "MIT" ]
null
null
null
build/lib.linux-x86_64-2.7/rboot/__init__.py
amirsani/rboot_python
346365b3911147a5f2a8e3fb8a771fedf7035433
[ "MIT" ]
null
null
null
def warn(*args, **kwargs): pass import warnings warnings.warn = warn import numpy as np import lz4 import struct def bin_to_float(b): """ Convert binary string to a float. """ bf = int_to_bytes(int(b, 2), 8) # 8 bytes needed for IEEE 754 binary64 return struct.unpack('>d', bf)[0] def int_to_bytes(n...
44.37594
183
0.701796
4a13b41f3eac0acb511986920aa072e15139c9d8
4,617
py
Python
sasmodels/models/gauss_lorentz_gel.py
jmborr/sasmodels
bedb9b0fed4f3f4bc2bbfa5878de6f2b6fdfbcc9
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/gauss_lorentz_gel.py
jmborr/sasmodels
bedb9b0fed4f3f4bc2bbfa5878de6f2b6fdfbcc9
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/gauss_lorentz_gel.py
jmborr/sasmodels
bedb9b0fed4f3f4bc2bbfa5878de6f2b6fdfbcc9
[ "BSD-3-Clause" ]
1
2021-04-28T14:21:17.000Z
2021-04-28T14:21:17.000Z
r""" This model calculates the scattering from a gel structure, but typically a physical rather than chemical network. It is modeled as a sum of a low-q exponential decay (which happens to give a functional form similar to Guinier scattering, so interpret with care) plus a Lorentzian at higher-q values. See also the g...
33.456522
101
0.616851
4a13b4b9db7b2a034beee5d6a4104038daf93582
381
py
Python
faker/providers/no_NO/phone_number.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2016-12-06T15:07:50.000Z
2016-12-06T15:07:50.000Z
faker/providers/no_NO/phone_number.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
null
null
null
faker/providers/no_NO/phone_number.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2021-03-27T01:40:50.000Z
2021-03-27T01:40:50.000Z
from __future__ import unicode_literals from ..phone_number import Provider as PhoneNumberProvider class Provider(PhoneNumberProvider): formats = ( '+47#########', '+47 ## ## ## ##', '## ## ## ##', '## ## ## ##', '########', '########', '9## ## ###', ...
21.166667
58
0.351706
4a13b5c89fe3b8707affa4f18ade2cae12e44d33
10,181
py
Python
train.py
zhczhong/attention-is-all-you-need-pytorch
f58eeb04e40575def05f5cb1fc2906d55aa05ebe
[ "MIT" ]
null
null
null
train.py
zhczhong/attention-is-all-you-need-pytorch
f58eeb04e40575def05f5cb1fc2906d55aa05ebe
[ "MIT" ]
null
null
null
train.py
zhczhong/attention-is-all-you-need-pytorch
f58eeb04e40575def05f5cb1fc2906d55aa05ebe
[ "MIT" ]
null
null
null
''' This script handling the training process. ''' import argparse import math import time from tqdm import tqdm import torch import torch.nn.functional as F import torch.optim as optim import torch.utils.data import transformer.Constants as Constants from dataset import TranslationDataset, paired_collate_fn from tra...
34.050167
99
0.62489
4a13b6e025117a3588a03cb25bb45024f75cf5fc
24,210
py
Python
examples/pytorch_tutorial_movie_corpus/enc_dec_seqcrossentropy_allin1.py
manzar96/movie_corpus_chatbot
59de55de261330ed87b652dac6f8e045bf4fffcf
[ "MIT" ]
null
null
null
examples/pytorch_tutorial_movie_corpus/enc_dec_seqcrossentropy_allin1.py
manzar96/movie_corpus_chatbot
59de55de261330ed87b652dac6f8e045bf4fffcf
[ "MIT" ]
1
2020-12-05T22:57:13.000Z
2020-12-05T22:57:13.000Z
examples/pytorch_tutorial_movie_corpus/enc_dec_seqcrossentropy_allin1.py
manzar96/movie_corpus_chatbot
59de55de261330ed87b652dac6f8e045bf4fffcf
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import warnings warnings.filterwarnings("ignore") import numpy as np import torch import collections import os from ignite.metrics import Loss from torch.utils.data impor...
34.243281
203
0.660058
4a13b6ed122c35fb91a098a62cc3ea3fe853dc11
124
py
Python
entity/settings.py
syucream/airone
ce3c199f23c595a7c029ee52b57297b3666343e3
[ "MIT" ]
null
null
null
entity/settings.py
syucream/airone
ce3c199f23c595a7c029ee52b57297b3666343e3
[ "MIT" ]
2
2021-02-28T05:04:18.000Z
2021-05-01T07:00:57.000Z
entity/settings.py
syucream/airone
ce3c199f23c595a7c029ee52b57297b3666343e3
[ "MIT" ]
null
null
null
from airone.lib.settings import Settings CONFIG = Settings({ 'DASHBOARD_NUM_ITEMS': 7, 'MAX_LIST_ENTITIES': 30, })
17.714286
40
0.709677
4a13b71213922f7bd1061a8ee1c9b5cf1a861ee4
593
py
Python
ItemBsdReccomnd.py
ropso/AlgorithmDesignAndAnalysis-Python
de4a1f695c819a98f590d9156fc84e4468529289
[ "MIT" ]
null
null
null
ItemBsdReccomnd.py
ropso/AlgorithmDesignAndAnalysis-Python
de4a1f695c819a98f590d9156fc84e4468529289
[ "MIT" ]
null
null
null
ItemBsdReccomnd.py
ropso/AlgorithmDesignAndAnalysis-Python
de4a1f695c819a98f590d9156fc84e4468529289
[ "MIT" ]
null
null
null
lis=[["orange","apple","grapes"], ["avacado","chilli","orange"], ["watermillion","banana","orange"],["pineapple","orange","strawberry","grapes"],["watermelon","guavava","kiwi"],["kiwi","apple","tomato"],["mango","chiku","pomograd"],["pomograd","kiwi","chilli","tomamto"],["mango","pomograd","banana"],["pineapple","orang...
45.615385
310
0.632378
4a13b90b72707ed1d9f8adbae2efef4a90e9d28d
546
py
Python
src/storage/path_storage.py
dballesteros7/master-thesis-2015
8c0bf9a6eef172fc8167a30780ae0666f8ea2d88
[ "MIT" ]
null
null
null
src/storage/path_storage.py
dballesteros7/master-thesis-2015
8c0bf9a6eef172fc8167a30780ae0666f8ea2d88
[ "MIT" ]
null
null
null
src/storage/path_storage.py
dballesteros7/master-thesis-2015
8c0bf9a6eef172fc8167a30780ae0666f8ea2d88
[ "MIT" ]
null
null
null
from pymongo import MongoClient class PathStorage: def __init__(self): client = MongoClient() self.collection = client.flickrdata.paths def store_paths(self, paths): self.collection.insert_many(paths) def get_paths(self, city_name, bandwidth, min_unique_users, min_cluster_photos)...
28.736842
84
0.659341
4a13b9d1e10db61b0144d9e0141e43d22ffa95af
13,535
py
Python
lib/ReadsAlignmentUtils/core/sam_tools.py
Tianhao-Gu/ReadsAlignmentUtils
dfd5f90489bb8831b142605b36b08f9ebb9d7e3d
[ "MIT" ]
null
null
null
lib/ReadsAlignmentUtils/core/sam_tools.py
Tianhao-Gu/ReadsAlignmentUtils
dfd5f90489bb8831b142605b36b08f9ebb9d7e3d
[ "MIT" ]
4
2018-08-08T00:35:39.000Z
2021-01-04T19:57:25.000Z
lib/ReadsAlignmentUtils/core/sam_tools.py
Tianhao-Gu/ReadsAlignmentUtils
dfd5f90489bb8831b142605b36b08f9ebb9d7e3d
[ "MIT" ]
13
2017-05-30T14:53:37.000Z
2020-12-16T22:58:32.000Z
import logging import os import re from subprocess import Popen, PIPE from .script_utils import log as log from .script_utils import whereis class SamTools: """ This class wraps functions from samtools. The functions in this class pivot around the bam format. i.e if the user has a sam file, it is ex...
38.561254
129
0.57222
4a13ba33149aede29084ac907bd78874f0086a11
6,757
py
Python
social/tests/test_utils.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
1,987
2015-01-01T16:12:45.000Z
2022-03-29T14:24:25.000Z
social/tests/test_utils.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
731
2015-01-01T22:55:25.000Z
2022-03-10T15:07:51.000Z
virtual/lib/python3.6/site-packages/social/tests/test_utils.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
1,082
2015-01-01T16:27:26.000Z
2022-03-22T21:18:33.000Z
import sys import unittest2 as unittest from mock import Mock from social.utils import sanitize_redirect, user_is_authenticated, \ user_is_active, slugify, build_absolute_uri, \ partial_pipeline_data PY3 = sys.version_info[0] == 3 class SanitizeRedirectTest(unitte...
35.941489
80
0.628385
4a13bacba15ebf17c8cfc42cad96cd3b58f57140
305
py
Python
crypt.py
heyrict/formify
eebd7bb3685a892adb0e4ac82ad34b6610bd0a4e
[ "Apache-2.0" ]
1
2021-06-19T19:32:01.000Z
2021-06-19T19:32:01.000Z
crypt.py
heyrict/formify
eebd7bb3685a892adb0e4ac82ad34b6610bd0a4e
[ "Apache-2.0" ]
null
null
null
crypt.py
heyrict/formify
eebd7bb3685a892adb0e4ac82ad34b6610bd0a4e
[ "Apache-2.0" ]
null
null
null
import bcrypt class Bcrypt(object): def get_hashed_password(plain_text_password): return bcrypt.hashpw(plain_text_password.encode(), bcrypt.gensalt()) def check_password(plain_text_password, hashed_password): return bcrypt.checkpw(plain_text_password.encode(), hashed_password)
30.5
76
0.77377
4a13bb3cb14fa2409af1322cf5da4b3c0af6f0f1
9,876
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/trafficprofileproxiess5s8pgw_e4ed9c77e8660dfdebbdb4de3e72c6c6.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/trafficprofileproxiess5s8pgw_e4ed9c77e8660dfdebbdb4de3e72c6c6.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/trafficprofileproxiess5s8pgw_e4ed9c77e8660dfdebbdb4de3e72c6c6.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 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, ...
42.025532
207
0.648238
4a13bbddf35f7a6d5be17db4028ef167183a3ed0
822
py
Python
test/ci_app_tests/test_sampler.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
220
2016-01-19T19:00:10.000Z
2022-03-29T02:09:39.000Z
test/ci_app_tests/test_sampler.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
328
2016-05-12T15:47:30.000Z
2022-03-30T19:42:02.000Z
test/ci_app_tests/test_sampler.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
48
2016-03-04T22:04:39.000Z
2021-12-18T12:11:43.000Z
# Sampler/symbollookup tests import unittest import calipertest as cat class CaliperSamplerTest(unittest.TestCase): """ Caliper sampler test case """ def test_hatchet_sample_profile(self): target_cmd = [ './ci_test_macros', '5000', 'hatchet-sample-profile(use.mpi=false,output=stdout,output.format=ca...
29.357143
125
0.659367
4a13bbf4b78dead4b44c72dd36e28a97ac70e15d
1,292
py
Python
tusclient/storage/filestorage.py
thewh1teagle/tus-py-client
89601b84a2bd13ff6b8b79e77ac3795dc2476ec9
[ "MIT" ]
105
2017-03-27T09:07:56.000Z
2022-03-10T01:50:48.000Z
tusclient/storage/filestorage.py
thewh1teagle/tus-py-client
89601b84a2bd13ff6b8b79e77ac3795dc2476ec9
[ "MIT" ]
44
2017-04-12T20:49:27.000Z
2022-03-23T18:01:32.000Z
tusclient/storage/filestorage.py
thewh1teagle/tus-py-client
89601b84a2bd13ff6b8b79e77ac3795dc2476ec9
[ "MIT" ]
35
2017-04-12T16:57:27.000Z
2022-03-22T09:10:05.000Z
""" An implementation of <tusclient.storage.interface.Storage>, using a file as storage. """ from tinydb import TinyDB, Query from . import interface class FileStorage(interface.Storage): def __init__(self, fp): self._db = TinyDB(fp) self._urls = Query() def get_item(self, key: str): ...
30.046512
92
0.578173
4a13bc0e1b99158c91cdde477b0d1159ba070e77
5,102
py
Python
research/cv/r2plus1d/dataset_process.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/r2plus1d/dataset_process.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/r2plus1d/dataset_process.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.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...
45.963964
110
0.671893
4a13bc499e5cb23e872da778b74fc77c1c828e35
112
py
Python
phylib/stats/__init__.py
kushbanga/phylib
a4c7262b4ebcd6edb29409e2c08c5870fc9444eb
[ "BSD-3-Clause" ]
6
2019-05-06T19:05:59.000Z
2020-11-20T03:21:01.000Z
phylib/stats/__init__.py
kushbanga/phylib
a4c7262b4ebcd6edb29409e2c08c5870fc9444eb
[ "BSD-3-Clause" ]
31
2019-05-13T14:14:57.000Z
2021-08-08T15:52:55.000Z
phylib/stats/__init__.py
kushbanga/phylib
a4c7262b4ebcd6edb29409e2c08c5870fc9444eb
[ "BSD-3-Clause" ]
14
2019-05-09T12:09:37.000Z
2021-06-17T12:42:47.000Z
# -*- coding: utf-8 -*- # flake8: noqa """Statistics functions.""" from .ccg import correlograms, firing_rate
16
42
0.669643
4a13bc831b1aaa69c2eb56f9482882c1b0eac689
21,350
py
Python
airflow/www/security.py
EliezerIsrael/airflow
d800ed66320e45c5bcf6782176553ceb82050011
[ "Apache-2.0" ]
null
null
null
airflow/www/security.py
EliezerIsrael/airflow
d800ed66320e45c5bcf6782176553ceb82050011
[ "Apache-2.0" ]
1
2019-10-03T03:01:32.000Z
2019-10-05T23:40:51.000Z
airflow/www/security.py
yegeniy/airflow
f93e3391ff360c0ab3a17beaf561d14303f2dc34
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 #...
36.125212
107
0.585714
4a13bf403572b10c3c0d2eafa3e617cc79163527
10,772
py
Python
skmob/utils/utils.py
FilippoSimini/scikit-mobility
d34270a478db5822d400c925d41aed7bfffce75b
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
skmob/utils/utils.py
FilippoSimini/scikit-mobility
d34270a478db5822d400c925d41aed7bfffce75b
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
skmob/utils/utils.py
FilippoSimini/scikit-mobility
d34270a478db5822d400c925d41aed7bfffce75b
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
from ..utils import constants, gislib import pandas as pd import geopandas as gpd import shapely import os import errno import requests import numpy as np distance = gislib.getDistance def diff_seconds(t_0, t_1): return (t_1 - t_0).total_seconds() def is_multi_user(data): if constants.UID in data.columns: ...
31.589443
119
0.624675
4a13bf425502f1163fc5f53da21426ba10fa0450
975
py
Python
web/main.py
shakedyazdi/minidetector
9e9c306bfa206f3420acaa181e18ad60d8a39715
[ "MIT" ]
null
null
null
web/main.py
shakedyazdi/minidetector
9e9c306bfa206f3420acaa181e18ad60d8a39715
[ "MIT" ]
null
null
null
web/main.py
shakedyazdi/minidetector
9e9c306bfa206f3420acaa181e18ad60d8a39715
[ "MIT" ]
null
null
null
import models import schemas from typing import List from fastapi import Depends, FastAPI from sqlalchemy.orm import Session from sqlalchemy import func, desc from database import SessionLocal app = FastAPI() # Dependency #Creates the session with the DB def get_db(): db = SessionLocal() try: yield d...
28.676471
110
0.727179
4a13bfd381ed5e32f476db6b0200a0ae288cc424
49
py
Python
src/faster_rcnn/ctorch/model/__init__.py
zhouwubai/kaggle
45fbce8834a5c7ce9c925af691f5761d9d88c8d3
[ "MIT" ]
1
2018-07-11T16:35:14.000Z
2018-07-11T16:35:14.000Z
src/faster_rcnn/ctorch/model/__init__.py
zhouwubai/kaggle
45fbce8834a5c7ce9c925af691f5761d9d88c8d3
[ "MIT" ]
null
null
null
src/faster_rcnn/ctorch/model/__init__.py
zhouwubai/kaggle
45fbce8834a5c7ce9c925af691f5761d9d88c8d3
[ "MIT" ]
null
null
null
# from .faster_rcnn_vgg16 import FasterRCNNVGG16
24.5
48
0.857143
4a13c134401182dc5d087296b2b74e6c8a29cac5
2,840
py
Python
redpwn/crypto/primimity/solve.py
deut-erium/WriteUps
36b4193f5fab9f95527a48626ecba631d5a03796
[ "MIT" ]
11
2020-06-06T05:28:27.000Z
2022-01-09T00:42:49.000Z
2020/redpwn/crypto/primimity/solve.py
CSEA-IITB/WriteUps
46e7f36b0c4ef182cbaf375fd10fda954b6667a0
[ "MIT" ]
1
2020-09-06T18:19:55.000Z
2020-09-06T18:19:55.000Z
redpwn/crypto/primimity/solve.py
deut-erium/WriteUps
36b4193f5fab9f95527a48626ecba631d5a03796
[ "MIT" ]
6
2020-06-06T05:36:43.000Z
2021-08-11T10:17:18.000Z
import gmpy2 n = 273969943463309776500846837112464474192340886489639620594695419610130465377217321037260895579925113999932297622867844590870497578006894633261502206403024138463860142671605606712630071193343873226584683873586035325957412907461529801004732296070497215793066306148072656696225488714492775344904259067873077...
129.090909
929
0.946127
4a13c32df658167c75df132eb3d619d1646623df
1,178
py
Python
bspider/config/__init__.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
3
2020-06-19T03:52:29.000Z
2021-05-21T05:50:46.000Z
bspider/config/__init__.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
2
2021-03-31T19:39:03.000Z
2021-05-12T02:10:26.000Z
bspider/config/__init__.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
null
null
null
""" 返回一个包含配置的默认字典 """ import os from bspider.config import default_settings from bspider.utils import singleton from bspider.utils.conf import init_platform_env, PLATFORM_PATH_ENV from bspider.utils.importer import import_module_by_path @init_platform_env @singleton class FrameSettings(object): def __init__...
28.047619
114
0.640917
4a13c487c9a1b60acdb5fca5515e74063d799cf2
2,890
py
Python
common_utils/value_data_types.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
common_utils/value_data_types.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
common_utils/value_data_types.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
from datetime import date from decimal import Decimal from common_utils.import_method import import_pandas KNOWN_DATA_TYPES = frozenset(['seq_ident', 'str', 'int', 'date', 'decimal']) def _ident_cast(x): return x def fromisoformat(d): return datetime.date.fromisoformat(data['Date']) # Note: input value ...
25.130435
112
0.690311
4a13c497e690ed01fe4fbc1c82ddb69b6fd934e1
793
py
Python
setup.py
anthonychu/datasette-publish-azurefunctions
59588ed8202056962de71822fa5f95f7c583af57
[ "MIT" ]
null
null
null
setup.py
anthonychu/datasette-publish-azurefunctions
59588ed8202056962de71822fa5f95f7c583af57
[ "MIT" ]
null
null
null
setup.py
anthonychu/datasette-publish-azurefunctions
59588ed8202056962de71822fa5f95f7c583af57
[ "MIT" ]
null
null
null
from setuptools import setup import os VERSION = "1.0.0" def get_long_description(): "Azure Functions Datasette publish plugin" setup( name="datasette-publish-azurefunctions", description="Datasette plugin for publishing data using Azure Functions", long_description=get_long_description(), long...
29.37037
94
0.711223
4a13c4ee4aa1d29d7eae58663d7566876eb0dd53
43,880
py
Python
python/ccxt/async_support/bitfinex.py
Coinbene/ccxt
24149ebfeb6e5d7a491f8a6f0c7ce4aa9fe2e0b7
[ "MIT" ]
1
2022-01-27T09:26:41.000Z
2022-01-27T09:26:41.000Z
python/ccxt/async_support/bitfinex.py
Coinbene/ccxt
24149ebfeb6e5d7a491f8a6f0c7ce4aa9fe2e0b7
[ "MIT" ]
2
2020-01-28T23:32:40.000Z
2021-05-11T00:25:58.000Z
python/ccxt/async_support/bitfinex.py
Coinbene/ccxt
24149ebfeb6e5d7a491f8a6f0c7ce4aa9fe2e0b7
[ "MIT" ]
2
2021-05-07T09:11:54.000Z
2021-11-27T16:29:10.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import base64 import hashlib import math from ccxt.base.errors import ExchangeError f...
40.219982
426
0.453031
4a13c5827f4becf52e326d3b285410128301508c
3,194
py
Python
thejoker/tests/test_samples_analysis.py
adrn/thejoker
e77182bdb368e20127a17cc76ba1083ab77746ea
[ "MIT" ]
22
2016-09-05T00:01:14.000Z
2021-05-14T19:28:23.000Z
thejoker/tests/test_samples_analysis.py
adrn/thejoker
e77182bdb368e20127a17cc76ba1083ab77746ea
[ "MIT" ]
111
2016-09-04T18:21:00.000Z
2022-03-13T06:38:27.000Z
thejoker/tests/test_samples_analysis.py
adrn/thejoker
e77182bdb368e20127a17cc76ba1083ab77746ea
[ "MIT" ]
8
2016-09-04T17:12:34.000Z
2022-02-18T13:12:09.000Z
# Third-party import astropy.units as u import numpy as np # Project from ..data import RVData from ..samples import JokerSamples from ..samples_analysis import ( MAP_sample, is_P_unimodal, is_P_Kmodal, max_phase_gap, phase_coverage, periods_spanned) def test_MAP_sample(): samples = JokerSamples() sa...
31.313725
80
0.620225
4a13c5a3037cf96c7ea39811751fb6d818097f2a
1,412
py
Python
spectrochempy/utils/__init__.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
spectrochempy/utils/__init__.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
spectrochempy/utils/__init__.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa # ====================================================================================================================== # Copyright (©) 2015-2021 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France. = # CeCILL-B FREE SOFTWARE LICENSE AGRE...
37.157895
120
0.379603
4a13c5a5eef09cf8e71d6a7792bd05beafc55cb2
1,324
py
Python
OldHara_app/queries.py
eliseduverdier/OldHara
f8a01fe13a5dd9890c9b4b5994c4c6cd401de0c6
[ "MIT" ]
null
null
null
OldHara_app/queries.py
eliseduverdier/OldHara
f8a01fe13a5dd9890c9b4b5994c4c6cd401de0c6
[ "MIT" ]
null
null
null
OldHara_app/queries.py
eliseduverdier/OldHara
f8a01fe13a5dd9890c9b4b5994c4c6cd401de0c6
[ "MIT" ]
null
null
null
import json import requests def query_CrossRef(query): crossrefurl = 'https://api.crossref.org/works?query=' + '"' + query + '"' r = requests.get(crossrefurl) d = json.loads(r.text) # numberOfItems = int(d['message']['items-per-page']) parsed_items = [] for item in d['message']['items']: ...
30.090909
121
0.490181
4a13c67a980835e2654e318851eafee898a99cc7
328
py
Python
cctbx_website/regression/tst_19_doc_programming_tips_3.py
Anthchirp/cctbx
b8064f755b1dbadf05b8fbf806b7d50d73ef69bf
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx_website/regression/tst_19_doc_programming_tips_3.py
Anthchirp/cctbx
b8064f755b1dbadf05b8fbf806b7d50d73ef69bf
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx_website/regression/tst_19_doc_programming_tips_3.py
Anthchirp/cctbx
b8064f755b1dbadf05b8fbf806b7d50d73ef69bf
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function import sys from cctbx_website.regression.exercise import exercise def run(): return_code = exercise(script = "doc_programming_tips_3.py", tmp_path = 'tmp_files_19') return return_code if __name__ == '__main__': sys.exit...
25.230769
64
0.716463
4a13c6a1a7547673d9cd98ad4bb31e9ead66b1ac
4,126
py
Python
benchmark/startQiskit_noisy1054.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1054.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1054.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=47 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
31.257576
82
0.618032
4a13c872008ec83ca250dcd0f095f3b27519c9bd
2,420
py
Python
test/test_sharding.py
theblackturtle/zmap
ade7cd22a97a17718ca4705b1c329935385805ea
[ "Apache-2.0" ]
3,410
2015-01-02T15:37:40.000Z
2022-03-31T15:36:16.000Z
test/test_sharding.py
theblackturtle/zmap
ade7cd22a97a17718ca4705b1c329935385805ea
[ "Apache-2.0" ]
396
2015-01-06T15:47:00.000Z
2022-03-31T19:04:53.000Z
test/test_sharding.py
theblackturtle/zmap
ade7cd22a97a17718ca4705b1c329935385805ea
[ "Apache-2.0" ]
721
2015-01-05T01:39:17.000Z
2022-03-29T22:34:37.000Z
import sh import unittest from sh import cut, grep, cat, wc, uniq, mv zmap_std_args = [ "-b", "configs/blocklist_shard.conf", "--seed=1234", "192.168.1.0/24", "--dryrun", "-c", "1" ] zmap = sh....
32.266667
127
0.52686
4a13c8e912912a36b0cf2a08384e369648cb200c
17,623
py
Python
synapse/handlers/room_list.py
cHAuHaNz/synapse
79bfe966e08a2212cc2fae2b00f5efb2c2185543
[ "Apache-2.0" ]
1
2021-04-27T19:04:56.000Z
2021-04-27T19:04:56.000Z
synapse/handlers/room_list.py
cHAuHaNz/synapse
79bfe966e08a2212cc2fae2b00f5efb2c2185543
[ "Apache-2.0" ]
null
null
null
synapse/handlers/room_list.py
cHAuHaNz/synapse
79bfe966e08a2212cc2fae2b00f5efb2c2185543
[ "Apache-2.0" ]
1
2020-09-23T12:36:11.000Z
2020-09-23T12:36:11.000Z
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket 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 applic...
36.112705
88
0.589173
4a13ca782a5305d4ca435daca375fcd9ea01f3f1
12,668
py
Python
run.py
DynAge/bids-fmriprep
8c0be44b285655ed601c79de698f6f4c9016bb77
[ "BSD-3-Clause" ]
null
null
null
run.py
DynAge/bids-fmriprep
8c0be44b285655ed601c79de698f6f4c9016bb77
[ "BSD-3-Clause" ]
null
null
null
run.py
DynAge/bids-fmriprep
8c0be44b285655ed601c79de698f6f4c9016bb77
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Run the gear: set up for and call command-line code """ import json import os import subprocess as sp import sys import shutil import psutil import glob import flywheel from utils import args from utils.bids.download_bids import * from utils.bids.validate_bids import * from utils.fly.custom...
36.612717
100
0.620066
4a13caeeda2d9b3b959f58e9a7a008ff1e439bc5
10,764
py
Python
unit_tests/test_main.py
cloverleaf/web
44db9973a4ec33872cc7e41fa40b8545cd480712
[ "MIT" ]
27
2019-02-03T00:01:58.000Z
2022-01-15T15:39:20.000Z
unit_tests/test_main.py
cloverleaf/web
44db9973a4ec33872cc7e41fa40b8545cd480712
[ "MIT" ]
359
2019-02-16T22:53:41.000Z
2022-03-31T01:01:55.000Z
unit_tests/test_main.py
cloverleaf/web
44db9973a4ec33872cc7e41fa40b8545cd480712
[ "MIT" ]
9
2019-06-17T21:28:53.000Z
2021-11-29T21:55:48.000Z
import pytest from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.firefox.options import Options from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.action_chains import ActionChains from meta import pass_vis from meta import...
36.242424
166
0.638331
4a13cb1338555352afb4549865f73aafc67e1df3
6,107
py
Python
build/android/gyp/apk_obfuscate.py
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2018-01-27T22:40:53.000Z
2018-01-27T22:40:53.000Z
build/android/gyp/apk_obfuscate.py
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2016-01-29T00:54:49.000Z
2016-01-29T00:54:49.000Z
build/android/gyp/apk_obfuscate.py
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Generates the obfuscated jar and test jar for an apk. If proguard is not enabled or 'Release' is not in the configuration name, o...
33.371585
80
0.681677
4a13cc856812f5c06a9d8bbedcc3a14a189d64a7
709
py
Python
AposStreamerRules.py
Apostolique/AposRedditStreamerBot
1fe6588487336a05f1e3c1586090ac8f052c89df
[ "MIT" ]
1
2017-07-27T12:17:38.000Z
2017-07-27T12:17:38.000Z
AposStreamerRules.py
Apostolique/AposRedditStreamerBot
1fe6588487336a05f1e3c1586090ac8f052c89df
[ "MIT" ]
null
null
null
AposStreamerRules.py
Apostolique/AposRedditStreamerBot
1fe6588487336a05f1e3c1586090ac8f052c89df
[ "MIT" ]
null
null
null
#Put the streamers you want to pull in here. streamerList = ['apostolique', 'soultran', 'tilterella'] #The name of your game. Makes sure all the characters match the way it's written on Twitch. gameName = "League of Legends" #A word that needs to be in the streamer's title. This needs ...
39.388889
144
0.716502
4a13cccf40b98126736e0cab1fb90a34339a33d0
4,943
py
Python
CatsAndDogs/CatsAndDogs.py
Blackbird002/Learning-TensorFlow
cfa7509ad295ee69ad307ebec5c8a4487dfaae5a
[ "MIT" ]
1
2019-07-18T15:49:11.000Z
2019-07-18T15:49:11.000Z
CatsAndDogs/CatsAndDogs.py
Blackbird002/Learning-TensorFlow
cfa7509ad295ee69ad307ebec5c8a4487dfaae5a
[ "MIT" ]
null
null
null
CatsAndDogs/CatsAndDogs.py
Blackbird002/Learning-TensorFlow
cfa7509ad295ee69ad307ebec5c8a4487dfaae5a
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os #tool for fast prototyping of computer vision problems import cv2 import random #binary protocols for serializing and de-serializing a Python object import pickle import tensorflow as tf import time from tensorflow.keras.models import Sequential from tensorfl...
29.248521
93
0.674489
4a13cce4b5bf49cca71d1857149e23c28b79c998
5,660
py
Python
yumewatari/gateware/phy_rx.py
whitequark/Yumewatari
0981d8c832850c72745808c022dc63944a7164bc
[ "0BSD" ]
49
2018-11-09T20:56:33.000Z
2022-03-18T15:17:21.000Z
yumewatari/gateware/phy_rx.py
whitequark/Yumewatari
0981d8c832850c72745808c022dc63944a7164bc
[ "0BSD" ]
null
null
null
yumewatari/gateware/phy_rx.py
whitequark/Yumewatari
0981d8c832850c72745808c022dc63944a7164bc
[ "0BSD" ]
2
2019-03-03T17:59:56.000Z
2020-02-06T08:23:00.000Z
from migen import * from .serdes import K, D from .protocol import * from .struct import * __all__ = ["PCIePHYRX"] class PCIePHYRX(Module): def __init__(self, lane): self.error = Signal() self.comma = Signal() self.ts = Record(ts_layout) ### self.comb += lane.rx_...
31.797753
71
0.462367
4a13cd34ea4884ebae4aee99171c347c3c7a98ff
2,659
py
Python
openstack/tests/unit/network/v2/test_subnet_pool.py
NeCTAR-RC/openstacksdk
60a24f6c4717a1f9a0e545c9a07e68afaedc5a27
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/network/v2/test_subnet_pool.py
NeCTAR-RC/openstacksdk
60a24f6c4717a1f9a0e545c9a07e68afaedc5a27
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/network/v2/test_subnet_pool.py
NeCTAR-RC/openstacksdk
60a24f6c4717a1f9a0e545c9a07e68afaedc5a27
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
37.985714
77
0.687476
4a13cdd56afa5494faee66c81319562a6658a129
121
py
Python
Django/Django Ecomerce/profiles/admin.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
1
2020-05-08T08:42:20.000Z
2020-05-08T08:42:20.000Z
registration/admin.py
BirdOnTheBranch/web-pictures
1dbe655df4ab4546f1f8a6863de55b09bf9886a8
[ "MIT" ]
6
2021-03-19T01:22:24.000Z
2021-09-22T18:49:17.000Z
django-server/rest_app/admin.py
Junt0/CoronaGo
c75e14c8b07be1be8d8d3a323aceb81a55aa969b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile # Register your models here. admin.site.register(Profile)
17.285714
32
0.801653
4a13cfc4cf6a93d973f64d070dfc74d96e0e4a80
8,910
py
Python
code/python/echomesh/color/Scroll_test.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
30
2015-02-18T14:07:00.000Z
2021-12-11T15:19:01.000Z
code/python/echomesh/color/Scroll_test.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
16
2015-01-01T23:17:24.000Z
2015-04-18T23:49:27.000Z
code/python/echomesh/color/Scroll_test.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
31
2015-03-11T20:04:07.000Z
2020-11-02T13:56:59.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from echomesh.Cechomesh import cechomesh from echomesh.util.TestCase import TestCase class ScrollTest(TestCase): def setUp(self): self.data = cechomesh.ColorList( ['red', 'green', 'blue', 'yellow', 'be...
38.076923
82
0.432884
4a13d05869520f0d1269e625fb7e583670a0bf76
365
py
Python
setup.py
plotly/dash-colorscales
f2518356ea7c7b96e54e2cb3d0bee522065e7203
[ "MIT" ]
18
2018-01-10T01:02:26.000Z
2020-07-19T13:16:04.000Z
setup.py
plotly/dash-colorscales
f2518356ea7c7b96e54e2cb3d0bee522065e7203
[ "MIT" ]
6
2018-01-09T19:35:22.000Z
2021-06-01T21:45:53.000Z
setup.py
plotly/dash-colorscales
f2518356ea7c7b96e54e2cb3d0bee522065e7203
[ "MIT" ]
7
2018-01-09T20:46:29.000Z
2021-08-30T17:19:09.000Z
from setuptools import setup main_ns = {} exec(open('dash_colorscales/version.py').read(), main_ns) setup( name='dash_colorscales', version=main_ns['__version__'], author='plotly', packages=['dash_colorscales'], include_package_data=True, license='MIT', description='Colorscale picker UI fo...
22.8125
58
0.70137
4a13d13e073e9e2379a98a7720dfd4902120fe18
13,572
py
Python
extra/usb_power/stats_manager.py
closer2/chrome-ec
ec417556294240afcbdfa45feaed1206eb3b477b
[ "BSD-3-Clause" ]
null
null
null
extra/usb_power/stats_manager.py
closer2/chrome-ec
ec417556294240afcbdfa45feaed1206eb3b477b
[ "BSD-3-Clause" ]
null
null
null
extra/usb_power/stats_manager.py
closer2/chrome-ec
ec417556294240afcbdfa45feaed1206eb3b477b
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Calculates statistics for lists of data and pretty print them.""" # Note: This is a py2/3 compatible file. from __future__ import print_function imp...
34.186398
80
0.637931
4a13d18971284209c9e6b9fcc44b835043d2fd18
1,625
py
Python
Spiral_Matrix.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
1
2017-05-21T04:28:37.000Z
2017-05-21T04:28:37.000Z
Spiral_Matrix.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
Spiral_Matrix.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # # Author : TangHanYi # E-mail : thydeyx@163.com # Create Date : 16-10-27 09:33:51 # File Name : Spiral_Matrix.py # Desc : """ 分四个方向,每次枚举到最后一个数的前一个数,作为下一个方向的开始 """ class Solution(object): def spiralOrder(self, matrix): """ :type matrix: List[List[int]] ...
23.550725
49
0.352615
4a13d2a74da7e38df22c3b58fe25a5fcdd36cfef
24,289
py
Python
selfdrive/car/honda/interface.py
gwh7078/openpilot
5eb0c8e228ee5cb861fdc2c6eef53bcf71dc1f38
[ "MIT" ]
null
null
null
selfdrive/car/honda/interface.py
gwh7078/openpilot
5eb0c8e228ee5cb861fdc2c6eef53bcf71dc1f38
[ "MIT" ]
null
null
null
selfdrive/car/honda/interface.py
gwh7078/openpilot
5eb0c8e228ee5cb861fdc2c6eef53bcf71dc1f38
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import numpy as np from cereal import car from common.numpy_fast import clip, interp from common.realtime import sec_since_boot from selfdrive.swaglog import cloudlog from selfdrive.config import Conversions as CV from selfdrive.controls.lib.drive_helpers import create_event, EventTypes ...
38.310726
140
0.659475
4a13d2c9db9445db374e79f63266e0cf18753a7b
7,221
py
Python
pandas/io/parquet.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
3
2017-02-09T20:01:04.000Z
2021-08-11T00:33:41.000Z
pandas/io/parquet.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/io/parquet.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
""" parquet compat """ from warnings import catch_warnings from distutils.version import LooseVersion from pandas import DataFrame, RangeIndex, Int64Index, get_option from pandas.compat import range from pandas.io.common import get_filepath_or_buffer def get_engine(engine): """ return our implementation """ ...
34.385714
79
0.572635
4a13d2f0784aba516426e7387c1650dc865a87c8
2,584
py
Python
jhu-2020/hw3/tests/test_decode.py
mt-class/jhu
e0d2bea63edd5d2f9beb81c4f12d8077e5c1a745
[ "CC-BY-3.0", "MIT" ]
13
2015-03-11T21:24:47.000Z
2021-11-08T03:05:11.000Z
jhu-2020/hw3/tests/test_decode.py
mt-class/jhu
e0d2bea63edd5d2f9beb81c4f12d8077e5c1a745
[ "CC-BY-3.0", "MIT" ]
null
null
null
jhu-2020/hw3/tests/test_decode.py
mt-class/jhu
e0d2bea63edd5d2f9beb81c4f12d8077e5c1a745
[ "CC-BY-3.0", "MIT" ]
7
2017-09-08T17:34:01.000Z
2020-09-11T23:32:22.000Z
import unittest from gradescope_utils.autograder_utils.decorators import weight from subprocess import PIPE, run class TestDecoder(unittest.TestCase): def setUp(self): with open("data/input", 'r') as f: self.inputs = f.readlines() # self.scores = { # "decode": float('-inf'), ...
29.033708
127
0.535217
4a13d3366fd4f2ad87526d03716ca3780a49d262
15,313
py
Python
python/ccxt/__init__.py
daikts/ccxt
ba642452415001eea418b1267ff75431e33ca96e
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
daikts/ccxt
ba642452415001eea418b1267ff75431e33ca96e
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
daikts/ccxt
ba642452415001eea418b1267ff75431e33ca96e
[ "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.123494
80
0.533207
4a13d47c6fec9ebee186c3e5852d6b35683d4c50
5,218
py
Python
accenv/lib/python3.4/site-packages/allauth/account/models.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
1
2016-03-20T18:32:23.000Z
2016-03-20T18:32:23.000Z
accenv/lib/python3.4/site-packages/allauth/account/models.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
9
2020-06-05T17:18:43.000Z
2022-03-11T23:15:04.000Z
zubio/allauth/account/models.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import datetime from django.core.urlresolvers import reverse from django.db import models from django.db import transaction from django.utils.translation import ugettext_lazy as _ from django.utils import timezone from django.contrib.sites.models import Site from django.utils.e...
36.746479
86
0.625335
4a13d57e5d86173cfe22230f598e87f916e64044
5,142
py
Python
recipes/autoconf/all/conanfile.py
dvirtz/conan-center-index
2e7a6337804325616f8d97e3a5b6f66cc72699cb
[ "MIT" ]
1
2021-08-14T08:36:17.000Z
2021-08-14T08:36:17.000Z
recipes/autoconf/all/conanfile.py
dvirtz/conan-center-index
2e7a6337804325616f8d97e3a5b6f66cc72699cb
[ "MIT" ]
3
2019-11-18T18:42:06.000Z
2021-08-16T14:34:05.000Z
recipes/autoconf/all/conanfile.py
dvirtz/conan-center-index
2e7a6337804325616f8d97e3a5b6f66cc72699cb
[ "MIT" ]
4
2021-09-04T20:03:40.000Z
2022-02-08T19:15:52.000Z
from conans import AutoToolsBuildEnvironment, ConanFile, tools import os required_conan_version = ">=1.33.0" class AutoconfConan(ConanFile): name = "autoconf" url = "https://github.com/conan-io/conan-center-index" homepage = "https://www.gnu.org/software/autoconf/" description = "Autoconf is an exten...
39.251908
150
0.646247
4a13d624a0da29bd86d5428c537d9e8954984f15
1,878
py
Python
kaggle/bagOfWords/bag_of_words/random_foreset.py
tqtifnypmb/ML
dfcc6f849b1d5ee2efd0faa0f585091fc7263a6c
[ "MIT" ]
null
null
null
kaggle/bagOfWords/bag_of_words/random_foreset.py
tqtifnypmb/ML
dfcc6f849b1d5ee2efd0faa0f585091fc7263a6c
[ "MIT" ]
null
null
null
kaggle/bagOfWords/bag_of_words/random_foreset.py
tqtifnypmb/ML
dfcc6f849b1d5ee2efd0faa0f585091fc7263a6c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import re import nltk from sklearn.feature_extraction.text import CountVectorizer from sklearn.ensemble import RandomForestClassifier from bs4 import BeautifulSoup def review_to_words(raw_review): review_text = BeautifulSoup(raw_review).get_text() letters_only = re.sub(...
33.535714
71
0.624601
4a13d7b73ca765c3f404fdd864d646274ffa52a2
3,657
py
Python
drl/sac/nn_blocks.py
lych1233/compactDRL
392eeff336c833b97b4c9b7f6b044144c242b1fa
[ "MIT" ]
1
2021-08-10T03:00:34.000Z
2021-08-10T03:00:34.000Z
drl/sac/nn_blocks.py
lych1233/compactDRL
392eeff336c833b97b4c9b7f6b044144c242b1fa
[ "MIT" ]
null
null
null
drl/sac/nn_blocks.py
lych1233/compactDRL
392eeff336c833b97b4c9b7f6b044144c242b1fa
[ "MIT" ]
null
null
null
import functools import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal class MLPFeature(nn.Sequential): def __init__(self, input_dim, hidden_dim): super(MLPFeature, self).__init__( nn.Linear(input_dim, hidden_dim), ...
38.09375
107
0.637134
4a13d820f45a1ea4d327b810951868f7e0f569a9
816
py
Python
Login_Registration_Django/Login_Registration/manage.py
py1-10-2017/rgero215_PY1-10-2017
f455b335ec9c8c850571f3a75dcd95759b4cfdad
[ "Unlicense" ]
1
2018-05-10T21:29:45.000Z
2018-05-10T21:29:45.000Z
Login_Registration_Django/Login_Registration/manage.py
py1-10-2017/rgero215_PY1-10-2017
f455b335ec9c8c850571f3a75dcd95759b4cfdad
[ "Unlicense" ]
null
null
null
Login_Registration_Django/Login_Registration/manage.py
py1-10-2017/rgero215_PY1-10-2017
f455b335ec9c8c850571f3a75dcd95759b4cfdad
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Login_Registration.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensur...
35.478261
82
0.647059
4a13d861be8a00f9a707f96d2dc191c634b081b0
1,126
py
Python
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L300TeV_Ctau5cm_Pythia8_13TeV_cff.py
kmcdermo/Timing
f2f41e24350e14daf795f6551aa52a0687cda3f2
[ "MIT" ]
2
2017-10-19T12:28:53.000Z
2019-05-22T14:36:05.000Z
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L300TeV_Ctau5cm_Pythia8_13TeV_cff.py
kmcdermo/Timing
f2f41e24350e14daf795f6551aa52a0687cda3f2
[ "MIT" ]
null
null
null
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L300TeV_Ctau5cm_Pythia8_13TeV_cff.py
kmcdermo/Timing
f2f41e24350e14daf795f6551aa52a0687cda3f2
[ "MIT" ]
6
2017-09-13T13:16:10.000Z
2019-01-28T17:39:51.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", comEnergy = cms.double(13000.0), pythiaHepMCVerbosity = cms.untracked.bool(False), pythiaPylis...
41.703704
108
0.632327
4a13d89cb4b7961b3c4a5cebb3b6ead32c3b04d9
13,720
py
Python
pyzoo/zoo/chronos/autots/experimental/autotstrainer.py
EvelynQiang/analytics-zoo
be5dd08abe9b14ac085817decd017862a273985a
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/chronos/autots/experimental/autotstrainer.py
EvelynQiang/analytics-zoo
be5dd08abe9b14ac085817decd017862a273985a
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/chronos/autots/experimental/autotstrainer.py
EvelynQiang/analytics-zoo
be5dd08abe9b14ac085817decd017862a273985a
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
46.986301
100
0.58105
4a13d8cebdd966e700ea5b5236993814011ea61f
39,383
py
Python
tests/runtests.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
null
null
null
tests/runtests.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
null
null
null
tests/runtests.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Discover all instances of unittest.TestCase in this directory. ''' # pylint: disable=file-perms # Import python libs from __future__ import absolute_import, print_function import os import sys import time import warnings import collections TESTS_DIR = os.path.dirname(...
37.014098
117
0.533022
4a13d8cff2023a8492b7dd367c1c788729dab948
6,647
py
Python
autotest/gdrivers/ntv2.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
1
2020-02-22T01:28:29.000Z
2020-02-22T01:28:29.000Z
autotest/gdrivers/ntv2.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
7
2018-04-09T09:35:42.000Z
2018-05-22T06:54:05.000Z
autotest/gdrivers/ntv2.py
pramsey/gdal
965421b79fe4d3332b0f2f633b072fdcab2b700a
[ "MIT" ]
2
2018-05-08T01:51:34.000Z
2019-06-26T05:08:56.000Z
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: NTv2 Testing. # Author: Even Rouault <even dot rouault at mines dash paris dot org> # #############################################################################...
33.40201
135
0.564164
4a13d9d762bfba2c73ec86be25380e0c4fae4c74
9,323
py
Python
official/mnist/mnist.py
calvinlai1107/cmpe257project
b730c99a3752c438a63585fbe1420434b7864630
[ "Apache-2.0" ]
1
2019-03-19T02:49:28.000Z
2019-03-19T02:49:28.000Z
official/mnist/mnist.py
seansiddens/models
cffaa589571db4abc4f9e6886176b87da31092e8
[ "Apache-2.0" ]
null
null
null
official/mnist/mnist.py
seansiddens/models
cffaa589571db4abc4f9e6886176b87da31092e8
[ "Apache-2.0" ]
3
2018-10-23T01:46:50.000Z
2019-03-19T02:51:51.000Z
# Copyright 2017 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 appl...
35.448669
102
0.70192
4a13da4b5be9c47d278c9bfa1f421e9add663d0c
56,825
py
Python
tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
9
2019-12-29T01:47:37.000Z
2021-12-21T13:47:41.000Z
tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
8
2019-07-08T10:09:18.000Z
2019-09-26T20:55:43.000Z
tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
5
2020-12-22T10:17:47.000Z
2021-05-06T14:14:52.000Z
# Copyright 2017 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...
42.597451
88
0.689784
4a13dacff87d077f7402f1c4014d9eb684be629f
447
py
Python
src/utils/callback_helpers.py
slimsevernake/osbb-bot
3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8
[ "MIT" ]
9
2018-08-19T12:55:58.000Z
2021-07-17T15:38:40.000Z
src/utils/callback_helpers.py
slimsevernake/osbb-bot
3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8
[ "MIT" ]
124
2018-07-31T13:43:58.000Z
2022-03-11T23:27:43.000Z
src/utils/callback_helpers.py
slimsevernake/osbb-bot
3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8
[ "MIT" ]
3
2019-10-21T13:18:14.000Z
2021-02-09T11:05:10.000Z
import uuid import telegram from src.utils.cache import cache, USER_CACHE_EXPIRE def get_callback_data(data) -> str: key = str(uuid.uuid4()) cache.set(f'callback:{key}', data, time=USER_CACHE_EXPIRE) return key def remove_inline_keyboard(bot: telegram.Bot, chat_id: int, message_id: int) -> None: r...
26.294118
85
0.753915
4a13db327f97d0b536129cb4bd7c5c7f17906480
37,906
py
Python
zerver/lib/test_classes.py
macto/zulip
0af7aa8db3138ca5ed2db61b79b91095ae64384e
[ "Apache-2.0" ]
null
null
null
zerver/lib/test_classes.py
macto/zulip
0af7aa8db3138ca5ed2db61b79b91095ae64384e
[ "Apache-2.0" ]
null
null
null
zerver/lib/test_classes.py
macto/zulip
0af7aa8db3138ca5ed2db61b79b91095ae64384e
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from email.utils import parseaddr from fakeldap import MockLDAP from typing import (cast, Any, Dict, Iterable, Iterator, List, Optional, Tuple, Union, Set) from django.apps import apps from django.db.migrations.state import StateApps from django.urls import res...
41.70077
111
0.63858
4a13db7297636a81408125826dc46a4f45be1da3
11,346
py
Python
homeassistant/components/tuya/number.py
johnmmclaughlin/core
39b26e5ff711596c30f1615cb5694742335f3c98
[ "Apache-2.0" ]
null
null
null
homeassistant/components/tuya/number.py
johnmmclaughlin/core
39b26e5ff711596c30f1615cb5694742335f3c98
[ "Apache-2.0" ]
null
null
null
homeassistant/components/tuya/number.py
johnmmclaughlin/core
39b26e5ff711596c30f1615cb5694742335f3c98
[ "Apache-2.0" ]
null
null
null
"""Support for Tuya number.""" from __future__ import annotations from typing import cast from tuya_iot import TuyaDevice, TuyaDeviceManager from tuya_iot.device import TuyaDeviceStatusRange from homeassistant.components.number import NumberEntity, NumberEntityDescription from homeassistant.config_entries import Con...
34.910769
86
0.612198
4a13db860b500b2cc3f68b20d7f29524cfdfcee1
997
py
Python
chiplet/jenkins/compiler/sing_operator/1conv1bnquantdropout.py
Glacier-program/pytorch
208b3d1029b465da89e04a95a6c02d1c7fee559b
[ "Intel" ]
null
null
null
chiplet/jenkins/compiler/sing_operator/1conv1bnquantdropout.py
Glacier-program/pytorch
208b3d1029b465da89e04a95a6c02d1c7fee559b
[ "Intel" ]
null
null
null
chiplet/jenkins/compiler/sing_operator/1conv1bnquantdropout.py
Glacier-program/pytorch
208b3d1029b465da89e04a95a6c02d1c7fee559b
[ "Intel" ]
null
null
null
import torch import torch.nn as nn from quant_layer import QuantLayer import torch.nn.functional as F class vgg(nn.Module): def __init__(self): super(vgg, self).__init__() self.conv1 = nn.Conv2d(3, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False) self.bn1 = nn.BatchNorm2d...
30.212121
101
0.613842